:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #182639; background: #f4f6f8; font-size: 17px; line-height: 1.5;
  --blue: #204bae; --muted: #536476; --line: #ced6df;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, select, input { font: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #976000; outline-offset: 4px; }
.shell { width: min(100%, 36rem); margin: 0 auto; padding: clamp(18px,5vh,52px) 16px 36px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 650; font-size: 1rem; }
.brand img { width: 35px; height: 35px; image-rendering: pixelated; }
.sheet { background: white; border: 1px solid var(--line); padding: clamp(22px,6vw,40px); border-radius: 16px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(1.65rem,6vw,2.2rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 12px; }
h2 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.02em; }
p { color: var(--muted); }
.primary, button.primary { display: block; background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 8px; font-weight: 650; text-decoration: none; text-align: center; width: 100%; padding: 13px 15px; cursor: pointer; min-height: 48px; }
.primary:hover { background: #153c92; }
button:disabled { opacity: .6; cursor: default; }
.text-button { background: transparent; border: 0; padding: 8px 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.picker fieldset { padding: 0; margin: 20px 0 18px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.plan { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 15px 14px; cursor: pointer; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan:has(input:checked) { background: #edf3ff; box-shadow: inset 3px 0 var(--blue); }
.plan:has(:focus-visible) { outline: 3px solid #976000; outline-offset: -3px; }
.plan input { margin: 0; width: 19px; height: 19px; accent-color: var(--blue); }
.plan b { display: block; font-size: 1.09rem; }
.plan small { display: block; color: var(--muted); font-size: .9rem; }
.plan .cost { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { margin-top: 12px; font-size: .88rem; }
.below { text-align: center; margin-top: 18px; }
.below a, summary { display: inline-block; padding: 8px 0; }
.intro, .details { margin-bottom: 15px; }
.details:empty, .note:empty { display: none; }
details > summary { display: list-item; cursor: pointer; color: var(--blue); }
.aux { margin: 18px 0 0; }
.aux nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 5px 0 0; }
#device { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
#device p { margin: 10px 0; }
#device details { margin: 7px 0; }
.settings { display: grid; gap: 10px; padding: 10px 0; }
.settings label { display: grid; gap: 3px; }
select, input[type=text] { border: 1px solid #758398; border-radius: 6px; background: white; padding: 7px; width: 100%; color: inherit; }
.step-count { font-size: .9rem; margin-bottom: 8px; color: var(--muted); }
.wizard-extra { margin-top: 12px; }
.wizard-extra button, .wizard-back { margin-right: 14px; }
figure { margin: 8px 0; }
figure svg { max-width: 210px; width: 100%; height: auto; }
figcaption { font-size: .88rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width:450px) {
  :root {background: white;}
  .shell {padding: max(18px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));}
  .brand {margin-bottom: 24px;}
  .sheet { padding: 0; border: 0; }
  .plan { padding: 15px 11px; gap: 9px; }
}
.secondary section, .secondary article, .secondary form { margin-top: 18px; }
.secondary article + article { border-top: 1px solid var(--line); padding-top: 18px; }
.secondary article time { display: block; color: var(--muted); margin-bottom: 5px; }
.secondary p, .secondary label { display: block; margin: 10px 0; }
.secondary input:not([type=file]) { width: 100%; padding: 8px; }
.secondary a.primary { margin-top: 12px; }
