:root {
  --banana: #f1ba27; --tongue: #e96a53; --soulless: #b83a22; --soulless-soft: #fbe1da; --ink: #0a0a09; --paper: #fff; --soft: #f7f4ec; --line: #ece7da; --muted: #6b6455;
  --word: 'Dela Gothic One', 'Arial Black', Impact, sans-serif; --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rail: 232px; --r: 14px; --fast: 120ms; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--word); font-weight: 400; line-height: 1.1; }
.muted { color: var(--muted); }

.top { display: flex; align-items: center; gap: 32px; padding: 16px 28px; position: sticky; top: 0; background: var(--paper); z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 18px var(--word); white-space: nowrap; color: inherit; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.tabs { display: flex; gap: 20px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
/* The header narrows in steps instead of hiding tabs: side labels go first, then the wordmark, then the tabs take their own row. */
@media (max-width: 1560px) { .top { gap: 24px; } .tabs { gap: 18px; } .top-right .hide-sm { display: none; } .top-right .side-link { padding: 0 10px; } }
@media (max-width: 1180px) { .brand span { display: none; } }
@media (min-width: 801px) and (max-width: 1040px) { .top { flex-wrap: wrap; row-gap: 8px; } .tabs { order: 3; width: 100%; } }
/* Phones: the tab strip scrolls; a fade on the edge shows there is more */
@media (max-width: 800px) { .tabs { mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 20px; } }
.tabs a { color: inherit; text-decoration: none; border-bottom: 3px solid transparent; padding: 2px 0; white-space: nowrap; font-weight: 700; transition: border-color var(--fast); }
.tabs a:hover, .tabs a.on { border-bottom-color: var(--banana); }
.top-right { display: flex; gap: 6px; margin-left: auto; flex: none; }
.side-link { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: inherit; text-decoration: none; font-weight: 700; transition: background var(--fast); }
.side-link:hover, .side-link.on { background: var(--soft); }
.side-link svg { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.side-link .n { color: var(--muted); font-weight: 500; font-size: 14px; }
/* The toast sits in the bottom-right corner, away from the video in the middle */
#toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px; width: max-content; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--fast), transform var(--fast); max-width: min(360px, calc(100vw - 32px)); font-size: 15px; }
#toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* Phones: the video fills the width, so the toast goes to the top-right, small */
@media (max-width: 800px) { #toast { top: 12px; bottom: auto; right: 12px; transform: translateY(-8px); font-size: 14px; padding: 8px 12px; } }
#toast button { background: none; border: 0; color: var(--banana); font-weight: 700; cursor: pointer; padding: 4px; }
.ch-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.view-switch { display: inline-flex; flex: none; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.ch-acts + .view-switch { margin-left: 0; }
.view-switch button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; transition: background var(--fast), color var(--fast); }
.view-switch svg { fill: currentColor; }
.view-switch button:hover { color: var(--ink); }
.view-switch button[aria-pressed="true"] { background: var(--banana); color: var(--ink); }
body.flowing { overflow: hidden; }
body.flowing .layout { padding-bottom: 0; }
body.flowing .rail { max-height: calc(100vh - 84px); overflow-y: auto; }
.flow { overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.flow::-webkit-scrollbar { display: none; }
.clip { display: flex; justify-content: center; align-items: flex-end; gap: 12px; height: 100%; padding-bottom: 10px; scroll-snap-align: start; scroll-snap-stop: always; }
.clip-frame { position: relative; height: 100%; aspect-ratio: 9/16; max-width: 100%; background: #000; border-radius: var(--r); overflow: hidden; }
.clip video { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.clip-sound { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(10 10 9 / .55); color: var(--paper); cursor: pointer; }
.clip-sound svg { fill: currentColor; }
.clip-play { position: absolute; left: 50%; top: 50%; display: inline-flex; padding: 14px; border-radius: 50%; background: rgb(10 10 9 / .55); color: var(--paper); opacity: 0; pointer-events: none; transform: translate(-50%, -50%); transition: opacity var(--fast); }
.clip-play svg { width: 32px; height: 32px; fill: currentColor; }
.clip.paused .clip-play { opacity: 1; }
.clip-off { display: none; position: absolute; inset: 0; place-items: center; margin: 0; padding: 16px; color: var(--paper); font-weight: 700; text-align: center; background: rgb(10 10 9 / .6); pointer-events: none; }
.clip.off .clip-off { display: grid; }
.clip.off .clip-play { display: none; }
.clip-meta { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 48px 14px 14px; color: var(--paper); background: linear-gradient(transparent, rgb(10 10 9 / .7)); font-size: 15px; pointer-events: none; }
.clip-meta a { justify-self: start; color: inherit; font-weight: 700; font-size: 17px; text-decoration: none; pointer-events: auto; overflow-wrap: anywhere; }
.clip-meta a:hover { text-decoration: underline; }
.clip-meta { padding-bottom: 26px; }
/* Seek bar: a thin line at the bottom that thickens under the pointer; the hit area stays finger-sized. */
.clip-seek { --p: 0%; position: absolute; left: 10px; right: 10px; bottom: 6px; width: calc(100% - 20px); height: 24px; margin: 0; padding: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; touch-action: pan-x; }
.clip-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--paper) var(--p), rgb(255 255 255 / .35) var(--p)); transition: height var(--fast); }
.clip-seek::-moz-range-track { height: 3px; border-radius: 3px; background: rgb(255 255 255 / .35); }
.clip-seek::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--paper); }
.clip-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px rgb(10 10 9 / .25); transform: scale(.7); transition: transform var(--fast); }
.clip-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--paper); transform: scale(.7); transition: transform var(--fast); }
.clip-seek:hover::-webkit-slider-runnable-track, .clip-seek:active::-webkit-slider-runnable-track { height: 5px; }
.clip-seek:hover::-webkit-slider-thumb, .clip-seek:active::-webkit-slider-thumb { transform: scale(1.15); margin-top: -3.5px; }
.clip-seek:hover::-moz-range-thumb, .clip-seek:active::-moz-range-thumb { transform: scale(1.15); }
.clip-seek:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 4px; }
.clip-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.clip-side .heart { border: 1px solid var(--line); }
.clip-more { padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: inherit; font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color var(--fast); }
.clip-more:hover { border-color: var(--ink); }

