/* Soft+Bold hub: shared tokens */
:root {
  --bg: #f3f4fb;
  --white: #ffffff;
  --text: #0e1224;
  --heading: #0a0e1c;
  --muted: #4a5168;
  --line: #dde1ef;
  --accent: #3d4fd8;
  --accent-dark: #2a38b0;
  --accent-mid: #5c6de0;
  --accent-soft: #c8cff5;
  --accent-softer: #e8eaf8;
  --accent-ink: #ffffff;
  --track: #e4e7f4;
  --shadow: rgba(14, 18, 36, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --prose: 42rem;
}

/* ===== Interactive product polish (shared) ===== */
:root { --tap: 44px; }
.btn, .wiz-card, .quiz-opt, .tp-seg-btn, .wf-chip, .assess-chip {
  min-height: var(--tap);
}
.btn:focus-visible,
.wiz-card:focus-visible,
.quiz-opt:focus-visible,
.tp-seg-btn:focus-visible,
.wf-chip:focus-visible,
.assess-chip:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}
.btn:active, .wiz-card:active, .quiz-opt:active {
  transform: scale(0.98);
}


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a.inline { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
a.inline:hover { color: var(--accent); }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }
.prose-wrap { width: min(var(--prose), calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }

.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; }
.blob-1 { width: 420px; height: 420px; background: var(--accent-soft); top: -100px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: #d4d9f4; top: 42%; left: -140px; }
.blob-3 { width: 280px; height: 280px; background: var(--accent-softer); bottom: 6%; right: 10%; opacity: 0.55; }

.banner {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.06em;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.banner .draft { color: var(--accent-dark); }

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .15s ease;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(61, 79, 216, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 12px 32px rgba(61, 79, 216, 0.36);
}
.btn-secondary {
  background: var(--white);
  border-color: var(--text);
  color: var(--text);
  box-shadow: 0 2px 8px var(--shadow);
}
.btn-secondary:hover { background: var(--text); color: var(--white); }
.btn-nav { padding: 10px 16px; font-size: 13px; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-softer);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero { padding: 28px 0 36px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  font-weight: 900;
  color: var(--heading);
  max-width: 40rem;
}
.page-hero .deck {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0;
  font-weight: 500;
}

.article-hero { padding: 28px 0 20px; }
.article-hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-weight: 900;
  color: var(--heading);
}
.article-hero .lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 500;
  max-width: 40rem;
}

section { padding: 48px 0; }
section.tight { padding: 32px 0; }
section + section { padding-top: 24px; }

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--heading);
  max-width: none;
}
h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 8px;
}
.sec-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -4px 0 18px;
  max-width: 40rem;
  font-weight: 500;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 22px;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
a.card:hover,
.card.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14, 18, 36, 0.1);
}
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.card .meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card .tag {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card .tag span { color: var(--accent); }
.card.coming {
  opacity: 0.72;
  box-shadow: none;
}
.card.coming .tag span { color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 2px 8px var(--shadow);
  transition: border-color .15s ease, transform .2s var(--ease-out);
}
a.chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}
.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.note-box {
  background: var(--accent-softer);
  border: 1px solid var(--accent-soft);
  border-radius: 1rem;
  padding: 18px 20px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.note-box p { margin: 0; }

/* Prose / long-form */
.prose {
  max-width: var(--prose);
  margin: 0 auto;
}
.prose p {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
}
.prose .muted { color: var(--muted); }
.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.prose ul, .prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--text);
  font-weight: 500;
}
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 800; color: var(--heading); }

.steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 1.25rem 0 1.5rem;
}
.step-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 10px var(--shadow);
}
.step-cell .n {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.step-cell .t {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}

.type-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 1rem 0 1.5rem;
}
.type-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 1rem;
  padding: 18px 18px 16px;
  box-shadow: 0 2px 10px var(--shadow);
}
.type-card .label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timebox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.timebox span { opacity: 0.85; font-weight: 600; }

.numbered-steps {
  counter-reset: hackstep;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.numbered-steps li {
  counter-increment: hackstep;
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
  box-shadow: 0 2px 8px var(--shadow);
}
.numbered-steps li::before {
  content: counter(hackstep);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-softer);
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.props-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
}
.props-table th,
.props-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.props-table th {
  background: var(--accent-softer);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.props-table tr:last-child td { border-bottom: none; }
.props-table td:first-child { font-weight: 800; color: var(--heading); white-space: nowrap; }
.props-table td:nth-child(2) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
}
.props-table td { color: var(--muted); font-weight: 500; }

.code-block {
  background: var(--heading);
  color: #e8eaf8;
  border-radius: 1rem;
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  white-space: pre-wrap;
  box-shadow: 0 8px 24px rgba(14, 18, 36, 0.18);
}
.code-block .cm { color: #9aa6ec; }

.try-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 22px 24px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 28px var(--shadow);
  position: relative;
  overflow: hidden;
}
.try-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-mid));
}
.try-card .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.try-card p { margin: 0; font-weight: 600; color: var(--heading); font-size: 1.02rem; }

