/* The admin, 1:1 with the boards «Админка платформы» (V-adm-*, canvas v62): a 248 dark sidebar, the column at 280
   (1128 wide on the 1440 board), 20 between blocks. Numbers are read off the boards' inline styles. The dark theme
   is V-dark-adm-*: the same layout on the evening colours. The phone (V-adm-m-today) keeps the queues only. */

:root {
  --orange: #f45d33; --orange-deep: #c93f18; --orange-soft: #fde6dc; --cream: #fffbf8; --paper: #f5efe9;
  --line: #e7e0d9; --rule: #808080; --ink: #2a2a28; --graphite: #4b4b48; --side: #221f1d; --side-ink: #f4ece4; --side-soft: #bdb3a9;
  --shade: rgba(29, 26, 24, .42); --bw: 1.5px;
  color-scheme: light;
}
/* «Вечер» (V-dark-adm-*): only when switched on with the lamp; the admin opens light (the boards' first theme) */
:root[data-theme="dark"] { --orange-deep: #ff8a60; --orange-soft: #3a241c; --cream: #1d1a18; --paper: #29241f; --line: #39322c; --rule: #7a736c;
  --ink: #f4ece4; --graphite: #bdb3a9; --side: #161412; --shade: rgba(0, 0, 0, .55); color-scheme: dark; }
.lamp { width: 40px; height: 40px; border-radius: 999px; border: var(--bw) solid var(--line); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.lamp:hover { border-color: var(--rule); }
.lamp .ico { width: 20px; height: 20px; }
.lamp .on { display: none; }
:root[data-theme="dark"] .lamp .on { display: inline-flex; }
:root[data-theme="dark"] .lamp .off { display: none; }

* { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/20px 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--cream); color: var(--ink); }
a { color: var(--orange-deep); }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.isvg { display: block; overflow: visible; flex-shrink: 0; max-width: none; }
.isvg [fill="#fffbf8"], .isvg[fill="#fffbf8"] { fill: var(--cream); }
.isvg [fill="#fde6dc"], .isvg[fill="#fde6dc"] { fill: var(--orange-soft); }
.col { display: flex; flex-direction: column; min-width: 0; }
.soft { color: var(--graphite); }
.r { text-align: right; }
.ico { display: inline-flex; width: 18px; height: 18px; }
.ico svg { width: 100%; height: 100%; }
code, kbd { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- sidebar */
.an { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; padding: 20px 16px; border-right: 1px solid rgba(255, 255, 255, .1); background: var(--side);
  display: flex; flex-direction: column; gap: 12px; z-index: 5; overflow-y: auto; scrollbar-width: none; }
.an-brand { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 0; text-decoration: none; }
.an-brand span { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--side-soft); }
.an-scope { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .06); text-decoration: none; }
.an-scope b { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--side-ink); }
.an-scope span span, .an-scope .col span { font-size: 12px; line-height: 18px; color: var(--side-soft); }
.an-group { display: flex; flex-direction: column; gap: 2px; }
.an-h { padding: 0 12px; font-size: 11px; line-height: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--side-soft); }
.an-link { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 10px; border-radius: 999px; text-decoration: none;
  font-size: 15px; line-height: 20px; color: var(--side-ink); }
