/* ERO Portal — production layout & accessibility */
:root {
  --color-bg: #f0f3f7;
  --color-surface: #ffffff;
  --color-surface-2: #f7f9fc;
  --color-border: #c5ced9;
  --color-border-strong: #8a9aac;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-primary: #0b3d6b;
  --color-primary-hover: #072a4a;
  --color-accent: #b91c1c;
  --color-accent-soft: #fef2f2;
  --color-success-bg: #ecfdf5;
  --color-success-border: #6ee7b7;
  --color-error-bg: #fef2f2;
  --color-error-border: #fecaca;
  --color-focus: #2563eb;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --font-sans: "Noto Sans Devanagari", "Mukta", "Kalimati", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Consolas", monospace;
  --max-form: 52rem;
  --nav-width: 22rem;
  --header-h: 3.5rem;
}

html.theme-hc {
  --color-bg: #000;
  --color-surface: #0a0a0a;
  --color-surface-2: #111;
  --color-border: #fff;
  --color-border-strong: #fff;
  --color-text: #fff;
  --color-text-muted: #e5e5e5;
  --color-primary: #93c5fd;
  --color-primary-hover: #bfdbfe;
  --color-accent: #fca5a5;
  --color-accent-soft: #1a0505;
  --color-success-bg: #052e16;
  --color-success-border: #4ade80;
  --color-error-bg: #450a0a;
  --color-error-border: #f87171;
  --color-focus: #fde047;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  outline: 3px solid var(--color-focus);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
  min-height: var(--header-h);
}
.site-header__inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.site-header__title {
  flex: 1 1 12rem;
  min-width: 0;
}
.site-header__title h1 {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
}
.site-header__title p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  opacity: 0.92;
  line-height: 1.35;
}
.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.site-header__inner > .server-sync-status {
  flex: 1 1 100%;
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.server-sync-status--ok {
  background: rgba(22, 163, 74, 0.35);
  border-color: rgba(187, 247, 208, 0.55);
}
.server-sync-status--warn {
  background: rgba(217, 119, 6, 0.35);
  border-color: rgba(254, 243, 199, 0.5);
}
.server-sync-status--err {
  background: rgba(185, 28, 28, 0.4);
  border-color: rgba(254, 202, 202, 0.55);
}
.server-sync-status--muted {
  opacity: 0.95;
}
html.theme-hc .site-header__inner > .server-sync-status {
  border-width: 2px;
}
.site-header a.btn {
  text-decoration: none;
  box-sizing: border-box;
}

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}
.btn--danger {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-color: rgba(185, 28, 28, 0.35);
}
html:not(.theme-hc) .btn--danger {
  background: #fff;
  color: #991b1b;
}
.btn--primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn--primary:hover {
  background: #e2e8f0;
}
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface-2);
}

/* Manual save feedback (header primary buttons are light on blue bar) */
.site-header .btn.btn--saved-flash {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.95);
}
html.theme-hc .site-header .btn.btn--saved-flash {
  box-shadow: 0 0 0 3px var(--color-success-border);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.toggle input {
  width: 1rem;
  height: 1rem;
}

.layout {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
.layout--entries {
  grid-template-columns: 1fr;
}
.entries-main {
  min-width: 0;
}
.entries-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}
.entries-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.entries-table th,
.entries-table td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.entries-table thead th {
  background: var(--color-surface-2);
  font-weight: 600;
}
.entries-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.03);
}
html.theme-hc .entries-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}
.entries-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  box-shadow: var(--shadow);
}

.site-footer__extra {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 52rem;
}

