/* Purceas Fanbase — design system.
   Brand: Purceas „Electric Purceas” v5 (violet = action & identity, cyan = AI, mint = human/done; never beige).
   Type: Bricolage Grotesque (display) · Instrument Sans (text) · FP Figures (compared numbers). Self-hosted, OFL.
   Principles: one light source, one elevation per composition, colour = meaning, motion only on state change. */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; 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: 'Bricolage Grotesque'; src: url('/fonts/bricolage-latin-ext.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; 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: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'FP Figures'; src: url('/fonts/fp-figures.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0024,U+0025,U+002B-003A,U+00B7,U+00D7,U+2009,U+2012-2014,U+2190-2193,U+20AC,U+2212,U+2248,U+2264-2265; }

:root {
  color-scheme: light;
  --bg: #F8F7FF; --bg-2: #EEEAFF; --surface: #FFFFFF; --surface-2: #FBFAFF; --surface-3: #F1EEFF;
  --ink: #12141F; --ink-2: #3B3F52; --muted: #5C6074; --faint: #A3A7B8;
  --line: rgba(18,20,31,.11); --line-soft: rgba(18,20,31,.065); --line-strong: rgba(18,20,31,.22);
  --act: #6D4AFF; --act-fill: #5634F0; --act-fill-hover: #4422D6; --act-text: #5232E0; --act-ink: #FFFFFF; --act-tint: rgba(109,74,255,.10); --act-tint-2: rgba(109,74,255,.17);
  --ai: #07A6E0; --ai-text: #0369A1; --ai-tint: rgba(7,166,224,.10);
  --human: #12C98A; --human-text: #0B7550; --human-tint: rgba(18,201,138,.12);
  --warn: #9C4507; --warn-dot: #F59E0B; --warn-tint: rgba(245,158,11,.14);
  --danger: #B91C1C; --danger-dot: #EF4444; --danger-tint: rgba(239,68,68,.10);
  --info: #2A46B8; --info-tint: rgba(53,88,224,.10);
  --mark-a: #6D4AFF; --mark-b: #A63CF2; --mark-c: #0784B8;
  --grad-brand: linear-gradient(100deg, #6D4AFF 0%, #A63CF2 55%, #0784B8 105%);
  --hairline: linear-gradient(90deg, rgba(109,74,255,.55), rgba(166,60,242,.4), rgba(7,132,184,.45));
  --sun: radial-gradient(55% 60% at 75% -10%, rgba(140,100,255,.30), transparent 70%), radial-gradient(40% 50% at 8% 10%, rgba(0,200,230,.20), transparent 70%), radial-gradient(35% 45% at 50% 0%, rgba(255,90,200,.10), transparent 70%);
  --shadow-1: 0 1px 0 rgba(18,20,31,.03), 0 1px 2px rgba(18,20,31,.05);
  --shadow-2: 0 2px 4px rgba(18,20,31,.04), 0 18px 40px -22px rgba(40,24,120,.25);
  --shadow-3: 0 2px 6px rgba(18,20,31,.05), 0 34px 80px -34px rgba(40,24,120,.38);
  --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-4: 22px; --r-pill: 999px;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'FP Figures', 'Instrument Sans', system-ui, sans-serif;
  --font-code: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --t-fast: 140ms; --t-base: 240ms; --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --top-h: 64px; --rail-w: 248px; --aside-w: 300px; --tab-h: 64px;
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--act);
  --glass: rgba(248,247,255,.82);
}
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #100F1E; --bg-2: #15142A; --surface: #1B1A33; --surface-2: #201E3B; --surface-3: #262446;
  --ink: #EEF0FF; --ink-2: #C9CCE6; --muted: #9DA1C0; --faint: #5E6284;
  --line: rgba(238,240,255,.13); --line-soft: rgba(238,240,255,.075); --line-strong: rgba(238,240,255,.26);
  --act: #9B7BFF; --act-fill: #9B7BFF; --act-fill-hover: #B9A3FF; --act-text: #C2B0FF; --act-ink: #12082E; --act-tint: rgba(155,123,255,.15); --act-tint-2: rgba(155,123,255,.24);
  --ai: #38C8F5; --ai-text: #8ADDF9; --ai-tint: rgba(56,200,245,.14);
  --human: #3FE0A8; --human-text: #8FF0CC; --human-tint: rgba(63,224,168,.14);
  --warn: #FCD34D; --warn-dot: #FBBF24; --warn-tint: rgba(245,158,11,.16);
  --danger: #FCA5A5; --danger-dot: #F87171; --danger-tint: rgba(239,68,68,.16);
  --info: #B4C4FF; --info-tint: rgba(124,155,255,.15);
  --mark-a: #B39BFF; --mark-b: #E08BFF; --mark-c: #6FD8F7;
  --grad-brand: linear-gradient(100deg, #B39BFF 0%, #E08BFF 55%, #6FD8F7 105%);
  --hairline: linear-gradient(90deg, rgba(179,155,255,.6), rgba(224,139,255,.42), rgba(111,216,247,.5));
  --sun: radial-gradient(55% 60% at 75% -10%, rgba(140,100,255,.20), transparent 70%), radial-gradient(40% 50% at 8% 10%, rgba(0,200,230,.10), transparent 70%), radial-gradient(35% 45% at 50% 0%, rgba(255,90,200,.06), transparent 70%);
  --shadow-1: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(6,4,20,.5);
  --shadow-2: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 4px rgba(6,4,20,.45), 0 18px 40px -22px rgba(64,36,170,.55);
  --shadow-3: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 6px rgba(6,4,20,.5), 0 34px 80px -34px rgba(76,44,200,.6);
  --glass: rgba(16,15,30,.82);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; }
