/* ─────────────────────────────────────────────────────────────────
 * Defensive Actions / Rules / Sessions — minimal enterprise
 * Uses ds2-* primitives. Adds screen-specific atoms only.
 * ──────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
 *  Compact hero variant (Sessions)
 * ══════════════════════════════════════════════════════════════ */
/* Compact hero now inherits the slim toolbar from ds2-hero. */
.ds2-hero.ds2-hero-compact { padding: 14px 4px; }
.ds2-hero.ds2-hero-compact .ds2-h1 { font-size: 1.15rem; margin-top: 0; }
.ds2-hero.ds2-hero-compact .ds2-lede { display: none; }

/* ═══════════════════════════════════════════════════════════════
 *  DEFENSIVE ACTIONS
 * ══════════════════════════════════════════════════════════════ */

/* Title bar (replaces marketing hero) */
.da-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 6px 2px 14px;
  border-bottom: 1px solid var(--d-line);
}
.da-bar-l { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.da-title {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--d-ink);
  margin: 0;
}
.da-scope { font-size: 0.72rem; color: var(--d-dim); letter-spacing: 0.02em; }
.da-bar-r { display: inline-flex; align-items: center; gap: 14px; }
.da-refresh {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; color: var(--d-muted);
  letter-spacing: 0.02em;
}
.da-refresh i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-success);
  box-shadow: 0 0 0 3px rgba(46, 196, 121, 0.12);
}

/* Counter strip */
.da-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--d-line);
  border-radius: 8px;
  background: var(--d-panel-bg);
}
.da-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--d-line);
  display: flex; flex-direction: column; gap: 3px;
}
.da-cell:last-child { border-right: none; }
.da-cell .lab {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--d-dim);
}
.da-cell.block  .lab { color: var(--d-danger); }
.da-cell.warn   .lab { color: var(--d-warning); }
.da-cell.accent .lab { color: var(--d-accent); }
.da-cell.ok     .lab { color: var(--d-success); }
.da-cell .v {
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--d-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.da-cell .sub {
  font-size: 0.66rem; color: var(--d-muted);
  letter-spacing: 0.01em;
}

/* Feed header */
.da-feed-section { margin-top: 22px; }
.da-feed-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.da-feed-meta { display: inline-flex; align-items: center; gap: 14px; }
.da-feed-meta .dim { font-size: 0.7rem; color: var(--d-dim); }
.da-filter {
  display: inline-flex;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.42);
  border-radius: 7px;
  padding: 2px; gap: 1px;
}
.da-filter button {
  height: 26px; padding: 0 11px;
  border: none; border-radius: 5px;
  background: transparent;
  color: var(--d-muted);
  font-family: inherit; font-size: 0.7rem; font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.da-filter button:hover { color: var(--d-ink); }
.da-filter button.active { background: var(--d-accent-soft); color: var(--d-ink); }

.da-export {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px;
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,0.02);
  color: var(--d-muted);
  font-family: inherit; font-size: 0.7rem; font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.da-export:hover { color: var(--d-ink); border-color: var(--d-line-active); }
.da-export svg { width: 12px; height: 12px; }

/* Feed table */
.da-feed-wrap {
  border: 1px solid var(--d-line);
  border-radius: 8px;
  background: var(--d-panel-bg);
  overflow: hidden;
}

/* Shared grid for header + rows */
.da-feed-cols,
.da-feed li {
  display: grid;
  grid-template-columns: 4px minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1.6fr) 60px 70px;
  gap: 16px;
  align-items: center;
  padding-right: 18px;
}

.da-feed-cols {
  padding-top: 9px; padding-bottom: 9px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(13, 20, 36, 0.32);
}
.da-feed-cols span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--d-dim);
}
.da-feed-cols span.r { text-align: right; }

.da-feed { list-style: none; margin: 0; padding: 0; }
.da-feed li {
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--d-line);
  transition: background 160ms ease;
}
.da-feed li:last-child { border-bottom: none; }
.da-feed li:hover { background: rgba(255,255,255,0.02); cursor: pointer; }