.saved-intro {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.saved-intro__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.saved-intro__list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.saved-intro__note {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--color-text);
}
.saved-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.saved-folders-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.saved-folder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.saved-folder__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.45rem;
}
.saved-folder__head h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}
.saved-folder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.saved-folder__head-main {
  flex: 1;
  min-width: 12rem;
}
.saved-folder__delete {
  color: var(--color-danger, #a32);
}

.saved-server__delete {
  color: var(--color-danger, #a32);
}

.saved-server-delete-cell {
  white-space: nowrap;
  vertical-align: middle;
}
.saved-folder__lg-sub {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}
.saved-folder__tech-id {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.saved-folder__tech-id-label {
  font-weight: 500;
}
.saved-folder__path {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}
.saved-folder__local-level {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.45;
}
.saved-folder__local-level-value {
  font-weight: 600;
}
.saved-folder__local-level-sub {
  margin: 0.12rem 0 0;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}
.saved-folder__local-level-na {
  font-weight: 500;
  color: var(--color-text-muted);
}
.saved-folder__meta {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.86rem;
  color: var(--color-text);
}
.saved-folder__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.saved-file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 0.25rem;
}
.saved-file-table th,
.saved-file-table td {
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: middle;
}
.saved-file-table thead th {
  background: var(--color-surface-2);
  font-weight: 600;
}
.saved-file-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.03);
}
html.theme-hc .saved-file-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}
.saved-lg-cell {
  min-width: 10.5rem;
  max-width: 22rem;
  line-height: 1.35;
}
.saved-lg-sub {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
}
.saved-path {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
}
.saved-load-cell {
  white-space: nowrap;
}
.btn--sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: var(--nav-width) minmax(0, 1fr);
    align-items: start;
  }
  .layout--entries {
    grid-template-columns: 1fr;
  }
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.6rem 0.85rem;
  box-shadow: var(--shadow);
}
.side-nav h2 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav__khanda {
  margin: 0;
  padding: 0;
}
.side-nav__khanda + .side-nav__khanda {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-border);
}

.side-nav__khanda-head {
  margin: 0 0 0.3rem;
}

.side-nav__qlist {
  margin: 0;
  padding: 0 0 0 0.55rem;
  border-left: 2px solid var(--color-border);
  list-style: none;
}
.side-nav__qlist > li {
  margin: 0;
}

.side-nav-link {
  display: block;
  padding: 0.42rem 0.45rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.35;
}
.side-nav-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.side-nav-link--sec {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}
.side-nav-link--sec:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

.side-nav-link--q {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 0.22rem 0.35rem;
}
.side-nav-link--q:hover {
  background: var(--color-surface-2);
}

.side-nav-link.is-current {
  background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface-2));
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--color-primary);
}
.side-nav__qlist > li:has(> a.side-nav-link.is-current) {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border-radius: var(--radius-sm);
}
html.theme-hc .side-nav__qlist > li:has(> a.side-nav-link.is-current) {
  background: rgba(255, 255, 255, 0.06);
}
html.theme-hc .side-nav-link.is-current {
  box-shadow: inset 3px 0 0 var(--color-focus);
  color: var(--color-text);
}

.form-progress {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.form-progress__text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.form-progress__track {
  height: 6px;
  border-radius: 99px;
  background: var(--color-border);
  overflow: hidden;
}
.form-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 0.35s ease;
}
html.theme-hc .form-progress__bar {
  background: var(--color-focus);
}

.toast-region {
  position: fixed;
  z-index: 10060;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 24rem;
  margin-left: auto;
}
.toast {
  pointer-events: auto;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--ok {
  border-color: var(--color-success-border);
  background: var(--color-success-bg);
}
.toast--info {
  border-color: #93c5fd;
  background: #eff6ff;
}
.toast--warn {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #78350f;
}
.toast--err {
  border-color: var(--color-error-border);
  background: var(--color-error-bg);
  color: #7f1d1d;
}
html.theme-hc .toast--info {
  border-color: var(--color-primary);
  background: #111;
  color: #e2e8f0;
}
html.theme-hc .toast--warn {
  color: #fef3c7;
}
html.theme-hc .toast--err {
  color: #fecaca;
}

@media (min-width: 640px) {
  .toast-region {
    left: auto;
    bottom: 5rem;
  }
}

.form-progress--mobile {
  display: none;
}
@media (max-width: 959px) {
  .form-progress--mobile {
    display: block;
  }
}

.section-jump {
  display: none;
  margin-bottom: 0.75rem;
}
@media (max-width: 959px) {
  .side-nav {
    display: none;
  }
  .section-jump {
    display: block;
  }
}
.section-jump label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.35rem;
}
.section-jump select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

#main-content {
  min-width: 0;
}

