/* Misfits portal: "a misfit's scrapbook", the public site's look (hyzora.net, site.css).
   Personality (tape, tilt, handwriting) lives on cards, headings, stickers, empty states and the shell.
   Lists, tables, forms and the sponsor pipeline stay flat, aligned and dense.
   Handwriting (--hand) is for short accents only: never body text, inputs or numbers in tables. */

/* ---------- 1. tokens ---------- */
@property --tilt { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root {
  --paper: #fff;
  --ink: #000;
  --quiet-ink: #4a4a4a;
  --highlight: #ebebeb;
  --blush: #f7efea;
  --tape: #efe6cfcc;
  --line: #0000001f;
  --line-strong: #0000003d;
  --ok: #1d6b34;
  --ok-bg: #e7f2ea;
  --bad: #b3261e;
  --bad-bg: #fbeceb;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --tap: 44px;
  --radius: 6px;
  --shadow: 0 1px 0 #0000000d, 0 14px 28px -18px #00000047;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100svh; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; font-weight: 400;
  font-optical-sizing: auto; font-synthesis-weight: none; -webkit-font-smoothing: antialiased;
}
/* film-grain overlay, same SVG noise as the public site */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3' intercept='-1'/%3E%3CfeFuncG type='linear' slope='3' intercept='-1'/%3E%3CfeFuncB type='linear' slope='3' intercept='-1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.12'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-weight: 600; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: .75rem; }
h2 { font-size: 1.3125rem; line-height: 1.15; letter-spacing: -.03em; }
h3 { font-size: 1.0625rem; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ink); }
img, svg, video { max-width: 100%; }
video { height: auto; }
small { font-size: .8125rem; }
code { font-family: var(--mono); font-size: .875em; background: var(--highlight); padding: 0 .25rem; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); font-weight: 500;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--quiet-ink); }
.lede { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.012em; color: var(--quiet-ink); max-width: 40rem; }
.fine-print { font-size: .8125rem; color: var(--quiet-ink); margin-top: 1.5rem; }
.grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }

/* ---------- 3. scrapbook accents ---------- */
.kicker, .eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  background: var(--ink); color: var(--paper); padding: 5px 8px 4px; border-radius: 3px;
  transform: rotate(-2deg);
}
.scribble {
  display: inline-block; margin: 10px 0 0;
  font-family: var(--hand); font-size: 1.375rem; font-weight: 500; line-height: 1.1;
  color: var(--quiet-ink); transform: rotate(-2.5deg);
}
h1 + .scribble { margin: -4px 0 14px; }
.sticker {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  border-radius: 4px; padding: 5px 8px 4px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; line-height: 1;
}
.sticker-num { position: absolute; top: -10px; right: 14px; transform: rotate(6deg); }
.badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-block; border: 1.5px solid var(--ink); border-radius: 4px; padding: 6px 10px;
  color: var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.2; background: var(--paper);
}
.badge:nth-child(odd) { transform: rotate(-2deg); } .badge:nth-child(even) { transform: rotate(2deg); }
.badge-blush { background: var(--blush); }
.section-title { margin-top: 2rem; width: fit-content; max-width: 100%; background: linear-gradient(transparent 62%, var(--tape) 62%, var(--tape) 92%, transparent 92%); }
.subhead { margin-top: 1.25rem; font-size: .875rem; color: var(--quiet-ink); font-weight: 600; }

