/* V2 source-derived CyberShield shell and compact semantic components. */
:root {
  --navy:#0b2948; --blue:#174f82; --gold:#c49a43; --canvas:#eef2f6; --surface:#fff;
  --text:#24313f; --muted:#495b69; --border:#d4dde7; --field:#718393;
  --cyan:#0c6978; --cyan-bg:#e4f3f5; --green:#15803d; --green-bg:#f0fdf4;
  --amber:#92400e; --amber-bg:#fef3c7; --red:#b91c1c; --red-bg:#fef2f2;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text); background:var(--canvas); font-synthesis:none;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; font-size:14px; line-height:1.6; }
body.dialog-open { overflow:hidden; }
button,input,select { font:inherit; }
button,a,input,select,summary { touch-action:manipulation; outline-offset:3px; }
button { cursor:pointer; }
button:disabled { opacity:.48; cursor:not-allowed; }
:where(button,a,input,select,summary):focus-visible { outline:2px solid var(--blue); }
h1,h2,h3,p,dl { margin-top:0; }
h1,h2,h3 { color:var(--navy); line-height:1.35; }
h1 { font-size:28px; font-weight:700; letter-spacing:-.025em; }
h2 { font-size:19px; } h3 { font-size:15px; }
p { margin-bottom:16px; } a { color:var(--blue); }
.icon { width:19px; height:19px; flex:0 0 19px; vertical-align:middle; }
.sr-only,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link:focus { position:fixed; top:8px; left:8px; z-index:500; padding:12px; background:white; }
.eyebrow { display:block; font-size:11px; font-weight:650; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 14px; border:1px solid #b8c4d1; border-radius:5px; background:white; color:var(--blue); font-size:13px; font-weight:500; text-decoration:none; transition:background 140ms,border-color 140ms; }
.btn:hover:not(:disabled) { background:#edf3f9; border-color:var(--blue); }
.btn.primary { background:var(--blue); color:white; border-color:var(--blue); font-weight:600; }
.btn.primary:hover:not(:disabled) { background:var(--navy); }
.btn.progression { background:#15803d; border:2px solid #15803d; color:white; font-weight:650; min-height:48px; padding:10px 18px; }
.btn.progression:hover:not(:disabled) { background:#166534; border-color:#166534; }
.btn.progression:active:not(:disabled) { background:#14532d; border-color:#14532d; }
.btn.progression:focus-visible { outline:3px solid #0b2948; outline-offset:3px; box-shadow:0 0 0 6px #dcfce7; }
.btn.progression:disabled { opacity:1; background:#e8edf2; border-color:#d4dde7; color:#495b69; }
.btn.subtle { background:transparent; }
.btn.on-dark { background:transparent; border-color:#35526d; color:#d6e1ec; }
.btn.on-dark:hover { background:#174f82; }
.icon-button { display:inline-grid; place-items:center; width:44px; height:44px; min-width:44px; padding:8px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--blue); }
.icon-button:hover { background:#edf2f7; border-color:var(--border); }
.text-button { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 0; border:0; background:none; color:var(--blue); text-align:left; font-size:13px; }
.text-button:hover,.record-link:hover { text-decoration:underline; }
/* Record status, transaction action and training outcome remain separate. */
.status-badge { display:inline-flex; align-items:center; justify-content:center; padding:3px 8px; border:0; border-radius:999px; font-size:11px; font-weight:500; line-height:1.5; max-width:100%; white-space:nowrap; vertical-align:middle; }
.tone-success { color:#15803d; background:#f0fdf4; }
.tone-info { color:#1d4ed8; background:#dbeafe; }
.status-badge[data-semantic-context="action"].tone-info { background:#eff6ff; }
.tone-warning { color:#92400e; background:#fef3c7; }
.tone-danger { color:#b91c1c; background:#fef2f2; }
.tone-neutral { color:#475569; background:#e2e8f0; }
.meta-tag { display:inline-flex; padding:2px 8px; border:1px solid #dce4ed; border-radius:999px; font-size:11px; color:var(--muted); background:#f8fafc; }
.meta-tag.blue { background:#edf4fb; color:var(--blue); }
/* Welcome is the presentation entrance; operational chrome starts at briefing. */
.welcome-shell { min-height:100dvh; }
.command-bar { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:10px 32px; background:var(--navy); color:white; border-bottom:2px solid var(--gold); }
.welcome-brand { display:flex; align-items:center; gap:12px; color:white; text-decoration:none; font-size:13px; letter-spacing:.07em; }
.welcome-brand img { object-fit:contain; }
.brand-divider { color:var(--gold); margin:0 8px; }
.welcome-command-actions { display:flex; align-items:center; gap:20px; }
.welcome-training { color:#d6e1ec; font-size:12px; }
.welcome-fullscreen { color:white; background:transparent; border-color:#446079; }
.welcome-fullscreen:hover:not(:disabled) { background:#173852; border-color:#b9d1e6; }
.command-bar :focus-visible { outline-color:#b9d1e6; }
.welcome-shell .welcome { max-width:1320px; padding:40px 48px 24px; }
.welcome-shell .welcome-intro { margin-bottom:34px; }
.mission-first-action { padding:12px 14px; margin:16px 0; border-left:3px solid var(--cyan); border-radius:5px; background:var(--cyan-bg); color:var(--cyan); }
.mission-first-action .eyebrow { font-size:10px; color:var(--cyan); }
.mission-first-action p { margin:5px 0 0; font-size:14px; font-weight:600; line-height:1.6; }
.app-shell { display:flex; min-height:100dvh; }
.sidebar { position:sticky; top:0; width:256px; flex:0 0 256px; height:100dvh; display:flex; flex-direction:column; background:var(--navy); color:white; overflow-y:auto; scrollbar-width:thin; }
.brand-lockup { display:flex; align-items:center; justify-content:center; min-height:104px; padding:12px; border-bottom:2px solid var(--gold); }
.brand-lockup img { width:76px; height:76px; object-fit:contain; }
.sidebar nav { padding:14px 10px; }
.nav-label { margin:16px 12px 8px; font-size:11px; color:#bfd0df; }
.nav-group { margin:5px 0 12px; }
.nav-group-toggle { display:flex; align-items:center; gap:10px; min-height:46px; padding:10px 12px; width:100%; background:transparent; border:0; border-radius:5px; color:#d6e1ec; font-size:14px; text-align:left; }
.nav-group-toggle>span { flex:1; }
.nav-group-toggle>.icon:last-child { width:13px; height:13px; flex-basis:13px; transition:transform 140ms; }
.nav-group-toggle[aria-expanded=true]>.icon:last-child { transform:rotate(90deg); }
.nav-group-toggle:hover { background:#123b5f; }
.nav-parent { color:#b9cede; font-size:12px; padding:8px 12px 5px 29px; }
.nav-item { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; margin:3px 0; padding:10px 12px; border:0; border-radius:5px; background:transparent; color:#d6e1ec; text-align:left; font-size:13px; line-height:1.4; }
.nav-item>.icon { width:17px; height:17px; flex-basis:17px; }
.nav-group-items>.nav-item { width:calc(100% - 17px); margin-left:17px; }
.nav-item:hover { background:#123b5f; color:white; }
.nav-item.active { color:white; background:var(--blue); box-shadow:inset 2px 0 #b9d1e6; font-weight:600; }
.sidebar :focus-visible { outline:2px solid #b9d1e6; outline-offset:-2px; }
.sidebar-footer { margin-top:auto; padding:16px 12px; font-size:12px; }
.training-account { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid #35526d; border-radius:5px; background:#173852; margin-bottom:12px; }
.training-account strong,.training-account small { display:block; }
.training-account strong { font-size:13px; font-weight:600; }
.training-account small { font-size:10px; color:#c2d4e3; margin-top:3px; }
.sidebar-footer>.btn { width:100%; font-size:12px; }
.sidebar-footer>p { color:#bfd0df; text-align:center; font-size:11px; }
.app-workspace { flex:1; min-width:0; }
.topbar { position:sticky; top:0; z-index:30; min-height:66px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 24px; background:white; border-bottom:1px solid var(--border); }
.breadcrumbs { display:flex; flex:1 1 170px; min-width:0; align-items:center; gap:9px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.breadcrumbs>.icon { width:12px; height:12px; flex-basis:12px; }
.breadcrumbs strong { color:var(--navy); font-weight:600; }
.topbar-actions { display:flex; align-items:center; gap:9px; margin-left:auto; flex-wrap:wrap; }
.training-indicator { font-size:10px; letter-spacing:.05em; color:var(--muted); }
.topbar .btn { font-size:12px; padding:8px 11px; }
.investigation-toggle { border-color:#b8cfdf; background:#edf5fb; gap:6px; }
.investigation-toggle strong { margin-left:4px; color:var(--blue); }
.app-footer { padding:14px 32px; border-top:1px solid var(--border); font-size:11px; color:var(--muted); }
.rail-mode .sidebar { width:72px; flex-basis:72px; }
.rail-mode .brand-lockup img { width:44px; height:44px; }
.rail-mode .brand-lockup { min-height:84px; padding:12px 5px; }
.rail-mode .sidebar nav { padding:10px; }
.rail-mode .nav-parent,.rail-mode .nav-group-toggle>.icon:last-child { display:none; }
.rail-mode .nav-item>span,.rail-mode .nav-group-toggle>span,.rail-mode .sidebar-footer span,.rail-mode .sidebar-footer>.btn>span,.rail-mode .sidebar-footer>p { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.rail-mode .nav-group-items>.nav-item { width:100%; margin-left:0; }
.rail-mode .nav-item,.rail-mode .nav-group-toggle { justify-content:center; padding:10px; }
.rail-mode .sidebar-footer { padding:10px; }
.rail-mode .training-account { justify-content:center; padding:12px 5px; }
.rail-mode .sidebar-footer>.btn { padding:10px; }
.workspace-layout { display:grid; grid-template-columns:minmax(0,1fr); min-height:calc(100dvh - 113px); }
.workspace-layout.with-investigation { grid-template-columns:minmax(0,1fr) 320px; }
.workspace-content { min-width:0; padding:26px 32px 32px; }
.page-heading { padding-bottom:18px; border-bottom:1px solid var(--border); margin-bottom:24px; }
.page-heading h1 { margin:4px 0 5px; }
.page-heading p { font-size:14px; color:var(--muted); margin:0; }
.context-line { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-7px 0 18px; color:var(--muted); font-size:13px; }
.records-card { border:1px solid var(--border); border-radius:6px; background:white; overflow:hidden; }
.card-heading { padding:22px 24px; border-bottom:1px solid #e8edf2; }
.title-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.title-row h2 { margin:0; font-size:18px; }
.card-heading p { margin:5px 0 0; font-size:13px; color:var(--muted); }
.toolbar { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; padding:20px 24px; border-bottom:1px solid var(--border); }
.search-field { flex:1; min-width:180px; }
.search-field>span,.filter-label>span { display:block; margin-bottom:6px; font-size:13px; }
.search-field>div { position:relative; }
.search-field .icon { position:absolute; top:14px; left:11px; width:16px; height:16px; color:var(--muted); }
input,select { min-height:44px; max-width:100%; border:1px solid var(--field); border-radius:5px; background:white; color:var(--text); }
input[type=search] { width:100%; padding:10px 12px 10px 34px; font-size:14px; }
select { padding:10px; font-size:13px; max-width:170px; }
.filter-label { max-width:170px; }
.filter-label input { width:150px; padding:10px; font-size:13px; }
.table-wrap { width:100%; min-width:0; }
table { width:100%; border-collapse:collapse; table-layout:fixed; }
th { padding:13px 14px; text-align:left; background:#f5f7f9; color:var(--muted); border-bottom:1px solid var(--border); font-size:11px; font-weight:500; text-transform:uppercase; overflow-wrap:anywhere; }
td { padding:12px 14px; border-bottom:1px solid #e8edf2; font-size:14px; overflow-wrap:anywhere; vertical-align:middle; }
th:first-child,td:first-child { padding-left:24px; width:23%; }
th:last-child,td:last-child { width:82px; text-align:center; padding-right:16px; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#f9fbfd; }
.record-link { background:transparent; border:0; min-height:32px; padding:3px 0; color:var(--blue); font-size:13px; text-align:left; font-weight:500; overflow-wrap:anywhere; }
.event-order { display:block; font-size:10px; color:var(--muted); margin-top:3px; }
.table-footer { display:flex; justify-content:space-between; gap:14px; padding:18px 24px; border-top:1px solid var(--border); font-size:12px; color:var(--muted); }
.table-note { display:flex; align-items:flex-start; gap:8px; margin:16px 0 0; font-size:12px; color:var(--muted); }
.table-note>.icon { width:16px; height:16px; flex-basis:16px; margin-top:2px; }
.empty-state { padding:30px 12px; color:var(--muted); text-align:center; }
.empty-state h3 { margin:12px 0 5px; }
.empty-state p { margin:0; font-size:13px; }
.tabs,.view-switch { display:flex; gap:8px; flex-wrap:wrap; padding:6px; border:1px solid var(--border); border-radius:6px; background:#e7edf4; margin-bottom:20px; }
.tabs .btn,.view-switch .btn { background:transparent; border-color:transparent; }
.tabs .btn.active,.view-switch .btn.active { color:var(--navy); background:white; border-color:var(--border); }
.view-switch { display:inline-flex; }
.mission-rail { position:fixed; right:0; top:var(--workspace-header-height,66px); width:320px; height:calc(100dvh - var(--workspace-header-height,66px)); min-height:0; z-index:20; display:flex; flex-direction:column; background:white; border-left:1px solid var(--border); }
.mission-panel-header { padding:12px 20px 14px; flex-shrink:0; border-bottom:1px solid var(--border); }
.mission-panel-header p { margin:0; font-size:12px; color:var(--muted); }
.mission-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#718393 #eef2f6; scrollbar-width:auto; scrollbar-gutter:stable; padding:0 20px 18px; scroll-padding:12px; }
.mission-body:focus-visible { outline:2px solid var(--blue); outline-offset:-3px; }
.mission-body>.btn { margin-top:12px; }
.mission-rail .mission-actions { flex-shrink:0; padding:14px 20px; background:#f8fafc; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.mission-rail h2 { font-size:21px; margin-bottom:8px; }
.mission-rail>p { font-size:12px; color:var(--muted); }
.incident-summary { padding:12px 0; border-block:1px solid #e8edf2; margin:16px 0; }
.incident-summary summary { font-size:13px; color:var(--blue); cursor:pointer; }
.incident-summary p { font-size:13px; margin:10px 0 0; color:var(--muted); }
.progress-label { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
progress { appearance:none; display:block; width:100%; height:5px; border:0; border-radius:20px; margin:10px 0 16px; background:var(--canvas); }
progress::-webkit-progress-bar { background:var(--canvas); border-radius:20px; }
progress::-webkit-progress-value { background:var(--cyan); border-radius:20px; }
progress::-moz-progress-bar { background:var(--cyan); }
.objectives { padding:0; margin:0 0 18px; list-style:none; }
.objectives li { border-bottom:1px solid #e8edf2; }
.objectives button { display:flex; width:100%; gap:10px; padding:14px 0; background:none; border:0; text-align:left; color:var(--text); font-size:13px; line-height:1.55; }
.objective-marker { display:grid; place-items:center; width:24px; height:24px; flex:0 0 24px; border:1px solid var(--border); border-radius:50%; background:#f5f7fa; font-size:11px; }
.objective-marker .icon { width:14px; height:14px; }
.discovered .objective-marker { color:var(--cyan); background:var(--cyan-bg); border-color:#a0cbd0; }
.objectives small { display:block; margin-top:4px; font-size:11px; color:var(--muted); }
.notebook { padding:16px 0; border-block:1px solid var(--border); margin-bottom:18px; }
.notebook .title-row { justify-content:space-between; gap:6px; }
.notebook h3 { font-size:14px; margin:0; }
.notebook .title-row>span { font-size:11px; color:var(--muted); }
.notebook>p { font-size:12px; color:var(--muted); margin:10px 0 0; }
.notebook ul { list-style:none; padding:0; margin:10px 0 0; }
.notebook button { display:flex; align-items:flex-start; width:100%; gap:8px; text-align:left; padding:10px 0; border:0; background:transparent; color:var(--blue); }
.notebook strong { display:block; font-size:12px; font-weight:600; }
.notebook small { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.notebook button>.icon { width:15px; height:15px; flex-basis:15px; margin-top:3px; }
.notebook button>.icon:last-child { margin-left:auto; }
.guide { display:flex; align-items:flex-start; gap:12px; padding:16px; background:#edf3f8; border:1px solid var(--border); border-radius:6px; }
.guide img { width:48px; height:48px; flex:0 0 48px; }
.guide .eyebrow { font-size:10px; color:var(--blue); margin-bottom:5px; }
.guide p { margin:0; font-size:13px; line-height:1.7; }
.guide.compact { gap:9px; padding:12px; }
.guide.compact img { width:34px; height:34px; flex-basis:34px; }
.mission-actions { display:flex; flex-direction:column; gap:10px; padding-top:16px; border-top:1px solid var(--border); }
.mission-actions small { font-size:11px; color:var(--muted); text-align:center; }
.hint-button { width:100%; }
.hint-button>span { margin-left:auto; color:var(--muted); font-size:11px; }
.evidence-logged { display:flex; align-items:flex-start; gap:10px; padding:14px 16px; background:#15803d; border:1px solid #166534; color:white; border-radius:6px; animation:log-evidence 180ms ease-out; }
.evidence-logged>div { flex:1; min-width:0; }
.evidence-logged small { display:block; margin-top:8px; }
.evidence-logged .icon-button { color:white; width:36px; min-width:36px; height:36px; margin:-6px -8px 0 0; }
.evidence-logged .icon-button:hover { background:#166534; border-color:white; }
.evidence-logged :focus-visible { outline-color:white; }
.guidance-cue { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; margin-bottom:20px; border:1px solid #0c6978; border-left:4px solid #0c6978; border-radius:6px; background:#e4f3f5; color:#0c6978; }
.guidance-cue p { flex:1; margin:0; font-size:13px; }.guidance-cue strong { display:block; }
.guidance-cue>.icon { margin-top:5px; }
.guidance-target { outline:3px solid #0c6978; outline-offset:3px; box-shadow:0 0 0 7px #0c697824,0 0 18px #0c69784d; border-radius:5px; scroll-margin:calc(var(--workspace-header-height,66px) + 30px) 16px 32px; }
.guidance-target:focus-visible { outline:3px solid var(--navy); outline-offset:6px; }
.evidence-logged>.icon { margin-top:3px; }
.evidence-logged strong { font-size:13px; font-weight:650; }
.evidence-logged p { margin:4px 0 0; font-size:12px; line-height:1.6; }
.discovery-banner { display:flex; align-items:flex-start; gap:8px; margin-bottom:20px; }
.discovery-banner>.evidence-logged { flex:1; }
.dialog-body>.evidence-logged { margin-bottom:18px; }
.viewpoint-notice { display:flex; align-items:flex-start; gap:9px; color:var(--muted); font-size:12px; padding:10px 14px; background:#e7edf4; border:1px solid var(--border); border-radius:5px; margin-bottom:20px; }
.training-note { padding:14px 16px; border:1px solid var(--border); border-radius:5px; background:#f5f7f9; color:var(--muted); font-size:13px; line-height:1.7; margin:20px 0; }
.training-note>.icon { width:17px; height:17px; margin-right:5px; }
.custody-timeline { list-style:none; padding:24px; margin:0; }
.custody-timeline li { display:flex; align-items:flex-start; gap:18px; position:relative; padding-bottom:18px; }
.custody-timeline li:not(:last-child)::before { content:""; position:absolute; width:1px; left:15px; top:32px; bottom:0; background:#bdcdda; }
.timeline-node { display:grid; place-items:center; flex:0 0 32px; height:32px; background:#eaf2fa; border:1px solid #b8cfdf; color:var(--blue); font-weight:650; border-radius:50%; }
.custody-timeline button { position:relative; display:grid; gap:5px; width:100%; padding:16px 50px 16px 18px; border:1px solid var(--border); border-radius:6px; background:#fbfcfe; color:var(--text); text-align:left; }
.custody-timeline button:hover { border-color:var(--blue); background:#f3f8fd; }
.custody-timeline strong { font-size:15px; }
.custody-timeline strong .status-badge { margin-left:8px; }
.timeline-serial,.custody-timeline small { color:var(--muted); font-size:11px; }
.custody-timeline button>.icon { position:absolute; right:18px; top:23px; color:var(--blue); }
.custody-timeline button>span>.icon { width:14px; height:14px; margin:0 6px; }
.comparison-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.comparison-card { padding:24px; border:1px solid var(--border); border-top:3px solid var(--blue); background:white; border-radius:6px; }
.comparison-card h2 { margin:12px 0 16px; font-size:23px; }
.comparison-card p,.comparison-card li { color:var(--muted); font-size:14px; }
.comparison-card ul { padding-left:19px; }
.comparison-card .btn { width:100%; margin-top:8px; }
.custody-comparison { display:grid; grid-template-columns:1fr 28px 1fr; align-items:center; gap:10px; margin:20px 0; }
.custody-comparison>section { border:1px solid var(--border); border-radius:6px; padding:18px 14px; align-self:stretch; }
.custody-comparison strong { display:block; font-size:20px; color:var(--navy); margin:12px 0 7px; }
.custody-comparison p { font-size:12px; color:var(--muted); }
.comparison-connector { color:var(--blue); }
.role-comparison-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px 16px; border:1px solid #b9d4d9; border-radius:6px; background:var(--cyan-bg); color:var(--cyan); margin-bottom:20px; font-size:13px; }
.role-comparison-bar>span { display:flex; align-items:center; gap:8px; }
.evidence-list { display:grid; gap:20px; }.evidence-buttons { display:grid; gap:10px; padding:20px; }
.evidence-buttons .btn { text-align:left; justify-content:space-between; }
.context-stage { margin-bottom:28px; padding:26px; border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:6px; background:white; animation:log-evidence 160ms ease-out; }
.presentation-page { width:100%; max-width:1260px; margin:0 auto; padding:40px 36px; }
.presentation-page>.context-stage { padding:32px; margin:0; }
.presentation-page #page-title { margin:8px 0 16px; font-size:30px; }
.presentation-page .context-decision { max-width:1100px; margin:24px auto; }
.presentation-page .context-insight,.presentation-page .context-complete { max-width:960px; margin:0 auto; }
.presentation-page .context-complete #page-title { max-width:85%; }
.context-stage #stage-title { margin:8px 0 12px; font-size:25px; letter-spacing:-.025em; }
.briefing-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr); gap:30px; }
.briefing-copy>.lead { margin:0 0 14px; font-size:16px; color:var(--blue); }
.briefing-story { font-size:14px; color:var(--muted); margin:14px 0; }
.briefing-identifiers { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.briefing-objectives { padding:18px 22px; background:#f6f8fb; border:1px solid var(--border); border-radius:5px; }
.briefing-objectives h2 { margin:8px 0; font-size:20px; }
.briefing-objectives ol { padding:0; list-style:none; margin:16px 0; }
.briefing-objectives li { display:flex; gap:12px; align-items:flex-start; padding:10px 0; font-size:13px; }
.briefing-objectives li>span { flex:0 0 23px; height:23px; display:grid; place-items:center; background:#e4edf6; color:var(--blue); border-radius:50%; font-size:11px; }
.briefing-objectives .training-note { font-size:11px; padding:10px; }
.button-row { display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; }
.decision-panel>p { color:var(--muted); }
.answer-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:22px 0; }
.answer-option { display:flex; align-items:center; gap:12px; min-height:70px; padding:14px; border:1px solid var(--border); border-radius:6px; background:#fbfcfe; color:var(--navy); text-align:left; }
.answer-option>span { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; background:#e7edf4; color:var(--blue); border-radius:5px; font-size:12px; }
.answer-option strong { font-size:14px; }
.answer-option>.icon { margin-left:auto; }
.answer-option:hover { border-color:var(--blue); }
.answer-option.incorrect,.challenge-answer.incorrect { border-color:#d5a3a7; background:var(--red-bg); }
.feedback { display:flex; gap:10px; padding:14px 16px; background:var(--amber-bg); color:var(--amber); border-radius:5px; margin:16px 0; font-size:13px; }
.feedback p { margin:0; }
.insight-panel>h2:not(#stage-title) { font-size:18px; }
.outcome-icon { float:right; display:grid; place-items:center; width:50px; height:50px; border-radius:50%; color:var(--green); background:var(--green-bg); }
.outcome-icon .icon { width:28px; height:28px; }
.insight-text { max-width:80ch; line-height:1.8; font-size:15px; color:var(--muted); }
.technical { border-block:1px solid var(--border); padding:16px 0; margin:20px 0; }
.technical summary { color:var(--blue); min-height:28px; cursor:pointer; font-size:14px; font-weight:600; }
.technical p { font-size:13px; color:var(--muted); line-height:1.8; margin:12px 0 0; max-width:100ch; }
.challenge { padding:20px; background:#f5f8fb; border:1px solid var(--border); border-radius:6px; margin-top:20px; }
.challenge h2 { font-size:18px; margin:10px 0; }
.challenge-answer { display:block; width:100%; padding:12px; border:1px solid var(--border); border-radius:5px; background:white; text-align:left; color:var(--text); font-size:14px; margin:8px 0; min-height:44px; }
.challenge-answer.correct { border-color:#8fbfa5; background:var(--green-bg); }
.challenge-answer:hover { border-color:var(--blue); }
.success-text { color:var(--green); font-size:13px; }.feedback-text { color:var(--amber); font-size:13px; }
.completion-seal { float:right; display:grid; place-items:center; width:58px; height:58px; border:1px solid #bfdeca; border-radius:50%; color:var(--green); background:var(--green-bg); }
.completion-seal .icon { width:30px; height:30px; }
.outcome-label { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; margin:4px 0 16px; border:1px solid #b4ccbf; border-radius:5px; background:#e7f4ed; color:#1c6547; font-size:12px; font-weight:650; letter-spacing:.04em; }
.context-complete>h2:not(#stage-title) { font-size:21px; }
.context-complete>p { max-width:85ch; color:var(--muted); font-size:15px; }
.learned { margin:18px 0; }.learned strong { display:block; margin-top:5px; color:var(--blue); font-size:17px; }
.context-complete .guide { max-width:700px; margin-top:20px; }
.completion-actions { margin:22px 0 10px; }.completion-actions>.btn { min-height:48px; }
.context-complete>small { color:var(--muted); font-size:12px; }
.welcome { padding:30px 40px 28px; max-width:1400px; margin:auto; }
.welcome-intro { display:grid; grid-template-columns:1.5fr 1fr; gap:50px; align-items:center; margin-bottom:28px; }
.welcome h1 { font-size:clamp(32px,3vw,48px); line-height:1.17; letter-spacing:-.04em; margin:12px 0 20px; }
.welcome h1 span { color:var(--blue); }
.lead { font-size:16px; color:var(--muted); line-height:1.7; }
.welcome-brief { border-left:3px solid var(--gold); padding:12px 0 10px 24px; }
.welcome-brief-line { display:flex; gap:14px; align-items:flex-start; margin:16px 0; }
.welcome-brief-line>.icon { width:30px; height:30px; flex-basis:30px; color:var(--blue); }
.welcome-brief-line strong { font-size:21px; line-height:1.45; color:var(--navy); }
.welcome-brief p { font-size:14px; color:var(--muted); }
.brief-meta { display:flex; gap:20px; color:var(--muted); font-size:10px; letter-spacing:.04em; }
.selection-heading { display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:30px; }
.selection-heading h2 { margin:0; font-size:19px; }.selection-heading>span { font-size:12px; color:var(--muted); }
.case-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.case-card { position:relative; display:flex; flex-direction:column; min-height:274px; padding:23px 20px 18px; background:white; border:1px solid var(--border); border-radius:0 6px 6px 6px; text-align:left; color:var(--text); transition:background 140ms,border-color 140ms; }
.case-card:hover { border-color:var(--field); background:#fafcfe; }
.case-card.selected { border:2px solid var(--blue); padding:22px 19px 17px; }
.folder-tab { position:absolute; left:-1px; top:-21px; min-width:90px; padding:4px 13px 3px; border:1px solid var(--border); border-bottom:0; border-radius:5px 12px 0 0; background:#e0e7ef; color:var(--muted); font-size:10px; font-weight:650; letter-spacing:.1em; }
.selected .folder-tab { left:-2px; top:-22px; background:var(--blue); border-color:var(--blue); color:white; }
.case-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.case-card-top>.icon { width:26px; height:26px; flex-basis:26px; color:var(--blue); }
.recommended { color:var(--amber); background:#fff2d6; padding:4px 6px; border-radius:3px; font-size:9px; font-weight:650; }.case-duration { color:var(--muted); font-size:11px; }
.case-card-title { font-size:21px; line-height:1.3; font-weight:700; color:var(--navy); margin-bottom:10px; }
.case-teaser { font-size:13px; line-height:1.7; color:var(--muted); margin-bottom:20px; }
.case-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:14px; border-top:1px solid var(--border); font-size:11px; font-weight:600; color:var(--blue); }
.selection-check { display:grid; place-items:center; flex:0 0 26px; height:26px; border-radius:50%; color:var(--blue); background:#e9f0f7; }
.selected .selection-check { color:white; background:var(--blue); }.selection-check .icon { width:15px; height:15px; }
.welcome-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:30px 0; }
.analyst-switch { display:flex; align-items:center; gap:10px; cursor:pointer; }.analyst-switch input { width:18px; height:18px; min-height:18px; accent-color:var(--blue); }
.analyst-switch strong { display:block; font-size:12px; }.analyst-switch small { display:block; font-size:11px; color:var(--muted); }
.start-actions { display:flex; flex-wrap:wrap; gap:12px; }
.welcome-footer { display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--border); padding-top:18px; font-size:11px; color:var(--muted); }
.welcome-footer>span:first-child { display:flex; gap:8px; align-items:center; }.welcome-footer .icon { width:16px; height:16px; }
dialog { position:fixed; inset:0; margin:auto; max-height:calc(100dvh - 48px); width:min(760px,calc(100vw - 32px)); max-width:none; padding:0; border:1px solid var(--border); border-radius:8px; background:white; color:var(--text); box-shadow:0 12px 40px #0b294829; }
dialog::backdrop { background:#0b294866; }
dialog[open] { display:flex; flex-direction:column; animation:log-evidence 160ms ease-out; }
dialog.drawer { inset:0 0 0 auto; margin:0; width:min(580px,100vw); height:100dvh; max-height:100dvh; border:0; border-radius:0; }
dialog.drawer[open] { animation:drawer-in 180ms ease-out; }
dialog.viewer { width:min(1300px,calc(100vw - 32px)); }
.dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:24px; border-bottom:1px solid var(--border); flex-shrink:0; }
.dialog-header h2 { font-size:21px; font-weight:600; margin:6px 0 5px; }.dialog-header .eyebrow { font-size:10px; }.dialog-header p { margin:0; color:var(--muted); font-size:13px; }
.dialog-header>.icon-button { border-color:var(--field); }
.dialog-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:24px; scroll-padding-block:24px; }
.dialog-footer { display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; padding:16px 24px; border-top:1px solid var(--border); flex-shrink:0; }
.detail-section { padding:20px; border:1px solid var(--border); border-radius:6px; background:#fbfcfe; margin-bottom:20px; }
.detail-section h3 { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 18px; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 20px; }
.detail-field { padding:12px; border:1px solid #e1e8ef; border-radius:5px; background:#f7f9fb; overflow-wrap:anywhere; }
.detail-field dt { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; margin:0 0 6px; }.detail-field dd { margin:0; font-size:14px; font-weight:600; }
.detail-section .detail-grid,.detail-section>dl { margin:0; }
.summary-box { padding:16px; border:1px solid #c3d8ee; border-radius:5px; background:#edf5fe; margin-bottom:20px; }.summary-box p { color:var(--blue); font-size:14px; margin:6px 0 0; }
.preview-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; border:0; padding:0; margin:20px 0; }.preview-fields legend { color:var(--muted); font-size:13px; margin-bottom:20px; }
.preview-fields label { font-size:13px; }.preview-fields input { width:100%; display:block; padding:10px; margin-top:7px; background:#f8fafc; color:var(--muted); opacity:1; }
.evidence-image { display:block; width:100%; height:auto; border:1px solid var(--border); }.hint-list { padding-left:20px; color:var(--muted); }.hint-list li { padding:12px 0; }
.viewpoint-options { display:grid; gap:12px; margin-top:24px; }.viewpoint-options>.btn { justify-content:flex-start; }
.navigation-modal .sidebar { position:static; width:100%; height:auto; max-height:none; background:white; color:var(--text); }
.navigation-modal .brand-lockup,.navigation-modal .sidebar-footer { display:none; }.navigation-modal .sidebar nav { padding:0; }.navigation-modal .nav-item,.navigation-modal .nav-group-toggle { color:var(--blue); }.navigation-modal .nav-item.active { color:white; }.navigation-modal .nav-item:hover,.navigation-modal .nav-group-toggle:hover { background:#e7edf4; }.navigation-modal .nav-parent { color:var(--muted); }
@keyframes drawer-in { from { transform:translateX(28px); opacity:.5; } to { transform:none; opacity:1; } }
@keyframes log-evidence { from { opacity:.5; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(min-width:1700px) {
  .welcome-shell .welcome { max-width:1460px; padding-top:68px; }
  .welcome { padding-top:76px; }.welcome-intro { margin-bottom:56px; }.case-card { min-height:286px; padding:28px; }.case-card.selected { padding:27px; }.case-card-title { font-size:25px; }.case-teaser { font-size:15px; }
  .workspace-content { padding:30px 36px; }.context-stage { padding:30px; }
}
@media(max-width:1250px) {
  .sidebar { width:228px; flex-basis:228px; }.topbar { padding:10px 18px; gap:8px; }.topbar-actions { gap:6px; }
  .workspace-content { padding:24px; }.welcome { padding:36px 28px; }.welcome-intro { gap:28px; }.case-card-title { font-size:20px; }
  .workspace-layout.with-investigation { grid-template-columns:minmax(0,1fr); }.mission-rail { position:fixed; right:0; width:min(380px,100vw); z-index:40; border-bottom:1px solid var(--border); box-shadow:-8px 0 28px #0b29482b; }
}
@media(max-width:960px) {
  .sidebar { width:200px; flex-basis:200px; }.nav-item { font-size:12px; }.nav-group-toggle { font-size:13px; }.nav-group-items>.nav-item { width:100%; margin-left:0; }
  .welcome-intro { grid-template-columns:1fr; gap:24px; }.welcome-brief { display:none; }.welcome h1 { font-size:36px; }.case-grid { gap:14px; }.case-card { padding:20px 16px; min-height:285px; }.case-card.selected { padding:19px 15px; }.recommended { font-size:8px; }.case-card-title { font-size:19px; }.welcome-actions { align-items:flex-start; flex-direction:column; }.start-actions { width:100%; }.start-actions>.btn { flex:1; }
  .comparison-grid { grid-template-columns:1fr; }.briefing-layout { grid-template-columns:1fr; }.briefing-objectives { display:none; }.answer-options { grid-template-columns:1fr; }.answer-option { min-height:60px; }
  .presentation-page .briefing-objectives { display:block; }
}
@media(max-width:760px) {
  .command-bar { padding:10px 16px; gap:10px; }
  .welcome-brand { gap:7px; font-size:10px; }
  .welcome-brand img { width:36px; height:36px; }
  .brand-divider { margin:0 3px; }
  .welcome-training { display:none; }
  .welcome-fullscreen { padding:8px; min-width:40px; }
  .welcome-fullscreen>span { display:none; }
  .welcome-shell .welcome { padding:30px 20px; }
  .app-shell { display:block; }.app-workspace { width:100%; }.topbar { padding:9px 12px; gap:8px; }.topbar-actions { gap:6px; }.breadcrumbs { font-size:11px; flex:1; }.topbar-actions { flex:1 0 100%; justify-content:flex-end; }.topbar:not(:has(.investigation-toggle)) .topbar-actions { flex:initial; }
  .topbar .btn { min-height:40px; padding:8px 10px; }.topbar .icon-button { width:40px; min-width:40px; height:40px; }
  .workspace-content { padding:22px 14px; }.page-heading h1 { font-size:26px; }.page-heading p { font-size:13px; }.card-heading { padding:18px; }.title-row h2 { font-size:17px; }
  .toolbar { padding:16px; gap:12px; }.search-field { flex:0 0 100%; }.filter-label { max-width:calc(50% - 6px); }.filter-label select { max-width:100%; }.toolbar>.btn { margin-left:auto; }.search-field input,select { font-size:16px; }
  table,tbody,tr,td { display:block; width:100%; }thead { display:none; }tbody tr { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; border-bottom:1px solid var(--border); }tbody tr:last-child { border-bottom:0; }
  td,td:first-child,td:last-child { padding:0; border:0; width:auto; text-align:left; font-size:14px; }td:first-child { grid-column:1/-1; padding-right:44px; }td:last-child { position:absolute; top:12px; right:10px; }.record-link { font-size:14px; min-height:40px; }
  td::before { content:attr(data-label); display:block; color:var(--muted); font-size:10px; text-transform:uppercase; margin-bottom:4px; }td:first-child::before,td:last-child::before { display:none; }td[colspan] { position:static; grid-column:1/-1; }
  .table-footer { padding:16px; font-size:11px; }.table-note { font-size:12px; }.context-line { flex-wrap:wrap; }.view-switch { display:flex; }.view-switch>.btn { flex:1; font-size:12px; padding:8px; }
  .mission-panel-header { padding:10px 16px; }.mission-body { padding:0 16px 16px; }.mission-rail .mission-actions { padding:12px 16px; }.mission-actions { max-width:none; }
  .presentation-page { padding:24px 16px; }.presentation-page>.context-stage { padding:22px; }.presentation-page #page-title { font-size:25px; }.welcome-command-actions { gap:8px; }.command-bar { flex-wrap:wrap; }.presentation-page .context-decision { margin:0; }
  .context-stage { padding:20px; }.context-stage #stage-title { font-size:23px; }.context-complete>h2:not(#stage-title) { font-size:19px; }.button-row>.btn { flex:1; }.guide img { width:38px; height:38px; flex-basis:38px; }.guide { padding:12px; }
  .welcome { padding:30px 20px; }.welcome h1 { font-size:33px; }.welcome-intro { margin-bottom:28px; }.selection-heading { display:block; margin-bottom:34px; }.selection-heading>span { display:block; margin-top:7px; }.case-grid { grid-template-columns:1fr; gap:36px; }.case-card { min-height:230px; padding:22px; }.case-card.selected { padding:21px; }.case-card-title { font-size:24px; }.case-card-top { flex-wrap:nowrap; }.case-teaser { font-size:14px; }.recommended { font-size:9px; }.welcome-actions { margin-top:24px; }.start-actions { flex-direction:column; }.welcome-footer { flex-direction:column; font-size:10px; }.app-footer { padding:14px 20px; font-size:10px; }
  .dialog-header,.dialog-body { padding:20px; }.dialog-footer { padding:16px 20px; }.dialog-header h2 { font-size:21px; }.detail-grid { gap:10px; }.detail-field { padding:10px; }.detail-field dd { font-size:13px; }.detail-field dt { font-size:10px; }.preview-fields { grid-template-columns:1fr; }
  .custody-comparison { grid-template-columns:1fr; }.comparison-connector { text-align:center; }.custody-comparison>section { padding:16px; }.custody-timeline { padding:18px 14px; }.custody-timeline li { gap:10px; }.custody-timeline button { padding:14px 38px 14px 14px; }.custody-timeline strong { font-size:14px; }.custody-timeline button>.icon { right:12px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}
