/* Портал маркетинга OIRO. Цвета и шрифты — брендбук OIRO, стр. 10.
   Порядок: основа → шапка → сводка → секции → соцсети → графики → детали и таблицы → аудитория → бренды и сайт →
   состояния → подвал → адаптив (широкий → узкий). */

/* ── Основа ── */
:root {
  --paper: #FAFAF8; --cream: #FFFBF0; --rose: #E6AAC2; --bordeaux: #540E0E; --cocoa: #2C1819; --graphite: #302F2F;
  --muted: #6B5E5E; --rose-ink: #B85A82; --line: #EADBDF; --up: #2F6B3F; --on-dark: #F3E6E1; --on-dark-muted: #CDB7B2;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--rose) var(--paper); accent-color: var(--bordeaux); }
/* переходы по разделам и «Наверх» — плавно; кто выключил анимацию в системе, тому мгновенно */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--graphite); font: 400 15px/1.55 var(--sans); }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--cocoa); }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible { outline-color: var(--rose); }
.num { font-variant-numeric: lining-nums tabular-nums; }
/* свойство font сбрасывает вид цифр — закрепляем ровные (lining) цифры у заголовков и крупных чисел */
h1, h2, h3, .big, .val, .split div { font-variant-numeric: lining-nums !important; }
.ico { width: 1em; height: 1em; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.up { color: var(--up); } .down { color: var(--bordeaux); }
/* нейтральное «без изменений» */
.flat { color: var(--muted); }

/* ── Шапка ── */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; min-height: 44px; padding-top: 6px; font: 500 30px/1 var(--serif); letter-spacing: .18em; color: var(--cocoa); text-decoration: none; }
.brand small { font: 500 12px/1 var(--sans); letter-spacing: .02em; color: var(--muted); margin-left: 10px; }
nav.sections { display: flex; gap: 4px; margin-left: auto; }
nav.sections a, nav.sections span { padding: 10px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
nav.sections a[aria-current] { background: var(--cocoa); color: var(--cream); }
nav.sections span { color: var(--muted); cursor: default; padding-inline: 12px; } /* «скоро» — тише и уже рабочего пункта: четыре пункта помещаются в строку с логотипом от 1024 px */
nav.sections em { font-style: normal; font-size: 12px; margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }

/* ── Сводка: заголовок, переходы по разделам, период и четыре ключевые цифры ── */
.hero { background: var(--cocoa); color: var(--cream); }
.hero .wrap { padding-top: 2.5rem; padding-bottom: 2rem; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; }
.hero h1 { margin: 0; font: 400 2.75rem/1.05 var(--serif); }
.hero .lede { margin: 10px 0 0; color: var(--on-dark); max-width: 44em; }
.jump { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 8px; }
.jump a { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; min-width: 44px; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid transparent; font-size: 14px; }
.jump a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; }
.controls { display: grid; gap: 10px; justify-items: end; }
.seg-label { font-size: 13px; color: var(--on-dark-muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,251,240,.08); border: 1px solid rgba(255,251,240,.18); }
.seg button { border: 0; background: none; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; color: var(--on-dark); font-size: 14px; transition: background .2s, color .2s; }
.seg button:hover { background: rgba(255,251,240,.12); }
.seg button[aria-pressed="true"] { background: var(--rose); color: var(--cocoa); font-weight: 600; }
.updated { font-size: 13px; color: var(--on-dark-muted); }
.kpi-cap { margin: 2rem 0 0; font-size: 13px; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.kpi-cap > b { color: var(--cream); font-weight: 600; font-size: 14px; margin-right: 4px; }
.kpi-cap .hint { margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; border-top: 1px solid rgba(255,251,240,.16); }
.kpi-cap + .kpis { margin-top: 10px; }
/* строки плиток общие (subgrid): название в две строки не сдвигает цифру — числа соседних плиток на одной линии */
.kpi { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; padding: 20px 24px 4px 0; }
.kpi > * { min-width: 0; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid rgba(255,251,240,.16); }
.kpi h2 { margin: 0; font: 500 14px/1.3 var(--sans); color: var(--on-dark); }
.kpi .val { font: 400 3rem/1.1 var(--serif); margin: 6px 0 4px; }
.kpi .cmp, .kpi .src { font-size: 13px; color: var(--on-dark-muted); }
.kpi .cmp b { font-weight: 600; }
.kpi .src + .cmp { margin-top: 2px; }
/* неполные итоги — словами, а не только цветом */
.kpi .part { display: inline-block; margin-right: 4px; padding: 0 8px; border: 1px solid var(--rose); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--rose); vertical-align: 1px; }
/* «Из чего сложена сводка» — раскрывается по нажатию, таблица прокручивается вбок только внутри себя */
.sum-how { margin-top: 14px; font-size: 13px; color: var(--on-dark-muted); }
.sum-how summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; }
.sum-how summary:hover { color: var(--cream); }
.sum-how p { margin: 8px 0 0; max-width: 62em; }
.sum-scroll { overflow-x: auto; }
.sum-how table { border-collapse: collapse; min-width: 520px; width: 100%; max-width: 860px; }
.sum-how th, .sum-how td { padding: 8px 16px 8px 0; border-bottom: 1px solid rgba(255,251,240,.16); text-align: right; vertical-align: top; font-weight: 400; }
.sum-how th:first-child { text-align: left; color: var(--on-dark); }
.sum-how thead th { color: var(--on-dark-muted); font-size: 12px; }
.sum-how td { color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }
.sum-how td small { display: block; font-size: 12px; color: var(--on-dark-muted); }
.sum-how tr.off td { text-align: left; color: var(--on-dark-muted); }
.sum-how tfoot th, .sum-how tfoot td { font-weight: 600; color: var(--cream); border-bottom: 0; }
/* плитки «Поиск бренда OIRO и сайт» — целиком переход к своему разделу */
.kpi-link { color: inherit; text-decoration: none; transition: background .2s; }
.kpi-link:hover { background: rgba(255,251,240,.06); }
.kpi-link:hover h2 { text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; }
/* свой период и выгрузка — под кнопками 7/30/90 */
/* Свой период: кнопка рядом с 7/30/90 (выбраны свои даты — кнопка залита и показывает их), под ней — светлая панель */
.period-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.range-wrap { position: relative; }
.range-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,251,240,.42); background: rgba(255,251,240,.08); color: var(--on-dark); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.range-btn:hover { background: rgba(255,251,240,.14); }
.range-btn .ico { width: 18px; height: 18px; stroke-width: 1.8; }
.range-btn.on { background: var(--rose); border-color: var(--rose); color: var(--cocoa); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.range-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 360px; padding: 18px; border-radius: 18px; background: var(--paper); color: var(--graphite); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20,10,10,.35); }
.range-pop[hidden] { display: none; }
.range-pop :focus-visible { outline-color: var(--bordeaux); }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presets button { display: grid; gap: 2px; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); color: var(--cocoa); text-align: left; font-size: 13px; cursor: pointer; }
.presets button b { font-weight: 600; }
.presets button span { font-size: 12px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.presets button:hover { border-color: var(--rose-ink); }
.presets button[aria-pressed="true"] { border-color: var(--bordeaux); background: #FBEFF2; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.fields label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
/* граница поля — 5,9:1 к фону панели */
.fields input { min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--muted); background: #fff; color: var(--cocoa); font: inherit; font-size: 14px; color-scheme: light; }
.range-err { margin: 8px 0 0; color: var(--bordeaux); font-size: 13px; }
.range-err:empty { display: none; }
.pop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pop-actions button { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pop-actions .ghost { border: 1px solid var(--muted); background: none; color: var(--cocoa); }
.pop-actions .apply { border: 0; background: var(--bordeaux); color: var(--cream); }
.pop-actions .apply:hover { background: var(--cocoa); }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; }
.export { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--rose); background: none; color: var(--cream); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.export:hover { background: var(--rose); color: var(--cocoa); }
.kpi .cmp .up { color: #A9D8B4; } .kpi .cmp .down { color: var(--rose); } .kpi .cmp .flat { color: var(--on-dark-muted); }

/* ── Секции: название, под ним пояснение — одинаково во всех блоках ── */
section.block { padding-top: 4rem; }
.block-head { display: block; border-bottom: 1px solid var(--graphite); padding-bottom: 14px; }
.block-head h2 { margin: 0; font: 400 2.5rem/1.1 var(--serif); color: var(--cocoa); }
.block-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 60em; }
h2[id] { scroll-margin-top: 16px; }

.stale { font-size: 12px; color: var(--bordeaux); background: rgba(230,170,194,.18); border-radius: 8px; padding: 6px 10px; }
.wait-list { display: grid; gap: 12px; }
.wait-list > div { padding: 14px 16px; border-radius: 14px; background: var(--cream); border: 1px dashed var(--rose); color: var(--muted); font-size: 14px; }
.wait-list b { display: block; font: 500 20px/1.2 var(--serif); color: var(--cocoa); margin-bottom: 4px; }
/* статус словами (подключается / не получено), не только цветом */
.wait-list .st { display: inline-block; margin: 2px 0 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; border: 1px dashed var(--rose); color: var(--muted); }
.wait-list .st.err { border: 1px solid var(--bordeaux); color: var(--bordeaux); background: #FBEFF2; }
.wait-list .more { display: block; margin-top: 4px; }

/* ── Соцсети: переключатель соцсетей, вкладки «Обзор / Контент / Аудитория», карточки показателей и график ── */
.net-tabs { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.net-tabs::-webkit-scrollbar { display: none; }
.net-tabs button { flex: none; display: grid; gap: 2px; min-height: 56px; padding: 8px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--cream); color: var(--cocoa); text-align: left; cursor: pointer; font: inherit; }
.net-tabs button b { font: 500 20px/1.1 var(--serif); }
.net-tabs button span { font-size: 12px; color: var(--muted); }
.net-tabs button:hover { border-color: var(--rose-ink); }
.net-tabs button[aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.net-tabs button[aria-selected="true"] span { color: var(--on-dark-muted); }
.net-panel { padding-top: 24px; }
.np-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; }
.np-head .big { font: 400 52px/1 var(--serif); color: var(--graphite); }
.np-head .cap { font-size: 13px; color: var(--muted); margin-top: 4px; }
.np-head .cover { font-size: 12px; color: var(--muted); }
.view-tabs { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.view-tabs button { flex: none; min-height: 44px; padding: 0 16px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.view-tabs button:hover { color: var(--cocoa); }
.view-tabs button[aria-selected="true"] { color: var(--cocoa); border-bottom-color: var(--bordeaux); }
#net-view { padding-top: 20px; }
/* карточки: выбранная — толстая бордовая рамка (и aria-pressed), её показатель — на графике под ними */
.ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ncard { display: grid; gap: 4px; align-content: start; min-height: 104px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--cream); color: var(--cocoa); text-align: left; font: inherit; cursor: pointer; }
.ncard > span { font-size: 13px; color: var(--muted); }
.ncard b { font: 400 36px/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.ncard small { font-size: 12px; color: var(--muted); }
.ncard small.up { color: var(--up); } .ncard small.down { color: var(--bordeaux); }
.ncard .mark { color: var(--bordeaux); }
.brand-col .mark { display: block; margin-top: 4px; color: var(--bordeaux); font-size: 13px; font-weight: 600; }
.ncard:hover { border-color: var(--rose-ink); }
.ncard[aria-pressed="true"] { padding: 12px 14px; border: 3px solid var(--bordeaux); background: var(--paper); }
.metric-note { margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.metric-note b { font-weight: 600; }
.np-more { margin-top: 18px; max-width: 560px; }
.np-more dt small { display: block; font-size: 12px; }
/* YouTube: «Ролики / По дням», кнопка удержания ролика и его панель */
.seg.mini { background: var(--cream); border-color: var(--line); margin-bottom: 14px; }
.seg.mini button { color: var(--cocoa); }
.seg.mini button:hover { background: var(--line); }
.seg.mini button[aria-pressed="true"] { background: var(--cocoa); color: var(--cream); }
.vbtn { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rose-ink); background: none; color: var(--cocoa); font: inherit; font-weight: 600; cursor: pointer; }
.vbtn:hover, .vbtn[aria-pressed="true"] { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--cream); }
.vpanel { margin: 0 0 20px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.vpanel h4 { margin: 0; font: 500 22px/1.2 var(--serif); color: var(--cocoa); }
.aud.two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 18px; }
.content-h { margin: 0 0 12px; font: 500 24px/1.2 var(--serif); color: var(--cocoa); }
#net-view .detail { margin-top: 0; }
.wait-list.one { max-width: 520px; }
/* линейный график: шкала слева, ноль — линией темнее, линия — тёмно-розовая (4,2:1 к фону) */
.chart.lc svg { height: 180px; }
.lc-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.lc-y { position: relative; min-width: 3.2em; margin: 6px 0 4px; font-size: 12px; color: var(--muted); }
.lc-y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.lc-y .sizer { display: block; height: 0; overflow: hidden; visibility: hidden; font-style: normal; white-space: nowrap; }
.chart.lc line { stroke: var(--line); vector-effect: non-scaling-stroke; }
.chart.lc line.zero { stroke: #B9A9AC; }
.chart.lc .ln { fill: none; stroke: var(--rose-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart.lc .axis { margin-left: calc(3.2em + 10px); }
.chart.lc .none { height: 96px; }
.chart.lc .none + .axis { margin-left: 0; } /* пустой график — без шкалы слева */

/* ── Графики: значение столбика по наведению, касанию и с клавиатуры — в подписи под графиком ── */
.chart { margin-top: 4px; }
.chart .ttl { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
/* шкала графика словами: «своя» — график только для тренда, «общая» — высоты соседних графиков можно сравнивать */
.chart .scale { white-space: nowrap; }
/* столбики — тёмно-розовый брендовой гаммы: ≥3:1 к фону (4,2), дорожке (3,3) и бордовому пику (3,3); светлый розовый #E6AAC2 давал 1,8 */
.chart rect { fill: var(--rose-ink); } .chart rect.peak { fill: var(--bordeaux); } .chart line { stroke: var(--line); }
/* свои даты: недели вне периода — полые (только контур), отличаются формой, а не одной бледностью */
.chart rect.out { fill: var(--paper); stroke: var(--rose-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart rect.out.peak { stroke: var(--bordeaux); }
.chart rect.hit { fill: transparent; cursor: default; }
.chart rect.hit.on { fill: rgba(84,14,14,.12); }
.chart svg { width: 100%; height: 64px; display: block; margin: 6px 0 4px; touch-action: pan-y; }
.chart svg:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 4px; border-radius: 2px; }
.chart .axis { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.chart .axis span { white-space: nowrap; }
.chart .axis .readout { white-space: normal; text-align: center; min-width: 0; } /* узко — подпись значения переносится, края оси не слипаются с ней */
.chart.reading .readout { color: var(--cocoa); font-weight: 600; }
/* нулевой график — словами, а не пустой рамкой */
.chart .none { display: flex; align-items: center; height: 64px; margin: 6px 0 4px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ── Детали выбранной соцсети — на всю ширину под колонками ── */
.detail { scroll-margin-top: 16px; margin-top: 8px; padding: 24px clamp(16px, 3vw, 32px) 28px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
/* тени по краям показывают, что таблицу можно листать вбок */
.scroll { overflow-x: auto; background:
    linear-gradient(to right, var(--cream) 30%, rgba(255,251,240,0)) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--cream) 30%, rgba(255,251,240,0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(44,24,25,.2), rgba(44,24,25,0)) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(44,24,25,.2), rgba(44,24,25,0)) right / 14px 100% no-repeat scroll; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.t th, table.t td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
table.t th { padding-top: 0; padding-bottom: 0; vertical-align: bottom; font-weight: 500; color: var(--muted); font-size: 13px; }
table.t .l { text-align: left; }
table.t td.l + td.l, table.t th.l + th.l { min-width: 240px; }
/* длинное слово в названии поста не раздвигает колонку и не выталкивает цифры за край */
table.t td.l + td.l { max-width: 560px; }
/* закреплённая колонка даты отделена линией: при прокрутке вбок текст уходит под неё, а не «склеивается» с датой */
table.t tr > :first-child { position: sticky; left: 0; background: var(--cream); box-shadow: inset -1px 0 0 var(--line); padding-right: 14px; }
table.t tr.best > :first-child { background: #F9EBEC; }
table.t td.l a { text-decoration: none; border-bottom: 1px solid var(--rose-ink); overflow-wrap: anywhere; }
table.t td.l a:hover { color: var(--bordeaux); }
table.t tr.best td { background: rgba(230,170,194,.18); }
/* сортировка: заголовок — кнопка, стрелка у выбранной колонки, порядок словами над таблицей */
.sort { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.sort:hover { color: var(--cocoa); }
.sort .arr { display: inline-block; width: 1em; text-align: center; opacity: .4; }
th[aria-sort="ascending"] .sort, th[aria-sort="descending"] .sort { color: var(--cocoa); font-weight: 600; }
th[aria-sort="ascending"] .arr, th[aria-sort="descending"] .arr { opacity: 1; }
/* заголовок без сортировки — той же высоты, что кнопки сортировки, иначе текст «проваливается» ниже соседних */
.th-plain { display: inline-flex; align-items: center; min-height: 44px; }
.sort-state { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.sort-state b { color: var(--cocoa); font-weight: 600; }
.note { margin: 14px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
/* превью поста: квадрат 64 px, у видео — значок «смотреть» и длительность; нажатие — крупно в окне */
table.t th:first-child:not(.l), table.t td.pv-c { width: 80px; }
.pv { position: relative; display: block; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--line); cursor: zoom-in; }
.pv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv .dur { position: absolute; right: 3px; bottom: 3px; padding: 0 4px; border-radius: 4px; background: rgba(44,24,25,.82); color: var(--cream); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.pv .play { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgba(44,24,25,.7); }
.pv .play::after { content: ''; position: absolute; left: 9px; top: 6px; border: 6px solid transparent; border-left: 8px solid var(--cream); border-right: 0; }
.pv-none { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; border: 1px dashed var(--muted); color: var(--muted); font-size: 12px; text-align: center; }
.pv-dlg { width: min(92vw, 760px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--graphite); box-shadow: 0 24px 60px rgba(20,10,10,.4); }
.pv-dlg::backdrop { background: rgba(20,10,10,.62); }
.pv-dlg figure { margin: 0; }
.pv-dlg img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--line); }
.pv-dlg figcaption { padding: 14px 18px 0; font-size: 14px; color: var(--cocoa); }
.pv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 18px 18px; }
.pv-actions a, .pv-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pv-open { background: var(--bordeaux); color: var(--cream); }
.pv-close { border: 1px solid var(--muted); background: none; color: var(--cocoa); }
.max { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--bordeaux); color: var(--cream); font-size: 12px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.note i { width: 14px; height: 14px; border-radius: 4px; background: #F9EBEC; border: 1px solid var(--rose); flex: none; }

/* ── Аудитория и полоски долей: светлая дорожка на всю длину, малые доли — тонкая полоска, а не точка ── */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding-top: 28px; }
.aud h3 { margin: 0 0 16px; font: 500 22px/1.2 var(--serif); color: var(--cocoa); }
/* аудитория соцсети: пояснение, затем пол / возраст / география */
.aud-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 62em; }
.aud-note + .aud { padding-top: 20px; }
.aud-cap { margin: -10px 0 14px; font-size: 13px; color: var(--muted); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 104px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; }
.bar::before { content: ''; grid-row: 1; grid-column: 2; height: 10px; border-radius: 999px; background: var(--line); }
/* подписи переносим, а не обрезаем многоточием */
.bar > span:first-child { grid-row: 1; grid-column: 1; overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.bar i { grid-row: 1; grid-column: 2; display: block; height: 10px; min-width: 3px; border-radius: 999px; background: var(--rose-ink); }
.bar i.dark { background: var(--bordeaux); }
/* rel — полосы относительно самой большой строки (просмотры по странам): без дорожки, она читалась бы как «100%» */
.bars.rel .bar::before { display: none; }
.bar > span:last-child { grid-row: 1; grid-column: 3; text-align: right; font-weight: 600; }
.split { display: flex; height: 64px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.split div { display: flex; align-items: flex-end; padding: 10px 14px; font: 500 24px/1 var(--serif); }
.legend { display: flex; gap: 20px; font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rose-ink); margin-right: 8px; }
.legend i.dark { background: var(--bordeaux); }

/* ── Поиск бренда (Яндекс, маркетплейсы) ── */
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brands.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Google и Яндекс — две колонки без пустой третьей */
.brand-col { padding: 24px 20px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brand-col:first-child { padding-left: 0; } .brand-col:last-child { border-right: 0; padding-right: 0; }
.brand-col h3 { margin: 0; font: 500 26px/1.1 var(--serif); color: var(--cocoa); }
.brand-col .big { font: 400 52px/1 var(--serif); }
.brand-col .cap { font-size: 13px; color: var(--muted); margin-top: -6px; }
.brand-col .trend { font-size: 14px; }
/* изменение за другое окно, чем число над ним (Вордстат: число за 30 дней, изменение по неделям) — отдельной строкой под линией */
.trend.other { border-top: 1px dashed var(--line); padding-top: 8px; }
.kpi .cmp.other { border-top: 1px dashed rgba(255,251,240,.24); padding-top: 6px; margin-top: 4px; }
.brand-col ol { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
.brand-col li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.brand-col li span:first-child { overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.brand-col li span:last-child { font-weight: 600; white-space: nowrap; }
/* выбран прошлый столбик: цифра и подпись — его, а список фраз — по последнему замеру, поэтому приглушаем */
.brand-col.picked ol { opacity: .45; }
.brand-col .list-cap { margin: 6px 0 -8px; }
/* «Ещё N запросов» у маркетплейсов — продолжение того же списка */
.more-q summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; color: var(--cocoa); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; }
.more-q ol { margin-top: 0; }

/* ── Сайт — четыре колонки как у брендов; у источников полоска — второй строкой ── */
.site { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site .bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.site .bar::before { grid-row: 2; grid-column: 1 / -1; }
.site .bar i { grid-row: 2; grid-column: 1 / -1; }
.site .bar > span:last-child { grid-column: 2; }
/* «Что искали на сайте»: строка на всю ширину под колонками сайта, список в две колонки */
.brand-col.searches { padding: 24px 0 0; margin-top: 8px; border-right: 0; border-top: 1px solid var(--line); }
.searches ol { columns: 2; column-gap: 48px; }
.searches li { break-inside: avoid; }
dl.kv { margin: 4px 0 0; display: grid; gap: 8px; font-size: 14px; }
dl.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* ── Следующий этап — список, а не карточки ── */
.later { margin: 0; padding: 0; list-style: none; }
.later li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.later b { font: 500 22px/1.2 var(--serif); color: var(--cocoa); }
.later span { font-size: 14px; color: var(--muted); }
.later em { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--rose); color: var(--muted); white-space: nowrap; justify-self: start; }

/* ── Период раздела (чип у заголовка), метки и «Как считается» ──
   Чип — даты, за которые показаны числа; метка рядом — откуда окно: «выбранный период» или «своё окно: …» (пунктир).
   Предупреждения («неполная», «устарело») — сплошная бордовая рамка и слово, не только цвет. */
.per-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; }
.per { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--cocoa); font-size: 13px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.tag.own { border-style: dashed; border-color: var(--rose-ink); color: var(--cocoa); }
.tag.warn { border-color: var(--bordeaux); color: var(--bordeaux); background: #FBEFF2; font-weight: 600; }
.hero .per { background: rgba(255,251,240,.1); border-color: rgba(255,251,240,.42); color: var(--cream); }
.hero .tag { border-color: rgba(255,251,240,.42); color: var(--on-dark); }
.hero .tag.own { border-color: var(--rose); }
.hero .tag.warn { background: none; border-color: var(--rose); color: var(--rose); }
/* выгрузка раздела — справа в строке периода */
.sec-export { margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bordeaux); background: none; color: var(--bordeaux); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.sec-export:hover { background: var(--bordeaux); color: var(--cream); }
.how { margin-top: 6px; max-width: 62em; font-size: 14px; color: var(--muted); }
.how summary, .sum-how summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.how summary { color: var(--cocoa); text-decoration-color: var(--rose-ink); }
.how summary::-webkit-details-marker, .sum-how summary::-webkit-details-marker { display: none; }
/* уголок: вниз — закрыто, вверх — открыто */
.how summary::after, .sum-how summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.how[open] summary::after, .sum-how[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.how-body { padding: 2px 0 8px; }
.how-body p { margin: 0 0 8px; }
.how-body ul { margin: 0; padding-left: 18px; }
.how-body li { margin: 0 0 4px; }

/* ── Состояния: загрузка, ошибка страницы, секция без данных ── */
@keyframes sk-pulse { 50% { opacity: .45; } }
.sk { display: block; border-radius: 8px; background: rgba(255,251,240,.1); animation: sk-pulse 1.6s ease-in-out infinite; }
.sk.k { height: 5.5rem; margin-top: 2rem; }
.retry { margin-top: 20px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--rose); color: var(--cocoa); font-weight: 600; font-size: 14px; cursor: pointer; }
.retry:hover { background: var(--cream); }
.fail { margin-top: 24px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 14px; max-width: 46em; }
.fail b { display: block; font: 500 20px/1.2 var(--serif); color: var(--cocoa); margin-bottom: 6px; }

/* «Наверх»: появляется, когда страница прокручена дальше одного экрана */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--rose); border-radius: 50%; background: var(--cocoa); color: var(--cream); font-size: 20px; cursor: pointer; box-shadow: 0 6px 18px rgba(44,24,25,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--bordeaux); }
@media (max-width: 720px) { .to-top { right: 16px; bottom: 16px; } }

footer { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer p { margin: 0 0 4px; }

/* ── Адаптив ── */
@media (max-width: 1080px) {
  .controls { justify-items: start; }
  .period-row, .meta { justify-content: flex-start; }
  /* переключатель соцсетей не помещается — листается вбок; затухание у края показывает, что дальше есть ещё */
  .net-tabs { mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); padding-right: 32px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid rgba(255,251,240,.16); }
  .aud { grid-template-columns: 1fr 1fr; }
  .brands, .brands.two { grid-template-columns: 1fr; }
  .site { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .brand-col, .brand-col:first-child, .brand-col:last-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
/* Таблицы деталей до 960 px — карточки вместо прокрутки вбок: дата, полное название и все числа с подписями видны сразу;
   сортировка — те же кнопки заголовков, рядом переключателей. До 960 px таблица ВК не помещается без прокрутки. */
@media (max-width: 960px) {
  .detail .scroll { overflow: visible; background: none; }
  table.t, table.t thead, table.t tbody { display: block; min-width: 0; }
  table.t thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--graphite); }
  table.t th, table.t tr > th:first-child { display: block; padding: 0; border: 0; position: static; box-shadow: none; background: none; min-width: 0; text-align: left; }
  table.t th.l + th.l { min-width: 0; }
  table.t .sort { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; }
  table.t th[aria-sort] .sort { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
  table.t tbody tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px 10px; padding: 14px 10px; border-bottom: 1px solid var(--line); }
  table.t tbody tr.best { background: rgba(230,170,194,.2); border-radius: 12px; }
  table.t td, table.t tr > td:first-child, table.t tr.best > td:first-child, table.t tr.best td { display: block; padding: 0; border: 0; text-align: left; position: static; box-shadow: none; background: none; min-width: 0; max-width: none; }
  table.t td.l + td.l { min-width: 0; max-width: none; }
  table.t td.l, table.t td.pv-c { grid-column: 1 / -1; }
  table.t tr > th.nosort { display: none; } /* на телефоне заголовки — кнопки сортировки; «Превью» не сортируется */
  table.t tbody td.pv-c::before { display: none; } /* tbody — сильнее правила подписи у чисел ниже */
  table.t td.pv-c .pv, table.t td.pv-c .pv-none { width: 96px; height: 96px; }
  table.t td.l.num { font-size: 13px; color: var(--muted); }
  table.t td:not(.l) { font-weight: 600; }
  table.t td:not(.l)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
}
@media (max-width: 900px) {
  nav.sections { margin-left: 0; }
}
@media (max-width: 720px) {
  header.top .wrap { gap: 4px; padding-top: 10px; padding-bottom: 8px; flex-wrap: nowrap; min-height: 0; }
  /* на телефоне в шапке — только работающий раздел, «скоро»-разделы скрыты */
  nav.sections { gap: 2px; margin: 0 0 0 auto; padding: 0; }
  nav.sections span[aria-disabled] { display: none; }
  nav.sections a { padding: 6px 10px; font-size: 13px; }
  /* два рабочих раздела и логотип в одну строку: подпись «маркетинг» на телефоне убираем */
  .brand small { display: none; }
  .hero h1 { font-size: 2rem; }
  .block-head h2 { font-size: 2rem; }
  .kpi { padding: 14px 12px 6px 0; }
  .kpi + .kpi { padding-left: 12px; }
  .kpi:nth-child(3) { padding-left: 0; }
  .kpi .val { font-size: clamp(1.75rem, 8.5vw, 2.25rem); }
  .kpi .cmp, .kpi .src { font-size: 12px; }
  /* первый экран телефона: разделы страницы — одной строкой с прокруткой вбок, чтобы четыре цифры соцсетей помещались без прокрутки */
  .hero .wrap { padding-top: 1rem; }
  .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 0 16px; gap: 0 18px; mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); } /* затухание у края: строку можно листать */
  .jump::-webkit-scrollbar { display: none; }
  .jump a { flex: none; }
  .hero-top { gap: 16px; }
  .hero-top > div:first-child { width: 100%; min-width: 0; } /* иначе строка разделов растягивает блок и окно шире экрана */
  .kpi-cap .hint { margin-left: 0; }
  /* «Свои даты» и выгрузка — одной строкой, панель своих дат раскрывается под ними на всю ширину (в потоке), «Данные собраны» —
     строкой ниже: обёртки не участвуют в раскладке, их кнопки становятся ячейками сетки (по DOM порядок тот же — для клавиатуры ничего не меняется) */
  .controls { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "seg seg" "range export" "pop pop" "upd upd"; justify-items: start; align-items: center; gap: 8px; width: 100%; }
  .period-row, .range-wrap, .meta { display: contents; }
  .seg-label { grid-area: label; }
  .seg { grid-area: seg; }
  .range-btn { grid-area: range; min-height: 44px; max-width: 100%; }
  .range-btn span { white-space: normal; text-align: left; }
  .range-pop { grid-area: pop; position: static; width: 100%; justify-self: stretch; }
  .export { grid-area: export; padding: 0 14px; }
  .meta .updated { grid-area: upd; font-size: 12px; }
  .kpi-cap { margin-top: 1.25rem; }
  .aud, .aud.two, .site { grid-template-columns: 1fr; }
  /* карточки показателей листаются вбок; затухание у края — дальше есть ещё */
  .ncards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 24px 2px 0; mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .ncard { scroll-snap-align: start; }
  .ncard b { font-size: 30px; }
  .np-head .big { font-size: 44px; }
  .searches ol { columns: 1; }
  .later li { grid-template-columns: 1fr; }
  /* состав сводки на телефоне — карточка на соцсеть: название, под ним четыре числа с подписями, без прокрутки вбок */
  .sum-how table, .sum-how tbody, .sum-how tfoot { display: block; min-width: 0; }
  .sum-how thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sum-how tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,251,240,.16); }
  .sum-how th, .sum-how td { padding: 0; border: 0; text-align: left; }
  .sum-how th[scope="row"] { grid-column: 1 / -1; }
  .sum-how td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--on-dark-muted); font-weight: 400; }
  .sum-how tr.off td { grid-column: 1 / -1; }
}
/* Узкий телефон (320–359 px): карточки сводки — в одну колонку */
@media (max-width: 359px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpi, .kpi + .kpi, .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi + .kpi { border-top: 1px solid rgba(255,251,240,.16); }
}
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
  * { transition: none !important; }
}

/* ── Контент-план (plan.html): шапка с итогами месяца, строка периода и фильтров, календарь, панель события справа ── */
/* два слоя: день и колонка — тёплая подложка, публикация — белый лист с чёткой границей и тенью, чтобы карточки не сливались */
:root { --cell: #F3ECEA; --cell-out: #FAF7F6; --cell-line: #E2D3D7; --card-line: #D9C6CC; --card-shadow: 0 1px 2px rgba(44,24,25,.07), 0 3px 8px -3px rgba(44,24,25,.16); --card-shadow-hover: 0 2px 4px rgba(44,24,25,.08), 0 8px 18px -6px rgba(44,24,25,.24); }
.wrap.wide { max-width: 1680px; }
.plan-hero .wrap { padding-top: 1.5rem; padding-bottom: 1.25rem; }
.plan-hero .hero-top { align-items: flex-end; }
.plan-hero h1 { font-size: 2.5rem; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.add-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--rose); color: var(--cocoa); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.add-btn:hover { background: var(--cream); }
.plan-sum { margin-top: 1.25rem; }
.plan-sum > b { font-weight: 600; font-size: 14px; color: var(--cream); margin-right: 4px; }
/* итоги месяца — кнопки-фильтры по статусу: нажатая залита розовым, повторное нажатие снимает фильтр */
.plan-sum .per { min-height: 36px; padding: 2px 14px; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.plan-sum .per:hover { background: rgba(255,251,240,.2); }
.plan-sum .per.warn { border-color: var(--rose); color: var(--rose); }
.plan-sum .per[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--cocoa); }

.plan-bar { position: sticky; top: 0; z-index: 4; background: rgba(250,250,248,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; }
.bar-row:last-child { padding-bottom: 12px; }
.bar-row .seg.mini { margin: 0 0 0 auto; }
.pnav { display: flex; align-items: center; gap: 4px; }
.pn, .today-btn { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--cocoa); cursor: pointer; display: inline-grid; place-items: center; }
.pn:hover, .today-btn:hover { border-color: var(--rose-ink); }
.today-btn { padding: 0 16px; font-size: 13px; margin-left: 6px; }
.pname { margin: 0 8px; min-width: 9.5em; text-align: center; font: 400 1.75rem/1 var(--serif); color: var(--cocoa); font-variant-numeric: lining-nums; }
.filters { gap: 8px 12px; }
.netf { display: flex; flex-wrap: wrap; gap: 6px; }
.nf { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--cocoa); font-size: 13px; cursor: pointer; }
.nf .num { color: var(--muted); }
.nf:hover { border-color: var(--rose-ink); }
.nf[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.nf[aria-pressed="true"] .num { color: var(--on-dark-muted); }
.fsel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.fsel select, .fsel input { min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--muted); background: #fff; color: var(--cocoa); font: inherit; font-size: 13px; color-scheme: light; }
.fsel.q input { width: 13em; }
.reset-f { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--bordeaux); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.shown { font-size: 13px; color: var(--muted); }

/* значки соцсетей: знак соцсети белым на круге её цвета; название — во всплывающей подсказке и для экранного диктора */
.nbs { display: inline-flex; flex-wrap: wrap; gap: 3px; flex: none; }
.nb { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; }
.nb svg { width: 16px; height: 16px; display: block; }
.nb-telegram { background: #1A6FA0; } .nb-vk { background: #0057C2; } .nb-instagram { background: #A12A6D; } .nb-youtube { background: #B8001A; } .nb-pinterest { background: #A8001A; }

.cal { padding-top: 16px; }
/* Месяц: 7 колонок, в дне — строки публикаций; день растёт по числу публикаций, а не обрезает их */
.month .wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 12px; color: var(--muted); padding: 0 8px 6px; }
.month .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--cell-line); border-left: 1px solid var(--cell-line); }
.day { min-height: 128px; padding: 6px 8px 10px; border-right: 1px solid var(--cell-line); border-bottom: 1px solid var(--cell-line); background: var(--cell); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day.out { background: var(--cell-out); }
.day.out .d-num { color: var(--muted); }
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 30px; }
.d-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; font: 500 1.15rem/1 var(--serif); color: var(--cocoa); font-variant-numeric: lining-nums; }
.today .d-num { background: var(--cocoa); color: var(--cream); }
.month .d-wd { display: none; }
.d-add { width: 30px; height: 30px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s; }
.day:hover .d-add, .wcol:hover .d-add, .d-add:focus-visible { opacity: 1; }
.d-add:hover { background: var(--cream); color: var(--cocoa); }
@media (hover: none) { .d-add { opacity: 1; } }
.drop { outline: 2px dashed var(--bordeaux); outline-offset: -3px; background: #FBEFF2 !important; }

/* событие: полоса слева — цвет рубрики; черновик — пунктир; не вышло в срок — бордовая метка */
.ev { position: relative; text-align: left; cursor: pointer; font: inherit; color: var(--graphite); border: 1px solid var(--card-line); border-left: 4px solid var(--rub); background: #fff; box-shadow: var(--card-shadow); transition: box-shadow .15s, border-color .15s; }
.ev:hover { border-color: var(--rose-ink); border-left-color: var(--rub); box-shadow: var(--card-shadow-hover); }
.ev.open { box-shadow: 0 0 0 2px var(--bordeaux), var(--card-shadow-hover); }
.ev.st-draft { border-style: dashed; border-left-style: solid; border-color: #C4ADB4; border-left-color: var(--rub); }
.ev.st-published { background: var(--cream); }
.ig.over::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--bordeaux); }
.chip { display: grid; gap: 4px; justify-items: start; width: 100%; padding: 6px 12px 7px 7px; border-radius: 8px; font-size: 12px; line-height: 1.3; }
.chip .c-top { width: 100%; justify-content: flex-start; flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
.chip time { font-variant-numeric: tabular-nums; color: var(--muted); }
.chip .t { width: 100%; color: var(--cocoa); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.chip .ok { color: var(--up); }
.chip .late { color: var(--bordeaux); font-size: 11px; font-weight: 600; }
.chip .maybe { width: 100%; color: var(--muted); font-size: 11px; font-style: italic; }
/* превью в месяце — маленькое, вертикальное, как обложка поста */
.chip .th { position: relative; display: block; width: 64px; height: 80px; border-radius: 5px; overflow: hidden; background: var(--paper); }
.chip .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip .th b { position: absolute; right: 3px; bottom: 3px; padding: 0 5px; border-radius: 999px; background: rgba(44,24,25,.8); color: #fff; font-size: 10px; }
.chip .play { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.chip .play::after { left: 9px; top: 7px; border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.chip .rub { font-size: 10.5px; padding: 0 7px; }

/* Неделя и статусы: карточки с превью */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wcol { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 8px; border-radius: 14px; background: var(--cell); border: 1px solid var(--cell-line); min-height: 320px; }
.wcol.today { border-color: var(--cocoa); }
.wcol .d-wd { font: 500 1.1rem/1.15 var(--serif); color: var(--cocoa); }
.wcol.today .d-wd { font-weight: 600; }
.card { display: grid; gap: 6px; width: 100%; padding: 8px 10px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.card .th { position: relative; display: block; height: 180px; border-radius: 6px; overflow: hidden; background: var(--paper); }
.card .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .th b { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(44,24,25,.8); color: #fff; font-size: 11px; }
.play { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(44,24,25,.72); }
.play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.c-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.c-top time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.c-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rub, .st { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); color: var(--graphite); }
.rub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rub); }
.st-published.st { color: var(--up); border-color: #BFD8C5; }
.st-scheduled.st { color: var(--cocoa); border-color: var(--rose-ink); }
.st-over { color: var(--bordeaux); border-color: var(--bordeaux); background: #FBEFF2; font-weight: 600; }
.none { margin: 4px; font-size: 12px; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.bcol { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 14px; background: var(--cell); border: 1px solid var(--cell-line); min-height: 200px; }
.bcol h3 { margin: 2px 4px 4px; font: 500 1.35rem/1.1 var(--serif); color: var(--cocoa); display: flex; justify-content: space-between; }
.bcol h3 .num { font: 600 13px/1.6 var(--sans); color: var(--muted); }
.iggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-width: 720px; margin: 0 auto; }
.ig { position: relative; aspect-ratio: 4 / 5; padding: 0; border-radius: 0; border-width: 0; overflow: hidden; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.ig.st-draft, .ig.st-review { opacity: .78; }
.ig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-text { display: grid; place-items: center; height: 100%; padding: 16px; font: 400 1.1rem/1.2 var(--serif); color: var(--cocoa); text-align: center; }
.ig-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(44,24,25,.82)); color: #fff; font-size: 11px; }
.ig.over::after { top: 8px; right: 8px; width: 10px; height: 10px; box-shadow: 0 0 0 2px #fff; }

/* Панель события: справа поверх страницы, календарь рядом остаётся рабочим (на широком экране он ужимается) */
.ev-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 6; width: min(460px, 100vw); display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(44,24,25,.12); }
.ev-panel[hidden] { display: none; }
@media (min-width: 1280px) { body.panel-open main { margin-right: 460px; } }
@media (prefers-reduced-motion: no-preference) { .ev-panel { animation: panel-in .18s ease-out; } }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } }
.p-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.p-head h2 { margin: 0; font: 400 1.75rem/1.1 var(--serif); color: var(--cocoa); }
.p-close { width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; cursor: pointer; display: grid; place-items: center; color: var(--cocoa); font-size: 18px; }
.p-close:hover { background: var(--cream); }
.p-note { margin: 12px 20px 0; padding: 10px 12px; border-radius: 10px; background: #EEF5EF; color: var(--up); font-size: 13px; }
.p-note.maybe { background: var(--cream); color: var(--graphite); border: 1px dashed var(--rose-ink); }
.p-note small, .p-warn small { display: block; margin-top: 4px; color: var(--graphite); font-size: 12px; }
.st-maybe { color: var(--muted); border-style: dashed; font-style: italic; }
.posted a small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.posted a.cand { border-style: dashed; }
.p-warn { margin: 12px 20px 0; padding: 10px 12px; border-radius: 10px; background: #FBEFF2; color: var(--bordeaux); font-size: 13px; }
.p-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 16px; align-content: start; }
.p-body label, .p-lbl, .p-row legend { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.p-row { margin: 0; padding: 0; border: 0; min-width: 0; }
.p-row legend { margin-bottom: 6px; }
.p-row .seg.mini { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; }
.p-row .seg.mini button { min-height: 40px; padding: 0 12px; font-size: 13px; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-body input:not([type="checkbox"]):not([type="file"]), .p-body select, .p-body textarea { min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--muted); background: #fff; color: var(--cocoa); font: inherit; font-size: 14px; color-scheme: light; }
.p-body textarea { resize: vertical; line-height: 1.5; min-height: 160px; }
.p-count { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.p-count b { color: var(--bordeaux); font-weight: 600; }
.accs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p-body .acc, .p-body .chk { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--cocoa); font-size: 13px; cursor: pointer; }
.p-body .acc:has(input:checked) { border-color: var(--cocoa); background: var(--cream); }
.chk small { color: var(--muted); }
.chk + .chk { margin-top: 6px; }
.p-err { margin: 6px 0 0; color: var(--bordeaux); font-size: 12px; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.media figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.media figcaption { padding: 4px 6px; font-size: 11px; color: var(--muted); }
.m-del { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(44,24,25,.78); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.p-body .m-add { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 4 / 5; border: 1px dashed var(--rose-ink); border-radius: 10px; background: #fff; color: var(--cocoa); cursor: pointer; text-align: center; }
.m-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.m-add:focus-within { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.p-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.p-foot button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--muted); background: none; color: var(--cocoa); font-size: 13px; font-weight: 600; cursor: pointer; }
.p-foot button:hover { background: var(--cream); }
.p-foot .danger { border-color: var(--bordeaux); color: var(--bordeaux); }
.p-foot a { font-size: 13px; color: var(--cocoa); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.posted { display: grid; gap: 6px; }
.posted a, .posted button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--cocoa); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.posted button .ico { width: 20px; height: 20px; flex: none; stroke-width: 1.6; }
.nb-pmp { background: #2F6BFF; color: #fff; font: 700 11px/1 var(--sans); }
.posted button:hover, .posted a:hover { border-color: var(--rose-ink); text-decoration: underline; text-underline-offset: 4px; }
.p-saved { width: 100%; margin: 0; font-size: 12px; color: var(--muted); }

/* подсказка внизу экрана: что сделано и «Отменить» */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 7; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--cocoa); color: var(--cream); font-size: 14px; box-shadow: 0 10px 30px rgba(44,24,25,.3); }
.toast[hidden] { display: none; }
.toast button { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--rose); color: var(--cocoa); font-weight: 600; cursor: pointer; }

@media (max-width: 1080px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* телефон: месяц и неделя — списком по дням, пустые дни не показываем */
@media (max-width: 720px) {
  .pname { font-size: 1.4rem; min-width: 0; }
  .bar-row .seg.mini { margin: 0; overflow-x: auto; max-width: 100%; }
  .bar-row .seg.mini button { padding: 0 12px; white-space: nowrap; }
  .netf { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .nf { flex: none; }
  .fsel { flex: 1 1 40%; }
  .fsel select, .fsel input, .fsel.q input { width: 100%; }
  .fsel.q { flex-basis: 100%; }
  .plan-bar { position: static; }
  .month .wd { display: none; }
  .month .grid { grid-template-columns: minmax(0, 1fr); border-left: 0; }
  .day { min-height: 0; border-right: 0; }
  .day.empty, .day.out { display: none; }
  .month .d-wd { display: inline; flex: 1; font-size: 13px; color: var(--muted); }
  .chip { font-size: 14px; grid-template-columns: auto 1fr; column-gap: 10px; }
  .chip .th { grid-row: 1 / span 4; grid-column: 1; width: 72px; height: 90px; }
  .chip > :not(.th) { grid-column: 2; }
  .week, .board { grid-template-columns: minmax(0, 1fr); }
  .wcol { min-height: 0; }
  .card .th { height: 220px; }
  .accs, .p-two { grid-template-columns: 1fr; }
  .toast { bottom: 16px; border-radius: 18px; }
}
@media (max-width: 720px) { .plan-sum .per { min-height: 44px; } }

/* Аналитика постов: по соцсети — две колонки «месяц / 7 дней», в каждой три лучших поста; место — крупной цифрой (это и правда порядок) */
.stats { display: grid; gap: 16px; }
.stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.stats-head p { margin: 0; max-width: 62em; color: var(--muted); font-size: 14px; }
.stats-head .seg.mini { margin: 0; }
.net-top { padding: 16px 18px 18px; border-radius: 16px; background: var(--cell); border: 1px solid var(--cell-line); }
.net-top h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 1.6rem/1.1 var(--serif); color: var(--cocoa); }
.net-top h3 .nb { width: 24px; height: 24px; }
.net-top h3 .nb svg { width: 18px; height: 18px; }
.note-s { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.top-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.top-cols h4 { margin: 0 0 8px; font: 600 13px/1.3 var(--sans); color: var(--graphite); }
.top3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: place; }
.top3 li { counter-increment: place; display: grid; grid-template-columns: 28px 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); }
.top3 li::before { content: counter(place); font: 400 2rem/1 var(--serif); color: var(--rose-ink); font-variant-numeric: lining-nums; text-align: center; }
.top3 li:first-child::before { color: var(--bordeaux); }
.t-img { display: block; width: 64px; height: 80px; border-radius: 6px; overflow: hidden; background: var(--paper); }
.t-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-body { min-width: 0; display: grid; gap: 6px; }
.t-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--cocoa); font-size: 13px; line-height: 1.4; text-decoration: none; }
.t-text:hover { text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
.t-nums { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.t-nums div { display: grid; }
.t-nums dt { font-size: 11px; color: var(--muted); }
.t-nums dd { margin: 0; font: 500 1.3rem/1.1 var(--serif); color: var(--cocoa); font-variant-numeric: lining-nums tabular-nums; }
.t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0; font-size: 12px; color: var(--muted); }
.t-plan { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--muted); background: none; color: var(--cocoa); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.t-plan:hover { background: var(--cream); }
@media (max-width: 960px) { .top-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .top3 li { grid-template-columns: 22px 56px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .t-img { width: 56px; height: 70px; }
  .t-plan { min-height: 44px; }
}

/* соцсеть в аналитике постов — раскрывающийся блок: в свёрнутом виде название и лучший пост месяца, стрелка показывает состояние */
.stats-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.all-nets { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--cocoa); font: inherit; font-size: 13px; cursor: pointer; }
.all-nets:hover { border-color: var(--rose-ink); }
.net-top { padding: 0; }
.net-top > summary { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 64px; padding: 10px 18px; cursor: pointer; list-style: none; border-radius: 16px; }
.net-top > summary::-webkit-details-marker { display: none; }
.net-top > summary:hover { background: rgba(255,255,255,.45); }
.net-top > summary:focus-visible { outline-offset: -2px; }
.nt-name { display: flex; align-items: center; gap: 10px; font: 400 1.6rem/1.1 var(--serif); color: var(--cocoa); }
.nt-name .nb { width: 24px; height: 24px; }
.nt-name .nb svg { width: 18px; height: 18px; }
.nt-best { flex: 1 1 18em; min-width: 0; font-size: 13px; color: var(--muted); }
.nt-chev { flex: none; width: 20px; height: 20px; color: var(--cocoa); margin-left: auto; }
@media (prefers-reduced-motion: no-preference) { .nt-chev { transition: transform .2s ease; } }
.net-top[open] .nt-chev { transform: rotate(180deg); }
.net-top[open] > summary { border-bottom: 1px solid var(--cell-line); border-radius: 16px 16px 0 0; }
.net-top > .note-s { margin: 12px 18px 0; }
.net-top > .top-cols { margin: 12px 18px 18px; }
.stats-head .stats-ctl .seg.mini { margin: 0; }

/* фото в панели — кнопка «открыть крупно»; окно просмотра: фото по центру, стрелки — соседние фото публикации */
.m-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.m-zoom img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.zoom-dlg { max-width: min(92vw, 1100px); max-height: 94vh; padding: 12px; border: 0; border-radius: 16px; background: var(--cocoa); color: var(--cream); }
.zoom-dlg::backdrop { background: rgba(20,10,10,.72); }
.zoom-dlg figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.zoom-dlg img { display: block; max-width: 100%; max-height: calc(94vh - 120px); object-fit: contain; border-radius: 8px; }
.zoom-dlg figcaption { font-size: 13px; color: var(--on-dark-muted); }
.zoom-dlg figcaption a { color: var(--rose); }
.zoom-ctl { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.zoom-ctl button { min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,251,240,.42); background: none; color: var(--cream); font: inherit; font-size: 15px; cursor: pointer; }
.zoom-ctl button:hover { background: rgba(255,251,240,.12); }