.trend-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.trend-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
  box-shadow: 0 2px 8px var(--shadow);
}
.trend-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.end-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 36px 28px;
  box-shadow: 0 12px 40px var(--shadow);
  margin: 32px 0 16px;
  position: relative;
  overflow: hidden;
}
.end-cta::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(61, 79, 216, 0.12), transparent 70%);
  pointer-events: none;
}
.end-cta > * { position: relative; z-index: 1; }
.end-cta h2 { margin-bottom: 10px; }
.end-cta p { color: var(--muted); font-weight: 500; margin: 0 0 18px; max-width: 36rem; }
.end-cta .cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.end-cta .secondary-line {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.end-cta .secondary-line a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.end-cta.center { text-align: center; }
.end-cta.center p,
.end-cta.center h2 { margin-left: auto; margin-right: auto; }
.end-cta.center .cta-row { justify-content: center; }

.news {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--accent-softer);
  border: 1px solid var(--accent-soft);
  border-radius: 1.25rem;
  padding: 22px 24px;
}
.news p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.news strong { color: var(--heading); font-weight: 800; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.badge-live {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 3px 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-coming {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--track);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 20px 22px;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14, 18, 36, 0.1);
}
.gallery-card .path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.gallery-card h3 { margin: 0 0 6px; }
.gallery-card p { margin: 0; font-size: 13px; color: var(--muted); }

.workflow-group { margin-bottom: 20px; }
.workflow-group h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.trust-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  box-shadow: 0 2px 8px var(--shadow);
  font-weight: 500;
}
.pill b { color: var(--text); font-weight: 800; }

.coming-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-softer);
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 600;
}

footer.site-foot {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.foot-links a:hover { color: var(--text); }
.foot-tagline { margin: 0; font-weight: 500; max-width: 22rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-6, .gallery-grid, .steps-strip, .two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .steps-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps-strip { grid-template-columns: 1fr; }
  .props-table td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Tools interactive (skim-first product UI) —— */
.tools-page { max-width: 52rem; }
.tools-hero { padding: 1.25rem 0 0.5rem; }
.tools-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--heading);
  margin: 0.35rem 0 0.55rem;
  max-width: none;
}
.tools-hero .job-line {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.4;
}
.tools-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-softer);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

.tools-section { margin: 1.75rem 0; }
.tools-section h2 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  max-width: none;
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .chooser-grid { grid-template-columns: repeat(4, 1fr); }
}
.chooser-card {
  appearance: none;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: border-color .15s ease, transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  font: inherit;
  color: inherit;
}
.chooser-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}
.chooser-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(61, 79, 216, 0.18);
  background: linear-gradient(180deg, #fff 0%, var(--accent-softer) 100%);
}
.chooser-card .chooser-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.chooser-card .chooser-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.3;
  margin: 0;
}
.chooser-panels { margin-top: 12px; }
.chooser-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px var(--shadow);
}
.chooser-panel h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--heading);
}
.chooser-panel p { margin: 0 0 0.55rem; font-size: 14px; color: var(--muted); font-weight: 500; }
.chooser-panel p:last-child { margin-bottom: 0; }
.chooser-panel .fit-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.for-not-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .for-not-grid { grid-template-columns: 1fr; }
}
.for-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px var(--shadow);
}
.for-col h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.for-col.not h3 { color: var(--muted); }
.for-col ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
}
.for-col li { margin-bottom: 0.35rem; }
.for-col li::marker { color: var(--accent); }

.tools-acc {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  overflow: hidden;
}
.tools-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  color: var(--heading);
  cursor: pointer;
  text-align: left;
}
.tools-acc-btn .chev {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
  font-weight: 800;
  transition: transform .2s var(--ease-out);
}
.tools-acc-btn.is-open .chev { transform: rotate(90deg); }
.tools-acc-panel {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
}
.tools-acc-panel ul {
  margin: 12px 0 0;
  padding-left: 1.15rem;
  font-size: 13.5px;
  font-weight: 550;
}
.tools-acc-panel li { margin-bottom: 0.4rem; }
.tools-acc-panel .prose-lite {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.tools-acc-panel .prose-lite p { margin: 0 0 0.65rem; }
.tools-acc-panel .prose-lite h3 { font-size: 14px; margin: 0.8rem 0 0.35rem; color: var(--heading); }

.week-plan {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: weekstep;
}
.week-plan li {
  counter-increment: weekstep;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background .15s ease, border-color .15s ease;
}
.week-plan li.is-done {
  background: var(--accent-softer);
  border-color: var(--accent-soft);
}
.week-plan li.is-done .week-text { text-decoration: line-through; color: var(--muted); }
.week-plan .week-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-softer);
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.week-plan .week-num::before { content: counter(weekstep); }
.week-plan input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 auto;
}
.week-plan .week-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
}

.tools-cta-bar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  margin: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(14, 18, 36, 0.12);
}
.tools-cta-bar .cta-secondary {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tools-cta-bar .cta-secondary:hover { color: var(--text); }

/* Tools index interactive */
.tools-index-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 1.25rem;
}
.tools-search {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 2px 10px var(--shadow);
}
.tools-search:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.workflow-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wf-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.wf-chip:hover { color: var(--text); border-color: var(--accent-soft); }
.wf-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
a.tool-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform .2s var(--ease-out), border-color .15s ease, box-shadow .2s var(--ease-out);
}
a.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: 0 8px 24px rgba(61, 79, 216, 0.14);
}
.tool-card .meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.tool-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--heading);
  line-height: 1.25;
}
.tool-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 550;
  line-height: 1.4;
}
.tools-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

@media (max-width: 640px) {
  .chooser-grid { grid-template-columns: 1fr 1fr; }
  .tools-cta-bar { bottom: 8px; }
}


