@font-face {
  font-family: "Inter";
  src: url("/static/InterVariable.woff2?v=4.1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Contact Market — спокойная панель с синим акцентом и мягкими цветами состояний. */

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --hover: rgba(20, 30, 45, .06);
  --glass: rgba(246, 247, 249, .9);
  --text: #191b20;
  --muted: #68717e;
  --faint: #929aa5;
  --border: rgba(20, 30, 45, .10);
  --btn-border: rgba(20, 30, 45, .14);
  --accent: #2f7cf6;
  --accent-soft: rgba(47, 124, 246, .12);
  --accent-text: #ffffff;
  --ok: #16803d;
  --ok-soft: rgba(34, 197, 94, .12);
  --warn: #a66306;
  --warn-soft: rgba(245, 158, 11, .14);
  --danger: #d62f3b;
  --danger-soft: rgba(239, 68, 68, .12);
  --info-soft: rgba(47, 124, 246, .08);
  --shadow: none;
  --pop: 0 0 0 1px rgba(15, 20, 25, .06), 0 12px 40px rgba(15, 20, 25, .16);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --tg-bubble: #edf0f4;
  --tg-bubble-out: #2f7cf6;
  --tg-bubble-out-text: #ffffff;
  --tg-bg: #f6f7f9;
  --nav-bg: #ffffff;
  --accent-hover: #236be0;
  --head-h: 57px;
}

/* Тёмная тема с отдельными поверхностями и мягкими границами. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0d;
    --panel: #141417;
    --panel-2: #1c1c21;
    --hover: rgba(255, 255, 255, .06);
    --glass: rgba(11, 11, 13, .9);
    --text: #ededef;
    --muted: #8a8f98;
    --faint: #666c76;
    --border: rgba(255, 255, 255, .07);
    --btn-border: rgba(255, 255, 255, .12);
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, .14);
    --accent-text: #ffffff;
    --ok: #22c55e;
    --ok-soft: rgba(34, 197, 94, .12);
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, .12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, .12);
    --info-soft: rgba(59, 130, 246, .10);
    --pop: 0 0 0 1px #2f3336, 0 16px 48px rgba(0, 0, 0, .7);
    --tg-bubble: #1c1c21;
    --tg-bubble-out: #2f7cf6;
    --tg-bubble-out-text: #ffffff;
    --tg-bg: #0b0b0d;
    --nav-bg: #0e0e11;
    --accent-hover: #5594fa;
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #141417;
  --panel-2: #1c1c21;
  --hover: rgba(255, 255, 255, .06);
  --glass: rgba(11, 11, 13, .9);
  --text: #ededef;
  --muted: #8a8f98;
  --faint: #666c76;
  --border: rgba(255, 255, 255, .07);
  --btn-border: rgba(255, 255, 255, .12);
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, .14);
  --accent-text: #ffffff;
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, .12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, .12);
  --info-soft: rgba(59, 130, 246, .10);
  --pop: 0 0 0 1px #2f3336, 0 16px 48px rgba(0, 0, 0, .7);
  --tg-bubble: #1c1c21;
  --tg-bubble-out: #2f7cf6;
  --tg-bubble-out-text: #ffffff;
  --tg-bg: #0b0b0d;
  --nav-bg: #0e0e11;
  --accent-hover: #5594fa;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--text); color: var(--bg); }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--text); }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
b, strong { font-weight: 600; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 600; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 500; }
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; }
.hidden { display: none !important; }
.ok-text { color: var(--text); font-weight: 600; }
.warn-text { color: var(--text); font-weight: 600; }
.danger-text { color: var(--danger); }

/* ---------- каркас ---------- */
.shell { display: flex; min-height: 100vh; max-width: 1440px; margin: 0 auto; }
.nav {
  width: 264px; flex: none; background: var(--bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 0 12px;
}
.brand { padding: 14px 12px 10px; display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--text); color: var(--bg);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.02em; flex: none;
}
.brand-name { font-weight: 600; line-height: 1.15; font-size: 16px; }
.brand-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.nav-jump {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; padding: 9px 14px; border-radius: 9999px;
  background: var(--panel-2); border: 1px solid transparent; color: var(--muted); font: inherit; cursor: pointer; text-align: left;
}
.nav-jump:hover { border-color: var(--border); color: var(--text); }
.nav-jump kbd { margin-left: auto; }
kbd {
  font: 600 11px/1 var(--mono); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border);
  color: var(--muted); background: var(--bg);
}
.nav-links { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; scrollbar-width: none; padding-bottom: 8px; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-group { font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 14px 4px; }
.nav-link {
  display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 9999px;
  color: var(--text); font-size: 17px; font-weight: 400; white-space: nowrap; text-decoration: none;
  transition: background .15s;
}
.nav-link:hover { background: var(--hover); text-decoration: none; }
.nav-link.active { font-weight: 500; }
.nav-ico { width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active .ico { stroke-width: 2.6; }
.nav-badge {
  margin-left: auto; background: var(--text); color: var(--bg); border-radius: 9999px;
  font-size: 12px; font-weight: 600; padding: 1px 7px; min-width: 20px; text-align: center;
}
.nav-foot { padding: 12px 6px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.nav-foot a { color: var(--muted); text-decoration: none; }
.nav-foot a:hover { color: var(--text); }
.theme-switch { display: flex; padding: 3px; border-radius: 9999px; background: var(--panel-2); gap: 2px; }
.theme-switch button {
  flex: 1; border: 0; background: none; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: 1; padding: 7px 6px;
  border-radius: 9999px; cursor: pointer;
}
.theme-switch button.on { background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--border); }

.main { flex: 1; min-width: 0; padding: 0 28px 60px; border-right: 1px solid var(--border); }
.page-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: var(--head-h);
  position: sticky; top: 0; z-index: 15; margin: 0 -28px 18px; padding: 10px 28px;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { margin-right: auto; }
.page-sub { color: var(--muted); margin: -8px 0 16px; }
.page-head .head-jump { display: none; }
/* Несколько предупреждений подряд — один список «требует внимания», а не стопка коробок */
.stack > .alert:has(+ .alert) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.stack > .alert + .alert { margin-top: -17px; border-top-left-radius: 0; border-top-right-radius: 0; }

/* ---------- мобильная нижняя панель ---------- */
.tabbar { display: none; }
.sheet-list { display: flex; flex-direction: column; gap: 2px; }
.sheet-list .nav-group { padding-left: 4px; }

/* ---------- палитра «Перейти» (⌘K) ---------- */
dialog.palette {
  border: none; padding: 0; margin: 12vh auto auto; width: min(600px, calc(100vw - 24px));
  background: var(--bg); color: var(--text); border-radius: 20px; box-shadow: var(--pop);
}
dialog.palette::backdrop { background: rgba(91, 112, 131, .4); }
dialog.palette .palette-input {
  width: 100%; border: 0 !important; outline: none !important; background: transparent; color: var(--text);
  font-family: inherit; font-weight: 400; font-size: 18px; line-height: 1.3; padding: 20px 22px !important; border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important; box-shadow: none !important;
}
.palette-list { max-height: 50vh; overflow: auto; padding: 6px; }
.palette-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 12px; cursor: pointer;
  border: 0; background: none; color: var(--text); font: inherit; width: 100%; text-align: left;
}
.palette-item small { color: var(--muted); margin-left: auto; }
.palette-item.sel, .palette-item:hover { background: var(--hover); }
.palette-empty { padding: 18px; color: var(--muted); }
.palette-foot { display: flex; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }

/* ---------- вкладки ---------- */
.tabs {
  display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border);
  margin: -18px -28px 4px; padding: 0 16px; position: sticky; top: var(--head-h); z-index: 14;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; border: 0; background: none; color: var(--muted); font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1; cursor: pointer;
  padding: 18px 14px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center;
}
.tab:hover { background: var(--hover); color: var(--text); }
.tab.active { color: var(--text); font-weight: 600; }
.tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: max(40%, 28px); height: 4px; border-radius: 9999px; background: var(--text);
}
.tab .count { background: var(--text); color: var(--bg); border-radius: 9999px; font-size: 11.5px; font-weight: 600; padding: 1px 6px; }

