/* RB Parsing — панель в фирменном стиле RentBuy.
   Раскладка: боковая навигация + рабочая область; на телефоне навигация сверху лентой. */
:root {
  --bg: #F6F5F1; --bg-2: #EFEDE7; --surface: #FFFFFF; --surface-2: #FBFAF7;
  --tint-1: #E9E5FF; --tint-2: #E4F1FF;
  --ink: #17202B; --ink-2: #4A5361; --ink-3: #5F6773;
  --line: rgba(23,32,43,.12); --line-2: rgba(23,32,43,.07);
  --accent: #7057FF; --accent-hover: #6147F5; --accent-ink: #5B41F0; --on-accent: #FFFFFF;
  --accent-soft: rgba(112,87,255,.12); --lime: #D5F36B; --on-lime: #17202B;
  --danger: #C2362B; --danger-soft: rgba(194,54,43,.1);
  --success: #1F7A4D; --success-soft: rgba(31,122,77,.1);
  --warn: #9A5B00; --warn-soft: rgba(196,128,0,.13);
  --info: #1D5FB8; --info-soft: rgba(29,95,184,.11);
  --olx: #5B3BC4; --ria: #1D5FB8;
  --e1: 0 1px 2px rgba(23,32,43,.06); --e2: 0 8px 24px -10px rgba(23,32,43,.2); --e3: 0 28px 64px -24px rgba(23,32,43,.38);
  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-btn: 12px; --r-card: 20px; --r-panel: 28px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --bg-2: #15181D; --surface: #1A1E25; --surface-2: #272E39;
    --tint-1: #1E1B33; --tint-2: #16222F;
    --ink: #F3F4F7; --ink-2: #B7BDC8; --ink-3: #9AA1AE;
    --line: rgba(243,244,247,.12); --line-2: rgba(243,244,247,.07);
    --accent: #A395FF; --accent-hover: #B3A8FF; --accent-ink: #A395FF; --on-accent: #101216;
    --accent-soft: rgba(163,149,255,.16);
    --danger: #FF8A7A; --danger-soft: rgba(255,138,122,.13);
    --success: #6FD39A; --success-soft: rgba(111,211,154,.13);
    --warn: #F0B860; --warn-soft: rgba(240,184,96,.14);
    --info: #7FB4F5; --info-soft: rgba(127,180,245,.14);
    --olx: #B9A6FF; --ria: #7FB4F5;
    --e1: none; --e2: 0 8px 24px -10px rgba(0,0,0,.6); --e3: 0 28px 64px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --bg-2: #15181D; --surface: #1A1E25; --surface-2: #272E39;
  --tint-1: #1E1B33; --tint-2: #16222F;
  --ink: #F3F4F7; --ink-2: #B7BDC8; --ink-3: #9AA1AE;
  --line: rgba(243,244,247,.12); --line-2: rgba(243,244,247,.07);
  --accent: #A395FF; --accent-hover: #B3A8FF; --accent-ink: #A395FF; --on-accent: #101216;
  --accent-soft: rgba(163,149,255,.16);
  --danger: #FF8A7A; --danger-soft: rgba(255,138,122,.13);
  --success: #6FD39A; --success-soft: rgba(111,211,154,.13);
  --warn: #F0B860; --warn-soft: rgba(240,184,96,.14);
  --info: #7FB4F5; --info-soft: rgba(127,180,245,.14);
  --olx: #B9A6FF; --ria: #7FB4F5;
  --e1: none; --e2: 0 8px 24px -10px rgba(0,0,0,.6); --e3: 0 28px 64px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.boot { min-height: 100vh; display: grid; place-items: center; font: 500 18px var(--f-display); color: var(--ink-3); }

/* ---- каркас */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line-2); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand img { width: 30px; height: 30px; }
.brand b { font: 500 17px var(--f-display); letter-spacing: -.04em; }
.brand small { display: block; font: 400 11px var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; transition: background .15s var(--ease); }
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.nav a.on { background: var(--tint-1); color: var(--accent-ink); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .sep { height: 1px; background: var(--line-2); margin: 10px 8px; }
.side .me { margin-top: auto; padding: 12px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.side .me b { font-weight: 600; } .side .me span { color: var(--ink-3); font-size: 13px; }
.side .me .row { display: flex; gap: 6px; }
.topnav { display: none; }
main { padding-block: 28px 64px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); max-width: 1360px; width: 100%; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.head .t { flex: 1; min-width: 220px; }
h1 { font: 500 26px/1.15 var(--f-display); letter-spacing: -.03em; margin: 0 0 4px; text-wrap: balance; }
h2 { font: 500 17px/1.25 var(--f-display); letter-spacing: -.02em; margin: 0 0 12px; }
.sub { color: var(--ink-3); margin: 0; }
.label { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .tnum { font-variant-numeric: tabular-nums; }

/* ---- карточки и сетки */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--e1); padding: 18px 20px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi .v { font: 500 32px/1.1 var(--f-display); letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .h { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---- кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--danger); } .btn.danger:hover { border-color: var(--danger); }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.act-target { color: var(--success); } .btn.act-refuse { color: var(--danger); } .btn.act-realtor { color: var(--warn); }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
textarea { width: 100%; min-height: 220px; resize: vertical; font: 13px/1.5 var(--f-mono); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field input, .field select { width: 100%; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 200px; }

/* ---- метки */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-new { background: var(--accent-soft); color: var(--accent-ink); }
.s-taken { background: var(--info-soft); color: var(--info); }
.s-target { background: var(--success-soft); color: var(--success); }
.s-refuse { background: var(--danger-soft); color: var(--danger); }
.s-realtor { background: var(--warn-soft); color: var(--warn); }
.s-muted { background: var(--bg-2); color: var(--ink-3); }
.s-ok { background: var(--success-soft); color: var(--success); } .s-bad { background: var(--danger-soft); color: var(--danger); } .s-warn { background: var(--warn-soft); color: var(--warn); }
.src { font: 600 11px var(--f-mono); letter-spacing: .04em; } .src.olx { color: var(--olx); } .src.domria { color: var(--ria); }
.score { display: inline-block; min-width: 26px; text-align: center; border-radius: 7px; padding: 1px 6px; font: 600 12px var(--f-mono); }
.score.owner { background: var(--success-soft); color: var(--success); } .score.maybe { background: var(--warn-soft); color: var(--warn); } .score.reject { background: var(--danger-soft); color: var(--danger); }
.alert { border-radius: 14px; padding: 10px 14px; background: var(--warn-soft); color: var(--warn); margin-bottom: 12px; }
.alert.bad { background: var(--danger-soft); color: var(--danger); } .alert.ok { background: var(--success-soft); color: var(--success); }
.alert.info { background: var(--tint-1); color: var(--accent-ink); }

/* ---- таблицы */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tbody tr:hover td { background: var(--surface-2); }
td.nowrap, span.nowrap { white-space: nowrap; }
.lead-title { font-weight: 600; color: var(--ink); cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.lead-title:hover { color: var(--accent-ink); text-decoration: underline; }
.place { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.reasons { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; }
.empty { padding: 32px; text-align: center; color: var(--ink-3); }

/* ---- график */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.bar .o { background: var(--accent); border-radius: 5px 5px 0 0; } .bar .m { background: var(--tint-1); }
.bar .n { font: 10px var(--f-mono); text-align: center; color: var(--ink-3); }
.xl { display: flex; gap: 6px; } .xl span { flex: 1; text-align: center; font: 10px var(--f-mono); color: var(--ink-3); padding-top: 4px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---- карточка лида (боковая панель) */
.drawer-bg { position: fixed; inset: 0; background: rgba(16,18,22,.45); z-index: 20; }
.modal-bg { z-index: 30; }
.modal { position: fixed; z-index: 31; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--e3); padding: 22px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); z-index: 21; overflow-y: auto; padding: 22px max(22px, env(safe-area-inset-right, 0px)) 40px 22px; box-shadow: var(--e3); display: flex; flex-direction: column; gap: 16px; }
.drawer .photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.drawer .photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.drawer .desc { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.timeline { display: flex; flex-direction: column; gap: 8px; font-size: 13px; } .timeline div { display: flex; gap: 10px; } .timeline time { color: var(--ink-3); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }

/* ---- поиски */
.srow { display: grid; grid-template-columns: 40px minmax(160px, 1.6fr) repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.srow.h { padding-top: 0; }
.srow select, .srow input[type=text] { width: 100%; }
.switch { position: relative; width: 38px; height: 22px; display: inline-block; } .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 22px; pointer-events: none; transition: background .2s var(--ease); }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- вход */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 80% -10%, var(--tint-1), transparent 60%), var(--bg); }
.auth .card { width: 100%; max-width: 400px; padding: 32px; border-radius: var(--r-panel); box-shadow: var(--e2); display: flex; flex-direction: column; gap: 14px; }
.auth .brand { padding: 0 0 6px; } .auth .brand img { width: 40px; height: 40px; } .auth .brand b { font-size: 22px; }
.auth input { width: 100%; }
.auth .err { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 0; }
.secret { font: 500 15px var(--f-mono); letter-spacing: .08em; padding: 10px 12px; background: var(--bg); border-radius: 10px; word-break: break-all; user-select: all; }
.qr { width: 180px; height: 180px; border-radius: 14px; background: #fff; padding: 6px; }
.code-big { font: 600 28px var(--f-mono); letter-spacing: .2em; padding: 12px 16px; background: var(--tint-1); color: var(--accent-ink); border-radius: 14px; display: inline-block; user-select: all; }
pre.log { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 16px; overflow: auto; max-height: 70vh; font: 12px/1.55 var(--f-mono); white-space: pre-wrap; word-break: break-word; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 14px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }
.toast { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; opacity: 0; transform: translateY(8px); transition: .2s var(--ease); pointer-events: none; z-index: 40; max-width: min(420px, calc(100% - 40px)); }
.toast.show { opacity: 1; transform: none; }

/* ---- телефон */
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topnav { display: flex; gap: 4px; overflow-x: auto; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line-2); padding-block: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .topnav a { padding: 7px 12px; border-radius: 10px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
  .topnav a.on { background: var(--tint-1); color: var(--accent-ink); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--surface); }
  main { padding-block: 18px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .grid3, .form { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: 40px minmax(0, 1fr) auto; } .srow .o { grid-column: 2 / -1; } .srow.h { display: none; }
  table.cards thead { display: none; }
  table.cards tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  table.cards td { display: block; border: 0; padding: 4px 0; }
}
.tabs.lang { padding: 3px; border-radius: 10px; }
.tabs.lang button { padding: 4px 9px; font: 600 12px var(--f-mono); letter-spacing: .04em; border-radius: 7px; }
.side .me .tabs.lang { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.side .me .tabs.lang button { text-align: center; }
.topnav .tabs.lang { flex: none; }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; flex: none; }
/* v3.2.0 */
.s-noanswer { background: var(--tint-2); color: var(--info); }
.btn.act-noanswer { color: var(--info); }
.acts-wrap { display: flex; flex-direction: column; gap: 6px; }
.acts.cats .btn { min-width: 0; }
select.assign.sm, .acts select { min-height: 32px; padding: 4px 8px; font-size: 13px; border-radius: 10px; }
.pill.obj { background: var(--tint-1); color: var(--accent-ink); font-weight: 600; }
.pill.obj-house { background: var(--success-soft); color: var(--success); }
.phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.phone a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px dashed var(--line); }
.phone a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.phone .copy { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); cursor: pointer; padding: 0; }
.phone .copy:hover { color: var(--accent-ink); border-color: var(--accent); }
/* для всех, кроме Main: без выделения текста (поля ввода работают как обычно) */
body.no-copy { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.no-copy input, body.no-copy textarea, body.no-copy select, body.no-copy [contenteditable] { -webkit-user-select: text; user-select: text; }
.acts-wrap { min-width: 214px; }
.acts.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.acts.cats .btn { width: 100%; }
.acts-wrap > .acts:not(.cats) { flex-wrap: nowrap; }
.acts-wrap > .acts:not(.cats) > * { flex: 1 1 auto; min-width: 0; }
@media (max-width: 960px) { .acts-wrap { min-width: 0; } }

/* обновление */
.upd-form { gap: 12px; }
.upd-confirm { grid-template-columns: repeat(2, minmax(0, 220px)); }
.upd-form .toolbar { gap: 8px; }
@media (max-width: 960px) { .upd-confirm { grid-template-columns: minmax(0, 1fr); } }

/* подтверждение категории: «Уверены?» */
.btn.armed { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint-1); }
.acts.list { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.acts.list.one { grid-template-columns: minmax(0, 1fr); }
.acts.list > * { min-width: 0; }
.acts.list > [hidden] { display: none; }
.acts.list select.move { width: 100%; }
.cmt { display: flex; flex-direction: column; gap: 6px; }
.cmt textarea { min-height: 54px; font: 13px/1.4 var(--f-body); resize: vertical; padding: 6px 10px; }
.cmt-ro { padding: 6px 10px; border-radius: 10px; background: var(--surface-2); white-space: pre-wrap; max-width: 260px; }
input[type=datetime-local], input[type=time] { min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.acts.cats .btn, .acts.list .btn { padding-inline: 8px; }
.pill.s-deleted { background: var(--danger-soft); color: var(--danger); }
.toolbar.checks { gap: 18px; margin-top: -4px; }

/* защита от скриншотов (кроме Main) */
#wm, #sgmsg { display: none; }
body.wmk #wm { display: block; position: fixed; inset: 0; z-index: 9990; pointer-events: none; background-repeat: repeat; }
body.sg.shielded #root, body.sg.shielded .drawer, body.sg.shielded .drawer-bg, body.sg.shielded .modal { filter: blur(22px) saturate(.4); }
body.sg.shielded #sgmsg { display: flex; position: fixed; inset: 0; z-index: 9991; align-items: center; justify-content: center; padding: 24px; text-align: center; font: 600 16px var(--f-body); color: var(--ink); pointer-events: none; }
@media print { body.sg #root, body.sg .drawer, body.sg .drawer-bg, body.sg .modal, body.sg .toast { display: none !important; } }
td.found { min-width: 96px; }

/* «звонит: Иван» */
.calling { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 12px; white-space: normal; flex-wrap: wrap; max-width: 200px; line-height: 1.35; }
.calling.me { background: var(--tint-1); color: var(--accent-ink); }

/* окно выгрузки Excel */
.xform { gap: 18px; }
.xchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.xchip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; }
.xchip:has(input:checked) { border-color: var(--accent); background: var(--tint-1); }
#xpre .btn.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.xfoot { position: sticky; bottom: -40px; display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; background: var(--surface); border-top: 1px solid var(--line-2); }
.xfoot #xcount { font-size: 20px; }

.pausebar { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.bulkbar { align-items: center; gap: 8px; flex-wrap: wrap; }
.bulkbar input[type=text] { min-width: 220px; }
th.selcol, td.selcol { width: 36px; text-align: left; }
.selcol input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
