/* ======================================================================
   ComRel — Department of Community Relations
   Design system v2  ·  dark-first, tokenised, app-shell
   ====================================================================== */

:root {
  /* --- palette : dark (default) --- */
  --bg:         #131010;
  --bg-grad:    radial-gradient(1100px 520px at 12% -10%, #3a2410 0%, transparent 60%),
                radial-gradient(900px 500px at 100% 0%, #241c14 0%, transparent 55%),
                #131010;
  --panel:      #1b1717;
  --panel-2:    #221d1d;
  --panel-3:    #2a2424;
  --line:       #372f2f;
  --line-soft:  #2b2424;

  --ink:        #f5efec;
  --ink-soft:   #c3b6b1;
  --ink-mute:   #8f817c;

  --field:       #16110f;
  --field-focus: #1b1512;
  --field-border:#3d3230;

  --brand:      #E8731C;
  --brand-2:    #FF9A4D;
  --brand-deep: #9A4408;
  --brand-tint: #2A1A0E;
  --ring:       rgba(232,115,28,.40);

  --mod:        #E8731C;   /* Moderation & Safety accent */
  --media:      #6ea8fe;   /* Media & Events accent      */

  --ok:   #3ecf8e;  --ok-bg:  #10251d;
  --warn: #f0b429;
  --err:  #ff6b6b;  --err-bg: #2a1513;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-xs: 8px;

  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
  --glow:      0 0 0 1px var(--line), 0 18px 50px -12px rgba(232,115,28,.35);

  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --side-w: 264px;
  --maxw: 1080px;
}

:root[data-theme="light"] {
  --bg:        #f4efec;
  --bg-grad:   radial-gradient(1100px 520px at 12% -10%, #ffe9d6 0%, transparent 60%),
               radial-gradient(900px 500px at 100% 0%, #efe6dc 0%, transparent 55%),
               #f4efec;
  --panel:     #ffffff;
  --panel-2:   #faf6f4;
  --panel-3:   #f1eae8;
  --line:      #e6ded9;
  --line-soft: #efe8e4;
  --ink:       #211b19;
  --ink-soft:  #5b514d;
  --ink-mute:  #8a7d78;
  --field:       #ffffff;
  --field-focus: #ffffff;
  --field-border:#d3c8c0;
  --brand:     #C25A12;
  --brand-2:   #A34A0E;
  --brand-tint:#FDEFE3;
  --ring:      rgba(194,90,18,.28);
  --ok-bg:  #e7f7ef;
  --err-bg: #fdeceb;
  --shadow:    0 1px 2px rgba(28,25,23,.06), 0 10px 30px rgba(28,25,23,.10);
  --shadow-lg: 0 28px 70px rgba(74,0,0,.16);
  --glow:      0 0 0 1px var(--line), 0 18px 50px -14px rgba(194,90,18,.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* paint the dark ground before CSS/JS settle so page-to-page nav never flashes white */
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
:root[data-theme="light"], html[data-theme="light"] { color-scheme: light; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-grad) fixed;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Smooth cross-document navigation (Chromium; silently ignored elsewhere).
   The sidebar keeps its place — only the main column cross-fades. */
@view-transition { navigation: auto; }
.side { view-transition-name: comrel-side; }
.main { view-transition-name: comrel-main; }
::view-transition-group(comrel-side) { animation-duration: 0s; }
::view-transition-group(*) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--brand); color: #fff; }

.mono { font-family: var(--mono); }
.muted { color: var(--ink-mute); }
.hidden { display: none !important; }

/* ======================================================================
   Buttons
   ====================================================================== */
.btn {
  --_bg: var(--panel-3); --_fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; letter-spacing: .1px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--_bg); color: var(--_fg);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary {
  --_bg: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 55%, var(--brand-deep) 130%);
  --_fg: #fff; border-color: transparent;
  box-shadow: 0 10px 24px -8px var(--ring);
}
.btn--primary:hover { box-shadow: 0 16px 34px -8px var(--ring); }

.btn--ghost { --_bg: transparent; }
.btn--ghost:hover { background: var(--panel-3); }

.btn--discord { --_bg: #5865f2; --_fg: #fff; border-color: transparent; box-shadow: 0 10px 24px -8px rgba(88,101,242,.5); }
.btn--discord:hover { --_bg: #4a56e0; }

.btn--block { width: 100%; }
.btn--lg { padding: 14px 24px; font-size: 1.02rem; }
.btn--sm { padding: 8px 13px; font-size: .86rem; }

/* ======================================================================
   Badges / chips
   ====================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  background: var(--panel-3); color: var(--ink-soft); border: 1px solid var(--line);
}
.badge--mgmt { background: var(--brand); color: #fff; border-color: transparent; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--mod   { color: var(--mod); }
.badge--media { color: var(--media); }

/* ======================================================================
   Public chrome (landing / apply / auth)
   ====================================================================== */
.pub-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.pub-nav__in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 22px; display: flex; align-items: center; gap: 14px;
}
.wordmark { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .2px; }
.wordmark img { width: 30px; height: 30px; }
.wordmark small {
  display: block; font-size: .64rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.spacer { flex: 1; }

.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 74px 22px 46px; text-align: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  background: var(--brand-tint); border: 1px solid var(--brand-deep);
  color: var(--brand-2); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero__logo {
  width: 92px; height: 92px; margin: 0 auto 22px;
  filter: drop-shadow(0 10px 30px rgba(232,115,28,.45));
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.05; font-weight: 850;
  letter-spacing: -0.025em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-2), var(--brand) 60%, #ffd0cc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { margin: 16px auto 0; max-width: 56ch; color: var(--ink-soft); font-size: 1.08rem; }
.hero__cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { max-width: var(--maxw); margin: 0 auto; padding: 26px 22px; }
.section h2 {
  font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 16px;
}

/* in-portal help chat */
.help-msg {
  display: flex; flex-direction: column; gap: 2px; padding: 7px 10px;
  border-radius: var(--radius-xs); max-width: 88%; font-size: .85rem;
  background: var(--panel-2); border: 1px solid var(--line);
}
.help-msg--staff { align-self: flex-start; }
.help-msg--learner { align-self: flex-end; background: var(--brand-tint); border-color: var(--brand-deep); }
.help-msg__meta { font-size: .68rem; color: var(--ink-mute); letter-spacing: .02em; }
.help-msg__body { white-space: pre-wrap; word-break: break-word; }

/* practical-simulation transcript */
.sim-msg {
  display: flex; flex-direction: column; gap: 2px; padding: 7px 10px;
  border-radius: var(--radius-xs); max-width: 88%; font-size: .85rem;
  background: var(--panel-2); border: 1px solid var(--line); align-self: flex-start;
}
.sim-msg--self { align-self: flex-end; background: var(--brand-tint); border-color: var(--brand-deep); }
.sim-msg--difficult_user { align-self: flex-start; }
.sim-msg--system { align-self: center; background: transparent; border-style: dashed; color: var(--ink-mute); font-size: .78rem; }
.sim-msg__meta { font-size: .68rem; color: var(--ink-mute); letter-spacing: .02em; }
.sim-msg__body { white-space: pre-wrap; word-break: break-word; }

/* collapsible sections (native <details>/<summary>) */
details.collapse > summary {
  cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none;
}
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse > summary::before {
  content: '▸'; display: inline-block; color: var(--ink-mute); transition: transform .15s ease;
}
details.collapse[open] > summary::before { transform: rotate(90deg); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card--link {
  /* <a class="card card--link"> defaults to inline, which lets the card's padding/border
     bleed over neighbouring content instead of sizing the box around it. */
  display: block;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link:hover { transform: translateY(-4px); border-color: var(--brand-deep); box-shadow: var(--glow); }

.card__icon {
  width: 46px; height: 46px; padding: 9px; border-radius: 13px;
  background: var(--brand-tint); border: 1px solid var(--line);
  margin-bottom: 15px;
}
.card__icon img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 1.08rem; font-weight: 750; }
.card p { margin-top: 7px; color: var(--ink-soft); font-size: .93rem; }
.card__cta { margin-top: 15px; font-weight: 700; color: var(--brand-2); font-size: .9rem; }
.card--locked { opacity: .5; }
.card--locked .card__cta { color: var(--ink-mute); }
.card__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* "Needs your attention" rows on the Instructor Hub — a status list, not a tile grid. */
.attn-list { display: flex; flex-direction: column; gap: 10px; }
.attn-row {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 18px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .18s ease, border-color .16s ease;
}
.attn-row:hover { transform: translateY(-2px); border-color: var(--brand-deep); box-shadow: var(--glow); }
.attn-row__count {
  min-width: 30px; text-align: center; font-weight: 800; font-size: .92rem;
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn);
}
.attn-row__label { flex: 1; font-weight: 600; }
.attn-row__cta { font-weight: 700; color: var(--brand-2); font-size: .88rem; }

.card-wrap { position: relative; }
.card-wrap > .card { height: 100%; }
.card__actions { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; }
.icon-btn {
  width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--ink-soft); cursor: pointer; font-size: .92rem; line-height: 1;
  transition: transform .12s ease, color .12s ease, border-color .12s ease;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--brand-deep); }
.icon-btn.is-active { color: var(--brand); border-color: var(--brand-deep); }

.star-picker { display: inline-flex; gap: 2px; }
.star-picker button {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--line); transition: color .1s ease, transform .1s ease;
}
.star-picker button:hover { transform: scale(1.12); }
.star-picker button.is-on { color: #f5a623; }
.star-static { color: #f5a623; letter-spacing: 1px; }

.regions { display: flex; gap: 12px; flex-wrap: wrap; }
.region {
  flex: 1; min-width: 150px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px;
}
.region img { width: 52px; height: 52px; margin: 0 auto 8px; opacity: .92; }
.region b { font-size: .95rem; }
.region span { display: block; font-size: .78rem; color: var(--ink-mute); }

.foot {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 22px;
  color: var(--ink-mute); font-size: .84rem; text-align: center;
  border-top: 1px solid var(--line-soft);
}

/* ======================================================================
   App shell (authenticated tools)
   ====================================================================== */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }

.side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
  padding: 20px 16px;
}
.side__brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; font-weight: 800; }
.side__brand img { width: 30px; height: 30px; }
.side__brand small {
  display: block; font-size: .62rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-mute);
}

.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.nav__group {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; margin-top: 16px; padding: 0 8px 6px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.nav__group:hover { color: var(--ink); }
.nav__group:first-child { margin-top: 4px; }
.nav__chevron { width: 10px; height: 10px; flex: none; transition: transform .15s ease; }
.nav__group[aria-expanded="false"] .nav__chevron { transform: rotate(-90deg); }
.nav__items { display: flex; flex-direction: column; gap: 3px; }
.nav__items.is-collapsed { display: none; }
.nav a, .nav span.navitem {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  transition: background .13s ease, color .13s ease;
}
.nav a:hover { background: var(--panel-3); color: var(--ink); }
.nav a.is-active { background: var(--brand-tint); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
.nav .navitem--locked { color: var(--ink-mute); opacity: .6; cursor: not-allowed; }
.nav__ico { width: 18px; height: 18px; object-fit: contain; flex: none; opacity: .9; }
.nav__lock { margin-left: auto; font-size: .8rem; }

.side__user {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.side__user img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.side__user .who { line-height: 1.25; min-width: 0; }
.side__user .who b { font-size: .88rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__user .who span { font-size: .72rem; color: var(--ink-mute); }
.side__actions { display: flex; gap: 8px; margin-top: 12px; }
.side__actions .btn { flex: 1; }

.main { min-width: 0; display: flex; flex-direction: column; }
.main__bar {
  display: none; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
  position: sticky; top: 0; z-index: 15;
}
.main__bar .wordmark { font-size: .95rem; }

.page { max-width: 1120px; width: 100%; margin: 0 auto; padding: 34px 26px 60px; }
.page--wide { max-width: 1320px; }
.page--narrow { max-width: 820px; }
.page-head { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; }
.page-head__icon {
  width: 48px; height: 48px; padding: 10px; flex: none;
  border-radius: 14px; background: var(--brand-tint); border: 1px solid var(--line);
}
.page-head__icon img { width: 100%; height: 100%; object-fit: contain; }
.page-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.page-lead { color: var(--ink-soft); margin: 4px 0 26px; }

/* hamburger */
.burger {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: .2s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after  { position: absolute; top: 6px; }

.scrim { display: none; }

/* ======================================================================
   Forms
   ====================================================================== */
.formcard {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.formcard > .fs:last-of-type { border-bottom: none; }

.fs { padding: 24px 26px; border-bottom: 1px solid var(--line-soft); }
.fs__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.fs__num {
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  color: var(--brand-2); background: var(--brand-tint);
  border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; flex: none;
}
.fs__head h2 { font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.fs__head p { font-size: .84rem; color: var(--ink-mute); }

.field { margin-bottom: 17px; }
.field:last-child { margin-bottom: 0; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }

label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 7px; }
.req { color: var(--brand-2); }
.hint { display: block; font-weight: 400; color: var(--ink-mute); font-size: .8rem; margin-top: 3px; }

input:not([type]), input[type=text], input[type=url], input[type=email], input[type=number],
input[type=search], input[type=tel], input[type=password],
input[type=date], input[type=datetime-local], input[type=time],
select, textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--field-border);
  border-radius: 9px; padding: 10px 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07);
  transition: border-color .14s ease, box-shadow .14s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); opacity: .85; }
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--field-border) 60%, var(--ink-mute)); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04), 0 0 0 3px var(--ring);
  background: var(--field-focus);
}
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator { filter: var(--cal-filter, none); opacity: .65; cursor: pointer; }
:root:not([data-theme=light]) { --cal-filter: invert(1) brightness(.85); }
select {
  cursor: pointer; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E8731C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}

