:root {
  --bg: #eef2f7;
  --bg-accent: #e3e9f2;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --border: #cfd8e4;
  --text: #1b2a3b;
  --muted: #5a6b80;
  --heading: #12263c;
  --primary: #214b7a;
  --primary-2: #183a5f;
  --primary-soft: #e8f0fa;
  --warn: #8a6125;
  --danger: #8f343a;
  --ok: #2e6a49;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Arial", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.layout-shell {
  min-height: 100vh;
}

.system-ribbon {
  background: #0e243d;
  color: #cdd9e8;
  border-bottom: 1px solid #2a4564;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 24px 12px;
  background: #f5f8fb;
  border-bottom: 1px solid var(--border);
}

.topbar-left {
  min-width: 300px;
}

.brand-form {
  margin: 0;
}

.brand-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.brand-seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #446487;
  color: #e6edf8;
  background: #1f4671;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #89a2bf;
}

.brand-title {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--heading);
  font-weight: 700;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.identity-strip {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #8fa8c4;
  background: #dce7f3;
}

.identity-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.identity-meta strong {
  color: #183655;
  font-size: 0.88rem;
}

.identity-meta span {
  color: #607287;
  font-size: 0.8rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

button,
input[type="submit"],
.btn,
.nav-btn {
  border: 1px solid #486b91;
  background: #224c7a;
  color: #fff;
  border-radius: 4px;
  min-height: 34px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.nav-btn:hover {
  background: #295688;
}

.btn-secondary {
  border-color: #7f95ae;
  background: #657c96;
}

.btn-secondary:hover {
  background: #7087a2;
}

.btn-minor {
  border-color: #8ba0b8;
  background: #f4f7fb;
  color: #203650;
  font-weight: 700;
}

.btn-minor:hover {
  background: #e8eef6;
}

.nav-btn-danger {
  border-color: #a2676e;
  background: #9c5a62;
}

.nav-btn-danger:hover {
  background: #a5656d;
}

.nav-logout {
  margin-left: 2px;
}

.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 20px 34px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(17, 39, 63, 0.06);
}

.panel h1,
.panel h2,
.panel h3 {
  color: var(--heading);
  margin-top: 0;
}

.panel h1 {
  margin-bottom: 6px;
}

.page-header {
  border-left: 4px solid #3e678f;
}

.page-subtitle {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.page-description {
  margin: 0;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.crumb-link {
  border: 0;
  background: transparent;
  color: #335a83;
  padding: 0;
  font-weight: 700;
  min-height: auto;
}

.crumb-link:hover {
  text-decoration: underline;
  background: transparent;
}

.crumb-current {
  color: #5d6f86;
  font-size: 0.85rem;
  font-weight: 700;
}

.crumb-sep {
  color: #8193a8;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-span {
  grid-column: 1 / -1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  border: 1px solid #cdd9e7;
  background: var(--surface-muted);
  border-radius: 7px;
  padding: 12px 14px;
}

.stat-card.warn {
  background: #fff9ee;
  border-color: #e4d0a8;
}

.stat-card .value {
  font-size: 1.7rem;
  color: #163457;
  font-weight: 800;
  line-height: 1.1;
}

.stat-card .label {
  margin-top: 6px;
  color: #55687f;
  font-size: 0.86rem;
  font-weight: 700;
}

.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.quick-form {
  margin: 0;
}

.quick-button {
  width: 100%;
  min-height: 94px;
  border: 1px solid #bfd0e2;
  border-radius: 6px;
  background: #f6f9fd;
  color: #193350;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
  font-weight: 700;
}

.quick-button:hover {
  background: #edf3fb;
}

.quick-button.secondary {
  background: #f2f4f7;
  border-color: #cfd7e1;
}

.quick-button.disabled {
  border-style: dashed;
  color: #607086;
  background: #f4f6f9;
}

.quick-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.quick-subtitle {
  font-size: 0.82rem;
  color: #5a6e87;
  font-weight: 600;
}

.module-categories {
  display: grid;
  gap: 12px;
}

.module-group h2,
.module-group h3 {
  margin: 0 0 10px;
}

.module-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.module-action-card {
  border: 1px solid #ccd8e6;
  border-radius: 6px;
  background: #f8fbff;
  padding: 10px;
}

.module-action-card.disabled {
  background: #f4f6f9;
  border-style: dashed;
}

.policy-matrix h4 {
  margin: 6px 0 8px;
  color: var(--heading);
}

.module-name {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #223d5a;
}

.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.list th,
.list td {
  border-bottom: 1px solid #d8e1eb;
  text-align: left;
  padding: 9px 8px;
  vertical-align: top;
}

.list th {
  background: #f3f7fb;
  color: #4d627a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.73rem;
}

.list.compact th,
.list.compact td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.list tbody tr:nth-child(2n) {
  background: #fafcff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b8c8db;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  font-size: 0.88rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(43, 95, 148, 0.25);
  outline-offset: 1px;
}

textarea {
  min-height: 120px;
  line-height: 1.45;
}

label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.84rem;
  color: #51667f;
  margin-right: 10px;
}

input[type="color"] {
  width: 92px;
  min-width: 92px;
  height: 36px;
  padding: 2px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 10px;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.search-panel {
  position: relative;
}

.search-form {
  position: relative;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 6px);
  z-index: 10;
  border: 1px solid #bfcde0;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(18, 39, 62, 0.16);
  overflow: hidden;
}

.search-suggestion-btn {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e1e8f1;
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  min-height: auto;
}

.search-suggestion-btn:last-child {
  border-bottom: 0;
}

.search-suggestion-btn:hover {
  background: #f0f6ff;
}

.suggest-title {
  font-weight: 700;
  display: block;
}

.suggest-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
}

.tag {
  display: inline-block;
  border: 1px solid #aebed1;
  background: #eef4fb;
  color: #2f4b69;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 8px;
}

.tag.warn {
  border-color: #d8c49a;
  background: #fff7e8;
  color: var(--warn);
}

.tag.danger {
  border-color: #d6a7ab;
  background: #fff1f2;
  color: var(--danger);
}

.tag.ok {
  border-color: #9ec9b3;
  background: #ebf8ef;
  color: var(--ok);
}

.module-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b4c5d9;
  border-radius: 999px;
  background: #eef4fb;
  color: #32506f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
}

