/* Контент-завод · экран поста (Mediterraneo).
   Телефон — одна колонка; от 1024 px — две: слева варианты, справа «Куда и когда» (прилипает).
   Цвет формата везде один: пост — терракота, карусель — море, сторис — бугенвиллея. */

.pst { display: block; }
.pst-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pst-top { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pst-main, .pst-side { min-width: 0; }
.pst-side { scroll-margin-top: calc(var(--top-h) + 10px); }

/* ───── шапка ───── */
.pst-head { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pst-head .back { margin: -8px 0 0 -6px; }
.pst-head .eyebrow { margin-top: 4px; }
.pst-head h1 { font: 500 29px/1.14 var(--f-serif); letter-spacing: -.016em; text-wrap: balance; }
.pst-brief {
  font: 400 15.5px/1.45 var(--f-sans); color: var(--muted); white-space: pre-wrap; cursor: pointer;
}
.pst-brief.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pst-head .mchips { margin-top: 6px; gap: 6px; }
.pst-head .status { min-height: 30px; display: inline-block; white-space: normal; line-height: 1.3; text-align: left; border-radius: 15px; padding: 6px 12px 6px 10px; }
.pst-head .status::before { display: inline-block; vertical-align: 1px; margin-right: 7px; }
.pst-head .status .st-word { white-space: nowrap; }
.pst-head .status .next::before { content: " · "; }
.mchip.langs { gap: 4px; padding-right: 6px; }
.mchip.langs .ic { margin-right: 2px; }
.mchip .lt { height: 19px; min-width: 25px; font-size: 10.5px; }

/* «Как я понял» — записка со скотчем */
.pst-note {
  position: relative; margin: 6px 2px 0;
  background-color: var(--paper); background-image: linear-gradient(180deg, var(--sheen), rgba(255, 255, 255, 0) 90px);
  border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; box-shadow: var(--shadow-paper);
  padding: 20px 16px 6px 18px; transform: rotate(-.35deg);
}
.pst-note::before {
  content: ""; position: absolute; top: -11px; left: 26px; width: 78px; height: 22px; transform: rotate(-4deg); border-radius: 2px;
  background: var(--sea-soft); background: color-mix(in srgb, var(--sea-2) 28%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset;
}
.pst-note .hand { display: block; font: 700 23px/1 var(--f-hand); color: var(--terra); }
.pst-note p { margin-top: 8px; font: 400 15.5px/1.5 var(--f-sans); color: var(--ink-2); }
.pst-note .btn-text { margin-left: -6px; }

.pst-info { display: flex; flex-direction: column; gap: 8px; }
.pst-info .note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 12px 12px; border-radius: 18px; }
.pst-info .note .tile { background: var(--paper); color: currentColor; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset; }
.pst-info .nt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 1px; }
.pst-info .nt b { font: 600 15.5px/1.4 var(--f-sans); }
.pst-info .nt .why { font: 500 14.5px/1.4 var(--f-sans); color: var(--ink); overflow-wrap: anywhere; }
.pst-info .nt .sub { font: 400 14.5px/1.45 var(--f-sans); color: var(--ink-2); }
.pst-info .nt .ro { display: flex; align-items: center; gap: 6px; font: 500 14px/1.35 var(--f-sans); color: var(--muted); }
.pst-info .nt .ro .ic { flex: none; }
.pst-info .nt .btn-text { margin: 0 0 -8px -6px; color: inherit; font-weight: 600; }
.pst-info .note.warn .tile { color: var(--ochre); }

/* ───── прогресс «пишу варианты» ───── */
.pst-gen:empty { display: none; }
.pst-gen { margin-bottom: 14px; }
.gen-card { display: flex; flex-direction: column; gap: 12px; }
.gen-top { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.gen-top .spin { color: var(--terra); }

/* ───── выбор варианта: большие карточки 4:5 ───── */
.vpick {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3); gap: 10px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  padding: 10px 8px 12px; margin: -6px -8px 0; scroll-padding-inline: 8px;
}
.vpick::-webkit-scrollbar { display: none; }
.vpick.many { grid-auto-columns: calc((100% - 20px) / 3.25); }
.vp-slot { display: contents; }
.vp {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 6px 6px 9px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); text-align: left; cursor: pointer; scroll-snap-align: start;
  box-shadow: var(--shadow-paper); transition: border-color .15s, box-shadow .15s, transform .1s;
}
@media (hover: hover) { .vp:hover { border-color: var(--line-2); } .vp-more:hover { border-color: var(--sea-2); } }
.vp:active { transform: translateY(1px); }
.vp .vp-img { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.vp.story .vp-img { aspect-ratio: 9 / 16; }
.vp-cap { display: block; padding: 0 3px; min-width: 0; }
.vp-cap b { display: block; font: 500 16.5px/1.1 var(--f-serif); letter-spacing: -.005em; white-space: nowrap; }
.vp-cap small {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
  margin-top: 3px; font: 500 12.5px/1.25 var(--f-sans); color: var(--muted);
}
.vp.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-paper); }
.vp.on .vp-cap b { color: var(--terra); }
.vp-tick {
  position: absolute; top: -7px; right: -7px; width: 28px; height: 28px; border-radius: 50%; z-index: 2;
  display: none; place-items: center; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 3px var(--bg);
}
.vp-tick .ic { stroke-width: 2.6; }
.vp.on .vp-tick { display: grid; }
.vp-flag {
  position: absolute; left: 11px; top: 11px; z-index: 2; display: none; align-items: center; gap: 3px;
  padding: 3px 7px 3px 5px; border-radius: 999px; background: var(--err); color: #fff; font: 700 11px/1 var(--f-sans);
}
.vp.red .vp-flag { display: inline-flex; }
.vp-busy {
  position: absolute; left: 6px; right: 6px; top: 6px; aspect-ratio: 4 / 5; z-index: 2; border-radius: 12px;
  display: none; place-items: center; color: var(--terra);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}
.vp.story .vp-busy { aspect-ratio: 9 / 16; }
.vp.busy .vp-busy { display: grid; }
.vp-more { border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none; }
.vp-more .vp-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; text-align: center;
  background: color-mix(in srgb, var(--sea-soft) 55%, transparent); color: var(--sea); box-shadow: none;
  font: 600 13.5px/1.2 var(--f-sans);
}
.vp-more .plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: 0 6px 14px -8px rgba(29, 78, 105, .55); }
.vp-more.busy .vp-img { color: var(--terra); background: color-mix(in srgb, var(--terra-soft) 60%, transparent); font-weight: 500; font-size: 12.5px; }
.vp-more .vp-cap b { color: var(--sea); white-space: normal; }
/* заготовки, пока пишу варианты */
.vpick.ghosts { margin-top: 10px; }
.vp.ghost { cursor: default; box-shadow: none; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.vp.ghost:active { transform: none; }
.vp.ghost .vp-img {
  display: block; box-shadow: none;
  background: linear-gradient(100deg, var(--sunk) 30%, color-mix(in srgb, var(--paper) 80%, var(--sunk)) 50%, var(--sunk) 70%) 0 0 / 300% 100%;
  animation: vp-shine 1.6s ease-in-out infinite;
}
.vp.ghost .vp-cap b { color: var(--faint); }
@keyframes vp-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .vp.ghost .vp-img { animation: none; } }

