@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700;800&display=swap");

/* ════════════════════════════════════════
   SHARED LAYOUT — iDashboard unified shell
   Loaded by all module pages for sidebar,
   topbar, theme system, and mobile responsive.
   ════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  color-scheme: light;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --surface-strong: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink: #1a202c;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --teal: #f15b22;
  --teal-deep: #c74412;
  --teal-soft: #fff1eb;
  --coral: #f15b22;
  --coral-soft: #fff1eb;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --charcoal: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 20px 40px rgba(0,0,0,0.06);
  --sidebar-width: 250px;
  --sidebar-collapsed: 72px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; min-width: 320px; background: var(--bg); }
body { color: var(--ink); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* ── Utilities ── */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dash-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.eyebrow { margin: 0 0 6px; color: var(--teal); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.eyebrow .dash-icon { width: 16px; height: 16px; }
h1 { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 4px; max-width: 900px; }
h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.meta-line { color: var(--muted); font-size: 0.82rem; margin-bottom: 0; }

/* ── Fade-in ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ════════════════════════════════════════
   APP SHELL — sidebar + content grid
   ════════════════════════════════════════ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns var(--transition);
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.app-shell:has(.sidebar.collapsed) {
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr) !important;
}

/* ════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════ */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: #1e293b;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto; overflow-x: hidden;
  z-index: 100;
  width: var(--sidebar-width);
  transition: width var(--transition);
}

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 70px;
}
.brand-logo {
  flex-shrink: 0; width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f15b22, #ff8a50);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(241, 91, 34, 0.35);
}
.brand-mark { color: #fff; font-size: 0.95rem; font-weight: 900; letter-spacing: -0.02em; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-text .eyebrow { color: #f97316; margin-bottom: 2px; font-size: 0.65rem; }
.brand-sub { color: #94a3b8; font-size: 0.68rem; font-weight: 500; white-space: nowrap; }

.sidebar-toggle {
  margin-left: auto; flex-shrink: 0;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: #94a3b8;
  cursor: pointer; transition: all var(--transition);
}
.sidebar-toggle:hover { background: rgba(241, 91, 34, 0.15); color: #f97316; }
.sidebar-toggle .dash-icon { width: 18px; height: 18px; }

.sidebar-nav {
  flex: 1 1 auto; min-height: 0; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-group-label {
  display: block; padding: 14px 10px 6px;
  color: #64748b; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px;
  color: #94a3b8; font-size: 0.85rem; font-weight: 550;
  white-space: nowrap; transition: all var(--transition); position: relative;
}
.nav-item .dash-icon { flex-shrink: 0; width: 18px; height: 18px; opacity: 0.7; transition: opacity var(--transition); }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.nav-item:hover .dash-icon { opacity: 1; }
.nav-item.active { background: rgba(241, 91, 34, 0.12); color: #f97316; }
.nav-item.active .dash-icon { opacity: 1; color: #f97316; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0; background: #f97316;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-children {
  display: grid;
  gap: 2px;
  margin: -2px 0 6px 30px;
  padding-left: 12px;
  border-left: 1px solid rgba(249, 115, 22, 0.45);
}

.nav-child {
  display: flex;
  min-height: 28px;
  align-items: center;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-child:hover,
.nav-child.active {
  color: #f97316;
}

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(2, 8, 23, 0.18);
}

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 38px; padding: 8px 12px;
  border: 1px solid rgba(241, 91, 34, 0.3); border-radius: 8px;
  background: rgba(241, 91, 34, 0.08); color: #f97316;
  font: inherit; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover { background: rgba(241, 91, 34, 0.18); }

.source-meta { color: #64748b; font-size: 0.66rem; margin: 8px 0 0; text-align: center; }

/* ── Collapsed sidebar ── */
.sidebar.collapsed { width: 72px; }
.sidebar.collapsed .brand-text, .sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-children,
.sidebar.collapsed .nav-group-label, .sidebar.collapsed .sidebar-footer,
.sidebar.collapsed .brand-sub { opacity: 0; width: 0; overflow: hidden; white-space: nowrap; }
.sidebar.collapsed .sidebar-brand {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 124px;
  padding: 16px 0 12px;
}
.sidebar.collapsed .brand-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.sidebar.collapsed .sidebar-toggle {
  margin-left: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.sidebar.collapsed .sidebar-toggle .dash-icon { width: 22px; height: 22px; }
.sidebar.collapsed .sidebar-nav {
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
}
.sidebar.collapsed .nav-group { align-items: center; }
.sidebar.collapsed .nav-item {
  width: 52px;
  height: 52px;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
}
.sidebar.collapsed .nav-item .dash-icon { width: 26px; height: 26px; }
.sidebar.collapsed .nav-item.active::before { display: none; }

/* ════════════════════════════════════════
   MAIN CONTENT AREA
   ════════════════════════════════════════ */
.main-content { min-width: 0; background: var(--bg); }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  font-size: 1.2rem;
  margin-bottom: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}
.topbar > div:first-of-type > :not(h1) {
  display: none !important;
}
.topbar-sub { color: var(--muted); font-size: 0.82rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mobile-menu-btn {
  display: none; width: 38px; height: 38px; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}

.status-pill {
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--muted);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.status-pill.accent {
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  background: var(--teal-soft); color: var(--teal-deep);
  font-weight: 700;
}

main { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; }

/* ── Panel shared styles ── */
.panel-link {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  border-radius: 8px;
  background: var(--teal-soft); color: var(--teal-deep);
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  transition: all var(--transition);
}
.panel-link:hover {
  background: var(--teal); color: #fff; border-color: var(--teal);
  transform: translateY(-1px);
}

/* ── Hide old navigation ── */
.quick-nav, .nav-pill, .status-stack { display: none !important; }

/* ════════════════════════════════════════
   OFFSHORE DARK THEME
   ════════════════════════════════════════ */
body.theme-offshore {
  --bg: #0c1221;
  --surface: #151d2e;
  --surface-soft: #1a2438;
  --surface-strong: #1e2940;
  --surface-glass: rgba(21, 29, 46, 0.82);
  --ink: #e2e8f0;
  --muted: #8892a4;
  --line: #1e2d44;
  --line-strong: #2d3f5a;
  --teal: #f97316;
  --teal-soft: rgba(249, 115, 22, 0.12);
  --teal-deep: #ea580c;
  --coral: #f97316;
  --coral-soft: rgba(249, 115, 22, 0.1);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.1);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.1);
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.1);
  --charcoal: #c8d6e5;
  --shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 40px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.25), 0 32px 60px rgba(0,0,0,0.2);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(ellipse at 20% 10%, rgba(249, 115, 22, 0.06), transparent 40%),
    #0c1221;
}

body.theme-offshore .sidebar {
  background: rgba(12, 18, 33, 0.95);
  border-right-color: rgba(255,255,255,0.04);
}

body.theme-offshore .topbar {
  background: var(--surface-glass);
  border-bottom-color: var(--line);
}

body.theme-offshore .status-pill {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
}
body.theme-offshore .status-pill.accent {
  background: var(--teal-soft);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316;
}

body.theme-offshore .panel-link {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316;
}
body.theme-offshore .panel-link:hover {
  background: #f97316;
  color: #fff;
}

body.theme-offshore .mobile-menu-btn {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

body.theme-offshore ::-webkit-scrollbar-thumb { background: #2d3f5a; }
body.theme-offshore ::-webkit-scrollbar-thumb:hover { background: #3d5274; }

/* ── Offshore overrides for common page components ── */
body.theme-offshore .panel,
body.theme-offshore .kpi-card,
body.theme-offshore .control-panel,
body.theme-offshore .countdown-panel,
body.theme-offshore .hero-panel,
body.theme-offshore .flow-panel,
body.theme-offshore .campaign-panel,
body.theme-offshore .table-panel,
body.theme-offshore .progress-hero,
body.theme-offshore .curve-hero,
body.theme-offshore .attention-panel,
body.theme-offshore .procurement-panel {
  background: var(--surface);
  border-color: var(--line);
}

body.theme-offshore .panel-head,
body.theme-offshore .campaign-head,
body.theme-offshore .procurement-head,
body.theme-offshore .register-title-row,
body.theme-offshore .register-filter-panel {
  background: rgba(255,255,255,0.02);
  border-color: var(--line);
}

body.theme-offshore .kpi-card {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .kpi-card div > span,
body.theme-offshore .kpi span {
  color: #f97316;
}

body.theme-offshore .kpi-icon {
  background: rgba(255,255,255,0.05);
}

body.theme-offshore input,
body.theme-offshore select,
body.theme-offshore textarea {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--ink);
}

body.theme-offshore input:focus,
body.theme-offshore select:focus,
body.theme-offshore textarea:focus {
  border-color: #f97316;
  outline-color: rgba(249, 115, 22, 0.3);
}

body.theme-offshore button {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316;
}

body.theme-offshore table {
  background: var(--surface);
}

body.theme-offshore th {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
  color: var(--muted);
}

body.theme-offshore td {
  border-color: var(--line);
  background: var(--surface);
}

body.theme-offshore tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}

body.theme-offshore tbody tr:hover td {
  background: rgba(249, 115, 22, 0.06);
}

body.theme-offshore .table-scroll,
body.theme-offshore .table-wrap {
  background: var(--surface-soft);
}

body.theme-offshore .countdown-panel {
  background:
    linear-gradient(100deg, rgba(249, 115, 22, 0.08), rgba(21, 29, 46, 0.95) 58%, rgba(56, 189, 248, 0.06)),
    var(--surface);
}

body.theme-offshore .countdown-grid article {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .countdown-grid strong {
  color: #f97316;
}

body.theme-offshore .hero-panel,
body.theme-offshore .progress-hero,
body.theme-offshore .curve-hero {
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.06), rgba(21, 29, 46, 0.95)),
    var(--surface);
}

body.theme-offshore .register-card,
body.theme-offshore .procurement-item,
body.theme-offshore .timeline-dot,
body.theme-offshore .pic-load-row,
body.theme-offshore .campaign-tile,
body.theme-offshore .race-lane,
body.theme-offshore .empty-card {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .procurement-stat {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .procurement-alert {
  border-color: #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.9), rgba(239, 68, 68, 0.75));
}

body.theme-offshore .report-review {
  background: var(--surface);
  border-color: rgba(239, 68, 68, 0.3);
}

body.theme-offshore .report-review-head {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--line);
}

body.theme-offshore .report-review textarea {
  background: var(--surface);
  color: var(--ink);
}

body.theme-offshore .step-strip {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

body.theme-offshore .step-chip {
  border-color: var(--line);
  color: var(--ink);
}

body.theme-offshore .step-legend span {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .rank {
  background: var(--ink);
  color: var(--bg);
}

body.theme-offshore .register-modal {
  background: rgba(0,0,0,0.6);
}

body.theme-offshore .register-modal-panel {
  background: var(--surface);
  border-color: var(--line);
}

body.theme-offshore .register-modal-head {
  background: rgba(249, 115, 22, 0.08);
  border-color: var(--line);
}

body.theme-offshore .register-editor-status {
  background: var(--surface-soft);
  border-color: var(--line);
}

body.theme-offshore .register-editor-scroll {
  background: var(--surface-soft);
}

body.theme-offshore .register-editor-table th {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .register-editor-table td {
  background: var(--surface);
  border-color: var(--line);
}

body.theme-offshore .register-editor-table tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}

body.theme-offshore .register-editor-table input,
body.theme-offshore .register-editor-table select,
body.theme-offshore .register-editor-table textarea {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--ink);
}

body.theme-offshore .campaign-node-icon {
  background: var(--surface);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}

body.theme-offshore .race-track {
  background: rgba(255,255,255,0.03);
}

body.theme-offshore .race-track::before {
  background: rgba(255,255,255,0.06);
}

body.theme-offshore .race-marker {
  background: var(--surface);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 12px 22px rgba(0,0,0,0.3);
}

body.theme-offshore .race-status {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .race-gate {
  background: var(--ink);
  color: var(--bg);
}

body.theme-offshore .readiness-meter {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
}

body.theme-offshore .readiness-meter b,
body.theme-offshore .meter {
  background: #2d3f5a;
}

body.theme-offshore .flow-icon {
  background: var(--surface);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* ── S-Curve / PMS specific offshore ── */
body.theme-offshore .chart-wrap canvas,
body.theme-offshore .hero-gauge canvas {
  filter: none;
}

body.theme-offshore .hero-bars .bar-track,
body.theme-offshore .hero-bar-track {
  background: #2d3f5a;
}

body.theme-offshore .area-selector button {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--muted);
}

body.theme-offshore .area-selector button.active,
body.theme-offshore .area-selector button:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316;
}

body.theme-offshore .dot.green { background: var(--green); }
body.theme-offshore .dot.amber { background: var(--amber); }
body.theme-offshore .dot.red { background: var(--red); }

body.theme-offshore .legend { color: var(--muted); }

body.theme-offshore .attention-board,
body.theme-offshore .progress-board,
body.theme-offshore .discipline-board,
body.theme-offshore .package-board,
body.theme-offshore .stage-board,
body.theme-offshore .comparison-board,
body.theme-offshore .movement-board,
body.theme-offshore .phase-board,
body.theme-offshore .insight-list,
body.theme-offshore .latest-list,
body.theme-offshore .story-list,
body.theme-offshore .status-mix,
body.theme-offshore .movement-panel,
body.theme-offshore .package-list,
body.theme-offshore .attention-list,
body.theme-offshore .vendor-list {
  background: transparent;
}

body.theme-offshore .attention-item,
body.theme-offshore .progress-bar-row,
body.theme-offshore .discipline-row,
body.theme-offshore .package-card,
body.theme-offshore .stage-card,
body.theme-offshore .insight-card,
body.theme-offshore .latest-card,
body.theme-offshore .comparison-card,
body.theme-offshore .movement-card,
body.theme-offshore .phase-cell,
body.theme-offshore .story-card,
body.theme-offshore .mix-bar,
body.theme-offshore .movement-item,
body.theme-offshore .variance-item,
body.theme-offshore .vendor-card,
body.theme-offshore .attention-card {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .attention-summary {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}

body.theme-offshore .chart-wrap {
  background: rgba(255,255,255,0.01);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: -280px; top: 0; width: 270px;
    transition: left var(--transition), box-shadow var(--transition);
    box-shadow: none; z-index: 200;
  }
  .sidebar.mobile-open {
    left: 0;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.35), 8px 0 24px rgba(0,0,0,0.2);
  }
  .sidebar.collapsed { width: 270px; }
  .sidebar.collapsed .brand-text, .sidebar.collapsed .nav-item span,
  .sidebar.collapsed .nav-group-label, .sidebar.collapsed .sidebar-footer,
  .sidebar.collapsed .brand-sub { opacity: 1; width: auto; }
  .sidebar.collapsed .sidebar-brand { justify-content: flex-start; padding: 18px 16px; }
  .sidebar.collapsed .nav-item { justify-content: flex-start; padding: 9px 12px; }
  .sidebar.collapsed .nav-item .dash-icon { width: 18px; height: 18px; }

  .mobile-menu-btn { display: grid; }
  main { padding: 18px 16px 32px; }
  .topbar { padding: 12px 16px; }
}

@media (max-width: 640px) {
  .topbar h1 { font-size: 1rem; }
}

/* ════════════════════════════════════════
   FINAL TWEAKS (20260524-tweaks)
   ════════════════════════════════════════ */
