:root {
  color-scheme: light;
  --ink: #1e2b44;
  --dim: #596980;
  --blue: #2859b2;
  --line: #dce4ef;
  --soft: #f5f8fc;
  --paper: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #f2f5fa;
  font-size: 16px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
button, input, select, textarea { border-radius: 7px; }
:focus-visible { outline: 3px solid #4671cd; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 2.8vw, 38px); letter-spacing: -.04em; line-height: 1.3; }
h2 { font-size: 17px; letter-spacing: -.02em; }
h3 { font-size: 14px; }
.skip { position: fixed; inset: 4px auto auto 10px; z-index: 10; padding: 8px 12px; color: #fff; background: var(--blue); transform: translateY(-160%); }
.skip:focus { transform: none; }
.sr-only { width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; position: absolute; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.mast-inner, main { max-width: 1376px; margin: 0 auto; padding-inline: clamp(18px, 4.5vw, 74px); }
.mast-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .session, .panel-head, .evidence-head, .pagination, .shortcuts, .editor-actions, .intro, .result-top { display: flex; align-items: center; }
.brand { gap: 11px; white-space: nowrap; }
.brand strong { font-size: 16px; letter-spacing: .015em; }
.brand-mark { width: 33px; height: 33px; background: var(--blue); border-radius: 9px; display: grid; grid-template-columns: repeat(2,6px); grid-template-rows: repeat(2,6px); align-content: center; justify-content: center; gap: 3px; }
.brand-mark i { background: white; }
.brand-mark i:last-child { transform: rotate(45deg) scale(.79); }
.brand-divider { height: 17px; width: 1px; background: var(--line); margin-inline: 4px; }
.brand-suffix, .session { color: var(--dim); font-size: 13px; }
.session { gap: 7px; white-space: nowrap; }
.session i, .state-dot { width: 7px; height: 7px; flex: none; background: #8896a8; border-radius: 50%; }
.session[data-active] i, .state-dot[data-tone="good"] { background: #238461; }
.state-dot[data-tone="warn"] { background: #be8a31; }
main { padding-bottom: 60px; }
.intro { justify-content: space-between; gap: 14px; padding-block: 35px 26px; }
.intro p, .gate > p { margin-top: 7px; color: var(--dim); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 4px #223e6805; }
.layout { display: grid; grid-template-columns: minmax(218px, .77fr) minmax(0, 2.5fr); gap: 22px; align-items: start; }
.rail, .work { display: grid; min-width: 0; gap: 18px; }
.rail .panel { padding: 20px; }
.panel-head { gap: 9px; }
.scope label, .gate label { display: block; margin: 18px 0 6px; font-size: 14px; color: var(--dim); font-weight: 600; }
.scope input, .scope select, .gate input { appearance: auto; width: 100%; min-width: 0; min-height: 42px; background: var(--paper); color: var(--ink); border: 1px solid #bcc9db; padding: 7px 10px; }
.scope input:disabled, .scope select:disabled { background: var(--soft); }
.field-hint, .inventory-foot, .key-hint, .pagination, .model, .evidence-head span { font-size: 12px; color: var(--dim); }
.field-hint { margin-top: 8px; overflow-wrap: anywhere; }
.source-list { list-style: none; padding: 0; margin: 10px 0 0; }
.source-line { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0f5; }
.source-line:last-child { border: 0; }
.source-line small { color: var(--dim); margin-left: auto; font-size: 12px; white-space: nowrap; }
.inventory-foot { padding-top: 13px; margin-top: 6px; border-top: 1px solid var(--line); }
.query-panel { padding: 22px; }
.ask-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--blue); background: #e7eefd; border-radius: 7px; font-size: 18px; line-height: 1; }
.editor { margin-top: 15px; padding: 12px; border: 1px solid #b8c9e6; border-radius: 9px; box-shadow: 0 2px 4px #274b8210; background: #fdfdff; }
.editor:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px #b4c8f0; }
.editor textarea { width: 100%; min-height: 56px; resize: vertical; border: 0; border-radius: 0; background: transparent; color: var(--ink); line-height: 1.65; padding: 0 3px; }
.editor textarea:focus { outline: none; }
textarea::placeholder { color: #67778d; }
.editor-actions { justify-content: space-between; margin-top: 3px; }
.key-hint { font-size: 11px; font-variant-numeric: tabular-nums; }
.primary, .secondary, .shortcut { border: 1px solid transparent; min-height: 36px; padding: 6px 13px; font-weight: 550; }
.primary { color: white; background: var(--blue); }
.primary:hover:enabled { background: #194b9e; }
.primary span { margin-left: 4px; }
.secondary, .shortcut { color: #344761; background: white; border-color: #cdd7e5; }
.secondary:hover:enabled, .shortcut:hover:enabled { color: var(--blue); background: #f2f6ff; border-color: #9cb4d9; }
.secondary.small, .shortcut { min-height: 32px; font-size: 13px; padding: 4px 10px; font-weight: 500; }
.reload { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.reload span { font-size: 19px; line-height: 1; }
.shortcuts { flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.shortcut { border-radius: 20px; }
.shortcut[aria-pressed="true"] { color: #214d99; background: #ebf2ff; border-color: #aebfe0; }
.result { min-width: 0; padding: 23px; }
.result-top { justify-content: space-between; gap: 12px; align-items: start; }
.result-titles { min-width: 0; }
.section-kicker { color: var(--blue); font-weight: 650; font-size: 12px; margin-bottom: 4px; }
.result h2 { font-size: 21px; overflow-wrap: anywhere; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 100px; background: #eef2f7; color: #475970; white-space: nowrap; }
.pill[data-tone="good"] { background: #e9f5ee; color: #266346; }
.pill[data-tone="warn"] { background: #fff3d9; color: #83561a; }
.answer { margin-top: 14px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.8; }
.model { margin-top: 7px; }
.table-scroll { margin-top: 20px; border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
table { border-collapse: collapse; min-width: 100%; width: max-content; font-variant-numeric: tabular-nums; font-size: 14px; }
caption { text-align: left; }
td, th { text-align: left; vertical-align: top; padding: 9px 11px; max-width: 32em; overflow-wrap: anywhere; border-bottom: 1px solid #e7edf5; }
th { color: #4a5b74; background: #f3f6fa; white-space: nowrap; font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8faff; }
th.numeric, td.numeric { text-align: right; white-space: nowrap; }
td.absent { color: var(--dim); font-size: 12px; }
.pagination { margin-top: 10px; justify-content: space-between; gap: 8px; }
.pagination > div { display: flex; gap: 6px; }
.evidence { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 16px; }
.evidence-head { gap: 8px; margin-bottom: 7px; }
details { border-bottom: 1px solid #e9eef5; }
details:last-child { border: 0; }
summary { color: #354c70; padding: 8px 0; font-size: 13px; }
summary span { color: var(--dim); margin-left: 8px; font-size: 12px; }
dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 4px 14px; background: var(--soft); padding: 10px 13px; border-radius: 5px; margin: 0 0 10px; font-size: 12px; }
dt { color: var(--dim); } dd { margin: 0; overflow-wrap: anywhere; }
.boot, .gate { margin: 70px auto; max-width: 440px; }
.boot { text-align: center; color: var(--dim); }
.gate { padding: 32px; }
.gate h1 { font-size: 25px; }
.gate button { margin-top: 16px; }
.icon-tile { display: grid; place-items: center; font-size: 26px; border-radius: 9px; width: 40px; height: 40px; margin-bottom: 16px; background: #e9f1fe; color: var(--blue); }
.error { margin-top: 12px; color: #973e39; }
@media (max-width: 840px) {
  .mast-inner, main { padding-inline: 20px; }
  .layout { grid-template-columns: minmax(188px, .8fr) minmax(0, 2fr); gap: 14px; }
  .rail .panel, .query-panel, .result { padding: 16px; }
}
@media (max-width: 670px) {
  .mast-inner { min-height: 55px; }
  .mast-inner, main { padding-inline: 14px; }
  .brand { gap: 8px; } .brand-divider, .brand-suffix { display: none; }
  .intro { padding-block: 22px 16px; align-items: start; }
  .intro p { font-size: 13px; }
  .layout { display: flex; flex-direction: column; }
  .rail, .work { width: 100%; gap: 12px; }
  .rail { display: contents; }
  .rail .scope { order: 0; width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3px 10px; }
  .scope .panel-head { grid-column: 1 / -1; }
  .scope label { margin: 6px 0 1px; grid-row: 2; }
  .scope input, .scope select { grid-row: 3; }
  .scope .field-hint { grid-column: 1 / -1; margin-top: 3px; }
  .work { order: 1; }
  .inventory { order: 2; width: 100%; }
  .gate { padding: 22px; margin-block: 35px; }
  .pagination { flex-wrap: wrap; }
}
.archive-times { display: block; background: transparent; padding: 0; margin: 12px 0 0; }
.archive-times dt { margin-top: 7px; font-size: 11px; }
.evidence-body { margin: 4px 0 14px; }
.evidence-body .table-scroll { margin-top: 9px; }
.evidence-body .answer { margin-top: 8px; font-size: 13px; }
.recommendations { margin-top: 18px; padding: 13px 16px; background: #f3f7fe; border-radius: 7px; }
.recommendations ul { padding-left: 1.3em; margin: 6px 0 0; }
.print-action { margin-top: 16px; }
.print-only { display: none; }
@media print {
  :root, body { background: white; color: #111; font-size: 10pt; }
  body > header, .skip, #boot, #gate, #loadError, .intro, .rail, #composer, button, .key-hint, .print-action, .pagination, .evidence-body { display: none !important; }
  main, .layout, .work, #result { display: block; padding: 0; margin: 0; width: auto; max-width: none; box-shadow: none; border: 0; }
  .print-only { display: block; margin-bottom: 10px; }
  .evidence details > :not(summary) { display: none; }
  summary { list-style: none; }
  .table-scroll { overflow: visible; border: none; }
  table { width: 100%; font-size: 8pt; }
  td, th { max-width: none; white-space: normal; padding: 4px; }
  tr, .recommendations li, .evidence details { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
.management { margin: 0 0 18px; }
.management > summary { padding: 13px 18px; }
.management > summary .management-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.management-body { padding: 0 18px 16px; }
.management-body .field-hint { margin-top: 0; }
.management-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--dim); font-size: 12px; }
.management-tools select { padding: 4px 8px; color: var(--ink); background: white; border: 1px solid #bac7d9; }
.management-body .table-scroll { margin-top: 9px; max-height: 340px; }
@media (max-width: 670px) {
  .management { margin-bottom: 12px; }
  .management > summary { padding: 10px 13px; }
  .management > summary .management-summary { display: block; margin-left: 20px; }
  .management-body { padding: 0 13px 12px; }
}
.management-tools { flex-wrap: wrap; }
.coverage-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.coverage-panels:has(details[open]) { grid-template-columns: minmax(0,1fr); }
.coverage-panels .management { margin: 0; }
.gap-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gap-controls label { font-weight: 600; color: var(--dim); font-size: 13px; }
.gap-controls input { border: 1px solid #bac7d9; min-height: 36px; padding: 4px 9px; background: white; color: var(--ink); }
.gap-message { color: var(--dim); font-size: 13px; margin-top: 9px; }
#gapRegion th { position: sticky; top: 0; }
#gapRegion tbody small { display: block; color: var(--dim); }
#gapRegion button { white-space: nowrap; }
@media (max-width: 670px) { .coverage-panels { grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 12px; } }
@media print { .coverage-panels { display: none !important; } }
.export-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#exportStatus { font-size: 12px; color: var(--dim); }
@media print { #exportTools { display: none !important; } }

.scope-note { padding: 13px 18px; }
.scope-note h2 { font-size: 15px; margin: 0 0 3px; }
.scope-note p { font-size: 13px; color: var(--dim); }
#snapshotStamp { color: #405776; margin-top: 3px; }
.sign-in { display: inline-block; border-radius: 7px; margin-top: 15px; text-decoration: none; }
.entry-filter { border-top: 1px solid var(--line); margin-top: 14px; }
.entry-filter summary { color: var(--blue); padding: 10px 0 0; }
.entry-filter form { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding-top: 8px; }
.entry-filter label { font-size: 13px; color: var(--dim); }
.entry-filter input, .entry-filter select { min-width: 0; padding: 6px 8px; min-height: 35px; border: 1px solid #bdcadd; color: var(--ink); background: white; }
.entry-filter input { width: min(100%, 17em); }
@media (max-width: 670px) {
  .scope-note { padding: 10px 14px; }
  .entry-filter input { flex: 1 1 130px; }
}
.diagnosis-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.focus-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.focus-list button { min-height: 34px; padding: 5px 12px; border: 1px solid #cedaea; background: #f8faff; color: #315072; font-size: 14px; }
.focus-list button:hover:enabled, .focus-list button[aria-pressed="true"] { color: #17468e; border-color: #9cb7de; background: #e7efff; }
.ledger-tools { margin-top: 12px; border-top: 1px solid var(--line); }
.ledger-tools > summary { padding: 9px 0 0; color: var(--blue); font-weight: 550; }
.diagnosis-scope { border-left: 3px solid #8daadc; padding: 8px 12px; margin-top: 15px; background: #f5f8fd; }
.diagnosis-scope p, .diagnosis-scope li { color: var(--dim); font-size: 13px; }
.diagnosis-scope ul { padding-left: 1.25em; margin: 4px 0 0; }
.diagnosis-sections { display: grid; gap: 14px; margin-top: 18px; }
.diagnosis-section { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; }
.diagnosis-section-head, .finding-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.diagnosis-section-head h3 { font-size: 16px; }
.finding { margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf1f7; }
.finding-heading h4 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.finding-state { font-size: 12px; color: #475d78; }
.finding p { margin-top: 5px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.finding .finding-action { color: #365578; }
.finding .missing-basis { font-size: 12px; color: var(--dim); }
.finding .finding-evidence summary { font-size: 13px; }
@media (max-width: 670px) {
  .focus-list button { flex: 1 1 26%; }
  .diagnosis-section { padding: 12px; }
  .finding-heading { flex-wrap: wrap; gap: 2px 8px; }
}
.diagnosis-history { margin-top: 16px; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; }
#historyPeriod, #historyCoverage, #historySignalsNote { color: var(--dim); font-size: 13px; }
#historyCoverage, #historySignalsNote { margin-top: 6px; }
#historyStats, #sheetStats, #trialStats { display: grid; grid-template-columns: repeat(auto-fit,minmax(115px,1fr)); padding: 11px 13px; margin: 10px 0 4px; gap: 11px; }
#historyStats dd, #sheetStats dd, #trialStats dd { color: var(--ink); font-size: 15px; font-weight: 600; }
#historyStats dt, #sheetStats dt, #trialStats dt { font-size: 12px; }
.history-signal { margin-top: 8px; border-top: 1px solid var(--line); padding: 9px 0 3px; }
.history-signal > p { margin: 4px 0; font-size: 14px; }
#diagnosisAdvice ol { margin: 5px 0 0; padding-left: 1.3em; }
#diagnosisAdvice li + li { margin-top: 8px; }
@media (min-width: 900px) {
  .coverage-panels { grid-template-columns: minmax(0,1.25fr) repeat(2,minmax(0,1fr)); }
  .coverage-panels:has(details[open]) { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 671px) and (max-width: 899px) { .scope-note { grid-column: 1 / -1; } }
.archive-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.archive-controls label { font-size: 13px; color: var(--dim); font-weight: 600; }
.archive-controls input, .archive-controls select { min-width: 0; max-width: 100%; min-height: 35px; padding: 5px 9px; border: 1px solid #bdcadd; background: white; color: var(--ink); }
.archive-records { display: grid; gap: 0; }
.archive-record { padding-block: 10px; border-bottom: 1px solid var(--line); }
.archive-record h3 { font-size: 14px; }
.archive-value { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-metadata { color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
.archive-record details { margin-top: 2px; }
.archive-record summary { padding: 5px 0 0; }
.collection-item { margin: 6px 0; padding: 8px 0; border-top: 1px solid var(--line); }
.collection-item h4 { margin: 0 0 3px; font-size: 14px; font-weight: 600; }
.archive-tables { margin: 14px 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; }
.archive-tables > h3 { font-size: 15px; }
.archive-table { margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--line); }
.archive-table h4 { margin: 0; font-size: 14px; }
@media print {
  #result[data-print-kind="diagnosis"] .result-top, #result[data-print-kind="diagnosis"] #diagnosisScope, #result[data-print-kind="diagnosis"] #diagnosisAdvice { display: none; }
  #printReportName { font-size: 20pt; margin-bottom: 5pt; }
  #printScope, #printCreditBasis { color: #222; }
  #printDiagnosisActions { margin: 12pt 0; }
  #printDiagnosisActions ol { margin: 4pt 0; padding-left: 16pt; }
  #printDiagnosisActions li { break-inside: avoid; margin-bottom: 3pt; }
  #printDiagnosisActions p { margin: 0; }
  .diagnosis-sections { display: block; }
  .diagnosis-section { padding: 8pt; margin: 8pt 0; border: 1px solid #aaa; border-radius: 0; }
  .diagnosis-section-head, .finding-heading { break-after: avoid; }
  .finding, .history-signal { break-inside: avoid; }
  .finding p, .finding summary { font-size: 9pt; }
  .citation-print { display: inline; margin: 0 0 0 4pt; color: #333; font-size: 8pt; }
}
.result-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.result-controls .print-action { margin: 0; white-space: nowrap; }

.history-subtitle { margin: 12px 0 4px; font-size: 14px; }

/* Workbench surfaces, shared by the operations workspace and the accounting tools. */
:root {
  color-scheme: dark;
  --canvas: #10131c;
  --sidebar: #141822;
  --bar: #10141e;
  --paper: #1a1f2c;
  --panel: var(--paper);
  --soft: #222838;
  --line: #32394b;
  --ink: #f0f2fb;
  --dim: #a4aec5;
  --blue: #a6afff;
  --accent: #a6afff;
  --focus: #aabaff;
  --accent-soft: #2b304c;
  --solid: #6068db;
  --solid-text: #fff;
  --positive: #78d7bc;
  --input: #161b27;
  --outline: #414a60;
  --field-error: #ffb0a9;
  --field-hover: color-mix(in srgb,var(--outline) 58%,var(--focus));
  --nav-w: 246px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f6f7fb;
  --sidebar: #f0f2f8;
  --bar: #fbfbfe;
  --paper: #fff;
  --soft: #edf0f7;
  --line: #d8deea;
  --ink: #23293c;
  --dim: #546079;
  --blue: #4b53bb;
  --accent: #524cb3;
  --focus: #4856c6;
  --accent-soft: #e5e7ff;
  --solid: #535cbe;
  --positive: #176858;
  --input: #f8f9fc;
  --outline: #a9b3c7;
  --field-error: #a0302b;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#main { max-width: none; width: 100%; padding: 0; }
body:has(#workspace:not([hidden])) .auth-mast { display: none; }
.auth-mast { background: var(--sidebar); color: var(--ink); }
.auth-mast .mast-inner { max-width: 1200px; color: var(--dim); font-size: 14px; }
#main > :is(.gate, .boot) { margin: min(14vh,110px) auto; max-width: min(450px,94vw); }
.workspace-shell { min-height: 100svh; display: grid; grid-template-columns: var(--nav-w) minmax(0,1fr); }
.shell-nav {
  z-index: 3; background: var(--sidebar); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0; align-self: start; position: sticky; top: 0;
  min-width: 0; height: 100svh; padding: 0 16px; overflow-y: auto; scrollbar-width: thin;
}
.nav-brand { display: flex; justify-content: space-between; align-items: center; padding: 25px 9px 29px; }
.shell-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); line-height: 1.22; }
.shell-brand strong { display: block; font-size: 19px; font-weight: 680; letter-spacing: .06em; }
.shell-brand small { display: block; margin-top: 3px; font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.fold-mark { width: 37px; height: 39px; display: inline-block; flex: none; position: relative; }
.fold-mark::before, .fold-mark::after { content: ""; position: absolute; inset: 0; }
.fold-mark::before { background: linear-gradient(145deg,#dfe5ff 6%,#afadff 43%,#7f91f5 74%,#638bdc 100%); clip-path: polygon(3% 34%,74% 2%,95% 11%,66% 68%,36% 97%); }
.fold-mark::after { background: linear-gradient(35deg,#5361a7,#9292ed 51%,#d8d1ff); clip-path: polygon(3% 34%,64% 43%,95% 11%,66% 68%,36% 97%,47% 59%); }
.nav-links { display: grid; gap: 3px; }
.nav-label { padding: 0 11px; margin: 14px 0 6px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .09em; }
.nav-links .nav-label:first-child { margin-top: 2px; }
.nav-links .nav-label:not(:first-child) { margin-top: 20px; }
.nav-links :is(button,a) {
  text-decoration: none;
  display: flex; align-items: center; gap: 13px; min-height: 42px; padding: 7px 12px;
  text-align: start; border: 1px solid transparent; border-radius: 8px; color: var(--dim); background: transparent; font-size: 14px; font-weight: 550;
}
.nav-links :is(button,a):hover { background: var(--soft); color: var(--ink); }
.nav-links :is(button,a)[aria-current="page"] { color: var(--blue); background: var(--accent-soft); border-color: color-mix(in srgb,var(--accent) 23%,var(--accent-soft)); }
.nav-links :is(button,a)[aria-current="page"]::after { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin-left: auto; }
.shell-nav .nav-scope { display: block; margin-top: auto; padding: 30px 6px 17px; width: 100%; }
.nav-scope .nav-label { padding: 15px 0 0; margin: 0; border-top: 1px solid var(--line); }
.nav-scope label { font-size: 12px; margin: 11px 0 4px; font-weight: 500; }
.nav-scope input, .nav-scope select { font-size: 13px; min-height: 37px; color: var(--ink); border: 1px solid var(--line); background: var(--input); width: 100%; }
.nav-scope .field-hint { line-height: 1.6; font-size: 11px; }
.nav-status { padding: 12px 8px 17px; border-top: 1px solid var(--line); }
.session, .session span { color: var(--dim); font-size: 12px; }
.session[data-active] i { background: var(--positive); box-shadow: 0 0 0 3px color-mix(in srgb,var(--positive) 12%,transparent); }
.shell-main { min-width: 0; }
.shell-bar { min-height: 61px; padding: 10px clamp(18px,3vw,46px); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bar); border-bottom: 1px solid var(--line); }
.shell-crumb, .shell-utilities { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.shell-crumb strong { color: var(--ink); font-weight: 600; }
.crumb-slash { opacity: .52; }
.shell-utilities { gap: 4px; }
#shellMonth { color: var(--dim); font: 12px/1.2 ui-monospace, monospace; letter-spacing: .035em; margin-right: 8px; }
.shell-icon { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; color: var(--dim); background: transparent; border: 1px solid transparent; border-radius: 7px; }
.shell-icon:hover { background: var(--soft); border-color: var(--line); color: var(--ink); }
.shell-content { max-width: 1480px; margin-inline: auto; padding: clamp(22px,3.3vw,52px) clamp(16px,3.8vw,64px) 64px; outline: none; min-width: 0; }
.shell-content:focus-visible { outline: none; }
.shell-view, #operationsWorkbench { min-width: 0; }
.page-heading { margin: 1px 0 22px; }
.page-heading h1 { font-size: clamp(26px,2.5vw,36px); }
.page-heading p { margin-top: 7px; color: var(--dim); font-size: 14px; }
#shellEvidence .coverage-panels { grid-template-columns: minmax(0,1fr); }
#shellEvidence .inventory { padding: 18px 20px; }
#shellEvidence :is(.scope-note, .management, .inventory) { background: var(--paper); }
#shellReview .work { display:grid; }
.panel { color: var(--ink); border: 1px solid var(--line); background: var(--paper); box-shadow: none; }
#workspace :is(.editor,.secondary,.shortcut,.focus-list button,.archive-controls input,.archive-controls select,.gap-controls input,.management-tools select,.entry-filter input,.entry-filter select) { border-color: var(--outline); color: var(--ink); background: var(--input); }
#workspace :is(.editor:focus-within,.focus-list button:focus-visible) { border-color: var(--focus); }
#workspace :is(.shortcut,.secondary,.focus-list button):hover:enabled { color: var(--blue); background: var(--accent-soft); border-color: var(--focus); }
#workspace :is(.shortcut,.focus-list button)[aria-pressed="true"] { background: var(--accent-soft); color: var(--blue); border-color: var(--blue); }
:is(#workspace,.account-screen) .primary, .sign-in { color: var(--solid-text); background: var(--solid); border-color: transparent; }
:is(#workspace,.account-screen) .primary:hover:enabled { background: color-mix(in srgb,var(--solid) 80%,#202548); }
#workspace :is(.recommendations,.diagnosis-advice,.ask-mark,th) { background: var(--soft); }
#workspace :is(summary,th,.editor,.editor textarea,.entry-filter,.focus-list button) { color: var(--ink); }
#workspace :is(textarea,input)::placeholder { color: var(--dim); }
#workspace :is(td,th,.source-line,details,.diagnosis-scope,.entry-filter,.archive-record,.finding) { border-color: var(--line); }
#workspace tr:hover td { background: var(--soft); }
#workspace .ask-mark { color: var(--accent); }
#workspace .pill { background: var(--soft); color: var(--dim); }
#workspace .pill[data-tone="warn"] { color: #efbd7c; background: #3c3025; }
#workspace .pill[data-tone="good"] { color: #91d6bf; background: #203b34; }
:root[data-theme="light"] #workspace .pill[data-tone="warn"] { color:#795019; background:#fbefda; }
:root[data-theme="light"] #workspace .pill[data-tone="good"] { color:#225d49; background:#e0f3ea; }
:is(#workspace,.account-screen) .error { color: #ed9e98; }
:root[data-theme="light"] :is(#workspace,.account-screen) .error { color: #92352f; }
.account-screen { min-height: 100svh; background: var(--canvas); color: var(--ink); }
.account-bar { min-height: 65px; padding-inline: clamp(16px,3vw,44px); }
.account-bar .shell-brand { text-decoration: none; }
.account-screen #account-main { max-width: none; display: grid; justify-items: center; padding: clamp(24px,10vh,92px) 16px 48px; }
.account-panel { align-self: start; width: min(100%,434px); min-width: 0; padding: clamp(22px,4vw,34px); }
.account-panel h1 { font-size: clamp(23px,3vw,28px); line-height: 1.3; letter-spacing: -.025em; }
.account-form { display: grid; gap: 16px; margin-top: 22px; }
.account-field { display: grid; gap: 6px; min-width: 0; }
.account-field label,.account-identity dt { color: var(--dim); font-size: 14px; font-weight: 550; }
.account-field input,.account-screen .secondary { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; }
.account-screen .secondary { background: var(--input); color: var(--ink); border: 1px solid var(--outline); }
.account-field .field-hint { margin: 0; color: var(--dim); font-size: 12px; }
.account-form .primary { min-height: 44px; margin-top: 4px; }
.account-link { display: inline-flex; align-items: center; min-height: 38px; color: var(--accent); font-size: 14px; text-underline-offset: 3px; }
.account-footer,.account-action { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.account-identity { display: grid; gap: 4px; margin: 20px 0 0; }
.account-identity dd { margin: 0; overflow-wrap: anywhere; }
.account-summary,.account-notice { margin-top: 18px; overflow-wrap: anywhere; }
.account-notice { color: var(--positive); }
.mobile-only { display: none; }
i[data-icon] { display: inline-block; position: relative; flex:none; width: 18px; height: 18px; color: currentColor; }
i[data-icon]::before, i[data-icon]::after { content:""; display:block; position:absolute; box-sizing:border-box; }
i[data-icon="chat"]::before { inset:2px 1px 4px; border:1.5px solid; border-radius:5px; }
i[data-icon="chat"]::after { left:4px; bottom:2px; height:5px; width:5px; border-left:1.5px solid; transform:skewY(-33deg); }
i[data-icon="tasks"]::before { inset:2px 1px 2px 4px; border:1.5px solid; border-radius:3px; }
i[data-icon="tasks"]::after { left:2px; top:6px; width:9px; height:1.5px; background:currentColor; box-shadow:0 4px currentColor; }
i[data-icon="book"]::before { inset:2px 1px; border:1.5px solid; border-radius:2px 3px 3px 2px; }
i[data-icon="book"]::after { top:3px; bottom:3px; left:6px; border-left:1.5px solid; }
i[data-icon="archive"]::before { inset:6px 2px 2px; border:1.5px solid; border-radius:0 0 3px 3px; }
i[data-icon="archive"]::after { top:2px; left:1px; right:1px; height:5px; border:1.5px solid; border-radius:2px; }
i[data-icon="page"]::before { inset:1px 3px; border:1.5px solid; border-radius:2px; }
i[data-icon="page"]::after { left:6px; top:6px; width:6px; height:1.5px; background:currentColor; box-shadow:0 4px currentColor; }
i[data-icon="refresh"]::before { inset:2px; border:1.5px solid; border-right-color:transparent; transform:rotate(-34deg); border-radius:50%; }
i[data-icon="refresh"]::after { right:1px; top:2px; border-right:1.5px solid; border-bottom:1.5px solid; width:5px; height:5px; }
i[data-icon="appearance"]::before { inset:2px; border:1.5px solid; border-radius:50%; background:linear-gradient(90deg,transparent 50%,currentColor 50%); }
i[data-icon="menu"]::before { inset:4px 1px auto; height:1.5px; background:currentColor; box-shadow:0 4px currentColor,0 8px currentColor; }
i[data-icon="close"]::before, i[data-icon="close"]::after { inset:8px 1px auto; height:1.5px; background:currentColor; transform:rotate(45deg); }
i[data-icon="close"]::after { transform:rotate(-45deg); }
@media (min-width: 761px) and (max-width: 1050px) {
  :root { --nav-w: 210px; }
  .shell-nav { padding-inline: 12px; }
  .shell-content { padding-inline: 22px; }
}
@media (max-width: 760px) {
  .workspace-shell { display: block; }
  .mobile-only { display: grid; }
  .shell-nav { display:none; width:min(295px,88vw); position:fixed; inset:0 auto 0 0; }
  .drawer-open .shell-nav { display:flex; box-shadow: 10px 0 35px #03040a60; }
  #navShade { position:fixed; z-index:2; inset:0; background:#03050caf; }
  body:has(.drawer-open) { overflow:hidden; }
  .nav-brand { padding-block:16px 15px; }
  .nav-scope.nav-scope { padding-top:15px; }
  .shell-nav .scope :is(input,select,label,h2,p) { grid-column:auto; grid-row:auto; }
  .shell-bar { min-height:54px; padding:6px 10px; }
  .shell-crumb { gap:7px; }
  .shell-content { padding:22px 14px 38px; }
  .shell-icon { width:44px; height:44px; }
  .nav-links :is(button,a), .nav-scope :is(input,select) { min-height:44px; }
  .page-heading { margin-bottom:16px; }
  .page-heading p { font-size:13px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell *, .workspace-shell *::before, .workspace-shell *::after { scroll-behavior:auto; transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
@media print {
  :root, :root[data-theme="light"] { color-scheme:light; --canvas:#fff; --paper:#fff; --ink:#141414; --dim:#333; --soft:#f3f3f3; --line:#aaa; --blue:#222; --accent:#222; --input:white; background:white; }
  .shell-nav, .shell-bar, .auth-mast, #navShade, .page-heading, #shellEvidence, #priorTrialDetails { display:none !important; }
  .workspace-shell, .shell-main, .shell-content, #shellReview:not([hidden]) { display:block; margin:0; padding:0; width:auto; max-width:none; min-height:0; }
  #workspace #shellReview .work { display:block; }
  #workspace .recommendations, #workspace td, #workspace th { color:#111; }
}
#opsLoader { display:none; }
@media screen {
  #operationsWorkbench:not([hidden]):empty + #opsLoader { display:flex; align-items:center; min-height:220px; justify-content:center; flex-wrap:wrap; gap:12px; color:var(--dim); font-size:14px; }
  #workspace .diagnosis-scope { background:var(--soft); border-left-color:var(--accent); }
  #snapshotStamp, #workspace .finding-state { color:var(--dim); }
  #workspace .finding-action { color:var(--blue); }
}
@media screen {
  #workspace[data-workbench-view="conversation"] .shell-main {
    background: radial-gradient(ellipse 80% 430px at 69% -140px, color-mix(in srgb,var(--accent) 14%,transparent), transparent 92%), var(--canvas);
  }
}
@media screen {
  #operationsWorkbench .op-workspace:not(:has(.op-timeline)) > .op-composer {
    background: radial-gradient(ellipse 55% 140px at 95% 0%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 100%), var(--panel);
    box-shadow: inset 0 1px 0 color-mix(in srgb,var(--ink) 6%,transparent);
  }
}
.nav-scope #dateEditor { margin-top:7px; }
#dateEditor button { margin-top:7px; }
.nav-scope #dateFeedback { color:var(--ink); font-variant-numeric:tabular-nums; }
.scope-notice { padding:clamp(18px,3vw,35px); }
.scope-notice h1 { font-size:23px; }
.scope-notice p { color:var(--dim); margin-top:8px; }
.range-card { padding:clamp(14px,2vw,24px); margin-top:15px; min-width:0; }
.range-card h2 { margin-bottom:7px; }
.range-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:13px; font-size:13px; }
.range-actions select { border:1px solid var(--outline); border-radius:6px; background:var(--input); color:var(--ink); padding:6px 10px; }
.range-table { margin-top:12px; }
.range-table td { max-width:35em; }
.range-table details { min-width:135px; }
.range-table details[open] { min-width:min(50vw,450px); }
.range-table .evidence-body { width:min(55vw,520px); }
@media(max-width:760px) {
  #shellMonth { max-width:127px; text-align:right; font-size:10px; line-height:1.4; }
  .shell-nav .nav-scope { padding-top:10px; }
  .nav-scope #monthPicker,.nav-scope #dateEditor { display:block; }
  .range-table details[open],.range-table .evidence-body { width:min(68vw,360px); }
}
#scopeAlert:not([hidden]) ~ :is(#ledgerUnavailable,#opsLoader) { display:none !important; }
.service-proof { font-size:12px; }
.service-proof summary { color:var(--dim); font-size:12px; padding:5px 0; }
#shellMonth > span { white-space:nowrap; }
#shellMonth > span + span::before { content:" — "; }
#workspace[data-workbench-view="evidence"] #rangeOutput { display:flex; flex-direction:column; }
#workspace[data-workbench-view="evidence"] #rangeOutput > :first-child { order:-3; }
#workspace[data-workbench-view="evidence"] #rangeBusiness { order:-2; }
#workspace[data-workbench-view="evidence"] #rangeMonthly { order:-1; }
@media screen and (min-width:761px) and (max-height:960px) {
  .nav-brand { padding-block:15px 18px; }
  .nav-links :is(button,a) { min-height:36px; }
  .nav-links .nav-label:not(:first-child) { margin-top:10px; }
  .shell-nav .nav-scope { padding-block:10px; }
  .nav-scope .nav-label { padding-top:10px; }
  .nav-scope label { margin-top:7px; }
}
@media (max-width:480px) {
  .shell-crumb .crumb-root,.shell-crumb .crumb-slash { display:none; }
  .shell-crumb strong { white-space:nowrap; }
  #shellMonth > span { display:block; }
  #shellMonth > span + span::before { content:"至 "; }
}

.nav-more,.shell-nav .nav-scope { border-top:1px solid var(--line); margin:12px 0 0; padding:6px 0 0; }
.nav-more > summary,.nav-scope > summary { color:var(--dim); padding:12px 10px; font-size:13px; cursor:pointer; }
.nav-more[open] :is(a,button) { width:100%; }
#workspace[data-workbench-view="conversation"] .shell-content { max-width:1020px; }
.op-suggestions { display:flex; gap:6px 9px; flex-wrap:wrap; }
#operationsWorkbench .op-suggestion { font:inherit; font-size:13px; line-height:1.4; color:var(--blue); padding:7px 10px; background:var(--soft); border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.op-scope-options { color:var(--dim); font-size:13px; }
.op-scope-options summary,#collectionBrief summary { cursor:pointer; padding-block:7px; }
.op-scope-options[open] .op-scope-row { margin-top:5px; }
#collectionBrief { margin:22px 0; border-top:1px solid var(--line); padding:12px 1px; color:var(--dim); font-size:13px; line-height:1.65; }
#collectionBrief summary strong { color:var(--ink); margin:0 10px 0 4px; }
#collectionBrief p { margin:4px 0 9px; }
#collectionBrief table { width:100%; max-width:650px; margin:12px 0; font-size:13px; border-collapse:collapse; }
#collectionBrief caption { text-align:left; font-weight:600; color:var(--ink); }
#collectionBrief :is(td,th) { text-align:right; border-bottom:1px solid var(--line); padding:5px 3px; }
#collectionBrief :is(td,th):first-child { text-align:left; }
@media(max-width:760px){
  #operationsWorkbench .op-suggestion { min-height:40px; }
  .op-scope-options summary,#collectionBrief summary,.nav-more > summary,.nav-scope > summary { min-height:44px; }
}
/* Workspace navigation and context controls */
.wb-symbols { position:absolute; width:0; height:0; overflow:hidden; }
.wb-icon { display:inline-block; vertical-align:middle; flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linejoin:round; stroke-linecap:round; }
@media screen {
  .workspace-shell { --nav-w:224px; }
  .shell-nav { --rail-ink:#f4f5ff; --rail-dim:#b8c3db; --rail-line:#343e5a; background:#1b2339; color:var(--rail-ink); border-right:1px solid var(--rail-line); padding:0; height:100dvh; overflow:hidden; }
  .nav-brand { min-height:75px; padding:16px 22px; flex:none; border-bottom:1px solid var(--rail-line); }
  .shell-nav .shell-brand { color:var(--rail-ink); }
  .shell-nav .shell-brand small { color:var(--rail-dim); }
  .shell-nav .shell-icon { color:var(--rail-dim); }
  .shell-nav .shell-icon:hover { background:#2f3953; color:white; }
  .nav-links { display:flex; flex:1; min-height:0; flex-direction:column; gap:17px; overflow:auto; padding:17px 13px 22px; scrollbar-width:thin; scrollbar-color:#45516d transparent; }
  .nav-group { display:grid; gap:2px; }
  .nav-links.nav-system { flex:none; overflow:visible; padding:11px 13px 5px; border-top:1px solid var(--rail-line); }
  .nav-links.nav-system:not(:has(a:not([hidden]))) { display:none; }
  .nav-system+.nav-status { border-top:0; padding-block:7px 12px; }

  .nav-group:not(:has(> :is(a,button):not([hidden]))) { display:none; }
  .nav-group h2 { margin:0; padding:0 11px 5px; font-size:12px; font-weight:600; letter-spacing:.09em; line-height:1.5; color:#9daac5; }
  .nav-links :is(button,a) { position:relative; min-height:35px; width:100%; gap:11px; padding:6px 11px; font-size:14px; line-height:1.35; font-weight:500; border:1px solid transparent; border-radius:7px; color:#e5eafa; background:transparent; }
  .nav-links .wb-icon { color:#b0bdd8; }
  .nav-links :is(button,a):hover { background:#2a344d; color:white; }
  .nav-links :is(button,a)[aria-current="page"] { background:#394267; color:white; border-color:#515d88; font-weight:650; }
  .nav-links :is(button,a)[aria-current="page"]::after { content:none; }
  .nav-links :is(button,a)[aria-current="page"]::before { content:""; position:absolute; inset-inline-start:0; top:9px; bottom:9px; width:3px; border-radius:3px; background:#b5b3ff; }
  .nav-links [aria-current="page"] .wb-icon { color:#c4c9ff; }
  .nav-status { flex:none; margin:0; padding:12px 23px; border-top:1px solid var(--rail-line); }
  .shell-nav .session,.shell-nav .session span { color:var(--rail-dim); }
  .shell-nav .session { padding:0; }
  .shell-main > .shell-bar { min-height:61px; padding:10px clamp(18px,2.65vw,44px); }
  .shell-content { max-width:none; margin:0; padding:clamp(20px,2.65vw,44px); }
  #workspace[data-workbench-view="conversation"] .shell-content { margin-inline:auto; }
  .shell-crumb { min-width:0; }
  .crumb-root { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .shell-crumb strong,.shell-utilities { flex:none; }
  .scope-picker.scope { display:block; position:relative; width:auto; max-width:none; margin:0 4px 0 0; padding:0; border:0; background:transparent; }
  .scope-picker > summary { display:inline-flex; align-items:center; gap:7px; padding:6px 11px; min-height:33px; border:1px solid var(--line); border-radius:7px; font-size:13px; font-weight:550; background:var(--paper); color:var(--ink); list-style:none; cursor:pointer; }
  .scope-picker > summary::-webkit-details-marker { display:none; }
  .scope-picker[open] > summary { color:var(--accent); border-color:var(--focus); }
  .scope-popover { z-index:4; position:absolute; inset:calc(100% + 8px) 0 auto auto; width:280px; max-width:calc(100vw - 24px); max-height:min(65vh,540px); overflow-y:auto; padding:16px; border:1px solid var(--line); background:var(--paper); color:var(--ink); border-radius:10px; box-shadow:0 12px 36px #10152626; }
  .scope-popover label { display:block; margin:10px 0 4px; font-size:13px; color:var(--dim); }
  .scope-popover > label:first-child { margin-top:0; }
  .scope-popover :is(input,select) { width:100%; min-width:0; min-height:36px; border:1px solid var(--outline); color:var(--ink); background:var(--input); font-size:13px; }
  .scope-popover .field-hint { margin:5px 0; font-size:12px; }
  .scope-popover .field-hint:empty { display:none; }
  .scope-popover #dateEditor { grid-template-columns:1fr; }
  .scope-popover #dateEditor button { margin-top:8px; }
}
@media screen and (min-width:761px) and (max-height:840px) {
  .nav-brand { min-height:62px; padding-block:11px; }
  .nav-links { gap:11px; padding-block:12px; }
  .nav-group { gap:1px; }
  .nav-links :is(button,a) { min-height:32px; }
}
@media(max-width:760px) {
  .shell-main>.shell-bar { min-height:54px; padding:5px 10px; }
  .shell-content { padding:22px 14px 36px; }
  .nav-links :is(button,a) { min-height:42px; }
  .nav-brand { min-height:61px; }
  .scope-picker > summary { min-height:38px; }
  .scope-popover { position:fixed; top:55px; right:10px; }
}
@media(max-width:480px) {
  .scope-picker > summary { padding:8px; }
  .scope-picker > summary span { display:none; }
}
.account-panel.review-panel { width:min(100%,820px); }
.review-tabs,.review-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.review-list { display:grid; list-style:none; margin:18px 0; padding:0; }
.review-row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; padding:15px 0; border-top:1px solid var(--line); }
.review-row :is(strong,span,p) { overflow-wrap:anywhere; }
.review-panel .review-actions button { width:auto; }

/* Existing views control field width and density. Their colors and interaction states share the shell theme. */
.workbench-field {
  min-width:0;
  min-height:40px;
  padding:8px 11px;
  font:inherit;
  line-height:1.45;
}
:is(#workspace,.account-screen,.cloud,.qa-page,.ag-body,.gate) :where(
  input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],
  input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="month"],
  textarea,select) {
  caret-color:var(--focus);
  &:not(select):enabled { cursor:text; }
  &::placeholder { color:var(--dim); opacity:1; }
  &:not(:where(.editor textarea,.op-command)) {
    color:var(--ink);
    background-color:var(--input);
    border:1px solid var(--outline);
    border-radius:7px;
    @media (hover:hover) {
      &:enabled:hover { border-color:var(--field-hover); }
    }
    &:enabled:focus {
      border-color:var(--focus);
      outline:2px solid var(--focus);
      outline-offset:2px;
    }
    &[aria-invalid="true"] { border-color:var(--field-error); }
    &:disabled {
      background-color:var(--soft);
      color:var(--dim);
      border-color:var(--line);
      cursor:not-allowed;
      opacity:1;
    }
  }
}
#workspace :is(.editor,.op-command-box):focus-within {
  border-color:var(--focus);
  outline:2px solid var(--focus);
  outline-offset:2px;
  box-shadow:none;
}
.account-field .field-error {
  margin:0;
  color:var(--field-error);
  font-size:12px;
  line-height:1.5;
}

