/* admin.css — IT 관리 콘솔 (터미널 풍) */

body.admin-body {
  background: #0b0d0f;
  color: #cfd3d6;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.5;
}

body.admin-body[data-accent="amber"]  { --acc: #f0a020; --acc-soft: rgba(240,160,32,0.15); }
body.admin-body[data-accent="green"]  { --acc: #4ade80; --acc-soft: rgba(74,222,128,0.14); }
body.admin-body[data-accent="cyan"]   { --acc: #38bdf8; --acc-soft: rgba(56,189,248,0.14); }

body.admin-body {
  --bg: #0b0d0f;
  --panel: #131618;
  --panel-2: #181b1e;
  --line: #232629;
  --line-soft: #1c1f22;
  --text: #cfd3d6;
  --text-mute: #7c8489;
  --text-faint: #4d5256;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #ef4444;
}

.admin {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ── Nav ─────────────────────────── */
.anav {
  background: #0a0c0e;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.anav-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.anav-prompt { color: var(--acc); font-size: 11px; }
.anav-title { color: var(--text); font-size: 14px; font-weight: 600; margin-top: 2px; letter-spacing: 0.02em; }
.anav-sub { color: var(--text-faint); font-size: 10px; margin-top: 2px; letter-spacing: 0.1em; }

.anav-list { flex: 1; padding: 8px 0; display: flex; flex-direction: column; gap: 1px; }
.anav-item {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  text-align: left;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: center;
  border-left: 2px solid transparent;
}
.anav-item:hover { background: var(--panel); color: var(--text); }
.anav-item.is-active {
  background: var(--panel);
  color: var(--acc);
  border-left-color: var(--acc);
}
.anav-icon { color: var(--text-faint); }
.anav-item.is-active .anav-icon { color: var(--acc); }
.anav-label { letter-spacing: 0.06em; font-weight: 500; }
.anav-cmd { display: none; }

.anav-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.anav-back {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 11px;
}
.anav-back:hover { color: var(--acc); }
.anav-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-mute);
}

/* ── Main ────────────────────────── */
.amain {
  padding: 24px 28px;
  min-width: 0;
}
.ahead {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ahead-crumb {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mute);
}
.ahead-prompt { color: var(--acc); }
.ahead-cmd { color: var(--text); }
.ahead-cursor { color: var(--acc); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ahead-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.ahead-meta {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-mute);
}
.ahead-meta b { color: var(--text); font-weight: 500; }

.abody { display: flex; flex-direction: column; gap: 22px; }
.afoot {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
}

/* ── Common bits ─────────────────── */
.adot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  vertical-align: middle;
}
.adot-ok    { background: var(--ok); box-shadow: 0 0 6px rgba(74,222,128,0.5); }
.adot-warn  { background: var(--warn); }
.adot-err   { background: var(--err); }
.adot-green { background: var(--ok); box-shadow: 0 0 6px rgba(74,222,128,0.5); }
.adot-amber { background: var(--warn); }
.adot-red   { background: var(--err); }

.abar {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
}
.abar-fill { height: 100%; background: var(--ok); transition: width 400ms; }
.abar-warn { background: var(--warn); }
.abar-err  { background: var(--err); }

.aspark polyline { stroke: var(--acc); stroke-width: 1.4; }

.aslab {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
}
.aslab-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ahint { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.04em; }

.abtn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-family: inherit;
  font-size: 10.5px;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.abtn:hover { color: var(--acc); border-color: var(--acc); }

.afilter {
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 2px;
  width: 240px;
}
.afilter:focus { outline: none; border-color: var(--acc); }

/* ── Overview cards ──────────────── */
.ov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ov-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-card-head {
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.ov-stack { display: flex; flex-direction: column; gap: 5px; }
.ov-stack-h { flex-direction: row; gap: 24px; }
.ov-stack > div { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; }
.ov-k { color: var(--text-mute); }
.ov-v { color: var(--text); }

.ov-budget {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ov-budget-num { font-size: 22px; color: var(--text); font-weight: 600; }
.ov-budget-of  { font-size: 11px; color: var(--text-faint); }
.ov-budget-pct { font-size: 11px; color: var(--acc); margin-left: auto; }

/* ── Tables ──────────────────────── */
.atbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.atbl th {
  text-align: left;
  font-weight: 500;
  color: var(--text-faint);
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em;
  font-size: 10.5px;
  text-transform: uppercase;
}
.atbl td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}
.atbl tbody tr:hover { background: var(--panel); }
.t-id    { color: var(--text); font-weight: 500; }
.t-num   { font-variant-numeric: tabular-nums; text-align: right; }
.t-mono  { font-family: inherit; }
.t-faint { color: var(--text-faint); }
.t-warn  { color: var(--warn); }
.t-err   { color: var(--err); }

.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--line);
  color: var(--text-mute);
  text-transform: uppercase;
}
.pill-success    { background: rgba(74,222,128,0.12); color: var(--ok); }
.pill-running    { background: var(--acc-soft); color: var(--acc); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.6; } }
.pill-scheduled  { background: rgba(125,140,160,0.12); color: var(--text-mute); }
.pill-failed     { background: rgba(239,68,68,0.14); color: var(--err); }
.pill-scheduled,
.pill-on-demand  { background: rgba(56,189,248,0.10); color: #38bdf8; }
.pill-on-demand  { background: rgba(168,85,247,0.12); color: #c084fc; }

/* ── Cost section ────────────────── */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cost-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 3px;
}
.cost-head { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.cost-id { color: var(--text); }
.cost-trend { font-size: 10.5px; }
.trend-up   { color: var(--warn); }
.trend-down { color: var(--ok); }
.trend-flat { color: var(--text-faint); }
.cost-num { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 8px; }
.cost-spent { font-size: 18px; color: var(--text); font-weight: 600; }
.cost-of    { font-size: 11px; color: var(--text-faint); }
.cost-pct   { text-align: right; font-size: 10.5px; color: var(--text-mute); margin-top: 4px; }

.cost-history {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 3px;
}
.hbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 130px;
  position: relative;
  justify-content: flex-end;
}
.hbar-fill {
  width: 60%;
  background: var(--acc);
  opacity: 0.7;
  min-height: 2px;
  transition: height 400ms;
}
.hbar:hover .hbar-fill { opacity: 1; }
.hbar-lbl { font-size: 10.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.hbar-day { font-size: 10px; color: var(--text-faint); }

/* ── Audit log ───────────────────── */
.audit {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 0;
  font-size: 11.5px;
  max-height: 600px;
  overflow-y: auto;
}
.audit-row {
  display: grid;
  grid-template-columns: 110px 100px 130px 14px 160px 1fr auto auto;
  gap: 10px;
  padding: 4px 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
}
.audit-row:hover { background: var(--panel-2); }
.audit-ts { color: var(--text-faint); }
.audit-tag {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-align: center;
  background: var(--line);
  color: var(--text-mute);
  text-transform: uppercase;
}
.tag-curation { background: rgba(240,160,32,0.14); color: #f0a020; }
.tag-designer { background: rgba(168,85,247,0.14); color: #c084fc; }
.tag-listing  { background: rgba(56,189,248,0.14); color: #38bdf8; }
.tag-cs       { background: rgba(74,222,128,0.14); color: var(--ok); }
.tag-tax      { background: rgba(251,191,36,0.14); color: var(--warn); }
.audit-agent  { color: var(--text); }
.audit-arrow  { color: var(--text-faint); text-align: center; }
.audit-decision { color: var(--acc); }
.audit-subject { color: var(--text); }
.audit-reason { color: var(--text-faint); font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-cost { color: var(--text-mute); font-variant-numeric: tabular-nums; font-size: 10.5px; }

/* ── Flags ───────────────────────── */
.flags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flag {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.flag-crit.flag-on { border-left: 3px solid var(--ok); }
.flag-crit.flag-off { border-left: 3px solid var(--err); }
.flag-info { flex: 1; }
.flag-id { display: flex; align-items: center; gap: 8px; }
.flag-name { color: var(--text); font-size: 13px; font-weight: 500; }
.flag-crit-tag {
  font-size: 9px;
  padding: 1px 6px;
  background: rgba(239,68,68,0.16);
  color: var(--err);
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.flag-key { color: var(--text-faint); font-size: 10.5px; margin-top: 2px; }
.flag-desc { color: var(--text-mute); font-size: 11px; margin-top: 4px; }

.flag-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.flag-switch input { display: none; }
.flag-track {
  width: 36px; height: 18px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  transition: background 160ms;
}
.flag-thumb {
  width: 14px; height: 14px;
  background: var(--text-mute);
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: all 160ms;
}
.flag-switch input:checked + .flag-track { background: var(--acc-soft); }
.flag-switch input:checked + .flag-track .flag-thumb {
  left: 20px;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc);
}
.flag-state {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  width: 60px;
}
.flag-on .flag-state { color: var(--acc); }

/* ── Extra tone helpers ─────────── */
.t-acc { color: var(--acc); }
.t-ok  { color: var(--ok); }
.blink { animation: blink 1s steps(2) infinite; color: var(--acc); }

/* ── Buttons (extras) ──────────── */
.abtn-pri {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-soft);
}
.abtn-pri:hover { background: var(--acc); color: var(--bg); }
.abtn-pri:disabled { opacity: 0.4; cursor: not-allowed; }
.abtn-pri:disabled:hover { background: var(--acc-soft); color: var(--acc); }
.abtn-danger {
  border-color: rgba(239,68,68,0.5);
  color: var(--err);
}
.abtn-danger:hover { background: rgba(239,68,68,0.12); border-color: var(--err); color: var(--err); }
.abtn-tiny {
  padding: 1px 6px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.abtn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Clickable rows ────────────── */
.atbl-clickable tbody tr {
  cursor: pointer;
  transition: background 80ms;
}
.atbl-clickable tbody tr:hover {
  background: var(--acc-soft);
}
.atbl-clickable tbody tr:hover .t-faint { color: var(--text-mute); }

/* ── Provider tag pills ────────── */
.provtag {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
}
.provtag-anthropic  { color: #d4a373; border-color: rgba(212,163,115,0.4); background: rgba(212,163,115,0.08); }
.provtag-gemini     { color: #60a5fa; border-color: rgba(96,165,250,0.4);  background: rgba(96,165,250,0.08); }
.provtag-openai     { color: #4ade80; border-color: rgba(74,222,128,0.4);  background: rgba(74,222,128,0.08); }
.provtag-perplexity { color: #c084fc; border-color: rgba(192,132,252,0.4); background: rgba(192,132,252,0.08); }
.provtag-llamaswap  { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); }
.provtag-rakuten    { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); }
.provtag-qoo10      { color: #38bdf8; border-color: rgba(56,189,248,0.4);  background: rgba(56,189,248,0.08); }
.provtag-shopify    { color: #84cc16; border-color: rgba(132,204,22,0.4);  background: rgba(132,204,22,0.08); }
.provtag-domemei    { color: #fbbf24; border-color: rgba(251,191,36,0.4);  background: rgba(251,191,36,0.08); }
.provtag-fal        { color: #f472b6; border-color: rgba(244,114,182,0.4); background: rgba(244,114,182,0.08); }

/* ── Health column ─────────────── */
.vhealth {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.vmsg {
  font-size: 10.5px;
  margin-top: 2px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vbadge { font-size: 9.5px; opacity: 0.6; }

/* ── Modal ─────────────────────── */
.amodal-back {
  position: fixed;
  inset: 0;
  background: rgba(8,10,12,0.72);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: amodal-fade 120ms ease-out;
}
@keyframes amodal-fade { from { opacity: 0; } to { opacity: 1; } }
.amodal {
  width: min(680px, 92vw);
  max-height: 88vh;
  background: var(--bg);
  border: 1px solid var(--acc);
  box-shadow: 0 0 0 1px var(--acc-soft), 0 24px 60px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  animation: amodal-pop 140ms ease-out;
}
@keyframes amodal-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.amodal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.amodal-x {
  margin-left: auto;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-faint);
  padding: 2px 8px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.amodal-x:hover { color: var(--acc); border-color: var(--acc); }
.amodal-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.amodal-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Form fields ──────────────── */
.afield { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.afield label {
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.afield-hint {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-left: 6px;
}
.afield-row {
  display: flex;
  gap: 14px;
}
.ainput {
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  border-radius: 0;
  min-width: 0;
}
.ainput:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc-soft);
}
.ainput:disabled { opacity: 0.5; }
select.ainput {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}

/* ── Validation box ──────────── */
.vbox {
  border: 1px solid var(--line);
  background: var(--panel);
}
.vbox-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vbox-head .abtn-pri { margin-left: auto; }
.vbox-body {
  padding: 12px;
  font-size: 11.5px;
  min-height: 48px;
}
.vbox-ok  { border-left: 2px solid var(--ok); }
.vbox-err { border-left: 2px solid var(--err); }

/* ── Chip group (sub-tab selector) ─── */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* ── Wide modal (manifest detail / task detail) ── */
.amodal-wide {
  width: min(960px, 94vw);
}
.manifest-dump {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text);
  overflow: auto;
  max-height: 56vh;
  white-space: pre;
  border-radius: 2px;
}

/* ── Drift badge (skill catalog) ──── */
.drift {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  background: var(--line);
  letter-spacing: 0.04em;
}
.drift-ok   { color: var(--ok); background: rgba(74,222,128,0.10); }
.drift-warn { color: var(--warn); background: rgba(251,191,36,0.12); }
.drift-err  { color: var(--err); background: rgba(239,68,68,0.14); }

/* ── Task state pill colors ───────── */
.task-state-queued    { background: rgba(125,140,160,0.14); color: var(--text-mute); }
.task-state-running   { background: var(--acc-soft); color: var(--acc); animation: pulse 1.4s ease-in-out infinite; }
.task-state-completed { background: rgba(74,222,128,0.12); color: var(--ok); }
.task-state-failed    { background: rgba(239,68,68,0.14); color: var(--err); }
.task-state-cancelled { background: rgba(168,85,247,0.12); color: #c084fc; }

/* ── Kill switch ──────────────────── */
.killsw-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.killsw-form textarea.ainput {
  font-family: inherit;
  resize: vertical;
  min-height: 36px;
}
.killsw-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.killsw-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
}
.killsw-active  { border-left: 3px solid var(--err); }
.killsw-history { border-left: 3px solid var(--line); opacity: 0.85; }
.killsw-scope {
  display: flex;
  align-items: center;
  gap: 8px;
}
.killsw-expires { font-size: 10.5px; margin-left: auto; }
.killsw-reason  { color: var(--text); font-size: 11.5px; }
.killsw-meta {
  display: flex;
  gap: 10px;
  font-size: 10.5px;
  align-items: center;
}
.killsw-meta .abtn-tiny { margin-left: auto; }

/* ── Policy sandbox rule sliders ──── */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.rule-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 14px;
}
.rule-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.rule-lbl {
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.rule-val {
  font-size: 13px;
  color: var(--acc);
  font-weight: 600;
}
.rule-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  outline: none;
  border-radius: 2px;
  margin: 6px 0 4px;
}
.rule-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--acc);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px var(--acc-soft);
}
.rule-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--acc);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.rule-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
}

/* ── Responsive ──────────────────── */
@media (max-width: 1100px) {
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .admin { grid-template-columns: 1fr; }
  .anav { position: relative; height: auto; }
  .ov-grid, .cost-grid { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; }
  .afield-row { flex-direction: column; gap: 12px; }
}
