/* Ncode License Server: one ink rail, white work surfaces, hairlines, one signal blue. */
:root {
  --ink: #0b0d12;
  --ink-2: #151924;
  --ink-line: #232838;
  --ink-text: #e8ebf3;
  --ink-muted: #8a93a8;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --sunken: #fafbfc;
  --text: #0f1420;
  --muted: #5d6576;
  --faint: #8b93a3;
  --line: #e4e7ed;
  --line-strong: #d3d8e1;
  --signal: #3355ff;
  --signal-hover: #2645e6;
  --signal-soft: #ecf0ff;
  --ok: #0e7a55;
  --ok-soft: #e3f3ec;
  --warn: #9a5a00;
  --warn-soft: #fcf0d9;
  --bad: #c22f2c;
  --bad-soft: #fbe8e7;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); }
[hidden] { display: none !important; }
a { color: inherit; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 13px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }

/* ── wordmark ─────────────────────────────────────────────── */
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.wordmark small { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-muted); }
.logo {
  position: relative; width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: var(--ink-2) url("/admin/favicon.svg") center / 100% no-repeat;
  box-shadow: inset 0 0 0 1px var(--ink-line);
}

/* ── buttons, inputs ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 550; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--sunken); border-color: #c2c8d3; }
.btn:focus-visible, .chip:focus-visible, .switch:focus-visible, .rail a:focus-visible, .link:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(15, 20, 32, 0.05); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ok.solid { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--signal); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }

input, textarea, select {
  width: 100%; height: 34px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
select { padding-right: 28px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--signal); }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 550; color: var(--muted); min-width: 0; }
label.field .hint { font-weight: 400; color: var(--faint); }
.error { color: var(--bad); font-size: 13px; }
.hint { color: var(--faint); font-size: 12.5px; }

/* ── login ────────────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; place-content: center; gap: 18px; padding: 16px; background: var(--ink); }
.login-card {
  width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: 14px; background: var(--surface);
}
.login-card .wordmark { margin-bottom: 14px; }
.login-card .wordmark small { color: var(--muted); }
.login-card label { font-size: 12.5px; font-weight: 550; color: var(--muted); }
.login-card .btn { margin-top: 6px; height: 38px; }
.login-foot { text-align: center; color: var(--ink-muted); font-size: 12.5px; }

/* ── shell ────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
  padding: 18px 12px; background: var(--ink); color: var(--ink-text);
}
.rail > .wordmark { padding: 4px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px;
  color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 13.5px;
}
.nav a svg { width: 16px; height: 16px; flex: none; }
.nav a:hover { color: var(--ink-text); background: var(--ink-2); }
.nav a[aria-current="page"] { color: #fff; background: var(--ink-2); box-shadow: inset 2px 0 0 var(--signal); }
.nav .count { margin-left: auto; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.nav .count.alert { color: #fff; background: var(--bad); border-radius: 999px; padding: 0 6px; line-height: 18px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 0; border-top: 1px solid var(--ink-line); }
.rail-meta { font-size: 11.5px; color: var(--ink-muted); word-break: break-all; }
.rail-link { all: unset; cursor: pointer; font-size: 12.5px; color: var(--ink-text); }
.rail-link:hover { text-decoration: underline; }

.main { min-width: 0; padding: 26px 32px 60px; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.section-head h2 { font-size: 14px; }

/* ── surfaces ─────────────────────────────────────────────── */
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 14px 18px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 550; }
.kpi .value { margin-top: 6px; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .value small { font-size: 14px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.kpi .sub { margin-top: 4px; font-size: 12px; color: var(--faint); }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ── toolbar ──────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .search { flex: 1 1 260px; max-width: 360px; position: relative; }
.toolbar .search input { padding-left: 32px; }
.toolbar .search svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--faint); }
.toolbar select { width: auto; min-width: 150px; }
.chips { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #eceef2; }
.chip {
  border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 7px; font: inherit;
  font-size: 12.5px; font-weight: 550; color: var(--muted); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15, 20, 32, 0.08); }
