/* Nunu List. One stylesheet for the public site (body.site) and the admin panel (body.admin).
   Colours are tokens; light and dark themes swap the tokens only. Type: Hanken Grotesk, self-hosted. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens: light ---------- */
:root {
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, /* taste-skill-ignore: Discord IDs only */ "Cascadia Mono", "SF Mono", Consolas, monospace;
  --m: clamp(16px, 2.2vw, 32px);                 /* the one pair of page margins */
  --gap-section: clamp(96px, 12vw, 176px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bg: #eeecea; --surface: #e4e1dd; --surface-2: #d8d3cc; --field-1: #cdc3b6; --field-dark: #2f2e2c;
  --ink: #2b2a29; --muted: #625e5a; --paper: #f4f2ef;
  --accent: #5c6b54; --accent-ink: #ffffff; --accent-soft: #dfe5d9;
  --ok: #3f6b33; --ok-soft: #dbe8d2; --bad: #a5372a; --bad-soft: #f2dcd7; --warn: #8a5a0a; --warn-soft: #f3e3c2;
  --focus: #2b2a29;

  /* admin */
  --a-bg: #f3f2f0; --a-card: #ffffff; --a-raised: #f6f5f3; --a-border: #e6e3de; --a-rule: #eeece8; --a-control: #d9d5cf;
  --a-text: #1d1c1b; --a-muted: #66625d; --a-meta: #7d7872; --a-primary: #1d1c1b; --a-primary-ink: #ffffff;
  --a-hue: #5c6b54; --a-hue-soft: #e3e8de;

  /* badge tiers */
  --t-common: #d6d1ca; --t-common-i: #4a4744; --t-common-e: #bdb6ad;
  --t-uncommon: #cfe0c4; --t-uncommon-i: #35502a; --t-uncommon-e: #a9c69a;
  --t-rare: #c8dbe8; --t-rare-i: #1f4d6b; --t-rare-e: #9cbfd6;
  --t-epic: #f1d9b4; --t-epic-i: #7a4806; --t-epic-e: #ddb67a;
  --t-legendary: #2b2a29; --t-legendary-i: #e8c56a; --t-legendary-e: #e8c56a;
  color-scheme: light;
}

/* ---------- tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161514; --surface: #201f1d; --surface-2: #2b2927; --field-1: #3a352f; --field-dark: #0d0c0c;
    --ink: #ecebe8; --muted: #aaa59e; --paper: #ecebe8;
    --accent: #a3bb92; --accent-ink: #141a10; --accent-soft: #2b3426;
    --ok: #9fcb88; --ok-soft: #22301c; --bad: #f0907f; --bad-soft: #3a1d18; --warn: #f0c070; --warn-soft: #362a12;
    --focus: #ecebe8;
    --a-bg: #000000; --a-card: #111111; --a-raised: #1c1c1c; --a-border: #1f1f1f; --a-rule: #1e1e1e; --a-control: #333333;
    --a-text: #ffffff; --a-muted: #b4b4b4; --a-meta: #949494; --a-primary: #ffffff; --a-primary-ink: #000000;
    --a-hue: #a8c48f; --a-hue-soft: #1d2618;
    --t-common: #34322f; --t-common-i: #d6d2cc; --t-common-e: #4a4744;
    --t-uncommon: #263320; --t-uncommon-i: #b5d4a1; --t-uncommon-e: #3c5232;
    --t-rare: #1b2d3b; --t-rare-i: #a6c9e2; --t-rare-e: #2f4d63;
    --t-epic: #3a2b14; --t-epic-i: #f0c788; --t-epic-e: #5c4420;
    --t-legendary: #e9d9a6; --t-legendary-i: #3a2c06; --t-legendary-e: #f6e7b8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161514; --surface: #201f1d; --surface-2: #2b2927; --field-1: #3a352f; --field-dark: #0d0c0c;
  --ink: #ecebe8; --muted: #aaa59e; --paper: #ecebe8;
  --accent: #a3bb92; --accent-ink: #141a10; --accent-soft: #2b3426;
  --ok: #9fcb88; --ok-soft: #22301c; --bad: #f0907f; --bad-soft: #3a1d18; --warn: #f0c070; --warn-soft: #362a12;
  --focus: #ecebe8;
  --a-bg: #000000; --a-card: #111111; --a-raised: #1c1c1c; --a-border: #1f1f1f; --a-rule: #1e1e1e; --a-control: #333333;
  --a-text: #ffffff; --a-muted: #b4b4b4; --a-meta: #949494; --a-primary: #ffffff; --a-primary-ink: #000000;
  --a-hue: #a8c48f; --a-hue-soft: #1d2618;
  --t-common: #34322f; --t-common-i: #d6d2cc; --t-common-e: #4a4744;
  --t-uncommon: #263320; --t-uncommon-i: #b5d4a1; --t-uncommon-e: #3c5232;
  --t-rare: #1b2d3b; --t-rare-i: #a6c9e2; --t-rare-e: #2f4d63;
  --t-epic: #3a2b14; --t-epic-i: #f0c788; --t-epic-e: #5c4420;
  --t-legendary: #e9d9a6; --t-legendary-i: #3a2c06; --t-legendary-e: #f6e7b8;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 var(--step-body)/1.5 var(--font); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
body.site { background: var(--bg); color: var(--ink); }
body.admin { background: var(--a-bg); color: var(--a-text); font-size: 15px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
code, .mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
body.admin :focus-visible { outline-color: var(--a-text); }
::selection { background: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); }
body.admin .muted { color: var(--a-muted); }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; }

/* ---------- buttons (one shape: fully round) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, color .18s, opacity .18s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 14px; }
.site .btn-solid { background: var(--accent); color: var(--accent-ink); }
.site .btn-solid:hover { background: var(--ink); color: var(--bg); }
.site .btn-quiet { background: var(--surface); color: var(--ink); }
.site .btn-quiet:hover { background: var(--surface-2); }
.btn-paper { background: var(--paper); color: #1d1c1b; min-height: 56px; min-width: 200px; font-size: 18px; }
.btn-paper:hover { background: var(--accent); color: var(--accent-ink); }
.admin .btn-solid { background: var(--a-primary); color: var(--a-primary-ink); }
.admin .btn-solid:hover { opacity: .86; }
.admin .btn-line { background: transparent; color: var(--a-text); border: 1px solid var(--a-control); } /* taste-skill-ignore: app screen rule or control border */
.admin .btn-line:hover { background: var(--a-raised); }
.admin .btn-quiet { background: transparent; color: var(--a-muted); }
.admin .btn-quiet:hover { color: var(--a-text); background: var(--a-raised); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { opacity: .88; }
.btn-danger-quiet { background: transparent; color: var(--bad); }
.btn-danger-quiet:hover { background: var(--bad-soft); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background-color .18s; }
.icon-btn:hover { background: var(--surface); }
.admin .icon-btn:hover { background: var(--a-raised); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }

/* ---------- avatars, pills, badges ---------- */
.av { border-radius: 50%; object-fit: cover; background: var(--surface); flex: none; }
.av-30 { width: 30px; height: 30px; } .av-32 { width: 32px; height: 32px; } .av-64 { width: 64px; height: 64px; }
.av-80 { width: 80px; height: 80px; } .av-112 { width: 112px; height: 112px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface); color: var(--muted); white-space: nowrap; }
.admin .pill { background: var(--a-raised); color: var(--a-muted); }
.pill-ok, .admin .pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-bad, .admin .pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.pill-off { background: var(--surface-2); color: var(--muted); }

.badge { --bg: var(--t-common); --fg: var(--t-common-i); --edge: var(--t-common-e);
  display: inline-grid; place-items: center; flex: none; border-radius: 32%; background: var(--bg); color: var(--fg);
  border: 2px solid var(--edge); transition: transform .25s var(--ease); }
.badge .badge-ic { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.badge-sm { width: 22px; height: 22px; border-radius: 30%; border: 1.5px solid var(--edge); }
.badge-sm .badge-ic { stroke-width: 2.4; width: 62%; height: 62%; }
.badge-md { width: 36px; height: 36px; }
.badge-lg { width: 56px; height: 56px; }
.tier-uncommon { --bg: var(--t-uncommon); --fg: var(--t-uncommon-i); --edge: var(--t-uncommon-e); }
.tier-rare { --bg: var(--t-rare); --fg: var(--t-rare-i); --edge: var(--t-rare-e); }
.tier-epic { --bg: var(--t-epic); --fg: var(--t-epic-i); --edge: var(--t-epic-e); }
.tier-legendary { --bg: var(--t-legendary); --fg: var(--t-legendary-i); --edge: var(--t-legendary-e); }
.badge.locked { filter: grayscale(1); opacity: .42; }
a:hover .badge, .pick-item:hover .badge, .bcard:hover .badge { transform: rotate(-6deg) scale(1.06); }
.tier-label { font-size: 13px; font-weight: 500; }
.tier-label.tier-common { color: var(--muted); }
.tier-label.tier-uncommon { color: var(--t-uncommon-i); } .tier-label.tier-rare { color: var(--t-rare-i); }
.tier-label.tier-epic { color: var(--t-epic-i); } .tier-label.tier-legendary { color: var(--ink); }
.admin .tier-label.tier-legendary { color: var(--a-text); }
.tier-dot { display: inline-block; width: .5em; height: .5em; border-radius: 30%; background: var(--bg); border: 2px solid var(--edge); margin-right: .35em; vertical-align: .08em; }
.name-line { display: inline-flex; align-items: center; gap: .4em; flex-wrap: wrap; text-decoration: none; min-width: 0; }
.name-line .nm { overflow-wrap: anywhere; }
.nm-badges { display: inline-flex; gap: 4px; }

/* ---------- announcement + notes ---------- */
.announce { padding: 10px var(--m); background: var(--surface-2); color: var(--ink); font-size: 15px; text-align: center; }
.announce.tone-success { background: var(--ok-soft); color: var(--ok); }
.announce.tone-warning { background: var(--warn-soft); color: var(--warn); }
.banner-note { margin: 16px var(--m) 0; padding: 14px 18px; border-radius: var(--r); background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.banner-note.ok { background: var(--ok-soft); color: var(--ok); margin: 0 0 24px; }
.note { padding: 12px 16px; border-radius: 12px; background: var(--a-raised); color: var(--a-muted); margin-bottom: 16px; }
.empty-note { color: var(--muted); padding: 8px 0; }
.admin .empty-note { color: var(--a-meta); }
.empty-note.pad { padding: 24px 20px; }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.site-bar { display: flex; align-items: center; gap: 24px; padding: 18px var(--m); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.wordmark .mark { width: 30px; height: 30px; }
.wordmark.sm .mark { width: 26px; height: 26px; }
.wm-sub { color: var(--a-meta); font-weight: 500; }
.site-links { display: flex; gap: 26px; margin-left: auto; }
.site-links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .15s; }
.site-links a:hover { color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.me-link { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 15px; transition: background-color .15s; }
.me-link:hover { background: var(--surface-2); }
.me-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* hero: the sentence is the layout; the badges sit where a word would be */
.hero { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding: 4vh var(--m) 6vh; }
.hero-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em; row-gap: 0; font-size: clamp(56px, 11.4vw, 184px); font-weight: 500; letter-spacing: -0.055em; line-height: .92; }
.hl-word { white-space: nowrap; }
.hl-strip { flex: 1 1 4em; min-width: 3.2em; height: .74em; align-self: center; transform: translateY(.02em); border-radius: clamp(10px, 1.2vw, 18px); background: var(--surface); overflow: hidden; position: relative; }
.strip-track { display: flex; width: max-content; height: 100%; animation: strip 38s linear infinite; }
.strip-set { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); padding: 0 clamp(10px, 1.4vw, 22px); }
.strip-badge { display: inline-flex; align-items: center; gap: .5em; padding: 0 .9em 0 .35em; height: clamp(40px, 4.6vw, 74px); border-radius: 999px; background: var(--bg);
  font-size: clamp(14px, 1.25vw, 20px); font-weight: 500; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.strip-badge .badge { width: clamp(30px, 3.4vw, 54px); height: clamp(30px, 3.4vw, 54px); }
@keyframes strip { to { transform: translateX(-50%); } }
.hl-strip:hover .strip-track { animation-play-state: paused; }
.hero-sub { margin-top: clamp(28px, 3vw, 44px); max-width: 44ch; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* showcase: the headline you can type */
.find { margin-top: var(--gap-section); padding: 0 var(--m); min-height: 70svh; display: flex; flex-direction: column; }
.find-line { border-bottom: 3px solid transparent; transition: border-color .2s; }
.find-input { width: 100%; border: 0; background: transparent; padding: 0; margin: 0; font-size: clamp(44px, 8vw, 132px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05;
  color: var(--ink); caret-color: var(--accent); outline: none; -webkit-appearance: none; appearance: none; }
.find-input::-webkit-search-cancel-button { display: none; }
.find-line:focus-within { border-bottom-color: var(--accent); }
.find-answer { margin-top: 40px; max-width: 560px; }
.find-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.find-list a { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; border-radius: var(--r); background: var(--surface); text-decoration: none; transition: background-color .15s, transform .2s var(--ease); }
.find-list a:hover { background: var(--surface-2); transform: translateX(4px); }
.find-list b { font-weight: 500; font-size: 18px; }
.find-list span { color: var(--muted); font-size: 15px; }
.find-none { color: var(--muted); }
.find-ex { margin-top: auto; padding-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ex { border: 0; background: none; padding: 6px 0; font-size: 17px; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.ex:hover, .ex:focus-visible { color: var(--ink); text-decoration-color: currentColor; }

/* categories: statement, table pushed right */
.cats { margin-top: var(--gap-section); padding: 0 var(--m); }
.cats-title { font-size: clamp(40px, 6vw, 96px); line-height: .98; letter-spacing: -0.05em; max-width: 14ch; text-indent: 3vw; }
.cats-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 96px; }
.cats-side { grid-column: 1 / span 5; align-self: end; display: grid; gap: 28px; }
.cats-side > p { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; }
.cat-table { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; }
.cat-row { display: grid; grid-template-columns: 11ch 1fr auto; gap: 16px; align-items: baseline; padding: 13px 0; font-size: 16px; scroll-margin-top: 30vh; transition: background-color .4s; border-radius: 8px; }
.cat-row:nth-child(4n+1):not(:first-child) { margin-top: 32px; }
.cat-name { font-weight: 500; }
.cat-blurb { color: var(--muted); }
.cat-val { color: var(--muted); font-size: 14px; }
.cat-row.flash { background: var(--accent-soft); }

/* how it works: drag through the stages */
.how { margin-top: var(--gap-section); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; grid-template-areas: "copy stage" "ctl ctl"; min-height: 88svh; }
.how-copy { grid-area: copy; background: var(--surface); padding: clamp(28px, 4vw, 64px) var(--m); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.how-clause { font-size: clamp(40px, 4.6vw, 76px); letter-spacing: -0.045em; line-height: 1; max-width: 13ch; transition: opacity .2s; }
.how-intro { max-width: 34ch; color: var(--muted); }
.how-stage { grid-area: stage; background: var(--field-1); display: grid; place-items: center; padding: 48px var(--m); position: relative; }
.how-frag { width: min(440px, 100%); animation: fade .24s var(--ease); }
.how-frag[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.how-ctl { grid-area: ctl; padding: 28px var(--m) 8px; }
.how-range { width: 100%; -webkit-appearance: none; appearance: none; height: 32px; background: transparent; cursor: pointer; --p: 0%; }
.how-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--surface-2); }
.how-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--surface-2); }
.how-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--ink); }
.how-range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 8px; background: var(--accent); border: 0; transition: transform .15s; }
.how-range::-moz-range-thumb { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); border: 0; }
.how-range:active::-webkit-slider-thumb { transform: scale(1.1); }
.how-names { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.how-names li:nth-child(2) { text-align: center; text-align: -webkit-center; } .how-names li:nth-child(3) { text-align: center; } .how-names li:last-child { text-align: right; }
.how-names button { border: 0; background: none; padding: 6px 0; font-size: 16px; color: var(--muted); cursor: pointer; transition: color .15s; }
.how-names li.on button, .how-names button:hover { color: var(--ink); }

/* the server card: a real fragment of the future product */
.srv { background: var(--bg); color: var(--ink); border-radius: 18px; padding: 22px; font-size: 15px; }
.srv-top { display: flex; align-items: center; gap: 14px; }
.srv-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.srv-id { flex: 1; min-width: 0; display: grid; }
.srv-id b { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.srv-id span { color: var(--muted); font-size: 14px; }
.srv-rank { font-size: 30px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.srv-desc { margin-top: 16px; line-height: 1.45; }
.srv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.srv-bump { border: 0; border-radius: 999px; padding: 9px 18px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 14px; }
.srv-bump[disabled] { background: var(--surface-2); color: var(--muted); }
.srv-note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* features: statements on colour fields */
.feats { margin-top: var(--gap-section); }
.feat { position: relative; min-height: 74svh; padding: var(--m); display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto; column-gap: 24px; }
.feat-1 { background: var(--field-1); } .feat-2 { background: var(--surface); } .feat-3 { background: var(--surface-2); }
.feat-4 { background: var(--field-dark); color: var(--paper); }
.feat-text { grid-column: 8 / span 4; grid-row: 1; max-width: 30ch; padding-top: 8px; font-size: 18px; line-height: 1.5; }
.feat-phrase { grid-column: 1 / -1; grid-row: 3; font-size: clamp(54px, 9vw, 150px); font-weight: 500; letter-spacing: -0.055em; line-height: .9; max-width: 11ch; }
.feat.mirror .feat-text { grid-column: 2 / span 4; }
.feat.mirror .feat-phrase { justify-self: end; text-align: right; }

/* faq: large questions, answers beside */
.faq { margin-top: var(--gap-section); padding: 0 var(--m); }
.faq-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 40px 0; }
.faq-row h2, .faq-row h3 { grid-column: 1 / span 6; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; max-width: 22ch; }
.faq-head h2 { color: var(--muted); }
.faq-row p { grid-column: 8 / -1; max-width: 42ch; font-size: 18px; line-height: 1.55; padding-top: .3em; }

/* cta: the question at both edges */
.cta { margin-top: var(--gap-section); background: var(--field-dark); color: var(--paper); min-height: 92svh; display: grid; grid-template-rows: auto 1fr; position: relative; overflow: hidden; }
.cta-q { display: contents; }
.cta-q span { display: block; text-align: center; font-size: clamp(64px, 11vw, 168px); letter-spacing: -0.055em; line-height: 1; padding: 0 var(--m); }
.cta-q span:first-child { padding-top: 32px; }
.cta-q span:last-child { position: absolute; left: 0; right: 0; bottom: 24px; }
.cta-mid { display: grid; place-content: center; gap: 18px; padding: 48px var(--m) calc(11vw + 72px); text-align: center; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.cta-or { color: #9a958e; font-size: 18px; }
.cta-note { color: #9a958e; font-size: 16px; max-width: 46ch; margin: 0 auto; }

/* footer: the invitation over a cropped name */
.site-foot { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; min-height: 86svh; padding: var(--m); display: flex; flex-direction: column; }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.foot-invite { grid-column: 1 / span 7; font-size: clamp(36px, 5vw, 80px); letter-spacing: -0.045em; line-height: 1; max-width: 14ch; }
.foot-act { grid-column: 1 / span 7; margin-top: 28px; }
.foot-act .btn-solid { background: var(--bg); color: var(--ink); }
.foot-act .btn-solid:hover { background: var(--accent); color: var(--accent-ink); }
.foot-links { grid-column: 10 / -1; grid-row: 1; list-style: none; margin: 0; padding: 6px 0 0; display: grid; gap: 10px; }
.foot-links a { text-decoration: none; font-size: 16px; opacity: .8; transition: opacity .15s; }
.foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { margin-top: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; opacity: .7; padding-bottom: 8px; position: relative; z-index: 1; }
.foot-name { font-size: clamp(110px, 27vw, 460px); font-weight: 600; letter-spacing: -0.065em; line-height: .8; white-space: nowrap; margin: 0 0 -.17em -.04em; }

/* page heads (badges, profile, messages) */
.page-head { padding: clamp(48px, 8vw, 120px) var(--m) 48px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; align-items: end; }
.page-head h1 { grid-column: 1 / span 7; font-size: var(--step-head); letter-spacing: -0.045em; line-height: 1; }
.page-head p { grid-column: 8 / -1; max-width: 42ch; font-size: 18px; }

/* badges catalogue */
.btier { padding: 40px var(--m) 24px; }
.btier h2 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.035em; margin-bottom: 22px; display: flex; align-items: center; }
.btier .tier-dot { width: .62em; height: .62em; }
.bgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.bcard { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface); transition: background-color .2s; }
.bcard:hover { background: var(--surface-2); }
.bcard.have { background: var(--accent-soft); }
.bcard-txt h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.15; }
.bcard-txt p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.bcard-txt .bcard-req { color: var(--ink); font-size: 14px; }
.bcard-meta { text-align: right; font-size: 14px; display: grid; }
.bcard-meta b { font-weight: 500; }
.bcard-meta span { color: var(--muted); }

/* profile */
.prof { padding: 0 var(--m) 96px; max-width: 1160px; }
.prof-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(40px, 7vw, 96px) 0 36px; }
.prof-id h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1.02; }
.prof-id h1 .badge-sm { width: clamp(26px, 2.6vw, 34px); height: clamp(26px, 2.6vw, 34px); }
.prof-meta { margin-top: 10px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prof-bio { margin-top: 14px; max-width: 52ch; font-size: 18px; }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 64px; background: var(--surface); border-radius: 18px; }
.prof-stats div { padding: 18px 22px; }
.prof-stats dt { color: var(--muted); font-size: 14px; }
.prof-stats dd { margin: 4px 0 0; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.prof-sec { margin-top: 64px; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: 22px; align-items: end; }
.sec-head h2 { grid-column: 1 / span 6; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; }
.sec-head p { grid-column: 7 / -1; color: var(--muted); max-width: 46ch; }
.pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pick-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.pick-grid.static .pick-item { cursor: default; }
.pick-item:hover { background: var(--surface-2); }
.pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.pick-item:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.pick-item:has(input:checked) .pick-txt span { color: inherit; opacity: .8; }
.pick-item:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.pick-item.is-new::after { content: "New"; position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 600; color: var(--ok); }
.pick-txt { display: grid; min-width: 0; }
.pick-txt b { font-weight: 500; }
.pick-txt span { font-size: 14px; color: var(--muted); }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.pick-count { color: var(--muted); }
.bio-form textarea { width: 100%; resize: vertical; min-height: 84px; border: 0; border-radius: 16px; background: var(--surface); padding: 16px 18px; font-size: 18px; line-height: 1.45; }
.bio-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.bio-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.help { font-size: 14px; color: var(--muted); }
.admin .help { color: var(--a-meta); font-size: 13px; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.next-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(120px, 220px); gap: 16px; align-items: center; padding: 12px 4px; }
.next-txt { display: grid; }
.next-txt b { font-weight: 500; }
.next-txt span { color: var(--muted); font-size: 15px; }
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); }
.meter span { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 4px; background: var(--accent); }
.meter em { position: absolute; right: 0; top: 12px; font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-none { font-size: 13px; color: var(--muted); text-align: right; }
.prof-public { margin-top: 56px; color: var(--muted); }
.prof-public a { color: var(--ink); }

/* messages */
.msg { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px var(--m); max-width: 820px; }
.msg-code { color: var(--muted); font-size: 18px; }
.msg h1 { font-size: var(--step-head); letter-spacing: -0.045em; }
.msg-text { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.msg-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.id { display: inline-block; font-size: 18px; padding: 10px 16px; border-radius: 12px; background: var(--surface); user-select: all; }

/* ---------- toast + dialog ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: opacity .2s, transform .2s var(--ease); } /* taste-skill-ignore: overlay or sticky bar */
.admin .toast { background: var(--a-text); color: var(--a-bg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }
.dialog { border: 0; border-radius: 20px; padding: 26px; width: min(460px, calc(100% - 32px)); background: var(--a-card); color: var(--a-text); box-shadow: 0 24px 60px rgba(0,0,0,.28); } /* taste-skill-ignore: overlay or sticky bar */
.site .dialog { background: var(--bg); color: var(--ink); }
.dialog::backdrop { background: rgba(10, 9, 8, .55); }
.dialog h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.2; }
.dialog p { color: var(--a-muted); margin-bottom: 18px; }
.dialog label { display: block; font-size: 13px; color: var(--a-muted); margin-bottom: 6px; }
.dialog-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* =====================================================================
   ADMIN (app screens: flat, quiet, colour on data only)
   ===================================================================== */
.adm-col { width: min(1208px, calc(100% - 2 * var(--m))); margin: 0 auto; }
.adm-bar { position: sticky; top: 0; z-index: 30; background: var(--a-bg); }
.adm-bar.scrolled { box-shadow: 0 1px 0 var(--a-border); } /* taste-skill-ignore: overlay or sticky bar */
.adm-bar-in { display: flex; align-items: center; gap: 28px; height: 56px; }
.adm-links { display: flex; gap: 22px; }
.adm-links a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--a-meta); padding: 6px 0; transition: color .15s; }
.adm-links a:hover, .adm-links a[aria-current="page"] { color: var(--a-text); }
.adm-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.adm-site { font-size: 14px; color: var(--a-muted); text-decoration: none; margin-right: 6px; }
.adm-site:hover { color: var(--a-text); }
.adm-menu { display: none; }
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; border-radius: 999px; padding: 3px; }
.acct summary::-webkit-details-marker { display: none; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--a-card); border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.18), 0 0 0 1px var(--a-border); display: grid; z-index: 40; } /* taste-skill-ignore: overlay or sticky bar */
.acct-who { padding: 8px 10px 10px; display: grid; font-size: 14px; }
.acct-who span { color: var(--a-meta); font-size: 13px; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--a-raised); }
.acct-menu form { margin: 0; }
.adm-main { padding: 20px 0 80px; outline: none; }
.adm-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-title h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
.adm-lead { color: var(--a-muted); margin-top: 4px; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--a-card); border-radius: 14px; padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card + .card, .kpis + .card, .card + .card-foot { margin-top: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h.pad { padding: 18px 20px 0; }
.card-h h2, .rail-h { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.card-meta { color: var(--a-meta); font-size: 13px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; flex-wrap: wrap; border-top: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */
.link { font-size: 14px; color: var(--a-muted); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--a-text); }
.pad { padding-left: 20px; padding-right: 20px; } .pad-x { padding: 0 20px; }
.card.soon { color: var(--a-muted); }
.card.soon b { color: var(--a-text); font-weight: 600; }

.ov { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ov-rail .rail-h { margin: 0 0 8px; }
.ov-rail .card + .rail-h { margin-top: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--a-card); border-radius: 14px; }
.kpi { padding: 18px 20px; display: grid; gap: 4px; border-left: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */
.kpi:first-child { border-left: 0; }
.kpi-l { font-size: 14px; color: var(--a-muted); }
.kpi-v { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-c { font-size: 12.5px; color: var(--a-meta); }
.kpi-c a { color: var(--a-text); }
.chart { width: 100%; height: auto; }
.ch-grid { stroke: var(--a-rule); stroke-width: 1; stroke-dasharray: 3 4; }
.ch-axis { fill: var(--a-meta); font: 11px var(--font); }
.ch-bar { fill: var(--a-control); transition: fill .15s; }
.ch-bar.today, .ch-bar:hover { fill: var(--a-hue); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; display: grid; font-size: 14.5px; }
.row-main small { color: var(--a-meta); font-size: 13px; }
.row-main b { font-weight: 600; }
.row-meta { color: var(--a-meta); font-size: 13px; white-space: nowrap; }
.mini { margin: 0; display: grid; }
.mini div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--a-rule); font-size: 14.5px; } /* taste-skill-ignore: app screen rule or control border */
.mini div:last-child { border-bottom: 0; }
.mini dt { color: var(--a-muted); } .mini dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--a-rule); font-size: 14px; } /* taste-skill-ignore: app screen rule or control border */
.feed li:last-child { border-bottom: 0; }
.feed p { min-width: 0; }
.feed time { display: block; color: var(--a-meta); font-size: 12.5px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--a-control); flex: none; margin-right: 8px; transform: translateY(-1px); }
.dot-ok { background: var(--a-hue); } .dot-bad { background: var(--bad); }

