/* ============================================================================
   Voltech Cloud DB — design tokens (ported from the design handoff voltech.css)
   The legacy `sc-` stock-check styles below historically hardcoded these same
   values; new `vt-` shell/home components reference the tokens. Keep in sync.
   ========================================================================== */
:root {
  /* Render native controls (select option lists, date pickers, scrollbars,
     checkboxes) in dark mode so popups aren't white-on-light. */
  color-scheme: dark;

  /* Surfaces */
  --bg:           #0a0a12;
  --bg-elev:      #101019;
  --bg-card:      #141422;
  --surface:      rgba(255,255,255,0.025);
  --surface-2:    rgba(255,255,255,0.05);
  --surface-3:    rgba(255,255,255,0.08);

  --border:        rgba(255,255,255,0.08);
  --border-soft:   rgba(255,255,255,0.05);
  --border-strong: rgba(255,255,255,0.14);

  /* Text */
  --text:    #e6e6f2;
  --text-2:  #9a9ab8;
  --text-3:  #6a6a8a;
  --text-4:  #4a4a6a;

  /* Brand + semantic */
  --amber:        #f59e0b;
  --amber-bright: #fbbf24;
  --amber-dim:    rgba(245,158,11,0.13);
  --green:  #4ade80;
  --blue:   #60a5fa;
  --purple: #c084fc;
  --cyan:   #38bdf8;
  --pink:   #f472b6;
  --orange: #fb923c;
  --red:    #f87171;

  /* Module signatures */
  --m-stock:  #f59e0b;
  --m-wo:     #4ade80;
  --m-sprint: #60a5fa;
  --m-org:    #c084fc;
  --m-audit:  #38bdf8;
  --m-orders: #fb5577;
  --m-psc:    #2dd4bf;
  --m-reports: #2dd4bf;

  /* Type */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, monospace;

  /* Radius + shadow */
  --r-sm: 7px;  --r-md: 11px;  --r-lg: 16px;  --r-xl: 22px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 50px rgba(0,0,0,0.35);
  --shadow-pop:  0 24px 70px rgba(0,0,0,0.6);
  --glow-amber:  0 0 0 1px rgba(245,158,11,0.25), 0 14px 44px rgba(245,158,11,0.18);

  --maxw: 1280px;

  /* App shell — sidebar widths (expanded / collapsed rail) */
  --vt-sb-w: 264px;
  --vt-sb-wc: 74px;
}

/* Native <select> option lists render their own popup — pin it to an opaque
   dark surface with light text so it's readable (a translucent select
   background otherwise composites to near-white when the list opens). */
