    :root {
      --brand-navy: #0A2259;
      --brand-navy-text: #0A2259;
      --brand-cyan: #00C4CC;
      --brand-ink: #15213A;

      --bg-canvas: #FAFBFD;
      --bg-surface: #FFFFFF;
      --bg-surface-hover: #F4F6FA;
      --border-hairline: #E6EAF2;
      --border-hairline-strong: #D1D8E5;

      --text-primary: #15213A;
      --text-secondary: #475569;
      --text-muted: #64748B;
      --text-on-cyan: #0B1220;

      --class-a: rgba(10, 34, 89, 1.0);
      --class-b: rgba(10, 34, 89, 0.75);
      --class-c: rgba(10, 34, 89, 0.50);
      --class-d: rgba(10, 34, 89, 0.25);

      --status-ok-text: #059669;
      --status-ok-bg: #ECFDF5;
      --status-ok-border: #A7F3D0;

      --status-warn-text: #D97706;
      --status-warn-bg: #FFFBEB;
      --status-warn-border: #FDE68A;

      --status-bad-text: #DC2626;
      --status-bad-bg: #FEF2F2;
      --status-bad-border: #FECACA;

      --font-display: 'Inter Display', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;

      --radius-sm: 4px;
      --radius-md: 6px;
      --radius-lg: 10px;
    }

    [data-theme="dark"] {
      --brand-navy-text: #C9D4EA;
      --bg-canvas: #0B1220;
      --bg-surface: #121A2B;
      --bg-surface-hover: #182338;
      --border-hairline: #1E2A40;
      --border-hairline-strong: #2D3D5A;

      --text-primary: #F1F5F9;
      --text-secondary: #94A3B8;
      --text-muted: #6B7280;

      --class-a: rgba(201, 212, 234, 1.0);
      --class-b: rgba(201, 212, 234, 0.75);
      --class-c: rgba(201, 212, 234, 0.50);
      --class-d: rgba(201, 212, 234, 0.25);

      --status-ok-text: #34D399;
      --status-ok-bg: rgba(6, 78, 59, 0.35);
      --status-ok-border: rgba(5, 150, 105, 0.4);

      --status-warn-text: #FBBF24;
      --status-warn-bg: rgba(120, 53, 15, 0.35);
      --status-warn-border: rgba(217, 119, 6, 0.4);

      --status-bad-text: #F87171;
      --status-bad-bg: rgba(127, 29, 29, 0.35);
      --status-bad-border: rgba(220, 38, 38, 0.4);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      background-color: var(--bg-canvas);
      color: var(--text-primary);
      font-family: var(--font-body);
      font-size: 13px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    [dir="rtl"] body {
      font-family: var(--font-arabic);
      line-height: 1.6;
    }

    .flip-rtl { transition: transform 150ms ease; }
    [dir="rtl"] .flip-rtl { transform: scaleX(-1); }

    .app-shell {
      display: flex;
      min-height: 100vh;
    }

    /* Standard Grouped Sidebar */
    .sidebar {
      width: 230px;
      background: var(--bg-surface);
      border-right: 1px solid var(--border-hairline);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }
    [dir="rtl"] .sidebar {
      border-right: none;
      border-left: 1px solid var(--border-hairline);
    }
    [data-theme="dark"] .sidebar { background: #0B1220; }

    .sidebar-brand {
      padding: 18px 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid var(--border-hairline);
    }
    .brand-title {
      font-weight: 700;
      font-size: 15px;
      letter-spacing: -0.02em;
      color: var(--brand-navy-text);
    }

    .sidebar-nav {
      padding: 16px 10px;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .nav-group-title {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      padding: 0 10px 4px;
    }
    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 10px;
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      text-decoration: none;
      transition: all 120ms ease;
    }
    .nav-item:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
    .nav-item.active {
      background: var(--bg-surface-hover);
      color: var(--brand-navy-text);
      font-weight: 600;
      position: relative;
    }
    .nav-item.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 6px;
      bottom: 6px;
      width: 3px;
      background: var(--brand-cyan);
      border-radius: 0 2px 2px 0;
    }
    [dir="rtl"] .nav-item.active::before {
      left: auto;
      right: 0;
      border-radius: 2px 0 0 2px;
    }

    /* Main Content Area */
    .main-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    /* Header Bar */
    .top-bar {
      height: 54px;
      background: var(--bg-surface);
      border-bottom: 1px solid var(--border-hairline);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      gap: 16px;
    }
    .top-search-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: var(--bg-canvas);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-md);
      color: var(--text-muted);
      font-size: 12px;
      cursor: pointer;
      min-width: 260px;
    }
    .top-search-btn kbd {
      margin-left: auto;
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-sm);
      padding: 1px 5px;
      font-size: 10px;
      font-family: monospace;
    }
    [dir="rtl"] .top-search-btn kbd { margin-left: 0; margin-right: auto; }

    .top-actions { display: flex; align-items: center; gap: 10px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 600;
      height: 32px;
      padding: 0 12px;
      border-radius: var(--radius-md);
      border: 1px solid transparent;
      cursor: pointer;
      text-decoration: none;
    }
    .btn-primary {
      background: var(--brand-cyan);
      color: var(--text-on-cyan);
      border-color: var(--brand-cyan);
    }
    .btn-secondary {
      background: var(--bg-surface);
      color: var(--text-primary);
      border-color: var(--border-hairline);
    }
    .btn-secondary:hover { background: var(--bg-surface-hover); }

    .content-body {
      padding: 24px;
      max-width: 1280px;
      width: 100%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .card {
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-lg);
      padding: 18px 20px;
    }

    /* 1. Hero Event Target Section */
    .hero-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .hero-title-group { display: flex; align-items: baseline; gap: 12px; }
    .hero-number {
      font-family: var(--font-display);
      font-size: 40px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--brand-navy-text);
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .hero-unit { font-size: 18px; font-weight: 600; color: var(--text-muted); }
    .hero-sub { font-size: 12px; color: var(--text-muted); }

    /* Single Track with 3 Direct Thin Markers */
    .track-container {
      margin-top: 14px;
      position: relative;
      padding-bottom: 30px;
    }
    .single-track {
      height: 8px;
      background: var(--bg-surface-hover);
      border-radius: 4px;
      position: relative;
      overflow: visible;
    }
    .track-fill-collected {
      height: 100%;
      width: 63.6%;
      background: var(--brand-cyan);
      border-radius: 4px;
    }
    .track-marker {
      position: absolute;
      top: -3px;
      height: 14px;
      width: 2px;
      background: var(--brand-navy);
      z-index: 2;
    }
    [data-theme="dark"] .track-marker { background: #C9D4EA; }
    .marker-label {
      position: absolute;
      top: 16px;
      transform: translateX(-50%);
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
      color: var(--text-secondary);
    }
    .marker-label span {
      font-weight: 400;
      color: var(--text-muted);
      font-variant-numeric: tabular-nums;
    }

    /* Horizontal Timeline with Today Marker */
    .timeline-bar {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border-hairline);
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      font-size: 11px;
      color: var(--text-muted);
    }
    .timeline-track-line {
      position: absolute;
      top: 24px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--border-hairline);
      z-index: 1;
    }
    .timeline-node {
      position: relative;
      z-index: 2;
      background: var(--bg-surface);
      padding: 0 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    .timeline-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--border-hairline-strong);
    }
    .timeline-node.today .timeline-dot {
      background: var(--brand-cyan);
      box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.2);
    }
    .timeline-node.today .node-label {
      color: var(--brand-navy-text);
      font-weight: 700;
    }

    /* 2. Exactly 5 KPI Tiles in One Row at 1280 */
    .kpi-row-5 {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }
    @media (max-width: 1024px) {
      .kpi-row-5 { grid-template-columns: repeat(2, 1fr); }
      .kpi-row-5 > :last-child { grid-column: span 2; }
    }
    @media (max-width: 640px) {
      .kpi-row-5 { grid-template-columns: 1fr; }
      .kpi-row-5 > :last-child { grid-column: span 1; }
    }

    .kpi-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-lg);
      padding: 14px 16px;
    }
    .kpi-title {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-muted);
      margin-bottom: 4px;
    }
    .kpi-amount {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--brand-navy-text);
      font-variant-numeric: tabular-nums;
    }
    .kpi-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

    /* 3. Attention Items (Quiet List) */
    .attention-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-lg);
      padding: 16px 20px;
    }
    .attention-header {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-secondary);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .attention-list { display: flex; flex-direction: column; gap: 6px; }
    .attention-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 7px 10px;
      background: var(--bg-canvas);
      border-radius: var(--radius-md);
      font-size: 12px;
    }
    .attention-left { display: flex; align-items: center; gap: 10px; }
    .attention-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 4px;
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      font-size: 11px;
      font-weight: 700;
      color: var(--brand-navy-text);
      font-variant-numeric: tabular-nums;
    }
    .attention-link { color: var(--brand-navy-text); text-decoration: none; font-weight: 600; }

    /* 4. Class Pool Hierarchy Cards */
    .class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .class-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-lg);
      padding: 14px 16px;
    }
    .class-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .class-pill {
      font-size: 11px;
      font-weight: 700;
      color: #FFFFFF;
      padding: 2px 8px;
      border-radius: var(--radius-sm);
    }
    .pill-a { background: var(--class-a); }
    .pill-b { background: var(--class-b); }
    .pill-c { background: var(--class-c); }
    .pill-d { background: var(--class-d); }
    [data-theme="dark"] .class-pill { color: #0B1220; }

    /* 5. Production Performance Table */
    .table-container {
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-lg);
      overflow-x: auto;
    }
    .table-toolbar {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-hairline);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .table-title { font-weight: 700; color: var(--brand-navy-text); font-size: 13px; }
    .data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .data-table th {
      height: 32px;
      text-align: left;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border-hairline);
      padding: 0 12px;
    }
    [dir="rtl"] .data-table th { text-align: right; }
    .data-table td {
      height: 36px;
      border-bottom: 1px solid var(--border-hairline);
      padding: 0 12px;
      color: var(--text-primary);
      vertical-align: middle;
      white-space: nowrap;
    }
    .data-table tr:hover td { background: var(--bg-surface-hover); }

    .num-col { text-align: right; font-variant-numeric: tabular-nums; }
    [dir="rtl"] .num-col { text-align: left; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 7px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .badge-ok {
      color: var(--status-ok-text);
      background: var(--status-ok-bg);
      border-color: var(--status-ok-border);
    }

    /* Modal / Command Palette */
    .cmd-overlay {
      position: fixed;
      inset: 0;
      background: rgba(11, 18, 32, 0.6);
      backdrop-filter: blur(2px);
      z-index: 200;
      display: none;
      align-items: flex-start;
      justify-content: center;
      padding-top: 15vh;
    }
    .cmd-overlay.active, .cmd-overlay.open { display: flex; }
    .cmd-modal {
      width: 100%;
      max-width: 540px;
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline-strong);
      border-radius: var(--radius-lg);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
      overflow: hidden;
    }
    .cmd-search-input {
      width: 100%;
      height: 44px;
      padding: 0 16px;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border-hairline);
      font-size: 14px;
      color: var(--text-primary);
      outline: none;
    }
    .cmd-results { padding: 6px 0; max-height: 280px; overflow-y: auto; }
    .cmd-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 16px;
      font-size: 13px;
      cursor: pointer;
    }
    .cmd-row:hover, .cmd-row.active {
      background: var(--bg-surface-hover);
      color: var(--brand-navy-text);
      font-weight: 600;
    }

    /* Discreet Fixed Keyboard Shortcut Hint (Does not overlap content) */
    .shortcut-hint {
      position: fixed;
      bottom: 12px;
      right: 16px;
      z-index: 10;
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-md);
      padding: 4px 8px;
      font-size: 10px;
      color: var(--text-muted);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      opacity: 0.85;
    }
    .shortcut-hint:hover { opacity: 1; }
    [dir="rtl"] .shortcut-hint { right: auto; left: 16px; }

    /* Ghost User Menu */
    .user-ghost-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 8px;
      border-radius: var(--radius-md);
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      transition: all 120ms ease;
    }
    .user-ghost-btn:hover {
      background: var(--bg-surface-hover);
      border-color: var(--border-hairline);
    }
    .user-ghost-btn .user-avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--brand-navy);
      color: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 700;
    }
    [data-theme="dark"] .user-ghost-btn .user-avatar {
      background: #C9D4EA;
      color: #0B1220;
    }
    .user-ghost-btn .user-email {
      font-size: 12px;
      color: var(--text-secondary);
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    [data-theme="dark"] .user-ghost-btn .user-email {
      color: var(--text-primary);
    }
    .user-menu-wrap {
      position: relative;
    }
    .user-menu-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      z-index: 200;
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-md);
      box-shadow: 0 8px 24px rgba(11, 18, 32, 0.12);
      padding: 6px;
      min-width: 190px;
      display: none;
      flex-direction: column;
      gap: 2px;
    }
    [dir="rtl"] .user-menu-dropdown {
      right: auto;
      left: 0;
    }
    .user-menu-dropdown.open {
      display: flex;
    }
    .user-menu-item {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 7px 10px;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--text-primary);
      font-family: inherit;
      font-size: 12px;
      font-weight: 500;
      text-align: left;
      cursor: pointer;
      transition: background 120ms ease;
    }
    [dir="rtl"] .user-menu-item {
      text-align: right;
    }
    .user-menu-item:hover {
      background: var(--bg-surface-hover);
    }
    .user-menu-badge {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
    }
    .user-menu-divider {
      height: 1px;
      background: var(--border-hairline);
      margin: 4px 0;
    }
    .user-menu-logout {
      color: var(--status-bad-text);
      font-weight: 600;
    }


    /* Bulk Action Bar */
    .bulk-bar {
      background: var(--bg-surface-hover);
      border-bottom: 1px solid var(--border-hairline);
      padding: 8px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
    }
    .bulk-count {
      font-weight: 700;
      color: var(--brand-navy-text);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* Filter Chips (.badge style pills with count, active: navy text on surface-hover) */
    .filter-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 120ms ease;
    }
    .filter-chip:hover {
      background: var(--bg-surface-hover);
      color: var(--text-primary);
    }
    .filter-chip.active {
      color: var(--brand-navy-text);
      background: var(--bg-surface-hover);
      border-color: var(--border-hairline-strong);
    }
    .chip-count {
      font-size: 10px;
      color: var(--text-muted);
      background: var(--bg-canvas);
      padding: 0 4px;
      border-radius: 999px;
    }

    .data-table tr.row-focused td {
      outline: 2px solid var(--brand-navy);
      outline-offset: -2px;
    }
    [data-theme="dark"] .data-table tr.row-focused td {
      outline-color: var(--brand-cyan);
    }
    .data-table tr.row-selected td {
      background: rgba(0, 196, 204, 0.08);
    }
    .data-table tr.row-disabled td {
      opacity: 0.65;
      cursor: not-allowed;
    }

    /* Light Scrim Over Table Area Behind Drawer (Starts below 54px top bar) */
    .drawer-scrim {
      position: fixed;
      top: 54px;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(11, 18, 32, 0.25);
      z-index: 140;
      display: block;
      backdrop-filter: blur(1px);
    }
    .drawer-scrim.hidden { display: none; pointer-events: none; }

    /* Right Detail Drawer (Overlays Table: starts below 54px top bar, 480px, 180ms slide) */
    .drawer,
    .detail-drawer {
      position: fixed;
      top: 54px;
      bottom: 0;
      right: 0;
      width: 480px;
      max-width: 100vw;
      z-index: 150;
      background: var(--bg-surface);
      border-left: 1px solid var(--border-hairline);
      box-shadow: -8px 0 32px rgba(11, 18, 32, 0.12);
      display: flex;
      flex-direction: column;
      transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      filter: none;
    }
    .detail-drawer {
      transform: translateX(0);
      pointer-events: auto;
    }
    .drawer {
      transform: translateX(100%);
      pointer-events: none;
    }
    .drawer.open {
      transform: translateX(0);
      pointer-events: auto;
    }
    [dir="rtl"] .drawer,
    [dir="rtl"] .detail-drawer {
      right: auto;
      left: 0;
      border-left: none;
      border-right: 1px solid var(--border-hairline);
      box-shadow: 8px 0 32px rgba(11, 18, 32, 0.12);
    }
    [dir="rtl"] .drawer {
      transform: translateX(-100%);
      pointer-events: none;
    }
    [dir="rtl"] .drawer.open {
      transform: translateX(0);
      pointer-events: auto;
    }
    .detail-drawer.closed {
      transform: translateX(100%);
      pointer-events: none;
    }
    [dir="rtl"] .detail-drawer.closed {
      transform: translateX(-100%);
      pointer-events: none;
    }

    .drawer-header {
      padding: 14px 20px;
      border-bottom: 1px solid var(--border-hairline);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .drawer-title {
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 700;
      color: var(--brand-navy-text);
    }
    .drawer-close-btn {
      background: transparent;
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-sm);
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      transition: all 120ms ease;
    }
    .drawer-close-btn:hover {
      background: var(--bg-surface-hover);
      color: var(--text-primary);
    }

    .drawer-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .drawer-section {
      background: var(--bg-canvas);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-md);
      padding: 12px 14px;
    }
    .drawer-section-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .hubspot-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #FFF7ED;
      color: #C2410C;
      border: 1px solid #FFEDD5;
      padding: 2px 8px;
      border-radius: var(--radius-sm);
      font-size: 11px;
      font-weight: 600;
    }
    [data-theme="dark"] .hubspot-chip {
      background: rgba(194, 65, 12, 0.2);
      border-color: rgba(194, 65, 12, 0.4);
      color: #FDBA74;
    }

    .poa-approval-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline-strong);
      border-radius: var(--radius-md);
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .poa-input {
      height: 32px;
      padding: 0 10px;
      background: var(--bg-canvas);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-md);
      font-size: 13px;
      color: var(--text-primary);
      outline: none;
    }
    .poa-input:focus { border-color: var(--brand-navy-text); }

    .audit-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 11px;
    }
    .audit-entry {
      display: flex;
      gap: 8px;
      color: var(--text-secondary);
    }
    .audit-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--brand-navy-text);
      margin-top: 5px;
    }
    .audit-time { font-family: monospace; color: var(--text-muted); }

    /* Brand Logo Constraint (Single .brand-logo class: 24px sidebar, 20px mobile header, 120px max login) */
    .brand-logo {
      display: block;
      height: 24px;
      width: auto;
      max-height: 24px;
      max-width: 120px;
      object-fit: contain;
      border-radius: 6px;
      flex-shrink: 0;
    }
    .sidebar .brand-logo,
    .sidebar-brand .brand-logo {
      height: 24px;
      width: 24px;
      max-height: 24px;
      max-width: 24px;
      object-fit: cover;
    }
    .mobile-header-bar .brand-logo,
    .mobile-app-brand .brand-logo {
      height: 20px;
      width: 20px;
      max-height: 20px;
      max-width: 20px;
      border-radius: 5px;
      object-fit: cover;
    }
    .login-container .brand-logo {
      height: auto;
      width: auto;
      max-width: 120px;
      max-height: 120px;
      margin: 0 auto 12px;
      border-radius: 10px;
      object-fit: contain;
    }
    @media (max-width: 768px) {
      .top-bar .brand-logo,
      .sidebar-brand .brand-logo {
        height: 20px;
        width: 20px;
        max-height: 20px;
        max-width: 20px;
      }
    }

    /* Login Card & Form Layout (Styleguide) */
    .login-container {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: var(--bg-canvas);
    }
    .login-card {
      width: 100%;
      max-width: 380px;
      padding: 32px;
      background: var(--bg-surface);
      border: 1px solid var(--border-hairline);
      border-radius: var(--radius-lg);
      box-shadow: 0 8px 24px rgba(10, 34, 89, 0.06);
    }
    .login-header {
      text-align: center;
      margin-bottom: 24px;
    }
    .login-title {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 700;
      color: var(--brand-navy-text);
      margin-bottom: 4px;
    }
    .login-subtitle {
      font-size: 12px;
      color: var(--text-muted);
    }
    .login-form .form-group {
      margin-bottom: 14px;
    }
    .login-form .form-label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }
    .login-form .input-field {
      width: 100%;
      height: 38px;
      padding: 0 12px;
      background: var(--bg-canvas);
      border: 1px solid var(--border-hairline-strong);
      border-radius: var(--radius-md);
      font-size: 13px;
      color: var(--text-primary);
      outline: none;
      transition: border-color 120ms ease, box-shadow 120ms ease;
    }
    .login-form .input-field:focus {
      border-color: var(--brand-cyan);
      box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.16);
      background: var(--bg-surface);
    }
    .login-submit {
      width: 100%;
      height: 40px;
      margin-top: 8px;
      font-size: 13px;
      font-weight: 600;
      background: var(--brand-cyan);
      color: var(--text-on-cyan);
      border-color: var(--brand-cyan);
    }
    .login-submit:hover {
      filter: brightness(0.96);
    }


