:root {
  color-scheme: dark;
  --bg: #07110f;
  --bg-deep: #050d0b;
  --surface: #0b1714;
  --surface-raised: #0f1e1a;
  --surface-soft: #11231e;
  --line: rgba(154, 193, 180, 0.16);
  --line-strong: rgba(154, 193, 180, 0.28);
  --ink: #f1f6f3;
  --ink-soft: #b8c8c2;
  --ink-muted: #81958e;
  --mint: #71e1b5;
  --mint-soft: #44ba91;
  --teal: #4da9a0;
  --blue: #6eabc7;
  --amber: #d6ad5b;
  --rose: #c7857e;
  --danger: #bd706c;
  --radius: 14px;
  --header-height: 64px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body { margin: 0; overflow: hidden; background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
svg { display: block; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }

.atlas-app { height: 100svh; min-height: 0; overflow: hidden; }
.atlas-header { height: var(--header-height); display: flex; align-items: center; gap: 24px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(5, 13, 11, .94); position: relative; z-index: 40; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 33px; height: 33px; fill: var(--ink); }
.brand-mark ellipse { fill: none; stroke: var(--mint); stroke-width: 1.7; }
.brand-mark .brand-satellite { fill: var(--amber); }
.brand > span { display: grid; gap: 2px; }
.brand strong { font-size: 12px; line-height: 1; letter-spacing: .17em; text-transform: uppercase; }
.brand small { color: var(--ink-muted); font-size: 9px; letter-spacing: .02em; }
.header-note { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 10px; white-space: nowrap; }
.header-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(113, 225, 181, .08); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.quiet-button, .icon-button { border: 1px solid var(--line); background: transparent; cursor: pointer; }
.quiet-button { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 10px; color: var(--ink-soft); font-size: 11px; }
.quiet-button:hover, .icon-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.025); color: var(--ink); }
.quiet-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.atlas-main { height: calc(100svh - var(--header-height)); min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.question-bar { min-height: 82px; display: grid; grid-template-columns: minmax(280px, 340px) minmax(350px, 520px); justify-content: center; align-items: center; gap: 16px; padding: 8px 24px 10px; border-bottom: 1px solid var(--line); background: var(--bg-deep); position: relative; z-index: 30; }
.question-control { min-width: 0; display: grid; gap: 7px; position: relative; }
.question-control > span:first-child { color: var(--ink-soft); font-size: 11px; font-weight: 590; }
.select-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 7px; }
.select-wrap { height: 47px; min-width: 0; display: flex; align-items: center; position: relative; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.select-wrap:hover, .select-wrap:focus-within { border-color: rgba(113,225,181,.5); background: var(--surface-raised); }
.select-wrap select { width: 100%; height: 100%; min-width: 0; appearance: none; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 42px 0 14px; cursor: pointer; font-size: 14px; font-weight: 620; text-overflow: ellipsis; }
.select-wrap select option, .select-wrap select optgroup { color: #10201b; background: #f4f7f5; }
.select-wrap > svg { position: absolute; right: 13px; width: 17px; height: 17px; fill: none; stroke: var(--ink-muted); stroke-width: 1.7; pointer-events: none; }
.add-passport { width: 42px; height: 47px; border: 1px solid rgba(113,225,181,.35); border-radius: 11px; background: rgba(113,225,181,.08); color: var(--mint); font-size: 23px; font-weight: 300; cursor: pointer; }
.add-passport:hover { background: rgba(113,225,181,.14); border-color: var(--mint); }
.passport-manager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.passport-manager:empty { display: none; }
.passport-chip { height: 22px; max-width: 145px; display: inline-flex; align-items: center; gap: 5px; padding: 0 5px 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-size: 9px; white-space: nowrap; }
.passport-chip span { overflow: hidden; text-overflow: ellipsis; }
.passport-chip button { width: 17px; height: 17px; border: 0; background: transparent; color: var(--ink-muted); padding: 0; cursor: pointer; border-radius: 50%; }
.passport-chip button:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.map-summary { position: absolute; z-index: 5; top: 17px; left: 18px; max-width: min(390px, calc(100% - 160px)); margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5,14,12,.78); color: var(--ink-muted); font-size: 9px; line-height: 1.35; pointer-events: none; }
.map-summary strong { color: var(--ink-soft); font-weight: 600; }

.map-shell, .map-stage { min-height: 0; height: 100%; }
.map-stage { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 52% 43%, rgba(28,72,60,.2), transparent 48%), linear-gradient(180deg, #081511 0%, #06100e 100%); }
.map-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; box-shadow: inset 0 0 90px rgba(0,0,0,.34); }
.map-loading { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-muted); font-size: 10px; letter-spacing: .08em; }
.map-loading span { width: 24px; height: 24px; border: 1px solid var(--line-strong); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.world-map { width: 100%; height: 100%; position: relative; z-index: 1; touch-action: none; user-select: none; }
.world-map.dragging { cursor: grabbing; }
.map-graticule path { fill: none; stroke: rgba(147,183,171,.055); stroke-width: .65; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-countries path { fill: url(#pattern-unknown); stroke: #426158; stroke-width: .62; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .12s ease, opacity .12s ease, stroke .12s ease; }
.map-countries path:hover, .map-countries path:focus-visible, .map-countries path.focused { stroke: var(--ink); stroke-width: 1.4; z-index: 3; }
.map-countries path[data-state="strong"] { fill: #55cba0; stroke: #a1efd1; }
.map-countries path[data-state="conditional"] { fill: #ad873c; stroke: #e1bf75; }
.map-countries path[data-state="poor"] { fill: #805a58; stroke: #c88782; }
.map-countries path[data-state="unavailable"] { fill: #2e3835; stroke: #754f4d; }
.map-countries path[data-state="na"] { fill: #1a2824; stroke: #52645f; stroke-dasharray: 2 2; }
.map-countries path[data-state="unknown"] { fill: url(#pattern-unknown); }
.map-countries path[data-state="stale"] { fill: url(#pattern-stale); stroke: #b58b39; }
.map-countries path[data-travel="visa_free"] { fill: #58cfa3; stroke: #a4efd3; }
.map-countries path[data-travel="eta"] { fill: #4faaa4; stroke: #9adbd4; }
.map-countries path[data-travel="visa_on_arrival"] { fill: #588eaa; stroke: #9ac7dd; }
.map-countries path[data-travel="e_visa"] { fill: #aa843c; stroke: #e2bd70; }
.map-countries path[data-travel="visa_required"] { fill: #725554; stroke: #bb807c; }
.map-countries path[data-travel="no_admission"] { fill: #2d2928; stroke: #8a5a56; }
.map-countries path[data-travel="unknown"] { fill: url(#pattern-unknown); }
.map-countries path[data-layer="positive"], .map-countries path[data-layer="2027"] { fill: #58cfa3; stroke: #a4efd3; }
.map-countries path[data-layer="partial"], .map-countries path[data-layer="2028"], .map-countries path[data-layer="model2"] { fill: #a98542; stroke: #e1bd73; }
.map-countries path[data-layer="negative"] { fill: #725554; stroke: #bc817d; }
.map-countries path[data-layer="not_listed"] { fill: #283733; stroke: #657c75; }
.map-marker { cursor: pointer; }
.map-marker circle:first-child { fill: rgba(4,14,11,.82); stroke: #426d61; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-marker circle:last-child { fill: var(--ink-muted); }
.map-marker[data-state="strong"] circle:last-child { fill: var(--mint); }
.map-marker[data-state="conditional"] circle:last-child { fill: var(--amber); }
.map-marker[data-state="poor"] circle:last-child { fill: var(--rose); }
.map-marker[data-state="unavailable"] circle:last-child { fill: var(--danger); }
.map-marker[data-state="stale"] circle:last-child { fill: var(--amber); stroke: #f1d18c; stroke-width: 1; }
.map-marker[data-state="na"] circle:last-child { fill: transparent; stroke: var(--ink-muted); stroke-width: 1; }
.map-marker:hover circle:first-child, .map-marker:focus-visible circle:first-child { stroke: var(--ink); }

.map-tools { position: absolute; z-index: 6; top: 18px; right: 18px; display: grid; gap: 6px; }
.map-tools button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(6,16,14,.88); color: var(--ink-soft); cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.map-tools button:hover { color: var(--ink); border-color: rgba(113,225,181,.45); }
.map-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.map-instruction { position: absolute; z-index: 4; top: 17px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(6,16,14,.72); color: var(--ink-muted); font-size: 9px; letter-spacing: .05em; pointer-events: none; }
.map-bottom-bar { position: absolute; z-index: 5; left: 18px; right: 18px; bottom: 15px; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; pointer-events: none; }
.map-legend-wrap { pointer-events: auto; }
.map-legend { max-width: min(760px, 72vw); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,14,12,.84); box-shadow: 0 8px 24px rgba(0,0,0,.18); pointer-events: auto; }
.legend-toggle { display: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(5,14,12,.9); color: var(--ink-soft); font-size: 10px; cursor: pointer; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-muted); font-size: 8px; white-space: nowrap; }
.legend-item i { width: 8px; height: 8px; border-radius: 2px; border: 1px solid rgba(255,255,255,.18); background: #33453f; }
.legend-item i.strong, .legend-item i.visa_free { background: #58cfa3; }
.legend-item i.eta { background: #4faaa4; }
.legend-item i.arrival { background: #588eaa; }
.legend-item i.conditional, .legend-item i.evisa { background: #aa843c; }
.legend-item i.poor, .legend-item i.visa { background: #725554; }
.legend-item i.unavailable { background: #2d2928; }
.legend-item i.na { background: #283733; border-style: dashed; }
.legend-item i.unknown { background: repeating-linear-gradient(135deg,#182622 0 2px,#4c625b 2px 3px); }
.legend-item i.stale { background: repeating-linear-gradient(135deg,#2a2418 0 3px,#b58b39 3px 4px); }
.map-evidence { padding: 8px 10px; border-radius: 8px; background: rgba(5,14,12,.74); color: var(--ink-muted); font-size: 8px; text-align: right; white-space: nowrap; }
.map-tooltip { position: absolute; z-index: 20; top: 0; left: 0; width: min(330px, calc(100% - 16px)); max-height: min(360px, calc(100% - 16px)); overflow: auto; padding: 14px; border: 1px solid rgba(125,204,174,.34); border-radius: 13px; background: rgba(8,20,17,.97); box-shadow: var(--shadow); pointer-events: auto; }
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.preview-country { display: grid; gap: 3px; min-width: 0; }
.preview-country h2 { margin: 0; font-size: 15px; line-height: 1.2; }
.preview-country p { margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.35; }
.status-badge { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border: 1px solid currentColor; border-radius: 999px; color: var(--ink-muted); font-size: 7px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.status-badge.strong { color: var(--mint); }
.status-badge.conditional, .status-badge.stale { color: var(--amber); }
.status-badge.poor, .status-badge.unavailable { color: var(--rose); }
.preview-why { margin: 11px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.preview-grid { display: grid; border-top: 1px solid var(--line); }
.preview-fact { min-width: 0; display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 9px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.preview-fact span { color: var(--ink-muted); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.preview-fact strong { display: block; overflow: hidden; color: var(--ink-soft); font-size: 9px; line-height: 1.4; text-align: right; text-overflow: ellipsis; }
.preview-points { display: grid; gap: 5px; margin: 11px 0; }
.preview-point { display: grid; grid-template-columns: 14px 1fr; gap: 5px; color: var(--ink-muted); font-size: 9px; line-height: 1.45; }
.preview-point.good b { color: var(--mint); }
.preview-point.warn b { color: var(--amber); }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.preview-footer small { color: var(--ink-muted); font-size: 7px; line-height: 1.4; }
.preview-open { border: 0; padding: 6px 0 6px 8px; background: transparent; color: var(--mint); font-size: 9px; font-weight: 650; cursor: pointer; white-space: nowrap; }

dialog { padding: 0; color: var(--ink); border: 0; background: transparent; }
dialog::backdrop { background: rgba(1,7,5,.7); backdrop-filter: blur(5px); }
.mini-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.dialog-card { padding: 20px; }
.dialog-heading, .sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-heading small, .sheet-heading small { display: block; margin-bottom: 4px; color: var(--mint); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.dialog-heading h2, .sheet-heading h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.sheet-heading p { max-width: 460px; margin: 6px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.close-button { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-muted); font-size: 22px; font-weight: 300; cursor: pointer; }
.close-button:hover { color: var(--ink); border-color: var(--line-strong); }
.dialog-field { display: grid; gap: 7px; margin: 22px 0 12px; }
.dialog-field > span, .profile-grid label > span:first-child { color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.dialog-field select, .profile-grid input, .profile-grid select, .profile-grid textarea, .browse-search input { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--ink); padding: 0 12px; outline: none; }
.dialog-field select:focus, .profile-grid input:focus, .profile-grid select:focus, .profile-grid textarea:focus, .browse-search:focus-within { border-color: rgba(113,225,181,.55); }
.fine-print { color: var(--ink-muted); font-size: 9px; line-height: 1.5; }
.primary-button, .secondary-button { min-height: 42px; border-radius: 9px; padding: 0 15px; font-weight: 650; cursor: pointer; }
.primary-button { border: 1px solid var(--mint); background: var(--mint); color: #07140f; }
.primary-button:hover { background: #8bebca; }
.secondary-button { border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); }
.secondary-button:hover { border-color: rgba(113,225,181,.5); color: var(--ink); }

.sheet-dialog { width: min(590px, 100vw); height: 100svh; max-height: 100svh; margin: 0 0 0 auto; border-left: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.sheet-dialog.compact-sheet { width: min(500px, 100vw); }
.sheet-card { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.sheet-heading { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.sheet-content, .browse-list, .saved-list, .orbit-content, .brief-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 22px 28px; }
.sheet-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.sheet-footer > span { color: var(--ink-muted); font-size: 9px; }

.detail-hero { padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail-hero > p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.detail-tags span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); font-size: 8px; }
.at-a-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.glance-item { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.glance-item span { display: block; margin-bottom: 5px; color: var(--ink-muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.glance-item strong { color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.detail-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-block h3 { margin: 0 0 8px; font-size: 12px; }
.detail-block p, .detail-block li { color: var(--ink-muted); font-size: 10px; line-height: 1.6; }
.detail-block p { margin: 0 0 8px; }
.detail-block ul { margin: 0; padding-left: 18px; }
.gate-list { display: grid; gap: 6px; }
.gate-row { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.02); }
.gate-row > b { color: var(--mint); }
.gate-row.failed > b { color: var(--rose); }
.gate-row.unresolved > b { color: var(--amber); }
.gate-row strong { display: block; color: var(--ink-soft); font-size: 9px; }
.gate-row p { margin: 2px 0 0; font-size: 9px; }
.reading { margin: 18px 0 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: clip; }
.reading summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; color: var(--ink); font-size: 11px; font-weight: 650; cursor: pointer; list-style: none; }
.reading summary::-webkit-details-marker { display: none; }
.reading summary::after { content: "+"; color: var(--mint); font-size: 18px; font-weight: 300; }
.reading[open] summary::after { content: "−"; }
.reading-body { padding: 0 13px 15px; border-top: 1px solid var(--line); }
.reading-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.reading-section:last-child { border-bottom: 0; }
.reading-section h4 { margin: 0 0 6px; color: var(--ink-soft); font-size: 10px; }
.reading-section p, .reading-section li { margin: 0; color: var(--ink-muted); font-size: 9px; line-height: 1.65; }
.reading-section ul { margin: 0; padding-left: 17px; }
.source-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.source-list a { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.source-list a:hover { border-color: rgba(113,225,181,.38); }
.source-list b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: rgba(113,225,181,.08); color: var(--mint); font-size: 8px; }
.source-list strong { display: block; color: var(--ink-soft); font-size: 9px; }
.source-list small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 7px; }
.source-list svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-muted); stroke-width: 1.5; }
.detail-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }

.browse-dialog .sheet-card { grid-template-rows: auto auto minmax(0, 1fr); }
.browse-search { height: 44px; display: grid; grid-template-columns: 22px 1fr; align-items: center; margin: 12px 22px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); padding: 0 10px; }
.browse-search svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-muted); stroke-width: 1.6; }
.browse-search input { min-height: 40px; border: 0; padding: 0 5px; background: transparent; }
.browse-list { display: grid; align-content: start; gap: 5px; }
.country-row { min-height: 58px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: transparent; padding: 8px 10px; text-align: left; cursor: pointer; }
.country-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.country-row strong { display: block; font-size: 11px; }
.country-row small { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 8px; }
.country-row .status-badge { font-size: 6px; }

.menu-dialog { width: min(420px, calc(100vw - 20px)); max-height: calc(100svh - 20px); margin: 70px 12px auto auto; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.menu-card { padding: 17px; }
.menu-list { display: grid; gap: 5px; margin: 18px 0; }
.menu-list > button { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 1px solid transparent; border-radius: 9px; background: transparent; padding: 8px 10px; text-align: left; cursor: pointer; }
.menu-list > button:hover { border-color: var(--line); background: rgba(255,255,255,.02); }
.menu-list strong { display: block; font-size: 11px; }
.menu-list small { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 8px; }
.menu-list b { color: var(--mint); font-weight: 400; }
.menu-links { display: flex; flex-wrap: wrap; gap: 7px 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.menu-links button { border: 0; background: transparent; color: var(--ink-muted); padding: 4px 0; font-size: 8px; cursor: pointer; }
.menu-links button:hover { color: var(--ink); }

.profile-dialog { width: min(650px, 100vw); }
.profile-form { min-height: 0; overflow: auto; padding: 0 22px 24px; }
.profile-form details { border-bottom: 1px solid var(--line); }
.profile-form summary { min-height: 66px; display: flex; flex-direction: column; justify-content: center; gap: 4px; position: relative; padding: 8px 34px 8px 0; list-style: none; cursor: pointer; }
.profile-form summary::-webkit-details-marker { display: none; }
.profile-form summary::after { content: "+"; position: absolute; right: 5px; color: var(--mint); font-size: 20px; font-weight: 300; }
.profile-form details[open] summary::after { content: "−"; }
.profile-form summary span { font-size: 12px; font-weight: 650; }
.profile-form summary small { color: var(--ink-muted); font-size: 8px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 0 0 18px; }
.profile-grid label { min-width: 0; display: grid; gap: 6px; }
.profile-grid label.wide { grid-column: 1 / -1; }
.profile-grid textarea { min-height: 78px; resize: vertical; padding-top: 10px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.check-grid label { min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-muted); font-size: 8px; cursor: pointer; }
.check-grid input { width: 14px; height: 14px; accent-color: var(--mint); }
.household-list { display: grid; gap: 8px; padding-bottom: 10px; }
.member-card { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.member-card label { display: grid; gap: 5px; }
.member-card label > span { color: var(--ink-muted); font-size: 8px; }
.member-card input, .member-card select { min-width: 0; height: 39px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--ink); padding: 0 8px; }
.remove-member { width: 32px; height: 32px; align-self: end; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.add-member { margin-bottom: 18px; }

.saved-list, .orbit-content { padding-top: 16px; display: grid; align-content: start; gap: 8px; }
.saved-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.saved-row strong { font-size: 10px; }
.saved-row small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 8px; }
.saved-actions { display: flex; gap: 5px; }
.saved-actions button { min-height: 32px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 8px; cursor: pointer; }
.empty-state { padding: 30px 12px; color: var(--ink-muted); font-size: 10px; line-height: 1.6; text-align: center; }
.orbit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.orbit-card { min-height: 110px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.orbit-card span { color: var(--ink-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.orbit-card strong { display: block; margin: 8px 0 5px; color: var(--mint); font-size: 25px; font-weight: 580; }
.orbit-card p { margin: 0; color: var(--ink-muted); font-size: 8px; line-height: 1.5; }

.brief-content { padding-top: 18px; color: #26332e; background: #eef2ef; }
.brief-doc { max-width: 720px; margin: 0 auto; padding: 28px; background: #fff; color: #26332e; box-shadow: 0 8px 28px rgba(0,0,0,.13); }
.brief-doc header { padding-bottom: 16px; border-bottom: 1px solid #ced8d3; }
.brief-doc header small { color: #587168; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.brief-doc h2 { margin: 6px 0; font-size: 24px; }
.brief-doc header p { margin: 0; color: #64766f; font-size: 10px; }
.brief-doc section { padding: 16px 0; border-bottom: 1px solid #dbe2de; }
.brief-doc section:last-child { border-bottom: 0; }
.brief-doc h3 { margin: 0 0 8px; font-size: 12px; }
.brief-doc p, .brief-doc li { font-size: 10px; line-height: 1.6; }
.brief-doc ol, .brief-doc ul { margin: 0; padding-left: 19px; }
.brief-table { width: 100%; border-collapse: collapse; }
.brief-table th, .brief-table td { padding: 8px 5px; border-bottom: 1px solid #dbe2de; font-size: 9px; text-align: left; vertical-align: top; }

.info-content { padding-top: 15px; color: var(--ink-muted); font-size: 10px; line-height: 1.7; }
.info-content h3 { margin: 16px 0 5px; color: var(--ink-soft); font-size: 11px; }
.info-content p { margin: 0 0 8px; }
.info-content ul { padding-left: 18px; }
.info-content button { border: 0; background: transparent; color: var(--mint); padding: 0; cursor: pointer; }
.toast-region { position: fixed; z-index: 100; right: 16px; bottom: 16px; pointer-events: none; }
.toast { max-width: 330px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-raised); color: var(--ink-soft); box-shadow: var(--shadow); font-size: 9px; line-height: 1.5; }
.noscript { position: fixed; z-index: 200; inset: 20px; display: grid; place-content: center; padding: 20px; background: var(--surface); color: var(--ink); text-align: center; }

@media (max-width: 980px) {
  .question-bar { grid-template-columns: minmax(230px, 340px) minmax(280px, 480px); }
  .map-evidence { display: none; }
}

@media (max-width: 700px) {
  :root { --header-height: 56px; }
  body { font-size: 13px; }
  .atlas-header { gap: 8px; padding: 0 11px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand strong { font-size: 0; }
  .brand strong::after { content: "ORBIT"; font-size: 10px; letter-spacing: .15em; }
  .brand small { display: none; }
  .header-note { margin-left: auto; width: 28px; height: 28px; justify-content: center; }
  .header-note i { width: 6px; height: 6px; }
  .header-note { font-size: 0; }
  .browse-header { width: 38px; padding: 0; justify-content: center; }
  .browse-header span { display: none; }
  .question-bar { min-height: 82px; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 7px; padding: 7px 10px 9px; }
  .question-control { gap: 5px; }
  .question-control > span:first-child { font-size: 9px; }
  .select-row { grid-template-columns: minmax(0,1fr) 38px; gap: 5px; }
  .select-wrap, .add-passport { height: 44px; }
  .add-passport { width: 38px; }
  .select-wrap select { padding: 0 31px 0 9px; font-size: 16px; }
  .select-wrap > svg { right: 8px; width: 15px; }
  .passport-chip { max-width: 105px; }
  .map-summary { top: 9px; left: 9px; max-width: calc(100% - 60px); overflow: hidden; padding: 7px 9px; font-size: 8px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .map-stage::after { box-shadow: inset 0 0 45px rgba(0,0,0,.28); }
  .map-tools { top: 10px; right: 9px; gap: 4px; }
  .map-tools button { width: 34px; height: 34px; }
  .map-instruction { top: 49px; left: 9px; transform: none; padding: 6px 8px; }
  .map-bottom-bar { left: 8px; right: 8px; bottom: 8px; }
  .map-legend-wrap { position: relative; }
  .legend-toggle { display: inline-flex; align-items: center; }
  .map-legend { display: none; position: absolute; left: 0; bottom: 43px; width: min(270px, calc(100vw - 16px)); max-width: none; gap: 8px 11px; padding: 10px; }
  .map-legend.is-open { display: flex; }
  .legend-item { font-size: 8px; }
  .map-tooltip { position: fixed; z-index: 80; left: 8px !important; right: 8px !important; bottom: 8px !important; top: auto !important; width: auto; max-height: min(55svh, 420px); transform: none !important; border-radius: 14px; }
  .preview-country h2 { font-size: 16px; }
  .preview-why { font-size: 12px; }
  .preview-fact strong { font-size: 10px; }
  .preview-footer small { font-size: 8px; }
  .preview-open { min-height: 38px; font-size: 10px; }
  .sheet-dialog, .sheet-dialog.compact-sheet, .profile-dialog { width: 100vw; height: 100svh; max-height: 100svh; border-left: 0; }
  .sheet-heading { padding: 16px 15px 13px; }
  .sheet-heading h2 { font-size: 19px; }
  .sheet-content, .browse-list, .saved-list, .orbit-content, .brief-content { padding-left: 15px; padding-right: 15px; }
  .sheet-footer { padding: 9px 15px; }
  .dialog-field select, .profile-grid input, .profile-grid select, .profile-grid textarea, .browse-search input, .member-card input, .member-card select { font-size: 16px; }
  .browse-search { margin: 10px 15px; }
  .menu-dialog { width: calc(100vw - 16px); margin: 62px 8px auto; }
  .profile-form { padding: 0 15px 20px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid label.wide { grid-column: auto; }
  .check-grid { grid-template-columns: 1fr; }
  .member-card { grid-template-columns: 1fr 1fr 34px; }
  .member-card label:nth-child(3) { grid-column: 1 / 3; }
  .orbit-grid { grid-template-columns: 1fr 1fr; }
  .brief-content { padding: 0; }
  .brief-doc { padding: 20px 15px; box-shadow: none; }
}

@media (max-width: 400px) {
  .header-actions { gap: 5px; }
  .at-a-glance, .orbit-grid { grid-template-columns: 1fr 1fr; }
  .map-instruction { display: none; }
}

@media (max-width: 340px) {
  .question-bar { min-height: 142px; grid-template-columns: 1fr; gap: 7px; padding-top: 8px; padding-bottom: 9px; }
  .question-control { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { overflow: visible; background: #fff; }
  body > *:not(#brief-dialog) { display: none !important; }
  #brief-dialog { position: static; display: block; width: auto; height: auto; max-height: none; background: #fff; }
  #brief-dialog::backdrop, #brief-dialog .sheet-heading, #brief-dialog .sheet-footer { display: none; }
  #brief-dialog .sheet-card, #brief-dialog .brief-content { display: block; overflow: visible; }
  .brief-doc { box-shadow: none; max-width: none; }
}