a { color: var(--act-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.022em; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 750; }
h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--act-fill); color: var(--act-ink); padding: 10px 14px; border-radius: var(--r-1); font-weight: 600; }
.skip:focus { top: 12px; }
.i { flex: none; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.kbd { font: 600 11px/1 var(--font-body); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }

/* ── env bar ── */
.envbar { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--warn); background: var(--warn-tint); padding: 5px 12px; border-bottom: 1px solid var(--line-soft); }
.envbar .i { width: 15px; height: 15px; }

/* ── top bar (glass only on chrome) ── */
.top { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--hairline); opacity: .55; }
.top-in { max-width: 1440px; margin: 0 auto; height: var(--top-h); display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; width: calc(var(--rail-w) - 20px); }
.brand-t { font: 700 1.05rem/1 var(--font-display); letter-spacing: -0.025em; white-space: nowrap; }
.brand-t b { font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sm .brand-t { font-size: .95rem; }
.fp-mark { color: var(--ink); }
.top-search { flex: 1; max-width: 640px; position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 14px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--muted); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.top-search:focus-within { border-color: var(--act); box-shadow: 0 0 0 4px var(--act-tint); }
.top-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; color: var(--ink); font-size: 15px; }
.top-search input::placeholder { color: var(--muted); }
.top-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-2); color: var(--ink-2); background: transparent; border: 0; cursor: pointer; text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.icon-btn:hover, .icon-btn.on { background: var(--act-tint); color: var(--act-text); }
.icon-btn .count, .tabbar .count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--act-fill); color: var(--act-ink); font: 700 11px/18px var(--font-num); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
[data-theme='light'] .i-moon, [data-theme='dark'] .i-sun { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-3); padding: 6px; z-index: 50; animation: pop var(--t-base) var(--ease); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r-1); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14.5px; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--act-tint); }
.menu-pop form { margin: 0; border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }
.menu-head { padding: 8px 10px 10px; display: grid; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.menu-head span { color: var(--muted); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-2); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--spring); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--act-fill); color: var(--act-ink); }
.btn-primary:hover { background: var(--act-fill-hover); color: var(--act-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--act-tint); color: var(--act-text); }
.btn-danger { background: var(--danger-tint); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ai { background: var(--ai-tint); color: var(--ai-text); }
.btn-ai:hover { background: var(--ai); color: #04202C; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; pointer-events: none; }
.btn.is-on { background: var(--act-tint-2); color: var(--act-text); border-color: transparent; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── shell ── */
.shell { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); gap: 0 32px; padding: 0 20px; }
.shell.has-aside { grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--aside-w); }
.rail { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow: auto; padding: 20px 4px 32px 0; scrollbar-width: thin; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast); }
.rail a .i { width: 19px; height: 19px; color: var(--muted); }
.rail a:hover { background: var(--surface-3); color: var(--ink); }
.rail a.on { background: var(--act-tint); color: var(--act-text); font-weight: 600; }
.rail a.on .i { color: var(--act-text); }
.rail-apps a.on { background: color-mix(in srgb, var(--pm) 13%, transparent); color: var(--ink); box-shadow: inset 2px 0 0 var(--pm); }
.rail-h { font-size: 12px; font-weight: 600; color: var(--muted); margin: 22px 10px 6px; letter-spacing: .02em; }
.main { min-width: 0; padding: 24px 0 64px; outline: none; }
.aside { position: sticky; top: var(--top-h); align-self: start; padding: 24px 0 40px; display: grid; gap: 16px; max-height: calc(100vh - var(--top-h)); overflow: auto; scrollbar-width: thin; }

/* ── page head ── */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.phead-sub { color: var(--muted); margin: 6px 0 0; max-width: 62ch; }
.phead-act { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--act-text); }

/* ── panels ── */
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); box-shadow: var(--shadow-1); }
.panel-pad { padding: 18px; }
.panel h2, .panel h3 { margin-bottom: 10px; }
.side-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); padding: 16px; }
.side-card h3 { font-size: .95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.side-card p { font-size: 14px; color: var(--ink-2); }
.side-card .muted { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.sec-h h2 { font-size: 1.2rem; }
.sec-h a { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* ── home hero ── */
.hero { position: relative; border-radius: var(--r-4); padding: 40px 36px 30px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-2); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--sun); z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 90% at 80% 0%, #000, transparent 70%); }
.hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 780; max-width: 22ch; }
.hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; margin: 12px 0 22px; }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 680px; height: 58px; padding: 0 8px 0 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.hero-search:focus-within { border-color: var(--act); box-shadow: 0 0 0 5px var(--act-tint), var(--shadow-2); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; height: 100%; }
.hero-search .i { color: var(--muted); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.chip:hover { border-color: var(--act); color: var(--act-text); background: var(--act-tint); }
.chip.on { background: var(--act-tint-2); border-color: transparent; color: var(--act-text); font-weight: 600; }
.chip .i { width: 15px; height: 15px; }

/* the three-step path: how help works here */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; border-top: 1px solid var(--line-soft); padding-top: 18px; counter-reset: step; }
.path li { list-style: none; position: relative; padding: 0 16px 0 44px; }
.path li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-num); color: var(--act-text); background: var(--act-tint); }
.path li:not(:last-child)::after { content: ''; position: absolute; left: 36px; right: 8px; top: 15px; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); display: none; }
.path b { display: block; font-size: 14.5px; }
.path span { font-size: 13.5px; color: var(--muted); }
.path ul { padding: 0; margin: 0; }

