/* Shared styles for the two Tech Week workbooks:
   /workbook (Meeting Prep Assistant) and /workbook/daily-brief/ (Daily Brief).
   Edit here, not in the pages, so they cannot drift apart. */
:root {
  --navy:#253887; --blue:#3F72A8; --sky:#3E8CC3;
  --wash:#D5E1EB; --wash-soft:#E9F0F6;
  --ground:#F5F8FB; --card:#FFFFFF;
  --ink:#3B4046; --muted:#636C79; --line:#D9E1EA;
  --code-bg:#EFF4F9; --code-ink:#253887;
  --head:var(--navy); --subhead:var(--blue);
  --on-navy:#FFFFFF;
  --strip-height:56px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:#9DB4E8; --blue:#8FB6DE; --sky:#5CA6D9;
    --wash:#25304F; --wash-soft:#1D2740;
    --ground:#0F1526; --card:#171F35;
    --ink:#D9E0EC; --muted:#95A0B5; --line:#2C3752;
    --code-bg:#131B30; --code-ink:#A9C2EE;
    --head:#C3D3F2; --subhead:#8FB6DE;
    --on-navy:#0F1526;
  }
}
:root[data-theme="dark"] {
  --navy:#9DB4E8; --blue:#8FB6DE; --sky:#5CA6D9;
  --wash:#25304F; --wash-soft:#1D2740;
  --ground:#0F1526; --card:#171F35;
  --ink:#D9E0EC; --muted:#95A0B5; --line:#2C3752;
  --code-bg:#131B30; --code-ink:#A9C2EE;
  --head:#C3D3F2; --subhead:#8FB6DE;
  --on-navy:#0F1526;
}
* { box-sizing:border-box; }
html { scroll-padding-top:calc(var(--strip-height) + 16px); }
body {
  margin:0; background:var(--ground); color:var(--ink);
  font-family:'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size:16px; line-height:1.6;
}
h1,h2,h3,h4 { font-family:'Montserrat', 'Segoe UI', system-ui, sans-serif; line-height:1.2; text-wrap:balance; }
a { color:var(--navy); text-underline-offset:3px; }
[id] { scroll-margin-top:calc(var(--strip-height) + 16px); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline:3px solid var(--sky); outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.wrap { max-width:880px; margin:0 auto; padding-inline:20px; }
p { margin:0 0 12px; max-width:70ch; }
.skip { position:absolute; left:-999px; top:8px; z-index:100; background:var(--navy); color:var(--on-navy); padding:10px 14px; border-radius:8px; font-weight:700; }
.skip:focus { left:8px; }

/* ---------- sticky progress strip ---------- */
.progress {
  position:sticky; top:0; z-index:50; background:var(--card);
  border-bottom:1px solid var(--line);
}
.progress-inner {
  max-width:880px; margin:0 auto; padding:6px 12px;
  display:flex; align-items:center; gap:8px;
}
.stages { list-style:none; margin:0; padding:0; display:flex; gap:2px; flex:1 1 auto; min-width:0; }
.stages li { flex:1 1 0; min-width:0; }
.stage-link {
  display:flex; align-items:center; justify-content:center; gap:7px;
  min-height:44px; padding:4px 6px; border-radius:8px; text-decoration:none;
  color:var(--ink); font-family:'Montserrat',sans-serif; font-weight:600; font-size:.82rem;
}
.stage-link:hover { background:var(--wash-soft); }
.stage-num {
  flex:none; width:26px; height:26px; border-radius:50%; border:2px solid var(--blue);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:.75rem; font-weight:800; color:var(--blue); background:transparent;
}
.stage-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stage-link[aria-current="step"] { background:var(--navy); color:var(--on-navy); text-decoration:underline; text-decoration-thickness:2px; }
.stage-link[aria-current="step"] .stage-num { border-color:var(--on-navy); color:var(--on-navy); }
.stages li.is-done .stage-num { background:var(--blue); border-color:var(--blue); color:#FFFFFF; }
.stages li.is-done .stage-num::before { content:"\2713"; }
.stages li.is-done .stage-num .n { display:none; }
.stages li.is-done .stage-link[aria-current="step"] .stage-num { background:var(--on-navy); color:var(--navy); border-color:var(--on-navy); }
.lost {
  flex:none; display:inline-flex; align-items:center; min-height:44px; padding:4px 10px;
  font-size:.82rem; font-weight:700; border-radius:8px; white-space:nowrap;
}
.lost:hover { background:var(--wash-soft); }

/* ---------- hero ---------- */
.hero { padding-block:48px 28px; }
.eyebrow {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.78rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--sky); margin:0 0 10px;
}
.hero h1 { font-size:clamp(2rem, 5.5vw, 3.1rem); font-weight:800; color:var(--head); margin:0 0 14px; }
.hero .lede { font-size:1.12rem; max-width:62ch; }
.hero .meta { color:var(--muted); font-size:.92rem; margin-top:14px; }
.btn-row { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin:22px 0 6px; }
.btn {
  display:inline-flex; align-items:center; min-height:48px; border-radius:8px; padding:10px 18px;
  background:var(--navy); color:var(--on-navy); font-weight:700; text-decoration:none;
  font-family:'Montserrat',sans-serif; border:0; cursor:pointer; font-size:1rem;
}
.btn:hover { text-decoration:underline; }
.btn-quiet { background:transparent; color:var(--navy); border:2px solid var(--blue); }

/* ---------- generic sections ---------- */
section { padding-block:8px 34px; }
h2 { font-size:1.65rem; font-weight:800; color:var(--head); margin:0 0 10px; }
h3 { font-size:1.05rem; font-weight:700; color:var(--subhead); margin:0 0 8px; }
h4 { font-size:1rem; font-weight:700; color:var(--head); margin:0 0 6px; }
.block { margin-top:26px; }
.blocklead { color:var(--muted); font-size:.94rem; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px 22px; }
.card p:last-child { margin-bottom:0; }
.callout { background:var(--wash); border-radius:10px; padding:16px 18px; max-width:76ch; margin-top:14px; }
.callout p:last-child { margin-bottom:0; }
.note {
  background:var(--wash-soft); border:1px solid var(--line); border-radius:8px;
  padding:10px 14px; font-size:.9rem; color:var(--muted); margin-top:12px; max-width:72ch;
}

/* at a glance */
.glance { display:grid; grid-template-columns:1fr; gap:22px; margin-top:16px; }
@media (min-width:760px) { .glance { grid-template-columns:1.1fr 1fr 1fr; } }
.glance h3 { margin-bottom:8px; }
.glance ul { margin:0; padding-left:1.1em; }
.glance li { margin-bottom:6px; }
.rules { list-style:none; padding:0; counter-reset:rule; }
.rules li { counter-increment:rule; display:flex; gap:10px; align-items:flex-start; margin-bottom:10px; }
.rules li::before {
  content:counter(rule); flex:none; width:26px; height:26px; border-radius:50%;
  background:var(--navy); color:var(--on-navy); font-family:'Montserrat',sans-serif; font-weight:800; font-size:.8rem;
  display:inline-flex; align-items:center; justify-content:center; margin-top:2px;
}
.stagetable { width:100%; border-collapse:collapse; font-size:.92rem; }
.stagetable th, .stagetable td { text-align:left; padding:6px 8px 6px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.stagetable th { font-family:'Montserrat',sans-serif; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--subhead); }
.stagetable tr:last-child td { border-bottom:none; }
.stagetable td:first-child { font-family:'Montserrat',sans-serif; font-weight:700; color:var(--head); }
.stagetable .num { white-space:nowrap; }
.stagenote { margin-top:8px; }

/* tool picker */
.picker { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:10px; }
.picker-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:.9rem; color:var(--head); margin-right:4px; }
.picker button {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.92rem;
  padding:8px 18px; min-height:44px; border-radius:999px; border:2px solid var(--line);
  background:var(--card); color:var(--ink); cursor:pointer;
}
.picker button:hover { border-color:var(--sky); }
.picker button[aria-pressed="true"] { background:var(--navy); border-color:var(--navy); color:var(--on-navy); }