.submissions-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.submissions-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}
.submissions-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}
.submissions-panel__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}
.submissions-panel__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.submissions-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.submissions-panel__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.65rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.submissions-panel__item.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.submissions-panel__meta {
  flex: 1 1 12rem;
  min-width: 0;
}
.submissions-panel__lg {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}
.submissions-panel__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}
.submissions-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.submissions-panel__actions .btn {
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
}

.banner {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.banner p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Shown only when local-body JSON must be picked manually */
.lg-file-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-bar {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.status-bar--ok {
  border-color: var(--color-success-border);
  background: var(--color-success-bg);
}
.status-bar--err {
  border-color: var(--color-error-border);
  background: var(--color-error-bg);
  color: #7f1d1d;
}
html.theme-hc .status-bar--err {
  color: #fecaca;
}
.status-bar--info {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a5f;
}
html.theme-hc .status-bar--info {
  border-color: var(--color-primary);
  background: #111;
  color: #e2e8f0;
}

.error-summary {
  border: 2px solid var(--color-error-border);
  background: var(--color-error-bg);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.error-summary h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.error-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-section--render-err {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.06);
}
.form-section__err-msg {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.form-section__head {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.form-section__head h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}
.form-section__body > .field[data-field-id],
.form-section .field[data-field-id],
.form-section .field.qi-child,
.form-section #meta-block,
.form-section #lgPanel,
[id^="q-st-"],
[id^="q-clc-"],
[id^="q-qi-"],
[id^="q-S2"],
#q-s212-quad,
#q-s213-grants {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.form-subsection {
  margin: 1.15rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}
.form-subsection__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
}

.s213-grant-wrap {
  margin: 0.35rem 0 1.15rem;
}
.s213-grant-table-title {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.4;
}
.s213-grant-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.s213-grant-table th,
.s213-grant-table td {
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.5rem;
  vertical-align: middle;
}
.s213-grant-table thead th {
  background: var(--color-surface-2);
  font-weight: 600;
  text-align: left;
}
.s213-grant-table tbody th[scope="row"] {
  background: var(--color-surface-2);
  font-weight: 600;
  text-align: center;
  width: 2.75rem;
  white-space: nowrap;
}
.s213-grant-table .s213-grant-table__rownum {
  width: 2.75rem;
  text-align: center;
}
.s213-grant-table .input-text,
.s213-grant-table .input-num {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-section__body {
  padding: 1rem 1.1rem 1.15rem;
  max-width: var(--max-form);
}

/* खण्ड २: चार बजेट सङ्ख्या — दुई पङ्क्ति × दुई स्तम्भ */
.budget212-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 0.25rem 0 1rem;
}

@media (max-width: 640px) {
  .budget212-grid {
    grid-template-columns: 1fr;
  }
}

.meta-grid {
  display: grid;
  gap: 0.75rem 1rem;
}
@media (min-width: 640px) {
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  margin-bottom: 1.1rem;
}
.field:last-child {
  margin-bottom: 0;
}
.field--subhead {
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
}
.field__subhead {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--color-text-muted);
}