/* ---------- карточки и сетки ---------- */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; min-width: 0;
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin-right: auto; }
.grid { display: grid; gap: 16px; }
.grid > .card + .card { margin-top: 0; }
.grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-value { font-size: 30px; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.alert {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border); flex-wrap: wrap;
}
.alert > span:first-child { flex: 1 1 180px; }
.alert.info { background: transparent; }
.alert.danger { background: var(--danger-soft); border-color: rgba(244, 33, 46, .35); }
.alert b { font-weight: 500; }

/* ---------- кнопки и поля ---------- */
.btn {
  appearance: none; border: 1px solid var(--btn-border); background: transparent; color: var(--text);
  border-radius: 9999px; padding: 8px 16px; min-height: 36px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none;
  transition: background .15s, opacity .15s;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary, .btn.ok { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover, .btn.ok:hover { background: var(--text); opacity: .88; }
.btn.danger { color: var(--danger); border-color: rgba(244, 33, 46, .5); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { padding: 4px 12px; min-height: 30px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9999px; border: 0; background: none; color: var(--text);
  display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn .ico { width: 20px; height: 20px; }

input[type=text], input[type=search], input[type=number], input[type=url], input[type=password],
input[type=tel], input[type=email], input[type=date], input[type=datetime-local], select, textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 9px 12px; min-width: 0; transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
textarea { width: 100%; resize: vertical; line-height: 1.45; }
textarea.code { font-family: var(--mono); font-size: 13px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--text); width: 16px; height: 16px; }
input[type=search].search, .search {
  width: 300px; max-width: 100%; border-radius: 9999px; padding-left: 40px; background-color: var(--panel-2); border-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b98a5' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; background-size: 18px;
}
.search:focus { background-color: var(--bg); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: transparent; border-radius: 9999px; padding: 6px 14px;
  cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.chip:hover { background: var(--hover); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { opacity: .6; margin-left: 5px; font-variant-numeric: tabular-nums; }
.chip.dim { opacity: .5; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.filters label.check { flex-direction: row; align-items: center; gap: 8px; }

/* ---------- значки состояний ---------- */
.badge {
  display: inline-block; border-radius: 9999px; padding: 2px 10px; font-size: 12px; font-weight: 500;
  background: transparent; color: var(--muted); white-space: nowrap; border: 1px solid var(--border);
}
.badge.ok { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 500; }
.badge.accent { color: var(--text); border-color: var(--text); font-weight: 500; }
.badge.warn { color: var(--text); border: 1px dashed var(--text); font-weight: 500; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 7px; vertical-align: 1px; }
.dot.ok { background: var(--text); box-shadow: 0 0 0 3px var(--hover); }
.dot.warn { background: transparent; box-shadow: inset 0 0 0 2px var(--text); }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 10px 10px;
  border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--panel);
}
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.list tr:last-child td { border-bottom: none; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--hover); }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.raw td { font-family: var(--mono); font-size: 12px; max-width: 360px; overflow-wrap: anywhere; }
.cell-main { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 13px; }
.empty { padding: 40px 10px; text-align: center; color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 14px; gap: 12px; align-items: center; }

dl.props { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.props dt { color: var(--muted); }
dl.props dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- сводка ---------- */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; min-width: 0; }
.chart-bar { background: var(--text); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.chart-bar.zero { background: var(--border); }
.chart-col:hover .chart-bar { opacity: 1; }
.chart-axis { display: flex; gap: 3px; margin-top: 6px; font-size: 11px; color: var(--faint); }
.chart-axis span { flex: 1; text-align: center; min-width: 0; white-space: nowrap; display: flex; justify-content: center; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 130px 1fr 70px; gap: 10px; align-items: center; }
.funnel-track { background: var(--panel-2); border-radius: 9999px; height: 10px; overflow: hidden; }
.funnel-fill { background: var(--text); height: 100%; border-radius: 9999px; min-width: 2px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: baseline; }
.list-plain li:last-child { border-bottom: none; }

/* ---------- оплаты ---------- */
.proof-card { display: flex; flex-direction: column; gap: 10px; }
.proof-img {
  width: 100%; height: 220px; object-fit: contain; background: var(--panel-2); border-radius: 12px;
  cursor: zoom-in; border: 1px solid var(--border);
}
.proof-none {
  height: 90px; display: grid; place-items: center; background: var(--panel-2); border-radius: 12px;
  color: var(--muted); text-align: center; padding: 10px; border: 1px dashed var(--border);
}
.amount { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.proof-big { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; border-radius: 12px; }

/* ---------- база ---------- */
.niche-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.price-line { color: var(--muted); font-size: 13px; }
.big-count { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- контакты ---------- */
.lead-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.lead-thumb { width: 160px; border-radius: 12px; flex: none; background: var(--panel-2); }
.desc { white-space: pre-wrap; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; max-height: 240px; overflow: auto; }
details.raw summary { cursor: pointer; color: var(--muted); }
details.raw pre { max-height: 300px; overflow: auto; background: var(--panel-2); padding: 10px; border-radius: 12px; }

/* ---------- таблицы базы ---------- */
.split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9999px;
  cursor: pointer; border: none; background: none; font: inherit; color: var(--text); text-align: left;
}
.side-item:hover { background: var(--hover); }
.side-item.active { background: var(--text); color: var(--bg); font-weight: 600; }

/* ---------- логи ---------- */
.log {
  background: #000; color: #e7e9ea; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0;
  height: calc(100vh - 300px); min-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 12px; line-height: 1.55;
}
.log .t { color: #71767b; }
.log .e { color: #ff6b75; }
.log .w { color: #ffffff; font-weight: 600; }
.log .r { color: #a9b1b8; }
.log mark { background: #e7e9ea; color: #000; border-radius: 2px; }
.jobs { display: flex; flex-direction: column; gap: 6px; }
.job { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- тексты ---------- */
.tg-preview { background: var(--tg-bg); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.clamp { max-height: 7em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tg-bubble {
  background: var(--tg-bubble); border-radius: 18px 18px 18px 4px; padding: 10px 14px; max-width: 520px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.tg-bubble code { background: var(--hover); padding: 0 3px; border-radius: 4px; }
.tg-bubble blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid currentColor; opacity: .85; }
.tg-bubble .spoiler { background: var(--faint); color: transparent; border-radius: 3px; }
.counter { font-size: 12.5px; color: var(--muted); text-align: right; }
.counter.over { color: var(--danger); font-weight: 600; }

/* ---------- диалог и уведомления ---------- */
dialog.dlg {
  border: none; border-radius: 20px; padding: 0; background: var(--bg); color: var(--text);
  width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--pop);
}
dialog.dlg.wide { width: min(880px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(91, 112, 131, .4); }
.modal-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.modal-head h2 { margin-right: auto; font-size: 20px; }
.modal-head .btn.ghost { order: -1; width: 36px; height: 36px; padding: 0; font-size: 17px; }
.modal-body { padding: 16px 18px; overflow: auto; max-height: calc(100vh - 170px); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.modal-body .section { margin-top: 20px; }
.modal-body .section h3 { margin-bottom: 8px; }

#toasts {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; z-index: 60; width: max-content; max-width: min(480px, calc(100vw - 32px));
}
.toast {
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--pop);
  animation: rise .2s ease-out; white-space: pre-wrap; font-weight: 500;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: var(--text); color: var(--bg); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* ---------- вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { max-width: 440px; width: 100%; padding: 36px 32px; border-radius: 20px; }
.login .brand-logo { width: 48px; height: 48px; font-size: 19px; border-radius: 14px; }
.login h1 { margin: 22px 0 8px; font-size: 28px; letter-spacing: -.02em; }
.login p { color: var(--muted); margin: 0 0 20px; }
.login .btn.block { min-height: 44px; font-size: 15px; }

/* ---------- узкий экран: навигация иконками ---------- */
@media (max-width: 1240px) {
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .nav { width: 80px; padding: 0 10px; align-items: center; }
  .brand { padding: 14px 0 10px; }
  .brand-name, .nav-text, .nav-group, .nav-jump span, .nav-jump kbd, .nav-foot { display: none; }
  .nav-jump { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .nav-link { padding: 12px; justify-content: center; position: relative; }
  .nav-link.active { background: var(--hover); }
  .nav-badge { position: absolute; top: 4px; right: 2px; margin: 0; font-size: 11px; padding: 0 5px; min-width: 18px; }
}

/* ---------- телефон и мини-приложение ---------- */
@media (max-width: 860px) {
  .shell { display: block; }
  .nav { display: none; }
  .main { padding: 0 14px calc(84px + env(safe-area-inset-bottom)); border-right: 0; }
  .page-head { margin: 0 -14px 14px; padding: 8px 14px; gap: 8px; }
  .page-head .head-jump { display: inline-grid; margin-left: -6px; }
  .tabs { margin: -14px -14px 4px; padding: 0 4px; }
  .tab { padding: 16px 12px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
    color: var(--muted); font-family: inherit; font-weight: 500; font-size: 11px; line-height: 1.2; text-decoration: none; border: 0; background: none; cursor: pointer;
    position: relative; min-width: 0;
  }
  .tabbar .active { color: var(--text); font-weight: 600; }
  .tabbar .active .ico { stroke-width: 2.6; }
  .tabbar .nav-badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; font-size: 10.5px; padding: 0 5px; min-width: 16px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .search, input[type=search].search { width: 100%; }
  .log { height: calc(100vh - 360px); }
  .funnel-row { grid-template-columns: 100px 1fr 56px; }
  .lead-head { flex-direction: column; }
  .lead-thumb { width: 100%; max-width: 320px; }
  #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  dialog.dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  dialog.palette { margin-top: 8vh; }
  /* таблицы — карточками */
  table.list.stackable thead { display: none; }
  table.list.stackable, table.list.stackable tbody, table.list.stackable tr, table.list.stackable td { display: block; width: 100%; }
  table.list.stackable tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  table.list.stackable td { border: none; padding: 3px 0; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
  table.list.stackable td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
  table.list.stackable td.num { text-align: right; }
  table.list.stackable td > div { text-align: right; }
}
@media (max-width: 520px) {
  dl.props { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 12px; }
  dl.props dt { overflow-wrap: anywhere; }
  .grid-kpi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi-value { font-size: 24px; }
  .card { padding: 14px; }
  .table-wrap { margin: 0 -14px; padding: 0 14px; }
}

/* ---------- продвижение ---------- */
.span-all { grid-column: 1 / -1; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.chat .msg { display: flex; flex-direction: column; align-items: flex-start; }
.chat .msg.out { align-items: flex-end; }
.chat .msg.out .tg-bubble { background: var(--tg-bubble-out); color: var(--tg-bubble-out-text); border-radius: 18px 18px 4px 18px; }
.chat .msg.out .tg-bubble a { color: inherit; }
.msg-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* с какого аккаунта ушло исходящее */
.msg-meta .msg-account { font-weight: 600; }
blockquote.desc { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--text); background: var(--panel-2);
  border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box.hidden { display: none; }
.qr-img { width: 220px; height: 220px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.qr-box p { flex: 1 1 200px; margin: 0; }
.budget-meter { display: block; width: 100%; height: 10px; margin: 14px 0; accent-color: var(--text); }
.settings-save { position: sticky; bottom: 12px; padding: 12px; background: var(--glass); -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 9999px; z-index: 10; }
@media (max-width: 860px) { .settings-save { bottom: calc(76px + env(safe-area-inset-bottom)); border-radius: 20px; } }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
details summary { cursor: pointer; }

/* Поиск людей: крупный счётчик */
.discovery-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px;
  padding: 26px 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); }
.discovery-hero h2 { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.15; margin: 10px 0; letter-spacing: -.02em; font-weight: 600; }
.discovery-hero p { margin: 0; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.discovery-score { align-self: center; display: grid; gap: 4px; text-align: right; }
.discovery-score strong { color: var(--text); font-size: 56px; line-height: 1; letter-spacing: -.02em; font-weight: 600; font-variant-numeric: tabular-nums; }
.discovery-score span, .discovery-meta { color: var(--muted); font-size: 13px; }
.discovery-meta { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 14px; }
@media (max-width: 620px) {
  .discovery-hero { grid-template-columns: 1fr; padding: 20px; gap: 14px; }
  .discovery-score { text-align: left; }
  .discovery-score strong { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* срок оплаты прокси: здесь цвет нужен — зелёный, жёлтый (истекает), красный (.danger) */
.badge.proxy-ok { filter: none; background: rgba(34, 160, 90, .16); color: #1f9d55; border-color: transparent; font-weight: 500; }
.badge.proxy-soon { filter: none; background: rgba(230, 160, 20, .18); color: #b7791f; border-color: transparent; font-weight: 500; }

.neuro-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.neuro-stats .card { min-width: 0; }
.neuro-stats .card + .card { margin-top: 0; }
.neuro-stats strong { display: block; font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -.02em; }
.neuro-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6;
  border: 1px solid var(--border); border-radius: 18px; background: var(--panel-2); padding: 20px; max-width: 600px; }
@media (max-width: 1000px) { .neuro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .neuro-stats { gap: 8px; } .neuro-stats .card { padding: 12px; } }
/* Dialog attachments: compact previews on both desktop and phone. */
.dialog-composer { min-width: 0; }
.dialog-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-photos:empty { display: none; }
.dialog-photo { position: relative; width: 112px; height: 92px; flex: 0 0 auto; }
.dialog-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.dialog-photo-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #17202ee8; color: white; font-size: 21px; cursor: pointer; }

/* Contact Market: обзор и состояние сбора на телефоне и компьютере. */
.cap-filters { display:flex; gap:12px; flex-wrap:wrap; margin:18px 0; }
.cap-filters input { flex:1; min-width:180px; }
.cap-accounts td { overflow-wrap:anywhere; }
.cap-accounts td > div { min-width:0; }
.cap-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:16px 0; }
.cap-settings-grid input { width:100%; min-width:0; }
.cap-log { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--panel-2); padding:18px;
  border-radius:14px; max-height:65vh; overflow:auto; font-size:12px; line-height:1.6; }
@media(max-width:600px) { .cap-settings-grid { grid-template-columns:1fr; } .cap-filters > * { flex:1 1 100%; } }
.cm-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 3vw, 36px); border: 1px solid var(--border); border-radius: 24px;
  background: var(--panel); }
.cm-hero h2 { max-width: 640px; margin: 12px 0; font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.cm-hero p { margin: 0 0 22px; color: var(--muted); max-width: 480px; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-hero-status { display: grid; gap: 12px; flex: 0 0 auto; }
.cm-live { border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); }
.cm-live.online { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.cm-operations { padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); }
.cm-operation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cm-operation-head h2 { margin-bottom: 6px; }
.cm-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 24px 0; }
.cm-metrics > div { display: grid; gap: 4px; border-right: 1px solid var(--border); }
.cm-metrics > div:last-child { border: 0; }
.cm-metrics strong { font-size: clamp(25px,3vw,36px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cm-metrics span { color: var(--muted); font-size: 12px; }
.cm-report-note { display: flex; align-items: center; gap: 10px; padding-top: 16px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cm-report-note svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 680px) {
  .cm-hero { flex-direction: column; align-items: stretch; gap: 20px; border-radius: 20px; }
  .cm-hero-status { display: flex; align-items: center; flex-wrap: wrap; }
  .cm-hero-status .small { font-size: 11px; }
  .cm-operations { padding: 18px; }
  .cm-metrics { gap: 10px; }
  .cm-operation-head .btn { flex: 0 0 auto; }
  .cm-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
}

/* ---------- поверхности и элементы панели ---------- */
::selection { background: var(--accent-soft); color: var(--text); }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.nav { background: var(--nav-bg); }
.brand { padding: 20px 12px 14px; }
.brand-logo { background: var(--accent); color: var(--accent-text); }
.brand-name { font-weight: 600; }
.nav-jump { border-radius: 10px; border-color: var(--border); padding: 9px 12px; }
.nav-group { font-size: 12px; font-weight: 500; padding: 16px 12px 6px; }
.nav-link { min-height: 38px; padding: 7px 12px; gap: 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 400; }
.nav-link:hover { color: var(--text); }
.nav-link.active { background: var(--panel-2); color: var(--text); font-weight: 500; }
.nav-ico, .nav-link .ico { width: 20px; height: 20px; }
.nav-link.active .ico { stroke-width: 2; }
.nav-badge, .tab .count { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.theme-switch, .theme-switch button { border-radius: 10px; }
.main { border-right: 0; }
.page-head h1 { font-size: 22px; font-weight: 600; }
.card { padding: 22px; }
.card-head h2 { font-size: 14px; font-weight: 600; }
.kpi-value { font-weight: 600; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-foot { color: var(--muted); font-size: 12px; margin-top: 8px; }
.delta { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--panel-2); color: var(--muted); }
.delta.up { background: var(--ok-soft); color: var(--ok); }
.delta.down { background: var(--danger-soft); color: var(--danger); }
.delta.flat { background: var(--panel-2); color: var(--muted); }
.tab { font-size: 14px; }
.tab.active { font-weight: 600; }
.tab.active::after { left: 14px; right: 14px; transform: none; width: auto; height: 2px; background: var(--accent); }
.btn { border-radius: 10px; background: var(--panel-2); font-weight: 600; }
.btn.primary, .btn.ok { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover, .btn.ok:hover { background: var(--accent-hover); border-color: var(--accent-hover); opacity: 1; }
.btn.danger { background: var(--danger-soft); border-color: transparent; }
.icon-btn { border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio], .budget-meter { accent-color: var(--accent); }
input[type=search].search, .search { border-radius: 10px; border-color: var(--border); }
.chip { border-radius: 10px; font-size: 13px; }
.chip.active, .side-item.active { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.side-item { border-radius: 10px; }
.badge.ok, .badge.proxy-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn, .badge.proxy-soon { background: var(--warn-soft); color: var(--warn); border: 1px solid transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.warn { background: var(--warn); box-shadow: none; }
.alert.info { background: var(--info-soft); border-color: transparent; }
.alert.danger { border-color: transparent; }
.table-wrap { margin: 0 -22px; padding: 0 22px; }
table { font-variant-numeric: tabular-nums; }
table.list th { font-size: 12px; padding: 10px; }
table.list td { padding: 11px 10px; }
table.list tbody tr:hover td { background: var(--hover); }
.chart-bar { background: linear-gradient(to top, rgba(59, 130, 246, .25), var(--accent)); border-radius: 5px 5px 0 0; }
.chart-col:hover .chart-bar { filter: brightness(1.2); }
.funnel-fill { background: var(--accent); }
dialog.dlg, dialog.palette { background: var(--panel); border: 1px solid var(--border); }
dialog.dlg::backdrop, dialog.palette::backdrop { background: rgba(0, 0, 0, .6); }
.modal-head { background: var(--panel); }
.toast, .toast.ok { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.toast.ok { color: var(--ok); }
:focus-visible { outline-color: var(--accent); }
@media (max-width: 1100px) and (min-width: 861px) {
  .nav-jump { width: 52px; height: 44px; }
  .nav-link { padding: 12px; }
}
@media (max-width: 860px) {
  .tabbar .active { color: var(--accent); font-weight: 600; }
  .tabbar .active .ico { stroke-width: 2; }
}
@media (max-width: 520px) {
  .card { padding: 14px; }
  .table-wrap { margin: 0 -14px; padding: 0 14px; }
  .grid-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- шапка и обзор ---------- */
.nav-jump { gap: 4px; }
.nav-jump > .ico { margin-right: 6px; width: 18px; height: 18px; }
.nav-jump span { margin-right: auto; }
.nav-jump kbd { margin-left: 0; }
.nav-foot { margin: 8px 0 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.page-head { position: static; margin: 0 0 20px; padding: 28px 0 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: center; }
.page-heading { flex: 1 1 240px; min-width: 0; }
.page-head h1 { margin: 0; }
.page-subtitle { color: var(--muted); font-size: 13px; margin-top: 6px; }
.page-subtitle:empty, .page-actions:empty { display: none; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cm-live { padding: 6px 10px; font-weight: 500; white-space: nowrap; }
.cm-hero h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; }
.btn, .chip, .tab.active, .nav-badge, .tab .count { font-weight: 500; }
.tab { font-weight: 400; }
.btn.primary, .btn.ok { font-weight: 500; }
table.list td { padding: 10px; vertical-align: middle; }
.cell-main { font-size: 14px; font-weight: 500; }
.cell-sub { font-size: 12px; }
.list-plain a, table td a, dl.props dd a { color: var(--text); text-decoration: none; }
.list-plain a:hover, table td a:hover, dl.props dd a:hover { color: var(--accent); }
.summary-chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.summary-chart-head h2 { font-size: 14px; font-weight: 600; }
.summary-total { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 10px; }
.summary-total span { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.summary-chart .tabs { position: static; margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; max-width: 100%; }
.summary-chart .tab { padding: 12px; font-size: 13px; }
.summary-chart .tab.active::after { left: 12px; right: 12px; }
.summary-plot { position: relative; margin-top: 18px; min-width: 0; }
.summary-plot svg { display: block; width: 100%; height: 260px; touch-action: pan-y; }
.summary-gridline { stroke: var(--border); stroke-width: 1; stroke-dasharray: 4 4; }
.summary-axis-label { fill: var(--muted); font-size: 11px; }
.summary-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.summary-crosshair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.summary-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.summary-tooltip { position: absolute; z-index: 1; pointer-events: none; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--pop); padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.summary-tooltip[hidden] { display: none; }
@media (max-width: 1100px) and (min-width: 861px) {
  .nav-foot { display: none; }
  .nav-jump > .ico { margin: 0; }
}
@media (max-width: 860px) {
  .page-head { margin: 0 0 16px; padding: 18px 0 0; }
  .page-head .head-jump { margin-left: -6px; }
  .page-actions { flex-basis: 100%; }
}
@media (max-width: 520px) {
  .page-actions .btn { flex: 1 1 auto; }
  .summary-chart-head { align-items: flex-start; }
  .summary-chart .tabs { width: 100%; }
  .summary-chart .tab { padding: 12px 9px; }
  .summary-chart .tab.active::after { left: 9px; right: 9px; }
  table.list.stackable td { padding: 3px 0; }
  .list-plain li { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .kpi-top { flex-wrap: wrap; }
  .kpi-value, .kpi-foot, .list-plain a { overflow-wrap: anywhere; }
  .list-plain .grow { min-width: 0; }
}

@media (max-width: 520px) {
  .page-actions .cm-live { flex: 0 0 auto; margin-right: 100%; text-align: left; }
  .page-actions .btn { flex: 1 1 0; min-width: 0; min-height: 30px; padding: 4px 8px; font-size: 13px; }
}
.summary-tooltip-row { display: block; }
