/* ============================================================
   CONDUCTOR — app.css
   "compact dev console": light · Inter · dense · sharp.
   Component library + page classes.
   ============================================================ */

/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: inherit; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
svg.i { display: block; }

/* machine data (ids, models, costs, latencies) — sans, tabular figures,
   differentiated by size / weight / color / tint, never a second typeface */
.data {
  font-family: var(--font);
  font-size: 12px; font-weight: 400; letter-spacing: normal;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.tnum { font-variant-numeric: tabular-nums; }
.tx2 { color: var(--text-2); }
.tx3 { color: var(--text-3); }
.tx4 { color: var(--text-4); }
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }
.c-red   { color: var(--red); }

.i    { width: 16px; height: 16px; flex-shrink: 0; }
.i-14 { width: 14px; height: 14px; flex-shrink: 0; }
.i-12 { width: 12px; height: 12px; flex-shrink: 0; }
.i-18 { width: 18px; height: 18px; flex-shrink: 0; }

/* Lucide replaces <i data-lucide> with <svg class="lucide …"> — size bare
   placeholders too (classes above stay the explicit override). */
svg.lucide { width: 16px; height: 16px; flex-shrink: 0; }
.chip svg.lucide { width: 14px; height: 14px; }
.badge svg.lucide, .delta svg.lucide, .wname svg.lucide, .note svg.lucide,
.mchip svg.lucide { width: 12px; height: 12px; }
.stat-h svg.lucide { width: 14px; height: 14px; }
.pg svg.lucide { width: 13px; height: 13px; }
.plus svg.lucide { width: 14px; height: 14px; }

:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 1px; }
::selection { background: color-mix(in srgb, var(--accent) 18%, transparent); }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-full); border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
*::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------
   SHELL — sidebar / topbar / content
   ------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }

.side {
  background: var(--bg-side);
  border-right: 1px solid var(--border-side);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow: hidden; user-select: none;
}

/* workspace switcher card — name + env badge */
.side-top {
  display: flex; align-items: center;
  height: var(--topbar-h);   /* same row height as .topbar, keeps the divider aligned */
  padding: 0 8px;
  border-bottom: 1px solid var(--border);   /* continues .topbar's hairline across the sidebar */
}
.ws {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: var(--side-row); padding: 0 10px; border-radius: var(--r-sm);
  text-align: left;
  transition: background var(--dur) var(--ease);
}
.ws:hover { background: var(--surface-2); }
.logo {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo .i { width: 15px; height: 15px; }
.ws-name { font-weight: 400; font-size: var(--fs-md); color: var(--text); white-space: nowrap; letter-spacing: normal; }
.env {
  margin-left: auto; flex-shrink: 0;
  height: 16px; padding: 0 5px; border-radius: var(--r-xs);
  background: var(--green-soft); color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 26%, transparent);
  font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em;
  display: inline-flex; align-items: center;
  font-variant-numeric: tabular-nums;
}
.ws .chev { margin-left: 0; color: var(--text-4); width: 14px; height: 14px; flex-shrink: 0; }

