/* IOC Aggregator — светлый минимализм. Корпоративный синий используется только как акцент:
   главная кнопка, ссылки, активный пункт меню, выделенные цифры и фокус. Всё остальное — нейтральные серые. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #eceef2;
  --border: #e7e9ee;
  --border-light: #d9dde5;
  --text: #121826;
  --text-muted: #4a5365;
  --text-dim: #8a93a4;
  --accent: #2457e6;
  --accent-hover: #1c47c4;
  --accent-soft: #eaf0ff;
  --accent-dim: #eaf0ff;
  --green: #17803d;
  --green-bg: #eaf7ef;
  --amber: #a15c07;
  --amber-bg: #fdf4e3;
  --red: #c0272d;
  --red-bg: #fdeded;
  --log-bg: #f4f5f7;
  --log-text: #2a3142;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --radius: 8px;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1116;
  --surface: #151922;
  --surface-2: #1a1f2a;
  --surface-3: #232937;
  --border: #262d3a;
  --border-light: #343c4c;
  --text: #e8ebf0;
  --text-muted: #a3abbb;
  --text-dim: #6d7689;
  --accent: #6b97ff;
  --accent-hover: #86abff;
  --accent-soft: #1b2744;
  --accent-dim: #1b2744;
  --green: #4cd08a;
  --green-bg: #12261c;
  --amber: #f0b44a;
  --amber-bg: #2b2210;
  --red: #f26b72;
  --red-bg: #2c1618;
  --log-bg: #0b0e13;
  --log-text: #c3c9d6;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; margin: 0 0 12px; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 22px; }
h2 small { font-size: 15px; font-weight: 500; color: var(--text-dim); margin-left: 6px; }
h3 { font-size: 15px; }
code, .mono { font-family: var(--mono); font-size: .93em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
small { color: var(--text-dim); }
.muted { color: var(--text-dim); }
.nowrap { white-space: nowrap; }
.section { margin-top: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- каркас ---------- */
.wrap { max-width: 1400px; margin: 0 auto; padding: 28px 24px 72px; }
nav.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; height: 58px;
  display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 20; }
nav.topbar .brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; color: var(--text); white-space: nowrap; }
nav.topbar .brand:hover { text-decoration: none; }
nav.topbar .brand svg { stroke: var(--accent); }
nav.topbar .navlinks { display: flex; gap: 2px; height: 100%; align-items: stretch; }
nav.topbar .navlinks > a, nav.topbar .more > summary {
  color: var(--text-muted); padding: 0 11px; font-size: 13.5px; font-weight: 500; display: flex; align-items: center;
  position: relative; white-space: nowrap; cursor: pointer; list-style: none; }
nav.topbar .navlinks > a:hover, nav.topbar .more > summary:hover { color: var(--text); text-decoration: none; }
nav.topbar .navlinks > a.active { color: var(--text); }
nav.topbar .navlinks > a.active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
nav.topbar .more { position: relative; display: flex; align-items: stretch; }
nav.topbar .more > summary::-webkit-details-marker { display: none; }
nav.topbar .more > summary::after { content: "▾"; margin-left: 5px; font-size: 10px; }
nav.topbar .more[open] > summary { color: var(--text); }
nav.topbar .more .menu { position: absolute; top: 52px; left: 0; min-width: 190px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(16,24,40,.12); display: flex; flex-direction: column; }
nav.topbar .more .menu a { padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 13.5px; }
nav.topbar .more .menu a:hover { background: var(--surface-2); text-decoration: none; }
nav.topbar .more .menu a.active { color: var(--accent); font-weight: 600; }
nav.topbar form.search { flex: 1; max-width: 300px; margin-left: auto; position: relative; }
nav.topbar form.search input { width: 100%; background: var(--surface-2); border: 1px solid transparent; color: var(--text);
  padding: 8px 34px 8px 34px; border-radius: 20px; font-size: 13.5px; font-family: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238a93a4' stroke-width='2'><circle cx='6' cy='6' r='5'/><line x1='9.5' y1='9.5' x2='13' y2='13'/></svg>");
  background-repeat: no-repeat; background-position: 12px center; }
nav.topbar form.search input:focus { outline: none; background-color: var(--surface); border-color: var(--accent); }
nav.topbar form.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--text-dim);
  border: 1px solid var(--border-light); border-radius: 4px; padding: 0 5px; pointer-events: none; }
.themebtn { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 8px; width: 34px; height: 34px;
  cursor: pointer; font-size: 15px; line-height: 1; }
