.address-follow-up { color: #FDE68A !important; }
/* FAS Buster Product Design Guide v1.1, adapted for Carrier Intelligence KYC.
   Source guide supplied by owner, 2026-10-09. No external fonts or resources. */
:root {
  color-scheme: dark;
  --background: #07111F;
  --surface: #0D1C2F;
  --surface-raised: #10243A;
  --surface-selected: #14334A;
  --border: #29435E;
  --border-control: #35516B;
  --text: #E7EEF8;
  --text-muted: #9BB0C8;
  --brand: #0891B2;
  --brand-hover: #0E9FBE;
  --brand-soft: #67C6DB;
  --on-brand: #06131D;
  --radius-control: 8px;
  --radius-card: 12px;
  /* Compatibility aliases for established components. */
  --ink: var(--text);
  --muted: var(--text-muted);
  --teal: var(--brand-soft);
  --paper: var(--background);
  --line: var(--border);
  --white: var(--surface);
  --dark: var(--surface);
  --amber: #FDE68A;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--background);
}
body { background: var(--background); line-height: 1.5; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.5px; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.3px; }
h3 { font-size: 18px; line-height: 1.4; }
a { color: var(--brand-soft); }
a:hover { text-decoration: underline; }
.eyebrow { color: var(--brand-soft); font-size: 12px; letter-spacing: 1.4px; }
button, .sso-button { min-height: 44px; border-radius: var(--radius-control); transition: background-color 150ms, border-color 150ms; }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
.primary { background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand); }
.primary:hover:not(:disabled), .sso-button:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); text-decoration: none; }
.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-control); }
.actions > a.secondary {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:var(--radius-control);text-decoration:none;}
.secondary:hover:not(:disabled), .quiet:hover:not(:disabled) { background: var(--surface-raised); color: var(--text); }
.quiet { color: var(--text-muted); border: 1px solid transparent; }
:is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
input, textarea, select { color: var(--text); background: var(--surface); border-color: var(--border-control); border-radius: var(--radius-control); min-height: 44px; padding: 12px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
input:focus,textarea:focus,select:focus { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
input[type=checkbox], input[type=radio] { display: inline-block; width: 20px; height: 20px; min-height: 0; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--brand); }
input[type=file]::file-selector-button { background: var(--surface-raised); color: var(--text); border: 1px solid var(--border-control); border-radius: 8px; padding: 8px 12px; margin-right: 12px; }
label, .help, .muted { color: var(--text-muted); }
label { line-height: 1.5; }
.error { color: #FECDD3; font-size: 14px; }
.sidebar { width: 240px; background: var(--surface); border-right: 1px solid var(--border); padding: 24px 16px; }
.main-shell { margin-left: 240px; width: calc(100% - 240px); }
.brand { letter-spacing: .8px; color: var(--text); }
.brand-mark { color: var(--brand-soft); border-color: var(--brand); font-family: Arial, Helvetica, sans-serif; font-weight: 700; border-radius: 8px; }
.brand-caption { color: var(--text-muted); font-size: 10px; letter-spacing: 1px; }
.nav-caption { color: var(--text-muted); font-size: 11px; margin: 32px 12px 12px; }
nav a { color: var(--text-muted); border-radius: 8px; min-height: 44px; }
nav a:hover { background: var(--surface-raised); color: var(--text); text-decoration: none; }
nav a.active { background: var(--surface-selected); color: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
nav a span { font-size: 14px; }
.sidebar-bottom, .sidebar-bottom p { color: var(--text-muted); font-size: 12px; }
.sidebar-bottom a { display: block; min-height: 44px; padding: 12px 0; color: var(--text-muted); }
.sidebar-bottom a.active { color: var(--brand-soft); }
.sidebar-bottom br { display: none; }
.environment-dot { background: var(--brand-soft); }
.topbar { background: var(--surface); color: var(--text-muted); height: auto; min-height: 74px; padding: 16px 32px; gap: 16px; flex-wrap: wrap; }
.topbar strong { color: var(--text); }
.user-tools { flex-wrap: wrap; }
main { padding: 32px; }
.page-heading { margin-bottom: 24px; }
.metric, .panel { background: var(--surface); border-color: var(--border); border-radius: var(--radius-card); }
.metric { padding: 20px; }
.panel { padding: 20px; margin-bottom: 24px; }
.metric small, .metric span, .list-row small, .evidence dt { color: var(--text-muted); font-size: 12px; }
.metric strong { font-size: 32px; color: var(--text); }
.list-row, td, .evidence dt, .evidence dd { border-bottom-color: var(--border); }
.tag { color: var(--text-muted); background: var(--surface); border: 1px solid var(--border-control); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.tag.amber, .notice { color: #FDE68A; background: rgb(252 211 77 / 5%); border-color: rgb(252 211 77 / 40%); }
.notice { border-left-width: 3px; border-radius: 8px; font-size: 13px; }
.tag.success { color: var(--brand-soft); border-color: rgb(8 145 178 / 40%); background: rgb(8 145 178 / 10%); }
.tag.error { color: #FECDD3; border-color: rgb(251 113 133 / 30%); background: rgb(251 113 133 / 15%); }
.tag.info { color: #E0F2FE; border-color: rgb(125 211 252 / 20%); background: rgb(125 211 252 / 10%); }
table { font-size: 14px; }
th { background: var(--surface-raised); color: var(--text-muted); font-size: 12px; text-transform: none; letter-spacing: .2px; padding: 12px 16px; }
td { padding: 16px; }
td small { color: var(--text-muted); font-size: 12px; }
tbody tr:hover { background: var(--surface-raised); }
tbody tr[aria-selected=true] { background: var(--surface-selected); }
.table-wrap { max-width: 100%; }
.table-wrap table { min-width: 560px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.evidence { font-size: 14px; }
.timeline-item { font-size: 14px; }
.timeline-item small { font-size: 12px; }
.timeline-item:before { background: var(--brand-soft); border-color: var(--surface); }
dialog { background: var(--surface); color: var(--text); border-color: var(--border); padding: 24px; max-height: 90dvh; overflow-y: auto; box-shadow: 0 24px 80px #0008; }
dialog::backdrop { background: rgb(7 17 31 / 80%); }
dialog .panel-heading { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
dialog .panel-heading h2 { margin: 0; }
.actions { flex-wrap: wrap; }
.table-wrap + .actions { margin-top: 20px; }
#toast { background: var(--surface-raised); color: var(--brand-soft); border: 1px solid rgb(8 145 178 / 40%); max-width: min(480px,calc(100vw - 32px)); }
#impersonation-banner { background: #28251c; color: #FDE68A; border-bottom-color: #FCD34D; }
.pdf-source-panel { background: rgb(252 211 77 / 5%); border-color: rgb(252 211 77 / 40%); }
/* A PDF canvas stays white: preserve the original document, never invert it. */
.pdf-source-canvas { background: white; border-color: var(--border-control); }

/* PDF mapping is an evidence editor, not a dense registry table. */
#entity-dialog:has(#pdf-map-form) { width: min(1200px, calc(100vw - 48px)); }
#pdf-map-form > .table-wrap { overflow: visible; }
#pdf-map-form > .table-wrap table { display: block; min-width: 0; width: 100%; }
#pdf-map-form > .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#pdf-map-form > .table-wrap tbody { display: grid; gap: 20px; }
#pdf-map-form > .table-wrap tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
#pdf-map-form > .table-wrap td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; }
#pdf-map-form > .table-wrap td:first-child { grid-column: 1 / -1; font-size: 16px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
#pdf-map-form > .table-wrap td:first-child small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); font-weight: 400; }
#pdf-map-form > .table-wrap td:nth-child(2)::before { content: 'Original value'; }
#pdf-map-form > .table-wrap td:nth-child(3)::before { content: 'Map to'; }
#pdf-map-form > .table-wrap td:nth-child(4)::before { content: 'Reviewed value'; }
#pdf-map-form > .table-wrap td:nth-child(n+2):nth-child(-n+4)::before { display: block; color: var(--text-muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
#pdf-map-form > .table-wrap td:last-child { grid-column: 1 / -1; }
#pdf-map-form > .table-wrap :is(select,textarea) { width: 100%; max-width: 100%; box-sizing: border-box; font-size: 15px; line-height: 1.6; }
#pdf-map-form > .table-wrap textarea { min-height: 112px; resize: vertical; }
#pdf-map-form > .table-wrap select { min-height: 48px; padding-right: 28px; }
.pdf-map-caption { margin: 8px 0 0; color: var(--text); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
@media(max-width:1100px) {
  #pdf-map-form > .table-wrap tr { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #pdf-map-form > .table-wrap td:nth-child(2) { grid-column: 1 / -1; }
}
@media(max-width:700px) {
  #entity-dialog:has(#pdf-map-form) { width: calc(100vw - 24px); padding: 16px; }
  #pdf-map-form > .table-wrap tr { grid-template-columns: minmax(0,1fr); padding: 16px; }
}
.login-story { background: var(--surface); color: var(--text); }
.login-story h1 { font: 600 40px/1.2 Arial, Helvetica, sans-serif; letter-spacing: -.5px; }
.login-story .eyebrow { color: var(--brand-soft); }
.lead, .subtle { color: var(--text-muted); }
.login-form-wrap { background: var(--background); }
.sso-card, .login-form-wrap form { padding: 24px; width: min(420px,100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.login-form-wrap h2 { font-size: 28px; }
.sso-card .sso-button + .sso-button { margin-top: 12px; background: var(--surface); border-color: var(--border-control); color: var(--text); }
.sso-card .sso-button + .sso-button:hover { background: var(--surface-raised); }
@media(max-width:1000px) {
  .sidebar { width: 240px; }
  .main-shell { margin-left: 240px; width: calc(100% - 240px); }
  main { padding: 24px; }
  .topbar { padding: 16px 24px; }
}
@media(max-width:760px) {
  .workspace { display: block; }
  .sidebar { position: relative; width: 100%; padding: 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .main-shell { margin: 0; width: 100%; }
  .sidebar .brand { font-size: 14px; }
  .nav-caption { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  nav a { flex: 1 1 140px; padding: 12px; justify-content: flex-start; }
  nav a span { font-size: 14px; }
  .sidebar-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 0 0; }
  .sidebar-bottom p, .environment-dot { display: none; }
  .sidebar-bottom a { padding: 12px 0; }
  .topbar { padding: 12px 20px; font-size: 12px; }
  main { padding: 24px 20px; }
  .page-heading { display: flex; flex-wrap: wrap; }
  h1 { font-size: 26px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-two, .detail-grid { display: grid; grid-template-columns: minmax(0,1fr); }
  .toolbar input { width: 100%; }
  .panel, .metric { padding: 16px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 24px; gap: 24px; }
  .login-story h1 { font-size: 30px; }
  .login-form-wrap { padding: 24px 20px; }
  .login-story .subtle { display: none; }
  .pdf-source-panel .actions { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.portfolio-filters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px;margin-bottom:20px;border:1px solid var(--border);border-radius:12px;}
.portfolio-filters label {display:flex;flex-direction:column;gap:8px;min-width:0;}
.portfolio-filters input,.portfolio-filters select {width:100%;min-height:44px;}
.portfolio-filters .actions {grid-column:1/-1;}
@media(max-width:900px){.portfolio-filters {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:550px){.portfolio-filters {grid-template-columns:1fr;}}
.screening-text {white-space:pre-wrap;overflow-wrap:anywhere;}
#screening-review-form {display:grid;gap:16px;margin-top:20px;}
.fcc-page-text {white-space:pre-wrap;overflow-wrap:anywhere;max-height:640px;overflow:auto;background:#0b1b2c;color:#d8e8f2;padding:20px;border:1px solid #3c5066;border-radius:8px;font-size:14px;line-height:1.6;}
#content:has(#fcc-search) small,#fcc-page p {overflow-wrap:anywhere;}
.compact-section {border:1px solid #2e485c;border-radius:12px;background:#0c1b2d;margin:12px 0;min-width:0;}
.compact-section > summary {display:grid;grid-template-columns:1fr auto;gap:6px 16px;padding:18px 20px;cursor:pointer;list-style:none;}
.compact-section > summary::-webkit-details-marker {display:none;}
.compact-title {font-size:17px;font-weight:650;color:#e0eef9;}
.compact-status {grid-column:1;color:#aec4d6;font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.compact-hint {grid-column:2;grid-row:1 / span 2;align-self:center;color:#35b8d0;font-size:13px;}
.compact-section > summary:focus-visible {outline:2px solid #35b8d0;outline-offset:3px;border-radius:12px;}
.compact-section > .panel {border:0;margin:0;border-top:1px solid #2e485c;border-radius:0 0 12px 12px;}
#content:has(.compact-section) > .grid-two {display:block;}
.rmd-quick-summary { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; margin:0 0 1.2rem; }
.rmd-quick-summary small { flex-basis:100%; color:var(--text-muted); }
#rmd-details,#form499-details { scroll-margin-top:2rem; }
.filing-quick-group { display:inline-flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin-right:1rem; }
.form499-group,.form499-region-summary { margin:.8rem 0; padding:.8rem; border:1px solid var(--border); border-radius:.5rem; }
.form499-group > summary { cursor:pointer; color:var(--text); }
.form499-state-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:.4rem 1rem; }
.form499-state-grid > div { display:flex; justify-content:space-between; gap:.5rem; border-bottom:1px solid var(--border); padding:.35rem 0; }
.form499-state-grid dt,.form499-state-grid dd { margin:0; font-size:.85rem; }
