:root {
  --ink: #15292e;
  --muted: #50656a;
  --subtle: #697b7e;
  --line: #dce6e5;
  --surface: #fff;
  --ground: #f3f6f6;
  --dark: #10272e;
  --teal: #086b60;
  --teal-dark: #07564e;
  --teal-soft: #e5f3ef;
  --round: 15px;
  --shadow: 0 1px 2px #13363c06, 0 3px 9px #13363c04;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; }
[hidden] { display: none !important; }
a { color: var(--teal-dark); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { opacity: .49; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #26a996; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.58; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.08; font-weight: 750; }
h2 { font-size: 23px; line-height: 1.22; }
h3 { font-size: 17px; line-height: 1.26; }
.sprite, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 30; top: 10px; left: 10px; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.icon { display: inline-block; width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: var(--dark); color: #ebf5f4; display: flex; flex-direction: column; padding: 30px 17px 23px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin: 0 10px 54px; width: max-content; }
.brand-logo { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #62bba86b; border-radius: 11px; color: #9af0d7; background: #1b4245; }
.brand-logo .icon { width: 23px; height: 23px; }
.brand strong { display: block; font-size: 23px; line-height: 1; font-weight: 740; letter-spacing: -.065em; }
.brand-dot { color: #6ad5b9; }
.brand small { display: block; color: #9db7b8; font-size: 8.5px; font-weight: 750; letter-spacing: .14em; margin-top: 5px; }
.nav-heading { margin: 0 11px 11px; color: #93aeb0; font-size: 10px; letter-spacing: .13em; font-weight: 760; }
.nav { display: grid; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; color: #c0d1d2; font-weight: 580; text-decoration: none; }
.nav a:hover { background: #1b3940; color: #fff; }
.nav a[aria-current=page] { color: #e3fff7; background: #23464a; border-color: #3b6462; }
.nav a[aria-current=page] .icon { color: #8fe2cb; }
.side-footer { margin-top: auto; border-top: 1px solid #335055; padding: 19px 9px 2px; color: #b3c8c8; font-size: 12px; }
.side-tag { color: #99d9ca; font-size: 9px; letter-spacing: .11em; font-weight: 760; margin-bottom: 7px; }
.side-tag span, .hero-kicker span { width: 6px; height: 6px; border-radius: 50%; background: #8ee4c9; display: inline-block; margin-right: 5px; vertical-align: 1px; }
.side-pills { display: flex; gap: 6px; margin-top: 12px; }
.side-pills span { border: 1px solid #456266; color: #b9d0cf; padding: 3px 7px; border-radius: 4px; letter-spacing: .05em; font-size: 9px; font-weight: 720; }
.main-shell { min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 68px; padding: 0 clamp(22px, 3.45vw, 55px); background: #fff; border-bottom: 1px solid var(--line); }
.crumb, .top-actions, .device, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb-slash { color: #798d90; }
.crumb strong { font-weight: 700; color: var(--ink); }
.top-actions { gap: 16px; }
.device { gap: 6px; color: var(--muted); font-size: 12px; }
.device .icon { color: var(--teal); width: 16px; height: 16px; }
#main { max-width: 1575px; margin: 0 auto; padding: 30px clamp(22px, 3.45vw, 55px) 0; }
#main:focus { outline: none; }
.button { min-height: 41px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; font-weight: 680; font-size: 13px; line-height: 1.2; text-decoration: none; }
.button .icon { width: 17px; height: 17px; }
.button-small { min-height: 35px; padding: 7px 10px; font-size: 12px; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-outline { color: #27454a; background: #fff; border-color: #cbd9d9; }
.button-outline:hover:enabled, a.button-outline:hover { color: var(--teal-dark); border-color: #76aca3; background: #f7fcfa; }
.button-light { color: #173b38; background: #e5f8ef; }
.button-light:hover { background: #fff; }
.button-hero { color: #e3f1ee; background: #103940; border-color: #597f7e; }
.button-hero:hover { background: #24565a; }
.button-danger { border-color: #eacbca; color: #9f333d; background: #fff; }
.button-danger:hover { background: #fff1f0; }
.icon-button { width: 40px; padding: 0; }
.text-link { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: var(--teal-dark); text-decoration: none; font-weight: 720; font-size: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 16px; height: 16px; }
.eyebrow { color: var(--teal-dark); font-size: 10px; font-weight: 790; letter-spacing: .135em; line-height: 1.3; }
.hero { min-height: 316px; display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: 13px; overflow: hidden; border: 1px solid #23474e; border-radius: 17px; color: #eff8f5; background: radial-gradient(ellipse at 85% 55%, #1e5053 0, #15383f 36%, #112c34 70%); padding: 24px clamp(24px, 3.3vw, 49px); }
.hero-copy { padding: 9px 0; }
.hero-kicker { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #557a78; border-radius: 5px; color: #b6e8d9; background: #14333a; white-space: nowrap; }
.hero-kicker span { margin-right: 7px; }
.hero h1 { margin-top: 14px; font-size: clamp(38px, 4.3vw, 65px); letter-spacing: -.065em; line-height: .99; font-weight: 750; }
.hero-copy > p { max-width: 370px; margin: 16px 0 19px; font-size: 14px; color: #d0e0e0; }
.hero-figure { min-width: 0; position: relative; justify-self: center; align-self: center; width: min(100%, 460px); padding-bottom: 12px; }
.hero-figure > svg { display: block; width: 100%; max-height: 270px; }
.hero-figure figcaption { position: absolute; right: 5%; bottom: 0; display: flex; gap: 8px; align-items: center; color: #c4dcda; font-size: 10px; letter-spacing: .02em; }
.hero-figure figcaption span { color: #a9ead9; font-weight: 780; letter-spacing: .09em; }
.panel { border: 1px solid var(--line); border-radius: var(--round); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.summary-grid, .workflow, .metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.summary-grid { margin: 17px 0 32px; }
.stat-card { display: flex; gap: 13px; padding: 15px; align-items: flex-start; min-height: 101px; }
.stat-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; background: var(--teal-soft); color: var(--teal-dark); flex: 0 0 auto; }
.stat-icon .icon { width: 19px; height: 19px; }
.stat-label { font-weight: 690; color: var(--muted); font-size: 12px; }
.stat-value { display: block; margin: 2px 0 0; font-size: 28px; line-height: 1.11; font-weight: 750; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.stat-detail { color: var(--muted); font-size: 11px; margin-top: 4px; }
.section-heading, .page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; }
.section-heading { margin-bottom: 12px; }
.section-heading h2, .page-heading h1 { margin-top: 6px; }
.page-heading { margin: 2px 0 23px; }
.page-heading h1 + p { color: var(--muted); margin-top: 9px; max-width: 65ch; }
.workflow-card { padding: 17px; }
.step-number { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #cbe4dc; background: #eaf6f2; color: var(--teal-dark); border-radius: 8px; font-size: 11px; letter-spacing: .05em; font-weight: 800; flex: 0 0 auto; }
.workflow-card h3 { margin-top: 11px; }
.workflow-card p { color: var(--muted); margin: 7px 0 12px; font-size: 13px; }
.main-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; margin-top: 26px; border-top: 1px solid var(--line); padding: 14px 0 18px; }
.notice { display: flex; align-items: flex-start; gap: 8px; color: #224a48; background: #e8f4f0; border: 1px solid #cbe5dc; padding: 11px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.notice .icon { width: 17px; height: 17px; margin-top: 1px; }
.demo-banner { margin: 0 0 14px; }
.demo-banner strong { margin-right: 4px; }
.notice-error { background: #fff0ef; border-color: #edcbc7; color: #85323b; }
.notice-warn { background: #fff5e3; border-color: #efdbb4; color: #754e14; }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr); align-items: start; gap: 17px; }
#case-form, .entry-aside { display: grid; gap: 15px; min-width: 0; }
fieldset { min-inline-size: 0; margin: 0; }
.form-panel, .preview-panel, .doc-panel { padding: clamp(15px, 2vw, 23px); }
.panel-heading { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; }
.panel-heading h2 { font-size: 19px; }
.panel-heading p, .analysis-panel > p, .doc-panel > p, .form-details p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 12px; }
.two-fields, .measurement-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; font-size: 12px; font-weight: 700; color: #30494d; }
input:not([type=file]), select { display: block; height: 40px; width: 100%; min-width: 0; background: #fff; border: 1px solid #cbd9d9; border-radius: 7px; color: var(--ink); padding: 7px 9px; margin-top: 5px; font-size: 14px; }
input::placeholder { color: #63777a; opacity: 1; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: #ad4c52; }
label small { color: var(--muted); display: block; margin-top: 4px; font-size: 11px; font-weight: 470; line-height: 1.4; }
label small:empty { display: none; }
label .field-error { color: #9a333e; }
.unit { color: var(--muted); font-size: 10px; font-weight: 570; margin-left: 2px; }
.form-details { margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--line); }
summary { font-weight: 700; color: var(--teal-dark); font-size: 13px; }
.form-details .fields { margin-top: 11px; }
.entry-aside { position: sticky; top: 15px; }
.preview-values { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.preview-values > div { min-width: 0; background: #f0f6f5; border-radius: 8px; padding: 8px; }
.preview-values strong, .preview-values .badge { margin-top: 5px; }
.preview-values strong { display: block; font-size: 22px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.preview-ratios { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); margin: 11px 0 7px; font-size: 12px; font-variant-numeric: tabular-nums; }
.preview-panel .notice { margin-top: 10px; }
.landmark-card { overflow: hidden; }
.mini-figure { background: #15353e; padding: 4px 17px; }
.mini-figure svg { display: block; width: 100%; max-height: 165px; }
.landmark-card > div:last-child { padding: 11px 15px 15px; }
.landmark-card h3 { margin-bottom: 5px; }
.badge { display: inline-block; border-radius: 5px; padding: 3px 7px; font-size: 11px; font-weight: 740; line-height: 1.3; white-space: nowrap; }
.badge.low { background: #e4f3eb; color: #275e49; }
.badge.moderate { background: #fbefd6; color: #784f10; }
.badge.high { background: #fae7e7; color: #903d49; }
.badge.neutral { background: #edf2f3; color: #4d6468; }
.empty { text-align: center; padding: clamp(23px, 5vw, 54px) 17px; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--teal-soft); border: 1px solid #d3e9e2; color: var(--teal-dark); border-radius: 12px; margin: 0 auto 11px; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty p { color: var(--muted); margin: 6px auto 14px; max-width: 50ch; }
.empty .actions { justify-content: center; }
.register-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--muted); margin-bottom: 11px; font-size: 13px; align-items: center; }
.register-meta strong { color: var(--ink); }
.register-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 13px 15px; }
.search-box { position: relative; flex: 1 1 190px; max-width: 285px; color: var(--muted); }
.search-box .icon { position: absolute; top: 11px; left: 10px; width: 18px; height: 18px; }
.search-box input { padding-left: 34px; margin: 0; font-weight: 500; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; font-size: 13px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #e2eaea; }
thead th { background: #f1f6f5; font-size: 11px; color: #3d5659; font-weight: 760; }
tbody th { font-weight: 690; }
tbody tr:last-child > * { border-bottom: 0; }
.register-table th, .register-table td { white-space: nowrap; }
.register-table tr > :first-child { padding-left: 15px; }
.register-table tbody tr:hover { background: #f8fbfa; }
.register-table .case-link { padding: 5px 2px; color: var(--teal-dark); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 730; }
.review-flag { color: #845815; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.review-flag .icon { width: 15px; height: 15px; }
.register-pager { border-top: 1px solid var(--line); padding: 11px 15px; display: flex; justify-content: space-between; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.analysis-controls { padding: 13px 16px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 11px 15px; margin-bottom: 15px; }
.analysis-controls label { flex: 0 1 auto; min-width: min(100%, 238px); }
.analysis-controls select { font-size: 13px; }
.analysis-meta { color: var(--muted); font-size: 12px; margin: 0 0 10px auto; }
.analysis-stack { display: grid; gap: 15px; }
.metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.metric { padding: 13px 10px 12px 12px; }
.metric strong { display: block; margin-top: 4px; font-weight: 760; font-size: clamp(20px, 2.25vw, 30px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric span, .metric small { color: var(--muted); }
.metric span { font-size: 12px; font-weight: 690; }
.metric small { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.analysis-grid, .protocol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.analysis-panel { padding: clamp(13px, 1.75vw, 20px); }
.analysis-panel h2 { font-size: 21px; }
.analysis-panel > p { margin-bottom: 10px; }
.analysis-panel .fine { margin: 9px 0 0; color: var(--muted); font-size: 11.5px; }
.analysis-panel .table-wrap { margin-top: 10px; }
.analysis-panel th, .analysis-panel td { padding-left: 7px; padding-right: 7px; }
.matrix { text-align: center; }
.matrix th:first-child { text-align: left; }
.matrix td.match { background: #e9f5ef; color: #164b3e; font-weight: 750; }
.matrix .total { color: #4e6668; font-weight: 700; }
.chart { width: 100%; max-width: 420px; display: block; margin: 8px auto 2px; color: var(--muted); }
.chart text { fill: currentColor; font-size: 10px; font-family: inherit; }
.chart .axis { stroke: #8da5a6; stroke-width: 1; }
.chart .grid { stroke: #e1ebea; stroke-width: 1; }
.chart .baseline { stroke: #839d9c; stroke-dasharray: 4 4; stroke-width: 1; }
.chart .curve { stroke: #087b6b; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .selected-point { fill: #aa631e; stroke: #fff; stroke-width: 1.6; }
.key-value { display: flex; flex-wrap: wrap; gap: 9px 14px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.key-value b { color: var(--ink); font-variant-numeric: tabular-nums; }
.subtable + .subtable { margin-top: 14px; }
.pending-line { min-height: 16px; color: var(--muted); font-size: 11.5px; margin: -5px 0 0; }
.wide-data { white-space: nowrap; }
.doc-panel > p, .doc-panel li { font-size: 13px; color: var(--muted); line-height: 1.58; }
.doc-panel > p { margin-top: 9px; }
.doc-panel ul { padding-left: 19px; margin: 8px 0 0; }
.doc-panel li + li { margin-top: 6px; }
.landmark-list { margin: 9px 0; }
.landmark-list div { display: flex; align-items: baseline; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.landmark-list dt { color: var(--teal-dark); font-weight: 800; }
.landmark-list dd { margin: 0; color: var(--muted); font-size: 13px; }
.formula-block { margin: 12px 0; display: grid; gap: 5px; padding: 10px; border: 1px solid #d3e9e3; border-radius: 7px; background: #edf6f4; color: #215651; font-variant-numeric: tabular-nums; font-size: 13px; }
.threshold-table { white-space: nowrap; }
.references { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.objectives { margin-top: 15px; }
.objectives .table-wrap { margin-top: 11px; }
.objectives th[scope=row] { width: 43%; }
dialog { width: min(590px, calc(100% - 22px)); max-height: calc(100% - 22px); color: var(--ink); padding: 0; border: 1px solid #cddedd; border-radius: 15px; box-shadow: 0 15px 70px #102d3b44; }
dialog::backdrop { background: #0c252c92; }
.dialog-inner { padding: 19px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; margin-bottom: 13px; }
.dialog-header h2 { margin-top: 5px; overflow-wrap: anywhere; }
.dialog-actions { justify-content: space-between; margin-top: 16px; }
.toast { position: fixed; bottom: 17px; right: 17px; z-index: 9; max-width: min(460px, calc(100vw - 34px)); color: #eef8f6; background: #153f43; padding: 11px 15px; border-radius: 8px; border: 1px solid #37706e; box-shadow: 0 3px 15px #0c303633; font-size: 13px; line-height: 1.45; }
.toast.error { background: #762e38; border-color: #953c49; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 208px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .hero { padding-inline: 24px; }
  .analysis-meta { width: 100%; margin: 0; }
}
@media (max-width: 890px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 11px 17px 9px; }
  .brand { margin: 0 0 9px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand strong { font-size: 21px; }
  .nav-heading, .side-footer { display: none; }
  .nav { display: flex; overflow-x: auto; scrollbar-width: thin; gap: 3px; }
  .nav a { font-size: 12px; padding: 7px 9px; gap: 5px; }
  .nav a .icon { width: 16px; height: 16px; }
  .topbar { min-height: 53px; }
  #main { padding-top: 18px; }
}
@media (max-width: 650px) {
  .topbar, #main { padding-left: 14px; padding-right: 14px; }
  .nav { flex-wrap: wrap; overflow: visible; }
  .top-actions { gap: 7px; }
  .device > span { display: none; }
  .device[aria-label="Session-only storage"] > span { display: inline; }
  .crumb { font-size: 12px; gap: 6px; }
  .hero { display: block; min-height: auto; padding: 19px 16px; }
  .hero h1 { font-size: clamp(41px, 10vw, 58px); }
  .hero-copy { padding: 0; }
  .hero-copy > p { margin: 11px 0 13px; }
  .hero-figure { width: min(100%, 375px); margin: 9px auto 0; }
  .hero-figure > svg { max-height: 182px; }
  .hero-figure figcaption { right: 6%; }
  .summary-grid { gap: 6px; margin: 9px 0 22px; }
  .stat-card { display: block; padding: 8px; min-height: 112px; }
  .stat-icon { width: 28px; height: 28px; }
  .stat-icon .icon { width: 15px; height: 15px; }
  .stat-card .stat-icon { margin-bottom: 5px; }
  .stat-label { font-size: 10.5px; }
  .stat-value { font-size: 22px; }
  .stat-detail { font-size: 10px; }
  .workflow, .entry-layout, .analysis-grid, .protocol-grid { grid-template-columns: 1fr; gap: 9px; }
  .workflow-card { padding: 13px; }
  .entry-aside { position: static; }
  .entry-aside .landmark-card { display: none; }
  .panel-heading { margin-bottom: 11px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 15px; gap: 10px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric:last-child { grid-column: 1 / -1; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .analysis-controls label { flex: 1 1 100%; }
  .main-footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .nav a { transition: background-color .12s, border-color .12s, color .12s; }
}