/* quick actions under the hero */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.qa a { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); transition: border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.qa a:hover { border-color: var(--act); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.qa .i { color: var(--act-text); width: 22px; height: 22px; margin-bottom: 4px; }
.qa b { font-size: 14.5px; }
.qa span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.qa a.qa-alert .i { color: var(--warn); }

/* ── product marks & tiles ── */
.pmark { display: inline-grid; place-items: center; flex: none; border-radius: 28%; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft); }
.pmark img { width: 100%; height: 100%; object-fit: cover; }
.pmark-letter { background: color-mix(in srgb, var(--pm) 16%, var(--surface)); color: color-mix(in srgb, var(--pm) 70%, var(--ink)); font-family: var(--font-display); font-weight: 750; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.app { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 14px 14px 12px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.app::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pm); opacity: .0; transition: opacity var(--t-fast); }
.app:hover { border-color: color-mix(in srgb, var(--pm) 45%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.app:hover::before { opacity: 1; }
.app .pmark { grid-row: span 2; }
.app b { font: 700 15.5px/1.25 var(--font-display); letter-spacing: -0.015em; display: flex; align-items: center; gap: 6px; }
.app-tag { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-foot { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
.app-foot .warnc { color: var(--warn); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.app-foot .warnc::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-dot); }
.stage { font: 600 11px/1 var(--font-body); padding: 4px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); letter-spacing: .01em; }
.stage-live { background: var(--human-tint); color: var(--human-text); }
.stage-beta { background: var(--info-tint); color: var(--info); }
.stage-alpha, .stage-pilot, .stage-prototype { background: var(--warn-tint); color: var(--warn); }

/* ── product header ── */
.prod-head { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-4); background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; isolation: isolate; margin-bottom: 16px; }
.prod-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--pm) 22%, transparent), transparent 70%), radial-gradient(40% 90% at 0% 100%, color-mix(in srgb, var(--pm) 10%, transparent), transparent 70%); }
.prod-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prod-head p { color: var(--ink-2); margin: 6px 0 0; max-width: 64ch; }
.prod-head .stage-note { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.prod-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 14px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
.tabs a:hover { color: var(--ink); background: var(--surface-3); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--pm, var(--act)); font-weight: 650; }
.tabs .n { font: 600 11.5px var(--font-num); color: var(--muted); background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }

/* ── filters ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters select, .filters input[type='text'] { height: 36px; padding: 0 30px 0 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; appearance: none; font-size: 14px; color: var(--ink); cursor: pointer; }
.filters input[type='text'] { background-image: none; padding-right: 11px; cursor: text; width: 150px; }
.filters .grow { flex: 1; }
.filters .clear { font-size: 13.5px; }
.fl-group { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.fl-group a { padding: 0 11px; height: 34px; display: inline-flex; align-items: center; font-size: 13.5px; color: var(--ink-2); text-decoration: none; border-right: 1px solid var(--line-soft); }
.fl-group a:last-child { border-right: 0; }
.fl-group a.on { background: var(--act-tint); color: var(--act-text); font-weight: 600; }
.fl-summary { font-size: 13.5px; color: var(--muted); margin: -4px 0 10px; }

/* ── thread list ── */
.tlist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); overflow: hidden; }
.ti { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line-soft); transition: background var(--t-fast); }
.ti:first-child { border-top: 0; }
.ti:hover { background: var(--surface-2); }
.ti-pinned { background: color-mix(in srgb, var(--act) 4%, var(--surface)); }
.ti-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; font-size: 12.5px; }
.ti-prod { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.ti-prod:hover { color: var(--ink); }
.ti-title { display: block; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15.5px; line-height: 1.4; text-wrap: pretty; }
.ti-title::after { content: ''; position: absolute; inset: 0; }
.ti-title:hover { color: var(--act-text); }
.ti-title:focus-visible { box-shadow: none; }
.ti:has(.ti-title:focus-visible) { box-shadow: inset 0 0 0 2px var(--act); }
.ti-meta, .ti-meta-top a, .ti-side a { position: relative; z-index: 1; }
.ti-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); font-size: 13px; margin-top: 4px; align-items: center; }
.ti-by { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.ti-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ti-counts { display: flex; gap: 12px; color: var(--muted); font: 500 13px var(--font-num); }
.ti-counts span { display: inline-flex; align-items: center; gap: 4px; }
.ti-counts .acc { color: var(--human-text); font-family: var(--font-body); font-weight: 600; }
.dot-unread { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--act); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px var(--act-tint); }
.flag-pin, .flag-known { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.flag-pin { color: var(--act-text); }
.flag-known { color: var(--warn); }
.loadmore { display: flex; justify-content: center; padding: 14px 0 0; }

/* ── badges ── */
.type { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.type .i { color: var(--muted); }
.type-bug .i, .type-incident .i { color: var(--danger); }
.type-idea .i { color: var(--warn); }
.type-guide .i { color: var(--human-text); }
.type-announcement .i { color: var(--act-text); }
.type-question .i { color: var(--info); }
.status, .rm, .inc { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.status i, .inc i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-new { background: var(--info-tint); color: var(--info); }
.st-analyzing { background: var(--act-tint); color: var(--act-text); }
.st-needs_info { background: var(--warn-tint); color: var(--warn); }
.st-planned { background: var(--act-tint); color: var(--act-text); }
.st-in_progress { background: var(--ai-tint); color: var(--ai-text); }
.st-resolved { background: var(--human-tint); color: var(--human-text); }
.st-closed { background: var(--surface-3); color: var(--muted); }
.rm { background: var(--act-tint); color: var(--act-text); }
.rm-launched { background: var(--human-tint); color: var(--human-text); }
.rm-in_development { background: var(--ai-tint); color: var(--ai-text); }
.rm-proposed { background: var(--surface-3); color: var(--ink-2); }
.inc-investigating { background: var(--danger-tint); color: var(--danger); }
.inc-identified, .inc-monitoring { background: var(--warn-tint); color: var(--warn); }
.inc-resolved { background: var(--human-tint); color: var(--human-text); }
.inc-investigating i { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.role-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; color: var(--act-text); background: var(--act-tint); padding: 2px 7px 2px 5px; border-radius: 6px; }
.ai-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; color: var(--ai-text); background: var(--ai-tint); padding: 2px 7px 2px 5px; border-radius: 6px; }
.demo-badge { font-size: 11px; font-weight: 700; color: var(--warn); border: 1px dashed currentColor; padding: 1px 6px; border-radius: 6px; }
.priv-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-3); padding: 3px 9px; border-radius: var(--r-pill); }

/* ── resolution track (signature) ── */
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 4px 0 0; }
.tk { position: relative; display: grid; justify-items: start; gap: 8px; padding-top: 2px; }
.tk b { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); transition: background var(--t-base), box-shadow var(--t-base); }
.tk::before { content: ''; position: absolute; left: 7px; right: -7px; top: 8px; height: 2px; background: var(--line); }
.tk:last-child::before { display: none; }
.tk.done::before { background: var(--act); }
.tk.done b { background: var(--act); box-shadow: none; }
.tk.now b { background: var(--surface); box-shadow: inset 0 0 0 4px var(--act), 0 0 0 5px var(--act-tint); }
.tk.wait b { box-shadow: inset 0 0 0 4px var(--warn-dot), 0 0 0 5px var(--warn-tint); }
.tk em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.25; padding-right: 8px; }
.tk.now em { color: var(--ink); font-weight: 650; }
.tk:last-child.now b { background: var(--human); box-shadow: 0 0 0 5px var(--human-tint); }
.track-closed .tk.now b { background: var(--faint); box-shadow: none; }
.track-compact { width: 76px; gap: 0; }
.track-compact .tk b { width: 8px; height: 8px; }
.track-compact .tk::before { top: 5px; left: 4px; right: -4px; height: 1.5px; }

/* ── thread ── */
.th-head { margin-bottom: 18px; }
.th-head h1 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin: 8px 0 10px; text-wrap: pretty; }
.th-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.th-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 13.5px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-3); margin: 0 0 16px; font-size: 14.5px; background: var(--surface-3); border: 1px solid var(--line-soft); }
.banner .i { margin-top: 2px; }
.banner p { margin: 0; }
.banner-warn { background: var(--warn-tint); border-color: transparent; }
.banner-warn .i { color: var(--warn); }
.banner-ok { background: var(--human-tint); border-color: transparent; }
.banner-ok .i { color: var(--human-text); }
.banner-ai { background: var(--ai-tint); border-color: transparent; }
.banner-ai .i { color: var(--ai-text); }
.banner-act { background: var(--act-tint); border-color: transparent; }
.banner-act .i { color: var(--act-text); }