.da-feed .stripe {
  width: 4px; height: 36px;
  border-radius: 0 2px 2px 0;
  background: var(--d-muted);
}
.da-feed .stripe.block     { background: var(--d-danger); }
.da-feed .stripe.challenge { background: var(--d-warning); }
.da-feed .stripe.monitor   { background: var(--d-accent); }
.da-feed .stripe.allow     { background: var(--d-success); }

/* Type column: verdict pill + threat name */
.da-feed .col-type { display: flex; align-items: center; gap: 8px; min-width: 0; }
.da-feed .vpill {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 7px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.da-feed .vpill.block     { color: var(--d-danger);  background: var(--d-danger-soft); }
.da-feed .vpill.challenge { color: var(--d-warning); background: var(--d-warning-soft); }
.da-feed .vpill.monitor   { color: var(--d-accent);  background: var(--d-accent-soft); }
.da-feed .vpill.allow     { color: var(--d-success); background: var(--d-success-soft); }
.da-feed .tname {
  font-size: 0.78rem; font-weight: 600;
  color: var(--d-ink);
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Reason column */
.da-feed .col-reason {
  font-size: 0.76rem; color: var(--d-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Detection column: 2 lines */
.da-feed .col-detect { min-width: 0; }
.da-feed .col-detect .d1 {
  font-size: 0.74rem; color: var(--d-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.da-feed .col-detect .d1 code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--d-accent-2);
}
.da-feed .col-detect .d2 {
  margin-top: 2px;
  font-size: 0.68rem; color: var(--d-dim);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.da-feed .col-detect .d2 code { color: var(--d-muted); }
.da-feed .col-detect .dot { color: var(--d-dim); margin: 0 4px; }
.da-feed .col-type .dot,
.da-feed .col-detect .dot { opacity: 0.6; }

/* Risk + time */
.da-feed .risk {
  justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 22px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 700;
}
.da-feed .risk.ok      { color: var(--d-success); background: var(--d-success-soft); }
.da-feed .risk.warn    { color: var(--d-warning); background: var(--d-warning-soft); }
.da-feed .risk.danger  { color: var(--d-danger);  background: var(--d-danger-soft); }
.da-feed .ts {
  font-size: 0.7rem; color: var(--d-dim);
  text-align: right;
}

/* Bottom: rank lists side by side */
.da-bottom {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}
.da-sub-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--d-line);
  margin-bottom: 2px;
}
.da-sub-head h2 {
  font-size: 0.82rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.da-sub-head .dim { font-size: 0.66rem; color: var(--d-dim); letter-spacing: 0.04em; }

.da-rank { list-style: none; margin: 0; padding: 0; }
.da-rank li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 64px 90px;
  column-gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--d-line);
}
.da-rank li:last-child { border-bottom: none; }
.da-rank .rk {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 600;
  color: var(--d-dim);
}
.da-rank .nm {
  font-size: 0.78rem; font-weight: 600;
  color: var(--d-ink);
  letter-spacing: -0.005em;
}
.da-rank .nm.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.75rem; font-weight: 500; }
.da-rank .v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; font-weight: 600;
  color: var(--d-muted);
  text-align: right;
}
.da-rank .bar {
  height: 3px; border-radius: 2px;
  background: rgba(83,105,138,0.14);
  overflow: hidden;
}
.da-rank .bar i {
  display: block; height: 100%;
  background: var(--d-muted);
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════════════════
 *  RULES
 * ══════════════════════════════════════════════════════════════ */
.ru-strip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
}
.ru-cell {
  padding: 14px 18px;
  border-right: 1px solid var(--d-line);
  display: flex; flex-direction: column; gap: 4px;
}
.ru-cell:last-child { border-right: none; }
.ru-cell .lab {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--d-dim);
}
.ru-cell .v {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--d-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ru-cell .v small { font-size: 0.74rem; color: var(--d-muted); font-weight: 600; margin-left: 2px; }
.ru-cell .v.ok { color: var(--d-success); }

.ru-tools { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ru-filter {
  display: inline-flex;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.42);
  border-radius: 7px;
  padding: 2px; gap: 1px;
}
.ru-filter button {
  height: 26px; padding: 0 10px;
  border: none; border-radius: 5px;
  background: transparent;
  color: var(--d-muted);
  font-family: inherit; font-size: 0.7rem; font-weight: 700;
  cursor: pointer;
}
.ru-filter button:hover { color: var(--d-ink); }
.ru-filter button.active { background: var(--d-accent-soft); color: var(--d-ink); }
.ru-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px;
  border-radius: 7px;
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,0.02);
  color: var(--d-ink);
  font-family: inherit; font-size: 0.74rem; font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 100ms ease;
}
.ru-btn:hover { border-color: var(--d-line-active); }
.ru-btn:active { transform: scale(0.98); }
.ru-btn.primary { background: var(--d-accent); color: #07101f; border-color: transparent; }
.ru-btn.primary:hover { background: #9fc8ff; }
.ru-btn.ghost   { background: transparent; }
.ru-btn svg { width: 12px; height: 12px; }

.ru-table-wrap {
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: var(--d-panel-bg);
  overflow: hidden;
}
.ru-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ru-table thead th {
  text-align: left;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--d-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(13,20,36,0.32);
}
.ru-table thead th.r { text-align: right; }
.ru-table thead th.c { text-align: center; }
.ru-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--d-line);
  font-size: 0.78rem;
  color: var(--d-muted);
  vertical-align: middle;
  height: 68px;
  box-sizing: border-box;
}
.ru-table tbody tr:last-child td { border-bottom: none; }
.ru-table tbody tr:hover td { background: rgba(255,255,255,0.018); cursor: pointer; }
.ru-table td.r { text-align: right; }
.ru-table td.num { color: var(--d-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ru-table td.act-cell { padding-left: 10px; padding-right: 10px; }
.ru-table td.hits-cell { padding-right: 18px; white-space: nowrap; }
.ru-table thead th:nth-child(4) { padding-right: 18px; }
.ru-table td.toggle-cell {
  padding-left: 8px; padding-right: 8px;
  text-align: center;
}
.ru-table td.toggle-cell .ru-toggle { display: inline-block; vertical-align: middle; }
.ru-table td.dim.mono {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.72rem;
}
.ru-table .ru .t {
  font-size: 0.86rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.012em;
  margin-bottom: 4px;
}
.ru-table .ru .trig {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--d-muted);
  background: rgba(118,174,232,0.06);
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ru-table .act {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; padding: 0 10px;
  min-width: 86px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  white-space: nowrap;
}
.ru-table .act.block      { color: var(--d-danger);  background: var(--d-danger-soft); }
.ru-table .act.challenge  { color: var(--d-warning); background: var(--d-warning-soft); }
.ru-table .act.rate_limit { color: var(--d-accent);  background: var(--d-accent-soft); }
.ru-table .act.monitor    { color: var(--d-muted);   background: rgba(122,139,176,0.10); }
.ru-table .dim2 { color: var(--d-dim); }

.ru-toggle {
  width: 34px; height: 20px;
  border-radius: 999px;
  background: rgba(83,105,138,0.32);
  border: none; padding: 0;
  cursor: pointer;
  position: relative;
  transition: background 220ms ease;
}
.ru-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ru-toggle.on { background: var(--d-accent); }
.ru-toggle.on::after { left: 16px; }

/* ═══════════════════════════════════════════════════════════════
 *  SESSIONS
 * ══════════════════════════════════════════════════════════════ */
/* KPI strip under the Sessions hero lede — mirrors .da-strip on Defensive
 * Actions: a 4-up grid sitting below the title/lede with breathing room. */
.se-quickstats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--d-line);
  border-radius: 8px;
  background: var(--d-panel-bg);
}
.se-quickstats > div {
  padding: 12px 16px;
  border-right: 1px solid var(--d-line);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.se-quickstats > div:last-child { border-right: none; }
.se-quickstats .lab {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--d-dim);
}
.se-quickstats .v {
  font-size: 1.3rem; font-weight: 800;
  color: var(--d-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.se-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 640px;
}

/* List */
.se-list {
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: var(--d-panel-bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.se-list-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--d-line);
  display: grid; gap: 10px;
}
.se-search {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--d-line);
  background: rgba(5,8,15,0.55);
  border-radius: 7px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.se-search:focus-within { border-color: var(--d-accent); box-shadow: 0 0 0 3px rgba(118,174,232,0.12); }
.se-search svg { width: 14px; height: 14px; stroke: var(--d-muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.se-search input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--d-ink);
  font-family: inherit; font-size: 0.78rem;
}
.se-search input::placeholder { color: rgba(196,210,235,0.42); }
.se-filter {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
}
.se-filter button {
  height: 24px; padding: 0 9px;
  border: 1px solid var(--d-line);
  background: transparent;
  border-radius: 999px;
  color: var(--d-muted);
  font-family: inherit; font-size: 0.66rem; font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 160ms ease;
}
.se-filter button:hover { color: var(--d-ink); border-color: var(--d-line-active); }
.se-filter button.active {
  background: var(--d-accent-soft);
  color: var(--d-ink);
  border-color: rgba(118,174,232,0.42);
}
.se-list-body {
  flex: 1 1 0; min-height: 0;
  overflow-y: auto;
}
.se-empty, .se-detail-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--d-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.se-item {
  width: 100%; text-align: left;
  display: grid; gap: 5px;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--d-line);
  border-left: 3px solid transparent;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease;
}
.se-item:hover { background: rgba(255,255,255,0.025); }
.se-item.active {
  background: rgba(118,174,232,0.08);
  border-left-color: var(--d-accent);
}
.se-item .row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.se-item .id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; font-weight: 700;
  color: var(--d-ink);
}
.se-item .ver {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
}
.se-item .ver.allow     { color: var(--d-success); background: var(--d-success-soft); }
.se-item .ver.block     { color: var(--d-danger);  background: var(--d-danger-soft); }
.se-item .ver.challenge { color: var(--d-warning); background: var(--d-warning-soft); }
.se-item .ver.monitor   { color: var(--d-accent);  background: var(--d-accent-soft); }
.se-item .row2 {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--d-muted);
}
.se-item .row2 .ip { color: var(--d-muted); }
.se-item .row2 .dot { color: var(--d-dim); }
.se-item .row2 .loc { color: var(--d-muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-item .row2 .score {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 800;
}
.se-item .score.ok     { color: var(--d-success); }
.se-item .score.warn   { color: var(--d-warning); }
.se-item .score.danger { color: var(--d-danger); }
.se-item .row3 {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 0.68rem; color: var(--d-dim);
}
.se-item .row3 .type { color: var(--d-muted); }

/* Detail */
.se-detail {
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: var(--d-panel-bg);
  padding: 22px 24px;
  overflow-y: auto;
  max-height: 800px;
}
.se-d-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--d-line);
}
.se-d-id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.05rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.005em;
}
.se-d-sub {
  margin-top: 4px;
  font-size: 0.72rem; color: var(--d-muted);
}
.se-d-act { display: inline-flex; align-items: center; gap: 10px; }
.ver-big {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
}
.ver-big.allow     { color: var(--d-success); background: var(--d-success-soft); border: 1px solid rgba(118,227,163,0.32); }
.ver-big.block     { color: var(--d-danger);  background: var(--d-danger-soft);  border: 1px solid rgba(255,139,139,0.32); }
.ver-big.challenge { color: var(--d-warning); background: var(--d-warning-soft); border: 1px solid rgba(255,209,102,0.32); }
.ver-big.monitor   { color: var(--d-accent);  background: var(--d-accent-soft);  border: 1px solid rgba(118,174,232,0.32); }
.ver-mini {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 4px;
}
.ver-mini.allow     { color: var(--d-success); background: var(--d-success-soft); }
.ver-mini.block     { color: var(--d-danger);  background: var(--d-danger-soft); }
.ver-mini.challenge { color: var(--d-warning); background: var(--d-warning-soft); }
.ver-mini.monitor   { color: var(--d-accent);  background: var(--d-accent-soft); }