/* steps */
.steps { margin:0; padding-left:1.35em; max-width:72ch; }
.steps li { margin-bottom:9px; }
.steps li > .see, .steps li > .ifnot { display:block; font-size:.92rem; color:var(--muted); margin-top:2px; }
body.js-notes .steps li > .ifnot { display:none; }
body.show-notes .steps li > .ifnot { display:block; }
.steps li > .see::before {
  content:"You see: "; font-weight:700; font-size:.78rem; letter-spacing:.04em;
  text-transform:uppercase; color:var(--muted);
}
.steps li > .ifnot::before {
  content:"If not: "; font-weight:700; font-size:.78rem; letter-spacing:.04em;
  text-transform:uppercase; color:var(--muted);
}
.toolsteps { display:none; }
body[data-tool="chatgpt"] .toolsteps[data-tool-panel="chatgpt"],
body[data-tool="claude"]  .toolsteps[data-tool-panel="claude"],
body[data-tool="copilot"] .toolsteps[data-tool-panel="copilot"],
body[data-tool="gemini"]  .toolsteps[data-tool-panel="gemini"] { display:block; }
.verify { display:none; }

/* stages */
.stage { border-top:2px solid var(--wash); margin-top:26px; padding-top:28px; }
.where {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.82rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--head); margin:0 0 8px;
}
.where .dot { color:var(--muted); padding-inline:6px; }
.reality { background:var(--wash); border-radius:10px; padding:16px 18px; max-width:76ch; margin-top:26px; }
.reality h3 { color:var(--head); margin-bottom:8px; }
.reality p { margin-bottom:8px; }
.reality p:last-child { margin-bottom:0; }
.done-when { padding-block:18px; border-block:1px solid var(--line); }
.checklist { list-style:none; padding:0; margin:12px 0 0; }
.checklist li { margin-bottom:4px; }
.checklist label { display:flex; align-items:center; gap:12px; cursor:pointer; min-height:44px; padding:4px 0; }
.checklist input { flex:none; width:22px; height:22px; margin:0; accent-color:var(--navy); }
.next { margin-top:22px; }

