/* Vnua-connect web. Same tokens as the iPhone app (VnuaConnect-iOS/VnuaConnect/Design/Theme.swift). */
:root {
  /* Palette: navy from SHPE (#001F5B) and AIAA (#1A3D6D, #3179A7), orange from SHPE (#FD652F) used only for small
     highlights (it's too light for text on white). Not Hofstra's licensed blue/gold. */
  --ground: #eef1f5; --bg: #f6f7f9; --surface: #ffffff; --text: #101828; --text-2: #4b5565;
  --divider: #e1e5eb; --fill: #eef1f5; --accent: #1a3d6d; --on-accent: #ffffff; --accent-soft: #e7eef7;
  --highlight: #fd652f;
  --success: #24704f; --success-soft: #e3f1ea; --warning: #8a4b06; --warning-soft: #fbeedc; --danger: #b42318;
  --radius-s: 8px; --radius: 12px; --radius-l: 16px; --gutter: 16px; --tap: 44px;
  --shadow: 0 4px 16px rgba(16, 24, 40, .10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Figtree", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  color-scheme: light dark;
}
/* Dark: automatic (phone setting) unless the user picked Light; or forced by picking Dark in Profile → Appearance. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #070b14; --bg: #0b1220; --surface: #141c2c; --text: #eef2f8; --text-2: #a3aec2;
    --divider: #263045; --fill: #1c2538; --accent: #5aa3d8; --on-accent: #06101e; --accent-soft: #16233a;
    --highlight: #ff8a5c;
    --success: #7fd1a8; --success-soft: #12291f; --warning: #f2b86b; --warning-soft: #2e2212; --danger: #ff9c8a;
    --shadow: 0 4px 16px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
    --ground: #070b14; --bg: #0b1220; --surface: #141c2c; --text: #eef2f8; --text-2: #a3aec2;
    --divider: #263045; --fill: #1c2538; --accent: #5aa3d8; --on-accent: #06101e; --accent-soft: #16233a;
    --highlight: #ff8a5c;
    --success: #7fd1a8; --success-soft: #12291f; --warning: #f2b86b; --warning-soft: #2e2212; --danger: #ff9c8a;
    --shadow: 0 4px 16px rgba(0, 0, 0, .45);
  }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.4 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.screen { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) var(--gutter)
  calc(env(safe-area-inset-bottom) + 96px); }
.screen.no-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 32px); }
.large-title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 28px 0 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--tap); margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--accent); text-decoration: none;
  font-size: 17px; min-height: var(--tap); padding: 0 8px 0 0; cursor: pointer; }
.icon-btn { background: none; border: 0; color: var(--accent); min-width: var(--tap); min-height: var(--tap);
  font-size: 22px; cursor: pointer; border-radius: 50%; }
.stack { display: grid; gap: 12px; }
.stack-l { display: grid; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.footnote { font-size: 13px; color: var(--text-2); }
.section-header { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 8px 0 -4px; }
.boot { min-height: 100dvh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--divider); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.card { background: var(--surface); border: .5px solid var(--divider); border-radius: var(--radius-l); padding: var(--gutter); }
a.card, button.card { display: block; width: 100%; text-align: left; color: inherit; text-decoration: none; cursor: pointer; font: inherit; }
a.card:active, button.card:active { background: var(--fill); }
a.card.row, a.card.club-row { display: flex; }
.club-row { display: flex; gap: 14px; align-items: flex-start; }
.club-row .name { font-weight: 700; font-size: 17px; }
.club-row .blurb { color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chev { color: var(--divider); font-weight: 600; margin-top: 2px; }
.mono { flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; border-radius: 26%; font-family: var(--font-display); }

/* Event rows */
.date-chip { flex: none; width: 48px; height: 56px; display: grid; place-content: center; text-align: center;
  background: var(--accent-soft); border-radius: var(--radius); line-height: 1.05; }
.date-chip .dow { font-size: 11px; font-weight: 600; color: var(--accent); }
.date-chip .day { font-size: 22px; font-weight: 800; }
.event-title { font-weight: 700; }
.cancelled .event-title { text-decoration: line-through; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > *, .hscroll > a.card { flex: none; width: 240px; scroll-snap-align: start; }
.kicker { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px;
  border-radius: 999px; background: var(--fill); color: var(--text-2); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
/* Founder badge: same glossy two-tone-gradient-plus-shine technique as .btn.primary (see the Frutiger Aero
   accent rules further down), just gold. Gold is the chip's background, never body text on the page background
   — a contrast check (this background against the dark text below) comes out around 8:1, comfortably past AA. */
.badge.founder { position: relative; overflow: hidden; isolation: isolate; color: #3d2b00; border: 1px solid #b8860b;
  background: linear-gradient(180deg, #fde68a 0%, #f2c94c 55%, #d4a017 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.badge.founder svg { width: 12px; height: 12px; }
.badge.founder::after { content: ""; position: absolute; z-index: -1; left: 1px; right: 1px; top: 1px; height: 45%; pointer-events: none;
  border-radius: 999px 999px 50% 50% / 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.05)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--tap);
  padding: 0 16px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 17px;
  cursor: pointer; text-decoration: none; transition: opacity .12s, background .12s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:active:not(:disabled) { opacity: .85; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--divider); }
.btn.secondary:active:not(:disabled) { background: var(--fill); }
.btn.danger { background: none; color: var(--danger); }
.btn.small { width: auto; min-height: 36px; font-size: 15px; padding: 0 12px; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 8px 0; min-height: var(--tap); }
.link-btn.danger { color: var(--danger); }

/* Chips + segmented */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--divider);
  background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 10px; padding: 2px; }
.segmented button { min-height: 34px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Forms */
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field > span { font-size: 15px; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--divider); background: var(--surface); font-size: 17px; }
textarea.input { min-height: 96px; resize: vertical; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d705d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.input:focus { outline: none; border: 2px solid var(--accent); padding: 9px 13px; }
.search { position: relative; }
.search input { padding-left: 38px; background: var(--fill); border-color: transparent; }
.search::before { content: ""; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d705d' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E") no-repeat center / contain; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: .5px solid var(--divider); cursor: pointer; }
.choice:last-child { border-bottom: 0; }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: .5px solid var(--divider); }
.list-row:last-child { border-bottom: 0; }

/* Tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 10px);
  width: min(560px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
  border-radius: 999px; background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: .5px solid var(--divider); box-shadow: var(--shadow); z-index: 10; }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 999px; color: var(--text);
  text-decoration: none; font-size: 10.5px; white-space: nowrap; font-weight: 600; min-height: var(--tap); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Sheet (modal) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet { width: min(640px, 100%); max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 8px var(--gutter) calc(env(safe-area-inset-bottom) + 20px); animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet-head { position: sticky; top: -8px; background: var(--bg); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 52px; margin: 0 calc(-1 * var(--gutter)) 8px; padding: 0 var(--gutter); border-bottom: .5px solid var(--divider); z-index: 1; }
.sheet-head h2 { font-size: 17px; font-weight: 700; text-align: center; }
.sheet-head .left { justify-self: start; } .sheet-head .right { justify-self: end; }
.sheet-head button { background: none; border: 0; color: var(--accent); font-size: 17px; min-height: var(--tap); cursor: pointer; }
.sheet-head .right button { font-weight: 700; }
.sheet-head button:disabled { opacity: .4; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Toast */
#toast { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translate(-50%, -120%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; z-index: 30; font-size: 15px; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow); color: var(--success); transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s .25s; pointer-events: none; visibility: hidden; }
#toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
#toast.error { color: var(--danger); }

/* Pass + scanner */
.qr { width: min(280px, 80vw); aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 24px; padding: 18px;
  display: grid; place-items: center; box-shadow: var(--shadow); }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.scanner { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 16px; }
.result { font-weight: 600; font-size: 15px; }
.result.ok { color: var(--success); } .result.warn { color: var(--warning); }
.removed { text-decoration: line-through; }
.notice { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.notice.warning { color: var(--warning); }
.empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.empty h2 { color: var(--text); font-size: 20px; margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 700px) { .large-title { font-size: 40px; } }

/* ───── v2 ───── */
.narrow { max-width: 520px; }
.title-row { display: flex; align-items: center; gap: 4px; }
.title-row .large-title { flex: 1; }
.title-row .icon-btn { margin-top: 14px; display: inline-grid; place-items: center; text-decoration: none; }
.icon-btn svg { width: 24px; height: 24px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.app-mark { width: 56px; height: 56px; color: var(--accent); }
.app-mark svg { width: 100%; height: 100%; }
.code-input { font-size: 28px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.link-btn:disabled { color: var(--text-2); cursor: default; }

/* Onboarding + multi-step pages */
.ob { padding-top: calc(env(safe-area-inset-top) + 28px); }
.ob-hero { padding-top: 32px; }
.ob-title { font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin: 12px 0 10px; }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dots span { height: 4px; flex: 1; max-width: 48px; border-radius: 2px; background: var(--divider); }
.dots span.on { background: var(--accent); }
.ob-nav { display: grid; gap: 4px; margin-top: 28px; justify-items: center; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-wrap.big .chip { min-height: 44px; font-size: 16px; padding: 0 16px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--divider);
  background: var(--surface); font-size: 15px; font-weight: 600; }
.chip-check input:checked + span { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice-card { display: grid !important; gap: 4px; padding: 18px var(--gutter); }
.choice-card strong { font-size: 19px; }
.toggles { padding-top: 0; padding-bottom: 0; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: .5px solid var(--divider); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle input { -webkit-appearance: none; appearance: none; flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--fill);
  position: relative; cursor: pointer; transition: background .2s; margin: 0; border: .5px solid var(--divider); }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked { background: var(--success); }
.toggle input:checked::after { transform: translateX(20px); }

/* Logos, avatars, people */
img.logo { flex: none; object-fit: cover; border-radius: 26%; background: #fff; border: .5px solid var(--divider); }
.logo-pick { display: flex; gap: 20px; align-items: center; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; clip: auto; }
.avatar { flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: hsl(var(--h) 45% 28%);
  background: hsl(var(--h) 55% 88%); font-family: var(--font-display); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: hsl(var(--h) 60% 85%); background: hsl(var(--h) 30% 26%); } }
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 60% 85%); background: hsl(var(--h) 30% 26%); }
.people .person { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: .5px solid var(--divider); }
.people .person:first-child { padding-top: 0; } .people .person:last-child { border-bottom: 0; padding-bottom: 0; }
.ask { font-size: 15px; margin-top: 4px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contact-row .btn svg { width: 18px; height: 18px; }
.person-card .small-icon { font-size: 16px; color: var(--text-2); }
.notice-card { display: grid !important; gap: 2px; background: var(--accent-soft); border-color: transparent; }
.invite-card { border: 1.5px solid var(--accent); }

/* Officer team slots */
.slot { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: .5px solid var(--divider); min-height: 52px; }
.slot:last-child { border-bottom: 0; }
.slot-t { width: 116px; flex: none; font-weight: 600; font-size: 15px; }
.slot .tick { color: var(--success); font-weight: 700; }
.slot.open .slot-t { color: var(--text-2); }
.officer-actions { display: grid; gap: 10px; }
.extra { padding: 12px; }

/* Stats, bars, stars */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: .5px solid var(--divider); border-radius: var(--radius-l); padding: 14px; }
.stat-v { font-size: 26px; font-weight: 800; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13px; font-weight: 600; }
.bar { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--success); border-radius: 999px; }
.dist { display: grid; gap: 6px; }
.rank { width: 28px; flex: none; text-align: center; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.list-row.me { background: var(--accent-soft); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.member .icon-btn svg { width: 20px; height: 20px; }
.stars { display: flex; gap: 4px; }
.star { width: 40px; height: 40px; padding: 6px; border: 0; background: none; color: var(--divider); cursor: pointer; border-radius: 8px; }
.stars.big .star { width: 48px; height: 48px; }
.star svg { width: 100%; height: 100%; }
.star.on { color: #d9a21b; }
.rate-card { text-align: left; }
details.card summary { cursor: pointer; min-height: 28px; }
details.card[open] summary { margin-bottom: 4px; }
dl.facts { margin: 0; display: grid; gap: 10px; }
dl.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
dl.facts dt { color: var(--text-2); font-size: 15px; }
dl.facts dd { margin: 0; }
label.swatch { display: inline-block; }
label.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }

/* Inbox */
.note { display: grid; gap: 6px; }
.note.unread { border-left: 4px solid var(--accent); }
.note-title { font-weight: 700; color: var(--text); text-decoration: none; }
a.note-title:hover { text-decoration: underline; }

/* ───── v3 ───── */
.segmented.tight button { font-size: 12.5px; padding: 0 2px; }
.todos { padding-top: 4px; padding-bottom: 4px; }
.todo { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: .5px solid var(--divider); font-size: 15px; }
.todo:last-child { border-bottom: 0; }
.todo .btn + .btn { margin-left: 6px; }
.slot-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: .5px solid var(--divider); }
.slot-row:last-child { border-bottom: 0; }
.slot-row .bar { margin-top: 6px; }
.vote { flex: none; width: 180px; }
.vote button { font-size: 13px; }
.vote button[aria-pressed="true"] { color: var(--accent); }
/* Task status: a badge you tap (44px target around a small pill) */
.status-btn { flex: none; min-height: var(--tap); min-width: var(--tap); padding: 0 2px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.status-btn .badge { white-space: nowrap; }
.task-note, .attn-note { display: block; margin-top: 2px; }
.dash-exports { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 14px; }
.task.done .spacer > div:first-child { text-decoration: line-through; color: var(--text-2); }
dl.facts.stacked div { grid-template-columns: 1fr; gap: 0; }
dl.facts.stacked dt { font-size: 13px; font-weight: 600; }
.newcomer { border-left: 4px solid var(--success); }
.newcomer-form summary { cursor: pointer; }
.newcomer-form .field { margin-top: 10px; }
textarea.input.short { min-height: 64px; }
ul.fb { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
@media (max-width: 380px) { .vote { width: 150px; } .slot-row { flex-wrap: wrap; } }

/* ───── pitch fixes ───── */
.fair-note { font-size: 14px; color: var(--text-2); margin: -6px 0 0; padding-left: 12px; border-left: 3px solid var(--accent); }
.about p { font-size: 15px; }
/* iOS: a slow tap on a button must press it, not start selecting its text. */
button, .btn, .chip, .chip-check, .tabbar a, .back, .link-btn, .segmented button, .star, .toggle, summary {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }

/* ───── visual pass: type, lists, stats ───── */
.large-title, .ob-title, h1, h2, .stat-v, .mono, .event-title, .club-row .name { font-family: var(--font-display); }
.large-title { font-weight: 800; letter-spacing: -.015em; }
/* One grouped list instead of a stack of identical boxes */
.list { background: var(--surface); border: .5px solid var(--divider); border-radius: var(--radius-l); overflow: hidden; }
.list > a.card { border: 0; border-radius: 0; background: none; border-bottom: .5px solid var(--divider); }
.list > a.card:last-child { border-bottom: 0; }
/* Dates: plain type, no tinted square */
.date-chip { background: none; width: 44px; height: auto; padding-top: 2px; }
.date-chip .dow { color: var(--highlight); letter-spacing: .04em; }
.date-chip .day { font-family: var(--font-display); font-size: 24px; }
/* Dashboard numbers: one strip, separated by hairlines */
.stats { gap: 0; background: var(--surface); border: .5px solid var(--divider); border-radius: var(--radius-l); }
.stat { background: none; border: 0; border-radius: 0; padding: 14px 16px; }
.stats > .stat:nth-child(2n) { border-left: .5px solid var(--divider); }
.stats > .stat:nth-child(n+3) { border-top: .5px solid var(--divider); }
@media (min-width: 560px) {
  .stats > .stat:nth-child(n) { border-left: .5px solid var(--divider); border-top: 0; }
  .stats > .stat:first-child { border-left: 0; }
}
/* Tab bar: state shown by color + a small orange mark, not a tinted pill */
.tabbar a[aria-current="page"] { background: none; color: var(--accent); position: relative; }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: 2px; width: 16px; height: 3px; border-radius: 2px; background: var(--highlight); }
.fair-note { border-left-color: var(--highlight); }
.bar span { background: var(--accent); }
.note.unread { border-left-color: var(--highlight); }
.dots span.on { background: var(--accent); }

/* Founder dashboard charts: one series, thin bars, quiet axis */
.bars { width: 100%; height: 96px; display: block; }
.bars .axis { stroke: var(--divider); stroke-width: .5; vector-effect: non-scaling-stroke; }
.bars .bar { fill: var(--accent); }
.bars .hit { fill: transparent; }
.bars g:hover .bar { fill: var(--highlight); }
.founder-entry { align-items: center; border-color: var(--accent); }

/* Profile photos */
img.avatar.photo { flex: none; border-radius: 50%; object-fit: cover; background: var(--fill); }
.photo-pick { position: relative; display: inline-block; cursor: pointer; flex: none; }
.photo-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--accent); border: .5px solid var(--divider); }
.photo-pick:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 50%; }

/* ───── Design cleanup (Nov 14). Sources: Fountain Institute "7 signs of a vibe-coded UI";
   Nutlope/hallmark anti-pattern catalogue; Refactoring UI (hierarchy via weight/color, fewer borders);
   Lucide icon design principles (one set, 24px grid, 2px stroke). ───── */
:root { --surface: #fcfcfd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --surface: #141c2c; } }
:root[data-theme="dark"] { --surface: #141c2c; }

/* Section labels: sentence case, not an uppercase "eyebrow" on every block */
.section-header { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--text); margin: 12px 0 -2px; }

/* No colored side stripes */
.fair-note { border-left: 0; padding-left: 0; margin-top: -4px; }
.newcomer, .note.unread, .invite-card, .founder-entry { border-left: .5px solid var(--divider); border-color: var(--divider); }
.newcomer { border: .5px solid var(--divider); }
.note.unread .note-title::after { content: "New"; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--accent); vertical-align: 1px; }
.invite-card { border: 1px solid var(--accent); }

/* Icons: one drawn set, sized to their context */
.back { gap: 2px; }
.back svg { width: 22px; height: 22px; margin-left: -6px; }
.icon-btn { display: inline-grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; }
.chev svg { width: 18px; height: 18px; color: var(--text-2); opacity: .6; }
.chev { margin-top: 0; align-self: center; }
.btn svg { width: 18px; height: 18px; }
.slot .tick svg { width: 18px; height: 18px; color: var(--success); }
#lookup-results svg { width: 20px; height: 20px; }
.person-card .small-icon svg { width: 18px; height: 18px; }
.notice-card.archived { display: flex !important; gap: 12px; align-items: flex-start; background: var(--fill); }
.notice-card.archived svg { width: 22px; height: 22px; flex: none; color: var(--text-2); }
.notice-card.archived > div { display: grid; gap: 2px; }

/* Solid, edge-attached tab bar and plain toast (no decorative frosted glass) */
.tabbar { left: 0; right: 0; transform: none; bottom: 0; width: 100%; border-radius: 0; padding: 6px 8px calc(env(safe-area-inset-bottom) + 4px);
  background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 0; border-top: .5px solid var(--divider); }
.tabbar a { border-radius: 10px; }
.tabbar a[aria-current="page"]::after { display: none; }
.tabbar a[aria-current="page"] { font-weight: 700; }
.screen { padding-bottom: calc(env(safe-area-inset-bottom) + 84px); }
#toast { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border: .5px solid var(--divider); border-radius: 12px; }

/* Avatars without a photo: one quiet neutral, not random pastels */
.avatar:not(.photo) { background: var(--fill) !important; color: var(--text-2) !important; }

/* Fewer, quieter badges */
.badge { font-weight: 500; }

/* Small labels in sentence case too (no uppercase eyebrows) */
.kicker { text-transform: none; font-size: 13px; letter-spacing: 0; }

/* Event perks: the one place an event earns a little color, to catch the eye */
.badge.perk { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ───── Motion (only where something happened). Principles from ddoemonn/interior (MIT):
   "Nothing moves unless something happened" and "under reduced motion, the information still arrives".
   The global prefers-reduced-motion rule above turns every animation/transition below off. ───── */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); }

/* Press: Wii-channel feel. Every big tap target presses in fast (with a little shadow dip, like a real button going down)
   and springs back with a small overshoot on release. Touch only: nothing happens on hover. */
:root { --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
.btn, .chip, .chip-check span, .card.club-row, a.card, .tabbar a, .segmented button, .action-row {
  transition: transform 260ms var(--ease-spring), box-shadow 200ms var(--ease-out), background-color 120ms, opacity 120ms; }
.btn:active:not(:disabled), .chip:active, .chip-check:active span, .tabbar a:active, .segmented button:active, .action-row:active {
  transform: scale(.96); transition-duration: 80ms; }
a.card:active, button.card:active { transform: scale(.985); transition-duration: 80ms; box-shadow: 0 1px 3px rgba(16,24,40,.10); }
.btn.primary:active:not(:disabled) { box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 1px 2px rgba(16,24,40,.12); }

/* Check-in verified: seal + check drawn once, then it holds */
#ci-result { display: flex; align-items: center; gap: 10px; min-height: 32px; }
#ci-result .seal { width: 28px; height: 28px; flex: none; color: var(--success); }
#ci-result .seal svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#ci-result.stamp .seal circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: draw 320ms var(--ease-out) forwards; }
#ci-result.stamp .seal path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: draw 220ms 260ms var(--ease-out) forwards; }
#ci-result.stamp { animation: verified-bg 900ms var(--ease-out); border-radius: 10px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes verified-bg { from { background: var(--success-soft); } to { background: transparent; } }

/* Toggle: decisive slide; the thumb widens while held (shows the press registered) */
.toggle input, .toggle input::after { transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), width 120ms var(--ease-out); }
.toggle input:active::after { width: 32px; }
.toggle input:checked:active::after { transform: translateX(15px); }

/* Club card → club page: the logo travels into the header (Safari view transitions) */
.hero-mark { view-transition-name: club-hero; width: max-content; }
::view-transition-group(club-hero) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }

