@font-face { font-family: "Mabry Pro"; src: url("fonts/MabryPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mabry Pro"; src: url("fonts/MabryPro-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mabry Pro"; src: url("fonts/MabryPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Brand tokens — з «Палітри дизайнера» (Dark) */
:root {
  --bg: #0D0D0D;
  --yellow: #FED100;
  --yellow-2: #FFD825;
  --yellow-glow: #FEE900;
  --white: #FFFFFF;
  --text-2: #AEAEAE;
  --text-3: #A8A8A8;
  --index: #707070;
  --arrow: #404040;
  --card-a: #080808;
  --card-b: #151515;
  --card-c: #0D0D0D;
  --plate: #252525;
  --line: #4B4B4B;
  --line-2: #1A1A1A;
  --violet: #5C3EFF;
  --good: #FED100;
  --bad: #FF5C5C;
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: "Mabry Pro", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; color: inherit; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.ta-r { text-align: right; }
.ta-l { text-align: left !important; }
.hl { color: var(--yellow); }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(13,13,13,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: #000; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 24px rgba(254,233,0,.25); }
.brand__name { font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand__sub { color: var(--index); font-size: 12px; }
.live { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(254,209,0,.6); animation: pulse 2s infinite; }
.live__next { color: var(--index); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(254,209,0,0); } 100% { box-shadow: 0 0 0 0 rgba(254,209,0,0); } }

/* Buttons */
.btn { border: 0; background: var(--yellow); color: #000; font-weight: 500; padding: 9px 16px; border-radius: 12px; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--yellow-2); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: var(--plate); color: var(--white); }
.btn--ghost:hover { background: #303030; }

/* Hero */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 40px 0 20px; }
.eyebrow { color: var(--index); font-size: 13px; margin-bottom: 6px; }
.eyebrow b { color: var(--yellow); font-weight: 500; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.tag { background: var(--yellow); color: #000; padding: 0 12px; border-radius: 12px; display: inline-block; }
.hero p { margin: 8px 0 0; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: flex; background: var(--plate); border-radius: 14px; padding: 4px; }
.seg button { background: none; border: 0; padding: 9px 16px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.seg button.is-active { background: var(--yellow); color: #000; }
.select { background: var(--plate); border: 0; border-radius: 14px; padding: 0 14px; height: 44px; cursor: pointer; }

.demo-note { border: 1px dashed var(--line); color: var(--text-2); border-radius: 14px; padding: 10px 16px; font-size: 13px; margin-bottom: 20px; }
.demo-note b { color: var(--yellow); font-weight: 500; }

/* Cards */
.card { background: linear-gradient(160deg, var(--card-a), var(--card-b) 55%, var(--card-c)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; min-width: 0; margin-bottom: 20px; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card__head h2 { font-size: 19px; }
.idx { color: var(--index); font-size: 13px; font-variant-numeric: tabular-nums; }
.src { margin-left: auto; font-size: 12px; color: var(--text-2); background: var(--plate); padding: 4px 10px; border-radius: 999px; }
.grid { display: grid; gap: 20px; }
.grid > .card { margin-bottom: 0; }
.grid { margin-bottom: 20px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--plan { grid-template-columns: 1.1fr 1fr; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: linear-gradient(160deg, var(--card-a), var(--card-b) 55%, var(--card-c)); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; min-width: 0; }
.kpi--accent { background: var(--yellow); color: #000; border-color: var(--yellow); box-shadow: inset 0 0 40px rgba(254,233,0,.6); }
.kpi__label { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.kpi--accent .kpi__label { color: rgba(0,0,0,.65); }
.kpi__value { font-size: 30px; font-weight: 700; margin: 6px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__delta { font-size: 12px; font-weight: 500; }
.up { color: var(--good); }
.down { color: var(--bad); }
.kpi--accent .up, .kpi--accent .down { color: #000; }
.kpi__src { font-size: 11px; color: var(--index); }
.kpi--accent .kpi__src { color: rgba(0,0,0,.5); }

/* Plan */
.plan__nums { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.plan__big { font-size: 44px; font-weight: 700; color: var(--yellow); line-height: 1; font-variant-numeric: tabular-nums; }
.plan__goal { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 10px; background: var(--plate); border-radius: 999px; }
.bar__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--yellow-2)); box-shadow: 0 0 16px rgba(254,233,0,.35); transition: width .6s ease; max-width: 100%; }
.bar--lg { height: 18px; }
.bar__mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--white); border-radius: 2px; }
.bar__mark::after { content: "темп"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-2); }
.plan__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.plan__foot div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.plan__foot b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel__row { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; }
.funnel__bar { height: 30px; background: var(--plate); border-radius: 8px; overflow: hidden; }
.funnel__fill { height: 100%; background: var(--yellow); border-radius: 8px; display: flex; align-items: center; padding-left: 10px; color: #000; font-weight: 700; font-size: 13px; transition: width .6s ease; min-width: fit-content; }
.funnel__row:nth-child(n+3) .funnel__fill { background: linear-gradient(90deg, var(--yellow), var(--yellow-2)); }
.funnel__pct { text-align: right; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Table */
.table-scroll { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 880px; }
.table th { font-weight: 500; color: var(--text-2); font-size: 12px; text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--white); }
.table th.is-sorted { color: var(--yellow); }
.table th.is-sorted::after { content: " ↓"; }
.table td { padding: 14px 10px; border-bottom: 1px solid var(--line-2); text-align: right; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }
.rank { color: var(--index); text-align: left !important; }
.rank--1 { color: var(--yellow); font-weight: 700; }
.mgr { display: flex; align-items: center; gap: 10px; text-align: left; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--plate); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.mgr small { display: block; color: var(--index); font-size: 12px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--plate); }
.pill--bad { color: var(--bad); }
.plancell { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.plancell .bar { flex: 1; height: 6px; }
.plancell span { width: 42px; text-align: right; font-size: 13px; }
.row-total td { color: var(--text-2); border-top: 1px solid var(--line); font-weight: 500; }

/* Charts */
.chart { position: relative; height: 280px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--plate); border-radius: 14px; padding: 14px; }
.stat__v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__l { font-size: 12px; color: var(--text-2); }
.stat--warn .stat__v { color: var(--bad); }
.stat--accent .stat__v { color: var(--yellow); }

/* Sources */
.sources { display: flex; flex-direction: column; gap: 12px; }
.source { display: grid; grid-template-columns: 110px 1fr 70px 64px; gap: 12px; align-items: center; font-size: 14px; }
.source .bar { height: 8px; }
.source__n, .source__c { text-align: right; font-variant-numeric: tabular-nums; }
.source__c { color: var(--text-2); font-size: 13px; }
.sources__head { font-size: 12px; color: var(--index); }

/* Report */
.report__actions { margin-left: auto; display: flex; gap: 8px; }
.report__body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.report__col h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.report__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.report__col li { position: relative; padding-left: 18px; }
.report__col li::before { content: "→"; position: absolute; left: 0; color: var(--arrow); }
.report__col--good li::before { content: "✓"; color: var(--yellow); }
.report__col--bad li::before { content: "!"; color: var(--bad); font-weight: 700; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 48px; color: var(--text-2); font-size: 13px; }
.foot b { color: var(--white); font-weight: 500; }

/* Responsive */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--plan { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .live__next, .brand__sub { display: none; }
  .live { font-size: 12px; white-space: nowrap; }
  .hero { padding-top: 24px; }
  .controls, .seg { width: 100%; }
  .seg button { flex: 1; padding: 9px 6px; font-size: 13px; }
  .select { width: 100%; }
  .kpi__value { font-size: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .report__body { grid-template-columns: 1fr; }
  .report__actions { margin-left: 0; width: 100%; }
  .source { grid-template-columns: 90px 1fr 50px 52px; gap: 8px; }
  .funnel__row { grid-template-columns: 96px 1fr 44px; }
  .plan__foot { grid-template-columns: 1fr 1fr; }
  .plan__big { font-size: 34px; }
  .chart { height: 240px; }
}

@media print {
  body { background: #fff; color: #000; }
  .topbar, .hero .controls, .demo-note, .report__actions, .chart { display: none; }
  .card, .kpi { background: #fff; border-color: #ddd; break-inside: avoid; }
}

/* ===== v2: розділи під таблиці ===== */
h3 { margin: 0; font-size: 17px; font-weight: 700; }
.small { font-size: 12px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 13px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { color: var(--white); background: var(--plate); }
.hours { font-size: 13px; margin-top: 10px !important; color: var(--white); }
.hours b { color: var(--yellow); font-weight: 500; }

.sources-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.conn { display: inline-flex; align-items: center; gap: 8px; background: var(--plate); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--text-2); }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--index); }
.conn--ok i { background: var(--yellow); box-shadow: 0 0 8px var(--yellow-glow); }
.conn--err i { background: var(--bad); }
.conn b { color: var(--white); font-weight: 500; }

.block { margin-bottom: 44px; scroll-margin-top: 84px; }
#tuesday { scroll-margin-top: 84px; }
.block__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.block__head h2 { font-size: clamp(24px, 3vw, 32px); }
.block__head .idx { font-size: 15px; }
.block__note { margin: -8px 0 18px; font-size: 13px; max-width: 760px; }
.src--live { color: #000; background: var(--yellow); }
.src--demo { color: var(--text-2); border: 1px dashed var(--line); background: none; }
.block__head .src { margin-left: 0; }
.select--sm { height: 34px; border-radius: 10px; font-size: 13px; margin-left: auto; }
.kpis--6 { grid-template-columns: repeat(6, 1fr); }
.chart--tall { height: 320px; }
.chart--sm { height: 200px; margin-bottom: 14px; }
.plan__foot { grid-template-columns: repeat(4, 1fr); }

.is-inactive { opacity: .45; }
.role { display: inline-block; font-size: 11px; color: var(--index); }
.role--lead { color: var(--yellow); }
.mgr__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* матриця з теплокартою */
.table--matrix { min-width: 560px; font-size: 13px; }
.table--matrix td, .table--matrix th { padding: 9px 8px; }
.table--matrix td:first-child, .table--matrix th:first-child { text-align: left; white-space: normal; min-width: 170px; color: var(--text-2); }
.table--matrix tr.is-total td { color: var(--white); font-weight: 700; border-top: 1px solid var(--line); }
.table--matrix tr.is-group td { color: var(--yellow); font-weight: 500; padding-top: 16px; border-bottom: 0; }
.table--matrix td.hot { position: relative; }
.table--matrix td .heatbg { position: absolute; inset: 3px 2px; border-radius: 6px; background: var(--yellow); z-index: 0; }
.table--matrix td span { position: relative; z-index: 1; }
.table--matrix th.is-hl, .table--matrix td.is-hl { box-shadow: inset 0 0 0 9999px rgba(254,209,0,.06); }
.table--matrix td.col-total, .table--matrix th.col-total { color: var(--white); font-weight: 700; }

/* quality */
.quality { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.qrow { display: grid; grid-template-columns: 150px 1fr 110px; gap: 12px; align-items: center; font-size: 13px; }
.qbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--plate); }
.qbar .q { background: var(--yellow); }
.qbar .n { background: #4B4B4B; }
.qrow small { color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* crm rings */
.crm { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ring { text-align: center; font-size: 12px; color: var(--text-2); }
.ring__c { --p: 0; width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), var(--plate) 0); display: grid; place-items: center; }
.ring__c b { width: 56px; height: 56px; border-radius: 50%; background: var(--card-b); display: grid; place-items: center; color: var(--white); font-size: 14px; }
.ring--bad .ring__c { background: conic-gradient(var(--bad) calc(var(--p) * 1%), var(--plate) 0); }

/* source cards */
.srcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.scard { background: var(--plate); border-radius: 14px; padding: 14px; }
.scard__name { font-size: 13px; color: var(--text-2); min-height: 36px; }
.scard__sum { font-size: 24px; font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; }
.scard__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.scard__meta b { color: var(--white); font-weight: 500; }
.scard--empty .scard__sum { color: var(--index); }

/* feedback */
.feedback { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.fb { background: var(--plate); border-radius: 14px; padding: 16px; font-size: 14px; }
.fb h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fb p { margin: 0; color: var(--text-2); white-space: pre-line; }
.fb--all { grid-column: 1 / -1; border: 1px solid var(--yellow); background: none; }
.fb--empty p { color: var(--index); font-style: italic; }

/* heatmap */
.heat { display: grid; grid-template-columns: 34px repeat(8, 1fr); gap: 4px; font-size: 11px; color: var(--text-2); }
.heat span { text-align: center; }
.heat .cell { height: 34px; border-radius: 6px; background: var(--yellow); display: grid; place-items: center; color: #000; font-weight: 500; }

.state-msg { color: var(--text-2); font-size: 13px; padding: 12px 0; }
.state-msg--err { color: var(--bad); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .kpis--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .kpis--6 { grid-template-columns: repeat(2, 1fr); }
  .plan__foot { grid-template-columns: 1fr 1fr; }
  .qrow { grid-template-columns: 90px 1fr 84px; }
  .select--sm { margin-left: 0; width: 100%; }
}
.plancell .bar__mark { top: -3px; bottom: -3px; }
.plancell .bar__mark::after { display: none; }
.src--api { color: var(--yellow); background: rgba(254,209,0,.1); border: 1px solid rgba(254,209,0,.35); }

/* ===== логотип ===== */
.brand__logo { width: 44px; height: 44px; border-radius: 50%; display: block; box-shadow: 0 0 0 1.5px var(--yellow), 0 0 18px rgba(254,233,0,.28); }
.hero { position: relative; }
.hero > * { position: relative; z-index: 1; }
.hero > .hero__mark { position: absolute; z-index: 0; right: -40px; top: -70px; width: 420px; height: 420px; border-radius: 50%; opacity: .07; mix-blend-mode: screen; pointer-events: none; }
.report__logo { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--yellow); }
.foot { align-items: center; }
.foot__logo { width: 28px; height: 28px; border-radius: 50%; opacity: .8; }
@media (max-width: 640px) {
  .hero > .hero__mark { width: 260px; height: 260px; right: -70px; top: -30px; }
}
@media print {
  .report__logo { box-shadow: none; }
  .hero__mark { display: none; }
}
html, body { overflow-x: clip; }
#rateLabel { margin-top: 4px !important; }
.rate { margin-left: 12px; }

/* ===== живі дані ===== */
.kpis--2 { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.subhead { margin: 18px 0 10px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.reasons { display: flex; flex-direction: column; gap: 8px; }
.reason { display: grid; grid-template-columns: 1fr 120px 40px; gap: 10px; align-items: center; font-size: 13px; }
.reason .bar { height: 6px; }
.reason b { text-align: right; font-weight: 500; }
.grid--flat { margin-bottom: 0; }
.funnel h4 { margin: 0 0 8px; font-size: 14px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--plate); color: var(--text-2); margin-left: 6px; vertical-align: 1px; }
.badge--main { background: var(--yellow); color: #000; }
.badge--soon { border: 1px dashed var(--line); background: none; }
.kind { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--plate); white-space: nowrap; }
.kind--answered { color: var(--yellow); }
.kind--not_answered { color: var(--text-2); }
.state-msg--wait { color: var(--yellow); }
.table--matrix td.ta-l, .table--matrix th.ta-l { text-align: left; }

/* ===== звіт на вівторок: слайди ===== */
.weeknav { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.weeknav .btn { padding: 6px 12px; }
#tuesday .report__actions { margin-left: auto; }
.slides { display: flex; flex-direction: column; gap: 18px; }
.slide { background: linear-gradient(160deg, var(--card-a), var(--card-b) 55%, var(--card-c)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; }
.slide__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; border-left: 4px solid var(--yellow); padding-left: 12px; }
.slide__head h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.slide__num { margin-left: auto; color: var(--index); font-size: 13px; }
.slide--title { text-align: left; padding: 40px 26px; }
.slide--title h3 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 8px; }
.slide--title .tag { font-size: inherit; }
.sgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sbox { background: var(--plate); border-radius: 14px; padding: 16px; border-top: 2px solid var(--yellow); }
.sbox__label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.sbox__big { font-size: 34px; font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sbox__big--white { color: var(--white); }
.sbox__big--warn { color: #FFB547; }
.sbox__sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.sbox__row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.sbox__row:last-child { border-bottom: 0; }
.sbox__row b { color: var(--yellow); }
.sfunnel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.sfunnel .sbox__big { font-size: 28px; }
.scompare { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.scompare b.down { color: var(--bad); }
.manual { width: 100%; min-height: 90px; background: transparent; border: 1px dashed var(--line); border-radius: 12px; color: var(--white); font: inherit; font-size: 14px; padding: 12px; resize: vertical; }
.manual:focus { outline: none; border-color: var(--yellow); }
.manual--inline { min-height: 0; width: 140px; padding: 4px 8px; font-size: 18px; font-weight: 700; color: var(--yellow); }
.split { display: flex; height: 22px; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.split div { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #000; }
@media print {
  .slide { break-inside: avoid; page-break-after: always; background: #fff; border-color: #ddd; }
  .weeknav, #tuesday .block__note { display: none; }
  .manual { border: 0; color: #000; }
}
.sgrid--2 { grid-template-columns: 1fr 1fr; }
.autolist { list-style: none; margin: 0; padding: 14px 16px; background: var(--plate); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.autolist li { position: relative; padding-left: 20px; }
.autolist--good li::before { content: "▲"; position: absolute; left: 0; color: var(--yellow); font-size: 11px; top: 3px; }
.autolist--bad li::before { content: "▼"; position: absolute; left: 0; color: var(--bad); font-size: 11px; top: 3px; }
.sbox__big--bad { color: var(--bad); }
.sbox__big small { font-size: 13px; font-weight: 500; margin-left: 6px; }
@media (max-width: 640px) { .sgrid--2 { grid-template-columns: 1fr; } }
.table--eff { min-width: 820px; }
.table--eff tr.is-source td { color: var(--white); background: rgba(255,255,255,.035); border-top: 1px solid var(--line); }
.table--eff tr.is-mgr td:first-child { padding-left: 22px; display: flex; align-items: center; gap: 8px; }
.table--eff td.conv { color: var(--yellow); font-weight: 700; }
.table--eff tr.is-total td { background: rgba(254,209,0,.08); }

/* архів закритого місяця: лише весь місяць, без звіту на вівторок */
body.is-archive #periodSeg, body.is-archive #tuesday, body.is-archive #stuckCard, body.is-archive .nav a[href="#tuesday"] { display: none; }
body.is-archive .hero h1 .tag { background: #AEAEAE; }

/* хто завис */
.table--list td { padding: 10px; }
.table--list tr.is-hot td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
body.is-archive #pipeCard { display: none; }
.table--list tr.is-future td { color: var(--text-2); }
