/* Mise · progress area styles: #answers, #answers/:id, #profile, #leaderboard.
   Every rule is prefixed with .v-progress (the view root) or .v-progress-cert (the certificate layer). */

/* ---------- Shared bits ---------- */
.v-progress .pv-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex: none; }
.v-progress .pv-back { display: inline-flex; margin: -4px 0 14px; font-size: 13.5px; }
.v-progress .pv-sub { margin-top: 3px; font-size: 13px; color: var(--muted); }
.v-progress .pv-sub .num { color: var(--ink); }
.v-progress .pv-sec {
  display: flex; align-items: center; gap: 12px; margin: 34px 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.v-progress .pv-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ==========================================================================
   #answers
   ========================================================================== */
.v-progress .pv-sum { display: grid; gap: 8px; min-width: 280px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
.v-progress .pv-sum__nums { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.v-progress .pv-sum__nums b { font-size: 20px; color: var(--ink); margin-right: 3px; }
.v-progress .pv-sum__nums small { font-size: 13px; color: var(--muted); margin-right: 4px; }
.v-progress .pv-sum__bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.v-progress .pv-sum__seg { display: block; flex-basis: 0; border-radius: 2px; transform-origin: left; animation: pv-grow var(--d-draw) var(--ease-out) 200ms both; }
.v-progress .pv-sum__seg--met { background: var(--success); }
.v-progress .pv-sum__seg--partly { background: var(--warn); }
.v-progress .pv-sum__seg--notyet { background: var(--danger); }
@keyframes pv-grow { from { transform: scaleX(0); } }
.v-progress .pv-sum__key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.v-progress .pv-sum__key > span { display: inline-flex; align-items: center; gap: 6px; }
.v-progress .pv-sum__key .num { color: var(--ink); }
.v-progress .pv-key { width: 8px; height: 8px; border-radius: 2px; }
.v-progress .pv-key--met { background: var(--success); }
.v-progress .pv-key--partly { background: var(--warn); }
.v-progress .pv-key--notyet { background: var(--danger); }

.v-progress .pv-bar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 10px 12px; align-items: center; margin-bottom: 14px; }
.v-progress .pv-search { position: relative; min-width: 0; }
.v-progress .pv-search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.v-progress .pv-search .input { padding-left: 38px; }
.v-progress .pv-search .input::-webkit-search-cancel-button { -webkit-appearance: none; }
.v-progress .pv-selects { display: flex; gap: 8px; }
.v-progress .pv-selects .select { width: auto; min-width: 150px; font-size: 14px; }
.v-progress .pv-results-seg { min-width: 0; }
.v-progress .pv-count { margin: -2px 0 12px; font-size: 13px; color: var(--muted); }
.v-progress .pv-count .link { font-size: 13px; }
.v-progress .pv-results { display: grid; gap: 16px; }

.v-progress .pv-group { overflow: hidden; }
.v-progress .pv-group__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.v-progress .pv-group__cover { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.v-progress .pv-group__cover .media { width: 100%; height: 100%; }
.v-progress .pv-group__txt { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.v-progress .pv-group__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.v-progress .pv-group__meta .num { color: var(--ink); }
.v-progress .pv-group__link { font-size: 13.5px; flex: none; }

.v-progress .pv-list { display: grid; }
.v-progress .pv-list > li + li { border-top: 1px solid var(--line); }
.v-progress .pv-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center;
  padding: 14px 18px; transition: background-color var(--d-fast) var(--ease-out);
}
.v-progress .pv-row:hover { background: var(--surface-2); }
.v-progress .pv-row:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 2px var(--primary); }
.v-progress .pv-row__main { display: grid; gap: 4px; min-width: 0; }
.v-progress .pv-row__q { font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-progress .pv-row__qn { display: inline-block; margin-right: 8px; font-size: 12.5px; color: var(--muted); }
.v-progress .pv-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12.5px; color: var(--muted); }
.v-progress .pv-row__meta .num { color: var(--ink-2); }
.v-progress .pv-row__topic { color: var(--ink-2); font-weight: 600; }
.v-progress .pv-row__lock { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 2px; padding: 2px 8px 2px 6px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.v-progress .pv-row__lock .icon { color: var(--primary); }
.v-progress .pv-row__end { display: flex; align-items: center; gap: 12px; }
.v-progress .pv-row__mark { font-size: 17px; min-width: 44px; text-align: right; }
.v-progress .pv-row__mark small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.v-progress .pv-row__end .pill { min-width: 82px; justify-content: center; }
.v-progress .pv-row__chev { color: var(--faint); transition: transform var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out); }
.v-progress .pv-row:hover .pv-row__chev { color: var(--muted); transform: translateX(2px); }
.v-progress .pv-flat { overflow: hidden; }

/* ==========================================================================
   #answers/:id
   ========================================================================== */
.v-progress .pv-detail__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.v-progress .pv-detail__cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.v-progress .pv-detail__main { display: grid; gap: 16px; min-width: 0; }
.v-progress .pv-detail__rail { display: grid; gap: 16px; min-width: 0; position: sticky; top: calc(var(--topbar-h) + 12px); }
.v-progress .pv-older .link { flex: none; font-size: 13.5px; }
.v-progress .pv-chit__q { font-family: var(--font-display); font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; color: var(--ink); max-width: 46ch; }
.v-progress .pv-chit .chit__heading { flex: 1 1 320px; min-width: 0; }
.v-progress .pv-chit .chit__your { margin-top: 0; }
.v-progress .pv-actions { gap: 10px 16px; }
.v-progress .pv-actions .btn[aria-disabled="true"] { opacity: .45; }
.v-progress .pv-retake-note { font-size: 13px; color: var(--muted); }
.v-progress .pv-lock { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.v-progress .pv-lock b { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.v-progress .pv-ask__btn { gap: 6px; }
.v-progress .pv-ask.is-sent .tickline { color: var(--ink-2); font-size: 12.5px; }

/* multiple choice */
.v-progress .pv-mc__body { display: grid; gap: 16px; padding: 18px 22px 20px; border-top: 1px dashed var(--line-strong); }
.v-progress .pv-opts { display: grid; gap: 8px; }
.v-progress .pv-opt {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; color: var(--ink-2);
}
.v-progress .pv-opt__key { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 13px; color: var(--muted); }
.v-progress .pv-opt__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.v-progress .pv-opt.is-correct { border-color: color-mix(in srgb, var(--success) 40%, var(--line)); background: color-mix(in srgb, var(--success-soft) 70%, var(--surface)); color: var(--ink); font-weight: 500; }
.v-progress .pv-opt.is-correct .pv-opt__key { background: var(--success); color: var(--on-fill); box-shadow: none; }
.v-progress .pv-opt.is-wrong { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); border-style: dashed; color: var(--ink); }
.v-progress .pv-opt.is-wrong .pv-opt__key { box-shadow: inset 0 0 0 1.5px var(--danger); color: var(--danger); }
.v-progress .pv-why { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.v-progress .pv-why__k { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }

/* attempt history */
.v-progress .pv-tl__list { position: relative; display: grid; gap: 2px; margin: 0 -8px; }
.v-progress .pv-tl__item { position: relative; }
.v-progress .pv-tl__item + .pv-tl__item::before { content: ''; position: absolute; left: 21px; top: -10px; height: 18px; width: 1.5px; background: var(--line-strong); }
.v-progress .pv-tl__item--next::before { background: none !important; border-left: 1.5px dashed var(--line-strong); width: 0 !important; }
.v-progress .pv-tl__link, .v-progress .pv-tl__item--next { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; }
.v-progress .pv-tl__link { transition: background-color var(--d-fast) var(--ease-out); }
.v-progress .pv-tl__link:hover { background: var(--surface-2); }
.v-progress .pv-tl__item.is-current .pv-tl__link { background: var(--primary-soft); }
.v-progress .pv-tl__txt { display: grid; gap: 1px; min-width: 0; }
.v-progress .pv-tl__top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.v-progress .pv-tl__top b { font-weight: 600; color: var(--muted); font-size: 13px; }
.v-progress .pv-tl__top .num { font-size: 15px; }
.v-progress .pv-tl__top small { font-size: 12px; color: var(--muted); }
.v-progress .pv-tl__delta { height: 20px; padding: 0 7px; font-size: 11.5px; }
.v-progress .pv-tl__best { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.v-progress .pv-tl__when { font-size: 12.5px; color: var(--muted); }
.v-progress .pv-tl__here { font-size: 11.5px; font-weight: 600; color: var(--primary); }
.v-progress .pv-tl__ghost { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.v-progress .pv-tl__item--next .pv-tl__when { color: var(--ink-2); }
.v-progress .pv-tl__sum { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.v-progress .pv-tl__sum .num { color: var(--ink); }
.v-progress .pv-tl__sum .icon { display: inline-block; vertical-align: -2px; margin: 0 2px; }

.v-progress .pv-kv { grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.v-progress .pv-kv dd { min-width: 0; }
.v-progress .pv-kv .link { font-size: 13.5px; }
.v-progress .pv-meta__review { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; justify-items: start; font-size: 13.5px; }
.v-progress .pv-meta__k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v-progress .pv-meta__review blockquote { color: var(--ink-2); }
.v-progress .pv-meta__review .link { font-size: 12.5px; }
.v-progress .pv-meta__foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* review modal (body is wrapped in .v-progress) */
.v-progress.pv-review { display: grid; gap: 14px; }
.v-progress .pv-review__ctx { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.v-progress .pv-review__ctx div { display: grid; gap: 1px; font-size: 14px; }
.v-progress .pv-review__ctx span { font-size: 12.5px; color: var(--muted); }
.v-progress .pv-review__lede { font-size: 14px; color: var(--ink-2); }
.v-progress .pv-review__hint { display: flex; justify-content: space-between; gap: 12px; }
.v-progress .pv-review__hint .num { font-weight: 500; color: var(--faint); font-size: 12px; }

/* ---------- display name ---------- */
.v-progress .pv-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; min-height: 36px; }
.v-progress .pv-name__k { color: var(--muted); }
.v-progress .pv-name__v { font-weight: 600; }
.v-progress .pv-name__pencil { width: 32px; height: 32px; color: var(--muted); }
.v-progress .pv-name__saved { margin-left: 4px; }
.v-progress .pv-name.is-editing { display: block; }
.v-progress .pv-name__form { display: grid; gap: 6px; width: 100%; max-width: 520px; }
.v-progress .pv-name__row { display: flex; flex-wrap: wrap; gap: 6px; }
.v-progress .pv-name__row .input { flex: 1 1 180px; min-height: 36px; padding: 6px 10px; font-size: 14.5px; }
.v-progress .pv-name__row .btn { min-height: 36px; }
.v-progress .pv-name__form .hint, .v-progress .pv-name__form .error { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; }
.v-progress .pv-name__form .hint .icon, .v-progress .pv-name__form .error .icon { margin-top: 2px; flex: none; }
.v-progress .pv-name--block { padding: 6px 10px 6px 12px; margin: 0 -2px 14px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.v-progress .pv-name--block .pv-name__pencil { margin-left: auto; }
.v-progress .pv-name--block.is-editing { padding: 12px; }

/* ==========================================================================
   #profile
   ========================================================================== */
.v-progress .pv-id {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who act' 'name name' 'facts facts';
  gap: 14px 24px; padding: 24px 24px 0;
}
.v-progress .pv-id__who { grid-area: who; display: flex; gap: 18px; align-items: center; min-width: 0; }
.v-progress .pv-id__av { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); font-size: 22px; }
.v-progress .pv-id__txt { display: grid; gap: 4px; min-width: 0; }
.v-progress .pv-id__txt .h1 { font-size: 30px; }
.v-progress .pv-id__role { font-size: 15px; color: var(--ink-2); }
.v-progress .pv-id__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; color: var(--muted); }
.v-progress .pv-id__meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.v-progress .pv-id__mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-progress .pv-id__actions { grid-area: act; display: flex; gap: 8px; align-items: flex-start; }
.v-progress .pv-id .pv-name { grid-area: name; padding-left: 82px; }
.v-progress .pv-id .pv-name.is-editing { padding-left: 82px; }
.v-progress .pv-id:not(:has(.pv-facts)) { padding-bottom: 24px; }
.v-progress .pv-facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -24px; border-top: 1px solid var(--line); }
.v-progress .pv-facts > div { display: grid; gap: 2px; padding: 14px 24px 16px; }
.v-progress .pv-facts > div + div { border-left: 1px solid var(--line); }
.v-progress .pv-facts dt { font-size: 12.5px; color: var(--muted); }
.v-progress .pv-facts dd { font-size: 26px; line-height: 1.15; min-width: 0; }
.v-progress .pv-facts dd small { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--muted); }
.v-progress .pv-facts dd a { display: inline-block; border-radius: 6px; }
.v-progress .pv-facts dd a:hover small { color: var(--primary); }

.v-progress .pv-profile__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.v-progress .pv-profile__pair--prog { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
.v-progress .pv-profile__stack { display: grid; gap: 20px; }

.v-progress .pv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.v-progress .pv-tile {
  display: grid; justify-items: center; text-align: center; gap: 6px; padding: 14px 6px 12px; height: 100%;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); transition: border-color var(--d-base) var(--ease-out), background-color var(--d-base) var(--ease-out);
}
.v-progress .pv-tile:hover { border-color: var(--line-strong); }
.v-progress .pv-tile.is-new { background: var(--surface-2); }
.v-progress .pv-tile .ring__num { font-size: 15px; color: var(--ink); }
.v-progress .pv-tile.is-new .ring__num { color: var(--muted); font-size: 14px; }
.v-progress .pv-tile__t { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.v-progress .pv-tile__s { font-size: 12px; color: var(--muted); }
.v-progress .pv-tile.is-active .pv-tile__s { color: var(--primary); }

.v-progress .pv-streak__title { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
.v-progress .pv-streak__title .num { font-size: 34px; line-height: 1; color: var(--copper); }
.v-progress .pv-streak__rule { margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.v-progress .pv-streak__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px 4px; }
.v-progress .pv-streak__day { display: grid; justify-items: center; gap: 4px; }
.v-progress .pv-streak__d { display: grid; justify-items: center; font-size: 11px; line-height: 1.2; color: var(--muted); }
.v-progress .pv-streak__d b { font-size: 12px; color: var(--ink-2); }
.v-progress .pv-streak__day .ring--muted .ring__track { stroke: var(--line); }
.v-progress .pv-streak__today { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--copper); }
.v-progress .pv-streak__day.is-today .pv-streak__d { color: var(--copper-ink); font-weight: 600; font-size: 11.5px; align-self: center; height: 100%; }
.v-progress .pv-streak__nudge { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.v-progress .pv-streak__nudge .num { color: var(--copper-ink); }

.v-progress .pv-recs__list { display: grid; gap: 4px; margin: 0 -6px; }
.v-progress .pv-rec { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 8px; }
.v-progress .pv-rec + .pv-rec { border-top: 1px solid var(--line); border-radius: 0; }
.v-progress .pv-rec__txt { display: grid; gap: 1px; flex: 1; min-width: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.v-progress .pv-rec__txt b { font-size: 14px; color: var(--ink); font-weight: 600; }
.v-progress .pv-rec__txt .num { color: var(--ink-2); }
.v-progress .pv-rec__src { font-size: 12px; color: var(--faint); }
.v-progress .pv-recs__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.v-progress .pv-recs__note .icon { color: var(--primary); margin-top: 1px; }

.v-progress .pv-acct { align-self: start; padding: 6px; }
.v-progress .pv-acct ul { display: grid; }
.v-progress .pv-acct li + li { border-top: 1px solid var(--line); }
.v-progress .pv-acct__row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 8px; color: var(--ink-2); transition: background-color var(--d-fast) var(--ease-out); }
.v-progress .pv-acct__row:hover { background: var(--surface-2); }
.v-progress .pv-acct__i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); }
.v-progress .pv-acct__t { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.v-progress .pv-acct__t b { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.v-progress .pv-acct__t small { font-size: 12.5px; color: var(--muted); }
.v-progress .pv-acct__danger { display: inline-flex; align-items: center; gap: 5px; color: var(--danger) !important; font-weight: 500; }
.v-progress .pv-acct__chev { color: var(--faint); }
.v-progress .pv-alt { display: grid; gap: 8px; justify-items: start; margin-top: 20px; max-width: 560px; }

/* chart */
.v-progress .pv-chart__now { display: grid; justify-items: end; line-height: 1.1; }
.v-progress .pv-chart__now .num { font-size: 24px; }
.v-progress .pv-chart__now small { font-size: 12px; color: var(--muted); }
.v-progress .pv-chart { position: relative; min-height: 210px; }
.v-progress .pv-chart__svg { display: block; overflow: visible; }
.v-progress .pv-chart__grid { stroke: var(--line); stroke-width: 1; }
.v-progress .pv-chart__ylab, .v-progress .pv-chart__xlab { fill: var(--muted); font-family: var(--font-ui); font-size: 11.5px; }
.v-progress .pv-chart__avg { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.v-progress .pv-chart__avglab { fill: var(--muted); font-family: var(--font-ui); font-size: 11.5px; font-weight: 500; }
.v-progress .pv-chart__area { fill: var(--primary); opacity: .07; animation: pv-fade 400ms var(--ease-out) 400ms both; }
.v-progress .pv-chart__line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: pv-draw 600ms var(--ease-draw) 120ms both; }
@keyframes pv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pv-fade { from { opacity: 0; } }
.v-progress .pv-chart__pt { cursor: pointer; outline: none; animation: pv-fade 240ms var(--ease-out) both; animation-delay: calc(240ms + var(--i, 0) * 110ms); }
.v-progress .pv-chart__hit { fill: transparent; }
.v-progress .pv-chart__dot { fill: var(--primary); stroke: var(--surface); stroke-width: 2; transition: r var(--d-fast) var(--ease-out); }
.v-progress .pv-chart__pt.is-on .pv-chart__dot, .v-progress .pv-chart__pt:focus-visible .pv-chart__dot { r: 6; }
.v-progress .pv-chart__pt:focus-visible .pv-chart__hit { stroke: var(--primary); stroke-width: 2; }
.v-progress .pv-chart__val { fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; animation: pv-fade 240ms var(--ease-out) 640ms both; }
.v-progress .pv-chart__cross { stroke: var(--line-strong); stroke-width: 1; opacity: 0; transition: opacity var(--d-fast) var(--ease-out); }
.v-progress .pv-chart__cross.is-on { opacity: 1; }
.v-progress .pv-chart__tip {
  position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 1px; padding: 7px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--toast-bg); color: var(--on-ink); box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.35;
}
.v-progress .pv-chart__tip span { color: var(--on-ink-muted); }
.v-progress .pv-chart__tip .num { color: var(--on-ink); }
.v-progress .pv-chart.is-static .pv-chart__line, .v-progress .pv-chart.is-static .pv-chart__pt, .v-progress .pv-chart.is-static .pv-chart__area, .v-progress .pv-chart.is-static .pv-chart__val { animation: none; }

/* results table */
.v-progress .pv-rt { overflow: hidden; }
.v-progress .pv-rt__head { padding: 18px 20px 0; }
.v-progress .pv-rt .table-wrap { border-radius: 0; }
.v-progress .pv-rt .table th:first-child, .v-progress .pv-rt .table td:first-child { padding-left: 20px; }
.v-progress .pv-rt .table th:last-child, .v-progress .pv-rt .table td:last-child { padding-right: 20px; }
.v-progress .pv-rt__topic a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.v-progress .pv-rt__topic a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.v-progress .pv-rt__topic .ring__num { font-size: 10px; }
.v-progress .pv-rt__n { text-align: right; }
.v-progress .pv-rt .table b.num { font-size: 15px; }
.v-progress .pv-rt .table .muted { font-size: 13.5px; }

/* ---------- Certificate (modal layer) ---------- */
.v-progress-cert .layer__body { padding-top: 4px; }
.v-progress-cert .pv-cert { padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); }
.v-progress-cert .pv-cert__frame {
  display: grid; justify-items: center; text-align: center; gap: 4px; padding: 30px 32px 22px; border-radius: 8px;
  border: 1px solid var(--line); background:
    radial-gradient(circle at 50% 0%, var(--primary-soft), transparent 60%), var(--surface);
}
.v-progress-cert .pv-cert__head { display: grid; justify-items: center; gap: 10px; margin-bottom: 14px; }
.v-progress-cert .pv-cert__head .logo__mark { width: 30px; height: 30px; }
.v-progress-cert .pv-cert__head .wordmark { font-size: 26px; }
.v-progress-cert .pv-cert__kind { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.v-progress-cert .pv-cert__lead { font-size: 13.5px; color: var(--muted); }
.v-progress-cert .pv-cert__name { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); padding: 2px 18px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.v-progress-cert .pv-cert__topic { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin-top: 2px; }
.v-progress-cert .pv-cert__sub { font-size: 13px; color: var(--muted); max-width: 46ch; }
.v-progress-cert .pv-cert__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-progress-cert .pv-cert__facts > div { display: grid; gap: 2px; padding: 10px 8px; }
.v-progress-cert .pv-cert__facts > div + div { border-left: 1px solid var(--line); }
.v-progress-cert .pv-cert__facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-progress-cert .pv-cert__facts dd { font-size: 14px; font-weight: 600; color: var(--ink); }
.v-progress-cert .pv-cert__facts dd.num { font-size: 20px; line-height: 1.2; }
.v-progress-cert .pv-cert__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; width: 100%; }
.v-progress-cert .pv-cert__sign { display: grid; justify-items: start; gap: 4px; text-align: left; font-size: 12px; color: var(--muted); }
.v-progress-cert .pv-cert__sig { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: var(--ink-2); padding: 0 16px 2px 0; border-bottom: 1px solid var(--line-strong); }
.v-progress-cert .pv-cert__seal { color: var(--primary); }
.v-progress-cert .pv-cert__id { display: grid; justify-items: end; gap: 1px; text-align: right; font-size: 11.5px; color: var(--muted); }
.v-progress-cert .pv-cert__id b { font-size: 12.5px; color: var(--ink); letter-spacing: .02em; }

@media print {
  @page { size: A4 landscape; margin: 14mm; }
  body:has(.v-progress-cert) > :not(.v-progress-cert) { display: none !important; }
  .v-progress-cert { position: static !important; display: block !important; padding: 0 !important; }
  .v-progress-cert .layer__scrim, .v-progress-cert .layer__head, .v-progress-cert .layer__foot, .v-progress-cert .layer__grab { display: none !important; }
  .v-progress-cert .layer__panel { width: 100% !important; max-height: none !important; box-shadow: none !important; transform: none !important; opacity: 1 !important; border-radius: 0 !important; }
  .v-progress-cert .layer__body { padding: 0 !important; overflow: visible !important; }
  .v-progress-cert .pv-cert { border-color: var(--line-strong); break-inside: avoid; }
  .v-progress-cert .pv-cert__frame { padding: 48px 56px 36px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .v-progress-cert .pv-cert__name { font-size: 44px; }
  .v-progress-cert .pv-cert__topic { font-size: 28px; }
}

/* ==========================================================================
   #leaderboard
   ========================================================================== */
.v-progress .pv-lbhero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 216px; overflow: hidden; margin-bottom: 20px; }
.v-progress .pv-lbhero__copy { display: grid; align-content: center; gap: 8px; padding: 26px 28px; }
.v-progress .pv-lbhero__team { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; color: var(--ink-2); }
.v-progress .pv-lbhero__team b { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; color: var(--ink); padding-left: 10px; border-left: 1.5px solid var(--line-strong); }
.v-progress .pv-lbhero__team .num { color: var(--ink); }
.v-progress .pv-lbhero__facts { display: flex; gap: 28px; margin-top: 10px; }
.v-progress .pv-lbhero__facts > div { display: grid; gap: 1px; }
.v-progress .pv-lbhero__facts dt { font-size: 12.5px; color: var(--muted); }
.v-progress .pv-lbhero__facts dd { font-size: 24px; line-height: 1.15; }
.v-progress .pv-lbhero__facts dd .num { color: var(--ink); }
.v-progress .pv-lbhero__facts small { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--muted); }
.v-progress .pv-lbhero__media { position: relative; border-left: 1px solid var(--line); }
.v-progress .pv-lbhero__media .media { position: absolute; inset: 0; border-radius: 0; }

.v-progress .pv-lb__cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.v-progress .pv-lb__main { min-width: 0; }
.v-progress .pv-lb__rail { display: grid; gap: 16px; min-width: 0; }

.v-progress .pv-board { overflow: hidden; }
.v-progress .pv-board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 6px 18px 0; border-bottom: 1px solid var(--line); }
.v-progress .pv-tabs { display: flex; gap: 4px; min-width: 0; }
.v-progress .pv-tab { position: relative; padding: 14px 12px 13px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; border-radius: var(--r-ctl) var(--r-ctl) 0 0; transition: color var(--d-fast) var(--ease-out); }
.v-progress .pv-tab:hover { color: var(--ink); }
.v-progress .pv-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.v-progress .pv-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.v-progress .pv-period { margin-bottom: 9px; }
.v-progress .pv-board__panel { padding: 12px 10px 16px; }
.v-progress .pv-board__panel:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); border-radius: 0; }
.v-progress .pv-board__cap { padding: 0 8px 8px; font-size: 12.5px; color: var(--muted); }
.v-progress .pv-board__cap .num { color: var(--ink-2); }

.v-progress .pv-lblist { display: grid; gap: 2px; }
.v-progress .pv-lblist.is-swapping { animation: pv-swap var(--d-slow) var(--ease-out); }
@keyframes pv-swap { from { opacity: 0; transform: translateY(4px); } }
.v-progress .pv-lbrow {
  position: relative; display: grid; grid-template-columns: 34px 32px minmax(0, 1fr) auto 64px; gap: 12px; align-items: center;
  min-height: 52px; padding: 8px 12px 8px 8px; border-radius: 10px; background: var(--surface);
}
.v-progress .pv-lbrow.is-entering { animation: pv-swap var(--d-slow) var(--ease-out) 120ms both; }
.v-progress .pv-lbrow__rank { text-align: center; font-size: 15px; color: var(--muted); }
.v-progress .pv-lbrow.is-first .pv-lbrow__rank { color: var(--ink); }
.v-progress .pv-lbrow__name { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.v-progress .pv-lbrow__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.v-progress .pv-lbrow__name small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-progress .pv-lbrow__pts { font-size: 16.5px; text-align: right; }
.v-progress .pv-lbrow__move { display: flex; justify-content: flex-end; min-width: 0; }
.v-progress .pv-lbrow.is-you { background: var(--copper-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--copper) 26%, transparent); z-index: 1; }
.v-progress .pv-lbrow.is-you .pv-lbrow__rank, .v-progress .pv-lbrow.is-you .pv-lbrow__pts { color: var(--copper-ink); }
.v-progress .pv-lbrow.is-you .pv-lbrow__name { font-weight: 600; }
.v-progress .pv-you { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); white-space: nowrap; }
.v-progress .pv-lbgap { display: grid; place-items: center; height: 22px; color: var(--faint); letter-spacing: 4px; font-size: 12px; }
.v-progress .pv-move { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; animation: pv-pop var(--d-slow) var(--ease-out) both; transition: opacity 300ms var(--ease-out); }
.v-progress .pv-move--up { background: var(--copper); color: var(--on-fill); }
.v-progress .pv-move--down { background: var(--surface); color: var(--copper-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--copper) 35%, transparent); }
.v-progress .pv-move.is-out { opacity: 0; }
@keyframes pv-pop { from { opacity: 0; transform: translateY(3px); } }
.v-progress .pv-showall { display: none; }
.v-progress .pv-chase { display: grid; gap: 8px; margin: 12px 8px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.v-progress .pv-chase p { font-size: 14px; color: var(--ink-2); }
.v-progress .pv-chase b.num { color: var(--ink); font-size: 15.5px; }
.v-progress .pv-chase .meter-bar { max-width: 360px; }
.v-progress .pv-chase__link { font-size: 13.5px; margin-top: 2px; }

.v-progress .pv-rules__list { display: grid; gap: 14px; }
.v-progress .pv-rules__list li { display: flex; gap: 12px; align-items: flex-start; }
.v-progress .pv-rules__i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.v-progress .pv-rules__list div { display: grid; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.v-progress .pv-rules__list b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.v-progress .pv-rules__list .num { color: var(--ink-2); }
.v-progress .pv-priv__switch { display: grid; gap: 6px; }
.v-progress .pv-priv__label { font-size: 14px; font-weight: 500; }
.v-progress .pv-priv .hint { padding-left: 50px; font-size: 12.5px; line-height: 1.45; }
.v-progress .pv-mgr { display: grid; gap: 10px; justify-items: start; }
.v-progress .pv-mgr .card__head { width: 100%; margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .v-progress .pv-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .v-progress .pv-results-seg { grid-column: 1 / -1; }
  .v-progress .pv-detail__cols { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
  .v-progress .pv-lb__cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .v-progress .pv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v-progress .pv-profile__pair--prog { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1020px) {
  .v-progress .pv-detail__cols, .v-progress .pv-lb__cols { grid-template-columns: minmax(0, 1fr); }
  .v-progress .pv-detail__rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-progress .pv-lb__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .v-progress .pv-sum { min-width: 0; width: 100%; }
  .v-progress .pv-bar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .v-progress .pv-selects .select { flex: 1; min-width: 0; }
  .v-progress .pv-results-seg .seg { display: flex; }
  .v-progress .pv-results-seg .seg__btn { flex: 1; padding-left: 6px; padding-right: 6px; }
  .v-progress .pv-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 14px; align-items: start; }
  .v-progress .pv-row__ring { padding-top: 2px; }
  .v-progress .pv-row__chev { display: none; }
  .v-progress .pv-row__end { flex-direction: column; align-items: flex-end; gap: 6px; }
  .v-progress .pv-row__end .pill { min-width: 0; }
  .v-progress .pv-row__mark { min-width: 0; }

  .v-progress .pv-detail__rail, .v-progress .pv-lb__rail { grid-template-columns: minmax(0, 1fr); }
  .v-progress .pv-chit__q { font-size: 17px; }
  .v-progress .pv-mc__body { padding: 16px; }
  .v-progress .pv-opt { grid-template-columns: 28px minmax(0, 1fr); padding: 10px 12px; }
  .v-progress .pv-opt__tags { grid-column: 2; justify-content: flex-start; }
  .v-progress .pv-actions .btn { flex: 1 1 100%; }
  .v-progress .pv-lock, .v-progress .pv-retake-note { flex-basis: 100%; justify-content: center; text-align: center; }

  .v-progress .pv-sec { margin-top: 26px; }
  .v-progress .pv-id { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'who' 'name' 'act' 'facts'; padding: 18px 16px 0; gap: 12px; }
  .v-progress .pv-id__who { align-items: flex-start; gap: 14px; }
  .v-progress .pv-id__av { --av: 52px !important; font-size: 18px; }
  .v-progress .pv-id__txt .h1 { font-size: 25px; }
  .v-progress .pv-id .pv-name, .v-progress .pv-id .pv-name.is-editing { padding-left: 0; }
  .v-progress .pv-id .pv-name:not(.is-editing) { padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
  .v-progress .pv-id .pv-name__pencil { margin-left: auto; }
  .v-progress .pv-id__actions .btn { flex: 1; }
  .v-progress .pv-id:not(:has(.pv-facts)) { padding-bottom: 16px; }
  .v-progress .pv-facts { margin: 0 -16px; }
  .v-progress .pv-facts > div { padding: 12px 14px 14px; }
  .v-progress .pv-facts dd { font-size: 22px; }
  .v-progress .pv-facts dd a { display: block; min-width: 0; }
  .v-progress .pv-facts > div:last-child dd small { display: block; font-size: 12px; line-height: 1.35; margin-top: 2px; }
  .v-progress .btn--ghost.btn--sm, .v-progress .btn--quiet.btn--sm { min-height: 40px; }
  .v-progress .pv-acct__row { min-height: 56px; }
  .v-progress .pv-chit .chit__prov > .icon { display: none; }
  .v-progress .pv-profile__pair, .v-progress .pv-profile__pair--prog { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .v-progress .pv-profile__stack { gap: 16px; }
  .v-progress .pv-tiles { gap: 6px; }
  .v-progress .pv-tile { padding: 12px 4px 10px; }
  .v-progress .pv-tile__t { font-size: 12px; }
  .v-progress .pv-tile__s { font-size: 11px; }
  .v-progress .pv-rt__head { padding: 16px 16px 6px; }
  .v-progress .pv-rt .table tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px !important; }
  .v-progress .pv-rt .table td:first-child { grid-column: 1 / -1; padding-left: 0 !important; }
  .v-progress .pv-rt .table td:last-child { padding-right: 0 !important; }
  .v-progress .pv-rt .table td { font-size: 13px; }
  .v-progress .pv-rt__n { text-align: left; }

  .v-progress .pv-lbhero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .v-progress .pv-lbhero__media { order: -1; height: 132px; border-left: 0; border-bottom: 1px solid var(--line); }
  .v-progress .pv-lbhero__copy { padding: 16px 16px 18px; gap: 6px; }
  .v-progress .pv-lbhero__team { font-size: 14px; }
  .v-progress .pv-lbhero__facts { gap: 22px; margin-top: 6px; }
  .v-progress .pv-lbhero__facts dd { font-size: 21px; }
  .v-progress .pv-board__head { padding: 0 12px; }
  .v-progress .pv-tabs { width: 100%; }
  .v-progress .pv-tab { flex: 1; padding: 13px 4px 12px; font-size: 14px; }
  .v-progress .pv-period { width: 100%; margin: 10px 0; display: flex; }
  .v-progress .pv-period .seg__btn { flex: 1; }
  .v-progress .pv-board__head { border-bottom: 0; }
  .v-progress .pv-board__panel { padding: 4px 6px 14px; border-top: 1px solid var(--line); padding-top: 10px; }
  .v-progress .pv-lbrow { grid-template-columns: 28px 30px minmax(0, 1fr) auto 52px; gap: 10px; padding: 8px 10px 8px 4px; }
  .v-progress .pv-lbrow .avatar { --av: 30px !important; }
  .v-progress .pv-lblist:not(.is-open) .pv-lbrow.is-far { display: none; }
  .v-progress .pv-showall { display: inline-flex; margin: 6px 4px 0; }
  .v-progress .pv-showall[hidden] { display: none; }
  .v-progress .pv-chase { margin: 10px 6px 0; }
  .v-progress .pv-priv .hint { padding-left: 0; }

  .v-progress-cert .pv-cert__frame { padding: 22px 16px 16px; }
  .v-progress-cert .pv-cert__name { font-size: 27px; padding: 2px 8px 6px; }
  .v-progress-cert .pv-cert__topic { font-size: 19px; }
  .v-progress-cert .pv-cert__facts { grid-template-columns: minmax(0, 1fr); }
  .v-progress-cert .pv-cert__facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .v-progress-cert .pv-cert__foot { grid-template-columns: 1fr auto; }
  .v-progress-cert .pv-cert__seal { display: none; }
}
@media (max-width: 420px) {
  .v-progress .pv-group__link { display: none; }
  .v-progress .pv-streak__grid { gap: 10px 2px; }
}
.v-progress .pv-lbrow.is-you .avatar { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--copper) 30%, transparent); background: var(--surface); }
.v-progress-cert .pv-cert__reg { margin-top: 8px; }

/* ---------- Round 1: numbered evidence, points, anonymous rows ---------- */
.v-progress .pv-sup { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; line-height: 0; margin-left: 1px; vertical-align: super; color: var(--primary); text-decoration: none; display: inline-block; }
.v-progress .ev--partly .pv-sup { color: var(--warn-ink); }
.v-progress .ghost .pv-sup { color: var(--danger); margin-left: 3px; }
.v-progress .pv-tally__n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 11px; color: var(--muted); vertical-align: 1px; }
.v-progress .pv-pts { color: var(--muted); }
.v-progress .pv-pts b.num { color: var(--ink); }
.v-progress .pv-anon { color: var(--muted); }
.v-progress .pv-anon .icon { width: 16px; height: 16px; }
.v-progress .card__head .link { white-space: nowrap; flex: none; }