/* Pull to refresh (Home Screen app): a dot that fills as you pull; spins only while actually loading */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translateX(-50%); z-index: 15; pointer-events: none; }
.ptr-dot { display: block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--divider);
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 8px, #000 9px); mask: radial-gradient(circle, transparent 8px, #000 9px); }
.ptr.loading .ptr-dot { background: none; border-color: var(--divider); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
/* Reduced motion: no drawing animation, but the finished seal is still shown */
@media (prefers-reduced-motion: reduce) { #ci-result.stamp .seal circle, #ci-result.stamp .seal path { stroke-dashoffset: 0 !important; } }

/* Long invited emails wrap instead of pushing buttons/badges off-screen */
.slot .spacer, .team .row .spacer, .list-row .spacer, .todo .spacer { min-width: 0; overflow-wrap: anywhere; }
.slot .btn, .slot .link-btn, .team .row .badge { flex: none; }

/* Shared club page: Join pinned to the bottom (references: Lex, Meetup, Garmin Connect, Numo on Mobbin) */
.pin-bar { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 10px; margin: 20px calc(-1 * var(--gutter)) 0;
  padding: 12px var(--gutter) calc(env(safe-area-inset-bottom) + 12px); background: var(--bg); border-top: .5px solid var(--divider); }
.pin-bar .footnote { text-align: center; }
#preview { padding-bottom: 0; }
/* Members line with a few faces (references: Meetup, Numo) */
.member-line { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; }
.member-line .faces { display: inline-flex; }
.member-line .faces .avatar { border: 2px solid var(--bg); box-sizing: content-box; }
.member-line .faces .avatar + .avatar { margin-left: -8px; }
/* Pending officer invite: email status + Email/Resend and Cancel side by side */
.slot.pending { align-items: flex-start; }
.slot.pending .slot-t { padding-top: 1px; }
.invite-mail { display: block; }
.slot-acts { display: flex; gap: 18px; margin-top: 6px; }
.slot-acts .link-btn { font-size: 15px; }
.danger-text { color: var(--danger); }
/* Onboarding interests: groups, picked/unpicked marks, Continue pinned with the count
   (references: Cosmos, BFF, Meetup, Medium for groups; Cosmos, TikTok, Meetup, Reddit for marks; Cosmos, TikTok, X for the pinned count) */
.interest-groups { display: grid; gap: 22px; margin-top: 4px; }
.interest-groups .section-header { margin: 0 0 10px; }
.chip-wrap.big .chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-wrap.big .chip svg { width: 16px; height: 16px; flex: none; }
.chip-wrap.big .chip[aria-pressed="false"] svg { color: var(--text-2); }
.ob-pinned { padding-bottom: 0; }
.ob-pinned .pin-bar { justify-items: center; gap: 4px; }
.btn[aria-disabled="true"] { opacity: .45; }
/* Officer dashboard: sections sit on the page with dividers instead of one card each
   (references: X admin tools, Posh, Fitbit, Facebook, Strava on Mobbin) */
.dash .card.todos, .dash .card.recog, .dash .card.member-list, .dash .stats {
  background: none; border: 0; border-radius: 0; padding-left: 0; padding-right: 0; box-shadow: none; }
.dash .card.todos, .dash .card.member-list { border-top: .5px solid var(--divider); padding-top: 0; padding-bottom: 0; }
.dash .stats { border-top: .5px solid var(--divider); border-bottom: .5px solid var(--divider); }
.dash .card.recog { padding-top: 0; padding-bottom: 0; }
.dash .stats > .stat:nth-child(2n+1) { padding-left: 0; }
/* Secondary recognition actions as rows with the count at the right (references: Posh, X admin tools) */
.action-rows { display: grid; border-top: .5px solid var(--divider); margin-top: 2px; }
.action-row { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0; background: none; border: 0;
  border-bottom: .5px solid var(--divider); color: var(--accent); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.action-row .count { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag-line { margin-top: 2px; }
.tone-success { color: var(--success); } .tone-accent { color: var(--accent); } .tone-warning { color: var(--warning); }
.tone-danger { color: var(--danger); }
/* Second pass: the Events, Tasks and Polls tabs match the Members tab (same references as the first pass) */
.dash .card:not(.nudge):not(.recog) { background: none; border: 0; border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0;
  border-top: .5px solid var(--divider); }
.dash .card:not(.nudge):not(.recog):not(.stack) { padding-top: 0; padding-bottom: 0; }
.dash .card.stack:not(.nudge):not(.recog) { padding-top: 16px; padding-bottom: 4px; }
.dash details.card summary { padding: 12px 0; }
/* Profile interest picker matches onboarding: groups and check/plus marks */
.chip-check span { gap: 6px; }
.chip-check i { display: inline-flex; font-style: normal; }
.chip-check i svg { width: 15px; height: 15px; }
.chip-check .i-plus { color: var(--text-2); }
.chip-check .i-check, .chip-check input:checked + span .i-plus { display: none; }
.chip-check input:checked + span .i-check { display: inline-flex; }
.field .interest-groups { gap: 16px; margin-top: 6px; }
/* A to-do with two buttons puts them under its text, so the text isn't squeezed on a phone */
.todo:has(.btn + .btn) { flex-wrap: wrap; }
.todo:has(.btn + .btn) .spacer { flex-basis: 100%; }
.todo .btn + .btn { margin-left: 0; }
.todo:has(.btn + .btn) { column-gap: 8px; row-gap: 10px; }
/* Inline validation under the field (reference: LinkedIn sign-up, Mobbin export, local) */
.field-error { color: var(--danger); font-size: 13px; font-weight: 500; margin-top: 2px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
/* Six-box code entry: one real input over six boxes (references: Cursor sign-in, GroupMe verify) */
.code-boxes { position: relative; }
.code-boxes .boxes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; pointer-events: none; }
.code-boxes .boxes span { height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--divider);
  border-radius: var(--radius); background: var(--surface); color: var(--text); font: 700 24px var(--font-display); font-variant-numeric: tabular-nums; }
.code-boxes:focus-within .boxes span.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.code-boxes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent;
  color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; z-index: 1; }
.code-boxes:has(input[aria-invalid="true"]) .boxes span { border-color: var(--danger); }
/* "Last used" sign-in method on this device (reference: Cursor sign-in) */
.last-used { margin-left: 8px; font-size: 12px; font-weight: 600; opacity: .8; }
.link-btn .last-used { color: var(--text-2); opacity: 1; }
.club-row .why { margin-top: 4px; }
.code-boxes input:focus, .code-boxes input:focus-visible { outline: none; box-shadow: none; }
/* Move and scale: position a photo or logo before saving */
.crop { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.crop-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px var(--gutter); min-height: 52px; }
.crop-head h2 { font-size: 17px; font-weight: 700; }
.crop-head button { background: none; border: 0; color: var(--accent); font: inherit; font-size: 17px; min-height: var(--tap); cursor: pointer; justify-self: start; }
.crop-head [data-crop=done] { font-weight: 700; justify-self: end; }
.crop-body { flex: 1; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 0 var(--gutter) 24px; }
.crop-stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; overflow: hidden; touch-action: none; cursor: grab;
  background: #000; border-radius: var(--radius-l); user-select: none; -webkit-user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-frame { position: absolute; inset: 0; pointer-events: none; border-radius: 26%; box-shadow: 0 0 0 999px rgba(0,0,0,.45); outline: 2px solid rgba(255,255,255,.9); outline-offset: -2px; }
.crop-stage.round .crop-frame { border-radius: 50%; }
.crop-zoom { display: flex; align-items: center; gap: 12px; width: min(100%, 360px); font-size: 15px; color: var(--text-2); }
.crop-zoom input { flex: 1; accent-color: var(--accent); min-height: var(--tap); }
.crop-hint { margin: 0; font-size: 13px; color: var(--text-2); text-align: center; }
/* Loading: Adriel's hand-drawn VNUA mark, turning slowly (it is the loading indicator). Black on light, white on dark. */
.boot-mark { width: 88px; height: 88px; background: url("boot-light.png") center / contain no-repeat; animation: bm-spin 2.4s linear infinite; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .boot-mark { background-image: url("boot-dark.png"); } }
:root[data-theme="dark"] .boot-mark { background-image: url("boot-dark.png"); }
@keyframes bm-spin { to { transform: rotate(360deg); } }
@keyframes bm-wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .boot-mark { animation: bm-wait 1.6s ease-in-out infinite; } }   /* no spinning: a slow fade instead */
.boot.inline { min-height: 0; padding: 48px 0; }
/* Founder dashboard */
.fd .search { display: block; } .fd .search .input { width: 100%; }
.seg-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-size: 12px; font-weight: 700; }
.state-waiting { color: var(--warning); font-weight: 600; } .state-live { color: var(--success); font-weight: 600; }
.action-list { display: grid; padding: 0; }
.action-list .action-row { text-decoration: none; }
.action-row.danger { color: var(--danger); }
.action-row .count { font-size: 13px; font-weight: 500; text-align: right; }
.fd-chart { gap: 8px; }
.fd .segmented button { white-space: nowrap; padding-left: 4px; padding-right: 4px; }
.fd .seg-n { min-width: 16px; padding: 0 4px; margin-left: 3px; font-size: 11px; line-height: 16px; }

