/* tokens.css */
/* Foundations, modelled on Linear's interface: Inter at small sizes, a
   near-black chrome with one inset working panel, hairline borders, grey
   text in three steps and a single indigo accent. Status colours follow
   Linear's workflow states. The Slashcheer mark keeps its own shape; brand
   colours are not used for interface chrome. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2-variations"), url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;

  /* Surfaces: chrome is darkest; the working panel sits one step up. */
  --chrome: #08090a;
  --surface: #0f1011;
  --panel: #141516;
  --raised: #1a1b1d;
  --hover: #1c1d20;
  --selected: #222326;
  --line: #1e1f22;
  --line-strong: #27282b;
  --control-line: #2c2d31;
  --field: #0c0d0e;

  /* Text — every pairing on --surface/--panel is ≥ 4.5:1 */
  --ink: #f7f8f8;
  --ink-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d; /* decorative only, never body text */

  /* One accent: Linear indigo */
  --accent: #5e6ad2;
  --accent-ink: #9ea6ff;
  --accent-soft: rgba(94, 106, 210, .16);
  --accent-line: rgba(94, 106, 210, .45);
  --link: #9ea6ff;
  --primary: #5e6ad2;
  --primary-hover: #6c78e0;
  --primary-line: #6c78e0;

  /* Workflow status (Linear) */
  --done: #5e6ad2;
  --done-ink: #aab1ff;
  --success: #4cb782;
  --progress: #f2c94c;
  --warn: #f2994a;
  --blocked: #eb5757;
  --danger-ink: #ff9b9b;
  --info: #4ea7fc;
  --waiting: #8a8f98;

  /* Slashcheer mark only */
  --brand: #ff7666;
  --black: #08090a;
  /* Legacy aliases kept so older rules resolve to the new palette. */
  --coral: var(--accent);
  --acid: var(--done);
  --violet: var(--accent);
  --white: var(--ink);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono-family: var(--sans); /* Linear sets IDs, times and counts in Inter with tabular figures */

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --r-card: 12px;

  --sidebar-w: 220px;
  --topbar-h: 44px;
  --ease: cubic-bezier(.25, .46, .45, .94);
  --t-fast: 100ms;
  --t: 160ms;
  --shadow-pop: 0 8px 28px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-strong);
}

/* base.css */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--chrome); color: var(--ink); font: 13px/1.5 var(--sans); font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; font-weight: 590; letter-spacing: -.012em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(94, 106, 210, .45); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: -60px; left: 12px; background: var(--raised); color: var(--ink); border: 1px solid var(--accent); padding: 8px 12px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
/* Links inside running text are underlined, not distinguished by color alone. */
p a, .ink2 a, .row-sub a, .owner-strip a, .help a, .prose a, .small a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* shell.css */
/* Application shell, after Linear: a quiet chrome column with a workspace
   header and grouped navigation, and the working area as one inset panel
   with a hairline border and a slim header. */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app.bare { display: block; background: var(--surface); }

.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 16px; background: var(--chrome); }
.sidebar-head { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px; border-radius: var(--r); color: var(--ink) !important; text-decoration: none !important; }
.sidebar-head:hover { background: var(--hover); }
.brand-mark { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 700 12px/1 var(--sans); flex: none; }
.brand-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.brand-text strong { font: 590 13px/1.2 var(--sans); white-space: nowrap; }
.brand-text span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-group { display: grid; gap: 1px; }
.nav-label { color: var(--muted); font: 500 12px/1 var(--sans); padding: 6px 8px 6px; }
.nav-link { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: var(--r); color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: none !important; transition: background var(--t-fast) var(--ease), color var(--t-fast); }
.nav-link svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--selected); color: var(--ink); }
.nav-link[aria-current="page"] svg { color: var(--ink); }
.nav-link .count { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.nav-link .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nav-link.highlight { color: var(--ink); }
.sidebar-foot { margin-top: auto; display: grid; gap: 1px; }
.account { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: var(--r); color: var(--ink-2); font-size: 13px; text-decoration: none !important; }
.account:hover { background: var(--hover); color: var(--ink); }
.account .avatar { --size: 18px; }
.sidebar-foot .btn.ghost { height: 28px; min-height: 28px; padding: 0 8px; color: var(--muted); font-weight: 500; }

.workspace { min-width: 0; padding: 8px 8px 8px 0; }
.panel-frame { min-height: calc(100vh - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: clip; box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: none; }
.crumbs .sep { color: var(--faint); }
.crumbs strong { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.phase { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.phase .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.phase.building .swatch { background: var(--progress); }
.phase.after .swatch { background: var(--success); }
.phase.open .swatch { background: var(--accent); }
.menu-button { display: none; }
.clock { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock svg { width: 14px; height: 14px; }
.clock.simulated { color: var(--progress); }
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
.page { padding: 32px clamp(16px, 4vw, 48px) 72px; max-width: 1120px; width: 100%; margin: 0 auto; }
.page.narrow { max-width: 720px; }
.page.wide { max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -.018em; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 64ch; font-size: 13px; }
.eyebrow { color: var(--muted); font: 500 12px/1.4 var(--sans); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }

/* Development label: always visible, but quiet — a single line in the
   panel header colour with an amber marker, not a hazard stripe. */
.dev-banner { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 16px; font-size: 12px; color: var(--ink-2); background: rgba(242, 201, 76, .07); border-bottom: 1px solid rgba(242, 201, 76, .18); }
.dev-banner strong { display: inline-flex; align-items: center; gap: 6px; color: var(--progress); font-weight: 600; }
.dev-banner strong::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--progress); }
.dev-banner span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dev-banner button { margin-left: auto; flex: none; border: 0; background: none; color: var(--ink-2); border-radius: var(--r-sm); padding: 2px 6px; font: 500 12px var(--sans); }
.dev-banner button:hover { background: var(--hover); color: var(--ink); }

/* Public pages (signed-out landing, showcase, profiles) */
.public-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 clamp(16px, 4vw, 32px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); }
.public-brand { display: flex; align-items: center; gap: 8px; color: var(--ink) !important; text-decoration: none !important; font-size: 13px; }
.public-brand strong { font-weight: 590; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(280px, 86vw); transform: translateX(-105%); transition: transform var(--t) var(--ease); border-right: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); }
  .app.nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); }
  .workspace { padding: 0; }
  .panel-frame { border-radius: 0; border: 0; min-height: 100vh; }
  .menu-button { display: inline-flex; }
  .clock .zone-long { display: none; }
  .page { padding-top: 24px; }
}
@media (max-width: 640px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .topbar-right { gap: 8px; }
  .topbar-right > .phase { display: none; }
  .crumbs a, .crumbs .sep { display: none; }
  .clock { font-size: 11px; }
  .clock svg { display: none; }
  .dev-banner span { display: none; }
}

