/* Fault Current screen presentation on the accepted calculator design basis
   (docs/design/CALCULATOR-DESIGN-BASIS.md). Screen only. Calculation methods,
   save/document contracts and the printed report are unchanged by this file. */
@media screen {
html:has(body.page-fault) { background:#fff; }
html[data-theme="night"]:has(body.page-fault) { background:#191a20; }
body.page-fault {
 --fc-canvas:#fff; --fc-surface:#fff; --fc-group:#f6f7fa; --fc-group-edge:#e1e5ed;
 --fc-ink:#323338; --fc-muted:#676879; --fc-line:#d0d4e4;
 --fc-accent:#0060b9; --fc-accent-hover:#004f99; --fc-accent-soft:#cce5ff; --fc-on-accent:#fff;
 --fc-green:#006b40; --fc-red:#b4233d; --fc-amber:#6b4500;
 --fc-body:Arial,Helvetica,sans-serif;
 --fc-heading:'Poppins','Poppins-fb',Arial,sans-serif;
 --fc-mono:'JetBrains Mono',ui-monospace,monospace;
 background:var(--fc-canvas) !important; background-image:none !important;
 color:var(--fc-ink); font:14px/1.5 var(--fc-body);
}
html[data-theme="night"] body.page-fault {
 --fc-canvas:#191a20; --fc-surface:#2b2e39; --fc-group:#22242e; --fc-group-edge:#414654;
 --fc-ink:#f0eff4; --fc-muted:#b0afbe; --fc-line:#55596c;
 --fc-accent:#8ec5ff; --fc-accent-hover:#b7dcff; --fc-accent-soft:#263e58; --fc-on-accent:#191a20;
 --fc-green:#a3dbb8; --fc-red:#f0acb6; --fc-amber:#e9c27e;
 color-scheme:dark;
}
body.page-fault::before, body.page-fault::after { display:none !important; }

/* Map the shared grouped-card and workspace token families to the module palette. */
body.page-fault .vd-stage, body.page-fault .vd,
body.page-fault :is(dialog,[role="dialog"],.amp-workspace-strip,.amp-workspace-dialog) {
 --sans:var(--fc-body) !important; --serif:var(--fc-heading) !important; --mono:var(--fc-mono) !important;
 --bg:var(--fc-canvas) !important; --bg-card:var(--fc-surface) !important; --bg-deep:var(--fc-group) !important; --bg-deepest:var(--fc-group) !important;
 --ink:var(--fc-ink) !important; --ink-soft:var(--fc-muted) !important; --ink-mute:var(--fc-muted) !important; --ink-dim:var(--fc-muted) !important; --ink-fade:var(--fc-muted) !important; --ink-inverse:var(--fc-canvas) !important;
 --accent:var(--fc-accent) !important; --accent-bright:var(--fc-accent-hover) !important; --copper:var(--fc-accent) !important; --copper-deep:var(--fc-accent-hover) !important;
 --clay-text:var(--fc-accent) !important; --clay-small:var(--fc-accent) !important;
 --rule:var(--fc-line) !important; --rule-strong:var(--fc-line) !important; --hairline:var(--fc-line) !important; --soft:var(--fc-group) !important;
 --input:var(--fc-surface) !important; --display:var(--fc-group) !important; --ctrl:var(--fc-surface) !important;
 --pass:var(--fc-green) !important; --green:var(--fc-green) !important; --fail:var(--fc-red) !important; --red:var(--fc-red) !important; --amber:var(--fc-amber) !important;
 --glass:var(--fc-surface) !important; --panel-glass:var(--fc-group) !important; --glass-edge:var(--fc-group-edge) !important; --panel-shadow:none !important;
 --on-dark:var(--fc-ink) !important; --on-dark-dim:var(--fc-muted) !important; --on-dark-line:var(--fc-line) !important;
}
html body.page-fault :is(.amp-workspace-strip,.amp-workspace-dialog) {
 --aw-ink:var(--fc-ink); --aw-muted:var(--fc-muted); --aw-line:var(--fc-line); --aw-bg:var(--fc-surface); --aw-soft:var(--fc-group);
}
html body.page-fault #amp-doc-card {
 --dc-bg:var(--fc-surface); --dc-surface:var(--fc-group); --dc-ink:var(--fc-ink); --dc-soft:var(--fc-ink);
 --dc-muted:var(--fc-muted); --dc-line:var(--fc-line); --dc-font:var(--fc-body);
}

/* Type roles: Arial body everywhere in content, Poppins 500 headings, mono for audit labels and record identifiers only. */
body.page-fault :is(main,dialog,.mobile-drawer,footer) *,
body.page-fault :is(main,dialog,.mobile-drawer,footer) *::before,
body.page-fault :is(main,dialog,.mobile-drawer,footer) *::after { font-family:var(--fc-body) !important; letter-spacing:normal; }
/* Site-chrome brand keeps its own heading face (the rule above would turn the footer brand Arial). */
body.page-fault :is(main,dialog,.mobile-drawer,footer) .brand,
body.page-fault :is(main,dialog,.mobile-drawer,footer) .brand * { font-family:var(--fc-heading) !important; }
body.page-fault :is(main,dialog) :is(h1,h2,h3,h4,.t,.ct,.doc-h,.fc-sub,.fault-details > summary,.amp-dc-section::before),
body.page-fault :is(main,dialog) :is(h1,h2,h3,h4,.t,.doc-h,.fc-sub) :not(.ct-meta,.fc-sub-ref,.ct-meta *) { font-family:var(--fc-heading) !important; font-weight:500; font-style:normal; text-transform:none; }
body.page-fault :is(main,dialog) :is(pre,code,.mono,.amp-dc-docno,.amp-dc-rev,.amp-dc-chip,#foot-meta),
body.page-fault :is(main,dialog) :is(pre,code,.mono,.amp-dc-docno,.amp-dc-rev,.amp-dc-chip) * { font-family:var(--fc-mono) !important; }
body.page-fault sub, body.page-fault sup { font-size:.75em; line-height:0; }

/* Stage and sections */
html:has(body.page-fault) { scroll-padding-top:0; }
body.page-fault .vd-stage { display:block; background:var(--fc-canvas) !important; padding:20px 24px 48px; }
body.page-fault .vd-stage .vd-suite.suite-wide { display:flex; flex-direction:column; width:100%; max-width:none; gap:36px; }
body.page-fault .vd-suite.suite-wide .vd {
 --pad:16px; --gap:12px; --hero-size:42px; --ctl-h:36px;
 min-width:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; font-weight:400; color:var(--fc-ink);
}
body.page-fault .vd-suite.suite-wide > .vd[data-role="analysis"] { position:static; max-height:none; overflow:visible; }
body.page-fault .vd [hidden] { display:none !important; }
body.page-fault .vd .vd-head { padding:0 0 14px; min-height:42px; flex-wrap:wrap; gap:8px; align-items:flex-start; }
body.page-fault .vd .vd-head .hl { display:block; min-width:0; }
body.page-fault .vd .vd-head .t { font:500 24px/1.3 var(--fc-heading); letter-spacing:-.02em; color:var(--fc-ink); margin:0; }
body.page-fault .vd:is([data-role="analysis"],[data-role="doc"]) .vd-head .t { font-size:20px; }
body.page-fault .fault-subheading { font:400 14px/1.5 var(--fc-body); color:var(--fc-muted); margin:4px 0 0; }
body.page-fault .vd .vd-head .hr { flex-wrap:wrap; gap:8px; align-items:center; }
body.page-fault .vd .vd-head .tag { font:400 12px/1.5 var(--fc-body); letter-spacing:0; text-transform:none; color:var(--fc-muted); }
body.page-fault .vd .vd-status { background:var(--fc-surface); border:1px solid var(--fc-line); border-radius:12px; padding:4px 10px; box-shadow:none; }
body.page-fault .vd .vd-status .dot { background:var(--fc-muted); }
body.page-fault .vd .vd-status select { appearance:auto; background-image:none; color:var(--fc-ink); font:400 13px var(--fc-body); letter-spacing:0; text-transform:none; padding:0; min-height:26px; }
body.page-fault .vd .vd-status select option { color:var(--fc-ink); background:var(--fc-surface); }

/* Reading groups: opaque, quiet, 18 px radius, no blur. */
body.page-fault .vd :is(.vd-card,.vd-hero) {
 min-width:0; padding:16px; background:var(--fc-group); border:1px solid var(--fc-group-edge); border-radius:18px;
 box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none;
}
body.page-fault .vd .vd-card .ct { display:block; font:500 16px/1.4 var(--fc-heading); letter-spacing:-.01em; text-transform:none; color:var(--fc-ink); margin:0 0 12px; min-height:0; }
body.page-fault .vd .vd-card .ct::before { display:none; }
body.page-fault .vd .ct-meta { display:block; font:400 13px/1.5 var(--fc-body) !important; color:var(--fc-muted); margin:2px 0 0; letter-spacing:0; }

/* Inputs */
body.page-fault .vd-suite.suite-wide, body.page-fault .vd, body.page-fault .vd .vd-body, body.page-fault #fault-input-groups { min-width:0; max-width:100%; }
body.page-fault #fault-input-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
body.page-fault #fault-input-groups > .fault-wide { grid-column:1 / -1; }
body.page-fault .vd .vd-fld-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.page-fault .vd .vd-fld-grid > .span-2 { grid-column:1 / -1; }
body.page-fault .vd .vd-fld { min-width:0; margin:0; }
body.page-fault .vd .vd-fld .fl { margin-bottom:4px; min-height:18px; gap:4px; flex-wrap:wrap; }
body.page-fault .vd .vd-fld .fld-label { font:400 13px/1.4 var(--fc-body); letter-spacing:0; text-transform:none; color:var(--fc-ink); }
body.page-fault .vd .field, body.page-fault .vd select.dd { min-height:36px; height:auto; border:1px solid var(--fc-line); border-radius:12px; background-color:var(--fc-surface); padding-inline:10px; color:var(--fc-ink); width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
body.page-fault .vd select.dd { font:400 14px/1.5 var(--fc-body); appearance:auto; background-image:none; padding-block:6px; cursor:pointer; text-overflow:ellipsis; }
body.page-fault .vd select.dd option { background:var(--fc-surface); color:var(--fc-ink); }
body.page-fault .vd .field input { min-width:0; width:100%; min-height:34px; font:400 14px/1.5 var(--fc-body); color:var(--fc-ink); font-variant-numeric:tabular-nums; }
body.page-fault .vd .field .unit { flex-shrink:0; font:400 13px var(--fc-body); color:var(--fc-muted); }
body.page-fault .vd :is(input,select,button,a,summary,[contenteditable],[tabindex]):focus-visible { outline:2px solid var(--fc-accent) !important; outline-offset:3px; }
body.page-fault .vd .field:has(:focus-visible) { outline:2px solid var(--fc-accent); outline-offset:3px; border-color:var(--fc-accent); }
body.page-fault .vd .field input:focus-visible { outline:none !important; }
body.page-fault .vd .fc-sub { font:500 14px/1.4 var(--fc-heading); letter-spacing:0; text-transform:none; color:var(--fc-ink); margin:16px 0 8px; }
body.page-fault .vd .fc-sub-ref { display:block; font:400 13px/1.5 var(--fc-body) !important; color:var(--fc-muted); }
body.page-fault .vd .fc-help { font:400 13px/1.5 var(--fc-body); color:var(--fc-muted); margin:8px 0 0; overflow-wrap:anywhere; }
body.page-fault .vd .fc-band { border:1px solid var(--fc-group-edge); border-radius:12px; background:var(--fc-canvas); padding:10px 12px 12px; margin:0 0 10px; min-width:0; }
body.page-fault .vd .fc-band legend { font:500 14px/1.4 var(--fc-heading) !important; color:var(--fc-ink); padding:0 4px; }
body.page-fault #fc-infeeds, body.page-fault #fc-chain { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); gap:12px; align-items:start; }
body.page-fault .vd .fc-el { min-width:0; padding:14px; margin:0; border:1px solid var(--fc-group-edge); border-radius:12px; background:var(--fc-canvas); }
body.page-fault .vd .fc-el-head { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:0 0 10px; min-width:0; }
body.page-fault .vd .fc-el-title { font:500 16px/1.4 var(--fc-heading); margin:0; color:var(--fc-ink); overflow-wrap:anywhere; }
body.page-fault .vd .fault-more { margin-top:12px; min-width:0; }
body.page-fault .vd .fault-more > summary { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; min-height:40px; padding:9px 12px; box-sizing:border-box; cursor:pointer; font:400 14px/1.4 var(--fc-body); color:var(--fc-ink); list-style-position:inside; }
body.page-fault .vd .fault-more > summary span { font-size:13px; color:var(--fc-muted); }
body.page-fault .vd .fault-more > summary[data-invalid="true"] { border-color:var(--fc-red) !important; }
body.page-fault .vd .fault-more > summary[data-invalid="true"]::after { content:"Contains an input to review"; flex-basis:100%; font-size:13px; color:var(--fc-red); }
body.page-fault .vd .fault-more[open] > summary { margin-bottom:12px; }
body.page-fault .vd .fault-group-actions { display:flex; align-items:flex-start; gap:12px 16px; flex-wrap:wrap; margin-top:12px; }
body.page-fault .vd .fault-group-actions .fc-help { margin:0; flex:1 1 320px; max-width:78ch; }
body.page-fault .vd :is(.vd-pdf-btn,.vd-save-btn,.add-btn,.amp-dc-act,.vsp-save,.fault-document-button,.fault-review-input,.rm) {
 font:400 14px/1.4 var(--fc-body); letter-spacing:0; text-transform:none; border-radius:12px; min-height:40px; padding:8px 14px; margin:0; cursor:pointer;
 border:1px solid var(--fc-line); background:var(--fc-surface); color:var(--fc-ink); box-shadow:none; text-shadow:none; opacity:1;
}
body.page-fault .vd .rm { min-height:36px; padding:6px 12px; }
body.page-fault .vd :is(.vd-pdf-btn,.add-btn,.amp-dc-act,.fault-document-button,.fault-review-input,.rm):hover { background:var(--fc-group); }
body.page-fault .vd :is(.vd-save-btn,.vsp-save,#fault-document-save) { background:var(--fc-accent); color:var(--fc-on-accent); border-color:var(--fc-accent); }
body.page-fault .vd :is(.vd-save-btn,.vsp-save,#fault-document-save):hover:not(:disabled) { background:var(--fc-accent-hover); border-color:var(--fc-accent-hover); }
body.page-fault .vd :is(.vd-save-btn,.vd-pdf-btn).ghost { background:var(--fc-surface); color:var(--fc-ink); border-color:var(--fc-line); }
body.page-fault .vd :is(button,input,select):disabled { opacity:.55; cursor:not-allowed; }
body.page-fault #fc-warn:not([hidden]) { border:1px solid var(--fc-line); border-left:3px solid var(--fc-red); border-radius:12px; background:var(--fc-group); padding:12px 16px; margin:0 0 12px; font-size:14px; color:var(--fc-ink); overflow-wrap:anywhere; }
body.page-fault #fc-warn ul { margin:8px 0 0 18px; }
body.page-fault .vd .fc-refuse { font:400 14px/1.6 var(--fc-body); color:var(--fc-ink); overflow-wrap:anywhere; }

/* Results */
body.page-fault .vd .vd-hero { display:block; padding:20px; margin-bottom:12px; }
body.page-fault .vd .vd-hero-main { border:0; padding:0; min-width:0; max-width:100%; }
body.page-fault .vd .vd-hero-viz { display:none; }
body.page-fault .vd .vd-hero-head { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; }
body.page-fault .vd .vd-lbl { font:400 14px/1.5 var(--fc-body); color:var(--fc-muted); letter-spacing:0; text-transform:none; overflow-wrap:anywhere; }
body.page-fault .vd .vd-badge { font:400 13px/1.4 var(--fc-body); letter-spacing:0; text-transform:none; padding:4px 10px; border-radius:12px; border:1px solid var(--fc-line); background:var(--fc-surface); color:var(--fc-ink); white-space:normal; }
body.page-fault .vd .vd-badge.pass { color:var(--fc-green); border-color:currentColor; }
body.page-fault .vd .vd-badge:is(.fail,.warn) { color:var(--fc-red); border-color:currentColor; }
body.page-fault .vd .vd-badge.na { color:var(--fc-ink); }
body.page-fault .vd .vd-figure { margin:10px 0 4px; }
body.page-fault .vd .vd-figure .big { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
body.page-fault .vd .vd-figure .big .v { font:400 42px/1 var(--fc-body); letter-spacing:-.03em; color:var(--fc-ink); font-variant-numeric:tabular-nums; }
body.page-fault .vd .vd-figure .big .u { font:400 18px/1 var(--fc-body); color:var(--fc-muted); }
body.page-fault .vd .vd-figure .sub { font:400 14px/1.5 var(--fc-body); color:var(--fc-ink); margin-top:10px; overflow-wrap:anywhere; }
body.page-fault .fault-basis { font:400 13px/1.5 var(--fc-body); color:var(--fc-muted); margin:10px 0 0; max-width:90ch; overflow-wrap:anywhere; }
body.page-fault .fault-check-summary { margin:0 0 12px; font-size:14px; line-height:1.5; color:var(--fc-ink); overflow-wrap:anywhere; }
body.page-fault .fault-check-summary:empty { display:none; }
body.page-fault .fault-check-summary[data-state="fail"], body.page-fault .fault-check-summary[data-state="review"] { color:var(--fc-red); }
body.page-fault .fault-review-input { margin:0 0 16px !important; max-width:100%; white-space:normal; text-align:left; }
body.page-fault .fault-key-figures { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
body.page-fault .fault-check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
body.page-fault :is(.fault-figure,.fault-check) { min-width:0; padding:16px 20px; background:var(--fc-group); border:1px solid var(--fc-group-edge); border-radius:18px; }
body.page-fault .fault-figure-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; }
body.page-fault :is(.fault-figure,.fault-check) h3, body.page-fault .fault-checks-title { font:500 16px/1.4 var(--fc-heading); letter-spacing:-.01em; margin:0; color:var(--fc-ink); }
body.page-fault .fault-checks-title { margin:0 0 12px; }
body.page-fault .fault-figure-status { font-size:14px; color:var(--fc-ink); }
body.page-fault .fault-check[data-status="pass"] .fault-figure-status { color:var(--fc-green); }
body.page-fault .fault-check[data-status="review"] .fault-figure-status { color:var(--fc-red); }
body.page-fault .fault-check[data-status="review"] { border-color:var(--fc-red); }
body.page-fault .fault-figure-value { margin:12px 0 3px; font:400 24px/1.2 var(--fc-body); letter-spacing:-.02em; font-variant-numeric:tabular-nums; color:var(--fc-ink); overflow-wrap:anywhere; }
body.page-fault .fault-figure-limit { font-size:13px; color:var(--fc-muted); margin:8px 0 0; overflow-wrap:anywhere; }
body.page-fault .fault-notices { border:1px solid var(--fc-line); border-left:3px solid var(--fc-amber); border-radius:12px; padding:16px; margin-bottom:16px; background:var(--fc-group); }
body.page-fault .fault-notices h3 { font:500 14px/1.5 var(--fc-heading); margin:0 0 8px; color:var(--fc-ink); }
body.page-fault .fault-notices ul { margin:0; padding-left:18px; color:var(--fc-ink); font-size:13px; line-height:1.55; }
body.page-fault .fault-notices li { overflow-wrap:anywhere; }
body.page-fault .fault-notices li + li { margin-top:6px; }
body.page-fault .fault-details { border-top:1px solid var(--fc-line); }
body.page-fault .fault-details > summary { padding:18px 0; cursor:pointer; font:500 16px/1.4 var(--fc-heading); color:var(--fc-ink); }
body.page-fault .fault-details > summary span { font:400 13px/1.5 var(--fc-body) !important; color:var(--fc-muted); margin-left:14px; }
body.page-fault .vd .vd-tabs { display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--fc-line); padding-bottom:12px; margin-bottom:12px; }
body.page-fault .vd .vd-tab { border:1px solid var(--fc-line); border-radius:12px; min-height:40px; padding:8px 16px; margin:0; color:var(--fc-ink); font:400 14px var(--fc-body); background:var(--fc-surface); transition:none; }
body.page-fault .vd .vd-tab.active { color:var(--fc-accent); background:var(--fc-accent-soft); border-color:var(--fc-accent); }
body.page-fault .vd .vd-tab::after { display:none; }
body.page-fault .vd .vd-tabs .ref { font:400 12px var(--fc-body); color:var(--fc-muted); letter-spacing:0; text-transform:none; margin-left:auto; align-self:center; }
body.page-fault .vd .vd-pane { min-width:0; overflow-x:visible; }
body.page-fault .vd .vd-pane:focus-visible { outline:2px solid var(--fc-accent); outline-offset:4px; border-radius:4px; }
body.page-fault .vd .srow { gap:18px; padding:10px 0; border-bottom:1px solid var(--fc-line); font-size:14px; }
body.page-fault .vd .srow .lab { font-weight:400; color:var(--fc-muted); min-width:0; overflow-wrap:anywhere; }
body.page-fault .vd .srow .val { font-weight:400; white-space:normal; text-align:right; overflow-wrap:anywhere; color:var(--fc-ink); min-width:0; }
body.page-fault .vd .srow.gov { border-bottom:1px solid var(--fc-line); }
body.page-fault .vd .srow.gov .val { color:var(--fc-ink); font-size:14px; }
body.page-fault .vd .ref { font:400 12px var(--fc-body); color:var(--fc-muted); letter-spacing:0; text-transform:none; }
body.page-fault .vd .tok { font:400 13px var(--fc-body); color:var(--fc-muted); }
body.page-fault .vd .creason { padding:14px 0; border-bottom:1px solid var(--fc-line); }
body.page-fault .vd .creason .ctag { font:500 13px/1.6 var(--fc-body); letter-spacing:0; text-transform:none; color:var(--fc-red); }
body.page-fault .vd .creason .cmsg { font-size:14px; line-height:1.6; color:var(--fc-ink); }
body.page-fault .vd .vd-insight { border-left:3px solid var(--fc-accent); background:var(--fc-surface); border-radius:0 12px 12px 0; font-size:13px; color:var(--fc-ink); padding:10px 14px; margin-top:12px; overflow-wrap:anywhere; }
/* Wide result tables scroll inside their labelled, focusable region; the region never widens the page. */
body.page-fault .vd .fc-scroll { display:block; width:100%; max-width:100%; min-width:0; overflow:auto; -webkit-overflow-scrolling:touch; contain:inline-size paint; border-radius:12px; }
body.page-fault .vd .fc-scroll:focus-visible { outline:2px solid var(--fc-accent); outline-offset:3px; }
body.page-fault .vd .fc-ntbl { display:table; width:100%; min-width:720px; border-collapse:collapse; table-layout:auto; font:400 14px/1.45 var(--fc-body); font-variant-numeric:tabular-nums; }
body.page-fault .vd #pane-adequacy .fc-ntbl { min-width:640px; }
body.page-fault .vd .fc-ntbl th { font:400 13px/1.4 var(--fc-body); color:var(--fc-muted); letter-spacing:0; text-transform:none; padding:6px 10px; border-bottom:1px solid var(--fc-line); text-align:right; }
body.page-fault .vd .fc-ntbl td { padding:8px 10px; border-bottom:1px solid var(--fc-line); color:var(--fc-ink); text-align:right; vertical-align:top; }
body.page-fault .vd .fc-ntbl :is(th,td):first-child { text-align:left; }
body.page-fault .vd #pane-adequacy .fc-ntbl :is(th,td) { text-align:left; }
body.page-fault .fault-field-error { font-size:13px; line-height:1.45; margin:6px 0 0; color:var(--fc-red); overflow-wrap:anywhere; }
body.page-fault .vd .field:has([aria-invalid="true"]), body.page-fault .vd select[aria-invalid="true"], body.page-fault .vd [data-invalid="true"] { border-color:var(--fc-red) !important; }
body.page-fault #fc-warn[data-invalid="true"] { outline:0; }

/* Document */
body.page-fault .vd .vd-docgrid { margin-top:12px; gap:12px; }
body.page-fault .vd .doc-h { font:500 16px/1.4 var(--fc-heading); letter-spacing:0; text-transform:none; color:var(--fc-ink); margin:0 0 12px; }
body.page-fault .vd .vd-notes ol { padding-left:22px; }
body.page-fault .vd .vd-notes li { font:400 14px/1.6 var(--fc-body); color:var(--fc-ink); padding:6px 8px; border-radius:8px; overflow-wrap:anywhere; }
body.page-fault .vd .vd-notes li[contenteditable]:focus { background:var(--fc-surface); }
body.page-fault .vd .vd-refs ul { list-style:none; padding:0; margin:0; }
body.page-fault .vd .vd-refs li { font:400 14px/1.6 var(--fc-body); color:var(--fc-ink); padding:6px 0; border-bottom:1px solid var(--fc-line); overflow-wrap:anywhere; }
body.page-fault .vd .vd-refs li::before { content:none !important; display:none !important; }
body.page-fault .vd .vd-exports { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; padding:14px 0; margin-top:12px; border:0; border-top:1px solid var(--fc-line); border-radius:0; background:transparent; }
body.page-fault .vd .vd-exports .meta { font:400 13px/1.5 var(--fc-body); color:var(--fc-muted); }
body.page-fault .vd .vd-exports #foot-meta { font-family:var(--fc-mono) !important; font-size:12px; }
body.page-fault .vd .vd-exports .xlabel { font:400 13px/1.5 var(--fc-body); color:var(--fc-muted); text-transform:none; letter-spacing:0; }
body.page-fault .vd .vd-exports .xb a { display:inline-flex; align-items:center; min-height:32px; color:var(--fc-accent); text-decoration:underline; text-underline-offset:4px; font:400 14px var(--fc-body); border:0; background:transparent; padding:0 4px; }
body.page-fault .vd .vd-exports .xb a::after, body.page-fault .vd .vd-exports .xb a::before { content:none !important; }
body.page-fault .vd .vd-exports .vd-disclaim { color:var(--fc-ink); flex-basis:100%; }
body.page-fault .fault-document-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 16px; }
body.page-fault .fault-document-state { margin-right:auto; font-size:13px; color:var(--fc-muted); }
body.page-fault:has(#fault-document-save:not([hidden])) #amp-workspace .aw-working > button { display:none; }
html body.page-fault #amp-workspace { background:var(--fc-group); border:1px solid var(--fc-group-edge); border-radius:18px; box-shadow:none; }
html body.page-fault .amp-workspace-strip h2 { font:500 16px/1.4 var(--fc-heading) !important; }
html body.page-fault .amp-workspace-dialog :is(.aw-head h2,.aw-people h3) { font:500 20px/1.3 var(--fc-heading) !important; }
html body.page-fault :is(#amp-workspace button,.amp-workspace-dialog button,.amp-workspace-dialog input,.amp-workspace-dialog select,.amp-workspace-dialog textarea) { border-radius:12px; min-height:44px; }
html body.page-fault .amp-workspace-dialog .aw-tabs button { border-radius:0; min-height:44px; }
html body.page-fault .amp-workspace-dialog .amp-dc-sections { display:block !important; }
html body.page-fault .amp-workspace-dialog .amp-dc-section { border:0; padding:0; min-width:0; }
html body.page-fault .amp-workspace-dialog .amp-dc-section:has(> .amp-dc-grid[hidden]) { display:none; }
html body.page-fault .amp-workspace-dialog .amp-dc-section[aria-label="Document details"]::before { display:none; }
html body.page-fault .amp-workspace-dialog .amp-dc-grid.g3 { grid-template-columns:minmax(0,1fr); }
html body.page-fault .amp-workspace-dialog .aw-refresh { border:0 !important; background:transparent !important; padding:0; min-height:36px; text-decoration:underline; text-underline-offset:3px; }
html body.page-fault .amp-workspace-dialog .aw-schedule { padding:16px 0; margin-bottom:16px; }
html body.page-fault .amp-workspace-dialog .aw-schedule summary { cursor:pointer; line-height:1.5; font-size:16px; }
body.page-fault .vd .vd-save-panel { background:var(--fc-surface); color:var(--fc-ink); border:1px solid var(--fc-line); border-radius:12px; box-shadow:0 12px 40px #00000014; max-width:calc(100vw - 48px); }
body.page-fault .vd :is(.vsp-head,.vsp-fld > span,.vsp-msg) { font-family:var(--fc-body); color:var(--fc-muted); letter-spacing:0; text-transform:none; }
body.page-fault .vd :is(.vsp-fld input,.vsp-fld select) { font-family:var(--fc-body); background:var(--fc-surface); color:var(--fc-ink); border-radius:12px; border-color:var(--fc-line); }

/* Section navigator: compact, never over a focused control. */
body.page-fault .fault-section-nav { position:sticky; top:calc(var(--fault-header-height,80px) + 8px); z-index:25; display:flex; align-items:center; gap:4px; flex-wrap:wrap; width:fit-content; max-width:100%; box-sizing:border-box; padding:4px; margin:0 0 12px; border:1px solid var(--fc-line); border-radius:14px; background:var(--fc-surface); box-shadow:0 2px 6px #1e2d4610; }
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 body.page-fault .fault-section-nav { background:color-mix(in srgb,var(--fc-surface) 88%,transparent); backdrop-filter:blur(8px) saturate(110%); -webkit-backdrop-filter:blur(8px) saturate(110%); }
}
body.page-fault .fault-section-nav a { display:inline-flex; align-items:center; min-height:32px; padding:4px 12px; box-sizing:border-box; text-decoration:none; font-size:13px; border-radius:10px; color:var(--fc-ink); }
body.page-fault .fault-section-nav a:hover { background:var(--fc-group); text-decoration:underline; }
body.page-fault .fault-section-nav a:focus-visible { outline:2px solid var(--fc-accent); outline-offset:2px; }
/* Result chip: the pill's last item, muted, one line, ellipsis when long, absent when empty. */
body.page-fault .fault-nav-result { font-size:12px; color:var(--fc-muted); padding:0 12px; min-width:0; flex:0 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.page-fault .fault-nav-result:empty { display:none; }
body.page-fault .fault-section-nav.fault-nav-keyboard { position:static; }
/* S1: at laptop widths the navigator shares the page-title row, as in the cable
   reference: beside the H1 and clear of the header controls on the right
   (offsets measured by fault-current-workflow.js, which sets .fault-nav-inline
   only when the links fit). The title line takes the pill's height so the
   subheading starts below it. Still sticky; static in short or keyboard
   viewports (rules below). */
@media (min-width:1200px) {
 body.page-fault.fault-nav-inline .fault-section-nav { margin:0 var(--fault-nav-end,420px) calc(-1 * var(--fault-nav-height,42px)) var(--fault-nav-start,300px); flex-wrap:nowrap; }
 body.page-fault.fault-nav-inline .fault-section-nav a { flex:none; }
 body.page-fault.fault-nav-inline #fault-inputs .vd-head .t { line-height:var(--fault-nav-height,42px); }
}
body.page-fault :is(#fault-inputs,#fault-analysis,#fault-document,#fc-hero,#fc-warn,#fault-inputs input,#fault-inputs select,#fault-inputs button,#fault-inputs summary,#fault-inputs [tabindex],#fault-analysis [tabindex]) { scroll-margin-top:calc(var(--fault-header-height,80px) + var(--fault-nav-height,42px) + 24px); }
@media (max-height:500px) { body.page-fault .fault-section-nav { position:static; } }
@media (max-width:1000px) { body.page-fault header.topbar .nav { display:none; } }

/* Responsive */
@media (max-width:1199px) {
 body.page-fault .fault-key-figures { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
 body.page-fault #fault-input-groups { grid-template-columns:minmax(0,1fr); }
 body.page-fault .fault-check-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:600px) {
 body.page-fault .vd-stage { padding:16px 16px 32px; }
 body.page-fault .vd .vd-head .hr { width:100%; }
 body.page-fault .vd .vd-head .tag { flex-basis:100%; }
 body.page-fault .vd .vd-fld-grid { grid-template-columns:minmax(0,1fr); }
 body.page-fault .vd :is(.field input,select.dd,.amp-dc-fld input,.vsp-fld input,.vsp-fld select) { font-size:16px; }
 body.page-fault .vd .vd-tabs .ref { width:100%; margin-left:0; padding-top:4px; }
 body.page-fault .vd .vd-tab { padding:8px 12px; }
 body.page-fault .fault-key-figures { grid-template-columns:minmax(0,1fr); }
 body.page-fault .fault-details > summary span { display:block; margin:6px 0 0; }
 body.page-fault .vd .vd-card, body.page-fault .vd .vd-hero { padding:14px; }
 body.page-fault .vd .fc-el { padding:12px; }
 body.page-fault .vd .vd-figure .big .v { font-size:36px; }
 body.page-fault .fault-section-nav { width:100%; justify-content:space-between; }
 body.page-fault .fault-section-nav a { min-height:40px; flex:1; justify-content:center; padding-inline:8px; }
 body.page-fault .fault-nav-result { display:none; }
 body.page-fault .fault-document-state { flex-basis:100%; }
}
@media (pointer:coarse), (max-width:600px) {
 body.page-fault .vd :is(.field,select.dd) { min-height:44px; height:auto; }
 body.page-fault .vd :is(.vd-pdf-btn,.vd-save-btn,.add-btn,.amp-dc-act,.vsp-save,.fault-document-button,.fault-review-input,.vd-tab,.rm,.fault-more > summary) { min-height:44px; }
 body.page-fault .vd .vd-exports .xb a { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { body.page-fault *, body.page-fault *::before, body.page-fault *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
 html body.page-fault .fault-section-nav { background:var(--fc-surface); backdrop-filter:none; -webkit-backdrop-filter:none; }
}
@media (forced-colors:active) {
 body.page-fault .vd :is(.vd-card,.vd-hero,.fc-el,.fc-band), body.page-fault :is(.fault-figure,.fault-check,.fault-section-nav,.fault-notices,#fc-warn:not([hidden])) { border-color:CanvasText; }
}
}
@media print {
 .fault-section-nav, .fault-document-actions, .fault-review-input, .fault-check-summary, .fault-field-error { display:none !important; }
}
.page-fault .visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