/* ── Texture and personality pass (docs/DESIGN.md "Texture"). Three additions only. ──────────────────────── */
/* 1. Grain over flat colour: a static 128px noise tile baked once (no live SVG filter, no blend mode, so it costs
      a phone nothing per frame). Sits on the page background only; cards and buttons stay flat and fully legible. */
body { background-image: url("grain.png"); background-size: 128px 128px; }
/* Atmosphere: Adriel's soft brush-texture wash as ONE fixed layer behind every screen (not per page, it doesn't scroll).
   Cards are solid surfaces, so it only shows in the gaps; very faint so text on the page background keeps its contrast.
   Separate from the grain tile above. */
body { isolation: isolate; --px: 0px; --py: 0px; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("bg-wash.png") center / cover no-repeat; opacity: .035;   /* the file is flattened; this opacity is the whole effect */
  /* Tiny parallax drift — a nod to noclip.website's "look around" feel, in plain CSS, no 3D engine. --px/--py come
     from mouse position on desktop and scroll position everywhere else (so it's visible on a phone with no mouse).
     scale(1.06) keeps the 10px of travel from ever revealing an edge. */
  transform: scale(1.06) translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { body::before { transition: none; transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: .05; } }
:root[data-theme="dark"] body::before { opacity: .05; }
/* 2. Engineering texture on empty space only: inkjet's "circuit" pattern (https://github.com/dragoon0x/inkjet, MIT License,
      Copyright (c) 2025 0xDragoon; full text in THIRD_PARTY_NOTICES.md),
      drawn as a mask so it takes the theme's accent colour, at 6% opacity. Never behind real content. */
:root { --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 24H19.2V9.6H48' fill='none' stroke='black' stroke-width='1.2'/%3E%3Ccircle cx='19.2' cy='24' r='2.2'/%3E%3C/svg%3E"); }
.signin-screen { display: flex; flex-direction: column; min-height: 100dvh; box-sizing: border-box; }
.signin-screen::after { content: ""; flex: 1 1 0; min-height: 0; margin-top: 28px; border-radius: var(--radius-l);
  background: var(--accent); -webkit-mask: var(--circuit) 0 0 / 48px 48px repeat; mask: var(--circuit) 0 0 / 48px 48px repeat; opacity: .06; pointer-events: none; }
.empty { position: relative; isolation: isolate; border-radius: var(--radius-l); }
.empty::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  -webkit-mask: var(--circuit) 0 0 / 48px 48px repeat; mask: var(--circuit) 0 0 / 48px 48px repeat; opacity: .06; pointer-events: none; }
/* 3. SHPE orange, used boldly in one place: the "needs action" block on the officer and founder dashboards. */
.attn { border-left: 4px solid var(--highlight); padding-left: 14px; }
.attn > .section-header { color: var(--text); }

/* ── Identity pass ────────────────────────────────────────────────────────────────────────────────── */
/* Personal colour ring. Dark mode lightens the navies so the ring stays visible on a dark background. */
.avatar.ringed { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring); }
:root[data-theme="dark"] .avatar.ringed { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--ring) 55%, white); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar.ringed { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--ring) 55%, white); } }
/* Founder's ring: gold, and the only avatar ring in the app that flashes — exclusive, not a selectable colour. */
.avatar.founder-ring { animation: founder-flash 1.8s ease-in-out infinite; }
@keyframes founder-flash {
  0%, 100% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #d4a017; }
  50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px #fde68a, 0 0 9px 2px rgba(212,160,23,.55); }
}
@media (prefers-reduced-motion: reduce) { .avatar.founder-ring { animation: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #d4a017; } }
.swatch.none { background: var(--surface); border: 1.5px dashed var(--text-2); }
.my-color .swatches { margin-top: 8px; }
/* Picked for you: a ⋯ button on the card (outside the link, so it's its own target) */
.pick { position: relative; }
.pick .club-row { padding-right: 52px; }
.pick-more { position: absolute; top: 6px; right: 6px; color: var(--text-2); }
/* Vibe line: the officers' own voice, set apart from the structured description */
.vibe { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); font-family: var(--font-display); }
/* Brand mark as a quiet motif in the founder header */
.with-mark { display: flex; align-items: center; gap: 10px; }
.with-mark .app-mark { width: 26px; height: 26px; opacity: .55; flex: none; }
/* ── Accessibility: every tap target at least 44x44 CSS px (Apple HIG minimum) ── */
.chip, .chip-check span { min-height: 44px; }
.btn.small { min-height: 44px; }
.segmented button { min-height: 44px; }
.swatch { width: 44px; height: 44px; }
.list-row > a:only-child { display: flex; align-items: center; min-height: 44px; flex: 1; }
/* ── Accessibility: large text / 200% zoom never makes a screen scroll sideways ── */
.stack > *, .stack-l > *, .row > *, .card > * { min-width: 0; }
p, .footnote, .muted, h1, h2, .name, .list-row .spacer { overflow-wrap: anywhere; }
.segmented { grid-auto-columns: minmax(0, 1fr); }
.segmented button { overflow-wrap: anywhere; line-height: 1.15; padding: 4px 2px; }
.tabbar a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.input, input.input, textarea.input, select.input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.icon-btn.small-icon { min-width: 44px; min-height: 44px; }
.toggle .spacer, .list-row .spacer, .todo .spacer { min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }

/* ── Collab events: co-host token field (matches chips and swatches already in the app) ── */
.tokens { display: flex; flex-wrap: wrap; gap: 8px; }
.tokens:empty { display: none; }
.token { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 6px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--divider); font-size: 15px; font-weight: 600; max-width: 100%; }
.token > span:not(.token-state) { overflow-wrap: anywhere; }
.token-state { font-size: 12px; font-weight: 500; color: var(--text-2); }
.token-x { width: 36px; height: 36px; min-width: 44px; min-height: 44px; margin: -4px 0; border: 0; background: none; color: var(--text-2); font-size: 20px; cursor: pointer; border-radius: 999px; }
.suggest { display: grid; }
.suggest:empty { display: none; }
.sug { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 2px; border: 0; border-bottom: .5px solid var(--divider); background: none;
  color: var(--text); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.sug .footnote { text-align: right; }
.mono.ext { background: var(--text-2); color: var(--bg); }
.cohost-line { margin: 0; }
.cohost-state { color: var(--text-2); }
/* Search fields keep room for the icon while focused (the generic focus rule reset the left padding) */
.search input:focus, .search .input:focus { padding-left: 37px; }
/* Officer dashboard: Recent updates (what members were told) sits right under Needs attention */
.updates > .row { align-items: center; gap: 10px; }
.updates .todo .badge { margin-right: 6px; vertical-align: 1px; }
/* First-time tour: a ring around the thing being explained, the rest dimmed, one short callout */
.tour { position: fixed; inset: 0; z-index: 40; }
.tour-ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); outline: 2px solid #fff; pointer-events: none; transition: all .2s var(--ease-out); }
.tour-card { position: fixed; background: var(--surface); color: var(--text); border: .5px solid var(--divider); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.tour-card p { margin: 0; font-size: 15px; color: var(--text-2); }
.tour-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.tour-dots { flex: 1; display: flex; gap: 6px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--divider); }
.tour-dots i.on { background: var(--accent); }
.tour-foot .link-btn, .tour-foot .btn { min-height: var(--tap); }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }

/* ───── Frutiger Aero, as an accent only ─────
   Gloss on primary buttons, glassy orbs on the sign-in and welcome screens. Dense screens (lists, stats, forms, exports)
   keep the plain system. Technique: a two-tone vertical gradient, a soft white shine over the top ~45% drawn BEHIND the
   label (so text never sits on the highlight), rgba for anything transparent, "bold shadows, soft highlights".
   Sources: frutigeraeroarchive.org ("How to nail the Web 2.0 Gloss look"), r/FrutigerAero glossy-button thread,
   github.com/samratjha96/candesign (frutiger-aero.html: ::after shine, radial-gradient bubbles). */
.btn.primary { position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 52%, color-mix(in srgb, var(--accent) 90%, #000) 100%);
  border-color: color-mix(in srgb, var(--accent) 78%, #000);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 2px 6px rgba(16,24,40,.18); }
.btn.primary::after { content: ""; position: absolute; z-index: -1; left: 3px; right: 3px; top: 2px; height: 44%; pointer-events: none;
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 50% 50% / calc(var(--radius) - 3px) calc(var(--radius) - 3px) 8px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.02)); }
.btn.primary.small::after { border-radius: 6px 6px 50% 50% / 6px 6px 6px 6px; }
.btn.primary:disabled { box-shadow: none; }
/* Orbs: decorative, top-right, in the empty space beside the mark (never behind text). */
:root {
  --shine: radial-gradient(circle at 34% 30%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,.25) 16%, rgba(255,255,255,0) 30%);
  --orb: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent) 8%, transparent) 0%, color-mix(in srgb, var(--accent) 22%, transparent) 72%,
         color-mix(in srgb, var(--accent) 50%, transparent) 94%, transparent 100%);
}
.signin-screen, .ob-hero { position: relative; isolation: isolate; }
.signin-screen::before, .ob-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 10px; right: 4px; width: 150px; height: 104px;
  background: var(--shine) 92px 4px / 54px 54px no-repeat, var(--orb) 92px 4px / 54px 54px no-repeat,
    var(--shine) 40px 46px / 40px 40px no-repeat, var(--orb) 40px 46px / 40px 40px no-repeat,
    var(--shine) 108px 66px / 26px 26px no-repeat, var(--orb) 108px 66px / 26px 26px no-repeat;
  opacity: .8; animation: orb-float 7s ease-in-out infinite; }
.ob-hero::before { top: 32px; }
@keyframes orb-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .signin-screen::before, .ob-hero::before { animation: none; } }
/* Hidden: bubbles. Three quick taps on empty background (or five on the brand mark) let a few glass bubbles float up
   and fade. Plain CSS animation on a handful of elements that delete themselves; nothing runs until then. */
.bubble { position: fixed; z-index: 30; pointer-events: none; border-radius: 50%;
  background: var(--shine), var(--orb); animation: bubble-up 2.4s cubic-bezier(.3, .6, .4, 1) forwards; opacity: 0; }
@keyframes bubble-up {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  12% { opacity: .95; transform: translate(calc(var(--sway) * .15), calc(var(--rise) * .1)) scale(1); }
  45% { transform: translate(calc(var(--sway) * -.35), calc(var(--rise) * .5)) scale(1); }
  80% { opacity: .8; }
  100% { opacity: 0; transform: translate(var(--sway), var(--rise)) scale(1.08); } }
.egg-spin { animation: egg-spin .9s var(--ease-spring) !important; }
@keyframes egg-spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.15); } to { transform: rotate(360deg) scale(1); } }
/* 3DS HOME Menu touches. (1) A focused card glows softly and pulses, around the normal focus outline (never instead
   of it). (2) Opening something sends one quick ring out from where you tapped. Both are transient. */
a.card:focus-visible, button.card:focus-visible, .card.club-row:focus-visible, .tabbar a:focus-visible {
  animation: focus-glow 1.8s ease-in-out infinite; }