/* components.css */
/* Components. Proportions follow Linear: 28–32px controls, 13px labels,
   hairline borders, quiet hover, strong focus. */

/* Buttons — Linear: 28px default, 6px radius, a filled indigo primary, a
   subtle secondary with an inner hairline, and ghost for toolbars. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; min-height: 28px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--control-line); background: var(--raised); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none !important; box-shadow: 0 1px 1px rgba(0, 0, 0, .25); transition: background var(--t-fast), border-color var(--t-fast); }
.btn svg { width: 14px; height: 14px; color: currentColor; }
.btn:hover:not(:disabled) { background: #222327; border-color: #36373c; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; }
.btn.primary, .btn.accent { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.primary:hover:not(:disabled), .btn.accent:hover:not(:disabled) { background: var(--primary-hover); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover:not(:disabled) { background: var(--hover); color: var(--ink); border-color: transparent; }
.btn.danger { background: rgba(235, 87, 87, .12); border-color: rgba(235, 87, 87, .35); color: var(--danger-ink); box-shadow: none; }
.btn.danger:hover:not(:disabled) { background: rgba(235, 87, 87, .2); border-color: rgba(235, 87, 87, .5); }
.btn.small { height: 24px; min-height: 24px; padding: 0 8px; font-size: 12px; gap: 4px; }
.btn.large { height: 32px; min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn.icon { width: 28px; padding: 0; }
.btn.small.icon { width: 24px; }
.btn .spinner { width: 13px; height: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-button { background: none; border: 0; padding: 0; color: var(--link); font-size: inherit; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.spinner { display: inline-block; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Status icon (Linear workflow circles) */
.status-icon { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; }
.status-icon.todo { color: var(--muted); }
.status-icon.progress { color: var(--progress); }
.status-icon.done { color: var(--done); }
.status-icon.blocked { color: var(--blocked); }
.status-icon.waiting, .status-icon.upcoming { color: var(--faint); }
.status-icon.warn { color: var(--warn); }

