:root {
  --bg: #f0f2f5;
  --panel: #003d7a;
  --panel-soft: #ffffff;
  --ink: #111111;
  --muted: #5c6570;
  --accent: #0066b3;
  --accent-dark: #004985;
  --accent-light: #e8f2fa;
  --line: rgba(0, 61, 122, 0.14);
  --glow: rgba(0, 102, 179, 0.22);
  --topbar-h: 60px;
  --sidebar-w: 240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--panel);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#sidebarNav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sidebar-mode-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.sidebar-mode-icon {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1035;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.sidebar-title {
  margin: 0 1.25rem 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-left-color: #fff;
  font-weight: 700;
}

.sidebar-icon {
  width: 1.25rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.app-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-content > main {
  flex: 1;
}

.btn-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

.btn-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dashboard-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.dashboard-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 102, 179, 0.12);
  color: inherit;
}

.dashboard-card h2 {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  color: var(--panel);
}

.dashboard-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.page-placeholder {
  margin-top: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--muted);
}

/* ── TOPBAR ─────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  background: var(--panel);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.topbar a {
  color: inherit;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.topbar-org-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.35rem;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}

.user-menu-btn:hover,
.user-menu-btn:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.user-menu-btn::after {
  margin-left: 2px;
}

.user-avatar {
  font-size: 1.1rem;
  line-height: 1;
}

.user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.user-menu-login {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.user-dropdown .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0;
  min-width: 200px;
}

.user-dropdown .dropdown-item {
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
}

.user-dropdown .dropdown-item:hover {
  background: var(--accent-light);
}

.topbar-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.topbar-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.topbar .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.topbar .btn-outline-secondary:hover {
  color: var(--panel);
  background: #fff;
  border-color: #fff;
}

/* ── LANGUAGE BUTTONS ────────────────────────────── */
.lang-group {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.lang-btn.active {
  background: #fff;
  color: var(--panel);
}

.lang-group--menu {
  width: 100%;
  margin-top: 0.4rem;
  background: rgba(22, 48, 66, 0.07);
  padding: 3px;
}

.lang-group--menu .lang-btn {
  flex: 1;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
}

.lang-group--menu .lang-btn:hover {
  background: rgba(22, 48, 66, 0.08);
  color: var(--ink);
}

.lang-group--menu .lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.dropdown-lang-label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dropdown-lang-item {
  list-style: none;
  min-width: 200px;
}

/* ── EYEBROW ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.78);
}

main .eyebrow {
  color: var(--accent);
  opacity: 1;
}

.hero-title,
.section-title,
.modal-title,
.metric-value {
  font-family: "Space Grotesk", sans-serif;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-accent {
  border: 0;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 14px var(--glow);
}

.btn-accent:hover,
.btn-accent:focus {
  color: #fff;
  background: var(--accent-dark);
}

/* ── STATS STRIP ─────────────────────────────────── */
.metric-card,
.surface-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.metric-card {
  padding: 1rem 1.5rem;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

/* ── SEARCH / TOOLBAR ────────────────────────────── */
.list-toolbar {
  width: 100%;
}

.search-wrap {
  position: relative;
  max-width: 560px;
  min-width: 12rem;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.45;
  pointer-events: none;
}

.search-wrap .form-control {
  padding-left: 2.4rem;
}

.list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  padding: 0.35rem 0.75rem 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.list-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.75rem 0.9rem 0.7rem;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.list-tab:hover,
.list-tab:focus-visible {
  color: var(--panel);
}

.list-tab.is-active {
  color: var(--panel);
  border-bottom-color: var(--accent);
}

.list-tab-count {
  min-width: 1.45rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--panel);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.list-tab.is-active .list-tab-count {
  background: var(--accent);
  color: #fff;
}

.list-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 14rem;
  padding: 2.5rem 1rem;
  color: var(--muted);
  text-align: center;
}

.list-loading-spinner {
  width: 2.35rem;
  height: 2.35rem;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: list-spin 0.7s linear infinite;
}

@keyframes list-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .list-loading-spinner {
    animation: none;
    border-top-color: var(--accent-light);
    border-right-color: var(--accent);
  }
}