@keyframes focus-glow {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 10px 4px color-mix(in srgb, var(--accent) 12%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 26%, transparent), 0 0 18px 8px color-mix(in srgb, var(--accent) 26%, transparent); } }
.tap-ring { position: fixed; z-index: 35; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  animation: tap-ring 340ms var(--ease-out) forwards; }
@keyframes tap-ring { from { transform: scale(0); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
/* Wii U touches: avatars settle in once per screen visit (staggered); a new Needs-attention / Recent-updates item pops once. */
.avatar.settle { animation: settle-in 420ms var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes settle-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.todo.pop { animation: item-pop 520ms var(--ease-spring) both; }
@keyframes item-pop { 0% { opacity: 0; transform: scale(.94); } 60% { opacity: 1; transform: scale(1.015); } 100% { transform: none; } }

/* ───── Aero chrome: the app's furniture looks like 2000s glass and gel ─────
   (two-tone gradients, a soft shine on the top half drawn under any text, light inner edges, "bold shadows, soft
   highlights"). Text colours are unchanged and every label keeps its contrast; data screens keep their layout. */
/* Tab bar: a glass dock, the current tab a glossy "Vista selection" capsule */
.tabbar { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface) 82%, transparent));
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 -2px 12px rgba(16,24,40,.08); }
.tabbar a[aria-current="page"] { color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, #fff) 0%, var(--accent-soft) 55%, color-mix(in srgb, var(--accent-soft) 90%, var(--accent)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.7); }
/* Chips: glass when off, gel when on */
.chip, .chip-check span { background-image: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(16,24,40,.06); }
.chip[aria-pressed="true"], .chip-check input:checked + span {
  background-image: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 90%, #000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 5px rgba(16,24,40,.18); }
/* Segmented control: the chosen one is a raised pearl capsule */
.segmented { box-shadow: inset 0 1px 3px rgba(16,24,40,.10); }
.segmented button[aria-pressed="true"] { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--accent)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 3px rgba(0,0,0,.14); }
/* Switches: a gel track and a pearl knob */
.toggle input { box-shadow: inset 0 1px 3px rgba(16,24,40,.18); }
.toggle input:checked { background: linear-gradient(180deg, color-mix(in srgb, var(--success) 70%, #fff), var(--success) 60%, color-mix(in srgb, var(--success) 85%, #000)); }
.toggle input::after { background: radial-gradient(circle at 35% 30%, #fff 0 30%, #eef1f5 70%, #d8dee8 100%); }
/* Progress bars: glossy, with one shine sweep when they first appear (no loop) */
.bar { box-shadow: inset 0 1px 2px rgba(16,24,40,.15); }
.bar span { position: relative; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--success) 65%, #fff), var(--success) 55%, color-mix(in srgb, var(--success) 85%, #000)); }
.bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%); animation: bar-shine 1.4s .3s var(--ease-out) 1 forwards; }
@keyframes bar-shine { to { transform: translateX(100%); } }
/* Toasts: a little glass capsule */
#toast { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface) 86%, transparent));
  border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px rgba(16,24,40,.18); }
/* Sheets: the page behind softly frosts; the header is a glass bar */
.sheet-backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-head { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, var(--bg)), var(--bg)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
/* Club monograms and initials: lit like a droplet of water from the top-left */
.mono { position: relative; isolation: isolate; overflow: hidden; box-shadow: inset 0 -2px 4px rgba(0,0,0,.18), 0 2px 6px rgba(16,24,40,.15); }
.mono::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; top: 3%; height: 46%; border-radius: 40% 40% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.04)); pointer-events: none; }
.avatar:not(.photo) { background-image: radial-gradient(circle at 34% 26%, rgba(255,255,255,.75), rgba(255,255,255,0) 50%) !important; }
.bell .dot { background: radial-gradient(circle at 35% 28%, #ff9a8c 0 18%, var(--danger) 60%, color-mix(in srgb, var(--danger) 80%, #000));
  box-shadow: 0 1px 3px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4); color: #fff; }
/* Cards you can open: a faint glass edge on top (light mode only; dark cards already read as glass) */
a.card, .card.club-row { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 3px rgba(16,24,40,.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a.card, :root:not([data-theme="light"]) .card.club-row { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) .avatar:not(.photo) { background-image: radial-gradient(circle at 34% 26%, rgba(255,255,255,.16), rgba(255,255,255,0) 50%) !important; }
  :root:not([data-theme="light"]) .chip:not([aria-pressed="true"]), :root:not([data-theme="light"]) .chip-check input:not(:checked) + span { background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) .tabbar, :root:not([data-theme="light"]) #toast, :root:not([data-theme="light"]) .segmented button[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.4); }
  :root:not([data-theme="light"]) .tabbar a[aria-current="page"] { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, var(--accent)), var(--accent-soft)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }
  :root:not([data-theme="light"]) #toast { border-color: rgba(255,255,255,.1); }
  :root:not([data-theme="light"]) .sheet-head { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); } }
:root[data-theme="dark"] a.card, :root[data-theme="dark"] .card.club-row { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
:root[data-theme="dark"] .avatar:not(.photo) { background-image: radial-gradient(circle at 34% 26%, rgba(255,255,255,.16), rgba(255,255,255,0) 50%) !important; }
:root[data-theme="dark"] .chip:not([aria-pressed="true"]), :root[data-theme="dark"] .chip-check input:not(:checked) + span { background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
:root[data-theme="dark"] .tabbar, :root[data-theme="dark"] #toast, :root[data-theme="dark"] .segmented button[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.4); }
:root[data-theme="dark"] .tabbar a[aria-current="page"] { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, var(--accent)), var(--accent-soft)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }
:root[data-theme="dark"] #toast { border-color: rgba(255,255,255,.1); }
:root[data-theme="dark"] .sheet-head { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
/* Wii channel "open": a new screen eases in from slightly smaller, once per visit (not on refreshes of the same screen) */
.screen.enter { animation: screen-in 280ms var(--ease-out) both; }
@keyframes screen-in { from { opacity: .4; transform: scale(.975); } to { opacity: 1; transform: none; } }
/* Loading: a few glass bubbles drift up behind the spinning mark (only while loading) */
.boot:not(.inline) { position: relative; isolation: isolate; overflow: hidden; }
.boot:not(.inline)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--shine) 50% 70% / 34px 34px no-repeat, var(--orb) 50% 70% / 34px 34px no-repeat,
    var(--shine) 30% 80% / 22px 22px no-repeat, var(--orb) 30% 80% / 22px 22px no-repeat,
    var(--shine) 70% 85% / 26px 26px no-repeat, var(--orb) 70% 85% / 26px 26px no-repeat;
  animation: boot-rise 3.2s ease-in-out infinite; opacity: .7; }
@keyframes boot-rise { 0% { transform: translateY(40px); opacity: 0; } 30% { opacity: .7; } 100% { transform: translateY(-160px); opacity: 0; } }
/* Empty screens: one small bubble bobs above the message, so the page never looks dead */
.empty { padding-top: 84px; }
.empty::after { content: ""; position: absolute; top: 22px; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%;
  pointer-events: none; background: var(--shine), var(--orb); animation: orb-float 4s ease-in-out infinite; }   /* ::before is the circuit texture */

/* ───── Nintendo-era pieces (Wii Message Board, Miiverse Yeah!, StreetPass, Wii channels, 3DS profile card) ───── */
/* Sky banner used by the profile cards (Frutiger Aero sky + bubbles). Decorative only; text never sits on it. */
:root { --sky: linear-gradient(180deg, #8fd3ff 0%, #c9ecff 55%, #eaf8ff 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sky: linear-gradient(180deg, #0d3b66 0%, #145a8a 60%, #1b6fa3 100%); } }
:root[data-theme="dark"] { --sky: linear-gradient(180deg, #0d3b66 0%, #145a8a 60%, #1b6fa3 100%); }
.mii-banner, .plate-banner { background: var(--shine) 78% 30% / 44px 44px no-repeat, var(--orb) 78% 30% / 44px 44px no-repeat,
    var(--shine) 90% 70% / 24px 24px no-repeat, var(--orb) 90% 70% / 24px 24px no-repeat,
    var(--shine) 12% 60% / 30px 30px no-repeat, var(--orb) 12% 60% / 30px 30px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 50%), var(--sky); }
/* Profile card (yours): a short sky strip on top */
.card.plate { position: relative; overflow: hidden; padding-top: 0; }
.plate-banner { height: 64px; margin: 0 calc(-1 * var(--gutter)) 4px; border-bottom: 1px solid rgba(255,255,255,.5); }
/* Meet the founder: 3DS profile card */
.mii-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); border: .5px solid var(--divider);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 20px rgba(16,24,40,.12); text-align: center; padding-bottom: 18px; }
.mii-banner { height: 110px; }
.mii-photo { margin: -52px auto 8px; width: max-content; padding: 5px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #dfe7f1); box-shadow: 0 4px 12px rgba(16,24,40,.25), inset 0 1px 0 #fff; }
.mii-plate { margin: 0 16px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--accent)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); display: grid; gap: 4px; }
.mii-plate h1 { font-size: 22px; font-weight: 800; margin: 0; }
/* Miiverse-style post: name on top, the words in a speech bubble */
.post { display: grid; gap: 8px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-bubble { position: relative; background: var(--surface); border: .5px solid var(--divider); border-radius: 18px; padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 8px rgba(16,24,40,.08); }
.post-bubble::before { content: ""; position: absolute; top: -8px; left: 22px; width: 14px; height: 14px; background: var(--surface);
  border-left: .5px solid var(--divider); border-top: .5px solid var(--divider); transform: rotate(45deg); }
/* Roles as glossy badge tiles (3DS badges), popping in one after another */
.badge-tiles { display: grid; gap: 10px; }
.badge-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface);
  border: .5px solid var(--divider); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 3px rgba(16,24,40,.06);
  animation: item-pop 480ms var(--ease-spring) both; animation-delay: calc(var(--i) * 60ms); font-size: 15px; font-weight: 600; }
.badge-orb { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--shine), radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--highlight) 85%, #fff), var(--highlight) 60%, color-mix(in srgb, var(--highlight) 75%, #000)); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.badge-tile:nth-child(3n+2) .badge-orb { background: var(--shine), radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent) 60%, color-mix(in srgb, var(--accent) 75%, #000)); }
.badge-tile:nth-child(3n) .badge-orb { background: var(--shine), radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--success) 70%, #fff), var(--success) 60%, color-mix(in srgb, var(--success) 75%, #000)); }
/* Wii Menu channel panes for My Clubs: equal glossy tiles, the club's colour as a soft glow */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.channel { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 150px; padding: 16px 10px; border-radius: 20px;
  text-decoration: none; color: var(--text); text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0) 45%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--club)));
  border: 1px solid color-mix(in srgb, var(--club) 22%, var(--divider));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 8px rgba(16,24,40,.08);
  transition: transform 260ms var(--ease-spring), box-shadow 200ms var(--ease-out); }
.channel:active { transform: scale(.96); transition-duration: 80ms; box-shadow: 0 1px 3px rgba(16,24,40,.10); }
.channel:focus-visible { animation: focus-glow 1.8s ease-in-out infinite; }
.channel-name { font-weight: 700; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
/* Club page: the logo sits on a soft banner in the club's colour, like a channel's start screen */
.hero-mark { width: 100%; padding: 18px; border-radius: 22px; position: relative; overflow: hidden;
  background: var(--shine) 88% 25% / 40px 40px no-repeat, var(--orb) 88% 25% / 40px 40px no-repeat,
    var(--shine) 75% 75% / 22px 22px no-repeat, var(--orb) 75% 75% / 22px 22px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--club) 22%, var(--surface)), color-mix(in srgb, var(--club) 6%, var(--surface)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px color-mix(in srgb, var(--club) 18%, transparent); }