.se-d-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--d-accent); color: #07101f;
  font-family: inherit; font-size: 0.74rem; font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, transform 100ms ease;
}
.se-d-btn:hover { background: #9fc8ff; }
.se-d-btn:active { transform: scale(0.98); }
.se-d-btn svg { width: 11px; height: 11px; }

.se-d-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--d-line);
  padding: 18px 0;
}
.se-d-stats > div {
  padding: 0 18px;
  border-right: 1px solid var(--d-line);
  display: flex; flex-direction: column; gap: 5px;
}
.se-d-stats > div:first-child { padding-left: 0; }
.se-d-stats > div:last-child  { border-right: none; padding-right: 0; }
.se-d-stats .lab {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--d-dim);
}
.se-d-stats .v {
  font-size: 1.2rem; font-weight: 800;
  color: var(--d-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
}
.se-d-stats .v.small { font-size: 0.82rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
.se-d-stats .v.ok     { color: var(--d-success); }
.se-d-stats .v.warn   { color: var(--d-warning); }
.se-d-stats .v.danger { color: var(--d-danger); }

.se-d-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--d-line);
}
.se-d-section:last-child { border-bottom: none; }
.se-d-section h4 {
  margin: 0 0 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-dim);
  display: flex; align-items: baseline; gap: 10px;
}
.se-d-bar { display: grid; gap: 8px; }
.se-d-bar .track {
  position: relative;
  height: 8px;
  background: rgba(83,105,138,0.18);
  border-radius: 999px;
  overflow: hidden;
}
.se-d-bar .track::before, .se-d-bar .track::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.06);
}
.se-d-bar .track::before { left: 40%; }
.se-d-bar .track::after  { left: 70%; }
.se-d-bar .fill {
  height: 100%; border-radius: 999px;
  animation: barGrow 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
}
.se-d-bar .fill.ok     { background: var(--d-success); box-shadow: 0 0 8px var(--d-success); }
.se-d-bar .fill.warn   { background: var(--d-warning); box-shadow: 0 0 8px var(--d-warning); }
.se-d-bar .fill.danger { background: var(--d-danger);  box-shadow: 0 0 8px var(--d-danger); }
.se-d-marks {
  display: flex; justify-content: space-between;
  font-size: 0.62rem; color: var(--d-dim);
  letter-spacing: 0.04em;
}