.posts { position: relative; display: grid; gap: 14px; }
.posts::before { content: ''; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--line-soft), var(--line), var(--line-soft)); z-index: 0; }
.post { position: relative; z-index: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; scroll-margin-top: calc(var(--top-h) + 20px); }
.post-av { padding-top: 14px; }
.post-av .av { box-shadow: 0 0 0 4px var(--bg); }
.post-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); padding: 14px 18px 10px; box-shadow: var(--shadow-1); min-width: 0; transition: box-shadow var(--t-base); }
.post:target .post-card, .post.flash .post-card { box-shadow: 0 0 0 2px var(--act), var(--shadow-2); }
.post-official .post-card { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--hairline) border-box; border: 1px solid transparent; }
.post-accepted .post-card { border: 1px solid color-mix(in srgb, var(--human) 55%, transparent); box-shadow: 0 0 0 4px var(--human-tint); }
.post-ai .post-card { background: color-mix(in srgb, var(--ai) 5%, var(--surface)); border-style: dashed; border-color: color-mix(in srgb, var(--ai) 40%, transparent); }
.post-hidden .post-card { opacity: .6; border-style: dashed; }
.post-op .post-card { padding: 18px 20px 12px; }
.post-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; margin-bottom: 8px; }
.post-h .who { font-weight: 650; color: var(--ink); text-decoration: none; }
.post-h .handle { color: var(--muted); }
.post-h .perma { margin-left: auto; color: var(--muted); font: 500 12.5px var(--font-num); text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.post-h .perma:hover { color: var(--act-text); background: var(--act-tint); }
.post-h .edited { color: var(--muted); font-size: 12.5px; }
.acc-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--human-text); background: var(--human-tint); padding: 3px 8px; border-radius: 6px; }
.post-f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.post-f form { margin: 0; display: inline; }
.post-f .sp { flex: 1; }
.react { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.react:hover { background: var(--surface-3); color: var(--ink); }
.react.is-on { background: var(--act-tint); color: var(--act-text); }
.react .n { font-family: var(--font-num); }
.react .i { width: 16px; height: 16px; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more { position: relative; display: inline-block; }
.more .menu-pop { min-width: 210px; }
.daysep { display: flex; align-items: center; gap: 12px; margin: 8px 0 0 52px; color: var(--muted); font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; }
.daysep::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.daysep span { background: var(--bg); padding-right: 4px; }
.unread-sep { display: flex; align-items: center; gap: 10px; margin: 6px 0 0 52px; color: var(--act-text); font-size: 12.5px; font-weight: 700; position: relative; z-index: 1; scroll-margin-top: calc(var(--top-h) + 40px); }
.unread-sep::after { content: ''; flex: 1; height: 2px; background: var(--act); border-radius: 2px; opacity: .6; }
.ev { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-left: 10px; font-size: 13.5px; color: var(--muted); }
.ev .ev-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }
.ev .ev-dot .i { width: 12px; height: 12px; }
.ev b { color: var(--ink-2); font-weight: 600; }
.ev time { color: var(--muted); }
.quote-embed { display: block; border-left: 3px solid var(--act); background: var(--surface-3); border-radius: 0 10px 10px 0; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.quote-embed b { display: block; font-size: 12.5px; color: var(--act-text); margin-bottom: 2px; }
.quote-embed span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bugbox { display: grid; gap: 10px; margin: 6px 0 12px; }
.bugbox section { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); padding: 10px 14px; }
.bugbox h4 { font: 650 12.5px var(--font-body); color: var(--muted); margin-bottom: 4px; letter-spacing: .01em; }
.bugbox p, .bugbox pre { margin: 0; white-space: pre-wrap; font-size: 14.5px; }
.bugbox .exp { border-left: 3px solid var(--human); }
.bugbox .obs { border-left: 3px solid var(--danger-dot); }
.locked-note { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-3); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 14.5px; }

