:root {
  color-scheme: light;
  --paper: #f0e9dd;
  --surface: #fbf8f2;
  --header-ground: var(--brand-sand);
  --ink: var(--brand-blue);
  --muted: #455679;
  --rule: #d8d0c3;
  --control: #848487;
  --brand-panel: var(--brand-blue);
  --brand-panel-text: #fff9ee;
  --brand-panel-muted: #d3ddf8;
  --accent: var(--brand-blue);
  --accent-ink: var(--brand-panel-text);
  --selected: #e1e8f7;
  --error: #983e26;
  --gutter: clamp(1.25rem, 3.5vw, 3.5rem);
  --radius: 4px;
  font-family: var(--brand-font);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17191e;
  --surface: #21242a;
  --header-ground: #1c1e24;
  --ink: #f6f0e5;
  --muted: #c2c8d6;
  --rule: #3c414c;
  --control: #788293;
  --accent: #afc4ff;
  --accent-ink: #102557;
  --selected: #2a3551;
  --error: #ffc1a8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 3.5vw, 2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; }
h1[tabindex="-1"] { width: fit-content; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
p { max-width: 70ch; }
.skip { position: fixed; z-index: 10; top: -6rem; padding: .7rem 1rem; background: var(--surface); }
.skip:focus { top: .5rem; }
.top { min-height: 64px; padding: .65rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: var(--header-ground); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.top-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.environment { font-size: .83rem; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.shell { max-width: 1550px; margin: auto; display: grid; grid-template-columns: 195px minmax(0, 1fr); }
.menu-toggle { display: none; }
.menu { padding: 2rem .9rem 2rem 1rem; display: flex; flex-direction: column; gap: .28rem; border-right: 1px solid var(--rule); }
.menu a { white-space: nowrap; padding: .58rem .8rem; text-decoration: none; border-radius: var(--radius); color: var(--muted); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--selected); color: var(--ink); }
.menu a[aria-current="page"] { font-weight: 700; }
.menu .site-link { margin-top: 1rem; border-top: 1px solid var(--rule); border-radius: 0; }
main { min-width: 0; padding: var(--gutter); min-height: calc(100vh - 64px); }
main:focus-visible { outline-offset: -3px; }
.portal-content { max-width: 1120px; margin-inline: auto; }
.shell:has(form[data-cloud]) { display: block; }
.shell:has(form[data-cloud]) > :is(.menu, .menu-toggle) { display: none; }
.shell > main:has(form[data-cloud]),
.portal-content:has(form[data-portal="login"], form[data-portal="enroll"], form[data-portal="verify"]) {
  max-width: 38rem;
  margin-inline: auto;
}
.panel > form:first-child { margin-top: 0; }
.pilot-text { display: grid; gap: .25rem 1rem; border-top: 1px solid var(--rule); padding-block: .7rem; overflow-wrap: anywhere; }
.pilot-text h3 { font-size: .9rem; }
.pilot-text p { white-space: pre-wrap; }
.intro { margin: .1rem 0 1.25rem; }
.intro p { color: var(--muted); margin-top: .4rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(200px, 1fr); gap: 1.6rem; padding: clamp(1.3rem, 4vw, 2.7rem); background: var(--brand-panel); color: var(--brand-panel-text); }
.feature h1 { font-size: clamp(2.4rem, 5.2vw, 4.15rem); font-weight: 400; line-height: 1.04; text-wrap: balance; }
.feature p { color: var(--brand-panel-muted); }
.feature p { margin: .8rem 0 1.15rem; }
.offer-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; margin-bottom: 1rem; }
.offer-line strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.offer-line span { color: var(--brand-panel-muted); }
.feature > div :focus-visible { outline-color: var(--brand-panel-text); }
.handover-example { align-self: center; padding: clamp(1rem, 2.5vw, 1.5rem); background: var(--surface); color: var(--ink); border-radius: var(--radius); }
.handover-example header { margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); font-size: .82rem; font-weight: 600; color: var(--muted); }
.handover-example p { color: var(--muted); margin: .25rem 0 .85rem; }
.handover-example dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .85rem; }
.handover-example dt { font-weight: 600; }
.handover-example dd { margin: 0; overflow-wrap: anywhere; }
.button, button { border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: .55rem .85rem; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; }
.button:hover, button:hover { border-color: var(--ink); }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.primary:hover:enabled, a.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--accent-ink)); }
.feature .primary { background: var(--brand-sand); color: var(--brand-blue); border-color: var(--brand-sand); }
.feature .primary:hover { background: var(--brand-sand-deep); }
.plain { background: transparent; }
.danger { color: var(--error); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.metric { padding: 1rem; border-right: 1px solid var(--rule); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric small { display: block; font-size: .82rem; }
.metric strong { display: block; font-size: clamp(1.2rem, 3vw, 1.85rem); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.25rem; margin-top: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1rem, 2.4vw, 1.5rem); min-width: 0; }
.panel + .panel.stacked { margin-top: 1rem; }
.panel > h2 { margin-bottom: .65rem; }
.panel > p + p, .panel > p + .actions, .panel form { margin-top: .8rem; }
.decision-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; }
.decision-panel p { margin-top: .2rem; }
.workflow-columns { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: start; }
.workflow-action { border-color: var(--muted); }
.batch-criteria { font-weight: 600; }
.meeting-record { padding: .65rem .85rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.pilot-summary { margin-top: .85rem; }
.muted, small { color: var(--muted); }
.stage-list, .log { padding: 0; margin: 0; list-style: none; }
.stage-list li, .log li, .summary-row { border-bottom: 1px solid var(--rule); padding: .65rem 0; }
.stage-list li, .summary-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.stage-list li:last-child, .log li:last-child, .summary-row:last-child { border: 0; }
.stage-list li[data-active] { font-weight: 700; background: var(--selected); padding-inline: .5rem; border-radius: 5px; }
.stage-list small { flex: none; }
.stage-list .completed { color: var(--muted); }
.status { margin: .4rem 0 .8rem; font-variant-numeric: tabular-nums; }
.notice { margin-top: 1rem; background: var(--selected); border-radius: var(--radius); padding: .75rem 1rem; }
.notice p + p { margin-top: .4rem; }
form { display: grid; gap: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
form label { display: grid; gap: .3rem; color: var(--muted); font-weight: 600; }
input, textarea, select { min-width: 0; width: 100%; min-height: 44px; padding: .55rem .65rem; border-radius: var(--radius); border: 1px solid var(--control); background: var(--surface); color: var(--ink); }
textarea { min-height: 76px; resize: vertical; }
form button { justify-self: start; }
.log small { display: block; }
.site-faq details { padding: .65rem 0; border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: .5rem; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.step-actions form { flex-basis: 100%; margin-top: 0; }
.step-actions .status { margin: 0; }
.batch { margin-top: 1rem; }
.work-panel { margin-top: 1rem; }
.work-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; }
.work-config, .work-prospects { margin-top: 1rem; }
.work-config > summary, .work-prospects > details > summary { padding: .65rem 0; }
.work-prospects > details { border-top: 1px solid var(--rule); padding-bottom: .6rem; overflow-wrap: anywhere; }
.work-prospects summary small { margin-left: .5rem; font-weight: 400; }
.work-prospects form { padding: .65rem 0; }
.work-prospects .log { white-space: pre-wrap; }
.data-scroll { max-width: 100%; max-height: 18rem; overflow: auto; margin: .55rem 0; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .5rem .65rem; border-bottom: 1px solid var(--rule); }
th { position: sticky; top: 0; background: var(--surface); }
.price { font-size: 1.5rem; font-weight: 600; }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: var(--brand-panel); color: var(--brand-panel-text); padding: .8rem 1rem; max-width: min(480px, calc(100% - 2rem)); border-radius: var(--radius); box-shadow: 0 6px 16px #0e173624; z-index: 2; }
@media (min-width: 640px) {
  .pilot-text { grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .shell { display: block; }
  .menu-toggle { display: flex; width: 100%; justify-content: space-between; gap: .75rem; border-width: 0 0 1px; border-radius: 0; padding: .65rem 1rem; }
  .menu-toggle span { color: var(--muted); }
  .menu-toggle strong { text-align: right; }
  .menu { display: none; padding: .55rem .8rem; border: 0; border-bottom: 1px solid var(--rule); background: var(--surface); }
  .menu-toggle[aria-expanded="true"] + .menu { display: flex; }
  .menu .site-link { margin: 0; border: 0; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .top { flex-wrap: wrap; }
  .top-actions { margin-inline-start: auto; justify-content: end; }
  .split, .feature, .fields { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-child(3) { padding-left: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
}
