/* FORWARD campus portal. Product UI: restrained, light, FORWARD blue for actions, one yellow marker. */
:root {
  --font: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: oklch(0.975 0.006 262);
  --surface: oklch(0.995 0.003 262);
  --surface-2: oklch(0.955 0.01 262);
  --line: oklch(0.91 0.013 262);
  --line-strong: oklch(0.8 0.022 262);
  --ink: oklch(0.25 0.05 263);
  --ink-2: oklch(0.41 0.04 263);
  --muted: oklch(0.52 0.03 263);
  --blue: oklch(0.44 0.19 263);
  --blue-hover: oklch(0.39 0.18 263);
  --blue-soft: oklch(0.95 0.025 263);
  --blue-ink: oklch(0.34 0.14 263);
  --nav: oklch(0.3 0.12 263);
  --nav-hover: oklch(0.36 0.125 263);
  --nav-ink: oklch(0.93 0.025 263);
  --nav-muted: oklch(0.75 0.06 263);
  --yellow: oklch(0.87 0.17 90);
  --yellow-soft: oklch(0.96 0.06 95);
  --yellow-ink: oklch(0.38 0.08 80);
  --ok: oklch(0.45 0.13 155);
  --ok-soft: oklch(0.95 0.04 155);
  --warn: oklch(0.47 0.11 65);
  --warn-soft: oklch(0.96 0.05 85);
  --danger: oklch(0.5 0.19 27);
  --danger-soft: oklch(0.96 0.025 27);
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 2px oklch(0.25 0.05 263 / 0.06), 0 8px 24px -12px oklch(0.25 0.05 263 / 0.18);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--blue-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px 16px; background: var(--nav); color: var(--nav-ink);
}
.side__brand { display: flex; flex-direction: column; gap: 10px; padding: 4px 8px 18px; }
.side__brand img { width: 128px; height: auto; }
.logo-link { display: inline-flex; align-self: flex-start; border-radius: 6px; }
.side__campus { font-size: 13px; font-weight: 600; color: var(--nav-muted); }
.side__campus b { color: var(--yellow); font-weight: 700; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; min-height: 40px;
  color: var(--nav-ink); text-decoration: none; font-weight: 550; transition: background-color 0.15s var(--ease);
}
.nav a:hover { background: var(--nav-hover); }
.nav a[aria-current="page"] { background: var(--nav-hover); color: #fff; }
.nav a[aria-current="page"] svg { color: var(--yellow); }
.nav svg { width: 19px; height: 19px; flex: none; }
.side__foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid oklch(1 0 0 / 0.12); display: flex; flex-direction: column; gap: 8px; }
.side__who { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; font-size: 13px; color: var(--nav-muted); text-decoration: none; min-width: 0; }
.side__who:hover { background: var(--nav-hover); }
.side__who-text { min-width: 0; overflow-wrap: anywhere; }
.side__who b { display: block; color: var(--nav-ink); font-weight: 650; font-size: 14px; }
.side__who-role { display: block; font-size: 12px; line-height: 1.35; color: var(--nav-muted); }
.avatar--nav { width: 34px; height: 34px; background: var(--yellow); color: var(--blue-ink); font-size: 13px; }
.side__out { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 8px; margin-left: -8px; border: 0; background: none; border-radius: 8px; color: var(--nav-muted); cursor: pointer; font-weight: 550; }
.side__out:hover { color: #fff; background: var(--nav-hover); }
.side__out svg { width: 17px; height: 17px; }

.topbar { display: none; }
.main { padding: 32px clamp(16px, 4vw, 48px) 64px; min-width: 0; }
.page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.page--narrow { max-width: 720px; }

.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page__title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.page__sub { color: var(--muted); margin-top: 6px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: 14px; margin-bottom: 10px; }
.crumb:hover { color: var(--blue); }
.crumb svg { width: 16px; height: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 859px) {
  .app { display: block; }
  .side { display: none; }
  .topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: var(--nav); color: var(--nav-ink);
  }
  .topbar img { width: 96px; height: auto; }
  .topbar__campus { margin-left: auto; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; color: var(--yellow); white-space: nowrap; }
  .topbar__menu {
    display: grid; place-items: center; width: 44px; height: 44px; margin: -4px -10px -4px 0; border: 0; border-radius: 12px;
    background: none; color: var(--nav-ink); cursor: pointer; transition: background-color 0.15s var(--ease);
  }
  .topbar__menu:hover, .topbar__menu[aria-expanded="true"] { background: var(--nav-hover); }
  .topbar__menu svg { width: 24px; height: 24px; }
  .mmenu__scrim { position: fixed; inset: 0; z-index: 30; background: oklch(0.2 0.05 263 / 0.35); animation: fade 0.15s var(--ease); }
  .mmenu__sheet {
    position: absolute; z-index: 31; top: 100%; left: 8px; right: 8px; margin-top: 6px; padding: 8px;
    background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow);
    max-height: calc(100vh - 80px); overflow-y: auto; animation: drop 0.18s var(--ease);
  }
  .mmenu__sheet a, .mmenu__out {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 10px;
    background: none; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; text-align: left;
  }
  .mmenu__sheet a:hover, .mmenu__out:hover { background: var(--surface-2); }
  .mmenu__sheet a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
  .mmenu__sheet svg { width: 21px; height: 21px; flex: none; color: var(--muted); }
  .mmenu__sheet a[aria-current="page"] svg { color: var(--blue); }
  .mmenu__sep { height: 1px; margin: 6px 6px; background: var(--line); }
  .main { padding: 20px 16px 48px; }
  .page__title { font-size: 24px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 860px) { .mmenu { display: none !important; } }

