/* tiertube — "late-night broadcast". Tier colors are the only saturated color. */
:root {
  color-scheme: dark;
  --bg: #0e0d0c; --s1: #181614; --s2: #221f1c; --line: #2e2a26;
  --text: #f3eee8; --muted: #9b938a;
  --btn-bg: #f3eee8; --btn-fg: #0e0d0c;
  --focus: #ff7f7f; --up: #bfff7f; --down: #ff7f7f;
  --overlay: rgba(0,0,0,.72); --shadow: 0 10px 30px rgba(0,0,0,.45);
  --skel-a: #1c1a17; --skel-b: #292521; --topbar-bg: rgba(14,13,12,.82);
  --unrated-bg: #3a3631; --unrated-fg: #f3eee8;
  --ink: #0b0a09; /* text on tier colors: always near-black */
  --tS: #ff7f7f; --tA: #ffbf7f; --tB: #ffdf7f; --tC: #ffff7f; --tD: #bfff7f; --tF: #7fffff;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 10px; --topbar-h: 60px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f4ef; --s1: #ffffff; --s2: #efebe4; --line: #e0dad1;
    --text: #1a1714; --muted: #6e665d;
    --btn-bg: #1a1714; --btn-fg: #f7f4ef;
    --focus: #c4332f; --up: #2f7a12; --down: #c4332f;
    --overlay: rgba(247,244,239,.82); --shadow: 0 10px 30px rgba(60,40,20,.16);
    --skel-a: #ebe6dd; --skel-b: #f6f2eb; --topbar-bg: rgba(247,244,239,.86);
    --unrated-bg: #d9d2c7; --unrated-fg: #1a1714;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f4ef; --s1: #ffffff; --s2: #efebe4; --line: #e0dad1;
  --text: #1a1714; --muted: #6e665d;
  --btn-bg: #1a1714; --btn-fg: #f7f4ef;
  --focus: #c4332f; --up: #2f7a12; --down: #c4332f;
  --overlay: rgba(247,244,239,.82); --shadow: 0 10px 30px rgba(60,40,20,.16);
  --skel-a: #ebe6dd; --skel-b: #f6f2eb; --topbar-bg: rgba(247,244,239,.86);
  --unrated-bg: #d9d2c7; --unrated-fg: #1a1714;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); min-height: 100vh; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
body { overflow-x: clip; }
.view, .page, .home-main, .wmain, .wside, .content, .row-main { min-width: 0; }
.wmain > *, .wside > * { min-width: 0; max-width: 100%; }
.ctitle, .wtitle, .bc-title, .tv-title, .act, .cchan, .a-val { overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--tS); color: var(--ink); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
kbd { font: 500 11px var(--mono); background: var(--s2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; margin: 0 2px; color: var(--text); }
.err { color: var(--down); font-size: 13.5px; min-height: 1.2em; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
[hidden] { display: none !important; }

/* tier color helpers */
.t-S { --tc: var(--tS); } .t-A { --tc: var(--tA); } .t-B { --tc: var(--tB); }
.t-C { --tc: var(--tC); } .t-D { --tc: var(--tD); } .t-F { --tc: var(--tF); }
.t-U { --tc: var(--unrated-bg); }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 500 22px/1 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.wm-light { font-weight: 500; } .wm-bold { font-weight: 800; }
.logo-mark { display: block; flex: none; overflow: visible; transition: transform .3s; }
.wordmark:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.logo-outline { stroke: none; }
.auth-logo { margin-bottom: -4px; }
.wordmark:hover { text-decoration: none; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--topbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tb-inner { padding: 0 24px; min-height: var(--topbar-h); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.search { flex: 1 1 220px; max-width: 460px; }
.search input { width: 100%; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--text); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.tv .topbar { display: none; }
.themebtn { width: 34px; padding: 0; font-size: 16px; line-height: 1; justify-content: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 9px 18px; font: 600 14px/1 var(--body); background: var(--s2); color: var(--text); transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.sm { padding: 8px 13px; font-size: 13px; }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover { opacity: .88; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--s2); }
.btn.outline { background: transparent; border-color: var(--line); }
.btn.outline:hover { border-color: var(--text); }
.btn.block { width: 100%; justify-content: center; padding: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn { background: none; border: 1px solid var(--line); border-radius: 6px; width: 24px; height: 24px; padding: 0; line-height: 1; color: var(--muted); font-size: 13px; }
.iconbtn:hover:not(:disabled) { color: var(--text); border-color: var(--text); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--tc, var(--tA)); color: var(--ink); font: 800 12px var(--display); }
.avatar.xl { width: 64px; height: 64px; border-radius: 14px; font-size: 32px; background: var(--tS); }
.usermenu { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; z-index: 50; }
.menu a, .menu button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--s2); text-decoration: none; }

/* pages */
.view { min-height: calc(100vh - var(--topbar-h)); outline: none; }
.view-in { }
@keyframes fadein { from { transform: translateY(6px); } to { transform: none; } }
.page { width: 100%; padding: 22px 24px 80px; }
.page.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-h { font: 800 clamp(28px, 4vw, 40px)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 6px; }
.empty-page { text-align: center; padding-top: 12vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-page h1 { font: 800 44px var(--display); letter-spacing: -.03em; }
.loading-page { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: 14px; margin-top: 12px; }
.empty-state h2 { font: 800 24px var(--display); letter-spacing: -.02em; }
.empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* home */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.rail { display: none; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.chead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sb-toggle { display: none !important; }
.filters-btn { gap: 8px; }
.badge { background: var(--btn-bg); color: var(--btn-fg); border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.fsummary { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 12px; padding: 6px 8px 6px 12px; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.fsummary span:nth-child(2) { font-weight: 600; overflow-wrap: anywhere; }
.fs-x { color: var(--muted); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; }
.fs-x:hover { background: var(--s2); color: var(--text); text-decoration: none; }

/* sidebar: static column on desktop, slide-in drawer below 1024px */
.sidebar { font-size: 14px; }
.sb-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sb-title { font: 800 20px var(--display); letter-spacing: -.02em; }
.sb-sec { margin-bottom: 22px; }
.sb-h { font: 700 11.5px var(--display); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 8px; }
.navlist { display: flex; flex-direction: column; gap: 1px; }
.navrow { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 7px; color: var(--text); }
.navrow:hover { background: var(--s2); text-decoration: none; }
.navrow.on { background: var(--s2); font-weight: 600; }
.navrow.on::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 3px; background: var(--text); }
.navrow.sub { padding-left: 24px; font-size: 13px; color: var(--muted); }
.navrow.sub.on { color: var(--text); }
.nr-l { min-width: 0; overflow-wrap: anywhere; }
.nr-c { font-size: 11.5px; color: var(--muted); flex: none; }
.sb-select { width: 100%; background: var(--s1); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.sb-select.on { border-color: var(--text); }
.sidebar .fpills.len { flex-wrap: wrap; }
.sb-clear { margin: -6px 0 18px; font-size: 13px; }
.sb-after { padding-top: 14px; border-top: 1px solid var(--line); }
.sb-after .strip { font-size: 12px; gap: 4px 12px; }
.sb-backdrop { display: none; }

@media (max-width: 1023px) {
  .sidebar { position: fixed; z-index: 90; left: 0; top: 0; bottom: 0; width: min(330px, 88vw); background: var(--s1); border-right: 1px solid var(--line); padding: 16px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-102%); visibility: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; visibility: visible; transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .sidebar.noanim, .sidebar.noanim.open { transition: none; }
  .sb-head { display: flex; }
  .sb-backdrop.open { display: block; position: fixed; inset: 0; z-index: 85; background: var(--overlay); animation: fadein .2s both; }
}
@media (min-width: 1024px) {
  .layout { grid-template-columns: 232px minmax(0, 1fr); gap: 32px; }
  .sidebar { position: sticky; top: var(--topbar-h); align-self: start; max-height: calc(100vh - var(--topbar-h)); overflow-y: auto; padding: 18px 8px 24px 0; margin-right: -8px; scrollbar-width: thin; }
  .sb-toggle { display: inline-flex !important; width: 100%; }
  .sb-toggle .seg-b { flex: 1; text-align: center; }
  .main-head { display: none; }
  .filters-btn { display: none; }
  .chead { margin-bottom: 0; }
}
@media (min-width: 1280px) {
  .layout.home { grid-template-columns: 232px minmax(0, 1fr) 300px; }
  .rail { display: block; position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 40px); overflow: auto; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
}
.rail-h { font: 700 14px var(--display); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tS); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.act { font-size: 13px; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.act:first-child { border-top: 0; }
.act-u { font-weight: 600; } .act-v { color: var(--muted); }
.act-v:hover { color: var(--text); }
.act .chip { vertical-align: middle; }
.act-t { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.strip { display: flex; gap: 18px; color: var(--muted); font-size: 13px; min-height: 20px; flex-wrap: wrap; }
.strip b { color: var(--text); font-weight: 600; }
.seg { display: inline-flex; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-b { padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-b:hover { text-decoration: none; color: var(--text); }
.seg-b.on { background: var(--btn-bg); color: var(--btn-fg); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fchip { display: inline-flex; align-items: center; background: var(--s2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
button.fchip:hover, a.fchip:hover { border-color: var(--text); text-decoration: none; }

/* filter bar */
.fbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.fpills, .tabs { scrollbar-width: none; }
.fpills::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.fpills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.fpills.sub { padding-left: 14px; border-left: 2px solid var(--line); }
.fpill { flex: none; display: inline-flex; gap: 7px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .15s, border-color .15s; }
.fpill:hover { color: var(--text); border-color: var(--muted); }
.fpill.on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.fpill .fc { font-size: 11px; opacity: .75; }
.frow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.frow select, .metasel { background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; max-width: 100%; }
.metasel { border-radius: 8px; }
.frow select.on { border-color: var(--text); }
.fpills.len { padding: 0; overflow: visible; }
.factive { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fbar.compact .fpills { flex-wrap: wrap; overflow: visible; }

/* tier rows */
.trow { display: grid; grid-template-columns: 112px minmax(0, 1fr); background: var(--s1); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: clip; transition: border-color .15s, box-shadow .15s; }
.tlabel { background: var(--tc); color: var(--ink); border: 0; padding: 0; text-align: center; font: inherit; display: block; }
button.tlabel { cursor: pointer; width: 100%; }
.tl-in { position: sticky; top: calc(var(--topbar-h) + 8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 16px 6px; min-height: 100px; }
.t-U .tlabel { color: var(--unrated-fg); }
.tl-letter { font: 800 clamp(44px, 6vw, 64px)/1 var(--display); letter-spacing: -.04em; }
.t-U .tl-letter { font-size: 28px; }
.tl-name { font: 600 11px/1.15 var(--body); text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.tl-count { font-size: 11px; opacity: .65; margin-top: 4px; }
.row-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 14px; align-content: start; min-height: 100px; }
.row-main { min-width: 0; }
.row-more { display: flex; justify-content: center; padding: 0 14px; }
.row-more:not(:empty) { padding-bottom: 14px; }
.row-empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 24px 0; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.row-empty a { text-decoration: underline; }
.trow.over { border-color: var(--tc); box-shadow: 0 0 0 2px var(--tc); }
.pool-h { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 10px; }

/* cards */
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--s2); border-radius: var(--r); overflow: hidden; display: block; }
.thumb img, .thumb-link { width: 100%; height: 100%; display: block; }
.thumb img { object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.thumb img.broken { visibility: hidden; }
.card:hover .thumb img, .bcard:hover .thumb img, .mini:hover .thumb img { transform: scale(1.03); }
.dist { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; display: flex; background: rgba(0,0,0,.35); }
.dist i { background: var(--tc); display: block; min-width: 2px; }
.dur { position: absolute; right: 6px; bottom: 10px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px; }
.cbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ctitle { font: 600 14px/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cchan { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catline { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.catline:empty { display: none; }
.catline .tag { font-size: 10.5px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--muted); }
.metaslot { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; min-width: 0; }
.metaslot .meta { flex: 1; min-width: 0; }
.chip { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--tc); color: var(--ink); font: 800 15px/1 var(--display); }
.chip.sm { min-width: 22px; height: 22px; font-size: 13px; border-radius: 5px; }
.chip.unrated { background: var(--unrated-bg); color: var(--unrated-fg); opacity: .8; }
.chip.pop, .badge-big.pop { animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.5) rotate(-12deg); } 60% { transform: scale(1.25); } 100% { transform: none; } }
.score { font-weight: 500; }
.votes { color: var(--muted); font-size: 12px; }
.pips { display: inline-flex; gap: 2px; }
.pip { width: 5px; height: 10px; border-radius: 1.5px; background: var(--line); }
.pip.on { background: var(--text); }
.mv { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mv small { font: 400 11px var(--mono); color: var(--muted); }
.mv.up { color: var(--up); } .mv.down { color: var(--down); }
.split { font-size: 11px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.mybtn { margin-left: auto; width: 26px; height: 26px; border-radius: 6px; border: 1px dashed var(--muted); background: transparent; color: var(--muted); font: 800 13px var(--display); padding: 0; flex: none; }
.mybtn.has { border: 0; background: var(--tc); color: var(--ink); }
.mybtn:hover { border-color: var(--text); color: var(--text); }
.mybtn.has:hover { color: var(--ink); filter: brightness(1.05); }
.quick { position: absolute; left: 6px; right: 6px; bottom: 12px; display: flex; gap: 4px; justify-content: center; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .15s, transform .15s; }
body.authed .card:hover .quick, body.authed .card:focus-within .quick, .card.qopen .quick { opacity: 1; transform: none; pointer-events: auto; }
.qk { flex: 1; max-width: 36px; height: 30px; border: 0; border-radius: 6px; background: var(--tc); color: var(--ink); font: 800 14px var(--display); box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform .12s; }
.qk:hover { transform: translateY(-2px) scale(1.08); }
.qk.on { outline: 2px solid #fff; outline-offset: 1px; }
@media (hover: none) { .card .quick { opacity: 0; } .card.qopen .quick { opacity: 1; } }
.skel .thumb, .sk-line { background: linear-gradient(90deg, var(--skel-a), var(--skel-b), var(--skel-a)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.sk-line { height: 12px; border-radius: 6px; margin-top: 6px; } .sk-line.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* grid view */
.grid-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.on { color: var(--text); border-color: var(--text); }
.tchips { display: flex; gap: 5px; }
.tchip { min-width: 30px; height: 28px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 6px; font: 700 13px var(--display); background: var(--s2); color: var(--muted); }
.tchip:hover { text-decoration: none; color: var(--text); }
.tchip[class*="t-"] { border: 2px solid var(--tc); background: transparent; color: var(--text); }
.tchip.on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.tchip[class*="t-"].on { background: var(--tc); color: var(--ink); border-color: var(--tc); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 16px; }
.sentinel { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; min-height: 40px; }

/* watch */
.watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1000px) { .watch { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
@media (min-width: 1280px) { .watch { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; } }
.winfo, .wpanels { max-width: 1100px; }
.player { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.winfo { margin: 16px 0; }
.wtitle { font: 700 clamp(20px, 3vw, 28px)/1.2 var(--display); letter-spacing: -.02em; }
.wsub { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.wchan { font-weight: 600; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.panel-h { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 12px; }
.side-h { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 22px 0 12px; }
.consensus { display: flex; gap: 18px; align-items: center; }
.badge-big { width: 88px; height: 88px; border-radius: 16px; display: grid; place-items: center; background: var(--tc); color: var(--ink); font: 800 58px/1 var(--display); flex: none; }
.badge-big.unrated { background: var(--unrated-bg); color: var(--unrated-fg); opacity: .8; }
.cs-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.cs-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 4px; }
.score-big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.cs-flags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.cs-name { font-weight: 600; }
.picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pk { flex: 1; height: 38px; border-radius: 8px; border: 2px solid var(--tc); background: transparent; color: var(--text); display: grid; place-items: center; position: relative; transition: background .15s, transform .12s; padding: 0; }
.pk b { font: 800 17px var(--display); }
.pk:hover { background: color-mix(in srgb, var(--tc) 28%, transparent); }
.pk.on { background: var(--tc); color: var(--ink); transform: translateY(-2px); box-shadow: 0 4px 14px color-mix(in srgb, var(--tc) 45%, transparent); }
.picker.big .pk { height: 64px; border-radius: 12px; }
.picker.big .pk b { font-size: 28px; }
.picker.big .pk kbd { position: absolute; bottom: 3px; right: 5px; font-size: 9px; padding: 0 4px; margin: 0; opacity: .6; background: transparent; border-color: currentColor; }
.picker.sm .pk { height: 30px; } .picker.sm .pk b { font-size: 14px; }
.keyhint { margin-top: 12px; }
.histo { display: flex; gap: 8px; height: 150px; align-items: stretch; }
.hcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hbar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.hbar { width: 100%; background: var(--tc); border-radius: 5px 5px 2px 2px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.hc { font-size: 12px; color: var(--muted); }
.hl { font: 800 14px var(--display); background: var(--tc); color: var(--ink); width: 100%; text-align: center; border-radius: 4px; }
.hcol.mine .hl { outline: 2px solid var(--text); outline-offset: 1px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: flex; gap: 12px; align-items: center; position: relative; }
.timeline .chip { box-shadow: 0 0 0 4px var(--s1); }
.tl-meta { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.raters { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.raters li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.raters li:first-child { border: 0; }
.raters li a { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.arow { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); align-items: start; font-size: 14px; }
.arow:first-of-type { border-top: 0; }
.a-label { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.a-val { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.src { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.src.mine { color: var(--text); border-color: var(--text); }
.a-val .iconbtn { margin-left: auto; }
.split-votes { flex-basis: 100%; }
.mini { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-bottom: 12px; }
.mini:hover { text-decoration: none; }
.mini:hover .ctitle { text-decoration: underline; }
.mini-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini .thumb { border-radius: 8px; }

/* board / profile */
.board-head, .phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.phead { align-items: center; justify-content: flex-start; }
.phead .btn { margin-left: auto; }
.board-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.board .row-body { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 10px; }
.row-body.empty { min-height: 84px; position: relative; }
.row-body.empty::before { content: "Drop videos here"; position: absolute; inset: 10px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; pointer-events: none; }
.profile .row-body.empty::before, .chrow.empty::before { content: "Nothing here"; }
.bcard { background: var(--s2); border-radius: 9px; overflow: hidden; cursor: grab; border: 2px solid transparent; transition: transform .15s, border-color .15s, opacity .15s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bcard:hover { transform: translateY(-2px); }
.bcard .thumb { border-radius: 0; }
.bcard.dragging { opacity: .35; }
.bcard.selected { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.bc-body { padding: 6px 8px 7px; display: flex; flex-direction: column; gap: 4px; }
.bc-title { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.crowd { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.crowd .mono { text-transform: none; font-size: 11px; }
.crowd.differs .chip { box-shadow: 0 0 0 2px var(--s2), 0 0 0 3px var(--muted); }
.bc-open { color: var(--muted); font-size: 14px; padding: 0 4px; }
.bc-open:hover { color: var(--text); text-decoration: none; }
.profile .bcard { cursor: pointer; }
.selbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 45; background: var(--btn-bg); color: var(--btn-fg); border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 24px); }
.selbar .btn { background: rgba(128,128,128,.25); color: inherit; }
body.placing .tlabel { cursor: pointer; }
body.placing .trow:hover { border-color: var(--tc); }

/* channels */
.chrow { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
.chcard { display: flex; flex-direction: column; gap: 8px; }
.chcard:hover { text-decoration: none; }
.chcard:hover .ctitle { text-decoration: underline; }
.chthumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/5; background: var(--s2); }
.chthumbs img { width: 100%; height: 100%; object-fit: cover; }

/* add */
.addbox textarea { width: 100%; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: 13px/1.6 var(--mono); resize: vertical; min-height: 140px; margin-top: 16px; }
.addbox textarea:focus { outline: none; border-color: var(--text); }
.addbar { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.results { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.res-h { font: 700 15px var(--display); margin-bottom: 8px; display: flex; gap: 6px; align-items: baseline; }
.res-h.ok::before { content: "✓"; color: var(--up); }
.res-h.bad::before { content: "!"; color: var(--down); }
.resrow { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.resrow .thumb { border-radius: 8px; }
.res-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.res-pick { display: flex; align-items: center; gap: 10px; margin-top: 6px; max-width: 360px; }
.res-pick .picker { flex: 1; }
.detectrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.detect { display: flex; gap: 6px; align-items: center; }
.fixbox { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.failrow { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.failrow code { font: 12px var(--mono); word-break: break-all; }

/* tv */
.tv-setup .tvchips, .tv-bar .tvchips { display: flex; gap: 6px; }
.tv-setup h2.panel-h { margin: 22px 0 8px; }
.tvchip { width: 44px; height: 44px; border-radius: 9px; border: 2px solid var(--tc); background: transparent; color: var(--text); font: 800 20px var(--display); padding: 0; opacity: .7; transition: all .15s; }
.tvchip.on { background: var(--tc); color: var(--ink); opacity: 1; transform: translateY(-2px); }
body.tv { background: #000; color: #f3eee8; overflow: hidden; }
.tv-stage { position: fixed; inset: 0; background: #000; z-index: 30; }
.tv-player, .tv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-overlay { position: absolute; left: 28px; bottom: 56px; display: flex; gap: 14px; align-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); padding: 14px 20px 14px 14px; border-radius: 14px; max-width: min(640px, calc(100vw - 56px)); opacity: 0; transform: translateY(12px); transition: all .4s; pointer-events: none; color: #f3eee8; }
.tv-overlay.show { opacity: 1; transform: none; }
.tv-overlay .chip { min-width: 52px; height: 52px; font-size: 32px; border-radius: 10px; }
.tv-title { font: 700 20px/1.25 var(--display); }
.tv-chan { color: #b0a89f; font-size: 14px; }
.tv-bar { position: absolute; left: 0; right: 0; top: 0; padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: linear-gradient(rgba(0,0,0,.75), transparent); opacity: 0; transition: opacity .3s; z-index: 2; color: #f3eee8; }
.tv-stage.active .tv-bar, .tv-bar:focus-within { opacity: 1; }
.tv-bar .btn { color: #f3eee8; }
.tv-bar .btn:hover { background: rgba(255,255,255,.15); }
.tv-bar .tvchip { width: 34px; height: 34px; font-size: 15px; color: #f3eee8; }
.tv-bar .tvchip.on { color: var(--ink); }
.tv-count { margin-left: auto; color: #b0a89f; }
.tv-stage:not(.active) { cursor: none; }

/* auth + modal */
.authwrap { padding-top: 8vh; }
.authcard, .modal { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.authcard { max-width: 400px; margin: 0 auto; }
.authform { display: flex; flex-direction: column; gap: 14px; min-width: min(340px, 78vw); }
.auth-title { font: 800 26px var(--display); letter-spacing: -.03em; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field input { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; font-size: 15px; color: var(--text); }
.field input:focus { outline: none; border-color: var(--text); }
.auth-switch { font-size: 13.5px; text-align: center; }
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: var(--overlay); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadein .15s both; }
.modal { position: relative; max-width: 420px; width: 100%; max-height: 92vh; overflow: auto; animation: rise .22s cubic-bezier(.2,.9,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); width: 36px; height: 36px; }
.modal-x:hover { color: var(--text); }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: rise .25s both; max-width: min(420px, 90vw); }
.toast.error { background: var(--tS); color: var(--ink); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }

/* responsive */
@media (max-width: 900px) { .hide-sm { display: none !important; } }
@media (max-width: 640px) {
  .page { padding: 16px 12px 80px; }
  .tb-inner { padding-left: 12px; padding-right: 12px; }
  .tb-inner { padding: 8px 12px; gap: 10px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  .tb-right { gap: 2px; margin-left: auto; }
  .hide-xs { display: none; }
  .picker.big .pk { height: 52px; } .picker.big .pk b { font-size: 24px; }
  .picker.big .pk kbd { display: none; }
  .consensus { gap: 12px; } .panel { padding: 12px; }
  .histo { gap: 5px; }
  .crowd-l { display: none; }
  .tb-inner .wordmark { font-size: 19px; }
  .trow { grid-template-columns: 44px minmax(0, 1fr); border-radius: 10px; }
  .tl-in { padding: 10px 0; min-height: 0; top: calc(var(--topbar-h) + 50px); }
  .tl-letter { font-size: 30px; } .t-U .tl-letter { font-size: 15px; writing-mode: vertical-rl; }
  .tl-name, .tl-count { display: none; }
  .row-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
  .board .row-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chrow { grid-template-columns: 1fr !important; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card .meta { gap: 5px; } .card .votes { display: none; } .mv small { display: none; }
  .badge-big { width: 68px; height: 68px; font-size: 44px; }
  .score-big { font-size: 26px; }
  .mini { grid-template-columns: 110px 1fr; }
  .resrow { grid-template-columns: 100px 1fr; }
  .arow { grid-template-columns: 82px 1fr; }
  .tv-overlay { left: 12px; bottom: 24px; }
  .selbar { bottom: 10px; font-size: 12.5px; }
}
@media (max-width: 400px) { .wordmark .wm-text { font-size: 18px; } .btn.sm { padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar.open { transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* v3: google, you chip, mine, topbar grid, add */
.gsi-wrap { display: flex; flex-direction: column; gap: 12px; }
.gsi-wrap:empty { display: none; }
.gsi-holder { display: flex; justify-content: center; min-height: 44px; color-scheme: light; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.avatar.img { object-fit: cover; background: var(--s2); }
.avatar.xl.img { border-radius: 14px; }
.you { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; border: 1px solid var(--tc); border-radius: 999px; padding: 0 7px 0 8px; height: 22px; color: var(--text); white-space: nowrap; }
.you b { font: 800 12px var(--display); background: var(--tc); color: var(--ink); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.crowd-tag { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mine-note { margin-bottom: 10px; }
.sb-mine { display: inline-flex; width: 100%; margin-bottom: 10px; }
.sb-mine .seg-b { flex: 1; text-align: center; }
.mytiers { font-weight: 700; }
.resrow .res-pick { max-width: 440px; }
.picker.md .pk { height: 44px; border-radius: 10px; } .picker.md .pk b { font-size: 20px; }
.yourtier { white-space: nowrap; }
.detectrow.secondary { margin-top: 4px; opacity: .9; }
.bulkrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; }
.bulkrow .picker { width: 320px; max-width: 100%; }
.bulk-l { font: 700 14px var(--display); }
.donerow { display: flex; justify-content: flex-end; padding-top: 6px; }
@media (max-width: 640px) { .crowd-tag { display: none; } }
@media (min-width: 1024px) {
  .tb-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(280px, 28vw, 640px)) minmax(0, 1fr); gap: 18px; }
  .tb-inner .wordmark { justify-self: start; }
  .tb-inner .search { max-width: none; width: 100%; flex: none; }
  .tb-inner .tb-right { justify-self: end; margin-left: 0; flex-wrap: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1599px) { .tb-ch { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) { .tb-uname { display: none; } }
@media (min-width: 1600px) { .tb-inner { grid-template-columns: minmax(0, 1fr) 640px minmax(0, 1fr); } }

:root[data-theme="light"] .logo-outline { stroke: var(--text); stroke-opacity: .15; stroke-width: 1; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-outline { stroke: var(--text); stroke-opacity: .15; stroke-width: 1; } }
.gate-glyph { width: auto; height: auto; border-radius: 0; overflow: visible; display: block; }
@media (max-width: 389px) { .wordmark .wm-text { display: none; } }
.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 28px; border-top: 1px solid var(--line); }
body.tv .site-footer { display: none; }

/* v4: handles, tier page, share */
.handle { font-weight: 600; }
.handle.anon { color: var(--muted); font-weight: 500; }
a.handle:hover { text-decoration: underline; }
.phead-main { min-width: 0; flex: 1; }
.phead { align-items: flex-start; flex-wrap: wrap; }
.phead .board-actions { margin-left: auto; }
.phead .btn { margin-left: 0; }
.tcounts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tc { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border: 1px solid var(--tc); border-radius: 6px; padding: 0 7px 0 0; overflow: hidden; height: 24px; }
.tc b { background: var(--tc); color: var(--ink); font: 800 13px var(--display); width: 22px; height: 100%; display: grid; place-items: center; }
.priv-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px; padding: 10px 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; }
.visitor-note { background: var(--s2); border: 1px dashed var(--muted); border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; font-size: 13.5px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.sw-track { width: 36px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.sw-track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.switch input:checked + .sw-track { background: var(--tS); }
.switch input:checked + .sw-track::after { transform: translateX(16px); background: var(--ink); }
.switch input:focus-visible + .sw-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.share-btn { gap: 2px; }
.share-pop { position: fixed; z-index: 120; min-width: 190px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; animation: rise .15s both; }
.share-item { background: none; border: 0; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); display: block; }
.share-item:hover, .share-item:focus-visible { background: var(--s2); text-decoration: none; }
.toast { display: flex; align-items: center; gap: 8px; }
.toast-act { background: none; border: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: inherit; padding: 0; }
.toast-sep { opacity: .6; }

/* /add: paste-into-a-tier board */
.add-help { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.seeme { font-weight: 600; font-size: 14px; white-space: nowrap; }
.paste-tile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 120px; padding: 12px; border: 2px dashed var(--line); border-radius: 9px; background: transparent; cursor: text; transition: border-color .15s, background .15s; align-self: stretch; }
.paste-tile:hover, .paste-tile:focus-within { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 8%, transparent); }
.paste-plus { font: 800 26px/1 var(--display); color: var(--muted); }
.paste-tile input { width: 100%; background: transparent; border: 0; outline: 0; font-size: 13.5px; font-weight: 500; color: var(--text); padding: 4px 0; min-width: 0; }
.paste-tile input::placeholder { color: var(--muted); }
.paste-tile input:disabled { opacity: .6; }
.paste-msg { font-size: 12.5px; min-height: 1.3em; line-height: 1.3; }
.paste-msg.err { color: var(--down); }
.paste-msg.ok { color: var(--up); font-weight: 600; animation: pulse-ok .6s ease; }
@keyframes pulse-ok { 0% { transform: scale(.9); opacity: 0; } 50% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.skel-card { pointer-events: none; cursor: default; }
.skel-card .thumb { display: grid; place-items: center; background: linear-gradient(90deg, var(--skel-a), var(--skel-b), var(--skel-a)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.spinner.sm { width: 22px; height: 22px; border-width: 2px; }
.bcard.leaving { opacity: 0; transform: scale(.9); transition: all .2s; }
.bc-btn { background: none; border: 0; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 5px; border-radius: 4px; }
.bc-btn:hover { color: var(--text); background: var(--line); }
.bc-x:hover { color: var(--down); }
.bc-foot { gap: 2px; }
.bc-foot .bc-chip { margin-right: auto; }
.fix-pop { position: fixed; z-index: 120; width: 250px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: rise .15s both; }
.fix-h { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.fix-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.fix-f .metasel { width: 100%; }
@media (max-width: 640px) { .add-board .paste-tile { grid-column: 1 / -1; min-height: 76px; flex-direction: row; align-items: center; } .paste-tile .paste-msg { position: absolute; left: 44px; bottom: 4px; } }
