/* Tokens — light default, dark via prefers-color-scheme */
:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --card: #ffffff;
  --surface: #f4f4f5;
  --hover: #f4f4f5;
  --text: #18181b;
  --muted: #52525b;
  --subtle: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #ff4500;
  --accent-ink: #d93900;       /* button fill: white text 4.6:1 */
  --accent-ink-hover: #b32f00;
  --accent-text: #c23400;      /* orange text on light bg, AA */
  --accent-soft: #fff1eb;
  --accent-border: #ffd0bd;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --glow: 0 0 0 4px rgba(255,69,0,.10), 0 8px 24px rgba(255,69,0,.10);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --col: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --card: #141518;
    --surface: #1b1d21;
    --hover: #1b1d21;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --subtle: #8b8b94;
    --border: #26282d;
    --border-strong: #34363c;
    --accent-text: #ff7a45;
    --accent-soft: #2a160d;
    --accent-border: #5a2a14;
    --focus: #7aa7ff;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    --glow: 0 0 0 4px rgba(255,69,0,.16), 0 8px 24px rgba(255,69,0,.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: var(--radius-sm); z-index: 30; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, .meta, .count { font-variant-numeric: tabular-nums; }
.hint { font-size: 14px; color: var(--muted); }
.accent { color: var(--accent-text); }

/* Buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--hover); }
.btn .arrow { width: 16px; height: 16px; }
.btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin 700ms linear infinite; }
.btn[aria-busy="true"] .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--border); }
.nav-inner { height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 28px; height: 28px; flex: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { appearance: none; background: none; border: 0; padding: 0 4px; min-height: 44px; font: 500 14px var(--font); color: var(--muted); cursor: pointer; text-decoration: none; }
.nav-link:hover { color: var(--text); }

.login-panel { position: absolute; right: 24px; top: 64px; width: min(360px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.login-form { display: flex; flex-direction: column; gap: 8px; }
.login-form input { height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: 16px var(--font); padding: 0 12px; }

/* Hero + search */
.hero { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 48px 16px 96px; }
.hero-title { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
.grad { background: linear-gradient(90deg, #ff4500 0%, #ff7a1a 55%, #ff9e3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 42ch; }
.search { position: relative; margin-top: 12px; width: 100%; max-width: 560px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: var(--card); border: 1px solid var(--accent-border); border-radius: 999px; box-shadow: var(--glow); }
.search:focus-within { border-color: var(--accent); }
.search-icon { width: 18px; height: 18px; color: var(--subtle); flex: none; }
.prefix { font: 500 15px var(--mono); color: var(--muted); user-select: none; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: 500 16px var(--font); padding: 0; }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--subtle); }

/* Results mode */
body.has-results .landing { display: none; }
body.has-results .hero { min-height: 0; padding: 32px 16px 8px; }
body.has-results .hero-title, body.has-results .hero-sub { display: none; }
.banner { max-width: var(--col); margin: 8px auto; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); font-size: 14px; }
.banner.error { border-color: var(--accent-border); background: var(--accent-soft); }
.workspace { max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 16px 16px 64px; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.result-title { min-width: 0; }
.result-title h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.result-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.source { font-size: 12px; color: var(--subtle); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; }
.seg button { appearance: none; min-height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--text); background: var(--hover); }
.seg button[aria-selected="true"] { background: var(--accent-ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip, .chip-more { appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: 500 13px var(--font); cursor: pointer; }
.chip:hover, .chip-more:hover { border-color: var(--border-strong); background: var(--hover); }
.chip em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.chip-more { color: var(--accent-text); }
.progress { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.list { display: flex; flex-direction: column; gap: 16px; }

/* Groups */
.sub-group { scroll-margin-top: 76px; }
.sub-group > summary, .thread > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sub-group > summary::-webkit-details-marker, .thread > summary::-webkit-details-marker { display: none; }
.sub-group > summary { padding: 4px 0 10px; font-size: 15px; font-weight: 700; }
.sub-group > summary::before, .thread > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(-45deg); transition: transform 120ms ease; flex: none; margin: 0 4px; }
.sub-group[open] > summary::before, .thread[open] > summary::before { transform: rotate(45deg); }
.sub-group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count-pill { flex: none; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-variant-numeric: tabular-nums; }
.sub-group-body, .thread-body { display: flex; flex-direction: column; gap: 8px; }
.thread { border-left: 2px solid var(--border); padding-left: 12px; }
.thread > summary { padding: 4px 0 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.thread-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: inherit; min-width: 0; transition: background-color 120ms ease, border-color 120ms ease; }
.card:hover { background: var(--hover); border-color: var(--border-strong); }
.card:hover .card-title { color: var(--accent-text); }
.byline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--subtle); min-width: 0; flex-wrap: wrap; }
.sub-chip { font-weight: 600; font-size: 12px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-border); padding: 1px 8px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { color: var(--border-strong); }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; transition: color 120ms ease; }
.media { width: 100%; max-height: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface); }
.snippet { font-size: 14px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; }
.removed-tag, .nsfw-tag { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--surface); color: var(--muted); }
.nsfw-tag { color: #be123c; }
.action-row { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.action-row .icon { width: 14px; height: 14px; vertical-align: -2px; }
.vote { color: var(--accent-text); font-weight: 600; }
.view-link { margin-left: auto; color: var(--subtle); font-size: 12px; }
.card:hover .view-link { color: var(--accent-text); }

.skeleton { height: 112px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--card), var(--surface), var(--card)); background-size: 200% 100%; border: 1px solid var(--border); animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.empty h3 { font-size: 17px; color: var(--text); }

/* Paywall (inline) */
.list.is-limited { position: relative; }
.list.is-limited .fade-last { position: relative; max-height: 150px; overflow: hidden; pointer-events: none; }
.list.is-limited .fade-last::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--bg) 92%); }
.paywall { text-align: center; padding: 8px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.paywall-rule { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.paywall-rule::before, .paywall-rule::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pill-mono { font: 500 11px var(--mono); letter-spacing: .08em; color: var(--muted); border: 1px solid var(--border-strong); padding: 3px 10px; border-radius: 999px; background: var(--card); font-variant-numeric: tabular-nums; }
.paywall h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.paywall p { color: var(--muted); font-size: 15px; max-width: 40ch; }
.paywall-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.paywall .small { font-size: 13px; }
.linkish { appearance: none; background: none; border: 0; padding: 0; font: 600 13px var(--font); color: var(--text); text-decoration: underline; cursor: pointer; min-height: 24px; }

.pager { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0; }
#sentinel { height: 1px; width: 100%; }
.scroll-spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin 700ms linear infinite; }

/* Landing */
.landing { max-width: 880px; margin: 0 auto; padding: 0 16px 96px; display: flex; flex-direction: column; gap: 96px; }
.landing h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; text-align: center; }
.how { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.how p { color: var(--muted); }
.pricing { scroll-margin-top: 80px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 720px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan-pro { border-color: var(--accent); box-shadow: var(--glow); }
.plan h3 { font-size: 16px; font-weight: 700; }
.badge { position: absolute; top: -11px; left: 28px; font: 500 11px var(--mono); letter-spacing: .08em; background: var(--accent-ink); color: #fff; padding: 3px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price .num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 9px; height: 5px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.packs { font-size: 14px; color: var(--muted); text-align: center; }
.packs .num { color: var(--text); font-weight: 600; }
.faq { max-width: 680px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq h2 { margin-bottom: 16px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--subtle); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Legal + simple pages */
.legal, .notfound { max-width: 720px; margin: 0 auto; padding: 64px 20px 96px; }
.legal h1, .notfound h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.legal .updated { color: var(--subtle); font-size: 14px; margin: 8px 0 40px; }
.legal h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; color: var(--text); }
.legal h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.legal p, .legal ul { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal li strong { color: var(--text); }
.legal a:not(.btn) { color: var(--accent-text); }
.legal .see-also { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Footer */
.foot { border-top: 1px solid var(--border); background: var(--bg); padding: 48px 24px calc(24px + env(safe-area-inset-bottom)); }
.foot-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.foot-brand p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 26ch; }
.foot-grid nav { display: flex; flex-direction: column; gap: 4px; }
.foot-grid h2 { font: 600 11px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 8px; }
.foot-grid nav a { font-size: 14px; color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.foot-grid nav a:hover, .foot-mini a:hover { color: var(--text); text-decoration: underline; }
.foot-bar { max-width: 1040px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--subtle); }
.foot-mini { display: flex; gap: 8px; align-items: center; }
.foot-mini a { color: var(--subtle); text-decoration: none; }

@media (max-width: 720px) {
  .nav-inner { padding: 0 16px; }
  .login-panel { right: 16px; }
  .hero { min-height: calc(100dvh - 60px - 80px); }
  .search { padding-left: 12px; }
  .search .btn span:not(.btn-spinner) { display: none; }
  .search .btn { width: 44px; padding: 0; }
  .plans { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .landing { gap: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.admin-badge { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent-ink); padding: 2px 8px; border-radius: 999px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 8px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-form .opt { font-weight: 400; color: var(--subtle); }
.contact-form input, .contact-form textarea { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: 16px var(--font); padding: 10px 12px; }
.contact-form input { height: 44px; }
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: #d93025; }
.contact-form .btn { align-self: flex-start; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; margin: 0; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #d93025; }
@media (prefers-color-scheme: dark) { .form-status.ok { color: #3fb950; } .form-status.err, .contact-form [aria-invalid="true"] { color: #ff7b72; } }

/* Google sign-in */
.login-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 0; }
.login-sub { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border-color: #dadce0; gap: 12px; }
.btn-google:hover { background: #f8f9fa; }
.btn-google .g-logo { width: 18px; height: 18px; flex: none; }
@media (prefers-color-scheme: dark) { .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; } .btn-google:hover { background: #1e1f20; } }

/* Signed-in header: credits pill + avatar menu */
.brand { min-width: 0; flex: 0 1 auto; }
.nav-right { min-width: 0; flex: 0 0 auto; }
.nav-right [hidden] { display: none !important; }
.credits-pill { appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent-text); font: 600 13px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; }
.credits-pill svg { width: 14px; height: 14px; flex: none; }
.credits-pill:hover { border-color: var(--accent); }
.credits-pill.is-admin { cursor: default; }
.account-menu { position: relative; display: flex; }
.avatar { appearance: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--text); color: var(--card); font: 700 14px var(--font); cursor: pointer; display: grid; place-items: center; padding: 0; }
.avatar:focus-visible, .credits-pill:focus-visible, .menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: min(260px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; z-index: 30; }
.account-dropdown-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.account-email { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-email > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.menu-item { appearance: none; display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px; min-height: 40px; font: 500 14px var(--font); color: var(--text); cursor: pointer; }
.menu-item:hover { background: var(--accent-soft); }
.admin-badge { flex: none; }
@media (max-width: 430px) {
  .nav-inner { gap: 10px; }
  .nav-right { gap: 8px; }
  .credits-pill { height: 32px; padding: 0 10px 0 8px; font-size: 12px; }
  .avatar { width: 32px; height: 32px; }
}