.check {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: var(--radius-xs);
  padding: 13px 14px;
}
.check input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--brand); }
.check label { font-weight: 400; font-size: .9rem; margin: 0; }

/* choice tiles (radio) */
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices label {
  flex: 1; min-width: 130px; margin: 0; text-align: center; cursor: pointer;
  padding: 13px 10px; font-weight: 750; font-size: .92rem;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: var(--radius-xs);
  transition: .14s;
}
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices input:checked + label { color: #fff; transform: translateY(-1px); }
.choices input[value=accepted]:checked + label { background: var(--ok); border-color: var(--ok); color: #06251a; }
.choices input[value=denied]:checked   + label { background: var(--brand); border-color: var(--brand); }
.choices input[value=closed]:checked    + label { background: #6b625f; border-color: #6b625f; }
.choices input:focus-visible + label { outline: 3px solid var(--ring); outline-offset: 2px; }

/* course icon picker */
.icon-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-picker__tile {
  width: 52px; height: 52px; padding: 6px; cursor: pointer;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: var(--radius-xs);
  transition: .14s;
}
.icon-picker__tile img { width: 100%; height: 100%; object-fit: contain; }
.icon-picker__tile:hover { border-color: var(--brand-2); }
.icon-picker__tile.is-selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 2px var(--ring); }

/* lesson activities: authoring list + learner cards */
.activity-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: var(--radius-xs); margin-bottom: 8px;
}
.activity-row__type { font-size: 1.1rem; }
.activity-row__label { flex: 1; font-size: .9rem; font-weight: 700; }
.activity-row__label span { display: block; font-weight: 400; color: var(--ink-mute); font-size: .78rem; }

.activity-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; margin-top: 14px;
}
.activity-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 750; }
.activity-card__head .pill { margin-left: auto; }

