/* CyberPass enterprise console. Shared visual system; behavior and data stay in app.js. */
:root {
  --ink: #172321;
  --ink-2: #34433e;
  --muted: #586760;
  --muted-2: #66766f;
  --paper: #f2f4f3;
  --surface: #ffffff;
  --surface-2: #f4f6f5;
  --night: #101917;
  --night-2: #1c2924;
  --line: #dce3df;
  --line-strong: #bdc9c2;
  --shadow: 0 8px 28px rgba(14, 30, 23, .08);
  --sidebar: 248px;
  --radius: 8px;
  --radius-sm: 5px;
}
html { scroll-behavior: auto; }
body { font-size: 14px; line-height: 1.5; }
h1, h2, h3, .console-brand strong { font-family: "IBM Plex Sans", sans-serif; font-variation-settings: normal; font-weight: 600; }
button, a, input, select, textarea { transition: background-color .12s, border-color .12s, color .12s; }
:focus-visible { outline: 2px solid #416d16; outline-offset: 3px; border-radius: 3px; }
.sidebar :focus-visible { outline-color: var(--mint); }
.sidebar { padding: 20px 12px 12px; background: var(--night); border-right-color: #26332d; }
.console-brand { height: 40px; padding: 0 10px; gap: 10px; }
.console-brand img { width: 36px; height: 36px; border-radius: 7px; box-shadow: none; }
.console-brand strong { font-size: 19px; letter-spacing: -.03em; }
.console-brand span { color: #9aafa4; font: 500 12px/1.5 "IBM Plex Sans", sans-serif; letter-spacing: .12em; }
.tenant { margin: 23px 0 14px; padding: 11px 10px; gap: 9px; border-radius: 5px; border-color: #324139; background: #18251f; }
.tenant-mark { width: 30px; height: 30px; border-radius: 4px; background: #293a30; color: #d8eacb; font-weight: 600; }
.tenant strong { font-size: 13px; }
.tenant span:last-child { color: #a6b5ad; font-size: 12px; }
.sidebar nav { padding: 0 0 16px; }
.sidebar nav p { margin: 20px 10px 7px; color: #8fa398; font: 500 12px "IBM Plex Sans", sans-serif; letter-spacing: .12em; }
.sidebar nav a { min-height: 38px; padding: 8px 10px; gap: 10px; border-radius: 4px; color: #c0cec6; font-size: 13px; font-weight: 400; }
.sidebar nav a:hover { background: #223129; color: #fff; transform: none; }
.sidebar nav a.active { background: #26372b; color: #eff9e6; box-shadow: inset 2px 0 var(--mint); font-weight: 500; }
.sidebar nav a svg { width: 17px; height: 17px; flex-shrink: 0; color: #95aaa0; }
.nav-count { min-width: 20px; padding: 1px 5px; border-radius: 3px; background: #ead5a3; color: #302512 !important; font: 600 12px/1.5 "IBM Plex Sans", sans-serif !important; }
.sidebar-foot { min-height: 54px; gap: 8px; padding: 12px 9px 0; border-color: #2b3b32; }
.sidebar-foot strong { font-size: 12px; font-weight: 500; }
.sidebar-foot span, .sidebar-foot small { color: #99aaa0; font-size: 12px; }
.sidebar-foot > i, .sidebar-foot.connected > i { width: 6px; height: 6px; box-shadow: none; }
.topbar { height: 60px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb b { font-weight: 500; }
.environment { border-radius: 3px; padding: 4px 7px; background: #f7f9f7; border-color: var(--line); color: #53655c; font-size: 12px; letter-spacing: .06em; font-weight: 500; }
.help-link, .top-actions button { width: 32px; height: 32px; border-radius: 4px; background: #fff; }
.console-locale select { min-height: 32px; border-radius: 4px; }
.page { width: min(1680px, 100%); padding: 30px 32px 56px; }
.page-heading, .section-title { align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.page-heading h1[tabindex="-1"]:focus, .section-title h2[tabindex="-1"]:focus { outline: none; }
.page-heading h1, .section-title h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.page-heading > div > p:last-child, .section-title > div > p:last-child { max-width: 760px; margin-top: 8px; font-size: 13px; line-height: 1.55; }
.kicker { color: #5f7166; font: 500 12px/1.5 "IBM Plex Sans", sans-serif; letter-spacing: .11em; }
.heading-actions { flex-shrink: 0; padding-top: 22px; flex-wrap: wrap; }
.primary, .secondary, .config-action, .section-title > button, .section-link, .panel-actions button, .table-row > button, .policy-row > button, .button-link { min-height: 36px; padding: 0 12px; border-radius: 5px; font-size: 12px; font-weight: 500; }
.primary, .button-link.primary { background: #253d2c; border-color: #253d2c; color: #fff; }
.primary:hover, .button-link.primary:hover { background: #1b2e20; border-color: #1b2e20; }
.secondary:hover, .config-action:hover, .section-link:hover, .panel-actions button:hover, .table-row > button:hover, .policy-row > button:hover { transform: none; background: #eef3ef; border-color: #9bae9f; }
.panel { box-shadow: none; overflow: hidden; }
.panel-head { min-height: 66px; padding: 16px 20px 13px; gap: 14px; align-items: center; }
.panel-head > div > span { color: #64776b; font: 500 12px "IBM Plex Sans", sans-serif; letter-spacing: .09em; }
.panel-head h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.015em; }
.panel-head button { min-height: 32px; border-radius: 4px; font-size: 12px; }
.panel-link { color: #365e3f; font-size: 12px; font-weight: 500; }
.panel-context, .last-check { font-size: 12px; color: var(--muted); }
.content-grid, .registry-grid, .access-grid, .deployment-grid, .guard-grid, .lab-grid, .analytics-grid, .integration-grid { gap: 16px; }
.posture-banner { min-height: 104px; margin-bottom: 16px; padding: 18px 20px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; border-radius: 6px; background: #f4f8f2; box-shadow: inset 3px 0 #5a8146; }
.posture-banner.attention { background: #fffcf5; border-color: #e5d9b8; box-shadow: inset 3px 0 #a87b27; }
.posture-banner.warning { background: #fff9f8; border-color: #e8cec8; box-shadow: inset 3px 0 #ac5947; }
.posture-banner.waiting { box-shadow: inset 3px 0 #8c9b92; }
.posture-symbol, .health-banner > span { width: 36px; height: 36px; border-radius: 5px; background: #e6efde; }
.posture-symbol svg, .health-banner > span svg { width: 21px; height: 21px; }
.posture-banner h2, .health-banner h2 { margin: 3px 0; font-size: 18px; letter-spacing: -.02em; }
.posture-banner p:not(.kicker), .health-banner p:not(.kicker) { font-size: 12px; color: var(--muted); }
.posture-banner dl { gap: 0; }
.posture-banner dl > div { padding: 6px 14px; min-width: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.posture-banner dt { color: var(--muted); font-size: 12px; }
.posture-banner dd { font-size: 12px; font-weight: 500; }
.metric-grid { margin-bottom: 16px; gap: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.metric-grid article { min-height: 120px; padding: 18px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.metric-grid article:last-child { border-right: 0; }
.metric-grid article span { color: #52675a; font: 500 12px/1.4 "IBM Plex Sans", sans-serif; letter-spacing: .08em; }
.metric-grid article > strong { margin: 14px 0 8px; font-family: "IBM Plex Sans", sans-serif; font-size: 30px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-grid article p, .metric-grid article em { color: var(--muted); font-size: 12px; }
.metric-icon, .metric-icon.orange, .metric-icon.lime, .metric-icon.cyan { width: 18px; height: 18px; border-radius: 0; background: transparent; color: #687d6e; }
.metric-icon svg { width: 18px; height: 18px; }
.compact-metrics article { min-height: 106px; }
.traffic-panel, .coverage-panel { min-height: 320px; }
.events-panel, .onboarding-panel { min-height: 290px; }
.onboarding-panel { align-self: start; min-height: 0; }
.decision-chart.compact { height: 198px; }
.chart-stack { border-radius: 2px 2px 0 0; }
.chart-legend { gap: 14px; color: #52675a; font-size: 12px; flex-wrap: wrap; }
.chart-legend i { border-radius: 1px; }
.chart-segment.allow, .chart-legend i.allow { background: #488765; }
.chart-segment.redact, .chart-legend i.redact { background: #b48432; }
.chart-segment.block, .chart-legend i.block { background: #bd6655; }
.chart-segment.observe, .chart-legend i.observe { background: #608da6; }
.chart-column > span { color: #617168; font-size: 12px; }
.attention-summary { padding: 18px 20px; }
.attention-hero { padding: 14px; gap: 14px; border: 1px solid #ecdfc5; border-radius: 5px; background: #faf5e9; }
.attention-hero > strong { font: 500 32px/1 "IBM Plex Sans", sans-serif; color: #795619; font-variant-numeric: tabular-nums; }
.attention-hero p b { font-size: 13px; }
.attention-hero p span { font-size: 12px; }
.attention-facts { gap: 0; margin-top: 8px; }
.attention-facts span { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 12px; color: var(--muted); }
.attention-facts span:last-child { border-bottom: 0; }
.attention-clear { min-height: 196px; }
.attention-clear > span { width: 34px; height: 34px; border-radius: 5px; font-size: 18px; }
.attention-clear strong { font-size: 14px; }
.attention-clear small { font-size: 12px; }
.table-list, .policy-list { padding: 0 20px; }
.table-row, .registry-row, .policy-row { min-height: 66px; gap: 12px; }
.table-row strong, .policy-row strong { font-size: 13px; font-weight: 500; }
.table-row p span, .table-row > em, .policy-row p span, .loading-row, .onboarding-list span { color: var(--muted); }
.row-mark, .policy-version { width: 32px; height: 32px; border-radius: 4px; font-size: 12px; }
.row-mark.app { background: #e9eee9; color: #38553e; }
.row-state, .policy-status, .event-status, .onboarding-progress, .privacy-pill { border-radius: 3px; padding: 4px 7px; font-size: 12px; font-weight: 500; letter-spacing: .015em; }
.row-actions { flex-wrap: wrap; }
.row-actions button, .onboarding-list button, .onboarding-list a { min-height: 32px; border-radius: 4px; font-size: 12px; }
.loading-row { padding: 24px 0; font-size: 13px; }
.event-view-tabs { padding: 0 20px; gap: 22px; }
.event-view-tabs button { min-height: 48px; padding: 0 2px; border-radius: 0; font-size: 13px; }
.event-view-tabs button.active { border-bottom: 2px solid #456d32; }
.event-view-tabs button span { border-radius: 3px; font-size: 12px; font-weight: 500; }
.event-filters label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.event-filters { align-items: end; padding: 16px 20px; grid-template-columns: minmax(160px, 1.3fr) repeat(2, minmax(130px, 1fr)) minmax(110px, .6fr) auto auto; gap: 8px; background: #fafbfa; }
.event-filters input, .event-filters select, .panel-actions input { height: 36px; border-radius: 4px; font-size: 12px; }
.event-filters button { grid-column: auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; font-size: 12px; white-space: nowrap; }
.event-list-head { min-height: 42px; padding: 10px 20px; color: var(--muted); font-size: 12px; }
.event-row { min-height: 82px; padding: 14px 0; grid-template-columns: 30px minmax(0, 1fr) 48px minmax(96px, auto) minmax(72px, max-content); gap: 16px; }
.event-icon { width: 30px; height: 30px; border-radius: 4px; font-size: 14px; }
.event-copy { gap: 3px; }
.event-copy strong { font-size: 13px; font-weight: 500; }
.event-copy span { font-size: 12px; color: #51645a; }
.event-copy small { font-size: 12px; color: #61766a; }
.event-score span { color: #637569; font: 500 12px "IBM Plex Sans", sans-serif; letter-spacing: .07em; }
.event-score strong { font: 500 18px "IBM Plex Sans", sans-serif; font-variant-numeric: tabular-nums; }
.event-row > button { border-radius: 4px; min-height: 32px; padding: 0 10px; font-size: 12px; font-weight: 500; }
.event-row:hover { background: #f8faf8; }
.events-panel .event-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px 12px; }
.events-panel .event-score { gap: 5px; }
.events-panel .event-status { grid-row: 3; margin-left: 0; }
.events-panel .event-row > button { grid-row: 3; }
.onboarding-list { padding: 2px 20px 10px; }
.onboarding-list li { min-height: 63px; gap: 10px; }
.onboarding-list strong { font-size: 13px; font-weight: 500; }
.onboarding-list li > i { width: 16px; height: 16px; border-radius: 3px; }
.onboarding-progress { background: #edf3e8; }
.active-policy-card, .health-banner, .guard-policy-banner, .baseline-notice { border-radius: 6px; background: #f7faf4; box-shadow: none; }
.active-policy-card { min-height: 112px; padding: 20px; }
.active-policy-card h2 { font-size: 20px; }
.active-policy-card .status-orb, .concept-icon, .guard-icon, .card-symbol, .step-number { border-radius: 5px; }
.policy-chips span { border-radius: 3px; background: #fff; }
.protection-glance article, .device-summary article { min-height: 112px; border-radius: 6px; }
.protection-glance span, .device-summary span { color: #536a5b; font: 500 12px "IBM Plex Sans", sans-serif; letter-spacing: .07em; }
.protection-glance strong, .device-summary strong, .health-banner > strong { font-family: "IBM Plex Sans", sans-serif; font-weight: 500; }
.protection-glance p, .device-summary p { color: var(--muted); font-size: 12px; }
.policy-concepts article { min-height: 112px; padding: 18px; }
.guard-card strong { font-family: "IBM Plex Sans", sans-serif; font-size: 17px; font-weight: 500; }
.policy-concepts strong { font-size: 13px; font-weight: 500; }
.route-explainer { min-height: 106px; padding: 18px 20px; }
.breakdown-row > i b, .breakdown-row > i b.orange { background: #588365; }
.breakdown-row > i { height: 4px; }
.breakdown-row span, .coverage-note, .field-help, .optional { color: var(--muted); }
.live-indicator i { width: 6px; height: 6px; box-shadow: none; }
.auth-shell { padding: 40px 20px; overflow: auto; background: #111c17; backdrop-filter: none; }
.auth-card { position: relative; width: min(440px, 100%); padding: 30px 32px; border: 1px solid #34453a; border-top: 3px solid var(--mint); border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.auth-locale { position: absolute; top: 30px; right: 32px; }
.auth-locale select { width: auto; min-height: 36px; }
.auth-card > img { width: 40px; height: 40px; margin-bottom: 24px; border-radius: 6px; }
.auth-card h1 { margin-top: 6px; font-size: 26px; line-height: 1.25; letter-spacing: -.025em; }
.auth-copy { margin: 12px 0 24px; color: #52655a; font-size: 13px; }
.auth-tabs { margin-bottom: 22px; padding: 0; gap: 24px; display: flex; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.auth-tabs button { height: 38px; padding: 0; border-radius: 0; color: var(--muted); font-size: 13px; }
.auth-tabs button.active { border-bottom: 2px solid #496d33; background: transparent; box-shadow: none; color: var(--ink); font-weight: 500; }
.auth-card input, .dialog-card input, .dialog-card select, .dialog-card textarea, .auth-card select { border-radius: 4px; border-color: #b8c8bf; background: #fff; font-size: 13px; }
.auth-card label, .dialog-card label { color: #354d3d; font-size: 12px; font-weight: 500; }
.auth-card .primary, .auth-card .secondary { min-height: 40px; border-radius: 4px; }
.auth-card .form-error:empty { margin: 0; }
dialog { border-radius: 7px; max-height: calc(100dvh - 40px); }
dialog::backdrop { background: rgba(14, 25, 19, .5); backdrop-filter: none; }
.dialog-card { display: flex; flex-direction: column; gap: 0; overflow: hidden; max-height: calc(100dvh - 40px); padding: 0; border-radius: 7px; background: #fff; box-shadow: 0 20px 60px rgba(5, 19, 10, .2); }
.dialog-content { display: grid; gap: 15px; min-height: 0; padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-head { padding-bottom: 18px; }
.dialog-head h2 { margin-top: 3px; font-size: 22px; letter-spacing: -.02em; }
.dialog-head > button { width: 32px; height: 32px; border-radius: 4px; font-weight: 400; }
.dialog-card fieldset, .technical-evidence, .reason-list li, .privacy-assurance, .event-detail .next-action { border-radius: 4px; }
.dialog-actions { flex: 0 0 auto; position: static; margin: 0; padding: 16px 24px; background: #fff; }
.event-detail { gap: 20px; }
.event-detail-head { padding: 16px; gap: 12px; border-radius: 5px; background: #f6f8f5; }
.event-detail-head h3 { font-size: 17px; }
.event-detail-head p, .event-detail section > p, .reason-list li { font-size: 13px; }
.event-detail h4 { font-size: 13px; font-weight: 600; }
.event-detail .next-action { border-left: 2px solid #ac8439; background: #fcf8ee; }
.privacy-assurance { padding: 12px; background: #f0f5ee; color: #405f4a; font-size: 12px; }
.technical-evidence dl div { grid-template-columns: 120px minmax(0, 1fr); }
.technical-evidence dt { color: #596d5f; }
.investigation-fields { padding-top: 20px; }
.toast { border-radius: 5px; font-size: 13px; }
.sidebar-close, .sidebar-backdrop { display: none; }
@media (min-width: 1221px) {
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1380px) and (min-width: 761px) {
  .page-heading { flex-wrap: wrap; gap: 14px; }
  .heading-actions { padding-top: 0; }
  .posture-banner { grid-template-columns: 36px minmax(0, 1fr); }
  .posture-banner dl { grid-column: 2; flex-wrap: wrap; }
  .posture-banner dl > div:first-child { padding-left: 0; border-left: 0; }
  .event-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1220px) {
  .metric-grid article:nth-child(2) { border-right: 0; }
  .metric-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .event-row { grid-template-columns: 30px minmax(0, 1fr) 48px auto; }
  .event-row > button { grid-column: 4; justify-self: end; }
  .event-row > time { grid-column: 4; }
}
@media (max-width: 980px) and (min-width: 761px) {
  :root { --sidebar: 224px; }
  .page { padding: 24px 22px 48px; }
  .topbar { padding: 0 22px; }
  .section-title { flex-wrap: wrap; gap: 16px; }
  .sidebar nav a { font-size: 12px; }
  .analytics-grid, .registry-grid, .access-grid, .deployment-grid, .guard-grid, .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  body.sidebar-open { overflow: hidden; }
  .sidebar { width: min(290px, calc(100vw - 48px)); z-index: 100; padding-top: 22px; box-shadow: none; }
  .sidebar.open { box-shadow: 16px 0 48px rgba(0, 0, 0, .2); }
  .sidebar-close { position: absolute; top: 20px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #415247; border-radius: 4px; color: #dce8df; background: #23372a; font-size: 20px; }
  .sidebar .console-brand { padding-right: 24px; }
  .sidebar-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 90; display: block; background: rgba(8, 20, 12, .5); }
  .sidebar nav a { min-height: 42px; font-size: 14px; }
  .topbar { height: 58px; padding: 0 16px; gap: 10px; }
  .topbar > div { min-width: 0; gap: 10px; }
  .mobile-menu { flex-shrink: 0; min-width: 36px; height: 36px; }
  .breadcrumb { display: inline-block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .breadcrumb > [data-route-group] { display: none; }
  .breadcrumb { font-size: 0; }
  .breadcrumb b { font-size: 12px; }
  .top-actions { gap: 7px !important; flex-shrink: 0; }
  .top-actions .help-link { display: none; }
  .top-actions button { width: 34px; height: 34px; }
  .page { padding: 24px 16px 40px; }
  .page-heading, .section-title { flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .page-heading h1, .section-title h2 { font-size: 26px; }
  .page-heading > div > p:last-child, .section-title > div > p:last-child { font-size: 13px; }
  .heading-actions { padding-top: 0; gap: 8px; }
  .heading-actions > * { min-height: 40px; }
  .posture-banner { padding: 16px; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .posture-symbol { width: 30px; height: 30px; }
  .posture-banner h2 { font-size: 17px; }
  .posture-banner dl { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .posture-banner dl > div { padding: 0; border: 0; }
  .posture-banner dl > div:last-child { grid-column: 1/-1; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid article { min-height: 118px; padding: 16px; }
  .metric-grid article > strong { font-size: 28px; }
  .metric-grid article p { display: grid; gap: 1px; }
  .metric-grid article em { margin-left: 0; }
  .metric-grid article span { font-size: 12px; }
  .metric-icon { display: none; }
  .panel-head { min-height: 64px; padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .panel-head h2 { font-size: 17px; }
  .table-list, .policy-list { padding: 0 16px; }
  .event-view-tabs { gap: 18px; padding: 0 16px; }
  .event-view-tabs button { white-space: nowrap; font-size: 12px; }
  .event-filters { padding: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-filters input, .event-filters select { width: 100%; height: 42px; font-size: 16px; }
  .event-filters button { grid-column: auto; min-height: 40px; }
  .event-list-head { padding: 12px 16px; gap: 5px; }
  .event-row, .live-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .event-copy { grid-column: 2/-1; }
  .event-copy small { white-space: normal; }
  .event-score { grid-column: 1; }
  .event-status { grid-column: 2; justify-self: start; }
  .event-row > button, .event-row > time { grid-column: 3; min-height: 36px; }
  .events-panel .event-status { margin-left: 0; max-width: 100%; }
  .event-row > button { font-size: 12px; }
  .onboarding-list { padding: 4px 16px 14px; }
  .onboarding-list li { padding: 12px 0; }
  .onboarding-list li > button, .onboarding-list li > a { min-height: 36px; }
  .auth-shell { padding: 24px 16px; align-items: start; }
  .auth-card { margin: auto 0; padding: 28px 24px; }
  .auth-card h1 { font-size: 25px; }
  .auth-locale { top: 28px; right: 24px; }
  .auth-locale select { min-height: 40px; }
  .auth-card input, .auth-card select, .dialog-card input, .dialog-card select, .dialog-card textarea { font-size: 16px; }
  dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-card { max-height: calc(100dvh - 24px); padding: 0; border-radius: 6px; }
  .dialog-content { padding: 20px; }
  .dialog-head h2 { font-size: 21px; }
  .dialog-actions { margin: 0; padding: 14px 20px; }
  .dialog-actions button { min-height: 40px; }
  .technical-evidence dl div { grid-template-columns: 1fr; gap: 3px; }
  .reason-list li { gap: 5px; }
  .event-detail-head { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Task workspaces keep operational tools close without adding brochure pages. */
.workspace-navigation:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface, #fff); }
.workspace-navigation a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 4px; color: var(--muted, #536458); text-decoration: none; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.workspace-navigation a:hover { background: #eef3eb; color: #203a2a; }
.workspace-navigation a.active { background: #e1edcf; color: #203a2a; }
.workspace-navigation a:focus-visible, .setup-links a:focus-visible { outline: 2px solid #365d32; outline-offset: 3px; }
.setup-guide { margin: 0 0 24px; }
.content-grid > .events-panel { grid-column: 1 / -1; }
.setup-role-note { color: #62542a; }
.setup-guide .panel-head { min-height: auto; }
.setup-intro { margin: 0; padding: 0 24px 18px; color: var(--muted, #536458); font-size: 13px; line-height: 1.6; }
.setup-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0 24px 22px; gap: 20px; }
.setup-steps li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.setup-number { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #b8c8ad; border-radius: 50%; color: #385434; background: #f0f5e8; font-weight: 600; font-size: 12px; }
.setup-steps h3 { margin: 0 0 7px; color: #23392b; font-size: 14px; line-height: 1.45; }
.setup-steps p { margin: 0 0 9px; font-size: 12px; line-height: 1.6; color: var(--muted, #536458); }
.setup-steps .setup-evidence { color: #344b37; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.setup-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.setup-links a { display: inline-flex; align-items: center; min-height: 30px; color: #365d32; text-underline-offset: 3px; font-size: 12px; line-height: 1.5; }
.setup-prerequisite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; margin: 0 0 18px; background: #faf4e3; border: 1px solid #ddcb99; border-radius: 5px; color: #62542a; font-size: 13px; line-height: 1.6; }
.setup-prerequisite[hidden] { display: none; }
.setup-prerequisite a { font-weight: 600; color: inherit; text-underline-offset: 3px; }
.setup-prerequisite button { margin-left: auto; }
.device-help, .connections-help { margin: 0 0 18px; padding: 0; }
.policy-guard { margin: 18px 0; }
.policy-guard .panel-head p { margin: 6px 0 0; max-width: 620px; font-size: 13px; line-height: 1.5; color: var(--muted, #536458); }
.policy-guard .guard-policy-banner { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (max-width: 1200px) {
  .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workspace-navigation:not([hidden]) { margin-bottom: 20px; }
  .workspace-navigation a { flex: 1 1 auto; min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .setup-intro { padding: 0 16px 16px; }
  .setup-steps { grid-template-columns: 1fr; padding: 0 16px 18px; gap: 16px; }
  .setup-steps li { flex-direction: row; gap: 12px; }
  .setup-number { flex-shrink: 0; }
  .setup-links { flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
  .setup-links a { min-height: 44px; }
  .setup-prerequisite { align-items: flex-start; }
  .setup-prerequisite a, .setup-prerequisite button { min-height: 44px; display: inline-flex; align-items: center; margin-left: 0; }
}