.side-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2px 8px 8px; scrollbar-width: none; }
.side-scroll::-webkit-scrollbar { display: none; }
.sgroup { display: grid; gap: 2px; }
.sgroup-h {
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-4); padding: 14px 9px 5px;
}
.sgroup:first-child .sgroup-h { padding-top: 10px; }
.sitem {
  position: relative;
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: var(--side-row); padding: 0 8px 0 10px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 400;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sitem .i { color: var(--text-3); transition: color var(--dur) var(--ease); }
.sitem:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sitem:hover .i { color: var(--text-2); }
/* active nav: thin 2px indigo left accent line + bold text — no filled pill */
.sitem.on { background: transparent; color: var(--text); font-weight: 400; }
.sitem.on .i { color: var(--accent); }
.sitem.on::before {
  content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px;
  border-radius: 1px; background: var(--accent);
}
.sitem .ct { margin-left: auto; font-size: var(--fs-xs); color: var(--text-4); font-variant-numeric: tabular-nums; }
.sitem .ct-pill {
  margin-left: auto; min-width: 18px; height: 19px; padding: 0 5px;
  border-radius: var(--r-xs); background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 400; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}

.side-bot { padding: 6px 8px 8px; border-top: 1px solid var(--border-side); display: grid; gap: 2px; }
.theme-row { text-align: left; width: 100%; }
.theme-row .mode-cap {
  margin-left: auto; font-size: 11px; font-weight: 400;
  color: var(--text-4); font-variant-numeric: tabular-nums;
}
.theme-row .cap-d { display: none; }
:root[data-theme='dark'] .theme-row .cap-l { display: none; }
:root[data-theme='dark'] .theme-row .cap-d { display: inline; }
.userchip {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 5px 7px; border-radius: var(--r-sm); text-align: left;
  transition: background var(--dur) var(--ease);
}
.userchip:hover { background: var(--surface-2); }
.userchip .who { min-width: 0; display: grid; }
.userchip .nm { font-size: var(--fs-sm); font-weight: 500; color: var(--text); white-space: nowrap; }
.userchip .role { font-size: var(--fs-2xs); color: var(--text-3); white-space: nowrap; }
.userchip .chev { margin-left: auto; color: var(--text-4); width: 14px; height: 14px; }

.av {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 400; color: #fff; flex-shrink: 0;
  font-family: var(--font); letter-spacing: normal;
}
.av-26 { width: 24px; height: 24px; font-size: 11px; }
.av.violet { background: var(--violet); }
.av.teal   { background: var(--teal); }
.av.rose   { background: var(--rose); }
.av.blue   { background: var(--blue); }

.main { min-width: 0; display: flex; flex-direction: column; }

/* topbar: breadcrumb left · centered command bar · actions right */
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 36%, 480px) minmax(0, 1fr);
  align-items: center; gap: 14px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.crumbs { display: flex; align-items: baseline; gap: 7px; min-width: 0; justify-self: start; }
.crumb-par { font-size: var(--fs-sm); color: var(--text-4); }
a.crumb-par:hover { color: var(--text-2); text-decoration: none; }
.crumb-sep { color: var(--border-strong); font-size: var(--fs-sm); }
.crumb { font-size: var(--fs-md); font-weight: 400; color: var(--text); white-space: nowrap; letter-spacing: normal; }
.crumb.data { font-size: var(--fs); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: normal; }

/* the command bar */
.cmdk {
  justify-self: center; width: 100%;
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 5px 0 9px;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-4); font-size: var(--fs-sm);
  cursor: text; white-space: nowrap; text-align: left;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cmdk:hover { border-color: var(--border-strong); background: var(--sunken); color: var(--text-3); }
