:root {
  --line: #2a2c31;
  --ink: #0b0b0d;
  --live: #ff3b30;
  --font: Inter, "Outfit", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); }
body { min-height: 100vh; }
a.at { color: var(--accent); font-weight: 650; }
a.at:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: #101113; border-right: 1px solid var(--line); padding: 0.85rem 0.7rem; overflow: auto; }
.logo { display: flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.55rem 0.9rem; }
.logo b { font-size: 1.35rem; letter-spacing: -0.04em; }
.logo b::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.4rem; border-radius: 0.2rem; background: var(--accent); transform: skewX(-12deg); }
.side-nav { display: grid; gap: 0.15rem; }
.side-nav a { border-radius: 0.55rem; padding: 0.55rem 0.7rem; color: var(--muted); font-weight: 560; }
.side-nav a.on, .side-nav a:hover { background: var(--raised); color: var(--fg); }
.side-nav a.on { box-shadow: inset 3px 0 0 var(--accent); }
.rec-block { margin-top: 1.2rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.rec-block p { margin: 0 0 0.4rem; padding: 0 0.4rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.rec { display: flex; gap: 0.55rem; align-items: center; padding: 0.4rem; border-radius: 0.55rem; }
.rec:hover { background: var(--raised); }
.rec strong, .rec small { display: block; }
.rec small { color: var(--accent); font-size: 0.75rem; }
.maincol { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, max-content); align-items: center; gap: 0.7rem; min-height: 64px; padding: 0.45rem 0.9rem; background: color-mix(in srgb, var(--bg) 74%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); backdrop-filter: blur(18px) saturate(1.35); }
.search { flex: 1; }
.search input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.62rem 0.95rem; }
.account { display: flex; gap: 0.4rem; align-items: center; }
.menu { display: none; }
.solid, button, .ember { appearance: none; background: linear-gradient(180deg, color-mix(in srgb, #fff 22%, var(--accent)) 0%, var(--accent) 62%, color-mix(in srgb, #000 16%, var(--accent)) 100%); color: var(--ink); border: 0; border-radius: 999px; padding: 0.55rem 1.05rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 1px 1px rgba(0,0,0,.18), 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease, border-color .16s ease; }
.ghost, button.ghost, a.ghost { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.admin-bar, .banner { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin: 0; padding: 0.5rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar a { background: linear-gradient(180deg, color-mix(in srgb, #fff 18%, var(--accent)), var(--accent)); color: var(--ink); border-radius: 999px; padding: 0.38rem 0.8rem; font-weight: 650; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
main { padding: 1rem 1.15rem 2.5rem; }
.wrap { width: min(1240px, 100%); margin: 0 auto; }
.narrow { width: min(760px, 100%); }
h1, h2 { margin: 0 0 0.35rem; letter-spacing: -0.03em; font-weight: 680; }
h1 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.muted, .sub { color: var(--muted); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 0.7rem; }
.chips { display: flex; gap: 0.4rem; overflow: auto; padding-bottom: 0.8rem; }
.chips a { flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); background: color-mix(in srgb, var(--fg) 5%, transparent); border-radius: 999px; padding: 0.42rem 0.85rem; color: var(--muted); font-size: 0.84rem; font-weight: 650; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.chips a.on, .chips a:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem 0.85rem; }
.kcard > a { position: relative; display: block; }
.thumb, .scene { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); background: #1a120e center/cover; overflow: hidden; }
.scene { min-height: 0; }
.scene-rooftop { background-image: linear-gradient(160deg, rgba(0,0,0,.05), rgba(0,0,0,.35)), url("/media/rooftop.jpg"); }
.scene-kitchen { background-image: linear-gradient(160deg, rgba(0,0,0,.05), rgba(0,0,0,.35)), url("/media/kitchen.jpg"); }
.scene-skate { background-image: linear-gradient(160deg, rgba(0,0,0,.05), rgba(0,0,0,.4)), url("/media/skate.jpg"); }
.scene-booth { background-image: linear-gradient(160deg, rgba(0,0,0,.08), rgba(0,0,0,.4)), url("/media/booth.jpg"); }
.scene-floor { background-image: linear-gradient(160deg, rgba(0,0,0,.1), rgba(0,0,0,.45)), url("/media/floor.jpg"); }
.scene-highway { background-image: linear-gradient(160deg, rgba(0,0,0,.08), rgba(0,0,0,.4)), url("/media/highway.jpg"); }
.pill { position: absolute; top: 0.45rem; left: 0.45rem; background: var(--live); color: white; border-radius: 0.3rem; padding: 0.12rem 0.38rem; font-size: 0.7rem; font-weight: 760; letter-spacing: 0.04em; }
.pill.fans { left: auto; right: 0.45rem; background: var(--accent); color: var(--ink); }
.lock { display: grid; place-items: center; gap: 0.6rem; min-height: 16rem; text-align: center; }
.lock-stage { display: grid; place-items: center; background: #111 center/cover; }
.lock p { margin: 0; font-weight: 700; }
.kmeta { display: flex; gap: 0.6rem; padding: 0.55rem 0.1rem 0; }
.kmeta strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.kmeta .who, .kmeta .cat { display: block; color: var(--muted); font-size: 0.82rem; }
.kmeta .cat { color: var(--accent); }
.avatar { width: 2.2rem; height: 2.2rem; border-radius: 999px; object-fit: cover; background: #0a0a0c; display: grid; place-items: center; flex: 0 0 auto; }
.sex-pick { border: 0; margin: 0.2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.sex-pick legend { grid-column: 1 / -1; font-weight: 700; }
.sex-card { position: relative; display: grid; justify-items: center; gap: 0.35rem; padding: 0.45rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.sex-card img { width: 100%; height: 108px; object-fit: cover; object-position: center 30%; background: #0a0a0c; border-radius: 10px; }
.sex-card input { position: absolute; opacity: 0; pointer-events: none; }
.sex-card span { font-weight: 750; }
.sex-card:has(input:checked) { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.sex-card:has(input:focus-visible) { outline: 2px solid #fff; }
.avatar.letter { font-weight: 700; }
.avatar.lg { width: 5.2rem; height: 5.2rem; font-size: 1.6rem; border: 3px solid var(--bg); }
.row { margin-top: 1.4rem; }
.scroller { display: flex; gap: 0.75rem; overflow: auto; }
.slide { width: 16rem; flex: 0 0 auto; }
.slide video, video.stage, .card video { width: 100%; display: block; background: #000; aspect-ratio: 16/9; border-radius: var(--radius); }
.feed { display: grid; gap: 1.2rem; width: min(420px, 100%); margin: 0 auto; }
.clip .scene, .clip .thumb { aspect-ratio: 9/16; min-height: 70vh; }
.caption { padding: 0.7rem 0.1rem; }
main:has(.watch), main:has(.theater) { padding: 0; }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; align-items: stretch; height: calc(100vh - 58px); }
.player-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; height: 100%; position: relative; }
.player { flex: 1; aspect-ratio: auto; border-radius: 0; min-height: 0; position: relative; }
.channel-row { display: flex; gap: 0.75rem; align-items: flex-start; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.4rem 0.85rem 0.7rem; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.channel-row h1 { font-size: 1.15rem; }
.hostbox { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; max-width: min(34rem, 70%); background: transparent; padding: 0; }
.hostbox:empty { display: none; }
.watch .log { max-height: none; }
.chatbox { background: var(--surface); border: 0; border-left: 1px solid var(--line); border-radius: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; position: relative; top: auto; }
.watch.chat-shut { grid-template-columns: 1fr; }
.watch.chat-shut .chatbox { display: none; }
.chat-fab { display: none; position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; background: rgba(0,0,0,.55); }
.watch.chat-shut .chat-fab { display: inline-flex; }
.fs-btn { position: absolute; right: 0.7rem; bottom: 0.7rem; z-index: 2; background: rgba(0,0,0,.55); }
.theater { background: #000; }
.fs-stage { position: relative; height: calc(100vh - 58px); background: #000; display: grid; }
.fs-stage .vignette-wrap, .fs-stage video.stage { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; object-fit: contain; background: #000; }
.theater:fullscreen, .watch:fullscreen { width: 100%; height: 100%; background: #000; }
.theater:fullscreen .fs-stage, .watch:fullscreen { height: 100%; }
.theater:fullscreen .theater-meta { display: none; }
.theater-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.share { position: relative; }
.share-pop { display: none; position: absolute; z-index: 7; left: 0; bottom: calc(100% + 0.35rem); min-width: 220px; padding: 0.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.8rem; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.share.open .share-pop { display: grid; }
.share-pop a, .share-pop button { display: flex; align-items: center; gap: 0.55rem; width: 100%; background: transparent; color: var(--fg); border: 0; border-radius: 0.5rem; padding: 0.4rem 0.45rem; text-align: left; }
.share-pop a:hover, .share-pop button:hover { background: var(--raised); }
.share-pop svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.share-row { display: grid; gap: 0.55rem; }
.mark { border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.75rem; font-weight: 700; }
.mark.ok { background: var(--accent); color: var(--ink); }
.mark.miss { background: var(--live); color: #fff; }
.path, article pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.path { word-break: break-all; }
details.report { margin: 0.5rem 0; }
details.report summary { cursor: pointer; color: var(--muted); }
details.report form { margin-top: 0.5rem; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
.log { flex: 1; overflow: auto; padding: 0.55rem 0.75rem; max-height: 52vh; }
.log p { margin: 0.28rem 0; font-size: 0.9rem; line-height: 1.35; }
.log strong { color: var(--accent); font-weight: 650; }
.log em { color: var(--accent); font-style: normal; font-weight: 700; }
.chatbox form, .hostbox, .poll { padding: 0.45rem 0.65rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.chatbox input, .hostbox input { flex: 1; min-width: 6rem; }
.chatbox.shut .log, .chatbox.shut form, .chatbox.shut .poll { display: none; }
.channel { overflow: hidden; }
.channel-banner { height: 180px; border-radius: var(--radius); background: linear-gradient(120deg, #10210a, #1a1c20 55%, #0e1a12) center/cover; }
.studio { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr); gap: 1rem; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filters button.on, .ghost.on { background: var(--accent); color: var(--ink); border-color: transparent; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem; }
.vignette-wrap { position: relative; }
.vignette-wrap.on::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius); box-shadow: inset 0 0 90px 24px rgba(0,0,0,.72); }
img.thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: #000; display: block; }
@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
}
.channel-head { display: flex; gap: 1rem; align-items: flex-end; margin-top: -2.4rem; padding: 0 0.4rem 1rem; }
.stack, form.stack { display: grid; gap: 0.7rem; }
label { display: grid; gap: 0.28rem; font-size: 0.9rem; color: var(--muted); }
input, textarea, select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 0.55rem; padding: 0.62rem 0.75rem; }
textarea { min-height: 8rem; }
.check { display: flex; gap: 0.5rem; align-items: center; }
.check input { width: auto; }
.flash { background: var(--surface); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.7rem 0.85rem; }
.flash.bad { border-color: var(--live); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; margin: 0.7rem 0; }
.tabs { display: flex; gap: 0.35rem; margin-bottom: 0.8rem; }
.tabs a { padding: 0.4rem 0.75rem; border-radius: 999px; color: var(--muted); }
.tabs a.on { background: var(--fg); color: var(--ink); }
.row-buttons, .logline { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.row-buttons .muted { flex-basis: 100%; }
.sums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.ledger { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1.2rem; }
.ledger th, .ledger td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.88rem; vertical-align: top; }
.ledger th { color: var(--muted); font-weight: 650; }
@media (max-width: 720px) {
  .sums { grid-template-columns: 1fr 1fr; }
  .ledger { display: block; overflow: auto; }
}
.note { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.7rem; margin: 0.4rem 0; }
.note.unread { border-color: var(--accent); }
.prose { white-space: pre-wrap; }
.code { font-size: 2rem; letter-spacing: 0.18em; color: var(--accent); }
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.swatch { height: 2.4rem; border-radius: 0.5rem; border: 1px solid var(--line); }
.story { width: 15rem; flex: 0 0 auto; }
.story .scene { aspect-ratio: 9/16; }
.density-comfortable .grid { gap: 1.3rem; }
.density-comfortable .kmeta strong { font-size: 1.02rem; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 8; transform: translateX(-105%); width: min(280px, 86vw); transition: transform 0.18s ease; }
  body.nav-open .side { transform: none; }
  .menu { display: inline-flex; }
  .watch { grid-template-columns: 1fr; }
  .chatbox { position: static; min-height: 0; }
  .top { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "start end" "search search"; }
  .top-start { grid-area: start; }
  form.search { grid-area: search; }
  .top-end { grid-area: end; justify-self: end; }
  .switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.booth { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 0.2rem 1.25rem; align-items: start; }
.booth-side { position: sticky; top: 4.6rem; align-self: start; }
.booth-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 0.4rem; }
.quick-links { grid-column: 1 / -1; display: grid; gap: 0.45rem; margin: 0 0 0.7rem; }
.quick-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.quick-bar a { padding: 0.32rem 0.72rem; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-weight: 700; }
.quick-edit { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 0.35rem 0.75rem 0.7rem; }
.quick-edit summary { cursor: pointer; font-weight: 700; }
.quick-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 0.55rem; align-items: end; }
@media (max-width: 800px) {
  .quick-row { grid-template-columns: 1fr; }
}
.booth-head h1 { margin: 0; letter-spacing: -0.045em; font-size: 1.8rem; }
.booth-head .kicker { margin: 0 0 0.15rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.booth-nav { display: grid; gap: 0.35rem; align-content: start; max-height: calc(100vh - 9.2rem); overflow: auto; padding: 0.35rem; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: 18px; }
.nav-group { border-radius: 12px; background: transparent; }
.nav-group summary { list-style: none; cursor: pointer; padding: 0.45rem 0.65rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; float: right; margin-top: 0.35rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; padding: 2px; transform: rotate(45deg); }
.nav-group[open] summary::after { transform: rotate(-135deg); margin-top: 0.5rem; }
.booth-nav a { display: grid; gap: 0.05rem; margin: 0 0.3rem 0.15rem; padding: 0.42rem 0.6rem; border-radius: 10px; color: var(--muted); }
.booth-nav a b { font-weight: 680; color: var(--fg); }
.booth-nav a small { color: var(--muted); font-size: 0.72rem; }
.booth-nav a.on, .booth-nav a:hover { background: var(--raised); }
.booth-nav a.on { background: var(--accent); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent); }
.booth-nav a.on b, .booth-nav a.on small { color: var(--ink); }
.booth-main { min-width: 0; }
.booth-main > h2 { letter-spacing: -0.04em; margin-top: 0.2rem; }
.limit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem; margin: 0.2rem 0 1rem; }
.limit-card { display: grid; gap: 0.35rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; }
.limit-card span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.02em; }
.limit-card small { color: var(--muted); }
.store-block { margin: 1rem 0; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-top: 0.6rem; }
.store-card { display: grid; gap: 0.25rem; padding: 0.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.store-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--raised); }
.store-card small { color: var(--muted); }
.leave-gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.62); }
.leave-gate[hidden] { display: none; }
.leave-card { width: min(28rem, 100%); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.25rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.leave-card h2 { margin: 0 0 0.45rem; letter-spacing: -0.03em; }
.leave-url { word-break: break-all; color: var(--muted); font-size: 0.85rem; }
.chat-dm { margin-left: 0.35rem; font-size: 0.75rem; font-weight: 650; }
.sub-card s { color: var(--muted); font-size: 0.85rem; margin-right: 0.25rem; }
.dock { display: none; }
input, select, textarea { font-size: 1rem; }
@media (max-width: 720px) {
  main { padding-bottom: 5.2rem; }
  .player { min-height: 52vw; }
  .chatbox { max-height: 70vh; }
  .channel-head { flex-wrap: wrap; }
  .booth { grid-template-columns: 1fr; }
  .booth-side { position: static; }
  .booth-nav { display: grid; gap: 0.35rem; overflow: visible; max-height: none; padding: 0.45rem; }
  .booth-nav a { flex: initial; }
  .dock { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.2rem; padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom)); background: #101113; border-top: 1px solid var(--line); }
  .dock a, .dock button { background: transparent; color: var(--muted); border: 0; border-radius: 0.45rem; padding: 0.45rem 0.1rem; font-size: 0.72rem; font-weight: 650; text-align: center; }
}
@media (min-width: 1101px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
:root { --side: #101113; --top: rgba(11,11,13,.92); }
.side { background: var(--bg); }
.maincol { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
form.search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; gap: 0.25rem; height: 40px; background: var(--raised); border: 1px solid transparent; border-radius: 999px; padding: 0.12rem 0.2rem 0.12rem 1rem; }
form.search input { width: auto; flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.42rem 0.15rem; }
.search-go, .search-clear { flex: 0 0 auto; border-radius: 999px; }
.search-go { height: 32px; padding: 0 0.85rem; font-size: 0.82rem; }
.search-clear { height: 32px; background: transparent; color: var(--muted); border: 0; }
.chips a.on, .tabs a.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.eyes { left: auto; right: 0.45rem; background: rgba(0,0,0,.72); border-radius: 4px; }
.check input[type="checkbox"] { appearance: none; width: 2.75rem; height: 1.55rem; border-radius: 999px; background: #2a2d33; border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); position: relative; flex: 0 0 auto; cursor: pointer; box-shadow: inset 0 2px 5px rgba(0,0,0,.4); transition: background .18s ease, box-shadow .18s ease; }
.check input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.15rem; height: 1.15rem; border-radius: 999px; background: linear-gradient(180deg, #fff, #d5d7dc); box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .18s cubic-bezier(.2,.85,.2,1); }
.check input[type="checkbox"]:checked { background: linear-gradient(180deg, color-mix(in srgb, #fff 24%, var(--accent)), var(--accent)); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 14px color-mix(in srgb, var(--accent) 42%, transparent); }
.check input[type="checkbox"]:checked::after { transform: translateX(1.2rem); background: #141516; }
button.switch { display: inline-flex; align-items: center; gap: 0.4rem; height: 38px; padding: 0 0.65rem 0 0.32rem; border-radius: 999px; background: color-mix(in srgb, var(--fg) 6%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
button.switch .track { width: 2.35rem; height: 1.28rem; border-radius: 999px; background: #2a2d33; border: 0; position: relative; box-shadow: inset 0 2px 5px rgba(0,0,0,.45); transition: background .18s ease, box-shadow .18s ease; }
button.switch .knob { position: absolute; top: 2px; left: 2px; width: 0.95rem; height: 0.95rem; border-radius: 999px; background: linear-gradient(180deg, #fff, #d7d8dc); box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: transform .18s cubic-bezier(.2,.85,.2,1); }
button.switch[aria-pressed="true"] .knob { transform: translateX(1.08rem); background: #141516; }
button.switch[aria-pressed="true"] .track { background: linear-gradient(180deg, color-mix(in srgb, #fff 22%, var(--accent)), var(--accent)); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 48%, transparent); }
button.switch .switch-label { font-size: 0.68rem; font-weight: 780; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
button.switch[aria-pressed="true"] .switch-label { color: var(--fg); }
.cookie-bar { position: fixed; z-index: 30; left: 1rem; right: 1rem; bottom: 1rem; display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; padding: 0.8rem 0.9rem; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; }
.cookie-bar p { margin: 0; }
.site-foot { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: auto; padding: 1rem 1.15rem 1.2rem; border-top: 1px solid var(--line); background: var(--bg); }
.site-foot img { width: auto; max-height: 200px; height: auto; background: transparent; }
.site-foot nav { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.site-foot a, .site-foot .ver { color: var(--muted); }
.site-foot a:hover { color: var(--fg); }
.site-foot .ver { margin-left: auto; font-size: 0.78rem; }
.head-logo { display: flex; align-items: center; gap: 0.4rem; }
.brand-preview { height: auto; max-height: 96px; width: auto; background: transparent; border-radius: 0; }
.brand-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ai-log { display: grid; gap: 0.4rem; max-height: 22rem; overflow: auto; }
.site-foot img { width: auto; max-height: 200px; height: auto; background: transparent; }
.brand-preview { height: auto; max-height: 96px; width: auto; background: transparent; border-radius: 0; }
.stream-logo, .user-mark { position: absolute; z-index: 5; width: auto; max-width: 30%; object-fit: contain; pointer-events: none; background: transparent; filter: none; }
.watermark { position: absolute; left: var(--wm-x, 74%); top: var(--wm-y, 4%); right: auto; display: flex; align-items: center; gap: 0.4rem; max-width: 92%; padding: 0; margin: 0; background: transparent; color: #fff; border-radius: 0; box-shadow: none; font-size: 0.95rem; font-weight: 700; line-height: 1; letter-spacing: 0; text-shadow: 1px 0 0 rgba(0,0,0,.9), -1px 0 0 rgba(0,0,0,.9), 0 1px 0 rgba(0,0,0,.9), 0 -1px 0 rgba(0,0,0,.9); -webkit-font-smoothing: antialiased; }
.brand-layer[data-anchor="end"] .watermark { transform: translateX(-100%); }
.watermark b { font-weight: 700; background: transparent; white-space: nowrap; overflow: visible; text-overflow: clip; }
.watermark img { display: block; flex: 0 0 auto; height: var(--wm-h, 48px); width: var(--wm-w, auto); max-width: min(46vw, 280px); object-fit: contain; background: transparent; filter: drop-shadow(1px 0 0 rgba(0,0,0,.9)) drop-shadow(-1px 0 0 rgba(0,0,0,.9)) drop-shadow(0 1px 0 rgba(0,0,0,.9)) drop-shadow(0 -1px 0 rgba(0,0,0,.9)); }
.watermark[data-tone="light"] { color: #111; text-shadow: 1px 0 0 rgba(255,255,255,.95), -1px 0 0 rgba(255,255,255,.95), 0 1px 0 rgba(255,255,255,.95), 0 -1px 0 rgba(255,255,255,.95); }
.watermark[data-tone="dark"] { color: #fff; text-shadow: 1px 0 0 rgba(0,0,0,.9), -1px 0 0 rgba(0,0,0,.9), 0 1px 0 rgba(0,0,0,.9), 0 -1px 0 rgba(0,0,0,.9); }
body[data-admin="1"] .watermark { pointer-events: auto; cursor: grab; touch-action: none; }
.wm-stage { position: relative; height: 220px; border-radius: 12px; background: radial-gradient(circle at 30% 20%, #2a2430, #0c0c0e 70%); overflow: hidden; }
.wm-pin { position: absolute; cursor: grab; touch-action: none; display: flex; align-items: center; gap: 0.35rem; max-width: 70%; padding: 0; background: transparent; color: #fff; border-radius: 0; font-weight: 700; text-shadow: 1px 0 0 rgba(0,0,0,.9), -1px 0 0 rgba(0,0,0,.9), 0 1px 0 rgba(0,0,0,.9), 0 -1px 0 rgba(0,0,0,.9); }
.wm-pin img { height: 42px; width: auto; }
.wm-corners { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wm-corners button { width: auto; background: rgba(255,255,255,.08); color: inherit; border-radius: 999px; padding: 0.35rem 0.7rem; }
.ticker { position: absolute; left: 0; right: 0; overflow: hidden; white-space: nowrap; }
.live-ticker { bottom: 0.55rem; font-weight: 700; }
.ticker-track, .banner-track { display: flex; gap: 2rem; width: max-content; animation: ticker var(--ticker-speed, 16s) linear infinite; font-size: var(--ticker-size, 28px); }
.banner-track { font-size: 0.92rem; padding: 0.62rem 0; animation-duration: 18s; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker[data-tone="dark"] { color: #f7f7f8; background: rgba(0,0,0,.42); }
.ticker[data-tone="light"] { color: #111; background: rgba(255,255,255,.55); }
.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-height: 240px; background: #000; }
.cast-slot { position: relative; background: #111; }
.cast-slot video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.search-pop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.search-pop a, .search-pop button { display: flex; justify-content: space-between; gap: 0.6rem; width: 100%; background: transparent; color: var(--fg); border: 0; border-radius: 8px; padding: 0.45rem 0.55rem; text-align: left; }
.admin-find { position: relative; margin-bottom: 0.45rem; }
.admin-find input { width: 100%; border-radius: 12px; }
.admin-hits { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 0.3rem); display: grid; gap: 0.15rem; max-height: 16rem; overflow: auto; padding: 0.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.admin-hits a { display: grid; padding: 0.4rem 0.55rem; border-radius: 8px; }
.admin-hits a span { color: var(--muted); font-size: 0.72rem; }
.overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.7rem; margin: 0.6rem 0 1rem; }
.overview a { display: block; padding: 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.overview strong { display: block; color: var(--fg); font-size: 1.45rem; }
.dm { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1rem; }
.shot { display: block; max-width: 16rem; margin: 0.35rem 0 0.8rem; border-radius: 10px; }
.ad-slot[data-html=""] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.toasts { position: fixed; z-index: 40; top: 4.4rem; right: 1rem; display: grid; gap: 0.45rem; width: min(320px, calc(100vw - 2rem)); }
.toast { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.85rem; }
#guide { --guide-bottom: 1rem; --guide-right: 1rem; }
.guide-fab { position: fixed; z-index: 28; right: var(--guide-right); bottom: var(--guide-bottom); border-radius: 999px; }
.guide-card { position: fixed; z-index: 29; right: var(--guide-right); bottom: calc(var(--guide-bottom) + 3.3rem); width: min(340px, calc(100vw - 2rem)); max-height: calc(100vh - var(--guide-bottom) - 4.6rem); overflow: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem; }
.guide-top, .guide-actions { display: flex; justify-content: space-between; gap: 0.4rem; align-items: center; }
.guide-ring { position: fixed; z-index: 27; border: 2px solid var(--accent); border-radius: 12px; pointer-events: none; }
.banner { background: var(--surface); border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent); }
.banner-scroll { overflow: hidden; display: block; padding: 0; }
button, .solid, .ember { border-radius: 999px; }
.kcard .thumb, .kcard .scene { border-radius: 10px; transition: filter .16s ease; }
.kcard:hover .thumb, .kcard:hover .scene { filter: brightness(1.12); }
a.at { color: var(--fg); font-weight: 650; }
.at-mark { color: var(--muted); }
.superchat { margin: 0.35rem 0.65rem 0.75rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); }
.superchat summary { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.7rem 0.8rem; cursor: pointer; font-weight: 700; list-style: none; }
.superchat summary::-webkit-details-marker { display: none; }
.superchat summary small { color: var(--muted); font-weight: 650; font-size: 0.78rem; }
.superchat form { display: grid; gap: 0.45rem; padding: 0 0.75rem 0.75rem; }
.super-row { display: flex; gap: 0.4rem; align-items: end; }
.super-row .amt { width: 5.4rem; gap: 0.2rem; font-size: 0.72rem; }
.super-chips, .pay-rails { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.super-chips .chip, .pay-rails button { background: var(--raised); color: var(--fg); border: 0; border-radius: 999px; padding: 0.32rem 0.7rem; font-size: 0.82rem; }
.super-chips .chip.on { background: var(--accent); color: #111; }
.super-send { width: 100%; }
.superchat .muted { margin: 0; font-size: 0.75rem; }
.super-line { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.45rem 0; padding: 0.55rem 0.6rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.super-line > b { min-width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #111; font-size: 0.85rem; }
.super-line p { margin: 0.12rem 0 0; }
.super-line button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 0.12rem 0.45rem; font-size: 0.72rem; }
html[data-theme="light"] .side, html[data-theme="light"] .dock, html[data-theme="light"] .site-foot { background: var(--side, var(--bg)); color: var(--fg); }
html[data-theme="light"] .top { background: color-mix(in srgb, #fff 84%, transparent); color: var(--fg); }
@media (max-width: 720px) {
  .dm { grid-template-columns: 1fr; }
  .dm.has-chat { display: flex; flex-direction: column; }
  .dm.has-chat .dm-talk { order: -1; }
  .site-foot { margin-bottom: 3.4rem; }
  .dock { background: var(--side); }
}

.shell { background: radial-gradient(900px 420px at 100% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), var(--bg); }
.kcard .thumb, .kcard .scene { box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.chatbox form:has(.composer) { display: block; padding: 0; }
.composer { position: relative; display: flex; align-items: center; gap: 0.3rem; margin: 0.4rem 0.65rem 0.7rem; padding: 0.18rem 0.22rem 0.18rem 0.8rem; background: var(--raised); border-radius: 999px; }
.composer input { border: 0; background: transparent; width: auto; flex: 1; min-width: 0; padding: 0.42rem 0.15rem; box-shadow: none; }
.super-row .composer { flex: 1; margin: 0; min-width: 0; }
.emoji-btn { background: transparent; color: inherit; border: 0; font-size: 1.15rem; line-height: 1; padding: 0.1rem 0.3rem; }
.composer > button:not(.emoji-btn) { height: 34px; padding: 0 0.85rem; flex: 0 0 auto; }
.emoji-pop { position: absolute; z-index: 32; right: 0; bottom: calc(100% + 0.45rem); width: min(320px, 86vw); background: color-mix(in srgb, var(--surface) 88%, #000); color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 18px; padding: 0.55rem; box-shadow: 0 24px 60px rgba(0,0,0,.45); backdrop-filter: blur(16px); }
.emoji-head { display: flex; align-items: center; justify-content: space-between; padding: 0.1rem 0.15rem 0.35rem; }
.emoji-head strong { font-size: 0.84rem; letter-spacing: -0.03em; }
.emoji-head .ghost { height: 28px; padding: 0 0.7rem; font-size: 0.75rem; }
.emoji-recent { display: flex; gap: 0.15rem; overflow: auto; margin-bottom: 0.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
.emoji-recent button, .emoji-grid button { background: transparent; border: 0; border-radius: 10px; }
.emoji-recent button { font-size: 1.15rem; padding: 0.15rem 0.28rem; flex: 0 0 auto; }
.emoji-tabs { display: flex; gap: 0.2rem; margin: 0.35rem 0; padding: 0.15rem; background: var(--raised); border-radius: 999px; }
.emoji-tabs button { flex: 1; background: transparent; color: var(--muted); border: 0; border-radius: 999px; padding: 0.28rem 0.3rem; font-size: 0.72rem; font-weight: 700; }
.emoji-tabs button.on { background: var(--fg); color: var(--bg); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.1rem; max-height: 180px; overflow: auto; }
.emoji-grid button { font-size: 1.28rem; aspect-ratio: 1; padding: 0; transition: transform .12s ease, background .12s ease; }
.emoji-grid button:hover, .emoji-recent button:hover { background: var(--raised); transform: scale(1.12); }

.face-shop { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.face-shop p { flex: 1 0 100%; margin: 0 0 0.2rem; }
.face-shop form { margin: 0; }
.face-shop button { background: var(--raised); color: var(--fg); }
.face-shop button.on { background: var(--accent); color: #111; }

.viewer-shop { margin: 0.35rem 0.65rem 0.2rem; }

.banner { display: block; }
.banner img, .banner video, .banner picture, .banner audio { max-width: 100%; height: auto; }
.banner video { max-height: 240px; border-radius: 10px; }
.banner a { color: var(--accent-text, var(--accent)); }
.desc { margin: 0.35rem 0 0; white-space: pre-wrap; }
.mail-scroll { overflow: auto; }
.mail-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mail-table th, .mail-table td { text-align: left; padding: 0.4rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.handle-lock { display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--raised); font-weight: 700; letter-spacing: -0.02em; }
.handle-lock span { color: var(--muted); font-weight: 600; }
textarea.letter { min-height: 14rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }
.week { display: grid; gap: 0.35rem; margin: 0.8rem 0 1.2rem; }
.week-row { display: grid; grid-template-columns: 7.5rem repeat(7, minmax(0, 1fr)); gap: 0.3rem; align-items: stretch; }
.week-row > span { min-height: 3.2rem; padding: 0.35rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 0.75rem; }
.week-head > span { background: transparent; border-color: transparent; color: var(--muted); font-weight: 700; min-height: 0; }
.week-row small, .week-total { display: block; color: var(--muted); font-weight: 550; }
.week-row b { display: block; margin-top: 0.15rem; font-weight: 700; }
.week-row b.open { color: var(--accent-text, var(--accent)); }
.week-total { margin: 0 0 0.35rem; font-size: 0.82rem; }
.note-line p { margin: 0.2rem 0; }
details.panel summary { cursor: pointer; font-weight: 700; }
@media (max-width: 860px) {
  .week { overflow: auto; }
  .week-row { min-width: 46rem; }
}


.lang-pick { position: relative; flex: 0 0 auto; }
.lang-pick > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.35rem; height: 36px; padding: 0 0.75rem; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-weight: 700; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > summary .flag { font-size: 1.05rem; line-height: 1; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 0.45rem); z-index: 40; width: min(340px, 88vw); max-height: min(70vh, 520px); overflow: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; padding: 0.75rem; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.lang-menu select, .lang-menu textarea { width: 100%; }
.flag-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.2rem; margin-top: 0.55rem; }
.flag-grid button { background: transparent; border: 1px solid transparent; border-radius: 10px; font-size: 1.2rem; line-height: 1; padding: 0.28rem 0; }
.flag-grid button.on, .flag-grid button:hover { background: var(--raised); border-color: var(--line); }
.lang-menu p { margin: 0.5rem 0 0; font-size: 0.78rem; }
html[dir="rtl"] .shell { direction: rtl; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }

.xlate-offer { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; justify-content: space-between; margin: 0 0 0.65rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.xlate-offer p { margin: 0; }
.xlate-bar { display: flex; gap: 0.55rem; align-items: center; justify-content: space-between; padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--line); }
.xlate-bar label, .xlate-write { display: flex; gap: 0.35rem; align-items: center; color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.xlate-bar select, .chat-compose select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.7rem; max-width: 11.5rem; }
.xlate-status { color: var(--muted); font-size: 0.75rem; text-align: right; }
button.x-note { display: block; width: auto; margin-top: 0.12rem; padding: 0; background: transparent; color: var(--muted); border: 0; border-radius: 0; font-size: 0.72rem; font-weight: 650; }
#stream-about, .chat-text .x-body, #stream-title .x-body { white-space: pre-wrap; }
.ticker-src .x-body { white-space: nowrap; }

.player .pill, .player .chat-fab { z-index: 6; }
.cast { position: relative; z-index: 2; }
#relay { position: absolute; inset: 0; z-index: 2; background: #000; }
#relay .relay-video { width: 100%; height: 100%; object-fit: cover; background: #000; }
#relay .relay-wait { position: absolute; left: 16px; right: 16px; bottom: 72px; margin: 0; color: #fff; text-shadow: 0 1px 2px #000; }
canvas.q-skin { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; image-rendering: pixelated; }
.stage-frame { position: relative; width: 100%; height: 100%; background: #000; }
.stage-frame video.stage { width: 100%; height: 100%; max-height: none; object-fit: contain; background: #000; border-radius: 0; }
.clip-frame { height: min(70vh, 520px); border-radius: 18px; overflow: hidden; }
.stage-dock { position: absolute; inset: 0; z-index: 7; width: auto; transform: none; display: block; pointer-events: none; }
.stage-dock > * { pointer-events: auto; }
.yt-bar { pointer-events: auto; position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 6px 4px; background: linear-gradient(transparent, rgba(0,0,0,.82)); opacity: 0; transition: opacity .18s linear; }
.stage-dock.show .yt-bar, .stage-dock.is-paused .yt-bar, .stage-dock:focus-within .yt-bar { opacity: 1; }
.yt-row { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; min-height: 40px; }
.yt-left, .yt-right { display: flex; align-items: center; gap: 2px; min-width: 0; }
.dock-seek { position: relative; height: 3px; margin: 0 10px 4px; background: rgba(255,255,255,.3); border-radius: 0; }
.yt-bar:hover .dock-seek { height: 5px; }
.yt-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #ff0000; pointer-events: none; }
.yt-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #ff0000; transform: scale(0); transition: transform .12s; }
.yt-bar:hover .yt-fill::after { transform: scale(1); }
.dock-seek.is-live .yt-fill { width: 100%; background: #9147ff; }
.dock-seek.is-live .yt-fill::after { display: none; }
.dock-seek input[type="range"] { position: absolute; left: 0; right: 0; top: -8px; width: 100%; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.dock-time { color: #fff; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
.stage-dock[data-kind="live"] .dock-time { background: #e91916; border-radius: 2px; padding: 1px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.live-dot { display: none; }
button.dock-play, button.dock-btn, button.yt-big { background: transparent; color: #fff; border: 0; border-radius: 0; box-shadow: none; }
button.dock-play, button.dock-btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
button.dock-play svg, button.dock-btn svg, button.yt-big svg { width: 22px; height: 22px; display: block; }
button.dock-play:hover, button.dock-btn:hover { background: transparent; opacity: .85; }
button.dock-btn[data-act="caps"].on { opacity: 1; box-shadow: inset 0 -2px 0 #fff; }
.yt-left { overflow: visible; }
.yt-vol { width: 0; height: 18px; margin: 0 4px; padding: 0; opacity: 0; accent-color: #fff; cursor: pointer; vertical-align: middle; transition: width .15s ease, opacity .15s ease; }
.yt-left:hover .yt-vol, .yt-vol:focus, .stage-dock.vol-hold .yt-vol { width: 108px; opacity: 1; }
button.yt-big { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 12px; background: rgba(0,0,0,.72); pointer-events: auto; }
button.yt-big svg { width: 28px; height: 28px; margin-left: 3px; }
.stage-dock.is-playing .yt-big { display: none; }
.dock-pop { position: absolute; right: 8px; bottom: 54px; left: auto; transform: none; width: 230px; max-height: min(64vh, 420px); overflow: auto; padding: 6px 0; border-radius: 8px; background: rgba(28,28,28,.96); border: 0; box-shadow: 0 8px 28px rgba(0,0,0,.55); display: block; }
.dock-pop[hidden], .clip-sheet[hidden], .cap-line[hidden], .dock-seek[hidden] { display: none !important; }
.pop-k { display: flex; justify-content: space-between; gap: 0.6rem; margin: 8px 14px 4px; color: #aaa; font-size: 12px; font-weight: 500; }
.pop-k b { color: #fff; font-weight: 500; }
button.dock-choice, a.dock-choice { display: grid; grid-template-columns: 1.1em 1fr; align-items: center; column-gap: 8px; width: 100%; text-align: left; background: transparent; color: #fff; border: 0; border-radius: 0; padding: 7px 14px; font-size: 13px; font-weight: 400; }
button.dock-choice small, a.dock-choice small { grid-column: 2; color: #aaa; font-size: 11px; font-weight: 400; }
button.dock-choice::before, a.dock-choice::before { content: ""; }
button.dock-choice.on { background: transparent; }
button.dock-choice.on::before { content: "✓"; }
button.dock-choice:hover, a.dock-choice:hover { background: rgba(255,255,255,.08); }
a.dock-choice.locked small { color: #ffb4a2; }
.cap-line { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; max-width: min(40rem, 92vw); text-align: center; background: rgba(8,8,8,.75); color: #fff; border-radius: 4px; padding: 0.28rem 0.55rem; font-weight: 500; font-size: 1.05rem; line-height: 1.35; pointer-events: none; }
.clip-sheet { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); width: min(22rem, 88vw); padding: 0.85rem; border-radius: 8px; background: rgba(28,28,28,.97); color: #fff; border: 0; box-shadow: 0 8px 28px rgba(0,0,0,.55); display: grid; gap: 0.45rem; }
.clip-sheet .clip-title { margin: 0; font-weight: 600; }
.clip-sheet p { margin: 0; }
.clip-lengths { display: flex; gap: 0.35rem; }
button.len { background: rgba(255,255,255,.08); color: #fff; border-radius: 2px; padding: 0.35rem 0.7rem; }
button.len.on { background: #fff; color: #111; }
.clip-sheet input[name="caption"] { width: 100%; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; padding: 0.5rem 0.65rem; }
.clip-actions { display: flex; gap: 0.4rem; }
.watch .channel-row { position: relative; left: auto; right: auto; bottom: auto; background: var(--surface); color: var(--fg); padding: 0.75rem 0.9rem 0.65rem; }
.float-player { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: min(380px, calc(100vw - 24px)); background: #111; color: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.float-player .stage-frame { height: 214px; }
.float-player .yt-bar { opacity: 1; }
.float-meta { display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.5rem 0.5rem; }
.float-open { flex: 1; min-width: 0; color: #fff; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-player button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 8px; padding: 0.3rem 0.55rem; }
@media (max-width: 720px) {
  .float-player { left: 0; right: 0; bottom: 58px; width: auto; border-radius: 12px 12px 0 0; }
  .float-player .stage-frame { height: 42vw; }
}
.theater .fs-stage { flex: 1; height: auto; min-height: 0; }
.theater .theater-meta { position: relative; left: auto; right: auto; bottom: auto; background: var(--bg); color: var(--fg); padding: 0.85rem 1rem 1.1rem; }
.player .ticker, .stage-frame .ticker { bottom: 3.4rem; }
.lang-pick > summary { width: 46px; height: 42px; padding: 0; justify-content: center; gap: 0; letter-spacing: 0; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 24px rgba(0,0,0,.28); }
.lang-pick > summary .flag { width: 28px; height: 19px; display: block; overflow: hidden; border-radius: 3px; background: none; font-size: 0; line-height: 0; }
.lang-pick > summary .flag .flag-svg { width: 28px; height: 19px; }
.lang-pick > summary::after { display: none; }
.lang-menu { border-radius: 22px; background: rgba(14,15,18,.94); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 22px 60px rgba(0,0,0,.45); }
.lang-menu select { border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); padding: 0.45rem 0.55rem; }
.flag-grid { gap: 0.28rem; }
.flag-grid button { display: grid; place-items: center; aspect-ratio: 1.35; min-width: 0; padding: 0.22rem; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid transparent; box-shadow: none; color: inherit; }
.flag-grid button.on { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.flag-svg { display: block; width: 26px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); overflow: hidden; }
.xlate-bar { margin: 0.5rem 0.65rem 0; padding: 0.28rem 0.35rem 0.28rem 0.75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.xlate-offer { border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.2)); }
.xlate-offer button, .xlate-bar select, .chat-compose select { border-radius: 999px; }
@media (max-width: 720px) {
  button.dock-btn, button.dock-play { width: 32px; height: 32px; }
  .yt-vol, .yt-left:hover .yt-vol, .stage-dock.vol-hold .yt-vol { width: 84px; opacity: 1; }
  .dock-time { font-size: 12px; }
}
.socials { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
a.social { border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.75rem; font-weight: 750; }
.sub-card { margin-top: 0.75rem; padding: 0.9rem 1rem; max-width: 22rem; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%), var(--surface); }
.sub-kicker { margin: 0; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); font-weight: 750; }
.sub-card strong { font-size: 1.8rem; letter-spacing: -0.04em; }
.sub-card strong span { margin-left: 0.15rem; font-size: 0.9rem; color: var(--muted); font-weight: 650; }
.sub-card ul { margin: 0.35rem 0 0.75rem; padding-left: 1.1rem; }
.sub-badge { display: inline-block; margin-right: 0.35rem; padding: 0.05rem 0.42rem; border-radius: 999px; background: var(--accent); color: #111; font-size: 0.68rem; font-weight: 800; vertical-align: middle; }
.event-slider { margin: 0 0 1.2rem; }
.event-card { display: grid; grid-template-columns: 150px 1fr; gap: 0.75rem; min-width: min(100%, 26rem); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.event-card img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; }
.event-card .count { margin: 0.7rem 0.8rem 0; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); }
.event-card h2, .event-card p, .event-card a { margin-left: 0.8rem; margin-right: 0.8rem; }
.empty-sched { width: min(220px, 100%); background: transparent; }
.sched-row { display: flex; justify-content: space-between; gap: 0.7rem; align-items: center; }
.ystudio { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.yside { position: sticky; top: 4.6rem; display: grid; gap: 0.15rem; padding: 0.4rem; }
.yside-kicker { margin: 0 0.7rem 0.35rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.yside a { display: block; padding: 0.55rem 0.75rem; border-radius: 10px; color: var(--muted); }
.yside a.on, .yside a:hover { background: var(--raised); color: var(--fg); }
.yside-channel { display: flex !important; align-items: center; gap: 0.55rem; margin-top: 0.8rem; }
.yside-channel span { font-weight: 650; color: var(--fg); }
.ys-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.8rem; }
.ys-top h1 { margin: 0; }
.ys-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0.8rem; margin-top: 0.8rem; }
.ys-jumps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.8rem; }
.ys-jumps a { display: block; padding: 0.9rem 1rem; border-radius: 14px; background: var(--surface, #17181c); border: 1px solid var(--line); }
.dash-metrics { margin-bottom: 0.2rem; }
@media (max-width: 900px) {
  .ystudio { grid-template-columns: 1fr; }
  .yside { position: static; display: flex; gap: 0.35rem; overflow: auto; }
  .yside-kicker, .yside-channel { display: none; }
  .yside a { flex: 0 0 auto; }
  .ys-split, .ys-jumps { grid-template-columns: 1fr; }
}
.setup-card { background: var(--surface, #17181c); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: 0.65rem; }
.setup-card h2 { margin: 0; font-size: 1.05rem; }
.setup-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.live-desk { margin-bottom: 0.15rem; }
.live-about { margin-top: 0.85rem; }
.live-start button.go { display: block; width: 100%; margin-top: 0.25rem; padding: 0.9rem 1.1rem; font-size: 1.08rem; order: 20; }
.live-start button.ghost { margin-top: 0.15rem; order: 19; }
.live-now form { margin: 0; }
details.live-extra { margin-top: 0.75rem; }
details.live-extra > summary { cursor: pointer; font-weight: 750; }
details.live-extra > summary::marker { color: var(--muted); }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; border: 0; margin: 0; padding: 0; }
.kind-card { display: grid; gap: 0.25rem; border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem; }
.kind-card strong { display: block; }
.kind-card span { color: var(--muted); font-size: 0.88rem; }
.mark-badge { position: relative; display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-left: 0.32em; vertical-align: -0.16em; border-radius: 50%; background: none; box-shadow: none; }
.mark-verified, .mark-creator { background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--badge) 42%, #fff), transparent 46%), radial-gradient(circle at 50% 62%, var(--badge), color-mix(in srgb, var(--badge) 68%, #000)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge) 35%, #fff), inset 0 -1px 2px rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.35); }
.mark-verified::after, .mark-creator::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); }
.mark-admin, .mark-moderator { width: 1.12em; height: 1.12em; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.mark-badge svg { width: 70%; height: 70%; position: relative; }
.mark-admin svg, .mark-moderator svg { width: 100%; height: 100%; }
.mark-verified path, .mark-creator path { fill: none; stroke: var(--tick, #fff); stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }
.mark-admin .seal, .mark-moderator .seal { fill: var(--badge); }
.mark-admin .glyph { fill: var(--tick, #fff); }
.mark-moderator .glyph { fill: none; stroke: var(--tick, #fff); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1 .mark-badge { width: 0.78em; height: 0.78em; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { margin: 0.2rem 0 0.4rem; }
.live-metrics, .live-grid { display: grid; gap: 0.8rem; margin: 0.8rem 0 1rem; }
.live-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live-grid { grid-template-columns: 1fr 1fr; }
.live-metrics .metric, .live-grid .panel { margin: 0; }
.live-metrics strong { font-size: 1.8rem; }
@media (max-width: 800px) { .live-metrics, .live-grid { grid-template-columns: 1fr; } }
.badge-samples { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.badge-samples span { display: inline-flex; align-items: center; gap: 0.15rem; }
.pw-meter { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem; align-items: center; }
.pw-meter i { display: block; height: 0.35rem; width: 0; border-radius: 99px; background: #8a3a3a; transition: width 0.15s ease; }
.pw-meter b { font-size: 0.78rem; color: var(--muted); font-weight: 650; }
.pw-meter.weak i { background: #d1614a; }
.pw-meter.fair i { background: #e2b657; }
.pw-meter.strong i { background: #53fc18; }
.pw-meter.weak b { color: #d1614a; }
.pw-meter.fair b { color: #e2b657; }
.pw-meter.strong b { color: #8dff62; }
@media (max-width: 700px) {
  .kind-pick { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .setup-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .event-card { grid-template-columns: 1fr; min-width: 16rem; }
}
.dash { display: grid; gap: 0.9rem; margin: 1rem 0 1.4rem; }
.dash-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.metric { background: var(--surface, #17181c); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; }
.metric span { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.02em; }
.metric strong { display: block; margin-top: 0.25rem; font-size: 1.7rem; letter-spacing: -0.04em; }
.dash-chart { background: var(--surface, #17181c); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.dash-chart h2 { margin: 0 0 0.4rem; font-size: 1rem; }
.dash-chart svg { width: 100%; height: 160px; color: var(--accent, #53fc18); }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { text-align: left; padding: 0.55rem 0.35rem; border-bottom: 1px solid var(--line); }
.dash-table th { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
@media (max-width: 800px) {
  .dash-metrics { grid-template-columns: 1fr 1fr; }
}

.nav-group summary { color: var(--fg); font-size: 0.78rem; letter-spacing: 0.12em; font-weight: 800; padding: 0.55rem 0.7rem; }
.nav-group summary b, .booth-nav a b, .link-index b, .media-menu a b, .tool-block legend { font-weight: 800; }
.fan-count { display: inline-flex; align-items: center; margin-left: 0.4rem; padding: 0.08rem 0.48rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums; vertical-align: middle; letter-spacing: 0; }
.fan-count::after { content: " fans"; font-weight: 650; color: var(--muted); }
h1 .fan-count::after { color: inherit; opacity: 0.75; }
.media-menu { display: flex; gap: 0.45rem; overflow: auto; margin: 0.8rem 0 1rem; padding-bottom: 0.2rem; }
.media-menu a { display: grid; flex: 0 0 auto; min-width: 5.5rem; padding: 0.55rem 0.75rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.media-menu a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.media-menu a.on { background: var(--accent); color: var(--ink); border-color: transparent; }
.media-menu a.on small { color: var(--ink); }
.similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; }
.similar-card { display: flex; gap: 0.7rem; align-items: center; padding: 0.7rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.similar-card span { display: grid; min-width: 0; }
.similar-card small { color: var(--muted); }
.similar-block, .media-shelf { margin: 1.2rem 0; }
.tool-block { border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem; margin: 0.6rem 0; }
.tool-block legend { padding: 0 0.3rem; }
.bot-card h2 { margin-top: 0; }
.link-index { display: grid; gap: 0.8rem; padding-left: 1.1rem; }
.dash-table small { display: block; font-weight: 450; }
.nle-preview { position: relative; }
.ov-letterbox { box-shadow: inset 0 9% 0 #000, inset 0 -9% 0 #000; }
.ov-frame { box-shadow: inset 0 0 0 10px rgba(255,255,255,.82); }
.ov-lower::after, .ov-grain::after, .ov-leak::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.ov-grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; background-image: radial-gradient(rgba(255,255,255,.35) 0.6px, transparent 0.7px); background-size: 3px 3px; }
.ov-leak { box-shadow: inset -18% -10% 50px rgba(255,120,40,.35); }
.fx-glitch { animation: fxglitch 0.35s steps(2) infinite; }
.fx-split { filter: drop-shadow(3px 0 0 rgba(255,0,80,.65)) drop-shadow(-3px 0 0 rgba(0,180,255,.65)); }
.fx-pixel { image-rendering: pixelated; filter: contrast(1.25); }
.fx-vhs { animation: fxvhs 0.25s infinite; }
.fx-wave { animation: fxwave 1.6s ease-in-out infinite; }
.fx-fisheye { border-radius: 46%; overflow: hidden; }
@keyframes fxglitch { 50% { transform: translateX(2px); } }
@keyframes fxvhs { 50% { filter: contrast(1.2) saturate(0.7); } }
@keyframes fxwave { 50% { transform: skewX(2deg); } }
@media (max-width: 720px) {
  .similar { grid-template-columns: 1fr; }
  .media-menu a { min-height: 44px; }
}

.get-app { margin: 0 0 1.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #17181c); }
.get-app h2 { margin: 0 0 0.2rem; }
.store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }
.store-badge { display: inline-flex; line-height: 0; border-radius: 8px; }
.store-badge.is-soon { opacity: 0.7; }
.store-svg { width: 180px; height: 54px; display: block; object-fit: cover; border-radius: 8px; background: #000; }
.two-cents, .collab-people { margin: 1.3rem 0; }
.penny, summary.penny {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0.35rem 0;
  padding: 0;
  border-radius: 50%;
  border: 5px solid #7a4e18;
  background: radial-gradient(circle at 34% 28%, #ffe7a8, #e0a24a 38%, #b56a22 68%, #7a4312 100%);
  color: #3a2208;
  text-decoration: none;
  box-shadow: inset 0 0 0 3px rgba(255, 226, 150, 0.55), inset 0 -8px 12px rgba(90, 40, 8, 0.35), 0 8px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  list-style: none;
  text-align: center;
}
.penny::-webkit-details-marker, summary.penny::-webkit-details-marker { display: none; }
.penny b { font-size: 1.45rem; letter-spacing: -0.04em; line-height: 1; }
.penny small { font-size: 0.48rem; letter-spacing: 0.1em; font-weight: 800; }
details[open] > .penny { transform: translateY(1px); box-shadow: inset 0 0 0 3px rgba(255, 226, 150, 0.4), inset 0 6px 10px rgba(60, 24, 4, 0.35); }
.two-cents details { margin: 0.4rem 0 0.8rem; }
.staff-room .staff-log, .staff-panel .staff-log {
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  background: #0e0f12;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  min-height: 8rem;
}
.staff-log p { margin: 0; }
.staff-log small { color: var(--muted); }
.staff-compose { display: flex; gap: 0.45rem; margin-top: 0.6rem; }
.staff-compose input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 0.85rem; }
.staff-dock { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: grid; justify-items: end; }
.staff-dock .staff-panel { width: min(360px, calc(100vw - 1.5rem)); margin-bottom: 0.55rem; background: var(--surface, #17181c); border: 1px solid var(--line); border-radius: 16px; padding: 0.85rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.staff-dock .penny { width: 74px; height: 74px; }
.staff-dock .penny b { font-size: 1rem; }
.collab-line { margin: 0.35rem 0 0.8rem; }
.collab-people .row-buttons { flex-wrap: wrap; }
@media (max-width: 720px) {
  .staff-dock { right: 0.6rem; bottom: 4.6rem; }
  .store-svg { width: 160px; height: 48px; }
}
.top-start, .top-end, .top-switches { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.top-end { justify-content: flex-end; }
.top-switches { flex: 0 1 auto; }
.top .account { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.top .account a.at { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-go { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 999px; }
.search-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-go svg { width: 16px; height: 16px; display: block; }
.stack > button:not(.ghost):not(.switch):hover,
.row-buttons > button:not(.ghost):hover,
.row-buttons > a.solid:hover,
a.solid:hover,
button:not(.ghost):not(.switch):not(.search-go):not(.dock-play):not(.dock-btn):not(.yt-big):not(.dock-choice):not(.emoji-btn):not(.x-note):not(.len):hover { transform: translateY(-1px); filter: brightness(1.06); }
button:not(.switch):not(.search-go):not(.dock-play):not(.dock-btn):not(.yt-big):not(.dock-choice):not(.emoji-btn):active,
a.solid:active, a.ghost:active { transform: translateY(0) scale(0.98); }
button:focus-visible, a.solid:focus-visible, a.ghost:focus-visible, .chips a:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 75%, white); outline-offset: 3px; }
button.ghost:hover, a.ghost:hover { background: color-mix(in srgb, var(--fg) 14%, transparent); border-color: color-mix(in srgb, var(--fg) 28%, transparent); }
.group-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; margin-top: 0.8rem; }
.group-card h2 { margin-top: 0.35rem; }
.vis { display: inline-flex; align-items: center; height: 1.55rem; padding: 0 0.65rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.vis-public { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.vis-private { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.clock-line { margin: 0 0 0.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pill.night { top: 1.7rem; background: #24306e; color: #e7edff; letter-spacing: 0.08em; }
.night-line .pill.night { position: static; top: auto; }
.thumb.is-night::after, .profile-stage.is-night::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(16, 24, 64, 0.42), rgba(8, 10, 24, 0.18)); }
.player.is-night { box-shadow: inset 0 0 0 1px rgba(170, 190, 255, 0.35), inset 0 0 90px rgba(12, 18, 48, 0.5); }
.night-card { margin: 0.45rem 0 0.2rem; }
.night-line { display: flex; gap: 0.5rem; align-items: center; margin: 0.2rem 0; }
.night-line.on .pill.night { box-shadow: 0 0 12px rgba(140, 170, 255, 0.7); }
.night-days { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; }
a.solid, a.ghost, a.ember { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.tabs a { border: 1px solid transparent; font-weight: 650; transition: background .16s ease, color .16s ease; }
.tabs a:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg); }
.search-go, .search-clear { box-shadow: none; }
.search-go { background: var(--accent); color: var(--ink); }
button:disabled, .solid:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.emoji-grid button:hover, .emoji-recent button:hover { transform: scale(1.12); filter: none; }
.share-pop button:hover, .flag-grid button:hover, .wm-corners button:hover, button.x-note:hover { transform: none; filter: none; }
.group-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.group-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.board { display: grid; grid-template-rows: auto minmax(220px, 42vh) auto; background: #0c0d10; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-width: 0; }
.board-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.live-dot-label { display: inline-flex; align-items: center; gap: 0.35rem; color: #ff5a52; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.live-dot-label::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.35; } }
.board-log { overflow: auto; display: grid; gap: 0.5rem; align-content: start; padding: 0.8rem; }
.board-line { display: grid; gap: 0.25rem; padding: 0.6rem 0.7rem; border-radius: 14px; background: color-mix(in srgb, #fff 5%, transparent); }
.board-line p { margin: 0; white-space: pre-wrap; }
.board-line small { color: var(--muted); }
.board-line img { width: min(100%, 360px); border-radius: 12px; }
.board-compose { display: grid; gap: 0.45rem; padding: 0.75rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, #000); }
.board-compose textarea { min-height: 4.2rem; }
.board-note, .board-locked { margin: 0; padding: 0.9rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-chip { height: 30px; padding: 0 0.7rem; font-size: 0.75rem; }
@media (max-width: 800px) {
  .group-split, .group-head { grid-template-columns: 1fr; display: grid; }
}
.ask-box { margin: 1.2rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #17181c); display: grid; gap: 0.7rem; }
.ask-box h2, .ask-box h3 { margin: 0; }
.ask-card { display: grid; gap: 0.45rem; }
.two-cents.setup-card { margin-top: 0.4rem; }
@media (max-width: 1100px) {
  .switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  button.switch { padding: 0 0.28rem; }
}
@media (max-width: 980px) {
  .top-end { max-width: calc(100vw - 4.2rem); overflow-x: auto; scrollbar-width: none; }
  .top-end::-webkit-scrollbar { height: 0; }
  .top .account a.at { display: none; }
  .top .account .ghost, .top .account button { padding: 0.32rem 0.65rem; font-size: 0.75rem; }
}
.home-live { margin: 0 0 1.25rem; }
.home-stage { position: relative; display: block; aspect-ratio: 16/9; max-height: 520px; border-radius: 18px; overflow: hidden; background: #111 center/cover; color: #fff; }
.home-stage-meta { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 0.15rem; padding: 2.2rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.home-stage-meta strong { font-size: clamp(1.15rem, 2vw, 1.7rem); letter-spacing: -0.03em; }
.home-stage-wait { background: linear-gradient(160deg, #1a1c22, #0c0d10); }
@media (max-width: 720px) {
  .home-stage { max-height: none; border-radius: 14px; }
}
.flag-drop { position: relative; display: inline-flex; max-width: 100%; vertical-align: middle; }
.flag-drop > select { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.flag-face, .flag-opt { display: inline-flex; align-items: center; gap: 0.45rem; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); border: 1px solid var(--line); box-shadow: none; font-weight: 650; letter-spacing: 0; }
.flag-face { border-radius: 999px; padding: 0.22rem 0.7rem 0.22rem 0.28rem; max-width: 100%; }
.flag-face span { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag-pop { position: absolute; z-index: 60; top: calc(100% + 0.35rem); left: 0; width: min(280px, 78vw); max-height: 280px; overflow: auto; padding: 0.35rem; border-radius: 16px; background: rgba(14,15,18,.96); color: #f4f5f7; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.flag-opt { width: 100%; border: 0; border-radius: 10px; padding: 0.32rem 0.45rem; text-align: left; background: transparent; color: inherit; }
.flag-opt.on, .flag-opt:hover, .flag-face:hover { background: rgba(255,255,255,.1); transform: none; filter: none; }
.flag-face .flag-svg, .flag-opt .flag-svg { width: 22px; height: 15px; flex: 0 0 auto; }
html[data-theme="light"] .flag-pop { background: #fff; color: #141518; border-color: #d5d7dc; }
html[data-theme="light"] .flag-opt.on, html[data-theme="light"] .flag-opt:hover { background: #eef0f3; }
.spot-gate { position: fixed; z-index: 42; right: 1rem; bottom: 5.2rem; width: min(22rem, calc(100vw - 1.5rem)); display: grid; gap: 0.45rem; padding: 0.9rem 1rem; background: var(--surface); color: var(--fg); border: 1px solid var(--accent); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.spot-gate h2 { font-variant-numeric: tabular-nums; font-size: 1.8rem; margin: 0; }
.spot-gate p { margin: 0; }
.spot-gate .spot-rules { color: var(--muted); font-size: 0.86rem; }
.spot-gate .kicker { color: var(--accent); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 720px) {
  .spot-gate { left: 0.75rem; right: 0.75rem; width: auto; bottom: 4.6rem; }
}
input[type="file"] { display: block; width: 100%; min-height: 3rem; height: auto; padding: 0.4rem 0.5rem; background: var(--raised); color: var(--fg); border: 1px dashed color-mix(in srgb, var(--fg) 32%, transparent); border-radius: 0.7rem; cursor: pointer; line-height: 1.4; }
input[type="file"]::file-selector-button, input[type="file"]::-webkit-file-upload-button { appearance: none; -webkit-appearance: none; margin: 0 0.75rem 0 0; border: 0; border-radius: 999px; padding: 0.48rem 0.9rem; background: var(--accent); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.file-picked { display: block; margin-top: 0.3rem; color: var(--accent); font-weight: 650; }
.file-field { display: grid; gap: 0.35rem; }
.logo:has(img) b::before { content: none; }
.logo img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.site-foot img { height: auto; max-height: 200px; width: auto; max-width: min(280px, 70vw); object-fit: contain; }


/* phone-header */

@media (max-width: 720px) {

  .top {

    grid-template-columns: auto minmax(0, 1fr) auto;

    grid-template-areas: "start . account" "search search search" "tools tools tools";

    gap: 0.5rem;

    min-height: 0;

    padding: 0.55rem 0.7rem 0.65rem;

  }

  .top-start { grid-area: start; gap: 0.35rem; }

  form.search { grid-area: search; width: 100%; }

  .top-end { display: contents; max-width: none; overflow: visible; }

  .top-switches { grid-area: tools; display: flex; justify-content: space-between; width: 100%; gap: 0.25rem; overflow: visible; }

  .account { grid-area: account; justify-self: end; }

  .top .account a.at, .top .account .ghost, .top .account form, .top .account button { display: none; }

  .top .logo { padding: 0; }

  .top .logo img { max-height: 32px !important; height: auto !important; width: auto !important; }

  .menu { height: 36px; padding: 0 0.7rem; font-size: 0.8rem; }

  button.switch { height: 34px; padding: 0 0.28rem; }

  .flag-face { padding: 0.2rem 0.35rem; }

  .flag-face span { display: none; }

  .side .logo img { max-height: 42px; height: auto !important; width: auto !important; }

}



/* player-bar */

.stage-frame { height: auto !important; }

.stage-frame > video.stage, .stage-frame video.stage { height: auto !important; max-height: 78vh; aspect-ratio: 16/9; }

.stage-dock { z-index: 30 !important; }

.yt-bar, .yt-bar button, button.yt-big, .dock-pop, .clip-sheet { pointer-events: auto !important; }

.yt-bar { left: 10px; right: 10px; bottom: 10px; padding: 8px 8px 6px; border-radius: 18px; background: rgba(10,10,12,.72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); }

button.dock-play, button.dock-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); }

button.dock-play svg, button.dock-btn svg { pointer-events: none; }

button.dock-btn[data-act="pip"] { width: auto; height: 36px; padding: 0 12px 0 10px; gap: 6px; border-radius: 999px; background: #fff; color: #111; }

button.dock-btn[data-act="pip"]::after { content: "PiP"; font-size: 12px; font-weight: 750; }

.float-player .float-pip { background: #fff; color: #111; font-weight: 750; border-radius: 999px; }



/* player-bar-2 */

.yt-bar, .stage-dock.show .yt-bar, .stage-dock.is-paused .yt-bar, .stage-dock.is-playing .yt-bar { opacity: 1 !important; z-index: 40; overflow: visible; }

.yt-right { margin-left: auto; flex: 0 0 auto; }

button.dock-btn.on { background: #fff; color: #111; }

@media (max-width: 720px) {

  .yt-bar { left: 6px; right: 6px; bottom: 8px; padding: 6px; }

  .yt-vol { display: none !important; }

  .dock-time { font-size: 11px; padding: 0 2px; }

  button.dock-play, button.dock-btn, button.dock-btn[data-act="pip"] { width: 34px; height: 34px; padding: 0; }

  button.dock-btn[data-act="pip"]::after { content: none; }

}



/* phone-player */

@media (hover: none), (pointer: coarse) {

  .yt-bar, .stage-dock.show .yt-bar, .stage-dock.is-playing .yt-bar { opacity: 1 !important; left: 8px; right: 8px; bottom: 8px; padding: 8px; }

  .yt-row { flex-wrap: wrap; justify-content: center; gap: 6px; }

  .yt-left, .yt-right { flex: 1 1 100%; margin: 0; justify-content: center; }

  .yt-vol { display: none !important; }

  .dock-time { font-size: 12px; }

  button.dock-play, button.dock-btn, button.dock-btn[data-act="pip"] { width: 44px; height: 44px; padding: 0; }

  button.dock-btn[data-act="pip"]::after { content: none; }

  .stage-dock.is-playing button[data-act="play"] svg { display: none; }

  .stage-dock.is-playing button[data-act="play"]::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }

}


/* kick-player */
.stage-frame { display: grid !important; height: auto !important; }
.stage-frame > video.stage { grid-area: 1 / 1; position: relative !important; z-index: 1; width: 100% !important; height: auto !important; aspect-ratio: 16/9; }
.stage-frame > .brand-layer, .stage-frame > .user-mark { grid-area: 1 / 1; }
.stage-frame > .stage-dock, .player > .stage-dock { z-index: 20 !important; }
.stage-dock { pointer-events: none !important; }
.yt-bar, .yt-bar * , button.yt-big, .dock-pop, .clip-sheet { pointer-events: auto !important; }
.yt-bar {
  left: 0 !important; right: 0 !important; bottom: 0 !important; opacity: 1 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.15) 28%, rgba(0,0,0,.88) 100%) !important;
  padding: 42px 4px 2px !important;
}
.yt-row { flex-wrap: nowrap !important; gap: 0 !important; min-height: 44px; }
.yt-left, .yt-right { gap: 0 !important; }
.yt-right { margin-left: auto; max-width: 62%; overflow-x: auto; scrollbar-width: none; }
.yt-vol { display: none !important; }
.dock-seek { height: 4px !important; margin: 0 10px 2px !important; border-radius: 99px !important; background: rgba(255,255,255,.28) !important; }
.yt-fill, .yt-fill::after { background: var(--accent, #53fc18) !important; }
button.dock-play, button.dock-btn, button.dock-btn[data-act="pip"] {
  width: 44px !important; height: 44px !important; padding: 0 !important; gap: 0 !important;
  border-radius: 10px !important; background: transparent !important; color: #fff !important; box-shadow: none !important;
  touch-action: manipulation;
}
button.dock-btn[data-act="pip"]::after { content: none !important; }
button.dock-play svg, button.dock-btn svg { width: 22px !important; height: 22px !important; pointer-events: none !important; }
button.dock-btn.on { background: rgba(255,255,255,.16) !important; color: #fff !important; }
.watermark, .user-mark, .brand-layer { pointer-events: none !important; }
.stage-dock.is-playing [data-act="play"] svg { display: none !important; }
.stage-dock.is-playing [data-act="play"]::before { content: ""; width: 11px; height: 14px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
button.yt-big { width: 74px !important; height: 52px !important; border-radius: 14px !important; background: rgba(0,0,0,.55) !important; }


.phone-logo, .phone-more { display: none; }

@media (max-width: 720px) {

  .phone-logo { display: inline-flex !important; align-items: center; min-width: 0; }

  .phone-logo b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 7rem; }

  .phone-logo img { max-height: 32px !important; width: auto !important; height: auto !important; }

  .head-logo { display: none !important; }

  .phone-more { display: block; position: relative; }

  .top { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important; grid-template-areas: "start search more" !important; align-items: center; gap: 0.4rem; padding: 0.5rem 0.7rem; }

  .top-start { grid-area: start; display: flex; align-items: center; gap: 0.35rem; min-width: 0; }

  .top form.search { grid-area: search; width: 100%; min-width: 0; }

  .phone-more { grid-area: more; }

  .phone-more > summary { display: inline-flex; align-items: center; height: 36px; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 750; list-style: none; cursor: pointer; }

  .phone-more > summary::-webkit-details-marker { display: none; }

  .phone-more-box { display: none; position: absolute; z-index: 50; right: 0; top: calc(100% + 8px); width: min(22rem, calc(100vw - 1.2rem)); padding: 0.75rem; border-radius: 16px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.45); }

  .phone-more[open] .phone-more-box { display: block; }

  .phone-more .top-end { display: grid !important; max-width: none; overflow: visible; gap: 0.65rem; position: static; }

  .phone-more .top-switches { display: grid; width: 100%; gap: 0.4rem; }

  .phone-more .account { display: flex; flex-wrap: wrap; gap: 0.4rem; }

  .phone-more .switch-label, .phone-more .flag-face span { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; }

  .phone-more .account a, .phone-more .account .ghost, .phone-more .account form, .phone-more .account button { display: inline-flex !important; }

}



/* fix3 */

.top { z-index: 40; }

.side { z-index: 50; }

.stage-dock, .stage-frame > .stage-dock, .player > .stage-dock { z-index: 4 !important; }

.yt-bar { z-index: 2; }

.dock-pop, .clip-sheet { z-index: 6 !important; bottom: 118px !important; }

.stage-frame:fullscreen, .stage-frame:-webkit-full-screen, .player:fullscreen, .player:-webkit-full-screen, video.stage:fullscreen, video.stage:-webkit-full-screen { width: 100% !important; height: 100% !important; max-height: none !important; background: #000 !important; }

.stage-frame:fullscreen > video.stage, .stage-frame:-webkit-full-screen > video.stage, .player:fullscreen video.stage, .player:-webkit-full-screen video.stage { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain !important; }

@media (max-width: 720px) {

  .phone-more-box { position: fixed !important; z-index: 80 !important; left: 10px !important; right: 10px !important; top: 62px !important; width: auto !important; max-height: min(72vh, 540px); overflow: auto; padding: 0.4rem 0.9rem 0.9rem; border-radius: 18px; }

  .phone-more .top-end { display: block !important; }

  .phone-more .top-switches { display: flex; flex-direction: column; width: 100%; gap: 0; }

  .phone-more .top-switches form, .phone-more .top-switches > button, .phone-more .top-switches > .flag-drop, .phone-more .top-switches > span { width: 100%; min-height: 48px; margin: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }

  .phone-more button.switch { width: 100%; height: 48px; padding: 0; justify-content: space-between; flex-direction: row-reverse; background: transparent; }

  .phone-more .account { display: grid; gap: 0.5rem; margin-top: 0.8rem; }

  .phone-more .account a, .phone-more .account button, .phone-more .account .ghost { width: 100%; height: 42px; justify-content: center; }

  .phone-more .flag-pop { position: static; width: 100%; max-height: 200px; }

}



/* fix4 */

@media (max-width: 980px) {

  .top { z-index: 70 !important; }

  .side { z-index: 60 !important; top: 64px; height: calc(100dvh - 64px); padding-top: 0.7rem; }

  .side-close { display: flex; align-items: center; justify-content: center; width: 100%; height: 42px; margin: 0 0 0.7rem; border-radius: 12px; background: var(--fg); color: var(--ink); font-weight: 750; border: 0; box-shadow: none; }

  .side-nav { gap: 0.4rem; }

  .side-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: 12px; background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, #fff 12%, transparent); color: var(--fg); font-weight: 700; }

  .side-nav a.on { background: var(--accent); color: var(--ink); border-color: transparent; box-shadow: none; }

  .menu, .dock-menu { position: relative; z-index: 2; min-width: 72px; height: 38px; justify-content: center; }

  body.nav-open .menu { background: var(--fg); color: var(--ink); }

}

@media (max-width: 720px) {

  .phone-more-box { position: absolute !important; left: auto !important; right: 0 !important; top: calc(100% + 8px) !important; width: min(300px, calc(100vw - 16px)) !important; padding: 0.7rem !important; }

  .phone-more[open] .phone-more-box { display: grid !important; gap: 0.65rem; }

  .phone-more .top-switches { display: flex !important; flex-flow: row wrap !important; gap: 0.4rem !important; }

  .phone-more .top-switches form, .phone-more .top-switches > button, .phone-more .top-switches > .flag-drop, .phone-more .top-switches > span { width: auto !important; min-height: 0 !important; border: 0 !important; display: inline-flex !important; }

  .phone-more button.switch { width: auto !important; height: 38px !important; padding: 0 0.75rem !important; border-radius: 999px !important; border: 1px solid var(--line) !important; background: color-mix(in srgb, var(--fg) 7%, transparent) !important; flex-direction: row !important; justify-content: center !important; }

  .phone-more .account { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0.45rem !important; margin: 0 !important; }

  .phone-more .account a, .phone-more .account button { height: 40px !important; border-radius: 12px !important; }

}



/* fix5 */

@media (max-width: 980px) {

  .side-close, body.nav-open .menu { background: var(--accent) !important; color: var(--ink) !important; }

  .side-close, .menu, .dock-menu, .side-nav a { display: flex; align-items: center; line-height: 1; }

  .side-close, .menu, .dock-menu { justify-content: center; }

  .side-nav a { justify-content: flex-start; padding-left: 0.9rem; }

}

@media (max-width: 720px) {

  .phone-more button.switch { display: inline-flex !important; align-items: center !important; justify-content: center !important; height: 40px !important; line-height: 1 !important; gap: 0.45rem !important; }

  .phone-more .switch-label { letter-spacing: 0 !important; text-transform: none !important; font-size: 0.85rem !important; line-height: 1 !important; color: var(--fg) !important; }

  .phone-more .account a, .phone-more .account button { align-items: center !important; justify-content: center !important; line-height: 1 !important; }

}