.layout { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 12px; padding: 8px 28px 40px; }
.rail { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 72px; align-self: start; z-index: 4; }
/* A long set of lists scrolls inside the sidebar instead of hiding below the fold until the feed ends. */
@media (min-width: 801px) { .rail { max-height: calc(100vh - 88px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 4px 12px 0; scrollbar-width: thin; } }
.label { font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field { width: 100%; padding: 11px 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; transition: border-color var(--fast); }
.field:hover, .field:focus { border-color: var(--ink); outline: none; }
:focus-visible { outline: 3px solid var(--banana); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--banana); box-shadow: 0 3px 0 var(--ink); font-weight: 700; cursor: pointer; transition: transform var(--fast), box-shadow var(--fast); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.ghost { background: var(--paper); box-shadow: none; border: 1px solid var(--line); min-height: 40px; padding: 0 14px; font-weight: 500; }
.btn.ghost:hover { border-color: var(--ink); transform: none; }
.scope { display: flex; width: 100%; justify-content: space-between; gap: 8px; padding: 8px 12px; background: none; border: 0; border-radius: 10px; cursor: pointer; text-align: left; align-items: center; }
.scope:hover { background: var(--soft); }
.scope { overflow-wrap: anywhere; }
.scope.on { background: var(--soft); font-weight: 700; }
.scope .n { font-size: 14px; color: var(--muted); font-weight: 400; white-space: nowrap; flex-shrink: 0; }
.note { font-size: 14px; margin-top: 8px; color: var(--muted); }
.note.err { color: #b83a22; }

.main { min-width: 0; }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.bar .grow { flex: 1 1 220px; min-width: 160px; }
.fol { display: flex; gap: 8px; }
.filters-btn { min-height: 48px; border-radius: 12px; font-weight: 700; }
.filters-btn.on { border: 2px solid var(--ink); background: var(--banana); }
.dlg.filters { width: min(500px, calc(100vw - 32px)); overflow: visible; }
.filters .switch { margin: 8px 0 14px; }
.f-row { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.f-row-er { align-items: start; }
.f-row-er .f-label { padding-top: 5px; }
.f-label { color: var(--muted); font-weight: 600; }
.f-row .dd, .f-row .dd-btn { width: 100%; }
.f-row .fol .dd { flex: 1 1 0; min-width: 0; }
.f-row .er-seg { margin: 0; gap: 6px; min-width: 0; }
.f-row .er-seg button { padding: 7px 10px; font-size: 13.5px; line-height: 1.25; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.f-row .er-seg button:hover { border-color: var(--ink); }
.f-row .er-seg button[aria-pressed="true"] { border-color: var(--ink); background: var(--banana); color: var(--ink); font-weight: 700; }
.f-row .er-seg button[data-er-f=""][aria-pressed="true"] { background: var(--soft); }
@media (max-width: 480px) { .f-row { grid-template-columns: 1fr; gap: 6px; } .f-row-er .f-label { padding-top: 0; } .bar #q.grow { flex: 1 1 110px; min-width: 0; } }
.bar:has(.ch-acts) .grow { flex-basis: 160px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 700; }
.switch input { position: absolute; opacity: 0; }
.switch.off { opacity: .5; cursor: not-allowed; }
.switch i { width: 42px; height: 24px; border-radius: 12px; position: relative; display: block; background: var(--line); transition: background var(--fast); }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transition: transform var(--fast); }
.switch input:checked + i { background: var(--banana); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--banana); outline-offset: 2px; }
.count { font-size: 14px; color: var(--muted); }
.dr { padding: 16px 0; border-top: 1px solid var(--line); }
.dr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; cursor: grab; }
.dr-name { font-weight: 700; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.dr-name:hover { text-decoration: underline; }
.dr-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dr-acts .dd-btn { min-height: 44px; }
.dr-x { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color var(--fast), color var(--fast); }
.dr-x:hover { border-color: var(--ink); color: var(--ink); }
.dr-strip { display: flex; gap: 8px; min-height: 284px; overflow-x: auto; scrollbar-width: thin; }
.dr-strip > p { margin: 0; }
.st { position: relative; flex: none; width: 160px; aspect-ratio: 9/16; background: var(--soft) center/cover no-repeat; border-radius: 10px; overflow: hidden; }
.st-views { position: absolute; left: 6px; bottom: 6px; padding: 4px 7px; border-radius: 7px; background: var(--paper); font: 700 13px/1 var(--body); }
.st video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
body.dragging .scope-row { outline: 2px dashed var(--line); outline-offset: -1px; border-radius: 10px; }
body.dragging .scope-row.drop { outline-color: var(--ink); background: var(--banana); }
.from-top { padding: 6px 4px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
#before .more { margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 16px; }
.reel { position: relative; min-width: 0; }
.reel-open { display: block; width: 100%; color: inherit; text-decoration: none; }
a.scope { color: inherit; text-decoration: none; }
a.btn { text-decoration: none; color: inherit; }
.heart { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; transition: transform var(--fast); }
.heart svg { fill: none; stroke: var(--ink); stroke-width: 2; transition: fill var(--fast), stroke var(--fast); }
.heart:hover { transform: scale(1.08); }
.heart:active { transform: scale(.92); }
.heart.on svg { fill: var(--tongue); stroke: var(--tongue); }
.reel > .heart { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; }
.reel > .hider { top: 52px; opacity: 0; transition: opacity var(--fast), transform var(--fast); }
.reel:hover > .hider, .reel > .hider:focus-visible { opacity: 1; }
.hider svg { stroke-linecap: round; }
.hider.on { background: var(--ink); }
.hider.on svg { fill: none; stroke: var(--paper); }
@media (hover: none) { .reel > .hider { opacity: 1; } }
/* «В работе» on a card: sits on the cover's bottom edge (cover is 9:16 of the card width); shown on hover, always when on or on touch. */
.reel { container-type: inline-size; }
/* Reel status: — · В работе · В работе без души · Готово. On a card it stacks into two compact pills above the cover bottom edge. */
.st-seg { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.st-seg button { border: 0; background: none; cursor: pointer; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background var(--fast), color var(--fast); }
.st-seg button:hover { color: var(--ink); }
.st-seg button:focus-visible { outline: 2px solid var(--banana); outline-offset: 1px; }
.st-seg [data-st="work"][aria-pressed="true"] { background: var(--banana); color: var(--ink); }
.st-seg [data-st="soulless"][aria-pressed="true"] { background: var(--soulless); color: var(--paper); }
.st-seg [data-st="done"][aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.st-seg [data-st="none"][aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.card-st { position: absolute; left: 8px; top: calc(100cqw * 16 / 9 - 8px); transform: translateY(-100%); z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: calc(100% - 16px); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; pointer-events: none; opacity: 0; transition: opacity var(--fast); }
.card-st-main { display: inline-flex; align-items: center; max-width: 100%; padding: 3px; gap: 2px; border-radius: 999px; background: var(--paper); box-shadow: 0 1px 4px rgb(0 0 0 / .18); }
.card-st .st-soulless-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 11.5px; font-weight: 700; line-height: 1.25; box-shadow: 0 1px 4px rgb(0 0 0 / .18); overflow: hidden; text-overflow: ellipsis; }
.card-st .st-soulless-pill:hover:not([aria-pressed="true"]) { background: var(--soulless-soft); color: var(--ink); }
.card-st .card-st-main button { padding: 4px 7px; font-size: 11.5px; }
.reel:hover > .card-st, .card-st.set, .card-st:focus-within { opacity: 1; }
.reel:hover > .card-st .st-soulless-pill, .reel:hover > .card-st .card-st-main,
.card-st.set .st-soulless-pill, .card-st.set .card-st-main,
.card-st:focus-within .st-soulless-pill, .card-st:focus-within .card-st-main { pointer-events: auto; }
@media (hover: hover) {
  .reel:not(:hover) > .card-st.st-soulless:not(:focus-within) .card-st-main { display: none; }
  .reel:not(:hover) > .card-st.st-work:not(:focus-within) .st-soulless-pill,
  .reel:not(:hover) > .card-st.st-done:not(:focus-within) .st-soulless-pill { display: none; }
}
@media (hover: none) {
  .card-st { opacity: 1; }
  .card-st .st-soulless-pill, .card-st .card-st-main { pointer-events: auto; }
  .card-st .st-soulless-pill { padding: 4px 8px; font-size: 11px; }
  .card-st .card-st-main button { padding: 3px 7px; font-size: 11px; }
}
.page-st { min-height: 44px; }
.page-st button { padding: 8px 14px; font-size: 15px; }
/* The star keeps its place while hidden, so switching work on and off never shifts the row. */
.page-acts .prio-star[hidden] { display: inline-flex; visibility: hidden; }
.page-acts .ig-link { border: 1px solid var(--line); color: var(--ink); }
.ig-link svg { stroke-width: 1.8; }
.view-title { font-size: 24px; }
.el-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.el-title h3 { margin: 0; }
.el-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.el-actions .btn { min-height: 40px; }
.el-summary { background: var(--soft); border-radius: var(--r); padding: 6px 14px; }
.el-sum { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 40px; padding: 5px 0; }
.el-sum + .el-sum { border-top: 1px solid var(--line); }
.el-sum-k { display: inline-flex; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.el-sum-v { font-weight: 700; font-size: 17px; }
.el-sum-v::first-letter { text-transform: uppercase; }
.el-sum-v small { color: var(--muted); font-weight: 400; font-size: 14px; }
.el-sum .dd-btn { font-weight: 700; background: var(--banana); border-color: var(--ink); }
.el-note { color: var(--muted); }
.take { min-height: 44px; padding: 0 16px; box-shadow: none; }
.take:hover { box-shadow: none; transform: none; background: #f7cb52; }
.take:active { transform: translateY(1px); box-shadow: none; }
.take.on { background: var(--ink); color: var(--paper); }
.take.on:hover { background: #2b2a26; }
.el-tag { display: inline-flex; align-items: baseline; gap: 5px; background: var(--soft); border-radius: 9px; padding: 5px 10px; font-size: 15px; font-weight: 500; }
.el-tag em { font-style: normal; color: var(--muted); font-weight: 400; }
.el-tag.warn { background: #fbe1da; }
.el-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.el-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.el-row:first-of-type { margin-top: 14px; }
.el-row h4 { display: flex; gap: 7px; margin: 3px 0 0; font: 700 14px/1.3 var(--body); color: var(--muted); }
.block p.el-line { margin: 0 0 4px; }
.block > p.el-line { margin-top: 10px; }
.el-line b { font-weight: 700; }
.el-steps { margin: 8px 0 0; padding-left: 20px; }
.el-strip { display: flex; gap: 2px; height: 12px; margin-top: 14px; border-radius: 6px; overflow: hidden; }
.el-strip i, .el-parts i { background: var(--banana); }
i.k1 { background: var(--ink); } i.k2 { background: var(--tongue); } i.k3 { background: var(--muted); }
.el-parts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.el-parts i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.page-acts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.page-acts .heart { border: 1px solid var(--line); }
.cover { position: relative; aspect-ratio: 9/16; background: var(--soft) center/cover no-repeat; border-radius: var(--r); overflow: hidden; transition: transform var(--fast); }
.reel:hover .cover { transform: translateY(-3px); }
.v { position: absolute; left: 8px; top: 8px; background: var(--paper); font: 700 15px/1 var(--body); padding: 6px 9px; border-radius: 9px; }
.v.hot { background: var(--banana); }
.meta { padding: 8px 2px 0; }
.meta .views { font-weight: 700; font-size: 17px; }
.meta .who { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 40px 0; max-width: 560px; }
.empty h2 { font-size: 26px; margin-bottom: 10px; }
.more { margin: 24px 0; }

.page { position: fixed; inset: 0; background: var(--paper); z-index: 10; overflow-y: auto; }
.page-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 28px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.page-body { max-width: 1160px; margin: 0 auto; padding: 8px 28px 48px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.side { position: sticky; top: 74px; }
.side video, .side .poster { width: 100%; aspect-ratio: 9/16; max-height: calc(100vh - 170px); background: #000 center/contain no-repeat; display: block; border-radius: var(--r); object-fit: contain; }
.side p { margin: 10px 0 0; }
.score { font: 400 52px/1 var(--word); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; margin: 20px 0; }
.kv b { display: block; font-size: 19px; }
.kv span { font-size: 14px; color: var(--muted); }
.block { margin-top: 28px; }
.block h3 { font-size: 20px; margin-bottom: 10px; }
.block p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 56px 72px minmax(0, 1fr); gap: 14px; padding: 8px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 10px; align-items: start; width: 100%; }
.tl:hover { background: var(--soft); }
.tl .t { font-weight: 700; color: var(--muted); font-size: 15px; }
.tl img { width: 72px; aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; background: var(--soft); display: block; }
.tl .say { font-weight: 500; }
.tl .see { color: var(--muted); font-size: 15px; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 9px; padding: 3px 9px; font-size: 14px; }
.chip button { border: 0; background: none; cursor: pointer; padding: 0 2px; color: var(--muted); font-size: 15px; line-height: 1; }
.chip button:hover { color: var(--ink); }
.chip-add { width: 150px; padding: 4px 10px; font-size: 14px; border-radius: 9px; }
.tag-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--banana); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform var(--fast) ease-out; }
.tag-chip:hover { transform: translateY(-1px); }
.tag-chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tag-chip span { font-size: 18px; line-height: 1; }

table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 700; font-size: 14px; color: var(--muted); padding: 6px 14px 8px 0; white-space: nowrap; }
td { padding: 12px 14px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; }
.table-wrap { overflow-x: auto; }
.tag { font-size: 14px; padding: 2px 8px; border-radius: 8px; background: var(--soft); white-space: nowrap; }
.tag.running, .tag.queued { background: #fdf1cf; } .tag.waiting { background: #fdf1cf; } .tag.failed { background: #fbe1da; }
.best td { background: #fdf6e0; }
.best td:first-child { border-radius: 10px 0 0 10px; padding-left: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 16px; margin: 12px 0 8px; }
.stats > div { min-width: 0; }
.stats b { display: block; font: 400 clamp(22px, 2.4vw, 30px) var(--word); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats b small { font-size: .5em; color: var(--muted); }
.section { margin-bottom: 40px; max-width: 1000px; }
.section h2 { font-size: 26px; margin-bottom: 14px; }
.section p { max-width: 68ch; }

.chat { max-width: 800px; display: flex; flex-direction: column; gap: 14px; }
.chat h2 { font-size: 26px; }
#log { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { background: var(--soft); margin-left: 15%; font-weight: 500; }
.msg.ai-msg { padding-left: 0; }
.msg .src { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
.ask { display: flex; gap: 10px; align-items: flex-end; }
.ask textarea { flex: 1; min-height: 64px; resize: vertical; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: min(340px, 100%); display: grid; gap: 12px; justify-items: stretch; }
.login img { width: 72px; height: 72px; border-radius: 50%; justify-self: center; }
.login h1 { font-size: 28px; text-align: center; margin-bottom: 8px; }

@media (max-width: 800px) {
  .top { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; }
  .ch-acts { width: 100%; margin-left: 0; }
  .brand span { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 32px; gap: 18px; }
  .rail { position: static; gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .page-top { padding: 12px 16px; }
  .hide-sm { display: none; }
  .st { width: 130px; }
  .dr-strip { min-height: 231px; }
  body.flowing .rail, body.flowing .bar > :not(.view-switch):not(#cnt):not(#from-top) { display: none; }
  body.flowing .layout { gap: 0; }
  body.flowing .bar { margin-bottom: 8px; }
  .clip { position: relative; gap: 0; }
  .clip-frame { width: 100%; aspect-ratio: auto; }
  .clip-side { position: absolute; right: 8px; bottom: 96px; }
  .el-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .el-sum { grid-template-columns: 112px minmax(0, 1fr); }
  .take { padding: 0 12px; }
  .page-acts { gap: 10px; }
  .page-body { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 32px; gap: 18px; }
  .side { position: static; max-width: 260px; }
  .tl { grid-template-columns: 44px 56px minmax(0, 1fr); gap: 10px; padding: 8px 2px; }
  .tl img { width: 56px; }
  .msg.user { margin-left: 8%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.page:not(.show-orig) .orig, .page.show-orig .ru { display: none; }
.lang { display: inline-flex; margin-bottom: 12px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.lang button { padding: 8px 14px; min-height: 40px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.lang button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.lang button.on { background: var(--banana); }

.dd { position: relative; display: inline-block; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; white-space: nowrap; transition: border-color var(--fast); }
.dd-btn:hover, .dd-btn:focus-visible, .dd.open .dd-btn { border-color: var(--ink); outline: none; }
.chev { flex: none; transition: transform var(--fast); }
.dd.open .chev { transform: rotate(180deg); }
.dd-menu { position: fixed; z-index: 40; margin: 0; padding: 6px; list-style: none; max-width: calc(100vw - 32px); overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.dd-menu li { padding: 9px 12px; min-height: 40px; display: flex; align-items: center; border-radius: 8px; cursor: pointer; white-space: nowrap; outline: none; }
.dd-menu li:hover, .dd-menu li:focus { background: var(--soft); }
.dd-menu li[aria-selected="true"] { font-weight: 700; background: var(--soft); }
.dd-menu li[aria-disabled="true"] { color: var(--muted); cursor: default; background: none; }
.scope-row { position: relative; display: flex; align-items: center; }
.scope-row .scope { padding-right: 40px; }
#scopes .scope { padding-left: 54px; } /* one text column for every row: tick box, then the star, live in this gutter */
#scopes > details > a.scope { padding-left: 12px; }
.scope-row .star { left: 28px; }
/* Tick box: a banana square with an ink check, in the same hard-edged language as the switches */
.ck { position: absolute; left: 4px; z-index: 1; display: grid; place-items: center; width: 24px; height: 28px; cursor: pointer; }
.ck input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ck i { width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--paper); transition: background var(--fast), box-shadow var(--fast); pointer-events: none; }
.ck:hover i { background: var(--soft); }
.ck input:checked + i { background: var(--banana) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%230a0a09' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ck input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.scope-row.nolist .scope { cursor: default; padding-right: 12px; color: var(--muted); }
.pick-acts { display: flex; gap: 4px; padding: 0 12px 4px; }
.pick-btn { padding: 2px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.pick-btn:hover { background: var(--soft); color: var(--ink); }
.pick-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* The star sits left of the name: hidden until hover, always shown once set. */
.star { position: absolute; left: 4px; z-index: 1; display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; fill: none; stroke: var(--ink); stroke-width: 1.8; opacity: 0; transition: opacity var(--fast), fill var(--fast); }
.scope-row:hover .star, .star:focus-visible { opacity: 1; }
.star:hover { fill: var(--banana); }
.star:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.star.on { opacity: 1; fill: var(--banana); stroke: var(--ink); }
@media (hover: none) { .scope-row:hover .star:not(.on) { opacity: 0; } .star:not(.on) { pointer-events: none; } }
.more-dd { position: absolute; right: 2px; }
.dd-btn.dots { min-height: 36px; width: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; color: var(--muted); fill: currentColor; }
.dd-btn.dots:hover, .dd-btn.dots:focus-visible, .dd.open .dd-btn.dots { border-color: transparent; background: var(--line); color: var(--ink); }
.scope-row .scope .n { margin-left: auto; }
.dlg { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); color: var(--ink); }
.dlg::backdrop { background: rgb(10 10 9 / .35); }
.dlg h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.dlg p { margin: 0 0 16px; }
.dlg-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.btn.danger { background: var(--tongue); }
@media (max-width: 480px) { .bar .fol { flex: 1 1 100%; } .bar .fol .dd { flex: 1 1 0; } .bar .fol .dd-btn { padding: 0 10px; gap: 6px; font-size: 15px; } .bar .dd { flex: 1 1 calc(50% - 6px); min-width: 0; } .bar .dd-btn { width: 100%; } .bar .dd-btn span { overflow: hidden; text-overflow: ellipsis; } }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* Own versions and blogs */
.own-list { margin: 10px 0 0; padding-left: 18px; }
.own-list li { margin: 4px 0; }
.ver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.ver-card { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; transition: border-color var(--fast), transform var(--fast); }
.ver-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.ver-card img { width: 64px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: var(--soft); }
.ver-card > span { display: flex; flex-direction: column; gap: 4px; }
.ver-card .muted { font-size: 14px; }
.ver { max-width: 1100px; }
.ver-head { display: flex; gap: 22px; align-items: flex-start; }
.ver-head > div { min-width: 0; overflow-wrap: anywhere; }
.ver-head h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 4px 0 8px; }
.ver-src img { width: 110px; height: 165px; object-fit: cover; border-radius: 12px; display: block; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--banana); }
.ver-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ver-wait { margin-top: 24px; font-size: 18px; }
.ver-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ver-block { margin-top: 28px; }
.ver-cols .ver-block { margin-top: 0; background: var(--soft); border-radius: var(--r); padding: 16px 18px; }
.ver-block h3 { font-size: 20px; margin-bottom: 10px; }
.ver-block h4 { margin: 16px 0 6px; font-size: 15px; }
.ver-block ul, .ver-block ol { margin: 0; padding-left: 20px; }
.ver-block li { margin: 5px 0; }
.ver-why { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--banana); background: var(--paper); }
.ver-hooks li { margin-bottom: 14px; }
.ver-hook { font-size: 19px; font-weight: 700; }
.ver-hooks .el-tags { margin: 6px 0 4px; }
.ver-hooks p { margin: 0; font-size: 14px; }
.small { font-size: 14px; }
.ed { min-height: 1.5em; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; transition: background var(--fast), box-shadow var(--fast); }
.ed:hover { background: var(--soft); }
.ed:focus { background: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.ed.saved { box-shadow: 0 0 0 2px var(--banana); }
table.sc { width: 100%; border-collapse: collapse; }
table.sc th { text-align: left; font-size: 13px; color: var(--muted); padding: 6px 10px; border-bottom: 2px solid var(--ink); }
table.sc td { vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
table.sc td.t { width: 76px; font-variant-numeric: tabular-nums; color: var(--muted); }
table.sc td:nth-child(3) { width: 30%; font-weight: 700; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.shot { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.shot-t { background: var(--ink); color: var(--paper); padding: 6px 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.shot-t .ed:hover, .shot-t .ed:focus { background: #2a2925; box-shadow: none; }
.shot-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.shot-k { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 8px; }
.shot-k:first-child { margin-top: 0; }
.facts a, .links a { color: var(--ink); }
/* Blogs: a list, then one page per blog */
.blogs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.blogs-head p { margin: 0; }
.blog-new { display: flex; gap: 8px; flex: 0 1 380px; }
.blog-new .field { flex: 1; min-width: 0; }
.blog-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.blog-item { display: flex; align-items: center; gap: 20px; padding: 18px 8px 18px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background var(--fast); }
.blog-item:hover { background: var(--soft); }
.blog-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.blog-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; flex: 1; min-width: 0; }
.blog-name { font-size: 21px; line-height: 1.2; }
.blog-meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.topics { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 6px; margin-top: 2px; }
.topic { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--banana); font-size: 13px; font-weight: 700; }
.topic.more { background: none; border: 1px solid var(--line); font-weight: 400; color: var(--muted); }
.blog-go { font-size: 22px; transition: transform var(--fast); }
.blog-item:hover .blog-go { transform: translateX(4px); }
.blog-page { max-width: 1100px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-weight: 700; }
.back:hover { color: var(--ink); }
.blog-title { display: block; width: 100%; resize: none; overflow: hidden; overflow-wrap: anywhere; margin: 0 0 22px; padding: 2px 8px; margin-left: -8px; border: 0; border-radius: 10px; background: none; font: inherit; font-family: var(--word); font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; line-height: 1.1; color: var(--ink); }
.blog-title:hover { background: var(--soft); }
.blog-title:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); background: var(--paper); }
.blog-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.blog-col { display: grid; gap: 22px; }
.blog-side { display: grid; gap: 20px; padding: 18px; border-radius: var(--r); background: var(--soft); position: sticky; top: 84px; }
.bf { display: grid; gap: 6px; }
.bf-label { font-weight: 800; font-size: 15px; }
.bf-hint { color: var(--muted); font-size: 13px; margin-top: -4px; }
.bf textarea { resize: vertical; line-height: 1.45; }
.acc-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: -10px; font-size: 14px; }
.acc-links a { color: var(--ink); }
.blog-vers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.blog-vers a { display: grid; gap: 4px; color: inherit; text-decoration: none; font-size: 12px; line-height: 1.25; }
.blog-vers img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: var(--line); transition: transform var(--fast); }
.blog-vers a:hover img { transform: translateY(-2px); }
.blog-vers span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 12px 0; border-top: 1px solid var(--line); background: var(--paper); z-index: 2; }
@media (max-width: 800px) {
  .ver-head { flex-direction: column; }
  .ver-src img { width: 84px; height: 126px; }
  .ver-cols, .blog-cols { grid-template-columns: 1fr; }
  .blog-side { position: static; }
  .blog-new { flex: 1 1 100%; }
  table.sc thead { display: none; }
  table.sc tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.sc td { border: 0; padding: 4px 0; width: auto !important; }
}

/* Lists fold into one row on phones */
.scopes-sum { display: none; }
@media (max-width: 800px) {
  .scopes-title { display: none; }
  .scopes-sum { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; list-style: none; }
  .scopes-sum::-webkit-details-marker { display: none; }
  .scopes-sum b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .scopes-dd[open] .scopes-sum { border-color: var(--ink); margin-bottom: 8px; }
  .scopes-dd[open] .scopes-sum .chev { transform: rotate(180deg); }
}

/* Format sketches and the format picker */
.fmt-art { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.fmt-cover { background-size: cover; background-position: center; }
.dlg.ver-dlg { width: min(760px, calc(100vw - 32px)); }
.ver-dlg .f-label { font-weight: 800; font-size: 15px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.seg button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--ink); background: var(--banana); font-weight: 700; }
.fmt-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 8px; }
.fmt-nav { display: flex; gap: 6px; }
.fmt-nav button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 16px; cursor: pointer; transition: border-color var(--fast); }
.fmt-nav button:hover { border-color: var(--ink); }
.fmt-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 4px 4px 14px; margin: 0 -4px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.fmt-card { flex: 0 0 118px; scroll-snap-align: start; display: grid; gap: 6px; align-content: start; padding: 6px; border: 2px solid transparent; border-radius: 14px; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast); }
.fmt-card:hover { transform: translateY(-2px); }
.fmt-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fmt-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--banana); }
.fmt-card b { font-size: 13px; line-height: 1.2; }
.fmt-card small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.fmt-desc { min-height: 3em; margin: 4px 0 0; padding: 10px 14px; border-left: 4px solid var(--banana); background: var(--soft); border-radius: 0 10px 10px 0; }
.ver-fmt { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ver-fmt .fmt-art { width: 44px; flex: none; border-radius: 7px; }
.ver-fmt > span { display: grid; font-size: 14px; }
@media (max-width: 480px) { .fmt-card { flex-basis: 100px; } .fmt-nav { display: none; } .dlg.ver-dlg { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .fmt-card { transition: none; } }

/* Big view of one reel in the scroller */
.clip-zoom { position: absolute; right: 8px; top: 56px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(10 10 9 / .55); color: var(--paper); cursor: pointer; transition: background var(--fast); }
.clip-zoom:hover, .clip-sound:hover { background: rgb(10 10 9 / .8); }
.clip video { touch-action: manipulation; }
.clip.big .clip-frame { position: fixed; top: 0; left: 50%; z-index: 40; height: 100vh; height: 100dvh; width: auto; max-width: 100vw; border-radius: 0; transform: translateX(-50%); box-shadow: 0 0 0 100vmax rgb(10 10 9 / .94); }
.clip.big .clip-side { display: none; }
body.zoomed .flow { overflow: hidden; }
body.zoomed .top { visibility: hidden; }
@media (max-width: 800px) { .clip.big .clip-frame { left: 0; width: 100vw; transform: none; } }

/* Favourites grouped by the list they came from */
.fav-group { margin: 8px 0 34px; }
.fav-group h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 22px; }
.fav-group h3 a { color: inherit; text-decoration: none; }
.fav-group h3 a:hover { text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: 3px; }
.fav-group h3 .n { font-family: var(--body); font-size: 15px; color: var(--muted); }
.fav-group:not(:has(.reel)) { display: none; }

/* Ideas without a reel get a letter instead of a cover */
.idea-ph { display: grid; place-items: center; background: var(--banana); color: var(--ink); font: 400 34px var(--word); text-transform: uppercase; }
.ver-card .idea-ph { width: 64px; height: 96px; border-radius: 10px; flex: none; }
span.ver-src.idea-ph { width: 110px; height: 165px; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--tongue); font-size: 54px; }

/* Nine elements: number, name, the decision and a quieter why */
.plan { display: grid; grid-template-columns: minmax(0, 1fr); margin: 14px 0 0; border-top: 1px solid var(--line); }
.plan-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan-row dt { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.plan-n { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 12px var(--body); }
.plan-row dd { margin: 0; min-width: 0; }
.plan-why { margin-top: 4px; color: var(--muted); font-size: 14px; }
.plan-why .ed::before { content: 'почему: '; color: var(--muted); }
.vo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.vo { display: block; width: 100%; min-height: 220px; margin-top: 10px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); font-size: 18px; line-height: 1.6; resize: vertical; box-shadow: 4px 4px 0 var(--banana); }
.vo:focus { outline: none; box-shadow: 4px 4px 0 var(--tongue); }
.ver-facts summary { cursor: pointer; font-weight: 700; }
.small { font-size: 14px; }

/* «В работе» list */
.work { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.work-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--fast); }
.work-row:hover { border-color: var(--ink); }
.work-cover { width: 56px; height: 84px; border-radius: 10px; overflow: hidden; display: block; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--soft); }
.work-cover.idea-ph { font-size: 26px; }
.work-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.work-main b { overflow-wrap: anywhere; }
.work-acts { display: flex; align-items: center; gap: 10px; }
.work-st { font-size: 13px; color: var(--muted); white-space: nowrap; }
.work-st.st-failed { color: var(--tongue); font-weight: 700; }
.work-st.st-running, .work-st.st-queued { color: var(--ink); }
.idea-dlg input, .idea-dlg textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
@media (max-width: 640px) {
  .plan-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .work-row { grid-template-columns: 48px minmax(0, 1fr); }
  .work-cover { width: 48px; height: 72px; }
  .work-acts { grid-column: 1 / -1; justify-content: flex-end; }
}
#idea-new { margin-left: auto; }
/* Engagement level: a word and a four-step meter carry the level, colour only backs it up. */
.er { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 8px; border: 1px solid transparent; font: 600 11px/1.2 var(--body); white-space: nowrap; cursor: help; vertical-align: middle; }
.cover .er, .clip-frame .er { position: absolute; left: 8px; top: 40px; z-index: 1; }
.cover .er.solo, .clip-frame .er.solo { top: 8px; }
.er:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.er-bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 9px; }
.er-bars b { width: 3px; border-radius: 1px; background: currentColor; opacity: .25; }
.er-bars b:nth-child(1) { height: 3px; } .er-bars b:nth-child(2) { height: 5px; } .er-bars b:nth-child(3) { height: 7px; } .er-bars b:nth-child(4) { height: 9px; }
.er-bars.n1 b:nth-child(-n+1), .er-bars.n2 b:nth-child(-n+2), .er-bars.n3 b:nth-child(-n+3), .er-bars.n4 b { opacity: 1; }
.er.lv-low { background: var(--paper); color: var(--muted); border-color: var(--line); }
.er.lv-mid { background: var(--soft); color: var(--ink); border-color: var(--line); }
.er.lv-high { background: #d8efdc; color: #0f4a22; }
.er.lv-top { background: #17753a; color: #fff; }
.er.inline { margin-left: 4px; }
.kv .er.inline { margin-left: 0; font-size: 13px; padding: 4px 9px; }
#er-tip { position: fixed; z-index: 90; max-width: min(300px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.45; box-shadow: 0 8px 24px rgb(0 0 0 / .22); }
#er-tip[hidden] { display: none; }
#er-tip p { margin: 0; } #er-tip p:first-child { margin-bottom: 6px; }
#er-tip .lv { opacity: .75; } #er-tip .lv.now { opacity: 1; font-weight: 700; }

/* Reel played in place from its cover */
.mini { position: relative; overflow: hidden; cursor: pointer; background: #000; }
.mini video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-ic { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity var(--fast); }
.mini-ic svg { width: 34%; height: auto; max-width: 44px; padding: 8px; border-radius: 50%; background: rgb(255 255 255 / .9); fill: var(--ink); box-sizing: content-box; }
.mini.playing .mini-ic { opacity: 0; }
.mini-off { display: none; position: absolute; inset: auto 0 0; padding: 4px; background: rgb(10 10 9 / .7); color: #fff; font-size: 11px; text-align: center; }
.mini.off .mini-off { display: block; }
.mini:focus-visible { outline: 3px solid var(--tongue); outline-offset: 2px; }
.ver-src.mini { width: 120px; height: 213px; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--banana); flex: none; }
.work-cover.mini { width: 56px; height: 84px; border-radius: 10px; }
.work-cover.mini .mini-ic svg { padding: 5px; }
.ver-no { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 8px; background: var(--ink); color: var(--banana); font: 700 .8em/1.4 var(--body); vertical-align: .08em; letter-spacing: .02em; }
.work-on { gap: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.work-mode { margin: 0 0 0 auto; }
.work-mode + #idea-new { margin-left: 0; }

/* The workshop: every reel in work open at once */
.shop-hint { margin: 0 0 10px; }
.shop-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.shop-toc a { padding: 3px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.shop-toc a:hover { border-color: var(--ink); background: var(--banana); }
.ws { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 26px 0 30px; border-top: 2px solid var(--ink); scroll-margin-top: 90px; }
.ws-side { position: relative; }
.ws-cover { position: sticky; top: 90px; width: 150px; height: 267px; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--banana); display: block; }
.ws-cover.idea-ph { display: grid; font-size: 60px; }
.ws-head { display: flex; align-items: flex-start; gap: 14px; }
.ws-head h3 { font-size: 24px; flex: 1; overflow-wrap: anywhere; }
.ws .ver-block { margin-top: 14px; }
.ws .vo { min-height: 160px; }
@media (max-width: 640px) {
  .ws { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ws-cover { position: relative; top: auto; width: 110px; height: 196px; }
  .work-cover.mini { width: 48px; height: 72px; }
  .ver-src.mini { width: 96px; height: 170px; }
  .work-mode { margin-left: 0; }
}

/* Blog topics as separate items */
.topic-ed { list-style: none; margin: 8px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-ed li { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--banana); font-weight: 700; font-size: 14px; line-height: 1.35; }
.topic-ed li span { overflow-wrap: anywhere; }
.topic-ed li.muted { background: none; padding-left: 0; font-weight: 400; }
.topic-ed button { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.topic-ed button:hover { background: rgb(10 10 9 / .1); }
.topic-ed button:focus-visible { outline: 2px solid var(--ink); }
.topic-add { display: flex; gap: 8px; }
.topic-add .field { flex: 1; min-width: 0; }
#blog-del { margin-left: auto; color: var(--tongue); }
.blog-vers .idea-ph { width: 100%; aspect-ratio: 2/3; border-radius: 8px; font-size: 28px; }
.topic-seg button { max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.idea-dlg select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.disc-num { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.disc-num .field { width: 120px; }
#dlist { max-width: 260px; }

/* Format catalogue */
.fmt-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.fmt-tile { width: auto; height: 100%; text-align: left; align-items: stretch; }
.fmt-tile small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: normal; }
.fmt-tile .fmt-n { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; }
#fmt-reels { margin-top: 24px; scroll-margin-top: 90px; }
.fmt-pick { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font: inherit; font-weight: 700; text-align: left; }
.fmt-pick:hover { border-color: var(--ink); }
.fmt-pick svg { width: 30px; height: auto; flex: none; border-radius: 4px; }
.fmt-pick small { color: var(--muted); font-weight: 400; }
.plan-fmt { display: block; margin-top: 8px; padding: 0; width: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; overflow: hidden; }
.plan-fmt:hover { border-color: var(--ink); }
.plan-fmt svg { display: block; width: 100%; height: auto; }
.plan-row dt { flex-wrap: wrap; }
@media (max-width: 640px) { .fmt-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-fmt { margin: 0 0 0 auto; } }

/* Lists a blogger is in, removable on the spot */
.lchips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.lchip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.lchip button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; transition: background var(--fast), color var(--fast); }
.lchip button:hover, .lchip button:focus-visible { background: var(--tongue); color: var(--paper); outline: none; }

.vid-dl { display: flex; justify-content: center; margin-top: 10px; }
/* «Приоритет» on «В работе»: a star before the title, and the filter that keeps only the starred. */
.work-filter { margin: 0 0 0 auto; }
.work-filter + .work-mode { margin-left: 0; }
.off-filter { display: none !important; }
.prio-empty { margin: 16px 0; }
.prio { display: inline-grid; place-items: center; vertical-align: -6px; width: 32px; height: 32px; margin: -6px 4px -6px -6px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; fill: none; stroke: var(--ink); stroke-width: 1.8; opacity: .35; transition: opacity var(--fast), fill var(--fast); }
.prio svg { width: 20px; height: 20px; }
.prio:hover { opacity: 1; fill: var(--banana); }
.prio:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; opacity: 1; }
.prio.on { opacity: 1; fill: var(--banana); }
/* The «Приоритет» star next to «В работу» in the scroller and on the reel page. */
.prio-star[hidden] { display: none; }
.prio-star svg { width: 22px; height: 22px; }
.prio-star.on svg { fill: var(--banana); }
.page-acts .prio-star { border: 1px solid var(--line); }
.clip-work { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.clip-work.on { border-color: var(--ink); background: var(--banana); }
.clip-soulless { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.clip-soulless.on { border-color: var(--soulless); background: var(--soulless); color: var(--paper); }
/* A row taken out of «В работе» leaves at once: display:grid on the row would otherwise beat [hidden]. */
[data-wi][hidden] { display: none !important; }

/* «Избранное» as a board: Избранное · В работе · Отработано (folded to a strip with its count until opened). */
.kanban { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px; gap: 18px; align-items: start; }
.kanban.done-open { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kb-col { min-height: 260px; padding: 14px; border-radius: var(--r); background: var(--soft); transition: box-shadow var(--fast), background var(--fast); }
.kb-col.drop-over { background: #fbf0cf; box-shadow: inset 0 0 0 2px var(--banana); }
.kb-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font: 400 20px var(--word); }
.kb-head .n { font: 600 15px var(--body); color: var(--muted); }
.kb-fold { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; }
.kb-fold:hover span:first-child { text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: 3px; }
.kb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 14px; }
.kb-cards .reel { cursor: grab; }
.kb-cards .reel.dragging { opacity: .35; }
.kb-empty { margin: 4px 0 0; font-size: 14px; }
.kb-col:not(.empty) .kb-empty { display: none; }
.kanban:not(.done-open) [data-col="done"] { padding: 14px 0; min-height: 260px; }
.kanban:not(.done-open) [data-col="done"] .kb-cards, .kanban:not(.done-open) [data-col="done"] .kb-empty { display: none; }
.kanban:not(.done-open) .kb-fold { writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; margin: 0 auto; width: auto; min-height: 230px; }
@media (max-width: 800px) {
  .kanban, .kanban.done-open { grid-template-columns: minmax(0, 1fr); }
  .kb-col { min-height: 0; }
  .kanban:not(.done-open) [data-col="done"] { min-height: 0; padding: 14px; }
  .kanban:not(.done-open) .kb-fold { writing-mode: horizontal-tb; min-height: 0; margin: 0; }
  .kanban:not(.done-open) [data-col="done"] .kb-head { margin: 0; }
  .kb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* «Почему зашёл»: the first thing on a reel's page — one bold line, then short reasons tagged by where they show */
.why { background: var(--soft); border-left: 4px solid var(--banana); border-radius: 4px var(--r) var(--r) 4px; padding: 14px 18px 16px; margin-bottom: 22px; }
.why-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.why-k { font: 400 15px var(--word); letter-spacing: .02em; text-transform: uppercase; }
.why-go { min-height: 36px; padding: 0 14px; }
.why-main { margin: 6px 0 10px !important; font-size: 19px; line-height: 1.35; font-weight: 700; white-space: normal !important; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.why-list li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: baseline; font-size: 15.5px; line-height: 1.4; }
.why-src { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.why-wait { margin: 6px 0 0 !important; font-size: 14.5px; }
.ver-why-slot .why { margin: 18px 0 6px; }
@media (max-width: 560px) { .why { padding: 12px 14px 14px; } .why-list li { grid-template-columns: 1fr; gap: 1px; } .why-main { font-size: 17px; } }
/* Phones: the status switch takes its own row under the round buttons instead of running off the edge */
@media (max-width: 640px) {
  .page-top { align-items: flex-start; }
  .page-acts { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; gap: 8px; }
  .page-acts .page-st { order: 9; flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 14px; }
  .page-acts .page-st button { flex: 1 1 auto; padding: 6px 8px; font-size: 13px; text-align: center; }
  .why-head { flex-wrap: wrap; }
  .why-go { white-space: nowrap; min-height: 34px; padding: 0 12px; font-size: 14px; }
}

/* Our versions on the «Избранное» board (reels#88, reels#271): Избранное · В работе · В работе без души · Снято · На монтаже · Отработано */
.kanban.stages { grid-template-columns: repeat(5, minmax(0, 1fr)) 64px; gap: 12px; }
.kanban.stages.done-open { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kanban.stages .kb-col { padding: 12px; }
.kanban.stages .kb-cards { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 16px 12px; }
.kb-cards .card-st .st-soulless-pill { padding: 4px 8px; font-size: 11px; }
.kb-cards .card-st .card-st-main button { padding: 3px 5px; font-size: 11px; }
.vk .cover.idea-ph { display: grid; place-items: center; font: 400 44px var(--word); background: var(--banana); }
.vk-no { position: absolute; left: 8px; top: 8px; margin: 0; }
.vk-soulless { position: absolute; left: 8px; top: 36px; padding: 2px 8px; border-radius: 999px; background: var(--soulless); color: var(--paper); font-size: 11px; font-weight: 700; line-height: 1.25; }
.vk-tag { position: absolute; right: 8px; top: 8px; padding: 1px 8px; border-radius: 8px; background: rgb(255 255 255 / .92); font-size: 12px; font-weight: 700; color: var(--muted); }
.vk-pubs { position: absolute; left: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }
.vk-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vk .who { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vk-copy { width: 100%; margin-top: 8px; min-height: 44px; padding: 0 10px; }
.vk-copy.done { background: var(--ink); color: var(--banana); }
.vk-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 8px; border-radius: 12px; }
.vk-seg button { padding: 5px 4px; font-size: 12px; text-align: center; }
.stage-seg [data-stage="work"][aria-pressed="true"] { background: var(--banana); color: var(--ink); }
.stage-seg [data-stage="shot"][aria-pressed="true"] { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.stage-seg [data-stage="edit"][aria-pressed="true"] { background: var(--tongue); color: var(--paper); }
.stage-seg [data-stage="published"][aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (min-width: 801px) and (max-width: 1180px) {
  .kanban.stages, .kanban.stages.done-open { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kanban.stages:not(.done-open) [data-col="done"] { min-height: 0; padding: 12px; }
  .kanban.stages:not(.done-open) .kb-fold { writing-mode: horizontal-tb; min-height: 0; margin: 0; }
  .kanban.stages:not(.done-open) [data-col="done"] .kb-head { margin: 0; }
}
@media (max-width: 800px) {
  .kanban.stages, .kanban.stages.done-open { grid-template-columns: minmax(0, 1fr); }
  .kanban.stages .kb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* «Публикация» on the version page: the reference and ours side by side, the links, where the edit is */
.pub { margin-top: 22px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--banana); background: var(--paper); }
.pub-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pub-head h3 { font-size: 20px; margin-right: auto; }
.pub-head .stage-seg { max-width: 100%; flex-wrap: wrap; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 18px; margin-top: 14px; }
.pair figure { margin: 0; min-width: 0; }
.pair figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; font-size: 14px; }
.pair figcaption b { font: 400 16px var(--word); }
.pair video, .pair .own-empty { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; object-fit: contain; }
.pair .own-empty { display: grid; place-items: center; align-content: center; gap: 10px; padding: 14px; text-align: center; background: var(--soft); color: var(--muted); font-size: 14px; border: 1px dashed var(--line); box-sizing: border-box; }
.orig { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.pub-copy { margin-top: 14px; }
.pub-copy.done { background: var(--ink); color: var(--banana); }
.pub-rows { margin: 14px 0 0; display: grid; }
.pub-rows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pub-rows dt { font-weight: 700; font-size: 14px; color: var(--muted); }
.pub-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pub-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.pub-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pub-list a:not(.pf) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-x { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; margin-left: auto; transition: border-color var(--fast), color var(--fast); }
.pub-x:hover { border-color: var(--ink); color: var(--ink); }
.pub-add { display: flex; gap: 8px; margin-top: 6px; }
.pub-add .field, .pub-rows .field { flex: 1 1 auto; min-width: 0; padding: 8px 12px; }
.pub-prev { display: flex; gap: 8px; align-items: center; }
.pf { display: inline-flex; align-items: center; flex: none; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; transition: border-color var(--fast); }
a.pf:hover { border-color: var(--ink); }
.pf-instagram { box-shadow: inset 3px 0 0 #d6249f; }
.pf-tiktok { box-shadow: inset 3px 0 0 #25f4ee; }
.pf-youtube { box-shadow: inset 3px 0 0 #ff0033; }
.pf-facebook { box-shadow: inset 3px 0 0 #1877f2; }
.own-up { cursor: pointer; }
.own-up input { position: absolute; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) {
  .pub { padding: 14px; }
  .pub-head h3 { width: 100%; }
  .pair { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
  .pub-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.pub-add .btn, .pub-prev .clip-more { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .pub-head .stage-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
  .pair { max-width: 240px; }
}

/* «Монтаж» (reels#90): one card per reel on the edit; what waits for Сергей goes first */
.mt[hidden], .mt-group[hidden] { display: none; }
.mt-blogs { margin: -6px 0 18px; }
.mt-blog-row { margin: 0 0 6px; }
.mt-blog { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--banana); color: var(--ink); font: 700 12px var(--body); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.mt-blog.none { background: none; border: 1px solid var(--line); color: var(--muted); }
.mt-group + .mt-group { margin-top: 30px; }
/* reels#93: a group is one row that scrolls sideways, never a second row; a card snaps to the edge and the next one peeks in. */
.mt-group > .kb-head { font-size: 36px; line-height: 1.1; gap: 12px; }
.mt-group > .kb-head .n { font-size: 20px; }
.mt-grid { --mt-card: clamp(240px, calc((100% - 3 * 18px) / 3.5), 340px); display: flex; gap: 18px; align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 6px 14px 2px; margin: -2px -6px 0 -2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.mt-grid > .mt { flex: 0 0 var(--mt-card); scroll-snap-align: start; }
.mt-row { position: relative; }
.mt-row::after { content: ''; position: absolute; top: 0; right: -6px; bottom: 14px; width: 84px; pointer-events: none;
  background: linear-gradient(to right, rgb(255 255 255 / 0), var(--paper) 85%); opacity: 0; transition: opacity .2s ease-out; }
.mt-row.more::after { opacity: 1; }
.mt-next { position: absolute; z-index: 1; top: 180px; right: 6px; width: 52px; height: 52px; display: grid; place-items: center; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--banana); color: var(--ink); font: 700 24px/1 var(--body); cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform var(--fast) ease-out, box-shadow var(--fast) ease-out; }
.mt-next:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.mt-next:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.mt-next:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mt-next[hidden] { display: none; }
.mt { min-width: 0; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.mt-group[data-group="wait"] .mt { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--banana); }
.mt-group[data-group="done"] .mt { background: var(--soft); }
details.mt-group > summary { cursor: pointer; list-style: none; width: max-content; }
details.mt-group > summary::-webkit-details-marker { display: none; }
details.mt-group > summary::after { content: '▸'; font: 600 15px var(--body); color: var(--muted); transition: transform .2s var(--ease, ease); }
details.mt-group[open] > summary::after { transform: rotate(90deg); }
details.mt-group > summary:hover span:first-child, details.mt-group > summary:focus-visible span:first-child { text-decoration: underline var(--banana) 3px; text-underline-offset: 4px; }
details.mt-group:not([open]) > summary { margin: 0; }
.mt-group[data-group="approved"] .mt { border-color: var(--ink); }
.mt-group[data-group="publishing"] .mt { border-color: var(--banana); }
.mt-today { margin-left: auto; padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 14px var(--body); white-space: nowrap; }
.mt-today.full { background: var(--ink); color: var(--banana); }
.mt-head { display: flex; align-items: flex-start; gap: 10px; }
.mt-title { flex: 1; min-width: 0; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.mt-st { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mt-st-hooks, .mt-st-review { background: var(--banana); box-shadow: none; }
.mt-st-approved { background: var(--ink); color: var(--paper); box-shadow: none; }
.mt-st-published, .mt-st-paused { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.mt-refs { margin: -4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.mt-refs a { color: var(--ink); font-weight: 600; text-decoration-color: var(--banana); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mt-player { margin: 0; min-width: 0; }
.mt-player video, .mt-empty { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 72vh; border-radius: 12px; background: #000; object-fit: contain; }
.mt-player figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.mt-player figcaption b { color: var(--ink); }
.mt-stale { margin: 0; padding: 7px 10px; border: 2px dashed var(--tongue); border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 14px; }
.mt-stale::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--tongue); vertical-align: 1px; animation: mt-pulse 1.4s ease-in-out infinite; }
@keyframes mt-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .mt-stale::before { animation: none; } }
.mt-empty { display: grid; place-items: center; background: var(--soft); color: var(--muted); font-size: 14px; border: 1px dashed var(--line); box-sizing: border-box; }
.mt-hooks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mt-hook { margin: 0; min-width: 0; display: grid; gap: 5px; }
.mt-hook-v { position: relative; cursor: pointer; }
.mt-hook video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: contain; outline: 3px solid transparent; outline-offset: 1px; transition: outline-color var(--fast); }
.mt-hook.on video { outline-color: var(--banana); }
.mt-play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgb(10 10 9 / .62); transition: opacity var(--fast), transform var(--fast); pointer-events: none; }
.mt-play::after { content: ''; position: absolute; left: 15px; top: 11px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--paper); }
.mt-hook-v:hover .mt-play { transform: scale(1.08); }
.mt-hook-v.playing .mt-play { opacity: 0; }
.mt-hook figcaption { font-weight: 700; font-size: 14px; text-align: center; }
.mt .mt-pick { min-height: 38px; padding: 0 4px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.mt-pick[aria-pressed="true"] { background: var(--ink); color: var(--banana); border-color: var(--ink); }
.mt-agent { margin: 0; padding: 7px 10px; border-left: 3px solid var(--banana); background: var(--soft); border-radius: 3px 10px 10px 3px; font-size: 14px; overflow-wrap: anywhere; }
.mt-agent span { font-weight: 700; color: var(--muted); }
.mt-hist summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); width: max-content; }
.mt-hist summary:hover { color: var(--ink); }
.mt-hist > .mt-agent, .mt-hist > .fb-reply { margin-top: 8px; font-size: 13px; }
.mt-hist ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.mt-hist li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; align-items: baseline; }
.mt-hist li > span { color: var(--muted); white-space: nowrap; }
.mt-show { padding: 3px 0; border: 0; background: none; cursor: pointer; font-weight: 600; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.mt-show:hover, .mt-show.on { text-decoration-color: var(--banana); text-decoration-thickness: 3px; }
.mt-fb { display: grid; gap: 8px; }
.mt-fb textarea { resize: none; min-height: 46px; line-height: 24px; overflow-y: auto; }
.mt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-acts .btn { flex: 1 1 auto; min-height: 44px; }
.mt-acts .btn.ghost { min-height: 44px; }
.mt-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mt-feed:empty { display: none; }
.fb { padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.fb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 12.5px; }
.fb-st { padding: 1px 8px; border-radius: 999px; font-weight: 700; background: var(--banana); color: var(--ink); }
.fb-taken .fb-st { background: var(--tongue); color: var(--paper); }
.fb-done .fb-st { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.fb-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-reply { margin: 4px 0 0; padding-left: 10px; border-left: 2px solid var(--ink); color: var(--ink); overflow-wrap: anywhere; }
.fb-done .fb-text { color: var(--muted); }
.fb-cancelled { opacity: .75; }
.fb-cancelled .fb-st { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.fb-cancelled .fb-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.fb-work { margin: 6px 0 0; font-weight: 700; font-size: 13.5px; color: var(--tongue); }
.mt .mt-undo-fb { margin-top: 8px; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 700; width: 100%; white-space: normal; line-height: 1.2; }
.mt-back { display: flex; flex-wrap: wrap; gap: 8px; }
.mt .mt-back .btn { flex: 1 1 auto; min-height: 44px; font-size: 14px; font-weight: 700; white-space: normal; line-height: 1.2; }
.mt-log summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); width: max-content; min-height: 32px; display: flex; align-items: center; }
.mt-log summary:hover { color: var(--ink); }
.mt-log ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.mt-log li { display: grid; grid-template-columns: 1fr; gap: 0 10px; font-size: 13px; padding-left: 8px; border-left: 3px solid var(--line); }
.mt-log li span, .mt-log li i { color: var(--muted); font-style: normal; }
@media (min-width: 801px) { .mt-undo-fb { width: auto; } }
@media (max-width: 800px) { .mt-grid { --mt-card: 80vw; gap: 12px; } .mt-group > .kb-head { font-size: 34px; } .mt-player video { max-height: 70vh; } }

/* reels#97: favourites by blog. The plaques rise from the bottom edge while a card is dragged; the nearer the cursor, the bigger. */
.reel[hidden] { display: none; }
.blog-tag { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-blogs { margin: 0 0 14px; }
.fav-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px 14px; background: var(--soft); border-top: 2px solid var(--ink); pointer-events: none; animation: fd-in var(--fast) ease-out; }
@keyframes fd-in { from { transform: translateY(100%); } to { transform: none; } }
.fd-title { font: 400 13px var(--word); text-align: center; margin-bottom: 8px; }
.fd-row { display: flex; justify-content: center; align-items: flex-end; gap: 12px; min-height: 64px; }
.fd-slot { --k: 1; pointer-events: auto; min-width: 120px; max-width: 220px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); font-weight: 700; text-align: center; transform: scale(var(--k)); transform-origin: 50% 100%; transition: transform var(--fast), background var(--fast); }
.fd-slot.over { background: var(--banana); }
.fav-menu { position: fixed; z-index: 40; width: 220px; padding: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); display: grid; gap: 2px; }
.fav-menu .fm-title { font: 400 13px var(--word); padding: 6px 8px; }
.fav-menu button { text-align: left; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.fav-menu button:hover { background: var(--soft); }
@media (prefers-reduced-motion: reduce) { .fav-dock { animation: none; } .fd-slot { transition: none; } }

/* Blog passport (reels#98) */
.blog-namerow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pp-badge { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pp-badge.full { background: var(--banana); border-color: var(--banana); color: var(--ink); }
.passport { margin: 0 0 28px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.pp-h { font-size: 22px; margin-bottom: 14px; }
.pp-count { font: 700 15px var(--body); color: var(--muted); margin-left: 8px; }
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.pp-sec:first-child { grid-column: 1 / -1; }
.pp-sec textarea::placeholder { color: var(--tongue); opacity: 1; font-weight: 700; }
.acc-rows { display: grid; gap: 10px; }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.acc-del { grid-column: 3; grid-row: 1; align-self: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; cursor: pointer; transition: background var(--fast); }
.acc-del:hover { background: var(--line); }
.acc-del:focus-visible { outline: 2px solid var(--ink); }
@media (max-width: 800px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } .blog-cols { grid-template-columns: minmax(0, 1fr); } .blog-side { position: static; } }

/* reels#100: goal, promo code and the four platforms on a blog */
.goal-sec { margin: 0 0 26px; padding: 18px; border-radius: var(--r); background: var(--soft); }
.goal-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px 16px; margin-top: 10px; }
.goal-url { grid-column: 1 / -1; }
.acc-view-h { margin: 20px 0 8px; font: 700 13px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acc-lines { list-style: none; margin: 0; padding: 0; }
.acc-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.acc-line b { flex: 0 0 96px; }
.acc-link { min-width: 0; overflow-wrap: anywhere; }
.acc-link a { color: var(--ink); text-underline-offset: 3px; }
.acc-none { color: var(--muted); }
.acc-st { padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.acc-st.st-ok { background: var(--banana); border-color: var(--banana); color: var(--ink); }
.goal-badge { padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 600px) { .goal-grid { grid-template-columns: minmax(0, 1fr); } .acc-line b { flex-basis: 100%; } }

/* reels#114: /blogs as a bare list: name, links, one-line topic */
.blog-rows { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.blog-rows li { display: grid; grid-template-columns: minmax(120px, 200px) minmax(150px, 230px) minmax(0, 1fr); align-items: baseline; gap: 4px 20px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.br-name { font-size: 18px; font-weight: 700; color: inherit; text-decoration: none; }
.br-name:hover { text-decoration: underline; }
.br-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.br-topic { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .blog-rows li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; } }

/* reels#115: «Обрезать». The editor is a dark film bench on a paper page: the strip and the wave are the only dark things. */
.mt-trim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 0; }
.mt-trim .btn { min-height: 38px; font-size: 14px; font-weight: 700; }
.mt-appr { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--banana); }
.ted { width: min(1180px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 0 var(--ink); background: var(--paper); color: var(--ink); overflow: hidden; }
.ted::backdrop { background: rgb(10 10 9 / .55); }
.ted-in { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; max-height: calc(100dvh - 28px); }
.ted-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--banana); }
.ted-head h2 { flex: 1; min-width: 0; font-size: 20px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ted-head h2 span { font-family: var(--body); font-weight: 700; font-size: 16px; }
.ted-head .btn.ghost { border: 2px solid var(--ink); }
.ted-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 16px; overflow-y: auto; min-height: 0; }
.ted-stage { position: relative; display: grid; gap: 6px; justify-items: center; }
.ted-video { display: block; height: min(46vh, 520px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 12px; background: #000; object-fit: contain; }
.ted-clock { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.ted-clock b { font: 400 26px var(--word); letter-spacing: .01em; }
.ted-clock span { color: var(--muted); font-size: 14px; }
.ted-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ted-sum { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--soft); font-size: 15px; }
.ted-sum b { font: 400 20px var(--word); }
.ted-sum i { color: var(--tongue); font-style: normal; font-weight: 700; }
.ted-group { display: grid; gap: 6px; }
.ted-lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ted-seg, .ted-nudge, .ted-row, .ted-zoom { display: flex; flex-wrap: wrap; gap: 6px; }
.ted button:not(.btn) { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 14px; cursor: pointer; transition: background var(--fast), transform var(--fast); touch-action: manipulation; }
.ted button:not(.btn):hover { background: var(--soft); }
.ted button:not(.btn):active { transform: translateY(2px); }
.ted button:focus-visible, .ted .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ted-seg { gap: 0; }
.ted-seg button { white-space: nowrap; border-radius: 0; margin-left: -1.5px; }
.ted-seg button:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
.ted-seg button:last-child { border-radius: 0 10px 10px 0; }
.ted-seg button[aria-pressed="true"] { background: var(--ink); color: var(--banana); }
.ted-nudge button { flex: 1 1 0; min-width: 76px; font-variant-numeric: tabular-nums; }
.ted-edge { flex: 1 1 0; }
.ted kbd { margin-left: 6px; padding: 0 5px; border: 1px solid currentColor; border-radius: 4px; font: 600 11px var(--body); opacity: .65; }
.ted-steps { margin: 0; padding: 8px 16px; background: var(--ink); color: var(--soft); font-size: 14px; line-height: 1.3; }
.ted-steps b { color: var(--banana); font-family: var(--word); font-weight: 400; margin-left: 6px; }
.ted-steps b:first-child { margin-left: 0; }
.ted-cutbox { padding: 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--soft); box-shadow: 0 3px 0 var(--ink); }
.ted-sel { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ted-sel.on { color: var(--ink); font-weight: 700; }
.ted-lbl2 { margin-top: 4px; }
.ted .ted-cutbtn { flex: 1 1 auto; background: var(--tongue); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.ted .ted-cutbtn:hover:not(:disabled) { background: #f07d68; }
.ted button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.ted .ted-undo { flex: 0 1 auto; }
.ted-seg2 { margin-top: 2px; }
.ted-cuts li.on { background: var(--paper); border-radius: 8px; outline: 2px solid var(--tongue); }
.ted-cuts .ted-cutgo { text-decoration: line-through; text-decoration-color: var(--tongue); }
.ted-x { color: var(--muted); }
.ted-cuts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ted-cuts li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.ted-cuts li > span { color: var(--muted); margin-left: auto; }
.ted-cuts .ted-cutgo { min-height: 36px; border-color: var(--tongue); }
.ted-cuts .ted-x { min-height: 36px; border-color: var(--line); font-weight: 500; }
.ted-cuts .ted-none { color: var(--muted); }
.ted-tlwrap { padding: 0 16px 8px; display: grid; gap: 8px; }
.ted-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ted-play { width: 52px; padding: 0 !important; display: grid; place-items: center; background: var(--banana) !important; box-shadow: 0 3px 0 var(--ink); }
.ted-play span { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ink); }
.ted-play.on span { width: 14px; height: 18px; margin: 0; border: 0; background: linear-gradient(90deg, var(--ink) 0 38%, transparent 38% 62%, var(--ink) 62%); }
.ted-tools .btn.on { background: var(--ink); color: var(--banana); }
.ted-zoom { margin-left: auto; }
.ted-zoom button { min-width: 44px; }
.ted-tl { position: relative; border-radius: 12px; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); }
.ted-tl canvas { display: block; touch-action: none; user-select: none; cursor: crosshair; }
.ted-load { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--banana); font-weight: 700; }
.ted-load[hidden] { display: none; }
.ted-load.err { color: var(--tongue); }
.ted-hint { margin: 0; font-size: 13px; color: var(--muted); }
.ted-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.ted-msg { flex: 1; margin: 0; font-size: 14px; color: var(--muted); }
.ted-msg.err { color: var(--tongue); font-weight: 700; }
@media (max-width: 800px) {
  .ted { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .ted-in { height: 100dvh; max-height: 100dvh; }
  .ted-head { padding: 8px 12px; } .ted-head h2 { font-size: 16px; } .ted-head h2 span { font-size: 14px; }
  .ted-body { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 6px; overflow: hidden; }
  .ted-side { overflow-y: auto; min-height: 0; flex: 1; padding-bottom: 6px; gap: 10px; }
  .ted-nudge { flex-wrap: nowrap; } .ted-nudge button { min-width: 0; padding: 0 4px; white-space: nowrap; font-size: 13px; }
  .ted-zoom button { min-width: 40px; padding: 0 8px; }
  .ted-steps { padding: 6px 12px; font-size: 12.5px; }
  .ted-cutbox { padding: 8px; gap: 6px; }
  .ted-seg { flex-wrap: wrap; } .ted-seg button { padding: 0 10px; }
  .ted-sum { padding: 6px 10px; font-size: 14px; } .ted-sum b { font-size: 17px; }
  .ted-stage { grid-template-columns: auto 1fr; align-items: end; justify-items: start; gap: 10px; flex: none; }
  .ted-video { height: 24vh; }
  .ted-clock { flex-direction: column; gap: 0; } .ted-clock b { font-size: 22px; }
  .ted-tlwrap { padding: 0 12px 6px; } .ted-hint { display: none; }
  .ted-foot { padding: 8px 12px 12px; } .ted-foot .btn { flex: none; }
}
@media (max-width: 800px) {
  .ted-in { display: flex; flex-direction: column; overflow-y: auto; }
  .ted-head, .ted-steps { flex: none; } .ted-body { display: contents; }
  .ted-stage { order: 1; margin: 8px 12px 0; } .ted-tlwrap { order: 2; margin-top: 8px; } .ted-side { order: 3; overflow: visible; flex: none; margin: 0 12px 8px; }
  .ted-foot { order: 4; position: sticky; bottom: 0; background: var(--paper); margin-top: auto; }
  .ted-video { height: 18vh; }
}
@media (prefers-reduced-motion: reduce) { .ted button { transition: none !important; } }

/* reels#120: /blogs as a table with visible usernames */
.blog-tbl { width: 100%; border-collapse: collapse; margin-top: 16px; border-top: 2px solid var(--ink); }
.blog-tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 12px 8px 4px; }
.blog-tbl td { padding: 12px 12px 12px 4px; border-top: 1px solid var(--line); vertical-align: baseline; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .blog-tbl thead { display: none; }
  .blog-tbl, .blog-tbl tbody, .blog-tbl tr, .blog-tbl td { display: block; }
  .blog-tbl tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .blog-tbl td { border: 0; padding: 2px 0; }
  .blog-tbl td[data-l]::before { content: attr(data-l) ' '; color: var(--muted); font-size: 12px; display: inline-block; min-width: 76px; }
  .blog-tbl td:first-child::before { content: none; }
}
/* reels#265: two production modes («Без души» vs «С душой») + MG 13.0 rules + standalone cover standard on /blogs */
.section.blogs { max-width: 1080px; }
.prod-modes { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--ink); }
.pm-head h2 { margin-bottom: 6px; }
.pm-lead { margin: 0 0 18px; font-size: 15px; line-height: 1.45; }
.pm-badge { display: inline-block; max-width: 100%; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pm-badge-strict { background: var(--banana); color: var(--ink); border: 1.5px solid var(--ink); }
.pm-badge-soul { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.pm-cover { margin: 0 0 20px; padding: 16px 20px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--soft); }
.pm-cover-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.pm-cover-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.pm-cover-text { margin: 0; max-width: 82ch; font-size: 15px; line-height: 1.5; }
.pm-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.pm-card { min-width: 0; padding: 20px 22px; border-radius: var(--r); }
.pm-card-strict { background: var(--paper); border: 2px solid var(--ink); }
.pm-card-soul { background: var(--soft); border: 1.5px solid var(--line); }
.pm-card-top { margin-bottom: 10px; }
.pm-mode-name { font-size: 24px; line-height: 1.15; margin-bottom: 6px; }
.pm-triggers { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pm-summary { margin: 10px 0 16px; font-size: 15px; line-height: 1.5; }
.pm-sub { margin: 0 0 10px; padding-top: 12px; border-top: 1px solid var(--line); font: 700 14px/1.35 var(--body); color: var(--ink); }
.pm-rules { margin: 0; padding-left: 20px; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.48; overflow-wrap: anywhere; }
.pm-rules li::marker { font-weight: 700; color: var(--ink); }
@media (max-width: 980px) {
  .pm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .prod-modes { margin-top: 28px; padding-top: 22px; }
  .pm-cover, .pm-card { padding: 16px; }
  .pm-mode-name { font-size: 21px; }
}
/* reels#121: the version caption and the download buttons under the player */
.mt-ver { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.mt-dl { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 52px; margin-top: 8px; font-size: 17px; font-weight: 800; text-decoration: none; text-align: center; }
.mt-dl-row { margin-left: auto; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--banana); text-underline-offset: 3px; white-space: nowrap; }

/* Drawn storyboard: a horizontal strip of 9:16 sketches, notes under each */
.sk-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.sk { flex: 0 0 168px; margin: 0; scroll-snap-align: start; }
.sk img { display: block; width: 168px; height: auto; aspect-ratio: 9 / 16; border-radius: 6px; background: #000; }
.sk figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.sk-t { font-weight: 700; font-variant-numeric: tabular-nums; }
.sk-s { color: var(--muted, #777); font-size: 12px; }

/* Menu in a drawer (reels#128): the bar keeps only the burger and the wordmark; Notion/Linear calm, one 200 ms slide. */
.top { gap: 14px; flex-wrap: nowrap; padding: 12px 20px; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; transition: background var(--fast); }
.burger:hover, .burger[aria-expanded="true"] { background: var(--soft); }
.burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.burger svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); z-index: 41; background: var(--paper); padding: 20px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; box-shadow: 8px 0 32px rgba(0, 0, 0, .12); transform: translateX(-102%); visibility: hidden; transition: transform .2s ease-out, visibility 0s .2s; }
.drawer.open { transform: none; visibility: visible; transition: transform .2s ease-out; }
.drawer .tabs { flex-direction: column; gap: 2px; width: auto; overflow: visible; mask-image: none; padding: 0; order: 0; }
.drawer .tabs a { display: block; padding: 11px 14px; border: 0; border-radius: 10px; font-size: 17px; }
.drawer .tabs a:hover { background: var(--soft); }
.drawer .tabs a.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--banana); }
.drawer .top-right { flex-direction: column; margin: 0; gap: 2px; padding-top: 14px; border-top: 1px solid var(--soft); }
.drawer .top-right .side-link { padding: 0 14px; }
.drawer .top-right .hide-sm { display: inline !important; }
.drawer .top-right .side-link .n { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer.open { transition: none; } }
.brand span { display: inline; }
@media (max-width: 800px) { .brand span { display: inline; } }

/* Blogger table: one best reel per blogger (reels#133) */
td.cthumb { width: 72px; padding-right: 4px; }
td.cthumb .st { width: 64px; border-radius: 8px; display: block; }
td.cthumb .st-empty { background: var(--soft); }

/* Long list names stay on one line with an ellipsis; the full name shows on hover (title) (reels#134) */
.scope-row .scope { min-width: 0; overflow-wrap: normal; }
.scope .sc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-row .scope { width: auto; flex: 1 1 0; }
.scope-row .scope { padding: 8px 4px; gap: 6px; }

/* Picks */
.pk { max-width: 860px; }
.pk h1 { margin: 0 0 4px; font-size: 24px; }
.pk-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 12px 0 8px; }
.pk-bar .field { flex: 1 1 200px; width: auto; min-width: 0; }
.pk-bar .seg { margin: 0; }
.pk-only { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.pk-acts .btn { min-height: 40px; display: inline-flex; align-items: center; }
.pk-acts button:disabled, .pk-acts a[aria-disabled] { opacity: .45; cursor: default; }
.pk-cat h2 { font-size: 17px; margin: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.pk-cat h2 .muted { font-size: 13px; font-weight: 500; }
.pk-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pk-row { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.pk-row.on { background: var(--soft); }
.pk-box { display: flex; align-items: flex-start; justify-content: center; width: 44px; padding-top: 13px; cursor: pointer; flex: none; }
.pk-box input { width: 20px; height: 20px; accent-color: var(--ink); cursor: pointer; }
.pk-main { flex: 1; min-width: 0; padding: 9px 8px 9px 0; }
.pk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pk-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pk-mine { font-size: 11px; }
.pk-nums { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pk-nums b { color: var(--ink); font-weight: 600; }
.pk-why { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.pk-radar { font-size: 12px; color: var(--muted); text-decoration: underline; }
.pk-cat h2 a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Search lives in the drawer; the list's paste field sits in the bar; the dots no longer cover the count (reels#139, #140) */
.drawer-search { padding: 0 2px; }
.drawer-search .field { width: 100%; }
.paste { display: flex; gap: 8px; flex: 1 1 320px; min-width: 0; }
.paste .field { min-width: 0; }
.bar > .grow { flex: 1 1 auto; }
.scope-row:has(.more-dd) .scope { padding-right: 42px; }

/* Bloggers view (reels#141): a calm list, one blogger per row, thumbnails on the left, the add button on the right */
.people { display: flex; flex-direction: column; gap: 10px; }
.pp { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.pp-main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.pp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pp-name { font: 700 18px var(--word, inherit); color: inherit; text-decoration: none; border-bottom: 3px solid var(--banana); }
.pp-bio { margin: 0; max-width: 70ch; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pp-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pp-strip .st { width: 104px; border-radius: 10px; flex: none; }
.pp-strip .st.on { width: 230px; position: relative; }
.st-pop { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity var(--fast); }
.st.on:hover .st-pop, .st-pop:focus-visible { opacity: 1; }
@media (hover: none) { .st-pop { opacity: 1; } }
.pp-act { flex: none; }
.pp-add { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pp-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 4px 0 14px; padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.pp-bar label { display: flex; gap: 10px; align-items: center; }
.pp-bar label span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.pp-bar .field { width: auto; min-height: 38px; padding: 0 12px; }
.pp-bar select.field { min-width: 240px; max-width: 320px; }
.pp-bar input.field { width: 84px; }
@media (max-width: 800px) { .pp-bar label { width: 100%; } .pp-bar select.field { flex: 1; max-width: none; } }
@media (max-width: 800px) { .pp { flex-direction: column; align-items: stretch; } .pp-add { max-width: none; width: 100%; } }

/* Collection progress of the open list (reels#142) */
.prog { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.prog[hidden] { display: none; }
.prog-bar { flex: 0 0 160px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--banana); transition: width .4s ease-out; }
.prog.ok .prog-bar i { background: var(--ink); }
.prog-txt { font-size: 14px; }
.prog .btn { min-height: 34px; padding: 0 14px; }
@media (max-width: 800px) { .prog-bar { flex-basis: 100%; } }
.pp-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pp-del { color: var(--muted); }
@media (max-width: 800px) { .pp-act { flex-direction: row; } .pp-act .btn { flex: 1; } }

.pp-lists { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; background: var(--paper); }
.pp-chip a { color: inherit; text-decoration: none; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-chip.open { border-color: var(--ink); background: var(--banana); font-weight: 700; order: -1; }
.pp-chip button { width: 22px; height: 22px; border: 0; border-radius: 99px; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; }
.pp-chip button:hover, .pp-chip button:focus-visible { background: var(--ink); color: var(--paper); }

.pp-ig { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; }
.pp-ig:hover, .pp-ig:focus-visible { color: var(--ink); border-color: var(--ink); }

.pp-ig { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); }
.pp-ig svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.pp-ig svg .dot { fill: currentColor; stroke: none; }

.pp-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--ink); color: var(--paper); }

/* Storyboard as a shooting list: one shot under another, what to say and what to film (reels#157). */
.shot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.shot { display: grid; grid-template-columns: 44px minmax(0, 1fr) 108px; gap: 16px; align-items: start; padding: 18px; background: var(--soft); border: 2px solid var(--ink); border-radius: var(--r); }
.shot-n { font: 400 30px/1 var(--word); }
.shot-part { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.shot-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.shot-say { margin: 0 0 14px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.shot-do { margin: 0 0 10px; font-size: 18px; line-height: 1.4; }
.shot-link { display: inline-block; max-width: 100%; margin: 0 8px 8px 0; padding: 8px 14px; background: var(--banana); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; transition: transform var(--fast); }
.shot-link:hover { transform: translateY(-1px); }
.shot-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.shot-fx { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }
.shot-fx b { background: var(--tongue); color: #fff; padding: 1px 7px; border-radius: 5px; margin-right: 6px; font-size: 13px; }
.shot-img { display: block; width: 108px; height: auto; border-radius: 6px; }
@media (max-width: 620px) {
  .shot { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 14px; }
  .shot-n { font-size: 22px; }
  .shot-img { display: none; }
  .shot-say { font-size: 21px; }
}
.shot.shot-silent .shot-do { font-size: 22px; font-weight: 700; line-height: 1.35; }
.shot-later-l { margin-top: 14px; }
.shot-later { margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
@media (max-width: 620px) { .shot.shot-silent .shot-do { font-size: 20px; } }

/* Seek bar on the small players of the workshop (reels#158). */
.mini-seek { left: 6px; right: 6px; bottom: 2px; width: calc(100% - 12px); z-index: 2; cursor: pointer; }

/* Reel in a popup, opened from a cover (reels#159). */
.mini-big { position: absolute; top: 3px; right: 3px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: rgb(10 10 9 / .72); color: #fff; cursor: pointer; transition: background var(--fast); }
.mini-big svg { width: 14px; height: 14px; }
.mini-big:hover { background: var(--ink); }
.mini-big:focus-visible { outline: 2px solid var(--banana); outline-offset: 1px; }
.work-cover.mini .mini-ic svg { width: 12px; height: 12px; padding: 5px; }
.work-cover.mini .mini-big { top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 5px; }
.work-cover.mini .mini-big svg { width: 11px; height: 11px; }
.work-cover.mini .mini-seek { left: 4px; right: 4px; bottom: 2px; width: calc(100% - 8px); height: 14px; }
.reel-pop { padding: 0; border: 0; background: transparent; overflow: visible; }
.reel-pop::backdrop { background: rgb(10 10 9 / .86); }
.reel-pop video { display: block; height: 90vh; max-width: 94vw; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; }
.reel-pop-x { position: absolute; top: 0; left: calc(100% + 10px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.reel-pop-x:focus-visible { outline: 3px solid var(--banana); outline-offset: 2px; }
@media (max-width: 620px) { .reel-pop video { height: auto; width: 94vw; max-height: 86vh; } .reel-pop-x { left: auto; right: 6px; top: 6px; z-index: 1; } }

/* Interactive whiteboard & printable paper quick links on /work and /v/:id (reels#226). */
.board-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.ws-main > .board-pills { margin: 8px 0 6px; }
.board-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--fast), background var(--fast); }
.board-pill:hover { background: var(--soft); transform: translateY(-1px); }
.board-pill-main { background: var(--banana); border-width: 2px; }
.board-pill-main:hover { background: #f3f200; }
.btn.board-btn-cta { background: var(--banana); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; }
.btn.board-btn-cta:hover { background: #f3f200; }

/* Clean «Что говорить» text-only workshop mode on /work & drill-down to /v/:id. */
#work-list, .ws { overflow-anchor: auto; }
.ws.ws-text-only { display: block; padding: 18px 20px; }
.ws.ws-text-only .ws-main { min-width: 0; }
.ws.ws-text-only .work-vo-only { margin-top: 10px; }
.ws-head-acts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ws-title-link { color: inherit; text-decoration: none; }
.ws-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost.ws-open-btn { min-height: 36px; padding: 0 13px; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn.ghost.ws-open-btn:hover { background: var(--banana); border-color: var(--ink); }
.ver-head .board-pills { margin-top: 10px; }
.ver-plan-hint { margin: 16px 0 -8px; }
.vo-pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
.vo-pair .vo { margin-top: 0; }
.vo-ru { padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 15px; line-height: 1.55; }
.vo-ru-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.vo-ru-text { white-space: pre-wrap; }
.work-vo-only > .board-pills { margin-top: 12px; }
.ws-props-box { margin-top: 12px; padding: 10px 14px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--soft); }
.ws-props-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); user-select: none; list-style: none; }
.ws-props-head::-webkit-details-marker { display: none; }
.ws-props-head > span:first-child::after { content: ' ▾'; color: var(--muted); font-size: 12px; }
.ws-props-box:not([open]) { padding-bottom: 10px; }
.ws-props-box:not([open]) .ws-props-head > span:first-child::after { content: ' ▸'; }
.props-list-edit { display: block; width: 100%; min-height: 190px; margin-top: 8px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 14.5px/1.5 var(--body); resize: vertical; }
.props-list-edit:hover { border-color: var(--ink); }
.props-list-edit:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--banana); }

/* Prominent top scenario counter + inline cutouts grid + board movement logic inside /work. */
.bar > .count.work-live-cnt { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--banana); color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.ws-cutouts-inline { margin-top: 14px; padding: 13px 15px 15px; border: 2px solid var(--ink); border-radius: 12px; background: #ffffff; }
.ws-cutouts-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.ws-cutouts-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.ws-banner-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; color: #0F172A; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ws-cutouts-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.ws-cutouts-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ws-cutout-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 6px 7px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft); text-align: center; text-decoration: none; color: var(--ink); transition: border-color var(--fast), transform var(--fast); }
.ws-cutout-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.ws-cutout-img-wrap { position: relative; display: grid; place-items: center; width: 100%; height: 96px; background: #ffffff; border-radius: 8px; border: 1px solid #e5e7eb; padding: 4px; }
.ws-cutout-img { max-width: 100%; max-height: 86px; width: auto; height: auto; object-fit: contain; display: block; }
.ws-cutout-size { position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--ink); background: var(--banana); color: var(--ink); font-size: 10.5px; font-weight: 800; line-height: 1.3; }
.ws-cutout-lbl { font-size: 12px; font-weight: 700; line-height: 1.25; color: var(--ink); word-break: break-word; }
.ws-moves-box { margin-top: 12px; padding: 10px 14px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fefce8; }
.moves-list-edit { display: block; width: 100%; min-height: 165px; margin-top: 8px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 14.5px/1.52 var(--body); resize: vertical; }
.moves-list-edit:hover { border-color: var(--ink); }
.moves-list-edit:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--banana); }
@media (max-width: 920px) { .ws-cutouts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ws-cutouts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .vo-pair { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bar > .count.work-live-cnt { border-radius: 14px; padding: 6px 12px; font-size: 13px; }
  .work-filter { margin-left: 0; }
  .ws.ws-text-only { padding: 16px 14px; }
  .ws-head { flex-wrap: wrap; gap: 10px; }
  .ws-head h3 { flex: 1 1 100%; min-width: 0; font-size: 21px; }
  .ws-head-acts { flex-wrap: wrap; flex-shrink: 1; min-width: 0; max-width: 100%; gap: 8px; margin-left: 0; }
  .btn.ghost.ws-open-btn { padding: 0 10px; font-size: 13px; }
}

/* «В работе без души» (reels#271): toggle chip and unversioned reference row inside /work. */
.soulless-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font: 700 13px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast); }
.soulless-chip:hover { border-color: var(--ink); color: var(--ink); }
.soulless-chip:focus-visible { outline: 2px solid var(--banana); outline-offset: 2px; }
.soulless-chip.on { border-color: var(--soulless); background: var(--soulless); color: var(--paper); }
.soulless-chip.on::before { content: '✓'; font-size: 12px; }
.work-row.is-soulless { border-color: var(--soulless); }
.ws-noversion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--soft); }
.ws-ref-line { min-width: 0; overflow-wrap: anywhere; }
.ws-ref-line a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.ws-noversion-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* No-audio indicator (reels#276): Instagram-stripped audio badge in scroller, card hint, and detail modal note. */
.clip-no-audio { position: absolute; right: 54px; top: 14px; z-index: 2; display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; background: rgb(10 10 9 / .78); color: var(--paper); font: 700 12px/1 var(--body); white-space: nowrap; cursor: help; }
.clip.no-audio [data-sound] { opacity: .65; border: 1px dashed rgb(255 255 255 / .5); cursor: help; }
.clip.no-audio [data-sound]:hover { opacity: .85; background: rgb(10 10 9 / .65); }
.meta .views:has(.card-no-audio) { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-no-audio { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--soulless-soft); color: var(--ink); font: 600 11px/1.2 var(--body); }
.no-audio-note { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--soulless-soft); color: var(--ink); border: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
@media (max-width: 360px) { .clip-no-audio { left: 8px; right: auto; top: 68px; } }

/* Workshop: the source reel beside the script (reels#325). */
.ws.ws-text-only.has-ref { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.ws-ref { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ws-ref-video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #111; border-radius: 10px; display: block; }
.ws-ref-ig { font-size: 13px; font-weight: 500; color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ws-ref-ig:hover, .ws-ref-ig:focus-visible { text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .ws.ws-text-only.has-ref { grid-template-columns: 1fr; }
  .ws-ref { position: static; flex-direction: row; align-items: flex-end; }
  .ws-ref-video { width: 140px; }
}

/* Whiteboard magnets + marker visualization on /work, /v/:id, and mini-previews (reels#322, reels#326). */
.ws-schema-viz { margin-top: 14px; padding: 14px 16px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #f8fafc; }
.ws-schema-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.ws-schema-head-left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.ws-schema-title { font-size: 15.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.ws-schema-studio { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color var(--fast); }
.ws-schema-studio:hover, .ws-schema-studio:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ws-schema-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-schema-seg { display: inline-flex; align-items: center; padding: 2px; gap: 2px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); }
.ws-schema-seg button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 13px/1 var(--body); cursor: pointer; white-space: nowrap; transition: background var(--fast), color var(--fast); }
.ws-schema-seg button:hover { color: var(--ink); }
.ws-schema-seg button[aria-pressed="true"] { background: var(--banana); color: var(--ink); }
.ws-schema-vf, .ws-schema-zoom { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 13px/1 var(--body); cursor: pointer; white-space: nowrap; transition: background var(--fast), color var(--fast), transform var(--fast); }
.ws-schema-vf:hover, .ws-schema-zoom:hover { background: var(--banana); transform: translateY(-1px); }
.ws-schema-vf[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ws-schema-vf[aria-pressed="true"]:hover { background: var(--ink); color: var(--paper); }
.ws-schema-stage, .schema-viz-stage { padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f1f5f9; cursor: zoom-in; }
.ws-schema-pane { margin: 0 auto; max-width: 760px; }
.ws-schema-pane[data-orient="square"] { max-width: 580px; }
.ws-schema-pane[data-orient="portrait"] { max-width: 440px; }
.ws-schema-pane[hidden] { display: none !important; }
.ws-schema-svg { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 8px; transition: transform .18s ease, opacity .18s ease; }
.schema-viz-stage.is-viewfinder-scale .ws-schema-pane { max-width: 150px; margin: 0 auto; }
.schema-viz-stage.is-viewfinder-scale svg { max-width: 150px; margin: 0 auto; }

.schema-pop { width: min(1220px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 8px 0 var(--ink); background: var(--paper); color: var(--ink); overflow: hidden; }
.schema-pop::backdrop { background: rgb(10 10 9 / .76); }
.schema-pop-in { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100dvh - 28px); }
.schema-pop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--soft); }
.schema-pop-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; font-size: 16px; }
.schema-pop-sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.schema-pop-acts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.schema-pop-x { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: background var(--fast); }
.schema-pop-x:hover { background: var(--banana); }
.schema-pop-stage { padding: 18px; overflow: auto; background: #f1f5f9; display: grid; place-items: center; }
.schema-pop-stage .ws-schema-pane { width: 100%; max-width: min(1100px, calc((100dvh - 140px) * 1.48)); }
.schema-pop-stage .ws-schema-pane[data-orient="square"] { max-width: min(820px, calc(100dvh - 140px)); }
.schema-pop-stage .ws-schema-pane[data-orient="portrait"] { max-width: min(560px, calc((100dvh - 140px) * 0.68)); }

.schema-ph, .schema-mini-thumb { display: grid; place-items: center; padding: 4px; background: #f1f5f9; border: 1.5px solid #e2e8f0; overflow: hidden; }
.schema-ph svg, .schema-mini-thumb svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.ver-card .schema-ph { display: grid; width: 64px; height: 96px; border-radius: 10px; flex: none; }
span.ver-src.schema-ph { width: 110px; height: 165px; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--banana); padding: 6px; flex: none; }
.blog-vers .schema-ph { width: 100%; aspect-ratio: 2 / 3; border-radius: 8px; }
.vk .cover.schema-ph { padding: 36px 8px 28px; background: #f1f5f9; border: 1.5px solid #e2e8f0; }
.vk-schema-svg { display: block; width: 100%; height: 100%; }

@media (max-width: 640px) {
  .ws-schema-viz { padding: 10px; }
  .ws-schema-stage, .schema-viz-stage { padding: 6px; }
  .ws-schema-acts { width: 100%; gap: 6px; }
  .ws-schema-seg button { padding: 0 9px; font-size: 12.5px; }
  .ws-schema-vf, .ws-schema-zoom { padding: 0 10px; font-size: 12.5px; }
  .schema-pop { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  .schema-pop-in { max-height: calc(100dvh - 16px); }
  .schema-pop-head { padding: 10px 12px; }
  .schema-pop-stage { padding: 10px; }
  .schema-pop-stage .ws-schema-pane { max-width: 100%; }
}

.top-research { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; transition: background var(--fast); }
.top-research:hover { background: var(--hover, rgba(0,0,0,.06)); }
.top-research svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 700px) { .top-research span { display: none; } .top-research { padding: 0 10px; } }
