:root{
  --bg:#F6F3EE; --surface:#FFFFFF; --surface2:#EEE9E1; --text:#1F2421; --muted:#5E675F;
  --primary:#3F7D6B; --primary-ink:#FFFFFF; --accent:#C8794A; --border:#E0DACF; --danger:#B3402F;
  --shadow:0 1px 2px rgba(31,36,33,.06),0 4px 16px rgba(31,36,33,.06);
  --r:18px; --tap:48px;
}
/* Dark: iOS system palette (black base, elevated gray cells) */
[data-theme=dark]{
  --bg:#000000; --surface:#1C1C1E; --surface2:#2C2C2E; --text:#FFFFFF; --muted:#9A9AA1;
  --primary:#66D4CF; --primary-ink:#00201F; --accent:#FF9F0A; --border:#38383A; --danger:#FF453A;
  --shadow:none; --toast-bg:#3A3A3C;
}
[data-theme=dark] .card,[data-theme=dark] .row,[data-theme=dark] .skeleton{border-color:transparent}
[data-theme=dark] .field input{border-color:#38383A}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Heebo",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:16px;line-height:1.45}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.app{max-width:720px;margin:0 auto;min-height:100%;display:flex;flex-direction:column}

/* header */
header{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--border);padding:calc(env(safe-area-inset-top) + 8px) 12px 8px;display:flex;align-items:center;gap:8px}
.icon-btn{width:var(--tap);height:var(--tap);border-radius:50%;display:grid;place-items:center;flex:none}
.icon-btn:active{background:var(--surface2)}
.icon-btn svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.brand{line-height:1.15}
.brand b{font-size:20px;letter-spacing:-.2px;display:block}
.brand span{font-size:12.5px;color:var(--muted)}