option { background-color: #141422; color: #e6e6f2; }

/* ── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) { html { font-size: 16px; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  margin-bottom: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes scFadeIn    { from { opacity: 0; }                              to { opacity: 1; } }
@keyframes scFadeDown  { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scFadeUp    { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scSlideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scSpin      { from { transform: rotate(0deg); }                 to { transform: rotate(360deg); } }

/* ── Top bar ─────────────────────────────────────────────────────────────────── */
.sc-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  background: rgba(10,10,18,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 200;
}

.sc-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.sc-topbar-brand .sc-bolt { font-size: 20px; }
.sc-topbar-brand .sc-name { font-size: 15px; font-weight: 800; color: #f0f0f8; letter-spacing: -0.02em; }
.sc-topbar-brand .sc-divider { font-size: 11px; color: rgba(255,255,255,0.2); margin: 0 2px; }
.sc-topbar-brand .sc-module { font-size: 13px; color: #5a5a7a; font-weight: 500; }

.sc-nav { display: flex; gap: 2px; }
.sc-nav-link {
  padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  text-decoration: none; color: #6a6a8a; transition: all 0.15s; letter-spacing: 0.02em;
}
.sc-nav-link:hover { color: #a0a0c8; background: rgba(255,255,255,0.05); }
.sc-nav-link.active { color: #e2e2f0; background: rgba(255,255,255,0.08); }

.sc-site-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
}
.sc-site-btn {
  padding: 4px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.sc-site-btn.active {
  background: #f59e0b;
  color: #0a0a12;
}
.sc-site-btn:not(.active) {
  background: transparent;
  color: #6a6a8a;
}

.sc-topbar-spacer { flex: 1; }

.sc-username { font-size: 13px; color: #5a5a7a; }

.sc-signout-btn {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #5a5a7a;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.sc-signout-btn:hover { border-color: rgba(255,255,255,0.2); color: #9a9ab8; }

/* ── Page content ────────────────────────────────────────────────────────────── */
.sc-page { padding: 28px 32px; max-width: 1520px; margin: 0 auto; width: 100%; }

/* ── Search ──────────────────────────────────────────────────────────────────── */
.sc-search-wrap { position: relative; margin-bottom: 16px; }
.sc-search-input-wrap { position: relative; }

.sc-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #4a4a6a;
  pointer-events: none;
}
.sc-search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  color: #4a4a6a;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-family: monospace;
}

#partSearch {
  width: 100%;
  padding: 13px 48px 13px 44px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  color: #e2e2f0;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
#partSearch:focus, #partSearch.open {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
#partSearch::placeholder { color: #4a4a6a; }

#searchDropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0; right: 0;
  background: #141422;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 300;
  display: none;
  animation: scFadeDown 0.15s ease;
}
/* Part header row — not selectable */
.sc-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.035);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  user-select: none;
}
.sc-dropdown-partno {
  font-family: monospace;
  font-weight: 800;
  font-size: 13px;
  color: #d0d0e8;
  min-width: 148px;
  flex-shrink: 0;
}
.sc-dropdown-desc {
  font-size: 13px;
  color: #5a5a7a;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Revision rows — selectable */
.sc-dropdown-rev-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 34px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.1s;
}
.sc-dropdown-rev-row:last-child { border-bottom: none; }
.sc-dropdown-rev-row.highlighted { background: rgba(245,158,11,0.09); }
.sc-dropdown-rev-row.highlighted .sc-dropdown-rev-label { color: #e2e2f0; }

.sc-dropdown-arrow { font-size: 11px; color: #3a3a58; flex-shrink: 0; }

.sc-dropdown-rev-label {
  font-family: monospace;
  font-size: 13px;
  font-weight: 400;
  color: #5a5a7a;
}
.sc-dropdown-rev-label.latest { font-weight: 600; color: #9a9ab8; }

.sc-latest-badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  letter-spacing: 0.06em;
}

/* ── Category badge ──────────────────────────────────────────────────────────── */
.cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.cat-badge.sm { padding: 1px 6px; font-size: 10px; }

.cat-Assembly    { color: #fbbf24; background: rgba(251,191,36,0.14);  border: 1px solid rgba(251,191,36,0.3); }
.cat-Electronics { color: #60a5fa; background: rgba(96,165,250,0.14);  border: 1px solid rgba(96,165,250,0.3); }
.cat-Power       { color: #c084fc; background: rgba(192,132,252,0.14); border: 1px solid rgba(192,132,252,0.3); }
.cat-Mechanical  { color: #34d399; background: rgba(52,211,153,0.14);  border: 1px solid rgba(52,211,153,0.3); }
.cat-Connectors  { color: #fb923c; background: rgba(251,146,60,0.14);  border: 1px solid rgba(251,146,60,0.3); }
.cat-Cooling     { color: #38bdf8; background: rgba(56,189,248,0.14);  border: 1px solid rgba(56,189,248,0.3); }
.cat-Displays    { color: #f472b6; background: rgba(244,114,182,0.14); border: 1px solid rgba(244,114,182,0.3); }
.cat-default     { color: #9ca3af; background: rgba(156,163,175,0.14); border: 1px solid rgba(156,163,175,0.3); }

/* ── Assembly card ───────────────────────────────────────────────────────────── */
.sc-assy-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  animation: scFadeIn 0.2s ease;
  display: none;
}
.sc-assy-card.visible { display: block; }

.sc-assy-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sc-assy-partno { font-family: monospace; font-weight: 800; font-size: 17px; color: #f0f0f8; letter-spacing: 0.02em; }
.sc-assy-rev {
  font-size: 11px; color: #5a5a7a; font-family: monospace;
  background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 6px;
}
.sc-assy-desc { font-size: 14px; color: #8a8aaa; flex: 1; }

.sc-assy-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sc-metric-label {
  font-size: 11px;
  color: #4a4a6a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 4px;
}
.sc-stock-value { font-size: 26px; font-weight: 800; color: #e2e2f0; font-family: monospace; }

.sc-vdivider { width: 1px; height: 44px; background: rgba(255,255,255,0.07); }

.sc-qty-row { display: flex; align-items: center; gap: 8px; }
.sc-qty-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #c0c0d8; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.sc-qty-btn:hover { background: rgba(255,255,255,0.1); }

#txtQtyReq {
  width: 72px; padding: 6px 8px; text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 9px; color: #e2e2f0; font-size: 17px;
  font-family: monospace; font-weight: 700; outline: none;
}

.sc-presets { display: flex; gap: 4px; margin-top: 8px; }
.sc-preset-btn {
  padding: 2px 10px; border-radius: 6px; cursor: pointer;
  font-size: 11px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.09);
  background: transparent; color: #4a4a6a;
  transition: all 0.15s;
}
.sc-preset-btn.active {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
}

.sc-run-btn {
  padding: 13px 32px;
  background: #f59e0b;
  border: none; border-radius: 11px; cursor: pointer;
  color: #0a0a12; font-size: 14px; font-weight: 800; letter-spacing: 0.01em;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 28px rgba(245,158,11,0.35);
  margin-left: auto;
}
.sc-run-btn:hover { background: #fbbf24; }
.sc-run-btn:disabled { background: rgba(245,158,11,0.4); box-shadow: none; cursor: default; }

/* ── Metric cards (results header) ──────────────────────────────────────────── */
.sc-metrics { display: flex; align-items: stretch; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.sc-metric-card {
  flex: 1;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  min-width: 140px;
}
.sc-metric-card.success { background: rgba(74,222,128,0.05); border-color: rgba(74,222,128,0.2); }
.sc-metric-card.warning { background: rgba(249,115,22,0.05); border-color: rgba(249,115,22,0.2); }
.sc-metric-card.danger  { background: rgba(248,113,113,0.05); border-color: rgba(248,113,113,0.2); }

.sc-metric-value {
  font-size: 36px; font-weight: 900; font-family: monospace;
  letter-spacing: -0.03em; line-height: 1;
  color: #e2e2f0;
}
.sc-metric-card.success .sc-metric-value { color: #4ade80; }
.sc-metric-card.warning .sc-metric-value { color: #fb923c; }
.sc-metric-card.danger  .sc-metric-value { color: #f87171; }

.sc-metric-sub { font-size: 12px; color: #5a5a7a; margin-top: 6px; }
.sc-metric-card.success .sc-metric-sub { color: rgba(74,222,128,0.7); }
.sc-metric-card.warning .sc-metric-sub { color: rgba(249,115,22,0.7); }
.sc-metric-card.danger  .sc-metric-sub { color: rgba(248,113,113,0.7); }

.sc-export-wrap { display: flex; align-items: center; justify-content: flex-end; flex: 1; min-width: 120px; }
.sc-export-btn {
  padding: 9px 18px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #7a7a9a;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.sc-export-btn:hover { border-color: rgba(255,255,255,0.2); color: #9a9ab8; }

.sc-wo-btn {
  padding: 9px 18px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 700;
  border: 1px solid rgba(74,222,128,0.35);
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
  margin-right: 8px;
  box-shadow: 0 0 12px rgba(74,222,128,0.08);
}
.sc-wo-btn:hover {
  background: rgba(74,222,128,0.2);
  border-color: rgba(74,222,128,0.55);
  box-shadow: 0 0 20px rgba(74,222,128,0.18);
  color: #6eefab;
}

/* ── BOM table ───────────────────────────────────────────────────────────────── */
.sc-bom-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  animation: scFadeIn 0.3s ease;
}

.sc-bom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sc-bom-title { font-size: 13px; font-weight: 700; color: #c0c0d8; }
.sc-bom-badges { display: flex; gap: 8px; }

.sc-shortage-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: rgba(248,113,113,0.13);
  border: 1px solid rgba(248,113,113,0.28);
  color: #f87171;
}
.sc-count-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.07);
  color: #7a7a9a;
}

#bomTable {
  width: 100%;
  border-collapse: collapse;
}
#bomTable thead th {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #4a4a6a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
  background: rgba(0,0,0,0.2);
}
#bomTable tbody td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
#bomTable.compact tbody td { padding: 6px 12px; font-size: 12px; }

#bomTable tbody tr { transition: background 0.1s; }
#bomTable tbody tr.sc-row-shortage { background: rgba(248,113,113,0.05); border-left: 2px solid rgba(248,113,113,0.5); }
#bomTable tbody tr.sc-row-ok      { border-left: 2px solid rgba(74,222,128,0.3); }
#bomTable tbody tr.sc-row-alt     { background: rgba(255,255,255,0.008); border-left: 2px solid transparent; }
#bomTable tbody tr.sc-row-alt td  { font-size: 12px; }

.sc-toggle-btn {
  width: 17px; height: 17px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.13);
  background: transparent; color: #5a5a7a;
  font-size: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sc-alt-arrow { font-size: 10px; color: #4a4a6a; }

.sc-alt-badge {
  font-size: 9px; padding: 1px 5px; border-radius: 4px;
  background: rgba(255,255,255,0.07); color: #5a5a7a; font-weight: 600;
}
.sc-partno-base  { font-family: monospace; font-weight: 700; font-size: 13px; color: #e2e2f0; }
.sc-partno-alt   { font-family: monospace; font-weight: 400; font-size: 12px; color: #7a7a9a; }

/* ── Stock bar ───────────────────────────────────────────────────────────────── */
.sc-stockbar-wrap { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.sc-stockbar-track {
  flex: 1; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.07); overflow: hidden;
  display: flex;
}
.sc-stockbar-base  { height: 100%; transition: width 0.5s ease; }
.sc-stockbar-alt   { height: 100%; background: #facc15; transition: width 0.5s ease; }
.sc-stockbar-label {
  font-size: 11px; font-family: monospace; font-weight: 600;
  min-width: 32px; text-align: right;
}
.sc-stockbar-label.ok      { color: #4ade80; }
.sc-stockbar-label.shortage { color: #f87171; }

/* ── Shortage cell ───────────────────────────────────────────────────────────── */
.sc-shortage-ok  { font-family: monospace; font-weight: 700; font-size: 14px; color: #4ade80; }
.sc-shortage-bad { font-family: monospace; font-weight: 700; font-size: 14px; color: #f87171; }

/* ── Empty/loading states ────────────────────────────────────────────────────── */
.sc-empty {
  text-align: center; padding: 80px 32px;
  animation: scFadeIn 0.4s ease;
}
.sc-empty-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.18; }
.sc-empty-text { font-size: 15px; color: #7a7a9a; margin-bottom: 6px; }
.sc-empty-hint { font-size: 13px; color: #4a4a6a; }
.sc-empty-hint kbd {
  padding: 2px 8px; border-radius: 5px; font-size: 11px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: #6a6a8a;
}

.sc-loading {
  text-align: center; padding: 56px 32px; color: #4a4a6a;
  animation: scFadeIn 0.2s ease;
  display: none;
}
.sc-loading-gear { font-size: 28px; animation: scSpin 1.2s linear infinite; display: inline-block; margin-bottom: 10px; }

.sc-results { animation: scFadeUp 0.3s ease; display: none; }
.sc-results.visible { display: block; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer { display: none; }
/* ── History chips ─────────────────────────────────────────────────────────── */
.sc-history-label {
  font-size: 11px; color: #3a3a5a; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.sc-history-chip {
  padding: 4px 12px; border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: #7a7a9a;
  font-family: monospace;
  display: flex; align-items: center; gap: 5px;
  transition: all 0.15s;
}
.sc-history-chip:hover { border-color: rgba(255,255,255,0.2); color: #9a9ab8; }
.sc-history-partno { color: #9a9ab8; }
.sc-history-rev    { color: #4a4a6a; font-weight: 400; }

/* ── Lead time in dropdown ─────────────────────────────────────────────────── */
.sc-dropdown-leadtime {
  margin-left: auto; font-size: 11px; color: #4a4a6a;
  font-family: monospace; white-space: nowrap;
}

/* ── Shortage banner ────────────────────────────────────────────────────────── */
.sc-shortage-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 12px;
  background: rgba(251,146,60,0.08);
  border: 1px solid rgba(251,146,60,0.22);
  border-radius: 10px;
  animation: scFadeIn 0.3s ease;
}
.sc-banner-dot  { color: rgba(251,146,60,0.4); font-size: 14px; }
.sc-banner-text { font-size: 13px; color: #fed7aa; font-weight: 400; }
.sc-banner-text.bold { font-weight: 600; }

/* ── Cross-site bubble ──────────────────────────────────────────────────────── */
.sc-crosssite-dot {
  position: relative; display: inline-flex; align-items: center;
  margin-left: 6px; cursor: default;
}
.sc-crosssite-dot::before {
  content: ;
  width: 7px; height: 7px; border-radius: 50%;
  background: #60a5fa; display: inline-block;
  box-shadow: 0 0 6px rgba(96,165,250,0.55);
}
.sc-crosssite-bubble {
  position: absolute; right: calc(100% + 9px); top: 50%;
  transform: translateY(-50%);
  background: #151d30;
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 9px; padding: 7px 12px;
  font-size: 12px; color: #93c5fd; font-weight: 600;
  white-space: nowrap; z-index: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  pointer-events: none; letter-spacing: 0.01em;
  display: none;
}
/* Arrow pointing right toward the dot */
.sc-crosssite-bubble::after {
  content: ;
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 5px solid rgba(96,165,250,0.35);
}
.sc-crosssite-dot:hover .sc-crosssite-bubble { display: block; }

/* ── Lead time column ───────────────────────────────────────────────────────── */
.sc-leadtime      { font-family: monospace; font-size: 12px; color: #6a6a8a; }
.sc-leadtime.long { font-weight: 700; color: #fb923c; }

/* ── Store breakdown expansion ──────────────────────────────────────────────── */
#bomTable tbody tr.sc-row-expanded { background: rgba(245,158,11,0.04) !important; }

.sc-row-expand td { padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sc-expand-cell {
  padding: 0 !important;
}
.sc-stores-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 10px 44px; flex-wrap: wrap;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.sc-stores-lbl {
  font-size: 10px; color: #4a4a6a; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-right: 4px; flex-shrink: 0;
}
.sc-stores-loading { font-size: 12px; color: #4a4a6a; }
.sc-stores-empty   { font-size: 12px; color: #4a4a6a; font-style: italic; }

.sc-store-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 7px;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
}
.sc-store-icon { font-size: 12px; }
.sc-store-name { color: #8a8aaa; }
.sc-store-qty  { font-family: monospace; font-weight: 700; color: #c8c8e0; }

/* ── BOM table description cell ─────────────────────────────────────────────── */
.sc-td-desc {
  color: #7a7a9a;
  max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================================
   Voltech Cloud DB — unified shell (vt-) components
   Ported from the design handoff. Used by _Layout, the Home launchpad and the
   sign-in page. Token-driven so the whole platform shares one visual language.
   ========================================================================== */

::selection { background: rgba(245,158,11,0.3); color: #fff; }

/* Ambient grid + glow shared by full-bleed pages */
.vt-bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 75%);
}
.vt-bg-glow {
  position: fixed; top: -340px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.10) 0%, transparent 60%);
  filter: blur(20px);
}

/* Brand lockup — official Voltech wordmark (white PNG) + "Cloud DB" descriptor */
.vt-brand { display: inline-flex; align-items: center; gap: 12px; }
.vt-logo { height: 21px; width: auto; display: block; }
.vt-logo.lg { height: 30px; }
.vt-brand-div { width: 1px; height: 19px; background: var(--border-strong); }
.vt-brand-div.lg { height: 26px; }
.vt-brand-sub {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.vt-brand-sub b { color: var(--amber); font-weight: 700; }
.vt-brand-sub.lg { font-size: 13px; letter-spacing: .24em; }

/* App shell — main header (sits above the page content, right of the sidebar).
   Stays 58px tall: island CSS positions with calc(100vh - 58px) / top:58px. */
.vt-topbar {
  position: sticky; top: 0; z-index: 200;
  height: 58px; display: flex; align-items: center; gap: 13px;
  padding: 0 22px;
  background: rgba(10,10,18,0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.vt-rail-toggle {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-2);
  cursor: pointer; display: grid; place-items: center; transition: .15s;
}
.vt-rail-toggle:hover { background: var(--surface-2); color: var(--text); }
.vt-rail-chev { width: 16px; height: 16px; transition: transform .2s; }
.vt-collapsed .vt-rail-chev { transform: rotate(180deg); }
.vt-bc-sep { color: #3a3a58; }
.vt-bc-name { font-size: 14px; font-weight: 700; color: var(--text); }
.vt-topnav { display: flex; align-items: center; gap: 2px; }
.vt-navlink {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--text-3);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.vt-navlink .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.vt-navlink:hover { color: var(--text-2); background: var(--surface-2); }
.vt-navlink.active { color: var(--text); background: var(--surface-3); }
button.vt-navlink { font: inherit; background: none; border: none; cursor: pointer; }

/* Nav dropdown (module sub-menu) */
.vt-navitem { position: relative; display: flex; align-items: center; }
.vt-caret { width: 13px; height: 13px; opacity: .5; transition: transform .16s, opacity .16s; }
.vt-navitem:hover .vt-caret, .vt-navitem.open .vt-caret { opacity: .9; }
.vt-navitem.open .vt-caret { transform: rotate(180deg); }
.vt-submenu {
  position: absolute; top: calc(100% + 10px); left: -6px; min-width: 256px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); padding: 7px; z-index: 320;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transform-origin: top left;
  pointer-events: none;
}
.vt-navitem:hover .vt-submenu, .vt-navitem.open .vt-submenu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.vt-submenu::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 12px; }
.vt-sub-label {
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-4); padding: 6px 11px 7px; display: flex; align-items: center; gap: 8px;
}
.vt-sub-label .gdot { width: 6px; height: 6px; border-radius: 50%; background: var(--m-sprint); }
.vt-submenu a { display: flex; align-items: flex-start; gap: 11px; padding: 8px 11px; border-radius: var(--r-sm); text-decoration: none; }
.vt-submenu a:hover { background: var(--surface-2); }
.vt-sub-ico {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center;
  color: var(--m-sprint); background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.22);
}
.vt-sub-ico svg { width: 15px; height: 15px; }
.vt-sub-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.vt-sub-title { font-size: 13px; font-weight: 600; color: var(--text); }
.vt-sub-desc { font-size: 11.5px; color: var(--text-4); }
.vt-spacer { flex: 1; }

/* Site toggle (US / UK) */
.vt-sites { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.vt-site {
  padding: 4px 13px; border-radius: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; color: var(--text-3); cursor: pointer; transition: .15s;
  text-decoration: none; display: inline-block;
}
.vt-site.active { background: var(--amber); color: #0a0a12; }
.vt-site:not(.active):hover { color: var(--text-2); }

.vt-user { display: flex; align-items: center; gap: 10px; }
.vt-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #0a0a12;
  background: linear-gradient(150deg, var(--amber-bright), var(--amber));
}
.vt-user-name { font-size: 13px; color: var(--text-2); font-weight: 500; white-space: nowrap; text-align: right; }
.vt-user-name small { display: block; font-size: 11px; color: var(--text-4); font-weight: 600; white-space: nowrap; }
.vt-signout {
  padding: 6px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: transparent; color: var(--text-3);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: .18s;
}
.vt-signout:hover { border-color: var(--border-strong); color: var(--text-2); }

/* ============================================================================
   App shell — grouped sidebar + command palette (Navigation Redesign · Dir. D)
   The sidebar is fixed-left; the page content (host <main>/#root) is pushed right
   by `body.vt-shell`. Collapsing toggles `.vt-collapsed` on <body>.
   ========================================================================== */

/* content offset — `vt-shell` is added to <body> by the shell partial */
body.vt-shell { padding-left: var(--vt-sb-w); transition: padding-left .2s ease; }
body.vt-shell.vt-collapsed { padding-left: var(--vt-sb-wc); }

/* sidebar shell */
.vt-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--vt-sb-w); z-index: 210;
  display: flex; flex-direction: column;
  background: #0c0c16; border-right: 1px solid var(--border);
  transition: width .2s ease;
}
.vt-collapsed .vt-side { width: var(--vt-sb-wc); }

/* brand */
.vt-side-brand { flex: none; display: flex; align-items: center; gap: 10px; padding: 18px 16px 13px; text-decoration: none; }
.vt-collapsed .vt-side-brand { justify-content: center; padding: 18px 0 13px; }
.vt-side-logo-img { height: 20px; width: auto; display: block; }
.vt-side-brandsub { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.vt-collapsed .vt-side-logo-img { height: 17px; max-width: 100%; }
.vt-collapsed .vt-brand-div, .vt-collapsed .vt-side-brandsub { display: none; }

/* command trigger */
.vt-side-search {
  flex: none; margin: 0 12px 12px; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border-strong); color: var(--text-3); cursor: text;
  font: inherit; text-align: left; transition: border-color .15s, background .15s;
}
.vt-side-search:hover { border-color: rgba(245,158,11,0.4); background: var(--surface-3); }
.vt-side-search-ico { flex: none; width: 15px; height: 15px; }
.vt-side-search-txt { font-size: 13px; flex: 1; }
.vt-collapsed .vt-side-search { justify-content: center; margin: 0 0 12px; padding: 9px 0; }
.vt-collapsed .vt-side-search-txt, .vt-collapsed .vt-side-search-kbd { display: none; }
.vt-kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--border-strong); color: var(--text-3); }

/* scroll area */
.vt-side-scroll { flex: 1; overflow-y: auto; padding: 0 12px 16px; }

/* bottom-pinned footer link (developer API reference) */
.vt-side-foot { flex: none; border-top: 1px solid var(--border); padding: 8px 12px; }
.vt-foot-link { display: flex; align-items: center; gap: 11px; border-radius: 9px; padding: 8px 11px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text-3); border: 1px solid transparent; }
.vt-foot-link:hover { background: var(--surface-2); color: var(--text); }
.vt-foot-ico { flex: none; display: inline-flex; width: 18px; height: 18px; }
.vt-foot-ico svg { width: 16px; height: 16px; }
.vt-foot-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-collapsed .vt-side-foot { padding: 8px 0; }
.vt-collapsed .vt-foot-link { justify-content: center; padding: 8px 0; }
.vt-collapsed .vt-foot-name { display: none; }

/* pinned group */
.vt-pin-hdr { display: flex; align-items: center; gap: 7px; padding: 8px 9px 6px; }
.vt-pin-hdr svg { width: 12px; height: 12px; }
.vt-pin-hdr span { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a8aaa; }
.vt-pin-list { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.vt-collapsed .vt-pin-hdr { display: none; }

/* section header */
.vt-sec-hdr {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 15px 9px 6px; background: none; border: none; cursor: pointer; font: inherit;
}
.vt-sec-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-4); }
.vt-sec-spacer { flex: 1; }
.vt-sec-count { font-family: var(--font-mono); font-size: 10px; color: #3a3a5a; }
.vt-sec-caret { width: 11px; height: 11px; color: var(--text-4); transition: transform .15s; }
.vt-sec.collapsed .vt-sec-caret { transform: rotate(-90deg); }
.vt-sec-items { display: flex; flex-direction: column; gap: 3px; }
.vt-sec.collapsed .vt-sec-items { display: none; }
.vt-collapsed .vt-sec-hdr { display: none; }
.vt-collapsed .vt-sec.collapsed .vt-sec-items { display: flex; } /* rail: always show tiles */

/* module row */
.vt-mod {
  display: flex; align-items: center; gap: 11px; border-radius: 9px; padding: 7px 11px;
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid transparent; cursor: pointer;
}
.vt-mod:hover { background: var(--surface-2); }
.vt-mod.active { background: var(--amber-dim); border-color: rgba(245,158,11,0.24); color: var(--amber-bright); font-weight: 700; }
.vt-mod-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.vt-mod-tile { display: none; flex: none; width: 36px; height: 36px; border-radius: 10px; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 800; border: 1px solid transparent; }
.vt-mod-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-mod-pin { flex: none; display: inline-flex; cursor: pointer; opacity: 0; color: var(--text-4); transition: opacity .12s, color .12s; }
.vt-mod-pin svg { width: 14px; height: 14px; }
.vt-mod:hover .vt-mod-pin { opacity: .8; }
.vt-mod-pin:hover { color: var(--amber); }
.vt-mod-pin.is-pinned { opacity: 1; color: var(--amber); }
.vt-mod-pin.is-pinned svg { fill: var(--amber); }

/* collapsed (rail): center rows, show colour tile, hide dot/name/pin */
.vt-collapsed .vt-mod { justify-content: center; padding: 5px; gap: 0; background: transparent !important; border-color: transparent !important; }
.vt-collapsed .vt-mod-dot, .vt-collapsed .vt-mod-name, .vt-collapsed .vt-mod-pin { display: none; }
.vt-collapsed .vt-mod-tile { display: grid; }

/* pinned rows: drag to reorder */
.vt-pin-list .vt-mod { cursor: grab; }
.vt-pin-list .vt-mod.dragging { opacity: .45; }

/* command palette */
.vt-pal { position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-start; justify-content: center; padding-top: 13vh; background: rgba(6,6,12,0.66); }
.vt-pal.open { display: flex; }
.vt-pal-box { width: 600px; max-width: 92%; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 15px; box-shadow: var(--shadow-pop); overflow: hidden; }
.vt-pal-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.vt-pal-head svg { flex: none; width: 18px; height: 18px; }
.vt-pal-head input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.vt-pal-list { padding: 8px; max-height: 54vh; overflow-y: auto; }
.vt-pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 9px; cursor: pointer; text-decoration: none; }
.vt-pal-item.active { background: var(--surface-2); }
.vt-pal-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.vt-pal-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.vt-pal-sec { margin-left: auto; font-size: 12px; color: var(--text-3); }
.vt-pal-empty { padding: 22px 14px; text-align: center; font-size: 13.5px; color: var(--text-3); }

/* keep the page usable on narrow viewports — collapse the rail to icons */
@media (max-width: 720px) {
  body.vt-shell { padding-left: var(--vt-sb-wc); }
  .vt-side { width: var(--vt-sb-wc); }
  .vt-brand-div, .vt-side-brandsub, .vt-side-search-txt, .vt-side-search-kbd,
  .vt-sec-hdr, .vt-pin-hdr, .vt-mod-dot, .vt-mod-name, .vt-mod-pin, .vt-foot-name { display: none; }
  .vt-foot-link { justify-content: center; padding: 8px 0; }
  .vt-side-logo-img { height: 17px; max-width: 100%; }
  .vt-side-brand { justify-content: center; padding: 16px 0 12px; }
  .vt-side-search { justify-content: center; margin: 0 0 12px; padding: 9px 0; }
  .vt-mod { justify-content: center; padding: 5px; gap: 0; background: transparent; border-color: transparent; }
  .vt-mod-tile { display: grid; }
  .vt-user-name { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--amber); color: #0a0a12; box-shadow: 0 6px 26px rgba(245,158,11,0.3); }
.btn-primary:hover { background: var(--amber-bright); }
.btn-ghost { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-3); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: var(--r-sm); }

/* Generic card + pills */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2);
}
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.mono { font-family: var(--font-mono); }

/* Footer + shared content width */
.vt-page { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; width: 100%; }
.vt-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); margin-top: 80px;
  padding: 34px 26px; display: flex; align-items: center; gap: 18px;
  max-width: var(--maxw); margin-left: auto; margin-right: auto; flex-wrap: wrap;
}
.vt-footer .muted { color: var(--text-4); font-size: 12.5px; text-decoration: none; }
.vt-footer a.muted:hover { color: var(--text-2); }

/* Search results (shared: home global search) */
.sr-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
.sr-item.active { background: var(--surface-2); }
.sr-ico { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sr-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sr-title { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: 12px; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-4); white-space: nowrap; }
.sr-empty { padding: 16px 14px; font-size: 13px; color: var(--text-3); text-align: center; line-height: 1.5; }
.sr-empty b { color: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: vtUp .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes vtUp { from { transform: translateY(12px); } to { transform: none; } }
}

/* ============================================================================
   Home launchpad (Views/Home/Index.cshtml)
   ========================================================================== */
.hero { position: relative; z-index: 100; padding: 64px 0 30px; }
.hero .vt-page { display: flex; flex-direction: column; gap: 22px; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero h1 {
  margin: 0; font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  color: #f4f4fb; text-wrap: pretty;
}
.hero h1 b { color: var(--amber); }
.hero .lede { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 600px; text-wrap: pretty; }
.greeting { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.greeting .pill.ok .pdot { background: var(--green); box-shadow: 0 0 8px var(--green); }

.hero-search {
  display: flex; align-items: center; gap: 12px; flex: 1 1 440px; min-width: 280px; max-width: 720px;
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text-3); font-size: 14.5px; cursor: text; transition: .18s; position: relative;
}
.hero-search:hover { border-color: var(--border-strong); }
.hero-search:focus-within { border-color: rgba(245,158,11,.55); box-shadow: 0 0 0 3px rgba(245,158,11,.1); }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font: inherit; font-size: 14.5px; }
.hero-search input::placeholder { color: var(--text-3); }
.hero-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-search .kbd { margin-left: auto; font-family: var(--font-mono); font-size: 11px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); }
.hero-results { position: absolute; top: calc(100% + 9px); left: 0; width: 470px; max-width: 86vw; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 7px; max-height: 62vh; overflow-y: auto; z-index: 250; display: none; }
.hero-results.open { display: block; }

.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 48px 0 18px; }
.sec-head h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.sec-head .count { font-size: 12px; color: var(--text-4); font-family: var(--font-mono); }

/* ── Home dashboard embed (the company/personal board shown on the landing page) ── */
.hd-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font: 600 13px var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; align-self: center; }
.hd-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-3); }
.hd-btn:disabled { opacity: .6; cursor: default; }
.hd-btn svg { flex: none; }
.hd-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hd-pick { position: relative; align-self: center; }
.hd-pick-btn { max-width: 320px; }
.hd-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-sub { font-size: 13px; color: var(--text-3); margin: -8px 0 0; }
.hd-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 268px; max-height: 64vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; }
.hd-menu-lbl { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); padding: 9px 10px 4px; }
.hd-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; background: none; border: none; cursor: pointer; color: var(--text-2); font: 500 13px var(--font-sans); }
.hd-opt:hover { background: var(--surface-2); color: var(--text); }
.hd-opt.active { color: var(--text); }
.hd-opt-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hd-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-opt-check { color: var(--amber); display: inline-flex; }
.hd-empty { text-align: center; padding: 46px 20px; color: var(--text-2); background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: 16px; }
.hd-empty-ico { color: var(--text-4); display: flex; justify-content: center; margin-bottom: 12px; }
.hd-empty-t { font-size: 15px; font-weight: 700; color: var(--text); }
.hd-empty-d { font-size: 13.5px; color: var(--text-3); margin-top: 5px; }
.hd-empty .hd-btn { display: inline-flex; }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }

.mod {
  --c: var(--amber);
  position: relative; display: flex; flex-direction: column; gap: 15px; overflow: hidden;
  padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); transition: transform .2s, border-color .2s, background .2s;
  text-decoration: none;
}
.mod::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--c); opacity: 0; transition: opacity .2s;
}
.mod::after {
  content: ""; position: absolute; top: -60px; right: -40px; width: 200px; height: 160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.mod:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); background: rgba(255,255,255,0.035); }
.mod:hover::before, .mod:hover::after { opacity: 1; }

.mod-icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.mod-icon svg { width: 25px; height: 25px; }
.mod-body { flex: 1; min-width: 0; }
.mod-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.mod h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #f0f0f8; }
.mod p { margin: 0 0 14px; min-height: 38px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.mod .caps { display: flex; flex-wrap: wrap; gap: 7px; }
.mod .cap {
  font-size: 12px; color: var(--text-3); padding: 4px 10px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.mod-arrow { position: absolute; top: 22px; right: 22px; color: var(--text-4); transition: transform .2s, color .2s; }
.mod:hover .mod-arrow { color: var(--c); transform: translate(3px, -3px); }

.mod-ghost {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 9px; padding: 22px; border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong); color: var(--text-4);
}
.mod-ghost svg { width: 22px; height: 22px; opacity: .7; }
.mod-ghost b { color: var(--text-3); font-size: 13.5px; font-weight: 700; }
.mod-ghost span { font-size: 12px; line-height: 1.5; max-width: 190px; }

.dev {
  position: relative; overflow: hidden; margin-top: 16px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  padding: 30px 32px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(96,165,250,0.06), rgba(20,20,34,0.4));
  border: 1px solid var(--border);
}
@media (max-width: 880px) { .dev { grid-template-columns: 1fr; } }
.dev h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; color: #f0f0f8; letter-spacing: -0.01em; }
.dev p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 460px; }
.dev-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.code-peek {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  background: #0c0c16; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px; overflow: hidden;
}
.code-peek .ln { white-space: pre; }
.c-key { color: #c084fc; } .c-str { color: #4ade80; } .c-mut { color: var(--text-4); } .c-fn { color: var(--blue); } .c-amber { color: var(--amber); }

/* ============================================================================
   Sprints nav — status banner + lifecycle dropdown (Sprint Nav Handoff, Option A)
   ============================================================================ */

/* ── Sprint status banner ─────────────────────────────────────────────────── */
.vt-sprint-status {
  margin: 0 2px 4px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
}
.vt-sprint-status--idle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-4);
}
.vt-sprint-status--active {
  background: rgba(74,222,128,0.07);
  border: 1px solid rgba(74,222,128,0.2);
}
.vt-sprint-status__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.vt-sprint-idle-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.vt-sprint-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: sprintPulse 2s infinite;
}
.vt-sprint-name { font-weight: 700; color: var(--green); font-size: 12px; }
.vt-sprint-days {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-4);
}
.vt-sprint-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.vt-sprint-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 2px;
}

@keyframes sprintPulse {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,0.7); }
  70%  { box-shadow: 0 0 0 5px rgba(74,222,128,0);   }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0);   }
}

/* ── Submenu structural helpers ───────────────────────────────────────────── */
.vt-sub-sep {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 5px 3px;
}
.vt-sub-setup-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 4px 11px 2px;
}

/* ── Active Board item (sprint running) ───────────────────────────────────── */
.vt-submenu a.vt-sub-on {
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: var(--r-sm);
}
.vt-sub-ico--on {
  background: rgba(96,165,250,0.2)  !important;
  border-color: rgba(96,165,250,0.35) !important;
  color: var(--blue) !important;
}
.vt-sub-title--on { color: var(--blue) !important; }

/* ── Setup section — muted Resources icon ─────────────────────────────────── */
.vt-sub-ico--muted {
  background: rgba(255,255,255,0.05)  !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: var(--text-3) !important;
}
.vt-sub-title--muted { color: var(--text-2) !important; }