.quiz-q { margin-bottom: 16px; }
.quiz-q__prompt { font-weight: 700; margin-bottom: 8px; }
.quiz-opt {
  display: block; width: 100%; text-align: left; margin-bottom: 6px; padding: 9px 12px;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: var(--radius-xs); cursor: pointer;
}
.quiz-opt:hover { border-color: var(--brand-2); }
.quiz-opt.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.quiz-opt.is-wrong { border-color: var(--err); background: var(--err-bg); }
.quiz-q__explain { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.match-col { display: flex; flex-direction: column; gap: 8px; }
.match-item {
  padding: 10px 12px; background: var(--field); border: 1.5px solid var(--field-border);
  border-radius: var(--radius-xs); cursor: pointer; font-size: .88rem; text-align: left;
}
.match-item:hover { border-color: var(--brand-2); }
.match-item.is-selected { border-color: var(--brand); background: var(--brand-tint); }
.match-item.is-solved { border-color: var(--ok); background: var(--ok-bg); cursor: default; opacity: .8; }
.match-item.is-wrong { border-color: var(--err); background: var(--err-bg); }

.order-list { display: flex; flex-direction: column; gap: 6px; }
.order-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: var(--radius-xs); font-size: .88rem;
}
.order-item.is-right { border-color: var(--ok); }
.order-item.is-wrong { border-color: var(--err); }
.order-item__move { display: flex; gap: 4px; margin-left: auto; }