/* ───── карточка открытого варианта ───── */
.pst-card { margin-top: 14px; }
/* clip, а не hidden: hidden делает карточку «прокручиваемой», и табличка «Правлю…» не прилипает к экрану */
.vcard { position: relative; padding: 0; overflow: hidden; overflow: clip; }
/* заголовок карточки: «Вариант 1 · Выбран · ⋯» в первой строке, шаблон и угол — во всю ширину под ним */
.vhead { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 6px; padding: 12px 8px 12px 18px; }
.vhead .tt { display: contents; }
.vhead h3 { grid-column: 1; grid-row: 1; font: 500 21px/1.15 var(--f-serif); }
.vhead .tt > small { grid-column: 1 / -1; grid-row: 2; padding-right: 10px; }
.vhead .tt > small.angle { grid-row: 3; }
.vhead > .badge-ok, .vhead > .btn { grid-column: 2; grid-row: 1; }
.vhead > .icon-btn { grid-column: 3; grid-row: 1; }
.vhead small { display: block; margin-top: 3px; font: 400 13.5px/1.3 var(--f-sans); color: var(--muted); }
.vhead small.angle { color: var(--faint); font-size: 13px; margin-top: 1px; }
.vhead .btn-sm { padding: 0 14px; }
.vbody { display: grid; grid-template-columns: minmax(0, 1fr); }
.vprev { padding: 0 12px 6px; min-width: 0; }
.vedit { border-top: 1px solid var(--line); margin-top: 12px; min-width: 0; }

/* ───── превью «как в Instagram» ───── */
.pview { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pv { position: relative; display: block; overflow: hidden; background: var(--sunk); flex: none; }
.pv iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.pv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-view .ic, .pv-lang .ic { flex: none; }
/* язык и время над превью — полегче основного переключателя: таблетки с рамкой, без жёлоба */
.seg.pv-lang { background: transparent; padding: 0; gap: 8px; }
.seg.pv-lang > button { gap: 7px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); }
.seg.pv-lang > button.is-on { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 .5px var(--ink) inset; }
.pv-lang b { font-weight: 700; letter-spacing: .05em; }
/* 3–4 языка: таблетки сеткой 2×2 — время каждого языка видно целиком и на 390 px */
.seg.pv-lang.many { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border-radius: 0; }
.seg.pv-lang.many > button { min-height: 40px; flex-wrap: wrap; row-gap: 0; padding-block: 4px; }
.seg.pv-lang.many .tnum { white-space: nowrap; }
.pv-lang .tnum { font-weight: 500; }
.pv-sun { color: var(--ochre); }
.pv-moon { color: var(--sea-2); }

.ig {
  --ig-link: #00376B;
  background: var(--ig-bg); color: var(--ig-text); border-radius: 18px; overflow: hidden; font-family: var(--f-sans);
  box-shadow: 0 0 0 1px var(--ig-line), 0 18px 34px -22px rgba(60, 40, 20, .55);
}
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-head .nm { flex: 1; min-width: 0; }
.ig-head b { display: block; font: 600 14px/1.2 var(--f-sans); }
.ig-head small { display: block; font: 400 12px/1.25 var(--f-sans); opacity: .75; }
.ig-head .av > span { background: var(--ig-bg); border-color: var(--ig-bg); }
.ig-media { position: relative; aspect-ratio: 4 / 5; background: var(--sunk); cursor: pointer; touch-action: pan-y; overflow: hidden; outline-offset: -3px; }
.ig-media > .pv, .phone-screen > .pv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ig-count {
  position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 9px; border-radius: 999px; pointer-events: none;
  background: rgba(18, 18, 18, .66); color: #fff; font: 600 12px/1 var(--f-sans); font-feature-settings: "tnum";
}
.pv-arrow {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
}
.pv-arrow > span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #222; box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.pv-arrow .ic { width: 17px; height: 17px; stroke-width: 2.3; }
.pv-arrow.l { left: 4px; }
.pv-arrow.r { right: 4px; }
.ig-actions { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 4px; }
.ig-actions .ic { width: 25px; height: 25px; stroke-width: 1.75; }
.ig-actions .sp { flex: 1; }
.ig-dots { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -25%); display: flex; gap: 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ig-dot-off); }
.ig-dots i.on { background: var(--ig-dot); }
.ig-cap { padding: 4px 14px 0; font: 400 14px/1.42 var(--f-sans); overflow-wrap: anywhere; }
.ig-cap.open { white-space: pre-line; }
.ig-cap b { font-weight: 600; }
.ig-cap .ht { color: var(--ig-link); }
.ig-cap .more {
  border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ig-muted); cursor: pointer;
  min-height: 24px; position: relative;
}
.ig-cap .more::after { content: ""; position: absolute; inset: -10px -8px; }      /* попадание пальцем */
.ig-time { display: flex; align-items: center; gap: 6px; padding: 8px 14px 14px; font: 400 12.5px/1.3 var(--f-sans); color: var(--ig-muted); }
.ig-time .ic { flex: none; }