/* ── SURFACE CARD / TABLE ────────────────────────── */
.surface-card {
  padding: 0;
  overflow: hidden;
}

.surface-card .table-responsive {
  border-radius: 12px;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: rgba(0, 0, 0, 0.15);
  padding: 0.65rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 179, 0.18);
}

.notice-table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: var(--accent-light);
}

.notice-table thead th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--panel);
  border-bottom: 2px solid var(--accent);
  padding: 0.85rem 1rem;
  background: #fff;
}

.notice-table tbody tr {
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.notice-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom-color: var(--line);
  vertical-align: top;
}

.notice-list-media-line + .notice-list-media-line {
  margin-top: 0.25rem;
}

.notice-table tbody tr.active {
  background: var(--accent-light);
  box-shadow: inset 3px 0 0 var(--accent);
}

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

/* ── DETAIL MODAL ────────────────────────────────── */
.detail-modal-content {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.detail-modal-header {
  padding: 1rem 1.5rem;
  background: var(--panel);
  color: #fff;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.detail-modal-header .modal-title {
  color: #fff;
}

.detail-modal-header .btn-close {
  filter: invert(1);
}

.detail-modal-body {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0 0 12px 12px;
}

/* ── QR PANEL ────────────────────────────────────── */
.qr-panel {
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-block;
}

/* ── DETAIL / PAPER FORM ─────────────────────────── */
.detail-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(0, 61, 122, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: var(--accent-light);
}

.notice-detail-header .eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice-admin-contact {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.1rem 1.25rem 1.25rem;
  position: relative;
  padding-bottom: 5.5rem;
}

.notice-admin-contact-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.notice-admin-contact-hint {
  margin: 0;
}

.notice-admin-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.notice-admin-contact-grid dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice-admin-contact-grid dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.notice-admin-contact-notes {
  grid-column: 1 / -1;
}

.notice-email-log {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  max-width: min(22rem, calc(100% - 2.5rem));
  text-align: right;
}

.notice-email-log-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.notice-email-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 6.5rem;
  overflow: auto;
}

.notice-email-log-list li {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.notice-email-log-list li.is-failed {
  color: #a33;
}

@media (max-width: 720px) {
  .notice-admin-contact-grid {
    grid-template-columns: 1fr;
  }

  .notice-admin-contact {
    padding-bottom: 1.25rem;
  }

  .notice-email-log {
    position: static;
    max-width: none;
    margin-top: 1rem;
    text-align: left;
  }
}

.paper-form {
  --paper-ink: #1a1a1a;
  --paper-line: #d4d0c8;
  --paper-line-strong: #b8b3a8;
  --paper-muted: #4a4a4a;
  --paper-fill: #ffffff;
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 0;
  background: var(--paper-fill);
  color: var(--paper-ink);
  border: 1px solid var(--paper-line-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.paper-form-masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.1rem 1.35rem;
  border-bottom: none;
  background: #fff;
}

.paper-form-brand {
  display: none;
}

.paper-form-doc-type {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--paper-muted);
}

.paper-form-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper-ink);
}

.paper-form-meta {
  min-width: 11rem;
  border: 1px solid var(--paper-line);
  background: #fff;
}

.paper-form-meta-row {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.55rem;
}

.paper-form-meta-row + .paper-form-meta-row {
  border-top: 1px solid var(--paper-line);
}

.paper-form-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.paper-form-meta-value {
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
}

.paper-form-fields {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.75rem;
  counter-reset: none;
  overflow: auto;
}

.paper-form-qr-block {
  float: right;
  width: max-content;
  margin: 0.85rem 1.1rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  shape-outside: margin-box;
}