.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.memory-tile {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px; font-size: .8rem; cursor: pointer; border-radius: var(--radius-xs);
  background: var(--brand); color: #fff; border: 1.5px solid var(--field-border);
}
.memory-tile.is-face-up { background: var(--field); color: var(--ink); border-color: var(--brand-2); cursor: default; }
.memory-tile.is-solved { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); cursor: default; opacity: .85; }

/* sticky action bar for long forms */
.actionbar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 26px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.progress { flex: 1; min-width: 0; }
.progress__track { height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s ease; }
.progress__label { font-size: .76rem; color: var(--ink-mute); margin-top: 5px; }

.plainbar { padding: 20px 26px; border-top: 1px solid var(--line); }

/* alerts + success state */
.alert { border-radius: var(--radius-xs); padding: 13px 15px; font-weight: 600; font-size: .9rem; margin: 16px 26px 0; }
.alert--ok  { background: var(--ok-bg);  color: var(--ok);  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.alert--err { background: var(--err-bg); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 40%, transparent); }
.alert[hidden] { display: none; }

.done {
  text-align: center; padding: 50px 30px;
}
.done__mark {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem;
  background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
}
.done h2 { font-size: 1.4rem; font-weight: 800; }
.done p { color: var(--ink-soft); margin-top: 8px; }
.done .ref {
  display: inline-block; margin-top: 16px; padding: 8px 16px;
  font-family: var(--mono); font-size: 1rem; letter-spacing: .12em;
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-xs);
}