/* Chips — Linear labels: a neutral pill whose meaning is carried by a
   small coloured dot, never by a tinted background. */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip .swatch { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.done, .chip.progress, .chip.warn, .chip.blocked, .chip.info, .chip.violet, .chip.success { color: var(--ink-2); border-color: var(--line-strong); background: transparent; }
.chip.done::before, .chip.progress::before, .chip.warn::before, .chip.blocked::before, .chip.info::before, .chip.violet::before, .chip.success::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.chip:has(.swatch)::before, .chip:has(.status-icon)::before, .chip:has(svg)::before { content: none !important; }
.chip.done::before { background: var(--done); }
.chip.success::before { background: var(--success); }
.chip.progress::before { background: var(--progress); }
.chip.warn::before { background: var(--warn); }
.chip.blocked::before { background: var(--blocked); }
.chip.info::before { background: var(--info); }
.chip.violet::before { background: var(--accent); }
.chip svg, .chip .status-icon { width: 12px; height: 12px; }
.chip.done svg { color: var(--done); }
.chip.progress svg { color: var(--progress); }
.chip.warn svg { color: var(--warn); }
.chip.blocked svg { color: var(--blocked); }
.chip.info svg { color: var(--info); }
.chip.muted { color: var(--muted); }
.chip.mono { font-size: 11.5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kbd { font: 500 11px var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; background: var(--raised); }

/* Avatar */
.avatar { --size: 32px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: inline-grid; place-items: center; font: 600 calc(var(--size) * .4) var(--sans); color: #08090a; background: var(--avatar, var(--accent-ink)); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { --size: 20px; box-shadow: 0 0 0 2px var(--surface); margin-left: -4px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* Cards and sections */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.card-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 42px; }
.card-head h2, .card-head h3 { font-size: 13px; font-weight: 590; }
.card-head p { color: var(--muted); font-size: 12px; }
.card-body { padding: 16px; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.section { margin-bottom: 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-title h2 { font-size: 13px; font-weight: 590; }
.section-title .meta { color: var(--muted); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Linear-style list rows */
.list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.list-group-head { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); }
.list-group-head .count { color: var(--muted); font-size: 13px; font-weight: 400; }
.row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: background var(--t-fast); }
.row:last-child { border-bottom: 0; }
a.row:hover, button.row:hover, .row.interactive:hover { background: var(--hover); }
button.row { width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-title > span.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: 12px; }
.row .id { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 58px; }
.row-actions { display: flex; gap: 6px; align-items: center; opacity: .0; transition: opacity var(--t-fast); }
.row:hover .row-actions, .row:focus-within .row-actions, .row-actions.always { opacity: 1; }
@media (hover: none) { .row-actions { opacity: 1; } }

/* Properties panel (Linear detail sidebar) */
.props { display: grid; gap: 2px; }
.prop { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 30px; font-size: 13px; }
.prop dt { color: var(--muted); }
.prop dd { margin: 0; color: var(--ink); min-width: 0; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field-label { font-size: 12px; font-weight: 500; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.field .req { color: var(--muted); font-weight: 400; font-size: 12px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.help { color: var(--muted); font-size: 12px; }
.input, .select, .textarea { width: 100%; min-height: 32px; padding: 5px 10px; border-radius: var(--r); border: 1px solid var(--control-line); background: var(--field); color: var(--ink); font-size: 13px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: #3a3b40; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: #6f747c; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: var(--blocked); }
.field-error { color: var(--danger-ink); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.counter { margin-left: auto; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13px; cursor: pointer; }
.check input { width: 14px; height: 14px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { position: relative; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--panel); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.choice:hover { border-color: #36373c; background: var(--raised); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice strong { font-size: 13px; font-weight: 590; }
.choice span { color: var(--muted); font-size: 12px; }
.token-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--control-line); border-radius: var(--r); background: var(--field); }
.token-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.token-input input { flex: 1; min-width: 140px; border: 0; background: transparent; padding: 2px 4px; font-size: 13px; }
.token { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 2px 0 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-strong); font-size: 12px; }
.token button { border: 0; background: none; color: var(--muted); width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; padding: 0; }
.token button:hover { background: var(--hover); color: var(--ink); }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.suggestions button { border: 1px dashed var(--line-strong); background: none; color: var(--muted); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.suggestions button:hover { border-style: solid; color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { padding: 0; font-size: 12px; font-weight: 500; margin-bottom: 8px; }

/* Segmented control (Linear view tabs) */
.segmented { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--chrome); border: 1px solid var(--line); }
.segmented a, .segmented button { border: 0; background: none; color: var(--ink-2); padding: 0 10px; min-height: 24px; border-radius: 6px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.segmented a:hover, .segmented button:hover { color: var(--ink); }
.segmented [aria-current="page"], .segmented [aria-pressed="true"], .segmented [aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }

/* Callouts */
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--panel); }
.callout > svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--muted); }
.callout .callout-body { flex: 1; min-width: 0; }
.callout strong { display: block; font-size: 13px; font-weight: 590; margin-bottom: 2px; }
.callout p { color: var(--muted); font-size: 13px; }
.callout .btn-row { margin-top: 10px; }
.callout.warn { border-color: rgba(242, 153, 74, .3); }
.callout.warn > svg { color: var(--warn); }
.callout.danger { border-color: rgba(235, 87, 87, .35); }
.callout.danger > svg { color: var(--blocked); }
.callout.success > svg { color: var(--success); }
.callout.info > svg { color: var(--info); }
.callout.dev { border-style: dashed; border-color: rgba(242, 201, 76, .35); }
.callout.dev > svg { color: var(--progress); }

/* Empty / unavailable states */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 16px; color: var(--ink-2); }
.empty svg { width: 28px; height: 28px; color: var(--faint); }
.empty strong { color: var(--ink); font-size: 13px; font-weight: 590; }
.empty p { max-width: 46ch; font-size: 13px; }

/* Progress */
.meter { height: 4px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--acid); border-radius: inherit; transition: width var(--t) var(--ease); }
.ring { --p: 0; --size: 32px; width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--acid) calc(var(--p) * 1%), var(--raised) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: attr(data-label); width: calc(var(--size) - 8px); height: calc(var(--size) - 8px); border-radius: 50%; background: var(--panel); display: grid; place-items: center; font: 600 10px var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Dialog */
dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 12px; background: var(--raised); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-strong); }
dialog.modal.wide { width: min(760px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .55); }
dialog.modal[open] { animation: pop var(--t) var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.modal-head h2 { font-size: 15px; font-weight: 590; }
.modal-head .crumb { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.modal-head .btn { margin-left: auto; }
.modal-body { padding: 8px 16px 16px; overflow-y: auto; max-height: calc(100vh - 180px); }
.modal-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.modal-foot .left { margin-right: auto; color: var(--muted); font-size: 12px; }

/* Toasts (bottom-right, like Linear) */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--raised); box-shadow: var(--shadow-pop); font-size: 13px; animation: pop var(--t) var(--ease); }
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--blocked); }
.toast.info svg { color: var(--info); }
.toast .toast-body { flex: 1; }
.toast .toast-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.toast .close { border: 0; background: none; color: var(--muted); padding: 0 2px; }

