/* Bean — UI theme.
   Layout: a frame holds an icon rail on the left and a rounded canvas on the right.
   White cards on a soft grey canvas (light, the default) or charcoal cards (dark).
   Palette: purple leads; lavender for comparisons, lime and cyan as accents; coral only for gaps. */
:root {
  --frame: #e6e6ea;
  --canvas: #f0f0f3;
  --card: #ffffff;
  --inner: #f5f5f8;
  --ink: #16161a;
  --muted: #84848f;
  --line: #eaeaef;
  --track: #eeeef3;
  --violet: #7a5af8;
  --violet-soft: rgba(122, 90, 248, .10);
  --lav: #c9bdff;
  --accent: #f5a524;        /* warm amber: the accent next to purple */
  --accent-ink: #9a5b00;
  --cyan: #16a3e0;
  --yellow: #f5a524;        /* "partial" / medium scores: amber */
  --green: #6c4ef2;         /* "implemented" / good scores: deep purple */
  --coral: #f2555c;
  --na: #d9d9e0;
  --hatch: rgba(22, 22, 26, .10);
  --strong: #16161a;
  --on-strong: #ffffff;
  --rail-ink: #8a8a94;
  --rail-on: #16161a;
  --rail-hover: rgba(22, 22, 26, .06);
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 10px 28px rgba(20, 20, 30, .05);
  --pop: 0 18px 40px rgba(20, 20, 30, .12);

  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r-card: 24px;
  --r: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --frame: #0b0b0e; --canvas: #131316; --card: #1b1b20; --inner: #24242a; --ink: #f3f3f6; --muted: #9b9ba7;
  --line: #2a2a31; --track: #2c2c34; --violet: #9277ff; --violet-soft: rgba(146, 119, 255, .17); --lav: #6b5bb8;
  --accent: #ffb547; --accent-ink: #ffb547; --cyan: #38bdf8; --yellow: #ffb547; --green: #a48bff; --coral: #ff6b70; --na: #44444d;
  --hatch: rgba(255, 255, 255, .08); --strong: #f3f3f6; --on-strong: #111114; --rail-ink: #8c8c99; --rail-on: #ffffff;
  --rail-hover: rgba(255, 255, 255, .06); --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; --pop: 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--frame); color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--frame); }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
a { color: var(--violet); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small, small { font-size: 12.5px; }
.coral { color: var(--coral); }
.warn-text { color: var(--yellow); }
.center-text { text-align: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.center-row { justify-content: center; }

/* ---- Frame ------------------------------------------------------------ */
.frame { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 34px;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 0 calc(26px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
}
.logo { width: 46px; height: 46px; display: grid; place-items: center; text-decoration: none; color: #fff; font-weight: 700; font-size: 26px; line-height: 1; }
.rail-links { display: grid; gap: 14px; }
.rail-bottom { margin-top: auto; display: grid; gap: 10px; }
.rail-link {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  color: var(--rail-ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.rail-link .ico { width: 24px; height: 24px; }
.rail-link:hover { color: var(--rail-on); background: var(--rail-hover); }
.rail-link[aria-current="page"] { color: var(--rail-on); }
.rail-link[aria-current="page"]::before {
  content: ""; position: absolute; left: -22px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--violet);
}
.lang-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; border: 1.5px solid currentColor; border-radius: 7px; padding: 2px 5px; }
.canvas {
  background: var(--canvas); min-width: 0;
  margin: 12px 12px 12px 0; border-radius: 36px; min-height: calc(100vh - 24px);
}
.canvas-inner {
  max-width: 1360px; margin: 0 auto; display: grid; gap: 22px; min-width: 0;
  padding-block: 34px 48px; padding-left: 38px; padding-right: max(38px, env(safe-area-inset-right, 0px));
}
.view-question .canvas-inner { max-width: 1240px; }
.view-profile .canvas-inner { max-width: 980px; }

/* ---- Header ------------------------------------------------------------ */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hello { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--violet-soft); color: var(--violet); font-weight: 700; font-size: 19px; border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--violet-soft);
}
.hello h1 { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem); font-weight: 700; letter-spacing: -.01em; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.round {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--strong); color: var(--on-strong); position: relative;
}
.round:not(.plain)::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--canvas); }
.tag { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--inner); color: var(--muted); white-space: nowrap; }