/* prose (rendered markdown) */
.prose { font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h3, .prose h4, .prose h5 { font-size: 1.05rem; margin: 1.1em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 .8em; }
.prose li { margin: .2em 0; }
.prose li.task { list-style: none; margin-left: -1.3em; }
.prose blockquote { margin: 0 0 .8em; padding: 6px 14px; border-left: 3px solid var(--line-strong); color: var(--ink-2); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose code { font: 13.5px var(--font-code); background: var(--surface-3); padding: 2px 5px; border-radius: 5px; }
.prose pre { background: #14132A; color: #E6E8FF; padding: 12px 14px; border-radius: 12px; overflow-x: auto; margin: 0 0 .9em; font-size: 13.5px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { max-height: 420px; border-radius: 10px; border: 1px solid var(--line-soft); margin: 6px 0; }
.prose a.img { display: inline-block; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 1.2em 0; }
.prose .mention { font-weight: 600; text-decoration: none; background: var(--act-tint); padding: 0 4px; border-radius: 5px; }
.prose .img-blocked { color: var(--muted); font-style: italic; }

/* exact time on tap */
.ts { display: inline-block; position: relative; }
.ts > summary { list-style: none; cursor: pointer; border-radius: 6px; color: var(--muted); text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; }
.ts > summary::-webkit-details-marker { display: none; }
.ts[open] > summary { color: var(--ink-2); }
.ts-exact { display: block; position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.4; box-shadow: var(--shadow-3); }

/* ── composer ── */
.compose { display: grid; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); padding: 18px 20px; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-h .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px var(--font-num); background: var(--act-tint); color: var(--act-text); flex: none; }
.step-h h2 { font-size: 1.05rem; }
.step-h .opt { margin-left: auto; font-size: 13px; color: var(--muted); }
.pick-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14.5px; font-weight: 550; min-height: 48px; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.pick label:hover { border-color: var(--line-strong); }
.pick input:checked + label { border-color: var(--pm, var(--act)); background: color-mix(in srgb, var(--pm, var(--act)) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pm, var(--act)) 18%, transparent); }
.pick input:focus-visible + label { box-shadow: var(--focus); }
.pick-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick-types label { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; }
.pick-types label .i { color: var(--act-text); }
.pick-types label small { font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.35; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .lbl { font-weight: 600; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--muted); margin: 0; }
.field .err-t { font-size: 13px; color: var(--danger); margin: 0; }
.inp, textarea.inp, select.inp { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.inp:hover { border-color: var(--line-strong); }
.inp:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 4px var(--act-tint); }
.inp[aria-invalid='true'] { border-color: var(--danger); }
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.55; }
select.inp { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.editor:focus-within { border-color: var(--act); box-shadow: 0 0 0 4px var(--act-tint); }
.editor-bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); flex-wrap: wrap; }
.editor-bar button { width: 34px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.editor-bar button:hover { background: var(--act-tint); color: var(--act-text); }
.editor-bar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.editor-bar .tabsw { margin-left: auto; display: inline-flex; gap: 2px; }
.editor-bar .tabsw button { width: auto; padding: 0 10px; font-size: 13px; font-weight: 600; }
.editor-bar .tabsw button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.editor textarea { border: 0; border-radius: 0; box-shadow: none !important; min-height: 160px; }
.editor .preview { padding: 12px 14px; min-height: 160px; }
.editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-soft); background: var(--surface-2); flex-wrap: wrap; }
.saved-at { display: inline-flex; align-items: center; gap: 5px; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px 0; }
.attach-list:empty { display: none; }
.att { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; }
.att img { width: 100%; height: 100%; object-fit: cover; }
.att.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: shimmer 1.1s infinite; }
.att button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.similar { border-radius: var(--r-3); border: 1px solid var(--line-soft); background: var(--surface-2); padding: 12px 14px; }
.similar h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.similar li a { display: flex; gap: 8px; align-items: baseline; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 550; }
.similar li a:hover { color: var(--act-text); }
.similar .meta { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.similar[hidden] { display: none; }
.vis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vis label { align-items: flex-start; flex-direction: column; gap: 4px; }
.vis label b { display: flex; align-items: center; gap: 8px; }
.vis label small { font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.submit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.submit-row .note { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 0; }
.cond[hidden] { display: none !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--act-fill); flex: none; }

/* ── auth ── */
.auth { max-width: 440px; margin: 32px auto; }
.auth .panel { padding: 28px; }
.auth h1 { font-size: 1.7rem; margin-bottom: 8px; }
.auth .lead { color: var(--ink-2); margin-bottom: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.code-inp { font: 700 28px/1 var(--font-num); letter-spacing: .35em; text-align: center; padding: 14px; }
.btn-block { width: 100%; }
.auth-foot { font-size: 13px; color: var(--muted); margin-top: 16px; }
.draft-kept { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--act-tint); font-size: 14px; margin-bottom: 18px; }

/* ── account ── */
.acc-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.acc-nav a { flex: none; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acc-nav a.on { color: var(--ink); border-bottom-color: var(--act); font-weight: 650; }
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); padding: 20px; margin-bottom: 16px; }
.form-card h2 { font-size: 1.1rem; margin-bottom: 4px; }
.form-card > p.muted { margin-bottom: 16px; font-size: 14px; }
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.row-list li:first-child { border-top: 0; }
.row-list .grow { flex: 1; min-width: 0; }
.row-list .sub { display: block; font-size: 13px; color: var(--muted); }
.prefs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prefs th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.prefs td { padding: 10px 6px; border-bottom: 1px solid var(--line-soft); }
.prefs td:not(:first-child), .prefs th:not(:first-child) { text-align: center; width: 90px; }
.prefs input { width: 18px; height: 18px; accent-color: var(--act-fill); }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-pick label { justify-content: center; }
.profile-h { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.profile-h h1 { font-size: 1.7rem; }
.profile-h .av { box-shadow: var(--shadow-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); padding: 14px 16px; }
.stat-v { font: 700 1.6rem/1.1 var(--font-num); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-d { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ── avatar ── */
.av { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.av-letter { display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 70% 92%); }
[data-theme='dark'] .av-letter { color: hsl(var(--h) 80% 85%); background: hsl(var(--h) 35% 26%); }
.avatar-btn .av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }

/* ── notifications ── */
.notif { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); position: relative; }
.notif:first-child { border-top: 0; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--act) 5%, var(--surface)); }
.notif.unread::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--act); }
.notif .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.notif b { font-weight: 600; font-size: 14.5px; display: block; }
.notif time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.day-h { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 18px 0 8px; }