/* users */
.count-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.count-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--a-card); text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s; } /* taste-skill-ignore: app screen rule or control border */
.count-card span { font-size: 13px; color: var(--a-muted); }
.count-card b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.count-card:hover { background: var(--a-raised); }
.count-card.on { border: 1.5px solid var(--a-hue); background: var(--a-hue-soft); } /* taste-skill-ignore: app screen rule or control border */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.input { min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--a-control); background: var(--a-card); color: var(--a-text); font-size: 15px; } /* taste-skill-ignore: app screen rule or control border */
.input:focus { outline: none; border: 2px solid var(--a-text); }
textarea.input { resize: vertical; line-height: 1.45; }
select.input { padding-right: 30px; }
.toolbar .input.grow { flex: 1 1 260px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--a-meta); padding: 12px 16px; border-bottom: 1px solid var(--a-rule); white-space: nowrap; } /* taste-skill-ignore: app screen rule or control border */
.table td { padding: 12px 16px; border-bottom: 1px solid var(--a-rule); vertical-align: middle; } /* taste-skill-ignore: app screen rule or control border */
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover { background: var(--a-raised); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ctr { text-align: center; }
.table small { display: block; color: var(--a-meta); font-size: 12.5px; margin-top: 2px; }
.table tr.dim td { opacity: .55; }
.user-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 220px; }
.user-cell > span { display: grid; min-width: 0; }
.user-cell .name-line { font-weight: 600; }
.badge-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.badge-cell b { font-weight: 600; } .badge-cell > span { display: grid; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--a-muted); font-size: 14px; }
.table-foot { margin-top: 12px; color: var(--a-meta); font-size: 13px; max-width: 90ch; }
.count { color: var(--a-meta); font-weight: 500; margin-left: 4px; }

