/* Ядро экспертизы — «тёмное стекло» кабинета EXPERT PLATFORM.
   Слева источники и заявки, в центре конвейер по стадиям, справа карточка блока. */
:root {
  --ink: #090b0e; --solid: #12161b; --solid-2: #181d23;
  --panel: rgba(255,255,255,0.05); --panel-2: rgba(255,255,255,0.09);
  --text: #f1f4f0; --muted: #98a29f; --line: rgba(255,255,255,0.11);
  --lime: #b9f227; --on-lime: #101503; --lime-soft: rgba(185,242,39,0.13);
  --blue: #a9c6ea; --blue-soft: rgba(120,150,190,0.2);
  --warn: #f5c469; --warn-soft: rgba(245,196,105,0.14);
  --err: #ff8b7e; --err-soft: rgba(255,139,126,0.14);
  --plan: #7f8a99; --plan-soft: rgba(127,138,153,0.15);
  --font: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dots: "Doto", ui-monospace, Consolas, monospace;
  --mono: ui-monospace, Consolas, monospace;
  --r: 18px; --r-sm: 11px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: radial-gradient(1000px 600px at 60% 30%, rgba(185,242,39,0.05), transparent 60%), var(--ink);
  color: var(--text); font: 14px/1.45 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.num { font-family: var(--dots), var(--font); font-weight: 900; font-variant-numeric: tabular-nums; }

/* левая полоса разделов — только значки, как на iOS: подсветка и подпись при наведении (16.11.2026) */
.rail { position: fixed; z-index: 35; left: 0; top: 0; bottom: 0; width: 64px; display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 14px 0; background: transparent; }
.brand { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; flex: none;
  box-shadow: 0 0 18px rgba(185,242,39,0.25); }
.brand svg { width: 28px; height: 28px; fill: #07090b; }
.rail-btns { display: grid; gap: 6px; margin-top: 6px; }  /* разделы — сверху, под логотипом (владелец 16.11.2026) */
.rail-end { margin-top: auto; display: grid; gap: 8px; justify-items: center; }
.rail button { position: relative; width: 44px; height: 44px; border-radius: 13px; border: 1px solid transparent; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .18s, color .18s, transform .18s, border-color .18s; }
.rail button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail button:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); transform: scale(1.06); }
.rail button.on { color: var(--on-lime); background: var(--lime); border-color: var(--lime); }
.rail button[data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-6px, -50%);
  white-space: nowrap; background: var(--solid-2); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px;
  font-size: 12.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.rail button:hover::after, .rail button:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.rail .cnt { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--warn); color: #1d1300;
  font: 700 10.5px/17px var(--font); font-style: normal; padding: 0 4px; text-align: center; }
.rail .msg-pill { color: var(--on-lime); background: var(--lime); }
.rail .msg-pill .cnt { background: var(--err); color: #fff; }
.op-pill .dot { width: 12px; height: 12px; border-radius: 50%; }
.op-pill.busy { border-color: var(--lime); }

/* раскладка: полоса разделов | заявки | рабочее пространство (на широком мониторе — во всю ширину) */
.layout { display: grid; grid-template-columns: 300px minmax(0,1fr); min-height: 100%; margin-left: 64px; }
.side { padding: 12px 6px 12px 4px; position: sticky; top: 0; height: 100vh; }
.side-in { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 10px; display: grid; gap: 10px; align-content: start;
  height: 100%; overflow: auto; }
.panel-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); padding: 2px 2px 4px; }
.cases { display: grid; gap: 6px; }
.case { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer;
  display: grid; gap: 5px; }
.case:hover { background: var(--panel-2); }
.case.on { border-color: var(--lime); background: var(--lime-soft); }
.case .t { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; }
.case .m { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.light { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.light.green { background: var(--lime); box-shadow: 0 0 8px rgba(185,242,39,0.7); }
.light.yellow { background: var(--warn); } .light.red { background: var(--err); }
.light.none { background: var(--plan); }
.mini { display: flex; gap: 2px; }
.mini i { flex: 1; height: 4px; border-radius: 2px; background: var(--plan-soft); }
.mini i.ok { background: var(--lime); } .mini i.warn { background: var(--warn); } .mini i.fail { background: var(--err); }
.mini i.wait { background: rgba(255,255,255,0.18); }

.main { padding: 20px 22px 80px; min-width: 0; }
h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: 0; font-size: 17px; }

/* шапка заявки */
.case-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 12px; border-radius: 99px; padding: 3px 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.chip.demo { color: var(--warn); border-color: rgba(245,196,105,0.4); }
.sv { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; }
.sv .light { width: 14px; height: 14px; }
.btn { background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn:hover { border-color: rgba(255,255,255,0.3); }
.btn.primary { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* конвейер */
.stages { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) minmax(0,2.1fr) minmax(0,1fr); gap: 12px; align-items: start; }
.stage.group { border: 1px dashed rgba(185,242,39,0.28); border-radius: var(--r); padding: 8px 10px 10px; background: rgba(185,242,39,0.025); margin-top: -9px; }
.stage.group .sub { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 22px; align-items: start; }
.stage { display: grid; gap: 8px; align-content: start; }
.stage-h { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between;
  padding: 0 4px; }
.tile { text-align: left; background: var(--solid); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px 10px 14px;
  cursor: pointer; display: grid; gap: 5px; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--plan)); }