/* ---- Buttons & pills --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r);
  border: 0; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 14px; background: var(--inner); color: var(--ink);
}
.btn .ico { width: 18px; height: 18px; }
.btn.dark { background: var(--strong); color: var(--on-strong); }
.btn.yellow { background: var(--accent); color: #16161a; padding-inline: 40px; }
.btn.soft { background: var(--inner); color: var(--ink); }
.btn.outline { background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; }
.btn.ghost { background: none; color: var(--violet); padding-inline: 8px; }
.btn.danger { color: var(--coral); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn.lg { padding: 15px 28px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn:hover { filter: brightness(1.06); }
.btn.dark:hover { filter: brightness(1.15); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--inner); color: var(--muted); white-space: nowrap; }
.pill .ico { width: 14px; height: 14px; }
.pill.coral { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); }
.pill.yellow { background: color-mix(in srgb, var(--yellow) 20%, transparent); color: color-mix(in srgb, var(--yellow) 60%, var(--ink)); }
.pill.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: var(--inner); color: var(--muted); white-space: nowrap; }
.chip.law { color: var(--violet); background: var(--violet-soft); }
.qid { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.qid:hover { color: var(--violet); }

/* ---- Cards ------------------------------------------------------------- */
.card { background: var(--card); border-radius: var(--r-card); padding: 24px; min-width: 0; box-shadow: var(--shadow); }
.card-title { text-align: center; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head h2 { font-size: 17px; font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend.center { justify-content: center; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.dot-v { background: var(--violet); } .dot-y { background: var(--yellow); }

/* ---- Dashboard grid ---------------------------------------------------- */
.dash {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.32fr);
  grid-template-areas: "iso iso iso topics" "dist dist dist topics";
}
.c-trend { grid-area: trend; } .c-score { grid-area: score; } .c-dist { grid-area: dist; }
.c-topics { grid-area: topics; display: flex; flex-direction: column; gap: 16px; }
.c-topics .card-title { margin-bottom: 0; }
.c-iso { grid-area: iso; display: grid; gap: 22px; align-content: start; }
.c-iso .card-title { margin-bottom: 0; }
.c-score, .c-dist, .c-trend { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.c-score .card-title, .c-dist .card-title, .c-trend .card-title { margin-bottom: 0; }
@media (max-width: 1320px) {
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "iso" "dist" "topics"; }
}
@media (max-width: 760px) {
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dist" "topics" "iso"; }
}
.dash2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .dash2 { grid-template-columns: minmax(0, 1fr); } }
.dash2.solo { grid-template-columns: minmax(0, 1fr); }

/* trend line */
.fline { width: 100%; height: auto; display: block; }
.gridline { stroke: var(--line); stroke-width: 1; }
.fl-area { fill: var(--violet-soft); }
.fl-adj { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; }
.fl-decl { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; }
.fl-drop { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.fl-dot { fill: var(--card); stroke: var(--violet); stroke-width: 3; }
.bubble { fill: var(--strong); }
.bubble-text { fill: var(--on-strong); font-family: var(--font); font-weight: 600; font-size: 12px; }
.axis { fill: var(--muted); font-family: var(--font); font-size: 10.5px; }

/* overall donut */
.donut { position: relative; width: 168px; height: 168px; }
.donut svg { display: block; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.donut-center b { font-size: 46px; font-weight: 700; letter-spacing: -.02em; }
.donut-center span { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* level bars */
.lbars { display: flex; justify-content: center; gap: 18px; height: 168px; align-items: stretch; width: 100%; }
.lbar { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 3px; min-width: 0; }
.lbar-track { width: 8px; border-radius: 4px; background: var(--track); display: flex; align-items: flex-end; overflow: hidden; }
.lbar-fill { width: 100%; border-radius: 4px; display: block; }
.lbar-fill.v { background: var(--violet); } .lbar-fill.y { background: var(--yellow); }
.lbar b { font-size: 13px; font-weight: 600; line-height: 1.2; }
.lbar small { color: var(--muted); font-size: 11px; line-height: 1; }

/* topics card */
.rating-box { background: var(--inner); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.grade {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  font-size: 28px; font-weight: 700; color: #17171c;
}
.grade-A, .grade-B { background: var(--green); }
.grade-C { background: var(--yellow); }
.grade-D, .grade-E { background: var(--coral); }
.rating-box b { font-weight: 600; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.stats3 > div { display: grid; justify-items: center; text-align: center; }
.stats3 > div + div { border-left: 1px solid var(--line); }
.stats3 b { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stats3 span { font-size: 12.5px; color: var(--muted); }
.topic-list { display: grid; gap: 6px; }
.topic-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 50px; gap: 14px; align-items: center; padding: 6px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.topic-row:hover { background: var(--inner); }
.tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--inner); color: var(--ink); flex: none; }
.topic-row:hover .tile { background: var(--card); }
.tile.lg { width: 54px; height: 54px; border-radius: 16px; background: var(--violet-soft); color: var(--violet); }
.topic-txt { display: grid; min-width: 0; }
.topic-txt b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring { display: block; flex: none; }
.ring-text { fill: var(--ink); font-family: var(--font); font-size: 11px; font-weight: 600; }
.c-topics .btn.wide { margin-top: auto; }

/* ISO panel */
.iso-panel { background: var(--inner); border-radius: 22px; padding: 26px; display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 900px) { .iso-panel { grid-template-columns: minmax(0, 1fr); } }
.iso-left { display: grid; gap: 12px; justify-items: start; }
.mega { font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.iso-legend { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.iso-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.iso-legend b { color: var(--ink); font-weight: 600; margin-left: 2px; }
.matrix { display: flex; flex-wrap: wrap; gap: 18px 20px; align-items: flex-end; justify-content: center; }
.mgroup { display: grid; gap: 8px; justify-items: center; }
.mdots { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, 12px); grid-auto-columns: 12px; gap: 6px; }
.mdots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.mlabel { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.st-implemented { background: var(--green); }
.st-partial { background: var(--yellow); }
.st-gap { background: var(--coral); }
.st-na, .st-not_assessed { background: var(--na); }
.bignums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; padding-inline: 4px; }
@media (max-width: 900px) { .bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bignum { display: grid; gap: 2px; }
.bignum b { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.uline { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; margin-top: 8px; }
.uline span { display: block; height: 100%; border-radius: 2px; }

/* plan & law */
.plan { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 4px; }
.plan li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 10px 8px; border-radius: 16px; }
.plan li:hover { background: var(--inner); }
.rank { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--inner); }
.plan li:nth-child(-n+3) .rank { background: var(--strong); color: var(--on-strong); }
.plan-body { display: grid; gap: 3px; min-width: 0; }
.plan-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.law-list { display: grid; gap: 4px; margin: 14px 0; }
.law-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 10px 8px; border-radius: 16px; align-items: start; }
.law-row:hover { background: var(--inner); }
.art { font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: center; padding: 8px 4px; border-radius: 12px; color: #17171c; }
.art.st-partial { background: var(--yellow); }
.law-body { display: grid; gap: 4px; min-width: 0; }
.law-body .small { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- Profile ----------------------------------------------------------- */
.steps-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px;
  border: 1.5px solid var(--violet); border-radius: 18px; background: var(--card);
}
.steps-pill button {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 10px;
  border: 0; border-radius: 13px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 15px;
}
.steps-pill button.on { background: var(--violet-soft); color: var(--violet); }
.steps-pill .sep { color: var(--muted); width: 16px; height: 16px; }
.intro { display: grid; gap: 6px; }
.intro h2 { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 700; }
.divider { display: flex; align-items: center; gap: 16px; color: var(--violet); scroll-margin-top: 20px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { padding: 6px 16px; border-radius: 999px; background: var(--violet-soft); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; font-size: 13px; color: var(--muted); }
.input { width: 100%; padding: 13px 15px; border-radius: var(--r); border: 1.5px solid transparent; background: var(--inner); color: var(--ink); }
.input:focus { outline: none; border-color: var(--violet); }
textarea.input { min-height: 90px; resize: vertical; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.scope-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px; border: 1.5px solid transparent; }
.scope-card.is-on { border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.scope-card p { font-size: 14px; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 13px; background: var(--inner); }
.yn button { border: 0; border-radius: 9px; padding: 8px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.yn button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.yn button[data-val="1"][aria-pressed="true"] { background: var(--violet); color: #fff; }

/* ---- Question view ----------------------------------------------------- */
.stepper { display: flex; align-items: flex-start; justify-content: center; padding: 6px 0 4px; }
.step { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--muted); width: 96px; flex: none; }
.step-dot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--inner); color: var(--muted); border: 2px solid transparent;
}
.step-dot .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.step.done .step-dot { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.step.cur .step-dot { background: var(--violet); color: #fff; box-shadow: 0 0 0 4px var(--canvas), 0 0 0 6px var(--violet); }
.step.cur { color: var(--ink); }
.step-label { font-size: 12.5px; font-weight: 600; }
.step-line { flex: 1; height: 3px; border-radius: 2px; background: var(--track); margin-top: 21px; min-width: 16px; }
.step-line.on { background: var(--green); }
.topic-select { display: none; }
.qlayout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.qside { position: sticky; top: 20px; display: grid; gap: 16px; padding: 20px; }
.qside-head { display: flex; gap: 14px; align-items: center; }
.qside-head h2 { font-size: 17px; font-weight: 600; }
.progress { display: flex; align-items: center; gap: 12px; }
.pbar { flex: 1; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.pbar span { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.progress b { font-size: 13px; }
.qlist { display: grid; gap: 4px; max-height: calc(100vh - 300px); overflow-y: auto; margin-inline: -6px; padding-inline: 6px; }
.qrow { display: grid; grid-template-columns: 42px minmax(0, 1fr) 26px; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.qrow:hover { background: var(--inner); }
.qrow.cur { background: var(--inner); }
.qrow.off { opacity: .45; }
.qnum { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--inner); font-weight: 600; font-size: 14px; }
.qrow.cur .qnum, .qrow:hover .qnum { background: var(--card); }
.qrow-txt { display: grid; min-width: 0; line-height: 1.3; }
.qrow-txt small { color: var(--muted); font-size: 11.5px; }
.qrow-txt b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow.cur .qrow-txt b { font-weight: 600; }
.qs { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--track); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.qs .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.qs-done { background: var(--green); border-color: var(--green); color: #fff; }
.qs-warn { background: var(--yellow); border-color: var(--yellow); color: #17171c; }
.qs-cur { border-color: var(--violet); border-right-color: transparent; }
.qs-off { border-style: dashed; }
.qmain { display: grid; gap: 18px; padding: 28px; }
.qmeta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.weight { display: inline-flex; gap: 3px; margin: 0 6px 0 4px; }
.weight i { width: 7px; height: 7px; border-radius: 50%; background: var(--track); }
.weight i.on { background: var(--violet); }
.qtitle { font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); font-weight: 600; line-height: 1.4; max-width: 62ch; }
.opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .opts { grid-template-columns: minmax(0, 1fr); } }
.opt {
  display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border-radius: 18px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink); min-width: 0;
}
.opt:hover { border-color: color-mix(in srgb, var(--violet) 50%, var(--line)); }
.opt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--track); display: grid; place-items: center; }
.opt-lvl { font-size: 26px; font-weight: 700; line-height: 1; color: var(--muted); }
.opt b { font-weight: 600; font-size: 14.5px; }
.opt small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.opt[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 10px 24px var(--violet-soft); }
.opt[aria-pressed="true"] .radio { border-color: var(--violet); }
.opt[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.opt[aria-pressed="true"] .opt-lvl { color: var(--violet); }
.warn-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500;
  background: color-mix(in srgb, var(--yellow) 18%, transparent); color: color-mix(in srgb, var(--yellow) 55%, var(--ink));
}
.warn-pill .ico { width: 15px; height: 15px; flex: none; }
details.guide { background: var(--inner); border-radius: 16px; padding: 14px 18px; }
details.guide summary { cursor: pointer; font-weight: 600; color: var(--violet); }
details.guide p { margin-top: 8px; color: var(--muted); max-width: 72ch; }
.evidence { display: grid; gap: 8px; }
.ev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.ev-head b { font-weight: 600; }
.ev { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--inner); cursor: pointer; font-size: 14px; position: relative; }
.ev input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--track); display: grid; place-items: center; color: transparent; background: var(--card); }
.ev .box .ico { width: 15px; height: 15px; stroke-width: 3; }
.ev input:checked + .box { background: var(--violet); border-color: var(--violet); color: #fff; }
.ev input:focus-visible + .box { outline: 2px solid var(--violet); outline-offset: 2px; }
.qfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.qfoot .btn.dark { border-radius: 999px; padding-inline: 24px; }
.kbd { text-align: center; }
@media (max-width: 1100px) {
  .qlayout { grid-template-columns: minmax(0, 1fr); }
  .qside { position: static; }
  .qlist { max-height: none; grid-auto-flow: column; grid-auto-columns: 46px; overflow-x: auto; }
  .qrow { grid-template-columns: 42px; padding: 2px; }
  .qrow-txt, .qrow .qs { display: none; }
  .qrow.cur .qnum { background: var(--violet); color: #fff; }
  .kbd { display: none; }
}

/* ---- Misc -------------------------------------------------------------- */
.footer { font-size: 12px; color: var(--muted); max-width: 90ch; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  background: var(--strong); color: var(--on-strong); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 40;
}

/* ---- Phone: the rail becomes a bottom bar ------------------------------ */
@media (max-width: 760px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 20; background: var(--frame);
    flex-direction: row; justify-content: space-around; gap: 0;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }
  .logo { display: none; }
  .rail-links, .rail-bottom { display: flex; gap: 6px; margin: 0; }
  .rail-link[aria-current="page"]::before { left: 12px; right: 12px; top: auto; bottom: -8px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .canvas { margin: 0; border-radius: 0 0 28px 28px; min-height: 100vh; }
  .canvas-inner {
    padding-block: calc(20px + env(safe-area-inset-top, 0px)) 100px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .round { width: 44px; height: 44px; }
  .avatar { width: 48px; height: 48px; font-size: 16px; }
  .stepper { padding-inline: 6px; }
  .stepper .step { width: 38px; }
  .step-line { min-width: 6px; }
  .step-label { display: none; }
  .step-dot { width: 36px; height: 36px; font-size: 13px; }
  .step-line { margin-top: 17px; }
  .topic-select { display: block; }
  .qmain { padding: 20px; }
  .steps-pill button { font-size: 13px; padding: 10px 4px; }
  .steps-pill .sep { display: none; }
  .card { padding: 20px; border-radius: 22px; }
  .iso-panel { padding: 18px; }
  .mdots { grid-template-rows: repeat(6, 9px); grid-auto-columns: 9px; gap: 4px; }
  .mdots i { width: 9px; height: 9px; }
  .matrix { gap: 14px 12px; }
}

@media print {
  .rail, body::before, .btn, .round { display: none !important; }
  body, .canvas { background: #fff; color: #000; }
  .frame { display: block; }
  .card { box-shadow: none; break-inside: avoid; border: 1px solid #ddd; }
}
@media (prefers-reduced-motion: no-preference) {
  .opt, .btn, .rail-link, .topic-row, .qrow, .yn button { transition: background-color .15s ease, border-color .15s ease, filter .15s ease, box-shadow .15s ease; }
}

/* =========================================================================
   Improvement plan (tracker) and action detail
   ========================================================================= */
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.page-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-top h1 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.mono { font-family: var(--mono); }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 46px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); color: var(--muted); min-width: 0; flex: 1 1 260px; max-width: 320px;
}
.search input { border: 0; background: none; outline: none; width: 100%; color: var(--ink); }
.search:focus-within { box-shadow: 0 0 0 2px var(--violet); }
.btn.white { background: var(--card); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow); padding-inline: 20px; }
.btn.white:hover { box-shadow: 0 0 0 1.5px var(--violet); filter: none; }
.input.sm { padding: 8px 11px; font-size: 13.5px; border-radius: 10px; }

/* charts row */
.plan-charts { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 1050px) { .plan-charts { grid-template-columns: minmax(0, 1fr); } }
.dot-soft { background: color-mix(in srgb, var(--violet) 30%, var(--card)); }
.pbars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; height: 190px; margin-top: 14px; padding-top: 34px; }
.pb { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 8px; position: relative; min-width: 0; }
.pb-track { position: relative; width: min(46px, 70%); border-radius: 999px; background: var(--inner); overflow: hidden; }
.pb-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--violet) 32%, var(--card)); }
.pb-now { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--violet) 55%, var(--card)); }
.pb.hi .pb-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 75%, #fff), var(--violet)); }
.pb small { font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pb.hi small { color: var(--ink); font-weight: 600; }
.pb-tip {
  position: absolute; top: -34px; right: 0; white-space: nowrap; font-size: 12px; font-weight: 600;
  background: var(--card); color: var(--ink); padding: 5px 10px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.14); border: 1px solid var(--line);
}
.fn-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 10px; }
@media (max-width: 480px) { .fn-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; } .fn-legend { width: 100%; } }
.fdonut { position: relative; width: 150px; height: 150px; }
.fdonut svg { display: block; }
.donut-center b.sm { font-size: 24px; }
.fn-legend { display: grid; gap: 7px; font-size: 13.5px; }
.fn-legend div { display: grid; grid-template-columns: minmax(0, 1fr) 30px 40px; gap: 8px; align-items: center; }
.fn-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.fn-legend b, .fn-legend .muted { text-align: right; }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fpill {
  border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.fpill .num { color: var(--muted); font-weight: 500; margin-left: 4px; }
.fpill[aria-selected="true"] { background: var(--strong); color: var(--on-strong); }
.fpill[aria-selected="true"] .num { color: var(--on-strong); opacity: .7; }

/* insight banner */
.banner {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 16px; border-radius: 22px; color: #fff;
  background: radial-gradient(600px 160px at 40% 0%, rgba(160, 120, 255, .35), transparent 70%), linear-gradient(100deg, #1e1550, #3a2a8f 55%, #2a1d6e);
}
.banner-ico {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 200deg, #ff9ad5, #b69bff, #ffd479, #ff9ad5);
}
.banner-ico .ico { width: 22px; height: 22px; }
.banner > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.banner-eyebrow { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.banner p { font-weight: 500; }
.banner .btn.white { color: #1e1550; background: #fff; flex: none; }
@media (max-width: 600px) { .banner { flex-wrap: wrap; } }

/* action table */
.ptable { padding: 8px 0 10px; overflow: hidden; }
.phead, .prow {
  display: grid; grid-template-columns: minmax(0, 2.4fr) 120px 170px minmax(0, 1.2fr) 150px 64px; gap: 14px; align-items: center;
  padding-inline: 24px;
}
.phead { padding-block: 14px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pgroup { padding: 10px 24px; background: var(--inner); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.gdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.gdot.coral { background: var(--coral); } .gdot.yellow { background: var(--yellow); } .gdot.violet { background: var(--violet); } .gdot.green { background: var(--green); }
.prow { padding-block: 12px; border-top: 1px solid var(--line); }
.pgroup + .prow { border-top: 0; }
.prow:hover { background: color-mix(in srgb, var(--inner) 55%, transparent); }
.prow-main { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--ink); }
.prow-main:hover b { color: var(--violet); }
.tile.sm { width: 40px; height: 40px; border-radius: 12px; }
.tile.sm .ico { width: 18px; height: 18px; }
.prow-txt { display: grid; min-width: 0; line-height: 1.35; }
.prow-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc { min-width: 0; font-size: 13.5px; }
.pc-owner { display: flex; align-items: center; gap: 8px; }
.pc-owner span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-gain { font-weight: 600; text-align: right; color: var(--violet); }
.empty { padding: 24px; text-align: center; }
.spill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--inner); color: var(--muted); white-space: nowrap;
}
.spill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.spill.coral { background: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--coral); }
.spill.yellow { background: color-mix(in srgb, var(--yellow) 20%, transparent); color: color-mix(in srgb, var(--yellow) 55%, var(--ink)); }
.spill.violet { background: var(--violet-soft); color: var(--violet); }
.spill.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.spill-select {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; padding: 6px 30px 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background-color: var(--inner); color: var(--muted); max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.spill-select.violet { background-color: var(--violet-soft); color: var(--violet); }
.spill-select.coral { background-color: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--coral); }
.spill-select.yellow { background-color: color-mix(in srgb, var(--yellow) 20%, transparent); color: color-mix(in srgb, var(--yellow) 55%, var(--ink)); }
.spill-select option { color: var(--ink); background: var(--card); }
.mini-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--strong); color: var(--on-strong);
}
.mini-av.none { background: var(--inner); color: var(--muted); border: 1.5px dashed var(--track); }
.due { display: grid; gap: 6px; font-size: 13px; }
.due b { font-weight: 600; }
.due-bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; width: 100%; max-width: 140px; }
.due-bar span { display: block; height: 100%; border-radius: 2px; background: currentColor; }
.due.coral { color: var(--coral); } .due.yellow { color: color-mix(in srgb, var(--yellow) 65%, var(--ink)); } .due.violet { color: var(--violet); }
.due.done { color: var(--green); font-weight: 600; }
@media (max-width: 1100px) {
  .phead { display: none; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main gain" "prio status" "owner due"; row-gap: 10px; padding-block: 16px; }
  .prow-main { grid-area: main; } .pc-prio { grid-area: prio; } .pc-status { grid-area: status; justify-self: end; }
  .pc-owner { grid-area: owner; } .pc-due { grid-area: due; justify-self: end; } .pc-gain { grid-area: gain; }
  .due { justify-items: end; }
  .phead, .prow, .pgroup { padding-inline: 18px; }
}

/* overview compact plan list */
.next-list { display: grid; gap: 4px; }
.next-list.roomy { margin-top: 12px; }
.next-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.next-row:hover { background: var(--inner); }
.side-stack .next-row { grid-template-columns: 40px minmax(0, 1fr); }
.gain { color: var(--violet); font-weight: 600; min-width: 44px; text-align: right; }
@media (max-width: 520px) { .next-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .next-row .spill { display: none; } }

/* action detail */
.action-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .action-layout { grid-template-columns: minmax(0, 1fr); } }
.steps-card { display: grid; gap: 18px; padding: 28px; }
.steps-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.steps-head > div:nth-child(2) { display: grid; line-height: 1.35; }
.steps-head b { font-size: 16px; font-weight: 600; }
.steps-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--strong); color: var(--on-strong); }
.steps-ico .ico { width: 18px; height: 18px; }
.steps-prog { display: grid; gap: 6px; justify-items: end; }
.segs { display: flex; gap: 4px; }
.segs i { width: 22px; height: 5px; border-radius: 3px; background: var(--track); }
.segs i.on { background: var(--violet); }
.segs i.cur { background: var(--yellow); }
@media (max-width: 560px) { .steps-head { grid-template-columns: 40px minmax(0, 1fr); } .steps-prog { grid-column: 1 / -1; justify-items: start; } }
.q-full { color: var(--muted); font-size: 14px; max-width: 75ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--track); }
.timeline li.done::before { background: var(--violet); }
.timeline li:last-child::before { display: none; }
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  border: 2px solid var(--track); color: var(--muted); background: var(--card); position: relative; z-index: 1;
}
.tl-dot .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.timeline li.done .tl-dot { background: var(--violet); border-color: var(--violet); color: #fff; }
.timeline li.cur .tl-dot { border-color: var(--yellow); color: color-mix(in srgb, var(--yellow) 60%, var(--ink)); background: color-mix(in srgb, var(--yellow) 18%, var(--card)); }
.tl-body { display: grid; gap: 6px; min-width: 0; padding-top: 3px; }
.tl-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.tl-title b { font-weight: 500; font-size: 15px; }
.timeline li.todo .tl-title b { color: var(--muted); }
.since { font-size: 12.5px; font-weight: 600; color: color-mix(in srgb, var(--yellow) 60%, var(--ink)); }
.tl-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.tagchip { padding: 3px 10px; border-radius: 8px; background: var(--inner); font-size: 12px; font-weight: 500; color: var(--ink); }
.tl-box { margin-top: 6px; background: var(--violet-soft); border-radius: 18px; padding: 16px 18px; display: grid; gap: 12px; }
.tl-box p { font-size: 14px; }
.link { color: var(--violet); font-weight: 600; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }
.files { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.eyebrow-s { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.file-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.file { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); min-width: 0; }
.file > span:last-child { display: grid; min-width: 0; line-height: 1.35; }
.file b { font-weight: 600; font-size: 13.5px; }
.file small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: none; }
.file-ico .ico { width: 17px; height: 17px; }
.files .ico { width: 15px; height: 15px; vertical-align: -3px; }
.foot-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.foot-note .ico { width: 16px; height: 16px; }
.side-stack { display: grid; gap: 22px; }
.side-h { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.kv dt, .kv dd { padding: 11px 0; border-top: 1px solid var(--line); margin: 0; display: flex; align-items: center; font-size: 13.5px; }
.kv dt { color: var(--muted); padding-right: 12px; }
.kv dd { justify-content: flex-end; text-align: right; min-width: 0; }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.kv dd .input { max-width: 180px; text-align: left; }
.kv dd a { text-decoration: none; font-weight: 500; }
.strong { font-weight: 700; color: var(--violet); }
.legal-list { display: grid; gap: 10px; }
.legal-item { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 12px; align-items: start; }
.art.st-gap { background: var(--coral); }
.art.st-implemented { background: var(--green); }
.art.st-na, .art.st-not_assessed { background: var(--inner); color: var(--muted); }
.prow.more { display: none; }
.ptable.expanded .prow.more, .ptable.searching .prow.more { display: grid; }
.ptable.searching .pfoot { display: none; }
.pfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 24px 4px; border-top: 1px solid var(--line); }

/* =========================================================================
   Law 2004-63 view and article pages
   ========================================================================= */
.law-cards { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1.15fr); gap: 22px; }
@media (max-width: 1200px) { .law-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .law-cards > :first-child { grid-row: span 2; } }
@media (max-width: 760px) { .law-cards { grid-template-columns: minmax(0, 1fr); } .law-cards > :first-child { grid-row: auto; } }
.c-center { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.c-center .card-title { margin-bottom: 0; }
.dot-g { background: var(--green); } .dot-c { background: var(--coral); } .dot-n { background: var(--na); }
.legend b { color: var(--ink); font-weight: 600; margin-left: 2px; }

.forms { display: grid; gap: 4px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.form-row:hover { background: var(--inner); }
.form-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--inner); color: var(--muted); }
.form-ico .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.form-ico.st-implemented { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.form-ico.st-partial { background: color-mix(in srgb, var(--yellow) 22%, transparent); color: color-mix(in srgb, var(--yellow) 60%, var(--ink)); }
.form-ico.st-gap { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral); }

