/* ============================================================
   InventorPro — Portal Design System (AeroTrack-style layout)
   ============================================================ */

/* Font: system stack only (no external font request) — see --font below */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg:          #f5f6f8;
  --surface:     #ffffff;
  --border:      rgba(0,0,0,.08);
  --border-md:   rgba(0,0,0,.13);
  --text:        #0f1117;
  --text-2:      #374151;
  --muted:       #6b7280;
  --accent:      #1d5ee8;
  --accent-dark: #1448c0;
  --accent-sub:  #eef3fd;
  --accent-ring: rgba(29,94,232,.15);

  /* Semantic */
  --green:       #15803d;
  --green-bg:    #f0fdf4;
  --green-bd:    #bbf7d0;
  --orange:      #c2670a;
  --orange-bg:   #fff7ed;
  --orange-bd:   #fed7aa;
  --red:         #b91c1c;
  --red-bg:      #fef2f2;
  --red-bd:      #fecaca;
  --blue-bg:     #eff6ff;
  --blue-bd:     #bfdbfe;

  /* Spacing & shape */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius:      8px;
  --radius-lg:   8px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 2px 8px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);

  /* Layout */
  --nav-h:       52px;
  --sub-h:       46px;
  --filter-h:    52px;

  --font: -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'Fira Mono', 'Consolas', monospace;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

html, body {
  height: 100%; font-family: var(--font); font-size: 13px;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.22); }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 0;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  letter-spacing: -.2px; margin-right: 18px; flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--text); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 400; display: block; margin-top: 1px; }

.nav-sep { width: 1px; height: 18px; background: var(--border-md); margin: 0 8px; flex-shrink: 0; }

/* Top-level nav links */
.nav-links { display: flex; align-items: center; gap: 1px; flex: 1; min-width: 0; overflow: hidden; }

.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: transparent; border: none; cursor: pointer;
  white-space: nowrap; transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link .ico { font-size: 14px; }
.nav-link.active { background: var(--text); color: #fff; border-radius: 20px; }
.nav-link.active:hover { background: #1a2030; }
.nav-link .chev { font-size: 11px; color: var(--muted); }
.nav-link.active .chev { color: rgba(255,255,255,.5); }

/* Right-side header actions */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* Search input inside nav */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search input {
  height: 32px; width: 220px; padding: 0 10px 0 32px;
  border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  font-size: 12px; background: var(--bg); color: var(--text); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), width var(--transition);
}
.nav-search input:focus { width: 280px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--surface); }
.nav-search input::placeholder { color: var(--muted); }
.nav-search .search-ico { position: absolute; left: 9px; font-size: 14px; color: var(--muted); pointer-events: none; }

/* ============================================================
   SUB NAV
   ============================================================ */
.subnav {
  position: fixed; top: var(--nav-h); inset-inline: 0; z-index: 190;
  height: var(--sub-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 6px;
}

.sub-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition);
}
.sub-btn:hover { color: var(--text); background: var(--bg); }
.sub-btn.active {
  color: var(--text); background: var(--surface);
  border-color: var(--border-md); box-shadow: var(--shadow-sm);
}
.sub-btn .ico { font-size: 14px; }

/* ============================================================
   FILTER / TOOLBAR BAR
   ============================================================ */
