:root {
  color-scheme: light;
  --bg: #f5f3f8;
  --surface: #ffffff;
  --surface-2: #faf9fc;
  --surface-3: #f0ecf6;
  --text: #231b2d;
  --muted: #6f6578;
  --line: #e5dfeb;
  --line-strong: #d5cbdc;
  --primary: #5b21b6;
  --primary-strong: #43178c;
  --primary-soft: #eee7fb;
  --accent: #0f766e;
  --accent-soft: #ddf5f1;
  --danger: #b42318;
  --danger-soft: #fee9e7;
  --warning: #a15c00;
  --warning-soft: #fff1d6;
  --success: #18794e;
  --success-soft: #e1f5eb;
  --info: #175cd3;
  --info-soft: #e7efff;
  --critical: #8f1239;
  --shadow-sm: 0 1px 2px rgba(33, 20, 45, 0.05), 0 4px 12px rgba(33, 20, 45, 0.04);
  --shadow-md: 0 12px 35px rgba(47, 28, 64, 0.10);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --sidebar-width: 268px;
  --topbar-height: 72px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15111a;
  --surface: #201923;
  --surface-2: #271f2b;
  --surface-3: #302638;
  --text: #f4edf7;
  --muted: #b9abbf;
  --line: #3c3142;
  --line-strong: #514358;
  --primary: #a879f5;
  --primary-strong: #c9a9ff;
  --primary-soft: #34244e;
  --accent: #59c7b9;
  --accent-soft: #173b37;
  --danger: #ff8a80;
  --danger-soft: #4b2121;
  --warning: #ffbf69;
  --warning-soft: #4b3518;
  --success: #76d9a8;
  --success-soft: #173c2b;
  --info: #8fb5ff;
  --info-soft: #1c3154;
  --critical: #ff91b2;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: var(--primary); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; right: 16px; z-index: 1000; background: var(--primary); color: white; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--sidebar-width);
  background: #241533;
  color: #f7f1ff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.06);
  box-shadow: -4px 0 24px rgba(22, 10, 29, .12);
}
.brand { display: flex; align-items: center; gap: 12px; height: var(--topbar-height); padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: linear-gradient(145deg, #f8efff, #d9c3ff 60%, #8fd8cd); color: #3b1272; font-weight: 900; font-size: 22px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.brand strong { display: block; letter-spacing: .12em; font-size: 15px; }
.brand span { display: block; color: #c9b9d7; font-size: 12px; margin-top: -2px; }
.nav-list { padding: 10px 10px 14px; overflow-y: auto; flex: 1; }
.nav-group { display: block; padding: 14px 12px 4px; font-size: 10.5px; color: #9d8bb0; letter-spacing: .06em; }
.nav-group:first-child { padding-top: 6px; }
.nav-item {
  width: 100%; min-height: 44px; border: 0; background: transparent; color: #d9cce5; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0; border-radius: 9px; text-align: right; cursor: pointer; transition: background .16s, color .16s, transform .16s;
}
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item:active { transform: translateY(1px); }
.nav-item.active { background: #f1e8ff; color: #4c1d95; font-weight: 700; box-shadow: inset 3px 0 0 #7c3aed; }
.nav-badge { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.12); }
.nav-item.active .nav-badge { background: #decafc; }
.sidebar-status { margin: 12px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.04); }
.status-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #54d89c; box-shadow: 0 0 0 4px rgba(84,216,156,.12); flex: none; }
.sidebar-status strong { display: block; font-size: 12px; }
.sidebar-status span { display: block; color: #bdaec8; font-size: 10px; line-height: 1.5; margin-top: 2px; }

.workspace { margin-right: var(--sidebar-width); min-height: 100vh; }
.topbar {
  height: var(--topbar-height); position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.topbar-context .eyebrow { margin-bottom: 0; }
.topbar-context strong { display: block; font-size: 15px; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search, .inline-search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.global-search { width: min(360px, 32vw); }
.global-search svg, .inline-search svg { width: 17px; height: 17px; flex: none; }
.global-search input, .inline-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); min-width: 0; }
.global-search:focus-within, .inline-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color .16s, transform .16s, background .16s; }
.icon-button:hover { border-color: var(--primary); background: var(--primary-soft); }
.icon-button:active { transform: translateY(1px); }
.icon-button.small { width: 44px; height: 44px; border-radius: 8px; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--primary); font-weight: 800; }
.mobile-only { display: none; }

.main-content { padding: 26px 28px 50px; max-width: 1680px; margin: 0 auto; }
.view { display: none; animation: view-in .24s ease-out; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.eyebrow { display: block; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); max-width: 760px; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.button { min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 700; transition: transform .16s, box-shadow .16s, background .16s, border-color .16s; }
.button svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.primary { background: var(--primary); color: white; box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 20%, transparent); }
.button.primary:hover { background: var(--primary-strong); }
.button.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.button.secondary:hover { border-color: var(--primary); color: var(--primary); }
.button.ghost { background: transparent; border-color: var(--line); }
.button.ghost:hover { background: var(--surface-3); }
.button.full { width: 100%; }
.button.danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.text-button { min-height: 44px; display: inline-flex; align-items: center; border: 0; padding: 4px 0; background: transparent; color: var(--primary); font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

.hero-card { position: relative; overflow: hidden; min-height: 330px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 30px; align-items: center; padding: clamp(30px, 5vw, 64px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #2b133c 0%, #4c1d72 58%, #185a67 125%); color: white; box-shadow: var(--shadow-md); }
.hero-card::before { content: ""; position: absolute; inset: -20% auto auto -8%; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 95px rgba(255,255,255,.018); pointer-events: none; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; font-size: 12px; font-weight: 800; color: #d9c5ef; margin-bottom: 12px; }
.hero-copy h1 { margin: 0; font-size: clamp(30px, 4vw, 55px); line-height: 1.08; letter-spacing: -.035em; max-width: 860px; }
.hero-copy p { color: #ded0e8; font-size: 16px; max-width: 720px; margin: 16px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-card .button.primary { background: white; color: #3e1765; box-shadow: none; }
.hero-card .button.primary:hover { background: #f6edff; }
.hero-card .button.secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: white; }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.readiness-ring { --progress: 0deg; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#72dbc4 var(--progress), rgba(255,255,255,.15) 0); position: relative; }
.readiness-ring::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #351848; box-shadow: inset 0 0 35px rgba(0,0,0,.18); }
.readiness-ring > div { position: relative; z-index: 1; text-align: center; }
.readiness-ring strong { display: block; font-size: 38px; line-height: 1; }
.readiness-ring span { display: block; margin-top: 6px; color: #cdbfd7; font-size: 12px; }
.hero-mini-metrics { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 330px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 14px; }
.hero-mini-metrics div { text-align: center; padding: 0 10px; }
.hero-mini-metrics div + div { border-right: 1px solid rgba(255,255,255,.13); }
.hero-mini-metrics span { display: block; color: #cdbfd7; font-size: 11px; }
.hero-mini-metrics strong { display: block; font-size: 13px; margin-top: 3px; }

.command-hero { min-height: 286px; padding: clamp(28px, 4vw, 48px); grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); }
.command-hero .hero-copy h1 { font-size: clamp(32px, 4vw, 48px); }
.command-hero .hero-copy p { max-width: 820px; line-height: 1.85; }
.command-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.command-stage { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); color: white; font-size: .78rem; font-weight: 800; }
.command-authority { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: #e7dcef; }
.command-authority span { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; }
.command-authority svg { width: 17px; height: 17px; color: #72dbc4; }
.command-hero .hero-mini-metrics { grid-template-columns: repeat(3, 1fr); max-width: 390px; }
.command-hero .hero-mini-metrics div + div { border-right: 1px solid rgba(255,255,255,.13); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.metric-label { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; font-size: 30px; line-height: 1.1; margin: 7px 0 5px; letter-spacing: -.02em; }
.metric-card small { display: block; color: var(--muted); }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-header h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.round-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.round-dot { min-width: 0; text-align: center; }
.round-dot button { width: 100%; aspect-ratio: 1; max-width: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); font-weight: 800; cursor: pointer; }
.round-dot.ready button { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.round-dot span { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-list { display: grid; gap: 9px; }
.compact-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.compact-item:last-child { border-bottom: 0; }
.compact-item strong { display: block; font-size: 13px; }
.compact-item span { color: var(--muted); font-size: 11px; }
.gate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gate-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.gate-list svg { width: 18px; height: 18px; color: var(--success); flex: none; }

.dashboard-gate-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dashboard-gate { min-height: 104px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; text-align: start; }
.dashboard-gate strong { display: block; font-size: .88rem; line-height: 1.45; }
.dashboard-gate span { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.dashboard-gate::before { content: ""; display: block; width: 26px; height: 4px; margin-bottom: 11px; border-radius: 999px; background: var(--line-strong); }
.dashboard-gate[data-status="ready"]::before { background: var(--success); }
.dashboard-gate[data-status="attention"]::before { background: var(--warning); }
.dashboard-gate[data-status="blocked"]::before { background: var(--danger); }
#dashboardBlockers.blocker-list { display: grid; gap: 9px; margin: 0; color: var(--text); font-size: .84rem; }
.dashboard-blocker { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); line-height: 1.6; }
.dashboard-blocker svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }

.status-chip, .severity-chip { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-chip.neutral { background: var(--surface-3); color: var(--muted); }
.status-chip.success { background: var(--success-soft); color: var(--success); }
.status-chip.warning { background: var(--warning-soft); color: var(--warning); }
.status-chip.danger { background: var(--danger-soft); color: var(--danger); }
.severity-chip.critical { background: #f9d9e4; color: var(--critical); }
.severity-chip.high { background: var(--danger-soft); color: var(--danger); }
.severity-chip.medium { background: var(--warning-soft); color: var(--warning); }
.severity-chip.low { background: var(--info-soft); color: var(--info); }
:root[data-theme="dark"] .severity-chip.critical { background: #4e1d30; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 14px; margin-bottom: 14px; }
.drop-zone { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus { border-color: var(--primary); background: var(--primary-soft); outline: none; transform: translateY(-1px); }
.drop-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.drop-icon svg { width: 28px; height: 28px; }
.drop-zone h2 { margin: 0; font-size: 20px; }
.drop-zone p { color: var(--muted); max-width: 560px; margin: 8px 0; }
.drop-zone > span { color: var(--muted); font-size: 11px; }
.data-health { display: flex; flex-direction: column; }
.definition-list { margin: 0 0 18px; }
.definition-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 800; text-align: left; direction: ltr; }
.data-health .button { margin-top: auto; }

.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-header { padding: 18px 18px 0; }
.table-toolbar { align-items: center; }
.toolbar-controls { display: flex; gap: 8px; align-items: center; }
.inline-search { width: 260px; }
.inline-search.wide { width: min(560px, 100%); }
.table-wrap { width: 100%; overflow: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-size: 11px; text-align: right; padding: 11px 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
td.number { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.table-tag { padding: 2px 6px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 800; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; color: var(--muted); font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 8px; }
.compact-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
.empty-state { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty-state.compact { padding: 16px 8px; }

.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label, .sample-controls label { display: grid; gap: 6px; }
.form-grid label > span, .sample-controls label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea, .sample-controls input, .sample-controls select, .filter-bar select {
  width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); padding: 8px 10px; outline: 0;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .sample-controls input:focus, .sample-controls select:focus, .filter-bar select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.full-width { grid-column: 1 / -1; }
.materiality-output { display: flex; flex-direction: column; }
.materiality-stack { display: grid; gap: 8px; }
.materiality-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.materiality-row span { color: var(--muted); }
.materiality-row strong { direction: ltr; }
.materiality-row.primary-result { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.materiality-row.primary-result strong { color: var(--primary); font-size: 22px; }
.rationale { color: var(--muted); font-size: 12px; padding: 12px; border-right: 3px solid var(--primary); background: var(--surface-2); }
.human-gate { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--warning-soft); color: var(--warning); border-radius: 9px; font-size: 12px; margin-top: auto; }
.human-gate svg { flex: none; width: 18px; height: 18px; }
.human-gate.prominent { margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--warning) 20%, transparent); }
.human-gate.prominent div { display: grid; gap: 2px; }
.human-gate.prominent strong { font-size: 13px; }
.sample-controls { display: grid; grid-template-columns: 1.3fr .65fr .8fr auto auto; gap: 10px; align-items: end; }

.rounds-timeline { position: relative; display: grid; gap: 12px; }
.rounds-timeline::before { content: ""; position: absolute; top: 28px; bottom: 28px; right: 27px; width: 2px; background: var(--line); }
.round-card { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.round-number { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--muted); border: 4px solid var(--bg); position: relative; z-index: 1; font-weight: 900; }
.round-card.ready .round-number { background: var(--success); color: white; }
.round-card h2 { margin: 0; font-size: 16px; }
.round-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.round-meta { display: flex; align-items: center; gap: 8px; }

.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.filter-bar select { min-width: 150px; }
.risk-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.risk-list { display: grid; gap: 9px; }
.risk-card { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; text-align: right; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .16s, transform .16s; }
.risk-card:hover, .risk-card.selected { border-color: var(--primary); transform: translateY(-1px); }
.risk-score-bar { width: 6px; border-radius: 5px; min-height: 64px; background: var(--info); }
.risk-card[data-severity="critical"] .risk-score-bar { background: var(--critical); }
.risk-card[data-severity="high"] .risk-score-bar { background: var(--danger); }
.risk-card[data-severity="medium"] .risk-score-bar { background: var(--warning); }
.risk-main h3 { margin: 0 0 4px; font-size: 14px; }
.risk-main p { margin: 0; color: var(--muted); font-size: 11px; }
.risk-meta { text-align: left; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.risk-meta strong { font-size: 20px; }
.risk-detail { position: sticky; top: calc(var(--topbar-height) + 16px); min-height: 320px; }
.risk-detail h2 { margin: 0 0 6px; font-size: 20px; }
.risk-detail .detail-account { color: var(--muted); margin-bottom: 14px; }
.detail-block { padding: 12px 0; border-top: 1px solid var(--line); }
.detail-block h3 { margin: 0 0 6px; font-size: 12px; }
.detail-block p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.findings-panel { padding: 0; overflow: hidden; }
.findings-panel .panel-header { padding: 18px 18px 0; }
.action-cell { display: flex; gap: 4px; }
.action-cell button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 5px; }
.action-cell button:hover { color: var(--danger); }

.framework-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.framework-card { padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.framework-card strong { display: block; font-size: 13px; }
.framework-card p { color: var(--muted); font-size: 11px; margin: 6px 0; }
.framework-card small { color: var(--warning); font-size: 9px; }
.standards-filter { position: sticky; top: calc(var(--topbar-height) + 8px); z-index: 20; }
.standards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.standard-card { display: flex; flex-direction: column; min-height: 230px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .16s, border-color .16s; }
.standard-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.standard-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.standard-id { color: var(--primary); font-weight: 900; font-size: 15px; direction: ltr; }
.framework-pill { font-size: 9px; font-weight: 800; color: var(--muted); background: var(--surface-3); padding: 3px 7px; border-radius: 5px; }
.standard-card h2 { font-size: 16px; margin: 10px 0 2px; }
.standard-card .en-title { color: var(--muted); font-size: 10px; direction: ltr; text-align: right; }
.standard-card p { color: var(--muted); font-size: 11px; margin: 12px 0; }
.standard-triggers { margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; }
.standard-triggers span { font-size: 9px; padding: 3px 6px; background: var(--primary-soft); color: var(--primary); border-radius: 5px; }
.source-registry-panel { margin-bottom: 14px; }
.source-registry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.source-card { min-height: 164px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.source-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.source-card h3 { margin: 0; font-size: .9rem; line-height: 1.5; }
.source-card p { margin: 9px 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.source-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; font-size: .72rem; }
.source-card dt { color: var(--muted); }
.source-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.source-version { direction: ltr; color: var(--primary); font-size: .7rem; font-weight: 900; }
.standard-source-line { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: .72rem; border-top: 1px solid var(--line); }
.standards-watch-panel { margin-bottom: 14px; }
.standards-watch-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.standards-watch-item { min-height: 92px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 11px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); text-align: start; cursor: pointer; }
.standards-watch-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.standards-watch-item > span:nth-child(2) strong { display: block; font-size: .8rem; }
.standards-watch-item > span:nth-child(2) small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.standards-watch-item .status-chip { grid-column: 2; justify-self: start; }

.coverage-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.coverage-strip > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.coverage-strip span { color: var(--muted); font-size: 11px; }
.coverage-strip strong { font-size: 19px; color: var(--primary); }
.workpaper-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.workpaper-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.workpaper-card header { display: flex; justify-content: space-between; gap: 10px; }
.workpaper-card h2 { font-size: 15px; margin: 0; }
.workpaper-card p { color: var(--muted); font-size: 11px; }
.workpaper-card ol { padding-right: 20px; color: var(--muted); font-size: 11px; }
.workpaper-card li { margin-bottom: 5px; }
.workpaper-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.workpaper-footer select { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 7px; padding: 5px; }

.pbc-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.pbc-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.pbc-summary span { display: block; color: var(--muted); font-size: 10px; }
.pbc-summary strong { display: block; font-size: 22px; margin-top: 4px; }
.pbc-board { display: grid; gap: 8px; }
.pbc-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pbc-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.pbc-card h3 { margin: 0; font-size: 13px; }
.pbc-card p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.pbc-owner, .pbc-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.pbc-card.overdue { border-right: 3px solid var(--danger); }

.journal-intake { margin-bottom: 14px; }
.journal-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.journal-controls label, .textarea-label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.journal-controls input, .textarea-label textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); padding: 10px 11px; outline: none; }
.textarea-label { margin: 12px 0; }
.textarea-label textarea { min-height: 132px; resize: vertical; direction: rtl; font-family: ui-monospace, "Cascadia Code", monospace; line-height: 1.7; }
.file-button { min-height: 46px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--primary); border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 800; cursor: pointer; }
.file-button svg { width: 18px; height: 18px; }
.journal-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.journal-metric-grid > div { min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.journal-metric-grid span { display: block; color: var(--muted); font-size: .78rem; }
.journal-metric-grid strong { display: block; margin-top: 7px; color: var(--primary); font-size: 1.65rem; }
.journal-flags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 220px; }
.journal-flag { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); font-size: .7rem; font-weight: 800; }
.journal-score { display: inline-grid; place-items: center; min-width: 42px; min-height: 34px; border-radius: 8px; font-weight: 900; }
.journal-score.critical, .journal-score.high { background: var(--danger-soft); color: var(--danger); }
.journal-score.medium { background: var(--warning-soft); color: var(--warning); }
.journal-score.low, .journal-score.clear { background: var(--success-soft); color: var(--success); }
.table-status-select { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); padding: 5px 8px; }
.revision-history { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.revision-history .panel-header { margin-bottom: 8px; }
.revision-history .compact-item { grid-template-columns: auto minmax(0,1fr) auto; }

.evidence-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.evidence-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.5fr); gap: 14px; align-items: start; }
.evidence-path-list { display: grid; gap: 10px; }
.evidence-path { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.evidence-path header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.evidence-path h3 { margin: 0; font-size: .88rem; }
.evidence-path > p { margin: 5px 0 10px; color: var(--muted); font-size: .75rem; }
.trace-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.trace-step { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: .7rem; }
.trace-step.missing { border-style: dashed; color: var(--danger); background: var(--danger-soft); }
.trace-arrow { color: var(--muted); }
.evidence-record-title strong { display: block; }
.evidence-record-title small { display: block; color: var(--muted); margin-top: 4px; direction: ltr; text-align: start; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 4px; }
.evidence-grade { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 32px; border-radius: 8px; font-size: .75rem; font-weight: 900; }
.evidence-grade.strong { background: var(--success-soft); color: var(--success); }
.evidence-grade.adequate { background: var(--info-soft); color: var(--info); }
.evidence-grade.limited { background: var(--warning-soft); color: var(--warning); }
.evidence-grade.weak { background: var(--danger-soft); color: var(--danger); }
.file-input-label input { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
.check-label input { width: 19px; height: 19px; accent-color: var(--primary); }

.council-overview { margin-bottom: 14px; }
.council-result { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.agreement-meter { text-align: center; }
.agreement-meter strong { display: block; font-size: 40px; color: var(--primary); }
.agreement-meter span { color: var(--muted); font-size: 11px; }
.council-conclusion h2 { margin: 0 0 6px; font-size: 17px; }
.council-conclusion p { color: var(--muted); margin: 0; }
.blocker-list { margin: 10px 0 0; color: var(--danger); font-size: 11px; }
.council-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.council-seat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.council-seat header { display: flex; justify-content: space-between; gap: 10px; }
.council-seat h2 { font-size: 14px; margin: 0; }
.confidence { color: var(--muted); font-size: 10px; }
.council-seat p { color: var(--muted); font-size: 12px; margin-bottom: 0; }

.report-gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.report-gate { padding: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; display: flex; gap: 9px; align-items: center; font-size: 11px; }
.report-gate svg { width: 18px; height: 18px; color: var(--muted); }
.report-gate.pass svg { color: var(--success); }
.report-gate.fail { color: var(--danger); }
.report-document { max-width: 1040px; margin: 0 auto; background: white; color: #231b2d; border: 1px solid #e5dfeb; box-shadow: var(--shadow-md); }
.report-cover { min-height: 330px; padding: 42px; display: flex; flex-direction: column; justify-content: space-between; background: #2c1737; color: white; position: relative; overflow: hidden; }
.report-cover::after { content: ""; position: absolute; width: 350px; height: 350px; border: 55px solid rgba(255,255,255,.04); border-radius: 50%; left: -90px; bottom: -160px; }
.report-brand { font-weight: 900; letter-spacing: .12em; }
.report-brand span { font-weight: 500; letter-spacing: 0; color: #d2c5dd; }
.report-cover h2 { font-size: 34px; margin: 5px 0; }
.report-cover p { color: #d2c5dd; margin: 0; }
.report-status { align-self: flex-start; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; font-size: 10px; position: relative; z-index: 1; }
.report-body { padding: 42px; }
.report-body section { margin-bottom: 30px; }
.report-body h3 { font-size: 19px; padding-bottom: 8px; border-bottom: 2px solid #5b21b6; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.report-kpis div { background: #f5f1fa; padding: 12px; border-radius: 8px; }
.report-kpis span { display: block; font-size: 9px; color: #6f6578; }
.report-kpis strong { font-size: 18px; }
.report-risk-row, .report-finding-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5dfeb; }
.report-risk-row strong, .report-finding-row strong { display: block; }
.report-risk-row span, .report-finding-row span, .muted { color: #6f6578; font-size: 11px; }
.report-provenance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-provenance > div { padding: 12px; border: 1px solid #e5dfeb; border-radius: 8px; background: #faf9fc; }
.report-provenance span { display: block; color: #6f6578; font-size: .72rem; }
.report-provenance strong { display: block; margin-top: 5px; font-size: .9rem; }
.audit-trail-panel { margin-bottom: 14px; }
.audit-event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.audit-event { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 62px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.audit-event strong { display: block; font-size: .8rem; }
.audit-event small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.audit-event code { direction: ltr; color: var(--muted); font-size: .68rem; }
.audit-sequence { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 900; }

.knowledge-summary { display: grid; grid-template-columns: .7fr 1.6fr 1fr; gap: 10px; margin-bottom: 14px; }
.knowledge-summary article { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.knowledge-summary strong { display: block; font-size: 19px; color: var(--primary); }
.knowledge-summary span { color: var(--muted); font-size: 10px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.knowledge-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.knowledge-card header { display: flex; justify-content: space-between; gap: 8px; }
.knowledge-card h2 { font-size: 14px; margin: 9px 0; }
.knowledge-card .source-type { color: var(--muted); font-size: 9px; }
.knowledge-card .focus-list { display: flex; flex-wrap: wrap; gap: 5px; }
.knowledge-card .focus-list span { font-size: 9px; background: var(--surface-3); padding: 3px 6px; border-radius: 5px; }
.module-map { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.module-map small { display: block; color: var(--muted); margin-bottom: 5px; }
.module-map p { margin: 0; font-size: 11px; }
.knowledge-card a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-decoration: none; }
.knowledge-card a:hover { text-decoration: underline; }

.modal { width: min(780px, calc(100vw - 28px)); max-height: 88vh; border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(19, 12, 24, .58); backdrop-filter: blur(3px); }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-body { padding: 20px; overflow: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.standard-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.standard-detail-block { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.standard-detail-block h3 { margin: 0 0 5px; font-size: 12px; color: var(--primary); }
.standard-detail-block p, .standard-detail-block ul { margin: 0; color: var(--muted); font-size: 11px; }
.standard-detail-block ul { padding-right: 18px; }

.toast-region { position: fixed; left: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 10px; background: #281a31; color: white; box-shadow: var(--shadow-md); transform: translateY(10px); opacity: 0; animation: toast-in .22s forwards; }
.toast.success { border-right: 4px solid #54d89c; }
.toast.error { border-right: 4px solid #ff776c; }
@keyframes toast-in { to { transform: none; opacity: 1; } }
.sidebar-backdrop { display: none; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .standards-grid, .workpaper-board, .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-controls { grid-template-columns: repeat(3, 1fr); }
  .sample-controls .button { align-self: stretch; }
  .pbc-card { grid-template-columns: auto minmax(0,1fr) auto auto; }
  .pbc-card .pbc-date { display: none; }
  .dashboard-gate-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .source-registry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards-watch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-layout { grid-template-columns: 1fr; }
  .audit-event-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 286px; }
  .sidebar { transform: translateX(105%); transition: transform .22s ease; }
  .app-shell.sidebar-open .sidebar { transform: none; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(15,9,20,.55); }
  .app-shell.sidebar-open + .sidebar-backdrop, .sidebar-backdrop.visible { display: block; }
  .workspace { margin-right: 0; }
  .mobile-only { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .global-search { display: none; }
  .main-content { padding: 20px 16px 40px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: row; justify-content: center; }
  .readiness-ring { width: 150px; height: 150px; flex: none; }
  .hero-mini-metrics { display: block; width: auto; border: 0; padding: 0; }
  .hero-mini-metrics div { text-align: right; padding: 8px 0; }
  .hero-mini-metrics div + div { border-right: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .command-hero .hero-mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 440px); }
  .command-hero .hero-mini-metrics div { text-align: center; padding: 8px; }
  .command-hero .hero-mini-metrics div + div { border-top: 0; border-right: 1px solid rgba(255,255,255,.13); }
  .upload-layout, .two-column, .risk-layout { grid-template-columns: 1fr; }
  .risk-detail { position: static; }
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
  .report-gates { grid-template-columns: repeat(2, 1fr); }
  .pbc-summary { grid-template-columns: repeat(2, 1fr); }
  .report-document { overflow: hidden; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-context strong { max-width: 230px; }
  .topbar-actions .avatar { display: none; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .heading-actions { justify-content: stretch; }
  .heading-actions .button { flex: 1; }
  .hero-card { padding: 28px 20px; min-height: auto; }
  .hero-copy h1 { font-size: 31px; }
  .hero-visual { flex-direction: column; }
  .metric-grid, .dashboard-grid, .standards-grid, .workpaper-board, .knowledge-grid, .council-grid, .coverage-strip { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .round-strip { grid-template-columns: repeat(5, 1fr); row-gap: 12px; }
  .upload-layout { gap: 10px; }
  .drop-zone { min-height: 230px; padding: 22px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-controls { width: 100%; }
  .inline-search { flex: 1; width: auto; }
  .form-grid, .standard-detail-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .sample-controls { grid-template-columns: 1fr 1fr; }
  .sample-controls label:first-child { grid-column: 1 / -1; }
  .round-card { grid-template-columns: 48px minmax(0, 1fr); }
  .round-number { width: 48px; height: 48px; }
  .round-card .round-meta { grid-column: 2; }
  .rounds-timeline::before { right: 23px; }
  .framework-grid { grid-template-columns: 1fr; }
  .standards-filter { top: calc(var(--topbar-height) + 4px); }
  .filter-bar { align-items: stretch; }
  .filter-bar .inline-search, .filter-bar select { width: 100%; }
  .pbc-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pbc-card .pbc-owner { display: none; }
  .council-result { grid-template-columns: 1fr; text-align: center; }
  .report-gates { grid-template-columns: 1fr; }
  .report-cover, .report-body { padding: 26px 20px; }
  .report-cover h2 { font-size: 27px; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .knowledge-summary { grid-template-columns: 1fr; }
  .modal-body { padding: 16px; }
  .dashboard-gate-rail, .source-registry, .standards-watch-list, .journal-controls, .journal-metric-grid, .evidence-summary, .report-provenance { grid-template-columns: 1fr; }
  .command-heading-row { align-items: flex-start; }
  .command-hero .hero-mini-metrics { grid-template-columns: 1fr; }
  .command-hero .hero-mini-metrics div + div { border-right: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .journal-flags { min-width: 180px; }
}

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

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: white !important; }
  .sidebar, .topbar, .page-heading, .report-gates, .toast-region, .sidebar-backdrop { display: none !important; }
  .workspace { margin: 0; }
  .main-content { padding: 0; max-width: none; }
  .view { display: none !important; }
  #view-reports { display: block !important; }
  .report-document { box-shadow: none; border: 0; max-width: none; }
  .report-cover { min-height: 245mm; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-body { padding: 0; }
  .report-body section { break-inside: avoid; }
}

.text-reset { appearance: none; border: 0; background: transparent; color: inherit; width: 100%; text-align: right; cursor: pointer; }


/* ===== Analytics ===== */
.analytics-layout { display: grid; gap: 18px; }
.equation-strip { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 14px 16px; background: linear-gradient(120deg, var(--surface), var(--surface-3)); border: 1px solid var(--line); border-radius: var(--radius); }
.equation-cell { display: grid; gap: 2px; padding: 8px 14px; min-width: 120px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.equation-cell span { font-size: 11.5px; color: var(--muted); }
.equation-cell strong { font-size: 15px; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.equation-cell.negative strong { color: var(--danger); }
.equation-cell.operator { min-width: 0; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: 22px; font-weight: 300; padding: 0 4px; }
.equation-cell.operator span { font-size: 22px; color: var(--muted); }
.equation-cell.verdict { margin-inline-start: auto; }
.equation-cell.verdict.pass { border-color: var(--success); background: var(--success-soft); }
.equation-cell.verdict.pass span { color: var(--success); font-weight: 700; font-size: 13px; }
.equation-cell.verdict.pass strong, .equation-cell.verdict.fail strong { font-size: 11.5px; font-weight: 500; color: var(--muted); direction: rtl; }
.equation-cell.verdict.fail { border-color: var(--danger); background: var(--danger-soft); }
.equation-cell.verdict.fail span { color: var(--danger); font-weight: 700; font-size: 13px; }
.statements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.statement-body { display: grid; gap: 10px; }
.statement-section { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.statement-section.emphasize { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.statement-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: var(--surface-3); font-weight: 700; font-size: 13px; }
.statement-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.statement-line span small { display: block; color: var(--muted); font-size: 11px; }
.statement-line strong, .statement-head strong, .statement-total strong { font-variant-numeric: tabular-nums; direction: ltr; }
.statement-line strong.negative { color: var(--danger); }
.statement-total { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 800; }
.statement-total.negative { background: var(--danger-soft); color: var(--danger); }
.ratio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ratio-card { position: relative; display: grid; gap: 6px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.ratio-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--muted); }
.ratio-card[data-status="success"]::before { background: var(--success); }
.ratio-card[data-status="warning"]::before { background: var(--warning); }
.ratio-card[data-status="danger"]::before { background: var(--danger); }
.ratio-label { font-size: 12.5px; color: var(--muted); }
.ratio-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ratio-card[data-status="danger"] .ratio-value { color: var(--danger); }
.ratio-card[data-status="warning"] .ratio-value { color: var(--warning); }
.ratio-formula { font-family: var(--font); font-size: 11px; color: var(--primary-strong); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; width: fit-content; }
.ratio-card small { color: var(--muted); line-height: 1.55; font-size: 11.5px; }
.analytics-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.benford-svg { width: 100%; height: auto; display: block; }
.benford-svg .bar { fill: var(--primary); opacity: .85; }
.benford-svg .bar.hot { fill: var(--danger); }
.benford-svg .expected { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.benford-svg .axis { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.benford-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.benford-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--primary); margin-inline-end: 5px; vertical-align: middle; }
.benford-legend i.line { height: 3px; background: var(--accent); }
.benford-legend i.hot { background: var(--danger); }
.indicator-list { display: grid; gap: 8px; }
.indicator { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.indicator svg { width: 18px; height: 18px; flex: none; color: var(--success); margin-top: 1px; }
.indicator.hit { border-color: color-mix(in srgb, var(--warning) 50%, var(--line)); background: var(--warning-soft); }
.indicator.hit svg { color: var(--warning); }
.indicator span small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.saudi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.saudi-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.saudi-card[data-status="danger"] { border-color: var(--danger); }
.saudi-card[data-status="warning"] { border-color: var(--warning); }
.saudi-card[data-status="success"] { border-color: var(--success); }
.saudi-rows { display: grid; gap: 6px; }
.saudi-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.saudi-rows strong { direction: ltr; font-variant-numeric: tabular-nums; }
.saudi-card small { color: var(--muted); line-height: 1.6; font-size: 11.5px; }
.muted.small { font-size: 12px; line-height: 1.6; }

/* ===== Opinion ===== */
.opinion-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.misstatement-meter { margin: 6px 0 14px; }
.meter-track { position: relative; height: 16px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); overflow: visible; }
.meter-fill { position: absolute; inset: 0 0 0 auto; height: 100%; border-radius: 999px; background: var(--success); transition: width .5s ease; }
.meter-fill[data-verdict="approaching"] { background: var(--warning); }
.meter-fill[data-verdict="material"] { background: var(--danger); }
.meter-mark { position: absolute; top: -6px; width: 2px; height: 28px; background: var(--text); opacity: .55; transform: translateX(50%); }
.meter-mark.overall { background: var(--danger); opacity: .8; }
.meter-labels { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.misstatement-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bucket { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); display: grid; gap: 2px; }
.bucket span { font-size: 11.5px; color: var(--muted); }
.bucket strong { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.bucket.success { background: var(--success-soft); } .bucket.warning { background: var(--warning-soft); } .bucket.info { background: var(--info-soft); } .bucket.neutral { background: var(--surface-3); }
.form-grid.single { grid-template-columns: 1fr; }
label.checkbox { display: flex; align-items: center; gap: 10px; flex-direction: row; }
label.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.opinion-card { border-width: 2px; }
.opinion-card[data-code="unmodified"] { border-color: var(--success); }
.opinion-card[data-code="qualified"] { border-color: var(--warning); }
.opinion-card[data-code="adverse"], .opinion-card[data-code="disclaimer"] { border-color: var(--danger); }
.opinion-card h2 { font-size: 24px; }
.opinion-basis { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.6; }
.opinion-tree { display: grid; gap: 6px; margin-bottom: 14px; }
.tree-step { display: grid; grid-template-columns: 26px 1fr 20px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); font-size: 13px; background: var(--surface-2); }
.tree-step svg { width: 18px; height: 18px; }
.tree-step.pass svg { color: var(--success); } .tree-step.fail svg { color: var(--danger); }
.tree-step.fail { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.tree-index { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); font-size: 12px; font-weight: 700; }
.decision-note { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; margin-bottom: 14px; border: 1px solid var(--line); }
.decision-note.success { background: var(--success-soft); color: var(--success); }
.decision-note.danger { background: var(--danger-soft); color: var(--danger); }
.decision-note.neutral { background: var(--surface-3); color: var(--muted); }

/* ===== Command palette ===== */
.palette { width: min(640px, 94vw); padding: 0; background: transparent; border: 0; }
.palette::backdrop { background: rgba(20, 8, 32, .55); backdrop-filter: blur(6px); }
.palette-box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); }
.palette-input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.palette-input kbd, .palette-foot kbd { font-family: var(--font); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-item { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border: 0; background: transparent; border-radius: 10px; text-align: right; cursor: pointer; color: var(--text); font-size: 14px; }
.palette-item small { color: var(--muted); font-size: 11.5px; }
.palette-item:hover, .palette-item.active { background: var(--primary-soft); color: var(--primary-strong); }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); background: var(--surface-2); }
.palette-foot kbd { margin-inline-end: 4px; }

@media (max-width: 1180px) { .opinion-layout { grid-template-columns: 1fr; } }
@media print { .palette, .equation-cell.operator { display: none; } }

/* ===== Governed council ===== */
.agreement-meter[data-verdict="objections"] strong, .agreement-meter[data-verdict="blocked"] strong { color: var(--danger); }
.agreement-meter[data-verdict="cautions"] strong { color: var(--warning); }
.stance-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.stance-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.stance-pill strong { font-size: 13px; }
.stance-pill.success { color: var(--success); } .stance-pill.warning { color: var(--warning); } .stance-pill.danger { color: var(--danger); } .stance-pill.critical { color: var(--critical); }
.status-chip.critical { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.council-conflicts { display: grid; gap: 10px; margin-bottom: 16px; }
.conflict-head h2 { font-size: 16px; margin: 2px 0 4px; }
.conflict-card { padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); background: linear-gradient(120deg, var(--danger-soft), var(--surface)); }
.conflict-card.resolved { border-color: var(--line); background: var(--surface); }
.conflict-seats { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.conflict-seats i { font-style: normal; color: var(--danger); font-size: 18px; }
.conflict-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; }
.hero-actions.compact { margin: 0; gap: 8px; }
.button.small { min-height: 36px; padding: 6px 12px; font-size: 12.5px; }
.council-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.council-seat { position: relative; overflow: hidden; }
.council-seat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--muted); }
.council-seat[data-stance="clear"]::before { background: var(--success); }
.council-seat[data-stance="caution"]::before { background: var(--warning); }
.council-seat[data-stance="objection"]::before { background: var(--danger); }
.council-seat[data-stance="blocked"]::before { background: var(--critical); }
.council-seat header small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.council-seat p { color: var(--text); font-size: 13px; line-height: 1.65; margin: 10px 0 8px; }
.seat-basis { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.seat-basis span { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.seat-asks { margin: 0; padding-inline-start: 18px; font-size: 12px; color: var(--primary-strong); line-height: 1.6; }
.council-duo { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 16px; }
.ask-list { display: grid; gap: 8px; }
.ask-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.55; }
.contract-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; max-height: 65vh; overflow-y: auto; padding: 4px; }
.contract-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.contract-card h3 { margin: 0; font-size: 14px; }
.contract-card small { color: var(--muted); font-size: 11px; display: block; margin-bottom: 8px; }
.contract-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contract-cols ul { margin: 4px 0 0; padding-inline-start: 16px; font-size: 12px; line-height: 1.55; color: var(--success); }
.contract-cols ul.deny { color: var(--danger); }
#councilContractsDialog { width: min(920px, 94vw); }
@media (max-width: 900px) { .council-duo, .contract-cols { grid-template-columns: 1fr; } }

/* ===== Live voice ===== */
.voice-fab { position: fixed; left: 22px; bottom: 22px; z-index: 190; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: white; background: linear-gradient(140deg, #6d28d9, #0f766e); box-shadow: 0 12px 30px rgba(76, 29, 149, .35); transition: transform .18s; }
.voice-fab:hover { transform: translateY(-2px) scale(1.03); }
.voice-fab svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.voice-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); opacity: 0; }
.voice-fab.live .voice-fab-ring { animation: voice-ring 1.6s ease-out infinite; }
@keyframes voice-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.voice-panel { position: fixed; left: 22px; bottom: 96px; z-index: 191; width: min(420px, calc(100vw - 44px)); max-height: min(78vh, 720px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow-md); overflow: hidden; }
.voice-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--surface), var(--surface-3)); }
.voice-title { flex: 1; display: grid; }
.voice-title strong { font-size: 14px; letter-spacing: .04em; }
.voice-title span { font-size: 11.5px; color: var(--muted); }
.voice-head-actions { display: flex; gap: 6px; }
.voice-head-actions .icon-button { width: 36px; height: 36px; }
.voice-orb { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 35%, #c4b5fd, #6d28d9 60%, #1e1b4b); box-shadow: 0 0 0 0 rgba(109,40,217,.35); transition: box-shadow .3s; }
.voice-orb span { position: absolute; width: 60%; height: 60%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); opacity: 0; }
.voice-orb[data-state="listening"] { box-shadow: 0 0 0 8px rgba(15,118,110,.18); background: radial-gradient(circle at 35% 35%, #99f6e4, #0f766e 60%, #042f2e); }
.voice-orb[data-state="listening"] span { animation: orb-pulse 1.8s ease-out infinite; }
.voice-orb[data-state="listening"] span:nth-child(2) { animation-delay: .6s; } .voice-orb[data-state="listening"] span:nth-child(3) { animation-delay: 1.2s; }
.voice-orb[data-state="thinking"] { animation: orb-spin 1.2s linear infinite; background: conic-gradient(#a78bfa, #6d28d9, #0f766e, #a78bfa); }
.voice-orb[data-state="speaking"] { box-shadow: 0 0 0 10px rgba(109,40,217,.16); animation: orb-breathe 1s ease-in-out infinite; }
@keyframes orb-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-breathe { 50% { transform: scale(1.1); } }
.voice-settings { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; background: var(--surface-2); }
.voice-settings label { display: grid; gap: 4px; font-size: 12px; }
.voice-settings input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.voice-wave { width: 100%; height: 56px; display: block; background: var(--surface-2); }
.voice-transcript { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.voice-hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.voice-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.65; }
.voice-bubble.user { justify-self: start; background: var(--primary-soft); color: var(--primary-strong); border-end-start-radius: 4px; }
.voice-bubble.assistant { justify-self: end; background: var(--surface-3); border-end-end-radius: 4px; }
.voice-bubble small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.voice-interim { min-height: 22px; padding: 0 16px 6px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.voice-foot { padding: 12px 16px 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.voice-foot .button { justify-content: center; }
.voice-foot .button.live { background: var(--danger); border-color: var(--danger); }
.voice-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-chips button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer; }
.voice-chips button:hover { border-color: var(--primary); color: var(--primary-strong); }
@media (max-width: 640px) { .voice-panel { left: 12px; right: 12px; bottom: 90px; width: auto; } .voice-fab { left: 14px; bottom: 14px; } .toast-region { bottom: 92px; } }
@media print { .voice-fab, .voice-panel { display: none; } }
.voice-settings[hidden], .voice-panel[hidden] { display: none; }