/* Messages (support conversations) */
.thread { display: grid; gap: 14px; }
.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.msg-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; flex-wrap: wrap; }
.msg-head strong { font-weight: 600; }
.msg-head time { color: var(--muted); font-size: 12px; }
.msg-body { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.organizer .msg-body { background: var(--accent-soft); border-color: var(--accent-line); }
.composer { border: 1px solid var(--control-line); border-radius: 8px; background: var(--field); }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea { width: 100%; border: 0; background: transparent; min-height: 80px; padding: 10px 12px; resize: vertical; }
.composer-foot { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line); }
.composer-foot .help { margin-right: auto; }

/* Tables (organizer) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; color: var(--muted); font: 500 12px/1.4 var(--sans); padding: 8px 12px; border-bottom: 1px solid var(--line); background: transparent; white-space: nowrap; }
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--hover); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); text-decoration: none !important; color: var(--ink); display: grid; gap: 2px; }
a.stat:hover { border-color: var(--line-strong); background: var(--raised); }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-context { color: var(--muted); font-size: 12px; }

/* Tabs-as-links bar under page head */
.subnav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.subnav a { padding: 8px 10px; color: var(--muted); font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; display: inline-flex; gap: 6px; align-items: center; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.subnav .count { color: var(--muted); font-size: 12px; }

/* Search/filter toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; position: relative; }
.toolbar .search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.toolbar .search .input { padding-left: 30px; }
.toolbar .select { width: auto; min-width: 140px; }
.toolbar .count { color: var(--muted); font-size: 12px; margin-left: auto; }

.save-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.save-state.error { color: var(--danger-ink); }
.save-state.saved svg { color: var(--done); width: 14px; height: 14px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 12px; }
.stack { display: grid; gap: 12px; }
.stack.tight { gap: 6px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.prose p + p { margin-top: 10px; }
.prose { color: var(--ink-2); line-height: 1.6; }
.prose strong { color: var(--ink); }
.ext::after { content: "↗"; margin-left: 3px; font-size: .85em; }
.ext:has(svg)::after { content: none; }

/* views.css */
/* Task layouts: home, journey, team, build, submit, discovery, schedule,
   support, showcase, feedback, judging and organizer screens. */

/* Layout grids */
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 20px; align-items: start; }
.grid-review { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); gap: 20px; align-items: start; }
.grid-2.tight { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.section { margin-bottom: 22px; }
.section-h { font-size: 15px; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 14px; }
.card-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-body { padding: 14px 16px; }
.card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
legend.card-head { width: 100%; margin: 0; }
fieldset.card { margin: 0; }
fieldset.card legend.card-head { float: left; }
fieldset.card legend.card-head + * { clear: both; }
fieldset:disabled { opacity: .75; }
.label-like { font-size: 13px; font-weight: 600; }

/* Event header — Linear's project header: plain type on the panel, a
   properties line underneath, no illustration or gradient. */
.hero { display: grid; gap: 10px; padding: 4px 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.hero.compact { padding-bottom: 18px; }
.hero-content { display: grid; gap: 8px; max-width: 68ch; }
.hero-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.hero-meta .brand-mark { width: 18px; height: 18px; font-size: 11px; }
.hero-title { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -.022em; font-weight: 600; }
.hero-tagline { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hero-props { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.hero-props > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-props svg { width: 14px; height: 14px; }
.hero-props strong { color: var(--ink); font-weight: 500; }
.landing-cta { margin: 8px 0 4px; }

/* Next action — one quiet row with an indigo marker, like an inbox item. */
.next-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-strong); }
.next-card > svg { width: 28px; height: 28px; padding: 6px; border-radius: 7px; color: var(--accent-ink); background: var(--accent-soft); }
.next-card .eyebrow { margin-bottom: 2px; }
.next-card h2 { font-size: 14px; font-weight: 590; }
.next-card p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.next-card.blocked > svg { color: var(--warn); background: rgba(242, 153, 74, .14); }
.next-card.done > svg { color: var(--done-ink); background: var(--accent-soft); }

/* Checklist */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: 0; }
.check-item > .status-icon { margin-top: 2px; }
.check-item.done .check-title > span:first-child { color: var(--muted); }
.check-item.not_applicable, .check-item.upcoming { opacity: .75; }
.check-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 500; font-size: 13px; }
.check-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; margin-top: 3px; }
.check-sub svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.blocked-reason { color: var(--danger-ink); }
.deadline.overdue { color: var(--danger-ink); }
.check-actions { display: flex; gap: 6px; align-items: center; }
.check-list.compact .check-item { padding: 9px 14px; }
.check-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.check-mini li { display: flex; gap: 8px; align-items: flex-start; }
.check-mini li > svg, .check-mini li > .status-icon { margin-top: 2px; flex: none; }
.check-mini li.ok > span { color: var(--ink-2); }
.check-mini.linked li > a { margin-left: auto; white-space: nowrap; }
.mini-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.mini-list svg { width: 13px; height: 13px; color: var(--warn); margin-right: 6px; vertical-align: -2px; }

