
    /* ==========================================================================
       DESIGN TOKENS & SYSTEM FOUNDATIONS (agency-ux-architect & agency-ui-designer)
       ========================================================================== */
    :root {
      /* Color Palette: Tactical HUD / Deep Space Telemetry */
      --bg-base: #070B12;
      --bg-surface-1: #0D1424;
      --bg-surface-2: #131E35;
      --bg-surface-3: #1A2847;
      --bg-card: rgba(13, 20, 36, 0.85);
      --bg-card-hover: rgba(22, 34, 60, 0.95);
      
      /* Borders & Lines */
      --border-subtle: rgba(255, 255, 255, 0.07);
      --border-medium: rgba(30, 58, 102, 0.7);
      --border-bright: rgba(0, 229, 255, 0.35);
      --border-glow: 0 0 15px rgba(0, 229, 255, 0.15);

      /* Accent & Semantic Colors */
      --cyan-hud: #00E5FF;
      --cyan-hud-glow: rgba(0, 229, 255, 0.25);
      --cyan-dim: rgba(0, 229, 255, 0.12);
      
      --emerald-live: #10B981;
      --emerald-dim: rgba(16, 185, 129, 0.12);
      
      --amber-alert: #F59E0B;
      --amber-dim: rgba(245, 158, 11, 0.12);
      
      --rose-danger: #F43F5E;
      --rose-dim: rgba(244, 63, 94, 0.12);
      
      --purple-accent: #A855F7;
      --purple-dim: rgba(168, 85, 247, 0.12);

      /* Typography */
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

      /* Text Colors */
      --text-white: #FFFFFF;
      --text-primary: #F1F5F9;
      --text-secondary: #94A3B8;
      --text-muted: #64748B;
      --text-dim: #475569;

      /* Radii */
      --r-sm: 4px;
      --r-md: 8px;
      --r-lg: 12px;
      --r-xl: 16px;

      /* Shadows */
      --shadow-hud: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
      --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);

      /* Transitions (emil-design-eng) */
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --transition-fast: 140ms var(--ease-out);
      --transition-normal: 220ms var(--ease-out);
    }

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

    body {
      background-color: var(--bg-base);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 13px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      min-height: 100vh;
      background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.03) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
      background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
      background-position: 0 0, 0 0, -1px -1px, -1px -1px;
    }

    /* Layout Shell */
    .app-shell {
      display: flex;
      height: 100vh;
      width: 100vw;
      overflow: hidden;
    }

    /* ==========================================================================
       SIDEBAR HUD (agency-ux-architect)
       ========================================================================== */
    .sidebar {
      width: 270px;
      min-width: 270px;
      background: var(--bg-surface-1);
      border-right: 1px solid var(--border-medium);
      display: flex;
      flex-direction: column;
      z-index: 40;
      position: relative;
    }

    .brand-block {
      padding: 20px 22px 18px;
      border-bottom: 1px solid var(--border-medium);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .brand-logo-hud {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(168, 85, 247, 0.2));
      border: 1px solid var(--cyan-hud);
      border-radius: var(--r-md);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
    }

    .brand-logo-hud svg {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: var(--cyan-hud);
      stroke-width: 2;
    }

    .brand-meta {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .brand-title {
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 14px;
      letter-spacing: 0.08em;
      color: var(--text-white);
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      overflow-wrap: anywhere;
    }

    .brand-tag {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--cyan-hud);
      background: var(--cyan-dim);
      padding: 2px 6px;
      border-radius: var(--r-sm);
      border: 1px solid rgba(0, 229, 255, 0.25);
    }

    .brand-subtitle {
      font-size: 11px;
      color: var(--text-muted);
      letter-spacing: 0.02em;
      overflow-wrap: anywhere;
    }

    /* Navigation */
    .nav-list {
      list-style: none;
      padding: 14px 12px;
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .nav-label {
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      color: var(--text-dim);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 12px 10px 6px;
    }

    .nav-item-btn {
      width: 100%;
      text-align: left;
      background: transparent;
      border: 1px solid transparent;
      border-radius: var(--r-md);
      padding: 9px 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-secondary);
      font-size: 12.5px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform 100ms ease;
      position: relative;
    }

    .nav-item-btn:hover {
      background: var(--bg-surface-2);
      color: var(--text-primary);
      border-color: rgba(255, 255, 255, 0.05);
    }

    .nav-item-btn:active {
      transform: scale(0.98);
    }

    .nav-item-btn.active {
      background: linear-gradient(90deg, rgba(0, 229, 255, 0.12) 0%, rgba(0, 229, 255, 0.03) 100%);
      color: var(--cyan-hud);
      font-weight: 600;
      border-color: rgba(0, 229, 255, 0.3);
      box-shadow: inset 2px 0 0 var(--cyan-hud);
    }

    .nav-icon {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 1.8;
      fill: none;
      flex-shrink: 0;
    }

    .nav-counter {
      margin-left: auto;
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 1px 6px;
      border-radius: 10px;
      background: var(--bg-surface-3);
      color: var(--text-muted);
      border: 1px solid var(--border-subtle);
    }

    .nav-item-btn.active .nav-counter {
      background: var(--cyan-dim);
      color: var(--cyan-hud);
      border-color: rgba(0, 229, 255, 0.3);
    }

    /* Sidebar Footer Telemetry */
    .sidebar-footer {
      padding: 16px;
      background: rgba(8, 14, 26, 0.9);
      border-top: 1px solid var(--border-medium);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .telemetry-pill {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 10px;
      background: var(--bg-surface-2);
      border: 1px solid var(--border-subtle);
      border-radius: var(--r-md);
      font-family: var(--font-mono);
      font-size: 11px;
    }

    .pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--emerald-live);
      box-shadow: 0 0 8px var(--emerald-live);
      animation: pulseAnim 2s infinite ease-in-out;
    }

    @keyframes pulseAnim {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
    }

    .pulse-amber {
      background: var(--amber-alert);
      box-shadow: 0 0 8px var(--amber-alert);
    }

    /* ==========================================================================
       MAIN CONTENT CONTAINER
       ========================================================================== */
    .main-canvas {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: transparent;
      position: relative;
    }

    /* TOP HUD BAR */
    .top-hud-bar {
      min-height: 60px;
      border-bottom: 1px solid var(--border-medium);
      background: rgba(13, 20, 36, 0.85);
      backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 28px;
      flex-wrap: wrap;
      z-index: 30;
    }

    .hud-title-zone {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      min-width: 0;
      max-width: 100%;
    }

    .page-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-white);
      letter-spacing: -0.01em;
      overflow-wrap: anywhere;
    }

    .market-badge {
      font-family: var(--font-mono);
      font-size: 11px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle);
      padding: 3px 8px;
      border-radius: var(--r-sm);
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 6px;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    .hud-stats-zone {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      min-width: 0;
      max-width: 100%;
    }

    .budget-hud {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg-surface-2);
      border: 1px solid var(--border-medium);
      padding: 5px 12px;
      border-radius: var(--r-md);
      font-family: var(--font-mono);
      font-size: 11.5px;
    }

    .budget-progress-track {
      width: 70px;
      height: 5px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      overflow: hidden;
    }

    .budget-progress-fill {
      height: 100%;
      width: 15%; /* $0.80 of $8.00 */
      background: var(--cyan-hud);
      box-shadow: 0 0 6px var(--cyan-hud);
    }

    .role-toggle {
      display: flex;
      background: var(--bg-surface-1);
      border: 1px solid var(--border-medium);
      border-radius: var(--r-md);
      padding: 2px;
      gap: 2px;
    }

    .role-toggle-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: var(--r-sm);
      cursor: pointer;
      transition: background-color var(--transition-fast), color var(--transition-fast);
    }

    .role-toggle-btn.active {
      background: var(--cyan-hud);
      color: #060B14;
      box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }

    /* SCROLLABLE VIEW PORT */
    .view-content {
      flex: 1;
      overflow-y: auto;
      padding: 26px 32px 48px;
    }

    .tab-panel {
      display: none;
      animation: fadeIn var(--transition-normal);
    }

    .tab-panel.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ==========================================================================
       DASHBOARD COMPONENTS & HUD CARDS
       ========================================================================== */
    /* Metric Cards Grid */
    .hud-metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-bottom: 24px;
    }

    .hud-card {
      background: var(--bg-card);
      border: 1px solid var(--border-medium);
      border-radius: var(--r-lg);
      padding: 18px 20px;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(8px);
      box-shadow: var(--shadow-card);
      transition: border-color var(--transition-fast), transform var(--transition-fast);
    }

    .hud-card:hover {
      border-color: rgba(0, 229, 255, 0.4);
      transform: translateY(-1px);
    }

    .hud-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 32px;
      height: 2px;
      background: var(--cyan-hud);
      box-shadow: 0 0 8px var(--cyan-hud);
    }

    .hud-card-label {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }

    .hud-card-value {
      font-size: 26px;
      font-weight: 700;
      font-family: var(--font-mono);
      color: var(--text-white);
      letter-spacing: -0.02em;
      margin-bottom: 6px;
      display: flex;
      align-items: baseline;
      gap: 6px;
    }

    .hud-card-sub {
      font-size: 11.5px;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Status Pill Badges */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-mono);
      font-size: 10.5px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: var(--r-sm);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .status-active {
      background: var(--emerald-dim);
      color: var(--emerald-live);
      border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .status-alert {
      background: var(--amber-dim);
      color: var(--amber-alert);
      border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .status-danger {
      background: var(--rose-dim);
      color: var(--rose-danger);
      border: 1px solid rgba(244, 63, 94, 0.3);
    }

    .status-cold {
      background: rgba(148, 163, 184, 0.1);
      color: var(--text-secondary);
      border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .status-cyan {
      background: var(--cyan-dim);
      color: var(--cyan-hud);
      border: 1px solid rgba(0, 229, 255, 0.3);
    }

    /* Layout Split: 2 Column HUD Grid */
    .hud-dual-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 20px;
      margin-bottom: 24px;
    }

    .section-box {
      background: var(--bg-card);
      border: 1px solid var(--border-medium);
      border-radius: var(--r-lg);
      padding: 22px;
      position: relative;
    }

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .section-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-white);
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: -0.01em;
    }

    /* Action List Items */
    .task-stack {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .task-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      background: var(--bg-surface-2);
      border: 1px solid var(--border-subtle);
      border-radius: var(--r-md);
      transition: border-color var(--transition-fast), background-color var(--transition-fast);
    }

    .task-item:hover {
      border-color: rgba(0, 229, 255, 0.25);
      background: rgba(19, 30, 53, 0.95);
    }

    .task-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .task-tag {
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      padding: 2px 6px;
      border-radius: var(--r-sm);
    }

    .task-name {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 13px;
    }

    .task-sub {
      font-size: 11px;
      color: var(--text-muted);
    }

    /* Modern Buttons (emil-design-eng) */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      font-family: var(--font-sans);
      font-size: 12px;
      font-weight: 600;
      padding: 7px 14px;
      border-radius: var(--r-md);
      cursor: pointer;
      border: 1px solid transparent;
      transition: transform 120ms ease, background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    }

    .btn:active {
      transform: scale(0.97);
    }

    .btn-primary {
      background: var(--cyan-hud);
      color: #050B14;
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
    }

    .btn-primary:hover {
      background: #33EBFF;
      box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
    }

    .btn-secondary {
      background: var(--bg-surface-3);
      color: var(--text-primary);
      border-color: var(--border-medium);
    }

    .btn-secondary:hover {
      background: rgba(30, 46, 78, 0.8);
      border-color: var(--cyan-hud);
      color: var(--text-white);
    }

    .btn-sm {
      padding: 5px 10px;
      font-size: 11px;
    }

    /* Table Styles */
    .hud-table-wrapper {
      border: 1px solid var(--border-medium);
      border-radius: var(--r-lg);
      overflow: hidden;
      background: var(--bg-surface-1);
    }

    .hud-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 12.5px;
    }

    .hud-table th {
      background: rgba(13, 20, 36, 0.95);
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 10.5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-medium);
    }

    .hud-table td {
      padding: 13px 16px;
      border-bottom: 1px solid var(--border-subtle);
      color: var(--text-primary);
      vertical-align: middle;
    }

    .hud-table tr:hover td {
      background: rgba(19, 30, 53, 0.5);
    }

    .mono-cell {
      font-family: var(--font-mono);
      font-size: 12px;
    }

    /* XRAY Engine Panel (Specific to Exelo specs) */
    .xray-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .calc-box {
      background: var(--bg-surface-2);
      border: 1px solid var(--border-medium);
      border-radius: var(--r-lg);
      padding: 20px;
    }

    .calc-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px dashed var(--border-subtle);
      font-size: 12.5px;
    }

    .calc-row:last-child {
      border-bottom: none;
    }

    .calc-input {
      background: var(--bg-base);
      border: 1px solid var(--border-medium);
      color: var(--cyan-hud);
      font-family: var(--font-mono);
      font-size: 12px;
      padding: 5px 10px;
      border-radius: var(--r-sm);
      width: 90px;
      text-align: right;
    }

    .calc-input:focus {
      outline: none;
      border-color: var(--cyan-hud);
      box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
    }

    .calc-total {
      margin-top: 14px;
      padding: 14px;
      background: rgba(0, 229, 255, 0.05);
      border: 1px solid rgba(0, 229, 255, 0.2);
      border-radius: var(--r-md);
      display: flex;
      justify-content: space-between;
      align-items: baseline;
    }

    .calc-total-val {
      font-size: 22px;
      font-weight: 700;
      font-family: var(--font-mono);
      color: var(--cyan-hud);
    }

    /* Payoneer Rejection Banner */
    .rejection-banner {
      background: rgba(244, 63, 94, 0.08);
      border: 1px solid rgba(244, 63, 94, 0.3);
      border-radius: var(--r-md);
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .rejection-banner svg {
      width: 22px;
      height: 22px;
      stroke: var(--rose-danger);
      flex-shrink: 0;
    }

    /* Drawer / Modal HUD */
    .hud-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
    }

    .hud-modal {
      width: 680px;
      max-width: 90vw;
      background: var(--bg-surface-1);
      border: 1px solid var(--cyan-hud);
      border-radius: var(--r-xl);
      box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
      overflow: hidden;
      animation: modalPop 180ms var(--ease-out);
    }

    @keyframes modalPop {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .modal-head {
      padding: 18px 24px;
      border-bottom: 1px solid var(--border-medium);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg-surface-2);
    }

    .modal-body {
      padding: 24px;
      max-height: 75vh;
      overflow-y: auto;
    }

    /* Phase Progress Strip */
    .phase-strip {
      display: flex;
      gap: 4px;
      background: var(--bg-surface-1);
      padding: 6px;
      border-radius: var(--r-lg);
      border: 1px solid var(--border-medium);
      margin-bottom: 24px;
      overflow-x: auto;
    }

    .phase-chip {
      flex: 1;
      min-width: 95px;
      padding: 8px 10px;
      border-radius: var(--r-md);
      background: var(--bg-surface-2);
      border: 1px solid var(--border-subtle);
      font-size: 11px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      transition: border-color var(--transition-fast);
    }

    .phase-chip.completed {
      background: var(--emerald-dim);
      border-color: rgba(16, 185, 129, 0.4);
    }

    .phase-chip.completed .phase-no {
      color: var(--emerald-live);
    }

    .phase-chip.current {
      background: var(--cyan-dim);
      border-color: var(--cyan-hud);
    }

    .phase-chip.pending {
      opacity: 0.6;
    }

    .phase-no {
      font-family: var(--font-mono);
      font-size: 9px;
      font-weight: 700;
      color: var(--text-muted);
    }

    .phase-chip.current .phase-no {
      color: var(--cyan-hud);
    }

    .phase-name {
      font-weight: 600;
      color: var(--text-white);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Client View Portal Preview Specific */
    .client-portal-preview {
      border: 2px dashed rgba(0, 229, 255, 0.4);
      border-radius: var(--r-xl);
      padding: 24px;
      background: rgba(10, 16, 28, 0.95);
      position: relative;
    }

    .preview-watermark {
      position: absolute;
      top: 14px;
      right: 18px;
      font-family: var(--font-mono);
      font-size: 10px;
      background: var(--cyan-hud);
      color: #060B14;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: var(--r-sm);
    }

    /* Responsive adjustments */
    @media (max-width: 1024px) {
      .hud-metrics-grid { grid-template-columns: repeat(2, 1fr); }
      .hud-dual-grid { grid-template-columns: 1fr; }
      .xray-container { grid-template-columns: 1fr; }
    }

    /* Faz 0: honest states, readable controls and native dialogs. */
    :root { --text-muted: #9AACCD; --text-dim: #8DA5C9; }
    .main-canvas, .view-content { min-width: 0; min-height: 0; }
    button:focus-visible, a:focus-visible, input:focus-visible {
      outline: 2px solid var(--cyan-hud); outline-offset: 3px;
    }
    .btn, .role-toggle-btn, .nav-item-btn { min-height: 44px; }
    .mobile-only { display: none; }
    .section-header { gap: 12px; flex-wrap: wrap; }
    #tab-billing { overflow-wrap: anywhere; }
    #tab-billing .hud-table-wrapper { overflow-x: auto; }
    #tab-billing .hud-table th { font-size: 11px; }
    .readiness-table th, .readiness-table td { padding: 12px; vertical-align: top; }
    .readiness-table tbody th { width: 26%; text-transform: none; letter-spacing: 0; color: var(--text-primary); }
    .readiness-table td:nth-child(2) { width: 22%; }
    .readiness-source { color: var(--text-secondary); font-size: 12px; margin-bottom: 16px; }
    .readiness-table .state-observed { color: var(--cyan-hud); }
    .readiness-table .state-pending { color: var(--amber-alert); }
    .bank-private-note { padding: 16px; border: 1px solid var(--border-medium); border-radius: var(--r-md); background: var(--bg-surface-2); }
    .hud-modal-overlay {
      position: fixed; inset: 0; margin: auto; padding: 0;
      width: min(680px, calc(100vw - 32px)); max-width: none;
      max-height: calc(100dvh - 32px); height: fit-content;
      background: var(--bg-surface-1); color: var(--text-primary);
      border: 1px solid var(--border-medium); border-radius: var(--r-xl);
      backdrop-filter: none; overflow: auto;
    }
    .hud-modal-overlay[open] { display: block; }
    dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
    .hud-modal { width: 100%; max-width: none; border: 0; box-shadow: none; }
    .modal-head { gap: 16px; }
    .modal-body { overflow-wrap: anywhere; max-height: calc(100dvh - 150px); }
    .navigation-dialog { margin: 0; padding: 0; height: 100dvh; max-height: 100dvh; width: min(320px, calc(100vw - 24px)); max-width: none; border: 0; background: var(--bg-surface-1); color: var(--text-primary); }
    .navigation-dialog .sidebar { width: 100%; min-width: 0; height: 100%; }
    @media (max-width: 767px) {
      .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
      .app-shell { height: 100dvh; }
      .top-hud-bar { height: auto; min-height: 60px; padding: 12px; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
      .hud-title-zone, .hud-stats-zone { flex-wrap: wrap; gap: 10px; min-width: 0; }
      .hud-title-zone { width: 100%; }
      .page-title { font-size: 15px; }
      .market-badge { white-space: normal; }
      .hud-stats-zone { width: 100%; }
      .budget-hud { flex-wrap: wrap; }
      .view-content { padding: 16px 12px 32px; }
      .hud-metrics-grid { grid-template-columns: 1fr; }
      .section-box { padding: 16px; }
      .readiness-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
      .readiness-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
      .readiness-table tbody th, .readiness-table td:nth-child(2) { width: auto; }
      .readiness-table td:last-child { grid-column: 1 / -1; padding-top: 0; color: var(--text-secondary); }
      .readiness-table tbody th { font-size: 12px; }
      #tab-billing .hud-card-sub { font-size: 14px; }
      .modal-head, .modal-body { padding: 16px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .pulse-dot, .tab-panel, .hud-modal { animation: none; }
      .nav-item-btn, .btn, .hud-card { transition: none; }
      .nav-item-btn:active, .hud-card:hover { transform: none; }
    }

    /* Business customization: public policy draft, not a secret store. */
    .profile-note { max-width: 75ch; color: var(--text-secondary); font-size: 13px; margin: 12px 0 20px; }
    .profile-details { border-top: 1px solid var(--border-medium); padding: 16px 0; }
    .profile-details summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 44px; display: list-item; margin-left: 18px; padding: 10px 0; }
    .profile-details summary:focus-visible { outline: 2px solid var(--cyan-hud); outline-offset: 3px; }
    .profile-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); gap: 18px; margin: 12px 0; }
    .profile-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
    .profile-field input, .profile-field textarea, .profile-field select { width: 100%; min-height: 44px; border: 1px solid var(--border-medium); border-radius: var(--r-md); padding: 10px 12px; color: var(--text-primary); background: var(--bg-surface-2); font: inherit; caret-color: var(--cyan-hud); }
    .profile-field textarea { min-height: 88px; resize: vertical; }
    .profile-field input::placeholder, .profile-field textarea::placeholder { color: var(--text-muted); opacity: 1; }
    .profile-field small { color: var(--text-muted); font-size: 12px; }
    .profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
    #profile-status { margin-top: 12px; font-size: 13px; color: var(--cyan-hud); overflow-wrap: anywhere; }
    select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan-hud); outline-offset: 3px; }
  