/* Shared by index.html and submit.html. */
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
/* Layout: a bright storefront in white glass. Panels float over a sunny sky mesh; electric blue leads, sunshine yellow sells, and pink, violet, lime and orange colour-code categories. Dark mode flips to a night sky with the same neon accents. */
:root {
  --bg: #EDF6FF;
  --surface: rgba(255, 255, 255, .8);
  --surface-strong: #FFFFFF;
  --field: rgba(255, 255, 255, .92);
  --glass-border: rgba(255, 255, 255, .95);
  --glass-hi: rgba(255, 255, 255, .95);
  --ink: #0B1640;
  --muted: #47527E;
  --line: rgba(11, 22, 64, .11);
  --accent: #0B6CF5;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(11, 108, 245, .12);
  --sun: #FFD21F;
  --sun-ink: #241A00;
  --pink: #FF3EA5;
  --violet: #8A4BFF;
  --cyan: #1EC8FF;
  --lime: #5BD615;
  --orange: #FF8A1F;
  --ok: #138A4B;
  --warn: #B45F00;
  --receipt: rgba(255, 255, 255, .88);
  --scrim: rgba(11, 22, 64, .35);
  --shadow: 0 12px 36px rgba(11, 60, 160, .14), 0 1px 2px rgba(11, 22, 64, .06);
  --blob-1: #6CC4FF; --blob-2: #FFE45C; --blob-3: #FF7CC6; --blob-4: #A98BFF;
  --mesh-opacity: .55;
  --band-1: #0B6CF5; --band-2: #5B3BFF; --band-3: #A13BFF;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050A1F; --surface: rgba(16, 24, 62, .62); --surface-strong: #0E1638; --field: rgba(255, 255, 255, .06);
    --glass-border: rgba(140, 180, 255, .16); --glass-hi: rgba(255, 255, 255, .08);
    --ink: #F3F6FF; --muted: #A5B2DB; --line: rgba(160, 190, 255, .14);
    --accent: #4AA3FF; --accent-ink: #04112E; --accent-soft: rgba(74, 163, 255, .18);
    --sun: #FFD84A; --sun-ink: #241A00; --pink: #FF5CB4; --violet: #A27BFF; --cyan: #3FD6FF; --lime: #7BEA3A; --orange: #FF9E45;
    --ok: #5EE09D; --warn: #FFC15C;
    --receipt: rgba(18, 28, 70, .78); --scrim: rgba(0, 0, 0, .6);
    --shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
    --blob-1: #1A4DFF; --blob-2: #00A3C4; --blob-3: #E0247F; --blob-4: #7A2BFF;
    --mesh-opacity: .42;
    --band-1: #0A3FB8; --band-2: #3A1FB0; --band-3: #6A1AA8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #050A1F; --surface: rgba(16, 24, 62, .62); --surface-strong: #0E1638; --field: rgba(255, 255, 255, .06);
  --glass-border: rgba(140, 180, 255, .16); --glass-hi: rgba(255, 255, 255, .08);
  --ink: #F3F6FF; --muted: #A5B2DB; --line: rgba(160, 190, 255, .14);
  --accent: #4AA3FF; --accent-ink: #04112E; --accent-soft: rgba(74, 163, 255, .18);
  --sun: #FFD84A; --sun-ink: #241A00; --pink: #FF5CB4; --violet: #A27BFF; --cyan: #3FD6FF; --lime: #7BEA3A; --orange: #FF9E45;
  --ok: #5EE09D; --warn: #FFC15C;
  --receipt: rgba(18, 28, 70, .78); --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
  --blob-1: #1A4DFF; --blob-2: #00A3C4; --blob-3: #E0247F; --blob-4: #7A2BFF;
  --mesh-opacity: .42;
  --band-1: #0A3FB8; --band-2: #3A1FB0; --band-3: #6A1AA8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.eyebrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo img { height: 30px; width: auto; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; }
.logo b { color: var(--accent); font-weight: 800; }
nav.main { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
nav.main a:hover { color: var(--ink); }
nav.main a.btn-primary, nav.main a.btn-primary:hover { color: var(--accent-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; border-radius: 8px; }
@media (max-width: 760px) { nav.main a.hide-sm { display: none; } }
@media (max-width: 1060px) { nav.main a.hide-md { display: none; } }
nav.main a { white-space: nowrap; }

/* Hero */
.hero { background-size: cover; background-position: center; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-block: 60px 52px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.searchbox { position: relative; margin-top: 28px; max-width: 580px; }
.searchbox form { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font-size: 1rem; outline: none; }
.searchbox form:focus-within { border-color: var(--accent); }
.quick { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick > span { color: var(--muted); font-size: 0.9rem; margin-right: 4px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 0.875rem; cursor: pointer; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 40px; } }

/* Autocomplete */
.ac { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 15; max-height: 420px; overflow-y: auto; }
.ac-label { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ac-item[aria-selected="true"], .ac-item:hover { background: var(--accent-soft); }
.ac-item .tile { width: 30px; height: 30px; font-size: 0.75rem; border-radius: 8px; }
.ac-item small { color: var(--muted); display: block; font-size: 0.8rem; line-height: 1.3; }
.ac-item .ac-icon { width: 30px; height: 30px; flex: none; border-radius: 8px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 0.8rem; }

/* Build receipt: the page's signature element */
.receipt { background: var(--receipt); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 22px 22px 18px; font-family: var(--f-mono); font-size: 0.8rem; position: relative; transform: rotate(1.2deg); max-width: 410px; justify-self: center; width: 100%; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--receipt) 5.5px) 0 0 / 12px 8px repeat-x; }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt h3 { font-family: var(--f-display); font-size: 1.35rem; margin-top: 10px; letter-spacing: -0.02em; }
.receipt .sub { color: var(--muted); margin-top: 2px; font-family: var(--f-body); font-size: 0.9rem; }
.rule { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.rows { display: grid; gap: 5px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row span:first-child { color: var(--muted); flex: none; }
.row span:last-child { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.stamp { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); border: 1.5px solid var(--ok); border-radius: 6px; padding: 3px 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.receipt .btn { width: 100%; margin-top: 14px; font-family: var(--f-body); }

/* Section scaffolding */
section { padding-block: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 6px; }
.sample-note { font-size: 0.85rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; }

/* Browse layout */
.browse { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 6px; }
.sheet-head, .sheet-foot, .filters-btn { display: none; }
.facet { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.facet:first-child { border-top: 0; padding-top: 0; }
.facet legend { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.facet legend + * { clear: both; }
.opt { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 0.92rem; cursor: pointer; }
.opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer; }
.opt .n { margin-left: auto; color: var(--muted); font-family: var(--f-mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.opt.zero { opacity: 0.42; cursor: default; }
.opt.zero input { cursor: default; }
.opt.subopt { padding-left: 25px; font-size: 0.88rem; }
.more { border: 0; background: none; color: var(--accent); padding: 4px 0; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.results { min-width: 0; display: grid; gap: 16px; }
.results .searchbox { margin-top: 0; max-width: none; }
.results .searchbox form { box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--ink); border: 1px solid transparent; border-radius: 999px; padding: 3px 4px 3px 12px; font-size: 0.85rem; }
.chip button { border: 0; background: transparent; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 1rem; color: var(--muted); }
.chip button:hover { background: var(--surface); color: var(--ink); }
.chip.sugg { background: transparent; border: 1px dashed var(--accent); color: var(--accent); padding: 4px 12px; cursor: pointer; font-weight: 600; }
.chip.sugg:hover { background: var(--accent-soft); }
.clear { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; }
.rhead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.count { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.rhead-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rhead label { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 0.875rem; }
.share { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); min-width: 0; flex-wrap: wrap; }
.share code { overflow-wrap: anywhere; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; min-width: 0; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tile { position: relative; overflow: hidden; width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: hsl(var(--h) 56% 45%); font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; }
.tile img, .cover img, .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.meta { color: var(--muted); font-size: 0.84rem; }
.card .line { font-size: 0.94rem; flex: 1; }
.replaces { font-size: 0.8rem; color: var(--muted); }
.replaces b { color: var(--ink); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-family: var(--f-mono); font-size: 0.68rem; border-radius: 6px; padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.full { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.badge.declared { border-style: dashed; color: var(--warn); border-color: var(--warn); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.85rem; }
.vote { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 4px 10px; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.vote[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.empty { grid-column: 1 / -1; padding: 32px 24px; border: 1px dashed var(--line); border-radius: 14px; display: grid; gap: 14px; justify-items: start; }
.empty h3 { font-size: 1.3rem; }
.empty p { color: var(--muted); }
.mini { display: grid; gap: 8px; width: 100%; }
.mini button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.mini button:hover { border-color: var(--accent); }
.mini .tile { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 9px; }

@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 30; max-height: none; overflow: hidden; background: var(--bg); padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .filters.open #facets { flex: 1; min-height: 0; overflow-y: auto; padding-top: 14px; }
  .filters.open .sheet-head { display: flex; flex: none; justify-content: space-between; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .filters.open .sheet-foot { display: block; flex: none; padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
  .filters.open .sheet-foot .btn { width: 100%; }
}
.filters-btn .n { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-size: 0.75rem; }

/* Launches, wanted, vetting */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.panel h2 { font-size: 1.5rem; font-weight: 700; }
.panel > p { color: var(--muted); margin-top: 6px; }
.board { list-style: none; padding: 0; margin: 18px 0 0; display: grid; }
.board li { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.board li:hover h4 { color: var(--accent); }
.board .rank { font-family: var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.board .tile { width: 40px; height: 40px; font-size: 0.95rem; border-radius: 10px; }
.board h4 { margin: 0; font-size: 1rem; font-family: var(--f-display); font-weight: 700; }
.board small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.wanted { list-style: none; padding: 0; margin: 18px 0 0; display: grid; }
.wanted li { border-top: 1px solid var(--line); }
.wanted button { width: 100%; display: flex; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 12px 0; cursor: pointer; text-align: left; }
.wanted button:hover span:first-child { color: var(--accent); }
.wanted .n { font-family: var(--f-mono); color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.8rem; }
.steps li:last-child { border-color: var(--accent); }
.steps b { font-family: var(--f-display); font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }
.steps .by { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink); }
.recheck { margin-top: 16px; color: var(--muted); }
.legend { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.legend div { display: grid; gap: 4px; align-content: start; padding-top: 12px; border-top: 1px solid var(--line); }
.legend p { color: var(--muted); font-size: 0.9rem; }
.legend .badge { justify-self: start; }

/* Submit */
.submit-band { background: var(--ink); color: var(--bg); }
.submit-band .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; padding-block: 64px; }
@media (max-width: 900px) { .submit-band .wrap { grid-template-columns: 1fr; gap: 28px; } }
.submit-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.submit-band .lede { margin-top: 14px; opacity: .78; max-width: 30em; }
.perks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.perks li { padding-left: 22px; position: relative; opacity: .9; }
.perks li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
form.sub { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
form.sub .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.sub { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 9px 11px; width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.hint { font-size: 0.78rem; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.form-msg { grid-column: 1 / -1; font-size: 0.9rem; border-radius: 8px; padding: 10px 12px; background: var(--accent-soft); color: var(--ink); }

/* Newsletter + footer */
.news { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.news h2 { font-size: 1.6rem; font-weight: 700; }
.news p { color: var(--muted); margin-top: 4px; }
.news form { display: flex; gap: 8px; flex-wrap: wrap; }
.news input { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; min-width: 0; width: 260px; max-width: 100%; }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; color: var(--muted); font-size: 0.9rem; }
.toast { font-size: 0.85rem; color: var(--muted); }

/* Detail dialog */
dialog { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink); width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: var(--scrim); }
.d-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 720px) { .d-inner { grid-template-columns: 1fr; } }
.d-main { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.d-main h2 { font-size: 1.8rem; font-weight: 800; }
.d-main .desc { color: var(--muted); }
.cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 12px; background: hsl(var(--h) 56% 45%); display: grid; place-items: center; text-align: center; color: #fff; padding: 12px; }
.cover span { font-family: var(--f-mono); font-size: 0.72rem; opacity: .85; overflow-wrap: anywhere; }
.cover strong { font-family: var(--f-display); font-size: 1.5rem; display: block; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 8px; border: 1px dashed var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.62rem; color: var(--muted); }
.d-side { background: var(--receipt); border-left: 1px dashed var(--line); padding: 24px 22px; font-family: var(--f-mono); font-size: 0.78rem; min-width: 0; }
@media (max-width: 720px) { .d-side { border-left: 0; border-top: 1px dashed var(--line); } }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feats li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.feats .ok { color: var(--ok); }
.feats .cut { color: var(--warn); }
.feats small { display: block; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.timeline li span:first-child { color: var(--accent); }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 0.9rem; }
.facts span { color: var(--muted); display: block; font-size: 0.78rem; }

/* Community */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; gap: 28px; } }
.community h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.community .lede { margin-top: 12px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#discordMsg { margin-top: 10px; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: lv; }
.ladder li { counter-increment: lv; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; position: relative; padding-bottom: 18px; }
.ladder li::before { content: counter(lv); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.8rem; position: relative; z-index: 1; }
.ladder li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; border-left: 1.5px dashed var(--line); }
.ladder li:last-child::before { background: var(--accent); color: var(--accent-ink); }
.ladder b { font-family: var(--f-display); font-size: 1.05rem; padding-top: 4px; }
.ladder span { color: var(--muted); font-size: 0.92rem; }

/* Builder band on the homepage */
.perks li::before { color: var(--accent-soft); }
.needs { border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 16px; padding: 24px; align-self: center; }
.needs .perks { margin-top: 12px; }
.needs-foot { margin-top: 16px; opacity: .78; font-size: 0.92rem; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }

/* Submission page */
.page-hero .wrap { padding-block: 48px 32px; display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
.page-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .info { grid-template-columns: 1fr; } }
.info .panel h2 { font-size: 1.25rem; }
.info ul, .info ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.info li { color: var(--ink); }
.info li small { display: block; color: var(--muted); font-size: 0.88rem; }
.info .note { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.info code { font-family: var(--f-mono); font-size: 0.82em; background: var(--bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .submit-layout { grid-template-columns: 1fr; } }
.submit-layout form.sub { border: 1px solid var(--line); }
.submit-layout .receipt { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); transform: none; justify-self: stretch; max-width: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; background: var(--bg); }
.seg input { accent-color: var(--accent); margin: 0; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { font-size: 0.8rem; font-family: var(--f-mono); }
.check.good { color: var(--ok); }
.check.bad { color: var(--warn); }
.preview-badge { margin-top: 10px; }
.done { display: grid; gap: 10px; }
.done h2 { font-size: 1.5rem; }
.done ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.done ol b { color: var(--ink); }
/* The DNS record a builder adds after submitting: name and value, each copyable */
.done .rec { display: grid; grid-template-columns: 3.5em minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 6px 0; }
.done .rec code { font-family: var(--f-mono, ui-monospace, monospace); font-size: .82rem; overflow-wrap: anywhere; padding: 6px 8px; border-radius: 8px; background: var(--fill, rgba(127,127,127,.08)); color: var(--ink); }

/* ===== Glass layer: overrides the component rules above ===== */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; contain: strict; background: var(--bg); pointer-events: none; }
.mesh i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; opacity: var(--mesh-opacity); will-change: transform; }
.mesh .m1 { background: radial-gradient(circle at center, var(--blob-1), transparent 66%); left: -18vmax; top: -22vmax; animation: drift1 38s ease-in-out infinite alternate; }
.mesh .m2 { background: radial-gradient(circle at center, var(--blob-2), transparent 66%); right: -22vmax; top: 18vmax; animation: drift2 44s ease-in-out infinite alternate; }
.mesh .m3 { background: radial-gradient(circle at center, var(--blob-3), transparent 66%); left: 22vmax; bottom: -30vmax; animation: drift3 50s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-10vmax, 8vmax) scale(.94); } }
@keyframes drift3 { to { transform: translate(-6vmax, -8vmax) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .mesh i { animation: none; } }
body { background: var(--bg); }
body::before { background: var(--surface-strong); }

/* Big surfaces get real backdrop blur; repeated cards use translucent fill only, which keeps scrolling smooth. */
header.top, .searchbox form, .ac, .panel, .receipt, dialog, form.sub, .filters, .band, .steps li, .legend, .chip.sugg {
  -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.top, .searchbox form, .ac, .panel, .receipt, dialog, form.sub, .filters, .band { background: var(--surface-strong); }
}
header.top { background: var(--surface); border-bottom: 1px solid var(--glass-border); box-shadow: 0 6px 24px rgba(0, 0, 0, .05); }
.searchbox form, .ac, .panel, form.sub, .card, .steps li, .mini button, .pill, .btn-ghost, select, .news input {
  background: var(--surface); border-color: var(--glass-border); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
.card, .steps li { box-shadow: 0 6px 22px rgba(0, 0, 0, .06), inset 0 1px 0 var(--glass-hi); }
.card:hover { border-color: var(--accent); background: var(--surface-strong); }
.panel { border-radius: 22px; }
.ac { background: var(--surface-strong); }
.btn-primary { box-shadow: 0 8px 22px var(--accent-soft); }
.field input, .field select, .field textarea, .results .searchbox form { background: var(--field); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }

.receipt { background: var(--receipt); border-color: var(--glass-border); border-radius: 18px; box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi); }
.receipt::after { display: none; }
.rule { border-top-color: var(--line); }

.filters { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi); }
@media (max-width: 900px) {
  .filters.open { background: var(--surface-strong); border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
}

dialog { background: var(--surface-strong); border: 1px solid var(--glass-border); }
dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.d-side { background: var(--receipt); }
.close { background: var(--surface-strong); }
.shot { border-color: var(--line); background: var(--field); }

.steps li:last-child { border-color: var(--accent); }
.legend { padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--glass-border); }
.legend div:first-child, .legend div:nth-child(-n+3) { border-top-color: transparent; }

/* The builder band becomes a tinted glass panel instead of a solid block. */
.submit-band { background: none; color: var(--ink); }
.submit-band .wrap { display: block; padding-block: 8px 56px; }
.band { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; padding: 44px; border-radius: 28px; border: 1px solid var(--glass-border); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 60%); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; } }
.perks li::before { color: var(--accent); }
.needs { border: 1px solid var(--line); background: var(--field); }

/* Theme toggle */
.theme-toggle { border: 1px solid var(--line); background: var(--field); border-radius: 999px; padding: 3px; cursor: pointer; flex: none; }
.theme-toggle .track { display: block; width: 42px; height: 22px; border-radius: 999px; background: var(--accent-soft); position: relative; transition: background .3s; }
.theme-toggle .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-strong); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); display: grid; place-items: center; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.theme-toggle .knob svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[aria-pressed="true"] .knob { transform: translateX(20px); }
.theme-toggle[aria-pressed="true"] .track { background: var(--accent); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ===== Features added after the competitor review ===== */
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.flag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; background: var(--field); border: 1px solid var(--line); color: var(--muted); }
.flag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.flag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.flag.bad { color: #C2303C; border-color: rgba(194, 48, 60, .35); background: rgba(194, 48, 60, .08); }
:root[data-theme="dark"] .flag.bad { color: #FF8A93; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flag.bad { color: #FF8A93; } }
.status-line { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badge.ai { border-style: dashed; }

/* Ask */
.ask { padding: 16px; border-radius: 18px; border: 1px solid var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); display: grid; gap: 12px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ask-label { font-weight: 600; display: block; margin-bottom: 8px; }
.ask-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-row input { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); background: var(--field); border-radius: 10px; padding: 10px 12px; }
.ask-row input:focus { border-color: var(--accent); outline: none; }
.ask-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.ask-head { font-weight: 600; margin-bottom: 8px; }
.ask-wait { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.ask-wait .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: askpulse 1s ease-in-out infinite; }
@keyframes askpulse { 50% { opacity: .2; transform: scale(.7); } }
#askOut .chip.sugg { margin-top: 10px; }
.ask-pill { border-style: dashed; border-color: var(--accent); color: var(--accent); }

/* Fair start and Wanted briefs */
.fresh { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.fresh .note, .note { font-size: 0.82rem; color: var(--muted); }
.fresh-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.fresh-list button { width: 100%; display: flex; gap: 10px; align-items: center; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; text-align: left; }
.fresh-list button:hover { border-color: var(--accent); }
.fresh-list .tile { width: 32px; height: 32px; font-size: 0.8rem; border-radius: 8px; }
.fresh-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.wanted li { border-top: 1px solid var(--line); }
.w-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.w-q { flex: 1 1 200px; display: flex; justify-content: space-between; gap: 10px; background: none; border: 0; padding: 12px 0; cursor: pointer; text-align: left; min-width: 0; }
.w-q:hover span:first-child { color: var(--accent); }
.w-acts { display: flex; gap: 6px; }
.w-acts [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.brief { padding: 4px 0 14px; display: grid; gap: 8px; font-size: 0.9rem; }
.w-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Agents */
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .agents { grid-template-columns: 1fr; gap: 24px; } }
.agents h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.agents .lede { margin-top: 12px; color: var(--muted); max-width: 34em; }
.agents code { font-family: var(--f-mono); font-size: 0.85em; }
.code-card { border-radius: 22px; border: 1px solid var(--glass-border); background: var(--surface); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi); padding: 18px; display: grid; gap: 10px; min-width: 0; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.code-card pre, pre.code { margin: 0; font-family: var(--f-mono); font-size: 0.76rem; line-height: 1.55; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; white-space: pre; }
pre.code.tall { max-height: 260px; overflow: auto; }

/* Detail additions */
.status-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); font-size: 0.9rem; justify-items: start; }
.d-sec { display: grid; gap: 8px; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.86rem; }
.muted { color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tier { padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); display: grid; gap: 2px; font-size: 0.86rem; }
.tier span { font-size: 0.78rem; font-weight: 600; color: var(--ok); }
.tier.issues span { color: var(--warn); }
.tier.untested span { color: var(--muted); }
.tier small { color: var(--muted); font-size: 0.76rem; }
.dtabs { display: flex; gap: 2px; padding: 3px; margin-bottom: 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); font-family: var(--f-body); }
.dtabs button { flex: 1; border: 0; background: transparent; padding: 6px 4px; border-radius: 9px; cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.dtabs button[aria-selected="true"] { background: var(--surface-strong); color: var(--ink); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.pane-in { animation: panein .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes panein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pane-in, .ask-wait .dot { animation: none; } }
.pane-h { margin-bottom: 8px; }
.versions, .prompts, .reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.versions li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.versions li span:first-child { color: var(--accent); }
.prompts { list-style: decimal; padding-left: 18px; font-family: var(--f-body); font-size: 0.86rem; }
.remix { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; font-family: var(--f-body); }
.oi-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 4px 10px 4px 4px; background: var(--ink); color: var(--bg); font-family: var(--f-body); font-size: 0.8rem; font-weight: 600; }
.oi-badge b { background: var(--accent); color: var(--accent-ink); border-radius: 5px; padding: 1px 5px; font-family: var(--f-display); }
.oi-badge.warn b { background: var(--warn); }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; font-family: var(--f-body); }
.scores div { padding: 10px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); display: grid; }
.scores .big { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; }
.scores div span:last-child { font-size: 0.78rem; color: var(--muted); }
.reviews { margin-top: 10px; font-family: var(--f-body); }
.reviews li { padding: 10px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); display: grid; gap: 4px; font-size: 0.86rem; }
.reviews li.old { opacity: .55; }
.reviews small { color: var(--muted); font-size: 0.74rem; }
.r-head { display: flex; justify-content: space-between; gap: 8px; }
.stars { color: var(--warn); letter-spacing: 1px; }
.rv-form { display: grid; gap: 10px; font-family: var(--f-body); font-size: 0.86rem; }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-grid label { display: grid; gap: 4px; font-weight: 600; font-size: 0.8rem; }
.rv-grid select, .rv-grid input, .rv-form textarea { border: 1px solid var(--line); background: var(--field); border-radius: 10px; padding: 8px 10px; width: 100%; }
.rv-form textarea { min-height: 70px; resize: vertical; }
.rate { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.star-btns { display: inline-flex; gap: 2px; }
.star-btns button { border: 0; background: none; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--line); padding: 2px; transition: color .15s, transform .15s; }
.star-btns button[aria-pressed="true"] { color: var(--warn); }
.star-btns button:hover { transform: scale(1.15); }
.rv-calc { color: var(--muted); font-size: 0.82rem; }
.rv-calc b { color: var(--ink); }
.wanted .w-acts .btn, .wanted .w-tools .btn { width: auto; display: inline-flex; padding: 6px 10px; border: 1px solid var(--glass-border); border-radius: 8px; background: var(--surface); }
.wanted .w-tools .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.wanted .w-acts [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
/* Submission page additions */
fieldset.group { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; background: var(--field); gap: 10px; }
fieldset.group legend { font-size: 0.85rem; font-weight: 600; padding: 0 6px; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.sublabel { font-size: 0.8rem; font-weight: 600; }
fieldset.group textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 11px; width: 100%; min-height: 80px; resize: vertical; }
#verifyOut code { font-family: var(--f-mono); font-size: 0.8em; background: var(--surface); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.field input[type="radio"], .field input[type="checkbox"] { width: auto; padding: 0; border: 0; background: none; flex: none; margin: 0; }
fieldset.group .consent { align-items: center; }
fieldset.group .consent input { margin: 0; }
.w-q { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 2px; }
.w-q .n { font-size: 0.75rem; }

/* ===== Bright layer: sunny whites and primary colours ===== */
.mesh .m1 { background: radial-gradient(circle at center, var(--blob-1), transparent 66%); }
.mesh .m4 { background: radial-gradient(circle at center, var(--blob-4), transparent 66%); right: 10vmax; bottom: -34vmax; animation: drift1 46s ease-in-out infinite alternate-reverse; }
@media (prefers-reduced-motion: reduce) { .mesh .m4 { animation: none; } }
.eyebrow { color: var(--accent); }
.logo-mark { background: linear-gradient(135deg, var(--cyan), var(--accent) 55%, var(--violet)); }
.logo b { color: var(--accent); }
.btn-sun { background: var(--sun); color: var(--sun-ink); border-color: transparent; box-shadow: 0 8px 22px rgba(255, 190, 0, .38); }
.btn-sun:hover { filter: brightness(1.05) saturate(1.1); }
nav.main a.btn-sun, nav.main a.btn-sun:hover { color: var(--sun-ink); }
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--violet))); }
.hero h1 em { color: var(--accent); }
.tile { background: linear-gradient(135deg, hsl(var(--h) 88% 58%), hsl(calc(var(--h) + 40) 85% 47%)); text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.card { background: var(--surface-strong); }
.steps li:nth-child(1)::before { border-color: var(--pink); color: var(--pink); }
.steps li:nth-child(2)::before { border-color: var(--orange); color: var(--orange); }
.steps li:nth-child(3)::before { border-color: var(--violet); color: var(--violet); }
.steps li:nth-child(4)::before { border-color: var(--cyan); color: var(--cyan); }
.steps li:nth-child(5)::before { border-color: var(--lime); color: var(--lime); }
.band { background: linear-gradient(135deg, color-mix(in srgb, var(--sun) 38%, var(--surface-strong)), var(--surface) 55%, color-mix(in srgb, var(--cyan) 24%, var(--surface-strong))); }

/* One search bar with a soft light circling its border */
@property --orbit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero-search { position: relative; isolation: isolate; }
.hero-search::before { content: ""; position: absolute; inset: -5px; border-radius: 19px; z-index: -1; pointer-events: none; background: conic-gradient(from var(--orbit), transparent 0deg 250deg, color-mix(in srgb, var(--cyan) 70%, transparent) 300deg, var(--accent) 335deg, transparent 360deg); filter: blur(10px); opacity: .7; animation: orbit 5s linear infinite; }
.searchbox form.glow { position: relative; border: 2px solid transparent; padding: 6px; border-radius: 15px; background: linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box, conic-gradient(from var(--orbit), color-mix(in srgb, var(--accent) 30%, transparent) 0deg 250deg, var(--cyan) 295deg, #FFFFFF 318deg, var(--accent) 340deg, color-mix(in srgb, var(--accent) 30%, transparent) 360deg) border-box; animation: orbit 5s linear infinite; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow); }
@keyframes orbit { to { --orbit: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hero-search::before, .searchbox form.glow { animation: none; } }
.inputwrap { position: relative; flex: 1; min-width: 0; display: flex; }
.inputwrap input { position: relative; z-index: 1; width: 100%; background: transparent; }
.ghost { position: absolute; inset: 0; padding: 10px 12px; font-size: 1rem; line-height: normal; white-space: pre; overflow: hidden; pointer-events: none; color: var(--muted); opacity: .6; display: flex; align-items: center; }
#ghostTyped { color: transparent; }
.search-hint { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.search-hint b { color: var(--ink); }
.search-hint kbd { font-family: var(--f-mono); font-size: 0.72rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface-strong); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hdr-search { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--field); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.hdr-search svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.hdr-search[hidden] { display: none; }

/* Trending cards in the hero */
.shop { display: grid; gap: 12px; align-content: start; }
.shop-card { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .75); color: #FFFFFF; cursor: pointer; overflow: hidden; display: grid; place-items: center; padding: 0; background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .42), transparent 46%), linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: 0 12px 26px rgba(11, 40, 120, .22); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; font-family: var(--f-body); }
.shop-card:hover, .shop-card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(11, 40, 120, .3); }
.shop-card .big { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); text-shadow: 0 2px 8px rgba(0, 0, 0, .28); margin-bottom: 30%; }
.shop-card .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: rgba(5, 10, 31, .58); font-weight: 700; font-size: 0.82rem; text-align: left; line-height: 1.2; display: grid; }
.shop-card .name small { font-weight: 500; opacity: .8; font-size: 0.7rem; }
.shop-card .tag { position: absolute; top: 8px; right: 8px; background: var(--sun); color: var(--sun-ink); border-radius: 999px; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
@media (prefers-reduced-motion: reduce) { .shop-card:hover, .shop-card:focus-visible { transform: none; } }

/* OpenIntelligence band */
.oi-band { position: relative; color: #FFFFFF; background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .22), transparent 40%), linear-gradient(115deg, var(--band-1), var(--band-2) 55%, var(--band-3)); padding-block: 40px; overflow: hidden; }
.oi-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.oi-inner { position: relative; z-index: 1; display: grid; gap: 22px; }
.oi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.oi-copy { max-width: 46em; min-width: 0; flex: 1 1 420px; }
.oi-band .oi-eyebrow { color: rgba(255, 255, 255, .88); }
.oi-band h2, .oi-band h1 { color: #FFFFFF; font-weight: 800; margin-top: 6px; }
.oi-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.oi-more { margin-top: 10px; line-height: 1.6; max-height: 3.2em; overflow: hidden; transition: max-height .5s cubic-bezier(.2, .8, .2, 1); -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.oi-more.open { -webkit-mask-image: none; mask-image: none; }
.oi-more p { color: rgba(255, 255, 255, .94); }
.oi-more p + p { margin-top: 10px; }
.oi-toggle { background: none; border: 0; padding: 6px 0 0; color: #FFFFFF; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.oi-band :focus-visible { outline-color: #FFFFFF; }
.oi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.oi-card { text-decoration: none; color: var(--ink); background: var(--surface-strong); border: 1px solid rgba(255, 255, 255, .6); border-radius: 18px; padding: 14px; display: grid; gap: 6px; align-content: start; box-shadow: 0 12px 26px rgba(0, 0, 0, .18); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; min-width: 0; }
.oi-card:hover, .oi-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(0, 0, 0, .24); }
.oi-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #FFFFFF; font-family: var(--f-display); font-weight: 800; background: linear-gradient(135deg, var(--c1), var(--c2)); text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.oi-icon.big { width: 54px; height: 54px; border-radius: 15px; font-size: 1.2rem; flex: none; }
.oi-card b { font-family: var(--f-display); font-size: 1.05rem; }
.oi-line { color: var(--muted); font-size: 0.86rem; }
.oi-stats { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); flex-wrap: wrap; }
.oi-needs { justify-self: start; background: color-mix(in srgb, var(--sun) 85%, transparent); color: var(--sun-ink); border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; font-weight: 700; }

/* OpenIntelligence page */
.oi-page-hero { padding-block: 56px 48px; }
.oi-page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.oi-lede { font-size: 1.12rem; color: rgba(255, 255, 255, .94); max-width: 40em; }
.btn-ghost.on-band { background: rgba(255, 255, 255, .16); color: #FFFFFF; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.oi-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .oi-steps { grid-template-columns: 1fr; } }
.lic { gap: 12px; }
.lic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
@media (max-width: 800px) { .lic-grid { grid-template-columns: 1fr; } }
.lic-grid > div { background: var(--field); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.lic-grid h3 { font-size: 1.05rem; }
.lic-grid ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.oi-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.oi-project { background: var(--surface-strong); border: 1px solid var(--glass-border); border-radius: 22px; padding: 20px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.oi-project.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--sun), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.oi-project-head { display: flex; gap: 12px; align-items: center; }
.oi-project h3 { font-size: 1.3rem; }
.oi-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.oi-facts div { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; }
.oi-facts span { font-size: 0.75rem; color: var(--muted); }
.oi-tasks { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.92rem; }

/* Launch of the day, now above Wanted */
.stack { display: grid; gap: 24px; align-content: start; min-width: 0; }
.receipt.launch-card { transform: none; max-width: none; justify-self: stretch; }
.searchbox form.glow:focus-within { border-color: transparent; box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft); }
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  header.top .wrap { gap: 10px; }
  nav.main { gap: 10px; }
  .hide-xs { display: none; }
  .hdr-search { display: none; }
}

/* ===== Carousels: Netflix-style rows that page sideways ===== */
.carousel { display: grid; gap: 12px; min-width: 0; }
.car-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.car-nav { display: flex; gap: 6px; }
.car-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); font-size: 1.35rem; line-height: 1; display: grid; place-items: center; padding: 0 0 3px; cursor: pointer; box-shadow: 0 4px 12px rgba(11, 40, 120, .12); transition: transform .2s, opacity .2s, border-color .2s; }
.car-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.car-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.car-btn.on-band { background: rgba(255, 255, 255, .18); color: #FFFFFF; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.car-btn.on-band:hover:not(:disabled) { background: rgba(255, 255, 255, .3); color: #FFFFFF; border-color: #FFFFFF; }
.car-track { --per: 3; --gap: 14px; --pad: var(--gap); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; padding: 12px var(--pad) 28px; margin: -12px calc(var(--pad) * -1) -28px; outline-offset: 4px; border-radius: 12px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; min-width: 0; }
.car-track .shop-card { box-shadow: 0 8px 16px rgba(11, 40, 120, .2); }
.car-track .shop-card:hover, .car-track .shop-card:focus-visible { box-shadow: 0 12px 20px rgba(11, 40, 120, .26); }
.car-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.car-track.dragging > * { pointer-events: none; }
.per-3 { --per: 3; }
.per-4 { --per: 4; }
.per-5 { --per: 5; }
@media (max-width: 1100px) { .per-5 { --per: 4; } }
@media (max-width: 900px) { .per-3 { --per: 4; } }
@media (max-width: 860px) { .per-5, .per-4 { --per: 3; } }
@media (max-width: 600px) { .per-3, .per-4, .per-5 { --per: 2.3; --gap: 12px; } }
.car-progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.car-progress i { display: block; height: 100%; width: 30%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); transition: transform .25s ease-out, width .25s ease-out; }
.car-progress.on-band { background: rgba(255, 255, 255, .22); }
.car-progress.on-band i { background: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .car-progress i, .car-btn { transition: none; } }

/* ===== Card glow (site-wide rule) =====
   theme.js adds a .glow-layer to whichever card is under the pointer and sets --mx/--my. Every card on every page
   gets it. A card's colour comes from --glow-c (default: the accent); --glow replaces the whole tint when a card
   needs something special, as the colourful store and OPEN cards do. */
:root { --glow-k: 16%; }
:root[data-theme="dark"] { --glow-k: 26%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glow-k: 26%; } }
.glow-layer { position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(var(--glow-r, 240px) circle at var(--mx, 50%) var(--my, 30%), var(--glow, color-mix(in srgb, var(--glow-c, var(--accent)) var(--glow-k), transparent)), transparent 70%); }
.glow-on > .glow-layer { opacity: 1; }
.panel, .band, .receipt, .code-card, .faq details { --glow-r: 340px; }
.shop-card { --glow: color-mix(in srgb, color-mix(in srgb, var(--c1) 45%, #FFFFFF) 34%, transparent); }
.open-card { --glow-c: var(--c1); }
.steps li:nth-child(1) { --glow-c: var(--pink); }
.steps li:nth-child(2) { --glow-c: var(--orange); }
.steps li:nth-child(3) { --glow-c: var(--violet); }
.steps li:nth-child(4) { --glow-c: var(--cyan); }
.steps li:nth-child(5) { --glow-c: var(--lime); }
.wanted li:nth-child(5n+1) { --glow-c: var(--pink); }
.wanted li:nth-child(5n+2) { --glow-c: var(--orange); }
.wanted li:nth-child(5n+3) { --glow-c: var(--violet); }
.wanted li:nth-child(5n+4) { --glow-c: var(--cyan); }
.wanted li:nth-child(5n) { --glow-c: var(--lime); }
.receipt.launch-card { --glow-c: var(--orange); }
.legend > div { --glow-c: var(--cyan); }
.ladder li { --glow-c: var(--violet); }
.role-card { --glow-c: var(--rc); }
.lic-grid > div:nth-child(1) { --glow-c: var(--lime); }
.lic-grid > div:nth-child(2) { --glow-c: var(--pink); }
.lic-grid > div:nth-child(3) { --glow-c: var(--cyan); }
.prop { --glow-c: var(--violet); }
.need-role, .lic-card { --glow-c: var(--lime); }
.oi-band .open-stats > div, .ws-hero [data-card] { --glow: rgba(255, 255, 255, .2); }

/* OPEN project cards: upright, art on top, facts below */
.open-card { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--surface-strong); border: 1px solid rgba(255, 255, 255, .7); border-radius: 18px; box-shadow: 0 12px 26px rgba(11, 22, 64, .16); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.open-card:hover, .open-card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(11, 22, 64, .24); }
@media (prefers-reduced-motion: reduce) { .open-card:hover, .open-card:focus-visible { transform: none; } }
.oi-band .open-card { border-color: rgba(255, 255, 255, .45); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.car-track .open-card { box-shadow: 0 8px 16px rgba(11, 22, 64, .14); }
.oi-band .car-track .open-card { box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.car-track .open-card:hover, .car-track .open-card:focus-visible { box-shadow: 0 12px 20px rgba(11, 22, 64, .24); }
.open-art { position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; color: #FFFFFF; background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .4), transparent 46%), linear-gradient(160deg, var(--c1), var(--c2)); }
.open-mono { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); text-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.open-art .lic-badge { position: absolute; left: 8px; bottom: 8px; }
.lic-badge { display: inline-flex; justify-self: start; width: max-content; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px 3px 7px; font-size: 0.68rem; font-weight: 800; background: rgba(255, 255, 255, .92); color: #0B1640; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); white-space: nowrap; }
.lic-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px rgba(91, 214, 21, .25); }
.lic-badge.alt { background: rgba(5, 10, 31, .62); color: #FFFFFF; }
.lic-badge.alt::before { background: var(--cyan); box-shadow: none; }
.adopt-badge { position: absolute; top: 8px; right: 8px; background: var(--sun); color: var(--sun-ink); border-radius: 999px; font-size: 0.66rem; font-weight: 800; padding: 2px 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.open-body { display: grid; gap: 6px; align-content: start; padding: 12px 12px 14px; min-width: 0; }
.open-body b { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.15; }
.open-body .oi-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.84rem; }
.open-body .oi-needs { margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== OPEN hub page ===== */
.open-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: end; }
@media (max-width: 900px) { .open-hero { grid-template-columns: 1fr; gap: 24px; } }
.open-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.open-stats div { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column-reverse; gap: 2px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.open-stats dt { font-size: 0.85rem; color: rgba(255, 255, 255, .88); }
.open-stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; }
.car-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
.open-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .open-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .open-steps { grid-template-columns: 1fr; } }
.lic-wrap { display: grid; gap: 16px; }
.lic { display: grid; gap: 14px; }
.lic-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.lic-top h2 { margin-top: 4px; }
.lic-keeps { display: grid; gap: 4px; border-left: 3px solid var(--sun); padding: 4px 0 4px 14px; font-size: 0.92rem; }
.lic-keeps span { color: var(--muted); }
.lic-table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
.lic-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.lic-table th, .lic-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lic-table tbody tr:last-child > * { border-bottom: 0; }
.lic-table thead th { background: var(--field); vertical-align: bottom; }
.lic-table thead th > * { display: block; }
.lic-table thead th .lic-badge { display: inline-flex; margin-top: 6px; }
.lic-table thead th:nth-child(2) { background: color-mix(in srgb, var(--lime) 14%, var(--field)); }
.lic-table td:nth-child(2) { background: color-mix(in srgb, var(--lime) 6%, transparent); }
.lic-table tbody th { font-weight: 600; color: var(--muted); width: 22%; }
.lic-name { font-family: var(--f-display); font-size: 1.05rem; }
.lic-default { display: inline-block; width: max-content; margin-top: 6px; font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 2px 6px; }
.yn { font-weight: 700; }
.yn.y { color: var(--ok); }
.yn.n { color: var(--muted); }
.yn.m { color: var(--warn); }
.mono { font-family: var(--f-mono); font-size: 0.85em; }
.lic-rules { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.lic-rules li { color: var(--muted); }
.lic-rules b { color: var(--ink); }
.full-text { padding: 0; }
.full-text summary { cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.full-text summary::-webkit-details-marker { display: none; }
.full-text summary > span { display: grid; gap: 2px; }
.full-text summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.full-text[open] summary::after { content: "−"; }
.lic-text { margin: 0; padding: 0 22px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--f-body); font-size: 0.92rem; line-height: 1.6; max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .role-grid { grid-template-columns: 1fr; } }
.role-card { background: var(--surface-strong); border: 1px solid var(--glass-border); border-top: 4px solid var(--rc); border-radius: 18px; padding: 16px; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow); }
.role-card b { font-family: var(--f-display); font-size: 1.15rem; }
.role-card span { color: var(--muted); font-size: 0.92rem; }
.role-card small { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink); }
.rule-list { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
@media (max-width: 900px) { .rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rule-list { grid-template-columns: 1fr; } }
.rule-list div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.rule-list span { color: var(--muted); font-size: 0.92rem; }
.proj-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; align-items: end; background: var(--surface); border: 1px solid var(--glass-border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
@media (max-width: 720px) { .proj-filters { grid-template-columns: 1fr 1fr; } .proj-filters > .field:first-child { grid-column: 1 / -1; } }
.seg .n { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.faq-wrap { max-width: 860px; }
.faq-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface-strong); border: 1px solid var(--glass-border); border-radius: 14px; box-shadow: 0 4px 14px rgba(11, 40, 120, .06); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ===== OPEN project workspace ===== */
.ws-hero { color: #FFFFFF; background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .22), transparent 42%), linear-gradient(120deg, color-mix(in srgb, var(--c1) 68%, #0B1640), color-mix(in srgb, var(--c2) 68%, #0B1640)); }
:root[data-theme="dark"] .ws-hero { background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .12), transparent 42%), linear-gradient(120deg, color-mix(in srgb, var(--c1) 50%, #050A1F), color-mix(in srgb, var(--c2) 50%, #050A1F)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ws-hero { background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .12), transparent 42%), linear-gradient(120deg, color-mix(in srgb, var(--c1) 50%, #050A1F), color-mix(in srgb, var(--c2) 50%, #050A1F)); } }
.ws-hero .wrap { padding-block: 22px 22px; display: grid; gap: 16px; }
.ws-hero :focus-visible { outline-color: #FFFFFF; }
.ws-back { color: rgba(255, 255, 255, .9); font-size: 0.9rem; text-decoration: none; justify-self: start; }
.ws-back:hover { text-decoration: underline; }
.ws-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ws-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .45), transparent 50%), linear-gradient(160deg, var(--c1), var(--c2)); border: 2px solid rgba(255, 255, 255, .7); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); text-shadow: 0 2px 6px rgba(0, 0, 0, .25); flex: none; }
.ws-title { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.ws-title h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: #FFFFFF; }
.ws-title p { color: rgba(255, 255, 255, .92); font-size: 1.05rem; }
.ws-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-s { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; font-weight: 700; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); color: inherit; white-space: nowrap; }
.pill-s.sun { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.ws-body .pill-s { background: var(--field); border-color: var(--line); color: var(--muted); }
.ws-body .pill-s.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.ws-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-actions .btn[disabled] { opacity: .85; }
.ws-role { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 0.88rem; color: rgba(255, 255, 255, .92); }
.seg-band label { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #FFFFFF; }
.seg-band label:has(input:checked) { background: #FFFFFF; color: #0B1640; border-color: #FFFFFF; }
.seg-band input { accent-color: #0B1640; }
.ws-role-note { opacity: .9; }
.ws-body { padding-block: 18px 56px; }
.ws-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--glass-border); border-radius: 14px; padding: 5px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 5; }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tabs [role="tab"] { border: 0; background: none; border-radius: 10px; padding: 9px 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.ws-tabs [role="tab"]:hover { color: var(--ink); }
.ws-tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px var(--accent-soft); }
.ws-tabs .n, .kcol h3 .n { font-family: var(--f-mono); font-size: 0.72rem; opacity: .8; }
.ws-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); z-index: 20; width: max-content; max-width: calc(100vw - 32px); margin: 0; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.92rem; border-radius: 12px; padding: 10px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.ws-toast:empty { display: none; }
.ws-hero, .ws-panel { padding-block: 0; }
.ws-tabs { margin-bottom: 16px; }
.ws-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ws-cols { grid-template-columns: 1fr; } }
.ws-main, .ws-side { display: grid; gap: 16px; min-width: 0; }
.ws-panel .panel { display: grid; gap: 10px; align-content: start; }
.ws-panel h2 { font-size: 1.3rem; }
.ws-about { font-size: 1.02rem; }
.ws-facts, .oi-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .ws-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-facts div { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; }
.ws-facts b { font-family: var(--f-display); font-size: 1.3rem; }
.ws-facts span { font-size: 0.78rem; color: var(--muted); }
.needs-list { display: grid; gap: 8px; }
.need { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.need span { grid-column: 1; font-size: 0.82rem; color: var(--muted); }
.need .btn { grid-column: 2; grid-row: 1 / span 2; }
.need-role { border-color: color-mix(in srgb, var(--sun) 70%, transparent); background: color-mix(in srgb, var(--sun) 14%, var(--field)); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.92rem; }
.feed time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 700; font-size: 0.8rem; color: #FFFFFF; background: linear-gradient(135deg, hsl(var(--h) 80% 55%), hsl(calc(var(--h) + 40) 75% 45%)); }
.lic-card { border-top: 4px solid var(--lime); }
.lic-card p { color: var(--muted); font-size: 0.92rem; }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.ready-sum { font-size: 0.95rem; }
.mini-rules { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.mini-rules b { color: var(--ink); }
.board-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.board-top h2 { font-size: 1.3rem; }
.milestone { min-width: min(100%, 340px); display: grid; gap: 6px; }
.ms-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.ms-row b { color: var(--ink); font-family: var(--f-mono); }
.add-task { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--glass-border); border-radius: 14px; padding: 10px; }
.add-task input:not([type]), .add-task select { border: 1px solid var(--line); background: var(--field); border-radius: 8px; padding: 8px 10px; }
.add-task input:not([type]) { flex: 1 1 260px; min-width: 0; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.kcol { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 16px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 180px; }
.kcol h3 { font-size: 0.95rem; padding: 4px 4px 2px; display: flex; gap: 6px; align-items: center; }
.kcol[data-col="done"] h3 { color: var(--ok); }
.ktask { background: var(--surface-strong); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; box-shadow: 0 3px 10px rgba(11, 40, 120, .06); }
.ktask.mine { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ktask b { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.ktag { justify-self: start; font-family: var(--f-mono); font-size: 0.66rem; border-radius: 6px; padding: 1px 6px; background: var(--accent-soft); color: var(--accent); }
.ktag.t-bug { background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
.ktag.t-docs { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--warn); }
.ktag.t-tests { background: color-mix(in srgb, var(--lime) 18%, transparent); color: var(--ok); }
.ktag.t-chore { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
.kfoot { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.kfoot .av { width: 20px; height: 20px; font-size: 0.65rem; }
.kfoot .pts { margin-left: auto; letter-spacing: 1px; color: var(--accent); font-size: 0.6rem; }
.relpin { font-family: var(--f-mono); font-size: 0.66rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.kact { display: flex; gap: 6px; }
.kempty { padding: 8px 4px; }
.muted { color: var(--muted); }
.ready-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ring { --p: 0; width: 78px; height: 78px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; position: relative; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); transition: background .4s; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface-strong); }
.ring b, .ring span { position: relative; line-height: 1.1; }
.ring b { font-family: var(--f-display); font-size: 1.15rem; }
.ring span { font-size: 0.68rem; color: var(--muted); }
.ready-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ready-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--field); border: 1px solid var(--line); font-size: 0.92rem; }
.ready-list li b { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.ready-list .tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; border: 1.5px solid var(--line); }
.ready-list li.ok .tick { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
.ready-list li.ok b { color: var(--ok); }
.pipeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pipeline li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.92rem; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); color: var(--muted); }
.pipeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pipeline li.run { color: var(--ink); border-style: solid; border-color: var(--accent); }
.pipeline li.run .dot { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.pipeline li.done { color: var(--ink); border-style: solid; }
.pipeline li.done .dot { background: var(--ok); }
.pipeline li.done b { color: var(--ok); }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .pipeline li.run .dot { animation: none; } }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rel-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rel-list li > div { display: flex; gap: 8px; align-items: center; font-family: var(--f-mono); }
.rel-list li > span { grid-column: 1; font-size: 0.8rem; color: var(--muted); }
.rel-list .linkish { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.88rem; }
.dep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.dep-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.ok-dot { color: var(--ok); font-weight: 800; }
.table-wrap { overflow-x: auto; }
.team-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.team-table th, .team-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.team-table th { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.who { display: flex; gap: 10px; align-items: center; }
.who > span { display: grid; }
.who small { color: var(--muted); font-size: 0.76rem; }
.role { font-size: 0.74rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--field); border: 1px solid var(--line); }
.role.r-maintainer { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.role.r-reviewer { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.prop-list { display: grid; gap: 12px; }
.prop { background: var(--surface-strong); border: 1px solid var(--glass-border); border-radius: 18px; padding: 16px 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.prop.blocked { background: var(--surface); box-shadow: none; border-style: dashed; border-color: var(--line); }
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.prop h3 { font-size: 1.1rem; }
.prop p { color: var(--muted); font-size: 0.94rem; }
.prop-why { border-left: 3px solid var(--warn); padding-left: 10px; }
.votes { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.prop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.threads { display: grid; gap: 12px; max-width: 900px; }
.thread { padding: 0; }
.thread summary { cursor: pointer; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.thread summary::-webkit-details-marker { display: none; }
.thread summary > span { display: grid; gap: 2px; }
.thread summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.thread[open] summary::after { content: "−"; }
.msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 0.93rem; }
.msg p { margin-top: 2px; }
.reply { display: flex; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.reply input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--field); border-radius: 8px; padding: 8px 10px; }
.thread > .note { padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.join-form { padding: 24px; display: grid; gap: 14px; }
.join-form h2 { font-size: 1.5rem; }
.join-form fieldset.group { display: grid; gap: 10px; }
.join-form .field input { background: var(--field); }

/* ===== OPEN release form ===== */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.lic-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .lic-pick { grid-template-columns: 1fr; } }
.lic-opt { position: relative; display: grid; gap: 6px; align-content: start; padding: 12px 12px 12px 40px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-strong); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.lic-opt input { position: absolute; left: 14px; top: 15px; accent-color: var(--accent); }
.lic-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lic-opt-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.lic-opt-top b { font-family: var(--f-display); font-size: 1.05rem; }
.lic-opt-top .lic-default { margin-top: 0; }
.lic-opt .lic-badge.alt { background: var(--ink); color: var(--bg); }
.lic-opt-text { font-size: 0.84rem; color: var(--muted); }
.lic-means { font-size: 0.9rem; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.dep-sum { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 0.82rem; font-weight: 700; }
.dep-sum span { border-radius: 999px; padding: 2px 9px; border: 1px solid currentColor; }
.dep-sum .ok { color: var(--ok); }
.dep-sum .chk { color: var(--warn); }
.dep-sum .bad { color: var(--pink); }
.dep-check { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.dep-check li { display: grid; grid-template-columns: minmax(0, auto) auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface-strong); font-size: 0.86rem; }
@media (max-width: 560px) { .dep-check li { grid-template-columns: minmax(0, 1fr) auto; } .dep-check li > span:last-child { grid-column: 1 / -1; } }
.dep-check li > span:last-child { color: var(--muted); }
.dep-check li.ok { border-left-color: var(--ok); }
.dep-check li.check { border-left-color: var(--warn); }
.dep-check li.block { border-left-color: var(--pink); background: color-mix(in srgb, var(--pink) 7%, var(--surface-strong)); }
.rel-side { display: grid; gap: 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); min-width: 0; }
@media (max-width: 900px) { .rel-side { position: static; } }
.rel-side .panel { display: grid; gap: 12px; }
.rel-side h2 { font-size: 1.2rem; }
.preview-card { max-width: 250px; }
.preview-card .open-card { cursor: default; }

section[id], details[id] { scroll-margin-top: 80px; }
.btn .hide-xs { margin-left: -4px; }
.field label.consent { font-weight: 400; font-size: 0.9rem; }
.preview-card { max-width: 230px; }

/* ===== Hover-to-scroll lists (hover-scroll.js) =====
   The list never scrolls under the wheel; grey control cards above and below it do the moving. */
.hs-view { position: relative; overflow: hidden; }
.hs-view :focus-visible { outline-offset: -3px; }
.hs-view.more-above { -webkit-mask-image: linear-gradient(transparent, #000 26px); mask-image: linear-gradient(transparent, #000 26px); }
.hs-view.more-below { -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
.hs-view.more-above.more-below { -webkit-mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 26px), transparent); }
.scroll-ctl { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--muted) 38%, transparent); background: color-mix(in srgb, var(--muted) 9%, var(--surface)); color: var(--muted); font: inherit; font-size: 0.88rem; cursor: default; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s; }
.scroll-ctl.can { cursor: pointer; }
.scroll-ctl.can:hover, .scroll-ctl.engaged { border-style: solid; border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong)); box-shadow: 0 0 0 4px var(--accent-soft); }
.sc-text b { font-weight: 600; color: var(--ink); }
.scroll-ctl:not(.dual) > *, .sc-zone > * { pointer-events: none; }
.sc-arrow { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-strong); border: 1px solid var(--line); color: var(--muted); transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .25s, color .25s; }
.sc-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scroll-ctl.point-down .sc-arrow, .scroll-ctl.point-up .sc-arrow { transform: rotate(180deg); }
.scroll-ctl.can:hover .sc-arrow, .scroll-ctl.engaged .sc-arrow, .sc-zone.can:hover .sc-arrow, .sc-zone.engaged .sc-arrow { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
[data-dir="-1"] { --nudge: -3px; }
[data-dir="1"] { --nudge: 3px; }
.engaged .sc-arrow { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(var(--nudge)); } }
@media (prefers-reduced-motion: reduce) { .engaged .sc-arrow { animation: none; } }
@media (hover: none) { .hov { display: none; } }
@media (hover: hover) { .tap { display: none; } }
.scroll-ctl.dual { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; padding: 5px; min-height: 0; border-radius: 14px; }
.sc-zone { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 7px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: default; touch-action: manipulation; transition: background-color .25s, color .25s, opacity .25s; }
.sc-zone .sc-arrow { width: 26px; height: 26px; }
.sc-zone.can { cursor: pointer; color: var(--ink); }
.sc-zone:not(.can) { opacity: .45; }
.sc-zone.can:hover, .sc-zone.engaged { background: color-mix(in srgb, var(--accent) 14%, var(--surface-strong)); }
.scroll-ctl.dual:has(.sc-zone.can:hover), .scroll-ctl.dual:has(.engaged) { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sc-mid { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.board-view { margin-top: 18px; }
.board-view .board { margin: 0; }
#launches .board-view + .scroll-ctl { margin-top: 8px; }
.fresh-view .fresh-list { margin: 0; }
.fresh-view + .scroll-ctl { margin-top: 2px; }

/* ===== Catalogue rows ===== */
.cat-scroller { display: grid; gap: 10px; min-width: 0; }
.cat-scroller.empty-list .scroll-ctl { display: none; }
.cat-view { max-height: min(640px, 74vh); border-radius: 18px; }
.cat-list { display: grid; gap: 10px; }
.cat-row { background: var(--surface-strong); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 4px 16px rgba(11, 40, 120, .06), inset 0 1px 0 var(--glass-hi); transition: border-color .2s, box-shadow .25s; }
.cat-row:hover { border-color: color-mix(in srgb, var(--glow-c) 45%, var(--line)); }
.cat-row.open { border-color: color-mix(in srgb, var(--glow-c) 55%, var(--line)); box-shadow: var(--shadow); }
.cat-head { display: grid; grid-template-columns: 46px minmax(140px, 1.1fr) minmax(0, 2fr) auto 36px; grid-template-areas: "tile title line price toggle"; gap: 14px; align-items: center; padding: 12px 14px; cursor: pointer; }
.cat-head > .tile { grid-area: tile; }
.cat-title { grid-area: title; min-width: 0; }
.cat-title h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-title .meta { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-line { grid-area: line; font-size: 0.92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-price { grid-area: price; justify-self: end; font-weight: 700; font-size: 0.82rem; white-space: nowrap; background: var(--field); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.cat-toggle { grid-area: toggle; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--field); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s; }
.cat-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cat-head:hover .cat-toggle { border-color: var(--accent); color: var(--accent); }
.cat-row.open .cat-toggle { transform: rotate(180deg); background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cat-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.2, .8, .2, 1); }
.cat-row.open .cat-more { grid-template-rows: 1fr; }
.cat-more-in { overflow: hidden; min-height: 0; }
.cat-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 16px 28px; margin: 0 14px; padding: 14px 0 16px 60px; border-top: 1px dashed var(--line); }
.cat-main, .cat-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cat-about { margin-top: 4px; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.cat-about p { font-size: 0.92rem; line-height: 1.55; }
.long-rest { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.2, .8, .2, 1); }
.cat-about.open .long-rest { grid-template-rows: 1fr; }
.long-rest > div { overflow: hidden; min-height: 0; display: grid; gap: 6px; }
.long-btn { justify-self: start; font-size: 0.88rem; }
.cat-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-stats div { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.cat-stats b { font-family: var(--f-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cat-stats span { font-size: 0.75rem; color: var(--muted); }
.studio { font-size: 0.9rem; }
.studio a { font-weight: 700; color: var(--accent); text-underline-offset: 3px; }
.cat-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .cat-grid { padding-left: 0; } }
@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .cat-head { grid-template-columns: 46px minmax(0, 1fr) 36px; grid-template-areas: "tile title toggle" "tile price toggle" "line line line"; gap: 4px 12px; }
  .cat-price { justify-self: start; }
  .cat-line { margin-top: 6px; }
  .cat-view { max-height: min(600px, 78vh); }
}

/* ===== OPEN hub: contributing ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--surface-strong); border: 1px solid var(--glass-border); border-top: 4px solid var(--glow-c); border-radius: 20px; padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.value-card b { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.2; }
.value-card ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.lives { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.1fr) 70px minmax(0, 1fr); align-items: stretch; }
.live-col { background: var(--surface-strong); border: 1px solid var(--glass-border); border-radius: 20px; padding: 18px; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow); }
.live-col.here { border: 2px solid var(--accent); box-shadow: var(--shadow), 0 0 0 5px var(--accent-soft); }
.live-col b { font-family: var(--f-display); font-size: 1.15rem; }
.live-col ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 5px; color: var(--muted); font-size: 0.92rem; }
.live-link { position: relative; display: grid; place-items: center; }
.live-link::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.live-link::after { content: ""; position: absolute; right: 2px; top: calc(50% - 5px); border: 5px solid transparent; border-left-color: var(--accent); border-right: 0; }
.live-link span { position: relative; z-index: 1; background: var(--bg); color: var(--accent); font-family: var(--f-mono); font-size: 0.62rem; line-height: 1.2; text-align: center; padding: 3px 4px; border-radius: 6px; max-width: 66px; }
@media (max-width: 900px) {
  .lives { grid-template-columns: 1fr; }
  .live-link { height: 46px; }
  .live-link::before { left: 50%; right: auto; top: 4px; bottom: 4px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
  .live-link::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 2px; border: 5px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
  .live-link span { max-width: none; }
}
.task-list { display: grid; gap: 10px; }
.task-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface-strong); border: 1px solid var(--glass-border); box-shadow: 0 4px 16px rgba(11, 40, 120, .06); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.task-row:hover { border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); }
.task-row .oi-icon { width: 38px; height: 38px; font-size: 0.9rem; }
.tr-main { min-width: 0; display: grid; }
.tr-main b { font-size: 0.98rem; }
.tr-main small { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-main code { font-family: var(--f-mono); font-size: 0.74rem; }
.tr-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 330px; }
.tr-tags span { font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tr-tags .tag-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
@media (max-width: 720px) { .task-row { grid-template-columns: 38px minmax(0, 1fr); } .tr-tags { grid-column: 2; justify-content: flex-start; max-width: none; } }
.recheck a { color: var(--accent); }

/* ===== Workspace: the repository on its Git host ===== */
.ws-title .ws-repo { font-family: var(--f-mono); font-size: 0.78rem; color: rgba(255, 255, 255, .9); }
.linkish.on-dark { color: #FFFFFF; font-family: inherit; font-size: inherit; font-weight: 600; }
.repo-card { border-top: 4px solid var(--accent); }
.repo-card h2 { overflow-wrap: anywhere; }
.repo-card code { font-family: var(--f-mono); font-size: 0.8em; }
.clone { display: flex; gap: 8px; align-items: center; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 10px; min-width: 0; }
.clone code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: 0.76rem; }
.pr-list { display: grid; gap: 8px; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.pr-row > div:first-child { display: grid; min-width: 0; }
.pr-row b { font-size: 0.92rem; }
.pr-checks { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .pr-row { grid-template-columns: 1fr; } .pr-checks { justify-content: flex-start; } }
.join-tag { font-family: var(--f-body); font-weight: 700; }
.join-tag.open { color: var(--ok); }
.join-tag.apply { color: var(--accent); }
.join-tag.closed { color: var(--muted); }

/* ===== Joining ===== */
.ws-hero .pill-s.join-open { background: rgba(91, 214, 21, .28); border-color: rgba(255, 255, 255, .55); }
.ready-list li.no .tick { background: var(--bad, #D11F3A); border-color: transparent; color: #FFFFFF; }
:root { --bad: #D11F3A; }
:root[data-theme="dark"] { --bad: #FF7A8C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bad: #FF7A8C; } }
.v-outcome { border-radius: 12px; padding: 10px 12px; font-size: 0.9rem; }
.v-outcome.pass { background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.v-outcome.fail { background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.lim { font-size: 0.72rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 8px; }
.limit-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; background: color-mix(in srgb, var(--sun) 22%, var(--surface-strong)); border: 1px solid color-mix(in srgb, var(--sun) 60%, transparent); }
.join-form .ready-list li b { text-align: right; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; grid-column: 1 / -1; }

/* "Already a moderator?" line under the Community buttons */
.desk-note { margin-top: 14px; }
.desk-note a { color: var(--ink); font-weight: 600; }

/* Shown in place of the catalogue when listings.json can't load (for example, a page opened straight from disk) */
.load-fail { flex: 0 0 100%; grid-column: 1 / -1; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink); line-height: 1.55; }
.load-fail code { font-family: var(--f-mono); font-size: .9em; }
.car-track:has(> .load-fail) { grid-auto-columns: 100%; }