.note {
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius-xs);
  padding: 14px 16px; font-size: .9rem; color: var(--ink-soft);
}

/* ======================================================================
   Toasts
   ====================================================================== */
.toasts {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
.toast {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 13px 15px;
  box-shadow: var(--shadow-lg);
  font-size: .9rem; font-weight: 600;
  animation: toast-in .25s ease;
}
.toast--ok  { border-left-color: var(--ok); }
.toast--err { border-left-color: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ======================================================================
   Auth screens
   ====================================================================== */
.authwrap { max-width: 440px; margin: 12vh auto; padding: 0 20px; }
.authwrap .card { padding: 38px 32px; text-align: center; }
.authwrap .mark { width: 72px; height: 72px; margin: 0 auto 20px; }
.authwrap h1 { font-size: 1.5rem; font-weight: 800; }
.authwrap p { color: var(--ink-soft); margin: 10px 0 24px; }
.authwrap .btn { width: 100%; }
.authwrap .sub { margin-top: 16px; font-size: .8rem; color: var(--ink-mute); }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .main__bar { display: flex; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .app.nav-open .side { transform: translateX(0); }
  .app.nav-open .scrim {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(0,0,0,.5);
  }
  .page { padding: 26px 18px 60px; }
}
@media (max-width: 560px) {
  .hero { padding: 52px 18px 34px; }
  .fs, .actionbar, .plainbar, .alert { padding-left: 18px; padding-right: 18px; }
  .alert { margin-left: 18px; margin-right: 18px; }
}

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

/* ======================================================================
   v3 — tables, lists, filters, pills, modal, builder, profile
   ====================================================================== */

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.toolbar input:not([type]), .toolbar input[type=text], .toolbar input[type=search], .toolbar select { max-width: 340px; }

/* manage-group sub-nav strip */
.subnav {
  display: flex; gap: 2px; flex-wrap: wrap;
  margin: 0 0 22px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.subnav a {
  padding: 8px 14px; border-radius: 9px;
  font-size: .88rem; font-weight: 650; color: var(--ink-mute);
  transition: background .12s, color .12s;
}
.subnav a:hover { background: var(--panel-3); color: var(--ink); text-decoration: none; }
.subnav a.is-active { background: var(--brand-tint); color: var(--ink); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-soft);
  padding: 7px 13px; border-radius: 999px; font-weight: 650; font-size: .85rem; cursor: pointer;
}
.tabs button.is-active { background: var(--brand-tint); color: var(--ink); border-color: var(--brand-deep); }
.tabs .count { opacity: .7; font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; text-transform: capitalize; letter-spacing: .02em;
  border: 1px solid transparent;
}
.pill--ok   { background: var(--ok-bg);  color: var(--ok); }
.pill--warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill--err  { background: var(--err-bg); color: var(--err); }
.pill--info { background: color-mix(in srgb, var(--media) 18%, transparent); color: var(--media); }
.pill--mute { background: var(--panel-3); color: var(--ink-mute); }
.pill--icon { display: inline-flex; align-items: center; gap: 4px; }
.pill--icon img { width: 12px; height: 12px; object-fit: contain; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.grid { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.grid th {
  text-align: left; padding: 11px 14px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: none; }
table.grid tbody tr { cursor: pointer; transition: background .12s; }
table.grid tbody tr:hover { background: var(--panel-2); }
table.grid .num { font-variant-numeric: tabular-nums; }
.empty { padding: 40px; text-align: center; color: var(--ink-mute); }

/* hub call-to-actions */
.cta { display: flex; flex-direction: column; gap: 2px; margin: -4px; }
.cta a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 10px; transition: background .12s; }
.cta a:hover { background: var(--panel-2); text-decoration: none; }
.cta .ico { width: 24px; text-align: center; font-size: 1.05rem; flex: none; }
.cta .txt { flex: 1; font-size: .93rem; }
.cta .go { color: var(--brand-2); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.cta a.warn .txt { color: var(--warn); }
.cta a.bad .txt { color: var(--err); }
.cta a.bad .txt b, .cta a.warn .txt b { color: inherit; }
.cta a.done .txt { color: var(--ink-mute); }
.cta a.done .txt b { color: var(--ok); }

/* course builder: at-a-glance readiness strip (Content / Exam / Details / Publish) */
.course-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.course-step {
  flex: 1; min-width: 170px; display: flex; align-items: flex-start; gap: 9px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; text-align: left; text-decoration: none; cursor: pointer;
  color: inherit; font: inherit; transition: border-color .12s, background .12s;
}
.course-step:hover { border-color: var(--brand-deep); background: var(--panel-2); text-decoration: none; }
.course-step__dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 5px;
  background: var(--ink-mute);
}
.course-step.is-done .course-step__dot { background: var(--ok); }
.course-step.is-warn .course-step__dot { background: var(--warn); }
.course-step__body { min-width: 0; }
.course-step__label { font-weight: 700; font-size: .84rem; display: block; }
.course-step__sub { font-size: .76rem; color: var(--ink-mute); display: block; margin-top: 1px; }

.metrics { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
a.metric { text-decoration: none; }
a.metric:hover { border-color: var(--brand-deep); }
.metric {
  flex: 1; min-width: 120px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.metric b { font-size: 1.5rem; font-weight: 800; display: block; }
.metric span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }

.split { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: .95rem; font-weight: 750; margin-bottom: 12px; }
.panel--sticky { position: sticky; top: 20px; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--ink-mute); }
.kv dd { color: var(--ink); word-break: break-word; }

.answers .qa { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.answers .qa:last-child { border-bottom: none; }
.answers .qa b { display: block; font-size: .82rem; color: var(--ink-mute); margin-bottom: 3px; font-weight: 650; }
.answers .qa p { white-space: pre-wrap; }
.answers h4 { margin: 18px 0 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-2); }
.answers h4:first-child { margin-top: 0; }

.scorebar { display: flex; align-items: center; gap: 10px; }
.scorebar .track { flex: 1; height: 8px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.scorebar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: .92rem; margin: 0;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-xs); background: var(--field); cursor: pointer;
}
.opt:hover { border-color: var(--brand-deep); }
.opt input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

.field--err input, .field--err textarea, .field--err select { border-color: var(--err); }
.field__err { display: block; color: var(--err); font-size: .8rem; margin-top: 4px; font-weight: 600; }

.modal-back {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; animation: toast-in .18s ease;
}
.modal--wide { max-width: 820px; }
.modal__head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head h3 { flex: 1; font-size: 1.05rem; font-weight: 750; }
.modal__x { background: none; border: none; color: var(--ink-mute); font-size: 1rem; cursor: pointer; padding: 4px; }
.modal__body { padding: 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 var(--radius) var(--radius); }
.modal__foot .btn { min-width: 96px; }

.modal textarea { min-height: 88px; }
.modal .field label { font-size: .82rem; font-weight: 650; color: var(--ink-soft); margin-bottom: 7px; }
.modal .field .hint { margin-top: 5px; }

/* ── first-login guided walkthrough ── */
.tour-scrim { position: fixed; inset: 0; z-index: 500; }
.tour-spot {
  position: fixed; display: none; border-radius: 10px; border: 2px solid var(--brand);
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none;
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}
.tour-card {
  position: fixed; z-index: 501; width: 300px; max-width: calc(100vw - 28px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-lg);
}
.tour-card--center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.tour-card h3 { margin: 0 0 6px; font-size: 1rem; }
.tour-card p { margin: 0 0 14px; font-size: .88rem; color: var(--ink-soft); }
.tour-card__actions { display: flex; align-items: center; gap: 8px; }

.btn--danger { --_bg: var(--err); --_fg: #fff; border-color: transparent; }
.btn--danger:hover { --_bg: #e04b4b; }

.builder { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
@media (max-width: 1040px) { .builder { grid-template-columns: 1fr; } }
.bsection { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--panel); }
.bsection__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.bsection__head input { font-weight: 700; border: none; background: transparent; padding: 4px 0; }
.bq { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.bq:last-child { border-bottom: none; }
.bq__label { flex: 1; min-width: 0; }
.bq__label b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bq__label span { font-size: .76rem; color: var(--ink-mute); }
.bq__type { font-size: .72rem; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); color: var(--ink-soft); }
.iconbtn { background: none; border: 1px solid var(--line); border-radius: 7px; width: 30px; height: 30px; cursor: pointer; color: var(--ink-soft); flex: none; }
.iconbtn:hover { background: var(--panel-3); color: var(--ink); }
.preview-pane { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 16px; max-height: 82vh; overflow-y: auto; }
.preview-pane h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 10px; }

.profile-hero {
  display: flex; gap: 18px; align-items: center; padding: 22px;
  background: radial-gradient(600px 200px at 0% 0%, var(--brand-tint), transparent 70%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px;
}
.profile-hero img { width: 88px; height: 88px; border-radius: 20px; border: 2px solid var(--brand-deep); }
.profile-hero h1 { font-size: 1.5rem; font-weight: 800; }
.profile-hero .role { color: var(--brand-2); font-weight: 700; }
.profile-hero .meta { color: var(--ink-mute); font-size: .88rem; margin-top: 2px; }

.compliance-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.compliance-item:last-child { border-bottom: none; }
.compliance-item .ci-main { flex: 1; min-width: 0; }
.compliance-item .ci-main b { font-size: .9rem; }
.compliance-item .ci-main span { display: block; font-size: .78rem; color: var(--ink-mute); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.linklike { color: var(--brand-2); font-weight: 650; cursor: pointer; background: none; border: none; font: inherit; padding: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.backlink { font-size: .84rem; color: var(--ink-mute); display: inline-block; margin-bottom: 10px; }

/* rendered markdown */
.md { line-height: 1.7; }
.md h2 { font-size: 1.35rem; font-weight: 800; margin: 22px 0 8px; }
.md h3 { font-size: 1.12rem; font-weight: 750; margin: 20px 0 6px; }
.md h4, .md h5 { font-size: 1rem; font-weight: 700; margin: 16px 0 4px; }
.md p { margin: 10px 0; }
.md ul, .md ol { margin: 10px 0 10px 22px; }
.md li { margin: 3px 0; }
.md a { color: var(--brand-2); font-weight: 600; }
.md code { font-family: var(--mono); font-size: .88em; background: var(--panel-3); padding: 1px 6px; border-radius: 5px; }
.md pre.md-pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; margin: 12px 0; }
.md pre.md-pre code { background: none; padding: 0; }
.md blockquote { border-left: 3px solid var(--brand); padding-left: 14px; color: var(--ink-soft); margin: 12px 0; }
.md hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

/* modal form layout — tidy vertical rhythm, no cramped 2-col at small widths */
.formgrid { display: flex; flex-direction: column; gap: 17px; }
.formgrid .field { margin: 0; }
.formgrid > .note { margin: -2px 0 2px; }
.modal .row { gap: 14px; }
.modal .row > * { min-width: 140px; }
@media (max-width: 520px) { .modal .row { flex-direction: column; } .modal .row > * { min-width: 0; } }

/* toggle chips (region pickers etc) */
.togglechips { display: flex; gap: 8px; flex-wrap: wrap; }
.togglechips label {
  display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; user-select: none;
  padding: 8px 13px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .86rem; font-weight: 650; background: var(--field); transition: .12s;
}
.togglechips input { position: absolute; opacity: 0; }
.togglechips label:has(input:checked) { background: var(--brand-tint); border-color: var(--brand); color: var(--ink); }
.togglechips label:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ─────────────── Community Portal — which community you're in, and what it has unlocked ─────────────── */
.commbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 18px 26px 0; padding: 12px 16px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm);
}
.commbar__logo { width: 38px; height: 38px; border-radius: 10px; flex: none; object-fit: cover;
  display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 800; }
.commbar__who { display: flex; flex-direction: column; min-width: 0; }
.commbar__label { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.commbar__name { font-weight: 800; font-size: 1.02rem; color: var(--ink); overflow-wrap: anywhere; }
.commbar__caps { display: flex; gap: 6px; flex-wrap: wrap; }
.commbar__switch { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.commbar__switch select { max-width: 240px; }
@media (max-width: 720px) {
  .commbar { margin: 12px 16px 0; }
  .commbar__switch { margin-left: 0; width: 100%; }
  .commbar__switch select { max-width: none; flex: 1; }
}

.capgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.capcard { display: flex; flex-direction: column; gap: 10px; }
.capcard h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; }
.capcard ul { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--ink-soft); }
.capcard__meter { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.capcard__meter > span { display: block; height: 100%; background: var(--brand); }
.capcard__foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.checklist { list-style: none; padding: 0; margin: 8px 0; font-size: .9rem; display: grid; gap: 4px; }
.checklist li { display: flex; gap: 8px; align-items: baseline; }
.checklist .is-ok { color: var(--ok); }
.checklist .is-miss { color: var(--err); }