.pbars.tiers { height: 210px; padding-top: 38px; }
.pbars.tiers .pb { grid-template-rows: 1fr auto auto; gap: 4px; }
.pbars.tiers .pb b { font-size: 14px; font-weight: 700; }
.pbars.tiers .pb-fill { background: color-mix(in srgb, var(--coral) 35%, var(--card)); }
.pbars.tiers .pb.danger .pb-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--coral) 70%, #fff), var(--coral)); }
.pbars.tiers .pb-tip { right: auto; left: 50%; transform: translateX(-30%); }
.pbars.tiers .pb:first-child .pb-tip { left: 0; transform: none; }

.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 28px; }
.chap { display: grid; gap: 7px; font-size: 13.5px; }
.chap-head { display: flex; justify-content: space-between; gap: 10px; }
.stacked .st-not_assessed { background: var(--na); }

.ltable { padding: 8px 0 10px; overflow: hidden; }
.lhead, .lrow {
  display: grid; grid-template-columns: 82px minmax(0, 2.4fr) 110px 140px minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: center;
  padding-inline: 24px;
}
.lhead { padding-block: 14px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lrow { padding-block: 13px; border-top: 1px solid var(--line); }
.pgroup + .lrow { border-top: 0; }
.lrow:hover { background: color-mix(in srgb, var(--inner) 55%, transparent); }
.lrow-art {
  font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: center; padding: 7px 4px; border-radius: 11px;
  text-decoration: none; background: var(--inner); color: var(--muted); white-space: nowrap; display: inline-block; min-width: 66px;
}
.lrow-art.st-gap { background: var(--coral); color: #17171c; }
.lrow-art.st-partial { background: var(--yellow); color: #17171c; }
.lrow-art.st-implemented { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.lrow-req { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.45; }
.lrow-req:hover { color: var(--violet); }
.lrow-pen { display: grid; line-height: 1.35; }
.lrow-pen b { font-weight: 600; font-size: 13px; }
.lrow-qs { display: flex; flex-wrap: wrap; gap: 4px; }
.qchip { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); text-decoration: none; }
.qchip:hover { background: var(--violet); color: #fff; }
@media (max-width: 1100px) {
  .lhead { display: none; }
  .lrow { grid-template-columns: 82px minmax(0, 1fr) auto; grid-template-areas: "art req req" "actor status status" "pen pen qs"; row-gap: 10px; padding-block: 16px; }
  .lrow > :nth-child(1) { grid-area: art; } .lrow > :nth-child(2) { grid-area: req; }
  .lrow > :nth-child(3) { grid-area: actor; color: var(--muted); } .lrow > :nth-child(4) { grid-area: status; justify-self: end; }
  .lrow > :nth-child(5) { grid-area: pen; } .lrow > :nth-child(6) { grid-area: qs; justify-content: flex-end; }
  .lhead, .lrow { padding-inline: 18px; }
}
@media (max-width: 520px) {
  .lrow { grid-template-areas: "art req req" "actor status status" "pen pen pen" "qs qs qs"; }
  .lrow > :nth-child(6) { justify-content: flex-start; }
}

.art-big {
  font-family: var(--mono); font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 12px; background: var(--inner); color: var(--muted);
}
.art-big.st-gap { background: var(--coral); color: #17171c; }
.art-big.st-partial { background: var(--yellow); color: #17171c; }
.art-big.st-implemented { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
h1.art-title { font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); font-weight: 700; letter-spacing: -.01em; max-width: 40ch; margin: 10px 0 4px; }
.timeline li.off .tl-dot { border-style: dashed; }
.timeline li.off .tl-title b, .timeline li.off .tl-meta { opacity: .55; }
.sanction { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--inner); margin-bottom: 12px; }
.sanction b { font-size: 18px; font-weight: 700; line-height: 1.3; }
.sanction.hot { background: color-mix(in srgb, var(--coral) 14%, var(--card)); }
.sanction.hot b { color: var(--coral); }
.rel-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.rel-row:hover { background: var(--inner); }
.rel-row .small { line-height: 1.4; }
.prow-txt b.wrap { white-space: normal; font-weight: 500; font-size: 14px; line-height: 1.4; }
.stacked { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--track); gap: 2px; }
.stacked span { display: block; height: 100%; }
.form-row .prow-txt b { white-space: normal; line-height: 1.35; }

/* ---- Legal exposure ------------------------------------------------------ */
.seg-sm { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--inner); }
.seg-sm button { border: 0; background: none; cursor: pointer; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg-sm button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.exp-card { display: flex; flex-direction: column; gap: 10px; }
.exp-card .card-head { margin-bottom: 0; }
.exp-main { display: grid; gap: 2px; margin-top: 4px; }
.exp-big { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--coral); }
.exp-fines { font-weight: 600; font-size: 14.5px; }
.tiny { font-size: 11.5px; line-height: 1.45; margin-top: auto; }
.meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 6px 0 4px; }
.mseg { display: grid; gap: 6px; text-align: center; }
.mseg span { height: 10px; border-radius: 5px; background: var(--track); position: relative; }
.mseg small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mseg.on.l0 span { background: color-mix(in srgb, var(--yellow) 55%, var(--card)); }
.mseg.on.l1 span { background: var(--yellow); }
.mseg.on.l2 span { background: color-mix(in srgb, var(--coral) 60%, var(--yellow)); }
.mseg.on.l3 span { background: color-mix(in srgb, var(--coral) 85%, var(--yellow)); }
.mseg.on.l4 span { background: var(--coral); }
.mseg.cur small { color: var(--ink); font-weight: 700; }
.mseg.cur span::after { content: ""; position: absolute; left: 50%; top: -9px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.exp-ok { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--green) 14%, var(--card)); }
.exp-ok .ico { width: 32px; height: 32px; color: var(--green); stroke-width: 2.4; }

.otable { padding: 22px 0 10px; overflow: hidden; }
.ohead-top { padding-inline: 24px; margin-bottom: 10px; }
.ohead, .orow {
  display: grid; grid-template-columns: 84px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.1fr) 120px; gap: 16px; align-items: center;
  padding-inline: 24px;
}
.ohead { padding-block: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; background: var(--inner); }
.orow { padding-block: 14px; border-top: 1px solid var(--line); }
.ohead + .orow { border-top: 0; }
.orow:hover { background: color-mix(in srgb, var(--inner) 55%, transparent); }
.sev { width: 84px; height: 60px; border-radius: 16px; display: grid; place-content: center; text-align: center; line-height: 1.05; background: var(--inner); color: var(--muted); }
.sev b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sev small { font-size: 11px; font-weight: 500; }
.sev-4, .sev-3 { background: var(--coral); color: #17171c; }
.sev-2 { background: color-mix(in srgb, var(--coral) 22%, transparent); color: var(--coral); }
.sev-1 { background: color-mix(in srgb, var(--yellow) 24%, transparent); color: color-mix(in srgb, var(--yellow) 55%, var(--ink)); }
.o-main { display: grid; gap: 6px; min-width: 0; }
.o-main b { font-weight: 600; font-size: 14px; line-height: 1.4; }
.o-meta { display: flex; align-items: center; gap: 10px; }
.o-bar { display: flex; gap: 2px; width: 90px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--track); }
.o-bar .g { background: var(--coral); } .o-bar .p { background: var(--yellow); }
.o-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.lrow-art.sm { min-width: 0; padding: 4px 8px; font-size: 11.5px; border-radius: 8px; }
.qchip.more { background: var(--inner); color: var(--muted); }
.o-fine { display: grid; justify-items: end; text-align: right; line-height: 1.3; }
.o-fine b { font-weight: 700; font-size: 14px; }
@media (max-width: 1000px) {
  .ohead { display: none; }
  .orow { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "sev main fine" "trig trig trig" "fix fix fix"; row-gap: 10px; padding-inline: 18px; }
  .orow > :nth-child(1) { grid-area: sev; } .orow > :nth-child(2) { grid-area: main; } .orow > :nth-child(5) { grid-area: fine; }
  .orow > :nth-child(3) { grid-area: trig; } .orow > :nth-child(4) { grid-area: fix; }
  .ohead-top { padding-inline: 18px; }
}
@media (max-width: 520px) {
  .orow { grid-template-columns: 70px minmax(0, 1fr); grid-template-areas: "sev main" "fine fine" "trig trig" "fix fix"; }
  .sev { width: 70px; height: 54px; }
  .o-fine { justify-items: start; text-align: left; }
}
.exp-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--inner); border-radius: 16px; padding: 12px 6px; margin-top: 6px; }
.exp-stats > div { display: grid; justify-items: center; text-align: center; line-height: 1.25; }
.exp-stats > div + div { border-left: 1px solid var(--line); }
.exp-stats b { font-size: 22px; font-weight: 700; }
.exp-stats span { font-size: 11.5px; color: var(--muted); }
.o-lbl { display: none; width: 100%; font-size: 11.5px; color: var(--muted); font-weight: 500; }
@media (max-width: 1000px) { .o-lbl { display: block; } }
.form-row .prow-txt small { white-space: normal; }
.exp-mini { display: flex; flex-direction: column; gap: 14px; }
.exp-mini .card-head { margin-bottom: 0; }
.exp-mini-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.exp-mini-top .exp-big { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.3rem); display: block; }
.exp-mini-fine { display: grid; justify-items: end; text-align: right; line-height: 1.3; }
.exp-mini-fine b { font-size: 20px; font-weight: 700; }
.mini-offs { display: grid; gap: 4px; }
.mini-off { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; }
.mini-off:hover { background: var(--inner); }
.mini-off .sev { width: 64px; height: 50px; border-radius: 13px; }
.mini-off .sev b { font-size: 17px; }
.mini-off .sev small { font-size: 10px; }
.mini-off-body { display: grid; gap: 6px; min-width: 0; }
.mini-off-body b { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.exp-help { margin-bottom: 8px; color: var(--ink); }
.lrow-art.dim { opacity: .45; }
.lrow-art.mine { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--violet); }
.side-stack .mini-off { grid-template-columns: 56px minmax(0, 1fr); padding: 6px 0; }
.side-stack .mini-off .sev { width: 56px; height: 46px; }

/* =========================================================================
   Calm legal styling — neutral chips with status dots, typographic severity
   ========================================================================= */
.lrow-art, .lrow-art.st-gap, .lrow-art.st-partial, .lrow-art.st-implemented, .lrow-art.st-na, .lrow-art.st-not_assessed,
.art, .art.st-gap, .art.st-partial, .art.st-implemented, .art.st-na, .art.st-not_assessed,
.art-big, .art-big.st-gap, .art-big.st-partial, .art-big.st-implemented, .art-big.st-na, .art-big.st-not_assessed {
  background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.lrow-art::before, .art::before, .art-big::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--na); flex: none; }
.lrow-art.st-gap::before, .art.st-gap::before, .art-big.st-gap::before { background: var(--coral); }
.lrow-art.st-partial::before, .art.st-partial::before, .art-big.st-partial::before { background: var(--yellow); }
.lrow-art.st-implemented::before, .art.st-implemented::before, .art-big.st-implemented::before { background: var(--green); }
.lrow-art:hover { border-color: var(--muted); }
.art-big { font-size: 13px; padding: 6px 12px; border-radius: 10px; }
.lrow-art.mine { box-shadow: none; border-color: var(--ink); font-weight: 600; }
.lrow-art.dim { opacity: .5; }

/* severity: text + five small dots instead of a coloured block */
.sev, .sev-1, .sev-2, .sev-3, .sev-4, .mini-off .sev, .side-stack .mini-off .sev {
  width: auto; height: auto; background: none; color: var(--ink); border-radius: 0;
  display: grid; gap: 6px; justify-items: start; place-content: start; text-align: left; line-height: 1.2;
}
.sev-txt { white-space: nowrap; }
.sev b, .mini-off .sev b { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.sev small, .mini-off .sev small { font-size: 12px; color: var(--muted); font-weight: 400; }
.sev-dots { display: inline-flex; gap: 3px; }
.sev-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--track); }
.sev-dots i.on { background: var(--muted); }
.sev-3 .sev-dots i.on, .sev-4 .sev-dots i.on { background: var(--coral); }
.ohead, .orow { grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.1fr) 120px; }
.orow { align-items: start; }
.orow .o-fine { padding-top: 2px; }
.mini-off, .side-stack .mini-off { grid-template-columns: 82px minmax(0, 1fr); align-items: start; }
@media (max-width: 520px) { .orow { grid-template-columns: 80px minmax(0, 1fr); } }