/* сторис в телефоне */
.st-wrap { display: grid; grid-template-columns: minmax(0, 214px) minmax(0, 1fr); gap: 14px; align-items: start; }
.phone {
  border-radius: 36px; padding: 7px; background: var(--phone);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--shadow-lift);
}
.phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 29px; overflow: hidden; background: #000; cursor: pointer; touch-action: pan-y; outline-offset: -3px; }
.phone-screen::before, .phone-screen::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.phone-screen::before { top: 0; height: 78px; background: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, 0)); }
.phone-screen::after { bottom: 0; height: 74px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .42)); }
.st-bars { position: absolute; z-index: 2; top: 11px; left: 11px; right: 11px; display: flex; gap: 3px; }
.st-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .42); }
.st-bars i.done { background: #fff; }
.st-bars i.cur { background: linear-gradient(90deg, #fff 45%, rgba(255, 255, 255, .42) 45%); }
.st-head {
  position: absolute; z-index: 2; top: 21px; left: 10px; right: 8px; display: flex; align-items: center; gap: 6px;
  color: #fff; font: 600 11.5px/1 var(--f-sans); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); white-space: nowrap;
}
.st-head .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-head .av > span { background: #fff; border-color: #fff; }
.st-head .t { font-weight: 400; opacity: .85; }
.st-head .sp { flex: 1; }
.st-head .ic { width: 18px; height: 18px; stroke-width: 2; }
.st-foot { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 9px; color: #fff; }
.st-foot .reply {
  flex: 1; min-width: 0; height: 32px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px; padding: 0 12px;
  display: flex; align-items: center; font: 400 11px/1 var(--f-sans); white-space: nowrap; overflow: hidden;
}
.st-foot .ic { width: 20px; height: 20px; stroke-width: 1.8; }
.phone-screen .pv-arrow { top: 50%; }
.phone-screen :focus-visible { outline-offset: -3px; }
.st-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 6px; }
.st-side { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.st-item {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; width: 100%; min-height: 44px;
  padding: 7px 6px 7px 10px; border: 0; border-left: 2.5px solid var(--line-2); border-radius: 0 12px 12px 0;
  background: none; text-align: left; color: var(--muted); cursor: pointer;
}
.st-item b { font: 500 19px/1 var(--f-serif); color: var(--ink-2); }
.st-item span { font: 500 13px/1.3 var(--f-sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-item.on { border-left-color: var(--bougain); background: var(--bougain-soft); color: var(--ink); }
.st-item.on b { color: var(--bougain); }
/* время выхода — под телефоном во всю ширину (как .ig-time под лентой), а не узкой колонкой рядом */
.st-when { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: -4px 0 0; padding: 0 4px; font: 500 13px/1.35 var(--f-sans); color: var(--muted); }
.st-when .ic { flex: none; color: var(--sea-2); }
@media (hover: none) { .phone-screen .pv-arrow { display: none; } }

/* лента всех кадров */
.frames {
  position: relative; display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 6px 8px; margin: 0 -6px;
}
.frames::-webkit-scrollbar { display: none; }
.fr { flex: none; position: relative; padding: 0; border: 0; background: none; border-radius: 9px; cursor: pointer; }
.fr .pv { width: 52px; height: 65px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: box-shadow .15s; }
.fr.st .pv { width: 37px; height: 65px; }
.fr.st::after { content: ""; position: absolute; inset: 0 -4px; }          /* попадание пальцем ≥ 44 px */
.fr.on .pv { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.fr.st.on .pv { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--bougain); }
.fr .n {
  position: absolute; left: 4px; bottom: 4px; padding: 3px 5px; border-radius: 99px; pointer-events: none;
  background: rgba(252, 249, 243, .92); color: #2B231D; font: 700 10.5px/1 var(--f-sans);
}
.fr-div { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 3px; color: var(--bougain); }
.fr-div::before, .fr-div::after { content: ""; width: 1px; flex: 1; background: var(--line-2); }

/* ───── оформление ───── */
.tools { padding: 16px 18px 4px; }
.tool + .tool { margin-top: 18px; }
.tools .label { margin-bottom: 8px; }
.tools .label .val { text-align: right; }
.tools .label .faint { font-weight: 400; }
/* шаблоны — миниатюрами 66×82 с названием (видно, как выглядит, ещё до нажатия); на телефоне — лентой вбок */
.tpls {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: 18px;
  margin: -4px -18px 0; padding: 8px 18px 8px; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.tpls::-webkit-scrollbar { display: none; }
.tpl {
  flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 0 2px;
  border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 500 13px/1.2 var(--f-sans); text-align: center; cursor: pointer;
}
.tpl .tpl-pv {
  width: 66px; height: 82px; border-radius: 8px; background: var(--sunk);
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s;
}
.tpl .tpl-pv.story { width: 46px; }
.tpl .tpl-pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl .tpl-pv.none { display: grid; place-items: center; color: var(--faint); }
.tpl-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; overflow-wrap: normal; word-break: normal; }
.tpl.on { color: var(--ink); font-weight: 600; }
.tpl.on .tpl-pv { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.tpl:disabled { opacity: .5; cursor: not-allowed; }
.tpl:focus-visible { outline-offset: 1px; }
@media (hover: hover) { .tpl:not(.on):not(:disabled):hover .tpl-pv { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--line-2); } }
.tpl-hint { margin-top: 4px; }
.pals { display: flex; justify-content: space-between; gap: 2px; padding: 4px 0 2px; }
.pals .sw { flex: 0 1 44px; min-width: 30px; height: auto; aspect-ratio: 1 / 1; }
.pals .sw::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; }
.pals .sw:disabled { opacity: .5; cursor: not-allowed; }
.pair-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 18px; padding-bottom: 12px; }
.pair-tools .btn { padding: 0 14px; min-width: 0; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.stepper button {
  width: 46px; height: 46px; border: 0; background: none; padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2); cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--sunk); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .aa { position: relative; min-width: 30px; text-align: center; font: 500 19px/1 var(--f-serif); color: var(--ink); }
.stepper .aa small { font-size: 13px; }
.stepper .aa i {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 3px); font: 600 10px/1 var(--f-sans); font-style: normal;
  color: var(--terra); white-space: nowrap;
}
.undo-btn { margin: -2px 0 8px -6px; }

/* ───── текст ───── */
.vtext { padding: 18px; border-top: 1px solid var(--line); }
.vtext > .label { margin-bottom: 10px; }
.vtext > .label .ic { color: var(--ink-2); }
.text-seg > button { gap: 7px; }
.text-seg.many > button { gap: 5px; padding: 0 6px; }
.text-seg small { font: 600 11px/1 var(--f-sans); color: var(--faint); margin-left: 2px; }
.okdot.err { background: var(--err); }
.okdot.warn { background: var(--ochre); }
.okdot.off { background: var(--line-2); }
.text-body { margin-top: 12px; }
.vtext .caption { padding: 14px 15px 12px; }
.caption .ht { color: var(--sea-2); }
.caption .fold {
  display: block; position: relative; height: 0; margin: 16px -4px 14px; border-top: 1.5px dashed var(--line-2);
}
.caption .fold .hand {
  position: absolute; right: 8px; top: -12px; padding: 0 6px; background: var(--paper-2);
  font: 600 18px/1 var(--f-hand); color: var(--sea-2); white-space: nowrap;
}
.cap-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; margin-top: 4px; font: 600 12.5px/1 var(--f-sans); color: var(--faint); letter-spacing: .04em; }
.cap-meta .link-btn { padding-left: 0; letter-spacing: 0; }
.cap-meta .counter { letter-spacing: 0; }
.fold-peek {
  margin-top: -4px; padding: 9px 12px; border-radius: 12px; background: var(--sunk);
  font: 400 14px/1.45 var(--f-sans); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline;
}
.fold-peek .hand { font: 600 18px/1 var(--f-hand); color: var(--sea-2); }
.fold-peek .ic { color: var(--olive); align-self: center; }

/* проверка правил */
.rules-box { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rules {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px;
  font: 600 14.5px/1.3 var(--f-sans); background: var(--sunk); color: var(--ink-2);
}
.rules > .ic { width: 22px; height: 22px; flex: none; }
.rules .rt { flex: 1; min-width: 0; }
.rules .rt > span { display: block; margin-top: 2px; font: 500 15px/1.35 var(--f-sans); color: var(--muted); }
.rules .btn-text { flex: none; min-height: 40px; }
.rules.ok { background: var(--olive-soft); color: var(--olive); }
.rules.err { background: var(--err-soft); color: var(--err); }
.rules.warn { background: var(--ochre-soft); color: var(--ink-2); }
.rules.warn > .ic { color: var(--ochre); }
.rules.none > .ic { color: var(--faint); }
.flags { display: flex; flex-direction: column; gap: 6px; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.4; background: var(--paper-2); border: 1px solid var(--line); }
.flag.err { border-left: 3px solid var(--err); }
.flag.warn { border-left: 3px solid var(--ochre); }
.flag-mark { flex: none; margin-top: 1px; }
.flag.err .flag-mark { color: var(--err); }
.flag.warn .flag-mark { color: var(--ochre); }
.other-red { color: var(--err); padding-left: 0; }

.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acts .btn { flex: 1 1 auto; padding: 0 10px; gap: 8px; font-size: 15.5px; }      /* «Править» и «Поправь словами» — в одну строку на 390 */
.acts .btn-fix { flex-basis: 100%; }
.vfoot { padding: 16px 18px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--sunk) 45%, transparent); }
.v-busy { z-index: 5; border-radius: var(--r-card); justify-content: flex-start; padding-top: 110px; }
.v-busy .vb-in {
  position: sticky; top: calc(var(--top-h) + 30vh); display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 280px);
  padding: 18px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-lift); color: var(--ink);
}
.v-busy .vb-in .spin { color: var(--terra); }
.v-busy .bar { width: 100%; }
.editor .textarea.caption { min-height: 240px; }