/* ===== Assessment quiz UI ===== */
.assess-hero { padding: 18px 0 8px; }
.assess-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--heading);
  max-width: 36rem;
}
.assess-hero .deck {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
  max-width: 32rem;
}
.quiz-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 22px 22px 20px;
  box-shadow: 0 8px 28px var(--shadow);
  max-width: 40rem;
  margin: 16px 0 28px;
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.quiz-progress .track {
  flex: 1;
  height: 8px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-mid));
  border-radius: 999px;
  transition: width .25s var(--ease-out);
}
.quiz-progress .label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
  min-width: 3.2rem;
  text-align: right;
}
.quiz-q {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 16px;
  line-height: 1.3;
}
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 1rem;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
  transition: border-color .15s ease, background .15s ease, transform .15s var(--ease-out);
}
.quiz-opt:hover {
  border-color: var(--accent-soft);
  background: var(--accent-softer);
}
.quiz-opt.is-selected {
  border-color: var(--accent);
  background: var(--accent-softer);
  color: var(--heading);
  box-shadow: 0 0 0 1px var(--accent);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.quiz-nav .btn { min-width: 7.5rem; }
.quiz-nav .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.results-shell { display: none; max-width: 44rem; margin: 8px 0 36px; }
.results-shell.is-on { display: block; }
.score-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 22px;
  box-shadow: 0 8px 28px var(--shadow);
  margin-bottom: 16px;
}
.score-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--pct, 0%), var(--track) 0);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--white);
  border-radius: 50%;
}
.score-ring .inner {
  position: relative; z-index: 1; text-align: center;
}
.score-ring .grade {
  font-size: 1.85rem; font-weight: 900; letter-spacing: -0.04em; color: var(--heading); line-height: 1;
}
.score-ring .pct {
  font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px;
}
.score-blurb h2 { font-size: 1.35rem; margin: 0 0 6px; }
.score-blurb p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.dim-list { display: grid; gap: 10px; margin: 0 0 18px; }
.dim-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 12px 14px;
  box-shadow: 0 2px 10px var(--shadow);
}
.dim-row .top {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 800; color: var(--heading); margin-bottom: 8px;
}
.dim-row .top span { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dim-bar { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.dim-bar i {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .4s var(--ease-out);
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.road-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 16px;
  box-shadow: 0 4px 16px var(--shadow);
}
.road-card .pri {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.road-card h3 { font-size: 1rem; margin: 0 0 6px; }
.road-card p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.share-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px var(--shadow);
}
.share-box label {
  display: block; font-size: 12px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px;
}
.share-box textarea {
  width: 100%; min-height: 88px; resize: vertical;
  border: 1px solid var(--line); border-radius: 0.75rem;
  padding: 10px 12px; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--bg);
}
.share-box .share-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.why-block { margin: 0 0 16px; }
.why-block details {
  background: var(--accent-softer);
  border-radius: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--accent-soft);
}
.why-block summary {
  cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--accent-dark);
}
.why-block p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.chooser-mini { padding: 12px 0 0; }
.chooser-mini .grid-4 { gap: 12px; }
.chooser-mini .card { padding: 16px; }
.chooser-mini .card h3 { font-size: 1rem; }
.chooser-mini .card p { font-size: 12.5px; }
.card.is-disabled, a.card.is-disabled {
  pointer-events: none; opacity: 0.65; cursor: default;
}
@media (max-width: 900px) {
  .roadmap-grid { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 1fr; justify-items: start; }
}

/* —— Tool product page (gold: client-reporting) —— */
.tp { max-width: 44rem; padding-bottom: 3rem; }
.tp-hero { padding: 2.5rem 0 1.5rem; }
.tp-chip {
  display: inline-flex; align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-softer);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 6px 12px;
}
.tp-hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  font-weight: 900; letter-spacing: -0.045em; line-height: 1.02;
  color: var(--heading); margin: 1rem 0 0.75rem; max-width: none;
}
.tp-lede {
  margin: 0 0 0.85rem; font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 750; color: var(--heading); letter-spacing: -0.02em; line-height: 1.25;
  max-width: 28rem;
}
.tp-sub {
  margin: 0 0 1.75rem; font-size: 1.05rem; font-weight: 500;
  color: var(--muted); max-width: 32rem; line-height: 1.5;
}
.tp-cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.tp-block { margin: 2.75rem 0; }
.tp-h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 850; letter-spacing: -0.03em; color: var(--heading);
  margin: 0 0 0.4rem; max-width: none; text-transform: none;
}
.tp-hint { margin: 0 0 1.1rem; font-size: 0.95rem; color: var(--muted); font-weight: 500; }

.tp-seg {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 6px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 12px var(--shadow); margin-bottom: 14px;
}
.tp-seg-btn {
  appearance: none; flex: 1 1 140px; border: 0; background: transparent;
  border-radius: 10px; padding: 12px 14px; font: inherit;
  font-size: 13.5px; font-weight: 750; color: var(--muted);
  cursor: pointer; text-align: center; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tp-seg-btn:hover { color: var(--heading); background: var(--accent-softer); }
.tp-seg-btn.is-active {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(61, 79, 216, 0.28);
}

.tp-path {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 1.15rem; padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 12px 40px rgba(45, 55, 120, 0.1);
  min-height: 12rem;
}
.tp-path-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.55rem;
}
.tp-path-title {
  margin: 0 0 0.65rem; font-size: 1.25rem; font-weight: 850;
  letter-spacing: -0.025em; color: var(--heading); line-height: 1.25;
}
.tp-path-body {
  margin: 0 0 1.15rem; font-size: 0.98rem; font-weight: 500;
  color: var(--muted); line-height: 1.5; max-width: 36rem;
}
.tp-path-steps {
  margin: 0; padding: 0; list-style: none; counter-reset: tpstep;
  display: flex; flex-direction: column; gap: 10px;
}
.tp-path-steps li {
  counter-increment: tpstep; display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem; font-weight: 650; color: var(--heading); line-height: 1.4;
}
.tp-path-steps li::before {
  content: counter(tpstep);
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-softer); color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

