:root {
      --bg-header: rgba(10, 16, 30, 0.86);
      --bg-body: #050b16;
      --bg-panel: rgba(15, 23, 42, 0.74);
      --bg-panel-strong: rgba(15, 23, 42, 0.92);
      --bg-panel-soft: rgba(30, 41, 59, 0.68);
      --text-primary: #f1f5f9;
      --text-secondary: #cbd5e1;
      --text-muted: #94a3b8;
      --border: rgba(71, 85, 105, 0.55);
      --border-hover: rgba(99, 102, 241, 0.4);
      --brand: #2563eb;
      --brand-hover: #1d4ed8;
      --brand-soft: rgba(99, 102, 241, 0.18);
      --accent: linear-gradient(135deg, #7c3aed 0%, #2563eb 55%, #14b8a6 120%);
      --ring: rgba(124, 58, 237, 0.18);
      --ring-strong: rgba(37, 99, 235, 0.22);
      --shadow: 0 10px 26px rgba(2, 6, 23, 0.34);
      --shadow-lg: 0 18px 42px rgba(2, 6, 23, 0.42);
      --shadow-xl: 0 30px 70px rgba(2, 6, 23, 0.5);
      --overlay-bg: rgba(0, 0, 0, 0.8);
      --text-overlay-bg: rgba(0, 0, 0, 0.85);
      --success: #22c55e;
      --success-bg: #052e16;
      --error: #f87171;
      --error-bg: #450a0a;
      --warn: #f59e0b;
      --warn-bg: rgba(245, 158, 11, 0.12);
      /* Back-compat: some templates still use --warning* */
      --warning: var(--warn);
      --warning-bg: var(--warn-bg);
      /* Console shell: fixed sidebar + offset main (single source of truth) */
      --console-sidebar-width: 280px;
    }
    
    * { box-sizing: border-box; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    html { width: 100%; color-scheme: dark; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }
    body { margin: 0; background:
      radial-gradient(1100px 760px at 10% -20%, rgba(124, 58, 237, 0.18) 0%, transparent 58%),
      radial-gradient(980px 700px at 110% 10%, rgba(37, 99, 235, 0.14) 0%, transparent 58%),
      radial-gradient(980px 760px at 70% 120%, rgba(20, 184, 166, 0.08) 0%, transparent 52%),
      var(--bg-body);
      color: var(--text-primary); font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif; min-height: 100vh; width: 100%; line-height: 1.55; letter-spacing: 0.1px; }

    h1, h2, h3, h4 { letter-spacing: -0.01em; }
    h1, h2 { line-height: 1.15; }
    h3 { line-height: 1.2; }
    p { line-height: 1.65; }
    code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
    a { color: inherit; }
    a:hover { text-decoration-thickness: 2px; text-underline-offset: 2px; }
    
    /* Sidebar Navigation */
    .sidebar { width: var(--console-sidebar-width); background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.62)); border-right: 1px solid rgba(148, 163, 184, 0.12); backdrop-filter: blur(22px) saturate(145%); position: fixed; left: 0; top: 0; bottom: 0; overflow-y: auto; z-index: 100; transition: transform 0.3s ease; box-shadow: var(--shadow-lg); }
    .sidebar-header { padding: 20px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); background: linear-gradient(180deg, var(--bg-header) 0%, rgba(15, 23, 42, 0.66) 100%); color: #fff; backdrop-filter: blur(18px); }
    .sidebar-brand { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
    .sidebar-org { font-size: 12px; color: #cbd5e1; margin-top: 4px; }
    .sidebar-nav { padding: 16px 12px 24px; }
    .sidebar-nav a, .sidebar-nav .nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: all 0.2s; border: 1px solid transparent; border-radius: 14px; margin-bottom: 6px; }
    .sidebar-nav a:hover, .sidebar-nav .nav-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); border-color: rgba(99, 102, 241, 0.22); transform: translateX(2px); }
    .sidebar-nav a.active, .sidebar-nav .nav-item.active { background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.18)); color: #eaf1ff; border-color: rgba(99, 102, 241, 0.26); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.10); }
    .sidebar-nav .nav-icon {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      opacity: 0.85;
      color: inherit;
    }
    .sidebar-nav .nav-icon svg { display: block; }
    .sidebar-nav a:hover .nav-icon,
    .sidebar-nav a.active .nav-icon { opacity: 1; }
    .sidebar-nav a.nav-cta .nav-icon,
    .sidebar-nav a.nav-cta.active .nav-icon {
      opacity: 0.98;
      color: rgba(255, 255, 255, 0.98);
    }
    .sidebar-nav a.nav-cta-secondary .nav-icon,
    .sidebar-nav a.nav-cta-secondary.active .nav-icon {
      opacity: 0.95;
      color: rgba(236, 253, 245, 0.95);
    }
    .sidebar-nav a.nav-payout .nav-icon,
    .sidebar-nav a.nav-payout.active .nav-icon {
      opacity: 0.98;
      color: rgba(255, 255, 255, 0.98);
    }
    .sidebar-section { padding: 12px 14px 6px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 14px; }
    .sidebar-divider { height: 1px; background: var(--border); margin: 14px 8px; }
    .sidebar-search { display: grid; gap: 8px; margin: 0 2px 14px; }
    .sidebar-search input {
      width: 100%;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid var(--border);
      padding: 0 12px;
      background: var(--bg-panel-strong);
      color: var(--text-primary);
      box-shadow: var(--shadow);
    }
    .sidebar-search .btn { width: 100%; justify-content: center; }
    
    /* Expandable menu items */
    .nav-expandable { cursor: pointer; user-select: none; position: relative; justify-content: space-between; }
    .nav-expandable .expand-icon { font-size: 10px; transition: transform 0.2s; color: var(--text-muted); }
    .nav-expandable.expanded .expand-icon { transform: rotate(90deg); }
    .nav-submenu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: transparent; border-left: 1px solid var(--border); margin: 0 0 6px 16px; padding-left: 8px; }
    .nav-submenu.expanded { max-height: 500px; }
    .nav-submenu a { padding-left: 16px; font-size: 13px; color: var(--text-secondary); }
    .nav-submenu a:hover { background: var(--brand-soft); color: var(--brand); }
    .nav-submenu a.active { background: rgba(29, 78, 216, 0.16); color: var(--brand); font-weight: 500; }
    
    /* Main Content Area */
    .main-wrapper { margin-left: var(--console-sidebar-width); display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
    header { background: var(--bg-header); color: #fff; padding: 14px 24px; position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow-lg); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid rgba(148, 163, 184, 0.10); }
    .top { display: flex; align-items: center; gap: 16px; justify-content: space-between; min-height: 56px; }
    .brand { font-weight: 700; letter-spacing: 0.3px; }
    nav a { color: #e5e7eb; text-decoration: none; margin-right: 12px; font-size: 14px; }
    nav a.active { color: #fff; font-weight: 600; }
    nav a:hover { color: #fff; }
    nav .nav-group { position: relative; display: inline-block; }
    nav .nav-sub { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; min-width: 200px; padding: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.35); z-index: 20; }
    nav .nav-sub a { display: block; padding: 8px 10px; margin: 0; border-radius: 6px; color: var(--text-primary); }
    nav .nav-sub a:hover { background: var(--bg-body); color: var(--text-primary); }
    nav .nav-group:hover .nav-sub, nav .nav-group:focus-within .nav-sub { display: block; }
    nav .nav-group.open .nav-sub { display: block; }
    .org { display: flex; align-items: center; gap: 8px; }
    .org-name { color: #cbd5e1; font-size: 14px; }
    .org select { padding: 4px 6px; font-size: 13px; }
    
    /* Enhanced Navigation */
    nav > a, nav .nav-group > a { display: inline-flex; align-items: center; gap: 6px; transition: transform 0.2s ease; }
    nav > a:hover, nav .nav-group > a:hover { transform: translateY(-1px); }
    nav > a.active, nav .nav-group > a.active { background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%); border-radius: 6px; padding: 6px 10px; margin-right: 8px; }
    nav .nav-sub { transition: opacity 0.2s ease, transform 0.2s ease; transform-origin: top; opacity: 0; transform: scaleY(0.95); pointer-events: none; }
    nav .nav-group:hover .nav-sub, nav .nav-group:focus-within .nav-sub, nav .nav-group.open .nav-sub { opacity: 1; transform: scaleY(1); pointer-events: auto; }
    nav .nav-sub a { display: flex; align-items: center; gap: 8px; transition: transform 0.2s ease; }
    nav .nav-sub a:hover { transform: translateX(4px); }
    .user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 13px; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.24); }
    
    .content { padding: 30px 24px 36px; max-width: 1280px; width: 100%; margin: 0 auto; min-width: 0; }

    /* Page rhythm utilities (optional, for consistency) */
    .page-shell { display: grid; gap: 18px; }
    .page-hero {
      position: relative;
      overflow: hidden;
      padding: 22px;
      border-radius: 24px;
      border: 1px solid rgba(99, 102, 241, 0.16);
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.14) 100%);
      box-shadow: var(--shadow-lg);
    }
    .page-hero::after {
      content: '';
      position: absolute;
      right: -56px;
      bottom: -76px;
      width: 260px;
      height: 260px;
      background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 72%);
      pointer-events: none;
    }
    .page-hero-row { position: relative; z-index: 1; display:flex; justify-content:space-between; align-items:flex-end; gap: 16px; flex-wrap: wrap; }
    .page-hero-copy { max-width: 760px; }
    .page-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.34);
      border: 1px solid rgba(255,255,255,0.28);
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 10px;
    }
    .page-title { margin: 0 0 6px 0; }
    .page-lead { margin: 0; color: var(--text-secondary); max-width: 62ch; }
    .page-hero-actions { display:flex; gap:10px; flex-wrap: wrap; align-items:center; }
    .page-chip {
      min-width: 150px;
      padding: 12px 14px;
      border-radius: 18px;
      background: rgba(255,255,255,0.26);
      border: 1px solid rgba(255,255,255,0.26);
      backdrop-filter: blur(14px);
    }
    .page-chip-label { display:block; font-size:11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
    .page-chip-value { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
    .panel {
      position: relative;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.90), rgba(2, 6, 23, 0.62));
      border-radius: 22px;
      box-shadow: var(--shadow);
      padding: 20px;
      border: 1px solid rgba(148, 163, 184, 0.14);
      transition: box-shadow 0.25s ease, border-color 0.25s ease;
      min-width: 0;
      backdrop-filter: blur(18px) saturate(140%);
    }
    .panel::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
      pointer-events: none;
    }
    .panel:hover { box-shadow: var(--shadow-xl); border-color: rgba(99, 102, 241, 0.24); }
    .grid { display: grid; gap: 12px; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .metric { padding: 14px; border-radius: 14px; background: var(--bg-panel-soft); border: 1px solid var(--border); }
    .metric h3 { margin: 0; font-size: 13px; color: var(--text-muted); }
    .metric .v { font-size: 22px; font-weight: 700; color: var(--text-primary); }
    table { width: 100%; border-collapse: collapse; }
    th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); color: var(--text-primary); }
    th { color: var(--text-muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(15, 23, 42, 0.94); position: sticky; top: 0; z-index: 10; }
    tbody tr { transition: all 0.2s; }
    tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
    tbody tr:hover { background: rgba(59, 130, 246, 0.07); box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset; }
    tbody tr:hover td { color: var(--text-primary); }
    .btn {
      display: inline-block;
      padding: 9px 14px;
      border-radius: 13px;
      text-decoration: none;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.88));
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: var(--shadow);
      position: relative;
      backdrop-filter: blur(14px);
    }
    .btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); border-color: var(--border-hover); }
    .btn:active { transform: translateY(0); }
    .btn.primary { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); border-color: rgba(255,255,255,0.06); color: #fff; box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24); }
    .btn.primary:hover { background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%); }
    .btn.secondary { background: rgba(255,255,255,0.05); border-color: rgba(148, 163, 184, 0.18); color: var(--text-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
    .btn.secondary:hover { border-color: rgba(99, 102, 241, 0.22); box-shadow: var(--shadow-lg); }
    .btn.small { padding: 7px 10px; font-size: 12px; border-radius: 11px; }
    .btn.loading { opacity: 0.7; cursor: wait; pointer-events: none; }
    .btn.loading::after { content: "⏳"; margin-left: 6px; animation: spin 1s linear infinite; }
    @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    .toast { position: fixed; top: 20px; right: 20px; background: #10b981; color: white; padding: 12px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 9999; animation: slideIn 0.3s ease-out; }
    .toast.error { background: #dc2626; }
    .toast.warning { background: #f59e0b; }
    @keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
    
    /* Mobile-first responsive design */
    .mobile-menu-toggle { display: none; background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 8px; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
    
    @media (max-width: 768px) {
      html, body { overflow-x: hidden; }
      img, svg, canvas { max-width: 100%; height: auto; }

      .mobile-menu-toggle { display: block; }
      .sidebar { transform: translateX(-100%); }
      .sidebar.active { transform: translateX(0); box-shadow: 0 0 20px rgba(0,0,0,0.3); }
      .sidebar-overlay.active { display: block; }
      .main-wrapper { margin-left: 0; }
      
      header { padding: 12px 14px; }
      .top { flex-wrap: wrap; align-items: flex-start; }
      .org { width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid #334155; }
      .org-name { font-size: 12px; }
      
      .btn { padding: 10px 16px; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
      .btn.small { padding: 8px 12px; font-size: 13px; min-height: 36px; }
      
      .content { padding: 16px 14px 22px; }
      .panel { padding: 16px; border-radius: 18px; }
      
      /* Responsive tables */
      .table-wrap { margin: 0 -12px; padding: 0 12px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
      table { font-size: 14px; }
      th { font-size: 11px; padding: 6px; }
      td { padding: 8px 6px; }
      
      /* Stack grid on mobile */
      .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 10px; }
      
      /* Make forms mobile-friendly */
      .field input, .field select, .field textarea { 
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
        min-height: 44px;
      }
      .field label { font-size: 14px; margin-bottom: 6px; }
      
      /* Hide some columns on mobile for better fit */
      .hide-mobile { display: none; }
      
      /* Card layout for mobile lists */
      .mobile-card { display: none; }
    }
    
    /* Touch-friendly adjustments */
    @media (pointer: coarse) {
      .btn, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
      .btn.small { min-height: 36px; }
      .sidebar-nav > a { min-height: 44px; }
      input[type="checkbox"], input[type="radio"] { min-width: 20px; min-height: 20px; }
    }
    .muted { color: var(--text-muted); }
    form.inline { display: inline; }
    .messages { margin: 10px 0; }
    .msg { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; box-shadow: var(--shadow); }
    .msg.success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
    .msg.error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }
    .msg.warning { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
    .field { margin-bottom: 14px; }
    .field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
    .field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 12px; background: rgba(15, 23, 42, 0.82); color: var(--text-primary); transition: all 0.2s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
    .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
    .field select option { background: var(--bg-panel); color: var(--text-primary); padding: 8px; }
    .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
    .field-help { margin-top: 6px; font-size: 12px; color: var(--text-muted); line-height: 1.55; }

    .badge { display:inline-flex; align-items:center; gap:6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 23, 42, 0.65); color: var(--text-secondary); font-size: 12px; font-weight: 800; }
    .badge.green { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.25); color: #a7f3d0; }
    .btn.danger { border-color: rgba(239, 68, 68, 0.25); background: linear-gradient(180deg, rgba(127, 29, 29, 0.55), rgba(69, 10, 10, 0.75)); }
    .btn.danger:hover { border-color: rgba(239, 68, 68, 0.35); }
    .chip { display:inline-block; padding: 4px 8px; border-radius: 999px; margin-right: 4px; background: rgba(15, 23, 42, 0.8); color: var(--text-primary); border: 1px solid rgba(148, 163, 184, 0.16); font-size: 12px; font-weight: 600; }
    .chip.ok { background: var(--success-bg); color: var(--success); border-color: var(--success); }
    .chip.warn { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
    .chip.bad { background: var(--error-bg); color: var(--error); border-color: var(--error); }

    /* Common inline-layout helpers */
    .actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
    .toolbar-row { display:flex; justify-content:space-between; align-items:flex-end; gap: 12px; flex-wrap:wrap; }
    .toolbar-title { margin: 0; }
    .toolbar-hint { color: var(--text-muted); font-size: 13px; }

    /* Shared table / panel toolbar (use with console/_table_toolbar.html) */
    .console-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }
    .console-toolbar-text { min-width: min(100%, 240px); flex: 1 1 auto; }
    .console-toolbar-text .toolbar-title { margin: 0 0 4px 0; font-size: 1.05rem; }
    .console-toolbar-text .toolbar-hint { margin: 0; max-width: 56ch; line-height: 1.5; }
    .console-toolbar-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
    }

    .search-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
    .search-form input[type="text"],
    .search-form input[type="search"] {
      min-height: 46px;
      border-radius: 14px;
      border: 1px solid var(--border);
      padding: 0 14px;
      background: var(--bg-panel);
      box-shadow: var(--shadow);
      min-width: 240px;
    }

    .pill {
      display:inline-flex;
      align-items:center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.14);
      background: rgba(255,255,255,0.04);
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
    }
    .pill.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-weight: 600; font-size: 13px; }
    .pill.success { background: rgba(16, 185, 129, 0.14); color: #10b981; border-color: rgba(16, 185, 129, 0.22); }
    .pill.warn { background: rgba(245, 158, 11, 0.14); color: #d97706; border-color: rgba(245, 158, 11, 0.22); }
    .pill.critical { background: rgba(239, 68, 68, 0.14); color: #ef4444; border-color: rgba(239, 68, 68, 0.22); }
    .table-wrap { width: 100%; overflow-x: auto; }
    .table-wrap {
      border-radius: 18px;
      border: 1px solid rgba(148, 163, 184, 0.12);
      background: rgba(2, 6, 23, 0.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .table-wrap table { min-width: 760px; }
    .skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
    .skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: #fff; color: #000; z-index: 1000; }
    /* Tablet breakpoint */
    @media (min-width: 769px) and (max-width: 1024px) {
      .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    }
    footer { margin-top: 24px; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04)); }
    .footer-inner { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-muted); }
    .footer-brand { font-size: 13px; color: var(--text-muted); }
    .footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
    .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
    .footer-links a:hover { color: var(--text-primary); text-decoration: underline; }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    }

/* Focus visibility (console chrome) */
a:focus-visible,
button:focus-visible,
.sidebar-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sidebar-nav a.nav-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  border-left: none !important;
}

.sidebar-nav a.nav-cta-secondary {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 13px;
}

.sidebar-nav a.nav-payout {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  border-left: none !important;
}
