/* Конструктор шоу (/studio/): светлая рабочая тема, фирменные шрифты и акценты плеера. */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-500-700.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #121212; --ink-2: #2b2b29; --muted: #6b6963; --faint: #9c9a94;
  --bg: #f3f0e8; --card: #fff; --line: #e4e0d6; --line-2: #d3cec2; --soft: #f8f6f0;
  --lime: #c5f02c; --lime-ink: #4b5c00; --lime-soft: #f0fbcc;
  --pink: #e0436f; --pink-soft: #fde8ee; --sun: #f5b52a; --sun-soft: #fff4d6; --lilac: #7a6ee6;
  --r: 12px; --r-s: 8px;
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-text: "Onest", Arial, sans-serif;
  /* для формы блока (editor.css рассчитан на переменные админки) */
  --primary: var(--lime); --hairline-color: var(--line); --darkened-bg: var(--soft); --body-quiet-color: var(--muted);
  --body-bg: #fff; --button-bg: var(--ink); --button-fg: #fff; --error-fg: var(--pink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--font-text); }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); padding-top: .12em; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
code { background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }

/* ---------- шапка ---------- */
.top { background: var(--ink); color: #fff; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 20px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.logo b { color: var(--lime); font-weight: 800; }
.top nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.top nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: #d9d6cf; white-space: nowrap; font-size: .92rem; }
.top nav a:hover { color: #fff; background: #ffffff14; }
.top nav a.on { color: var(--ink); background: var(--lime); }
.top .user { display: flex; align-items: center; gap: 10px; color: #aaa69e; font-size: .85rem; white-space: nowrap; }
.top .user form { margin: 0; }
.top .user button { background: none; border: 0; color: #d9d6cf; font: inherit; cursor: pointer; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .top .user span { display: none; } .top-in { gap: 10px; } }

main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- сообщения ---------- */
.msgs { display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 10px 14px; border-radius: var(--r-s); background: var(--lime-soft); border: 1px solid #d8ef8a; }
.msg.error { background: var(--pink-soft); border-color: #f5b6c7; }
.msg.warning { background: var(--sun-soft); border-color: #f2d48a; }
.msg.info { background: #eef0ff; border-color: #cfd3fb; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 .92rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover { border-color: var(--ink); }
.btn.danger { color: var(--pink); border-color: #f2b3c4; }
.btn.danger:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: #0000000a; }
.btn.small { min-height: 30px; padding: 4px 12px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; text-decoration: none; }
.icon-btn:hover { background: #0000000d; color: var(--ink); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* ---------- карточки ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.tight { gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card .hint, .hint { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soft); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.live { background: var(--lime-soft); border-color: #d8ef8a; color: var(--lime-ink); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fae00; }
.badge.off { background: var(--soft); color: var(--faint); }
.badge.warn { background: var(--sun-soft); border-color: #f2d48a; color: #8a5a00; }
.badge.red { background: var(--pink-soft); border-color: #f5b6c7; color: #a3274a; }

/* ---------- мои шоу ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.show-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.show-card .cover { display: flex; gap: 14px; padding: 18px 18px 14px; text-decoration: none; }
.show-card .cover:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.ava { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: var(--lime); display: grid; place-items: center;
  font: 800 1.4rem/1 var(--font-display); overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.show-card h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
.show-card .meta { color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.show-card .acts { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); margin-top: auto; flex-wrap: wrap; }
.show-card.new { border-style: dashed; border-width: 2px; background: none; align-items: center; justify-content: center; gap: 10px; padding: 24px; min-height: 180px; }

/* ---------- шоу: заголовок и вкладки ---------- */
.show-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.show-head .ava { width: 64px; height: 64px; }
.show-head .t { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.show-head .meta { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .88rem; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a .n { font-weight: 500; color: var(--faint); margin-left: 4px; }

/* ---------- сценарий ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
@media (max-width: 900px) { .side { position: static; } }
.timeline { display: flex; flex-direction: column; }
.stage-cap { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--muted); font-size: .88rem; background: var(--soft); border: 1px dashed var(--line-2); border-radius: var(--r-s); }
.stage-cap b { color: var(--ink); }
.stage-cap .spacer + span { white-space: nowrap; }
.blk { display: grid; grid-template-columns: 28px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 10px 12px 10px 6px; transition: box-shadow .15s, opacity .15s; }
.blk:hover { border-color: var(--line-2); box-shadow: 0 2px 10px #0000000d; }
.blk.off { background: var(--soft); }
.blk.off .blk-main { opacity: .55; }
.blk.dragging { opacity: .4; }
.blk.drop-above { box-shadow: 0 -3px 0 var(--ink); }
.blk.drop-below { box-shadow: 0 3px 0 var(--ink); }
.grip { cursor: grab; color: var(--faint); display: grid; place-items: center; height: 100%; font-size: 18px; letter-spacing: -2px; user-select: none; touch-action: none; }
.grip:active { cursor: grabbing; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.blk.off .num { background: var(--line-2); color: var(--muted); }
.blk-main { min-width: 0; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.blk-main .name { font-weight: 700; overflow-wrap: anywhere; }
.blk-main:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.blk-main .mech { font-size: .82rem; color: var(--muted); }
.blk-main .sum { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-main .sum.bad { color: var(--pink); white-space: normal; }
.blk-tools { display: flex; align-items: center; gap: 4px; }
.blk-tools .mins { font-size: .85rem; color: var(--muted); white-space: nowrap; min-width: 52px; text-align: right; margin-right: 4px; }
.gap { position: relative; height: 22px; display: flex; align-items: center; justify-content: center; }
.gap .add { opacity: 0; transition: opacity .12s; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--muted);
  background: var(--bg); padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-2); line-height: 18px; z-index: 1; }
.gap::before { content: ""; position: absolute; left: 30px; right: 30px; top: 50%; border-top: 1px dashed transparent; }
.gap:hover .add, .gap .add:focus { opacity: 1; }
.gap:hover::before { border-top-color: var(--line-2); }
.gap .add:hover { color: var(--ink); border-color: var(--ink); }
.brk { display: flex; align-items: center; gap: 8px; margin: 2px 0 2px 70px; font-size: .85rem; color: #8a5a00; }
.brk select { font-size: .85rem; padding: 2px 6px; border-radius: 6px; border: 1px solid #f2d48a; background: var(--sun-soft); color: #8a5a00; font-family: inherit; }
.add-big { display: flex; justify-content: center; margin-top: 12px; }
@media (max-width: 640px) {
  .blk { grid-template-columns: 24px 30px minmax(0, 1fr); }
  .blk-tools { grid-column: 3; justify-content: flex-start; margin-left: -4px; }
  .blk-tools .mins { text-align: left; min-width: 0; }
  .gap .add { opacity: 1; }
  .brk { margin-left: 30px; }
}

/* переключатель */
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px #0003; }
.switch input:checked + span { background: #7fae00; }
.switch input:checked + span::before { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* длительность */
.len-big { font: 800 2rem/1 var(--font-display); }
.len-big small { font: 600 .95rem var(--font-text); color: var(--muted); margin-left: 4px; }
.len-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--soft); }
.len-bar i { display: block; height: 100%; }
.len-rows { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.len-rows div { display: flex; justify-content: space-between; gap: 10px; }
.len-rows .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.menu-list { display: flex; flex-direction: column; gap: 6px; }
.menu-list a { text-underline-offset: 3px; }

/* ---------- формы ---------- */
form { margin: 0; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field .lbl { font-weight: 700; font-size: .92rem; }
.field .help { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.field .err, .errorlist { color: var(--pink); font-size: .85rem; margin: 0; padding: 0; list-style: none; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--pink); }
input[type=text], input[type=number], input[type=url], input[type=password], input[type=search], select, textarea {
  font: 500 .95rem/1.4 var(--font-text); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 8px 11px; width: 100%; max-width: 560px; }
input[type=number] { max-width: 140px; }
textarea { resize: vertical; min-height: 60px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check .help { font-weight: 500; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.radios.inline { flex-direction: row; flex-wrap: wrap; }
.radios label { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); cursor: pointer; background: #fff; font-weight: 600; }
.radios label:has(input:checked) { border-color: var(--ink); background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.radios input { accent-color: var(--ink); margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.savebar { position: sticky; bottom: 0; z-index: 5; background: #f3f0e8ee; backdrop-filter: blur(4px); border-top: 1px solid var(--line-2);
  margin: 0 -16px -64px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.savebar .muted { font-size: .85rem; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
details.fold { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
details.fold > summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "›"; font-size: 1.3rem; line-height: 1; transition: transform .15s; color: var(--muted); width: 12px; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary .muted { font-weight: 500; font-size: .88rem; }
details.fold > .in { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 14px; }

/* строки формсетов (реплики, номинации) */
.fs-rows { display: flex; flex-direction: column; gap: 10px; }
.fs-row { display: grid; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--soft); }
.fs-row.line { grid-template-columns: minmax(150px, 220px) minmax(130px, 200px) minmax(0, 1fr) 70px auto; }
.fs-row.nom { grid-template-columns: 60px minmax(160px, 240px) minmax(140px, 220px) minmax(0, 1fr) auto; }
.fs-row.sline { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) 70px auto; }
.fs-row .c { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fs-row .c > span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.fs-row input, .fs-row select, .fs-row textarea { max-width: none; }
.fs-row textarea { min-height: 40px; }
.fs-row input[type=file] { font-size: .8rem; max-width: 100%; }
.fs-row .del { padding-top: 22px; }
.fs-row.deleted { opacity: .45; }
.fs-row.deleted textarea, .fs-row.deleted input[type=text] { text-decoration: line-through; }
.fs-row .errorlist { grid-column: 1 / -1; }
.fs-row .audio-cur { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 800px) { .fs-row.line, .fs-row.nom, .fs-row.sline { grid-template-columns: 1fr 1fr; } .fs-row .c.wide { grid-column: 1 / -1; } .fs-row .del { padding-top: 0; } }

/* ---------- каталог ---------- */
.cat-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cat-tools input { max-width: 340px; }
.cat-group { display: flex; flex-direction: column; gap: 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mcard { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; font: inherit; color: inherit; width: 100%; height: 100%; }
.mcard:hover { border-color: var(--ink); box-shadow: 0 4px 16px #00000012; }
.mcard b { font-size: 1rem; }
.mcard .d { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.mcard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* ---------- блок ---------- */
.block-top { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.block-top .t { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.pager { display: flex; gap: 6px; align-items: center; }
.mech-desc { background: var(--lime-soft); border: 1px solid #d8ef8a; border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.mech-desc b { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lime-ink); }
.title-row { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.title-row .field { flex: 1; min-width: 240px; }
.content-errors { background: var(--pink-soft); border: 1px solid #f5b6c7; border-radius: var(--r-s); padding: 10px 14px; color: #a3274a; font-size: .9rem; }
.content-errors ul { margin: 4px 0 0; padding-left: 18px; }

/* форма содержимого в светлой теме */
.block-editor { margin: 0 !important; }
.block-editor .ed-desc { display: none; }
.block-editor .ed-field > label { width: 200px !important; font-size: .9rem !important; }
.block-editor .ed-hint { font-size: .82rem !important; }
.block-editor .ed-list { border-left-color: var(--lime) !important; border-left-width: 4px !important; }
.block-editor .ed-item { background: var(--soft) !important; border-color: var(--line) !important; border-radius: var(--r-s) !important; }
.block-editor button { font-family: var(--font-text) !important; border-radius: 999px !important; padding: 5px 12px !important; }
.block-editor button.ed-add { background: var(--ink) !important; color: #fff !important; padding: 7px 16px !important; font-weight: 600; }
.block-editor .ed-roles { display: none; }
@media (max-width: 640px) { .block-editor .ed-field { flex-direction: column; gap: 4px; } .block-editor .ed-field > label { width: auto !important; padding-top: 0 !important; } }

/* ---------- тексты гостей ---------- */
.kgroup { display: flex; flex-direction: column; gap: 10px; }
.kgroup .q { color: var(--muted); font-size: .9rem; }
.ktable { width: 100%; border-collapse: collapse; }
.ktable td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.ktable td:first-child { font-weight: 700; width: 180px; }
.ktable img { max-width: 160px; max-height: 120px; border-radius: 8px; display: block; }
.stars { color: var(--sun); letter-spacing: 1px; }

/* ---------- запуск ---------- */
.links { display: flex; flex-direction: column; gap: 12px; }
.link-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.link-row b { font-size: .95rem; }
.link-row .u { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-row code { user-select: all; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .link-row { grid-template-columns: 1fr; gap: 6px; } }
.state { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.state .cell { background: var(--soft); border-radius: var(--r-s); padding: 12px 14px; }
.state .cell .k { font-size: .78rem; color: var(--muted); font-weight: 600; }
.state .cell .v { font-size: 1.15rem; font-weight: 700; margin-top: 2px; }
.players { display: flex; flex-wrap: wrap; gap: 6px; }
.danger-zone { border-color: #f5b6c7; }

/* ---------- импорт и справочник ---------- */
.report { display: flex; flex-direction: column; gap: 6px; }
.report .e { color: #a3274a; }
.report .w { color: #8a5a00; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 700; padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
pre.yaml { background: var(--ink); color: #e9e6de; border-radius: var(--r-s); padding: 14px 16px; overflow-x: auto; font-size: .82rem; line-height: 1.5; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { font-size: .85rem; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.toc a:hover { border-color: var(--ink); }

/* ---------- вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 380px; }
.login .logo { font-size: 1.3rem; color: var(--ink); }
.login input { max-width: none; }

/* меню «ещё» у блока и перерыв */
details.more > summary::-webkit-details-marker { display: none; }
details.more .pop { position: absolute; right: 0; top: 36px; z-index: 10; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: 0 8px 24px #0000001f; padding: 6px; min-width: 180px; display: flex; flex-direction: column; }
details.more .pop button { background: none; border: 0; text-align: left; padding: 8px 10px; border-radius: 6px; font: 500 .9rem var(--font-text); cursor: pointer; width: 100%; color: var(--ink); }
details.more .pop button:hover { background: var(--soft); }
details.more .pop button.red { color: var(--pink); }
.brk[data-empty] { display: none; }
.blk-wrap.show-brk .brk { display: flex; }
.brk[data-empty] select { background: #fff; border-color: var(--line-2); color: var(--muted); }
.brk select { width: auto; max-width: 220px; }
.brk-btn.on { color: #8a5a00; background: var(--sun-soft); }
.fs-row .del label { position: relative; }
.fs-row .del input { position: absolute; opacity: 0; width: 0; height: 0; }
.fs-row.deleted .del label { background: var(--pink); color: #fff; }
.ktable td.q { font-weight: 500 !important; color: var(--muted); background: var(--soft); font-size: .88rem; }
.blk.empty { border-color: #f5b6c7; }

@media (max-width: 480px) {
  .logo { display: none; }
  .top nav a.nav-users, .top .user span { display: none; }
  .top nav a { padding: 6px 10px; font-size: .88rem; }
  .stage-cap { flex-wrap: wrap; gap: 2px 10px; }
  .show-head .ava { width: 52px; height: 52px; }
}
.show-card.archived .ava { filter: grayscale(1); opacity: .7; }
details.more .pop a.pop-a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: .9rem; } details.more .pop a.pop-a:hover { background: var(--soft); }