/* ---------- Buttons and form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: var(--r); border: 1px solid transparent; background: var(--blue); color: #fff; font-weight: 650;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--quiet { background: transparent; color: var(--ink-2); }
.btn--quiet:hover { background: var(--surface-2); }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: oklch(0.44 0.19 27); }
.btn--danger-ghost { background: var(--surface); color: var(--danger); border-color: var(--line-strong); }
.btn--danger-ghost:hover { background: var(--danger-soft); }
.btn--sm { min-height: 34px; padding: 5px 12px; font-size: 14px; }
.btn--icon { padding: 0; width: 34px; min-height: 34px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-weight: 650; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 13px; }
.field .err { color: var(--danger); font-size: 13px; font-weight: 550; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: oklch(0.62 0.02 263); }
.input:hover, .select:hover, .textarea:hover { border-color: oklch(0.7 0.03 263); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px oklch(0.44 0.19 263 / 0.16); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }
.input[disabled] { background: var(--surface-2); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ink-2); font-weight: 550; }
.switch input { width: 17px; height: 17px; accent-color: var(--blue); }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 11px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px oklch(0.25 0.05 263 / 0.12); }

/* ---------- Surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.panel__title { font-size: 16px; font-weight: 700; }
.panel__body { padding: 16px 20px 20px; }
.panel__link { font-size: 14px; font-weight: 600; text-decoration: none; }
.panel__link:hover { text-decoration: underline; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 859px) { .cols { grid-template-columns: minmax(0, 1fr); } }

.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--draft { background: var(--yellow-soft); color: var(--yellow-ink); }
.pill--closed { background: var(--surface-2); color: var(--muted); }
.pill--warn { background: var(--danger-soft); color: var(--danger); }
.pill--blue { background: var(--blue-soft); color: var(--blue-ink); }

/* ---------- Lists, rows, tables ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
.rows > li:first-child > .row, .rows > .row:first-child { border-top: 0; }
a.row:hover, button.row:hover { background: var(--blue-soft); }
button.row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__end { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: 14px; }
.datebox { width: 48px; flex: none; text-align: center; line-height: 1.1; }
.datebox b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.datebox span { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 16px; font-size: 12.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 110px; max-width: 280px; overflow-wrap: break-word; }
.table td.nw { white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: oklch(0.97 0.012 262); }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); border-radius: 99px; width: 0; transition: width 0.4s var(--ease); }
.progress--full i { background: var(--yellow); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 44px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- States ---------- */
.empty { padding: 36px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.empty__icon svg { width: 22px; height: 22px; }
.empty h3 { font-size: 17px; font-weight: 700; }
.empty p { color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 6px; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, oklch(0.975 0.008 262) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.4s linear infinite; border-radius: 8px; }
@keyframes skel { to { background-position: -200% 0; } }
.skel--line { height: 14px; margin: 10px 0; }
.skel--block { height: 120px; }

.notice { padding: 12px 14px; border-radius: var(--r); background: var(--blue-soft); color: var(--blue-ink); font-size: 14px; }
.notice--error { background: var(--danger-soft); color: var(--danger); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }

.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow); animation: toast-in 0.2s var(--ease); }
.toast--error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Side panel (add / edit a person) */
.scrim { position: fixed; inset: 0; z-index: 50; background: oklch(0.2 0.05 263 / 0.4); animation: fade 0.2s var(--ease); }
.drawer {
  position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface);
  display: flex; flex-direction: column; box-shadow: var(--shadow); animation: slide 0.25s var(--ease);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 18px; font-weight: 700; }