/* ───── «Куда и когда» ───── */
.pst-side > .sec-head { margin-top: 40px; }
.ww { padding: 18px; display: flex; flex-direction: column; }
.flow { display: flex; align-items: flex-start; padding: 14px 8px 12px; border-radius: 18px; background: var(--sea-soft); }
.node { width: 74px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; font: 600 12.5px/1.2 var(--f-sans); color: var(--ink-2); text-align: center; }
.node .ni {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--paper); color: var(--sea);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 14px -8px rgba(29, 78, 105, .5);
}
.node .ni .brand-mark { width: 30px; height: 30px; }
.node.dest .ni { background: var(--sea); color: var(--paper); }
.flow.done .node.dest .ni { background: var(--olive); }
.link {
  flex: 1; min-width: 12px; margin-top: 22px; height: 2px; position: relative;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--sea) 55%, transparent) 50%, transparent 0); background-size: 8px 2px;
}
.link::after {
  content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-right: 0;
  border-left: 6px solid color-mix(in srgb, var(--sea) 70%, transparent);
}
.handle { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 500 14px/1.3 var(--f-sans); color: var(--muted); }
.handle b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.handle small { display: block; font-size: 13.5px; }
.ww-date { margin-top: 20px; }
.dates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dates .date {
  position: relative; min-height: 64px; padding: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; min-width: 0;
}
.dates .date:hover:not(:disabled) { border-color: var(--line-2); }
.dates .date .dw { font: 600 11.5px/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dates .date.today .dw { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--terra); }
.dates .date.today.is-on .dw { color: inherit; }
.dates .date .dd { font: 500 22px/1 var(--f-serif); font-feature-settings: "lnum"; }
.dates .date.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dates .date.is-on .dw { color: inherit; opacity: .72; }
.dates .date:disabled, .dates .date.off { opacity: .5; cursor: not-allowed; }
.dates .date.other .ic { color: var(--ink-2); }
.dates .date.other.is-on .ic { color: inherit; }
.dates .date.other .dw { letter-spacing: .02em; text-transform: none; font-size: 12px; }
.date-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; padding: 0; margin: 0; }
.date-input:disabled { cursor: not-allowed; }
.day-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 10px; font: 500 14.5px/1.3 var(--f-sans); color: var(--ink-2); }
.day-line .hand { font-size: 19px; color: var(--sea-2); }

/* расписание: время | булавка | что | миниатюры */
.tl { list-style: none; margin: 14px 0 0; padding: 0; }
.tl-row, .tl-eve { display: grid; grid-template-columns: 70px 16px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.tl-row { min-height: 62px; }
.tl-eve { min-height: 26px; }
.tl .time { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; text-align: right; }
.tl-row .time { flex-direction: row; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; white-space: nowrap; }
.tl-row .time .tnum { font: 500 19px/1 var(--f-serif); font-feature-settings: "tnum", "lnum"; color: var(--ink); }
.tl-row .time small { flex-basis: 100%; text-align: right; font: 500 11.5px/1.2 var(--f-sans); color: var(--muted); }
.tl-row .time .ic { color: var(--ochre); }
.tl-row.f-stories .time .ic { color: var(--sea-2); }
.tl-eve .time { font: 600 19px/1 var(--f-hand); color: var(--bougain); }
.tl .pin { position: relative; align-self: stretch; }
.tl .pin::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.tl > li:first-child .pin::before { top: 50%; }
.tl > li:last-child .pin::before { bottom: 50%; }
.tl > li:only-child .pin::before { display: none; }
.tl-row .pin::after {
  content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--c, var(--sea));
}
.tl-row.u-vyshlo .pin::after { background: var(--olive); border-color: var(--olive); }
.tl-row.u-oshibka .pin::after { background: var(--err); border-color: var(--err); }
.tl-row.u-otmena .pin::after { border-color: var(--line-2); }
.tl-row.u-otmena .what, .tl-row.u-otmena .tl-th { opacity: .5; }
.tl .what { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl .tx { min-width: 0; }
.tl .tx b { display: flex; align-items: center; gap: 6px; font: 600 15px/1.25 var(--f-sans); color: var(--ink); }
.tl .tx b .ic { color: var(--c, var(--sea)); }
.tl .tx small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; font: 400 13.5px/1.3 var(--f-sans); color: var(--muted); }
.tl .tx .status { font-size: 12px; padding: 4px 8px 4px 7px; }
.tl-th { position: relative; display: flex; align-items: center; justify-self: end; }
.tl-th .pv { width: 36px; height: 45px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 4px 10px -6px rgba(0, 0, 0, .45); }
.tl-th.car { padding: 0 5px 0 0; }
.tl-th.car::before, .tl-th.car::after {           /* карусель — стопка карточек за обложкой */
  content: ""; position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line-2);
}
.tl-th.car::before { right: 0; width: 36px; transform: rotate(5deg); }
.tl-th.car::after { right: 2px; width: 36px; transform: rotate(2.5deg); }
.tl-th.car .pv { z-index: 1; }
.tl-th.stk .pv { width: 25px; height: 44px; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--paper), 0 4px 10px -6px rgba(0, 0, 0, .45); }
.tl-th.stk .pv + .pv { margin-left: -11px; }
.tl-none { padding: 10px 0; color: var(--muted); font-size: 15px; }
.u-more {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin: 2px 0 12px; padding: 11px 12px 12px;
  border-radius: 14px; background: var(--err-soft); position: relative; z-index: 1;
}
.u-neyasno .u-more { background: var(--ochre-soft); }
.u-more.calm { grid-column: 3 / -1; background: none; padding: 0; margin: -10px 0 4px; }
.u-more.calm .u-skip { min-height: 44px; padding-left: 0; font-size: 14.5px; }
.u-err { font: 500 14px/1.4 var(--f-sans); color: var(--err); }
.u-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.u-acts .btn { flex: 1 1 auto; }
.ww-fine { margin-top: 10px; }
.ww-none { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.ww-set { margin-top: 18px; }
.ww-set .langs { display: flex; flex-wrap: wrap; gap: 8px; }
.ww-set .langs.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ww-set .langs.many .chip { min-width: 0; justify-content: flex-start; }
.ww-set .trow { margin-top: 14px; }
.ww-approve { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ww-calm { text-align: center; font: 500 15px/1.45 var(--f-sans); color: var(--ink-2); margin-top: 2px; text-wrap: balance; }
.ww-count, .ww-prev { display: flex; align-items: flex-start; gap: 8px; }
.ww-count .ic { color: var(--sea); flex: none; margin-top: 1px; }
.ww-prev .ic { color: var(--olive); flex: none; margin-top: 2px; }
.ww-reason {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--err-soft); color: var(--err); font: 500 14.5px/1.4 var(--f-sans);
}
.ww-reason .ic { flex: none; margin-top: 1px; }
.ww-prog { padding: 4px 2px; color: var(--muted); }
.ww-ch:empty { display: none; }
.ww-ch .ch-list { margin-top: 18px; }
.ww-go { margin-top: 16px; }
.ww-acts { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.ww-status .ww-prev { margin-top: 12px; }

/* ───── низ страницы ───── */
.pst-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line-2);
}
.pst-foot .spend-line { margin: 0; flex: 1 1 240px; max-width: 560px; }
.pst-foot .link-btn { padding-left: 0; }
.pst-hist { margin-top: 16px; }
.pst-hist:empty { display: none; }
.history summary { gap: 8px; }
.pst-hist .history { padding: 4px 16px; }
.menu-cost { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }

/* одобренный пост: карточка «что выходит» */
.out-card { padding: 12px 0 14px; }
.out-card .vprev { padding-bottom: 0; }
.out-text { display: none; }
@media (min-width: 600px) and (max-width: 1023px) { .out-card .pview { max-width: 460px; margin: 0 auto; } }
@media (min-width: 1024px) {
  .out-card { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; padding: 18px 0; }
  .out-card .vprev { padding: 0 18px; }
  .out-text { display: block; padding: 0 18px 0 22px; border-left: 1px solid var(--line); min-height: 100%; }
  .out-text .label .ic { color: var(--ink-2); }
  .out-text .caption { white-space: pre-wrap; }
}

/* ───── нижняя панель «Одобрить» (телефон) ───── */
.actionbar {
  position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 9px;
  border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  animation: up .2s ease-out;
}
.actionbar .ab-th { flex: none; display: block; }
.actionbar .ab-th .pv { width: 40px; height: 50px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.actionbar .ab-th .pv.story { width: 30px; }
.actionbar .ab-t { flex: 1; min-width: 0; }
.actionbar .ab-t b, .actionbar .ab-t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar .ab-t b { font: 600 14.5px/1.25 var(--f-sans); }
.actionbar .ab-t small { font: 500 13.5px/1.3 var(--f-sans); color: var(--muted); margin-top: 2px; }
.actionbar .ab-t small.err-text { color: var(--err); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.actionbar .btn { flex: none; min-height: 48px; padding: 0 14px 0 16px; gap: 8px; }
body.has-actionbar main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* одобренный пост на телефоне: история — в самом низу, после «Куда и когда» */
@media (max-width: 1023px) {
  .pst-grid.is-status .pst-main { display: contents; }
  .pst-grid.is-status .pst-side { order: 2; }
  .pst-grid.is-status .pst-hist { order: 3; margin-top: 18px; }
}

/* ───── узкий телефон ───── */
@media (max-width: 360px) {
  .vpick { grid-auto-columns: calc((100% - 10px) / 2.3); }
  .st-wrap { grid-template-columns: minmax(0, 1fr); }
  .st-col { display: none; }
  .tl-row, .tl-eve { grid-template-columns: 64px 14px minmax(0, 1fr) auto; column-gap: 6px; }
}

/* ───── планшет ───── */
@media (min-width: 768px) {
  .pst-head h1 { font-size: 34px; }
  .vprev { padding: 0 18px 6px; }
  .st-wrap { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
  .vpick, .vpick.many { grid-auto-columns: 176px; }
}

/* ───── компьютер: две колонки, «Куда и когда» прилипает справа ───── */
@media (min-width: 1024px) {
  .pst-grid {
    grid-template-columns: minmax(0, 1fr) 384px; column-gap: 36px;
    grid-template-areas: "top side" "main side"; grid-template-rows: auto 1fr;
  }
  .pst-top { grid-area: top; }
  .pst-main { grid-area: main; }
  .pst-side {
    grid-area: side; position: sticky; top: calc(var(--top-h) + 16px);
    max-height: calc(100vh - var(--top-h) - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    margin: 0 -10px; padding: 0 10px 24px;
  }
  .pst-side > .sec-head { margin-top: 8px; }
  .pst-info .nt .btn-text { display: none; }          /* «К расписанию» — панель и так рядом */
  .vfoot { display: none; }
  .actionbar { display: none !important; }
  /* одобрение прилипает к низу панели: кнопка видна без прокрутки даже на экране 1280×780; сводка над ней — языки и сторис */
  .pst-side .ww-approve {
    position: sticky; bottom: 0; z-index: 2; margin: 18px -18px 0; padding: 12px 18px 14px;
    background: var(--paper);
    box-shadow: 0 -14px 18px -16px rgba(60, 40, 20, .35);
  }
  .pst-side .ww-sum { display: flex; }
  .ww-set { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
  .ww .flow { padding: 12px 8px 10px; }
  .tl-row { min-height: 56px; }
  .ww-date { margin-top: 16px; }
  .dates .date { min-height: 58px; }
}
@media (min-width: 1200px) {
  .pst-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: start; }
  .pst-note { margin-top: 34px; }
}
/* открытый вариант в две колонки: превью | оформление и текст (планшет и широкий экран) */
@media (min-width: 768px) and (max-width: 1023px), (min-width: 1200px) {
  .vbody { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); }
  .vprev { padding: 0 0 18px 18px; }
  .vedit { margin-top: 0; border-top: 0; border-left: 1px solid var(--line); margin-left: 18px; }
  .vedit .tools { padding-top: 2px; }
  .vtext { border-top: 1px solid var(--line); }
  .st-wrap { grid-template-columns: minmax(0, 206px) minmax(0, 1fr); }
}
@media (min-width: 1200px) { .vbody { grid-template-columns: minmax(0, 372px) minmax(0, 1fr); } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .vprev .pview { max-width: 440px; margin: 0 auto; }
}

/* ───── добавки после ревью ───── */
.ww-sum { display: none; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 -2px; font: 500 14px/1.3 var(--f-sans); color: var(--ink-2); }
.ww-sum .link-btn { min-height: 36px; padding: 0 2px; font-size: 14px; }
.ww-after { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ww-after:empty { display: none; }
.ww-day { margin-top: 16px; }
.pst-ro { display: flex; align-items: center; gap: 6px; margin-top: 2px; font: 500 14px/1.35 var(--f-sans); color: var(--muted); }
.pst-ro .ic { flex: none; }
.badge-ok.is-red { background: var(--err-soft); color: var(--err); }
.pst-feed:empty { display: none; }
.pst-feed .feed { margin-top: 14px; }
@media (hover: hover) { .fr:not(.on):hover .pv { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--line-2); } }

/* телефон: варианты — настоящая сетка в 3 колонки (без обрезанной 4-й карточки), «Ещё вариант» — строкой под ней */
@media (max-width: 767px) {
  .vpick, .vpick.many {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible; margin: -6px 0 0; padding: 10px 0 12px;
  }
  .vp-slot > button.vp-more {
    grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 10px;
  }
  .vp-slot > button.vp-more .vp-img { width: auto; aspect-ratio: auto; padding: 0; background: none; }
  .vp-slot > button.vp-more .vp-cap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding: 0; }
  .vp-slot > button.vp-more .vp-cap small { margin: 0; font-size: 14px; }
}
/* узкий телефон: телефон-рамка сторис чуть уже — справа остаётся место под «Кадр 1/2/3» */
@media (max-width: 420px) {
  .st-wrap { grid-template-columns: minmax(0, 192px) minmax(0, 1fr); gap: 12px; }
}
/* две колонки в карточке варианта: превью прилипает, пока правишь текст справа (длинное — листается само) */
@media (min-width: 768px) and (max-width: 1023px), (min-width: 1200px) {
  .vbody { align-items: start; }
  .vprev {
    position: sticky; top: calc(var(--top-h) + 14px); max-height: calc(100vh - var(--top-h) - 28px);
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px;
  }
}
/* компьютер: все шаблоны видны сразу — в несколько рядов, без ленты вбок */
@media (min-width: 1024px) {
  .tpls { flex-wrap: wrap; gap: 12px 5px; overflow: visible; margin: 0; padding: 4px 2px 6px; -webkit-mask-image: none; mask-image: none; }
  .tpl { width: 60px; font-size: 12px; gap: 6px; }
  .tpl .tpl-pv { width: 52px; height: 65px; border-radius: 7px; }
  .tpl .tpl-pv.story { width: 37px; }
}

/* ───── тёмная тема ───── */
@media (prefers-color-scheme: dark) {
  .ig { --ig-link: #E0F1FF; box-shadow: 0 0 0 1px var(--ig-line), 0 18px 34px -22px rgba(0, 0, 0, .9); }
  .pv-arrow > span { background: rgba(255, 255, 255, .9); }
  .fr .n { background: rgba(21, 33, 42, .92); color: var(--ink); }
  .vp-tick { box-shadow: 0 0 0 3px var(--bg); }
  .tl-th.car::before, .tl-th.car::after { background: var(--sunk); }
  .node .ni { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 6px 14px -8px rgba(0, 0, 0, .7); }
  .node.dest .ni { color: var(--bg); }
  .flow.done .node.dest .ni { color: var(--bg); }
  .vp-more .plus { background: var(--sunk); box-shadow: none; }
  .pv iframe { background: #1b1b1b; }
}

/* ═════════════ РИЛС: экран поста ═════════════ */
/* выбор варианта: обложка видео 9:16 с ▶ или «кадр» хука (фото / цвета палитры + текст), пока видео не собрано */
.vp.reel .vp-img { background: var(--reel-soft); }
.rph { position: absolute; inset: 0; display: block; }
.vp-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .42); color: #fff; pointer-events: none;
}
.vp-play .ic { margin-left: 2px; }
.rface {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  padding: 10% 9% 24%; background: var(--f1); color: var(--f3); container-type: inline-size; text-align: left;
}
.rface::before { content: ""; position: relative; z-index: 1; width: 18%; height: 3px; margin-bottom: 7%; border-radius: 2px; background: var(--f2); flex: none; }
.rface > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rface.ph { color: #fff; }
.rface.ph::before { background: #fff; }
.rface.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .58)); }
.rf-tx { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.rf-t { font: 500 clamp(11px, 10.5cqw, 34px)/1.08 var(--f-serif); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.rf-s { font: 500 clamp(8px, 5.6cqw, 17px)/1.28 var(--f-sans); opacity: .86; }

/* видео в телефоне: ▶ / ❚❚, звук, полоска времени, значки Reels поверх (видно, что текст их не задевает) */
.reel-view { gap: 10px; }
.rp-phone { width: 100%; max-width: 280px; margin: 0 auto; }
.rp-screen { cursor: pointer; }
.rp-screen::after { height: 44%; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .5)); }
.rp-screen::before { height: 90px; background: linear-gradient(rgba(0, 0, 0, .32), rgba(0, 0, 0, 0)); }
.rp-screen.no-video { cursor: default; }
.rp-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.rp-face { position: absolute; inset: 0; }
.rp-face .rface { padding-bottom: 34%; }
.rp-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #fff; }
.rp-side { position: absolute; right: 9px; bottom: 78px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rp-side .ic { width: 22px; height: 22px; stroke-width: 1.9; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.rp-foot {
  position: absolute; left: 11px; right: 46px; bottom: 15px; display: flex; flex-direction: column; gap: 5px; min-width: 0;
  font: 500 11px/1.3 var(--f-sans); text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.rp-user { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 11.5px; min-width: 0; }
.rp-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-user .av > span { background: #fff; border-color: #fff; }
.rp-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-music { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.rp-music .ic { flex: none; stroke-width: 2; }
.rp-music span { overflow: hidden; text-overflow: ellipsis; }
.rp-play {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55) inset, 0 6px 18px rgba(0, 0, 0, .35);
}
.rp-play .ic { width: 30px; height: 30px; margin-left: 4px; }
.rp-play:hover { background: rgba(0, 0, 0, .6); }
.rp-mute {
  position: absolute; z-index: 3; right: 8px; top: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .38); color: #fff; cursor: pointer;
}
.rp-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); pointer-events: none; }
.rp-bar i { display: block; height: 100%; width: 0; background: #fff; }
.rp-screen.no-video .rp-bar { display: none; }
.rp-badge, .rp-wait {
  position: absolute; z-index: 3; left: 10px; top: 16px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 66px);
  padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 11.5px/1.1 var(--f-sans); pointer-events: none;
}
.rp-wait { left: 50%; transform: translateX(-50%); max-width: calc(100% - 20px); white-space: nowrap; }
.rp-note {
  position: absolute; z-index: 3; left: 12px; right: 12px; top: 40%; padding: 10px 12px; border-radius: 12px; text-align: center;
  background: rgba(0, 0, 0, .66); color: #fff; font: 500 13px/1.35 var(--f-sans); pointer-events: none;
}
.rp-when { margin: 0; justify-content: center; }

/* сборка видео: прогресс со временем, «собрано · 23,6 с · трек», «Собрать видео» */
.rbuild { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rbuild:empty { display: none; }
.rb-run { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 12px; border-radius: 16px; background: var(--reel-soft); }
.rb-top { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--f-sans); color: var(--ink); }
.rb-top b { flex: 1; min-width: 0; font-weight: 600; }
.rb-top .spin { color: var(--reel); flex: none; }
.rb-pct { flex: none; font: 600 13px/1 var(--f-sans); color: var(--muted); }
.rb-run .bar { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.rb-run .bar i { background: var(--reel); }
.rb-run .fine { color: var(--ink-2); }
.rb-run .rb-lock { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.rb-run .rb-lock .ic { flex: none; }
.rb-msg { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--sunk); color: var(--ink-2); font: 400 14.5px/1.4 var(--f-sans); }
.rb-msg > .ic { flex: none; margin-top: 1px; }
.rb-msg b { font-weight: 600; color: var(--ink); }
.rb-msg small { display: flex; align-items: center; gap: 5px; margin-top: 3px; font: 400 13px/1.3 var(--f-sans); color: var(--muted); }
.rb-msg small .ic { flex: none; }
.rb-msg.ok { background: var(--olive-soft); }
.rb-msg.ok > .ic { color: var(--olive); }
.rb-msg.warn { background: var(--ochre-soft); }
.rb-msg.warn > .ic { color: var(--ochre); }
.rb-msg.err, .rb-msg.err b { background: var(--err-soft); color: var(--err); }
.rb-go { min-height: 52px; }
.rbuild > .fine { margin-top: -4px; text-align: center; }

/* оформление рилса: настроение музыки, трек, переход, размер заголовков */
.tools .chips { gap: 6px; }
.tools .chips .chip { min-height: 40px; }
.mood-track { margin-top: 10px; }
.sel { width: 100%; min-height: 46px; padding-top: 0; padding-bottom: 0; cursor: pointer; }
.tool > .fine { margin-top: 8px; }
.tool > .remix-btn { margin-top: 10px; }
.pair-tools.rpair { align-items: center; }
.pair-tools.rpair .label { margin: 0; }

/* кадры ролика: хук, сцены, последний кадр — строкой; нажала — правка прямо в строке */
.vreel .text-tabs { margin-bottom: 16px; }
.vreel .sc-label .ic, .vreel .cap-label .ic { color: var(--ink-2); }
.vreel .sc-label .val { font-weight: 500; }
.vreel .cap-label { margin-top: 24px; }
.scenes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; }
.sc.open { border-color: var(--ink); box-shadow: 0 0 0 .5px var(--ink); }
.sc.f-err:not(.open) { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.sc-row {
  display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; width: 100%; min-height: 62px;
  padding: 8px 10px 8px 8px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.sc-row:disabled { cursor: default; }
.sc-row:focus-visible { outline-offset: -3px; border-radius: 15px; }
.sc-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk);
  font: 500 15px/1 var(--f-serif); color: var(--ink-2); font-feature-settings: "lnum";
}
.sc-n.hook { background: var(--reel); color: var(--paper); font: 700 9px/1 var(--f-sans); letter-spacing: .03em; text-transform: uppercase; }
.sc-n.end { background: var(--olive-soft); color: var(--olive); }
.sc-n.end .ic { stroke-width: 2.4; }
.sc-th { width: 30px; height: 46px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--sunk); color: var(--faint); box-shadow: 0 0 0 1px var(--line); }
.sc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-th.end { background: var(--paper-2); }
.sc-th .av.xs { width: 24px; height: 24px; }
.sc-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-tx b { font: 600 15px/1.25 var(--f-sans); color: var(--ink); overflow-wrap: anywhere; }
.sc-tx b.faint { color: var(--err); font-weight: 500; }
.sc-tx small { font: 400 13.5px/1.3 var(--f-sans); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-tx .sc-meta { font: 500 12.5px/1.2 var(--f-sans); color: var(--reel); }
.sc-flag { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.sc-flag.err { background: var(--err-soft); color: var(--err); }
.sc-flag.warn { background: var(--ochre-soft); color: var(--ochre); }
.sc-chev { color: var(--faint); transition: transform .2s; grid-column: 5; }
.sc.open .sc-chev { transform: rotate(180deg); }
.sc-ed { display: flex; flex-direction: column; gap: 14px; padding: 14px 12px 12px; border-top: 1px dashed var(--line-2); background: var(--paper-2); }
.sc-ed .field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sc-ed .textarea.sc-area { min-height: 70px; }
.sc-check { display: flex; align-items: flex-start; gap: 10px; font: 500 14.5px/1.4 var(--f-sans); color: var(--ink-2); cursor: pointer; }
.sc-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.sc-photo { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.sc-ph { width: 40px; height: 58px; flex: none; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--sunk); color: var(--faint); }
.sc-photo b { display: block; font: 600 14.5px/1.25 var(--f-sans); }
.sc-photo small { display: block; font: 400 13px/1.3 var(--f-sans); color: var(--muted); }
.sc-photo .btn { flex: none; padding: 0 14px; }
.sc-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.sc-line .label { margin: 0; }
.sc-line .sel, .sc-line .seg { flex: 1 1 190px; max-width: 280px; }
.sc-pos > button { min-height: 40px; }
.sc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-acts:empty { display: none; }
.sc-acts .btn { gap: 6px; padding: 0 12px; }
.sc-del { margin-left: auto; min-height: 44px; }
.sc-done { margin-top: -2px; }
.sc.sc-addrow { border: 1.5px dashed var(--line-2); background: transparent; }
.sc-add { width: 100%; justify-content: center; min-height: 48px; }

/* подпись и заголовок YouTube */
.yt-line {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line); font: 400 14.5px/1.4 var(--f-sans); color: var(--ink-2); overflow-wrap: anywhere;
}
.yt-line .ic { flex: none; margin-top: 1px; color: #C4302B; }
.yt-line b { font-weight: 600; color: var(--ink); }
.yt-line.err { background: var(--err-soft); border-color: transparent; color: var(--err); }
.yt-line.err b { color: var(--err); }
.out-text .yt-line { margin-top: 14px; }

/* «Куда и когда» у рилса: каналы галочками, строка видео на язык */
.ww-picks { margin-top: 18px; padding: 0; border-top: 0; }
.ww-picks > .label { margin-bottom: 4px; }
.ww .ch-pick { background: var(--paper-2); }
.ww .ch-pick.is-on { background: var(--paper); }
.tl-chs { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.tl-chs .ic { width: 15px; height: 15px; }
.tl-th .pv-none { width: 25px; height: 44px; border-radius: 5px; display: grid; place-items: center; background: var(--reel-soft); color: var(--reel); }
.ww-flow { display: block; }

/* одобренный рилс: видео в телефоне рядом с подписью */
.out-card.is-reel .vprev { padding-bottom: 6px; }

@media (min-width: 768px) {
  .rp-phone { max-width: 300px; }
}
@media (min-width: 768px) and (max-width: 1023px), (min-width: 1200px) {
  .rcard .vprev { padding-right: 14px; }
}
@media (prefers-color-scheme: dark) {
  .yt-line .ic { color: #FF6B63; }
  .sc-n.hook { color: var(--bg); }
  .rb-run .bar { background: color-mix(in srgb, var(--bg) 50%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .sc-chev { transition: none; } }

/* ─── своё время, «Опубликовать сейчас», «Изменить время» ─── */
.ww-custom:empty { display: none; }
.ww-custom { margin-top: 12px; }
.ct-open { width: 100%; }
.ct-tag { font: 600 11.5px/1 var(--f-sans); padding: 3px 7px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); white-space: nowrap; }
.tl-note {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 7px; margin: -2px 0 12px; padding: 9px 11px;
  border-radius: 12px; background: var(--ochre-soft); color: var(--ink); font: 500 13.5px/1.4 var(--f-sans); position: relative; z-index: 1;
}
.tl-note .ic { flex: none; margin-top: 1px; color: var(--ochre); }
.ct-box { padding: 14px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.ct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ct-head b { font: 600 15.5px/1.2 var(--f-sans); }
.ct-head .hand { font-size: 19px; color: var(--sea-2); }
.ct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; }
.ct-name { font: 600 14px/1.25 var(--f-sans); color: var(--ink-2); }
.ct-in { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.ct-back { grid-column: 2; grid-row: 1; font-size: 13.5px; min-height: 28px; padding: 0; }
.ct-back[hidden] { display: none; }
.ct-row.is-custom .ct-date, .ct-row.is-custom .ct-time { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.ct-date, .ct-time { width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px; font: 500 16px/1.2 var(--f-sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; }
.ct-reset { margin-top: 12px; }
.ct-reset[hidden] { display: none; }
.ww-now { justify-content: center; }
.ww-nowbox { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.u-retime { align-self: flex-start; min-height: 44px; padding-left: 0; font-size: 14.5px; color: var(--sea); }
.u-more.calm .u-retime { margin-left: 0; }
.st-now::before { animation: now-pulse 1.2s ease-in-out infinite; }
@keyframes now-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-now::before { animation: none; } }
.tl-row.u-vyshlo .tx .status { white-space: normal; }
.tl-row { padding: 3px 0; }
.tl-row.u-now .pin::after { background: var(--sea); border-color: var(--sea); }

.now-sheet { display: flex; flex-direction: column; gap: 14px; }
.pst-head .pst-similar { align-self: flex-start; margin: 2px 0 -6px -6px; }
.sim-sheet { display: flex; flex-direction: column; gap: 14px; }
.sim-look { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; overflow-wrap: anywhere; }
.sim-look .ic { flex: none; margin-top: 1px; color: var(--ink-2); }
.now-langs .label { margin-bottom: 8px; }
.now-langs .langs { display: flex; flex-wrap: wrap; gap: 8px; }
.now-langs .langs.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.now-langs .langs.many .chip { min-width: 0; justify-content: flex-start; }
.now-st { margin: 0; }
.now-sum { padding: 12px 14px; border-radius: 14px; background: var(--sea-soft); }
.now-sum .label { margin-bottom: 6px; }
.now-line { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0 0; font: 600 15px/1.4 var(--f-sans); color: var(--ink); }
.now-line .ic { flex: none; margin-top: 2px; color: var(--sea); }
.now-none { margin: 0; font: 500 15px/1.4 var(--f-sans); color: var(--err); }
.now-rest { margin: 0; font: 500 14px/1.45 var(--f-sans); color: var(--muted); }
.now-rest[hidden] { display: none; }
.now-info { display: flex; align-items: flex-start; gap: 7px; margin: 0; font: 500 14px/1.45 var(--f-sans); color: var(--ink-2); }
.now-info .ic { flex: none; margin-top: 2px; color: var(--sea); }
.now-warn { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 11px 12px; border-radius: 12px; background: var(--err-soft); color: var(--err); font: 600 14.5px/1.4 var(--f-sans); }
.now-warn .ic { flex: none; margin-top: 1px; }
.now-no { margin-top: -4px; }

.rt-sheet { display: flex; flex-direction: column; gap: 12px; }
.rt-what { margin: 0; font: 500 15px/1.4 var(--f-sans); color: var(--ink-2); }
.rt-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.rt-in .label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.rt-ch { margin: 0; }
.rt-note { display: block; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font: 500 14.5px/1.4 var(--f-sans); color: var(--ink-2); min-height: 42px; }
.rt-note .spin { margin-right: 6px; }
.rt-note.is-ok { background: var(--olive-soft); color: var(--ink); }
.rt-note.is-shift { background: var(--ochre-soft); color: var(--ink); }
.rt-note.is-bad { background: var(--err-soft); color: var(--err); }
.rt-warn { display: block; margin-top: 4px; }

/* один язык отдельно: правка и одобрение языка у одобренного поста */
.pst-lang:empty { display: none; }
.lang-bar { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.lang-bar .fine { margin: 0; }
.lang-why { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font: 500 15px/1.4 var(--f-sans); color: var(--muted); }
.lang-why .ic { flex: none; margin-top: 2px; }
.lang-locked { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--paper-2, var(--paper)); font: 500 15px/1.4 var(--f-sans); color: var(--ink-2); }
.lang-locked .ic { flex: none; margin-top: 2px; color: var(--muted); }
.mchip.is-open { color: var(--ochre); font-weight: 600; }
.row-lang { display: inline-flex; align-items: center; gap: 4px; font: 600 14px/1.3 var(--f-sans); color: var(--ochre); }
.ww-lang { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.ww-lang-head h3 { margin: 0 0 4px; font: 600 18px/1.3 var(--f-sans); color: var(--ink); }
.ww-lang-head .fine { margin: 0; }
.ww-lang .ww-approve { position: static; }
.lang-drop { align-self: flex-start; }
.ww-add { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ww-add .fine { margin: 0; }
.lang-add .code { font-weight: 700; }
.lang-write { width: 100%; }

/* подпись другой даты в расписании: узкая колонка, в две строки, а не за край экрана */
.tl-row .time small { white-space: normal; }
/* вкладка языка: дата отдельной строчкой мельче */
.tab-when { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.tab-when small { font: 500 11.5px/1.15 var(--f-sans); color: var(--muted); white-space: nowrap; }
/* своё время: кнопки дат не нужны */
.ww-own-day { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; }
.ww-own-day .ic { flex: none; margin-top: 1px; color: var(--muted); }
/* рилс до сборки: предпросмотр примерный, настоящий вид будет в видео */
/* метки до сборки — столбиком в левом верхнем углу: справа кнопка звука, друг на друга не наезжают */
.rp-tags { position: absolute; z-index: 3; left: 10px; top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(100% - 66px); pointer-events: none; }
.rp-tags:empty { display: none; }
.rp-tags .rp-wait { position: static; transform: none; max-width: 100%; white-space: normal; }
.rp-approx { padding: 3px 9px; border-radius: 999px; background: rgba(20, 16, 12, .62); color: #fff; font: 600 12px/1.3 var(--f-sans); }
.rb-first { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 8px; color: var(--ochre); }
.rb-first .ic { flex: none; margin-top: 2px; }
.sc-now { margin-top: -6px; }
.sc.open { scroll-margin-bottom: 96px; }
.ww-dropped { margin-top: 6px; }
.st-notext { margin: 4px 0 10px; }
/* «Не публиковать» и «Изменить время» одной группой, без большого зазора */
.u-more.calm .u-acts { gap: 0 12px; }
/* тихие заметки проверки: делать ничего не надо, поэтому не жёлтым и не в счёт замечаний */
.rules-notes { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font: 400 13px/1.35 var(--f-sans); }
.sc-now.warn { display: flex; gap: 6px; align-items: flex-start; color: var(--ochre); }
.sc-now.warn .ic { flex: none; margin-top: 2px; }
/* длинный заголовок кадра: перенос по слогам, а не одна буква на новой строке */
.sc-tx b { hyphens: auto; overflow-wrap: anywhere; }
.scenes-head, .sc-head { flex-wrap: wrap; }
/* выключенная ссылка выглядит выключенной */
.btn-text:disabled, .link-btn:disabled { opacity: .45; cursor: default; }
/* «Кадры ролика» — одной строкой, сколько кадров — ниже */
.sc-label { flex-wrap: wrap; row-gap: 2px; }
.sc-label .val { flex-basis: 100%; margin-left: 0; text-align: left; }
