/* ============================================================
   Cadence — design tokens + components.  No framework.
   ============================================================ */

:root {
  /* surfaces & text */
  --bg: #14161d;
  --bg-elev: #1a1d27;
  --surface: #1e2230;
  --surface-2: #252a3a;
  --border: #2c3140;
  --border-strong: #3a4152;
  --text: #e8eaf0;
  --text-2: #a6adbd;
  --text-3: #6f7689;

  /* brand & status */
  --brand: #7c6cff;
  --brand-600: #6a58f5;
  --brand-soft: rgba(124, 108, 255, .14);
  --focus: #9d92ff;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  /* product hues */
  --c-windows: #3b82f6;
  --c-chrome: #f25c54;
  --c-bigfix: #14b8a6;
  --c-acrobat: #f04438;
  --c-creative: #c061f5;
  --c-vlc: #f97316;
  --c-dell: #0ea5e9;
  --c-calibre: #84cc16;
  --c-7zip: #ca8a04;
  --c-wacom: #ec4899;
  --c-dellcmd: #0891b2;
  --c-notepad: #16a34a;
  --c-dotnet: #8b5cf6;
  --c-aspnet: #a78bfa;
  --c-edge: #38bdf8;
  --c-other: #94a3b8;

  /* Nessus / ACAS severity (CVSS-derived) */
  --sev-critical: #ef4060;
  --sev-high: #f97316;
  --sev-medium: #eab308;
  --sev-low: #34d399;
  --sev-info: #38bdf8;

  /* radius / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

  --sidebar-w: 256px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: .875rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   App shell
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.brand .logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--brand), #4f7cff);
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(124, 108, 255, .45);
}
.logo svg { width: 64%; height: 64%; }
.brand small { color: var(--text-3); font-weight: 500; font-size: .6875rem; display: block; }

/* Cadence wordmark — gradient lockup echoing the logo tile */
.wordmark {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff; /* fallback if background-clip unsupported */
  background: linear-gradient(118deg, #ffffff 0%, #d8d2ff 52%, #a7baff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wordmark .accent { -webkit-text-fill-color: var(--brand); color: var(--brand); }

.nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: #cfc8ff; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .badge {
  margin-left: auto; font-size: .6875rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
  padding: 1px 7px; border-radius: 999px;
}

.side-section { padding: 16px 20px 8px; }
.side-section h3 {
  margin: 0 0 4px; font-size: .6875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  display: flex; align-items: center; justify-content: space-between;
}
.side-section .mini-link { font-size: .6875rem; color: var(--brand); font-weight: 500; }

.filter-list { padding: 0 12px; display: flex; flex-direction: column; gap: 1px; }
.filter {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r-sm);
  width: 100%; text-align: left; color: var(--text-2);
}
.filter:hover { background: var(--surface); }
.filter .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.filter .name { color: var(--text); font-weight: 500; }
.filter .count { margin-left: auto; font-size: .75rem; color: var(--text-3); }
.filter[aria-pressed="false"] { opacity: .42; }
.filter[aria-pressed="false"] .name { text-decoration: line-through; }

.sidebar-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--border); }
.team {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px; border-radius: var(--r-sm);
}
.team:hover { background: var(--surface); }
.team .avatar {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #2dd4bf, #3b82f6);
  display: grid; place-items: center; font-weight: 700; color: #06121a; font-size: 12px;
}
.team .meta { text-align: left; line-height: 1.2; }
.team .meta b { font-size: .8125rem; }
.team .meta span { font-size: .6875rem; color: var(--text-3); }

/* ============================================================
   Main column
   ============================================================ */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 22, 29, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
}
.menu-btn { display: none; }

.month-nav { display: flex; align-items: center; gap: 4px; }
.month-nav h1 {
  margin: 0 6px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em;
  min-width: 168px;
}
.iconbtn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid transparent;
}
.iconbtn:hover { background: var(--surface); color: var(--text); }
.iconbtn svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .8125rem;
  border: 1px solid var(--border-strong); color: var(--text);
  background: var(--surface);
}
.btn:hover { background: var(--surface-2); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.small { padding: 5px 10px; font-size: .75rem; }

.spacer { flex: 1; }

.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px; }
.segmented button {
  padding: 6px 12px; border-radius: 4px; font-size: .8125rem; font-weight: 600; color: var(--text-2);
}
.segmented button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px 11px; width: 210px;
}
.search:focus-within { border-color: var(--border-strong); }
.search svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: .8125rem; }
.search input::placeholder { color: var(--text-3); }

.content { padding: 22px; }

/* ============================================================
   Calendar grid
   ============================================================ */
.weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 8px; margin-bottom: 8px;
}
.weekdays div {
  font-size: .6875rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-3); padding: 0 6px;
}

.grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(168px, auto); gap: 10px;
}

.cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 10px;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; text-align: left;
  transition: border-color .14s ease, background .14s ease;
}
.cell:hover { border-color: var(--border-strong); }
.cell.outside { background: transparent; border-color: transparent; }
.cell.outside .daynum { color: var(--text-3); opacity: .55; }
.cell.has-sec { box-shadow: inset 3px 0 0 var(--red); }

.cell-head { display: flex; align-items: center; justify-content: space-between; }
.daynum { font-size: .9375rem; font-weight: 700; color: var(--text); padding: 1px 2px; }
.cell.outside .daynum { font-weight: 600; }
.cell.today .daynum {
  background: var(--brand); color: #fff;
  width: 27px; height: 27px; border-radius: 999px;
  display: grid; place-items: center; font-size: .8125rem;
}
.cell-count {
  font-size: .6875rem; font-weight: 600; color: var(--text-3);
  background: var(--surface-2); border-radius: 999px; padding: 1px 8px;
}

.chips { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* Product-first chip: read the product at a glance, hover/focus for details */
.chip {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--chip, var(--text-3));
  min-width: 0; width: 100%; text-align: left;
  transition: background .12s ease, border-color .12s ease;
}
.chip:hover, .chip:focus-visible { background: var(--border); border-color: var(--border-strong); }
.chip .cname {
  font-size: .875rem; font-weight: 600; color: var(--text);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* rich variant: shown when the day is quiet, so there's room for the version */
.chip.rich { flex-direction: column; align-items: stretch; gap: 3px; }
.chip.rich .chip-line { display: flex; align-items: center; gap: 8px; }
.chip .cver {
  font-size: .75rem; color: var(--text-3);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip .sev { font-size: .625rem; padding: 1px 7px; margin-left: auto; flex: none; }
/* severity square shown only for security items, colored by Nessus severity */
.chip .sdot { margin-left: auto; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.chip .sdot[data-sev="critical"] { background: var(--sev-critical); }
.chip .sdot[data-sev="high"]     { background: var(--sev-high); }
.chip .sdot[data-sev="medium"]   { background: var(--sev-medium); }
.chip .sdot[data-sev="low"]      { background: var(--sev-low); }
.chip .ktag {
  margin-left: auto; font-size: .625rem; font-weight: 700; letter-spacing: .03em;
  color: var(--text-3);
}

.more {
  font-size: .75rem; font-weight: 600; color: var(--brand);
  padding: 4px 6px; border-radius: 4px; text-align: left;
}
.more:hover { background: var(--brand-soft); }

/* ---------- List / agenda view ---------- */
.agenda { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.agenda-day h2 {
  margin: 0 0 10px; font-size: .8125rem; font-weight: 600; color: var(--text-2);
  display: flex; align-items: baseline; gap: 10px;
}
.agenda-day h2 .wd { color: var(--text-3); font-weight: 500; }
.agenda-day h2.is-today .num { color: var(--brand); }
.agenda-rows { display: flex; flex-direction: column; gap: 8px; }
.arow {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--chip);
  border-radius: var(--r-md); padding: 11px 14px;
}
.arow:hover { border-color: var(--border-strong); background: var(--surface-2); }
.arow .cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--chip); flex: none; }
.arow .aname { font-weight: 600; }
.arow .aver { color: var(--text-3); }
.arow .asum { color: var(--text-2); font-size: .8125rem; margin-left: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.arow .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

/* expanded row: shown on quiet days, surfaces full classification inline */
.arow.rich { flex-direction: column; align-items: stretch; gap: 9px; padding: 14px; }
.arow.rich .arow-main { display: flex; align-items: center; gap: 12px; width: 100%; }
.arow.rich .asum-full { color: var(--text-2); font-size: .8125rem; line-height: 1.5; padding-left: 21px; }
.arow.rich .arow-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-left: 21px; }
.arow.rich .meta-cve { font-family: var(--mono); font-size: .6875rem; color: var(--text-3); }

.empty {
  text-align: center; color: var(--text-3); padding: 60px 0; font-size: .9rem;
}

/* ============================================================
   Severity / classification badges (Nessus + DoD)
   ============================================================ */
.ttag {
  font-size: .625rem; font-weight: 700; letter-spacing: .03em;
  padding: 2px 6px; border-radius: 4px; flex: none;
}
.ttag.security { background: rgba(248, 113, 113, .16); color: var(--red); }
.ttag.feature { background: rgba(251, 191, 36, .16); color: var(--amber); }
.ttag.maintenance { background: var(--border); color: var(--text-3); }

/* Nessus severity pill */
.sev {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
}
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.sev.critical { color: var(--sev-critical); background: rgba(239, 64, 96, .15); }
.sev.high     { color: var(--sev-high);     background: rgba(249, 115, 22, .15); }
.sev.medium   { color: var(--sev-medium);   background: rgba(234, 179, 8, .15); }
.sev.low      { color: var(--sev-low);      background: rgba(52, 211, 153, .15); }
.sev.info     { color: var(--sev-info);     background: rgba(56, 189, 248, .15); }

/* DoD STIG category */
.cat {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid currentColor;
}
.cat.cat-i   { color: var(--sev-critical); }
.cat.cat-ii  { color: var(--sev-high); }
.cat.cat-iii { color: var(--sev-medium); }

.kev {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .6875rem; font-weight: 700; color: var(--sev-critical);
}
.kev::before { content: "⚠"; }

/* hover / focus tooltip */
.tip {
  position: fixed; z-index: 70; width: 300px; max-width: 86vw;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 12px 14px; color: var(--text);
  opacity: 0; transform: translateY(5px); pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.tip.show { opacity: 1; transform: none; }
.tip .tip-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tip .tip-top b { font-size: .9375rem; }
.tip .tip-ver { font-size: .75rem; color: var(--text-3); margin-left: auto; }
.tip .tip-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tip .tip-cve { font-size: .6875rem; color: var(--text-3); font-family: var(--mono); margin-bottom: 6px; }
.tip .tip-sum { font-size: .8125rem; color: var(--text-2); line-height: 1.5; }

/* ============================================================
   Detail drawer
   ============================================================ */
.scrim {
  position: fixed; inset: 0; background: rgba(8, 9, 13, .55);
  opacity: 0; pointer-events: none; transition: opacity .16s ease; z-index: 40;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 392px; max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow); z-index: 50;
  transform: translateX(100%); transition: transform .18s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.drawer-head h2 { margin: 0; font-size: 1rem; }
.drawer-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }

.detail-prod { display: flex; align-items: center; gap: 10px; }
.detail-prod .cdot { width: 11px; height: 11px; border-radius: 50%; background: var(--chip); }
.detail-prod b { font-size: 1.0625rem; }
.detail-prod span { color: var(--text-3); font-size: .8125rem; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: .8125rem; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); }
.copy { color: var(--brand); font-weight: 600; }