/* headline and meter: ink, not red */
.exp-big, .exp-mini-top .exp-big { color: var(--ink); font-size: clamp(1.5rem, 1.2rem + .9vw, 1.9rem); font-weight: 600; letter-spacing: -.01em; }
.meter { gap: 4px; }
.mseg span { height: 4px; border-radius: 2px; }
.mseg.on span, .mseg.on.l0 span, .mseg.on.l1 span, .mseg.on.l2 span, .mseg.on.l3 span, .mseg.on.l4 span { background: color-mix(in srgb, var(--ink) 28%, transparent); }
.mseg.cur span, .mseg.on.cur span { background: var(--coral); }
.mseg.cur span::after { top: -8px; border-width: 4px; border-top-color: var(--muted); }
.exp-stats { background: none; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; }
.exp-stats b { font-size: 18px; font-weight: 600; }

/* formalities: tinted icon squares become plain icons */
.form-ico, .form-ico.st-implemented, .form-ico.st-partial, .form-ico.st-gap { background: var(--inner); }
.form-ico.st-implemented { color: var(--green); } .form-ico.st-partial { color: color-mix(in srgb, var(--yellow) 70%, var(--ink)); } .form-ico.st-gap { color: var(--coral); }

/* offence composition bar: thinner, lower contrast */
.o-bar { height: 4px; width: 70px; }
.o-bar .g { background: color-mix(in srgb, var(--coral) 70%, var(--track)); } .o-bar .p { background: color-mix(in srgb, var(--yellow) 70%, var(--track)); }

/* quiet note instead of a gradient banner */
.banner.quiet { background: var(--card); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.banner.quiet .banner-ico { background: var(--inner); color: var(--ink); }
.banner.quiet .banner-eyebrow { color: var(--muted); opacity: 1; }
.banner.quiet p { font-weight: 400; }
.banner.quiet .btn.white { background: var(--inner); color: var(--ink); box-shadow: none; }

/* sanction card on article pages */
.sanction.hot { background: var(--inner); }
.sanction.hot b { color: var(--ink); }
.sanction { border-left: 3px solid var(--line); border-radius: 0 16px 16px 0; }
.sanction.hot { border-left-color: var(--coral); }

/* Status pills: dot + text on a neutral outline */
.spill, .spill.coral, .spill.yellow, .spill.violet, .spill.green {
  background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500;
}
.spill i { background: var(--na); }
.spill.coral i { background: var(--coral); } .spill.yellow i { background: var(--yellow); }
.spill.violet i { background: var(--violet); } .spill.green i { background: var(--green); }
.spill-select, .spill-select.violet, .spill-select.coral, .spill-select.yellow { background-color: var(--inner); color: var(--ink); font-weight: 500; }
.spill-select.coral { box-shadow: inset 3px 0 0 var(--coral); }
.spill-select.yellow { box-shadow: inset 3px 0 0 var(--yellow); }
.spill-select.violet { box-shadow: inset 3px 0 0 var(--violet); }

/* Question chips: outlined mono */
.qchip { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.qchip:hover { background: transparent; color: var(--ink); border-color: var(--muted); }

/* Thinner progress bars */
.stacked { height: 5px; }
.chap { gap: 9px; }
.o-bar { width: 56px; height: 3px; }

/* =========================================================================
   Front page + onboarding
   Layout: sticky nav, a dark rounded hero panel holding the headline and a
   cluster of floating product cards on a gradient glow, then light/dark
   sections on the canvas. Onboarding: one focused card + a live scope panel.
   ========================================================================= */
:root {
  --hero-bg: #0d0c12;
  --hero-ink: #f5f4fa;
  --hero-muted: #a7a5b8;
  --mk-bg: #ffffff;
  --mk-ink: #17171c;
  --mk-muted: #7d7c8c;
  --mk-line: #ececf2;
  --pink: #f39ad8;
}
.logo-mark { width: 26px; height: 26px; display: block; }
.logo .logo-mark { width: 30px; height: 30px; }

body[data-view="home"], body[data-view="start"] { background: var(--canvas); }
body[data-view="home"]::before, body[data-view="start"]::before { background: var(--canvas); }
.lp { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 40px; display: grid; gap: 28px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.lp-brand.sm { font-size: 16px; }
.lp-brand.sm .logo-mark { width: 20px; height: 20px; }

/* nav */
.lp-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 18px;
  padding-block: 14px; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(12px);
}
.lp-links { display: flex; gap: 4px; margin-left: 18px; }
.lp-links button { border: 0; background: none; color: var(--muted); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.lp-links button:hover { color: var(--ink); background: var(--inner); }
.lp-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lp-icon { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--inner); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lp-icon .ico { width: 18px; height: 18px; }
.lp-icon .lang-badge { font-size: 11px; }
@media (max-width: 900px) { .lp-links { display: none; } }
@media (max-width: 480px) { .lp-start { display: none; } }

/* hero */
.lp-hero {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--hero-bg); color: var(--hero-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center;
  padding: clamp(28px, 4vw, 64px);
  min-height: 600px;
}
.lp-hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 35%; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 40%, rgba(139, 124, 246, .85), transparent 70%),
    radial-gradient(38% 40% at 70% 55%, rgba(243, 154, 216, .75), transparent 70%),
    radial-gradient(35% 35% at 55% 85%, rgba(247, 194, 60, .7), transparent 70%);
  filter: blur(30px); opacity: .9;
}
.lp-hero-copy { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; }
.lp-pill { font-size: 12.5px; font-weight: 500; color: var(--hero-muted); padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.lp-h1 { margin: 0; font-size: clamp(2.9rem, 1.6rem + 5vw, 5.6rem); font-weight: 700; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.lp-h1 span { display: inline; }
.lp-h1 em {
  font-style: normal; display: inline-block;
  background: linear-gradient(95deg, #b4a8ff 0%, var(--pink) 50%, var(--yellow) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--hero-muted); max-width: 52ch; line-height: 1.6; }
.lp-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-hero .btn.dark { background: #fff; color: #111; }
.btn.ghost-lp { background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); }
.lp .lp-path .btn.ghost-lp, .lp-paths .btn.ghost-lp { background: var(--inner); border-color: var(--line); color: var(--ink); }
.lp-new { border: 0; background: none; color: var(--hero-muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.lp-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--hero-muted); }
.lp-facts li { display: inline-flex; align-items: center; gap: 6px; }
.lp-facts .ico { width: 15px; height: 15px; color: var(--green); stroke-width: 2.4; }

/* product mock */
.lp-hero-art { position: relative; z-index: 1; min-height: 480px; }
.mock { position: relative; width: 100%; height: 100%; min-height: 480px; }
.mk {
  position: absolute; background: var(--mk-bg); color: var(--mk-ink); border-radius: 22px; padding: 18px;
  box-shadow: 0 30px 60px rgba(10, 6, 30, .35), 0 2px 0 rgba(255,255,255,.6) inset;
}
.mk small { color: var(--mk-muted); }
.mk .ico { width: 15px; height: 15px; }
.mk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mk-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-muted); }
.mk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(127, 186, 122, .2); }
.mk-rating { top: 0; left: 4%; width: 300px; }
.mk-rating-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.mk-rating-row div { display: grid; line-height: 1.3; }
.mk-grade { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: var(--green); color: #17171c; flex: none; }
.mk-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 92px; align-items: end; }
.mk-bars span { height: 100%; border-radius: 999px; background: #f1f0f6; position: relative; overflow: hidden; }
.mk-bars i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 999px; background: #cfc8fb; display: block; }
.mk-bars span:nth-child(1) i { height: 78%; } .mk-bars span:nth-child(2) i { height: 64%; } .mk-bars span:nth-child(3) i { height: 82%; }
.mk-bars span:nth-child(4) i { height: 57%; } .mk-bars span:nth-child(5) i { height: 70%; } .mk-bars span:nth-child(6) i { height: 74%; }
.mk-bars i.hi { background: linear-gradient(180deg, #a99bff, #6c5dd3); }
.mk-fns { display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; margin-top: 6px; font-size: 10.5px; }
.mk-question { top: 30%; right: 0; width: 360px; }
.mk-qid { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.mk-crit { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #e05555; }
.mk-question p { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.mk-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mk-lvl { display: grid; gap: 1px; padding: 8px 7px; border-radius: 11px; border: 1px solid var(--mk-line); min-width: 0; }
.mk-lvl b { font-size: 15px; } .mk-lvl small { font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-lvl.on { border-color: #6c5dd3; background: rgba(108, 93, 211, .1); color: #6c5dd3; }
.mk-lvl.on small { color: #6c5dd3; }
.mk-ev { margin-top: 12px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mk-muted); }
.mk-ev .ico { color: #fff; background: #6c5dd3; border-radius: 6px; padding: 2px; width: 18px; height: 18px; stroke-width: 3; }
.mk-plan { bottom: 4%; left: 0; width: 330px; display: grid; gap: 10px; }
.mk-plan-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mk-plan-row div { display: grid; line-height: 1.3; }
.mk-tile { width: 38px; height: 38px; border-radius: 11px; background: #f3f3f7; display: grid; place-items: center; }
.mk-gain { color: #6c5dd3; }
.mk-exp { bottom: 0; right: 6%; width: 250px; padding: 14px 16px; display: grid; gap: 8px; }
.mk-exp-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.35; }
.mk-exp-row b { font-family: var(--mono); font-size: 11.5px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--mk-line); display: inline-flex; align-items: center; gap: 6px; }
.mk-exp-row b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .mk { animation: floaty 7s ease-in-out infinite; }
  .mk-question { animation-delay: -2s; } .mk-plan { animation-delay: -4s; } .mk-exp { animation-delay: -5.5s; }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (max-width: 1100px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lp-hero::before { inset: 35% -20% -30% -20%; }
  .lp-hero-art { min-height: 520px; }
}
@media (max-width: 640px) {
  .lp-hero { border-radius: 28px; }
  .lp-hero-art, .mock { min-height: 560px; }
  .mk-rating { left: 0; width: 82%; } .mk-question { top: 170px; right: 0; width: 92%; }
  .mk-plan { bottom: 70px; width: 88%; } .mk-exp { right: 0; width: 78%; }
}

/* strip */
.lp-strip { display: flex; align-items: center; justify-content: center; gap: 14px 22px; flex-wrap: wrap; padding: 6px 0; font-size: 14px; }
.lp-strip b { font-weight: 600; }
.lp-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--track); }

/* sections */
.lp-sec { display: grid; gap: 26px; padding-block: 36px 8px; scroll-margin-top: 80px; }
.lp-sec-head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.lp-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.lp-h2 { margin: 0; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; max-width: 22ch; text-wrap: balance; }

.lp-prob { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.lp-prob-copy { display: grid; gap: 14px; }
.lp-prob-copy p { color: var(--muted); max-width: 58ch; font-size: 15.5px; line-height: 1.65; }
.lp-prob-stats { display: grid; gap: 12px; }
.lp-prob-stats div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 22px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.lp-prob-stats b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.lp-prob-stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .lp-prob { grid-template-columns: minmax(0, 1fr); } .lp-prob-stats div { grid-template-columns: 90px minmax(0, 1fr); } }

.lp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .lp-paths { grid-template-columns: minmax(0, 1fr); } }
.lp-path { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(24px, 3vw, 38px); display: grid; gap: 18px; align-content: start; background: var(--card); box-shadow: var(--shadow); }
.lp-path.sup { background: var(--hero-bg); color: var(--hero-ink); }
.lp-path.sup::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 124, 246, .55), transparent 70%); pointer-events: none; }
.lp-path.sup .btn.dark { background: #fff; color: #111; justify-self: start; }
.lp-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--inner); color: var(--ink); }
.lp-path.sup .lp-tag { background: rgba(255,255,255,.08); color: var(--hero-ink); }
.lp-tag .ico { width: 15px; height: 15px; }
.lp-path h3 { margin: 0; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; max-width: 24ch; }
.lp-path ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-path li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.5; }
.lp-path li .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--violet); stroke-width: 2.4; }
.lp-path.sup li .ico { color: var(--yellow); }
.lp-path.sup li { color: #d9d7e6; }
.lp-path .row { gap: 10px; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
@media (max-width: 960px) { .lp-steps { grid-template-columns: minmax(0, 1fr); } }
.lp-steps li { position: relative; background: var(--card); border-radius: 28px; padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.lp-step-n { position: absolute; top: 20px; right: 22px; font-size: 44px; font-weight: 700; color: var(--track); line-height: 1; }
.lp-steps h3 { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.lp-steps p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.lp-time { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--violet); }
.lp-time .ico { width: 15px; height: 15px; }
.lp-step-art { height: 150px; border-radius: 20px; background: var(--inner); padding: 16px; display: grid; gap: 8px; align-content: center; overflow: hidden; }
.mini-q { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--card); padding: 7px 10px; border-radius: 12px; font-size: 12px; }
.mini-q i { width: 28px; height: 28px; border-radius: 9px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.mini-q i .ico { width: 15px; height: 15px; }
.mini-q b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-q em { font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--violet); }
.mini-q em.no { color: var(--muted); }
.mk-levels.sm .mk-lvl { border-color: var(--line); background: var(--card); color: var(--ink); text-align: center; padding: 10px 0; }
.mk-levels.sm .mk-lvl.on { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }
.mini-ev { display: flex; gap: 8px; align-items: center; background: var(--card); border-radius: 12px; padding: 9px 12px; font-size: 12.5px; }
.mini-ev .ico { width: 18px; height: 18px; background: var(--violet); color: #fff; border-radius: 6px; padding: 2px; stroke-width: 3; flex: none; }
.lp-step-art.s3 { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
.mk-grade.sm { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.mini-plan { display: grid; gap: 9px; }
.mini-plan i { display: block; height: 10px; width: var(--w); border-radius: 5px; background: color-mix(in srgb, var(--violet) 35%, var(--card)); }
.mini-plan i:first-child { background: var(--violet); }

.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.lp-b { background: var(--card); border-radius: 28px; padding: 24px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); min-width: 0; }
.lp-b.b1 { grid-column: span 2; } .lp-b.b2 { grid-column: span 4; } .lp-b.b3 { grid-column: span 3; } .lp-b.b4 { grid-column: span 3; }
@media (max-width: 960px) { .lp-bento { grid-template-columns: minmax(0, 1fr); } .lp-b.b1, .lp-b.b2, .lp-b.b3, .lp-b.b4 { grid-column: auto; } }
.lp-b h3 { margin: 10px 0 0; font-size: 18px; font-weight: 600; }
.lp-b p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.b-art { height: 160px; border-radius: 20px; background: var(--inner); display: grid; place-items: center; padding: 16px; overflow: hidden; }
.b1 .b-art { grid-template-columns: auto auto; gap: 18px; place-content: center; }
.mk-grade.lg { width: 84px; height: 84px; font-size: 44px; border-radius: 24px; }
.b-scale { display: grid; gap: 4px; }
.b-scale i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); padding: 1px 10px; border-radius: 6px; }
.b-scale i.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.b-dots { display: grid; grid-template-columns: repeat(20, 12px); gap: 7px; }
.b-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.b-dots i.p { background: var(--yellow); } .b-dots i.g { background: var(--coral); }
@media (max-width: 640px) { .b-dots { grid-template-columns: repeat(12, 10px); gap: 6px; } .b-dots i { width: 10px; height: 10px; } .b-dots i:nth-child(n+49) { display: none; } }
.b-law { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.b-law em, .b-101 { font-style: normal; font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; gap: 7px; }
.b-law em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.b-law em:first-child::before { background: var(--coral); } .b-law em:nth-child(2)::before { background: var(--na); }
.b3 .b-art { display: grid; gap: 14px; place-content: center; justify-items: center; }
.b-101 { color: var(--muted); }
.b-plan { display: grid; gap: 8px; width: min(100%, 360px); }
.b-plan span { display: flex; justify-content: space-between; gap: 10px; background: var(--card); padding: 11px 14px; border-radius: 14px; font-size: 13.5px; }
.b-plan b { font-weight: 600; } .b-plan em { font-style: normal; font-weight: 600; color: var(--violet); }

.lp-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--card); border-radius: 30px; padding: 30px 10px; box-shadow: var(--shadow); margin-top: 20px; }
.lp-nums > div { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 12px; }
.lp-nums > div + div { border-left: 1px solid var(--line); }
.lp-nums b { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.lp-nums span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .lp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .lp-nums > div:nth-child(odd) { border-left: 0; } }

.lp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .lp-trust { grid-template-columns: minmax(0, 1fr); } }
.lp-trust article { background: var(--card); border-radius: 28px; padding: 26px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.lp-trust h3 { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.lp-trust p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.lp-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }

.lp-final {
  position: relative; overflow: hidden; margin-top: 30px; border-radius: 36px; background: var(--hero-bg); color: var(--hero-ink);
  display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(40px, 6vw, 80px) 24px;
}
.lp-final::before { content: ""; position: absolute; inset: 40% -10% -60% -10%; background: radial-gradient(30% 60% at 30% 50%, rgba(139,124,246,.7), transparent 70%), radial-gradient(30% 60% at 70% 50%, rgba(247,194,60,.55), transparent 70%); filter: blur(30px); pointer-events: none; }
.lp-final > * { position: relative; }
.lp-final h2 { margin: 0; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); font-weight: 700; letter-spacing: -.04em; }
.lp-final p { color: var(--hero-muted); max-width: 48ch; }
.lp-final .btn.dark { background: #fff; color: #111; margin-top: 8px; }
.lp-foot { display: grid; gap: 10px; justify-items: start; padding-top: 12px; }
.lp-foot p { font-size: 12px; color: var(--muted); max-width: 95ch; }

/* ---- Onboarding --------------------------------------------------------- */
.ob { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.ob-top {
  display: flex; align-items: center; gap: 22px; padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.ob-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; max-width: 520px; margin-inline: auto; }
.ob-progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--pink), var(--yellow)); }
.ob-top .lp-tools { margin-left: 0; }
.ob-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; max-width: 1180px; width: 100%; margin: 0 auto;
  padding-block: 28px 60px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 960px) { .ob-body { grid-template-columns: minmax(0, 1fr); } }