/* Event dates: a little glossy 3DS-calendar tile */
.date-chip { background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 50%), var(--accent-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 1px 3px rgba(16,24,40,.08); overflow: hidden; }
.date-chip .dow { display: block; margin: -1px -1px 2px; }
/* Miiverse "Yeah!" */
.yeah { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--text); border: 1px solid var(--divider);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0) 55%), var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 3px rgba(16,24,40,.08);
  transition: transform 260ms var(--ease-spring); }
.yeah svg { width: 18px; height: 18px; }
.yeah[aria-pressed="true"] { color: var(--on-accent); border-color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 48%), linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 90%, #000));
  animation: item-pop 420ms var(--ease-spring); }
.yeah:active { transform: scale(.94); transition-duration: 80ms; }
.yeah-note { display: block; margin-top: 4px; }
.yeah-count { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--accent); }
.yeah-count svg { width: 13px; height: 13px; }
:root[data-theme="dark"] .yeah, :root[data-theme="dark"] .channel, :root[data-theme="dark"] .badge-tile, :root[data-theme="dark"] .post-bubble, :root[data-theme="dark"] .mii-plate { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .yeah, :root:not([data-theme="light"]) .channel, :root:not([data-theme="light"]) .badge-tile,
  :root:not([data-theme="light"]) .post-bubble, :root:not([data-theme="light"]) .mii-plate { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) .channel { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 45%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 82%, var(--club))); }
  :root:not([data-theme="light"]) .hero-mark { background: var(--shine) 88% 25% / 40px 40px no-repeat, var(--orb) 88% 25% / 40px 40px no-repeat,
    linear-gradient(135deg, color-mix(in srgb, var(--club) 35%, var(--surface)), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) .date-chip { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 50%), var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
  :root:not([data-theme="light"]) .mii-photo { background: linear-gradient(180deg, #2a3a55, #141c2c); } }
:root[data-theme="dark"] .channel { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 45%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 82%, var(--club))); }
:root[data-theme="dark"] .hero-mark { background: var(--shine) 88% 25% / 40px 40px no-repeat, var(--orb) 88% 25% / 40px 40px no-repeat,
  linear-gradient(135deg, color-mix(in srgb, var(--club) 35%, var(--surface)), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
:root[data-theme="dark"] .date-chip { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 50%), var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
:root[data-theme="dark"] .mii-photo { background: linear-gradient(180deg, #2a3a55, #141c2c); }
/* StreetPass "You keep running into" */
.crossed-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.crossed-p { flex: none; width: 96px; display: grid; justify-items: center; text-align: center; gap: 2px; }
.crossed-n { font-weight: 700; font-size: 15px; margin-top: 4px; }
.crossed-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }
/* Wii Message Board: involvement calendar */
.board { padding-top: 8px; }
.board-head { display: flex; align-items: center; gap: 4px; }
.board-head strong { min-width: 0; overflow-wrap: anywhere; }
.board-head .icon-btn { flex: none; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 6px; }
.cal-d { min-width: 0; }
.cal-h { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-2); padding: 4px 0; }
.cal-d { position: relative; display: grid; place-items: center; min-height: var(--tap); border-radius: 12px; font-size: 14px; font-variant-numeric: tabular-nums;
  color: var(--text-2); border: 0; background: none; font-weight: 600; }
.cal-d.today { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
.cal-d.has { cursor: pointer; color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0) 50%), var(--fill); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(16,24,40,.08); }
.cal-d.has[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent), 0 1px 2px rgba(16,24,40,.08); }
.cal-d.in::after, .cal-d.rs::before { content: ""; position: absolute; bottom: 4px; width: 9px; height: 9px; border-radius: 50%; }
.cal-d.in::after { right: 5px; background: var(--shine), radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--success) 70%, #fff), var(--success)); }
.cal-d.rs::before { left: 5px; background: var(--shine), radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); }
.board-key { display: flex; gap: 16px; margin-top: 8px; }
.board-key span { display: inline-flex; align-items: center; gap: 6px; }
.board-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.k-in { background: var(--success); } .k-rs { background: var(--accent); }
.board-day { margin-top: 6px; animation: item-pop 360ms var(--ease-spring); }
:root[data-theme="dark"] .cal-d.has { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 50%), var(--fill); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-d.has { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 50%), var(--fill); box-shadow: none; } }

/* Add to Home Screen: Nintendo-style "icon character" popup (Wii / 3DS vibe).
   Bouncing app icon above a glossy speech card, front-and-center on Discover. */
.install-pop { position: fixed; inset: 0; z-index: 45; display: grid; place-items: end center; padding: 0 16px calc(env(safe-area-inset-bottom) + 88px); pointer-events: none; }
.install-scrim { position: absolute; inset: 0; background: rgba(8, 16, 32, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fade .2s; pointer-events: auto; }
.install-card { position: relative; z-index: 1; width: min(100%, 360px); margin-bottom: 8px; padding: 20px 18px 16px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #fff) 0%, var(--surface) 100%);
  border: .5px solid color-mix(in srgb, var(--accent) 22%, var(--divider));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 18px 40px rgba(16,24,40,.28);
  display: grid; gap: 10px; justify-items: center; text-align: center; pointer-events: auto;
  animation: install-up .45s var(--ease-spring); }
.install-card h2 { margin: 0; font-family: Figtree, system-ui, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.install-card > p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.35; }
.install-char { position: relative; width: 104px; height: 104px; margin-top: -62px; display: grid; place-items: center; }
.install-icon { width: 88px; height: 88px; border-radius: 22px; object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px rgba(16,24,40,.28), 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: install-bob 1.8s ease-in-out infinite; background: var(--surface); }
.install-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--accent) 70%, #fff));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent); animation: install-spark 1.6s ease-in-out infinite; }
.install-spark.s1 { top: 6px; right: 4px; animation-delay: 0s; }
.install-spark.s2 { bottom: 14px; left: 2px; width: 7px; height: 7px; animation-delay: .35s; }
.install-spark.s3 { top: 22px; left: 8px; width: 6px; height: 6px; animation-delay: .7s; }
.install-steps { margin: 0; padding: 10px 12px 10px 32px; width: 100%; box-sizing: border-box; text-align: left; list-style: decimal;
  background: color-mix(in srgb, var(--accent) 7%, var(--fill)); border-radius: 14px; display: grid; gap: 6px; font-size: 14px; line-height: 1.35; }
.install-steps li { padding-left: 2px; }
.install-steps strong { font-weight: 700; }
.install-steps svg { width: 16px; height: 16px; vertical-align: -3px; display: inline; }
.install-actions { display: grid; gap: 8px; width: 100%; margin-top: 2px; }
.install-actions .link-btn { justify-self: center; }
@keyframes install-up { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes install-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes install-spark { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .install-card { animation: fade .2s; }
  .install-icon, .install-spark { animation: none; }
}
/* Welcome to Vnua-connect: a 3DS-style intro. The app icon is the little guide character on the "top screen",
   the words sit in a solid speech card below it (never on the art), big buttons along the bottom. */
.welcome { position: fixed; inset: 0; z-index: 46; display: grid; place-items: center; padding: 16px; }
.welcome-scrim { position: absolute; inset: 0; background: rgba(8,16,32,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s; }
.welcome-card { position: relative; width: min(100%, 380px); border-radius: 26px; overflow: hidden; background: var(--surface);
  border: .5px solid var(--divider); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 20px 50px rgba(0,0,0,.35); }
.welcome-card.flip { animation: welcome-in .42s var(--ease-spring); }
@keyframes welcome-in { from { opacity: .3; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.welcome-top { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden;
  background: var(--shine) 82% 22% / 40px 40px no-repeat, var(--orb) 82% 22% / 40px 40px no-repeat,
    var(--shine) 12% 70% / 26px 26px no-repeat, var(--orb) 12% 70% / 26px 26px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 50%), var(--sky);
  border-bottom: 1px solid rgba(255,255,255,.5); }
.welcome-guide { width: 84px; height: 84px; border-radius: 22px; position: relative; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px rgba(16,24,40,.3); animation: install-bob 1.8s ease-in-out infinite; }
/* a small scene behind the guide per page, built from the same orb recipe */
.welcome-art { position: absolute; inset: 0; pointer-events: none; }
.welcome-art.art-hello::before, .welcome-art.art-done::before { content: ""; position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: tap-ring 1.6s var(--ease-out) infinite; }
.welcome-art.art-find::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 14px; height: 30px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55)); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(16,24,40,.15); }
.welcome-art.art-find::after { content: "A–Z"; position: absolute; left: 50%; bottom: 19px; transform: translateX(-50%); font: 800 14px var(--font-display); color: #1a3d6d; }
.welcome-art.art-build::before { content: ""; position: absolute; left: 50%; bottom: 14px; width: 220px; margin-left: -110px; height: 12px; border-radius: 999px;
  background: rgba(255,255,255,.55); box-shadow: inset 0 1px 2px rgba(16,24,40,.2); }
.welcome-art.art-build::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 150px; margin-left: -110px; height: 12px; border-radius: 999px;
  background: linear-gradient(180deg, #8fe3b0, #24704f); animation: welcome-fill 1.2s var(--ease-out) both; }
@keyframes welcome-fill { from { width: 10px; } }
.welcome-bubble { padding: 18px 20px 6px; text-align: center; display: grid; gap: 8px; }
.welcome-bubble h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.welcome-bubble p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.4; }
.welcome-extra:empty { display: none; }
.welcome-extra .btn { margin-top: 6px; }
.welcome-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 16px; }
.welcome-foot .tour-dots { flex: 1; }
.welcome-foot [hidden] { display: none; }
.welcome-foot .link-btn, .welcome-foot .btn { min-height: var(--tap); }
/* Drafts: a quiet "Draft restored · Discard" strip, never a modal */
.draft-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 60%), var(--accent-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); margin-bottom: 8px; }
.draft-bar .link-btn { min-height: var(--tap); flex: none; }
#draft-saved { margin: -4px 0 8px; }
:root[data-theme="dark"] .draft-bar { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft-bar { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); } }

/* ───── Far background: soft "weather in the distance" ─────
   Soft Aero (Adriel's research brief): optimism and tactile polish behind a practical UI; "don't turn the whole app
   into a Vista desktop." So: one faint fixed layer at the very back (the wash sits in front of it), five big blurred
   orbs/clouds drifting on 26–40 s loops, like the Wii Menu's air or a 3DS HOME Menu's quiet life behind the icons.
   CSS only, built from the app's own --orb / --sky tokens; no images, no canvas, no WebGL, no ripped game art.
   Reference only (no assets taken): frutigeraeroarchive.org/resources, frutiger-aero.online/resources.
   In-repo precedent: Wii channel air (7bbd07a, 1034e19), sky banners (6a27a88), orb tokens (baa119b).
   Off under Reduce Motion; paused whenever the tab isn't visible (html.is-hidden, set from app.js). */