/* ---------- 4. cards (flat by default; tilt and tape are opt-in) ---------- */
.tilt-a { --tilt: -1.6deg; } .tilt-b { --tilt: 1.2deg; } .tilt-c { --tilt: -.8deg; } .tilt-d { --tilt: 1.8deg; }
.tilt-flat { --tilt: 0deg; }
@media (max-width: 640px) { .tilt-a { --tilt: -.8deg; } .tilt-b { --tilt: .6deg; } .tilt-c { --tilt: -.4deg; } .tilt-d { --tilt: .9deg; } }
.card {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 20px; box-shadow: var(--shadow);
  transform: rotate(var(--tilt));
}
.card > :last-child { margin-bottom: 0; }
/* tape strip: on tilted cards, notes, blush cards and anything marked .taped */
.card[class*="tilt-"], .card-note, .card-blush, .taped, .auth-card, .error-page { padding-top: 30px; }
.card[class*="tilt-"]::before, .card-note::before, .card-blush::before, .taped::before,
.auth-card::before, .error-page::before, .empty::before, .org-nav-card::before {
  content: ""; position: absolute; top: -12px; left: calc(50% - 46px);
  width: 92px; height: 24px;
  background: var(--tape); border-left: 2px dotted #ffffff80; border-right: 2px dotted #ffffff80;
  transform: rotate(-3deg); box-shadow: 0 1px 2px #0000001a; pointer-events: none;
}
.tilt-b::before { left: 18px; transform: rotate(-9deg); }
.tilt-d::before { left: auto; right: 18px; transform: rotate(8deg); }
.tilt-flat::before { left: 24px; transform: rotate(-4deg); }
.card-blush, .card-note { background: var(--blush); }
.panel-paper {
  --tilt: -.4deg; position: relative; padding: clamp(22px, 4vw, 40px) clamp(18px, 3.5vw, 36px);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 3px;
  transform: rotate(var(--tilt)); box-shadow: 6px 6px 0 var(--highlight);
}
.panel-paper > :last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s; }
.card-link:hover { transform: translate(-2px, -2px) rotate(var(--tilt)); box-shadow: 3px 3px 0 var(--quiet-ink); }
.grid { display: grid; gap: 30px 20px; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.board { display: grid; gap: 34px 24px; grid-template-columns: minmax(0, 1fr); align-items: start; margin: 1.5rem 0; }
@media (min-width: 760px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .board-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 5. buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font: inherit; font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--quiet-ink); }
.button:active { transform: none; box-shadow: none; }
.button-quiet { background: var(--paper); color: var(--ink); }
.button-small { min-height: var(--tap); padding: 0 14px; font-size: .875rem; }
.button-danger { background: var(--bad); border-color: var(--bad); color: var(--paper); }
.button-danger:hover { box-shadow: 3px 3px 0 #5c1410; }
.button[disabled] { cursor: default; opacity: .6; transform: none; box-shadow: none; }
.link-button {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .75rem;
  font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong);
  background: none; border: 0; border-radius: 4px; cursor: pointer;
}
.link-button:hover { background: var(--highlight); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.25rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 1.5rem; }
.quick-actions > * { flex: 0 1 auto; }
.row-actions { display: flex; flex-wrap: wrap; gap: .5rem; flex: none; }
.danger-zone { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--line-strong); }

/* ---------- 6. forms (flat) ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; letter-spacing: -.01em; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 8px 12px;
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .16s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
input[readonly] { background: #fafafa; color: var(--quiet-ink); }
input[type='file'] { padding: 8px 12px; }
input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--ink); }
[aria-invalid='true'] { border-color: var(--bad) !important; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.inline-form label { flex: 1 1 200px; }
.inline-form.compact { flex-wrap: nowrap; align-items: center; gap: .5rem; margin: 0; }
.inline-form.compact select { width: auto; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin: 1rem 0 1.25rem; }
.filters label { flex: 1 1 140px; min-width: 0; }
.filters.card { margin: 1rem 0 1.25rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .5rem .75rem .75rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1rem; min-width: 0; }
.checks legend { font-size: .875rem; font-weight: 600; padding: 0 .25rem; }
.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; min-height: var(--tap); font-size: .9375rem; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--ink); }
.checks .check { align-items: center; font-size: 1rem; }
.checks .check input { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label:not(.check) { display: block; font-weight: 600; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.req { color: var(--quiet-ink); font-weight: 400; }
.hint { margin: 0; font-size: .8125rem; font-weight: 400; color: var(--quiet-ink); }
.field-error { margin: 0; font-size: .8125rem; font-weight: 500; color: var(--bad); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.counter { margin: 0; font-size: .8125rem; text-align: right; color: var(--quiet-ink); font-variant-numeric: tabular-nums; }
.counter.is-short { color: var(--bad); }
.counter.is-full { color: var(--bad); font-weight: 500; }

/* ---------- 7. avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--highlight); border: 1.5px solid var(--ink); }
.avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  font-weight: 600; color: var(--ink); background: var(--blush);
}
.avatar-fallback[data-size='24'] { width: 24px; height: 24px; font-size: .75rem; border-width: 1px; }
.avatar-fallback[data-size='32'] { width: 32px; height: 32px; font-size: .875rem; }
.avatar-fallback[data-size='36'] { width: 36px; height: 36px; }
.avatar-fallback[data-size='56'] { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-fallback[data-size='72'], .avatar-fallback[data-size='80'] { width: 72px; height: 72px; font-size: 1.5rem; }
img.avatar[width='24'] { border-width: 1px; }

/* avatar picker: radio grid, each choice >= 44px, checked one taped and tilted */
.avatar-picker { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 12px; }
.avatar-picker legend { padding: 0; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
.avatar-picker label {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: var(--tap); min-height: 68px; padding: 8px 6px;
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  font-size: .75rem; font-weight: 500; text-align: center; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
}
.avatar-picker label:hover { border-color: var(--ink); }
.avatar-picker input[type='radio'] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.avatar-picker img, .avatar-picker .avatar { width: 48px; height: 48px; }
.avatar-picker label:has(input:checked) {
  border-color: var(--ink); background: var(--blush);
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg);
}
.avatar-picker label:has(input:checked)::after {
  content: "\2713" / "selected"; position: absolute; top: -9px; right: -9px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: .875rem; font-weight: 600; transform: rotate(8deg);
}
.avatar-picker label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
@supports not selector(:has(*)) { .avatar-picker input:checked + * { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 50%; } }

