/* ------------------------------------------------------------------
   AI Officer styling: white ground, teal accent, deep navy type.
   Spalvos nuskaitytos iš aiofficer.lt: teal #4ba3a7, navy #0e0e4f,
   tekstas #394150.

   --brand naudojamas dekoracijai (juostoms, rėmeliams, akcentams).
   --brand-ink yra patamsintas variantas tekstui ir mygtukams: baltas
   tekstas ant gryno #4ba3a7 duoda 2.96:1 kontrastą, o WCAG reikalauja
   4.5:1. Patamsintas #387a7d duoda 4.94:1.

   Spalvą keiskite NE čia, o BRAND_COLOR aplinkos kintamuoju (hPanel) —
   tamsesnis atspalvis ir fonas apskaičiuojami automatiškai. Šios reikšmės
   naudojamos tik tada, kai BRAND_COLOR nenustatytas.

   No external font or asset requests — nothing leaves the visitor's browser.
   ------------------------------------------------------------------ */

:root {
  --brand: #4ba3a7;
  --brand-ink: #387a7d;
  --brand-dark: #2d6264;
  --brand-tint: #eef6f6;
  --alert-red: #b3261e;
  --ink: #0e0e4f;
  --ink-soft: #394150;
  --muted: #6b7280;
  --line: #e2e4e8;
  --line-strong: #c9ccd2;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --ok: #0f7b4f;

  --shell: 62rem;
  --radius: 3px;

  --sans: "Inter", "Helvetica Neue", Helvetica, "Segoe UI", system-ui, -apple-system,
    "Noto Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 1.25rem; }
.shell.narrow { max-width: 44rem; }
.shell.wide { max-width: 84rem; }

/* ---------------------------------------------------------- masthead */

.masthead {
  border-top: 5px solid var(--brand);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none;
}
.seal { display: block; width: 2.4rem; height: 2.4rem; color: var(--brand); flex: 0 0 auto; }
.seal svg { display: block; width: 100%; height: 100%; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.25; }
.wordmark-text strong {
  font-size: .95rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase;
}
.wordmark-text span { font-size: .76rem; color: var(--muted); }
.masthead-right { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.masthead-course { font-size: .8rem; color: var(--muted); text-align: right; }
.masthead-program { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; }
@media (max-width: 620px) { .masthead-right { align-items: flex-start; } }

/* -------------------------------------------------------------- hero */

.hero, .dochead { padding: 3rem 0 2rem; }
.dochead { display: flex; gap: 2rem; align-items: flex-start; justify-content: space-between; }
.dochead-main { max-width: 44rem; }
.hero { max-width: 46rem; }
.hero-kicker { margin: 0 0 .75rem; font-size: .85rem; color: var(--brand-ink); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* The form number strip: the one place where officialese all-caps belongs. */
.docmeta {
  margin: 0 0 .9rem; padding-bottom: .55rem;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}

.docstamp-box {
  flex: 0 0 auto; width: 12rem; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: .9rem .75rem; margin-top: .25rem;
}
.docstamp-label { margin: 0; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.docstamp-blank { margin: .3rem 0; font-size: 1.1rem; letter-spacing: .2em; color: var(--line-strong); }
.docstamp-note { margin: 0; font-size: .7rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) { .dochead { flex-direction: column; gap: 1.25rem; } .docstamp-box { width: 100%; } }

.secnum {
  display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; margin-right: .5rem;
  border: 1px solid var(--ink); border-radius: 2px;
  font-size: .78rem; font-weight: 700; vertical-align: 2px;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 750;
}
.hero-lead { margin: 0 0 .75rem; font-size: 1.05rem; color: var(--ink-soft); }
.hero-hint { margin: 0; font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------------- panel */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 0 1.25rem;
  background: var(--bg);
}
.panel-title { display: flex; align-items: center; margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.panel-note { margin: 0 0 1rem; font-size: .92rem; color: var(--ink-soft); }
.panel-note:last-child, .panel-note.last { margin-bottom: 0; }

/* A quietly flagged panel for "what happens next" instructions. */
.notice { border-left: 4px solid var(--brand); background: var(--brand-tint); }

.table.compare { max-width: 38rem; }

/* Access-code gate */
.gate-input {
  font-size: 1.5rem; letter-spacing: .18em; text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.gate-form .btn { margin-top: .25rem; }
.progline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }

/* Programme chips in the admin filter */
.filterbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.25rem; }
.chip {
  display: inline-block; padding: .4rem .85rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .85rem; text-decoration: none; color: var(--ink);
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.is-active { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; font-weight: 600; }
.tag {
  display: inline-block; padding: .1rem .5rem; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: .72rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------ fields */

.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: block; margin: 0 0 1rem; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; }
.field-help { display: block; font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; padding: .65rem .75rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(75, 163, 167, .18);
}

.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
  display: block; padding: .6rem 1rem; font-size: .92rem; cursor: pointer;
  border-right: 1px solid var(--line-strong); background: var(--bg);
}
.segment:last-child span { border-right: 0; }
.segment input:checked + span { background: var(--brand-ink); color: #fff; font-weight: 600; }
.segment input:disabled + span { color: var(--muted); cursor: not-allowed; }
.segment input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }

.honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.toggle, .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.toggle input, .consent input { margin-top: .28rem; accent-color: var(--brand); width: 1rem; height: 1rem; }
.consent { color: var(--ink-soft); }

/* ------------------------------------------------------ scale legend */

.scale-panel { margin-bottom: 0; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }

.scale-legend {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-soft);
}
.legend-numbers {
  display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; flex: 0 0 auto;
}
.legend-numbers li {
  width: 2.1rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted);
  cursor: help;
}
@media (max-width: 760px) {
  .scale-legend { font-size: .72rem; padding: .5rem .75rem; }
  .legend-numbers { display: none; }
}

/* --------------------------------------------------------- questions */

.questions {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
}

.question {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
}
.question:first-child { border-top: 0; }
.question:nth-child(even) { background: #fbfbfc; }
.question.is-answered .question-index { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.question.is-missing { box-shadow: inset 3px 0 0 var(--brand); }

.question-head { display: flex; gap: .9rem; align-items: flex-start; flex: 1 1 auto; min-width: 0; }

.question-index {
  flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  display: grid; place-items: center;
  font-size: .78rem; font-variant-numeric: tabular-nums;
  transition: background-color .12s ease, color .12s ease;
}

.question-body { position: relative; min-width: 0; }

.stmt {
  display: inline; cursor: help;
  border-bottom: 1px dotted var(--line-strong);
}
.stmt:hover, .stmt:focus { border-bottom-color: var(--brand); }

.tip {
  position: absolute; left: 0; top: calc(100% + .5rem); z-index: 20;
  display: none; width: min(30rem, 80vw);
  padding: .6rem .75rem;
  background: var(--ink); color: #fff;
  font-size: .86rem; line-height: 1.4; border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.stmt:hover + .tip, .stmt:focus + .tip { display: block; }

body.show-en .tip {
  display: block; position: static; width: auto;
  margin-top: .35rem; background: transparent; color: var(--muted);
  padding: 0; box-shadow: none; font-style: italic;
}

.question-factor { display: block; margin-top: .3rem; font-size: .76rem; color: var(--muted); }

.likert { display: flex; gap: .35rem; border: 0; margin: 0; padding: 0; flex: 0 0 auto; }
.likert-option { position: relative; }
.likert-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.likert-dot {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--muted);
  background: var(--bg);
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.likert-option:hover .likert-dot { border-color: var(--brand); color: var(--brand-ink); }
.likert-option input:checked + .likert-dot {
  background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; font-weight: 600;
}
.likert-option input:focus-visible + .likert-dot { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 760px) {
  .question { flex-direction: column; align-items: stretch; gap: .85rem; padding: 1rem; }
  .likert { justify-content: space-between; gap: .25rem; }
  .likert-dot { width: 2.4rem; height: 2.4rem; }
  .tip { width: 100%; }
}

/* --------------------------------------------------------- submitbar */

.submitbar {
  position: sticky; bottom: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.submitbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: .85rem; padding-bottom: .85rem;
}
.progress { margin: 0; font-size: .88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.progress.is-complete { color: var(--ok); font-weight: 600; }

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-block; padding: .7rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: .85rem;
  color: var(--brand-ink); cursor: pointer; text-decoration: underline;
}
.inline-form { display: inline; }

/* ------------------------------------------------------------ alerts */

.alert {
  border: 1px solid var(--line-strong); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem;
  font-size: .92rem; background: var(--brand-tint);
}
.alert-title { margin: 0 0 .35rem; font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-foot { margin: .6rem 0 0; font-size: .84rem; color: var(--muted); font-style: italic; }
.alert-warn { background: #fff9ec; border-left-color: #d99000; }
.alert-ok { background: #eefaf3; border-left-color: var(--ok); }

/* ------------------------------------------------------------ scores */

.score-headline { margin: 0 0 .75rem; display: flex; align-items: baseline; gap: .5rem; }
.score-big { font-size: 3rem; font-weight: 750; letter-spacing: -0.04em; color: var(--brand-ink); line-height: 1; }
.score-unit { color: var(--muted); font-size: 1rem; }

.bars { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .8rem; }
.bar { display: grid; grid-template-columns: 15rem 1fr 3rem; align-items: center; gap: .75rem; font-size: .9rem; }
.bar-track { display: block; height: .5rem; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr 3rem; } .bar-track { grid-column: 1 / -1; } }

/* ------------------------------------------------------- certificate */

.certificate {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 2.5rem 2rem 1.75rem;
  background: var(--bg);
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  text-align: center;
  overflow: hidden;
}

.cert-kicker {
  margin: 0 0 1.5rem; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.cert-name { margin: 0 0 .35rem; font-size: 1rem; color: var(--ink-soft); }
.cert-rank {
  margin: 0 0 .75rem;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem); font-weight: 750;
  letter-spacing: -0.025em; line-height: 1.15; color: var(--brand-ink);
}
.cert-verdict {
  margin: 0 auto .6rem; max-width: 34rem; font-size: 1rem; font-weight: 600; color: var(--ink);
}
.cert-remark { margin: 0 auto 1.75rem; max-width: 34rem; font-size: .95rem; color: var(--ink-soft); }

/* Outcome colouring: only a granted permit gets the full blue treatment. */
.certificate.is-pending, .certificate.is-deferred { border-color: var(--line-strong); outline-color: var(--line-strong); }
.certificate.is-pending .cert-rank, .certificate.is-deferred .cert-rank { color: var(--ink); }
.certificate.is-declined { border-color: var(--line-strong); outline-color: var(--line-strong); }
.certificate.is-declined .cert-rank { color: var(--alert-red); }

.cert-facts dd.up { color: var(--ok); }
.cert-facts dd.down { color: var(--alert-red); }

.cert-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  margin: 0 0 1.5rem; padding: 1.1rem 0 0; border-top: 1px solid var(--line);
}
.cert-facts dt { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cert-facts dd { margin: .2rem 0 0; font-size: 1rem; font-weight: 600; }
.cert-facts .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.cert-foot { margin: 0; font-size: .74rem; color: var(--muted); }

/* The one deliberate flourish on the whole site: the stamp lands once. */
.cert-stamp {
  position: absolute; top: 1.1rem; right: 1.1rem;
  display: grid; place-content: center; gap: .1rem;
  width: 7.5rem; height: 7.5rem; padding: .5rem;
  border: 3px double var(--brand); border-radius: 50%;
  color: var(--brand); text-align: center; opacity: .78;
  transform: rotate(-14deg);
  animation: stamp .45s cubic-bezier(.2, 1.4, .5, 1) both;
}
.cert-stamp-pending, .cert-stamp-deferred { border-style: dashed; color: var(--muted); border-color: var(--line-strong); }
.cert-stamp-declined { color: var(--alert-red); border-color: var(--alert-red); }
.cert-stamp-top, .cert-stamp-bot { font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }
.cert-stamp-mid { font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; }

@keyframes stamp {
  0%   { opacity: 0; transform: rotate(-14deg) scale(2.6); }
  70%  { opacity: .9; transform: rotate(-14deg) scale(.94); }
  100% { opacity: .78; transform: rotate(-14deg) scale(1); }
}

@media (max-width: 620px) {
  .certificate { padding: 1.5rem 1.1rem; }
  .cert-stamp { position: static; margin: 0 auto 1.25rem; width: 6.5rem; height: 6.5rem; }
}

/* ------------------------------------------------------------ tables */

.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-strong); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }
.table .cell-wide { max-width: 34rem; }
.table .up { color: var(--ok); font-weight: 600; }
.table .down { color: var(--alert-red); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ------------------------------------------------------------ footer */

.footer { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.75rem 0 3rem; }
.footer-smallprint { margin: 0 0 .75rem; font-size: .8rem; color: var(--ink-soft); max-width: 52rem; }
.footer-cite { margin: 0 0 .5rem; font-size: .78rem; color: var(--muted); max-width: 52rem; }
.footer-meta { margin: 0; font-size: .8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .cert-stamp { opacity: .78; }
}

@media print {
  .submitbar, .masthead-course { display: none; }
  .certificate { break-inside: avoid; }
}

/* ------------------------------------------------- portal: scorebar & tasks */

.scorebar {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 1.5rem;
  background: var(--bg);
}
.scorebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.scorebar-kicker { margin: 0 0 .2rem; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.scorebar-count { margin: 0; font-size: 1.05rem; }
.scorebar-count strong { font-size: 1.5rem; letter-spacing: -.02em; }
.scorebar-percent { margin: 0; font-size: 2.2rem; font-weight: 750; letter-spacing: -.04em;
  color: var(--brand-ink); line-height: 1; }
.scorebar-percent span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.scorebar-track { height: .55rem; margin: .9rem 0 1rem; background: var(--bg-alt);
  border-radius: 999px; overflow: hidden; }
.scorebar-fill { display: block; height: 100%; background: var(--brand); }
.scorebar-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem;
  font-size: .9rem; color: var(--ink-soft); }
.scorebar-facts .ok { color: var(--ok); }
.scorebar-facts .muted { color: var(--muted); font-size: .85rem; }

.tasklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.taskcard {
  display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.taskcard.is-complete { border-left: 4px solid var(--ok); }
.taskcard.is-started { border-left: 4px solid var(--line-strong); }
.taskcard-main { min-width: 0; }
.taskcard-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin: 0 0 .5rem; font-size: .76rem; color: var(--muted); }
.taskcard h2 { margin: 0 0 .35rem; font-size: 1.15rem; letter-spacing: -.02em; }
.taskcard-summary { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.taskcard-waves { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); }
.taskcard-actions { display: flex; flex-direction: column; gap: .5rem; flex: 0 0 auto; }
.taskcard-actions .btn { white-space: nowrap; text-align: center; font-size: .88rem; padding: .55rem 1rem; }
.state { padding: .1rem .5rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.state.ok { color: var(--ok); border-color: #bfe3d0; background: #eefaf3; }
.state.part { color: var(--ink-soft); }
@media (max-width: 760px) {
  .taskcard { flex-direction: column; gap: 1rem; }
  .taskcard-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
}

.whobox { background: var(--bg-alt); }
.masthead-who { color: var(--muted); }

/* ------------------------------------------------------- generic task form */

textarea, select {
  width: 100%; padding: .65rem .75rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); background: var(--bg); resize: vertical;
}
textarea:focus, select:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(75, 163, 167, .18);
}
.fieldnum {
  display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem;
  margin-right: .4rem; border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: .72rem; color: var(--muted); vertical-align: 1px;
}

.answers { margin: 0; display: grid; gap: 1rem; }
.answers dt { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.answers dd { margin: 0; white-space: pre-wrap; }

/* ------------------------------------------------------------ admin extras */

.checkset { border: 0; margin: 0 0 1rem; padding: 0; }
.checkrow {
  display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; margin-bottom: .5rem;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.checkrow:hover { border-color: var(--brand); }
.checkrow input { margin-top: .25rem; accent-color: var(--brand); width: 1rem; height: 1rem; }
.checkrow-summary { display: block; margin-top: .25rem; font-size: .85rem; color: var(--ink-soft); }
.checkrow .tag { margin-left: .35rem; }
.small { font-size: .78rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.nowrap .inline-form { margin-left: .5rem; }

/* ----------------------------------------------------- brand & disclaimer */

.footer-disclaimer {
  margin: 0 0 1rem; padding: .9rem 1.1rem;
  border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  border-radius: var(--radius); background: var(--bg-alt);
  font-size: .82rem; color: var(--ink-soft); max-width: 58rem;
}
.footer-disclaimer strong { color: var(--ink); }
.footer-meta .powered { font-weight: 600; color: var(--ink); }
.footer-sep { margin: 0 .5rem; color: var(--line-strong); }

.hero-note {
  margin: .9rem 0 0; padding: .7rem .9rem;
  border-left: 3px solid var(--line-strong); background: var(--bg-alt);
  font-size: .84rem; color: var(--ink-soft);
}

/* ------------------------------------------------------------------- quiz */

.quiz { list-style: none; margin: 0 0 1.25rem; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); }
.quizq { padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); }
.quizq:first-child { border-top: 0; }
.quizq:nth-child(even) { background: #fbfbfc; }
.quizq.is-missing { box-shadow: inset 3px 0 0 var(--brand); }
.quizq-prompt { margin: 0 0 .75rem; font-size: .98rem; }
.quizq-options { display: grid; gap: .4rem; }

.optrow {
  display: flex; gap: .65rem; align-items: flex-start; cursor: pointer;
  padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-size: .92rem;
}
.optrow:hover { border-color: var(--brand); }
.optrow input { margin-top: .2rem; accent-color: var(--brand-ink); width: 1rem; height: 1rem; }
.optrow:has(input:checked) { border-color: var(--brand-ink); background: var(--brand-tint); }

.graded { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.gradeq { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.gradeq.is-right { border-left: 4px solid var(--ok); }
.gradeq.is-wrong { border-left: 4px solid var(--alert-red); }
.gradeq-prompt { margin: 0 0 .5rem; font-size: .95rem; font-weight: 600; }
.gradeq-answer { margin: 0 0 .5rem; font-size: .92rem; }
.gradeq-explain { margin: 0; font-size: .89rem; color: var(--ink-soft); }
.mark { display: inline-block; padding: .05rem .45rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; margin-right: .35rem; }
.mark.ok { background: #eefaf3; color: var(--ok); border: 1px solid #bfe3d0; }
.mark.no { background: #fdeeee; color: var(--alert-red); border: 1px solid #f0c8c6; }
.sector-tag { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }

/* ------------------------------------------------- admin: task management */

.switch {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .75rem .35rem .5rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); font: inherit; font-size: .8rem; color: var(--muted);
}
.switch-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line-strong); }
.switch.is-on { border-color: var(--ok); color: var(--ok); background: #eefaf3; }
.switch.is-on .switch-dot { background: var(--ok); }
.switch:hover { border-color: var(--ink); }

tr.is-off td { opacity: .55; }
tr.is-off .tag { opacity: .8; }

.btn-move {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; font: inherit; font-size: .8rem;
  width: 1.7rem; height: 1.7rem; line-height: 1; color: var(--ink-soft);
}
.btn-move:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-ink); }
.btn-move:disabled { opacity: .3; cursor: default; }
.movecell .inline-form + .inline-form { margin-left: .2rem; }

.taskcell { min-width: 16rem; }
.taskchip {
  display: inline-block; margin: 0 .25rem .25rem 0; padding: .2rem .55rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem;
  color: var(--muted);
}
.taskchip:hover { border-color: var(--brand); color: var(--brand-ink); }
.taskchip.is-on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.taskchip.is-off { text-decoration: line-through; opacity: .55; }

.checkset-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.checkset-tools input[type="search"] {
  flex: 1 1 14rem; padding: .5rem .7rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.checkrow.is-off { background: var(--bg-alt); }
.checkrow-off { display: block; margin-top: .25rem; font-size: .78rem; color: var(--alert-red); }
.checkrow.is-hidden { display: none; }
tr.is-idle td { background: #fffaf0; }
tr.is-idle .state { color: #9a6700; }

/* --------------------------------------------------------- brief review */

.review.is-raw { border-left: 4px solid var(--alert-red); }
.review.is-ready { border-left: 4px solid var(--ok); }
.review-verdict { margin: 0 0 .9rem; font-size: 1rem; font-weight: 600; }
.review-list { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.review-list li { font-size: .9rem; color: var(--ink-soft); padding-left: .2rem; }
.review-list li.lvl-stop { color: var(--ink); }
.ai-block {
  margin: 0 0 1rem; padding: .7rem .9rem; background: var(--bg-alt);
  border-left: 3px solid var(--brand); border-radius: var(--radius);
  font-size: .93rem; white-space: pre-wrap;
}

/* ------------------------------------------------------- prompt for a PoC */

.prompt-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap;
}
.prompt-text {
  margin: 0 0 1rem; padding: 1rem 1.1rem; max-height: 26rem; overflow: auto;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.howto { margin: 0 0 1rem; padding-left: 1.2rem; font-size: .92rem; color: var(--ink-soft); }
.howto li { margin-bottom: .4rem; }
.btn.is-copied { background: var(--ok); }

/* ------------------------------------------------------- task attachments */

.resources { border-left: 4px solid var(--brand); background: var(--brand-tint); }
.filelist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.filelink {
  display: flex; gap: .85rem; align-items: flex-start; text-decoration: none;
  padding: .8rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.filelink:hover { border-color: var(--brand-ink); color: var(--ink); }
.filetype {
  flex: 0 0 auto; display: grid; place-items: center; min-width: 3rem; padding: .25rem .4rem;
  background: var(--brand-ink); color: #fff; border-radius: var(--radius);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
}
.filelink strong { display: block; font-size: .95rem; }
.filenote { display: block; margin-top: .2rem; font-size: .84rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ demos */

.demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; text-decoration: none;
  border: 1px solid var(--brand); border-left: 4px solid var(--brand);
  border-radius: var(--radius); background: var(--brand-tint); color: var(--ink);
}
.demo-banner:hover { background: #e6f1f1; color: var(--ink); }
.demo-banner strong { display: block; font-size: 1rem; margin-bottom: .15rem; }
.demo-banner span { font-size: .88rem; color: var(--ink-soft); }
.demo-banner-go { font-weight: 700; color: var(--brand-ink); white-space: nowrap; }

.demoframe {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 1.25rem; background: var(--bg);
}
.demoframe iframe { display: block; width: 100%; height: 78vh; min-height: 30rem; border: 0; }
@media (max-width: 760px) { .demoframe iframe { height: 60vh; } }
.demo-scope .panel { margin-bottom: 0; }
.demo-scope { margin-bottom: 1.25rem; }

/* Stars */
.stars { display: flex; align-items: center; gap: .15rem; }
.star { position: relative; cursor: pointer; line-height: 1; }
.star input { position: absolute; opacity: 0; width: 0; height: 0; }
.star span[aria-hidden] { font-size: 1.9rem; color: var(--line-strong); transition: color .1s; }
.stars:hover .star span[aria-hidden] { color: #e8b93a; }
.star:hover ~ .star span[aria-hidden] { color: var(--line-strong); }
.stars.picked .star span[aria-hidden] { color: var(--line-strong); }
.star.on span[aria-hidden] { color: #e8b93a; }
.star input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.stars-hint { margin-left: .6rem; font-size: .85rem; color: var(--muted); }

.fb-plus::before { content: "+"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem;
  margin-right: .4rem; border-radius: 50%; background: #eefaf3; color: var(--ok);
  border: 1px solid #bfe3d0; font-size: .8rem; vertical-align: -2px; }
.fb-minus::before { content: "\2212"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem;
  margin-right: .4rem; border-radius: 50%; background: #fdeeee; color: var(--alert-red);
  border: 1px solid #f0c8c6; font-size: .8rem; vertical-align: -2px; }

/* Admin feedback */
.fb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  flex-wrap: wrap; margin-bottom: .9rem; }
.fb-score b { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; color: var(--brand-ink); }
.fb-score span { font-size: .82rem; color: var(--muted); margin-left: .4rem; }
.dist { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .25rem; max-width: 22rem; }
.dist li { display: grid; grid-template-columns: 2.6rem 1fr 1.6rem; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--muted); }
.dist-bar { height: .45rem; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: #e8b93a; }
.dist-c { text-align: right; font-variant-numeric: tabular-nums; }

.fb-col h3 { margin: 0 0 .6rem; font-size: .9rem; }
.fb-col h3 span { font-weight: 400; color: var(--muted); }
.fb-col blockquote { margin: 0 0 .7rem; padding: .7rem .85rem; border-radius: var(--radius);
  border: 1px solid var(--line); }
.fb-col-plus blockquote { border-left: 3px solid var(--ok); background: #f7fdfa; }
.fb-col-minus blockquote { border-left: 3px solid var(--alert-red); background: #fffafa; }
.fb-col blockquote p { margin: 0 0 .35rem; font-size: .9rem; white-space: pre-wrap; }
.fb-col cite { font-style: normal; font-size: .76rem; color: var(--muted); }

/* ------------------------------------------------------------- journey */

.jn-steps { display: flex; gap: .3rem; margin: 0 0 1rem; }
.jn-step { flex: 1; height: .35rem; border-radius: 999px; background: var(--line); }
.jn-step.done { background: var(--brand); }
.jn-step.now { background: var(--brand-ink); }

.jn-panel { min-height: 26rem; }
.jn-kicker { margin: 0 0 .4rem; font-size: .74rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); }
.jn-h { margin: 0 0 .5rem; font-size: 1.35rem; letter-spacing: -.02em; }
.jn-lead { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .95rem; }
.jn-prompt { margin: 0 0 1.1rem; font-size: 1.12rem; line-height: 1.45; }

.jn-list { margin: 0 0 1.3rem; padding-left: 1.2rem; display: grid; gap: .45rem; }
.jn-list b { font-size: .95rem; }
.jn-list div { font-size: .8rem; color: var(--muted); margin-top: .1rem; }

.jn-opts { display: grid; gap: .5rem; margin: 0 0 1rem; }
.jn-opt {
  display: flex; gap: .7rem; align-items: center; text-align: left; width: 100%;
  font: inherit; font-size: .95rem; cursor: pointer;
  padding: .75rem .9rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.jn-opt:hover:not(:disabled) { border-color: var(--brand); }
.jn-opt:disabled { cursor: default; }
.jn-box { width: 1.05rem; height: 1.05rem; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line-strong); }
.jn-opt.sel { border-color: var(--brand-ink); background: var(--brand-tint); }
.jn-opt.sel .jn-box { background: var(--brand-ink); border-color: var(--brand-ink);
  box-shadow: inset 0 0 0 3px #fff; }
.jn-opt.right { border-color: var(--ok); background: #f3fbf7; }
.jn-opt.right .jn-box { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.jn-opt.wrong { border-color: var(--alert-red); background: #fffafa; }
.jn-opt.wrong .jn-box { background: var(--alert-red); border-color: var(--alert-red); box-shadow: inset 0 0 0 3px #fff; }

.jn-hint { margin: -.5rem 0 1rem; font-size: .8rem; color: var(--muted); }
.jn-fb { border-radius: var(--radius); padding: .8rem .95rem; margin: 0 0 1.1rem; font-size: .92rem; }
.jn-fb b { display: block; margin-bottom: .2rem; }
.jn-fb.ok { border-left: 3px solid var(--ok); background: #f3fbf7; }
.jn-fb.no { border-left: 3px solid var(--alert-red); background: #fffafa; }
.jn-prog { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); }
.jn-score { margin: 0 0 1rem; font-size: 1rem; color: var(--muted); }
.jn-score b { font-size: 2.2rem; color: var(--brand-ink); letter-spacing: -.03em; }

.jn-summary { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.jn-summary li { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .95rem; }
.jn-summary li.is-full { border-left: 4px solid var(--ok); }
.jn-summary li.is-ok { border-left: 4px solid var(--brand); }
.jn-summary li.is-low { border-left: 4px solid #d99000; }
.jn-sum-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.jn-sum-dep { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jn-sum-top b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.jn-sum-title { margin: .1rem 0 .5rem; font-weight: 600; font-size: .98rem; }
.jn-bar {
  display: block; height: .45rem; margin: .1rem 0 0;
  background: var(--bg-alt); border-radius: 999px; overflow: hidden;
}
.jn-bar span { display: block; height: 100%; background: var(--brand); }
.jn-summary li.is-full .jn-bar span { background: var(--ok); }
.jn-summary li.is-low .jn-bar span { background: #d99000; }
.jn-sum-done { margin: .6rem 0 0; font-size: .85rem; color: var(--ink-soft); }

/* ================================================================ HR session */

.btn-wide { width: 100%; text-align: center; padding: .85rem 1rem; font-size: 1rem; }
.seg-wrap { display: flex; flex-wrap: wrap; }
.seg-wrap .segment { flex: 1 1 auto; }
.seg-wrap .segment span { text-align: center; }

.prose h2 { margin: 1.1rem 0 .3rem; font-size: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: .93rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; margin: 0 0 .6rem; }

/* diagnostic wizard */
.hd-opts { display: grid; gap: .5rem; margin: 0 0 1rem; }
.hd-opt {
  display: flex; gap: .8rem; align-items: flex-start; width: 100%; text-align: left;
  font: inherit; cursor: pointer; padding: .8rem .9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.hd-opt:hover { border-color: var(--brand); }
.hd-opt.sel { border-color: var(--brand-ink); background: var(--brand-tint); }
.hd-n {
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.hd-opt.sel .hd-n { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.hd-opt b { display: block; font-size: .95rem; }
.hd-opt span span { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: .1rem; }
.hd-opt em { display: block; font-size: .82rem; color: var(--brand-ink); margin-top: .3rem; }
.hd-back { margin-top: .3rem; }
.hd-review { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.hd-review li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0;
  border-bottom: 1px solid var(--line); font-size: .9rem; }
.hd-review li span { color: var(--ink-soft); }
.hd-foot { font-size: .74rem; color: var(--muted); margin: 0 0 1rem; }

/* result */
.hr-cell { color: var(--brand-ink); }
.hr-role { border-left: 4px solid var(--brand); background: var(--brand-tint); }
.hr-role-kicker { margin: 0 0 .3rem; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-ink); font-weight: 700; }
.hr-role p { margin: 0 0 .5rem; }
.hr-q { font-size: .9rem; color: var(--ink-soft); margin-bottom: 0 !important; }

.radar { display: block; width: 100%; max-width: 26rem; margin: 0 auto; }
.radar-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-me { fill: rgba(75, 163, 167, .25); stroke: var(--brand-ink); stroke-width: 2; }
.radar-room { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 5 4; }
.radar-dot { fill: var(--brand-ink); }
.radar-label { font-size: 11px; fill: var(--ink-soft); font-family: inherit; }
.radar-legend { text-align: center; font-size: .84rem; color: var(--ink-soft); margin: .4rem 0 0; }
.lg { display: inline-block; width: 1.4rem; height: .55rem; vertical-align: middle; margin: 0 .3rem 0 .7rem; border-radius: 2px; }
.lg-me { background: rgba(75, 163, 167, .35); border: 2px solid var(--brand-ink); }
.lg-room { border-top: 2px dashed var(--ink); height: 0; }

.hr-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .9rem; }
.hr-steps p { margin: 0; }
.hr-step-meta { font-size: .8rem; color: var(--muted); margin-bottom: .25rem !important; }

.hr-groups { gap: .8rem; }
.hr-group { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; }
.hr-group p { margin: 0 0 .3rem; }
.hr-group-wall { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hr-group-name { font-size: 1.1rem; font-weight: 700; color: var(--brand-ink); }
.hr-group-body { font-size: .86rem; color: var(--ink-soft); margin: 0 !important; }

.hr-pos { margin: .2rem 0 0; font-size: .95rem; }

/* commitment card */
.hr-card { text-align: left; }
.hr-card .cert-kicker, .hr-card .cert-name { text-align: left; }
.hr-card-pos { margin: 0 0 1.2rem; font-weight: 600; color: var(--brand-ink); }
.hr-card-list { margin: 0 0 1.2rem; display: grid; gap: .9rem; }
.hr-card-list dt { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hr-card-list dd { margin: .2rem 0 0; font-size: 1rem; }
.hr-card-action { font-size: 1.2rem !important; font-weight: 700; color: var(--ink); }
@media (max-width: 620px) { .hr-card .cert-stamp { margin: 0 0 1rem; } }

/* ============================================================ presenter view */

body.pv { background: #fff; min-height: 100vh; }
.pv-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 2rem; border-bottom: 1px solid var(--line); border-top: 5px solid var(--brand); }
.pv-kicker { margin: 0; font-size: .9rem; color: var(--muted); }
.pv-count { margin: 0; font-size: 1.4rem; }
.pv-count b { font-size: 2.2rem; color: var(--brand-ink); }
.pv-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pv-tabs button { font: inherit; font-size: .95rem; padding: .5rem 1rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-soft); }
.pv-tabs button.on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.pv-main { padding: 1.5rem 2rem 2.5rem; }
.pv-main h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1.2rem; letter-spacing: -.02em; }

.pv-ch { list-style: none; margin: 0; padding: 0; columns: 2 26rem; column-gap: 1.2rem; }
.pv-ch li { break-inside: avoid; margin: 0 0 1rem; padding: 1rem 1.2rem; font-size: 1.25rem; line-height: 1.4;
  border-left: 4px solid var(--brand); background: var(--brand-tint); border-radius: var(--radius); }
.pv-ch li.empty { border-left-color: var(--line-strong); background: var(--bg-alt); color: var(--muted); }

.pv-grid-wrap { display: flex; align-items: stretch; gap: .6rem; }
.pv-yaxis { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center;
  color: var(--brand-ink); font-weight: 700; letter-spacing: .05em; }
.pv-grid { flex: 1; display: grid; grid-template-columns: 7rem repeat(3, 1fr); gap: .5rem; }
.pv-rowlabel { display: flex; align-items: center; justify-content: flex-end; padding-right: .6rem;
  font-weight: 700; font-size: 1.25rem; }
.pv-cell { min-height: 9rem; background: var(--bg-alt); border-radius: var(--radius); padding: .8rem 1rem;
  display: flex; flex-direction: column; justify-content: space-between; }
.pv-cell.has { background: var(--brand-tint); outline: 2px solid var(--brand); outline-offset: -2px; }
.pv-cellname { font-size: 1.1rem; color: var(--ink-soft); }
.pv-cell.has .pv-cellname { color: var(--ink); font-weight: 600; }
.pv-dots { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.pv-dotrow { display: flex; flex-wrap: wrap; gap: .3rem; }
.pv-dotrow i { width: .95rem; height: .95rem; border-radius: 50%; background: var(--brand-ink); }
.pv-dots b { font-size: 2rem; line-height: 1; color: var(--brand-ink); }
.pv-collabel { text-align: center; font-weight: 700; font-size: 1.05rem; padding-top: .3rem; }
.pv-xaxis { text-align: center; color: var(--brand-ink); font-weight: 700; margin: .3rem 0 0 7rem; }

.pv-radar { display: block; width: 100%; max-width: 44rem; margin: 0 auto; }
.pv-rlabel { font-size: 17px; fill: var(--ink); }
.pv-wait { font-size: 1.3rem; color: var(--muted); }

.pv-toggle { display: inline-flex; gap: .5rem; align-items: center; font-size: .95rem; margin: 0 0 1rem; }
.pv-toggle span { color: var(--alert-red); font-size: .85rem; }
.pv-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pv-groups h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.pv-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pv-groups li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem;
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.15rem; }
.pv-groups li span { font-weight: 700; color: var(--brand-ink); }
.pv-groups li.small { border-color: #d99000; background: #fff9ec; }
.pv-groups li.small span { color: #9a6700; }
.pv-who { flex-basis: 100%; margin: .2rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.pv-note { margin-top: 1rem; color: var(--muted); }
.gate-en { display: block; margin-top: .25rem; color: var(--ink-soft); }

/* ------------------------------------------------------- PRD upload (DI-26) */
.prd-file { display: flex; gap: .7rem; align-items: center; margin: 0 0 .6rem; font-size: .95rem; }
.prd-file .muted { display: block; font-size: .82rem; }
.prd-ext {
  flex: 0 0 auto; font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  background: var(--brand-tint); color: var(--brand-ink);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: .25rem .45rem;
}
input[type="file"] {
  width: 100%; font: inherit; font-size: .9rem; padding: .5rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-alt);
}

/* Demonstracijų juosta kodams, kuriems tai svarbiausia — rodoma pirma. */
.demo-banner.is-lead { border-color: var(--brand); background: var(--brand-tint); }
.demo-count {
  display: inline-block; margin-left: .4rem; min-width: 1.35rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--brand-ink); color: #fff;
  font-size: .78rem; line-height: 1.35rem; text-align: center; vertical-align: 1px;
}
