    /* ── Reset & Base ─────────────────────────────────── */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary: rgb(255, 119, 50);
      --primary-hover: rgb(235, 102, 36);
      --primary-subtle: rgba(255, 119, 50, 0.08);
      --primary-muted: rgba(255, 119, 50, 0.15);
      --secondary: #452B3D;
      --secondary-light: #5a3d50;
      --secondary-subtle: rgba(69, 43, 61, 0.06);

      --bg: #fafafa;
      --card-bg: #ffffff;
      --border: #e4e4e7;
      --border-light: #f0f0f2;
      --input-bg: #ffffff;

      --text-primary: #09090b;
      --text-secondary: #71717a;
      --text-muted: #a1a1aa;
      --text-inverse: #fafafa;

      --sidebar-width: 256px;
      --sidebar-collapsed: 68px;
      --topbar-height: 60px;

      --radius: 8px;
      --radius-lg: 12px;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
      --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

      --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

      --green: #22c55e;
      --green-subtle: rgba(34, 197, 94, 0.1);
      --red: #ef4444;
      --red-subtle: rgba(239, 68, 68, 0.1);
      --blue: #3b82f6;
      --blue-subtle: rgba(59, 130, 246, 0.1);
      --amber: #f59e0b;
      --amber-subtle: rgba(245, 158, 11, 0.1);
      --purple: #8b5cf6;
      --purple-subtle: rgba(139, 92, 246, 0.1);
    }

    html {
      font-size: 19px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      font-family: var(--font-sans);
      background: var(--bg);
      color: var(--text-primary);
      min-height: 100vh;
      display: flex;
    }

    /* ── Sidebar ───────────────────────────────────────── */
    .sidebar {
      position: fixed;
      top: 0; left: 0; bottom: 0;
      width: var(--sidebar-width);
      background: var(--card-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      z-index: 50;
      transition: width 0.2s ease;
      overflow: hidden;
    }

    body.collapsed .sidebar { width: var(--sidebar-collapsed); }

    .sidebar-header {
      height: var(--topbar-height);
      display: flex;
      align-items: center;
      padding: 0 16px;
      gap: 12px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .sidebar-logo {
      width: 34px; height: 34px;
      background: var(--secondary);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .sidebar-logo svg { width: 18px; height: 18px; color: var(--primary); }

    .sidebar-brand {
      font-size: 0.9375rem;
      font-weight: 600;
      letter-spacing: -0.025em;
      white-space: nowrap;
      opacity: 1;
      transition: opacity 0.15s ease;
      text-decoration: none;
      color: var(--text-primary);
    }

    body.collapsed .sidebar-brand { opacity: 0; pointer-events: none; }

    .sidebar-nav {
      flex: 1;
      padding: 12px 10px;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .sidebar-nav::-webkit-scrollbar { width: 4px; }
    .sidebar-nav::-webkit-scrollbar-track { background: transparent; }
    .sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
    .sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

    .nav-section { margin-bottom: 4px; }

    .nav-section-label {
      font-size: 0.6875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      padding: 0 8px;
      margin-bottom: 6px;
      white-space: nowrap;
      opacity: 1;
      transition: opacity 0.15s ease;
    }

    body.collapsed .nav-section-label { opacity: 0; }

    /* ── Collapsible Nav Group ─────────────────────────── */
    .nav-group-toggle {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 10px;
      height: 38px;
      border-radius: 6px;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--text-primary);
      text-decoration: none;
      cursor: pointer;
      transition: background 0.12s ease;
      white-space: nowrap;
      width: 100%;
      border: none;
      background: none;
      font-family: var(--font-sans);
    }

    .nav-group-toggle:hover { background: var(--secondary-subtle); }
    .nav-group-toggle .nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-secondary); }
    .nav-group-toggle .nav-label { flex: 1; text-align: left; opacity: 1; transition: opacity 0.15s ease; }
    body.collapsed .nav-group-toggle .nav-label { opacity: 0; pointer-events: none; }

    .nav-chevron {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      color: var(--text-muted);
      transition: transform 0.2s ease, opacity 0.15s ease;
    }

    .nav-group.open .nav-chevron { transform: rotate(180deg); }
    body.collapsed .nav-chevron { opacity: 0; }

    /* ── Sub-items ─────────────────────────────────────── */
    .nav-sub {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.2s ease;
      margin-left: 24px;
      padding-left: 14px;
      border-left: 1px solid var(--border);
    }

    .nav-group.open .nav-sub { max-height: 500px; }
    body.collapsed .nav-sub { max-height: 0 !important; }

    .nav-sub-item {
      display: flex;
      align-items: center;
      padding: 0 10px;
      height: 36px;
      font-size: 0.8125rem;
      font-weight: 400;
      color: var(--text-secondary);
      text-decoration: none;
      cursor: pointer;
      transition: background 0.12s ease, color 0.12s ease;
      white-space: nowrap;
      border-radius: 6px;
    }

    .nav-sub-item:hover { background: var(--secondary-subtle); color: var(--text-primary); }
    .nav-sub-item.active { color: var(--primary); font-weight: 500; }

    .sidebar-footer {
      padding: 12px 10px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }

    .sidebar-user {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 10px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.12s ease;
    }

    .sidebar-user:hover { background: var(--secondary-subtle); }

    .user-avatar {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--secondary);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 600;
      flex-shrink: 0;
    }

    .user-info { overflow: hidden; opacity: 1; transition: opacity 0.15s ease; flex: 1; min-width: 0; }
    body.collapsed .user-info { display: none; }
    .user-name { font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
    .user-email { font-size: 0.6875rem; color: var(--text-muted); white-space: nowrap; }

    .logout-btn {
      flex-shrink: 0;
      width: 28px; height: 28px;
      display: flex; align-items: center; justify-content: center;
      border: none; background: transparent; cursor: pointer;
      border-radius: 6px;
      color: var(--text-muted);
      transition: background 0.12s ease, color 0.12s ease;
    }
    .logout-btn:hover { background: #fee2e2; color: #dc2626; }
    .logout-btn svg { width: 15px; height: 15px; }

    body.collapsed .sidebar-footer { padding: 12px 6px; }
    body.collapsed .sidebar-user { flex-direction: column; gap: 16px; padding: 6px 4px; }
    body.collapsed .logout-btn { width: 32px; height: 24px; }

    /* ── Main ──────────────────────────────────────────── */
    .main {
      margin-left: var(--sidebar-width);
      flex: 1;
      min-width: 0;
      min-height: 100vh;
      transition: margin-left 0.2s ease;
    }

    body.collapsed .main { margin-left: var(--sidebar-collapsed); }

    /* ── Topbar ────────────────────────────────────────── */
    .topbar {
      height: var(--topbar-height);
      background: var(--card-bg);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 24px;
      gap: 16px;
      position: sticky;
      top: 0;
      z-index: 40;
    }

    .collapse-btn {
      width: 32px; height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--card-bg);
      cursor: pointer;
      color: var(--text-secondary);
      transition: background 0.12s ease, color 0.12s ease;
      flex-shrink: 0;
    }

    .collapse-btn:hover { background: var(--bg); color: var(--text-primary); }
    .collapse-btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
    body.collapsed .collapse-btn svg { transform: rotate(180deg); }

    .topbar-search { flex: 1; max-width: 400px; position: relative; }

    .topbar-search svg {
      position: absolute;
      left: 10px; top: 50%;
      transform: translateY(-50%);
      width: 15px; height: 15px;
      color: var(--text-muted);
    }

    .topbar-search input {
      width: 100%; height: 36px;
      padding: 0 12px 0 34px;
      font-size: 0.8125rem;
      font-family: var(--font-sans);
      color: var(--text-primary);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .topbar-search input::placeholder { color: var(--text-muted); }

    .topbar-search input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-subtle);
      background: var(--card-bg);
    }

    .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

    .topbar-icon-btn {
      width: 36px; height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 6px;
      background: transparent;
      cursor: pointer;
      color: var(--text-secondary);
      position: relative;
      transition: background 0.12s ease, color 0.12s ease;
    }

    .topbar-icon-btn:hover { background: var(--bg); color: var(--text-primary); }
    .topbar-icon-btn svg { width: 18px; height: 18px; }

    .notif-dot {
      position: absolute;
      top: 7px; right: 7px;
      width: 7px; height: 7px;
      background: var(--primary);
      border-radius: 50%;
      border: 1.5px solid var(--card-bg);
    }