.tp-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1rem;
}
@media (max-width: 640px) { .tp-split { grid-template-columns: 1fr; } }
.tp-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 1.05rem;
  padding: 1.2rem 1.25rem; box-shadow: 0 2px 12px var(--shadow);
}
.tp-panel-mute { background: #f7f8fc; }
.tp-panel h3 {
  margin: 0 0 0.85rem; font-size: 12px; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent-dark);
}
.tp-panel-mute h3 { color: var(--muted); }
.tp-panel ul { margin: 0; padding-left: 1.1rem; }
.tp-panel li {
  margin-bottom: 0.45rem; font-size: 0.95rem; font-weight: 550; color: var(--text);
}
.tp-panel li::marker { color: var(--accent); }
.tp-panel-mute li::marker { color: var(--muted); }

.tp-week {
  list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
}
.tp-week li { margin: 0; }
.tp-week label {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 1rem;
  padding: 14px 16px; cursor: pointer; box-shadow: 0 2px 10px var(--shadow);
  transition: border-color .15s ease, background .15s ease;
}
.tp-week label:hover { border-color: var(--accent-soft); }
.tp-week li.is-done label {
  background: var(--accent-softer); border-color: var(--accent-soft);
}
.tp-week li.is-done .tp-week-t { text-decoration: line-through; color: var(--muted); }
.tp-week input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent);
  flex: 0 0 auto; cursor: pointer;
}
.tp-week-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-softer); color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.tp-week-t {
  flex: 1; font-size: 0.98rem; font-weight: 650; color: var(--heading); line-height: 1.4; padding-top: 3px;
}

.tp-details {
  background: var(--white); border: 1px solid var(--line); border-radius: 1rem;
  padding: 0; box-shadow: 0 2px 10px var(--shadow); overflow: hidden;
}
.tp-details summary {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem;
  font-weight: 800; font-size: 0.98rem; color: var(--heading);
  display: flex; align-items: center; justify-content: space-between;
}
.tp-details summary::-webkit-details-marker { display: none; }
.tp-details summary::after {
  content: "›"; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent); font-weight: 800; transition: transform .2s var(--ease-out);
}
.tp-details[open] summary::after { transform: rotate(90deg); }
.tp-details[open] summary { border-bottom: 1px solid var(--line); }
.tp-details ul {
  margin: 0; padding: 0.9rem 1.2rem 1.1rem 2.2rem;
  font-size: 0.92rem; font-weight: 550; color: var(--text);
}
.tp-details li { margin-bottom: 0.4rem; }

.tp-final {
  margin: 3rem 0 1rem; padding: 2rem 1.6rem;
  background: linear-gradient(180deg, #fff 0%, var(--accent-softer) 100%);
  border: 1px solid var(--accent-soft); border-radius: 1.25rem;
  box-shadow: 0 16px 48px rgba(45, 55, 120, 0.12); text-align: left;
}
.tp-final h2 {
  margin: 0 0 0.45rem; font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 850; letter-spacing: -0.03em; color: var(--heading); max-width: none;
}
.tp-final p { margin: 0 0 1.25rem; color: var(--muted); font-weight: 500; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .tp-seg-btn, .tp-path { transition: none !important; }
}

.tp-path.is-swap { animation: tpFade .35s var(--ease-out); }
@keyframes tpFade {
  from { opacity: 0.55; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== Tool wizard (Peerlab-style interactive utility) ===== */
.wiz-page { min-height: 100vh; }
.wiz-wrap { padding-bottom: 2.5rem; }
.wiz {
  max-width: 40rem;
  margin: 0 auto;
  min-height: min(70vh, 640px);
  display: flex;
  flex-direction: column;
}
.wiz-top { margin: 0 0 1.25rem; }
.wiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wiz-track {
  flex: 1;
  height: 8px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}
.wiz-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-mid));
  border-radius: 999px;
  transition: width 0.28s var(--ease-out);
}
.wiz-dots { display: flex; gap: 6px; }
.wiz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--track);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.wiz-dot.is-current { background: var(--accent); transform: scale(1.25); }
.wiz-dot.is-done { background: var(--accent-mid); }
.wiz-step-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 800; color: var(--accent-dark);
  min-width: 3.2rem; text-align: right;
}

.wiz-screen {
  flex: 1;
  display: none;
  flex-direction: column;
  animation: none;
}
.wiz-screen.is-on { display: flex; }
.wiz-screen.is-enter { animation: wizIn 0.28s var(--ease-out); }
@keyframes wizIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wiz-splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 0 3rem;
  gap: 0;
}
.wiz-splash .tp-chip { margin-bottom: 1rem; }
.wiz-splash h1 {
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--heading);
  margin: 0 0 0.85rem;
  max-width: none;
}
.wiz-pain {
  margin: 0 0 2rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.wiz-start {
  min-width: 10rem;
  min-height: 52px;
  font-size: 1.05rem;
  padding: 16px 28px;
}

.wiz-q {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 0.5rem 0 1.25rem;
  line-height: 1.2;
  max-width: none;
}
.wiz-mini {
  margin: -0.5rem 0 1.1rem;
  font-size: 1rem;
  font-weight: 550;
  color: var(--muted);
}

.wiz-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.wiz-cards-2 { grid-template-columns: 1fr; }
@media (min-width: 520px) {
  .wiz-cards:not(.wiz-cards-2) { grid-template-columns: 1fr; }
}

.wiz-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  padding: 18px 20px;
  min-height: 72px;
  cursor: pointer;
  color: var(--heading);
  font: inherit;
  box-shadow: 0 4px 18px var(--shadow);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  position: relative;
}
.wiz-card:hover {
  border-color: var(--accent-soft);
  background: var(--accent-softer);
  transform: translateY(-1px);
}
.wiz-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-softer);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 28px rgba(61, 79, 216, 0.18);
}
.wiz-card.is-selected::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.wiz-card-ico {
  width: 40px; height: 40px; flex: 0 0 auto;
  color: var(--accent);
}
.wiz-card.is-selected .wiz-card-ico { color: var(--accent-dark); }
.wiz-card-t {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 28px;
}
.wiz-card-sm {
  min-height: 56px;
  justify-content: center;
  text-align: center;
}
.wiz-card-sm .wiz-card-t { padding-right: 0; }
.wiz-card-sm.is-selected::after { display: none; }
.wiz-card-sm.is-selected .wiz-card-t::after {
  content: " ✓";
  color: var(--accent);
}

.wiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}
.wiz-nav .btn { min-width: 7.5rem; }
.wiz-nav .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.wiz-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.wiz-plan-head .wiz-q { margin-bottom: 0.5rem; }

.tp-week-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tp-week-ring { width: 36px; height: 36px; }
.tp-week-ring-track { stroke: var(--track); }
.tp-week-ring-fill {
  stroke: var(--accent);
  transition: stroke-dashoffset 0.35s var(--ease-out);
}
.tp-week-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 800; color: var(--accent-dark);
}

.tp-week, .wiz-plan {
  list-style: none; margin: 0.75rem 0 1.25rem; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.tp-week li, .wiz-plan li { margin: 0; }
.tp-week label, .wiz-plan label {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 2px solid var(--line); border-radius: 1rem;
  padding: 14px 16px; cursor: pointer; box-shadow: 0 2px 10px var(--shadow);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out),
    transform 0.25s var(--ease-out);
  min-height: var(--tap);
}
.tp-week label:hover, .wiz-plan label:hover { border-color: var(--accent-soft); }
.tp-week li.is-done label, .wiz-plan li.is-done label {
  background: var(--accent-softer); border-color: var(--accent);
}
.tp-week li.is-done .tp-week-t, .wiz-plan li.is-done .tp-week-t {
  text-decoration: line-through; color: var(--muted);
}
.tp-week li.is-pop label, .wiz-plan li.is-pop label {
  animation: checkPop 0.35s var(--ease-out);
}
@keyframes checkPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.tp-check {
  position: relative;
  width: 22px; height: 22px;
  flex: 0 0 auto;
  margin-top: 3px;
}
.tp-check input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.tp-check-ui {
  display: block; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--line); background: var(--white);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}
.tp-check input:checked + .tp-check-ui {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
  transform: scale(1.08);
}
.tp-week-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-softer); color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.tp-week-t {
  flex: 1; font-size: 0.98rem; font-weight: 650; color: var(--heading);
  line-height: 1.4; padding-top: 3px;
}

.wiz-next {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 1rem 0 2rem;
}
.wiz-next .wiz-q { margin-bottom: 0.25rem; }
.wiz-cta-lg {
  min-height: 52px;
  font-size: 1.02rem;
  justify-content: center;
}

.tp-chip {
  display: inline-flex; align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-softer);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 6px 12px;
}


/* Expanded gold instrument (client reporting) */
.wiz-wide { max-width: 44rem; }
.wiz-lede {
  margin: -1.25rem 0 2rem;
  font-size: 1.02rem;
  font-weight: 550;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.5;
}
.wiz-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
  padding-right: 28px;
}
.wiz-card-body .wiz-card-t { padding-right: 0; }
.wiz-card-d {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.35;
}
.wiz-cards-grid {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .wiz-cards-grid { grid-template-columns: 1fr; }
}

.wiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.wiz-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--heading);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.wiz-chip:hover {
  border-color: var(--accent-soft);
  background: var(--accent-softer);
  transform: translateY(-1px);
}
.wiz-chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-softer);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(61, 79, 216, 0.16);
  color: var(--accent-dark);
}
.wiz-chip.is-selected .wiz-chip-t::after {
  content: " ✓";
  color: var(--accent);
}

.wiz-result {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 5rem;
}
.wiz-result-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0.25rem 0 1.25rem;
}
@media (max-width: 560px) {
  .wiz-result-kpis { grid-template-columns: 1fr; }
}
.wiz-kpi {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 4px 18px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 8.5rem;
}
.wiz-kpi-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.wiz-kpi-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--heading);
  line-height: 1.05;
}
.wiz-kpi-leak {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
}
.wiz-kpi-note {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.4;
}

.wiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0.5rem 0 1rem;
}
.wiz-tip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.15rem 1rem;
  margin: 0.25rem 0 1rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.wiz-tip summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--heading);
  padding: 0.85rem 0;
  list-style: none;
}
.wiz-tip summary::-webkit-details-marker { display: none; }
.wiz-tip summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 900;
}
.wiz-tip[open] summary::after { content: "–"; }
.wiz-tip p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.wiz-quiet {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--muted);
}

.wiz-sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.1rem;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(14, 18, 36, 0.16);
}
.wiz-sticky[hidden] { display: none !important; }
.btn-sm { padding: 10px 16px; font-size: 13px; min-height: 40px; }

.wiz-wrap { padding-bottom: 5.5rem; }