.cmdk:focus-visible { border-color: var(--accent); outline: none; }
/* theme toggle lives INSIDE the command bar, at its right edge before ⌘K */
.cmdk .cmdk-theme {
  margin-left: auto; width: 18px; height: 18px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; color: var(--text-4);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cmdk .cmdk-theme:hover { background: var(--surface-3); color: var(--text); }
.cmdk .cmdk-theme .i { width: 12px; height: 12px; }
.cmdk .kbd { margin-left: auto; }
/* …unless a theme chip is present: it owns the auto offset, ⌘K follows it */
.cmdk .cmdk-theme + .kbd { margin-left: 0; }
.tb-acts { justify-self: end; display: flex; gap: 6px; align-items: center; min-width: 0; }
.bell { position: relative; }
.bell::after {
  content: ''; position: absolute; top: 4px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}
.topbar .btn { flex-shrink: 0; }

/* theme toggle — sun/moon both pre-rendered; visibility flips via [data-theme] */
.theme-toggle .t-sun, .theme-toggle .t-moon { display: none; }
:root[data-theme='light'] .theme-toggle .t-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .t-sun { display: block; }

.content { padding: 20px var(--gutter) 48px; flex: 1; min-width: 0; animation: rise 280ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .content { animation: none; } * { transition-duration: 0ms !important; } }

/* ------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------ */
.ph { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ph h1 { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: normal; line-height: 1.5; }
.ph .sub { margin-top: 4px; color: var(--text-2); font-size: var(--fs); }
.ph .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------
   BUTTONS — flat primary, boxier than siblings
   ------------------------------------------------------------ */
.btn {
  height: var(--h-md); display: inline-flex; align-items: center; gap: 6px;
  padding: 0 10px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; user-select: none; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
a.btn { text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }   /* flat — no inset shadow */
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 90%, #101226); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-4); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 18%, transparent); }
.btn-danger-ghost { color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-soft); }
.btn-sm { height: var(--h-sm); padding: 0 8px; font-size: var(--fs-xs); }
.btn-sm svg.lucide, .btn-sm .i { width: 14px; height: 14px; }
.ibtn {
  width: var(--h-md); height: var(--h-md);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text-3); cursor: pointer; flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ibtn:hover { background: var(--surface-3); color: var(--text); }
.ibtn-sm { width: var(--h-sm); height: var(--h-sm); }

/* ------------------------------------------------------------
   BADGES — small bordered squares with a left dot (sharp, not pills)
   ------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 6px;
  border-radius: var(--r-sm); font-size: 12px; font-weight: 400; white-space: nowrap;
  background: var(--surface);
  color: var(--text-2); letter-spacing: normal;
}
.badge .dot { width: 5px; height: 5px; border-radius: 1.5px; background: currentColor; flex-shrink: 0; }
.badge .i { width: 11px; height: 11px; }
.badge.green  { background: color-mix(in srgb, var(--green) 7%, var(--surface));  border-color: color-mix(in srgb, var(--green) 32%, transparent);  color: var(--green); }
.badge.amber  { background: color-mix(in srgb, var(--amber) 8%, var(--surface));  border-color: color-mix(in srgb, var(--amber) 34%, transparent);  color: var(--amber); }
.badge.red    { background: color-mix(in srgb, var(--red) 6%, var(--surface));    border-color: color-mix(in srgb, var(--red) 30%, transparent);    color: var(--red); }
.badge.blue   { background: color-mix(in srgb, var(--blue) 7%, var(--surface));   border-color: color-mix(in srgb, var(--blue) 30%, transparent);   color: var(--blue); }
.badge.violet { background: color-mix(in srgb, var(--violet) 7%, var(--surface)); border-color: color-mix(in srgb, var(--violet) 30%, transparent); color: var(--violet); }
.badge.teal   { background: color-mix(in srgb, var(--teal) 7%, var(--surface));   border-color: color-mix(in srgb, var(--teal) 30%, transparent);   color: var(--teal); }
.badge.gray   { background: var(--surface-2);   border-color: var(--border-strong); color: var(--text-3); }
.badge.accent { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--accent); }
.badge.sm { height: 17px; padding: 0 5px; font-size: 11px; gap: 4px; }
.badge.sm .dot { width: 4px; height: 4px; }

.mtag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 6px;
  border-radius: var(--r-sm); background: var(--surface-2);
  font-size: 12px; font-weight: 400; color: var(--text-3); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   SEGMENTED CONTROL — sharper
   ------------------------------------------------------------ */
.seg {
  display: inline-flex; align-items: center; background: var(--surface-3);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px; gap: 2px;
}
.seg button {
  height: 22px; padding: 0 9px; border-radius: 3px;
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-3);
  display: inline-flex; gap: 6px; align-items: center;
  transition: all var(--dur) var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow-raise); }
.seg button .ct {
  font-size: 11px; font-weight: 500; color: var(--text-4);
  background: color-mix(in srgb, var(--border-strong) 45%, var(--surface));
  border-radius: var(--r-xs); padding: 1px 5px; font-variant-numeric: tabular-nums;
}
.seg button.on .ct { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------------------
   STAT ROW
   ------------------------------------------------------------ */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); margin-bottom: 20px;
}
.stat { padding: 12px 16px 13px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--divider); }
.stat-h { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 400; color: var(--text-3); }
.stat-h .i { width: 13px; height: 13px; color: var(--text-4); }
.stat-n {
  font-size: var(--fs-stat); font-weight: 500; letter-spacing: normal;
  margin-top: 8px; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 8px; line-height: 1.5;
}
.stat-s { margin-top: 3px; font-size: var(--fs-xs); color: var(--text-4); display: flex; align-items: center; gap: 4px; }
.stat-s .i { width: 11px; height: 11px; }
.stat-s.up { color: var(--green); }
.stat-s.down { color: var(--red); }
.stat-n .c-red, .stat-n .c-amber { display: inline-flex; }

.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--green-soft); } }

/* ------------------------------------------------------------
   LAYOUT: body grid + rail
   ------------------------------------------------------------ */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.cols-380 { grid-template-columns: minmax(0, 1fr) 380px; }
.stack { display: grid; gap: 16px; min-width: 0; }