/* ---------- 8. shell: paper header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px dashed var(--line-strong);
}
.topbar-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1080px; min-height: 64px; margin: 0 auto; padding: 8px var(--gutter);
}
.page-org .topbar-inner, .page-org .main { max-width: 1240px; }
.logo {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: var(--tap);
  padding: 0 4px 0 2px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo-word { font-size: 1.5rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.logo-tag {
  font-family: var(--hand); font-size: 1.375rem; font-weight: 700; line-height: 1; color: var(--quiet-ink);
  transform: rotate(-6deg) translateY(3px);
}
.site-nav { flex: 1 1 auto; min-width: 0; margin-left: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; text-decoration: none;
  border-radius: 4px; transition: background .16s;
}
.site-nav a:hover { background: var(--highlight); }
.site-nav a[aria-current='page'] { background: var(--highlight); font-weight: 600; }
.topbar-link { margin-left: auto; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; font-size: .9375rem; font-weight: 500; }

.account { position: relative; flex: none; margin-left: auto; }
.account > summary { list-style: none; }
.account > summary::-webkit-details-marker { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap); min-width: var(--tap); padding: 4px 12px 4px 4px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px;
  cursor: pointer; user-select: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.menu-toggle:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--quiet-ink); }
.menu-toggle .avatar { border-width: 1px; }
.menu-icon, .menu-icon::before { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease); }
.menu-icon { position: relative; transform: translateY(-3px); }
.menu-icon::before { content: ""; position: absolute; top: 6px; }
.account[open] .menu-icon { transform: translateY(0) rotate(45deg); }
.account[open] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: 260px; max-width: calc(100vw - 2 * var(--gutter)); padding: 8px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--highlight);
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-who { display: flex; flex-direction: column; margin: 0 0 6px; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.3; }
.menu-who small { color: var(--quiet-ink); }
.menu-main { display: none; }
.menu a, .menu .link-button {
  display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0 10px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; border-radius: 4px;
}
.menu a:hover, .menu .link-button:hover { background: var(--highlight); }
.menu a[aria-current='page']::after { content: "you are here" / ""; margin-left: auto; font-family: var(--hand); font-size: 1.15rem; color: var(--quiet-ink); }
.menu-form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }

/* phones: compact bar, the account button opens a full-width sheet with every link */
@media (max-width: 759px) {
  .topbar-inner { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .logo-word { font-size: 1.3125rem; }
  .logo-tag { font-size: 1.25rem; }
  .site-nav { display: none; }
  .account { position: static; }
  .menu {
    left: 0; right: 0; top: 100%; width: auto; max-width: none;
    border-width: 1px 0 1.5px; border-color: var(--line) transparent var(--ink); border-radius: 0;
    padding: 6px var(--gutter) 18px; box-shadow: 0 24px 40px -24px #00000059;
    animation: slide-down .22s var(--ease);
  }
  .menu-main { display: block; }
  .menu a, .menu .link-button { min-height: 52px; font-size: 1.25rem; letter-spacing: -.03em; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 2px; }
  .menu-form { border-top: 0; }
}
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 9. page layout ---------- */
.main { max-width: 1080px; margin: 0 auto; padding: 28px var(--gutter) 72px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 1rem; margin-bottom: 1.25rem; }
.page-head > * { flex: 1 1 100%; min-width: 0; }
.page-head > .kicker, .page-head > .eyebrow { flex: 0 0 auto; margin-right: 100%; }
.page-head > .actions, .page-head > .button { flex: 0 1 auto; margin: .5rem 0 0; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head > div > :last-child:not(h1):not(.eyebrow) { margin-bottom: 0; }
.back-link { margin-bottom: .5rem; }
.back-link a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; }
.detail-title { margin-top: .75rem; font-size: clamp(1.6rem, 4vw, 2.1rem); overflow-wrap: anywhere; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 2rem; margin-bottom: .75rem; }
.section-head .section-title { margin: 0; }
@media (max-width: 640px) {
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .page-head > .actions, .page-head > .button { grid-column: 1; grid-row: auto; margin: .25rem 0 0; }
  .page-head .button { width: 100%; }
}

/* ---------- 10. notices and empty states ---------- */
.notice {
  margin: 0 0 1.25rem; padding: 12px 14px; border-radius: 4px;
  background: var(--blush); border: 1.5px solid var(--ink); font-weight: 500; line-height: 1.45;
}
.notice-error { background: var(--bad-bg); border-color: var(--bad); color: #5c1410; }
.notice-minor { background: #eef4fb; border-color: #1d4f9166; }
.banner-preview { background: #fff7e0; border-color: #a07000; border-style: dashed; }
/* empty: a small taped note with a handwritten line */
.empty {
  --tilt: -1deg; position: relative; max-width: 30rem; margin: 2rem auto 1.5rem; padding: 30px 22px 20px;
  background: var(--blush); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow);
  color: var(--quiet-ink); font-weight: 500; text-align: center; transform: rotate(var(--tilt));
}
.empty p { margin: 0; }
.empty::after {
  content: "nothing here yet" / ""; display: block; margin-top: 8px;
  font-family: var(--hand); font-size: 1.375rem; color: var(--quiet-ink); transform: rotate(-2deg);
}
.empty:nth-of-type(even) { --tilt: 1deg; }

/* ---------- 11. command-center vocabulary ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 22px 18px; margin: 1.25rem 0 1.75rem; }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 16px 16px 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow);
  transform: rotate(var(--tilt));
}
:where(.stat-grid > .stat:nth-child(4n+1)) { --tilt: -.6deg; }
:where(.stat-grid > .stat:nth-child(4n+2)) { --tilt: .5deg; }
:where(.stat-grid > .stat:nth-child(4n+3)) { --tilt: -.3deg; }
:where(.stat-grid > .stat:nth-child(4n)) { --tilt: .7deg; }
.stat-num { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-label { font-size: .875rem; font-weight: 500; color: var(--quiet-ink); line-height: 1.3; }
.stat-note { font-family: var(--hand); font-size: 1.2rem; line-height: 1.1; color: var(--quiet-ink); transform: rotate(-1.5deg); transform-origin: left; }
.stat-warn, .stat.stat-warn .stat-num { color: var(--bad); }
.stat.stat-warn { color: inherit; border-color: var(--bad); box-shadow: 3px 3px 0 var(--bad-bg); }
.stat a { text-decoration: none; }
.stat a::after { content: ""; position: absolute; inset: 0; }
.stat:has(a):hover { box-shadow: 3px 3px 0 var(--quiet-ink); }

.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; font-variant-numeric: tabular-nums; }
.funnel-label { flex: 0 0 9rem; min-width: 0; font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; }
.funnel-bar {
  flex: 1 1 8rem; min-width: 0; height: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink) 0 calc(var(--pct, 0) * 1%), var(--highlight) 0);
}
.funnel-row > :not(.funnel-label):not(.funnel-bar) { flex: none; font-weight: 600; }

.progress { position: relative; height: 10px; margin: 6px 0; border-radius: 999px; background: var(--highlight); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: calc(var(--pct, 0) * 1%); max-width: 100%; border-radius: 999px; background: var(--ink); transition: width .4s var(--ease); }

/* bar widths without inline styles (CSP style-src has no 'unsafe-inline'); an inline --pct still wins if allowed */
.pct-0 { --pct: 0; } .pct-5 { --pct: 5; } .pct-10 { --pct: 10; } .pct-15 { --pct: 15; } .pct-20 { --pct: 20; }
.pct-25 { --pct: 25; } .pct-30 { --pct: 30; } .pct-35 { --pct: 35; } .pct-40 { --pct: 40; } .pct-45 { --pct: 45; }
.pct-50 { --pct: 50; } .pct-55 { --pct: 55; } .pct-60 { --pct: 60; } .pct-65 { --pct: 65; } .pct-70 { --pct: 70; }
.pct-75 { --pct: 75; } .pct-80 { --pct: 80; } .pct-85 { --pct: 85; } .pct-90 { --pct: 90; } .pct-95 { --pct: 95; }
.pct-100 { --pct: 100; }

.countdown {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 20px;
  padding: 6px 10px; border: 1.5px dashed var(--ink); border-radius: 4px;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.countdown-num { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; }
.countdown-label { font-family: var(--hand); font-size: 1.25rem; font-weight: 500; color: var(--quiet-ink); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 12px; }
.timeline-step { position: relative; padding: 0 0 18px 26px; border-left: 1.5px dashed var(--line-strong); min-height: 26px; }
.timeline-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-step::before {
  content: ""; position: absolute; left: -13px; top: -1px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 4px; background: var(--paper); border: 1.5px solid var(--line-strong);
  font-size: .8125rem; font-weight: 600; line-height: 1;
}
.timeline-step.is-done::before { content: "\2713" / ""; background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(-4deg); }
.timeline-step.is-current { font-weight: 600; }
.timeline-step.is-current::before { background: var(--blush); border: 1.5px dashed var(--ink); transform: rotate(4deg); }
.timeline-step.is-current::after { content: "you are here" / ""; margin-left: 8px; font-family: var(--hand); font-size: 1.15rem; font-weight: 500; color: var(--quiet-ink); }
.timeline-step.is-todo { color: var(--quiet-ink); }

.activity { list-style: none; margin: 0; padding: 0; }
.activity-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.activity-item:last-child { border-bottom: 0; }
.activity-time { flex: 0 0 6rem; font-size: .8125rem; color: var(--quiet-ink); font-variant-numeric: tabular-nums; }
.activity-item > :not(.activity-time) { flex: 1 1 12rem; min-width: 0; }

/* ---------- 12. lists, tags, tables (flat and dense) ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; align-items: center; gap: .75rem; min-height: var(--tap); border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-box, .inbox-list, .people-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.list-box > li + li, .inbox-list li + li, .people-list li + li { border-top: 1px solid var(--line); }
.inbox-row { display: flex; flex-direction: column; gap: .25rem; padding: .875rem 1rem; min-height: var(--tap); text-decoration: none; }
.inbox-row:hover { background: var(--blush); }
.inbox-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--quiet-ink); }
.preview { color: var(--quiet-ink); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; flex-wrap: wrap; }
.person-id { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.template-row, .contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .75rem 1rem; }
.contact-main { display: flex; flex-direction: column; gap: .125rem; flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.contact-main > a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: .875rem; }
.contact-links a { display: inline-flex; align-items: center; min-height: var(--tap); overflow-wrap: anywhere; }
.contact-touch { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.owner-chip { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; min-width: 0; }
.owner-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due { font-size: .8125rem; color: var(--quiet-ink); font-variant-numeric: tabular-nums; }
.due.is-overdue, .is-overdue .due { color: var(--bad); font-weight: 600; }
.list-row.is-overdue .grow { color: var(--bad); }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  font-size: .75rem; font-weight: 600; line-height: 1.5; background: var(--highlight); color: var(--ink);
}
.tag-row { display: flex; flex-wrap: wrap; gap: .25rem; }
.tag-sponsor, .tag-st-contacted, .tag-st-in_talks, .tag-status-waitlisted { background: var(--blush); }
.tag-done, .tag-st-committed, .tag-st-delivered, .tag-st-thanked,
.tag-status-accepted, .tag-status-rsvp_confirmed, .tag-status-checked_in { background: var(--ok-bg); color: var(--ok); }
.tag-open, .tag-tier, .tag-status-submitted, .tag-status-under_review { background: var(--ink); color: var(--paper); }
.tag-st-prospect, .tag-status-draft { background: var(--highlight); }
.tag-st-declined, .tag-status-declined, .tag-status-withdrawn { background: var(--bad-bg); color: var(--bad); }
.count { display: inline-block; font-size: .75rem; font-weight: 600; min-width: 1.5rem; text-align: center; padding: 1px 6px; border-radius: 999px; background: var(--highlight); font-variant-numeric: tabular-nums; }

.fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .375rem 1rem; margin: 1rem 0; }
.fields dt { color: var(--quiet-ink); font-size: .875rem; }
.fields dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .fields { grid-template-columns: minmax(0, 1fr); } .fields dd { margin-bottom: .5rem; } }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8125rem; font-weight: 600; color: var(--quiet-ink); }
.table-wrap { overflow-x: auto; max-width: 100%; }

/* ---------- 13. login ---------- */
.page-login .main { display: flex; justify-content: center; padding-top: clamp(32px, 8vh, 72px); }
.auth-card { width: 100%; max-width: 460px; padding: 36px clamp(18px, 4vw, 30px) 26px; }
.provider-list { display: flex; flex-direction: column; gap: 10px; margin-top: 1.25rem; }
.provider-button {
  display: flex; align-items: center; gap: .75rem; min-height: 50px; padding: .5rem 1rem;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
a.provider-button:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--quiet-ink); }
.provider-button span { display: flex; flex-direction: column; line-height: 1.25; }
.provider-button small { font-weight: 400; color: var(--quiet-ink); }
.provider-button.is-disabled { color: var(--quiet-ink); background: #fafafa; border: 1.5px dashed var(--line-strong); cursor: not-allowed; }
.provider-button.is-disabled .provider-logo { filter: grayscale(1); opacity: .5; }
.provider-logo { flex: none; }

/* ---------- 14. hacker dashboard (pre-R1 markup) ---------- */
.welcome { display: flex; align-items: center; gap: 1rem; }
.welcome h1 { margin-bottom: .125rem; }
.welcome p { margin: 0; }

/* ---------- 15. organizer shell ---------- */
.org { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.org-main { min-width: 0; }
.org-nav { display: none; }
.org-nav-group ul { list-style: none; margin: 0; padding: 0; }
.org-nav-heading { margin: 12px 0 2px; padding: 0 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet-ink); }
.org-nav-group a, .org-jump-menu a {
  position: relative; display: flex; align-items: center; min-height: var(--tap); padding: 0 10px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; border-radius: 3px;
}
.org-nav-group a:hover { background: var(--highlight); }
.org-nav-group a[aria-current='page'] { font-weight: 600; background: linear-gradient(transparent 22%, var(--tape) 22%, var(--tape) 82%, transparent 82%); }
.org-nav-group a[aria-current='page']::after {
  content: "\2190 here" / ""; margin-left: auto; font-family: var(--hand); font-size: 1.15rem; font-weight: 500; color: var(--quiet-ink); transform: rotate(-4deg);
}
/* >= 960px: taped index-card sidebar */
@media (min-width: 960px) {
  .org { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .org-nav { display: block; position: sticky; top: 92px; align-self: start; padding-top: 14px; }
  .org-nav-card {
    position: relative; padding: 22px 10px 12px; transform: rotate(-.6deg);
    background: var(--paper); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow);
  }
  .org-nav-title { margin: 0 0 4px; padding: 0 10px 8px; border-bottom: 1.5px solid #b3261e55; font-family: var(--hand); font-size: 1.625rem; font-weight: 700; line-height: 1; transform: rotate(-1.5deg); }
  .org-jump { display: none; }
}
/* < 960px: compact "Organizer: <section>" bar that slides a section list down */
.org-jump { position: relative; margin: -8px 0 1.25rem; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.org-jump > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer;
}
.org-jump > summary::-webkit-details-marker { display: none; }
.org-jump-label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet-ink); }
.org-jump-here { font-family: var(--hand); font-size: 1.375rem; font-weight: 700; line-height: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-jump-icon { width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); flex: none; }
.org-jump[open] .org-jump-icon { transform: rotate(-135deg) translateY(-3px); }
.org-jump-menu { padding: 0 8px 10px; border-top: 1px solid var(--line); animation: slide-down .22s var(--ease); }
.org-jump-menu .org-nav-group ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 8px; }

/* ---------- 16. organizer tools ---------- */
.message h1 { margin-top: .75rem; font-size: 1.75rem; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: #fafafa; border: 1px solid var(--line); border-radius: 3px; }
/* sponsor pipeline: status columns on desktop (scroll inside the board), stacked sections on phones */
.pipeline-summary { margin-bottom: 1rem; }
.secured { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .75rem; }
.secured strong { font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pipeline-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .25rem 1rem; }
.pipeline-counts li { display: flex; justify-content: space-between; gap: .5rem; font-size: .875rem; padding: .25rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pipeline-counts span { color: var(--quiet-ink); }
.pipeline-board { display: grid; gap: .75rem; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.board-col { background: #fafafa; border: 1px solid var(--line); border-radius: 3px; padding: .75rem; min-width: 0; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .9375rem; margin-bottom: .625rem; }
.board-empty { font-size: .875rem; margin: 0; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.sponsor-card {
  display: flex; flex-direction: column; gap: .375rem; padding: .75rem; min-height: var(--tap);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px; text-decoration: none;
  overflow-wrap: anywhere; transition: border-color .16s, background .16s;
}
.sponsor-card:hover { border-color: var(--ink); background: var(--blush); }
.sponsor-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .5rem; }
.amount { font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.next-step { font-size: .8125rem; }
.status-buttons .subhead { margin-bottom: 0; }
.status-buttons .actions { margin-top: .5rem; }
@media (max-width: 640px) {
  .pipeline-board { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
  .board-col { padding: .625rem; }
}
/* templates: use page */
.copy-block { display: flex; flex-direction: column; gap: .5rem; }
.copy-block > label { font-size: .875rem; }
.copy-block input[readonly], .copy-block textarea[readonly] { background: #fafafa; }
.copy-block textarea { white-space: pre-wrap; line-height: 1.5; }
.copy-block .actions { margin-top: 0; }
.copy-block > .button { align-self: flex-start; }
/* tabs (to-dos) */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line-strong); margin: .5rem 0 1rem; overflow-x: auto; scrollbar-width: thin; }
.tabs a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .875rem; flex: none;
  text-decoration: none; font-weight: 500; color: var(--quiet-ink); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); background: var(--highlight); }
.tabs a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
/* to-dos */
.todo-add { margin-bottom: 1rem; }
.todo-add label:first-child { flex-basis: 100%; }
@media (min-width: 760px) { .todo-add label:first-child { flex-basis: 260px; flex-grow: 2; } }
.todo-row { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem .5rem .5rem; }
.todo-check, .todo-delete { margin: 0; flex: none; }
.todo-check .check {
  display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap);
  background: transparent; border: 0; cursor: pointer; padding: 0; font: inherit; color: var(--paper);
}
.todo-check .check span {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border: 2px solid var(--ink); border-radius: 4px; font-size: .875rem; line-height: 1;
}
.todo-check .check:hover span { background: var(--highlight); }
.is-done .todo-check .check span { background: var(--ink); color: var(--paper); transform: rotate(-4deg); }
.todo-main { display: flex; flex-direction: column; gap: .125rem; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.todo-title { font-weight: 500; }
.is-done .todo-title { text-decoration: line-through; color: var(--quiet-ink); }
.is-overdue .todo-title { color: var(--bad); }
.todo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem .75rem; font-size: .8125rem; }
.todo-meta a { display: inline-flex; align-items: center; min-height: 32px; }
.todo-delete .link-button { color: var(--quiet-ink); font-size: .8125rem; padding: 0 .5rem; }
.todo-delete .link-button:hover { color: var(--bad); }

/* ---------- 17. application ---------- */
.page-apply .main { max-width: 800px; }
.apply-head { margin-bottom: 1rem; }
.apply-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.apply-steps { margin: 0 0 1.5rem; }
.apply-steps ol {
  list-style: none; margin: 0 0 .75rem; padding: 4px 2px 0; display: flex; gap: .25rem;
  overflow-x: auto; scrollbar-width: thin;
}
.apply-steps li { flex: 1 0 auto; }
.apply-steps a {
  display: flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .75rem;
  border-bottom: 2px solid var(--line); text-decoration: none; font-size: .875rem; font-weight: 500;
  color: var(--quiet-ink); white-space: nowrap;
}
.apply-steps a:hover { color: var(--ink); background: var(--highlight); }
.apply-steps a[aria-current='step'] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 4px;
  border-radius: 4px; background: var(--highlight); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.apply-steps a[aria-current='step'] .step-n { background: var(--ink); color: var(--paper); transform: rotate(-4deg); }
.progress-label { font-size: .8125rem; font-weight: 500; color: var(--quiet-ink); gap: .25rem; }
progress {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; margin: .25rem 0 1rem;
  border: 0; border-radius: 999px; background: var(--highlight); overflow: hidden; color: var(--ink);
}
progress::-webkit-progress-bar { background: var(--highlight); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--ink); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--ink); border-radius: 999px; }
.progress-label progress { margin: 0; }
.apply-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.apply-fieldset[disabled] { opacity: .85; }
fieldset.choice, fieldset.demographics { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem 1rem; margin: 0; min-width: 0; }
fieldset.choice legend, fieldset.demographics legend { font-size: .875rem; font-weight: 600; padding: 0 .25rem; }
fieldset.choice .check { display: inline-flex; margin-right: 1.5rem; }
fieldset.demographics { display: flex; flex-direction: column; gap: 1rem; }
.resume-current { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.apply-actions { align-items: center; }
.save-status { font-size: .8125rem; color: var(--quiet-ink); }
.save-status.is-ok { color: var(--ok); }
.save-status.is-error { color: var(--bad); }
.missing ul { margin: 0; padding-left: 1.25rem; }
.missing a { color: var(--bad); }
.review-step { margin-bottom: 1rem; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-head h2 { margin: 0; }
.review-step .fields dd.answer { white-space: pre-wrap; }
@media (max-width: 600px) {
  .review-step .fields { grid-template-columns: minmax(0, 1fr); }
  .review-step .fields dd { margin-bottom: .5rem; }
}
.apply-closed, .apply-done { max-width: 640px; margin: 1.5rem auto; }

/* ---------- 18. teams ---------- */
.team-forms { display: flex; flex-direction: column; gap: 1rem; margin-top: .75rem; }
.team-code { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.team-code code {
  font-family: var(--mono); font-size: 1.25rem; font-weight: 600; letter-spacing: .08em;
  padding: .25rem .75rem; background: var(--blush); border: 1.5px dashed var(--ink); border-radius: 4px;
  transform: rotate(-1.5deg);
}
.team h2 { overflow-wrap: anywhere; }
.team-members { margin: 1rem 0; }
.team-members .list-row { padding: .5rem 0; flex-wrap: wrap; }
.member-id { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.member-id .tag { margin-left: .375rem; }
.member-status.is-done { color: var(--ok); }
.team-members .inline-form { margin: 0; }
.looking-list .list-row { padding: .625rem 0; }

/* ---------- 19. error and unsubscribe pages: a handwritten note ---------- */
.error-page { max-width: 560px; margin: clamp(32px, 8vh, 80px) auto; padding: 44px clamp(20px, 5vw, 40px) 30px; }
.error-page .sticker-num { font-size: 1.25rem; padding: 8px 12px; }
.error-page .scribble { display: block; width: fit-content; margin: -4px 0 6px; }
.error-page .lede { margin-bottom: .75rem; }

/* ---------- 20. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .button:hover, .card-link:hover, a.provider-button:hover, .menu-toggle:hover { transform: none; }
}

/* 14-day submissions chart: compact funnel rows */
.funnel-days { gap: 2px; }
.funnel-days .funnel-row { min-height: 0; padding-block: 1px; font-size: .8125rem; }

.page-head > .quick-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.page-head > .quick-actions .button { flex: 1 1 auto; width: auto; max-width: 100%; box-sizing: border-box; }

/* kind tags inside activity rows stay compact */
.activity-item .tag { display: inline-block; width: auto; max-width: max-content; }
