/* bc1 onboarding center
   Type: Bricolage Grotesque for headings, Figtree for everything else.
   Color: a cool "primer white" base, ink text, and the brand colors of the
   location a person joined (set as CSS variables on <html>).
   Signature element: the floor. One plank per step, laid as you finish. */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --sunken: #e4e8ee;
  --ink: #141b26;
  --ink-2: #485365;
  --ink-3: #738093;
  --line: #dde2ea;
  --line-soft: #ebeef3;
  --ok: #1c7c54;
  --ok-soft: #e2f3ea;
  --warn: #a85a0c;
  --warn-soft: #fbeeda;
  --bad: #b5372f;
  --bad-soft: #fbe7e4;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --rail: 256px;
  --tabs: 68px;
  --lift: 0 1px 0 rgba(20, 27, 38, .04), 0 14px 34px -18px rgba(20, 27, 38, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.018em; margin: 0; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
img, svg { display: block; max-width: 100%; }
.icon { flex: none; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { min-height: 100dvh; }
.rail { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brandmark img { height: 30px; width: auto; }
.brandmark-chip { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -.03em; flex: none; }
.brandmark-name { font-family: var(--display); font-weight: 650; font-size: 1rem; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.points-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: .875rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.points-chip .icon { color: var(--brand-ink); }

.main { padding: 22px 18px calc(var(--tabs) + 36px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.main.wide { max-width: 1280px; }
.main.narrow { max-width: 760px; }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 5px; border-radius: 12px; color: var(--ink-3); text-decoration: none; font-size: .6875rem; font-weight: 600; }
.tabs a[aria-current='page'] { color: var(--brand-ink); background: var(--brand-soft); }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .topbar, .tabs { display: none; }
  .rail {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: 22px 16px 18px; background: var(--surface); border-right: 1px solid var(--line);
  }
  .rail .brandmark { padding: 4px 8px 20px; }
  .rail .brandmark img { height: 36px; }
  .rail .brandmark-name { white-space: normal; line-height: 1.15; }
  .main { padding: 44px 48px 80px; }
}
.rail-label { font-size: .75rem; font-weight: 650; color: var(--ink-3); padding: 18px 12px 6px; }
.rail a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.rail a.nav:hover { background: var(--bg); color: var(--ink); }
.rail a.nav[aria-current='page'] { background: var(--brand-soft); color: var(--brand-ink); }
.rail-me { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.rail-me-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; text-decoration: none; color: var(--ink); border-radius: 12px; }
.rail-me-row:hover { background: var(--bg); }
.rail-me-name { font-weight: 650; font-size: .9375rem; line-height: 1.2; }
.rail-me-sub { font-size: .8125rem; color: var(--ink-3); }
.linkish { background: none; border: 0; padding: 6px 8px; font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; }
.linkish:hover { color: var(--ink); background: var(--bg); }

/* ---------- Building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head a { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }
.stack-lg { display: grid; gap: 34px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.page-head { margin-bottom: 26px; display: grid; gap: 8px; }
.page-head .lead { margin-top: 2px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--ink-3); text-decoration: none; margin-bottom: 6px; }
.backlink:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px;
  border-radius: 13px; border: 1px solid transparent; background: var(--brand); color: var(--on-brand);
  font: inherit; font-weight: 650; font-size: .9688rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { box-shadow: 0 8px 20px -10px var(--brand); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { box-shadow: none; border-color: var(--ink-3); }
.btn.ghost { background: transparent; color: var(--brand-ink); padding-inline: 12px; }
.btn.ghost:hover { box-shadow: none; background: var(--brand-soft); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, white); }
.btn.danger:hover { box-shadow: none; background: var(--bad-soft); }
.btn.sm { min-height: 36px; padding: 7px 13px; font-size: .875rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.on-brand { background: var(--on-brand); color: var(--brand); }
.btn.on-brand:hover { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .8125rem; font-weight: 650; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip.accent { background: var(--accent-soft); color: var(--ink); }

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--sunken); }
.avatar.initials { display: grid; place-items: center; font-family: var(--display); font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.tint-0 { background: #dbe7f8; } .tint-1 { background: #f8e3c8; } .tint-2 { background: #dcefdd; }
.tint-3 { background: #f3dcdc; } .tint-4 { background: #e6dff5; } .tint-5 { background: #d8eeee; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .875rem; color: var(--ink-3); font-weight: 550; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

.empty { text-align: center; padding: 36px 20px; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; }
.empty .icon { color: var(--ink-3); }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--ink); font-size: .9375rem; }
.notice .icon { color: var(--brand-ink); margin-top: 2px; }
.notice.warn { background: var(--warn-soft); } .notice.warn .icon { color: var(--warn); }
.notice.bad { background: var(--bad-soft); } .notice.bad .icon { color: var(--bad); }
.notice.ok { background: var(--ok-soft); } .notice.ok .icon { color: var(--ok); }

/* Forms */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 650; font-size: .9375rem; }
.field .help { font-size: .8438rem; color: var(--ink-3); }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 14px; min-height: 46px; transition: border-color .12s ease, box-shadow .12s ease;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
textarea.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-soft); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23485365' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 550; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 6px; }

/* ---------- Toast and badge moment ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; top: 14px; translate: -50% 0; width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 13px; padding: 13px 16px 13px 13px; border-radius: 18px;
  background: var(--ink); color: #fff; box-shadow: 0 20px 44px -18px rgba(20, 27, 38, .6);
  animation: toast-in .45s cubic-bezier(.2, .9, .3, 1.2) both;
}
.toast.leaving { animation: toast-out .3s ease forwards; }
.toast-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.toast-title { font-weight: 650; line-height: 1.25; }
.toast-sub { font-size: .8438rem; opacity: .72; }
.toast-pts { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 1.125rem; white-space: nowrap; color: var(--accent); }
@keyframes toast-in { from { opacity: 0; translate: -50% -24px; } to { opacity: 1; translate: -50% 0; } }
@keyframes toast-out { to { opacity: 0; translate: -50% -16px; } }

.badge-moment { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(20, 27, 38, .5); backdrop-filter: blur(6px); animation: fade .25s ease both; }
.badge-moment[hidden] { display: none; }
.badge-moment-card { background: var(--surface); border-radius: 28px; padding: 34px 30px 26px; width: min(380px, 100%); text-align: center; display: grid; gap: 10px; justify-items: center; animation: pop .5s cubic-bezier(.2, .9, .3, 1.25) both; }
.badge-disc { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--accent) 70%, white), 0 14px 30px -14px var(--accent); margin-bottom: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; scale: .86; } }

/* ---------- Home ---------- */
.hello { display: grid; gap: 6px; margin-bottom: 22px; }
.hello-day { font-weight: 650; color: var(--brand-ink); font-size: .9688rem; }
.home { display: grid; gap: 18px; }
@media (min-width: 1100px) { .home { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 22px; } }

.next {
  position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); border-radius: 26px; padding: 26px 26px 24px;
  display: grid; gap: 14px; box-shadow: var(--lift);
}
.next-kicker { font-weight: 650; font-size: .875rem; opacity: .78; }
.next h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; max-width: 18ch; }
.next p { opacity: .86; max-width: 46ch; }
.next .meta { color: inherit; opacity: .8; }
.next-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.next::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 40px; rotate: 18deg; background: color-mix(in srgb, var(--on-brand) 7%, transparent); pointer-events: none; }
.next.done { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.next.done::after { display: none; }

.countdown { display: flex; align-items: baseline; gap: 12px; }
.countdown-num { font-family: var(--display); font-weight: 750; font-size: clamp(3.6rem, 2.4rem + 6vw, 5.6rem); line-height: .86; letter-spacing: -.05em; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.countdown-label { font-weight: 650; color: var(--ink-2); line-height: 1.25; }

/* The floor */
.floor-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.floor-stage { background: linear-gradient(180deg, #d9dee6 0%, #e6eaf0 100%); padding: 26px 22px 0; perspective: 900px; overflow: hidden; }
.floor-stage svg { width: 100%; height: auto; transform: rotateX(46deg) scale(1.12); transform-origin: 50% 100%; overflow: visible; margin-top: -4%; }
.floor-card.flat .floor-stage { perspective: none; padding: 18px; }
.floor-card.flat .floor-stage svg { transform: none; margin: 0; }
.plank-todo { fill: rgba(255, 255, 255, .34); stroke: #9aa5b5; stroke-width: 2; stroke-dasharray: 9 8; }
.plank-next { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 4; }
.plank-laid .grain { stroke: rgba(60, 35, 10, .16); stroke-width: 1.6; fill: none; }
.plank-laid .edge { fill: none; stroke: rgba(60, 35, 10, .28); stroke-width: 1.5; }
.plank-laid.fresh { animation: lay .7s cubic-bezier(.2, .8, .25, 1.15) both; transform-box: fill-box; transform-origin: center; }
@keyframes lay { 0% { opacity: 0; transform: translateY(-46px) scale(1.06); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.floor-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px 18px; }
.floor-count { font-family: var(--display); font-weight: 650; font-size: 1.125rem; letter-spacing: -.015em; }
.floor-count b { font-weight: 750; }

/* Tape measure: where you are in the 90 days */
.tape-wrap { position: relative; padding-top: 9px; }
.tape { position: relative; height: 50px; border-radius: 10px; background: #f6d24a; overflow: hidden; border: 1px solid #d6b22c; }
.tape-ticks { position: absolute; inset: 0; background-image:
  repeating-linear-gradient(90deg, rgba(20, 27, 38, .5) 0 1.5px, transparent 1.5px calc(100% / 90)),
  repeating-linear-gradient(90deg, rgba(20, 27, 38, .9) 0 2px, transparent 2px calc(100% / 9));
  background-size: 100% 26%, 100% 50%; background-repeat: no-repeat; }
.tape-nums span { position: absolute; bottom: 4px; padding-left: 5px; font-family: var(--display); font-weight: 700; font-size: .8125rem; color: #141b26; line-height: 1; }
.tape-fill { position: absolute; inset: 0 auto 0 0; background: rgba(20, 27, 38, .15); }
.tape-pin { position: absolute; top: 3px; bottom: -3px; width: 3px; border-radius: 2px; background: #c0271c; translate: -1.5px 0; }
.tape-pin::before { content: ''; position: absolute; left: 50%; top: 0; translate: -50% 0; border: 6px solid transparent; border-top: 8px solid #c0271c; }
.tape-mark { position: absolute; top: 3px; width: 12px; height: 12px; border-radius: 50%; translate: -50% 0; background: var(--surface); border: 3px solid var(--ink); z-index: 1; }
.tape-mark.done { background: var(--ok); border-color: var(--ok); }
.tape-cap { display: flex; justify-content: space-between; gap: 10px; font-size: .8125rem; color: var(--ink-3); font-weight: 600; margin-top: 8px; }

/* Lists of rows */
.rows { display: grid; }
.rowlink { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.rows > :last-child { border-bottom: 0; }
a.rowlink:hover .rowlink-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rowlink-title { font-weight: 650; line-height: 1.3; }
.rowlink-sub { font-size: .875rem; color: var(--ink-3); }
.rowlink .right { margin-left: auto; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--line); color: var(--ink-3); background: var(--surface); }
.dot.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.dot.now { border-color: var(--brand-ink); color: var(--brand-ink); background: var(--brand-soft); }
.dot.wait { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.is-locked .rowlink-title, .is-locked .rowlink-sub { color: var(--ink-3); }
.is-done .rowlink-title { color: var(--ink-2); }

.timeblock { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.timeblock:last-child { border-bottom: 0; }
.timeblock-time { font-weight: 650; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeblock-title { font-weight: 650; line-height: 1.3; }

.person-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 8px; margin: -8px; border-radius: 14px; }
a.person-row:hover { background: var(--bg); }
.person-role { font-size: .8125rem; color: var(--ink-3); font-weight: 600; }
.person-name { font-weight: 650; line-height: 1.25; }

/* ---------- Journey ---------- */
.stage { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; }
.stage-rail { display: grid; grid-template-rows: 34px 1fr; justify-items: center; }
.stage-node { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .9375rem; background: var(--surface); border: 2px solid var(--line); color: var(--ink-3); }
.stage.current .stage-node { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stage.complete .stage-node { background: var(--ok); border-color: var(--ok); color: #fff; }
.stage-line { width: 2px; background: var(--line); margin: 6px 0; }
.stage:last-child .stage-line { background: transparent; }
.stage-body { padding-bottom: 30px; min-width: 0; }
.stage-head { display: flex; align-items: center; gap: 12px; min-height: 34px; margin-bottom: 10px; flex-wrap: wrap; }

/* ---------- Reading ---------- */
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.65; }
.prose > * + * { margin-top: .9em; }
.prose h2 { font-size: 1.375rem; margin-top: 1.7em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: .9em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose strong { font-weight: 700; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 20px; background: #0e131b; display: block; }

.quiz-q { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.quiz-q:last-of-type { border-bottom: 0; }
.option { display: flex; gap: 12px; align-items: center; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 550; background: var(--surface); }
.option:hover { border-color: var(--ink-3); }
.option input { accent-color: var(--brand); width: 19px; height: 19px; flex: none; }
.option:has(input:checked) { border-color: var(--brand-ink); background: var(--brand-soft); }
.option.right, .option.right:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.option.wrong, .option.wrong:has(input:checked) { border-color: var(--bad); background: var(--bad-soft); }
.option:has(input:disabled) { cursor: default; }
.option.right input { accent-color: var(--ok); } .option.wrong input { accent-color: var(--bad); }

/* ---------- Team ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.person-tile { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 12px 16px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.person-tile:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.person-tile .avatar { margin-bottom: 8px; }
.person-tile-name { font-weight: 650; line-height: 1.2; }
.person-tile-title { font-size: .8125rem; color: var(--ink-3); line-height: 1.3; }
.person-tile-flag { position: absolute; top: 10px; right: 10px; }
.met-mark { width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.searchbar { position: relative; }
.searchbar .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.searchbar .input { padding-left: 42px; }

.facts { display: grid; gap: 12px; }
.fact { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.fact .icon { color: var(--brand-ink); margin-top: 2px; }
.fact-label { font-size: .8125rem; color: var(--ink-3); font-weight: 600; }

/* ---------- Welcome wall ---------- */
.notes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; align-content: space-between; }
.note:nth-child(3n + 1) { background: var(--accent-soft); border-color: transparent; }
.note:nth-child(3n + 2) { background: var(--brand-soft); border-color: transparent; }
.note-body { font-size: 1.0625rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Pulse ---------- */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale label { display: grid; place-items: center; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-family: var(--display); font-weight: 700; font-size: 1.125rem; cursor: pointer; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:hover { border-color: var(--ink-3); }
.scale label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.scale label:has(input:focus-visible) { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--ink-3); font-weight: 600; margin-top: 6px; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.bars i { width: 9px; border-radius: 3px; background: var(--line); }
.bars i.on { background: var(--ok); } .bars.low i.on { background: var(--bad); } .bars.mid i.on { background: var(--warn); }

/* ---------- Ask ---------- */
.chat { display: grid; gap: 14px; }
.msg { max-width: min(640px, 88%); padding: 13px 17px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg.user { justify-self: end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 6px; }
.msg.assistant { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.assistant.typing::after { content: ''; display: inline-block; width: 8px; height: 1.05em; background: var(--brand-ink); border-radius: 2px; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer { position: sticky; bottom: calc(var(--tabs) + 14px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; box-shadow: var(--lift); margin-top: 22px; }
.composer:focus-within { border-color: var(--brand-ink); }
.composer textarea { flex: 1; border: 0; resize: none; font: inherit; padding: 10px 10px; background: transparent; color: var(--ink); min-height: 46px; max-height: 160px; }
.composer textarea:focus { outline: none; }
@media (min-width: 960px) { .composer { bottom: 24px; } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { font: inherit; font-weight: 600; font-size: .9375rem; padding: 9px 15px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.suggest button:hover { border-color: var(--brand-ink); color: var(--brand-ink); }

/* ---------- Where you fit ---------- */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 21px; padding-left: 22px; border-left: 2px solid var(--line); }
.tree li { padding-top: 12px; position: relative; }
.tree ul > li::before { content: ''; position: absolute; left: -22px; top: 40px; width: 18px; height: 2px; background: var(--line); }
.seat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; max-width: 460px; }
.seat.me { border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-soft); }
.seat summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.seat summary::-webkit-details-marker { display: none; }
.seat-title { font-weight: 650; line-height: 1.25; }
.seat ul.plain { margin: 12px 0 2px 54px; padding: 0 0 0 1.1em; border: 0; list-style: disc; color: var(--ink-2); font-size: .9375rem; }
.seat ul.plain li { padding: 2px 0; } .seat ul.plain li::before { display: none; }
.value-card { display: grid; gap: 10px; }
.value-story { padding: 14px 16px; background: var(--accent-soft); border-radius: 14px; font-size: .9688rem; }

/* ---------- Badges ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.badge { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 10px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.badge-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); margin-bottom: 4px; }
.badge.locked { background: transparent; border-style: dashed; }
.badge.locked .badge-icon { background: var(--sunken); color: var(--ink-3); }
.badge.locked .badge-name { color: var(--ink-3); }
.badge-name { font-weight: 650; line-height: 1.2; font-size: .9375rem; }
.badge-blurb { font-size: .78rem; color: var(--ink-3); line-height: 1.3; }

/* ---------- Certificate ---------- */
.cert { background: var(--surface); border-radius: 26px; border: 1px solid var(--line); padding: clamp(28px, 6vw, 64px); text-align: center; display: grid; gap: 14px; justify-items: center; position: relative; overflow: hidden; }
.cert::before { content: ''; position: absolute; inset: 12px; border: 2px solid var(--brand); border-radius: 18px; pointer-events: none; opacity: .9; }
.cert-floor { width: min(420px, 80%); margin: 6px 0 2px; }
.cert-name { font-family: var(--display); font-weight: 750; font-size: clamp(2.2rem, 1.4rem + 4vw, 3.8rem); letter-spacing: -.035em; line-height: 1; }
.cert-note { max-width: 46ch; font-style: italic; color: var(--ink-2); }
.cert-sign { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.cert-sign div { border-top: 1.5px solid var(--ink); padding-top: 6px; min-width: 170px; font-size: .875rem; color: var(--ink-2); }
.cert-sign b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.0625rem; }

/* ---------- Manage ---------- */
.hire-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.hire-card { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.hire-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.progress { height: 10px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }

.split { display: grid; gap: 22px; }
@media (min-width: 1080px) { .split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .split > aside { position: sticky; top: 24px; } }
.section-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.section-nav a { padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .875rem; white-space: nowrap; }
.section-nav a:hover { color: var(--ink); border-color: var(--ink-3); }

.task { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.task:last-child { border-bottom: 0; }
.task form { display: contents; }
.task-box { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--ink-3); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; padding: 0; margin-top: 1px; }
.task-box:hover { border-color: var(--brand-ink); color: var(--line); }
.task-box.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.task-box[disabled] { cursor: default; opacity: .55; }
.task.done .task-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line); }
.task-title { font-weight: 650; line-height: 1.3; }
.task-detail { font-size: .875rem; color: var(--ink-3); margin-top: 2px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9375rem; }
.kv dt { color: var(--ink-3); font-weight: 600; } .kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-size: .8125rem; color: var(--ink-3); font-weight: 650; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfc; }
.table a.strong { font-weight: 650; color: var(--ink); text-decoration: none; } .table a.strong:hover { text-decoration: underline; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 6px; vertical-align: -4px; margin-right: 8px; border: 1px solid rgba(0, 0, 0, .12); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; }
.tile:hover { border-color: var(--ink-3); }
.tile-title { font-weight: 650; display: flex; justify-content: space-between; gap: 10px; }
.tile-blurb { font-size: .875rem; color: var(--ink-3); line-height: 1.4; }

.launch { display: grid; gap: 2px; }
.launch-item { display: flex; gap: 13px; align-items: flex-start; padding: 12px 6px; border-radius: 12px; text-decoration: none; color: inherit; }
.launch-item:hover { background: var(--bg); }

details.reveal > summary { list-style: none; cursor: pointer; }
details.reveal > summary::-webkit-details-marker { display: none; }

/* ---------- Sign in ---------- */
.signin { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; }
.signin-main { display: grid; align-content: center; justify-items: center; padding: 28px 20px; gap: 30px; }
.signin-card { width: min(440px, 100%); background: var(--surface); border-radius: 28px; border: 1px solid var(--line); padding: 34px 30px; display: grid; gap: 18px; box-shadow: var(--lift); }
.signin-floor { width: min(440px, 100%); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; }
.google-btn:hover { border-color: var(--ink-3); }

/* ---------- Print: certificate only ---------- */
@media print {
  .rail, .topbar, .tabs, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .cert { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  @view-transition { navigation: none; }
}

.col { max-width: 760px; }

a:has(> .avatar) { text-decoration: none; }
input[type='file'].input { padding: 8px; }
input[type='file']::file-selector-button { font: inherit; font-weight: 650; font-size: .875rem; margin-right: 12px; padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }

.cert-floor.floor-card { border-radius: 8px; background: none; }
