:root {
  color-scheme: light dark;
  --bg: #f6f6fb; --surface: #ffffff; --surface-2: #f0f0f7; --line: #e3e3ee; --fg: #14141f; --muted: #6b6b80;
  --accent: #5b4cf5; --accent-2: #8b5cf6; --accent-fg: #fff; --ok: #12915b; --err: #c4302b;
  --shadow: 0 1px 2px rgba(20,20,40,.06), 0 12px 32px -8px rgba(20,20,60,.14);
  --daily: #6366f1; --r: 20px;
}
/* Dark mode: follows the system unless the toggle set data-theme on <html> (see theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d0d14; --surface: #16161f; --surface-2: #1e1e2a; --line: #2a2a3a; --fg: #f1f1f8; --muted: #9696ab;
    --accent: #8b7bff; --accent-2: #b794ff; --accent-fg: #0c0a1f; --ok: #4ade80; --err: #ff8a85;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -10px rgba(0,0,0,.6); }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #0d0d14; --surface: #16161f; --surface-2: #1e1e2a; --line: #2a2a3a; --fg: #f1f1f8; --muted: #9696ab;
    --accent: #8b7bff; --accent-2: #b794ff; --accent-fg: #0c0a1f; --ok: #4ade80; --err: #ff8a85;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -10px rgba(0,0,0,.6); }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg); font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.glow { position: fixed; inset: -20% -10% auto; height: 60vh; pointer-events: none; z-index: 0; opacity: .35;
  background: radial-gradient(60% 60% at 50% 0%, var(--daily), transparent 70%); transition: background .6s; filter: blur(30px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow { opacity: .28; } }
:root[data-theme="dark"] .glow { opacity: .28; }
.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
h2 { font-size: 1.15rem; margin: 0 0 12px; letter-spacing: -.01em; }
button, input, a.btn { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0 14px; }
.logo { display: flex; align-items: center; gap: 0; text-decoration: none; color: inherit; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.logo i { width: 14px; height: 14px; border-radius: 50%; margin-right: -5px; mix-blend-mode: multiply; }
.logo i:nth-child(1) { background: #ef476f; } .logo i:nth-child(2) { background: #ffd166; } .logo i:nth-child(3) { background: #118ab2; margin-right: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo i { mix-blend-mode: screen; } }
:root[data-theme="dark"] .logo i { mix-blend-mode: screen; }

.account { position: relative; }
.chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: inherit; box-shadow: var(--shadow); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.chip small { color: var(--muted); font-weight: 600; }
.chip .bar-xp { width: 38px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.chip .bar-xp i { display: block; height: 100%; background: var(--accent); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-width: 210px; box-shadow: var(--shadow); z-index: 5; }
.menu p { margin: 4px 8px 8px; font-size: .8rem; color: var(--muted); word-break: break-all; }
.menu button { width: 100%; text-align: left; }

.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.seg button { border: 0; background: none; padding: 9px 2px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: clamp(.74rem, 3.3vw, .9rem); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.eyebrow, .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0; }
.muted { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.hexbig { font: 800 clamp(2.4rem, 13vw, 3.4rem)/1.05 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.04em; margin: 6px 0 4px; }
.lead { margin: 0 0 16px; color: var(--muted); }
.lead strong { color: var(--fg); }

.banner { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: .92rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 14px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .1s, filter .2s; color: inherit; background: none; }
.btn:active { transform: scale(.98); }
.btn.wide { width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-fg); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary:disabled { opacity: .55; cursor: default; }
.btn.ghost { border-color: var(--line); background: var(--surface-2); }
.btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn.small { padding: 6px 12px; border-radius: 10px; font-size: .88rem; }
.row { display: flex; gap: 8px; align-items: stretch; }
input:not([type=range]) { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--fg); margin: 6px 0 8px; }
.row input { margin: 0; }
.error { color: var(--err); min-height: 1.3em; margin: 0 0 8px; font-size: .88rem; }

/* result */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; height: 150px; position: relative; border: 1px solid var(--line); }
.versus > div { display: flex; align-items: flex-end; padding: 10px 12px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.versus .tgt { background: var(--target); } .versus .gss { background: var(--guess-c); justify-content: flex-end; }
.anim .versus .tgt { animation: slideL .7s cubic-bezier(.2,.8,.2,1) both; }
.anim .versus .gss { animation: slideR .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slideL { from { transform: translateX(40%); opacity: 0; } }
@keyframes slideR { from { transform: translateX(-40%); opacity: 0; } }
.score-row { display: flex; align-items: center; gap: 18px; margin: 18px 0 6px; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .bg { stroke: var(--surface-2); } .ring .fg { stroke: var(--accent); transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.tier { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #fff; background: var(--tier, #6b7280); }
.big { font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.stats { color: var(--muted); font-size: .9rem; }
.badges { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.badges li { display: flex; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.badges li b { color: var(--accent); white-space: nowrap; }
.anim .badges li { animation: pop .4s both; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.xp { font-weight: 800; color: var(--accent); margin: 8px 0; }
.next { text-align: center; color: var(--muted); font-size: .85rem; margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.actions { display: grid; gap: 8px; margin-top: 12px; }

/* boards */
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: r; }
.board li { counter-increment: r; display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.board li::before { content: counter(r); width: 22px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.board li:nth-child(1)::before { color: #f5a524; }
.board .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board .who small { color: var(--muted); font-weight: 500; }
.board .pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.board li.empty::before { content: none; }
.codebox { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
code { font: 800 1.3rem ui-monospace, Menlo, monospace; letter-spacing: .08em; }

/* dialogs + toast */
dialog { border: 0; padding: 0; border-radius: 22px; background: var(--surface); color: var(--fg); width: min(380px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(10,10,20,.55); backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .25s cubic-bezier(.2,.8,.2,1); }
@keyframes dlg { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.dlg { padding: 24px; position: relative; }
.x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; line-height: 1; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 16px 0 6px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: .3s; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { margin-top: 22px; font-size: .75rem; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--line); }
#stage-result h2 { margin-top: 20px; font-size: .95rem; }

/* ready screen */
.ready h2 { margin-top: 6px; }
.hexbig.masked { color: transparent; background: linear-gradient(100deg, var(--line) 30%, var(--surface-2) 50%, var(--line) 70%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 2.4s linear infinite; user-select: none; }
@keyframes shimmer { to { background-position: -120% 0; } }
.how { margin: 0 0 18px; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.how b { color: var(--fg); }
.btn.big { padding: 16px 20px; font-size: 1.15rem; border-radius: 16px; }

/* staged results */
.step { padding: 14px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step h3 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.step.show { animation: stepin .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(14px); } }
.rollswatch { height: 110px; border-radius: 16px; border: 1px solid var(--line); background: var(--roll); display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.55); font-weight: 800; }
.rollswatch small { font-weight: 600; opacity: .95; }
.step .badges li { opacity: 0; }
.step.show .badges li { animation: pop .4s both; }
.sumrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.sumrow .num { font: 800 1.5rem ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }
.total { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.skip { position: absolute; top: 14px; right: 16px; }
#stage-result { position: relative; }
.missed { padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--err) 12%, var(--surface)); color: var(--err); font-weight: 600; }
#ready-note { margin-top: 12px; margin-bottom: 0; }

/* the round: full-screen HSB picker, dialed.gg style. --guess and --ink are set from app.js. */
html.dialing, html.dialing body { overflow: hidden; }
.dial { position: fixed; inset: 0; z-index: 30; color: var(--ink, #fff); --cp: clamp(16px, 4vw, 30px); --sx: 120px; user-select: none; -webkit-user-select: none; }
.dial-bg { position: absolute; inset: 0; background: var(--guess, #888); transition: background 80ms; }
.strips { position: absolute; top: 0; left: 0; bottom: 0; width: var(--sx); display: flex; z-index: 5; animation: stripsIn .55s 50ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes stripsIn { from { transform: translateX(-100%); opacity: 0; } }
.strip { flex: 1; position: relative; cursor: pointer; touch-action: none; border-right: 1px solid rgba(0,0,0,.08); contain: layout paint style; }
.strip:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.handle { position: absolute; left: 50%; width: 25px; height: 25px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.2); pointer-events: none; cursor: grab; }
.dial-small { font-size: 12px; font-weight: 500; line-height: 19px; letter-spacing: -.24px; }
.faint { opacity: .55; }
.dial-timer { position: absolute; top: var(--cp); right: var(--cp); z-index: 6; font-size: min(92px, 18vw); font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right; }
.dial-timer .dec { opacity: .52; }
.dial-timer-label { position: absolute; right: var(--cp); top: calc(var(--cp) + min(92px, 18vw) + 2px); z-index: 6; opacity: .6; }
.dial.urgent .dial-timer { animation: beat .5s ease-in-out infinite alternate; transform-origin: right top; }
@keyframes beat { to { transform: scale(1.06); } }
.dial-target { position: absolute; left: calc(var(--sx) + var(--cp)); right: var(--cp); top: 42%; transform: translateY(-50%); z-index: 6; }
.dial-hex { font: 800 clamp(2rem, 11vw, 4.2rem)/1.05 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.04em; margin: 2px 0 4px; }
.dial-channel { position: absolute; left: calc(var(--sx) + var(--cp)); bottom: var(--cp); z-index: 10; font-size: 12px; font-weight: 500; letter-spacing: 1.92px; text-transform: uppercase; opacity: 0; transition: opacity .15s; pointer-events: none; }
.dial-channel.on { opacity: .7; }
.dial-info { position: absolute; left: calc(var(--sx) + var(--cp)); bottom: calc(var(--cp) + 30px); z-index: 5; font-variant-numeric: tabular-nums; }
.dial-go { position: absolute; right: var(--cp); bottom: var(--cp); z-index: 6; width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: #000; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform .15s; animation: pop .3s .35s both; }
.dial-go:active { transform: scale(.97); }
.dial-go:disabled { opacity: .6; }
.dial-go svg { width: 26px; height: 26px; }
@media (max-width: 380px) { .dial { --sx: 108px; } }

/* "rolls that pay out" strip on the ready card */
.finds { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.finds-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.find { flex: none; display: flex; flex-direction: column; gap: 2px; min-width: 104px; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 8px; background: var(--surface-2); color: inherit; cursor: pointer; font: inherit; }
.find i { display: block; height: 30px; border-radius: 8px; margin-bottom: 4px; background: var(--c); border: 1px solid rgba(0,0,0,.08); }
.find b { font: 700 .82rem ui-monospace, Menlo, monospace; }
.find span { font-size: .74rem; color: var(--muted); }
.find em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--accent); }

/* rarity chips (badges and rolls share the tier colors) */
.rar { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--tier, #7b8190); vertical-align: 1px; white-space: nowrap; }
.badges li > span { min-width: 0; }
.pct { margin: 6px 0 0; text-align: right; }

/* badges tab */
#tab-badges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lab-row { display: grid; grid-template-columns: 1fr 52px auto; gap: 8px; margin-bottom: 12px; }
.lab-row input { margin: 0; }
.lab-row input[type=color] { width: 52px; height: 100%; min-height: 46px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
#lab-hex { font: 700 1.05rem ui-monospace, Menlo, monospace; text-transform: lowercase; }
.lab .rollswatch { transition: background .15s; }
.lab-badges li { opacity: 1; animation: pop .25s both; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bcard { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--surface-2); color: inherit; font: inherit; cursor: pointer; position: relative; transition: transform .12s, border-color .2s; }
.bcard:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.bcard:active { transform: scale(.98); }
.bcard:disabled { cursor: default; }
.bcard .sw { height: 38px; border-radius: 9px; background: var(--c, var(--line)); border: 1px solid rgba(0,0,0,.08); display: flex; align-items: flex-end; padding: 3px 7px; font: 700 .72rem ui-monospace, Menlo, monospace; color: var(--c-ink, #fff); }
.bcard .sw.none { background: repeating-linear-gradient(45deg, var(--line) 0 6px, transparent 6px 12px); }
.bcard strong { font-size: .88rem; line-height: 1.25; }
.bcard p { margin: 0; font-size: .76rem; color: var(--muted); line-height: 1.35; }
.bcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: .74rem; }
.bcard .meta b { color: var(--accent); }
.bcard .meta .rar { margin: 0; }
.bcard .got { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 800; background: var(--surface); border-radius: 999px; padding: 1px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.bcard.locked .sw { filter: saturate(.35) opacity(.75); }

/* slot-machine reveal before the clock starts */
.dial-hex .slot { display: inline-block; min-width: .6em; text-align: center; opacity: .35; }
.dial-hex .slot.landed { opacity: 1; animation: land .32s cubic-bezier(.2,1.6,.4,1); }
@keyframes land { from { transform: translateY(-38%) scale(1.25); } }
.dial.revealing .strips { pointer-events: none; opacity: .3; filter: saturate(.4); transition: opacity .3s; }
.dial .strips { transition: opacity .3s, filter .3s; }
.dial.revealing .dial-go { visibility: hidden; }
.dial.revealing .dial-timer .dec, .dial.revealing .dial-timer { opacity: .55; }

/* header: theme toggle next to the account chip */
.bar-right { display: flex; align-items: center; gap: 8px; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }

/* result: badges land one after the other (app.js adds .in); totals wait until the last one */
.step .badges.seqd li { opacity: 0; }
.step.show .badges.seqd li:not(.in) { animation: none; opacity: 0; }
.step .badges.seqd li.in { opacity: 1; animation: pop .32s cubic-bezier(.2,1.4,.4,1) both; }
.step .badges.seqd li.rare.in { animation: rarepop .6s cubic-bezier(.2,1.5,.4,1) both; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent), 0 6px 22px -6px color-mix(in srgb, var(--accent) 70%, transparent); font-weight: 600; }
@keyframes rarepop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } to { transform: none; } }
.badges .none { color: var(--muted); justify-content: center; }
.later { visibility: hidden; opacity: 0; }
.sumrow, .pct { transition: opacity .35s; }

/* badges tab: search + family filter */
.bfilter { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.bfilter input[type=search] { margin: 0; flex: 1; }
.mine { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); white-space: nowrap; cursor: pointer; }
.mine input { width: auto; margin: 0; }
.fams { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.fam { flex: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 5px 11px; font: 600 .8rem/1.2 inherit; cursor: pointer; white-space: nowrap; }
.fam[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.more { margin-top: 10px; }