.obj-head { display: flex; align-items: center; gap: 18px; background: var(--a-card); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.obj-id { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.obj-id h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.obj-id .pill { justify-self: start; }
.obj-act { display: flex; gap: 8px; flex-wrap: wrap; }
.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--a-card); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.tile span { font-size: 13px; color: var(--a-muted); }
.tile b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile b.small-v { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.6; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.split2 .card + .card { margin-top: 0; }
.award { padding-top: 16px; padding-bottom: 18px; border-top: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */
.award label { display: block; font-size: 13px; color: var(--a-muted); margin-bottom: 6px; }
.award-row { display: flex; gap: 8px; }
.add-form { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.add-form .field.grow { flex: 1 1 300px; }
.add-form .btn { margin-top: 23px; min-width: 90px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; color: var(--a-muted); font-weight: 500; padding: 0; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 140px; }
.form-error { color: var(--bad); font-size: 14px; font-weight: 500; margin-top: 10px; }
.members { list-style: none; margin: 8px 0 0; padding: 0; }
.member { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */
.member .who { min-width: 0; display: grid; }
.member .who b { font-weight: 600; }
.member .who > span { color: var(--a-meta); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .when { font-size: 13px; color: var(--a-meta); text-align: right; }
.member .ctrl { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.member .ctrl .input { min-height: 34px; padding: 4px 28px 4px 10px; font-size: 14px; }
.you { font-size: 12px; font-weight: 600; color: var(--a-hue); margin-left: 6px; }
.perm-table td b { font-weight: 600; }
.perm-box { width: 18px; height: 18px; accent-color: var(--a-hue); cursor: pointer; }

/* badge editor */
.dialog.wide { width: min(860px, calc(100% - 24px)); padding: 0; }
.bd-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.bd-head h2 { margin: 0; }
.bd-body { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px 24px; max-height: min(70vh, 640px); overflow: auto; }
.bd-preview { background: var(--a-raised); border-radius: 16px; padding: 28px 18px; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; position: sticky; top: 0; }
.bd-preview .badge { width: 84px; height: 84px; margin-bottom: 6px; }
.bd-preview b { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.bd-preview p { margin: 0; font-size: 13px; }
.bd-fields { display: grid; gap: 14px; align-content: start; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.icon-pick button { display: grid; place-items: center; height: 40px; border: 0; border-radius: 10px; background: var(--a-raised); color: var(--a-muted); cursor: pointer; transition: background-color .12s, color .12s; }
.icon-pick button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-pick button:hover { color: var(--a-text); }
.icon-pick button[aria-checked="true"] { background: var(--a-primary); color: var(--a-primary-ink); }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--a-hue); }
.bd-foot { display: flex; gap: 8px; align-items: center; padding: 14px 24px 20px; border-top: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */

/* settings */
.set-sec { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 24px; }
.set-intro h2 { font-size: 16px; font-weight: 650; line-height: 1.3; }
.set-intro p { color: var(--a-muted); margin-top: 6px; font-size: 14px; }
.set-fields { display: grid; gap: 16px; align-content: start; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { -webkit-appearance: none; appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--a-control); position: relative; cursor: pointer; transition: background-color .18s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s var(--ease); }
.switch input:checked { background: var(--a-hue); }
.switch input:checked::after { transform: translateX(18px); }
.ann-preview { border-radius: 10px; }
.serp { display: grid; gap: 3px; padding: 16px 18px; border-radius: 12px; background: #ffffff; color: #202124; font-family: Arial, sans-serif; max-width: 600px; border: 1px solid var(--a-border); } /* taste-skill-ignore: app screen rule or control border */ /* taste-skill-ignore: picture of a Google result */
.serp-site { font-size: 13px; color: #4d5156; }
.serp-title { font-size: 20px; color: #1a0dab; line-height: 1.3; }
.serp-desc { font-size: 14px; color: #4d5156; line-height: 1.58; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 20px; background: var(--a-card); border-radius: 14px; box-shadow: 0 -8px 24px rgba(0,0,0,.06); z-index: 5; } /* taste-skill-ignore: overlay or sticky bar */
.set-sec + .set-sec { margin-top: 16px; }

/* ---------- entrance motion (content is visible without script) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }
.hero-line .hl-word, .hero-line .hl-strip { animation: rise .9s var(--ease) both; }
.hero-line .hl-strip { animation-name: shutter; animation-duration: 1.1s; animation-delay: .12s; }
.hero-line .hl-word:last-child { animation-delay: .22s; }
.hero-sub { animation: rise .9s var(--ease) .32s both; }
.hero-act { animation: rise .9s var(--ease) .42s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes shutter { from { clip-path: inset(0 100% 0 0 round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .strip-track { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 1080px) {
  .ov { grid-template-columns: 1fr; }
  .grid6 { grid-template-columns: repeat(3, 1fr); }
  .set-sec { grid-template-columns: 1fr; gap: 16px; }
  .bgrid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .adm-links { position: fixed; inset: 56px 0 auto 0; flex-direction: column; gap: 0; background: var(--a-bg); padding: 8px var(--m) 16px; box-shadow: 0 16px 30px rgba(0,0,0,.12); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; } /* taste-skill-ignore: overlay or sticky bar */
  .adm-links a { padding: 12px 0; font-size: 16px; }
  body.menu-open .adm-links { opacity: 1; transform: none; pointer-events: auto; }
  .adm-menu { display: inline-grid; }
  .adm-site { display: none; }
  .split2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-top: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */
  .kpi:nth-child(4) { border-left: 1px solid var(--a-rule); border-top: 1px solid var(--a-rule); } /* taste-skill-ignore: app screen rule or control border */
  .site-links { display: none; }
  .site-actions { margin-left: auto; }
  .cats-body { margin-top: 56px; }
  .cats-side { grid-column: 1 / -1; order: 2; margin-top: 36px; }
  .cat-table { grid-column: 1 / -1; }
  .how { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "stage" "ctl" "copy"; }
  .how-stage { min-height: 46svh; }
  .feat { min-height: 60svh; }
  .feat-text, .feat.mirror .feat-text { grid-column: 1 / -1; max-width: none; font-size: 19px; justify-self: stretch; text-align: left; }
  .feat-phrase { font-size: 12vw; max-width: none; }
  .feat.mirror .feat-phrase { justify-self: start; text-align: left; }
  .faq-row h2, .faq-row h3, .faq-row p { grid-column: 1 / -1; }
  .faq-row p { margin-top: 12px; }
  .faq-row { padding: 28px 0; }
  .page-head h1, .page-head p { grid-column: 1 / -1; }
  .foot-invite, .foot-act { grid-column: 1 / -1; }
  .foot-links { grid-column: 1 / -1; grid-row: auto; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; }
  .sec-head h2, .sec-head p { grid-column: 1 / -1; }
  .sec-head p { margin-top: 8px; }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  body.admin { font-size: 15px; }
  .me-name { display: none; }
  .me-link { padding: 4px; }
  .hero { min-height: auto; padding-top: 12vh; padding-bottom: 10vh; }
  .hero-line { font-size: 19vw; display: grid; grid-template-columns: 1fr; row-gap: .12em; }
  .hl-strip { width: 100%; height: auto; aspect-ratio: 2 / 1; min-width: 0; transform: none; border-radius: 14px; }
  .strip-badge { height: 52px; font-size: 16px; }
  .strip-badge .badge { width: 40px; height: 40px; }
  .hero-sub { margin-top: 28px; font-size: 18px; }
  .hero-act .btn { width: 100%; }
  .find-input { font-size: 11vw; }
  .find-ex .ex { background: var(--surface); border-radius: 12px; padding: 0 14px; min-height: 44px; text-decoration: none; }
  .find-ex { gap: 8px; }
  .cats-title { text-indent: 0; font-size: 9.5vw; }
  .cat-row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .cat-blurb { grid-column: 1 / -1; grid-row: 2; }
  .cat-val { grid-row: 1; grid-column: 2; }
  .how-clause { font-size: 9vw; }
  .how-names { grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .how-names li:nth-child(n) { text-align: left; }
  .how-range::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .feat { min-height: 56svh; }
  .feat-text, .feat.mirror .feat-text { font-size: 17px; }
  .feat-phrase { font-size: 13vw; }
  .faq-row h2, .faq-row h3 { font-size: 24px; }
  .faq-row p { font-size: 17px; }
  .cta-q span { font-size: 18vw; }
  .cta-row { flex-direction: column; gap: 12px; }
  .cta-row .btn { width: 72vw; }
  .cta-mid { padding-bottom: calc(18vw + 64px); }
  .foot-invite { font-size: 11vw; }
  .foot-act .btn { width: 100%; }
  .foot-name { font-size: 34vw; }
  .foot-legal { font-size: 13px; }
  .bcard { grid-template-columns: 48px 1fr; }
  .bcard .badge-lg { width: 48px; height: 48px; }
  .bcard-meta { grid-column: 2; text-align: left; display: flex; gap: 8px; }
  .prof-head { grid-template-columns: auto 1fr; gap: 18px; }
  .prof-head .av-112 { width: 72px; height: 72px; }
  .prof-head > .btn { grid-column: 1 / -1; justify-self: start; }
  .prof-stats { grid-template-columns: 1fr 1fr; }
  .next-item { grid-template-columns: 36px 1fr; }
  .next-item .meter, .next-item .meter-none { grid-column: 2; margin-bottom: 18px; }
  .meter-none { text-align: left; margin-bottom: 0 !important; }
  .count-cards { display: flex; overflow-x: auto; scrollbar-width: none; }
  .count-card { flex: 0 0 auto; min-width: 130px; }
  .grid6 { grid-template-columns: repeat(2, 1fr); }
  .member { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 16px; }
  .member .when { grid-column: 2; text-align: left; }
  .member .ctrl { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .bd-body { grid-template-columns: 1fr; }
  .bd-preview { position: static; padding: 18px; }
  .bd-preview .badge { width: 64px; height: 64px; }
  .hide-sm { display: none; }
  .award-row { flex-direction: column; }
  .adm-title h1 { font-size: 22px; }
  .pick-grid { grid-template-columns: 1fr; }
}

/* ---------- hero aside, pictures ---------- */
.hero-aside { display: grid; gap: 28px; justify-items: start; }
@media (min-width: 1081px) {
  /* the supporting sentence sits beside "server list", closing the right half of the first screen */
  .hero-aside { width: min(500px, 36vw); margin-left: auto; margin-top: calc(-0.92 * clamp(56px, 11.4vw, 184px)); position: relative; }
  .hero-aside .hero-sub { margin-top: 0; }
  .hero-aside .hero-act { margin-top: 0; }
}
.pic { margin: 0; }
.pic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); background: var(--surface); }
.pic figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 46ch; }
.find-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 40px; align-items: start; }
.find-row .find-answer { grid-column: 1 / span 6; margin-top: 0; }
.find-pic { grid-column: 8 / -1; }
.find-pic img { aspect-ratio: 4 / 3; height: auto; }
.cats-pic img { aspect-ratio: 4 / 5; height: auto; object-position: 50% 30%; }
.band { margin: var(--gap-section) var(--m) 0; }
.band img { aspect-ratio: 1920 / 770; height: auto; border-radius: var(--r); }
.faq-head { align-items: end; }
.faq-pic { grid-column: 8 / -1; }
.faq-pic img { aspect-ratio: 5 / 4; height: auto; }
.credits { font-size: 13px; opacity: .7; max-width: 110ch; position: relative; z-index: 1; margin-top: 32px; }
.credits a { color: inherit; }
@media (max-width: 900px) {
  .find-row .find-answer, .find-pic { grid-column: 1 / -1; }
  .find-pic { margin-top: 28px; }
  .faq-pic { grid-column: 1 / -1; margin-top: 24px; }
  .hero-aside { margin-top: 32px; }
}
@media (max-width: 600px) {
  .band img { aspect-ratio: 4 / 3; }
  .cats-pic { width: 70%; justify-self: end; }
}
/* the empty toast takes no room and covers nothing until it shows */
.toast { visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s; }
.toast.show { visibility: visible; transition: opacity .2s, transform .2s var(--ease), visibility 0s; }
@media (max-width: 900px) {
  .faq-row h2, .faq-row h3 { max-width: none; }
  .faq-row p { max-width: none; }
}
.row-main { display: block; }
.row-main small { display: block; }
.table td.num small { display: inline; }

/* name-with-badges preview beside the category finder */
.pv { background: var(--surface); border-radius: 20px; padding: 22px; }
.pv-top { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; }
.pv-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 20px; flex: none; }
.pv-top > div { display: grid; }
.pv-name { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pv-top > div > span { color: var(--muted); font-size: 14px; }
.pv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: 14px; }
.pv-list li > span:not(.badge) { display: grid; color: var(--muted); }
.pv-list b { color: var(--ink); font-weight: 500; font-size: 16px; }
.find-pic figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