.tiny-note,
.muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.mt-8 {
  margin-top: 8px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-12 {
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.detail-item {
  border: 1px solid #cfdae7;
  border-radius: 6px;
  background: #f8fbff;
  padding: 10px;
}

.detail-label {
  display: block;
  color: #5a6d84;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.detail-value {
  display: block;
  color: #21384f;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.mono {
  font-family: "Consolas", "Menlo", "Monaco", monospace;
}

pre.record-body {
  margin: 0;
  border: 1px solid #c8d5e5;
  border-radius: 6px;
  background: #f8fbff;
  padding: 12px;
  white-space: pre-wrap;
  line-height: 1.5;
}

pre.record-body.compact {
  padding: 8px 10px;
  font-size: 0.83rem;
}

.record-photo-wrap {
  border: 1px solid #cfdae7;
  border-radius: 6px;
  background: #f6f9fd;
  padding: 10px;
  display: flex;
  justify-content: center;
}

.record-photo {
  width: 100%;
  max-width: 820px;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid #c4d2e0;
  border-radius: 4px;
  background: #fff;
}

.viewer-wrap {
  position: relative;
  overflow: hidden;
}

.pdf-preview-box {
  position: relative;
  width: 100%;
  min-height: 72vh;
  max-height: 78vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid #b9c8d9;
  border-radius: 6px;
  background: #e8edf4;
}

.pdf-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pdf-page-canvas {
  display: block;
  max-width: 100%;
  background: #fff;
  border: 1px solid #c3d1e1;
  box-shadow: 0 3px 12px rgba(17, 39, 63, 0.18);
}

.viewer-loading {
  color: #4f647d;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  padding: 18px 8px;
}

.viewer-error {
  display: inline-flex;
  border: 1px solid #d6a7ab;
  border-radius: 999px;
  background: #fff1f2;
  color: #8f343a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
}

.viewer-blackout {
  display: none;
}

.viewer-blackout.active {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: #02050a;
  color: #f8fbff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.viewer-blackout strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.viewer-blackout span {
  color: #91a4bb;
  font-size: 0.78rem;
  font-weight: 800;
}

body.secure-viewer-blacked {
  background: #02050a;
}

.viewer-watermark-grid {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 0;
  min-height: 0;
  pointer-events: none;
  user-select: none;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 28px 18px;
  transform: rotate(-22deg) translateY(-12px);
  transform-origin: center;
}

.viewer-watermark-grid span {
  color: #9b111e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0.18;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-align: center;
}

@media print {
  body {
    background: #02050a !important;
  }

  body * {
    visibility: hidden !important;
  }

  .viewer-blackout,
  .viewer-blackout * {
    visibility: visible !important;
  }

  .viewer-blackout {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
  }
}

.covert-marker {
  position: absolute;
  font-size: 8px;
  user-select: none;
  pointer-events: none;
}

.select-agency-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 8px;
  border: 1px solid #9cb2ca;
  vertical-align: middle;
}

.auth-center {
  min-height: calc(100vh - 215px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.auth-card {
  width: 100%;
  max-width: 720px;
}

.error-panel {
  max-width: 760px;
}

.error-code {
  display: inline-block;
  border: 1px solid #ce9ea3;
  border-radius: 999px;
  padding: 3px 10px;
  color: #8f3a41;
  font-size: 0.78rem;
  margin-bottom: 7px;
}

.site-footer {
  padding: 0 22px 18px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #d3deea;
  padding-top: 10px;
}

.legal-content h2 {
  margin: 18px 0 8px;
  font-size: 1.04rem;
}

.legal-content ul {
  margin: 0 0 8px 18px;
  padding: 0;
}

.legal-content li {
  margin: 0 0 6px;
}

@media (max-width: 1200px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 12px 10px 20px;
  }

  .topbar,
  .system-ribbon {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark verification dashboard theme */
:root {
  --bg: #1f2936;
  --bg-accent: #111827;
  --surface: #172131;
  --surface-muted: #202c3d;
  --surface-strong: #111827;
  --border: #2b3a4f;
  --text: #f7f8fb;
  --muted: #9fb0c6;
  --heading: #ffffff;
  --primary: #52749b;
  --primary-2: #6687ad;
  --primary-soft: rgba(82, 116, 155, 0.16);
  --warn: #f2b84b;
  --danger: #b46b72;
  --ok: #70a783;
}

body {
  color: var(--text);
  background: var(--bg);
}

.layout-shell {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 12px 16px;
  background: #111827;
  border-right: 1px solid #2b3545;
}

.app-main {
  min-width: 0;
}

.system-ribbon {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 18px 32px;
  border: 0;
  border-bottom: 1px solid #2c3a4d;
  background: #28364d;
  color: #dce8ff;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar,
.site-footer {
  display: none;
}

.brand-wrap {
  padding: 0 16px 10px;
}

.brand-btn {
  width: 100%;
  gap: 12px;
  color: #fff;
}

.brand-seal {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.brand-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 8px;
  color: #aab8cd;
  font-size: 0.82rem;
  line-height: 1.35;
}

.topnav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
}

.nav-section {
  margin: 14px 0 4px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topnav .inline,
.sidebar .inline {
  display: block;
  width: 100%;
}

.nav-btn {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: transparent;
  color: #c9d5e7;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-btn:hover,
.nav-btn:focus {
  background: #222d3e;
  color: #fff;
}

.nav-btn-danger {
  background: transparent;
  color: #ff9ea1;
}

.nav-btn-danger:hover {
  background: rgba(255, 112, 116, 0.12);
  color: #fff;
}

.identity-strip {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid #2b3545;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #3b4c63;
}

.identity-meta strong {
  color: #fff;
}

.identity-meta span {
  color: #9fb0c6;
}

.nav-logout {
  padding: 0 12px;
}

.content {
  max-width: none;
  padding: 32px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(5, 9, 15, 0.18);
}

.page-header {
  border-left: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 0 18px;
}

.page-subtitle,
.detail-label,
.list th {
  color: #f4f7fb;
  letter-spacing: 0;
}

.page-header h1,
.panel h1,
.panel h2,
.panel h3,
.page-title {
  color: var(--heading);
}

.page-description,
.muted,
.tiny-note,
.quick-subtitle {
  color: var(--muted);
}

button,
input[type="submit"],
.btn,
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  background: #28364d;
  color: #fff;
  border-radius: 6px;
  min-height: 40px;
  padding: 9px 14px;
  font-weight: 850;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background: #33445f;
}

.panel button,
.panel input[type="submit"],
.btn {
  background: #2d3c54;
}

.panel button[type="submit"],
.panel .btn {
  background: var(--primary);
}

.panel button[type="submit"]:hover,
.panel .btn:hover {
  background: var(--primary-2);
}

.panel .btn-secondary,
.panel .btn-minor,
.panel button.btn-secondary,
.panel button.btn-minor {
  border: 1px solid #35475f;
  background: #243247;
  color: #dbe7f7;
}

.panel .btn-secondary:hover,
.panel .btn-minor:hover,
.panel button.btn-secondary:hover,
.panel button.btn-minor:hover {
  background: #2d3c54;
  color: #fff;
}

.btn-secondary,
.btn-minor,
.crumb-link {
  border: 1px solid #35475f;
  background: #243247;
  color: #dbe7f7;
}

.btn-secondary:hover,
.btn-minor:hover,
.crumb-link:hover {
  background: #2d3c54;
  color: #fff;
}

input,
select,
textarea {
  border: 1px solid #35475f;
  background: #101827;
  color: #f7f8fb;
  border-radius: 6px;
}

input::placeholder,
textarea::placeholder {
  color: #6f819a;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 59, 63, 0.35);
}

label {
  color: #cbd7e8;
  font-weight: 800;
}

.detail-item,
.stat-card,
.module-action-card,
.quick-button,
pre.record-body,
.record-photo-wrap {
  border-color: #2d3b50;
  background: var(--surface-muted);
  color: var(--text);
}

.quick-button {
  min-height: 88px;
  box-shadow: 0 8px 18px rgba(5, 9, 15, 0.16);
}

.quick-button:hover {
  background: #26354a;
}

.quick-title,
.detail-value,
.stat-card .value {
  color: #fff;
}

.stat-card .label {
  color: var(--muted);
}

.list {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.list th {
  background: #101827;
  color: #f7f8fb;
  border-bottom: 1px solid #2d3b50;
}

.list td {
  border-bottom: 1px solid #2d3b50;
  color: #e5edf7;
}

.list tbody tr:nth-child(2n) {
  background: rgba(255, 255, 255, 0.02);
}

.list tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tag {
  border-color: #3c526e;
  background: #243247;
  color: #dce8ff;
  border-radius: 999px;
}

.tag.ok {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.tag.warn {
  border-color: rgba(242, 184, 75, 0.3);
  background: rgba(242, 184, 75, 0.12);
  color: #facc6b;
}

.tag.danger,
.error-code {
  border-color: rgba(255, 112, 116, 0.3);
  background: rgba(255, 112, 116, 0.12);
  color: #ff9ea1;
}

.breadcrumbs,
.crumb-current,
.crumb-sep {
  color: #8fa2ba;
}

.search-suggestions {
  border-color: #35475f;
  background: #111827;
}

.search-suggestion-btn {
  background: #111827;
  color: #f7f8fb;
  border-bottom-color: #2d3b50;
}

.search-suggestion-btn:hover {
  background: #202c3d;
}

.auth-center {
  min-height: calc(100vh - 120px);
}

.topnav .nav-btn {
  justify-content: flex-start;
  background: transparent;
  color: #c9d5e7;
}

.topnav .nav-btn:hover,
.topnav .nav-btn:focus {
  background: #222d3e;
  color: #fff;
}

@media (max-width: 1000px) {
  .layout-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 18px 12px;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .nav-section {
    grid-column: 1 / -1;
  }

  .identity-strip {
    margin-top: 8px;
  }

  .content {
    padding: 20px 14px;
  }
}

/* MUST Intelligence Portal - Confidentiality Notice */
.confidentiality-notice {
  background: var(--surface-muted);
  color: var(--text);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: none;
  margin-bottom: 20px;
}

.confidentiality-notice h2 {
  color: var(--heading);
  margin: 0 0 15px 0;
  font-size: 1.8em;
  font-weight: 700;
}

.confidentiality-notice p {
  margin: 10px 0;
  font-size: 0.95em;
  line-height: 1.6;
  opacity: 0.95;
}