/* ===== Live instrument controls (client reporting gold) ===== */
.wiz-instrument.wiz-wide { max-width: 72rem; }
.wiz-complete-line {
  margin: 0.35rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.wiz-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 960px) {
  .wiz-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem;
  }
  .wiz-live {
    position: sticky;
    top: 1rem;
  }
}
.wiz-controls {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 10px 36px rgba(45, 55, 120, 0.08);
}
.wiz-controls .wiz-q { margin-bottom: 0.2rem; }
.wiz-control-block { margin: 1.35rem 0 0; }
.wiz-control-label {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--heading);
  max-width: none;
  text-transform: none;
}
.wiz-control-hint {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.wiz-nav-instrument { margin-top: 1.5rem; }

/* Chips polish */
.wiz-chips { gap: 8px; }
.wiz-chip {
  min-height: 44px;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.wiz-chip:active { transform: scale(0.98); }
.wiz-chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(61, 79, 216, 0.22);
}
.wiz-chip.is-selected .wiz-chip-t { color: #fff; }
.wiz-chip.is-selected .wiz-chip-t::after {
  content: " ✓";
  font-weight: 900;
  color: #fff;
}

/* Segmented path control */
.wiz-seg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--bg, #f4f5fb);
  border: 1px solid var(--line);
  border-radius: 16px;
}
@media (min-width: 560px) {
  .wiz-seg { grid-template-columns: repeat(3, 1fr); }
}
.wiz-seg-btn {
  appearance: none;
  border: 1.5px solid transparent;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 10px;
  min-height: 64px;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.wiz-seg-btn:hover { color: var(--heading); border-color: var(--accent-soft); }
.wiz-seg-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wiz-seg-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(61, 79, 216, 0.28);
}
.wiz-seg-t { font-size: 14px; font-weight: 850; letter-spacing: -0.01em; }
.wiz-seg-d { font-size: 11.5px; font-weight: 550; opacity: 0.85; }
.wiz-seg-btn.is-active .wiz-seg-d { opacity: 0.92; }

/* Sliders */
.wiz-slider { margin-top: 0.55rem; }
.wiz-slider-rail {
  position: relative;
  padding: 1.7rem 0 0.35rem;
}
.wiz-slider-bubble {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  background: var(--heading);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(14, 18, 36, 0.18);
  z-index: 2;
}
.wiz-slider-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--heading);
}
.wiz-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  outline: none;
  cursor: pointer;
  margin: 0;
}
.wiz-range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.wiz-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 14px rgba(61, 79, 216, 0.35);
  cursor: grab;
  transition: transform 0.15s var(--ease-out);
}
.wiz-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.08);
}
.wiz-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 14px rgba(61, 79, 216, 0.35);
  cursor: grab;
}
.wiz-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}
.wiz-slider-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Toggles */
.wiz-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiz-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg, #f4f5fb);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 52px;
}
.wiz-toggle-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}
.wiz-switch {
  appearance: none;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: var(--track, #d5d8e6);
  position: relative;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
  padding: 0;
}
.wiz-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wiz-switch.is-on,
.wiz-switch[aria-checked="true"] {
  background: var(--accent);
}
.wiz-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(14, 18, 36, 0.2);
  transition: transform 0.2s var(--ease-out);
}
.wiz-switch.is-on .wiz-switch-knob,
.wiz-switch[aria-checked="true"] .wiz-switch-knob {
  transform: translateX(20px);
}

/* Live results panel */
.wiz-live {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 14px 44px rgba(45, 55, 120, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.wiz-live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}
.wiz-live-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.wiz-live-hint {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
}
.wiz-live-kpis { margin: 0; }
.wiz-live .wiz-plan-head { margin-top: 0.15rem; }
.wiz-live .wiz-result-actions { margin-top: 0.25rem; }
.wiz-live .wiz-tip { margin-top: 0.15rem; }

@media (prefers-reduced-motion: reduce) {
  .wiz-chip, .wiz-seg-btn, .wiz-switch, .wiz-switch-knob, .wiz-range::-webkit-slider-thumb {
    transition: none !important;
  }
}

/* Assessment quiz radio-card polish */
.quiz-opt {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 14px 16px !important;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out),
    transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out) !important;
}
.quiz-opt-key {
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 800; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.quiz-opt.is-selected .quiz-opt-key {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.quiz-opt-label { flex: 1; text-align: left; }
.quiz-opt-check {
  flex: 0 0 auto; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: transparent; opacity: 0;
  transition: opacity 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.quiz-opt.is-selected .quiz-opt-check {
  opacity: 1; background: var(--accent); border-color: var(--accent); color: #fff;
}
.quiz-dots {
  display: flex; gap: 5px; flex-wrap: wrap; margin-left: 4px;
}
.quiz-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--track);
}
.quiz-dot.is-current { background: var(--accent); }
.quiz-dot.is-done { background: var(--accent-mid); }

.score-ring { position: relative; }
.score-ring-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.score-ring-track { stroke: var(--track); }
.score-ring-arc { stroke: var(--accent); }
.score-ring::before { display: none; } /* prefer SVG arc */
.score-ring {
  background: transparent !important;
}
.pri-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.pri-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  background: var(--accent-softer); color: var(--accent-dark);
}
.pri-badge.is-high { background: var(--accent); color: #fff; }
.pri-badge.is-med { background: var(--accent-soft); color: var(--accent-dark); }
.pri-badge.is-low { background: var(--track); color: var(--muted); }
.pri-dim {
  font-size: 11px; font-weight: 700; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.road-card, .dim-row {
  animation: wizIn 0.35s var(--ease-out) both;
  animation-delay: var(--stagger, 0ms);
}
.dim-bar i { transition: width 0.55s var(--ease-out) !important; }

/* Chooser filter chips */
.assess-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem;
}
.assess-chip {
  appearance: none; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 10px 14px; font-size: 13px; font-weight: 750;
  color: var(--muted); cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.assess-chip:hover { color: var(--heading); border-color: var(--accent-soft); }
.assess-chip.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.chooser-mini .card {
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.chooser-mini a.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: 0 10px 28px rgba(61, 79, 216, 0.14);
}
.chooser-mini a.card:active { transform: scale(0.99); }

@media (prefers-reduced-motion: reduce) {
  .wiz-screen.is-enter, .road-card, .dim-row, .tp-week li.is-pop label, .wiz-plan li.is-pop label {
    animation: none !important;
  }
  .wiz-fill, .wiz-card, .wiz-chip, .tp-week-ring-fill, .quiz-opt, .dim-bar i, .score-ring-arc {
    transition: none !important;
  }
}


/* ===== Tools index Peerlab-style chips ===== */
.tools-featured { margin-top: 8px; margin-bottom: 28px; }
.tools-section-head { margin: 8px 0 14px; }
.tools-section-head-more { margin-top: 28px; }
.tools-h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.tools-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
}
.tool-card-grid-featured {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tool-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--track);
  color: var(--muted);
}
.tool-chip-interactive {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-dark);
}
.tool-chip-coming {
  background: transparent;
  color: var(--muted);
}
a.tool-card.is-interactive {
  border-color: rgba(61, 79, 216, 0.28);
}
a.tool-card .meta { display: none; }