/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); min-width: 0; }
.card-h {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
}
.card-h h2 { font-size: var(--fs-md); font-weight: 600; letter-spacing: normal; }
.card-h .hnote { font-size: var(--fs-xs); color: var(--text-4); }
.card-h .lnk {
  margin-left: auto; font-size: var(--fs-xs); color: var(--text-3);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.card-h .lnk:hover { color: var(--text); text-decoration: none; }
.card-h .lnk .i { width: 12px; height: 12px; }
.card-h .sp { flex: 1; }
.card-b { padding: 14px; }
.card-b.tight { padding: 2px 14px 6px; }
.card-f { padding: 8px 14px; border-top: 1px solid var(--divider); font-size: var(--fs-xs); color: var(--text-4); }

/* ------------------------------------------------------------
   TABLES — 34px rows, uppercase 10px column labels, 12.5px text
   ------------------------------------------------------------ */
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--text-4);
  letter-spacing: normal;
  padding: 8px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 6px 14px; vertical-align: middle; white-space: nowrap; height: var(--row-h); }
.tbl tbody tr { transition: background var(--dur) var(--ease); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl .num {
  font-size: 12px; text-align: right; font-weight: 400;
  font-variant-numeric: tabular-nums; color: var(--text-2);
}
.tbl td.strong .num, .tbl td .cost { font-weight: 400; color: var(--text); }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr.hushed td { color: var(--text-3); }
.cell-e { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cell-e .nm { font-size: 12px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: normal; }
.cell-e .nm.plain { font-size: var(--fs-sm); font-weight: 500; }
.cell-e .sub { display: block; font-size: var(--fs-2xs); color: var(--text-4); font-weight: 400; }
.rid { font-size: 12px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.rid:hover { color: var(--accent); text-decoration: underline; }
.w36 { width: 36px; }
.check { appearance: none; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--border-strong);
  background: var(--surface); display: inline-grid; place-content: center; cursor: pointer; flex-shrink: 0;
  margin: 0; vertical-align: middle; transition: background var(--dur), border-color var(--dur); }
.check:hover { border-color: var(--text-4); }
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { content: ''; width: 7px; height: 4.5px; border-left: 1.8px solid var(--on-accent);
  border-bottom: 1.8px solid var(--on-accent); transform: rotate(-45deg) translate(1px, -1px); }

/* footer + pagination */
.tblfoot {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-top: 1px solid var(--divider);
  font-size: var(--fs-xs); color: var(--text-4);
}
.pager { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.pg {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pg:hover { background: var(--surface-3); color: var(--text); }
.pg.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.pg.gap { color: var(--text-4); cursor: default; }
.pg.gap:hover { background: none; color: var(--text-4); }
.pg .i { width: 13px; height: 13px; }
.pg .flip { transform: scaleX(-1); }

/* ------------------------------------------------------------
   ICON CHIPS
   ------------------------------------------------------------ */
.chip {
  width: 24px; height: 24px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chip .i { width: 14px; height: 14px; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.teal   { background: var(--teal-soft);   color: var(--teal); }
.chip.violet { background: var(--violet-soft); color: var(--violet); }
.chip.blue   { background: var(--blue-soft);   color: var(--blue); }
.chip.green  { background: var(--green-soft);  color: var(--green); }
.chip.amber  { background: var(--amber-soft);  color: var(--amber); }
.chip.red    { background: var(--red-soft);    color: var(--red); }
.chip.rose   { background: var(--rose-soft);   color: var(--rose); }
.chip.orange { background: color-mix(in srgb, var(--orange) 11%, transparent); color: var(--orange); }
.chip.gray   { background: var(--surface-3);   color: var(--text-3); }

/* ------------------------------------------------------------
   METERS / SPARKLINES
   ------------------------------------------------------------ */
.meter { height: 5px; border-radius: var(--r-xs); background: var(--surface-3); overflow: hidden; width: 120px; flex-shrink: 0; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.meter.green > i { background: var(--green); }
.meter.amber > i { background: var(--amber); }
.meter.red > i   { background: var(--red); }
.meter.w80 { width: 80px; }
/* per-value fills (pass rates) */
.mw-880 { width: 88%; }   .mw-885 { width: 88.5%; } .mw-898 { width: 89.8%; }
.mw-914 { width: 91.4%; } .mw-922 { width: 92.2%; } .mw-940 { width: 94%; }
.mw-956 { width: 95.6%; } .mw-960 { width: 96%; }   .mw-961 { width: 96.1%; }
.mw-962 { width: 96.2%; } .mw-972 { width: 97.2%; }
.mrow { display: flex; align-items: center; gap: 10px; }
.mval { font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: normal; }

/* sparklines — 30px tall, 2px round line, soft area fill, end dot with
   a surface ring. The dot is an HTML overlay so it stays round despite
   the stretched (preserveAspectRatio="none") viewBox. */
.spark { position: relative; display: block; height: 30px; min-width: 0; }
.spark svg { display: block; width: 100%; height: 100%; }
.spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { stroke: none; opacity: 0.13; }
.sparkdot {
  position: absolute; right: 0; top: var(--sy, 50%);
  width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}

/* ------------------------------------------------------------
   MISC SHARED
   ------------------------------------------------------------ */
.inwrap { position: relative; display: inline-flex; align-items: center; }
.inwrap > .i, .inwrap > svg.lucide { position: absolute; left: 9px; color: var(--text-4); pointer-events: none; width: 13px; height: 13px; }
.inwrap > .input { padding-left: 29px; }

.input, .select, .textarea {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font: 400 var(--fs)/1.4 var(--font); color: var(--text); padding: 5px 10px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--text-4); }
.input-sm { height: var(--h-sm); font-size: var(--fs-sm); padding: 0 10px; }
.select-sm { height: var(--h-sm); font-size: var(--fs-sm); padding: 0 26px 0 10px; width: auto; }
.select { appearance: none; padding-right: 28px; cursor: pointer;
  background-image: var(--chev);
  background-repeat: no-repeat; background-position: right 9px center; }
.textarea { width: 100%; min-height: 72px; resize: vertical; line-height: 1.5; }

/* kbd chips — a sans, keyboard-first signature detail */
.kbd {
  font-family: var(--font); font-size: 11px; font-weight: 400;
  font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: var(--r-xs); padding: 1px 5px; color: var(--text-3);
}

.toggle { appearance: none; width: 30px; height: 18px; border-radius: var(--r-full); background: var(--surface-3);
  position: relative; cursor: pointer; transition: background var(--dur) var(--ease); flex-shrink: 0; margin: 0; }
.toggle::after { content: ''; position: absolute; inset: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform var(--dur) var(--spring); box-shadow: var(--shadow-sm); }
.toggle:checked { background: var(--accent); }
.toggle:checked::after { transform: translateX(12px); }

.feed-it { display: flex; gap: 10px; padding: 9px 0; font-size: var(--fs-sm); line-height: 1.5; }
.fdot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.fdot.green { background: var(--green); } .fdot.red { background: var(--red); }
.fdot.amber { background: var(--amber); } .fdot.blue { background: var(--blue); }
.fdot.accent { background: var(--accent); }
.feed-it .tm { margin-left: auto; color: var(--text-4); font-size: var(--fs-2xs); white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.feed-it b { font-weight: 600; }
.feed-it .data { font-size: 12px; }

/* ------------------------------------------------------------
   PAGE: OVERVIEW
   ------------------------------------------------------------ */
.failrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px;
  align-items: center; padding: 9px 14px;
  text-decoration: none; color: inherit;
  transition: background var(--dur) var(--ease);
}
.failrow:hover { background: var(--surface-2); text-decoration: none; }
.failrow .mid { min-width: 0; }
.failrow .l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.failrow .meta {
  display: flex; align-items: baseline; gap: 14px; align-self: start;
  padding-top: 1px; /* optical baseline match with the rid line */
}
.failrow .meta .tm { font-size: var(--fs-2xs); color: var(--text-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.failrow .badge { align-self: start; } /* top-align with the rid line */
.failrow .emsg {
  font-size: 12px; font-weight: 400; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; margin-top: 2px;
}

.fleet-it { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.fleet-it .nm { font-size: 12px; font-weight: 500; color: var(--text); min-width: 118px; font-variant-numeric: tabular-nums; letter-spacing: normal; }
.fleet-it .spark { flex: 1; min-width: 0; height: 30px; }
.fleet-it .pct { font-size: var(--fs-sm); font-weight: 400; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.fleet-it .spark path.ln { stroke-width: 1; }
.fleet-it .spark .area { opacity: 1; } /* gradient stops own the fade */

/* ------------------------------------------------------------
   PAGE: RUNS — toolbar
   ------------------------------------------------------------ */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .sp { flex: 1; }
.toolbar .inwrap .input { width: 230px; }
/* toolbar controls share one height */
.toolbar .input-sm, .toolbar .select-sm { height: var(--h-md); }

/* ------------------------------------------------------------
   PAGE: TRACE — run header, waterfall, span detail
   ------------------------------------------------------------ */
.runhead { margin-bottom: 24px; }
.runhead .row1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.runid {
  font-size: var(--fs-2xl); font-weight: 400; letter-spacing: normal;
  font-variant-numeric: tabular-nums;
}
.runhead .row1 .acts { margin-left: auto; display: flex; gap: 8px; }
.mchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.mchip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-card);
  font-size: var(--fs-xs); color: var(--text-3);
}
.mchip .i, .mchip svg.lucide { width: 12px; height: 12px; color: var(--text-4); }
.mchip .mv { font-size: 12px; font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: normal; }
.mchip.tint-accent { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.mchip.tint-accent .mv, .mchip.tint-accent .i { color: var(--accent); }

.errbar {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  border-radius: var(--r); padding: 9px 12px; margin-bottom: 20px;
  font-size: var(--fs-sm); color: var(--text); line-height: 1.5;
}
.errbar .i { color: var(--red); margin-top: 1px; }
.errbar .data { font-size: 12px; font-weight: 400; }

.wlegend {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-size: var(--fs-2xs); color: var(--text-3);
  padding: 8px 14px; border-bottom: 1px solid var(--divider);
}
.wlegend span { display: inline-flex; align-items: center; gap: 6px; }
.wdot { width: 9px; height: 9px; border-radius: 2.5px; flex-shrink: 0; }
.wdot.llm  { background: var(--accent); }
.wdot.tool { background: var(--teal); }
.wdot.ret  { background: var(--violet); }
.wdot.io   { background: color-mix(in srgb, var(--gray) 42%, var(--surface-3)); }
.wdot.err  { background: var(--red); }

.wfall { padding: 6px 14px 0; }
.wrow {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  align-items: stretch; min-height: 30px; border-radius: var(--r-sm);
  cursor: pointer; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wrow:hover { background: var(--surface-2); }
.wrow.sel { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent-line); }
.wname {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 0 10px 0 8px; white-space: nowrap;
  font-size: 12px; font-weight: 400; color: var(--text-2);
  font-variant-numeric: tabular-nums; letter-spacing: normal;
}
.wname .i, .wname svg.lucide { width: 12px; height: 12px; color: var(--text-4); flex-shrink: 0; }
.wname .dur { margin-left: auto; color: var(--text-4); font-size: 12px; font-variant-numeric: tabular-nums; padding-left: 8px; }
.wrow.err .wname, .wrow.err .wname .dur, .wrow.err .wname .i, .wrow.err .wname svg.lucide { color: var(--red); }
.wrow.kid > .wname { position: relative; }
.wrow.kid1 > .wname { padding-left: 24px; }
.wrow.kid2 > .wname { padding-left: 40px; }
.wrow.kid > .wname::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 8px; height: 12px;
  border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
  transform: translateY(-72%);
}
.wrow.kid2 > .wname::before { left: 28px; }
.wtrack { display: grid; grid-template-columns: repeat(100, 1fr); align-items: center; padding: 3px 0; }
.wspan { grid-row: 1; height: 15px; border-radius: 3px; min-width: 3px; }
.wspan.root { height: 6px; border-radius: var(--r-full); background: var(--surface-3); }
.ws-llm  { background: var(--accent); }
.ws-tool { background: var(--teal); }
.ws-ret  { background: var(--violet); }
.ws-io   { background: color-mix(in srgb, var(--gray) 42%, var(--surface-3)); }
.ws-err  { background: var(--red); }
.ws-errd { background: color-mix(in srgb, var(--red) 45%, var(--surface-3)); }

/* span offsets on a 100-col track — 1 col ≈ 142ms of the 14.2s run */
.wo-root  { grid-column: 1 / 101; }
.wo-parse { grid-column: 1 / 3; }
.wo-plan  { grid-column: 3 / 20; }
.wo-search{ grid-column: 20 / 26; }
.wo-retr  { grid-column: 20 / 25; }
.wo-act   { grid-column: 26 / 46; }
.wo-sql   { grid-column: 46 / 75; }
.wo-att1  { grid-column: 46 / 60; }
.wo-att2  { grid-column: 59 / 75; }
.wo-reply { grid-column: 75 / 99; }

.ruler-row { display: grid; grid-template-columns: 232px minmax(0, 1fr); padding: 0 14px 9px; }
.ruler { position: relative; height: 18px; border-top: 1px solid var(--divider); }
.ruler span {
  position: absolute; top: 4px; transform: translateX(-50%);
  font-size: 11px; color: var(--text-4); font-variant-numeric: tabular-nums;
}
.ruler span:first-child { transform: none; }
.ruler span:last-child { transform: translateX(-100%); }
/* ruler ticks — 1 col of the track ≈ 142ms, so 2s ≈ 14.085% */
.ruler .t0 { left: 0; }
.ruler .t1 { left: 14.1%; }
.ruler .t2 { left: 28.2%; }
.ruler .t3 { left: 42.3%; }
.ruler .t4 { left: 56.3%; }
.ruler .t5 { left: 70.4%; }
.ruler .t6 { left: 84.5%; }
.ruler .t7 { left: 98.6%; }

.code-label {
  font-size: var(--fs-2xs); font-weight: 400; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-4); margin: 12px 0 6px;
  display: flex; align-items: center; gap: 6px;
}
.code-label:first-child { margin-top: 0; }
.codebox {
  background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 11px; font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-2); white-space: pre-wrap; word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.codebox.err {
  background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 22%, transparent); color: var(--red);
}
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--divider); font-size: var(--fs-sm); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-3); }
.kv .v { font-size: 12px; font-weight: 400; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.kvs { margin-top: 12px; }
.span-acts { display: flex; gap: 8px; margin-top: 12px; }

/* ------------------------------------------------------------
   PAGE: AGENTS
   ------------------------------------------------------------ */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acard { padding: 14px; display: flex; flex-direction: column; gap: 9px; transition: box-shadow var(--dur) var(--ease); }
.acard:hover { box-shadow: var(--shadow-hover); }
.acard-h { display: flex; align-items: center; gap: 9px; }
.acard-h .nm { font-size: 12px; font-weight: 500; letter-spacing: normal; font-variant-numeric: tabular-nums; }
.acard-h .badge { margin-left: auto; }
.acard .desc { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; min-height: 38px; }
.ameta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-4); }
.ameta .sep { color: var(--border-strong); }
.ameta .i { width: 12px; height: 12px; }
.ameta .data { font-size: 12px; }
.acard .spark { margin: 2px 0; }
.acard-foot { display: flex; align-items: flex-end; gap: 14px; margin-top: auto; }
.acard-foot .big { font-size: var(--fs-lg); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.5; }
.acard-foot .cap { font-size: var(--fs-2xs); color: var(--text-4); margin-top: 2px; }
.acard-foot .ibtn { margin-left: auto; align-self: flex-start; }
.acard.degraded { box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 0 0 1px color-mix(in srgb, var(--amber) 38%, var(--border)); }
.note {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: var(--fs-xs); color: var(--amber); line-height: 1.5;
  background: var(--amber-soft); border-radius: var(--r-sm); padding: 7px 9px;
}
.note .i { width: 12px; height: 12px; margin-top: 1px; flex-shrink: 0; }

.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tcard {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
  color: var(--text-2); background: transparent; cursor: pointer; text-align: left;
  transition: all var(--dur) var(--ease);
}
.tcard:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.tcard .plus {
  width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--surface-2);
  display: grid; place-items: center; color: var(--text-3); flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.tcard .plus .i { width: 14px; height: 14px; }
.tcard:hover .plus { background: var(--accent); color: var(--on-accent); }
.tcard .ttxt { display: block; min-width: 0; }
.tcard h3 { font-size: var(--fs); font-weight: 400; color: var(--text); }
.tcard p { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.sect-h { font-size: var(--fs-md); font-weight: 400; letter-spacing: normal; margin: 28px 0 20px; }

/* ------------------------------------------------------------
   PAGE: EVALS
   ------------------------------------------------------------ */
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: normal; }
.delta .i { width: 12px; height: 12px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--text-4); }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); }
.cmp-row + .cmp-row { margin-top: 2px; }
.cmp-row .cm { font-size: 12px; font-weight: 400; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; letter-spacing: normal; }
.cmp-row .badge { flex-shrink: 0; }
.cmp-hi { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.reg-it { padding: 11px 0; border-bottom: 1px solid var(--divider); }
.reg-it:last-child { border-bottom: 0; }
.reg-it .r1 { display: flex; align-items: center; gap: 8px; }
.reg-it .r1 .data { font-weight: 400; color: var(--text); }
.reg-it .r1 .tm { margin-left: auto; font-size: var(--fs-2xs); color: var(--text-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.reg-it p { font-size: var(--fs-sm); color: var(--text-2); margin: 6px 0 7px; line-height: 1.5; }
.reg-it .go { font-size: var(--fs-xs); }

/* ------------------------------------------------------------
   PAGE: SETTINGS
   ------------------------------------------------------------ */
.set-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 1px; }
.set-nav .sgroup-h { padding: 0 9px 5px; }
.set-nav a {
  position: relative;
  padding: 5px 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.set-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.set-nav a.on { background: transparent; color: var(--text); font-weight: 400; }
.set-nav a.on::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px;
  border-radius: 1px; background: var(--accent);
}
.set-stack { display: grid; gap: 16px; max-width: 860px; min-width: 0; }

.frm { display: grid; gap: 13px; padding: 14px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; align-content: start; }
.fld label { font-size: var(--fs-sm); font-weight: 400; }
.fld .hint { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.frm-foot { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.frm-foot .ok { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--green); }

.prov { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--divider); }
.prov:last-child { border-bottom: 0; }
.plogo {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 12px; font-weight: 400; color: #fff; flex-shrink: 0;
}
.plogo.violet { background: var(--violet); }
.plogo.teal   { background: var(--teal); }
.plogo.orange { background: var(--orange); }
.plogo.blue   { background: var(--blue); }
.plogo.green  { background: var(--green); }
.plogo.rose   { background: var(--rose); }
.prov .who { min-width: 0; }
.prov .nm { font-size: var(--fs-sm); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.prov .sub { font-size: var(--fs-xs); color: var(--text-4); margin-top: 1px; }
.prov .sub .data { font-size: 12px; color: var(--text-3); }
.prov .mtag { margin-left: auto; }
.prov .acts { display: flex; gap: 6px; align-items: center; }

.introw { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--divider); }
.introw:last-child { border-bottom: 0; }
.introw .who { min-width: 0; }
.introw .nm { font-size: var(--fs-sm); font-weight: 500; }
.introw .sub { font-size: var(--fs-xs); color: var(--text-4); margin-top: 1px; }
.introw .toggle { margin-left: auto; }

.danger-card { box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 0 0 1px color-mix(in srgb, var(--red) 30%, var(--border)); }
.danger-card .card-h h2 { color: var(--red); }
.danger-b { display: flex; align-items: center; gap: 16px; padding: 14px; }
.danger-b p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.danger-b .btn { margin-left: auto; flex-shrink: 0; }

/* ------------------------------------------------------------
   RESPONSIVE (graceful ≥1024px)
   ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .agrid, .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .cols, .cols-380 { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
  .set-nav { position: static; display: flex; flex-wrap: wrap; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--divider); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .frow { grid-template-columns: 1fr; }
  /* command bar yields space to crumbs + actions on narrow viewports */
  .topbar { grid-template-columns: auto minmax(180px, 1fr) auto; }
}

/* ------------------------------------------------------------
   OVERVIEW: card footers + updated stamp
   ------------------------------------------------------------ */
.card-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; border-top: 1px solid var(--divider);
  font-size: var(--fs-2xs); color: var(--text-4); font-variant-numeric: tabular-nums;
}
.card-foot .lnk {
  margin-left: auto; font-size: var(--fs-xs); color: var(--text-3);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.card-foot .lnk:hover { color: var(--text); text-decoration: none; }
.card-foot .lnk .i { width: 12px; height: 12px; }
.sub .stamp {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; padding: 3px; border-radius: var(--r-xs);
  color: var(--text-4); cursor: pointer; vertical-align: middle;
}
.sub .stamp:hover { color: var(--text-2); background: var(--surface-2); }
.sub .stamp .i, .sub .stamp svg.lucide { width: 12px; height: 12px; }
img.av { object-fit: cover; display: inline-block; }