.tile:hover { border-color: rgba(255,255,255,0.28); }
.tile.on { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.tile.ok { --c: var(--lime); } .tile.warn { --c: var(--warn); } .tile.fail { --c: var(--err); }
.tile.wait { --c: rgba(255,255,255,0.25); } .tile.plan { --c: var(--plan); opacity: 0.6; }
.tile .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.tile .n { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .f { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); }
.who { font-size: 11px; border-radius: 99px; padding: 1px 8px; white-space: nowrap; flex: none; align-self: start; height: fit-content; }
.who.program { background: var(--lime-soft); color: var(--lime); } .who.skill { background: var(--blue-soft); color: var(--blue); }
.who.human { background: var(--warn-soft); color: var(--warn); } .who.none { background: var(--plan-soft); color: var(--plan); }
.pips { display: inline-flex; gap: 3px; } .pips i { width: 7px; height: 7px; border-radius: 2px; background: var(--plan-soft); }
.pips i.on { background: var(--lime); }
.badge { font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.fail { background: var(--err-soft); color: var(--err); }
.badge.op { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 1250px) { .stages { grid-template-columns: repeat(2, minmax(0,1fr)); } .stage.group { grid-column: 1 / -1; } }

/* карточка блока */
.drawer { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(1180px, 94vw); background: var(--solid);
  border-left: 1px solid rgba(185,242,39,0.35); box-shadow: -20px 0 60px rgba(0,0,0,0.5); display: grid; grid-template-rows: auto auto 1fr; }
.dr-h { padding: 16px 18px 10px; display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
.dr-h .row { justify-content: space-between; }
.x { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; width: 30px; height: 30px; cursor: pointer; }
.tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--lime); }
.tabs button sup { color: var(--lime); font-size: 10px; margin-left: 2px; }
.dr-b { overflow: auto; padding: 16px 18px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.dr-b > *, .rv > *, .rv .row > * { min-width: 0; overflow-wrap: anywhere; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 8px; min-width: 0; }
.box h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.find { display: grid; grid-template-columns: 10px 1fr; gap: 8px; font-size: 13px; }
.find i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.find i.fail { background: var(--err); } .find i.warn { background: var(--warn); } .find i.info { background: var(--blue); }
.field { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.field:first-of-type { border-top: 0; padding-top: 0; }
.field .k { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field .k b { font-size: 13px; }
.field .k code { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.val { font-size: 13px; overflow-wrap: anywhere; }
.tw { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; font-size: 12px; }
table.t th, table.t td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; white-space: nowrap; }
table.t th { color: var(--muted); font-weight: 500; }
textarea, .inp { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
textarea { font-family: var(--mono); font-size: 12px; min-height: 120px; resize: vertical; }
textarea:focus, .inp:focus { border-color: var(--lime); outline: none; }
.err-t { color: var(--err); font-size: 12.5px; }
.mem { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }
.mem:first-of-type { border-top: 0; padding-top: 0; }
.mem .src { padding: 0; background: none; border: 0; font-size: 11px; color: var(--muted); display: block; }
.st-accepted { color: var(--lime); } .st-proposed { color: var(--warn); } .st-rejected { color: var(--muted); text-decoration: line-through; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.kv div { background: rgba(255,255,255,0.03); border-radius: 9px; padding: 8px 10px; }
.kv b { display: block; font-family: var(--dots); font-weight: 900; font-size: 22px; line-height: 1.1; }
.kv span { font-size: 11.5px; color: var(--muted); }
.series { display: flex; gap: 3px; flex-wrap: wrap; }
.series i { width: 16px; height: 16px; border-radius: 4px; position: relative; }
.series i.ok { background: var(--lime); } .series i.warn { background: var(--warn); } .series i.fail { background: var(--err); }
.series i.wait, .series i.plan { background: var(--plan-soft); }
.series i.c::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
pre.skill { white-space: pre-wrap; font-family: var(--mono); font-size: 11.5px; max-height: 420px; overflow: auto; margin: 0; color: #cfd6d2; }
.crit { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13px; }
.crit .ok { color: var(--lime); } .crit .no { color: var(--plan); }

/* прокачка */
.sk-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.totals { display: flex; gap: 8px; flex-wrap: wrap; }
.totals div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; min-width: 96px; }
.totals b { display: block; font-family: var(--dots); font-weight: 900; font-size: 26px; line-height: 1; }
.totals span { color: var(--muted); font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.legend span { font-size: 12px; background: var(--panel); border-radius: 99px; padding: 3px 10px; color: var(--muted); }
.legend span b { color: var(--lime); font-family: var(--dots); }
.skgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sk { text-align: left; background: var(--solid); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; display: grid; gap: 10px; }
.sk:hover { border-color: rgba(255,255,255,0.28); }
.sk .top2 { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.lvl { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0); }
.lvl span { width: 38px; height: 38px; border-radius: 50%; background: var(--solid); display: grid; place-items: center;
  font-family: var(--dots); font-weight: 900; font-size: 20px; }
.sk .nx { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.sk .nx b { color: var(--text); font-weight: 600; }
.sk .facts { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.sk .facts b { color: var(--text); }

/* оператор */
.op-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.seg { display: grid; gap: 6px; }
.seg button { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; }
.seg button.on { border-color: var(--lime); background: var(--lime-soft); }
.seg button b { display: block; }
.rv { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.rv:first-of-type { border-top: 0; padding-top: 0; }
.verdict { font-size: 11px; border-radius: 99px; padding: 1px 8px; }
.verdict.accept { background: var(--lime-soft); color: var(--lime); } .verdict.fix { background: var(--blue-soft); color: var(--blue); }
.verdict.human { background: var(--warn-soft); color: var(--warn); } .verdict.rules { background: var(--blue-soft); color: var(--blue); }
.verdict.queued, .verdict.running { background: var(--plan-soft); color: var(--text); } .verdict.error { background: var(--err-soft); color: var(--err); }
@media (max-width: 1000px) { .op-grid { grid-template-columns: 1fr; } }

dialog { background: var(--solid); color: var(--text); border: 1px solid rgba(185,242,39,0.35); border-radius: var(--r); padding: 20px; width: min(620px, 94vw); }
dialog::backdrop { background: rgba(0,0,0,0.6); }
dialog form { display: grid; gap: 14px; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.fg input, .fg select { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; color: var(--text); font-size: 14px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--solid-2); border: 1px solid var(--line);
  border-radius: 99px; padding: 10px 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .side { position: static; height: auto; } }
@media (max-width: 600px) { .rail { width: 52px; } .layout { margin-left: 52px; } .rail button { width: 38px; height: 38px; } }

.report-box{margin:0 0 14px}
.report-box a.btn{text-decoration:none}
.p-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .p-grid { grid-template-columns: 1fr; } }
.p-grid > .box, .p-grid > div > .box { align-content: start; }

/* онлайн-режим конвейера */
.stages-wrap { position: relative; }
.stages-wrap .stages { position: relative; z-index: 1; column-gap: 46px; }
.edges { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.edge { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 1.4; }
.edge.ok { stroke: rgba(185,242,39,0.28); } .edge.warn { stroke: rgba(245,196,105,0.3); } .edge.fail { stroke: rgba(255,139,126,0.3); }
.edge.active { stroke: var(--lime); stroke-width: 2.2; stroke-dasharray: 7 6; animation: flow 0.6s linear infinite; filter: drop-shadow(0 0 4px rgba(185,242,39,0.7)); }
@keyframes flow { to { stroke-dashoffset: -13; } }
.tile.running { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 18px rgba(185,242,39,0.35); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 1px var(--lime), 0 0 28px rgba(185,242,39,0.55); } }
.tile.flash { animation: flash 0.7s ease-out; }
@keyframes flash { from { background: rgba(185,242,39,0.22); } to { background: var(--solid); } }
.live-panel { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 8px; }
.live-panel h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.feed { display: grid; gap: 2px; max-height: 260px; overflow: auto; font-size: 12.5px; }
.ev { display: grid; grid-template-columns: 62px 86px minmax(0,1fr); gap: 8px; padding: 3px 6px; border-radius: 6px; }
.ev[data-case] { cursor: pointer; } .ev:hover { background: rgba(255,255,255,0.04); }
.ev .tm { color: var(--muted); font-family: var(--mono); } .ev .who { color: var(--blue); }
.ev.start { color: var(--muted); } .ev.warn { color: var(--warn); } .ev.fail { color: var(--err); }
.ev.order { color: var(--lime); font-weight: 600; } .ev.chat .who { color: var(--lime); } .ev.case { color: var(--muted); font-style: italic; }
.op-pill.busy { border-color: var(--lime); }
/* вкладка «Инструменты» */
.tcat { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tool { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--plan); border-radius: var(--r-sm); padding: 11px 12px; display: grid; gap: 6px; align-content: start; }
.tool.ok { border-left-color: var(--lime); } .tool.warn { border-left-color: var(--warn); }
.tool a { color: var(--blue); }
.tst { font-size: 11.5px; border-radius: 99px; padding: 2px 9px; white-space: nowrap; background: var(--plan-soft); color: var(--plan); }
.tst.ok { background: var(--lime-soft); color: var(--lime); } .tst.warn { background: var(--warn-soft); color: var(--warn); }
.tinput { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; color: var(--text); }

/* свёрнутые группы файлов (кабинет партнёра и вкладка «Партнёры») */
.fgroup { border-top: 1px solid var(--line); padding-top: 6px; }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 0; list-style: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::before { content: "▸"; margin-right: 6px; transition: transform .15s; }
.fgroup[open] summary::before { transform: rotate(90deg); }
.fgroup summary span { flex: 1; }
.fgroup summary b { font-size: 12px; color: var(--text); background: var(--panel-2); border-radius: 99px; padding: 1px 8px; font-weight: 600; }
.fgroup[open] summary { margin-bottom: 6px; }
.pfiles { display: grid; gap: 3px 10px; font-size: 12.5px; }
.pfiles.many { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 200px; overflow: auto; }
.pfiles a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* чат с партнёром на вкладке «Партнёры» — свёрнутая плашка */
.pchat { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pchat.has-new { border-color: rgba(185,242,39,0.55); box-shadow: 0 0 0 1px rgba(185,242,39,0.18); }
.pchat-bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(255,255,255,0.03); border: 0; color: var(--text); cursor: pointer; text-align: left; font-size: 13px; }
.pchat-bar:hover { background: rgba(255,255,255,0.06); }
.pchat-t { font-weight: 700; white-space: nowrap; }
.pchat-last { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.pchat-last.new { color: var(--text); }
.pchat-arrow { margin-left: auto; color: var(--muted); }
.pchat.open .pchat-bar { border-bottom: 1px solid var(--line); }
.pchat-body { display: grid; gap: 6px; max-height: 300px; overflow: auto; padding: 10px 12px; }
.pchat > .row { padding: 0 12px 10px; }
.pmsg { font-size: 13px; padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,0.03); }
.pmsg small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.pmsg.partner { background: rgba(255,255,255,0.06); }
.pmsg.new { background: rgba(185,242,39,0.12); box-shadow: inset 3px 0 0 var(--lime); }
.new-tag { color: var(--lime); font-weight: 700; }
.new-pill { background: var(--lime); color: var(--on-lime); border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.new { background: var(--lime); color: var(--on-lime); }
/* пилюля «новые сообщения» в шапке */
.msg-pill { display: flex; align-items: center; gap: 8px; background: var(--lime); color: var(--on-lime); border: 0; border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 13px; cursor: pointer; margin-left: auto; }
.msg-pill[hidden] { display: none; }
.msg-pill:not([hidden]) + .op-pill { margin-left: 10px; }
.msg-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-lime); animation: msgblink 1.2s infinite; }
.msg-pill.ping { animation: msgping .7s ease-out 2; }
@keyframes msgblink { 50% { opacity: .25; } }
@keyframes msgping { 0% { box-shadow: 0 0 0 0 rgba(185,242,39,0.7); } 100% { box-shadow: 0 0 0 14px rgba(185,242,39,0); } }
/* поля форм не вылезают за свою колонку (тариф и реквизиты на «Партнёрах») */
.fg > * { min-width: 0; }
.fg input, .fg select { width: 100%; min-width: 0; box-sizing: border-box; }
/* прочитано: подсветка новых плавно гаснет */
.pmsg { transition: background 1.2s, box-shadow 1.2s; }
.pmsg.new.read { background: rgba(255,255,255,0.06); box-shadow: none; }
.pchat { transition: border-color 1.2s, box-shadow 1.2s; }
.pchat.has-new.read { border-color: var(--line); box-shadow: none; }
.pchat.has-new.read .new-pill { display: none; }
.new-tag { transition: opacity 1.2s; }
.read .new-tag { opacity: 0; }
/* прогресс блока в этом деле (не «прокачка») */
.tile .pg { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.tile .pg .bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.tile .pg .bar i { display: block; height: 100%; background: var(--warn, #f5c469); border-radius: 99px; transition: width .4s; }
.tile .pg.full .bar i { background: var(--lime); }
.tile .pg .pt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* лента «Онлайн»: свёрнута в строку / развёрнута */
.live-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; cursor: pointer; }
.live-head .live-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.live-head .live-line .tm { font-family: var(--mono); margin-right: 6px; }
.live-head .live-chev { color: var(--muted); font-size: 12px; }
.live-panel.closed { padding: 8px 12px; }
.live-panel { margin-bottom: 14px; }
/* карточка блока шире (12.11): широкие таблицы результата листаются внутри своей рамки, а не уходят за край */
/* прокрутка вбок — только у широких таблиц: overflow у самого блока сжимал его по высоте и обрезал низ */
.dr-b .box > table, .dr-b .box .tbl-wrap { display: block; overflow-x: auto; }
.dr-b .field .val { overflow-x: auto; }
.schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 8px; }
.schemes figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.schemes img { display: block; width: 100%; height: 220px; object-fit: contain; background: #fff; }
.schemes figcaption { background: var(--solid); padding: 8px 10px; font-size: 12.5px; display: grid; gap: 3px; }
.schemes .num { display: inline-block; min-width: 18px; text-align: center; background: #dc1e1e; color: #fff; border-radius: 3px; font-weight: 700; font-size: 11px; padding: 0 3px; }
.dr-b .box table { min-width: 100%; }

/* «Заключение собрано»: слева итог сборки компактно, справа узкая колонка файлов (12.11.2026) */
.rb2 { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 16px; align-items: start; }
.rb2 .rb-l { display: grid; gap: 6px; min-width: 0; }
.rb2 .rb-notes { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.rb2 .rb-notes span { font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
.rb2 .ok-line { color: var(--lime); }
.rb2 .warnline { color: var(--warn); }
.rb2 .rb-r { display: grid; gap: 6px; border-left: 1px solid var(--line); padding-left: 14px; }
.rb2 .rb-file { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: inherit; font-size: 13px; background: rgba(255,255,255,0.03); }
.rb2 .rb-file:hover { border-color: var(--lime); }
.rb2 .rb-file.off { opacity: .38; cursor: default; }
.rb2 .rb-file.off:hover { border-color: var(--line); }
.rb2 .btn.rb-off, .rb2 .btn.rb-off:hover { background: rgba(185,242,39,0.10); color: rgba(185,242,39,0.55); border-color: rgba(185,242,39,0.18); cursor: default; }
.rb2 .rb-sm { font-size: 12px; color: var(--blue); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .rb2 { grid-template-columns: 1fr; } .rb2 .rb-r { border-left: 0; padding-left: 0; } }

.infl { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 8px; }
.infl label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.infl input { width: 110px; }

.infl-box { margin: 14px 0; }
.infl-chart { width: 100%; max-width: 1100px; border-radius: var(--r-sm); background: #fff; }

/* единое рабочее пространство конвейера (16.11.2026): Вход → Машина → Расчёт → Рынок + ГО → Выход → Онлайн, всё на связях */
.ws { display: grid; grid-template-columns: minmax(220px,1fr) minmax(220px,1fr) minmax(460px,2.1fr) minmax(340px,1.4fr) minmax(300px,1.25fr);
  gap: 12px; column-gap: 44px; align-items: start; position: relative; z-index: 1; }
@media (max-width: 2200px) { .ws { grid-template-columns: minmax(150px,1fr) minmax(150px,1fr) minmax(330px,2fr) minmax(250px,1.3fr) minmax(220px,1.15fr); column-gap: 30px; } }
@media (max-width: 1400px) { .ws { grid-template-columns: repeat(2, minmax(0,1fr)); } .ws .stage.group, .ws .col-live { grid-column: 1 / -1; } }
.stage.mkt { border: 1px dashed rgba(169,198,234,0.32); border-radius: var(--r); padding: 8px 10px 10px; background: rgba(120,150,190,0.04); margin-top: -9px; }
.wcard { background: var(--solid); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px 12px 14px; display: grid; gap: 7px;
  position: relative; overflow: hidden; font-size: 12.5px; min-width: 0; }
.wcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--blue)); }
.wcard.ok { --c: var(--lime); } .wcard.warn { --c: var(--warn); } .wcard.wait { --c: rgba(255,255,255,0.25); }
.wcard h4 { margin: 0; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wcard h4 small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.wcard .ln { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: baseline; }
.wcard .ln > span:first-child { color: var(--muted); min-width: 0; }
.wcard .ln b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wcard .ln.big b { font-size: 16px; color: var(--lime); }
.wcard .sep { border-top: 1px solid var(--line); margin: 2px 0; }
.wcard .acts { display: flex; flex-wrap: wrap; gap: 5px; }
.wcard .acts .btn { padding: 4px 9px; font-size: 11.5px; }
.seg2 { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.seg2 button { border: 0; background: none; color: var(--muted); border-radius: 99px; padding: 3px 11px; cursor: pointer; font-size: 12px; font-weight: 600; }
.seg2 button.on { background: var(--blue); color: #0b1522; }
.seg2 button:disabled { opacity: .35; cursor: default; }
.wcard .tag { font-size: 11px; border-radius: 99px; padding: 1px 8px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.wcard .tag.warn { background: var(--warn-soft); color: var(--warn); } .wcard .tag.ok { background: var(--lime-soft); color: var(--lime); }
.wcard a { color: var(--blue); }
.files { display: grid; gap: 5px; }
.files .rb-file { display: flex; gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: inherit; background: rgba(255,255,255,0.03); }
.files .rb-file:hover { border-color: var(--lime); }
.files .rb-file.off { opacity: .38; }
.wcard details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.wcard .notes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wcard .notes span { font-size: 11px; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.col-live .live-panel { margin: 0; }
.col-live .feed { max-height: calc(100vh - 220px); }
.case-head { position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--ink) 75%, transparent); padding: 4px 0 12px; margin-bottom: 8px; }

/* Прайс (16.11.2026) */
.price-v { display: grid; gap: 14px; max-width: 1500px; }
table.t.pt th, table.t.pt td { white-space: normal; vertical-align: middle; padding: 6px 8px; font-size: 13px; }
table.t.pt td:first-child { width: 28%; } table.t.pt td:nth-child(3) { width: 120px; }

/* «Онлайн» внизу страницы: свёрнут в строку с последним событием, клик — раскрыть (16.11.2026) */
.live-bottom { position: fixed; z-index: 25; left: calc(64px + 300px + 22px); right: 22px; bottom: 12px; margin: 0;
  background: rgba(18,22,27,0.94); backdrop-filter: blur(12px); box-shadow: 0 -8px 30px rgba(0,0,0,0.45); }
#view-pipeline { padding-bottom: 60px; }
@media (max-width: 860px) { .live-bottom { left: 76px; right: 12px; } }
@media (max-width: 600px) { .live-bottom { left: 64px; } }
.live-bottom .feed { max-height: 320px; }
.live-bottom .ev { grid-template-columns: 70px 110px minmax(0,1fr); }
.live-bottom .ev > span:last-child { overflow-wrap: anywhere; }
.live-chev { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* заявка → в архив (17.11.2026): кнопка на карточке, видна при наведении */
.case-w { position: relative; }
.case-w .case { width: 100%; padding-right: 40px; }
.case-arc { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--solid); color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
.case-arc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.case-w:hover .case-arc, .case-arc:focus-visible { opacity: 1; }
.case-arc:hover { color: var(--lime); border-color: var(--lime); }
@media (hover: none) { .case-arc { opacity: .7; } }

/* светлая тема EXPERT PRO — палитра кабинета партнёра (17.11.2026) */
html[data-theme="light"] {
  --ink: #f2f4ef; --solid: #ffffff; --solid-2: #f7f8f5;
  --panel: rgba(30,40,20,0.035); --panel-2: rgba(30,40,20,0.07);
  --text: #1b2116; --muted: #5d6657; --line: rgba(30,40,20,0.15);
  --lime: #5b8f00; --on-lime: #ffffff; --lime-soft: rgba(91,143,0,0.12);
  --blue: #2c5d97; --blue-soft: rgba(44,93,151,0.11);
  --warn: #9a6200; --warn-soft: rgba(154,98,0,0.12); --err: #c0392b; --err-soft: rgba(192,57,43,0.1);
  --plan: #6b7380; --plan-soft: rgba(107,115,128,0.12);
  color-scheme: light;
}
html[data-theme="light"] body { background: radial-gradient(1000px 600px at 60% 30%, rgba(91,143,0,0.06), transparent 60%), var(--ink); }
html[data-theme="light"] .rail button:hover { background: rgba(0,0,0,0.06); }
html[data-theme="light"] .brand { box-shadow: 0 0 14px rgba(91,143,0,0.25); }
html[data-theme="light"] .brand svg { fill: #ffffff; }
html[data-theme="light"] .edge { stroke: rgba(30,40,20,0.14); }
html[data-theme="light"] .edge.ok { stroke: rgba(91,143,0,0.35); } html[data-theme="light"] .edge.warn { stroke: rgba(154,98,0,0.35); }
html[data-theme="light"] .edge.fail { stroke: rgba(192,57,43,0.35); }
html[data-theme="light"] .live-bottom { background: rgba(255,255,255,0.95); box-shadow: 0 -8px 30px rgba(0,0,0,0.10); }
html[data-theme="light"] .drawer { box-shadow: -20px 0 60px rgba(0,0,0,0.15); }
html[data-theme="light"] .toast, html[data-theme="light"] .rail button[data-tip]::after { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
html[data-theme="light"] textarea, html[data-theme="light"] .inp, html[data-theme="light"] .fg input, html[data-theme="light"] .fg select,
html[data-theme="light"] .tinput { background: #ffffff; }
html[data-theme="light"] pre.skill { color: #2b3226; }
html[data-theme="light"] .light.green { box-shadow: none; }
html[data-theme="light"] .tile::before, html[data-theme="light"] .wcard::before { opacity: .9; }

/* «Инструменты» (17.11.2026): действия — такими же карточками, график инфляции — по кнопке */
.tool .row { gap: 6px; }
.tmore summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.tmore[open] summary { margin-bottom: 6px; }
.tmore .fg { grid-template-columns: 1fr 1fr; gap: 8px; }
.infl-pop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.6); display: grid; place-items: center; padding: 24px; }
.infl-pop[hidden] { display: none; }
.infl-pop-in { background: var(--solid); border: 1px solid var(--line); border-radius: 16px; padding: 14px; width: min(1100px, 100%); display: grid; gap: 10px; }
.infl-pop-in .infl-chart { max-width: 100%; }

/* запчасти: № строки калькуляции как на схемах; схема — окно на странице (17.11.2026) */
.t.parts-t td { vertical-align: top; }
.t.parts-t tr.alt td { opacity: .55; }
.t.parts-t td.r { text-align: right; white-space: nowrap; }
.pt-n { display: inline-block; min-width: 22px; text-align: center; background: #dc1e1e; color: #fff; border: 0; border-radius: 4px;
  font: 700 12px/20px var(--font); padding: 0 4px; cursor: pointer; }
.pt-n:hover { filter: brightness(1.15); }
.pt-n.off { background: var(--panel-2, #333); color: var(--muted); cursor: default; }
.scv { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.7); display: grid; place-items: center; padding: 20px; }
.scv[hidden] { display: none; }
.scv-in { max-width: 96vw; max-height: calc(100vh - 40px); background: var(--solid); border: 1px solid var(--line); border-radius: 14px;
  display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.scv-h { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.scv-h b { margin-right: auto; }
.scv-b { display: grid; grid-template-columns: auto 280px; min-height: 0; }
.scv-b img { display: block; background: #fff; max-width: calc(96vw - 282px); max-height: calc(100vh - 92px); width: auto; height: auto; object-fit: contain; }
.scv-l { padding: 10px 12px; font-size: 12.5px; display: grid; gap: 5px; align-content: start; overflow: auto; border-left: 1px solid var(--line); }
.scv-l .num { display: inline-block; min-width: 18px; text-align: center; background: #dc1e1e; color: #fff; border-radius: 3px; font-weight: 700; font-size: 11px; padding: 0 3px; }
.scv-l .on { background: rgba(220,30,30,0.15); border-radius: 6px; padding: 2px 4px; }
@media (max-width: 800px) { .scv-b { grid-template-columns: 1fr; } .scv-b img { max-width: 92vw; max-height: 60vh; } .scv-l { border-left: 0; } }
.t.parts-t { table-layout: auto; width: 100%; }
.t.parts-t th:first-child, .t.parts-t td:first-child { width: 1%; white-space: nowrap; padding-right: 6px; }
.t.parts-t td:nth-child(5), .t.parts-t td:nth-child(6), .t.parts-t td:nth-child(7), .t.parts-t th { white-space: nowrap; }
.t.parts-t td:nth-child(2) { min-width: 140px; } .t.parts-t td:nth-child(4) { min-width: 180px; } .t.parts-t td:nth-child(8) { min-width: 220px; }
.t.parts-t td, .t.parts-t th { overflow-wrap: normal; word-break: normal; }
.t.parts-t td:nth-child(3) { width: 1%; }
.t.parts-t td:nth-child(8) { white-space: normal; min-width: 260px; }
.sch-a { font: inherit; color: var(--lime); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.sch-a:hover { text-decoration-style: solid; }
.sch-a sup { display: inline-block; margin-left: 2px; min-width: 14px; text-align: center; background: #dc1e1e; color: #fff; border-radius: 3px; font-size: 9.5px; line-height: 13px; padding: 0 2px; vertical-align: super; text-decoration: none; }

/* правка запчастей в таблице (17.11.2026) */
.pe { display: grid; gap: 10px; }
.pe-g { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.pe-g.chg { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }
.pe-h { font-size: 13px; margin-bottom: 4px; }
.pe-r { display: grid; grid-template-columns: 22px 130px minmax(0, 1fr) 90px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.pe-r:hover { background: var(--panel); }
.pe-r.cur code { color: var(--lime); }
.pe-r .r { text-align: right; color: var(--muted); }
.pe-r.own { grid-template-columns: 22px 130px 180px minmax(0, 1fr); }
.pe-r.none { grid-template-columns: 22px minmax(0, 1fr); }
.pe-r .inp.sm { padding: 4px 8px; font-size: 12.5px; }
.pe-f { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; position: sticky; bottom: 0; background: var(--solid); padding: 8px 0; }

/* схема слева от панели блока — не мешает правке (17.11.2026) */
.scv.dock { inset: 0 auto 0 60px; background: transparent; pointer-events: none; padding: 12px 0 12px 8px; place-items: stretch; z-index: 45; }
.scv.dock .scv-in { pointer-events: auto; max-width: none; max-height: none; width: 100%; height: 100%; }
.scv.dock .scv-b { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
.scv.dock .scv-b img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.scv.dock .scv-l { border-left: 0; border-top: 1px solid var(--line); max-height: 30vh; }
.scv-nav { display: inline-flex; align-items: center; gap: 6px; }
.pe-h { display: flex; align-items: baseline; gap: 8px; }
.pe-sch { margin-left: auto; font-size: 12px; }

/* схема: сверху остальные детали раздела, схема прижата к списку деталей расчёта (17.11.2026) */
.scv-b { grid-template-areas: "img ours" "img others"; grid-template-rows: auto minmax(0, 1fr); }
.scv-b .scv-img { grid-area: img; display: flex; align-items: flex-end; justify-content: center; background: #fff; min-height: 0; }
.scv-b .scv-l { grid-area: ours; }
.scv-b .scv-o { grid-area: others; padding: 8px 12px; overflow: auto; border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 3px; align-content: start; font-size: 12.5px; }
.scv.dock .scv-b { grid-template-areas: "others" "img" "ours"; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
.scv.dock .scv-b .scv-o { border-left: 0; border-top: 0; border-bottom: 1px solid var(--line); max-height: 32vh; }
.scv.dock .scv-img img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: bottom center; }
.scv-orow { display: grid; grid-template-columns: 70px 120px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 2px 4px; border-radius: 6px; }
.scv-orow:hover { background: var(--panel); }
.scv-copy { background: none; border: 0; padding: 0; cursor: copy; color: var(--lime); text-align: left; }
.scv-oh { margin-bottom: 4px; }
.scv.dock .scv-img { background: var(--solid); }

/* карточка рынка ждёт страницу Дрома (17.11.2026) */
#tile-mkt.drop-wait { box-shadow: 0 0 0 2px var(--warn) inset; }
#tile-mkt.drop-on { box-shadow: 0 0 0 2px var(--lime) inset; background: var(--lime-soft, rgba(185,242,39,0.08)); }

/* предпросмотр готовых файлов (18.11.2026) */
.pv { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.6); display: grid; place-items: center; padding: 24px; }
.pv[hidden] { display: none; }
.pv-in { width: min(1100px, 100%); height: min(92vh, 1400px); background: var(--solid, #12161b); border: 1px solid var(--line); border-radius: 16px;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.pv-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pv-h b { margin-right: auto; }
.pv iframe { width: 100%; height: 100%; border: 0; background: #525659; }
.pv-in.img { width: auto; height: auto; max-width: 96vw; max-height: calc(100vh - 48px); }
.pv-pic { display: grid; place-items: center; background: #000; min-height: 0; }
.pv-pic img { display: block; max-width: 96vw; max-height: calc(100vh - 48px - 52px); width: auto; height: auto; object-fit: contain; }

/* «Рынок + ГО»: кнопки по источникам (18.11.2026) */
.mk-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mk-row .mk-l { width: 64px; font-size: 12px; color: var(--muted, #8a9590); }
.mk-row label.btn { cursor: pointer; }

/* «Рынок по магазинам» — компактная таблица (18.11.2026) */
.mk-t { width: auto; border-collapse: collapse; font-size: 13px; }
.mk-t th, .mk-t td { padding: 4px 8px; white-space: nowrap; }
.mk-t th { font-weight: 500; color: var(--muted, #8a9590); text-align: left; }
.mk-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.mk-t .mk-name { white-space: normal; min-width: 160px; max-width: 260px; }
.mk-t .mk-out { text-decoration: line-through; color: var(--warn, #f5a524); }
.mk-t .mk-bad { color: var(--warn, #f5a524); cursor: help; }
.mk-t .mk-sum td { border-top: 1px solid var(--line); font-weight: 600; }

/* плитка «Цены запчастей»: крупнее, счётчики по сайтам и строка «идёт» (18.11.2026) */
#tile-prices { min-height: 150px; }
#tile-prices .n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .sc { display: grid; grid-template-columns: 1fr auto auto; column-gap: 12px; row-gap: 1px; margin-top: 4px; font-size: 11.5px;
  padding-top: 5px; border-top: 1px solid var(--line); }
.tile .sc-h { color: var(--muted); font-size: 10.5px; text-align: right; } .tile .sc-h:first-child { text-align: left; }
.tile .sc-n { color: var(--text); } .tile .sc-v { text-align: right; font-family: var(--mono); color: var(--text); }
.tile .sc-live { font-size: 11.5px; color: var(--lime); display: flex; align-items: center; gap: 6px; min-height: 0; }
.tile .sc-live:empty { display: none; }
.tile .sc-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; animation: sc-blink 1s ease-in-out infinite; }
@keyframes sc-blink { 50% { opacity: .25; } }

/* заказчик принял результат — галочка в списке заявок (18.11.2026) */
.case .t .acc { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%;
  background: var(--lime); color: #0b0d0f; font-size: 11px; font-weight: 700; vertical-align: 1px; }

/* ---------- Офис (20.11.2026): столы агентов, лента событий, доска, бот приценки, сервер и расходы ---------- */
.of-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.of-tabs button { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.of-tabs button.on { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.of-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.of-kpi > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-width: 0; }
.of-kpi b { display: block; font-family: var(--dots), var(--font); font-weight: 900; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.of-kpi span { color: var(--muted); font-size: 12.5px; }
.of-kpi .bad b { color: var(--err); } .of-kpi .warn b { color: var(--warn); } .of-kpi .good b { color: var(--lime); }
.of-desks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.desk { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px 12px 16px; display: grid; gap: 5px; min-width: 0; }
.desk::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--plan); }
.desk.work::before { background: var(--lime); box-shadow: 0 0 10px rgba(185,242,39,0.5); } .desk.recent::before { background: var(--lime); }
.desk.wait::before { background: var(--blue); } .desk.fail::before { background: var(--err); }
.desk-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.desk-h b { font-size: 14px; }
.of-st { font-size: 11px; border-radius: 99px; padding: 2px 8px; white-space: nowrap; background: var(--plan-soft); color: var(--plan); }
.of-st.work, .of-st.recent, .of-st.ok { background: var(--lime-soft); color: var(--lime); } .of-st.wait { background: var(--blue-soft); color: var(--blue); }
.of-st.fail { background: var(--err-soft); color: var(--err); } .of-st.warn { background: var(--warn-soft); color: var(--warn); }
.desk.work .of-st::before { content: "● "; animation: of-pulse 1.4s infinite; }
@keyframes of-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .desk.work .of-st::before { animation: none; } }
.desk .last { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.of-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 1100px) { .of-cols { grid-template-columns: 1fr; } }
.of-feed { display: grid; gap: 0; max-height: 560px; overflow: auto; }
.of-ev { display: grid; grid-template-columns: 44px 18px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: baseline; }
.of-ev:last-child { border-bottom: 0; }
.of-ev time { color: var(--muted); font-variant-numeric: tabular-nums; }
.of-ev i { font-style: normal; text-align: center; }
.of-ev .who { color: var(--muted); }
.of-ev.alarm { color: var(--err); } .of-ev.warn .tx { color: var(--warn); } .of-ev.fix .tx { color: var(--lime); }
.of-day { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 0 2px; }
.of-task { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.of-task:last-child { border-bottom: 0; }
.of-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 110px; padding-top: 6px; }
.of-bars > div { display: grid; gap: 3px; justify-items: center; align-content: end; height: 100%; min-width: 0; }
.of-bars .bar { width: 100%; max-width: 26px; background: var(--lime); border-radius: 4px 4px 0 0; min-height: 2px; }
.of-bars .bar.zero { background: var(--line); }
.of-bars small { font-size: 10px; color: var(--muted); white-space: nowrap; } .of-bars em { font-style: normal; font-size: 11px; }
.of-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.of-tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 8px 6px 0; }
.of-tbl td { padding: 5px 8px 5px 0; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.of-tbl td.n, .of-tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.of-log { font: 11.5px/1.5 var(--mono); color: var(--muted); max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.of-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.of-row:last-child { border-bottom: 0; } .of-row span:first-child { color: var(--muted); }
.of-sum { white-space: pre-wrap; font-size: 13px; }
html[data-theme="light"] .desk.work::before { box-shadow: none; }

/* ---------- Бот приценки (20.11.2026): показатели, ход заказов по шагам, журнал ---------- */
.bv-svc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bv-live { display: grid; gap: 8px; }
.bv-job { display: grid; gap: 5px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--lime-soft); border: 1px solid rgba(185,242,39,0.35); }
.bv-job .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.bv-prog { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bv-prog i { display: block; height: 100%; background: var(--lime); border-radius: 6px; transition: width .4s; }
.bv-prog.run i { width: 35%; animation: bv-run 1.3s linear infinite; }
@keyframes bv-run { from { margin-left: -35%; } to { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bv-prog.run i { animation: none; margin-left: 0; width: 100%; opacity: .5; } }
.bo { border-bottom: 1px solid var(--line); }
.bo:last-child { border-bottom: 0; }
.bo > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; align-items: start; }
.bo > summary::-webkit-details-marker { display: none; }
.bo > summary:hover .bo-t b { color: var(--lime); }
.bo-n { font-family: var(--dots), var(--font); font-weight: 900; font-size: 17px; }
.bo-t { min-width: 0; display: grid; gap: 4px; }
.bo-t b { font-size: 13.5px; overflow-wrap: anywhere; }
.bo-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.bo-step { font-size: 11.5px; border-radius: 99px; padding: 2px 8px; background: var(--plan-soft); color: var(--plan); white-space: nowrap; }
.bo-step.ok { background: var(--lime-soft); color: var(--lime); } .bo-step.fix { background: var(--warn-soft); color: var(--warn); }
.bo-step.bad { background: var(--err-soft); color: var(--err); } .bo-step.run { background: var(--blue-soft); color: var(--blue); }
.bo-r { text-align: right; display: grid; gap: 4px; justify-items: end; font-size: 12.5px; white-space: nowrap; }
.bo-more { padding: 2px 0 12px 56px; display: grid; gap: 5px; font-size: 12.5px; }
.bo-more .agent { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bv-hbar { display: grid; grid-template-columns: minmax(70px, 130px) minmax(0, 1fr) 34px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.bv-hbar .track { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.bv-hbar .track i { display: block; height: 100%; background: var(--lime); border-radius: 8px; }
.bv-hbar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bv-bars30 { grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 120px; }
.bv-bars30 small { font-size: 9px; }
.bv-list > div { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; overflow-wrap: anywhere; }
.bv-list > div:last-child { border-bottom: 0; }
.bv-logbox { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); }
.bv-logbox > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.bv-logbox > summary::-webkit-details-marker { display: none; }
.bv-logbox > summary::after { content: "развернуть ▾"; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.bv-logbox[open] > summary::after { content: "свернуть ▴"; }
.bv-logctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 14px 10px; }
.bv-logctl input { flex: 1 1 200px; min-width: 0; background: var(--solid); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; }
.bv-log { margin: 0; padding: 10px 14px 14px; max-height: 520px; overflow: auto; font: 12px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; border-top: 1px solid var(--line); }
.bv-log .w { color: var(--warn); } .bv-log .e { color: var(--err); } .bv-log .g { color: var(--lime); } .bv-log .t { color: var(--muted); }
#view-bot .of-kpi b { font-size: 22px; }
/* Офис: расходы и посещаемость (20.11.2026) */
.of-h5 { margin: 14px 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.of-srv { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.of-srv-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.of-srv-h span { font-variant-numeric: tabular-nums; }
.of-part { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0 3px 12px; color: var(--muted); }
.of-part span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.of-srv .of-tbl { margin-top: 6px; }
.of-warnline { margin-top: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 13px; }
/* Меню и CRM (21.11.2026): черта под тремя верхними разделами; Офис, Бот приценки, CRM — без колонки заявок */
.rail-sep { width: 28px; height: 0; margin: 4px auto; border: 0; border-top: 1px solid var(--muted); opacity: 0.5; }
body.wide .layout { grid-template-columns: minmax(0,1fr); }
body.wide .side { display: none; }
body.crm .main { padding: 0; }
body.crm { overflow: hidden; }
.crm-frame { display: block; width: 100%; height: 100vh; border: 0; background: var(--ink); }

/* ---------- общий блок «Калькуляция» (web/calc.js; владелец 22.11.2026) ---------- */
.cv-tile .cv-mini { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cv-mini span { display: inline-flex; align-items: center; gap: 4px; }
.cv-mini i, .cv-b i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); flex: none; }
.cv-mini .ok i, .cv-b.ok i { background: var(--lime); } .cv-mini .warn i, .cv-b.warn i { background: var(--warn); }
.cv-mini .fail i, .cv-b.fail i { background: var(--err); }
.cv { position: fixed; z-index: 35; inset: 0; background: var(--ink); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.cv[hidden] { display: none; }
.cv-load { padding: 40px; color: var(--muted); }
.cv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); background: var(--solid); }
.cv-top h3 { margin: 2px 0 6px; font-size: 20px; }
.cv-topr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cv-blocks { display: flex; gap: 4px; }
.cv-b { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 12px; cursor: pointer; color: var(--text); }
.cv-b:hover { border-color: rgba(255,255,255,0.3); }
.cv-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 34vw, 600px); min-height: 0; }
.cv-main { overflow: auto; padding: 14px 20px 30px; display: grid; gap: 14px; align-content: start; }
.cv-side { overflow: auto; border-left: 1px solid var(--line); background: var(--solid); }
.cv-finds { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: grid; gap: 4px; font-size: 13px; }
.cv-sec { background: var(--solid); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 8px; min-width: 0; }
.cv-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cv-h h4 { margin: 0; font-size: 14px; }
.cv-rate { font-size: 13px; }
table.cv-t { font-size: 13px; }
table.cv-t th.r, table.cv-t td.r { text-align: right; } table.cv-t th.n, table.cv-t td.n { width: 30px; text-align: right; }
table.cv-t td { vertical-align: middle; padding: 3px 6px; font-variant-numeric: tabular-nums; }
table.cv-t td.cv-name, table.cv-t td.cv-w { white-space: normal; min-width: 220px; }
table.cv-t td.cv-src { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
tr.cv-p { cursor: pointer; } tr.cv-p:hover td { background: var(--panel); }
tr.cv-p.sel td { background: var(--lime-soft); } tr.cv-p.sel td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
tr.cv-p.chg td { background: var(--warn-soft); } tr.cv-p code.old { text-decoration: line-through; color: var(--muted); }
tr.cv-sum td { font-weight: 600; border-bottom: 0; padding-top: 7px; } tr.cv-sum.sub td { font-weight: 400; color: var(--muted); padding-top: 2px; }
.cv-own { color: var(--warn); }
.cv-in { background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; color: var(--text); font: inherit; width: 100%; min-width: 0; }
.cv-in:hover { border-color: var(--line); } .cv-in:focus { border-color: var(--lime); outline: none; background: rgba(255,255,255,0.04); }
.cv-in.money { width: 104px; text-align: right; } .cv-in.hours { width: 64px; text-align: right; } .cv-in.unit { width: 46px; }
.cv-in.dirty { border-color: var(--warn); background: var(--warn-soft); }
select.cv-in { width: auto; } select.cv-in option { background: var(--solid); color: var(--text); }
.cv-sch { background: var(--blue-soft); color: var(--blue); border: 0; border-radius: 99px; padding: 3px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.cv-sch.nomark { background: var(--warn-soft); color: var(--warn); }
.cv-ed, .cv-del { background: transparent; border: 1px solid transparent; border-radius: 7px; width: 26px; height: 26px; cursor: pointer; color: var(--muted); }
.cv-ed:hover, .cv-del:hover { border-color: var(--line); color: var(--text); } .cv-del:hover { color: var(--err); }
tr.cv-pe td { background: var(--panel); white-space: normal; }
.cv-pick { display: grid; gap: 5px; padding: 6px 0; }
.cv-pick label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; cursor: pointer; }
.cv-pick .inp.sm { width: 190px; padding: 4px 8px; font-size: 12.5px; }
.cv-tot { display: grid; gap: 4px; max-width: 520px; }
.cv-tl { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; font-variant-numeric: tabular-nums; }
.cv-tl b { font-weight: 500; } .cv-tl.big { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-size: 15px; } .cv-tl.big b { font-weight: 700; }
.cv-sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--solid); z-index: 1; }
.cv-img { display: block; background: #fff; margin: 12px 14px 8px; border-radius: 10px; overflow: hidden; }
.cv-img img { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; margin: 0 auto; }  /* схема целиком в панели, без прокрутки; полный размер — по клику */
.cv-sl, .cv-so { padding: 6px 14px 10px; display: grid; gap: 4px; }
.cv-si { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.cv-si:hover { border-color: var(--line); } .cv-si.on { background: var(--lime-soft); border-color: var(--lime); }
.cv-si .num { color: var(--err); min-width: 18px; }
.cv-or { display: grid; grid-template-columns: 28px auto minmax(0,1fr) auto; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 2px 0; border-top: 1px solid var(--line); }
.cv-or.in { background: var(--lime-soft); cursor: pointer; border-radius: 6px; padding: 3px 4px; } .cv-or.in.on { box-shadow: inset 3px 0 0 var(--lime); }
.cv-or .num { color: var(--err); } .cv-sl[hidden] { display: none; }
.cv-fold { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--text); }
.cv-fold i { width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--muted); border-bottom-width: 0; transition: transform .12s; }
.cv-sec.closed .cv-fold i { transform: rotate(-90deg); } .cv-sec.closed > .tw { display: none; }
.cv-brief { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; } .cv-sec:not(.closed) .cv-brief { display: none; }
.cv-add { display: grid; gap: 8px; padding: 6px 0; } .cv-addf { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-addf .inp.sm { width: 210px; padding: 5px 8px; font-size: 12.5px; } .cv-addf select.inp.sm { width: 130px; } .cv-addf select option { background: var(--solid); color: var(--text); }
tr.cv-addrow td { border-bottom: 0; padding: 6px; } tr.cv-p.gone code, tr.cv-p.gone .cv-name b { text-decoration: line-through; color: var(--muted); }
td.cv-acts { white-space: nowrap; }
.cv-zoom { position: absolute; inset: 0; z-index: 5; background: rgba(6,8,10,0.94); display: grid; grid-template-rows: auto minmax(0,1fr); }
.cv-zh { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--solid); }
.cv-zh .row { margin-left: auto; align-items: center; } .cv-zh .x { width: 36px; height: 36px; font-size: 16px; color: var(--text); }
.cv-zb { display: grid; place-items: center; padding: 14px; min-height: 0; cursor: zoom-out; }
.cv-zb img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 10px; cursor: default; min-height: 0; object-fit: contain; }
.cv-img { cursor: zoom-in; }
.cv-sw { display: inline-flex; align-items: center; gap: 0; font-size: 11px; margin-top: 3px; flex-wrap: wrap; }
.cv-sw-t { color: var(--muted); margin-right: 6px; }
.cv-sw-b { display: inline-flex; gap: 5px; align-items: baseline; padding: 2px 8px; border: 1px solid var(--line); cursor: pointer; color: var(--muted); background: transparent; }
.cv-sw-b:first-of-type { border-radius: 99px 0 0 99px; } .cv-sw-b:last-of-type { border-radius: 0 99px 99px 0; border-left: 0; }
.cv-sw-b b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.cv-sw-b:hover { border-color: rgba(255,255,255,0.3); } .cv-sw-b.on { background: var(--lime); border-color: var(--lime); color: var(--on-lime); cursor: default; }
.cv-sw-b.on b { color: var(--on-lime); } .cv-sw-b.na b { color: var(--warn); }
.cv-sw.big { font-size: 13px; margin-top: 0; } .cv-sw.big .cv-sw-b { padding: 4px 12px; }
.cv-lkm { display: grid; gap: 8px; border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.cv-lkm-h { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.cv-lkm .inp.sm { width: auto; padding: 4px 8px; font-size: 12.5px; } .cv-lkm select option, .cv-lkm optgroup { background: var(--solid); color: var(--text); }
.cv-sec.closed > .cv-lkm { display: none; }
.tr { display: inline-block; font-size: 10.5px; border-radius: 99px; padding: 0 7px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); cursor: help; }
.tr3 { background: var(--lime); border-color: var(--lime); color: var(--on-lime); } .tr2 { color: var(--text); }
.tr1 { background: var(--warn-soft); border-color: transparent; color: var(--warn); } .tr0 { border-style: dashed; }
.cv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--warn); background: var(--solid-2); }
.cv-bar[hidden] { display: none; } .cv-bar .inp { flex: 1; } .cv-bar #cv-n { font-weight: 600; color: var(--warn); white-space: nowrap; }
@media (max-width: 1100px) { .cv-body { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) 42vh; } .cv-side { border-left: 0; border-top: 1px solid var(--line); } }
/* «Офис»: решения владельца по задачам доски (22.11.2026) */
.of-dec { margin-bottom: 12px; border-color: var(--warn); }
.of-dec-i { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.of-dec-i textarea { width: 100%; font: inherit; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
/* «Офис»: строки ленты с переходом (24.11.2026) */
.of-ev.go { cursor: pointer; border-radius: 8px; }
.of-ev.go:hover { background: var(--panel); }