/* ── cmd-k ── */
.cmdk { width: min(680px, calc(100vw - 24px)); max-height: min(70vh, 640px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden; }
.cmdk[open] { display: flex; flex-direction: column; animation: pop var(--t-base) var(--ease); }
.cmdk::backdrop { background: rgba(10,8,30,.42); backdrop-filter: blur(3px); }
.cmdk-form { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 60px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.cmdk-form input { flex: 1; border: 0; outline: none; background: none; font-size: 17px; color: var(--ink); height: 100%; }
.cmdk-form .kbd { cursor: pointer; }
.cmdk-body { overflow: auto; padding: 8px; }
.cmdk-list { list-style: none; margin: 0; padding: 0; }
.cmdk-list li a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.cmdk-list li a[aria-selected='true'], .cmdk-list li a:hover { background: var(--act-tint); }
.cmdk-list li a .pmark { grid-row: span 2; margin-top: 2px; }
.cmdk-list b { font-weight: 600; font-size: 14.5px; }
.cmdk-list small { color: var(--muted); font-size: 12.5px; }
.cmdk-list .snip { grid-column: 2; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cmdk-list .all { display: flex; align-items: center; gap: 8px; color: var(--act-text); font-weight: 600; font-size: 14px; }
.cmdk-apps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; }
.cmdk-apps a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border-radius: 10px; border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 550; }
.cmdk-apps a:hover { border-color: var(--pm); background: color-mix(in srgb, var(--pm) 8%, var(--surface)); }
.cmdk-keys { font-size: 12px; color: var(--muted); padding: 12px 6px 4px; margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
mark { background: color-mix(in srgb, var(--act) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ── search results ── */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.result { position: relative; padding: 14px 16px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line-soft); }
.result:hover { border-color: var(--line-strong); }
.result a.rt { font-weight: 650; font-size: 15.5px; color: var(--ink); text-decoration: none; }
.result a.rt::after { content: ''; position: absolute; inset: 0; }
.result a.rt:hover { color: var(--act-text); }
.result .rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; margin-bottom: 4px; color: var(--muted); }
.result .rsnip { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.result .why { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--human-text); }
.result-ai { border-color: color-mix(in srgb, var(--ai) 35%, transparent); background: color-mix(in srgb, var(--ai) 4%, var(--surface)); }

/* ── AI assistant ── */
.assist { border-radius: var(--r-3); padding: 16px 18px; background: color-mix(in srgb, var(--ai) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ai) 28%, transparent); }
.assist h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 4px; }
.assist h3 .i { color: var(--ai-text); }
.assist .disc { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.assist-form { display: flex; gap: 8px; }
.assist-form input { flex: 1; }
.assist-out { margin-top: 12px; font-size: 15px; }
.assist-out .cite { font: 600 12px var(--font-num); text-decoration: none; background: var(--ai-tint); color: var(--ai-text); padding: 1px 5px; border-radius: 5px; margin: 0 1px; }
.assist-src { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 13.5px; }
.assist-src a { text-decoration: none; }
.assist-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.skel { display: grid; gap: 8px; }
.skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:nth-child(2) { width: 92%; } .skel i:nth-child(3) { width: 70%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── roadmap board ── */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.col { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-3); padding: 12px; min-height: 160px; scroll-snap-align: start; }
.col h2 { font-size: .95rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.col h2 .n { font: 600 12px var(--font-num); color: var(--muted); }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card-idea { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.card-idea a.ct { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.card-idea a.ct:hover { color: var(--act-text); }
.card-idea .cm { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.votebox { display: grid; justify-items: center; align-content: start; min-width: 40px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 700 13px var(--font-num); cursor: pointer; padding: 4px 0; }
.votebox .i { width: 16px; height: 16px; }
.votebox:hover { border-color: var(--act); color: var(--act-text); }
.votebox.is-on { background: var(--act-fill); border-color: var(--act-fill); color: var(--act-ink); }
.eta { font-size: 12px; color: var(--muted); font-style: italic; }

/* ── status page ── */
.st-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.st-row:first-child { border-top: 0; }
.st-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--human-text); font-weight: 600; }
.st-ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--human); }
.st-bad { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warn); font-weight: 600; }
.st-bad::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn-dot); }
.st-crit { color: var(--danger); } .st-crit::before { background: var(--danger-dot); }

/* ── admin ── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.qcard { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.qcard:hover { border-color: var(--act); }
.qcard .stat-v { font-size: 1.9rem; }
.qcard.hot .stat-v { color: var(--warn); }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-3); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { font-weight: 600; text-decoration: none; }
.tbl .num { text-align: right; }
.staff-box { border: 1px solid color-mix(in srgb, var(--act) 30%, transparent); background: color-mix(in srgb, var(--act) 4%, var(--surface)); border-radius: var(--r-3); padding: 14px; }
.staff-box h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--act-text); }
.staff-box form { display: grid; gap: 8px; margin: 0 0 12px; }
.staff-box form:last-child { margin-bottom: 0; }
.staff-box .inp { padding: 8px 10px; font-size: 14px; }
.staff-box .row2 { display: flex; gap: 6px; }
.staff-box .row2 > * { flex: 1; }
.note-item { font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); }
.note-item small { color: var(--muted); display: block; margin-top: 2px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--act); border-radius: 4px; }

/* ── ticket ── */
.tk-msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin-bottom: 14px; }
.tk-msg .post-card { padding: 12px 16px; }
.tk-internal .post-card { background: var(--warn-tint); border: 1px dashed color-mix(in srgb, var(--warn) 50%, transparent); }