/* ===== Hub directory: resources / trends / community (additive) ===== */
.hub-dir-hero .deck { max-width: 36rem; }
.hub-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
a.hub-pillar,
.hub-pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 2px 10px var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease-out), border-color .15s ease, box-shadow .2s var(--ease-out);
  min-height: 100%;
}
a.hub-pillar:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: 0 10px 28px rgba(14, 18, 36, 0.1);
}
.hub-pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hub-pillar h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.hub-pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 550;
  flex: 1;
}
.hub-pillar .hub-pillar-go {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1rem;
}
.hub-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: var(--tap);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.hub-filter:hover { color: var(--text); border-color: var(--accent-soft); }
.hub-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.hub-section.is-hidden { display: none; }
.hub-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* Trends brief card layout */
.brief-page article { max-width: 44rem; }
.brief-skim {
  display: grid;
  gap: 10px;
  margin: 0 0 1.25rem;
}
.brief-skim-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px var(--shadow);
}
.brief-skim-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-softer);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brief-skim-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: 2px;
}
.brief-skim-item span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 550;
}
.brief-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1rem;
}
.brief-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 4px 16px var(--shadow);
  margin: 0 0 1.25rem;
}
.brief-panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.brief-panel .brief-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 550;
}
.brief-takeaways {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.brief-takeaways li {
  background: var(--accent-softer);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
}
.brief-takeaways li::before {
  content: none;
}
.brief-poll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brief-poll-btn {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: var(--tap);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s var(--ease-out);
}
.brief-poll-btn:hover { border-color: var(--accent-soft); }
.brief-poll-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent-softer);
  color: var(--accent-dark);
}
.brief-poll-result {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  min-height: 1.2em;
}
.brief-notes {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.brief-notes summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--heading);
  list-style: none;
}
.brief-notes summary::-webkit-details-marker { display: none; }
.brief-notes[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--accent-softer);
}
.brief-notes .prose {
  padding: 14px 16px 16px;
  max-width: none;
  margin: 0;
}
.trend-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
a.trend-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease-out), border-color .15s ease, box-shadow .2s var(--ease-out);
}
a.trend-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: 0 10px 28px rgba(14, 18, 36, 0.1);
}
a.trend-card.is-interactive {
  border-color: rgba(61, 79, 216, 0.28);
}
a.trend-card.is-hidden { display: none; }
a.trend-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--heading);
}
a.trend-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 550;
  flex: 1;
}
.trend-featured {
  margin-bottom: 1.75rem;
}

/* Community hub */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
a.channel-card,
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease-out), border-color .15s ease;
  min-height: 100%;
}
a.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}
.channel-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 850;
  color: var(--heading);
}
.channel-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 550;
  flex: 1;
}
.charter-builder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px var(--shadow);
}
.charter-builder h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 850;
}
.charter-builder .brief-hint { margin-bottom: 14px; }
.norm-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}
.norm-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.norm-row span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
}
.norm-toggle {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: var(--track);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s var(--ease-out);
}
.norm-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(14, 18, 36, 0.2);
  transition: transform .2s var(--ease-out);
}
.norm-toggle.is-on {
  background: var(--accent);
}
.norm-toggle.is-on::after {
  transform: translateX(20px);
}
.charter-preview {
  border: 1px dashed var(--accent-soft);
  border-radius: 12px;
  padding: 14px;
  background: var(--accent-softer);
  margin-bottom: 12px;
  white-space: pre-wrap;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--heading);
  line-height: 1.5;
  min-height: 8rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.charter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.charter-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 640px) {
  .brief-skim-item { grid-template-columns: 1fr; }
  .norm-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  a.hub-pillar, a.trend-card, a.channel-card, .brief-poll-btn, .norm-toggle::after {
    transition: none;
  }
}