/* खण्ड ५ (yesnoTable): दस्तावेज उपलब्धता — क्र.स. | प्रश्न | छ | छैन | उत्तर छैन */
.yesno-doc-table-wrap {
  margin-bottom: 0.25rem;
}
.yesno-doc-table__hint {
  margin: 0 0 0.5rem;
}
.yesno-doc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.75rem;
}
.yesno-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.yesno-doc-table th,
.yesno-doc-table td {
  border: 1px solid var(--color-border);
  padding: 0.38rem 0.5rem;
  vertical-align: top;
}
.yesno-doc-table thead th {
  background: var(--color-surface-2);
  font-weight: 700;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.25;
}
.yesno-doc-table thead .yesno-doc-table__th-q {
  text-align: left;
}
.yesno-doc-table__ref {
  white-space: nowrap;
  font-weight: 600;
  text-align: center;
  width: 4.25rem;
}
.yesno-doc-table__q {
  min-width: 11rem;
  line-height: 1.4;
}
.yesno-doc-table__field-help {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.35;
}
.yesno-doc-table__cell {
  text-align: center;
  width: 3.1rem;
  vertical-align: middle;
}
.yesno-doc-table__lbl {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 1.65rem;
  margin: 0;
  cursor: pointer;
}
.yesno-doc-table__lbl input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-primary);
}
.yesno-doc-table__tr--invalid .yesno-doc-table__q {
  background: color-mix(in srgb, #b91c1c 7%, transparent);
}

/* खण्ड ३: ३.ख–३.च नियमन — थप स्तम्भ (मिति) */
.yesno-doc-table thead .yesno-doc-table__th-note {
  min-width: 7.5rem;
  max-width: 10rem;
}
.yesno-doc-table__note {
  vertical-align: top;
  min-width: 6.5rem;
  max-width: 11rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}
.yesno-doc-table__note--empty {
  color: color-mix(in srgb, var(--color-text-muted) 55%, transparent);
}
.yesno-doc-table__note-wrap {
  text-align: left;
}
.yesno-doc-table__note-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.yesno-doc-table__note-input {
  width: 100%;
  max-width: 100%;
  font-size: 0.82rem;
  padding: 0.28rem 0.4rem;
}
.yesno-doc-table__note-input[data-note-always-editable="1"] {
  opacity: 1;
  cursor: text;
  background: var(--color-surface);
}
.yesno-doc-table__note-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-surface-2);
}
.yesno-doc-table__note-wrap--invalid {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.form-subsection__title--s22-reg {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.form-subsection__title--s8-metrics {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.form-subsection__title--h63-yesno {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.form-subsection--h63-yesno .field__help {
  margin-bottom: 0.5rem;
}
.yesno-doc-table--s8 thead .yesno-doc-table__th-val {
  min-width: 8rem;
  text-align: left;
}
.yesno-doc-table--s8 .yesno-doc-table__note {
  text-align: left;
  max-width: none;
  min-width: 9rem;
}
.yesno-doc-table--s3sg-pct .s3sg-pct-table__th-num,
.yesno-doc-table--s3sg-pct .s3sg-pct-table__th-sel {
  min-width: 6.5rem;
  text-align: center;
}
.yesno-doc-table--s3sg-pct .s3sg-pct-table__cell-num {
  vertical-align: middle;
  min-width: 5.5rem;
}
.yesno-doc-table--s3sg-pct .s3sg-pct-table__cell-num .input-num {
  max-width: 100%;
}
.yesno-doc-table--s3sg-pct .s3sg-pct-table__cell-sel {
  vertical-align: middle;
  min-width: 9rem;
}
.yesno-doc-table--s3sg-pct .s3sg-pct-table__cell-sel .field__select {
  max-width: 100%;
}
.form-subsection__title--s3sg-pct {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.form-subsection__title--i7h-obs {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.form-subsection--i7h-obs .field__help {
  margin-bottom: 0.5rem;
}
.form-subsection__title--s2q21-ch {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.form-subsection--s2q21-ch .field__help {
  margin-bottom: 0.5rem;
}
.s8-table__subhead-cell {
  background: var(--color-surface-2);
  font-weight: 600;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
}
.s8-table__qtext {
  display: block;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .yesno-doc-table {
    font-size: 0.76rem;
  }
  .yesno-doc-table__ref,
  .yesno-doc-table__th-num {
    font-size: 0.72rem;
  }
}

.field__label {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.35rem;
}
.field__help {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0.5rem;
}
.field__error {
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 0.35rem;
}
html.theme-hc .field__error {
  color: #fca5a5;
}
.field--invalid .field__label {
  color: #b91c1c;
}

.input-text,
.input-num,
select.field__select {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

.field--lang-matrix .lang-pref-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field__label--lang-grp {
  margin-bottom: 0.35rem;
}

.field--lang-matrix .table-scroll {
  overflow-x: auto;
  margin-top: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.lang-pref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.lang-pref-table thead th {
  text-align: start;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-bottom: 2px solid var(--color-border-strong);
  background: var(--color-surface-2);
}

.lang-pref-table tbody td,
.lang-pref-table tbody th {
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.lang-pref-table__ncol {
  width: 3rem;
  white-space: nowrap;
}

.lang-pref-table__num {
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lang-pref-table__lbl {
  white-space: nowrap;
  padding-inline-end: 0.85rem;
}

.lang-pref-table__cell .input-text {
  max-width: none;
}

.lang-pref-table__row--invalid {
  background: var(--color-error-bg);
}
.input-textarea {
  width: 100%;
  max-width: var(--max-form);
  min-height: 8rem;
  font: inherit;
  line-height: 1.5;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  resize: vertical;
}

.field__textarea-wrap {
  position: relative;
  display: block;
  max-width: var(--max-form);
}

/* Circular page + progress HUD — same fixed corner as .speech-fab, stacked above mic */
.form-float-hud {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.35rem + 3.25rem + 0.65rem + env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  z-index: 100002;
  width: 5.1rem;
  height: 5.1rem;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem 0.42rem;
  margin: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.form-float-hud[hidden] {
  display: none !important;
}
.form-float-hud__booklet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1.05;
  text-align: center;
  flex-shrink: 0;
}
.form-float-hud__booklet[hidden] {
  display: none !important;
}
.form-float-hud__page-num {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.form-float-hud__page-lbl {
  font-size: 0.46rem;
  font-weight: 700;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-float-hud__progress {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.12rem;
  flex-shrink: 0;
}
.form-float-hud__progress[hidden] {
  display: none !important;
}
.form-float-hud__prog-text {
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  max-height: 2.45em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.form-float-hud__prog-track {
  height: 4px;
  width: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.form-float-hud__prog-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #fff;
  transition: width 0.35s ease;
}
html.theme-hc .form-float-hud {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 2px var(--color-focus), 0 4px 18px rgba(0, 0, 0, 0.18);
}
html.theme-hc .form-float-hud__prog-bar {
  background: var(--color-focus);
}
@media (max-width: 52rem) {
  .form-float-hud {
    width: 4.65rem;
    height: 4.65rem;
    padding: 0.34rem 0.42rem 0.36rem;
    gap: 0.12rem;
  }
  .form-float-hud__page-num {
    font-size: 1rem;
  }
  .form-float-hud__page-lbl {
    font-size: 0.42rem;
  }
  .form-float-hud__prog-text {
    font-size: 0.47rem;
  }
}

/* Floating dictation control — targets whichever text field last had focus (or has focus). */
.speech-fab {
  position: fixed;
  bottom: 1.35rem;
  right: 1rem;
  z-index: 100002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.speech-fab:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.speech-fab:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
.speech-fab--active {
  background: #047857;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.45), 0 4px 18px rgba(0, 0, 0, 0.2);
}
html.theme-hc .speech-fab--active {
  background: #065f46;
  color: #ecfdf5;
}
@media (max-width: 48rem) {
  .speech-fab {
    bottom: 1rem;
    right: 0.75rem;
    width: 3rem;
    height: 3rem;
  }
  .form-float-hud {
    bottom: calc(1rem + 3rem + 0.5rem + env(safe-area-inset-bottom, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

.input-text:focus-visible,
.input-num:focus-visible,
select.field__select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-border-strong);
}

.yesno {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.yesno label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  cursor: pointer;
}

.field__fieldset--n2ka {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.field__fieldset--n2ka .field__label {
  margin: 0 0 0.35rem;
  padding: 0;
}
.yesno-n2ka {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}
.yesno-n2ka__sep {
  font-weight: 600;
  color: var(--color-text-muted);
  user-select: none;
}
.yesno-n2ka__miti {
  display: inline-flex;
  flex: 1 1 12rem;
  align-items: center;
  gap: 0.35rem;
  min-width: min(100%, 14rem);
}
.yesno-n2ka__miti-lab {
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.yesno-n2ka__miti-inp {
  flex: 1 1 8rem;
  min-width: 6rem;
}

.field__fieldset--s3cn {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.field__fieldset--s3cn .field__label {
  margin: 0 0 0.35rem;
  padding: 0;
}
.yesno-s3cn {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}
.yesno-s3cn-miti {
  display: inline-flex;
  flex: 1 1 12rem;
  align-items: center;
  gap: 0.35rem;
  min-width: min(100%, 16rem);
}
.yesno-s3cn-miti__lab {
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.yesno-s3cn-miti__inp {
  flex: 1 1 8rem;
  min-width: 6rem;
}

.yesno-doc-table__cell--dash {
  text-align: center;
  color: var(--color-text-muted);
  font-weight: 600;
  user-select: none;
}

.n2-rop-other-wrap {
  margin-top: 0.75rem;
}
.n2-rop-other-wrap[hidden] {
  display: none !important;
}

.s1-n1ka-miti-wrap,
.s1-n1ka-oth-wrap {
  margin-top: 0.75rem;
}
.s1-n1ka-miti-wrap[hidden],
.s1-n1ka-oth-wrap[hidden] {
  display: none !important;
}

.l3-lbas-prv-wrap {
  margin-top: 0.75rem;
}
.l3-lbas-prv-wrap[hidden] {
  display: none !important;
}

.multichk {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.multichk__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}
.multichk__lbl {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
  flex: 1 1 12rem;
}
.multichk__cb {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.multichk__miti {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 10rem;
}
.multichk__miti-lab {
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.multichk__miti-inp {
  flex: 1 1 8rem;
  min-width: 6rem;
  max-width: 14rem;
}

.lg-panel {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--color-surface-2);
}
.lg-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.lg-search {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}
.lg-results {
  max-height: 14rem;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.lg-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lg-pick {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.lg-pick:last-child {
  border-bottom: 0;
}
.lg-pick:hover {
  background: var(--color-surface-2);
}
.lg-pick.is-active {
  background: #dbeafe;
}
html.theme-hc .lg-pick.is-active {
  background: #1e3a5f;
}
.lg-pick__name {
  font-weight: 700;
}
.lg-pick__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.lg-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0.35rem 0 0;
}

.readonly-grid {
  display: grid;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}
@media (min-width: 560px) {
  .readonly-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.readonly-grid div {
  font-size: 0.88rem;
}
.readonly-grid span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.file-drop-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.lg-panel .row-actions {
  margin-top: 0.5rem;
}

/* Quantitative educational institutions (matrix) */
.qi-wrap {
  overflow-x: auto;
  margin: 0.25rem 0 1rem;
}
.qi-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.qi-table th,
.qi-table td {
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.45rem;
  vertical-align: middle;
}
.qi-table thead th {
  background: var(--color-surface-2);
  font-weight: 700;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
}
.qi-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  min-width: 11rem;
  max-width: 18rem;
  background: #fafbfc;
}
.qi-table .qi-in {
  width: 100%;
  min-width: 4rem;
  max-width: 7rem;
  margin: 0;
  font: inherit;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-align: right;
}
.qi-table .qi-na {
  text-align: center;
  color: var(--color-text-muted);
  background: #f3f4f6;
  font-size: 0.85rem;
}
.qi-table .qi-tot {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--color-accent-soft);
}
.st-grid .st-corner {
  min-width: 10rem;
  max-width: 16rem;
  vertical-align: middle;
}
.st-grid thead tr:first-child th {
  font-size: 0.8rem;
}
html.theme-hc .qi-table .qi-tot {
  background: #2a0a0a;
}
.qi-child {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}
.qi-child .input-num {
  max-width: 12rem;
}

.small {
  font-size: 0.78rem;
}
.muted {
  color: var(--color-text-muted);
}

.site-footer {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* Client-side login (auth-gate.js) — not for high-assurance security */
#ero-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem;
}
.ero-auth-panel {
  width: 100%;
  max-width: 22rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.ero-auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.ero-auth-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.ero-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ero-auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.ero-auth-label input {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.ero-auth-err {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-accent);
}
.ero-auth-submit {
  margin-top: 0.25rem;
  width: 100%;
}

.ero-readonly-banner {
  background: #fff7ed;
  border: 1px solid #f59e0b;
  color: #1a1a1a;
  padding: 0.65rem 1rem;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.ero-readonly-banner a {
  font-weight: 600;
}

body.ero-saved-readonly .saved-folder__delete,
body.ero-saved-readonly .saved-server__delete {
  display: none !important;
}

@media print {
  .site-header,
  .side-nav,
  .section-jump,
  .site-footer,
  .banner .no-print,
  .btn,
  .toggle,
  .speech-fab,
  .form-float-hud,
  .toast-region {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .form-section {
    box-shadow: none;
    break-inside: avoid;
  }
}