.ob-main { min-width: 0; }
.ob-card { background: var(--card); border-radius: 32px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.ob-card h1 { margin: 0; font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; max-width: 26ch; }
.ob-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.input.lg { padding: 16px 18px; font-size: 16px; border-radius: 16px; }
.flabel { font-weight: 500; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: 14px; cursor: pointer; }
.chip-btn:hover { border-color: var(--muted); }
.chip-btn[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); font-weight: 600; }
.ob-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.ob-actions .btn.dark, .ob-actions .btn.outline { border-radius: 999px; padding-inline: 22px; }
.ob-big-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.ob-big-ico .ico { width: 30px; height: 30px; }
.yn-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.yn-big button {
  position: relative; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 22px; padding: 26px 22px; cursor: pointer;
  display: grid; justify-items: start; gap: 6px; text-align: left;
}
.yn-big button b { font-size: 22px; font-weight: 700; }
.yn-key { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; }
.yn-big button:hover { border-color: var(--violet); }
.yn-big button[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 12px 26px var(--violet-soft); }
.yn-big button[aria-pressed="true"] b { color: var(--violet); }
.ob-delta { font-size: 14px; color: var(--muted); }
.ob-delta b { color: var(--violet); font-size: 16px; }
.ob-panel { position: sticky; top: 20px; background: var(--card); border-radius: 28px; padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
@media (max-width: 960px) { .ob-panel { position: static; } .ob-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ob-topics { grid-template-columns: minmax(0, 1fr); } }
.ob-panel-h { font-weight: 600; }
.ob-counts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--inner); border-radius: 18px; padding: 14px 4px; }
.ob-counts > div { display: grid; justify-items: center; line-height: 1.2; }
.ob-counts > div + div { border-left: 1px solid var(--line); }
.ob-counts b { font-size: 24px; font-weight: 700; }
.ob-counts span { font-size: 12px; color: var(--muted); }
.ob-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ob-topics li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 10px; font-size: 13px; }
.ob-ti { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--inner); }
.ob-ti .ico { width: 14px; height: 14px; }
.ob-tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-topics li b { font-weight: 600; font-size: 12.5px; }
.ob-topics li.off { opacity: .4; }
.ob-topics li.off .ob-tn { text-decoration: line-through; }
.ob-topics li.touched { background: var(--violet-soft); }
.ob-topics li.touched .ob-ti { background: var(--violet); color: #fff; }
.ob-check { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.ob-check .ico { width: 30px; height: 30px; stroke-width: 2.6; }
.ob-sum { display: grid; gap: 4px; }
.ob-sum-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; font-size: 13.5px; }
.ob-sum-row:hover { background: var(--inner); }
.ob-sum-row span { width: 30px; height: 30px; border-radius: 9px; background: var(--inner); display: grid; place-items: center; }
.ob-sum-row span .ico { width: 15px; height: 15px; }
.ob-sum-row em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-sum-row b { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.ob-sum-row b.y { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 40%, transparent); }
.ob-sum-row b.n { color: var(--muted); }
@media (max-width: 560px) { .ob-top { gap: 12px; } .ob-top .lp-brand span { display: none; } .yn-big button { padding: 20px 16px; } }

/* ---- fixes: hero card layout, step labels -------------------------------- */
.lp-hero-art, .mock { min-height: 540px; }
.mk-rating { top: 0; left: 0; width: 290px; z-index: 1; }
.mk-question { top: 120px; right: 0; left: auto; width: 370px; z-index: 2; }
.mk-plan { bottom: 46px; left: 24px; width: 310px; z-index: 3; }
.mk-exp { bottom: 0; right: 24px; width: 240px; z-index: 4; }
.mk-ev { line-height: 1.35; }
.mk-ev .ico { flex: none; }
@media (max-width: 1100px) {
  .lp-hero-art, .mock { min-height: 560px; max-width: 640px; }
}
@media (max-width: 640px) {
  .lp-hero-art, .mock { min-height: 0; }
  .mock { display: grid; gap: 12px; }
  .mk, .mk-rating, .mk-question, .mk-plan, .mk-exp { position: relative; inset: auto; width: auto; animation: none; }
  .mk-question { margin-left: 22px; margin-top: -14px; }
  .mk-exp { display: none; }
  .mk-bars { height: 70px; }
}
.lp-step-n { position: static; font-size: 12.5px; font-weight: 700; color: var(--violet); letter-spacing: .08em; line-height: 1; order: -1; }
.lp-steps li { display: flex; flex-direction: column; gap: 12px; }

/* ---- onboarding: world map, countries, frameworks ------------------------- */
.ob-body.wide { grid-template-columns: minmax(0, 1fr); max-width: 1240px; }
.ob-loc h1 { max-width: none; }
.ob-locgrid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .ob-locgrid { grid-template-columns: minmax(0, 1fr); } }
.wm-wrap { background: var(--inner); border-radius: 24px; overflow: hidden; display: grid; min-height: 0; }
.wm { display: block; width: 100%; height: 100%; min-height: 340px; }
@media (max-width: 900px) { .wm { min-height: 0; height: auto; } }
.wm-zoom { transform-origin: 0 0; transform-box: view-box; }
.wm-zoom.anim { transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .wm-zoom.anim { transition: none; } }
.wm path { fill: color-mix(in srgb, var(--muted) 34%, var(--inner)); stroke: var(--inner); stroke-width: .7px; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .15s; }
.wm-reg.pick { cursor: pointer; outline: none; }
.wm-reg.pick:hover path, .wm-reg.pick:focus-visible path { fill: var(--violet); }
.wm-reg.off path { fill: color-mix(in srgb, var(--muted) 16%, var(--inner)); }
.wm-reg.on path { fill: color-mix(in srgb, var(--violet) 32%, var(--inner)); cursor: pointer; }
.wm-reg.on path:hover { fill: color-mix(in srgb, var(--violet) 60%, var(--inner)); }
.wm-reg.on path.terr, .wm-reg.on path.terr:hover { fill: color-mix(in srgb, var(--violet) 14%, var(--inner)); cursor: default; }
.wm path.sel, .wm-reg.on path.sel, .wm-reg.on path.sel:hover { fill: var(--violet); }
.wm-labels text { font: 600 13px var(--font); fill: var(--ink); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--inner); stroke-width: 4px; stroke-linejoin: round; }
.ob-cside { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.ob-cside .search { width: 100%; }
.ob-allreg { justify-self: start; }
.ob-clist { display: grid; align-content: start; gap: 2px; overflow-y: auto; max-height: 360px; padding-right: 4px; }
@media (max-width: 900px) { .ob-clist { max-height: 260px; } }
.ob-clist button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 0; background: none; color: var(--ink); text-align: left; padding: 8px 10px; border-radius: 12px; font: inherit; font-size: 14px; cursor: pointer; }
.ob-clist button:hover { background: var(--inner); }
.ob-clist button[aria-selected="true"] { background: var(--violet-soft); color: var(--violet); font-weight: 600; }
.ob-clist button[hidden] { display: none; }
.flag { font-size: 18px; line-height: 1; }
.eu-tag, .rec-tag { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); white-space: nowrap; }
.ob-regs { grid-template-rows: none; align-content: start; gap: 6px; }
.ob-reg { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px; padding: 10px 14px; cursor: pointer; font: inherit; }
.ob-reg b { font-size: 14.5px; }
.ob-reg small { color: var(--muted); font-size: 12px; grid-column: 1; }
.ob-reg .ico { grid-row: 1 / 3; grid-column: 2; width: 16px; height: 16px; color: var(--muted); }
.ob-reg:hover { border-color: var(--violet); }
.ob-reg:hover .ico { color: var(--violet); }
@media (max-width: 900px) { .ob-regs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ob-picked { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.ob-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.fw-list { display: grid; gap: 12px; }
.fw-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 22px; padding: 16px 18px; cursor: pointer; font: inherit; }
.fw-card:hover { border-color: color-mix(in srgb, var(--violet) 60%, var(--line)); }
.fw-card.on { border-color: var(--violet); background: var(--violet-soft); }
.fw-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--inner); color: var(--violet); }
.fw-ico .ico { width: 24px; height: 24px; }
.fw-ico .flag { font-size: 26px; }
.fw-txt { display: grid; gap: 2px; min-width: 0; }
.fw-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fw-top b { font-size: 16.5px; }
.fw-desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.fw-act { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--inner); color: var(--ink); white-space: nowrap; }
.fw-act .ico { width: 15px; height: 15px; }
.fw-card.on .fw-act { background: var(--violet); color: #fff; }
@media (max-width: 560px) { .fw-card { grid-template-columns: 44px minmax(0, 1fr); } .fw-ico { width: 44px; height: 44px; } .fw-act { grid-column: 1 / -1; justify-self: start; } }
.fw-soon { display: grid; gap: 10px; padding: 16px 18px; border-radius: 22px; border: 1.5px dashed var(--line); }
.fw-soon .ob-eyebrow { color: var(--muted); }
.soon-chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--inner); color: var(--muted); }
.ob-sum-top { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ob-sum-top .ob-sum-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.g-tiers { display: grid; gap: 10px; }
.g-tier { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--inner); }
.g-tier b { font-size: 15px; }
.g-tier.hot { box-shadow: inset 3px 0 0 var(--coral); }
.loc-card { display: grid; gap: 16px; }
.loc-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.loc-row select { min-width: 240px; }
.law-note { display: flex; gap: 10px; align-items: baseline; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--violet-soft); font-size: 13.5px; }
.law-note-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; font-weight: 600; font-size: 12px; color: var(--violet); }
.law-note-tag .ico { width: 14px; height: 14px; }

