/* NasPulse-inspired theme · purple accent #7F17F7 */
:root {
  --bg0: #f6f8fc;
  --bg1: #ffffff;
  --bg2: #f2f5fb;
  --line: #e4e9f2;
  --text: #151922;
  --muted: #5d6a83;
  --accent: #7f17f7;
  --accent2: #9d78e4;
  --accent-soft: rgba(127, 23, 247, 0.10);
  --warn: #d97706;
  --danger: #e11d48;
  --ok: #16a34a;
  --side-w: 240px;
  --grad: linear-gradient(135deg, #7f17f7, #9d78e4);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(157, 120, 228, 0.22) 0%, transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(127, 23, 247, 0.10) 0%, transparent 50%),
    var(--bg0);
}
a { color: var(--accent); text-decoration: none; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(8px);
}
.sidebar-header { padding: 20px 16px 12px; border-bottom: 1px solid var(--line); }
.sidebar-title { font-weight: 700; font-size: 16px; color: var(--accent); }
.bz-side-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.bz-iron-free {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}
a.bz-iron-free:hover { text-decoration: underline; }
.bz-iron-eco {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.bz-iron-eco:hover { text-decoration: underline; }
.bz-iron-foot {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}
.bz-iron-foot strong {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.bz-iron-foot a {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.chip-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg2);
}
.chip-card.ready { border-color: rgba(22, 163, 74, 0.35); }
.chip-card.planned { opacity: 0.92; }
.chip-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.chip-env {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #12151c;
  color: #e8ecf5;
  font-size: 11px;
  overflow-x: auto;
  white-space: pre-wrap;
}
.chip-copy-env { margin-top: 8px; }
.chip-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.chip-phase {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 4px;
}
.chip-phase.on { border-color: rgba(127, 23, 247, 0.45); box-shadow: 0 8px 24px rgba(127, 23, 247, 0.08); }
.chip-phase .ph {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.chip-phase span { color: var(--muted); font-size: 12px; }
.chip-steps { margin: 0; padding-left: 18px; font-size: 13px; }
.chip-steps li { margin: 8px 0; }
.chip-copy-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-quote {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  color: var(--accent);
  margin: 0 0 8px;
}
.chip-check { margin: 0; padding-left: 18px; font-size: 13px; }
.chip-check li { margin: 8px 0; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 13px; font-weight: 650; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: #12151c; color: #fff; padding: 10px 14px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.toast.show { opacity: 1; }
@media (max-width: 980px) {
  .chip-phases { grid-template-columns: 1fr 1fr; }
}
.top3-panel {
  border: 2px solid rgba(220, 38, 38, 0.55) !important;
  background: var(--bg1);
}
.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.top3-card {
  background: var(--bg0, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-height: 160px;
}
.top3-card.rank1 { border-color: rgba(127, 23, 247, 0.4); }
.top3-card.empty { opacity: 0.75; }
.top3-rank {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.top3-kv {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 8px;
  font-size: 12px;
  margin: 0;
}
.top3-kv dt { color: var(--muted); margin: 0; }
.top3-kv dd {
  margin: 0;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.top3-kv dd.ok { color: #15803d; font-weight: 700; font-family: inherit; }
@media (max-width: 980px) {
  .top3-grid { grid-template-columns: 1fr; }
}
.sidebar-menu { padding: 12px 10px; overflow: auto; flex: 1; }
.menu-group-title {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 8px 6px;
}
.menu-group { margin-bottom: 4px; }
.menu-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.menu-group-toggle:hover { background: var(--bg2); }
.menu-chevron {
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .15s ease;
  margin-right: 4px;
}
.menu-group-toggle.open .menu-chevron {
  transform: rotate(45deg);
  margin-top: -2px;
}
.menu-group-body {
  display: none;
  padding: 2px 0 6px 8px;
}
.menu-group-body.open { display: block; }
.menu-group-body .sidebar-menu-item {
  padding: 8px 12px;
  font-size: 13px;
}
.sidebar-menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.sidebar-menu-item:hover { background: var(--bg2); }
.sidebar-menu-item.active {
  background: var(--accent-soft);
  border-color: rgba(127, 23, 247, 0.28);
  color: var(--accent);
  font-weight: 700;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-user { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.logout-btn, .bz-btn, button.bz-btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.logout-btn {
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.admin-main { flex: 1; padding: 22px 28px 48px; min-width: 0; }
.page-header h2 { margin: 0 0 6px; font-size: 24px; }
.bz-sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.bz-hero, .bz-card, .bz-stat {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(37, 43, 54, 0.04);
}
.bz-hero {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.bz-grid { display: grid; gap: 12px; }
.bz-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bz-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bz-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bz-stat .k { color: var(--muted); font-size: 12px; }
.bz-stat .v { margin-top: 8px; font-size: 26px; font-weight: 700; color: var(--accent); }
.bz-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bz-table th, .bz-table td {
  text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line);
}
.bz-table th { color: var(--muted); }
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--bg2); color: var(--warn); font-size: 12px; font-weight: 600;
}
.pill.up { color: var(--ok); background: rgba(22, 163, 74, 0.1); }
.pill.down { color: var(--danger); background: rgba(225, 29, 72, 0.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}
.form-actions { margin-top: 14px; display: flex; gap: 10px; }
.section-title { margin: 18px 0 10px; font-size: 15px; }
pre.bz-pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  color: #3a4558; font-size: 12px;
}
.meter {
  height: 8px;
  background: var(--bg2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.meter > i {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
}
.meter.warn > i { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.meter.danger > i { background: linear-gradient(135deg, #e11d48, #fb7185); }

.bz-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 4px;
  background: var(--bg2);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.bz-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.bz-tab:hover { color: var(--text); }
.bz-tab.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(127, 23, 247, 0.12);
}
.bz-tab-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.bz-form label { display: block; color: var(--muted); font-size: 12px; }
.bz-form input, .bz-form select {
  width: 100%;
  margin-top: 4px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}
.field-adv { display: none; }
body.tab-lab .field-lab,
body.tab-datacenter .field-dc,
body.tab-cloud .field-cloud,
body.tab-datacenter .field-lab { display: block; }
body.tab-student .hide-student { display: none !important; }

/* Inference Control Plane · international */
.ic-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
}
.ic-hero { margin-bottom: 12px; }
.ic-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ic-slo {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ic-slo-item {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(37, 43, 54, 0.04);
}
.ic-slo-item .k { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ic-slo-item .v { margin-top: 6px; font-size: 22px; font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; }
.ic-slo-item .s { margin-top: 4px; color: var(--muted); font-size: 11px; }
.ic-panel { display: none; }
.ic-panel.active { display: block; }
.ic-card-h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.ic-card-h h3 { margin: 0; font-size: 15px; }
.ic-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(228, 233, 242, 0.9);
  font-size: 13px;
}
.ic-kv span { color: var(--muted); }
.ic-kv strong { font-variant-numeric: tabular-nums; }
.ic-bar-row { margin: 10px 0; }
.ic-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.ic-table-wrap { overflow-x: auto; }
.ic-table td, .ic-table th { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.ic-model {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ic-model-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ic-model-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ic-live-line {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ic-series {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ic-series-item {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px 8px;
}
.ic-series-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}
.ic-series-top strong {
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
}
.ic-spark { width: 100%; height: 44px; display: block; }
.ic-spark-line { stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ic-spark.warn .ic-spark-line { stroke: var(--warn); }
.ic-spark.danger .ic-spark-line { stroke: var(--danger); }
.ic-spark-base { stroke: var(--line); stroke-width: 1; }
.ic-alerts { display: grid; gap: 8px; }
.ic-alerts-tall { max-height: 320px; overflow: auto; }
.ic-alert {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.ic-alert .sev {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.ic-alert strong { display: block; font-size: 13px; }
.ic-alert p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.ic-alert.ok .sev { color: var(--ok); }
.ic-alert.warn { border-color: rgba(217, 119, 6, 0.28); background: rgba(217, 119, 6, 0.06); }
.ic-alert.warn .sev { color: var(--warn); }
.ic-alert.crit { border-color: rgba(225, 29, 72, 0.28); background: rgba(225, 29, 72, 0.06); }
.ic-alert.crit .sev { color: var(--danger); }
.ic-heat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}
.ic-heat-cell {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ic-heat-cell strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.ic-heat-cell span { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ic-heat-cell em { font-style: normal; color: var(--muted); font-size: 11px; }
.ic-heat-cell.cool { background: rgba(22, 163, 74, 0.08); }
.ic-heat-cell.warm { background: rgba(217, 119, 6, 0.12); }
.ic-heat-cell.hot { background: rgba(225, 29, 72, 0.12); }
.ic-heat-cell.down { background: rgba(93, 106, 131, 0.12); opacity: 0.85; }
.ic-qmatrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.ic-qcell {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg2);
}
.ic-qcell.warm { border-color: rgba(217, 119, 6, 0.35); }
.ic-qcell.hot { border-color: rgba(225, 29, 72, 0.35); }
.ic-qcell-metrics {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ic-hist { margin-top: 12px; }
.ic-hist-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 96px;
}
.ic-hist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.ic-hist-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: var(--grad);
  min-height: 2px;
}
.ic-hist-col strong { color: var(--text); font-variant-numeric: tabular-nums; }
.ic-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.ic-cluster-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg2);
  display: grid;
  gap: 6px;
}
.ic-cluster-n {
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.ic-day-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.ic-day-bar input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: var(--bg1);
}
.ic-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 12px;
}
.ic-filters label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.ic-filters input,
.ic-filters select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg1);
  font-weight: 500;
}
.ic-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ic-pager .bz-btn[disabled] { opacity: 0.45; pointer-events: none; }
.bz-btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .ic-slo, .ic-series { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .bz-grid-4, .bz-grid-3, .bz-grid-2, .form-grid, .ic-slo, .ic-series { grid-template-columns: 1fr; }
  .ov-kpi-grid, .ov-main-grid, .ov-map-grid { grid-template-columns: 1fr; }
}

/* ── Logto-inspired Overview polish (Bilzat Inference OS) ── */
.ov-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.ov-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ov-kpi {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(37, 43, 54, 0.04);
  position: relative;
  overflow: hidden;
}
.ov-kpi::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 23, 247, 0.12), transparent 70%);
  pointer-events: none;
}
.ov-kpi .lbl { color: var(--muted); font-size: 12px; font-weight: 600; }
.ov-kpi .num {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.ov-kpi .delta {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ov-kpi .delta.up { color: var(--ok); }
.ov-kpi .delta.flat { color: var(--muted); }
.ov-kpi .delta.down { color: var(--danger); }
.ov-kpi .hint { margin-top: 4px; font-size: 11px; color: var(--muted); }

.ov-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.ov-card-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.ov-card-h h3 { margin: 0; font-size: 15px; }
.ov-card-h .bz-sub { margin: 0; }

.ov-chart-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.ov-spark {
  width: 100%;
  height: 120px;
  display: block;
}
.ov-spark-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.ov-donut-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 140px;
}
.ov-donut {
  width: 120px;
  height: 120px;
}
.ov-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  width: 100%;
}
.ov-donut-legend li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ov-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.ov-dot.ok { background: var(--ok); }
.ov-dot.warn { background: var(--warn); }
.ov-dot.bad { background: var(--danger); }
.ov-dot.muted { background: #94a3b8; }

.ov-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-height: 420px;
  overflow: auto;
}
.ov-activity li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.ov-activity li:last-child { border-bottom: 0; }
.ov-act-av {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.ov-act-title {
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 2px;
  word-break: break-all;
}
.ov-act-meta { font-size: 12px; color: var(--muted); margin: 0; }
.ov-act-right {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.ov-act-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

.ov-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ov-map-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(37, 43, 54, 0.04);
}
.ov-map-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
}
.ov-map-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.ov-map-card a.bz-btn {
  font-size: 12px;
  padding: 6px 12px;
}

.ov-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.access-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.access-matrix th,
.access-matrix td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.access-matrix th { color: var(--muted); font-weight: 650; }
.access-matrix code {
  font-size: 12px;
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ── 火山方舟风 · 模型广场 ── */
.volc-page .page-header h2 { font-size: 22px; font-weight: 700; }
.volc-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.volc-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  border-radius: 0;
}
.volc-tab:hover { color: var(--text); }
.volc-tab.active {
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}
.volc-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.volc-panel { display: none; }
.volc-panel.active { display: block; }
.volc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.volc-toolbar .left,
.volc-toolbar .right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.volc-search {
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg1);
  color: inherit;
  font: inherit;
}
.volc-search:focus {
  outline: 2px solid rgba(127, 23, 247, 0.2);
  border-color: var(--accent);
}
.volc-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.volc-filters {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  position: sticky;
  top: 12px;
}
.volc-filters h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 700;
}
.volc-filters h4 + h4 { margin-top: 16px; }
.volc-chip {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 2px;
}
.volc-chip:hover { background: var(--bg2); }
.volc-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.volc-chip .cnt {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg2);
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 650;
}
.volc-chip.active .cnt {
  background: rgba(127, 23, 247, 0.12);
  color: var(--accent);
}
.volc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.volc-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.volc-card:hover {
  border-color: rgba(127, 23, 247, 0.35);
  box-shadow: 0 8px 20px rgba(37, 43, 54, 0.06);
}
.volc-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.volc-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.volc-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.volc-prov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  max-height: 560px;
  overflow: auto;
}
.volc-prov-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--bg2);
  display: grid;
  gap: 8px;
}
.volc-prov-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.volc-prov-card label {
  display: grid;
  gap: 4px;
}
.volc-prov-card input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg1);
  color: inherit;
  font: inherit;
}
#actionMsg { min-height: 0; }
.volc-card-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.volc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.volc-tag {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg2);
  color: var(--muted);
}
.volc-tag.tier-top20 {
  background: rgba(127, 23, 247, 0.1);
  color: var(--accent);
}
.volc-tag.ok {
  background: rgba(22, 163, 74, 0.1);
  color: var(--ok);
}
.volc-tag.fail {
  background: rgba(225, 29, 72, 0.08);
  color: var(--danger);
}
.volc-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.volc-card-actions .bz-btn {
  padding: 6px 12px;
  font-size: 12px;
}
.volc-soft {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: none;
}
.volc-soft .ic-card-h h3 { font-size: 15px; }
.volc-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.volc-kpi .item {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.volc-kpi .k { font-size: 12px; color: var(--muted); }
.volc-kpi .v {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 750;
  color: var(--text);
}
.volc-kpi .s { margin-top: 2px; font-size: 11px; color: var(--muted); }
.volc-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--bg1);
}
.volc-try-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}
.volc-top3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.volc-top3 .top3-card {
  min-height: 140px;
  border-radius: 10px;
  background: var(--bg2);
}
.llm-models-page .top3-panel {
  border: 1px solid var(--line) !important;
  box-shadow: none;
}
@media (max-width: 980px) {
  .volc-layout { grid-template-columns: 1fr; }
  .volc-filters { position: static; }
  .volc-kpi, .volc-try-grid, .volc-top3 { grid-template-columns: 1fr; }
}


/* site-soft-cards · 20260813site */
.bz-card {
  box-shadow: none;
  border-color: #e8edf5;
}
.bz-hero {
  box-shadow: none;
}
.page-header .bz-sub {
  max-width: 720px;
}