.chip .n { margin-left: 5px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ── tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th {
  position: sticky; top: 0; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 9px 14px; background: var(--sunken); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.grid td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr.row { cursor: pointer; }
.grid tr.row:hover td { background: #f8f9fb; }
.grid tr.row[aria-selected="true"] td { background: var(--signal-soft); }
.grid .right { text-align: right; }
.grid.compact th, .grid.compact td { padding: 7px 10px; font-size: 12.5px; }
.grid.compact td:first-child { white-space: nowrap; }
.cell-title { font-weight: 600; }
.cell-sub { display: block; margin-top: 1px; font-size: 12px; color: var(--faint); }
.cell-sub.mono { font-size: 11.5px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 4px; }

/* ── pills, dots, tags, switch ────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.active { background: var(--ok-soft); color: var(--ok); }
.pill.suspended, .pill.blocked, .pill.unknown { background: var(--bad-soft); color: var(--bad); }
.pill.expired, .pill.limit { background: var(--warn-soft); color: var(--warn); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: #eef0f4; color: var(--text); font-size: 12px; font-weight: 550; white-space: nowrap; }
.tag.mono { font-family: var(--mono); font-size: 11.5px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c3c8d2; vertical-align: 1px; margin-right: 6px; }
.dot.on { background: #18a36d; box-shadow: 0 0 0 3px rgba(24, 163, 109, 0.15); }
.switch { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 0; background: #c9ced8; cursor: pointer; padding: 0; vertical-align: middle; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(16px); }

/* ── lists: attention, events ─────────────────────────────── */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.list li:last-child { border-bottom: 0; }
.list .tone { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.list .tone.bad { background: var(--bad); }
.list .tone.warn { background: #e09a1a; }
.list .what { flex: 1; min-width: 0; }
.list .what b { font-weight: 600; }
.list .what span { display: block; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .when { flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.all-clear { display: flex; align-items: center; gap: 10px; padding: 16px 14px; color: var(--ok); font-weight: 550; }

.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 116px 180px minmax(0, 1fr); gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: baseline; }
.events li:last-child { border-bottom: 0; }
.events .t { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.events .k { font-weight: 600; }
.events .k.bad { color: var(--bad); }
.events .k.good { color: var(--ok); }
.events .d { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events .d .link { font-weight: 550; }
.drawer .events li { grid-template-columns: 104px minmax(0, 1fr); padding: 7px 0; }
.drawer .events .d { grid-column: 2; }

/* ── drawer ───────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(640px, 100vw);
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -24px 0 48px rgba(11, 13, 18, 0.12);
}
.scrim { position: fixed; inset: 0; z-index: 19; background: rgba(11, 13, 18, 0.18); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; }
.drawer-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.drawer-head .actions { display: flex; align-items: center; gap: 6px; flex: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 22px 40px; }
.block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block > h3 { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.block > p.hint { margin: -6px 0 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fields .span2 { grid-column: span 2; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.form-foot .error { margin-right: auto; }
.code {
  margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--ink); color: #d9e1ff;
  white-space: pre-wrap; word-break: break-all; line-height: 1.6;
}
.code .k { color: #8ea2ff; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.checks code { color: var(--faint); font-size: 11.5px; }
.pairs { display: flex; flex-direction: column; gap: 6px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 130px 32px; gap: 6px; align-items: center; }
.pair.wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) 32px; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--faint); border-radius: 7px; cursor: pointer; }
.icon-btn:hover { background: #f0f2f5; color: var(--bad); }
.icon-btn svg { width: 15px; height: 15px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.danger-zone p { color: var(--muted); font-size: 12.5px; }
.token-once { margin-top: 12px; padding: 12px 14px; border-radius: 9px; background: var(--signal-soft); border: 1px solid #cfd8ff; }
.token-once code { display: block; margin: 6px 0 8px; word-break: break-all; font-size: 13px; color: var(--text); }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; word-break: break-all; }

/* ── dialog & toast ───────────────────────────────────────── */
.dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(11, 13, 18, 0.3); }
.dialog::backdrop { background: rgba(11, 13, 18, 0.45); }
.dialog form { padding: 22px; }
.dialog h2 { margin-bottom: 4px; }
.dialog .lead { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 50;
  padding: 10px 16px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(11, 13, 18, 0.25);
}
.toast.bad { background: var(--bad); }

/* ── small screens ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; overflow-x: auto; }
  .rail > .wordmark small, .rail-foot .rail-meta { display: none; }
  .nav { flex-direction: row; }
  .nav a { padding: 0 9px; }
  .nav a span.label { display: none; }
  .rail-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .main { padding: 18px 16px 48px; }
  .hide-sm { display: none; }
  .fields, .fields.three, .checks { grid-template-columns: minmax(0, 1fr); }
  .fields .span2 { grid-column: auto; }
  .events li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
}

/* ── utilities (the CSP forbids inline style attributes) ──── */
.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.pad { padding: 16px 18px; }
.lead-hint { margin: -6px 0 12px; }
.toolbar.tight { margin: 0 0 12px; }
.w-320 { max-width: 320px; }
.nowrap { white-space: nowrap; }
.upper { text-transform: uppercase; }
.list li.row { cursor: pointer; }
.list li.row:hover { background: #f8f9fb; }

/* ── pages (v2): headers, tabs, cards, detail layout ──────── */
.page-head .page-title { min-width: 0; }
.page-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.tabs { display: flex; gap: 2px; margin: 4px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; margin-bottom: -1px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 550; font-size: 13.5px; border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--signal); }
.tabs .n { font-size: 11.5px; padding: 0 6px; border-radius: 999px; background: #eceef2; color: var(--muted); line-height: 18px; }
.tab-body { display: flex; flex-direction: column; gap: 16px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > header { padding: 14px 18px 0; }
.card.flush > .hint { padding: 0 18px 16px; }
.card.warn { border-color: #f0c77a; background: #fffcf4; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card > header h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.card.flush > table { margin-top: 10px; }
.card h4 { font-size: 13px; }
.danger-card .danger-zone + .danger-zone { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: 13px; }
.facts.wide { grid-template-columns: 150px minmax(0, 1fr); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.events.compact li { grid-template-columns: 96px minmax(0, 1fr); padding: 6px 0; }
.events.compact .d { grid-column: 2; }
.steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.field-text { margin: 0; padding-top: 8px; font-size: 13px; color: var(--text); font-weight: 400; }
.sub-row td { padding-top: 0 !important; border-top: 0; }
.grid tr.sub-row td { border-bottom: 1px solid var(--line); }
.muted-row td { opacity: 0.55; }
.small { font-size: 12.5px; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--signal); }
.btn.warn.solid { background: #b86e00; border-color: #b86e00; color: #fff; }
.error-box { color: var(--bad); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.product-card {
  display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color 0.12s, box-shadow 0.12s;
}
.product-card:hover { border-color: #c2c8d3; box-shadow: 0 2px 10px rgba(15, 20, 32, 0.06); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-desc { color: var(--muted); font-size: 12.5px; min-height: 18px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pc-stats dt { font-size: 11.5px; color: var(--muted); }
.pc-stats dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-parts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
}
.fields .span3 { grid-column: 1 / -1; }
.row-actions.tight-row { margin-top: 0; gap: 6px; }