/* copy blocks */
.copywrap { display:flow-root; margin-top:10px; }
.copywrap > .copybtn { float:right; margin:0 0 8px 8px; }
.copywrap > pre { clear:both; }
.copywrap pre {
  background:var(--code-bg); color:var(--code-ink);
  border:1px solid var(--line); border-radius:10px;
  padding:18px 18px 16px; overflow-x:auto; overflow-wrap:anywhere; font-size:.86rem; line-height:1.55;
  font-family:ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  white-space:pre-wrap; margin:0;
}
.copybtn {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.78rem;
  padding:8px 16px; min-height:44px; border-radius:7px; border:1px solid var(--navy);
  background:var(--navy); color:var(--on-navy); cursor:pointer;
}
.copybtn:hover { background:var(--head); border-color:var(--head); }

/* long instruction blocks show a few lines until asked for the rest.
   PEEK_LINES in shared.js is 9; keep this in sync with that constant. */
.copywrap.peek { position:relative; }
.copywrap.peek > pre { max-height:calc(9 * .86rem * 1.55 + 34px); overflow:hidden; }
.copywrap.peek::after {
  content:""; position:absolute; left:1px; right:1px; bottom:1px;
  height:calc(4 * .86rem * 1.55);
  background:linear-gradient(to bottom, transparent, var(--code-bg) 85%);
  border-radius:0 0 10px 10px; pointer-events:none;
}
.copywrap.peek.is-open > pre { max-height:none; }
.copywrap.peek.is-open::after { display:none; }
.peektoggle, .notestoggle {
  display:inline-block; font-family:'Montserrat',sans-serif; font-weight:700; font-size:.78rem;
  margin-top:10px; padding:8px 14px; min-height:44px; border-radius:7px;
  border:1px solid var(--line); background:var(--card); color:var(--subhead); cursor:pointer;
}
.peektoggle:hover, .notestoggle:hover { border-color:var(--sky); }
.notestoggle { margin-top:12px; }
.sample-material { padding-block:14px; border-top:1px solid var(--line); }
.sample-material h3 { color:var(--head); font-size:1rem; margin:0 0 6px; }
.sample-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-size:.9rem; }
.sample-actions a { display:inline-flex; align-items:center; min-height:44px; }
.packfile { background:var(--card); border:1px solid var(--line); border-radius:10px; margin-top:10px; }
.packfile summary { overflow-wrap:anywhere;
  cursor:pointer; padding:12px 16px; font-family:ui-monospace, Menlo, Consolas, monospace;
  font-size:.9rem; font-weight:600; color:var(--subhead); min-height:44px;
}
.packfile .copywrap { margin:0 14px 14px; }
.copyhint { color:var(--muted); font-weight:400; font-family:'Open Sans',sans-serif; font-size:.82rem; }