/* Milestones */
.milestones { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 0; }
.milestone { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 14px; }
.milestone:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 1px; background: var(--line-strong); }
.milestone.done:not(:last-child)::before { background: var(--accent-line); }
.milestone-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 11px var(--sans); font-variant-numeric: tabular-nums; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); }
.milestone-dot svg { width: 12px; height: 12px; }
.milestone.done .milestone-dot { background: var(--done); border-color: var(--done); color: #fff; }
.milestone.current .milestone-dot { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.milestone strong { font-size: 13px; font-weight: 500; }
.milestone p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.milestone p.ok { color: var(--muted); }
.milestone p.todo { color: var(--ink-2); }
.milestone.current p.todo { color: var(--accent-ink); }

/* Home lists */
.ann-list, .announcements { list-style: none; margin: 0; padding: 0; }
.ann, .announcement { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.ann:last-child, .announcement:last-child { border-bottom: 0; }
.ann.high, .announcement.high { box-shadow: inset 2px 0 0 var(--warn); }
.announcement p.ink2 { font-size: 13.5px; }
.announcement .inline svg { width: 15px; height: 15px; color: var(--muted); }
.org-ann { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.org-ann .announcement { border-bottom: 0; }
.org-ann .btn-row { padding: 0 16px; }
.session-mini { list-style: none; margin: 0; padding: 4px 0; }
.session-mini li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 16px; }
.session-mini li > div { display: grid; }
.session-mini .time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 1px; }
.session-mini .time.live { color: var(--accent-ink); font-weight: 600; }
.after-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; }
.after-card { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none !important; transition: border-color var(--t-fast), transform var(--t-fast); }
.after-card:hover { border-color: var(--line-strong); background: var(--raised); }
.after-card h2 { font-size: 14px; font-weight: 590; }
.after-card p { color: var(--muted); font-size: 13px; }
.after-card.feature { grid-row: span 2; }

.after-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 6px; }

/* Covers */
.cover-art, .cover-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Auth */
.auth-page { padding-top: clamp(24px, 8vh, 80px); }
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-card h1 { font-size: 24px; }

/* Profile setup */
.setup-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.step-rail { position: sticky; top: 64px; }
.steps { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.step-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--ink-2); text-decoration: none !important; font-size: 13px; }
.step-link:hover { background: var(--hover); color: var(--ink); }
.step-link.current { background: var(--selected); color: var(--ink); }
.step-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 500 11px var(--sans); border: 1px solid var(--line-strong); flex: none; }
.step-n svg { width: 12px; height: 12px; }
.step-link.done .step-n { background: var(--done); color: #fff; border-color: var(--done); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch-option { position: relative; cursor: pointer; }
.swatch-option input { position: absolute; opacity: 0; }
.swatch-option span:not(.sr-only) { display: block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--panel); }
.swatch-option input:checked + span { border-color: var(--ink); }
.swatch-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.link-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }

/* Team & registration */
.start-grid { margin-bottom: 8px; }
.start-card .inline svg { width: 16px; height: 16px; color: var(--muted); }
.start-card.preferred { border-color: var(--accent-line); }
.reg-panel.needs_reconfirmation { border-color: rgba(242, 153, 74, .35); }
.review-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.review-step .card-head .inline h2 { font-size: 13px; }
.confirm-card { text-align: center; display: grid; justify-items: center; gap: 10px; padding: clamp(24px, 5vw, 48px); border-radius: var(--r-card); border: 1px solid var(--line-strong); background: var(--panel); }
.confirm-card h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.confirm-mark, .receipt-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--done); color: #fff; flex: none; }
.confirm-mark svg, .receipt-mark svg { width: 20px; height: 20px; }
.pending_approval .confirm-mark { background: var(--progress); }
.confirm-props { text-align: left; width: min(100%, 460px); margin: 8px 0; }
.pick-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); cursor: pointer; }
.pick > span { display: grid; flex: 1; }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick input { accent-color: var(--accent); }

/* Discovery */
.person-row { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.person-row .row-meta { flex-direction: column; align-items: flex-end; gap: 2px; min-width: 130px; }
.row-meta svg { width: 13px; height: 13px; vertical-align: -2px; }

/* Challenges */
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.challenge-card { color: var(--ink); text-decoration: none !important; transition: background var(--t-fast), border-color var(--t-fast); }
.challenge-card:hover { border-color: var(--line-strong); background: var(--raised); }
.challenge-card h2 { font-size: 14px; font-weight: 590; display: flex; align-items: center; gap: 8px; }
.challenge-card h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sponsor); flex: none; }