/* ===== Hacks instruments (additive; reuses wiz-*) ===== */
.hack-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 12px 14px;
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.hack-timer-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--heading);
  min-width: 4.5rem;
  tabular-nums: true;
  font-variant-numeric: tabular-nums;
}
.hack-timer.is-low .hack-timer-clock { color: var(--accent-dark); }
.hack-timer.is-done .hack-timer-clock { color: var(--muted); }
.hack-timer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.hack-timer-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wiz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 1rem;
}
.wiz-field-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--heading);
}
.wiz-field-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: -2px 0 2px;
}
.wiz-input,
.wiz-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg, #f4f5fb);
  color: var(--heading);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  min-height: 44px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.wiz-textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}
.wiz-input:focus,
.wiz-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
.wiz-output {
  white-space: pre-wrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--heading);
  background: var(--bg, #f4f5fb);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  min-height: 10rem;
  margin: 0 0 1rem;
}
.wiz-output.is-empty {
  color: var(--muted);
  font-style: normal;
}
.hack-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
a.card.is-interactive {
  border-color: rgba(61, 79, 216, 0.28);
}
a.card .tool-chip { pointer-events: none; }
.hacks-featured {
  margin-bottom: 2rem;
}
.hacks-section-head {
  margin: 0 0 1rem;
}
.hacks-section-head .tools-h2 { margin: 0 0 0.35rem; }

/* ===== Template instruments (wave 1 fill-in) ===== */
.tpl-instrument .tpl-input,
.tpl-instrument .tpl-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.tpl-instrument .tpl-textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}
.tpl-instrument .tpl-input:focus,
.tpl-instrument .tpl-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tpl-instrument .tpl-input::placeholder,
.tpl-instrument .tpl-textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.tpl-preview {
  margin: 0.85rem 0 0;
  padding: 1rem 1.05rem;
  background: var(--bg, #f4f5fb);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: min(62vh, 36rem);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.tpl-preview code {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
}
.tpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.tpl-live .wiz-live-head { margin-bottom: 0.15rem; }

.card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 0.35rem;
}
.card .meta-row .meta { margin: 0; }
a.card.is-interactive {
  border-color: rgba(61, 79, 216, 0.28);
}


/* ===== Assessment quiz: splash, slider, toggle, sticky ===== */
.quiz-page { padding-bottom: 2rem; }
body.is-quiz-on { padding-bottom: 5.5rem; }

.quiz-splash {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.25rem 0 3rem;
  max-width: 40rem;
  min-height: 52vh;
}
.quiz-splash[hidden] { display: none !important; }
.quiz-splash .tp-chip { margin-bottom: 1rem; }
.quiz-splash h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--heading);
  margin: 0 0 0.85rem;
  max-width: none;
}
.quiz-splash-pain {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.quiz-splash-lede {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 32rem;
  line-height: 1.5;
}
.quiz-splash .wiz-start {
  min-width: 10rem;
  min-height: 52px;
  font-size: 1.05rem;
  padding: 16px 28px;
}

.quiz-q.is-pop {
  animation: wizIn 0.28s var(--ease-out) both;
}

.quiz-shell[hidden] { display: none !important; }
.quiz-opts.is-slider,
.quiz-opts.is-toggle { gap: 14px; }

.quiz-slider { margin-top: 0.25rem; }
.quiz-slider.is-untouched .quiz-slider-bubble {
  background: var(--muted);
}
.quiz-slider-ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 0.85rem;
}
.quiz-tick {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 8px;
  min-height: var(--tap);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.quiz-tick:hover { color: var(--heading); border-color: var(--accent-soft); }
.quiz-tick.is-on {
  background: var(--accent-softer);
  border-color: var(--accent);
  color: var(--heading);
  box-shadow: 0 0 0 1px var(--accent);
}
.quiz-tick:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.quiz-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 64px;
}
.quiz-toggle-side {
  appearance: none;
  flex: 1;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  min-height: var(--tap);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}
.quiz-toggle-side:hover { color: var(--heading); border-color: var(--accent-soft); }
.quiz-toggle-side.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quiz-switch { flex: 0 0 auto; }
.quiz-toggle-hint {
  margin: 0;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
body.is-quiz-on .quiz-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.1rem;
  z-index: 40;
  margin: 0;
  padding: 8px;
  width: max-content;
  max-width: calc(100% - 2rem);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(14, 18, 36, 0.16);
  justify-content: center;
}
.quiz-sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.1rem;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(14, 18, 36, 0.16);
}
.quiz-sticky[hidden] { display: none !important; }
.quiz-sticky .btn { min-width: 7.5rem; }

.results-shell {
  animation: wizIn 0.35s var(--ease-out) both;
}
.results-shell[hidden] { display: none !important; }

.assess-hero { padding: 18px 0 4px; }
.assess-hero .tp-chip { margin-bottom: 0.85rem; }
.assess-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  max-width: 22rem;
}
.assess-hero .deck { max-width: 28rem; }
.assess-count {
  margin: 0 0 1rem;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.chooser-mini .grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.chooser-mini .card h3 { margin-top: 2px; }
.chooser-mini .card .tool-card-chips { margin-bottom: 10px; }
.chooser-mini a.card.is-interactive {
  border-color: rgba(61, 79, 216, 0.28);
}

@media (max-width: 1100px) {
  .chooser-mini .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .chooser-mini .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .quiz-slider-ticks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .chooser-mini .grid-4 { grid-template-columns: 1fr; }
  .quiz-toggle { flex-wrap: wrap; justify-content: center; }
  .quiz-toggle-side { flex: 1 1 40%; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-q.is-pop, .results-shell { animation: none !important; }
  .quiz-tick, .quiz-toggle-side, .quiz-switch, .wiz-switch-knob {
    transition: none !important;
  }
}