.detail-sum { color: var(--text-2); font-size: .875rem; line-height: 1.55; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.badge-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-pill.security { background: rgba(248,113,113,.14); color: var(--red); }
.badge-pill.feature { background: rgba(251,191,36,.14); color: var(--amber); }
.badge-pill.maintenance { background: var(--surface-2); color: var(--text-2); }

.detail-actions { display: flex; gap: 8px; margin-top: 4px; }
.card-soft {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.card-soft h4 { margin: 0 0 8px; font-size: .8125rem; }
.chan-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .8125rem; color: var(--text-2); }
.chan-row svg { width: 16px; height: 16px; color: var(--text-3); }

/* ============================================================
   Toggle switch
   ============================================================ */
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: background .14s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--text-3);
  transition: transform .14s ease, background .14s ease;
}
.switch input:checked + .track { background: var(--brand-soft); border-color: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--brand); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ============================================================
   Settings / Admin pages
   ============================================================ */
.page { padding: 26px; max-width: 920px; }
.page > header { margin-bottom: 22px; }
.page h1 { margin: 0 0 4px; font-size: 1.375rem; font-weight: 700; }
.page .lede { color: var(--text-2); margin: 0; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px;
}
.panel > h2 { margin: 0 0 2px; font-size: 1rem; }
.panel > .desc { color: var(--text-3); font-size: .8125rem; margin: 0 0 16px; }

.channel {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.channel:first-of-type { border-top: none; padding-top: 0; }
.channel .ico {
  width: 38px; height: 38px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text);
}
.channel .body { flex: 1; min-width: 0; }
.channel .body .top { display: flex; align-items: center; gap: 10px; }
.channel .body h3 { margin: 0; font-size: .9375rem; }
.channel .body p { margin: 2px 0 12px; color: var(--text-3); font-size: .8125rem; }
.channel .controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .75rem; color: var(--text-3); font-weight: 600; }
.input, .select {
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); color: var(--text);
  padding: 8px 11px; font-size: .8125rem; font-family: inherit; min-width: 0;
}
.input:focus, .select:focus { outline: none; border-color: var(--brand); }
.input.grow { flex: 1; min-width: 220px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.ok { background: var(--green); }
.status-dot.warn { background: var(--amber); }
.status-dot.err { background: var(--red); }

/* ============================================================
   Current Versions status board (public)
   ============================================================ */
.vsummary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-bottom: 20px; color: var(--text-2); font-size: .8125rem;
}
.vsummary .stat { display: inline-flex; align-items: center; gap: 7px; }
.vsummary .stat b { color: var(--text); font-size: 1.0625rem; font-weight: 700; }
.vsummary .sep { width: 1px; height: 18px; background: var(--border); }

.vgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
}
.vcard {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--chip); border-radius: var(--r-md);
  padding: 15px 16px; display: flex; flex-direction: column; gap: 10px;
  min-width: 0; text-align: left;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .14s ease, transform .14s ease;
}
.vcard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.vcard .vhead .vname::after { content: " →"; color: var(--text-3); opacity: 0; transition: opacity .14s ease; }
.vcard:hover .vhead .vname::after { opacity: 1; }
.vcard .vhead { display: flex; align-items: baseline; gap: 8px; }
.vcard .vname { font-weight: 600; font-size: .9375rem; }
.vcard .vvendor { color: var(--text-3); font-size: .6875rem; margin-left: auto; flex: none; }
.vcard .vver {
  font-family: var(--mono); font-size: 1.25rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em;
}
.vcard .vrow { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--text-3); }
.vcard .vfoot {
  display: flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--text-2);
  border-top: 1px solid var(--border); padding-top: 9px; margin-top: 1px;
}
.vcard .vfoot.err { color: var(--sev-critical); }
.vcard .vfoot.warn { color: var(--sev-medium); }

/* recency pill — signals how recently the current version shipped */
.vcard .vhead .age { margin-left: auto; }
.age {
  display: inline-flex; align-items: center; flex: none;
  padding: 2px 9px; border-radius: 999px;
  font-size: .6875rem; font-weight: 600; white-space: nowrap;
}
.age.fresh  { color: #34d399; background: rgba(52, 211, 153, .16); }
.age.recent { color: #38bdf8; background: rgba(56, 189, 248, .16); }
.age.aging  { color: #eab308; background: rgba(234, 179, 8, .16); }
.age.old    { color: var(--text-3); background: var(--surface-2); }

/* Dell BIOS matrix: star + history timeline */
.star { font-size: 1.05rem; line-height: 1; color: var(--text-3); padding: 2px 4px; }
.star.on, .star:hover { color: var(--amber); }
#rows tr { cursor: pointer; }

.biostl { display: flex; flex-direction: column; margin-top: 4px; }
.biostl-item { display: flex; gap: 12px; padding-bottom: 14px; }
.biostl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2);
  border: 2px solid var(--border-strong); flex: none; margin-top: 2px; position: relative; }
.biostl-item:not(:last-child) .biostl-dot::after { content: ""; position: absolute;
  top: 12px; left: 3px; width: 2px; bottom: -16px; background: var(--border); }
.biostl-item.latest .biostl-dot { background: var(--brand); border-color: var(--brand); }
.biostl-body { flex: 1; min-width: 0; }
.biostl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.biostl-date { font-size: .75rem; color: var(--text-3); flex: none; }
.biostl-dl { font-size: .6875rem; color: var(--brand); text-decoration: none; }
.biostl-dl:hover { text-decoration: underline; }

#rows tr.grouprow { cursor: default; }
#rows tr.grouprow:hover td { background: transparent; }
#rows tr.grouprow td { color: var(--text-3); font-size: .625rem; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700; padding: 14px 12px 5px; }

/* tables (admin) */
.table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.table th {
  text-align: left; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-3); font-weight: 600; padding: 0 12px 10px;
}
.table td { padding: 12px; border-top: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }
.table .pname { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.table .pname .dot { width: 9px; height: 9px; border-radius: 3px; }
.table .src { font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: .6875rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
}

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text); padding: 11px 18px; border-radius: var(--r-md);
  box-shadow: var(--shadow); font-size: .8125rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 80;
  display: flex; align-items: center; gap: 9px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .status-dot { width: 9px; height: 9px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .search { width: 150px; }
}

@media (max-width: 880px) {
  :root { --sidebar-w: 0px; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 264px; z-index: 60;
    transform: translateX(-100%); transition: transform .18s ease;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: grid; }
  .grid { display: none; }
  .weekdays { display: none; }
  .agenda { display: flex; }            /* force agenda on mobile */
  body.list-view .agenda { display: flex; }
  .search { display: none; }
  .drawer { width: 100%; max-width: 100%; border-left: none; }
}

@media (min-width: 881px) {
  body:not(.list-view) .agenda { display: none; }
  body.list-view .grid,
  body.list-view .weekdays { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