/* ---- chart kit ------------------------------------------------------------- */
.ch { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ch-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--inner); color: var(--ink); }
.ch-ico .ico { width: 19px; height: 19px; }
.ch-t { min-width: 0; flex: 1; display: grid; }
.ch-t h2 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.ch-t small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ch.sm .ch-ico { width: 32px; height: 32px; border-radius: 10px; }
.ch.sm .ch-ico .ico { width: 16px; height: 16px; }
.ch.sm .ch-t h2 { font-size: 14.5px; }
.ch-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--inner); color: var(--ink); text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.ch-go .ico { width: 16px; height: 16px; }
.ch-go:hover { background: var(--violet); color: #fff; transform: rotate(45deg); }
.ch.sm .ch-go { width: 30px; height: 30px; }
.dpill { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dpill.up { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
:root:not([data-theme="dark"]) .dpill.up { color: #5a3fe0; }
.dpill.down { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent); }
.dpill.flat { color: var(--muted); background: var(--inner); }
.hbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 6px), var(--inner); }
.hbar > span { display: block; height: 100%; border-radius: 999px; animation: sb-grow 1s cubic-bezier(.3, .7, .2, 1) both; transform-origin: left; }
@keyframes sb-grow { from { transform: scaleX(0); } }
.seg-bar { display: flex; gap: 4px; height: 14px; margin: 8px 0 4px; }
.seg-bar > span { border-radius: 4px; min-width: 6px; animation: sb-grow .9s cubic-bezier(.3, .7, .2, 1) both; transform-origin: left; }
.seg-bar > .seg-rest { flex: .001; }
.seg-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.seg-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 6px 0; }
.seg-legend li[data-go] { cursor: pointer; }
.seg-legend li[data-go]:hover span { color: var(--violet); }
.seg-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.seg-legend em { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(3px); min-width: 12px; }
.seg-legend b { font-weight: 600; }
.seg-legend small { color: var(--muted); width: 36px; text-align: right; }
.sq-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sq-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sq-legend i { width: 13px; height: 13px; border-radius: 4px; flex: none; }
.sq-legend span { flex: 1; color: var(--muted); }
.caps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; align-items: end; height: 150px; padding-top: 30px; }
.cap { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; height: 100%; min-width: 0; justify-items: center; }
.cap-track { position: relative; width: 100%; max-width: 46px; height: 100%; border-radius: 14px; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px), var(--inner); }
.cap-fill, .cap-base { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 14px; }
.cap-base { background: var(--lav); opacity: .55; }
.cap-fill { background: color-mix(in srgb, var(--violet) 32%, var(--lav)); transform-origin: bottom; animation: cap-up .9s cubic-bezier(.3, .7, .2, 1) both; }
.cap.hi .cap-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 70%, #fff), var(--violet)); }
@keyframes cap-up { from { transform: scaleY(0); } }
.cap-badge { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--strong); color: var(--on-strong); white-space: nowrap; }
.cap small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.legend.sm { font-size: 12px; gap: 10px; }
.dot-lime { background: var(--accent); }