/* ── flash, toasts ── */
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-2); margin-bottom: 16px; font-size: 14.5px; animation: pop var(--t-base) var(--ease); }
.flash span { flex: 1; }
.flash-ok { background: var(--human-tint); color: var(--ink); }
.flash-ok .i { color: var(--human-text); }
.flash-err { background: var(--danger-tint); color: var(--ink); }
.flash-err .i { color: var(--danger); }
.flash-x { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14.5px; box-shadow: var(--shadow-3); animation: pop var(--t-base) var(--ease); }
.toast.err { background: var(--danger); color: #fff; }

/* ── empty ── */
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--r-3); background: var(--surface-2); }
.empty-orb { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--act-tint); color: var(--act-text); margin-bottom: 12px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 8px; font-size: 14.5px; }
.empty-act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* ── footer & tabbar ── */
.foot { border-top: 1px solid var(--line-soft); margin-top: 24px; }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 24px 20px 32px; display: grid; grid-template-columns: 1fr auto auto; gap: 24px; font-size: 13.5px; color: var(--muted); align-items: start; }
.foot-in p { margin: 8px 0 0; max-width: 60ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--act-text); }
.foot-v { font-family: var(--font-num); }
.tabbar { display: none; }
.only-m { display: none; }

/* vertical track (aside) */
.track-v { grid-template-columns: 1fr; gap: 0; }
.track-v .tk { grid-template-columns: 14px 1fr; align-items: center; column-gap: 12px; padding: 0 0 14px; }
.track-v .tk::before { left: 6px; right: auto; top: 14px; bottom: 0; width: 2px; height: auto; }
.track-v .tk em { font-size: 14px; padding: 0; }
.track-v .tk:last-child { padding-bottom: 0; }
.fl-details > summary { display: none; list-style: none; }
.fl-details > summary::-webkit-details-marker { display: none; }
.only-m-b, .only-m-i { display: none; }

/* hero: live panel */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.now { position: relative; border-radius: var(--r-3); background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); padding: 14px; backdrop-filter: blur(6px); }
.now h2 { font-size: .95rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.now h2 small { font: 500 12px var(--font-body); color: var(--muted); }
.now ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.now li a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.now li a:hover { background: var(--act-tint); }
.now li a .pmark { grid-row: span 2; margin-top: 2px; }
.now li b { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now li small { font-size: 12px; color: var(--muted); }
.now-sep { height: 1px; background: var(--line-soft); margin: 8px 0; }
.now .ok-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--human-text); font-weight: 600; padding: 6px 8px; }
.now .ok-line::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--human); box-shadow: 0 0 0 4px var(--human-tint); }

/* ── responsive ── */
@media (max-width: 1280px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (max-width: 1180px) {
  .shell.has-aside { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .shell.has-aside .aside { grid-column: 2; position: static; max-height: none; padding-top: 0; }
  .qa { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --top-h: 58px; }
  .shell, .shell.has-aside { grid-template-columns: minmax(0, 1fr); padding: 0 14px; }
  .shell.has-aside .aside { grid-column: 1; }
  .rail { display: none; }
  .brand { width: auto; }
  .brand-t { font-size: 1rem; }
  .top-in { gap: 10px; padding: 0 12px 0 14px; }
  .top-search { display: none; }
  .hide-m { display: none !important; }
  .only-m { display: inline-grid; }
  .main { padding: 16px 0 calc(var(--tab-h) + 40px); }
  .foot { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .foot-in { grid-template-columns: 1fr; }
  .only-m-b { display: block; } .only-m-i { display: inline; }
  .fl-details > summary { display: inline-flex; margin-bottom: 8px; }
  .fl-details { margin-bottom: 12px; }
  .filters select, .filters input[type='text'] { flex: 1 1 140px; }
  .prod-head { gap: 12px; align-items: start; }
  .prod-head .pmark { width: 44px !important; height: 44px !important; }
  .prod-head p.only-m-b { font-size: 14.5px; }
  .prod-head .stage-note { font-size: 12.5px; }
  .prod-act .btn { flex: 1; height: 40px; font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .envbar { font-size: 12px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar a.on { color: var(--act-text); }
  .tabbar .count { top: 6px; right: calc(50% - 22px); }
  .tab-plus { display: grid; place-items: center; width: 40px; height: 30px; border-radius: 10px; background: var(--act-fill); color: var(--act-ink); }
  .tab-post { color: var(--ink) !important; }
  .hero { padding: 26px 18px 22px; border-radius: var(--r-3); }
  .hero-search { height: 52px; }
  .path { grid-template-columns: 1fr; gap: 12px; }
  .qa { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qa a { padding: 12px; }
  .prod-head { grid-template-columns: auto 1fr; padding: 16px; }
  .prod-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .ti { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; }
  .ti-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .pick-types { grid-template-columns: 1fr 1fr; }
  .vis, .grid2 { grid-template-columns: 1fr; }
  .posts::before { left: 15px; }
  .post { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .post-card { padding: 12px 14px 8px; }
  .daysep, .unread-sep { margin-left: 40px; }
  .board { grid-template-columns: repeat(5, 82%); }
  .step { padding: 16px; }
  .auth { margin: 12px auto; }
  .auth .panel { padding: 20px; }
  .toasts { bottom: calc(var(--tab-h) + 16px); }
  .ts-exact { position: static; margin-top: 6px; }
  .cmdk { margin-top: 8px; max-height: 80vh; }
}
@media (max-width: 420px) { .qa { grid-template-columns: 1fr; } .apps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .status, .rm, .inc, .btn, .chip { border: 1px solid CanvasText; } }
@media print { .top, .rail, .aside, .tabbar, .foot, .post-f, .envbar { display: none !important; } .shell { display: block; } }