/* Build & submit */
.build-form .card .field:last-child { margin-bottom: 0; }
.team-only { border-style: dashed; }
.cover-field { display: flex; gap: 14px; align-items: flex-start; }
.cover-thumb { width: 160px; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); flex: none; }
.sticky-actions { position: sticky; bottom: 12px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--raised) 92%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-pop); }
.error-links { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 2px; font-size: 13px; }
.error-links a { color: var(--danger-ink); }
.project-preview { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.pp-cover { aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid var(--line); }
.pp-body { padding: 20px 22px; display: grid; gap: 12px; }
.pp-body h2 { font-size: 24px; letter-spacing: -.02em; }
.pp-body h3 { font-size: 12px; font: 600 11px var(--mono-family); color: var(--muted); margin-bottom: 4px; }
.pp-body section p { color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; }
.pp-pitch { font-size: 15px; color: var(--ink-2); }
.receipt { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; margin-bottom: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--panel); }
.receipt h2 { font-size: 15px; font-weight: 590; }
.receipt.fresh { animation: pop .3s var(--ease); }
.receipt:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Schedule */
.day { display: grid; gap: 8px; }
.day-h { font: 600 12px var(--mono-family); color: var(--muted); }
.session { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.session-time { min-width: 190px; font-size: 12.5px; color: var(--ink-2); }
.session.past { opacity: .6; }
.session.live { box-shadow: inset 2px 0 0 var(--accent); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Support conversations */
.messages { list-style: none; margin: 0; padding: 16px; display: grid; gap: 14px; }
.message { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.message-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.message-body p { margin-top: 4px; padding: 10px 12px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; }
.message.organizer .message-body p { background: var(--accent-soft); border-color: var(--accent-line); }
.thread .composer { margin: 0 16px 16px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--progress); flex: none; }
.status-dot.answered { background: var(--accent); }
.status-dot.resolved { background: var(--faint); }

/* Showcase */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-card { overflow: hidden; display: flex; flex-direction: column; }
.gallery-card.unpublished { border-style: dashed; opacity: .8; }
.gallery-link { color: var(--ink); text-decoration: none !important; flex: 1; }
.gallery-link:hover h2 { color: var(--link); }
.gallery-cover { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.gallery-link h2 { font-size: 14px; font-weight: 590; }
.gallery-card .card-foot { justify-content: flex-start; }
.showcase-entry .se-cover { aspect-ratio: 21 / 8; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.se-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 72ch; }
.se-head h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; }
.lede { font-size: 15px; color: var(--ink-2); }
.showcase-entry .prose h2 { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.showcase-entry .prose p { white-space: pre-wrap; }
.award { border-color: rgba(242, 201, 76, .3); }
.award strong svg { color: var(--progress); width: 16px; height: 16px; vertical-align: -3px; }

/* Feedback */
.tracker { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tracker li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--muted); }
.tracker li.done { color: var(--ink-2); }
.tracker li.current { color: var(--ink); border-color: var(--line-strong); background: var(--raised); }
.remarks { margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--accent); color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.score { font: 600 20px var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.score-grid { display: grid; gap: 8px; margin: 0; }
.score-grid > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.score-grid dd { margin: 0; }
.pips { display: inline-flex; gap: 3px; }
.pip { width: 12px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.pip.on { background: var(--accent); }

/* Connections & community */
.community .benefits li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.community .benefits svg { width: 14px; height: 14px; color: var(--accent-ink); flex: none; }

/* Judging */
.criterion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.criterion:last-child { border-bottom: 0; padding-bottom: 0; }
.criterion .field-error { grid-column: 1 / -1; }
.criterion.invalid .score-picker { box-shadow: 0 0 0 1px var(--blocked); border-radius: 8px; }
.score-picker { display: inline-flex; gap: 4px; }
.score-picker label { position: relative; }
.score-picker input { position: absolute; opacity: 0; inset: 0; }
.score-picker span { width: 32px; height: 28px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--control-line); background: var(--raised); font: 500 13px var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.score-picker label:hover span { background: var(--hover); }
.score-picker input:checked + span { background: var(--primary); border-color: var(--primary-line); color: #fff; }
.score-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.private-notes { border-style: dashed; }
details.conflict summary { cursor: pointer; list-style: none; }
details.conflict summary::-webkit-details-marker { display: none; }
details.conflict summary h2 svg { width: 15px; height: 15px; color: var(--warn); vertical-align: -2px; margin-right: 4px; }

/* Organizer */
.stat-value.warn { color: var(--warn); }
.stat-value.ok { color: var(--ink); }
.stat-sub { color: var(--muted); font-size: 12px; }
.assign-row { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.assignees { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.assignees li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.assignees .select { width: auto; min-height: 26px; font-size: 12px; padding: 2px 8px; }
.select.small, .input.small { width: auto; min-height: 28px; font-size: 12.5px; padding: 3px 8px; }
table.data .chip { margin-bottom: 2px; }
.btn-row.wrap, .inline.wrap { flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1100px) {
  .grid-review { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .grid-main, .home-grid, .grid-2, .setup-grid { grid-template-columns: minmax(0, 1fr); }
  .step-rail { position: static; }
  .next-card { grid-template-columns: minmax(0, 1fr); }
  .next-card > svg { display: none; }
  .tracker { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2.tight, .link-row { grid-template-columns: minmax(0, 1fr); }
  .row { flex-wrap: wrap; }
  .row-actions { opacity: 1; width: 100%; justify-content: flex-end; }
  .person-row .row-meta { align-items: flex-start; min-width: 0; width: 100%; flex-direction: row; }
  .session-time { min-width: 0; width: 100%; }
  .cover-field { flex-direction: column; }
  .criterion { grid-template-columns: minmax(0, 1fr); }
  .receipt { flex-direction: column; }
  .prop { grid-template-columns: 96px minmax(0, 1fr); }
  .sticky-actions { bottom: 6px; }
  .page-head h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
.page > .callout, .page > [role="alert"] { margin-bottom: 16px; }
.after-card .chip { justify-self: start; }

/* profile.css */
/* Bento-style profile. A light, quiet canvas: a large avatar and name in an
   identity column beside a grid of white tiles in four sizes (small 1×1,
   wide 2×1, tall 1×2, large 2×2) with generous gaps and soft edges, and a
   floating action bar. The canvas sets its own light palette, so the same
   markup renders as Bento inside the dark app (editor preview) and on the
   standalone /p/:handle page. */
.bento-surface {
  color-scheme: light;
  --surface: #ffffff;
  --panel: #ffffff;
  --raised: #f5f5f5;
  --hover: #efefef;
  --selected: #e8e8e8;
  --line: rgba(0, 0, 0, .07);
  --line-strong: rgba(0, 0, 0, .1);
  --control-line: rgba(0, 0, 0, .12);
  --field: #ffffff;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --link: #111111;
  --accent: #111111;
  --accent-ink: #111111;
  --accent-soft: rgba(0, 0, 0, .06);
  --primary: #111111;
  --primary-hover: #2b2b2b;
  --shadow-pop: 0 10px 30px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .06);
  background: #ffffff;
  color: var(--ink);
}
.bento-surface ::selection { background: rgba(0, 0, 0, .12); }
.bento-surface .btn { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.bento-surface .btn:hover:not(:disabled) { background: var(--hover); border-color: var(--control-line); }
.bento-surface .btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.bento-surface .btn.primary { box-shadow: none; }
.bento-surface .chip { border-color: transparent; background: var(--raised); color: var(--ink-2); height: 24px; padding: 0 10px; font-size: 12.5px; }
.bento-surface .chip svg { color: var(--muted); }
.bento-surface .chip.violet::before, .bento-surface .chip.muted::before { content: none; }
.bento-surface :focus-visible { outline-color: #111; }

/* Standalone profile page */
.app.profile-layout { background: #ffffff; min-height: 100vh; }
.profile-layout .dev-banner { position: sticky; top: 0; z-index: 30; background: #fffbea; color: #6b5b16; border-bottom-color: #f1e3a6; }
.profile-layout .dev-banner strong { color: #8a6d00; }
.profile-layout .dev-banner strong::before { background: #d4a514; }
.profile-layout .dev-banner span { color: #7a6a33; }
.profile-layout .dev-banner button { color: #6b5b16; }
.profile-layout .dev-banner button:hover { background: rgba(0, 0, 0, .05); color: #3d3200; }

.bento-page { padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px) 120px; max-width: 1320px; margin: 0 auto; }
.bento { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.bento-identity { position: sticky; top: 56px; display: grid; gap: 6px; justify-items: start; }
.bento-identity .avatar { margin-bottom: 20px; font-weight: 600; }
.bento-identity h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.bento-identity .handle { color: var(--muted); font-size: 15px; }
.bento-identity .btn-row { margin-top: 14px; }
.bento-identity .btn-row:empty { display: none; }

.bento-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 176px; grid-auto-flow: dense; gap: 20px; }
.bento-card { position: relative; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); padding: 20px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); transition: box-shadow var(--t) var(--ease); }
.bento-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.bento-card.size-small { grid-column: span 1; grid-row: span 1; }
/* Content that runs past a tile fades out instead of being cut mid-line. */
.bento-card::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 28px; border-radius: 0 0 23px 23px; background: linear-gradient(rgba(255, 255, 255, 0), var(--panel) 85%); pointer-events: none; }
.bento-tools { z-index: 2; }
.bento-card.size-wide { grid-column: span 2; grid-row: span 1; }
.bento-card.size-tall { grid-column: span 1; grid-row: span 2; }
.bento-card.size-large { grid-column: span 2; grid-row: span 2; }
.bento-card.is-hidden { opacity: .45; border-style: dashed; box-shadow: none; }
.bento-title { font: 500 13px var(--sans); color: var(--muted); }
.sec-about .bento-title, .sec-projects .bento-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bento-intro { font-size: 18px; line-height: 1.45; color: var(--ink); letter-spacing: -.012em; }
.size-large .bento-intro { font-size: 22px; }
.size-small .bento-intro { font-size: 14px; }
.bento-card .chip-row { margin-top: 0; overflow: hidden; }
.bento-card .stack .small.muted { display: block; margin-bottom: 2px; }

/* Links: each a small row with an icon tile, Bento's link-card grammar. */
.bento-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bento-links li { min-width: 0; }
.bento-links a { display: flex; gap: 10px; align-items: center; padding: 6px; margin: 0 -6px; border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none !important; overflow: hidden; }
.bento-links a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento-links a:hover { background: var(--raised); }
.bento-links a svg { width: 18px; height: 18px; padding: 7px; box-sizing: content-box; flex: none; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; }
.bento-links a.ext::after { content: none; }
.bento-links li.small { display: flex; gap: 6px; align-items: center; padding: 6px 0; }
.bento-links li.small svg { width: 14px; height: 14px; }

.bento-builds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; overflow: hidden; }
.bento-builds a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--ink); text-decoration: none !important; }
.bento-builds a > span:last-child { display: grid; gap: 2px; }
.bento-builds strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.bento-builds a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.bento-thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: block; border: 1px solid var(--line); }

/* Editing controls: a small floating toolbar per tile, as in Bento. */
.bento-tools { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: #111; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); opacity: 0; transition: opacity var(--t-fast); }
.bento-card:hover .bento-tools, .bento-card:focus-within .bento-tools { opacity: 1; }
@media (hover: none) { .bento-tools { opacity: 1; } }
.icon-btn { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: #bdbdbd; }
.icon-btn:hover:not(:disabled), .icon-btn.on { background: #2e2e2e; color: #fff; }
.icon-btn:disabled { opacity: .35; }
.icon-btn svg { width: 14px; height: 14px; }
.bento-tools .icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.size-glyph { display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.size-glyph.small { width: 8px; height: 8px; }
.size-glyph.wide { width: 14px; height: 8px; }
.size-glyph.tall { width: 8px; height: 14px; }
.size-glyph.large { width: 14px; height: 14px; }

/* Floating action bar */
.share-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .06); }
.share-bar .btn { height: 32px; min-height: 32px; border-radius: 10px; padding: 0 12px; font-size: 13px; }
.share-bar .btn:not(.primary) { border-color: transparent; background: transparent; box-shadow: none; }
.share-bar .btn:not(.primary):hover { background: var(--raised); }
.share-bar .sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 2px; }
.share-bar .home-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--ink) !important; text-decoration: none !important; }
.share-bar .home-mark:hover { background: var(--raised); }
.share-bar .home-mark .brand-mark { background: #111; color: #fff; box-shadow: none; }

.owner-strip { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0 auto 32px; padding: 8px 14px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--raised); color: var(--ink-2); font-size: 13px; }
.owner-strip svg { width: 15px; height: 15px; color: var(--muted); flex: none; }

/* Editor (inside the dark app): the preview is a light Bento canvas. */
.editor-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.device-frame { border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 4vw, 48px); transition: max-width var(--t) var(--ease); margin: 0 auto; }
.device-frame.bento-surface { border-color: transparent; }
.device-frame.mobile { max-width: 400px; border-radius: 40px; box-shadow: 0 0 0 8px #1a1b1d, 0 0 0 9px #2c2d31; padding: 32px 20px; }
.device-frame .bento-identity { top: 0; }
/* Breakpoints follow the canvas, not the window, so the editor preview and
   the standalone page lay tiles out the same way at the same width. */
.bento-page, .device-frame { container-type: inline-size; }
@container (max-width: 1080px) { .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bento-identity { position: static; }
  .bento-identity .avatar { --size: 96px !important; width: 96px; height: 96px; margin-bottom: 12px; }
  .bento-identity h1 { font-size: 30px; }
  .bento-grid { grid-auto-rows: 150px; gap: 14px; }
  .bento-card { border-radius: 20px; padding: 16px; }
  .bento-card::after { border-radius: 0 0 19px 19px; }
  .bento-card.size-wide, .bento-card.size-large { grid-column: span 2; }
}
.bento-card .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bento-card .chip svg { flex: none; }

/* dev.css */
/* Development panel. Amber markers and dashed edges so simulated controls never read as product UI. */
.dev-panel h3 { font: 500 12px var(--sans); color: var(--progress); margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.dev-panel section { padding-top: 12px; border-top: 1px dashed rgba(242, 201, 76, .25); }
.scenario-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.scenario { display: grid; gap: 4px; text-align: left; padding: 10px 12px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); }
.scenario span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.scenario:hover { border-color: rgba(242, 201, 76, .45); }
.scenario.on { border-color: var(--progress); background: rgba(242, 201, 76, .08); }
.persp { display: grid; gap: 10px; }
.persp-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.persp-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 8px 2px 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font-size: 12px; }
.persp-btn svg { width: 14px; height: 14px; margin-left: 4px; }
.persp-btn.on { border-color: var(--progress); background: rgba(242, 201, 76, .08); }
.persp-btn .chip { height: 18px; font-size: 11px; }
.dev-only { border: 1px dashed rgba(242, 201, 76, .5) !important; color: var(--progress) !important; background: transparent !important; box-shadow: none !important; }