.an-link span { white-space: nowrap; }
.an-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.an-link svg { width: 28px; height: 28px; stroke: #f45d33; }
.an-link.on { background: #f45d33; color: #fff; font-weight: 600; }
.an-link.on svg { stroke: #fff; }
.an-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f45d33; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; margin-left: auto; }
.an-link.on .an-badge { background: #fff; color: #c93f18; }
.an-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.an-me { display: flex; align-items: center; gap: 10px; padding: 8px 4px 0; }
.an-me .col { flex: 1; }
.an-me b { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--side-ink); }
.an-me .col span { font-size: 12px; line-height: 18px; color: var(--side-soft); }
.an-av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: #fde6dc; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #c93f18; }
.an-av.sm { width: 28px; height: 28px; font-size: 13px; margin-right: 10px; vertical-align: middle; }
.an-out { width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .06); color: var(--side-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.an-out:hover { color: #fff; }
.an-out .ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- the column */
.am-phone, .mt { display: none; }
.am { margin-left: 280px; padding: 24px 32px 32px 0; max-width: 1440px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.am-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.am-h1 { margin: 0; font: 400 36px/40px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); white-space: nowrap; }
.am-sub { font-size: 14px; line-height: 18px; color: var(--graphite); }
.am-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.am-find { height: 40px; width: 300px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-radius: 999px; border: var(--bw) solid var(--line); background: transparent; cursor: pointer; font: inherit; }
.am-find svg { width: 18px; height: 18px; stroke: var(--ink); }
.am-find .t { flex-grow: 1; text-align: left; font-size: 14px; color: var(--graphite); }
.am-find kbd { font: 600 12px/18px 'Nunito Sans', sans-serif; color: var(--graphite); padding: 2px 8px; border-radius: 8px; background: var(--paper); }
.am-find:hover { border-color: var(--rule); }
.am-bell { position: relative; width: 40px; height: 40px; border-radius: 999px; border: var(--bw) solid var(--line); display: flex; align-items: center; justify-content: center; }
.am-bell svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- buttons, pills, chips */
.ab { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: var(--bw) solid var(--rule); background: transparent;
  color: var(--ink); font: 600 15px/1 'Nunito Sans', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.ab:hover { color: var(--ink); border-color: var(--ink); }
.ab.fill { background: var(--orange); border-color: var(--orange); color: #fff; }
.ab.fill:hover { color: #fff; filter: brightness(.96); }
.ab.off { opacity: .45; cursor: not-allowed; }
.ab.dark { height: 36px; padding: 0 14px; font-size: 13px; border-color: rgba(255, 255, 255, .45); color: #fff; }
.ab.dark:hover { border-color: #fff; color: #fff; }
.scope { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: #221f1d; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.scope:hover { color: #fff; }
.scope svg { width: 20px; height: 20px; }
.scope svg:last-child { width: 14px; height: 14px; stroke: #fff; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.pill.soft { background: var(--orange-soft); color: var(--orange-deep); }
.pill.hot { background: var(--orange); color: #fff; }
.pill.line { border: var(--bw) solid var(--orange); color: var(--orange-deep); }
.pill.dash { border: var(--bw) dashed var(--rule); color: var(--graphite); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: var(--bw) solid var(--rule); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: var(--orange); }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.seg { display: inline-flex; align-self: flex-start; gap: 2px; padding: 4px; border-radius: 999px; background: var(--paper); }
.seg-i { padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--graphite); }
.seg-i.on { background: var(--ink); color: var(--cream); font-weight: 600; }

/* ---------------------------------------------------------------- KPI tiles, panels, empty states */
.kpis { display: flex; gap: 12px; }
.kpi { flex: 1; min-width: 0; padding: 16px 18px; border-radius: 20px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
.kpi.hot { background: var(--orange-soft); }
.kpi-n { font: 400 30px/34px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); white-space: nowrap; }
.kpi-l { font-size: 14px; line-height: 18px; font-weight: 600; }
.kpi-s { font-size: 12px; line-height: 18px; color: var(--graphite); }
.pn { padding: 16px; border-radius: 24px; border: var(--bw) solid var(--line); background: var(--cream); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pn.ok { border-color: var(--orange); }
.pn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pn-t { font-size: 17px; line-height: 24px; font-weight: 600; }
.pn-a { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--orange-deep); text-decoration: none; white-space: nowrap; }
.empty { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; border: var(--bw) dashed var(--line); }
.empty b { font-size: 15px; line-height: 20px; font-weight: 600; }
.empty span { font-size: 13px; line-height: 18px; color: var(--graphite); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.err { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--orange-soft); color: var(--orange-deep); font-weight: 600; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl > span { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--graphite); }
.fl input, .fl select, .fl textarea { font: 400 15px/20px 'Nunito Sans', sans-serif; color: var(--ink); background: var(--cream); border: var(--bw) solid var(--rule); border-radius: 999px; height: 44px; padding: 0 16px; }
.fl textarea { height: auto; border-radius: 16px; padding: 12px 16px; resize: vertical; }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: none; border-color: var(--orange); }
.fl input:disabled { opacity: .7; }

/* ---------------------------------------------------------------- Обзор: queues, calendar */
.ov { display: flex; align-items: flex-start; gap: 16px; }
.ov-queues { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 12px; }
.qcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 22px; background: var(--paper); }
.qh { display: flex; align-items: center; gap: 8px; }
.qh svg { width: 24px; height: 24px; }
.qt { flex-grow: 1; font-size: 14px; line-height: 18px; font-weight: 600; }
.qi { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--cream); border: var(--bw) solid var(--line); text-decoration: none; }
.qi b { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ink); }
.qi span { font-size: 12px; line-height: 18px; color: var(--graphite); }
.qi:hover { border-color: var(--orange); }
.qi-empty { margin: 0; padding: 12px; border-radius: 16px; border: var(--bw) dashed var(--line); font-size: 12px; line-height: 18px; color: var(--graphite); }
.qa { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--orange-deep); text-decoration: none; padding: 2px 4px; }
.ov-side { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cd { position: relative; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 18px; }
.cd.today { background: var(--orange-soft); font-weight: 700; }
.cal-legend { display: flex; align-items: center; gap: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 18px; color: var(--graphite); }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot.o { background: #f45d33; } .dot.k { background: var(--ink); } .dot.g { background: #808080; }

/* ---------------------------------------------------------------- tables */
.vbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.vsearch input { height: 32px; width: 240px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--rule); background: var(--cream); color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; }
.vsearch input:focus { outline: none; border-color: var(--orange); }
.tb-wrap { position: relative; padding: 0 12px 8px; border-radius: 24px; border: var(--bw) solid var(--line); overflow-x: auto; }
.tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 20px; }
.tb th { text-align: left; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--graphite); padding: 20px 10px 14px; white-space: nowrap; }
.tb td { padding: 18px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tb tr:has(input:checked) td { background: var(--orange-soft); }
.tb tr:has(input:checked) td:first-child { border-radius: 12px 0 0 12px; }
.tb tr:has(input:checked) td:last-child { border-radius: 0 12px 12px 0; }
.tb .ck { width: 40px; padding-left: 10px; padding-right: 0; }
.tb .ck input { width: 20px; height: 20px; accent-color: #f45d33; margin: 0; }
.tb .nm { font-weight: 600; }
.tb .nm a { color: var(--ink); text-decoration: none; }
.tb .nm a:hover { color: var(--orange-deep); }
.tb .nm .soft { display: block; font-size: 12px; line-height: 16px; font-weight: 400; }
.tb .tags { display: flex; gap: 6px; flex-wrap: wrap; border-top: 0; }
.tb td.tags { display: table-cell; }
.tb td.tags .pill { margin: 2px 4px 2px 0; }
.tb.flat th { padding: 6px 10px 10px; }
.tb.flat td { padding: 14px 10px; }
.bulk { position: sticky; bottom: 16px; margin: 12px -12px -8px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 18px; border-radius: 999px; background: #2a2a28; color: #fff; z-index: 3; }
.bulk-n { flex: 1; font-size: 15px; font-weight: 600; }
.bulk-tag { height: 36px; width: 140px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font: 400 13px/1 'Nunito Sans', sans-serif; }
.bulk-tag::placeholder { color: rgba(255, 255, 255, .6); }
.pager { display: flex; align-items: center; gap: 12px; font-size: 14px; }

/* ---------------------------------------------------------------- the place card */
.vh { display: flex; align-items: center; gap: 14px; }
.vh-av { width: 64px; height: 64px; border-radius: 16px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vh-av svg { width: 44px; height: 44px; }
.vh-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vh-name { margin: 0; font: 400 36px/40px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.vh-meta { font-size: 14px; line-height: 20px; color: var(--graphite); }
.vh-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.vh-btns form { display: contents; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px 12px; font-size: 15px; color: var(--graphite); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 600; border-bottom-color: #f45d33; }
.ev { list-style: none; margin: 0; padding: 0; }
.ev li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.ev li:first-child { border-top: 0; }
.ev-w { width: 110px; flex-shrink: 0; font-size: 13px; color: var(--graphite); }
.ev.log b { width: 110px; flex-shrink: 0; font-weight: 600; }
.prm { list-style: none; margin: 0; padding: 0; }
.prm li { border-top: 1px solid var(--line); }
.prm li:first-child { border-top: 0; }
.prm a, .prm div { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 0; text-decoration: none; color: var(--ink); }
.prm b { font-size: 15px; line-height: 20px; font-weight: 600; }
.prm span { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--graphite); }
.prm svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 16px; height: 16px; stroke: var(--ink); }
.prm a:hover b { color: var(--orange-deep); }
.note { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.note .fl { align-self: stretch; }
.dl { display: grid; grid-template-columns: 200px 1fr; gap: 12px 16px; margin: 0; font-size: 14px; line-height: 20px; }
.dl dt { color: var(--graphite); }
.dl dd { margin: 0; word-break: break-word; }

/* ---------------------------------------------------------------- Подключение: the kanban */
.kan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.kcol { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 22px; background: var(--paper); min-height: 520px; }
.kh { display: flex; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--graphite); padding: 4px 4px 2px; }
.kh b { color: var(--orange-deep); }
.kc { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--cream); border: var(--bw) solid var(--line); }
.kc-t { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.kc-s { font-size: 12px; line-height: 16px; color: var(--graphite); }
.kc-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.kc-mv { display: flex; gap: 6px; margin-left: auto; }
.kc-mv form { display: contents; }
.kc-mv button { width: 32px; height: 28px; border-radius: 999px; border: var(--bw) solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; font: 600 14px/1 'Nunito Sans', sans-serif; }
.kc-mv button:hover { border-color: var(--orange); color: var(--orange-deep); }
.lead-add { max-width: 900px; }

/* ---------------------------------------------------------------- Контент: the week */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wd { display: flex; flex-direction: column; gap: 8px; min-height: 220px; padding: 10px; border-radius: 16px; background: var(--paper); }
.wd.today { box-shadow: inset 0 0 0 var(--bw) var(--orange); }
.wd-l { font-size: 13px; line-height: 18px; color: var(--graphite); }
.wd-i { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--cream); border: var(--bw) solid var(--line); text-decoration: none; }
.wd-i b { font-size: 13px; line-height: 17px; font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- Все данные */
.dt { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.dt-ents { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 24px; border: var(--bw) solid var(--line); }
.dt-e { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.dt-e svg { width: 24px; height: 24px; }
.dt-e b { font-size: 14px; line-height: 18px; font-weight: 600; }
.dt-e .col span { font-size: 12px; line-height: 16px; color: var(--graphite); }
.dt-e:hover { background: var(--paper); color: var(--ink); }
.dt-e.on { background: var(--orange-soft); }
.dt-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dt-btns .ab { height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------------------------------------------------------------- Интеграции */
.ints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.int { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; border: var(--bw) solid var(--line); }
.int-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.int-h b { font-size: 17px; line-height: 24px; font-weight: 600; }
.int .soft { font-size: 13px; line-height: 18px; }
.rel { margin: 0; font-size: 13px; color: var(--graphite); }
.rel code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--paper); color: var(--ink); }

/* ---------------------------------------------------------------- Настройки, Команда */
.st { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-menu { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 24px; border: var(--bw) solid var(--line); }
.st-m { padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 18px; color: var(--ink); text-decoration: none; }
.st-m:hover { background: var(--paper); color: var(--ink); }
.st-m.on { background: var(--orange-soft); font-weight: 600; }
.inv { display: block; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 13px; word-break: break-all; user-select: all; }

/* ---------------------------------------------------------------- bars */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 140px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; color: var(--graphite); }
.bar-v { display: block; width: 100%; max-width: 36px; height: 6px; border-radius: 8px; background: var(--orange-soft); }
.hb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hb li { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; }
.hb b { text-align: right; font-weight: 600; }
.hb-bar { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #f45d33 var(--w, 0%), var(--paper) var(--w, 0%)); }
.w0 { --w: 0% } .w5 { --w: 5% } .w10 { --w: 10% } .w15 { --w: 15% } .w20 { --w: 20% } .w25 { --w: 25% } .w30 { --w: 30% } .w35 { --w: 35% } .w40 { --w: 40% } .w45 { --w: 45% }
.w50 { --w: 50% } .w55 { --w: 55% } .w60 { --w: 60% } .w65 { --w: 65% } .w70 { --w: 70% } .w75 { --w: 75% } .w80 { --w: 80% } .w85 { --w: 85% } .w90 { --w: 90% } .w95 { --w: 95% } .w100 { --w: 100% }

/* ---------------------------------------------------------------- the palette (V-adm-palette) */
.pal { position: fixed; inset: 0; z-index: 20; background: var(--shade); display: flex; justify-content: center; align-items: flex-start; padding-top: 84px; }
.pal-box { width: 640px; max-width: calc(100vw - 32px); padding: 12px; border-radius: 28px; background: var(--cream); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 8px; }
.pal-in { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; border: var(--bw) solid var(--orange); }
.pal-in svg { width: 20px; height: 20px; stroke: var(--ink); }
.pal-in input { flex: 1; border: 0; background: transparent; outline: none; font: 400 17px/24px 'Nunito Sans', sans-serif; color: var(--ink); }
.pal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.pal-list a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.pal-list a.sel { background: var(--orange-soft); }
.pal-list img { width: 26px; height: 26px; flex-shrink: 0; }
.pal-list b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.pal-list span { display: block; font-size: 12px; line-height: 16px; color: var(--graphite); }
.pal-hint { margin: 0; padding: 4px 14px 2px; font-size: 12px; color: var(--graphite); }

/* ---------------------------------------------------------------- sign-in (V-own-pc-login, for the team) */
.adm-auth { min-height: 100vh; position: relative; overflow-x: hidden; }
.au-line { position: absolute; left: 87.65%; top: 148px; pointer-events: none; }
.au-dish { position: absolute; left: 89.58%; top: 730px; pointer-events: none; }
.au-side { position: fixed; left: 0; top: 0; bottom: 0; width: 600px; background: var(--orange-soft); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 120px 72px 72px; }
.au-logo { position: absolute; left: 48px; top: 40px; display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--graphite); }
.au-logo svg { width: 149px; height: 31px; color: var(--orange); }
.au-art { display: flex; align-items: flex-end; gap: 8px; }
.au-big { margin: 0; font: 400 40px/44px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.au-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.au-ticks li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 24px; }
.au-main { margin-left: 600px; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.au-col { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.au-icons { position: relative; height: 112px; width: 220px; }
.au-icons span { position: absolute; }
.au-icons .i1 { left: 0; top: 4px; } .au-icons .i2 { left: 108px; top: 40px; } .au-icons .i3 { left: 176px; top: 6px; }
.au-head { display: flex; flex-direction: column; gap: 8px; }
.au-h1 { margin: 0; font: 400 40px/44px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.au-sub { margin: 0; font-size: 17px; line-height: 24px; color: var(--graphite); }
.au-form { display: flex; flex-direction: column; gap: 20px; }
.au-form .fl input { height: 56px; padding: 0 20px; font-size: 17px; }
.au-err { margin: 0; padding: 12px 18px; border-radius: 16px; background: var(--orange-soft); color: var(--orange-deep); font-weight: 600; }
.au-go { height: 56px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0 28px; border-radius: 999px; border: var(--bw) solid #f45d33; background: #f45d33;
  color: #fff; font: 600 19px/1 'Nunito Sans', sans-serif; cursor: pointer; text-decoration: none; }
.au-go:hover { color: #fff; filter: brightness(.96); }
.au-go svg { width: 22px; height: 22px; stroke: #fff; }
.au-note { margin: 0; font-size: 15px; line-height: 20px; color: var(--graphite); }
.au-qr { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 20px; background: var(--paper); }
.au-qr img { width: 164px; height: 164px; border-radius: 12px; background: #fff; image-rendering: pixelated; flex-shrink: 0; }
.au-lbl { font-size: 13px; font-weight: 600; color: var(--graphite); }
.au-key { font-size: 15px; line-height: 22px; word-break: break-all; user-select: all; }
.gone { padding: 64px; display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1280px) {
  .ov { flex-direction: column; }
  .ov-side { width: 100%; flex-direction: row; }
  .ov-side .pn { flex: 1; }
  .two { grid-template-columns: 1fr; }
  .kpis { flex-wrap: wrap; }
  .kpi { flex: 1 1 180px; }
}
@media (max-width: 1100px) {
  .ov-queues { flex-wrap: wrap; }
  .qcol { flex: 1 1 200px; }
  .three, .ints { grid-template-columns: 1fr 1fr; }
  .am-find { width: 220px; }
  .au-side { width: 42%; }
  .au-main { margin-left: 42%; }
}

/* ---------------------------------------------------------------- the phone: queues only (V-adm-m-today) */
@media (max-width: 833px) {
  .an { display: none; }
  .am-phone { display: flex; align-items: center; gap: 10px; padding: 16px 24px 0; font-size: 17px; line-height: 24px; font-weight: 600; }
  .am-phone .lamp { margin-left: auto; width: 56px; }
  .am-actions .lamp { display: none; }
  .am-mark svg { width: 32px; height: 32px; }
  .am { margin: 0; padding: 12px 24px 48px; gap: 16px; }
  .am-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .am-h1 { font-size: 32px; line-height: 36px; white-space: normal; }
  .am-actions { width: 100%; flex-wrap: wrap; }
  .am-find { width: 100%; }
  .p-overview .am-top, .p-overview .kpis, .p-overview .ov { display: none; }
  .mt { display: flex; flex-direction: column; gap: 12px; }
  .mt-h1 { margin: 0; font: 400 40px/44px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
  .mt-sub { margin: 0 0 8px; font-size: 15px; line-height: 20px; color: var(--graphite); }
  .mt-q { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 22px; background: var(--paper); text-decoration: none; color: var(--ink); }
  .mt-q svg { width: 30px; height: 30px; }
  .mt-q .col { flex: 1; }
  .mt-q b { font-size: 19px; line-height: 24px; font-weight: 600; }
  .mt-q .col span { font-size: 15px; line-height: 20px; color: var(--graphite); }
  .kan, .week, .dt, .st, .three, .ints { grid-template-columns: 1fr; }
  .kcol { min-height: 0; }
  .ov-side { flex-direction: column; }
  .au-side { display: none; }
  .au-main { margin: 0; }
  .au-line, .au-dish { display: none; }
  .dl { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- editing a place: «Страница и сайт», «Меню», «Брони» (V-crm-page, V-crm-menu, V-crm-bookings) */
.okmsg { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--paper); font-weight: 600; }
.pubbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 16px; background: #2a2a28; color: #fff; text-decoration: none; }
.pubbar:hover { color: #fff; }
.pubbar span { font-size: 14px; color: #fde6dc; }
.ab.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.ab.line { border-color: #f45d33; color: var(--orange-deep); }
.ab.x { width: 40px; padding: 0; }
.pill.ink { background: var(--ink); color: var(--cream); }
.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--graphite); white-space: nowrap; }
.ck input { width: 18px; height: 18px; accent-color: #f45d33; margin: 0; }
.ck.big { font-size: 14px; color: var(--ink); white-space: normal; }
.pe { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.pe-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pe-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.pe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pe-grid .w2 { grid-column: span 2; }
.pe-grid .w4 { grid-column: 1 / -1; }
.pe-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-size: 14px; font-weight: 600; padding: 4px 12px 4px 0; }
.hours td { padding: 4px 6px 4px 0; }
.hours input:not([type=checkbox]) { width: 76px; height: 36px; padding: 0 10px; border-radius: 999px; border: var(--bw) solid var(--rule); background: var(--cream); color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; }
.hours input:focus { outline: none; border-color: var(--orange); }
.save { width: 100%; height: 48px; font-size: 17px; }
.aud { display: flex; align-items: center; gap: 12px; }
.aud .kpi-n { font-size: 48px; line-height: 52px; }
.aud-fix { margin: 0; font-size: 13px; line-height: 18px; color: var(--orange-deep); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ph { position: relative; margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 18px; border: var(--bw) solid var(--line); }
.ph img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; background: var(--paper); }
.ph-cover { position: absolute; left: 16px; top: 16px; padding: 2px 8px; border-radius: 999px; background: #f45d33; color: #fff; font-size: 11px; font-weight: 700; }
.ph-f { display: flex; flex-direction: column; gap: 6px; }
.ph-f input, .ph-f select { height: 32px; padding: 0 10px; border-radius: 999px; border: var(--bw) solid var(--line); background: var(--cream); color: var(--ink); font: 400 13px/1 'Nunito Sans', sans-serif; }
.ph-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.ph-btns button { height: 28px; padding: 0 10px; border-radius: 999px; border: var(--bw) solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; font: 600 12px/1 'Nunito Sans', sans-serif; }
.ph-btns button:hover { border-color: var(--orange); }
.up { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 14px; border-radius: 18px; background: var(--paper); }
.up .w2 { grid-column: span 2; }
.up input[type=file] { height: auto; padding: 10px 14px; border-radius: 16px; }
.me { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.me-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.me-list a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.me-list a.on { background: var(--orange-soft); font-weight: 600; }
.me-list a:hover { background: var(--paper); }
.me-list b { font-weight: 400; color: var(--graphite); }
.me-add, .me-rename { display: flex; gap: 8px; flex-wrap: wrap; }
.me-add input, .me-rename input { flex: 1; min-width: 120px; height: 40px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--rule); background: var(--cream); color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; }
.me-t tr.on td { background: var(--orange-soft); }
.me-t tr.off .nm a { color: var(--grey); }
.me-t .nm .pill { margin-left: 6px; }
.me-ph { width: 56px; }
.me-t td { white-space: nowrap; }
.me-t td.nm { white-space: normal; }
.me-ph img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; }
.tog { width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--line); position: relative; cursor: pointer; padding: 0; }
.tog i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: left .15s; }
.tog.on { background: #f45d33; }
.tog.on i { left: 21px; }
.me-dish { position: sticky; top: 16px; }
.me-dt { font: 400 24px/28px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.me-f { display: flex; flex-direction: column; gap: 12px; }
.me-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bk { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.bk-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bk-nav { display: flex; align-items: center; gap: 10px; }
.bk-nav b { font-size: 17px; }
.bk-nav .ab { min-width: 40px; }
.bk-nav .fill { margin-left: auto; }
.bk-time { font-size: 22px; font-weight: 600; white-space: nowrap; }
.bk-t tr.on td { background: var(--orange-soft); }
.bk-q { display: inline-flex; gap: 6px; }
.bk-side { position: sticky; top: 16px; }
.bk-h { font: 400 26px/30px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.bk-f { display: flex; flex-direction: column; gap: 12px; }
.bk-f .row { grid-template-columns: 1fr 1fr; }
.rv { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.rv:first-child { border-top: 0; }
.rv-h { display: flex; gap: 10px; align-items: baseline; }
.rv-st { color: #f45d33; }
.rv p { margin: 0; }
.rv-f { display: flex; flex-direction: column; gap: 8px; }
.rv-btns { display: flex; gap: 8px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.steps b { font-size: 15px; }
.steps span { font-size: 13px; color: var(--graphite); }
@media (max-width: 1280px) {
  .pe, .me, .bk { grid-template-columns: 1fr; }
  .pe-side, .me-dish, .bk-side { position: static; }
  .pe-two { grid-template-columns: 1fr; }
}
@media (max-width: 833px) {
  .pe-grid, .up { grid-template-columns: 1fr 1fr; }
}
.pe-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pe-ph img, .pe-ph-empty { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; background: var(--paper); display: block; }
.pe-ph-empty:hover { box-shadow: inset 0 0 0 var(--bw) var(--orange); }
.me-phs { display: flex; gap: 10px; align-items: center; }
.me-phs img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.me-up { width: 96px; height: 96px; border-radius: 16px; background: var(--paper); display: flex; align-items: flex-end; padding: 10px; font-size: 12px; font-weight: 600; color: var(--graphite); cursor: pointer; position: relative; }
.me-up:hover { box-shadow: inset 0 0 0 var(--bw) var(--orange); }
.me-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kbju { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kbju legend, .tagchips legend { padding: 0 0 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--graphite); }
.kbju label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--graphite); }
.kbju input { width: 100%; height: 48px; border-radius: 999px; border: var(--bw) solid var(--rule); background: var(--cream); color: var(--ink); text-align: center; font: 400 15px/1 'Nunito Sans', sans-serif; }
.kbju input:focus { outline: none; border-color: var(--orange); }
.tagchips { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tchip input { position: absolute; opacity: 0; pointer-events: none; }
.tchip span { display: inline-flex; height: 32px; align-items: center; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--rule); font-size: 13px; cursor: pointer; }
.tchip input:checked + span { background: #f45d33; border-color: #f45d33; color: #fff; font-weight: 600; }
.tchip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.tother { flex: 1; min-width: 120px; height: 32px; padding: 0 12px; border-radius: 999px; border: var(--bw) solid var(--line); background: var(--cream); color: var(--ink); font: 400 13px/1 'Nunito Sans', sans-serif; }
.today { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today b { font-size: 15px; }
.today .soft { font-size: 12px; line-height: 16px; }
.sw { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex-shrink: 0; margin: 0; transition: background .15s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: left .15s; }
.sw:checked { background: #f45d33; }
.sw:checked::after { left: 21px; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.an-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl2 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl2 li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rv2 { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.rv2-side { display: flex; flex-direction: column; gap: 10px; }
.rq { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.rq:hover { background: var(--paper); }
.rq-h { display: flex; gap: 8px; align-items: center; }
.rq-st { color: var(--orange-deep); font-size: 13px; }
.me-ph0 { display: block; width: 44px; height: 44px; border-radius: 10px; background: var(--paper); }
.me-nm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.me-t .nm .soft { display: block; font-size: 12px; line-height: 16px; font-weight: 400; margin-top: 2px; }
.me-pw { display: flex; gap: 10px; }
.me-pw .fl { width: 120px; }
.kbju { grid-template-columns: repeat(4, 56px); justify-content: start; }
.kbju input { width: 56px; height: 56px; padding: 0; }
@media (max-width: 1280px) { .four { grid-template-columns: 1fr 1fr; } .rv2 { grid-template-columns: 1fr; } }
.bc { display: flex; flex-direction: column; gap: 10px; }
.bc-st { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-g { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: var(--bw) solid var(--line); }
.bc-g a { font-size: 13px; }
.bc-note { margin: 0; font-size: 14px; line-height: 20px; }
.bc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-btns .ab { width: 100%; }
.bk-edit { border-top: 1px solid var(--line); padding-top: 12px; }
.bk-edit summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--orange-deep); margin-bottom: 12px; }
.bk-time a { color: var(--ink); text-decoration: none; }
input[type=file] { font: 400 14px/20px 'Nunito Sans', sans-serif; color: var(--graphite); }
input[type=file]::file-selector-button { height: 36px; margin-right: 12px; padding: 0 16px; border-radius: 999px; border: var(--bw) solid var(--rule); background: var(--cream); color: var(--ink); font: 600 14px/1 'Nunito Sans', sans-serif; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--orange); }
.up .fl input[type=file] { height: auto; padding: 8px 10px; border-radius: 16px; background: var(--cream); }

/* ---------------------------------------------------------------- «Где вас видно»: rows with the status on the right, even gaps */
.seen { list-style: none; margin: 0; padding: 0; }
.seen li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.seen li:first-child { border-top: 0; padding-top: 0; }
.seen .col { gap: 2px; }
.seen b { font-size: 15px; line-height: 20px; }
.seen .col span, .seen a { font-size: 13px; line-height: 18px; color: var(--graphite); word-break: break-all; }
.seen a:hover { color: var(--orange-deep); }
.vis { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vis .ck.big { align-items: flex-start; line-height: 20px; }
.vis .ck.big input { margin-top: 1px; }
.vis-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--graphite); }

/* ---------------------------------------------------------------- the journal list (V-ed-list) and «Новая статья» (V-ed-new) */
.pl { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pl-side { display: flex; flex-direction: column; gap: 16px; }
.pl-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.pl-tabs a { padding: 8px 12px 10px; font-size: 14px; color: var(--graphite); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pl-tabs a.on { color: var(--ink); font-weight: 600; border-color: #f45d33; }
.pl-soon { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pl-soon .soft { font-size: 12px; color: var(--orange-deep); }
.pl-soon b { font-size: 14px; }
.ideas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ideas a { display: flex; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink); text-decoration: none; }
.ideas a::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: var(--bw) solid var(--rule); flex-shrink: 0; margin-top: 1px; }
.ideas a:hover { color: var(--orange-deep); }
.modal-bg { position: fixed; inset: 0; z-index: 30; background: var(--shade); display: flex; align-items: flex-start; justify-content: center; padding: 72px 16px; overflow-y: auto; }
.modal { width: 880px; max-width: 100%; border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); padding: 20px 20px 18px; }
.modal.wide { width: 980px; }
.modal-h { margin: 0; font: 400 32px/36px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.modal-foot { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-foot .grow, .grow { flex: 1; min-width: 200px; }
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-i input { position: absolute; opacity: 0; }
.tpl-card { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 14px; border-radius: 18px; border: var(--bw) solid var(--line); cursor: pointer; }
.tpl-card b { font-size: 16px; }
.tpl-card .soft { font-size: 12px; line-height: 16px; }
.tpl-i input:checked + .tpl-card { border-color: #f45d33; background: var(--orange-soft); }
.tpl-i input:focus-visible + .tpl-card { outline: 3px solid var(--orange); }
.tpl-inside { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--paper); }
.tpl-inside .soft { font-size: 12px; line-height: 16px; }
.tpl-sketch { display: flex; flex-direction: column; gap: 8px; }
.tpl-sketch i { display: block; height: 8px; border-radius: 99px; background: #f45d33; opacity: .8; }
.tpl-sketch i.w2 { width: 70%; background: var(--rule); opacity: .5; }
.tpl-sketch i.w3 { width: 50%; }
.tpl-sketch i.box { height: 34px; border-radius: 10px; background: var(--cream); opacity: 1; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- the editor (V-ed-write): rail 80, top bar, outline, the 720 column */
.ed-body { background: var(--cream); }
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: 80px; background: var(--side); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; z-index: 6; overflow-y: auto; scrollbar-width: none; }
.rail-mark svg { width: 36px; height: 36px; margin-bottom: 12px; }
.rail-i { width: 44px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.rail-i svg { width: 26px; height: 26px; stroke: #f45d33; }
.rail-i:hover { background: rgba(255, 255, 255, .06); }
.rail-i.on { background: #f45d33; }
.rail-i.on svg { stroke: #fff; }
.ed-top { position: sticky; top: 0; z-index: 5; margin-left: 0; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px 0 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
.ed-crumbs { font-size: 14px; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.ed-crumbs a { color: var(--graphite); text-decoration: none; }
.ed-crumbs b { color: var(--ink); font-weight: 600; }
.ed-saved { font-size: 13px; color: var(--graphite); white-space: nowrap; }
.ed-saved.bad { color: var(--orange-deep); font-weight: 600; }
.ed-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ed-ic { width: 40px; height: 40px; border-radius: 999px; border: var(--bw) solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.ed-ic.on { border-color: #f45d33; color: var(--orange-deep); }
.ed-ic .ico { width: 20px; height: 20px; }
.ed { margin-left: 0; display: grid; grid-template-columns: 264px minmax(0, 1fr) 284px; gap: 24px; padding: 20px 20px 120px; align-items: start; }
.ed-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.ed-pal .soft { font-size: 12px; line-height: 16px; margin: 0; }
.bpal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bpal-i { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 14px; min-width: 0; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: grab; font: 400 12px/16px 'Nunito Sans', sans-serif; text-align: center; }
.bpal-i:hover, .bpal-i:focus-visible { border-color: #f45d33; }
.bpal-i svg { width: 24px; height: 24px; color: #f45d33; overflow: visible; }
.bpal-i:active { cursor: grabbing; }
.ed-outline { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.ed-outline a.row { font-size: 12px; color: var(--graphite); }
.ed-main { display: flex; flex-direction: column; gap: 16px; }
.ed-dev { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-dev .seg { align-self: center; }
.ed-dev > .soft { font-size: 13px; }
.ed-undo { margin-left: auto; display: flex; gap: 6px; }
.ed-undo .ab:disabled { opacity: .45; cursor: default; }
.ed-doc { width: 100%; max-width: 720px; margin: 0 auto; }
.ed-doc.phone { max-width: 390px; padding: 18px 16px 40px; border-radius: 36px; box-shadow: 0 0 0 10px #2a2a28; }
.ed-doc.phone .ed-title { font-size: 30px; line-height: 34px; }
.ed-doc.phone .ed-lead { font-size: 17px; line-height: 24px; }
.ed-doc.phone .ed-p { font-size: 17px; line-height: 26px; }
.ed-doc.phone .ed-h2 { font-size: 24px; line-height: 28px; }
.ed-doc.phone .ed-cols:not(.flat) { grid-template-columns: minmax(0, 1fr); }
.ed-doc.phone .blk.hide-m, .ed-doc:not(.phone) .blk.hide-d { opacity: .38; }
.ed-doc.phone .pb.w-75, .ed-doc.phone .pb.w-50 { width: 100%; }
.ed-doc.phone .deco.d-ml, .ed-doc.phone .deco.d-mr { display: none; }
.ed-outline a { padding: 7px 10px; border-radius: 12px; font-size: 14px; line-height: 18px; color: var(--ink); text-decoration: none; }
.ed-outline a:hover { background: var(--paper); }
.ed-outline a.sub { padding-left: 20px; color: var(--graphite); }
.ed-count { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--paper); font-size: 13px; }
.ed-count span { font-size: 12px; color: var(--graphite); }
.ed-main { min-width: 0; }
.ed-doc { display: flex; flex-direction: column; gap: 14px; }
.ed-cover { position: relative; width: 100%; aspect-ratio: 1 / .573; border-radius: 28px; border: 2px dashed var(--line); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; color: var(--ink); margin: 0; overflow: hidden; }
.ed-cover:hover { border-color: var(--orange); }
.ed-cover.has { border: 0; cursor: default; background: var(--paper); }
.ed-cover img { width: 100%; height: 100%; object-fit: cover; }
.ed-cover figcaption { position: absolute; left: 14px; bottom: 12px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--cream) 86%, transparent); font-size: 12px; font-weight: 600; color: var(--graphite); }
.ed-cover-btns { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 6px; }
.ed-cover-btns .ab { background: var(--cream); }
.ed-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
[contenteditable] { outline: none; }
[contenteditable]:empty::before { content: attr(data-ph); color: var(--rule); pointer-events: none; }
.ed-title { margin: 0; font: 400 52px/56px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.ed-lead { margin: 0; font-size: 22px; line-height: 32px; color: var(--ink); }
.ed-blocks { display: flex; flex-direction: column; gap: 6px; }
.blk { position: relative; padding: 6px 10px; margin: 0 -10px; border-radius: 14px; border: 1.5px solid transparent; }
.blk.sel { border-color: #f45d33; }
.ed-corners i { position: absolute; width: 9px; height: 9px; border: 1.5px solid #f45d33; background: var(--cream); border-radius: 2px; pointer-events: none; }
.ed-corners i:nth-child(1) { left: -6px; top: -6px; } .ed-corners i:nth-child(2) { right: -6px; top: -6px; }
.ed-corners i:nth-child(3) { left: -6px; bottom: -6px; } .ed-corners i:nth-child(4) { right: -6px; bottom: -6px; }
.blk:hover, .blk:focus-within { border-color: var(--line); }
.blk:focus-within { border-color: var(--rule); }
.blk::after { content: attr(data-kind); position: absolute; right: 10px; top: -9px; padding: 0 6px; background: var(--cream); font-size: 11px; color: var(--graphite); opacity: 0; }
.blk:focus-within::after, .blk:hover::after { opacity: 1; }
.ed-tools { position: absolute; left: -44px; top: 6px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .1s; }
.blk:hover .ed-tools, .blk:focus-within .ed-tools { opacity: 1; }
.ed-tools button { width: 28px; height: 24px; border-radius: 8px; border: 1px solid var(--line); background: var(--cream); color: var(--graphite); cursor: pointer; font: 600 12px/1 'Nunito Sans', sans-serif; padding: 0; }
.ed-tools button:hover { color: var(--orange-deep); border-color: var(--orange); }
.ed-h2 { margin: 18px 0 0; font: 400 30px/34px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--ink); }
.ed-p { margin: 0; font-size: 18px; line-height: 28px; }
.ed-p a, .ed-lead a { color: var(--orange-deep); }
.ed-quote { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 3px solid #f45d33; }
.ed-qt { margin: 0; font-size: 22px; line-height: 30px; color: var(--orange-deep); }
.ed-who, .pd-q { height: 36px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--line); background: var(--cream); color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; }
.ed-note { margin: 0; font: 400 30px/1.1 'Marck Script', 'Caveat', cursive; color: var(--orange); }
.ed-divider span { display: block; height: 2px; background: repeating-linear-gradient(90deg, #f45d33 0 10px, transparent 10px 18px); margin: 16px 0; border-radius: 2px; }
.ed-map, .ed-empty-blk { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 20px; background: var(--paper); }
.ed-pl { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ed-place, .ed-dish { display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px; border-radius: 20px; border: var(--bw) solid var(--line); }
.ed-place .col, .ed-dish .col { flex: 1; gap: 2px; }
.ed-place .col .soft, .ed-dish .col .soft { font-size: 13px; }
.ed-ph { width: 96px; height: 72px; border-radius: 14px; background: var(--paper); flex-shrink: 0; overflow: hidden; }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-place.v-row .ed-ph { width: 44px; height: 44px; }
.ed-place.v-strip { flex-direction: column; align-items: flex-start; }
.ed-place.v-strip .ed-ph { width: 100%; height: 120px; }
.ed-book { align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: #f45d33; color: #fff; font-size: 13px; font-weight: 600; }
.ed-book.off { background: var(--paper); color: var(--graphite); }
.ed-pl-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.ed-photos.n0, .k-photo .ed-photos { grid-template-columns: 1fr; }
.ed-photos figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; }
.k-photo .ed-photos figure { aspect-ratio: auto; }
.ed-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-photos figcaption { position: absolute; left: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--cream) 86%, transparent); font-size: 11px; font-weight: 600; color: var(--graphite); }
.ed-photos figcaption.bad { color: #fff; background: #f45d33; }
.ed-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: var(--cream); color: var(--ink); cursor: pointer; }
.ed-add-ph { min-height: 120px; border-radius: 16px; border: 2px dashed var(--line); background: transparent; color: var(--graphite); cursor: pointer; font: 600 14px/1 'Nunito Sans', sans-serif; }
.ed-add-ph:hover { border-color: var(--orange); color: var(--orange-deep); }
.ed-start { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ed-hint { position: absolute; right: 0; top: -40px; margin: 0; font: 400 26px/1 'Marck Script', 'Caveat', cursive; color: var(--orange); transform: rotate(-5deg); }
.ed-first { text-align: left; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed var(--line); background: transparent; color: var(--rule); font: 400 17px/24px 'Nunito Sans', sans-serif; cursor: text; }
.ed-more { align-self: flex-start; margin-top: 8px; padding: 8px 14px; border-radius: 999px; border: var(--bw) dashed var(--rule); background: transparent; color: var(--graphite); cursor: pointer; font: 600 14px/1 'Nunito Sans', sans-serif; }
.ed-panel { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 108px); overflow-y: auto; }
.cnt { font-weight: 400; color: var(--graphite); margin-left: 6px; }
.slug { display: flex; align-items: center; gap: 4px; }
.slug .soft { font-size: 12px; white-space: nowrap; }
.slug input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 999px; border: var(--bw) solid var(--rule); background: var(--cream); color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; }
.snippet { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--paper); font-size: 13px; line-height: 18px; }
.snippet b { color: var(--orange-deep); font-size: 15px; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hist li { display: flex; gap: 10px; padding: 10px; border-radius: 14px; }
.hist li:hover { background: var(--paper); }
.hist .col { gap: 4px; align-items: flex-start; }
.hist .soft { font-size: 12px; line-height: 16px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.checks .col { flex: 1; }
.checks .soft { font-size: 12px; }
.ck-i { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: var(--bw) solid var(--line); color: #f45d33; font-weight: 700; flex-shrink: 0; }
.checks li.bad .ck-i { background: #f45d33; color: #fff; border-color: #f45d33; }
.checks li.warn .ck-i { color: var(--orange-deep); border-color: var(--orange); }
.pub-where { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; line-height: 20px; }
.pub-where .col { gap: 6px; }

/* the «/» menu (V-ed-slash) and the inline bar */
.sl { position: relative; z-index: 8; display: grid; grid-template-columns: 1fr 200px; grid-template-rows: auto auto; margin: 6px 0; border-radius: 22px; background: var(--cream); box-shadow: 0 18px 48px rgba(0, 0, 0, .2); border: 1px solid var(--line); overflow: hidden; }
.sl-main { padding: 10px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.sl-q { height: 40px; padding: 0 14px; border-radius: 999px; border: var(--bw) dashed var(--rule); background: var(--cream); color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; }
.sl-q:focus { outline: none; border-color: var(--orange); }
.sl-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.sl-g { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.sl-list button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.sl-list button.on { background: var(--orange-soft); }
.sl-list button b { font-size: 14px; }
.sl-list button span { font-size: 12px; color: var(--graphite); }
.sl-side { padding: 16px; font-size: 13px; }
.sl-hint { grid-column: 1 / -1; margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--graphite); }
.ib { position: absolute; z-index: 40; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: #2a2a28; }
.ib button { height: 30px; min-width: 30px; padding: 0 8px; border-radius: 8px; border: 0; background: transparent; color: #fff; cursor: pointer; font: 600 13px/1 'Nunito Sans', sans-serif; }
.ib button:hover { background: rgba(255, 255, 255, .12); }

/* «Место в статью» (V-ed-place) and «Фото» (V-ed-media) */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.pd-left { display: flex; flex-direction: column; gap: 8px; }
.pd-q { height: 48px; font-size: 16px; border-color: #f45d33; }
.pd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.pd-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.pd-list button.on, .pd-list button:hover { background: var(--orange-soft); }
.pd-list .ed-ph { width: 44px; height: 44px; }
.pd-list .col { flex: 1; min-width: 0; }
.pd-list .col .soft { font-size: 12px; }
.pd-right { display: flex; flex-direction: column; gap: 12px; }
.pd-dishes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.pd-dish { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 14px; }
.pd-dish span { flex: 1; }
.pd-dish.on { background: var(--orange-soft); }
.md { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.md-left { display: flex; flex-direction: column; gap: 10px; }
.md-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 320px; overflow-y: auto; }
.md-i { padding: 0; border: 2px solid transparent; border-radius: 16px; background: var(--paper); aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.md-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-i.on { border-color: #f45d33; }
.md-up { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; border-radius: 16px; border: 2px dashed var(--line); color: var(--graphite); font-size: 14px; cursor: pointer; }
.md-up:hover { border-color: var(--orange); }
.md-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.md-form { display: flex; flex-direction: column; gap: 10px; }
.md-prev { width: 100%; aspect-ratio: 1 / .573; border-radius: 16px; object-fit: cover; background: var(--paper); box-shadow: inset 0 0 0 2px #f45d33; }

/* preview (V-ed-preview) */
.pv { margin-left: 0; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.pv-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pv-bar .soft { font-size: 13px; flex: 1; }
.pv-frames { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.pv-frames[data-mode="desk"] { grid-template-columns: 1fr; }
.pv-frames[data-mode="desk"] .pv-phone { display: none; }
.pv-frames[data-mode="phone"] { grid-template-columns: 390px; justify-content: center; }
.pv-frames[data-mode="phone"] .pv-desk { display: none; }
.pv-desk { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.pv-url { display: block; padding: 8px 14px; font-size: 12px; color: var(--graphite); }
.pv-desk iframe { width: 100%; height: calc(100vh - 170px); border: 0; background: #fff; display: block; }
.pv-phone { width: 390px; height: 800px; border-radius: 44px; border: 10px solid #2a2a28; overflow: hidden; background: #fff; }
.pv-phone iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 1280px) { .ed { grid-template-columns: 200px minmax(0, 1fr); } .ed > .ed-panel { grid-column: 1 / -1; position: static; max-height: none; } .ed-outline { display: none; } .pl { grid-template-columns: 1fr; } }
[data-outline] { display: flex; flex-direction: column; gap: 2px; }

/* the constructor (V-adm-editor): handles, rows and columns, dropping, the dark bar, «Настройки блока» */
.ed-hand { position: absolute; left: -34px; top: 4px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .1s; }
.blk:hover > .ed-hand, .blk.sel > .ed-hand, .blk:focus-within > .ed-hand { opacity: 1; }
.ed-col .ed-hand { left: -2px; top: -13px; flex-direction: row; z-index: 4; }
.ed-col .ed-plus, .ed-col .ed-grip { height: 22px; width: 22px; }
.ed-plus, .ed-grip { width: 24px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--cream); color: var(--graphite); cursor: pointer; padding: 0; font: 600 14px/1 'Nunito Sans', sans-serif; }
.ed-grip { display: grid; grid-template-columns: repeat(2, 4px); grid-auto-rows: 4px; gap: 3px; justify-content: center; align-content: center; cursor: grab; }
.ed-grip i { width: 4px; height: 4px; border-radius: 99px; background: #f45d33; }
.ed-plus:hover, .ed-grip:hover { border-color: #f45d33; color: var(--orange-deep); }
.ed-grip:active { cursor: grabbing; }
.k-row { padding: 12px 10px; }
.ed-cols { display: grid; gap: 16px; align-items: start; }
.ed-cols.va-center { align-items: center; } .ed-cols.va-end { align-items: end; }
.ed-cols.w-1 { grid-template-columns: minmax(0, 1fr); }
.ed-cols.w-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-cols.w-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ed-cols.w-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.ed-cols.w-3-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.ed-cols.w-1-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.ed-cols.w-1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-cols.w-2-1-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.ed-cols.w-1-2-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.ed-cols.w-1-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.ed-cols.w-1-1-1-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-cols.w-2-1-1-1 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.ed-cols.w-1-1-1-2 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); }
.ed-col { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 72px; padding: 8px 12px; border-radius: 14px; border: 1.5px dashed var(--line); container-type: inline-size; }
.ed-col > .blk { margin: 0 -6px; padding: 6px; }
.ed-col.over { border-color: #f45d33; background: var(--orange-soft); }
body.dragging .ed-col { border-color: var(--rule); }
.ed-col-add { align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--rule); background: transparent; color: var(--graphite); cursor: pointer; font: 600 12px/1.2 'Nunito Sans', sans-serif; opacity: .6; }
.ed-col-add:hover, .ed-col:hover > .ed-col-add { opacity: 1; }
.ed-col > .ed-col-add:only-child { margin: auto; opacity: 1; }
.ed-col .sl { grid-template-columns: 1fr; }
.ed-col .sl-side { display: none; }
@container (max-width: 300px) { .ed-col .ed-place { flex-direction: column; align-items: flex-start; } .ed-col .ed-ph { width: 100%; height: 90px; } .ed-card.with-ph { flex-direction: column; } .ed-card-ph { width: 100%; } }
.dnd-ind { position: absolute; z-index: 60; pointer-events: none; background: #f45d33; border-radius: 3px; box-shadow: 0 0 0 3px color-mix(in srgb, #f45d33 25%, transparent); }
.dnd-ind.h { height: 3px; }
.dnd-ind.v { width: 3px; }
.ed-hidden { position: absolute; left: 10px; top: -9px; padding: 0 6px; background: var(--cream); font-size: 11px; color: var(--orange-deep); }

.bt { position: absolute; z-index: 30; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 14px; background: #2a2a28; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.bt button { height: 30px; min-width: 30px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; color: #fffbf8; cursor: pointer; font: 600 13px/1 'Nunito Sans', sans-serif; white-space: nowrap; }
.bt button:hover { background: rgba(255, 255, 255, .12); }
.bt button.on { background: #f45d33; }
.bt .sep { width: 1px; height: 18px; margin: 0 4px; background: rgba(255, 255, 255, .22); }

/* «Настройки блока» as the site has them */
.pb { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pb.bg-cream, .pb.bg-paper, .pb.bg-peach, .pb.bg-orange, .pb.bg-dark, .pb.bg-line { padding: 20px; border-radius: 22px; }
.pb.bg-cream { background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.pb.bg-paper { background: var(--paper); }
.pb.bg-peach { background: var(--orange-soft); }
.pb.bg-orange { background: #f45d33; color: #fffbf8; }
.pb.bg-orange .ed-p, .pb.bg-orange .ed-qt, .pb.bg-orange .ed-note, .pb.bg-orange .ed-h2, .pb.bg-orange .soft { color: #fffbf8; }
.pb.bg-dark { background: #2a2a28; color: #f4ece4; }
.pb.bg-dark .ed-h2, .pb.bg-dark .ed-p { color: #f4ece4; }
.pb.bg-line { box-shadow: inset 0 0 0 1.5px var(--rule); }
.pb.al-center { text-align: center; align-items: center; }
.pb.al-right { text-align: right; align-items: flex-end; }
.pb.w-75 { width: 75%; } .pb.w-50 { width: 50%; }
.pb.w-75.al-center, .pb.w-50.al-center { margin-inline: auto; }
.pb.w-75.al-right, .pb.w-50.al-right { margin-left: auto; }
.pt-0 { margin-top: 0; } .pt-8 { margin-top: 8px; } .pt-16 { margin-top: 16px; } .pt-24 { margin-top: 24px; }
.pt-32 { margin-top: 32px; } .pt-48 { margin-top: 48px; } .pt-64 { margin-top: 64px; } .pt-96 { margin-top: 96px; }
.pbm-0 { margin-bottom: 0; } .pbm-8 { margin-bottom: 8px; } .pbm-16 { margin-bottom: 16px; } .pbm-24 { margin-bottom: 24px; }
.pbm-32 { margin-bottom: 32px; } .pbm-48 { margin-bottom: 48px; } .pbm-64 { margin-bottom: 64px; } .pbm-96 { margin-bottom: 96px; }
.deco { position: absolute; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: 6px; }
.deco > img { width: 72px; height: auto; flex-shrink: 0; }
.deco.ds-s > img { width: 48px; } .deco.ds-l > img { width: 112px; }
.deco-t { font: 400 26px/1 'Marck Script', 'Caveat', cursive; color: #f45d33; white-space: nowrap; }
.deco.ds-s .deco-t { font-size: 20px; } .deco.ds-l .deco-t { font-size: 34px; }
.deco.d-tl { top: 0; left: 0; transform: translate(-22%, -60%) rotate(var(--r, 0deg)); }
.deco.d-tc { top: 0; left: 50%; transform: translate(-50%, -60%) rotate(var(--r, 0deg)); }
.deco.d-tr { top: 0; right: 0; transform: translate(22%, -60%) rotate(var(--r, 0deg)); }
.deco.d-ml { top: 50%; left: 0; transform: translate(-70%, -50%) rotate(var(--r, 0deg)); }
.deco.d-mr { top: 50%; right: 0; transform: translate(70%, -50%) rotate(var(--r, 0deg)); }
.deco.d-bl { bottom: 0; left: 0; transform: translate(-22%, 60%) rotate(var(--r, 0deg)); }
.deco.d-bc { bottom: 0; left: 50%; transform: translate(-50%, 60%) rotate(var(--r, 0deg)); }
.deco.d-br { bottom: 0; right: 0; transform: translate(22%, 60%) rotate(var(--r, 0deg)); }
.deco.d-tl, .deco.d-ml, .deco.d-bl { flex-direction: row-reverse; }
.deco.flip > img { transform: scaleX(-1); }
.deco.r-12 { --r: -12deg; } .deco.r-8 { --r: -8deg; } .deco.r-4 { --r: -4deg; } .deco.r4 { --r: 4deg; } .deco.r8 { --r: 8deg; } .deco.r12 { --r: 12deg; }

.ed-divider.with-art, .ed-divider.both { display: flex; align-items: center; gap: 16px; margin: 8px 0; }
.ed-divider.with-art i { flex: 1; height: 1.5px; background: var(--line); }
.ed-div-art { width: 60px; height: auto; flex-shrink: 0; }
.ed-div-line { width: 100%; height: 30px; object-fit: fill; }
.ed-divider.both .ed-div-line { flex: 1; width: auto; min-width: 0; }
.ed-div-auto { display: block; height: 2px; background: repeating-linear-gradient(90deg, #f45d33 0 10px, transparent 10px 18px); margin: 16px 0; border-radius: 2px; }
.ed-btnb { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.al-center > .ed-btnb { justify-content: center; } .al-right > .ed-btnb { justify-content: flex-end; }
.ed-bigbtn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; background: #f45d33; color: #fffbf8; font-size: 17px; font-weight: 600; }
.ed-bigbtn.off { background: var(--paper); color: var(--ink); }
.ed-btn-note { font-size: 13px; line-height: 18px; max-width: 200px; min-width: 60px; }
.ed-places { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); width: 100%; }
.ed-places.v-strip { grid-auto-flow: column; grid-auto-columns: 160px; grid-template-columns: none; overflow-x: auto; }
.ed-mini { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 16px; border: var(--bw) solid var(--line); font-size: 13px; min-width: 0; }
.ed-mini .ed-ph { width: 100%; height: 80px; margin-bottom: 4px; }
.ed-mini .soft { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-places .ed-add-ph { min-height: 80px; }
.ed-card { display: flex; gap: 16px; padding: 14px; border-radius: 22px; background: var(--paper); align-items: center; }
.pb[class*="bg-"] > .ed-card { background: none; padding: 0; }
.ed-card-ph { position: relative; margin: 0; width: 42%; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--cream); }
.ed-card-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-card-ph.add { border: 2px dashed var(--line); cursor: pointer; color: var(--graphite); font: 600 13px/1 'Nunito Sans', sans-serif; }
.ed-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ed-card-h { margin: 0; font-size: 20px; line-height: 26px; }
.ed-card-p { margin: 0; font-size: 16px; line-height: 24px; align-self: stretch; }
[contenteditable][data-ph]:empty::before { content: attr(data-ph); color: var(--rule); pointer-events: none; }

.ed-bp { gap: 12px; }
.bp-crumbs { font-size: 12px; color: var(--graphite); }
.bp-crumbs button { border: 0; padding: 0; background: none; color: var(--orange-deep); cursor: pointer; font: inherit; text-decoration: underline; }
.bp-kind { font-size: 14px; font-weight: 600; }
.bp-l { font-size: 13px; color: var(--graphite); }
.bp-n { display: flex; gap: 8px; }
.bp-n button { width: 36px; height: 36px; border-radius: 999px; border: var(--bw) solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; font: 400 14px/1 'Nunito Sans', sans-serif; }
.bp-n button.on { background: #f45d33; border-color: #f45d33; color: #fffbf8; }
.bp-ws { display: flex; flex-direction: column; gap: 6px; }
.bp-w { display: flex; gap: 2px; height: 26px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.bp-w i { background: var(--line); }
.bp-w.on i { background: var(--orange-soft); }
.bp-w.on i.a { background: #f45d33; }
.bp-w:hover i { background: var(--orange-soft); }
.bp-w i.g1 { flex: 1; } .bp-w i.g2 { flex: 2; } .bp-w i.g3 { flex: 3; }
.bp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsel { height: 44px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--rule); background: var(--cream); color: var(--ink); font: 400 15px/1 'Nunito Sans', sans-serif; }
.fl .rsel { height: 44px; }
.ed-bp .seg { flex-wrap: wrap; }
.ed-bp .seg-i { border: 0; cursor: pointer; font-family: inherit; background: transparent; padding: 6px 12px; font-size: 13px; }
.ed-bp .seg-i.on { background: var(--ink); color: var(--cream); }
.art-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-height: 188px; overflow-y: auto; padding: 2px; }
.art-i { aspect-ratio: 1; padding: 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.art-i img { max-width: 100%; max-height: 100%; }
.art-i.on { border-color: #f45d33; background: var(--orange-soft); }
.art-i.none { font-size: 11px; color: var(--graphite); }
.bp-deco { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: var(--paper); }
.bp-deco-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bp-deco-h img { width: 28px; height: 28px; object-fit: contain; }
.bp-deco-h .hand { font-size: 18px; transform: none; }
.bp-deco-h b { flex: 1; font-weight: 600; }
.bp-deco-r { display: flex; gap: 10px; align-items: flex-start; }
.bp-deco-r .col { gap: 6px; }
.bp-pos { display: grid; grid-template-columns: repeat(3, 18px); gap: 4px; padding: 6px; border-radius: 12px; background: var(--cream); }
.bp-pos button { width: 18px; height: 18px; border-radius: 99px; border: 1.5px solid var(--rule); background: transparent; cursor: pointer; padding: 0; }
.bp-pos button.on { background: #f45d33; border-color: #f45d33; }
.bp-note { height: 36px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--line); background: var(--cream); color: var(--ink); font: 400 17px/1 'Marck Script', 'Caveat', cursive; }
.bp-more summary { cursor: pointer; font-size: 13px; color: var(--graphite); list-style: none; }
.bp-more summary::-webkit-details-marker { display: none; }
.bp-more[open] summary { margin-bottom: 6px; }
.bp-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.bp-add .bp-more { flex-basis: 100%; }
.bp-add summary.ab { display: inline-flex; color: var(--ink); }
.bp-foot { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.bp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bp-list li { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: var(--paper); font-size: 13px; }
.bp-list li span { flex: 1; }
.bp-list button { border: 0; background: none; cursor: pointer; color: var(--graphite); }
.pd-chosen { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pd-chosen li { padding: 4px 0; }
.pd-chosen li span { margin-right: 6px; }
.ed-dev .seg-i { border: 0; cursor: pointer; font-family: inherit; background: transparent; }
.ed-dev .seg-i.on { background: var(--ink); color: var(--cream); }
form.inline { display: inline-block; margin-left: 10px; vertical-align: middle; }

/* Notion-style editor: the caret menu, the handle's menu, compact «Настройки блока», new blocks */
.bpal-i span { font-size: 11px; line-height: 13px; hyphens: auto; overflow-wrap: normal; max-width: 100%; }
.ed-pal { gap: 10px; padding: 12px; }
.sl { position: absolute; z-index: 45; width: 320px; max-height: 380px; display: flex; flex-direction: column; margin: 0; padding: 6px; border-radius: 18px; background: var(--cream); box-shadow: 0 18px 48px rgba(0, 0, 0, .22); border: 1px solid var(--line); overflow: hidden; }
.sl .sl-q { margin: 2px 2px 6px; }
.sl .sl-list { max-height: none; flex: 1; overflow-y: auto; }
.sl-list button { flex-direction: row; align-items: center; gap: 10px; padding: 6px 8px; }
.sl-list .col { display: flex; flex-direction: column; min-width: 0; }
.sl-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); display: inline-flex; align-items: center; justify-content: center; color: #f45d33; }
.sl-ic svg { width: 22px; height: 22px; overflow: visible; }
.sl .sl-hint { border-top: 1px solid var(--line); padding: 6px 8px 2px; }
.bm { position: absolute; z-index: 45; width: 260px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, .22); }
.bm-h, .bp-h { margin: 6px 4px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.bm-i { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; border: 0; background: none; color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; cursor: pointer; text-align: left; }
.bm-i:hover { background: var(--paper); }
.bm-i svg { width: 18px; height: 18px; color: var(--graphite); }
.bm-turn, .bp-turn { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bm-turn { grid-template-columns: repeat(3, 1fr); }
.bm-k { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); color: #f45d33; cursor: pointer; font: 400 10px/12px 'Nunito Sans', sans-serif; }
.bm-k span { color: var(--ink); }
.bm-k svg { width: 20px; height: 20px; overflow: visible; }
.bm-k.on { border-color: #f45d33; background: var(--orange-soft); }
.bp-turn .bm-k { padding: 6px 0; }
.bm-sw, .bsw { display: flex; flex-wrap: wrap; gap: 5px; }
.sw-t, .sw-b { width: 23px; height: 23px; border-radius: 99px; border: 1.5px solid var(--line); cursor: pointer; padding: 0; font: 700 12px/1 'Nunito Sans', sans-serif; background: var(--cream); }
.sw-t.on, .sw-b.on { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px #f45d33; }
.sw-t.tc-ink { color: var(--ink); } .sw-t.tc-orange { color: #f45d33; } .sw-t.tc-graphite { color: var(--graphite); } .sw-t.tc-grey { color: var(--grey); }
.sw-b.bg-none { background: linear-gradient(135deg, transparent 45%, var(--rule) 45% 55%, transparent 55%), var(--cream); }
.sw-b.bg-cream { background: var(--cream); } .sw-b.bg-paper { background: var(--paper); } .sw-b.bg-peach { background: var(--orange-soft); }
.sw-b.bg-orange { background: #f45d33; border-color: #f45d33; } .sw-b.bg-dark { background: #2a2a28; border-color: #2a2a28; } .sw-b.bg-line { background: var(--cream); border: 2px solid var(--rule); }
.ed-bp { gap: 10px; padding: 14px; }
.bp-top { display: flex; align-items: center; gap: 6px; }
.bp-top .bp-kind { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-top .sl-ic { width: 30px; height: 30px; }
.bic { width: 32px; height: 32px; border-radius: 99px; border: 1px solid var(--line); background: var(--cream); color: var(--graphite); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.bic:hover { color: var(--orange-deep); border-color: #f45d33; }
.bic svg { width: 17px; height: 17px; }
.bp-r { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 32px; }
.bp-r .bp-l { font-size: 12px; }
.bp-c { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bchips { display: inline-flex; padding: 2px; border-radius: 99px; background: var(--paper); gap: 2px; }
.bchip { height: 28px; min-width: 28px; padding: 0 10px; border-radius: 99px; border: 0; background: transparent; color: var(--graphite); cursor: pointer; font: 600 12px/1 'Nunito Sans', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.bp-c > .bchip { background: var(--paper); }
.bchip.on { background: var(--ink); color: var(--cream); }
.bp-c > .bchip.on { background: var(--ink); }
.bchip:disabled { opacity: .4; cursor: default; }
.bchip svg { width: 16px; height: 16px; }
.bp-n { font-size: 13px; min-width: 18px; text-align: center; }
.bstep { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 99px; background: var(--paper); font-size: 12px; }
.bstep-l { padding: 0 2px 0 8px; color: var(--graphite); }
.bstep button { width: 24px; height: 24px; border-radius: 99px; border: 0; background: var(--cream); color: var(--ink); cursor: pointer; font: 600 14px/1 'Nunito Sans', sans-serif; padding: 0; }
.bstep button:disabled { opacity: .35; cursor: default; }
.bstep b { min-width: 30px; text-align: center; font-weight: 600; }
.bp-in { height: 36px; padding: 0 14px; border-radius: 99px; border: var(--bw) solid var(--line); background: var(--cream); color: var(--ink); font: 400 14px/1 'Nunito Sans', sans-serif; min-width: 0; }
.bp-in:focus { outline: none; border-color: #f45d33; }
.bp-row2 { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.bp-keys li { display: contents; }
.bp-keys b { font-family: ui-monospace, monospace; font-size: 12px; background: var(--paper); padding: 1px 6px; border-radius: 6px; justify-self: start; }
.bp-phs { display: flex; flex-direction: column; gap: 4px; }
.bp-ph { border-radius: 12px; background: var(--paper); }
.bp-ph-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px; border: 0; background: none; cursor: pointer; font: 400 13px/16px 'Nunito Sans', sans-serif; color: var(--ink); text-align: left; }
.bp-ph-h img { width: 40px; height: 32px; object-fit: cover; border-radius: 6px; }
.bp-ph-h span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-ph-h .bad { color: var(--orange-deep); font-size: 11px; }
.bp-ph-f { display: flex; flex-direction: column; gap: 6px; padding: 0 6px 8px; }
.bp-decos { display: flex; flex-direction: column; gap: 8px; }
.bp-decos[open] { gap: 8px; }
.bp-deco { gap: 6px; padding: 8px; }
.bp-deco-h { gap: 6px; }
.bp-deco-h .col { gap: 4px; }
.ed-bp .art-grid { grid-template-columns: repeat(7, 1fr); max-height: 150px; }

.ed-h3 { margin: 8px 0 0; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--ink); }
.ed-list { margin: 0; padding-left: 26px; font-size: 18px; line-height: 28px; outline: none; }
.ed-list li::marker { color: #f45d33; font-weight: 700; }
.ed-callout { display: flex; gap: 12px; align-items: flex-start; }
.ed-callout-art { width: 40px; height: auto; flex-shrink: 0; }
.ed-callout-art.none { height: 1px; width: 0; }
.ed-callout .ed-p { flex: 1; font-size: 17px; line-height: 26px; }
.ed-toggle { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.ed-toggle-q { font-size: 18px; line-height: 26px; }
.ed-toggle-q::before { content: "› "; color: #f45d33; }
.ed-toggle .ed-p { padding-left: 16px; font-size: 17px; line-height: 26px; }
.ed-table-w { overflow-x: auto; }
.ed-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.ed-table td, .ed-table th { border: 1px solid var(--line); padding: 8px 10px; min-width: 60px; text-align: left; vertical-align: top; }
.ed-table.head tr:first-child th { background: var(--paper); font-weight: 700; }
.ed-toc { padding: 14px 16px; border-radius: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ed-toc ol { margin: 0; padding-left: 20px; }
.ed-toc li.sub { margin-left: 16px; }
.ed-spacer { border: 1.5px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--rule); }
.ed-spacer.sz-s { height: 16px; } .ed-spacer.sz-m { height: 36px; } .ed-spacer.sz-l { height: 80px; }
.ed-map { align-items: flex-start; }
.ed-map.sz-s { min-height: 90px; } .ed-map.sz-m { min-height: 140px; } .ed-map.sz-l { min-height: 220px; }
.ed-swap { opacity: 0; transition: opacity .1s; }
.blk:hover .ed-swap, .blk.sel .ed-swap { opacity: 1; }
.ed-photos figure { cursor: pointer; }
.ed-photos figcaption a, .ed-cover figcaption a { color: inherit; }
.pb.tc-orange .ed-p, .pb.tc-orange .ed-h2, .pb.tc-orange .ed-h3, .pb.tc-orange .ed-list { color: var(--orange-deep); }
.pb.tc-graphite .ed-p, .pb.tc-graphite .ed-h2, .pb.tc-graphite .ed-h3, .pb.tc-graphite .ed-list { color: var(--graphite); }
.pb.tc-grey .ed-p, .pb.tc-grey .ed-h2, .pb.tc-grey .ed-h3, .pb.tc-grey .ed-list { color: var(--grey); }
.pb.ts-l .ed-p, .pb.ts-l .ed-list { font-size: 22px; line-height: 32px; }
.ed-doc mark { background: color-mix(in srgb, #f45d33 28%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.ib .sep { width: 1px; height: 18px; margin: 0 4px; background: rgba(255, 255, 255, .22); align-self: center; }
.ib mark { background: #f45d33; color: #fff; padding: 0 3px; border-radius: 3px; }
@media (max-width: 1280px) { .ed { grid-template-columns: 220px minmax(0, 1fr); } }

/* the structure beside the page: marks, and the outline on hover (like Notion's page outline) */
.ed-ov { position: fixed; z-index: 20; top: 120px; right: 336px; display: flex; align-items: flex-start; }
.ed-ov-marks { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; padding: 10px 6px; border-radius: 12px; cursor: default; }
.ed-ov-marks i { display: block; height: 2px; border-radius: 2px; background: var(--rule); opacity: .55; }
.ed-ov-marks i.h2 { width: 18px; } .ed-ov-marks i.h3 { width: 11px; } .ed-ov-marks i.pla { width: 7px; }
.ed-ov-marks i.now { background: #f45d33; opacity: 1; }
.ed-ov-panel { position: absolute; top: -6px; right: 0; width: 270px; max-height: 72vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity .12s, transform .12s, visibility 0s .12s; }
.ed-ov:hover .ed-ov-panel, .ed-ov:focus-within .ed-ov-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .12s, transform .12s; }
.ed-ov:hover .ed-ov-marks { visibility: hidden; }
.ed-ov-panel a { padding: 6px 10px; border-radius: 10px; font-size: 13px; line-height: 17px; color: var(--ink); text-decoration: none; }
.ed-ov-panel a:hover { background: var(--paper); }
.ed-ov-panel a.sub { padding-left: 22px; color: var(--graphite); }
.ed-ov-panel a.pla { padding-left: 22px; color: var(--graphite); font-size: 12px; }
.ed-ov-panel a.now { color: var(--orange-deep); background: var(--orange-soft); }
.ed-ov-panel .ed-count { margin-top: 8px; }
@media (max-width: 1280px) { .ed-ov { right: 16px; } }
.bm-k svg { width: 20px; height: 20px; }
.bp-turn .bm-k, .bm-turn .bm-k { color: var(--ink); }
.bp-turn .bm-k.on, .bm-turn .bm-k.on { color: var(--orange-deep); }