.se-d-signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.se-d-signals li {
  display: grid; grid-template-columns: 8px 1fr;
  gap: 12px; align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--d-line);
  border-radius: 7px;
  background: rgba(255,255,255,0.018);
  font-size: 0.82rem; color: var(--d-ink);
}
.se-d-signals .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-accent);
  box-shadow: 0 0 0 3px rgba(118,174,232,0.12);
}

.se-d-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.se-d-kv li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px; align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--d-line);
}
.se-d-kv li:last-child { border-bottom: 1px solid var(--d-line); }
.se-d-kv .k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; color: var(--d-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.se-d-kv .v {
  font-size: 0.8rem; color: var(--d-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.se-d-kv .v.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.74rem; }


/* ═══════════════════════════════════════════════════════════════
 *  Responsive
 * ══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .da-strip { grid-template-columns: repeat(2, 1fr); }
  .da-strip .da-cell:nth-child(2) { border-right: none; }
  .da-strip .da-cell:nth-child(1),
  .da-strip .da-cell:nth-child(2) { border-bottom: 1px solid var(--d-line); }
  .da-bottom { grid-template-columns: 1fr; gap: 28px; }
  .ru-strip { grid-template-columns: repeat(2, 1fr); }
  .ru-strip .ru-cell:nth-child(2n) { border-right: none; }
  .ru-strip .ru-cell:nth-child(1),
  .ru-strip .ru-cell:nth-child(2),
  .ru-strip .ru-cell:nth-child(3),
  .ru-strip .ru-cell:nth-child(4) { border-bottom: 1px solid var(--d-line); }
  .se-layout { grid-template-columns: 1fr; }
  .se-quickstats { grid-template-columns: repeat(4, 1fr); }
}