/* tables */
table { border-collapse:collapse; width:100%; font-size:.92rem; }
.tablewrap { overflow-x:auto; margin-top:14px; border:1px solid var(--line); border-radius:10px; background:var(--card); }
.tablewrap th, .tablewrap td { text-align:left; padding:10px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.tablewrap th { font-family:'Montserrat',sans-serif; font-size:.8rem; letter-spacing:.05em; text-transform:uppercase; color:var(--subhead); }
.tablewrap tr:last-child td { border-bottom:none; }

/* optional examples */
.reference-intro { border-top:2px solid var(--wash); margin-top:28px; padding-top:28px; }
.scenario { border-top:2px solid var(--wash); margin-top:26px; padding-top:30px; }
.scengrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap:12px; margin-top:16px; align-items:start; }
.scengrid > details[open] { grid-column:1 / -1; }
.alternate-build { padding-top:0; margin-top:0; border-top:none; }
.alternate-build > summary { list-style:none; }
.alternate-build > summary::-webkit-details-marker { display:none; }
.alternate-build > summary {
  position:relative; background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:16px 48px 16px 18px; cursor:pointer; color:var(--head); min-height:44px;
}
.alternate-build > summary:hover { border-color:var(--sky); }
.alternate-build > summary::after {
  content:"+"; position:absolute; right:20px; top:50%; transform:translateY(-50%);
  font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.3rem; color:var(--sky); line-height:1;
}
.alternate-build[open] > summary { border-radius:12px 12px 0 0; border-bottom-color:transparent; }
.alternate-build[open] > summary::after { content:"\2013"; }
.alternate-build > summary h2 { display:inline; font-size:1.15rem; }
.scen-num {
  display:block; font-family:'Montserrat',sans-serif; font-weight:800; font-size:.8rem;
  color:var(--sky); letter-spacing:.1em; margin-bottom:4px;
}
.alternate-build[open] > .alternate-content {
  border:1px solid var(--line); border-top:none; border-radius:0 0 12px 12px; padding:4px 20px 28px;
}
.alternate-benefit { display:block; margin-top:6px; color:var(--muted); font-family:'Open Sans',sans-serif; font-size:.9rem; font-weight:400; line-height:1.5; text-wrap:wrap; }
.alternate-content { padding-bottom:28px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 14px; }
.chip { font-size:.8rem; font-weight:600; padding:4px 12px; border-radius:999px; background:var(--wash-soft); border:1px solid var(--line); color:var(--ink); }
.chip-power { background:var(--wash); color:var(--ink); font-weight:700; }
.who { color:var(--muted); font-size:.95rem; }
.refines { margin:0; padding-left:1.2em; max-width:70ch; }
.refines li { margin-bottom:7px; }
.watchfor { background:var(--wash); border-radius:10px; padding:14px 16px; font-size:.95rem; max-width:72ch; }
.levelup { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px 18px; max-width:76ch; }
.levelup summary { cursor:pointer; color:var(--head); font-weight:700; min-height:44px; display:flex; align-items:center; }
.levelup p { margin-bottom:0; }
.toolnote { background:var(--wash-soft); border:1px solid var(--line); border-radius:8px; padding:10px 14px; font-size:.88rem; color:var(--muted); margin-top:12px; max-width:72ch; }
.sample-index { padding-left:1.2em; }
.sample-index li { margin-block:8px; }
.reference-detail { border-top:1px solid var(--line); padding:20px 0; }
.reference-detail > summary { cursor:pointer; color:var(--head); font-weight:700; font-size:1.1rem; min-height:44px; display:flex; align-items:center; }
.reference-content { padding-top:16px; }
.recipe { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.recipe .r-step { flex:1 1 150px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.recipe .r-num { font-family:'Montserrat',sans-serif; font-weight:800; color:var(--sky); font-size:.85rem; }
.recipe .r-name { font-family:'Montserrat',sans-serif; font-weight:700; color:var(--head); margin:2px 0 4px; }
.recipe .r-desc { font-size:.88rem; color:var(--muted); line-height:1.45; }
footer { border-top:2px solid var(--wash); margin-top:30px; padding-block:30px 48px; color:var(--muted); font-size:.92rem; }
footer .sig { font-family:'Montserrat',sans-serif; font-weight:700; color:var(--head); font-size:1rem; }
footer a { display:inline-block; padding-block:4px; }
.clearlink { display:inline-flex; align-items:center; min-height:44px; }
.build-go { display:inline-flex; align-items:center; min-height:44px; font-weight:700; font-family:'Montserrat',sans-serif; }


/* ---------- connection table (Daily Brief) ---------- */
.connect-table th[scope="row"] { font-family:'Montserrat',sans-serif; font-weight:700; color:var(--head); width:14%; }
.connect-table th[scope="row"] { text-transform:none; letter-spacing:0; font-size:.95rem; }
.connect-table td { min-width:150px; }
.connect-table td p { margin:0 0 6px; font-size:.9rem; }
.connect-table td p:last-child { margin-bottom:0; }
.tag-plan { display:inline-block; font-size:.74rem; font-weight:700; padding:1px 8px; border-radius:999px; background:var(--wash); color:var(--head); margin:2px 0; }
@media (max-width:760px) {
  .connect-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .connect-table, .connect-table tbody, .connect-table tr, .connect-table th, .connect-table td { display:block; width:auto; }
  .connect-table tr { border-bottom:2px solid var(--wash); padding:10px 0; }
  .connect-table tr:last-child { border-bottom:none; }
  .connect-table th[scope="row"] { border-bottom:none; padding-bottom:2px; font-size:1rem; white-space:normal; }
  .connect-table td { border-bottom:none; padding-block:6px; min-width:0; }
  .connect-table td::before { content:attr(data-label); display:block; font-family:'Montserrat',sans-serif; font-size:.74rem; letter-spacing:.05em; text-transform:uppercase; color:var(--subhead); font-weight:700; }
}
.disconnect { margin:10px 0 0; padding-left:1.2em; max-width:72ch; }
.disconnect li { margin-bottom:7px; }
.picks { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap:4px 18px; }
.ask-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:.9rem; color:var(--head); margin:14px 0 0; }
.pastepath { background:var(--card); border:1px dashed var(--blue); border-radius:10px; padding:14px 16px; max-width:76ch; margin-top:22px; }
.pastepath h3 { color:var(--head); }
.pastepath p:last-child { margin-bottom:0; }
.pastepath .sample-material:last-child { padding-bottom:0; }
.grade { background:var(--wash-soft); border:1px solid var(--line); border-radius:10px; padding:14px 16px; max-width:76ch; margin-top:22px; }
.grade h3 { color:var(--head); }
.grade ul { margin:0; padding-left:1.2em; }
.grade li { margin-bottom:6px; }
.privacy { border:2px solid var(--navy); }
.privacy ul { margin:0 0 12px; padding-left:1.2em; max-width:72ch; }
.privacy li { margin-bottom:8px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior:smooth; }
}
@media (max-width:640px) {
  .wrap { padding-inline:16px; }
  .progress-inner { padding:4px 8px; gap:4px; }
  .stage-link { padding:4px 3px; gap:5px; font-size:.78rem; }
  .stages li:not(.is-current) .stage-name { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .stages li.is-current { flex:2.4 1 0; }
  .lost { padding:4px 6px; font-size:.78rem; }
  .hero { padding-block:28px 22px; }
  .copywrap pre { padding:14px; }
  .packfile summary { padding:12px; }
  .packfile .copywrap { margin-inline:10px; }
  .card { padding:16px; }
}
@media print {
  .progress, .skip, .copybtn, .next, .btn-row, .lost { display:none !important; }
  body { background:#fff; color:#000; }
  .toolsteps { display:block !important; }
  .steps li > .ifnot { display:block !important; }
  .peektoggle, .notestoggle { display:none !important; }
  .copywrap.peek > pre { max-height:none !important; }
  .copywrap.peek::after { display:none !important; }
  .toolsteps::before { content:attr(data-tool-label) ": "; font-weight:700; }
  details > summary { list-style:none; }
  a { color:#000; }
  .reality, .callout, .watchfor, .grade, .pastepath { border:1px solid #999; }
  section, details, .stage { break-inside:auto; }
  h2, h3 { break-after:avoid; }
}

/* ---------- wizard: one step at a time ---------- */
.wiz-start {
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:26px 26px 24px; margin-top:28px; max-width:72ch;
}
.wiz-start h2 { margin-bottom:8px; }
.wiz-start p { color:var(--muted); max-width:60ch; }
.wiz-resume-note { font-weight:700; color:var(--subhead) !important; margin-top:16px; }
.wiz-resume-note[hidden], .wiz-restart[hidden] { display:none; }
.wiz-begin, .wiz-restart, .wiz-all {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.9rem;
  padding:12px 22px; min-height:48px; border-radius:8px; cursor:pointer; margin-top:6px;
}
.wiz-begin { background:var(--navy); color:var(--on-navy); border:1px solid var(--navy); }
.wiz-begin:hover { background:var(--head); border-color:var(--head); }
.wiz-restart, .wiz-all { background:var(--card); color:var(--subhead); border:1px solid var(--line); }
.wiz-restart:hover, .wiz-all:hover { border-color:var(--sky); }

.wiz-help-return {
  display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px;
  max-width:70ch; margin:4px 0 18px; padding:14px 16px;
  background:var(--wash-soft); border:1px solid var(--line); border-radius:10px;
}
.wiz-help-return[hidden] { display:none; }
.wiz-return {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.88rem;
  min-height:44px; padding:9px 16px; border:1px solid var(--navy); border-radius:8px;
  background:var(--navy); color:var(--on-navy); cursor:pointer;
}
.wiz-return:hover { background:var(--head); border-color:var(--head); }
.wiz-help-detail { color:var(--muted); font-size:.9rem; }

.wizbar { display:none; }
.wiz-track { height:4px; background:var(--wash); border-radius:999px; overflow:hidden; margin-bottom:12px; }
.wiz-fill { display:block; height:100%; background:var(--sky); transition:width .18s ease; }
.wiz-row { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.wiz-row-sub { margin-top:8px; justify-content:space-between; font-size:.82rem; flex-wrap:wrap; }
.wiz-count { font-family:'Montserrat',sans-serif; font-weight:700; font-size:.82rem; color:var(--subhead); text-align:center; flex:1 1 auto; }
.wiz-back, .wiz-next {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.88rem;
  padding:12px 24px; min-height:48px; border-radius:8px; cursor:pointer; flex:none;
}
.wiz-next { background:var(--navy); color:var(--on-navy); border:1px solid var(--navy); }
.wiz-next:hover { background:var(--head); border-color:var(--head); }
.wiz-back { background:var(--card); color:var(--subhead); border:1px solid var(--line); }
.wiz-back:hover:not(:disabled) { border-color:var(--sky); }
.wiz-back:disabled { opacity:.4; cursor:default; }
.wiz-leave, .wiz-reset {
  font-family:'Open Sans',sans-serif; font-size:.82rem; background:none; border:none;
  color:var(--subhead); text-decoration:underline; cursor:pointer; padding:8px 0; min-height:44px;
}
.wiz-reset[hidden] { display:none; }
.wiz-stuck { font-size:.82rem; padding:8px 0; min-height:44px; display:inline-flex; align-items:center; }

@media screen {
  body.wiz-on.wiz-prep .progress { display:none; }
  body.wiz-scroll #wiz-start { display:none; }
  body.wiz-on .wiz-page { display:none; }
  body.wiz-on .stage { display:none; }
  body.wiz-on .wiz-nested-off { display:none !important; }
  body.wiz-on .stage.is-active,
  body.wiz-on .wiz-intro.is-active {
    display:flex; flex-direction:column; justify-content:center;
    border:1px solid var(--line); border-top:1px solid var(--line); border-radius:16px;
    background:var(--card); margin:14px 0 0; padding:34px 36px;
    min-height:min(58vh, 520px); max-width:74ch;
  }
  body.wiz-on .stage.is-active > *,
  body.wiz-on .wiz-intro.is-active > * { max-width:66ch; }
  body.wiz-on #welcome.is-active,
  body.wiz-on #privacy.is-active {
    border:0; background:transparent; padding:12px 0 0; min-height:0;
  }
  body.wiz-on #welcome h1 { font-size:2rem; }
  body.wiz-on .wiz-intro.is-active { min-height:0; justify-content:flex-start; }
  body.wiz-on #privacy .privacy h3,
  body.wiz-on #privacy .privacy .blocklead,
  body.wiz-on #privacy .privacy .disconnect { display:none; }
  body.wiz-on .wiz-crumb {
    display:block; font-family:'Montserrat',sans-serif; font-weight:700; font-size:.78rem;
    letter-spacing:.06em; text-transform:uppercase; color:var(--subhead);
    margin:26px 0 0; max-width:74ch;
  }
  .wiz-crumb { display:none; }
  body.wiz-on .wiz-off { display:none !important; }
  body.wiz-on main { padding-bottom:150px; }
  body.wiz-on .wizbar {
    display:block; position:fixed; left:0; right:0; bottom:0; z-index:40;
    background:var(--card); border-top:1px solid var(--line);
    padding:12px max(16px, calc((100% - 78ch) / 2)) calc(12px + env(safe-area-inset-bottom));
    box-shadow:0 -6px 20px rgba(0,0,0,.06);
  }
  /* a few steps at a time: bigger type, numbered, room between them */
  body.wiz-on .stage.is-active .steps { padding-left:1.5em; }
  body.wiz-on .stage.is-active .steps li { font-size:1.25rem; line-height:1.5; margin-bottom:22px; }
  body.wiz-on .stage.is-active .steps li::marker { font-weight:700; color:var(--subhead); }
  body.wiz-on .stage.is-active .steps li > strong { font-weight:700; }
  body.wiz-on .stage.is-active h3 { font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; color:var(--subhead); margin-bottom:14px; }
  body.wiz-on .stage.is-active .steps li > .see,
  body.wiz-on .stage.is-active .steps li > .ifnot { font-size:1rem; margin-top:10px; }
  body.wiz-on .stage.is-active .steps li > .see::before,
  body.wiz-on .stage.is-active .steps li > .ifnot::before { font-size:.8rem; display:block; margin-bottom:2px; }
  body.wiz-on h2[data-wiz-focus]:focus,
  body.wiz-on h1[data-wiz-focus]:focus,
  body.wiz-on h3[data-wiz-focus]:focus,
  body.wiz-on li[data-wiz-focus]:focus,
  body.wiz-on section[data-wiz-focus]:focus { outline:none; }
}

@media print {
  .wizbar, .wiz-start { display:none !important; }
  body.wiz-on .wiz-page, body.wiz-on .stage, body.wiz-on .wiz-intro { display:block !important; }
  body.wiz-on .wiz-off { display:revert !important; }
}
.wiz-toolbtn {
  font-family:'Open Sans',sans-serif; font-size:.82rem; background:none; border:none;
  color:var(--subhead); text-decoration:underline; cursor:pointer; padding:8px 6px; min-height:44px;
}
.wiz-toolname { font-weight:700; }
.wiz-picker { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; justify-content:center; }
.wiz-picker[hidden] { display:none; }
.wiz-toolpick {
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:.82rem;
  padding:10px 18px; min-height:44px; border-radius:7px;
  border:1px solid var(--line); background:var(--card); color:var(--subhead); cursor:pointer;
}
.wiz-toolpick:hover { border-color:var(--sky); }
.wiz-toolpick[aria-pressed="true"] { background:var(--navy); border-color:var(--navy); color:var(--on-navy); }

@media (max-width:560px) {
  .wiz-toolbtn { order:-1; flex-basis:100%; text-align:center; padding-block:4px; min-height:32px; }
  .wiz-row-sub { font-size:.78rem; gap:10px; }
  .wiz-leave, .wiz-reset, .wiz-stuck { min-height:38px; padding-block:4px; }
  .wiz-back, .wiz-next { padding:11px 18px; min-height:46px; font-size:.84rem; }
  .wiz-count { font-size:.76rem; }
  body.wiz-on .stage.is-active,
  body.wiz-on .wiz-intro.is-active { padding:24px 20px; min-height:min(56vh, 460px); border-radius:14px; }
  body.wiz-on .wiz-intro.is-active { min-height:0; }
  body.wiz-on #welcome.is-active,
  body.wiz-on #privacy.is-active { padding:12px 0 0; min-height:0; }
  body.wiz-on .stage.is-active .steps li { font-size:1.12rem; }
  body.wiz-on main { padding-bottom:220px; }
}

@media (max-width:350px) {
  .wiz-track { margin-top:10px; }
  .wiz-count { position:absolute; top:2px; right:16px; flex:none; white-space:nowrap; }
}