.paper-form-token-link {
  display: block;
  color: #003d7a;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.paper-form-token-link:hover {
  text-decoration: underline;
}

.paper-form-qr {
  width: 8.75rem;
  height: 8.75rem;
  padding: 0.15rem;
  background: #fff;
  overflow: hidden;
}

.paper-form-qr canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.paper-form-qr img,
.paper-form-qr table {
  display: none !important;
}

.paper-form-row {
  display: block;
  border-bottom: none;
  background: #fff;
  padding: 0.85rem 1.1rem 0.55rem;
}

.paper-form-row-main {
  min-width: 0;
}

.paper-form-row:nth-child(even) {
  background: #fff;
}

.paper-form-row:last-child {
  border-bottom: none;
}

.paper-form-q {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0 0 0.3rem;
  border-right: none;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.paper-form-num {
  flex: 0 0 auto;
  min-width: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.paper-form-label {
  flex: 1 1 auto;
}

.paper-form-a {
  padding: 0 0 0 2.35rem;
  min-height: 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.paper-form-row--table {
  grid-template-columns: 1fr;
}

.paper-form-row--table .paper-form-q {
  border-right: none;
  border-bottom: none;
}

.paper-form-a--table {
  padding: 0.35rem 0 0 2.35rem;
  overflow: visible;
}

.paper-form-sponsors {
  display: grid;
  gap: 0.85rem;
}

.paper-form-sponsor {
  padding: 0;
}

.paper-form-sponsor-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper-ink);
}

.paper-form-sponsor-num {
  flex: 0 0 auto;
}

.paper-form-sponsor-name {
  flex: 0 1 auto;
}

.paper-form-sponsor-meta {
  flex: 0 0 auto;
  font-weight: 500;
  color: var(--paper-muted);
}

.paper-form-sponsor-meta::before {
  content: "·";
  margin-right: 0.65rem;
  color: var(--paper-line-strong);
}

.paper-form-sponsor-detail {
  margin: 0;
  padding-left: 2.35rem;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--paper-ink);
}

.paper-form-sponsor-table {
  display: none;
}

.paper-form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--paper-line-strong);
  font-size: 0.78rem;
  color: var(--paper-muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 720px) {
  .paper-form-masthead {
    grid-template-columns: 1fr;
  }

  .paper-form-row {
    grid-template-columns: 1fr;
  }

  .paper-form-q {
    border-right: none;
    border-bottom: none;
    background: #fff;
  }
}
@media print {
  .notice-detail-header,
  .qr-panel,
  .sidebar,
  .topbar {
    display: none !important;
  }

  .paper-form {
    max-width: none;
    margin: 0;
    box-shadow: none;
    border-color: var(--paper-line-strong);
  }
}

/* ── MODAL ───────────────────────────────────────── */
.modal-content {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.modal .form-label {
  font-weight: 700;
  color: var(--ink);
}

@media (min-width: 992px) {
  .page-shell.sidebar-pinned .sidebar {
    position: sticky;
    transform: none;
    box-shadow: none;
  }

  .page-shell.sidebar-hidden .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  }

  .page-shell.sidebar-hidden.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .page-shell.sidebar-hidden.sidebar-open .sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .page-shell .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  }

  .page-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .page-shell.sidebar-open .sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    padding: 0 1rem;
  }

  .list-toolbar {
    max-width: 100%;
  }
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top right, rgba(0, 102, 179, 0.12), transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}

.login-shell {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 61, 122, 0.12);
  padding: 2rem;
}

.login-brand {
  margin-bottom: 1.5rem;
}

.login-brand-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.login-app-name {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.login-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  margin: 0;
}

.login-title {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  text-align: center;
}

.login-org {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.login-org-logo {
  height: 36px;
  width: auto;
}

.login-org-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.login-intro {
  margin: 0;
  color: var(--muted);
  text-align: center;
}
