/* Same tokens as the Montagekamer (app\web\style.css) */
:root {
  --canvas: #0b0c0f; --surface: #13151a; --surface-2: #1a1d24; --surface-3: #232733;
  --line: #262a35; --line-2: #323745; --ink: #eef0f5; --ink-soft: #8d93a5;
  --accent: #EFD71D; --accent-ink: #151513; --claude: #d97757; --claude-ink: #1a0d07;
  --danger: #ff4d6a; --ok: #3ddc84; --warn: #ffb547; --guest: #7aa7ff;
  --r: 12px; --r-sm: 8px; --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", "Segoe UI", system-ui, sans-serif; --font-display: "Archivo", "Segoe UI", system-ui, sans-serif; --mono: "Geist Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.spacer { flex: 1; }
kbd { font: 11px var(--mono); background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ink); }

/* top bar */
.topbar { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 16px var(--font-display); flex: none; }
.logo.big { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; margin: 0 auto 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 800 14px var(--font-display); letter-spacing: -.01em; }
.brand-text small { color: var(--ink-soft); font-size: 12px; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-soft); font-weight: 600; }
.icon-btn:hover { color: var(--ink); }
.live { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; padding: 4px 11px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); }
.live span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.live.on span { background: var(--ok); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .5); } 100% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } }

/* layout */
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 410px; grid-template-areas: "hero hero" "stage side"; gap: 20px 24px; padding: 24px; max-width: 1680px; margin: 0 auto; }
.hero { grid-area: hero; display: flex; align-items: center; gap: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stage { grid-area: stage; min-width: 0; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* hero */
.hero-thumb { width: 300px; flex: none; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.chan { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 500; }
.chan img { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); }
.chan img[src=""] { display: none; }
.hero h1 { margin: 0; font: 800 clamp(22px, 2.6vw, 34px)/1.12 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 4px 11px; border-radius: 99px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.pill.acc { color: var(--accent); border-color: rgba(239, 215, 29, .35); }
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* player */
.pwrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pwrap:fullscreen { border: 0; border-radius: 0; display: flex; flex-direction: column; background: #000; }
.pwrap:fullscreen .player { flex: 1; aspect-ratio: auto; }
.player { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.player video { width: 100%; height: 100%; display: block; background: #000; cursor: pointer; }
#draw { position: absolute; pointer-events: none; touch-action: none; }
#draw.on { pointer-events: auto; cursor: crosshair; outline: 2px dashed rgba(255, 59, 92, .6); outline-offset: -2px; }
.bigplay { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 0; background: rgba(11, 12, 15, .62); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: opacity .25s, transform .25s var(--ease-out); }
.bigplay svg { width: 34px; height: 34px; margin-left: 4px; }
.bigplay:hover { transform: scale(1.06); }
.player.playing .bigplay, .player.drawing .bigplay { opacity: 0; pointer-events: none; transform: scale(.9); }
.drawbar { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; background: rgba(19, 21, 26, .92); border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 8px 6px 14px; backdrop-filter: blur(6px); }
.dlabel { font-size: 12px; color: var(--ink-soft); margin-right: 2px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); padding: 0; transition: transform .15s var(--ease-out); }
.swatch.on { border-color: #fff; transform: scale(1.15); }
.mini { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 99px; padding: 3px 10px; font-size: 12px; }
.mini.acc { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px); background: rgba(19, 21, 26, .95); border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 14px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease-out); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* timeline */
.controls { padding: 6px 12px 8px; background: var(--surface); }
.tl { position: relative; height: 30px; cursor: pointer; touch-action: none; }
.tl-track { position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; transition: height .15s, top .15s; }
.tl:hover .tl-track { top: 10px; height: 8px; }
.tl-buf { position: absolute; inset: 0 auto 0 0; background: var(--line-2); width: 0; }
.tl-prog { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; }
.tl-range { position: absolute; top: 0; bottom: 0; background: rgba(61, 200, 255, .55); }
.tl-head { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(239, 215, 29, .22); pointer-events: none; }
.tl-chaps i { position: absolute; top: 9px; width: 2px; height: 10px; margin-left: -1px; background: var(--canvas); pointer-events: none; }
.tl-marks { position: absolute; left: 0; right: 0; top: 0; height: 8px; }
.tl-marks b { position: absolute; top: 0; height: 6px; min-width: 6px; margin-left: -3px; border-radius: 99px; background: var(--c, var(--accent)); box-shadow: 0 0 0 2px var(--surface); cursor: pointer; transition: transform .15s var(--ease-out); }
.tl-marks b:hover { transform: scaleY(1.6); }
.tl-marks b.done { opacity: .35; }
.tl-prev { position: absolute; bottom: 34px; width: 176px; margin-left: -88px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; pointer-events: none; z-index: 5; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.tl-img { width: 166px; height: 93px; border-radius: 6px; background-color: #000; background-repeat: no-repeat; }
.tl-img.none { display: none; }
.tl-cap { display: flex; flex-direction: column; align-items: center; padding: 4px 2px 2px; gap: 1px; }
.tl-cap b { font: 500 12px var(--mono); color: var(--accent); }
.tl-cap span { font-size: 11px; color: var(--ink-soft); text-align: center; line-height: 1.25; }
.tl-cap span:empty { display: none; }
.cbar { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cb { width: 34px; height: 34px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; flex: none; }
.cb:hover { background: var(--surface-2); }
.cb svg { width: 20px; height: 20px; }
#btnPlay .i-pause, .playing-ui #btnPlay .i-play { display: none; }
.playing-ui #btnPlay .i-pause { display: block; }
.muted #btnMute .wave { display: none; }
.tcd { font: 500 13px var(--mono); color: var(--ink-soft); margin-left: 6px; white-space: nowrap; }
.tcd b { color: var(--ink); font-weight: 500; }
.chapnow { color: var(--ink-soft); font-size: 12px; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.speed { padding: 4px 6px; font-size: 12px; background: transparent; border-color: transparent; color: var(--ink-soft); }
.speed:hover { border-color: var(--line-2); }
.vol { width: 80px; accent-color: var(--accent); }

.vbar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.vsel { color: var(--ink-soft); display: flex; align-items: center; gap: 10px; min-width: 0; }
select, input:not([type]), input[type="text"], textarea { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 11px; outline: none; color: var(--ink); transition: border-color .2s; }
select { max-width: 100%; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.vnew { background: rgba(239, 215, 29, .12); color: var(--accent); border: 1px solid rgba(239, 215, 29, .35); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.notes { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; color: var(--ink-soft); }
.notes summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.notes div { white-space: pre-wrap; margin-top: 10px; }

/* compose */
.compose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.compose:focus-within { border-color: var(--line-2); }
.who { display: flex; align-items: center; gap: 10px; }
.who label { color: var(--ink-soft); white-space: nowrap; }
.who input { flex: 1; min-width: 0; }
.who.set { display: none; }
.at { display: flex; align-items: center; gap: 8px; min-width: 0; }
.at .hint { color: var(--ink-soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcchip { background: var(--surface-3); border: 0; border-radius: 6px; padding: 3px 8px; font: 500 12px var(--mono); color: var(--accent); white-space: nowrap; }
.tcchip b { font-weight: 500; }
.tcchip span { color: #3dc8ff; }
.xrange { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--ink-soft); line-height: 1; padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-btn { border: 1px solid var(--line-2); background: transparent; border-radius: 99px; padding: 2px 10px; font-size: 12px; color: var(--ink-soft); transition: color .15s, border-color .15s, background-color .15s, transform .15s var(--ease-out); }
.tag-btn:active { transform: scale(.94); }
.tag-btn.on { color: var(--c); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
textarea { resize: vertical; min-height: 78px; }
.tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; color: var(--ink-soft); border-radius: var(--r-sm); padding: 5px 8px; font-size: 13px; position: relative; }
.tool svg { width: 16px; height: 16px; }
.tool:hover { color: var(--ink); background: var(--surface-2); }
.tool.on { color: var(--accent); border-color: rgba(239, 215, 29, .35); background: rgba(239, 215, 29, .08); }
.tool.rec { color: var(--danger); border-color: rgba(255, 77, 106, .45); background: rgba(255, 77, 106, .1); animation: recpulse 1.4s ease-in-out infinite; }
@keyframes recpulse { 50% { background: rgba(255, 77, 106, .2); } }
.tool .n { font-style: normal; font-size: 10px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 5px; font-weight: 600; }
.whochip { background: none; border: 0; color: var(--ink-soft); font-size: 12px; padding: 0 4px; margin-left: auto; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.tools { flex-wrap: nowrap; }
.whochip:hover { color: var(--ink); }
.err { color: var(--danger); font-size: 12px; }
.err:empty { display: none; }
.btn { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 7px 16px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: transform .15s var(--ease-out), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* Claude */
.claude { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(217, 119, 87, .12), rgba(217, 119, 87, .03)); border: 1px solid rgba(217, 119, 87, .35); border-radius: var(--r); padding: 12px 14px; }
.claude .spark { width: 30px; height: 30px; border-radius: 9px; background: var(--claude); color: var(--claude-ink); display: grid; place-items: center; flex: none; }
.claude .spark svg { width: 16px; height: 16px; }
.claude.busy .spark { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.claude .ctext { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.claude .ctext span { color: var(--ink-soft); font-size: 12px; }
.claude-btn { background: var(--claude); color: var(--claude-ink); border-color: var(--claude); font-weight: 600; }

/* list */
.list-h { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 8px; }
.list-h h2 { font: 800 15px var(--font-display); margin: 0; display: flex; align-items: center; gap: 8px; }
.count { font: 500 11px var(--font); background: var(--surface-3); border-radius: 99px; padding: 1px 7px; color: var(--ink-soft); }
.count:empty { display: none; }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; }
.seg button { border: 0; background: transparent; color: var(--ink-soft); padding: 3px 10px; border-radius: 7px; font-size: 12px; }
.seg button.on { background: var(--surface-3); color: var(--ink); }
.list-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tagfilter { display: flex; flex-wrap: wrap; gap: 4px; }
.tagfilter .tag-btn { padding: 1px 8px; font-size: 11px; }
.tog { color: var(--ink-soft); font-size: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tog input { accent-color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.c { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line-2)); border-radius: var(--r); padding: 11px 13px; transition: border-color .2s, background-color .2s; cursor: pointer; }
.c:hover { background: var(--surface-2); }
.c.cur { box-shadow: 0 0 0 1px var(--c, var(--accent)); }
.c.done { opacity: .6; }
.c .h { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; min-width: 0; }
.c .tc { background: var(--surface-3); border: 0; border-radius: 6px; padding: 2px 7px; color: var(--accent); font: 500 12px var(--mono); white-space: nowrap; }
.c .tc span { color: #3dc8ff; }
.c .au { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c .au.g { color: var(--guest); }
.c .meta { color: var(--ink-soft); font-size: 12px; margin-left: auto; white-space: nowrap; }
.c .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
.c .foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.tagl { font-size: 11px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 99px; padding: 0 7px; }
.badge { font-size: 11px; border-radius: 99px; padding: 0 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-soft); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: rgba(61, 220, 132, .35); }
.badge.p { color: var(--warn); }
.rp { margin: 9px 0 0 4px; padding-left: 11px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; cursor: default; }
.rp .au.cl { color: var(--claude); }
.rbtn { background: none; border: 0; color: var(--ink-soft); font-size: 12px; padding: 0; margin-left: auto; }
.rbtn:hover { color: var(--ink); }
.rform { display: flex; gap: 6px; margin-top: 8px; cursor: default; }
.rform input { flex: 1; min-width: 0; padding: 6px 9px; }
.rform .btn { padding: 6px 12px; }
.empty { color: var(--ink-soft); text-align: center; padding: 26px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); cursor: default; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 6, 8, .6); }
.modal-card { width: min(480px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; }
.modal-card h2 { margin: 0; font: 800 20px var(--font-display); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; align-items: center; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; color: var(--ink-soft); }
.modal-foot { display: flex; justify-content: flex-end; }
.gone { max-width: 520px; margin: 18vh auto; text-align: center; padding: 0 16px; }
.gone h1 { font: 800 24px var(--font-display); }
.gone p { color: var(--ink-soft); }

@media (max-width: 1020px) {
  .wrap { grid-template-columns: 1fr; grid-template-areas: "hero" "stage" "side"; padding: 16px; gap: 16px; }
  .hero { gap: 14px; padding-bottom: 16px; }
  .hero-thumb { width: 140px; border-radius: 9px; box-shadow: none; }
  .hero h1 { font-size: 19px; }
  .hero-text { gap: 7px; }
  .chan { font-size: 12px; }
  .chan img { width: 18px; height: 18px; }
  #btnKeys { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 12px 12px 24px; }
  .hero-thumb { width: 116px; } .hero h1 { font-size: 17px; } .meta .pill:nth-child(n+3) { display: none; }
  .vol, .chapnow, #btnBack, #btnFwd { display: none; }
  .tcd { font-size: 12px; }
  .tool span { display: none; }
  .tool { padding: 7px 9px; }
  .drawbar .dlabel { display: none; }
}

/* home + login (review.patto.be/) */
a.brand { color: inherit; text-decoration: none; }
.whoami { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--ink); display: grid; place-items: center; font: 800 12px var(--font-display); }
.login-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.login-card .logo.big { margin: 0 0 4px; }
.login-card h1 { margin: 0; font: 800 26px var(--font-display); }
.login-card p { margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 13px; }
.login-card input { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; color: var(--ink); font-size: 15px; outline: none; }
.login-card input:focus { border-color: var(--accent); }
.btn.big { justify-content: center; padding: 10px 16px; font-size: 15px; }
.small { font-size: 12px; }
.home { max-width: 1440px; margin: 0 auto; padding: 28px 24px 48px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.home-head h1 { margin: 0; font: 800 clamp(24px, 3vw, 34px) var(--font-display); letter-spacing: -.015em; }
.home-head p { margin: 4px 0 0; }
.chanbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.vcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s; }
.vcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.vthumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nothumb { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-size: 12px; }
.vdur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); border-radius: 6px; padding: 1px 6px; font: 500 12px var(--mono); }
.vprep { position: absolute; left: 8px; bottom: 8px; background: rgba(11, 12, 15, .85); color: var(--warn); border-radius: 99px; padding: 2px 9px; font-size: 11px; }
.vbody { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.vch { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; }
.vch img { width: 18px; height: 18px; border-radius: 50%; }
.vbody h2 { margin: 0; font: 800 16px/1.25 var(--font-display); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pill.warn { color: var(--warn); border-color: rgba(255, 181, 71, .4); }
.pill.claude { color: var(--claude); border-color: rgba(217, 119, 87, .45); }
.vago { color: var(--ink-soft); font-size: 12px; margin-top: auto; align-self: flex-end; padding-top: 2px; }
.vupl { color: var(--ink-soft); opacity: .6; font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.vupl.late { color: var(--warn); opacity: .75; }
.homepage .empty { grid-column: 1 / -1; }
.backlink { color: var(--ink-soft); text-decoration: none; font-size: 13px; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; }
.backlink:hover { color: var(--ink); }
@media (max-width: 560px) { .home { padding: 18px 12px 32px; } .grid { grid-template-columns: 1fr; } .whoami #meName { display: none; } }

/* Shorts section on the review home (28-11) */
.sect { font: 800 20px/1.2 Archivo, sans-serif; margin: 26px 0 12px; display: flex; gap: 8px; align-items: baseline; }
.sect .dim { font: 500 14px Geist, sans-serif; }
.grid.shorts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.vcard.short .vthumb { aspect-ratio: 9 / 16; }
.vcard.short .vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard.short h2 { font-size: 15px; }
/* Long form / Shorts switch in the top bar (28-11) */
.typenav { display: flex; gap: 4px; padding: 3px; margin-left: 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.typenav button { border: 0; background: transparent; color: var(--ink-soft, #8d93a5); font: 600 13px Geist, sans-serif; padding: 6px 14px; border-radius: 999px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.typenav button.on { background: var(--accent, #EFD71D); color: var(--accent-ink, #151513); }
.typenav button span:empty { display: none; }
.typenav button span { font: 500 11px 'Geist Mono', monospace; opacity: .8; }
@media (max-width: 560px) { .typenav { margin-left: 8px; } .typenav button { padding: 6px 10px; font-size: 12px; } }
/* edit / delete feedback (28-11) */
.eform { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.eform textarea { width: 100%; box-sizing: border-box; resize: vertical; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 9px; font: inherit; }
.eform .erow { display: flex; justify-content: flex-end; gap: 6px; }
.rbtn.del:hover { color: var(--danger); }
.c .foot .acts { margin-left: auto; display: inline-flex; gap: 2px; }
.ibtn { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s; }
.ibtn:hover { background: var(--surface-2); color: var(--ink); }
.ibtn.del:hover { color: var(--danger); }
.ibtn:focus-visible { outline: 2px solid var(--acc, #EFD71D); outline-offset: 1px; }

/* compare two versions (28-11) */
.vcmp { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.vcmp:hover { color: var(--ink); }
.vcmp.on { color: var(--accent); border-color: rgba(239, 215, 29, .45); background: rgba(239, 215, 29, .1); }
.player.cmp { aspect-ratio: 32 / 9; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.player.cmp > video { grid-column: 1; grid-row: 1; }
.cmpB { position: relative; grid-column: 2; grid-row: 1; min-width: 0; background: #000; }
.cmpB video { width: 100%; height: 100%; display: block; object-fit: contain; }
.cmp-sel { position: absolute; top: 8px; right: 8px; max-width: calc(100% - 16px); background: rgba(11, 12, 15, .8); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 3px 8px; font-size: 12px; }
.cmp-lab { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(11, 12, 15, .8); color: #fff; border-radius: 8px; padding: 3px 9px; font-size: 12px; pointer-events: none; }
.player.cmp .bigplay { left: 25%; }
@media (max-width: 700px) { .player.cmp { aspect-ratio: 16 / 18; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } .cmpB { grid-column: 1; grid-row: 2; } .player.cmp .bigplay { left: 50%; top: 25%; } }