/* ---- score board ------------------------------------------------------------ */
.sb { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
.sb-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1320px) { .sb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sb { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sb .card { padding: 22px; display: grid; gap: 14px; align-content: start; }
.sb-gbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); gap: 18px; align-items: center; }
@media (max-width: 520px) { .sb-gbody { grid-template-columns: minmax(0, 1fr); } }
.sb-big { display: flex; align-items: baseline; gap: 6px; }
.sb-big b { font-size: 64px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.sb-big > span:not(.grade) { color: var(--muted); font-size: 16px; }
.sb-big .grade { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; margin-left: 8px; align-self: center; }
.sb-delta { display: flex; align-items: center; gap: 8px; margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.rings { position: relative; width: 100%; max-width: 230px; justify-self: center; }
.rings svg { width: 100%; height: auto; display: block; }
.rg-guide { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.rg-track { fill: none; stroke: var(--inner); stroke-width: 12; stroke-dasharray: 0; }
.rg-arc { animation: rg-draw 1.3s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes rg-draw { from { stroke-dasharray: 0 var(--c); } }
.rings-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.rings-c b { font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
.rings-c b small { font-size: 16px; }
.rings-c span { font-size: 12px; color: var(--muted); }
.radar { width: 100%; max-width: 440px; justify-self: center; overflow: visible; }
.rd-ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.rd-ring.target { stroke: var(--violet); stroke-opacity: .35; stroke-dasharray: 3 4; }
.rd-val { font: 500 9.5px var(--font); fill: var(--muted); }
.rd-shape { transform-origin: 150px 150px; animation: rd-pop .9s cubic-bezier(.3, 1.3, .4, 1) both; }
@keyframes rd-pop { from { transform: scale(.2); opacity: 0; } }
.rd-adj { fill: color-mix(in srgb, var(--violet) 30%, transparent); stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; }
.rd-decl { fill: url(#rd-hatch); stroke: color-mix(in srgb, var(--accent) 80%, var(--ink)); stroke-width: 1.4; stroke-linejoin: round; }
.rd-prev { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 1 4; stroke-linecap: round; }
.rd-badge rect { fill: var(--card); stroke: var(--violet); stroke-width: 1.2; }
.rd-badge text { font: 700 10px var(--font); fill: var(--ink); text-anchor: middle; }
.rd-label { font: 500 12px var(--font); fill: var(--muted); }
.dot-prev { background: none; border: 1.5px dotted var(--muted); }
.sb-insight { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--muted); background: var(--inner); border-radius: 14px; padding: 10px 12px; }
.sb-insight .ico { width: 16px; height: 16px; color: var(--violet); flex: none; margin-top: 2px; }
.sb-tile { gap: 10px !important; padding: 18px !important; transition: transform .15s, box-shadow .15s; }
.sb-tile:hover { transform: translateY(-2px); box-shadow: var(--pop); }
.sb-kpi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sb-kpi b { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.sb-kpi b.mega { font-size: 56px; }
.sb-kpi b small { font-size: .45em; color: var(--muted); margin-left: 2px; }
.sb-tile .caps { height: 92px; gap: 6px; padding-top: 26px; }
.sb-tile .cap small { display: none; }
.sb-tile .cap-track { border-radius: 10px; }
.sb-tile .cap-fill { border-radius: 10px; }
.sb-tile .cap.hi .cap-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--coral) 60%, #fff), var(--coral)); }
.sb-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rg-arc, .rd-shape, .hbar > span, .seg-bar > span, .cap-fill { animation: none; } }

/* ---- burndown -------------------------------------------------------------- */
.burn { display: grid; gap: 16px; margin-bottom: 22px; }
.burn-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .burn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.burn-kpis > div { background: var(--inner); border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.burn-kpis span { font-size: 12px; color: var(--muted); }
.burn-kpis b { font-size: 22px; letter-spacing: -.03em; line-height: 1.1; }
.burn-body { display: block; }
.burn-plot { position: relative; }
.burn-svg { width: 100%; height: auto; overflow: visible; display: block; }
.bd-axis { font: 500 11px var(--font); fill: var(--muted); }
.burn .gridline { stroke: var(--line); stroke-dasharray: 3 5; }
.bd-ideal { stroke: var(--lav); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
:root[data-theme="dark"] .bd-ideal { stroke: color-mix(in srgb, var(--violet) 55%, var(--muted)); }
.bd-forecast { fill: none; stroke: color-mix(in srgb, var(--accent) 80%, var(--ink)); stroke-width: 2; stroke-dasharray: 6 4; stroke-linecap: round; }
.bd-actual { fill: none; stroke: var(--violet); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2000; animation: bd-draw 1.4s ease-out both; }
@keyframes bd-draw { from { stroke-dashoffset: 2000; } }
.bd-area { animation: bd-fade 1.2s ease-out both; }
@keyframes bd-fade { from { opacity: 0; } }
.bd-dot { fill: var(--card); stroke: var(--violet); stroke-width: 2; }
.bd-dot.now { fill: var(--violet); stroke: var(--card); stroke-width: 3; }
.bd-today { stroke: var(--ink); stroke-opacity: .2; stroke-width: 1; stroke-dasharray: 3 4; }
.bd-today-t { font: 600 11px var(--font); fill: var(--muted); }
.bd-guide { stroke: var(--violet); stroke-width: 1; stroke-dasharray: 3 3; }
.bd-tip { position: absolute; z-index: 3; min-width: 150px; pointer-events: none; display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--pop); border: 1px solid var(--line); font-size: 12.5px; }
.bd-tip span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.bd-tip em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--ink); }
.bd-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-ideal { background: var(--lav); }
.dot-fc { background: var(--accent); }
.dot-lav { background: var(--lav); }
@media (prefers-reduced-motion: reduce) { .bd-actual, .bd-area { animation: none; } }

/* ---- restart dialog ---------------------------------------------------------- */
.modal-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(8, 8, 12, .62); backdrop-filter: blur(6px); animation: bd-fade .2s ease-out both; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); color: var(--ink); border-radius: 28px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: m-in .25s cubic-bezier(.3, 1.3, .4, 1) both; }
@keyframes m-in { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; }
.round.sm { width: 36px; height: 36px; }
.rs-opts { display: grid; gap: 10px; }
.rs-opt { --c: var(--violet); display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; cursor: pointer; }
.rs-opt.safe { --c: var(--green); } .rs-opt.partial { --c: var(--yellow); } .rs-opt.archive { --c: var(--violet); } .rs-opt.danger { --c: var(--coral); }
.rs-opt:hover { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.rs-opt.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--card)); }
.rs-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, var(--inner)); color: var(--c); }
.rs-ico .ico { width: 20px; height: 20px; }
.rs-txt { display: grid; gap: 2px; }
.rs-txt b { font-size: 15px; }
.rs-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.rs-badge { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); white-space: nowrap; }
@media (max-width: 520px) { .rs-opt { grid-template-columns: 38px minmax(0, 1fr); } .rs-badge { grid-column: 2; justify-self: start; } }
.rs-impact { --c: var(--violet); display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, var(--inner)); border-left: 4px solid var(--c); }
.rs-impact.safe { --c: var(--green); } .rs-impact.partial { --c: var(--yellow); } .rs-impact.danger { --c: var(--coral); }
.rs-impact > .ico { width: 20px; height: 20px; color: var(--c); flex: none; margin-top: 2px; }
.rs-impact p { margin: 4px 0 0; font-size: 13.5px; }
.rs-backup { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 14px; background: var(--inner); }
.rs-backup .ico { width: 16px; height: 16px; }
.rs-backup .btn { margin-left: auto; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.modal-actions > span { flex: 1; }
.btn.danger-solid { background: var(--coral); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.toast-btn { margin-left: 14px; border: 0; background: none; color: var(--violet); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 4px 0; }
.link-btn:hover { color: var(--violet); }
.link-btn .ico { width: 14px; height: 14px; }
.rd-prev { fill: color-mix(in srgb, var(--ink) 6%, transparent); stroke: var(--ink); stroke-width: 1.5; stroke-opacity: .55; stroke-dasharray: 1 3; stroke-linecap: round; }
.dot-prev { background: none; border: 1.5px solid var(--muted); }
.modal-x { width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--inner); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.modal-x:hover { color: var(--violet); }
.modal-x .ico { width: 18px; height: 18px; }

/* ---- overview cards, new style -------------------------------------------------- */
.dash .card, .dash2 .card { display: flex; flex-direction: column; gap: 16px; }
.dash .c-dist { flex-direction: column; align-items: stretch; }
.dash .c-dist .caps { height: 190px; }
.c-iso .iso-panel { background: none; padding: 0; }
.c-iso .mdots i { border-radius: 4px; }
.bignum .hbar { margin-top: 6px; }
.qs-done { color: #fff !important; }
.c-iso .mdots { grid-template-rows: repeat(6, 15px); grid-auto-columns: 15px; gap: 5px; }
.c-iso .mdots i { width: 15px; height: 15px; border-radius: 4px; }
.iso-left > .seg-bar, .iso-left > .seg-legend { justify-self: stretch; width: 100%; }
.rd-adj { fill: var(--lav); fill-opacity: .55; }
:root[data-theme="dark"] .rd-adj { fill: var(--violet); fill-opacity: .35; }
.qbars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; height: 74px; align-items: end; }
.qb { height: 100%; display: flex; align-items: flex-end; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 6px); }
.qb > span { display: block; width: 100%; border-radius: 6px; transform-origin: bottom; animation: cap-up .8s cubic-bezier(.3, .7, .2, 1) both; }
.qb.ok > span { background: var(--violet); }
.qb.mid > span { background: var(--lav); }
.qb.low > span { background: var(--coral); }
.qb.open > span { background: none; }
.qb.na > span { background: var(--na); height: 18% !important; }
.qb:hover > span { filter: brightness(1.1); outline: 2px solid var(--ink); outline-offset: 1px; }
.sb-gstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.sb-gstats > div { background: var(--inner); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.sb-gstats span { font-size: 12px; color: var(--muted); }
.sb-gstats b { font-size: 22px; letter-spacing: -.03em; }
.sb-global { display: flex !important; flex-direction: column; }
.rd-decl { fill: none; stroke: color-mix(in srgb, var(--accent) 75%, var(--ink)); stroke-width: 2; stroke-dasharray: 5 4; }
.rd-adj { fill: var(--violet); fill-opacity: .22; stroke-width: 2.4; }
.qbars.dense { gap: 2px; }
.qbars.dense .qb { background: none; }
.qbars.dense .qb > span { border-radius: 3px; }

.plan-charts .card { display: flex; flex-direction: column; gap: 14px; }
.plan-charts .caps { height: 220px; padding-top: 34px; }
.cap-base { z-index: 1; background: var(--lav); opacity: 1; border-radius: 0 0 14px 14px; }
.cap-fill { z-index: 0; }
.cap.hi .cap-base { background: color-mix(in srgb, var(--lav) 80%, var(--violet)); }
.cap:not(.hi) .cap-fill:has(+ *), .plan-charts .cap-fill { background: color-mix(in srgb, var(--violet) 75%, var(--lav)); }
.plan-charts .cap.hi .cap-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 70%, #fff), var(--violet)); }
.cap-badge { z-index: 2; }
.bd-axis { font-size: 9.5px; }
.bd-today-t { font-size: 9.5px; }
.cdonut { position: relative; width: 100%; max-width: 250px; margin: 0 auto; }
.cdonut svg { width: 100%; height: auto; display: block; }
.cd-seg { animation: rg-draw 1.1s cubic-bezier(.3, .7, .2, 1) both; }
.cdonut .donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cdonut .donut-center b { font-size: 34px; letter-spacing: -.04em; }
.cdonut .donut-center span { font-size: 12px; color: var(--muted); }
.cd-pill { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--card); box-shadow: var(--pop); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cd-pill i { width: 8px; height: 8px; border-radius: 50%; }
.c-center { align-items: stretch !important; }
.law-cards .card { display: flex; flex-direction: column; gap: 14px; }
.ch { flex-wrap: wrap; }
@media (max-width: 640px) { .ch-r:has(.legend) { width: 100%; justify-content: flex-start; padding-left: 50px; } }

/* ---- simplified overview + phase page --------------------------------------- */
.sb-gbody { grid-template-columns: auto minmax(0, 1fr); gap: 26px; }
@media (max-width: 520px) { .sb-gbody { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
.sring { position: relative; width: 170px; flex: none; }
.sring svg { width: 100%; height: auto; display: block; }
.sr-track { fill: none; stroke: var(--inner); stroke-width: 14; }
.sr-arc { fill: none; stroke: var(--violet); stroke-width: 14; stroke-linecap: round; animation: rg-draw 1.2s cubic-bezier(.3, .7, .2, 1) both; }
.sring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.sring-c b { font-size: 46px; font-weight: 700; letter-spacing: -.05em; }
.sring-c span { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sb-gtext { display: grid; gap: 8px; justify-items: start; }
@media (max-width: 520px) { .sb-gtext { justify-items: center; } }
.sb-gtext .grade { width: 46px; height: 46px; font-size: 23px; border-radius: 14px; }
.sb-verdict-big { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0; }
.sb-gtext .sb-delta { margin: 0; }
.sb-gstats { margin-top: 4px; }
a.sb-tile { text-decoration: none; color: var(--ink); }
.sb-tile-top { display: flex; justify-content: space-between; align-items: center; }
.sb-step { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.sb-name { font-size: 15px; font-weight: 600; }
.sb-tile .sb-kpi { gap: 4px; }
.sb-more { display: inline-flex; align-items: center; gap: 4px; color: var(--violet); font-weight: 600; opacity: 0; transform: translateX(-4px); transition: .15s; }
.sb-more .ico { width: 13px; height: 13px; }
.sb-tile:hover .sb-more { opacity: 1; transform: none; }
.dash3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 1100px) { .dash3 { grid-template-columns: minmax(0, 1fr); } }
.dash3 .card, .ph-grid .card { display: flex; flex-direction: column; gap: 14px; }
.cov-list { display: grid; gap: 6px; }
.cov-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "ico txt pct" "ico bar bar"; column-gap: 12px; row-gap: 6px; align-items: center; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--ink); transition: background .15s; }
.cov-row:hover { background: var(--inner); }
.cov-row .ch-ico { grid-area: ico; align-self: start; }
.cov-txt { grid-area: txt; display: grid; min-width: 0; }
.cov-txt b { font-size: 14.5px; font-weight: 600; }
.cov-txt small { color: var(--muted); }
.cov-pct { grid-area: pct; font-size: 20px; letter-spacing: -.03em; }
.cov-bar { grid-area: bar; }
.ph-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ph-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--violet); color: #fff; flex: none; }
.ph-ico .ico { width: 30px; height: 30px; }
.ph-title { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.ph-title h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.03em; }
.ph-title p { max-width: 62ch; }
.btn.white { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.ph-kpis { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .ph-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ph-score { grid-column: 1 / -1; } }
.ph-score { display: flex; align-items: center; gap: 22px; }
.ph-score .sring { width: 120px; }
.ph-score .sring-c b { font-size: 32px; }
.ph-score b { font-size: 20px; }
.ph-k { display: grid; gap: 6px; align-content: start; }
.ph-k > span { font-size: 12.5px; color: var(--muted); }
.ph-k > b { font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 1000px) { .ph-grid { grid-template-columns: minmax(0, 1fr); } }
.ph-qmap { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ph-qmap .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sb-global .sb-gstats { margin-top: auto; }
.radar { max-width: 380px; }
.ph-grid, .dash3 { align-items: start; }
.dash2 .mini-offs, .dash2 .exp-mini .meter + .mini-offs { display: none; }

/* =====================================================================================
   Report — an A4 brochure. Sizes are in cqw (1% of the page width) so the page looks the
   same on screen and on paper. The paper is always light, whatever the app theme.
   ===================================================================================== */
body[data-view="report"] { background: var(--frame); }
.rp-shell { min-height: 100vh; }
.rp-bar-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: color-mix(in srgb, var(--frame) 88%, transparent); backdrop-filter: blur(10px); }
.rp-bar-title { font-weight: 600; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .rp-bar-title { display: none; } }
.rp-doc { display: grid; justify-items: center; gap: 36px; padding: 24px 16px 80px; }
.rp-page {
  --violet: #7a5af8; --lav: #c9bdff; --accent: #f5a524; --cyan: #16a3e0; --green: #7cc015; --coral: #f2555c; --deep: #1c1040;
  --ink: #141414; --muted: #6c6c78; --line: #e4e3ec; --card: #ffffff; --inner: #f5f4fa; --track: #ecebf3; --na: #d9d9e0; --hatch: rgba(20, 20, 20, .08);
  container-type: inline-size; position: relative; overflow: hidden;
  width: min(860px, 100%); aspect-ratio: 210 / 297; background: #fff; color: var(--ink);
  font-family: "IBM Plex Sans", var(--font); font-size: 1.98cqw; line-height: 1.5;
  padding: 8cqw 8cqw 10cqw; display: flex; flex-direction: column; gap: 2.4cqw;
  box-shadow: 0 30px 70px rgba(20, 14, 50, .18); border-radius: 4px;
}
.rp-page p { margin: 0; }
.rp-page .num { font-variant-numeric: tabular-nums; }
.rp-foot { position: absolute; left: 8cqw; right: 8cqw; bottom: 4cqw; display: flex; justify-content: space-between; gap: 2cqw; padding-top: 1.2cqw; border-top: 1px solid var(--line); font: 500 1.41cqw "IBM Plex Mono", var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.rp-sec { font: 600 1.54cqw var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.rp-h1 { font-size: 6.72cqw; font-weight: 300; letter-spacing: -.03em; line-height: 1.02; margin: -.6cqw 0 0; }
.rp-h2 { font-size: 4.83cqw; font-weight: 300; letter-spacing: -.02em; margin: 0 0 2cqw; }
.rp-h3 { font-size: 1.6cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.6cqw; padding-bottom: 1cqw; border-bottom: 1px solid var(--line); }
.rp-lead { font-size: 2.75cqw; font-weight: 300; line-height: 1.4; letter-spacing: -.01em; }
.rp-narrow { max-width: 70%; }
.rp-small { font-size: 1.66cqw; color: var(--muted); }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6cqw; }
.rp-mt { margin-top: 3cqw; }
.rp-logo { display: inline-flex; align-items: center; gap: 1cqw; font-weight: 600; font-size: 2.56cqw; }
.rp-logo .logo-mark { width: 3.6cqw; height: 3.6cqw; }
.rp-bar { display: block; height: 1cqw; border-radius: 1cqw; background: var(--track); overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: 1cqw; }

/* cover */
.rp-cover { background: radial-gradient(90% 60% at 85% 20%, #4b2bb8 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #2f1a7a 0%, transparent 70%), var(--deep); color: #fff; padding-bottom: 8cqw; }
.rp-cover-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.rp-kicker { font: 600 1.54cqw var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.rp-art { position: absolute; width: 92cqw; right: -24cqw; top: 6cqw; }
.rp-art-t { font: 500 13px "IBM Plex Sans", sans-serif; fill: rgba(255, 255, 255, .75); }
.rp-art-g { font: 700 46px "IBM Plex Sans", sans-serif; fill: var(--deep); text-anchor: middle; }
.rp-cover-title { margin-top: auto; position: relative; z-index: 1; display: grid; gap: 1.6cqw; }
.rp-year { font-size: 16.8cqw; font-weight: 200; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: .25cqw var(--accent); }
.rp-cover-title h1 { font-size: 7.56cqw; font-weight: 300; line-height: 1.02; letter-spacing: -.035em; max-width: 80%; margin: 0; }
.rp-cover-title p { font-size: 2.56cqw; font-weight: 300; color: rgba(255, 255, 255, .8); }
.rp-cover-title p b { color: #fff; font-weight: 600; }
.rp-cover-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; margin: 3cqw 0 0; padding-top: 2cqw; border-top: 1px solid rgba(255, 255, 255, .22); }
.rp-cover-meta dt { font: 600 1.34cqw var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.rp-cover-meta dd { margin: .6cqw 0 0; font-size: 1.86cqw; }
.rp-cover-meta dd b { font-size: 2.76cqw; font-weight: 600; color: var(--accent); }

/* contents */
.rp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .4cqw; }
.rp-toc li { display: flex; align-items: baseline; gap: 1.8cqw; padding: 1.2cqw 0; border-bottom: 1px solid var(--line); font-size: 2.43cqw; }
.rp-toc li > span:first-child { font-size: 1.54cqw; color: var(--violet); font-weight: 600; }
.rp-toc li b { font-weight: 400; }
.rp-toc li em { flex: 1; }
.rp-toc li > span:last-child { font-size: 1.66cqw; color: var(--muted); }
.rp-glance { display: grid; gap: 1.8cqw; align-content: start; }
.rp-glance p:not(.rp-lead) { color: #3c3c46; }
.rp-quote { margin: 1cqw 0 0; padding: .4cqw 0 .4cqw 2.4cqw; border-left: .6cqw solid var(--accent); font: italic 300 3.1cqw/1.3 "IBM Plex Serif", Georgia, serif; color: var(--violet); }
.rp-band { position: absolute; left: 0; right: 0; bottom: 0; height: 30cqw; background: var(--violet); overflow: hidden; }
.rp-band::after { content: ""; position: absolute; right: 8cqw; top: -10cqw; width: 30cqw; height: 30cqw; border-radius: 50%; background: var(--accent); }
.rp-band-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .35) .25cqw, transparent .3cqw); background-size: 2.4cqw 2.4cqw; }
.rp-contents .rp-foot { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .3); z-index: 1; }
.rp-contents { padding-bottom: 34cqw; }

/* key figures */
.rp-kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4cqw 4cqw; margin-top: 3cqw; }
.rp-k { border-top: .45cqw solid var(--c); padding-top: 1.6cqw; display: grid; gap: .8cqw; }
.rp-k b { font-size: 10.5cqw; font-weight: 300; letter-spacing: -.05em; line-height: .9; }
.rp-k b small { font-size: 2.99cqw; color: var(--muted); letter-spacing: 0; margin-left: .4cqw; }
.rp-k span { font-size: 1.86cqw; color: var(--muted); }
.rp-dual { display: grid; gap: 1.6cqw; }
.rp-dual > div { display: grid; grid-template-columns: 1fr auto; gap: .6cqw 1.2cqw; align-items: center; }
.rp-dual span { grid-column: 1 / -1; font-size: 1.73cqw; color: var(--muted); }
.rp-dual i { display: block; height: 2.6cqw; border-radius: .6cqw; background: repeating-linear-gradient(135deg, #d9d4ef 0 .3cqw, transparent .3cqw .8cqw), #f1eff9; }
.rp-dual i.v { background: var(--violet); }
.rp-dual b { font-size: 2.76cqw; font-weight: 400; }
.rp-scale { display: flex; gap: .8cqw; margin-bottom: 1.6cqw; }
.rp-scale span { width: 5cqw; height: 5cqw; border-radius: 1.2cqw; display: grid; place-items: center; font-size: 2.82cqw; font-weight: 600; background: var(--inner); color: var(--muted); }
.rp-scale span.on { background: var(--deep); color: var(--accent); transform: scale(1.12); }

/* maturity */
.rp-radar { display: grid; justify-items: center; margin: 1cqw 0; }
.rp-radar .radar { width: 62cqw; max-width: none; }
.rp-page .rd-label { font-size: 13px; fill: var(--ink); }
.rp-phases { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rp-ph { display: grid; grid-template-columns: 4cqw 18cqw 1fr 6cqw 13cqw; align-items: center; gap: 2cqw; padding: 1.25cqw 0; border-bottom: 1px solid var(--line); font-size: 2.05cqw; }
.rp-ph > span:first-child { color: var(--violet); font-size: 1.54cqw; font-weight: 600; }
.rp-ph b { font-weight: 500; }
.rp-ph > b.num { font-size: 2.76cqw; font-weight: 300; text-align: right; }
.rp-ph small { color: var(--muted); font-size: 1.66cqw; }

/* phase by phase */
.rp-pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6cqw; margin-top: 2cqw; }
.rp-pcard { background: var(--inner); border-radius: 2cqw; padding: 2.8cqw; display: grid; gap: 1.2cqw; align-content: start; }
.rp-pcard-h { display: flex; justify-content: space-between; align-items: center; color: var(--violet); }
.rp-pcard-h span { font-size: 1.54cqw; font-weight: 600; }
.rp-pcard-h .ico { width: 2.6cqw; height: 2.6cqw; }
.rp-pcard h3 { font-size: 2.99cqw; font-weight: 400; letter-spacing: -.02em; margin: 0; }
.rp-pscore { display: flex; align-items: baseline; gap: 1.2cqw; }
.rp-pscore b { font-size: 5.67cqw; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.rp-pscore span { font-size: 1.73cqw; color: var(--muted); }
.rp-pcard dl { margin: .6cqw 0 0; display: grid; gap: .8cqw; }
.rp-pcard dt { font: 600 1.28cqw var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rp-pcard dd { margin: .2cqw 0 0; font-size: 1.73cqw; display: flex; justify-content: space-between; gap: 1cqw; }

/* compliance */
.rp-fws { display: grid; gap: 3.4cqw; margin-top: 3cqw; }
.rp-fw { display: grid; grid-template-columns: 22cqw 1fr; gap: 5cqw; align-items: center; padding-bottom: 3.4cqw; border-bottom: 1px solid var(--line); }
.rp-donut { position: relative; width: 22cqw; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--p) * 1%), #ece9f7 0); display: grid; place-items: center; }
.rp-donut::before { content: ""; position: absolute; inset: 3cqw; border-radius: 50%; background: #fff; }
.rp-donut b { position: relative; font-size: 5.67cqw; font-weight: 300; letter-spacing: -.04em; }
.rp-donut b small { font-size: 2.82cqw; }
.rp-fw-b { display: grid; gap: 1.4cqw; }
.rp-fw-b h3 { font-size: 3.22cqw; font-weight: 400; letter-spacing: -.02em; margin: 0; }
.rp-stack { display: flex; gap: .4cqw; height: 1.6cqw; }
.rp-stack i { border-radius: .4cqw; min-width: .6cqw; }
.rp-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 3cqw; font-size: 1.79cqw; color: var(--muted); }
.rp-legend li { display: flex; align-items: center; gap: .8cqw; }
.rp-legend i { width: 1.2cqw; height: 1.2cqw; border-radius: .3cqw; }
.rp-legend b { color: var(--ink); font-weight: 600; }
.rp-note { font-size: 1.86cqw; padding: 1.2cqw 1.6cqw; background: var(--inner); border-left: .5cqw solid var(--coral); border-radius: 0 1cqw 1cqw 0; }

/* findings */
.rp-crit { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4cqw; }
.rp-crit li { display: flex; gap: 1.6cqw; align-items: center; }
.rp-lvl { width: 4.4cqw; height: 4.4cqw; flex: none; border-radius: 1cqw; display: grid; place-items: center; background: color-mix(in srgb, var(--coral) 14%, #fff); color: var(--coral); font-size: 2.56cqw; font-weight: 600; }
.rp-crit b { display: block; font-size: 2.05cqw; font-weight: 500; }
.rp-crit small { font-size: 1.54cqw; color: var(--muted); }
.rp-weak { display: grid; gap: 1.6cqw; }
.rp-weak > div { display: grid; grid-template-columns: 1fr 5cqw; gap: .6cqw 1.4cqw; align-items: center; font-size: 1.86cqw; }
.rp-weak .rp-bar { grid-column: 1; }
.rp-weak b { grid-row: 1 / 3; grid-column: 2; font-size: 2.99cqw; font-weight: 300; text-align: right; }

/* roadmap */
.rp-proj { display: flex; align-items: flex-end; gap: 2cqw; height: 22cqw; margin: 2cqw 0; }
.rp-proj > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: .8cqw; }
.rp-proj > div span { font-size: 1.6cqw; color: var(--muted); order: 2; }
.rp-proj > div b { font-size: 5.06cqw; font-weight: 300; letter-spacing: -.04em; line-height: 1; order: 0; }
.rp-proj > div i { display: block; border-radius: 1.4cqw 1.4cqw .4cqw .4cqw; background: repeating-linear-gradient(135deg, #d9d4ef 0 .3cqw, transparent .3cqw .8cqw), #f1eff9; order: 1; }
.rp-proj > div.on i { background: linear-gradient(180deg, #a993ff, var(--violet)); }
.rp-proj > div.on b { color: var(--violet); }
.rp-arrow { align-self: center; font-size: 3.45cqw; color: var(--lav); }
.rp-table { width: 100%; border-collapse: collapse; font-size: 1.73cqw; }
.rp-table th { text-align: left; font: 600 1.28cqw var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 1cqw 1cqw 0; border-bottom: 1.5px solid var(--ink); }
.rp-table td { padding: 1.15cqw 1cqw 1.15cqw 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rp-table td b { display: block; font-weight: 500; }
.rp-table td small { color: var(--muted); font: 500 1.34cqw var(--mono); }
.rp-table td.num { text-align: right; color: var(--violet); font-weight: 600; }
.rp-prio { display: inline-block; font-size: 1.34cqw; font-weight: 600; padding: .3cqw .9cqw; border-radius: 99px; background: var(--inner); white-space: nowrap; }
.rp-prio.critical { background: color-mix(in srgb, var(--coral) 15%, #fff); color: var(--coral); }
.rp-prio.high { background: color-mix(in srgb, var(--cyan) 15%, #fff); color: #0d7fb0; }

/* method + back cover */
.rp-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.4cqw; margin-top: 2cqw; }
.rp-m > div { display: grid; gap: 1cqw; align-content: start; border-top: .45cqw solid var(--violet); padding-top: 1.6cqw; }
.rp-m span { color: var(--violet); font-size: 1.54cqw; font-weight: 600; }
.rp-m h3 { font-size: 2.56cqw; font-weight: 500; margin: 0; letter-spacing: -.01em; }
.rp-m p { font-size: 1.73cqw; color: #3c3c46; }
.rp-scale-t { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2cqw; margin-top: 2cqw; }
.rp-scale-t > div { background: var(--inner); border-radius: 1.4cqw; padding: 1.6cqw; display: grid; gap: .5cqw; align-content: start; }
.rp-scale-t b { font-size: 4.6cqw; font-weight: 300; color: var(--violet); line-height: 1; }
.rp-scale-t span { font-size: 1.79cqw; font-weight: 600; }
.rp-scale-t small { font-size: 1.47cqw; color: var(--muted); line-height: 1.4; }
.rp-disc { font-size: 1.47cqw; color: var(--muted); max-width: 80%; }
.rp-backcover { position: absolute; left: 0; right: 0; bottom: 0; height: 24cqw; padding: 0 8cqw; display: flex; align-items: center; justify-content: space-between; background: var(--deep); color: #fff; font-size: 1.79cqw; }
.rp-backcover::before { content: ""; position: absolute; left: 50%; top: -8cqw; width: 16cqw; height: 16cqw; border-radius: 50%; background: var(--accent); }
.rp-method .rp-foot { display: none; }

@page { size: A4; margin: 0; }
@media print {
  body[data-view="report"] { background: #fff; }
  .rp-bar-top { display: none !important; }
  .rp-doc { display: block; padding: 0; }
  .rp-page { width: 210mm; height: 297mm; box-shadow: none; border-radius: 0; break-after: page; page-break-after: always; }
  .rp-page:last-child { break-after: auto; }
  .rp-page, .rp-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.rp-art { width: 84cqw; right: -22cqw; top: 13cqw; }
.rp-hasband { padding-bottom: 38cqw; }
.rp-sband { position: absolute; left: 0; right: 0; bottom: 0; height: 34cqw; padding: 6cqw 8cqw 9cqw; display: flex; align-items: center; gap: 5cqw; background: var(--deep); color: #fff; overflow: hidden; }
.rp-sband.lime { background: var(--accent); color: var(--deep); }
.rp-sband.violet { background: var(--violet); }
.rp-sband .rp-band-dots { opacity: .5; }
.rp-sband.lime .rp-band-dots { background-image: radial-gradient(rgba(28, 16, 64, .25) .25cqw, transparent .3cqw); }
.rp-sband::after { content: ""; position: absolute; right: -6cqw; top: -8cqw; width: 26cqw; height: 26cqw; border-radius: 50%; background: var(--accent); opacity: .95; }
.rp-sband.lime::after { background: var(--violet); }
.rp-sband.violet::after { background: var(--deep); }
.rp-sband-big { position: relative; z-index: 1; font-size: 15cqw; font-weight: 200; letter-spacing: -.06em; line-height: .85; color: var(--accent); }
.rp-sband.lime .rp-sband-big { color: var(--deep); }
.rp-sband-t { position: relative; z-index: 1; max-width: 46cqw; display: grid; gap: 1cqw; }
.rp-sband-t h3 { margin: 0; font-size: 2.6cqw; font-weight: 400; letter-spacing: -.02em; }
.rp-sband-t p { font-size: 1.55cqw; opacity: .85; }
.rp-hasband .rp-foot { z-index: 2; color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .3); }
.rp-compliance .rp-foot { color: rgba(28, 16, 64, .7); border-color: rgba(28, 16, 64, .25); }
.rp-fw { grid-template-columns: 24cqw 1fr; }
.rp-donut { width: 24cqw; }

/* ---- report cover: the situation at a glance ---------------------------------- */
.rp-cover { gap: 3.4cqw; background: radial-gradient(70% 45% at 100% 38%, rgba(122, 90, 248, .55) 0%, transparent 70%), radial-gradient(55% 40% at 0% 100%, rgba(245, 165, 36, .18) 0%, transparent 70%), var(--deep); }
.rp-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) .2cqw, transparent .25cqw); background-size: 2.6cqw 2.6cqw; pointer-events: none; }
.rp-cover > * { position: relative; z-index: 1; }
.rp-cover-title { margin-top: 3cqw; gap: 1.6cqw; }
.rp-cover-title h1 { font-size: 7.6cqw; max-width: 90%; }
.rp-cover-title p { font-size: 2.1cqw; }
.rp-verdict { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: center; margin-top: 2cqw; }
.rp-gauge { position: relative; }
.rp-gauge-svg { width: 100%; display: block; overflow: visible; }
.rp-g-l { font: 600 15px "IBM Plex Sans", sans-serif; fill: rgba(255, 255, 255, .45); text-anchor: middle; }
.rp-g-l.on { fill: #fff; font-size: 19px; }
.rp-g-needle { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.rp-g-hub { fill: #fff; }
.rp-g-dot { fill: #fff; stroke: var(--deep); stroke-width: 5; }
.rp-gauge-c { position: absolute; left: 0; right: 0; bottom: -1cqw; display: grid; justify-items: center; gap: 1cqw; }
.rp-gauge-c b { font-size: 11cqw; font-weight: 300; letter-spacing: -.05em; line-height: .9; background: var(--deep); padding: 0 2cqw; border-radius: 2cqw; }
.rp-gauge-c b small { font-size: 2.6cqw; color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.rp-state { font-size: 1.9cqw; font-weight: 600; padding: .7cqw 2cqw; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.rp-state.r-A, .rp-state.r-B { background: var(--violet); }
.rp-state.r-C { background: var(--accent); color: var(--deep); }
.rp-state.r-D, .rp-state.r-E { background: var(--coral); }
.rp-bw { display: grid; gap: 2.4cqw; }
.rp-bw-c { border-radius: 2.4cqw; padding: 2.6cqw 3cqw; display: grid; gap: .6cqw; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.rp-bw-c > span { font: 600 1.45cqw var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rp-bw-c.best > span { color: #c9bdff; }
.rp-bw-c.worst > span { color: #ff9a9e; }
.rp-bw-c b { font-size: 3.6cqw; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.rp-bw-c em { font-style: normal; font-size: 5.4cqw; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.rp-bw-c em small { font-size: 2cqw; color: rgba(255, 255, 255, .6); }
.rp-bw-c.best em { color: #c9bdff; }
.rp-bw-c.worst em { color: #ff9a9e; }
.rp-bw-c > small { font-size: 1.6cqw; color: rgba(255, 255, 255, .7); }
.rp-cover-bars { display: grid; gap: 1.3cqw; margin-top: 1cqw; padding: 2.6cqw 3cqw; border-radius: 2.4cqw; background: rgba(255, 255, 255, .06); }
.rp-cb-h { display: flex; justify-content: space-between; font: 600 1.4cqw var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: .4cqw; }
.rp-cb { display: grid; grid-template-columns: 17cqw 1fr 5cqw; align-items: center; gap: 2cqw; font-size: 1.85cqw; }
.rp-cb b { font-weight: 500; }
.rp-cb > span.num { text-align: right; font-size: 2.3cqw; font-weight: 300; }
.rp-cb-bar { position: relative; height: 1.5cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .12); }
.rp-cb-bar i { display: block; height: 100%; border-radius: 1cqw; }
.rp-cb-bar em { position: absolute; top: -.6cqw; bottom: -.6cqw; width: .3cqw; background: #fff; opacity: .7; border-radius: 1px; }
.rp-cover-meta { grid-template-columns: 2fr 1fr 1fr; margin-top: auto; }
.rp-cover-meta dd { font-size: 1.75cqw; }
.rp-cover-meta dd b { font-size: 3.2cqw; font-weight: 300; color: #fff; }
.rp-kicker { color: var(--accent); }
.rp-gauge-c { bottom: -2.4cqw; }
.rp-gauge-c b { background: none; padding: 0; }
.rp-verdict { margin-top: 3cqw; }

/* ---- validation: button, reward card, score strip --------------------------- */
.vbtn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid color-mix(in srgb, var(--violet) 35%, var(--line)); background: var(--card); color: var(--violet); border-radius: 999px; padding: 5px 10px 5px 7px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.vbtn .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.vbtn:hover { background: var(--violet); color: #fff; transform: translateY(-1px); }
.vbtn:active { transform: scale(.94); }
.vbadge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; }
.vbadge .ico { width: 14px; height: 14px; stroke-width: 3; }
.btn.violet { background: var(--violet); color: #fff; }
.reward { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(380px, calc(100vw - 32px)); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 18px 16px; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: var(--pop); border: 1px solid var(--line); transform: translateY(24px) scale(.96); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.4, .4, 1), opacity .25s; overflow: hidden; }
.reward.in { transform: none; opacity: 1; }
@media (max-width: 640px) { .reward { right: 16px; left: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.rw-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--violet); color: #fff; animation: rw-pop .5s cubic-bezier(.3, 1.6, .4, 1) .1s both; }
.rw-ico .ico { width: 24px; height: 24px; stroke-width: 3; }
@keyframes rw-pop { from { transform: scale(.3) rotate(-20deg); } }
.rw-body { display: grid; gap: 4px; min-width: 0; }
.rw-body > b { font-size: 22px; letter-spacing: -.02em; color: var(--violet); }
.rw-body > small { color: var(--muted); font-size: 12.5px; }
.rw-score { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rw-bar { flex: 1; height: 10px; border-radius: 999px; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 6px), var(--inner); overflow: hidden; }
.rw-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--accent)); transition: width 1.1s cubic-bezier(.3, .7, .2, 1); }
.rw-num { font-size: 18px; min-width: 2.2ch; text-align: right; }
.rw-up { color: var(--accent-ink) !important; font-weight: 600; }
.rw-undo { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.rw-burst { position: absolute; left: 42px; top: 42px; width: 0; height: 0; pointer-events: none; }
.rw-burst i { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(var(--a)) translateY(0); animation: rw-fly .8s ease-out .15s both; }
.rw-burst i:nth-child(odd) { background: var(--violet); }
@keyframes rw-fly { 0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-46px) scale(.4); opacity: 0; } }
.sstrip { display: grid; gap: 16px; margin-bottom: 22px; }
.ss-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ss-num { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.ss-num b { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--violet); }
.ss-num span { color: var(--muted); font-size: 13px; }
.ss-track { position: relative; height: 18px; border-radius: 999px; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px), var(--inner); margin-bottom: 26px; }
.ss-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet), color-mix(in srgb, var(--violet) 55%, var(--accent))); transition: width 1.1s cubic-bezier(.3, .7, .2, 1); box-shadow: 0 6px 18px color-mix(in srgb, var(--violet) 35%, transparent); }
.ss-track em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .25; border-radius: 2px; }
.ss-track em span { position: absolute; top: 100%; margin-top: 6px; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11px; color: var(--muted); }
.ss-track em:last-child span { transform: translateX(-100%); }
@media (max-width: 640px) { .ss-track em span { display: none; } }
@media (prefers-reduced-motion: reduce) { .reward, .rw-bar i, .ss-fill { transition: none; } .rw-burst { display: none; } }
.good-box { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--inner); border-left: 4px solid var(--accent); margin-bottom: 6px; }
.good-box .eyebrow-s { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); }
.good-box .eyebrow-s .ico { width: 14px; height: 14px; }
.good-box p { font-size: 14px; }
.tl-how { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.tl-open { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tl-open:hover b { color: var(--violet); }
.lvl-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.lvl-pick button { display: grid; justify-items: start; gap: 2px; min-width: 112px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.lvl-pick button b { font-size: 20px; line-height: 1; color: var(--violet); }
.lvl-pick button span { font-size: 12.5px; color: var(--muted); }
.lvl-pick button:hover { border-color: var(--violet); transform: translateY(-1px); }
.lvl-pick button[aria-pressed="true"] { border-color: var(--violet); background: var(--violet); }
.lvl-pick button[aria-pressed="true"] b, .lvl-pick button[aria-pressed="true"] span { color: #fff; }