.themebtn:hover { color: var(--text); border-color: var(--border-light); }
nav.topbar .userbox { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
nav.topbar .userbox a { color: var(--text-dim); }
nav.topbar .userbox a:hover { color: var(--text); }
@media (max-width: 1080px) { nav.topbar { height: auto; flex-wrap: wrap; padding: 8px 16px; gap: 6px 12px; } nav.topbar .navlinks { height: 40px; flex-wrap: wrap; } }

/* ---------- карточки и сетки ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card.tablecard { padding: 0; overflow-x: auto; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid.equal > .card { display: flex; flex-direction: column; }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cardhead h3 { margin: 0; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1, .pagehead h2 { margin: 0; }
.pagehead p { margin: 4px 0 0; color: var(--text-dim); }

/* ---------- кнопки, поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; background: var(--surface);
  border: 1px solid var(--border-light); color: var(--text); padding: 8px 14px; border-radius: var(--radius); font-size: 13.5px;
  font-weight: 500; font-family: inherit; line-height: 1.2; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=password], input[type=date], select, textarea {
  background: var(--surface); border: 1px solid var(--border-light); color: var(--text); padding: 8px 11px; border-radius: var(--radius);
  font-size: 13.5px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
textarea.editor, textarea.bulk { width: 100%; min-height: 300px; background: var(--surface-2); color: var(--text); font-family: var(--mono);
  font-size: 12.5px; resize: vertical; padding: 12px; }
textarea.bulk { min-height: 190px; font-size: 13px; }

/* ---------- таблицы ---------- */
table { width: 100%; border-collapse: collapse; }
.card table { margin: 0; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13.5px; }
th { color: var(--text-dim); font-weight: 500; font-size: 12.5px; background: var(--surface); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
tr[data-href] { cursor: pointer; }
td.ind { font-family: var(--mono); font-size: 13px; }
.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.tablecard td.ind { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.tablecard td.truncate { max-width: 150px; }
.card.tablecard td.truncate.narrow { max-width: 110px; }
th a.sortlink { color: inherit; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
th a.sortlink:hover { color: var(--text); text-decoration: none; }
th a.sortlink .arr { color: var(--accent); font-size: 10px; }
.empty { text-align: center; padding: 44px 20px !important; color: var(--text-dim); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------- метки статусов: точка + слово, без заливки ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; background: none; padding: 0; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill-confirmed, .pill-active { color: var(--green); }
.pill-reputation, .pill-warn { color: var(--amber); }
.pill-unverified { color: var(--red); }
.pill-inactive { color: var(--text-dim); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: var(--surface-3); color: var(--text-muted); font-weight: 500; }
.score { display: inline-block; min-width: 28px; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-dim); }
.score.s3, .score.s4 { color: var(--accent); }
.score.s2 { color: var(--text); }
.score.big { font-size: 34px; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 13px; background: var(--surface);
  color: var(--text-muted); border: 1px solid var(--border-light); text-decoration: none; cursor: pointer; font-family: inherit; }
.chip:hover { color: var(--text); border-color: var(--text-dim); text-decoration: none; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip form { display: inline; margin: 0; }
.chip button { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 0 0 0 4px; font-size: 14px; line-height: 1; }
.viewchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }

/* ---------- уведомления ---------- */
.notice { background: var(--green-bg); color: var(--green); border-radius: var(--radius); padding: 11px 14px; margin-bottom: 16px; font-size: 13.5px; }
.notice.err { background: var(--red-bg); color: var(--red); }
.alertbar { background: var(--amber-bg); color: var(--amber); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px; }
.alertbar a { color: inherit; text-decoration: underline; }
.tip { display: flex; align-items: flex-start; gap: 12px; background: var(--accent-soft); color: var(--text); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px; }
.tip b { color: var(--accent); }
.tip button { margin-left: auto; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 18px; line-height: 1; }
kbd { font: 11.5px var(--mono); border: 1px solid var(--border-light); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface); }

/* ---------- обзор ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
a.kpi { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; color: inherit;
  text-decoration: none; box-shadow: var(--shadow); transition: border-color .12s; }
a.kpi:hover { border-color: var(--accent); text-decoration: none; }
a.kpi b { display: block; font-size: 30px; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
a.kpi span { color: var(--text-muted); font-size: 13px; }
a.kpi.primary b { color: var(--accent); }
.statusline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.statusline i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.statusline.warn i { background: var(--amber); }
.actions { display: flex; flex-direction: column; }
.action { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.action:last-child { border-bottom: none; padding-bottom: 0; }
.action:first-child { padding-top: 0; }
.action .n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--text-muted); display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.action .txt { flex: 1; min-width: 0; }
.action .txt b { display: block; font-weight: 600; }
.action .txt span { color: var(--text-dim); font-size: 13px; }
.action .btns { display: flex; gap: 8px; flex-shrink: 0; }
.sumchip { background: var(--surface-2); color: var(--text-muted); border-radius: 20px; padding: 3px 12px; font-size: 12.5px; }
.sumchip b { color: var(--text); font-variant-numeric: tabular-nums; }
.daterange { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.columns { display: flex; align-items: stretch; gap: 8px; height: 190px; }
.columns .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.columns .barwrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); }
.columns .bar { width: 62%; max-width: 52px; background: var(--accent); opacity: .85; border-radius: 5px 5px 0 0; transition: opacity .12s; }
.columns .col:hover .bar { opacity: 1; }
.columns .v { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.columns .d { font-size: 11.5px; color: var(--text-dim); text-align: center; white-space: nowrap; height: 14px; }
.chart-loading { color: var(--text-dim); font-size: 13px; padding: 70px 0; text-align: center; width: 100%; }
.bars { display: flex; flex-direction: column; gap: 2px; }
a.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; grid-template-areas: "nm vl pc" "tr tr tr"; gap: 2px 10px; padding: 7px 8px;
  margin: 0 -8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; }
a.brow:hover { background: var(--surface-2); text-decoration: none; }
a.brow .nm { grid-area: nm; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.brow .vl { grid-area: vl; color: var(--text-muted); font-variant-numeric: tabular-nums; }
a.brow .pc { grid-area: pc; text-align: right; color: var(--text-dim); font-variant-numeric: tabular-nums; }
a.brow .tr { grid-area: tr; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
a.brow .tr i { display: block; height: 100%; border-radius: 2px; background: var(--accent); opacity: .75; }
.legend-note { color: var(--text-dim); font-size: 12.5px; margin-top: 10px; }

/* ---------- индикаторы: поиск и фильтры ---------- */
.searchrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.searchrow input[name=q] { flex: 1; min-width: 260px; padding: 10px 14px; font-size: 14.5px; border-radius: 10px; }
.searchrow select { padding: 9px 11px; }
details.adv { margin: 0 0 14px; }
details.adv > summary { cursor: pointer; color: var(--text-muted); font-size: 13.5px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: "＋"; color: var(--accent); }
details.adv[open] > summary::before { content: "−"; }
details.adv .advgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
details.adv .advgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-dim); }
details.adv .advgrid input, details.adv .advgrid select { width: 100%; }
details.adv .advactions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.countdot { background: var(--accent); color: #fff; border-radius: 10px; font-size: 11.5px; padding: 0 7px; font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }
.loadinfo { text-align: center; color: var(--text-dim); font-size: 13px; padding: 16px 0; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
details.legend-mini { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); }
details.legend-mini summary { cursor: pointer; width: fit-content; }
details.legend-mini[open] summary { margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.legend .li { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 8px; height: 8px; border-radius: 50%; }
.sw-confirmed { background: var(--green); } .sw-reputation { background: var(--amber); } .sw-unverified { background: var(--red); }

/* ---------- карточка индикатора ---------- */
.crumb { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-header h1 { font-family: var(--mono); font-size: 22px; font-weight: 600; margin: 0; word-break: break-all; }
.verdict { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border-left: 4px solid var(--border-light); }
.verdict.block { border-left-color: var(--accent); }
.verdict.watch { border-left-color: var(--amber); }
.verdict.drop, .verdict.low { border-left-color: var(--text-dim); }
.verdict h3 { font-size: 18px; margin: 0 0 4px; }
.verdict .why { color: var(--text-muted); margin: 0; font-size: 13.5px; }
.verdict .sc { text-align: right; }
.verdict .sc small { display: block; margin-top: 2px; }
.reasons { margin: 8px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 13px; }
.actionbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.kv { display: grid; grid-template-columns: 170px 1fr; }
.kv > div { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.kv > div:nth-last-child(-n+2) { border-bottom: none; }
.kv > div:nth-child(odd) { color: var(--text-dim); }
.kv > div:nth-child(even) { color: var(--text); word-break: break-word; }
details.fold { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-top: 14px; box-shadow: var(--shadow); }
details.fold > summary { cursor: pointer; padding: 14px 20px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "▾"; color: var(--text-dim); font-size: 12px; transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold > .foldbody { padding: 0 20px 18px; }
details.fold > .foldbody table { margin: 0 -20px; width: calc(100% + 40px); }
.srcchips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipwrap { display: flex; flex-wrap: wrap; gap: 6px; }
.toolchip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border-radius: 14px; font-size: 12.5px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.toolchip.common { border-color: var(--amber); color: var(--amber); }
.toolchip small { color: inherit; opacity: .8; }
details.desc summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.cmd { font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 12px; word-break: break-all; display: block; }

/* ---------- модальные окна ---------- */
dialog.modal { background: var(--surface); color: var(--text); border: 1px solid var(--border-light); border-radius: 14px; padding: 24px; width: min(480px, 92vw); box-shadow: 0 20px 50px rgba(16,24,40,.25); }
dialog.modal::backdrop { background: rgba(16, 24, 40, .45); }
dialog.modal h3 { margin-top: 0; font-size: 17px; }
.fmtlist { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 16px; max-height: 46vh; overflow-y: auto; }
.fmtlist label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.fmtlist label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fmtlist small { display: block; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- запуск, лог, настройки ---------- */
.statusbox { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 20px; }
.statusbox .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-idle .dot { background: var(--text-dim); } .status-running .dot { background: var(--accent); animation: pulse 1.2s infinite; }
.status-ok .dot { background: var(--green); } .status-warn .dot { background: var(--amber); } .status-fail .dot { background: var(--red); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
pre.log { background: var(--log-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; font-family: var(--mono); font-size: 12px; color: var(--log-text); max-height: 420px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.pagination { display: flex; gap: 14px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.scorebox { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- вход ---------- */
.loginwrap { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
.logincard { width: 100%; max-width: 360px; padding: 28px; }
.logincard h2 { text-align: center; font-size: 20px; }
.logincard .brandmark { display: flex; justify-content: center; margin-bottom: 14px; }
.logincard .brandmark svg { stroke: var(--accent); }
.logincard form p { margin: 0 0 14px; }
.logincard label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 13px; }
.logincard input[type=text], .logincard input[type=password] { width: 100%; }
.logincard .btn { width: 100%; margin-top: 4px; padding: 10px; }
.logincard .error { background: var(--red-bg); color: var(--red); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* плитки-ссылки на вторичных страницах */
.todaygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
a.today { display: block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: inherit; text-decoration: none; }
a.today:hover { border-color: var(--accent); text-decoration: none; }
a.today b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; font-weight: 650; }
a.today span { color: var(--text-muted); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; font-weight: 650; }

/* формы с подписями над полем (импорт, мой контекст) */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.fgrid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted, #6b7280); }
.fgrid input[type=text] { width: 100%; box-sizing: border-box; }

/* публикации вендоров */
.rsshead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rssrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--border); }
.rssrow:first-child { border-top: 0; }
.rssrow a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.rssrow a:not(.btn):hover { color: var(--accent); }
.rssrow .btn { white-space: nowrap; }
.rssrow .btn { border: 1px solid var(--border-light); padding: 5px 12px; border-radius: 8px; font-size: 13px; text-decoration: none; color: var(--text); }
.rssrow .btn:hover { border-color: var(--accent); color: var(--accent); }
.rssscroll { max-height: 400px; overflow-y: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; }

/* широкие таблицы индикаторов: компактнее ячейки; на узких экранах прячем Category (обычно повторяет Threat) */
.card.tablecard th, .card.tablecard td { padding: 10px 10px; }
.card.tablecard td.ind { max-width: 210px; }
@media (max-width: 1280px) { .col-cat { display: none; } }
@media (max-width: 1100px) { .card.tablecard td.truncate { max-width: 120px; } }

/* Telegram-вход */
.tgstep { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0; }
.tgstep[hidden] { display: none; }
.tgstep label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-muted); }
.tgstep input[type=text], .tgstep input[type=password] { width: 260px; }
.advgrid select { width: 100%; max-width: 100%; text-overflow: ellipsis; }

/* новые публикации */
.rssrow.new { background: var(--accent-soft); border-left: 3px solid var(--accent); padding-left: 10px; border-radius: 6px; }
.newbadge { display: inline-block; font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }

/* бюллетени */
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.bcard { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; }
.bcard:hover { border-color: var(--accent); text-decoration: none; }
.bcard .bhead { display: flex; justify-content: space-between; margin-bottom: 6px; }
.bulletin h2 { margin: 22px 0 8px; font-size: 18px; } .bulletin h3 { margin: 16px 0 6px; font-size: 15.5px; } .bulletin h5 { margin: 12px 0 4px; }
.bulletin ul { padding-left: 20px; margin: 6px 0 10px; } .bulletin li { margin: 3px 0; }
.bulletin blockquote { margin: 10px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 6px; font-size: 20px; font-weight: 600; }
.bulletin .card.tablecard { margin: 8px 0 12px; } .bulletin hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

/* бюллетень: оформленный вид */
.bkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .bkpis { grid-template-columns: repeat(2, 1fr); } }
.bk { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk b { font-size: 28px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bk b.small { font-size: 21px; padding: 4px 0; }
.bk span { font-size: 13px; color: var(--text-muted); }
.bk.fig b { color: var(--accent); }
.bulletin { display: flex; flex-direction: column; gap: 16px; }
.bhero { padding: 22px 26px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.bkick { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bhero h1 { margin: 6px 0 2px; font-size: 26px; }
.bdate { color: var(--text-muted); font-size: 15px; }
.bsec { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 24px 22px; box-shadow: var(--shadow); }
.bulletin .bsec > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; }
.bnum { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 650; flex: none; }
.bnote { color: var(--text-muted); font-size: 13.5px; margin: 0 0 10px; }
.bnote p { margin: 0; }
.bulletin ul.evl { list-style: none; padding: 0; margin: 0; }
.evl li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); margin: 0; }
.evl li:first-child { border-top: 0; padding-top: 2px; }
.evd { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; height: fit-content; text-align: center; }
.evd.none { color: var(--text-dim); background: var(--surface-2); }
.evs { display: block; color: var(--text-dim); font-size: 12px; margin-top: 3px; }
.tablewrap { overflow-x: auto; }
.ttable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ttable th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.ttable td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ttable tr:last-child td { border-bottom: 0; }
.dir { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dir.up { background: var(--amber-bg); color: var(--amber); }
.dir.down { background: var(--green-bg); color: var(--green); }
.dir.flat { background: var(--surface-3); color: var(--text-muted); }
.tcard { border: 1px solid var(--border); border-left: 4px solid var(--border-light); border-radius: 10px; padding: 14px 18px 16px; margin-top: 12px; background: var(--surface); }
.tcard:first-child { margin-top: 0; }
.tcard.up { border-left-color: var(--amber); } .tcard.down { border-left-color: var(--green); }
.thead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bulletin .thead h3 { margin: 0; font-size: 16px; }
.tarr { font-size: 15px; font-weight: 700; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-muted); flex: none; }
.tcard.up .tarr { background: var(--amber-bg); color: var(--amber); } .tcard.down .tarr { background: var(--green-bg); color: var(--green); }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.tgrid .tfull { grid-column: 1 / -1; }
@media (max-width: 800px) { .tgrid { grid-template-columns: 1fr; } }
.tlab { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.tval p { margin: 0 0 6px; } .tval p:last-child { margin-bottom: 0; }
.bulletin ul.risk { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.risk li { margin: 0; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; font-size: 14px; }
.risk li strong { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.recs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .recs { grid-template-columns: 1fr; } }
.recc { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; }
.bulletin .recc h6 { margin: 0 0 4px; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.recc ul { padding-left: 18px; margin: 4px 0; } .recc p { margin: 0 0 4px; }
.inc { border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 18px 16px; }
.inc .tgrid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.incmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.incmeta dt { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.incmeta dd { margin: 2px 0 0; font-size: 14px; }
.figure { display: flex; align-items: center; gap: 22px; padding: 16px 20px; border-radius: 10px; background: var(--accent-soft); }
.fignum { font-size: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fignum { flex: none; white-space: nowrap; }
.fignum.long { font-size: 32px; }
.fignum.xlong { font-size: 22px; white-space: normal; max-width: 300px; line-height: 1.25; }
.figtext p { margin: 0; }
@media (max-width: 700px) { .figure { flex-direction: column; align-items: flex-start; gap: 8px; } .fignum { font-size: 34px; } }
.srcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.src { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); min-width: 0; }
a.src:hover { border-color: var(--accent); text-decoration: none; }
.srct { font-size: 14px; overflow-wrap: anywhere; } .srcd { font-size: 12px; color: var(--text-dim); }
