:root {
  --bg: #f4f5f7; --panel: #fff; --side: #1f2430; --side-text: #d6d9e0; --text: #1c1e24; --muted: #6b7280; --border: #e3e5ea;
  --accent: #2da9e8; --accent-dark: #1f8fc9; --danger: #d9534f; --radius: 12px;
  /* палитра диаграмм (dataviz, светлая тема): менеджеры - категориальные слоты 1-3, команда - серый */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --team: #8a8f99;
  --seq1: #cde2fb; --seq2: #9ec5f4; --seq3: #5598e7; --seq4: #256abf; --seq5: #0d366b;
  --good: #2b7a4b; --good-bg: #e8f7ee; --warn: #b07a1f; --warn-bg: #fff4e5; --bad: #c8403c; --bad-bg: #fdecec; --info-bg: #eef6fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 15px; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent-dark); }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }

.gate { height: 100%; display: flex; align-items: center; justify-content: center; }
.gate-card { background: var(--panel); padding: 32px; border-radius: 16px; max-width: 420px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.btn, button.primary { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; font-weight: 600; text-decoration: none; }
button.primary:disabled { opacity: .6; }
button.link { background: none; border: 0; color: var(--accent-dark); cursor: pointer; padding: 0; }
button.ghost { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
button.ghost.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.icon { background: none; border: 0; font-size: 20px; cursor: pointer; }

.app { display: flex; height: 100%; }
.nav { width: 230px; flex-shrink: 0; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; }
.nav-brand { display: flex; gap: 10px; align-items: center; padding: 6px 8px 16px; }
.nav-brand b { display: block; font-size: 15px; } .nav-brand .small { color: #8a91a0; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nav > a { color: var(--side-text); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.nav > a:hover { background: #283040; } .nav > a.on { background: var(--accent); color: #fff; font-weight: 600; }
.nav-bottom { margin-top: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.nav-bottom a { color: #9fc9e6; text-decoration: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.top h1 { font-size: 18px; margin: 0; flex: 1; }
.top .icon { display: none; }
.period { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.period button { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.period button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.period input[type=date] { border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px; font-size: 12px; }
.content { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }
.content > p.lead { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

/* сетки и карточки */
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.card h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.card h4 { margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.card p { margin: 0 0 6px; line-height: 1.45; }
.section { margin-bottom: 16px; }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1; }
.kpi .v small { font-size: 14px; font-weight: 500; color: var(--muted); }
.kpi .d { font-size: 12px; }
.kpi .t { font-size: 12px; color: var(--muted); }
.score { display: inline-block; min-width: 34px; text-align: center; border-radius: 8px; padding: 2px 6px; font-weight: 600; background: #f1f2f4; }
.score.good { background: var(--good-bg); } .score.warn { background: var(--warn-bg); } .score.bad { background: var(--bad-bg); }
.score.big { font-size: 28px; padding: 6px 12px; }

/* выводы */
.concl { display: flex; flex-direction: column; gap: 8px; }
.concl-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); border: 1px solid #cfe7f5; font-size: 14px; line-height: 1.4; }
.concl-item.good { background: var(--good-bg); border-color: #b7e2c6; } .concl-item.warn { background: var(--warn-bg); border-color: #f5d9a8; } .concl-item.bad { background: var(--bad-bg); border-color: #f1c0c0; }
.concl-item a { white-space: nowrap; font-size: 12px; align-self: center; }

/* диаграммы */
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; max-width: 100%; font-family: inherit; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tip { position: fixed; pointer-events: none; background: #1f2430; color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; z-index: 60; max-width: 260px; line-height: 1.35; }
.heatwrap { overflow-x: auto; max-width: 100%; }
.heat { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 3px; font-size: 13px; table-layout: fixed; }
.heat th { font-weight: 500; color: var(--muted); font-size: 11px; line-height: 1.2; text-align: center; padding: 2px 3px; vertical-align: bottom; overflow-wrap: anywhere; }
.heat th:first-child, .heat td.lbl { width: 110px; text-align: left; }
.heat td { text-align: center; padding: 7px 2px; border-radius: 6px; }
.heat td.lbl { text-align: left; background: none; color: var(--text); white-space: nowrap; }
.heat td.w { color: var(--muted); font-size: 11px; background: none; }

/* таблицы */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.t th { color: var(--muted); font-weight: 500; font-size: 12px; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover { background: #f7f9fb; }
.tag { display: inline-block; background: #f1f2f4; border-radius: 999px; padding: 2px 8px; font-size: 12px; margin: 1px 4px 1px 0; }
.tag.crit { background: var(--bad-bg); color: var(--bad); }
.tag.cat { background: var(--info-bg); color: var(--accent-dark); }
.bar { height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--seq3); }

/* фильтры и лента */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters select, .filters input { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; background: var(--panel); }
.filters input[type=search] { min-width: 220px; flex: 1; }
.filters label.chk { font-size: 13px; display: flex; gap: 4px; align-items: center; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.chips button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.split { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 14px; align-items: start; }
.list { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-height: calc(100vh - 210px); overflow-y: auto; }
.item { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.item:hover { background: #f7f9fb; } .item.active { background: var(--info-bg); }
.item-top { display: flex; align-items: center; gap: 8px; }
.item-who { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.item-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.item-sum { font-size: 13px; margin-top: 4px; color: #374151; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* карточка разбора */
.review h2 { margin: 0 0 4px; font-size: 18px; }
.review .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.rgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.total { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bars { margin-bottom: 12px; }
.brow { display: grid; grid-template-columns: 140px 1fr 36px 52px auto; align-items: center; gap: 8px; font-size: 13px; margin: 3px 0; }
.brow i { display: block; height: 8px; border-radius: 4px; }
.brow i.good { background: #4fb37a; } .brow i.warn { background: #e4a83c; } .brow i.bad { background: #e06c6c; }
.brow.off { opacity: .45; } .brow b { text-align: right; font-weight: 500; }
.brow input { width: 44px; border: 1px solid var(--border); border-radius: 6px; padding: 2px 4px; font-size: 12px; text-align: center; }
.block { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.block h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.block p { margin: 0; line-height: 1.45; white-space: pre-wrap; } .block ul { margin: 0; padding-left: 18px; line-height: 1.45; }
.block.good { border-color: #b7e2c6; background: #f3fbf6; } .block.bad { border-color: #f1c0c0; background: #fdf5f5; } .block.better { border-color: #cfe7f5; background: #f2f9fd; }
.quote { color: var(--muted); font-style: italic; }
.fb { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.fb-btns { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.fb-btns button { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.fb-btns button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.fb textarea, .note-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 13px; }
.fb-row { font-size: 13px; margin-top: 6px; color: #374151; }
.audio { width: 100%; margin: 8px 0; }
.transcript { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 0; max-height: 70vh; overflow-y: auto; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 92%; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.msg.client { background: #eef6fb; align-self: flex-start; }
.msg.manager { background: #e8f7ee; align-self: flex-end; border: 1px solid #b7e2c6; }
.msg.other { background: var(--panel); border: 1px dashed var(--border); align-self: flex-end; color: var(--muted); }
.msg-meta { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.msg-text { white-space: pre-wrap; line-height: 1.4; }

/* менеджеры */
.mcard { cursor: pointer; }
.mcard:hover { border-color: var(--accent); }
.mcard .name { font-size: 16px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.mcard .dot { width: 10px; height: 10px; border-radius: 50%; }
.mrow { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.day { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); margin-bottom: 8px; }
.day-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.day-head b { flex: 1; }
.day-body { border-top: 1px solid var(--border); }
.ditem { padding: 8px 14px; border-bottom: 1px solid var(--border); cursor: pointer; display: grid; grid-template-columns: 52px 40px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.ditem:last-child { border-bottom: 0; } .ditem:hover { background: #f7f9fb; }
.ditem .kind { font-size: 11px; color: var(--muted); }
.ditem-detail { padding: 10px 14px 14px 62px; background: #fafbfc; border-bottom: 1px solid var(--border); font-size: 13px; }
.ditem-detail .pm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.ditem-detail .pm div { padding: 8px 10px; border-radius: 8px; }
.ditem-detail .pm .plus { background: var(--good-bg); } .ditem-detail .pm .minus { background: var(--bad-bg); }
.notes .note { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notes .note.done { opacity: .55; text-decoration: line-through; }
.note-box { margin-top: 8px; }
.tabs { display: flex; gap: 4px; margin: 12px 0; border-bottom: 1px solid var(--border); }
.tabs button { background: none; border: 0; padding: 8px 12px; cursor: pointer; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; justify-content: flex-end; }
.drawer-card { width: min(1100px, 96vw); background: var(--bg); height: 100%; overflow-y: auto; padding: 20px 24px; position: relative; box-shadow: -10px 0 30px rgba(0,0,0,.2); }
.drawer-card .close { position: absolute; top: 8px; right: 12px; font-size: 26px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1f2430; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 70; }
.report { white-space: pre-wrap; line-height: 1.5; font-size: 14px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } .rgrid { grid-template-columns: 1fr; } .split { grid-template-columns: 320px 1fr; } }
@media (max-width: 800px) {
  .nav { position: fixed; inset: 0 auto 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; width: 80%; max-width: 280px; overflow-y: auto; }
  .nav.open { transform: none; }
  .top .icon { display: block; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; } .list { max-height: 40vh; }
  .ditem { grid-template-columns: 48px 36px 1fr; } .ditem-detail { padding-left: 14px; } .ditem-detail .pm { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 110px 1fr 30px 52px; }
}

/* горизонтальные столбцы (HTML) */
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar-row { display: grid; grid-template-columns: minmax(120px, var(--lw, 230px)) 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 2px 4px; border-radius: 6px; }
.hbar-row.click { cursor: pointer; } .hbar-row.click:hover { background: #f4f6f9; }
.hbar-label { line-height: 1.25; overflow-wrap: anywhere; }
.hbar-track { height: 18px; background: #eef0f3; border-radius: 5px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 5px; opacity: .9; }
.hbar-val { min-width: 70px; line-height: 1.25; } .hbar-val .muted { display: block; font-size: 11px; }
@media (max-width: 800px) { .hbar-row { grid-template-columns: minmax(100px, 45%) 1fr auto; } }
.prod { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.prod button { background: var(--panel); border: 0; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.prod button.on { background: #1f2430; color: #fff; font-weight: 600; }
.tag.paid { background: var(--good-bg); color: var(--good); }
.nav .badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #e34948; color: #fff; font-size: 11px; text-align: center; margin-left: 6px; }
.nav-search { position: relative; padding: 8px 4px; }
.nav-search input { width: 100%; padding: 7px 9px; border-radius: 8px; border: 1px solid #3a4152; background: #2a303d; color: var(--side-text); font-size: 13px; }
.hits { position: absolute; left: 4px; right: 4px; top: 44px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-height: 320px; overflow-y: auto; }
.hit { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; } .hit:hover { background: #f4f6f9; }
.tag.bot { background: #eef6fb; color: var(--accent-dark); }
table.t tr.hot td { background: #fff6f6; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl { display: grid; grid-template-columns: 110px 24px 1fr; gap: 8px; font-size: 13px; align-items: start; }
.tl-date { color: var(--muted); font-size: 12px; } .tl.paid { background: var(--good-bg); border-radius: 8px; padding: 6px; } .tl.cancelled { background: var(--bad-bg); border-radius: 8px; padding: 6px; }
@media print { .nav, .top, .drawer, .toast { display: none !important; } .content { overflow: visible; padding: 0; } .card { break-inside: avoid; } }
table.t tr.launch td { background: #f6f3fc; }
.quote-tail { margin-top: 6px; font-size: 12px; } .quote-tail summary { cursor: pointer; color: var(--accent-dark); }
.msg-text.quote { color: var(--muted); border-left: 2px solid var(--border); padding-left: 8px; margin-top: 4px; font-size: 12px; }

/* ---------- аудит 10.09: читаемость и мобильная вёрстка ---------- */
.grid { align-items: start; }
.msg-text, .block p, .transcript, .item-sum, .concl-item span, .tl div { overflow-wrap: anywhere; }
table.t td, table.t th { overflow-wrap: break-word; }
.tag, .nowrap, .score { white-space: nowrap; }
table.t td.nowrap, .rub { white-space: nowrap; }
table.t.mini td { padding: 4px 6px; border-bottom: 1px solid #f0f1f3; } table.t.mini td:first-child { color: var(--muted); white-space: nowrap; width: 38%; }
.brow input { width: 52px; }
.content { overflow-x: hidden; }
.card { max-width: 100%; }
.hbar-val { white-space: normal; }
@media (max-width: 800px) {
  html, body { font-size: 14px; }
  .top { padding: 8px 12px; gap: 8px; } .top h1 { font-size: 16px; flex: 1; min-width: 0; }
  .prod { order: 2; } .period { order: 3; width: 100%; } .period input[type=date] { width: 120px; }
  .content { padding: 12px 12px 40px; }
  .content > p.lead { font-size: 12px; }
  .kpi .v { font-size: 24px; }
  table.t { display: block; overflow-x: auto; white-space: nowrap; max-width: 100%; }
  table.t td, table.t th { white-space: normal; min-width: 80px; }
  table.t td:first-child { min-width: 110px; }
  .hide-m { display: none !important; }
  table.t.mini { display: table; } table.t.mini td { min-width: 0; }
  .heat { min-width: 640px; }
  .filters input[type=search] { min-width: 0; width: 100%; } .filters select { max-width: 100%; }
  .split { display: flex; flex-direction: column; } .list { max-height: 50vh; }
  .item-who { white-space: normal; } .item-sub { white-space: normal; }
  .review h2 { font-size: 16px; overflow-wrap: anywhere; }
  .brow { grid-template-columns: 96px 1fr 26px 52px; font-size: 12px; }
  .day-head b { font-size: 14px; } .ditem { grid-template-columns: 44px 32px 1fr; } .ditem > span:last-child { grid-column: 1 / -1; text-align: left; }
  .tabs button { padding: 8px 8px; font-size: 13px; }
  .drawer-card { width: 100vw; padding: 14px 12px; }
  .nav-search { padding: 8px 10px; }
  .tl { grid-template-columns: 84px 20px 1fr; }
  .hbar-row { grid-template-columns: minmax(90px, 40%) 1fr auto; }
  .concl-item { flex-direction: column; gap: 4px; } .concl-item a { align-self: flex-start; }
}

/* мобильный аудит, вторая итерация */
.tag.wrap { white-space: normal; }
table.t { max-width: 100%; }
@media (max-width: 800px) { .card > table.t, .card > div > table.t { display: block; overflow-x: auto; } .card > table.t.mini { display: table; } }
@media (max-width: 800px) {
  table.t td.reason, table.t td:first-child { min-width: 140px; }
  .filters { flex-direction: column; align-items: stretch; } .filters > * { width: 100%; } .filters .chips { flex-wrap: wrap; } .filters label.chk { width: auto; }
  .period input[type=date] { width: calc(50% - 20px); }
  .top h1 { font-size: 15px; }
  .ditem { grid-template-columns: 44px 32px 1fr; }
}

.period .dates { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 800px) {
  .period .dates { width: 100%; } .period .dates input[type=date] { flex: 1; width: auto; }
  table.t.scrollable { position: relative; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
.scroll-hint { display: none; }
@media (max-width: 800px) { .scroll-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; } }

/* плитки-переходы: цифра открывает свои разборы */
.kpi.go { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kpi.go:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(45,169,232,.15); }
.kpi.go .t::after { content: " →"; color: var(--accent); opacity: 0; transition: opacity .15s; }
.kpi.go:hover .t::after { opacity: 1; }
@media (hover: none) { .kpi.go .t::after { opacity: 1; } }

/* следующее касание */
.block.next { border-left: 3px solid var(--accent); background: #f2f9fe; }
.block.next.off { background: #f7f8fa; border-left-color: #cfd5dd; }
.block.next p { margin: 0 0 6px; }
.block.next ul { margin: 4px 0 8px 18px; padding: 0; } .block.next li { margin: 2px 0; }
.nt-compact { margin-top: 6px; padding: 6px 8px; background: #f2f9fe; border-radius: 6px; font-size: 13px; }

/* предложения и вопросы РОПа */
.nav > a.nav-ideas { margin-top: 6px; border-top: 1px solid #2c3444; padding-top: 12px; border-radius: 0 0 8px 8px; }
.idea-form { display: flex; flex-direction: column; gap: 8px; }
.idea-form input:not([type=checkbox]):not([type=file]), .idea-form textarea, .idea-form select { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.idea-form select { width: auto; }
.idea-form.drag { outline: 2px dashed var(--accent); outline-offset: 2px; }
.att-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.file-btn { cursor: pointer; }
.att-prev { display: flex; gap: 8px; flex-wrap: wrap; }
.att { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.att img { width: 140px; height: 96px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; background: #f4f5f7; }
.idea-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.imsg { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; max-width: 900px; }
.imsg.dev { background: #f2f9fe; border-color: #cfe7f7; margin-left: 40px; }
.imsg .msg-text { white-space: pre-wrap; margin: 4px 0; }
.ideas-t tr.unread td { background: #fff8e6; }
.tag.warn-tag { background: #fff3d6; color: #8a5a00; }
.idea-fab { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; z-index: 30; }
.idea-fab:hover { transform: translateY(-1px); }
@media (max-width: 800px) { .imsg.dev { margin-left: 12px; } .att img { width: 110px; height: 76px; } .idea-fab { right: 12px; bottom: 12px; } }
.dictate.on, .voice.on { background: #e34948 !important; color: #fff !important; border-color: #e34948 !important; }
.att audio { width: 240px; }
body.view-ideas .top .prod, body.view-ideas .top .period { display: none; }
@media (max-width: 800px) {
  table.t.ideas-t { display: table; white-space: normal; }
  table.t.ideas-t td, table.t.ideas-t th { min-width: 0 !important; }
  table.t.ideas-t td:first-child, table.t.ideas-t th:first-child, table.t.ideas-t td:last-child, table.t.ideas-t th:last-child { display: none; }
  .idea-fab { bottom: 64px; }
}
.nav > a.nav-tools { margin-top: 6px; border-top: 1px solid #2c3444; padding-top: 12px; border-radius: 0 0 8px 8px; }
.nav > a.nav-tools + a + a.nav-ideas { margin-top: 0; border-top: 0; padding-top: 9px; border-radius: 8px; }

/* 17.09: подсветка блока после клика по плитке «Внимания» */
.card.flash { box-shadow: 0 0 0 3px #2DA9E8; transition: box-shadow .3s; }
/* «н/п» по критерию вручную (ТЗ РОПа 24.09): помеченная строка гаснет, кнопка подсвечивается */
.brow .na-btn { padding: 1px 6px; font-size: 11px; margin-left: 4px }
.brow .na-btn.on { background: #e8eaed; color: #444; font-weight: 600 }
/* источник подтверждения из другого канала (ТЗ РОПа #55); weak - запись в карточке без подтверждённой даты внесения */
.criterion-source { cursor: help; font-size: 12px }
.criterion-source.weak { opacity: .65 }