.filter-bar {
  position: fixed;
  top: calc(var(--nav-h) + var(--sub-h));
  inset-inline: 0; z-index: 180;
  height: var(--filter-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 8px;
}

.f-input, .f-select {
  height: 32px; padding: 0 10px;
  border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  font-size: 12px; font-family: var(--font);
  color: var(--text); background: var(--surface); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.f-input::placeholder { color: var(--muted); }
.f-input:focus, .f-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.f-select { appearance: none; cursor: pointer; padding-right: 28px; }
.sel-wrap { position: relative; display: flex; align-items: center; }
.sel-wrap .sel-ico { position: absolute; right: 8px; font-size: 12px; color: var(--muted); pointer-events: none; }

/* ============================================================
   PAGE BODY — offset for fixed bars
   ============================================================ */
.page-body {
  padding-top: calc(var(--nav-h) + var(--sub-h) + var(--filter-h));
  min-height: 100vh;
  background: var(--bg);
}

/* For pages with no filter bar */
.page-body.no-filter {
  padding-top: calc(var(--nav-h) + var(--sub-h));
}

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */
.wrap { max-width: 1320px; margin: 0 auto; padding: 20px 20px 32px; }
.wrap-fluid { padding: 20px 20px 32px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; font-family: var(--font);
  border: 1px solid var(--border-md); background: var(--surface);
  color: var(--text-2); cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.btn:hover { background: var(--bg); border-color: var(--border-md); color: var(--text); }
.btn .ico { font-size: 14px; color: var(--muted); }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-primary .ico { color: rgba(255,255,255,.8); }

.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #166534; border-color: #166534; color: #fff; }

.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; color: #fff; }

.btn-sm { padding: 4px 9px; font-size: 11.5px; }
.btn-xs { padding: 2px 7px; font-size: 11px; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); border-color: transparent; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: var(--radius-xs);
  font-size: 11px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--border-md);
  background: var(--bg); color: var(--muted);
}
.badge-green  { background: var(--green-bg);  color: var(--green);  border-color: var(--green-bd); }
.badge-orange { background: var(--orange-bg); color: var(--orange); border-color: var(--orange-bd); }
.badge-red    { background: var(--red-bg);    color: var(--red);    border-color: var(--red-bd); }
.badge-blue   { background: var(--blue-bg);   color: var(--accent); border-color: var(--blue-bd); }
.badge-accent { background: var(--accent);    color: #fff;          border-color: var(--accent); }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title { font-size: 13px; font-weight: 600; color: var(--text); }
.card-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 16px 18px; }

/* ============================================================
   METRIC / STAT CARDS
   ============================================================ */
.metric-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.metric-grid-4 { grid-template-columns: repeat(4, 1fr); }
.metric-grid-3 { grid-template-columns: repeat(3, 1fr); }
.metric-grid-2 { grid-template-columns: repeat(2, 1fr); }

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.metric-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .45px; margin-bottom: 7px; }
.metric-value { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -.5px; line-height: 1; }
.metric-sub { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.metric-card.accent .metric-value { color: var(--accent); }
.metric-card.green  .metric-value { color: var(--green); }
.metric-card.orange .metric-value { color: var(--orange); }
.metric-card.red    .metric-value { color: var(--red); }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data-table thead { background: var(--surface); position: sticky; top: 0; z-index: 5; }
table.data-table thead tr { border-bottom: 1px solid var(--border); }
table.data-table th {
  padding: 9px 14px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .35px;
  white-space: nowrap; user-select: none;
}
table.data-table th.sortable { cursor: pointer; }
table.data-table th.sortable:hover { color: var(--text-2); }
table.data-table td {
  padding: 10px 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border); vertical-align: middle;
  white-space: nowrap;
}
table.data-table tbody tr { cursor: pointer; transition: background var(--transition); }
table.data-table tbody tr:hover td { background: #f8f9fb; }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr.selected td { background: var(--accent-sub); }
table.data-table tbody tr.selected td:first-child { border-left: 2px solid var(--accent); padding-left: 12px; }
.td-link { color: var(--accent); font-weight: 500; cursor: pointer; }
.td-link:hover { text-decoration: underline; }
.td-mono { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.td-dim  { color: var(--muted); }

/* ============================================================
   TABLE FOOTER
   ============================================================ */
.table-footer {
  height: 40px; background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 18px; gap: 8px;
  font-size: 12px; color: var(--muted);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.tf-count { margin-left: auto; font-weight: 500; color: var(--text-2); }
.tf-select {
  height: 26px; padding: 0 22px 0 8px;
  border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  font-size: 12px; font-family: var(--font); color: var(--text);
  background: var(--surface); appearance: none; cursor: pointer; outline: none;
}
.tf-sel-wrap { position: relative; display: flex; align-items: center; }
.tf-sel-wrap .ico { position: absolute; right: 6px; font-size: 11px; color: var(--muted); pointer-events: none; }

/* ============================================================
   SIDE DRAWER / DETAIL PANEL
   ============================================================ */
.drawer {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0; z-index: 300;
  width: 600px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.drawer.open { transform: translateX(0); }

.drawer-bar {
  height: 52px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
}
.drawer-back {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-md); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); flex-shrink: 0;
  transition: all var(--transition);
}
.drawer-back:hover { background: var(--bg); color: var(--text); }
.drawer-back .ico { font-size: 15px; }
.drawer-title { font-size: 13.5px; font-weight: 600; color: var(--text); flex: 1; letter-spacing: -.1px; }
.drawer-actions { display: flex; gap: 6px; }

.drawer-tabs {
  display: flex; padding: 0 18px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.dtab {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 0 9px; margin-right: 18px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.dtab:hover { color: var(--text-2); }
.dtab.active { color: var(--accent); border-bottom-color: var(--accent); }
.dtab .ico { font-size: 13px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px 18px; }

.info-section { margin-bottom: 22px; }
.info-section-title {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.info-row {
  display: grid; grid-template-columns: 145px 1fr;
  padding: 7.5px 0; border-bottom: 1px solid var(--border);
  align-items: baseline; gap: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.info-val { font-size: 12.5px; color: var(--text); line-height: 1.5; }
.info-val.mono { font-family: var(--mono); font-size: 11.5px; }
.info-val.dim  { color: var(--muted); }

.drawer-foot {
  flex-shrink: 0; padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}

/* ============================================================
   PRODUCT GRID (eCommerce / POS)
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { border-color: var(--border-md); box-shadow: var(--shadow); transform: translateY(-1px); }
.product-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.product-media {
  height: 130px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  font-size: 38px;
}
.product-body { padding: 14px 16px 16px; }
.product-brand { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 2px; }
.product-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.product-spec  { font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-bottom: 8px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price  { font-size: 16px; font-weight: 600; color: var(--accent); letter-spacing: -.3px; }

/* ============================================================
   CART / SIDEBAR PANEL
   ============================================================ */
.cart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
  position: sticky; top: calc(var(--nav-h) + var(--sub-h) + var(--filter-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - var(--sub-h) - var(--filter-h) - 56px);
  overflow: hidden;
}
.cart-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.cart-items { flex: 1; overflow-y: auto; }
.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 12px; font-weight: 600; color: var(--text); }
.cart-item-sku  { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.cart-item-price { font-size: 13px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; padding: 0; line-height: 1; }
.cart-remove:hover { color: var(--red); }

.cart-foot { padding: 14px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 3px 0; }
.cart-row.total { font-size: 15px; font-weight: 600; color: var(--text); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-field {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px;
}
.form-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.form-input, .form-select, .form-textarea {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  font-size: 12.5px; font-family: var(--font); color: var(--text);
  background: var(--surface); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { height: auto; padding: 8px 10px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 10px 16px 8px; font-size: 12.5px; font-weight: 500;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  background: #1a2030; color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 12.5px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px);
  transition: all .2s; pointer-events: none; max-width: 340px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.empty-state strong { display: block; color: var(--text-2); font-size: 13.5px; margin-bottom: 5px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.split-layout { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

/* ============================================================
   APPROVAL WARNING STRIP
   ============================================================ */
.approval-warning {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--orange-bg); border: 1px solid var(--orange-bd);
  color: var(--orange); font-size: 12px; font-weight: 500;
  margin-bottom: 10px;
}
.approval-warning .ico { font-size: 14px; }

/* ============================================================
   TOPLINE BANNER
   ============================================================ */
.topline {
  background: #1a2030; color: rgba(255,255,255,.65);
  font-size: 11.5px;
}
.topline-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  height: 30px; display: flex; align-items: center; justify-content: space-between;
}
.topline a { color: rgba(255,255,255,.9); font-weight: 500; transition: color .12s; }
.topline a:hover { color: #fff; }
.topline-links { display: flex; align-items: center; gap: 12px; }
.topline-links a { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   PAGE SECTION HEADERS
   ============================================================ */
.section-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.section-desc  { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .metric-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split-layout   { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
}
@media (max-width: 768px) {
  .metric-grid-3, .metric-grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