/* banners */
.banner{margin:10px 16px 0;padding:10px 14px;border-radius:12px;font-size:14px;display:flex;gap:8px;align-items:center}
.banner.offline{background:#F5E3C8;color:#5A3B0B}
[data-theme=dark] .banner.offline{background:rgba(255,159,10,.16);color:#FFB340}
.banner.install{background:var(--surface2);color:var(--text)}
.banner.install .grow{flex:1;display:flex;flex-direction:column;gap:2px}
.banner.install small{color:var(--muted);font-size:13px}
.banner.install .btn{height:40px;padding:0 14px;font-size:14px}
.banner.install .x{width:32px;height:32px;color:var(--muted)}
.banner.sample{background:var(--surface2);color:var(--muted);font-size:13px}
.banner.sample b{color:var(--accent)}

main{flex:1;padding:12px 16px 96px}
h2{font-size:22px;margin:8px 0 12px}

/* cards */
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;margin-bottom:16px;border:1px solid var(--border)}
.thumb{position:relative;aspect-ratio:16/9;width:100%;display:block;border-radius:0;overflow:hidden}
.thumb .play{position:absolute;inset:0;display:grid;place-items:center}
.thumb .play i{width:56px;height:56px;border-radius:50%;background:rgba(0,0,0,.45);display:grid;place-items:center;backdrop-filter:blur(4px)}
.thumb .play svg{width:26px;height:26px;fill:#fff;margin-inline-start:3px}
.thumb .dur{position:absolute;bottom:8px;inset-inline-end:8px;background:rgba(0,0,0,.7);color:#fff;font-size:12px;padding:2px 7px;border-radius:6px;direction:ltr}
.meta{padding:12px 14px 6px}
.meta h3{margin:0 0 4px;font-size:17px;line-height:1.3}
.meta p{margin:0;color:var(--muted);font-size:14px}
.actions{display:flex;gap:4px;padding:2px 8px 8px}
.act{display:flex;align-items:center;gap:6px;height:44px;padding:0 12px;border-radius:12px;font-size:14px;color:var(--muted)}
.act:active{background:var(--surface2)}
.act svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.act.on{color:var(--accent)} .act.on svg{fill:var(--accent)}

/* generic */
.btn{height:var(--tap);padding:0 20px;border-radius:14px;background:var(--primary);color:var(--primary-ink);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.ghost{background:var(--surface2);color:var(--text)}
.btn.danger{background:transparent;color:var(--danger)}
.btn[disabled]{opacity:.5}
.field{display:flex;gap:8px;margin-bottom:8px}
.field input{flex:1;height:var(--tap);border-radius:14px;border:1.5px solid var(--border);background:var(--surface);color:var(--text);padding:0 14px;font:inherit;min-width:0;direction:ltr;text-align:start}
.field input::placeholder{color:var(--muted)}
.msg{font-size:14px;margin:4px 2px 12px}
.msg.err{color:var(--danger)} .msg.hint{color:var(--muted)}
.row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);margin-bottom:10px}
.row .grow{flex:1;min-width:0}
.row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row small{color:var(--muted)}
.chlink{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:start;min-height:var(--tap);border-radius:12px}
a.icon-btn{color:inherit;text-decoration:none}
.avatar{width:44px;height:44px;border-radius:50%;flex:none;display:grid;place-items:center;color:#fff;font-weight:700}
.avatar.lg{width:56px;height:56px;font-size:20px}
.preview{border:2px solid var(--primary);border-radius:var(--r);padding:14px;margin:8px 0 16px;background:var(--surface)}
.preview .row{border:0;padding:0;margin:0 0 12px;background:none}
.preview .btns{display:flex;gap:8px}

/* states */
.empty{text-align:center;padding:48px 24px;color:var(--muted)}
.empty .art{width:96px;height:96px;margin:0 auto 16px;border-radius:50%;background:var(--surface2);display:grid;place-items:center}
.empty .art svg{width:44px;height:44px;stroke:var(--primary);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.empty h3{color:var(--text);margin:0 0 6px}
.empty .btn{margin-top:16px}
.skeleton{background:var(--surface);border-radius:var(--r);border:1px solid var(--border);overflow:hidden;margin-bottom:16px}
.skeleton .t{aspect-ratio:16/9;background:linear-gradient(90deg,var(--surface2),var(--bg),var(--surface2));background-size:200% 100%;animation:sh 1.3s infinite}
.skeleton .l{height:14px;margin:14px;border-radius:7px;background:var(--surface2)}
@keyframes sh{to{background-position:-200% 0}}
.vcount{color:var(--muted);font-size:13px;padding:0 0 10px;margin-top:-6px}
.caught-up{text-align:center;padding:22px 16px 8px;display:grid;gap:4px}.caught-up b{font-size:16px}.caught-up span{color:var(--muted);font-size:14px}
.end{text-align:center;color:var(--muted);padding:12px 0 24px;font-size:14px}

/* drawer */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .2s;z-index:40}
.scrim.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(82vw,320px);background:var(--surface);z-index:41;transform:translateX(calc(var(--dir) * 100%));transition:transform .25s ease;padding:calc(env(safe-area-inset-top) + 16px) 12px 16px;display:flex;flex-direction:column;gap:4px}
html[dir=rtl]{--dir:1} html[dir=ltr]{--dir:-1}
.drawer.open{transform:none}
.drawer .head{padding:8px 12px 16px;border-bottom:1px solid var(--border);margin-bottom:8px}
.nav{display:flex;align-items:center;gap:14px;height:52px;padding:0 14px;border-radius:14px;font-size:17px;text-align:start;width:100%}
.nav svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nav.active{background:color-mix(in srgb,var(--primary) 16%,transparent);color:var(--primary);font-weight:600}

/* player: plays in place of the thumbnail, inside the feed card */
/* segmented / settings */
.seg{display:flex;background:var(--surface2);border-radius:14px;padding:4px;gap:4px}
.seg button{flex:1;height:44px;border-radius:11px;font-weight:600;color:var(--muted)}
.seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.setting{margin-bottom:22px}
.setting label{display:block;font-weight:600;margin-bottom:8px}
.proto{border:1.5px dashed var(--border);border-radius:var(--r);padding:14px;margin-top:28px}
.proto h4{margin:0 0 10px;color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.proto label{display:flex;align-items:center;gap:10px;height:44px}
.proto input{width:20px;height:20px;accent-color:var(--primary)}
.note{font-size:13.5px;color:var(--muted);margin-top:8px}
.diag{margin:0 0 10px;padding:12px;border-radius:12px;background:var(--surface2);color:var(--text);font:12px/1.5 ui-monospace,Menlo,monospace;white-space:pre-wrap;word-break:break-all;text-align:left}

/* toast */
.toast{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 24px);left:50%;transform:translate(-50%,20px);background:var(--toast-bg,#1F2421);color:#fff;padding:12px 20px;border-radius:999px;opacity:0;transition:.25s;z-index:99;pointer-events:none;font-size:15px;max-width:90vw}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ===== production additions ===== */
body{overscroll-behavior-y:none}
.hidden{display:none!important}
header .spacer{flex:1}
.avatar{overflow:hidden;position:relative}
.avatar img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.avatar img.broken{display:none} /* the initial underneath shows instead */
.thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb img.broken{display:none}
.card .thumb{background:linear-gradient(135deg,var(--surface2),var(--border))}
.thumb{cursor:pointer;padding:0}
.banner.error{background:color-mix(in srgb,var(--danger) 14%,var(--surface));color:var(--danger)}
.badge{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;background:var(--surface2);color:var(--muted);margin-inline-start:6px;vertical-align:middle}
.badge.blocked{background:color-mix(in srgb,var(--danger) 16%,transparent);color:var(--danger)}
.badge.admin{background:color-mix(in srgb,var(--primary) 18%,transparent);color:var(--primary)}
.urow small{display:block;overflow:hidden;text-overflow:ellipsis}
.urow small[dir=ltr]{white-space:nowrap}
.urow .btn{height:40px;padding:0 14px;font-size:14px}
.account{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.account .grow{min-width:0}
.account b,.account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account small{color:var(--muted)}
.spinner{width:22px;height:22px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--primary);animation:spin .8s linear infinite;margin:0 auto}
@keyframes spin{to{transform:rotate(360deg)}}
.thumb.live{cursor:default;background:#000}
/* the YouTube API swaps the .yt placeholder for an iframe with fixed width/height attributes: make it fill the 16:9 card */
.thumb.live .yt,.thumb.live iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.thumb.live.err{display:grid;place-items:center;background:var(--surface2);color:var(--text)}
.unavail{text-align:center;padding:16px;display:flex;flex-direction:column;gap:12px;align-items:center}
.unavail .btn{text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (min-width:720px){main{padding-top:20px}.card{border-radius:22px}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* signed-in user in the header */
.brand{min-width:0}
.brand b{white-space:nowrap}
.brand span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.userchip{display:flex;align-items:center;gap:8px;min-height:44px;max-width:42%;padding:4px;border-radius:999px;flex:none}
.userchip:active{background:var(--surface2)}
.userchip .avatar{width:34px;height:34px;font-size:15px;flex:none}
.userchip span{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline-end:6px}
@media (max-width:359px){.userchip span{display:none}}

/* credit line: login screen and the bottom of the menu only */
.credit{margin-top:auto;padding:16px 12px calc(env(safe-area-inset-bottom) + 12px);text-align:center;font-size:13px;color:var(--muted)}
.credit .ver{margin-top:6px;font-size:12px;opacity:.75;letter-spacing:.2px}
.login .credit{margin-top:0;padding:0;font-size:12.5px;line-height:1.5}
.credit .sep{margin:0 6px;opacity:.6}

/* ===== login screen (minimal, centred) ===== */
main.is-login{padding:0}
.login{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;padding:calc(env(safe-area-inset-top) + 24px) 28px calc(env(safe-area-inset-bottom) + 20px)}
.login>.logo{margin-top:auto;width:92px;height:92px;border-radius:24px;box-shadow:0 6px 22px rgba(0,0,0,.14)}
.login h1{margin:10px 0 0;font-size:34px;letter-spacing:-.6px}
.login p{margin:0;color:var(--muted);font-size:17px}
/* The Google button is drawn by Google inside an iframe. Its document is always "light"; without this the
   browser paints an opaque white box behind it when the page itself is in dark mode. */
.login .gbtn{min-height:44px;margin-top:34px;color-scheme:light}
.login .dev{margin-top:18px;border:1.5px dashed var(--border);border-radius:var(--r);padding:12px;width:min(100%,340px);text-align:start}
.login .dev .field{margin:8px 0 0}
.login .foot{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:24px}
.login .privacy{font-size:13px;color:var(--muted);text-decoration:underline}

/* channel rows: long names wrap instead of being cut off; compact action buttons */
.row .chlink b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25}
.row .icon-btn{width:44px;height:44px}
.row:has(.icon-btn){gap:4px;padding-inline:12px}
.row:has(.icon-btn) .chlink{gap:10px;margin-inline-end:4px}
.row .btn.danger{padding:0 8px!important}

/* confirmation dialog */
.dialog-scrim{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.5);display:grid;place-items:center;padding:24px}
.dialog{background:var(--surface);color:var(--text);border-radius:22px;padding:24px 22px 20px;width:min(100%,380px);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.dialog h3{margin:0 0 8px;font-size:20px}
.dialog p{margin:0 0 20px;color:var(--muted);line-height:1.5}
.dlg-actions{display:flex;flex-direction:column;gap:12px}
.dlg-actions .btn{width:100%;height:52px;font-size:17px}
.btn.solid-danger{background:var(--danger);color:#fff}

/* full screen player */
.act.fs-btn{margin-inline-start:auto}
body.fs-open{overflow:hidden}
.thumb.live.fs{position:fixed;inset:0;z-index:70;width:100vw;height:100dvh;aspect-ratio:auto;border-radius:0;background:#000}
.thumb.live .fs-exit{display:none}
.thumb.live.fs .fs-exit{display:grid;place-items:center;position:absolute;z-index:3;top:calc(env(safe-area-inset-top) + 10px);inset-inline-end:10px;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff}
.thumb.live.fs .fs-exit svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.thumb.live.fs.err{background:#111;color:#fff}
.thumb.live.fs .unavail .btn{color:var(--primary-ink)}

/* iPhone, landscape, full screen: the embedded player lays its picture out about 15% of the screen too far to the left
   (measured on a real iPhone: the picture spans 70% of the width, left-aligned, black on the right). Shift it so the
   visible picture is centred. Other devices are not affected. */
/* (positioned with `left`, not a transform: touches on a transformed iframe do not line up on iOS, and the player's own
   buttons stopped responding) */
@media (orientation:landscape){
  html.iphone .thumb.live.fs iframe{left:14.8vw;right:auto;width:100%}
}

/* Full screen on iPhone in landscape: one column of three buttons in the black strip left of the player, spaced apart
   (close, play/pause, mute). They sit a little in from the screen edge so the Dynamic Island, which can cover the middle
   of the edge, does not hide them. They use the player's API because the embedded player's own tap targets do not
   reliably respond there. */
.thumb.live .fs-pp,.thumb.live .fs-mute{display:none}
@media (orientation:landscape){
  html.iphone .thumb.live.fs .fs-exit,
  html.iphone .thumb.live.fs .fs-pp,
  html.iphone .thumb.live.fs .fs-mute{inset-inline-end:auto;inset-inline-start:auto;right:auto;left:max(10px,calc(env(safe-area-inset-left,0px) + 4px))}
  html.iphone .thumb.live.fs .fs-exit{top:calc(env(safe-area-inset-top,0px) + 10px)}
  html.iphone .thumb.live.fs .fs-pp,
  html.iphone .thumb.live.fs .fs-mute{display:grid;place-items:center;position:absolute;z-index:3;width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff}
  html.iphone .thumb.live.fs .fs-pp{top:calc(env(safe-area-inset-top,0px) + 76px)}
  html.iphone .thumb.live.fs .fs-mute{top:calc(env(safe-area-inset-top,0px) + 154px)}
  html.iphone .thumb.live.fs .fs-pp svg,
  html.iphone .thumb.live.fs .fs-mute svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
  html.iphone .thumb.live.fs .fs-pp[data-playing="false"] svg{fill:currentColor}
}

/* users: search, rows that open a details page, the details page */
.search{margin:0 0 14px}
.search input{width:100%;height:var(--tap);border-radius:14px;border:1.5px solid var(--border);background:var(--surface);color:var(--text);padding:0 14px;font:inherit}
.search input::placeholder{color:var(--muted)}
button.row{width:100%;text-align:start;cursor:pointer;font:inherit;color:inherit}
button.row:active{background:var(--surface2)}
.row .chev{flex:none;color:var(--muted);display:grid}
.row .chev svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[dir=rtl] .row .chev svg{transform:scaleX(-1)}
.back{display:flex;align-items:center;gap:6px;min-height:var(--tap);padding:0 12px 0 4px;margin:0 0 6px;font-weight:600;color:var(--primary)}
.back svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
html[dir=ltr] .back svg.flip{transform:scaleX(-1)}
.uhead{display:flex;align-items:center;gap:16px;margin:8px 0 18px}
.uhead h2{margin:0 0 2px;font-size:22px}
.uhead small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.facts{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);margin-bottom:22px}
.facts>div{display:flex;justify-content:space-between;gap:12px;padding:13px 16px}
.facts>div+div{border-top:1px solid var(--border)}
.facts span{color:var(--muted)}
.uaction{margin-bottom:22px}
.uaction .btn{width:100%}
.uaction p{margin:8px 4px 0;font-size:13.5px;color:var(--muted)}
.btn.danger-outline{background:transparent;color:var(--danger);border:1.5px solid var(--danger)}

/* approval switch, pending badge, menu count */
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:14px 16px;margin:0 0 14px;cursor:pointer}
.switch-row .txt b{display:block}
.switch-row .txt small{display:block;color:var(--muted);font-size:13.5px;margin-top:2px}
.switch-row input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:52px;height:32px;border-radius:999px;background:var(--surface2);border:1px solid var(--border);transition:background .15s;cursor:pointer}
.switch-row input[type=checkbox]::after{content:'';position:absolute;top:2px;inset-inline-start:2px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:inset-inline-start .15s}
.switch-row input[type=checkbox]:checked{background:var(--primary);border-color:var(--primary)}
.switch-row input[type=checkbox]:checked::after{inset-inline-start:22px}
.badge.pending{background:color-mix(in srgb,#E0A100 22%,transparent);color:#9A6B00}
[data-theme=dark] .badge.pending{color:#FFC94D}
.nav .count{margin-inline-start:auto;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--danger);color:#fff;font-size:13px;display:grid;place-items:center}

/* status screen */
.statcard{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:16px;margin-bottom:16px}
.statcard h3{margin:0 0 10px;font-size:16px}
.quota-num{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}
.quota-num b{font-size:34px;letter-spacing:-.5px}
.quota-num span{color:var(--muted)}
.quota-num.warn b{color:#C58A00}
.quota-num.bad b{color:var(--danger)}
.bar{position:relative;height:12px;border-radius:999px;background:var(--surface2);overflow:visible}
.bar i{display:block;height:100%;border-radius:999px;background:var(--primary)}
.bar.warn i{background:#E0A100}
.bar.bad i,.bar i.bad{background:var(--danger)}
.bar u{position:absolute;top:-4px;width:2px;height:20px;background:var(--text);opacity:.45;text-decoration:none}
.bar.small{height:8px;flex:1}
.statnote{margin:10px 2px 0;font-size:13.5px;color:var(--muted)}
.statnote.bad{color:var(--danger);font-weight:600}
.hday{display:flex;align-items:center;gap:10px;margin:6px 0;font-size:14px}
.hday span{width:64px;color:var(--muted)}
.hday b{width:56px;text-align:end;font-weight:600}
.crow{display:flex;align-items:center;gap:12px;padding:10px 0}
.crow+.crow{border-top:1px solid var(--border)}
.crow b{display:block}
.crow small{display:block;color:var(--muted)}
.crow .when{text-align:end;font-size:14px;flex:none}

/* users: filter chips */
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.chips[hidden]{display:none}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--border);background:var(--surface);color:var(--text);font-weight:600}
.chip[aria-pressed=true]{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}
.chip .n{margin-inline-start:8px;min-width:22px;padding:1px 7px;border-radius:999px;background:var(--surface2);color:var(--muted);font-size:13px;text-align:center}
.chip[aria-pressed=true] .n{background:rgba(255,255,255,.28);color:inherit}
.chip.warn:not([aria-pressed=true]) .n{background:color-mix(in srgb,#E0A100 25%,transparent);color:#9A6B00}
[data-theme=dark] .chip.warn:not([aria-pressed=true]) .n{color:#FFC94D}