.drawer__body { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ---------- Sign in ---------- */
.auth { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--nav); }
.auth__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.auth__shade { position: absolute; inset: 0; z-index: -1; background: oklch(0.24 0.1 263 / 0.8); }
.auth--banner { background: #fff; align-content: center; }
.auth__col { width: min(520px, 100%); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth--banner .banner { border-radius: 0; }
.auth--banner .auth__card { width: 100%; box-sizing: border-box; border-radius: 0; box-shadow: none; background: transparent; }
.auth--banner .banner__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.auth--banner .auth__logo { margin-bottom: 8px; background: none; padding: 0; border-radius: 0; width: 110px; }
.auth__card { width: min(420px, 100%); background: var(--surface); border-radius: 20px; padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.auth__logo { width: 120px; background: var(--nav); padding: 10px 14px; border-radius: 10px; }
.auth__card h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.auth__card p { color: var(--muted); }
.code-input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 28px; letter-spacing: 0.4em; text-align: center; padding-left: 0.4em; }

/* ---------- Form builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.q { padding: 16px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.q:first-child { border-top: 0; }
.q__top { display: flex; gap: 8px; align-items: center; }
.q__top .input { flex: 1; }
.q__row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.q__fixed { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.q__fixed:first-child { border-top: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.add-q { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
.preview { position: sticky; top: 24px; }
.preview .panel__body { display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.preview-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.share-link { display: flex; gap: 8px; }
.share-link .input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }

.inline-confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; background: var(--danger-soft); border-radius: var(--r); color: var(--danger); font-weight: 600; }

.announce { padding: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.announce:first-child { border-top: 0; }
.announce h3 { font-size: 17px; font-weight: 700; }
.announce__body { white-space: pre-wrap; max-width: 70ch; color: var(--ink-2); }
.announce__meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }

.res-group { padding-top: 6px; }
.res-group h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding: 0 4px 8px; }

/* Members: breakdown bars and the answers they wrote */
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bars__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 5px; }
.bars__label { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.bars__n { font-weight: 700; white-space: nowrap; }
.bars__n em { font-style: normal; font-weight: 500; color: var(--muted); }
.bars__track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bars__track i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.vbars { list-style: none; margin: 0; padding: 0 0 2px; display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.vbars__col { flex: 1; min-width: 34px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: -1px; }
.vbars__plot { height: 200px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.vbars__n { font-weight: 700; font-size: 14px; line-height: 1.2; }
.vbars__pct { font-size: 11px; color: var(--muted); line-height: 1.2; margin-bottom: 4px; }
.vbars__bar { display: block; width: 100%; max-width: 52px; background: var(--blue); border-radius: 7px 7px 0 0; }
.vbars__col:hover .vbars__bar { background: var(--blue-hover); }
.vbars__label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); text-align: center; padding-top: 6px; white-space: nowrap; }
.pie { display: flex; align-items: center; gap: 24px; }
@media (max-width: 600px) {
  .vbars { gap: 5px; }
  .vbars__col { min-width: 0; }
  .vbars__label { font-size: 11px; }
  .vbars__n { font-size: 13px; }
  .vbars__pct { font-size: 10px; }
}
.pie__svg { width: 168px; height: 168px; flex: none; }
.pie__side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pie__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.pie__legend li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pie__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.pie__label { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.pie__n { font-weight: 700; white-space: nowrap; }
.pie__n em { font-style: normal; font-weight: 500; color: var(--muted); }
@media (max-width: 600px) { .pie { flex-direction: column; align-items: stretch; } .pie__svg { align-self: center; } }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 859px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote { margin: 0; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; }
.quote blockquote { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote figcaption { color: var(--muted); font-size: 13px; font-weight: 600; }
.empty.small { padding: 12px 0; color: var(--muted); }

.timeline { padding: 22px 12px 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 6px; }
.step::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.step:first-child::before { display: none; }
.step--done::before, .step--current::before { background: var(--blue); }
.step__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); }
.step__dot svg { width: 16px; height: 16px; }
.step--done .step__dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step--current .step__dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px oklch(0.44 0.19 263 / 0.16); }
.step__label { font-weight: 650; font-size: 13.5px; line-height: 1.25; }
.step--todo .step__label { color: var(--muted); }
.step__when { font-size: 12px; color: var(--muted); min-height: 16px; }
@media (max-width: 700px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step { flex-direction: row; text-align: left; gap: 12px; padding: 0; }
  .step::before { display: none; }
  .step__label { flex: 1; }
}
.tips { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.add-q .label { align-self: center; margin-right: 4px; }
.banner { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 180px; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--nav); }
.banner--tall { min-height: 240px; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, oklch(0.24 0.1 263 / 0.92) 0%, oklch(0.28 0.12 263 / 0.7) 50%, oklch(0.3 0.12 263 / 0.28) 100%); }
.banner--multi { min-height: 230px; }
.banner__imgs { position: absolute; inset: 0; z-index: -2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; background: var(--nav); }
.banner__imgs img { width: 100%; height: 100%; object-fit: cover; }
.banner--multi .banner__shade { background: linear-gradient(0deg, oklch(0.24 0.1 263 / 0.95) 0%, oklch(0.26 0.11 263 / 0.72) 40%, oklch(0.3 0.12 263 / 0.04) 72%); }
.banner__body { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 28px; }
.banner .page__title { color: #fff; }
.banner .page__sub { color: oklch(0.93 0.025 263); max-width: 54ch; }
.banner .btn { background: var(--yellow); color: var(--blue-ink); }
.banner .btn:hover { background: oklch(0.82 0.17 90); }
.banner .btn--ghost { background: oklch(1 0 0 / 0.14); color: #fff; border-color: oklch(1 0 0 / 0.4); }
.banner .btn--ghost:hover { background: oklch(1 0 0 / 0.24); }
@media (max-width: 600px) {
  .banner { min-height: 150px; }
  .banner--tall { min-height: 200px; }
  .banner--multi { min-height: 220px; }
  /* Narrow tiles cannot hold both people of a photo: show two wider ones. */
  .banner__imgs img:nth-child(n + 3) { display: none; }
  .banner--multi .banner__shade { background: linear-gradient(0deg, oklch(0.24 0.1 263 / 0.95) 0%, oklch(0.26 0.11 263 / 0.72) 48%, oklch(0.3 0.12 263 / 0.04) 80%); }
  .banner__shade { background: linear-gradient(0deg, oklch(0.24 0.1 263 / 0.94) 0%, oklch(0.26 0.11 263 / 0.8) 100%); }
  .banner__body { padding: 16px; }
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.kpi:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.kpi__n { font-size: 46px; line-height: 1; font-weight: 750; letter-spacing: -0.03em; color: var(--blue-ink); }
.kpi__label { font-size: 15px; font-weight: 600; color: var(--muted); }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 16px 16px; }
  .kpi__n { font-size: 32px; }
  .kpi__label { font-size: 13px; }
}
.next__title { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.next__title:hover { color: var(--blue); }
.summary-line { color: var(--muted); }
.summary-line b { color: var(--ink); font-weight: 650; }

@media (max-width: 600px) {
  .hide-sm { display: none; }
  .row { padding: 13px 16px; gap: 12px; }
  .row__end { flex-direction: column; align-items: flex-end; gap: 4px; }
}

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

/* ---------- Public sign-up page ---------- */
.pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.pub__band { background: linear-gradient(0deg, oklch(0.3 0.12 263 / 0.78), oklch(0.24 0.1 263 / 0.9)), url("/img/auditorium-crowd.jpg") 50% 40% / cover, var(--nav); color: var(--nav-ink); padding: 22px 16px 104px; }
.pub__band-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pub__band img { width: 110px; height: auto; }
.pub__band span { color: var(--yellow); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.pub__card { width: min(640px, calc(100% - 32px)); margin: -72px auto 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px clamp(20px, 5vw, 36px) 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; }
.pub__title { font-size: clamp(26px, 5vw, 34px); line-height: 1.12; font-weight: 750; letter-spacing: -0.025em; }
.pub__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pub__facts li { display: flex; gap: 10px; align-items: flex-start; font-weight: 550; }
.pub__facts svg { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 2px; }
.pub__desc { white-space: pre-wrap; color: var(--ink-2); max-width: 62ch; }
.pub__hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.done__badge { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--blue-ink); display: grid; place-items: center; }
.done__badge svg { width: 26px; height: 26px; }

/* Team verification */
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.verify-bar[hidden] { display: none; }
.verify { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.verify__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* Public verify page */
.verify-page { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 8px 0; }
.verify-page p { margin: 0; color: var(--ink-2); max-width: 46ch; }