body::after { content: ""; position: fixed; inset: -10vmax; z-index: -2; pointer-events: none; opacity: .07;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, #8fd3ff), transparent) 12% 18% / 38vmax 38vmax no-repeat,
    radial-gradient(closest-side, #9be7d8, transparent) 82% 30% / 30vmax 30vmax no-repeat,
    radial-gradient(closest-side, #ffffff, transparent) 60% 78% / 44vmax 26vmax no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, #c9ecff), transparent) 25% 85% / 26vmax 26vmax no-repeat,
    radial-gradient(closest-side, #bfe9ff, transparent) 92% 92% / 34vmax 22vmax no-repeat;
  animation: far-drift 34s ease-in-out infinite alternate; will-change: transform; }
@keyframes far-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(2.5vmax, -1.8vmax, 0) scale(1.03); }
  66% { transform: translate3d(-1.6vmax, 1.2vmax, 0) scale(.99); }
  100% { transform: translate3d(1.2vmax, 2.2vmax, 0) scale(1.02); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { opacity: .09; } }
:root[data-theme="dark"] body::after { opacity: .09; }
/* the identity screens may read a touch stronger (brief: strongest identity on welcome / sign-in / empty states) */
body:has(.signin-screen, .ob-hero)::after { opacity: .12; }
/* dense, practical screens stay quieter: QR pass, check-in, officer dashboard, forms */
body:has(.qr, #ci-result, #dash-body, .sheet-backdrop)::after { opacity: .035; }
html.is-hidden body::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
/* Club links (website / Instagram / LinkedIn) under the club's blurb */
.club-links { margin-top: 6px; }

/* ═══════════ Secret skin: a 3DS-inspired "HOME Menu" theme (opt-in; 7 taps on the Vnua mark) ═══════════
   Composition first: a substantial UPPER screen (soft rounded-square wallpaper, a real clock, an original pixel buddy),
   a plastic HINGE, and the app as the LOWER touch screen in an inset well. Then plastic icon frames, applet-coloured
   navigation wells, item-local four-corner selection, and Wii-style consistent channel bezels.
   Sources and which choices are documented vs. our own adaptation: docs/n3ds-skin-references.md.
   Locked light palette (independent of light/dark) so contrast is checked once. No Nintendo logos, characters, fonts,
   sounds, screenshots or theme files; every shape here is original CSS. */
@property --cl { syntax: '<length>'; inherits: false; initial-value: 12px; }
:root[data-skin="n3ds"] {
  color-scheme: light;
  --ground: #e4e6ef; --bg: #eef0f6; --surface: #fcfcfe; --text: #1b2233; --text-2: #4a5266; --divider: #d1d5e1; --fill: #e3e6f0;
  --accent: #2d5d8f; --on-accent: #ffffff; --accent-soft: #dbe8f5; --highlight: #e8641f;
  --success: #1f6f4a; --success-soft: #dcf1e6; --warning: #8a4b06; --warning-soft: #fbeedc; --danger: #b42318;
  --radius: 16px; --radius-l: 22px; --shadow: 0 4px 14px rgba(40,48,80,.12); --mint: #33bfae;
  --n3-up: clamp(120px, 26vh, 200px); --n3-up: clamp(120px, 26svh, 200px); --n3-hinge: 8px;
  --sky: linear-gradient(180deg, #f6f6f9, #e8e9f0);
}
@media (max-height: 560px) { :root[data-skin="n3ds"] { --n3-up: 96px; } }
/* while typing, the decorative upper screen folds down so fields and the keyboard always have room */
:root[data-skin="n3ds"]:has(input:focus, textarea:focus, select:focus, .sheet-backdrop) { --n3-up: 44px; }
:root[data-skin="n3ds"] body { padding-top: calc(env(safe-area-inset-top) + var(--n3-up) + var(--n3-hinge)); transition: padding-top .25s var(--ease-out); }
/* UPPER screen */
.n3ds-upper { position: fixed; z-index: 12; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top) + var(--n3-up)); overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #fbfbfd, #ecedf3); box-shadow: inset 0 -3px 6px rgba(40,48,80,.08); transition: height .25s var(--ease-out); }
.n3ds-wallpaper { position: absolute; inset: 0; }
.n3ds-wallpaper i { position: absolute; width: var(--s); height: var(--s); border-radius: 28%; transform: translate(-50%, -50%);
  background: linear-gradient(160deg, #ffffff, #e2e4ec); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 5px rgba(40,48,80,.08), 0 3px 6px rgba(40,48,80,.06);
  animation: n3-settle .9s var(--ease-out) both; animation-delay: var(--d); }   /* settles once, then stays still */
@keyframes n3-settle { from { opacity: 0; transform: translate(-50%, -30%) scale(.85); } }
.n3ds-time { position: absolute; top: calc(env(safe-area-inset-top) + 8px); right: 16px; font: 700 13px var(--font); color: #3b4460;
  padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: 0 1px 3px rgba(40,48,80,.12); }
/* HINGE */
.n3ds-hinge { position: fixed; z-index: 12; left: 0; right: 0; top: calc(env(safe-area-inset-top) + var(--n3-up)); height: var(--n3-hinge); pointer-events: none;
  background: linear-gradient(180deg, #b9bfcc, #d9dde6 45%, #aab1bf); box-shadow: 0 2px 4px rgba(40,48,80,.18); transition: top .25s var(--ease-out); }
/* LOWER touch screen: the app, in an inset well */
:root[data-skin="n3ds"] main.screen { border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px #d1d5e1, inset 0 2px 6px rgba(40,48,80,.06); }
/* plastic icon frames: club logos and avatars sit in rounded frames; text stays outside */
:root[data-skin="n3ds"] .card.club-row .mono, :root[data-skin="n3ds"] .card.club-row img.logo, :root[data-skin="n3ds"] .channel .mono, :root[data-skin="n3ds"] .hero-mark .mono {
  border-radius: 24%; box-shadow: 0 0 0 4px #fcfcfe, 0 0 0 5px #c4c9d6, inset 0 2px 0 rgba(255,255,255,.35), 0 4px 8px rgba(40,48,80,.18); }
:root[data-skin="n3ds"] .card { border-color: #d1d5e1; box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(40,48,80,.08); }
:root[data-skin="n3ds"] .btn.primary { background: linear-gradient(180deg, #5c8fc4 0%, var(--accent) 55%, #1f4670 100%); border-color: #1f4670; }
/* navigation: original app icons in plastic wells, applet-like colour families (an adaptation; labels stay the real ones) */
:root[data-skin="n3ds"] .tabbar { background: linear-gradient(180deg, #fcfcfe, #e8eaf2); border-top: 1px solid #c4c9d6; }
:root[data-skin="n3ds"] .tabbar a svg { width: 36px; height: 30px; padding: 4px 7px; border-radius: 12px; color: #1b2233;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 3px rgba(40,48,80,.15), 0 2px 3px rgba(40,48,80,.12); }
:root[data-skin="n3ds"] .tabbar a:active svg { box-shadow: inset 0 2px 4px rgba(40,48,80,.25); }
:root[data-skin="n3ds"] .tabbar a[href="#/discover"] svg { background: #cfe6ff; }
:root[data-skin="n3ds"] .tabbar a[href="#/events"] svg { background: #fff0a8; }
:root[data-skin="n3ds"] .tabbar a[href="#/mine"] svg { background: #ffd9b3; }
:root[data-skin="n3ds"] .tabbar a[href="#/people"] svg { background: #cdf2c0; }
:root[data-skin="n3ds"] .tabbar a[href="#/profile"] svg { background: #c6f0ea; }
/* current tab: pressed well + four item-local corners (+ the existing bold label, so it isn't colour-only) */
:root[data-skin="n3ds"] .tabbar a[aria-current="page"] { background-color: #e6f6f3; color: #12425f; font-weight: 800; }
:root[data-skin="n3ds"] .tabbar a[aria-current="page"] svg { box-shadow: inset 0 2px 4px rgba(40,48,80,.25); }
:root[data-skin="n3ds"] .tabbar a[aria-current="page"], :root[data-skin="n3ds"] a.card:focus-visible, :root[data-skin="n3ds"] .channel:focus-visible,
:root[data-skin="n3ds"] .card.club-row:focus-visible {
  --cc: var(--mint);
  background-image: linear-gradient(var(--cc), var(--cc)), linear-gradient(var(--cc), var(--cc)), linear-gradient(var(--cc), var(--cc)), linear-gradient(var(--cc), var(--cc)),
    linear-gradient(var(--cc), var(--cc)), linear-gradient(var(--cc), var(--cc)), linear-gradient(var(--cc), var(--cc)), linear-gradient(var(--cc), var(--cc));
  background-repeat: no-repeat;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-size: var(--cl) 3px, 3px var(--cl), var(--cl) 3px, 3px var(--cl), var(--cl) 3px, 3px var(--cl), var(--cl) 3px, 3px var(--cl);
  animation: corners 1.6s ease-in-out 3; }   /* grows and shrinks a few times, then rests (stable focus outline stays) */
@keyframes corners { 50% { --cl: 18px; } }
/* Wii-style consistent channel bezels */
:root[data-skin="n3ds"] .channel { border: 2px solid #c4c9d6; box-shadow: inset 0 0 0 4px #fcfcfe, inset 0 0 0 5px #e2e5ee, 0 3px 8px rgba(40,48,80,.1); }
/* winks */
.skin-only { display: none; } :root[data-skin="n3ds"] .skin-only { display: block; margin-bottom: 6px; }
:root[data-skin="n3ds"] .inbox-title { display: inline-block; padding: 4px 16px; border-radius: 16px; background: #c6f0ea; box-shadow: inset 0 1px 2px rgba(40,48,80,.12); }
:root[data-skin="n3ds"] .boot-mark { border-radius: 26px; background-color: #fcfcfe; box-shadow: 0 0 0 6px #e3e6f0, 0 0 0 8px #c4c9d6, 0 8px 18px rgba(40,48,80,.18); padding: 8px; background-origin: content-box; }
/* Original pixel buddy — NOT Mario. Our own 8x8 drawing, on the UPPER screen only: walks in once, then rests. */
.bit-buddy { position: absolute; left: 0; bottom: 10px; width: 36px; height: 36px; animation: buddy-in 3.2s steps(16) .6s both; }
.bit-buddy span, .end-buddy span { position: absolute; left: -4px; top: -4px; width: 4px; height: 4px; box-shadow:
    12px 4px 0 #1a3d6d,
    16px 4px 0 #1a3d6d,
    20px 4px 0 #1a3d6d,
    24px 4px 0 #1a3d6d,
    8px 8px 0 #1a3d6d,
    12px 8px 0 #1a3d6d,
    16px 8px 0 #1a3d6d,
    20px 8px 0 #1a3d6d,
    24px 8px 0 #1a3d6d,
    28px 8px 0 #1a3d6d,
    32px 8px 0 #1a3d6d,
    12px 12px 0 #ffd7b0,
    16px 12px 0 #ffd7b0,
    20px 12px 0 #ffd7b0,
    24px 12px 0 #ffd7b0,
    8px 16px 0 #ffd7b0,
    12px 16px 0 #1b2233,
    16px 16px 0 #ffd7b0,
    20px 16px 0 #ffd7b0,
    24px 16px 0 #1b2233,
    28px 16px 0 #ffd7b0,
    12px 20px 0 #ffd7b0,
    16px 20px 0 #ffd7b0,
    20px 20px 0 #ffd7b0,
    24px 20px 0 #ffd7b0,
    8px 24px 0 #3fd0c0,
    12px 24px 0 #3fd0c0,
    16px 24px 0 #3fd0c0,
    20px 24px 0 #3fd0c0,
    24px 24px 0 #3fd0c0,
    28px 24px 0 #3fd0c0,
    8px 28px 0 #3fd0c0,
    16px 28px 0 #3fd0c0,
    20px 28px 0 #3fd0c0,
    28px 28px 0 #3fd0c0,
    12px 32px 0 #1b2233,
    24px 32px 0 #1b2233; animation: buddy-bob .4s steps(2) 8 .6s; }
@keyframes buddy-in { from { transform: translateX(-40px); } to { transform: translateX(min(42vw, 260px)); } }
@keyframes buddy-bob { 50% { transform: translateY(-2px); } }
html.is-hidden .bit-buddy, html.is-hidden .bit-buddy span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .bit-buddy, .bit-buddy span, .n3ds-wallpaper i { animation: none; }
  .bit-buddy { transform: translateX(min(42vw, 260px)); } :root[data-skin="n3ds"] .tabbar a[aria-current="page"] { animation: none; } }

/* Guest mode (look around before signing up) */
.or-line { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.guest-banner .btn.small { min-height: 40px; }

/* Officer dashboard: majors represented */
.mix .mix-n { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }

/* ───── Guest-first Discover (Hofstra HOME Menu) ─────
   Wii for structure (equal channel panes), 3DS for touch (one pressed state, focus glow), Aero for material only:
   warm-white canvas, sky highlight, deep ink, lime as a small accent. Text stays more prominent than decoration. */
:root { --sky: #cdeffc; --lime: #a6d75d; }
.guest-screen { padding-top: max(12px, env(safe-area-inset-top)); }
.guest-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.guest-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.guest-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-brand .app-mark { width: 40px; height: 40px; flex: none; margin: 0; }
.guest-brand .app-mark svg { width: 26px; height: 26px; }
.guest-top .btn.small { flex: none; }
.guest-hello { padding: 18px 18px 20px; border-radius: var(--radius-l); gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0) 55%), linear-gradient(160deg, var(--sky), color-mix(in srgb, var(--sky) 40%, var(--surface)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(16,24,40,.06), 0 8px 24px -16px rgba(16,24,40,.25); }   /* no edge stripe */
.guest-hello .large-title { margin: 0; font-size: clamp(26px, 7.4vw, 32px); line-height: 1.12; overflow-wrap: anywhere; }
.guest-hello p { margin: 0; color: var(--text-2); }
:root[data-theme="dark"] .guest-hello { --sky: #12324a; background: linear-gradient(160deg, var(--sky), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guest-hello { --sky: #12324a; background: linear-gradient(160deg, var(--sky), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); } }
.channel-sub { font-size: 13px; color: var(--text-2); line-height: 1.3; overflow-wrap: anywhere; }
.channels { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
/* chips wrap instead of a hidden sideways scroll */
.chips { flex-wrap: wrap; overflow-x: visible; margin: 0; padding: 0; }

/* Audience control: real radio inputs drawn as the existing segmented control */
.audience { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 6px; }
.audience legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.seg-radio label { position: relative; display: grid; place-items: center; min-height: 44px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text); text-align: center; padding: 4px 6px; }
.seg-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-radio label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-radio label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.eb-hint { color: var(--accent); font-weight: 600; margin: 0; }

/* End of Discover: the original pixel buddy (reuses its 8x8 sprite), one hop per tap */
.end-of-list { display: grid; justify-items: center; gap: 6px; padding: 28px 0 8px; text-align: center; }
.end-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 0; }
.end-hint, .end-say { margin: 0; min-height: 1.3em; }
.end-buddy { position: relative; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--fill); cursor: pointer; padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 var(--divider); transition: transform .08s ease, box-shadow .08s ease; }
.end-buddy:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 var(--divider); }
.end-buddy span { left: 2px !important; top: 2px !important; }
.end-of-list.hop .end-buddy span { animation: buddy-hop .6s steps(6) 1; }
@keyframes buddy-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 70% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .end-of-list.hop .end-buddy span { animation: none; } .end-buddy { transition: none; } }

/* Vertical only: nothing on the page may push it sideways */
html, body { max-width: 100%; overflow-x: clip; }
.screen, .card, .stack, .stack-l, .row, .list-row { min-width: 0; }
img, video, svg { max-inline-size: 100%; }

/* "First time?" on event cards: visible before anyone taps in or signs in */
.first-time-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; font-size: 14px; min-width: 0; }
.ft-tag { flex: none; font-weight: 700; font-size: 12.5px; color: var(--success); background: var(--success-soft); border-radius: 999px; padding: 2px 9px; }
.ft-hint { color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.count-line { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.count-line b { font-weight: 700; color: var(--text); }
.guest-screen .row:has(> .section-header) { align-items: center; }
.guest-screen .row > .link-btn, .discover-soon > .link-btn { font-size: 15px; }
.guest-brand { gap: 8px; }
.guest-brand .app-mark { width: 32px; height: 32px; display: grid; place-items: center; }
.guest-screen .row > .section-header { margin: 0; padding: 0; }

/* Vnua's logo (cube). A white-on-clear PNG used as a mask, so it follows the accent colour in light and dark. */
.vnua-mark { display: block; width: 100%; height: 100%; background: currentColor;
  -webkit-mask: url("vnua-mark.png") center / contain no-repeat; mask: url("vnua-mark.png") center / contain no-repeat; }
.guest-brand .app-mark { width: 34px; height: 34px; }
.with-mark .app-mark { opacity: .8; }

/* Sound settings: music volume slider */
.volume { padding: 4px 0 8px; }
.volume span { display: flex; justify-content: space-between; align-items: baseline; }
.volume input[type=range] { width: 100%; accent-color: var(--accent); min-height: 44px; }

/* Public event link: title scales down on narrow phones so When / Where / "First time?" stay above the fold.
   Long titles, club names and room names wrap instead of pushing the page sideways. */
.preview-event .preview-title { font-size: clamp(24px, 7.2vw, 30px); font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; }
.preview-event .preview-host { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.preview-event dl.facts dd, dl.facts.stacked dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 359px) { .preview-event dl.facts.when-where div { grid-template-columns: 64px 1fr; } }

/* ───── Poppable bubbles ─────
   The decorative bubbles are real elements now (web/app.js "Pop the bubbles"), so each one can be tapped. The old
   pseudo-element versions are switched off once the real ones are in place. Hit areas reach past small bubbles so a
   thumb can actually catch them; the bubble itself stays the same size. */
.bubble { pointer-events: auto; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bubble.pass { pointer-events: none; cursor: default; }   /* the mark's own burst: taps go through to the mark */
.bubble::before, .orb::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.empty[data-orbs]::after, .signin-screen[data-orbs]::before, .ob-hero[data-orbs]::before { display: none; }
.orb-set { position: absolute; z-index: 2; pointer-events: none; }
.orb-set-empty { top: 22px; left: 50%; width: 46px; height: 46px; margin-left: -23px; }
.orb-set-hero { top: 10px; right: 4px; width: 150px; height: 104px; opacity: .8; }
.ob-hero > .orb-set-hero { top: 32px; }
.orb { position: absolute; border-radius: 50%; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--shine), var(--orb); animation: orb-float 7s ease-in-out infinite; transition: transform .18s var(--ease-out), opacity .18s; }
.orb-set-empty .orb { animation-duration: 4s; }
.orb.popped { transform: scale(1.35); opacity: 0; pointer-events: none; animation: none; }
.orb.regrow { animation: orb-regrow .6s var(--ease-spring) both; }
@keyframes orb-regrow { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
/* The pop: a thin ring flashes out and a few drops fly off. Gone in a third of a second. */
.pop-burst { position: fixed; z-index: 36; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  --drop: color-mix(in srgb, var(--accent) 45%, #fff); border-radius: 50%; pointer-events: none; border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); animation: pop-ring .32s var(--ease-out) forwards; }
.pop-burst::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, #fff); animation: pop-drops .36s var(--ease-out) forwards;
  box-shadow: 0 0 0 0 transparent; }
@keyframes pop-ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes pop-drops {
  from { opacity: 1; box-shadow: 0 0 0 color-mix(in srgb, var(--accent) 55%, #fff), 0 0 0 color-mix(in srgb, var(--accent) 55%, #fff), 0 0 0 color-mix(in srgb, var(--accent) 55%, #fff), 0 0 0 color-mix(in srgb, var(--accent) 55%, #fff), 0 0 0 color-mix(in srgb, var(--accent) 55%, #fff); }
  to { opacity: 0; box-shadow: calc(var(--s) * .7) 0 0 var(--drop), calc(var(--s) * -.6) calc(var(--s) * -.4) 0 var(--drop),
    calc(var(--s) * .2) calc(var(--s) * -.75) 0 var(--drop), calc(var(--s) * -.3) calc(var(--s) * .65) 0 var(--drop),
    calc(var(--s) * .55) calc(var(--s) * .5) 0 var(--drop); } }
@media (prefers-reduced-motion: reduce) { .orb, .orb.regrow { animation: none; transition: none; } .pop-burst { display: none; } }

/* ───── Morph (like PowerPoint's): shared elements glide between screens. Names are set on tap in web/app.js;
   the landing page carries the same names. One move, ~380ms, eased like Morph; Reduce Motion turns it all off. ───── */
.morph-club-title { view-transition-name: club-title; }
.morph-ev-title { view-transition-name: ev-title; }
.guest-seg button[aria-pressed="true"], .dash-seg button[aria-pressed="true"] { view-transition-name: seg-pill; }
::view-transition-group(club-hero), ::view-transition-group(club-title), ::view-transition-group(ev-title), ::view-transition-group(seg-pill) {
  animation-duration: 380ms; animation-timing-function: cubic-bezier(.22, .9, .24, 1); }
::view-transition-old(club-title), ::view-transition-new(club-title), ::view-transition-old(ev-title), ::view-transition-new(ev-title) {
  animation-duration: 380ms; height: 100%; object-fit: none; object-position: left top; }   /* text moves and resizes without stretching */
::view-transition-old(seg-pill), ::view-transition-new(seg-pill) { animation: none; mix-blend-mode: normal; }
::view-transition-old(seg-pill) { display: none; }
