    /* =============================================
       THEME DEFINITIONS
       ============================================= */

    /* Cream (Light - default) */
    [data-theme="cream"], :root {
      --bg: #faf8f5;
      --bg-alt: #f5f0eb;
      --surface: #ffffff;
      --panel: #ffffff;
      --panel-light: #fdfcfb;
      --ink: #1a1a1a;
      --ink-secondary: #4a4a4a;
      --ink-muted: #7a7a7a;
      --muted: #999;
      --line: #e8e0d8;
      --line-soft: #f0ebe5;
      --border: #d8d0c8;
      --accent: #b8860b;
      --accent-secondary: #8b6914;
      --accent-glow: rgba(184, 134, 11, 0.15);
      --cyan: #0891b2;
      --teal: #0d9488;
      --gold: #b8860b;
      --glow: rgba(184, 134, 11, 0.08);
      --loading-overlay-bg: rgba(250, 248, 245, 0.9);

      --hr-green: #059669;
      --hr-green-bg: #ecfdf5;
      --hr-amber: #d97706;
      --hr-amber-bg: #fffbeb;
      --hr-red: #dc2626;
      --hr-red-bg: #fef2f2;
      --hr-purple: #7c3aed;
      --hr-purple-bg: #f5f3ff;
      --hr-blue: #2563eb;
      --hr-blue-bg: #eff6ff;
      --hr-dark: #1f2937;
      --hr-muted: #6b7280;
      --hr-sand: #f9fafb;
      --hr-gold: #b8860b;
      --hr-radius: 12px;
      --hr-radius-sm: 8px;
      --hr-shadow: 0 1px 3px rgba(0,0,0,0.1);
      --hr-border: #e5e7eb;
    }

    /* Ocean Breeze (Light) */
    [data-theme="ocean"] {
      --bg: #f0f7fa;
      --bg-alt: #e8f1f5;
      --surface: #ffffff;
      --panel: #ffffff;
      --panel-light: #f8fbfc;
      --ink: #1a2a3a;
      --ink-secondary: #3a5a6a;
      --ink-muted: #6a8a9a;
      --muted: #8aa;
      --line: #d0e0e8;
      --line-soft: #e8f0f4;
      --border: #b8d0d8;
      --accent: #0077b6;
      --accent-secondary: #005a8c;
      --accent-glow: rgba(0, 119, 182, 0.15);
      --cyan: #0891b2;
      --teal: #0d9488;
      --gold: #b8860b;
      --glow: rgba(0, 119, 182, 0.08);
      --loading-overlay-bg: rgba(240, 247, 250, 0.9);

      --hr-dark: #1a2a3a;
      --hr-muted: #5a7a8a;
      --hr-sand: #f0f7fa;
      --hr-border: #c8d8e0;
    }

    /* Tanzanite (Dark) */
    [data-theme="tanzanite"] {
      --bg: #1a1a2e;
      --bg-alt: #16213e;
      --surface: #222244;
      --panel: #1e1e3a;
      --panel-light: #28284a;
      --ink: #e0e0f0;
      --ink-secondary: #b0b0d0;
      --ink-muted: #8080a0;
      --muted: #7070a0;
      --line: #333366;
      --line-soft: #2a2a50;
      --border: #444477;
      --accent: #8b5cf6;
      --accent-secondary: #7c3aed;
      --accent-glow: rgba(139, 92, 246, 0.2);
      --cyan: #22d3ee;
      --teal: #2dd4bf;
      --gold: #f59e0b;
      --glow: rgba(139, 92, 246, 0.1);
      --loading-overlay-bg: rgba(26, 26, 46, 0.9);

      --hr-dark: #e0e0f0;
      --hr-muted: #9090b0;
      --hr-sand: #222244;
      --hr-gold: #f59e0b;
      --hr-border: #444477;
      --hr-green-bg: rgba(5, 150, 105, 0.15);
      --hr-amber-bg: rgba(217, 119, 6, 0.15);
      --hr-red-bg: rgba(220, 38, 38, 0.15);
      --hr-purple-bg: rgba(124, 58, 237, 0.15);
      --hr-blue-bg: rgba(37, 99, 235, 0.15);
    }

    /* Midnight (Dark) */
    [data-theme="midnight"] {
      --bg: #0f172a;
      --bg-alt: #1e293b;
      --surface: #1e293b;
      --panel: #162033;
      --panel-light: #1e293b;
      --ink: #e2e8f0;
      --ink-secondary: #94a3b8;
      --ink-muted: #64748b;
      --muted: #64748b;
      --line: #334155;
      --line-soft: #1e293b;
      --border: #475569;
      --accent: #38bdf8;
      --accent-secondary: #0ea5e9;
      --accent-glow: rgba(56, 189, 248, 0.15);
      --cyan: #22d3ee;
      --teal: #2dd4bf;
      --gold: #fbbf24;
      --glow: rgba(56, 189, 248, 0.08);
      --loading-overlay-bg: rgba(15, 23, 42, 0.9);

      --hr-dark: #e2e8f0;
      --hr-muted: #94a3b8;
      --hr-sand: #1e293b;
      --hr-gold: #fbbf24;
      --hr-border: #475569;
      --hr-green-bg: rgba(5, 150, 105, 0.15);
      --hr-amber-bg: rgba(217, 119, 6, 0.15);
      --hr-red-bg: rgba(220, 38, 38, 0.15);
      --hr-purple-bg: rgba(124, 58, 237, 0.15);
      --hr-blue-bg: rgba(37, 99, 235, 0.15);
    }

    /* Obsidian (Dark) */
    [data-theme="obsidian"] {
      --bg: #0a0a0a;
      --bg-alt: #141414;
      --surface: #1a1a1a;
      --panel: #121212;
      --panel-light: #1e1e1e;
      --ink: #e0e0e0;
      --ink-secondary: #a0a0a0;
      --ink-muted: #707070;
      --muted: #606060;
      --line: #2a2a2a;
      --line-soft: #1e1e1e;
      --border: #3a3a3a;
      --accent: #a855f7;
      --accent-secondary: #9333ea;
      --accent-glow: rgba(168, 85, 247, 0.15);
      --cyan: #22d3ee;
      --teal: #2dd4bf;
      --gold: #f59e0b;
      --glow: rgba(168, 85, 247, 0.08);
      --loading-overlay-bg: rgba(10, 10, 10, 0.9);

      --hr-dark: #e0e0e0;
      --hr-muted: #909090;
      --hr-sand: #1a1a1a;
      --hr-gold: #f59e0b;
      --hr-border: #3a3a3a;
      --hr-green-bg: rgba(5, 150, 105, 0.15);
      --hr-amber-bg: rgba(217, 119, 6, 0.15);
      --hr-red-bg: rgba(220, 38, 38, 0.15);
      --hr-purple-bg: rgba(124, 58, 237, 0.15);
      --hr-blue-bg: rgba(37, 99, 235, 0.15);
    }
    
    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg, linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%));
      min-height: 100vh;
      color: var(--hr-dark);
      line-height: 1.6;
    }
    
    body.toolbar-active {
      padding-top: 56px;
    }
    
    /* App Layout */
    .app-container {
      display: grid;
      grid-template-columns: 400px 1fr;
      min-height: 100vh;
    }
    
    /* Input Panel */
    .input-panel {
      background: var(--surface, white);
      padding: 24px;
      overflow-y: auto;
      border-right: 1px solid var(--hr-sand);
    }
    
    .input-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 2px solid var(--hr-sand);
    }
    
    .input-logo {
      font-size: 28px;
    }
    
    .input-title {
      font-size: 18px;
      font-weight: 700;
    }
    
    .input-subtitle {
      font-size: 12px;
      color: var(--hr-muted);
    }
    
    .input-section {
      margin-bottom: 20px;
    }
    
    .input-section-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--hr-muted);
      margin-bottom: 10px;
    }
    
    .input-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 12px;
    }
    
    .input-group {
      margin-bottom: 12px;
    }
    
    .input-label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 4px;
      color: var(--hr-dark);
    }
    
    .input-field {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #ddd;
      border-radius: var(--hr-radius-sm);
      font-size: 14px;
      transition: border-color 0.2s;
    }
    
    .input-field:focus {
      outline: none;
      border-color: var(--hr-gold);
    }
    
    textarea.input-field {
      min-height: 80px;
      resize: vertical;
    }
    
    .input-hint {
      font-size: 11px;
      color: var(--hr-muted);
      margin-top: 4px;
    }
    
    /* Collapsible Sections */
    .input-section.collapsible {
      border: 1px solid var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      padding: 0;
    }
    
    .input-section.collapsible .input-section-title {
      margin: 0;
      padding: 12px 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      user-select: none;
    }
    
    .input-section.collapsible[open] .input-section-title {
      border-radius: var(--hr-radius-sm) var(--hr-radius-sm) 0 0;
    }
    
    .input-section.collapsible .input-section-title::after {
      content: '▼';
      font-size: 10px;
      color: var(--hr-muted);
      transition: transform 0.2s;
    }
    
    .input-section.collapsible[open] .input-section-title::after {
      transform: rotate(180deg);
    }
    
    .collapsible-content {
      padding: 16px;
    }
    
    .optional-tag {
      font-size: 10px;
      font-weight: 500;
      color: var(--hr-muted);
      background: white;
      padding: 2px 8px;
      border-radius: 10px;
      margin-left: 8px;
    }
    
    /* Raw Notes Area */
    .raw-notes-area {
      position: relative;
    }

    .raw-notes-textarea {
      width: 100%;
      min-height: 110px;
      padding: 10px 12px;
      border: 1px solid #ddd;
      border-radius: var(--hr-radius-sm);
      font-size: 13px;
      font-family: inherit;
      resize: vertical;
      line-height: 1.5;
      transition: border-color 0.2s;
    }

    .raw-notes-textarea:focus {
      outline: none;
      border-color: var(--hr-gold);
    }

    .raw-notes-textarea::placeholder {
      color: #aaa;
    }

    .parse-btn {
      margin-top: 8px;
      width: 100%;
      padding: 9px 14px;
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: white;
      border: none;
      border-radius: var(--hr-radius-sm);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: opacity 0.2s, transform 0.15s;
    }

    .parse-btn:hover { opacity: 0.9; transform: translateY(-1px); }
    .parse-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

    /* Smart Fill Popup */
    .smartfill-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
    }
    .smartfill-overlay.active { display: flex; }

    .smartfill-modal {
      background: white;
      border-radius: var(--hr-radius);
      width: 420px;
      max-width: 95vw;
      box-shadow: 0 20px 60px rgba(0,0,0,0.25);
      overflow: hidden;
    }

    .smartfill-header {
      background: linear-gradient(135deg, #1f2937, #2d2520);
      color: white;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .smartfill-header-title {
      font-size: 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .smartfill-close {
      background: none;
      border: none;
      color: rgba(255,255,255,0.7);
      font-size: 20px;
      cursor: pointer;
      line-height: 1;
    }
    .smartfill-close:hover { color: white; }

    .smartfill-body {
      padding: 20px;
    }

    .smartfill-loading {
      text-align: center;
      padding: 24px 0;
    }

    .smartfill-spinner {
      width: 36px;
      height: 36px;
      border: 3px solid #e5e7eb;
      border-top-color: var(--hr-gold);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 12px;
    }

    .smartfill-field-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-height: 340px;
      overflow-y: auto;
    }

    .smartfill-field {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 12px;
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      border: 1px solid transparent;
      transition: border-color 0.15s;
    }

    .smartfill-field:hover { border-color: var(--hr-gold); }

    .smartfill-field input[type=checkbox] {
      margin-top: 2px;
      accent-color: var(--hr-gold);
      width: 15px;
      height: 15px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .smartfill-field-info { flex: 1; min-width: 0; }

    .smartfill-field-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--hr-muted);
      text-transform: uppercase;
      letter-spacing: 0.4px;
      margin-bottom: 2px;
    }

    .smartfill-field-value {
      font-size: 13px;
      color: var(--hr-dark);
      word-break: break-word;
    }

    .smartfill-field-value.multiline {
      font-size: 12px;
      color: #444;
      line-height: 1.4;
      max-height: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .smartfill-footer {
      padding: 14px 20px;
      border-top: 1px solid #f0f0f0;
      display: flex;
      gap: 10px;
    }

    .smartfill-apply-btn {
      flex: 1;
      padding: 10px;
      background: linear-gradient(135deg, var(--hr-gold), #b8941f);
      color: white;
      border: none;
      border-radius: var(--hr-radius-sm);
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .smartfill-apply-btn:hover { opacity: 0.9; }

    .smartfill-cancel-btn {
      padding: 10px 16px;
      background: var(--hr-sand);
      border: 1px solid #ddd;
      border-radius: var(--hr-radius-sm);
      font-size: 13px;
      cursor: pointer;
    }

    .smartfill-notice {
      font-size: 11px;
      color: var(--hr-muted);
      text-align: center;
      margin-top: 10px;
    }

    /* Drop Zone */
    .drop-zone {
      border: 2px dashed var(--hr-sand);
      border-radius: var(--hr-radius);
      padding: 24px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      background: #fafafa;
    }
    
    .drop-zone:hover,
    .drop-zone.drag-over {
      border-color: var(--hr-gold);
      background: var(--hr-sand);
    }
    
    .drop-zone.drag-over {
      transform: scale(1.02);
    }
    
    .drop-zone-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }
    
    .drop-zone-text {
      font-size: 14px;
      font-weight: 600;
      color: var(--hr-dark);
      margin-bottom: 4px;
    }
    
    .drop-zone-hint {
      font-size: 11px;
      color: var(--hr-muted);
    }
    
    .uploaded-files {
      margin-top: 12px;
    }
    
    .uploaded-file {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      background: white;
      border: 1px solid var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      margin-bottom: 8px;
      font-size: 13px;
    }
    
    .uploaded-file-info {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      min-width: 0;
    }
    
    .uploaded-file-icon {
      font-size: 20px;
      flex-shrink: 0;
    }
    
    .uploaded-file-name {
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .uploaded-file-size {
      font-size: 11px;
      color: var(--hr-muted);
      flex-shrink: 0;
    }
    
    .uploaded-file-status {
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 10px;
      margin-left: 8px;
      flex-shrink: 0;
    }
    
    .uploaded-file-status.success {
      background: var(--hr-green-bg);
      color: var(--hr-green);
    }
    
    .uploaded-file-status.processing {
      background: var(--hr-amber-bg);
      color: #92400e;
    }
    
    .uploaded-file-status.error {
      background: var(--hr-red-bg);
      color: var(--hr-red);
    }
    
    .uploaded-file-remove {
      background: none;
      border: none;
      color: var(--hr-muted);
      cursor: pointer;
      font-size: 16px;
      padding: 4px;
      margin-left: 8px;
      flex-shrink: 0;
    }
    
    .uploaded-file-remove:hover {
      color: var(--hr-red);
    }
    
    /* Mode Pills */
    .mode-pills {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }
    
    .mode-pill {
      flex: 1;
      padding: 10px 8px;
      border: 2px solid var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      background: white;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
    }
    
    .mode-pill:hover {
      border-color: var(--hr-gold);
    }
    
    .mode-pill.active {
      background: var(--hr-gold);
      border-color: var(--hr-gold);
      color: white;
    }
    
    /* Generate Button */
    .generate-btn {
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, var(--hr-gold) 0%, #b8941f 100%);
      color: white;
      border: none;
      border-radius: var(--hr-radius);
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .generate-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    }
    
    .generate-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    
    /* Output Panel */
    .output-panel {
      padding: 24px;
      overflow-y: auto;
    }
    
    .output-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      text-align: center;
      color: var(--hr-muted);
    }
    
    .output-empty-icon {
      font-size: 64px;
      margin-bottom: 16px;
      opacity: 0.5;
    }
    
    .output-empty-title {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--hr-dark);
    }
    
    /* Loading State */
    .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    
    .loading-overlay.active {
      display: flex;
    }
    
    .loading-box {
      background: white;
      padding: 32px 48px;
      border-radius: var(--hr-radius);
      text-align: center;
    }
    
    .loading-spinner {
      width: 48px;
      height: 48px;
      border: 4px solid var(--hr-sand);
      border-top-color: var(--hr-gold);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 16px;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    /* Report Styles */
    .report-container {
      max-width: 900px;
      margin: 0 auto;
    }
    
    .report-header {
      text-align: center;
      margin-bottom: 24px;
      padding: 24px;
      background: linear-gradient(135deg, var(--hr-dark) 0%, #2d2520 100%);
      border-radius: var(--hr-radius);
      color: white;
    }
    
    .report-brand {
      font-size: 12px;
      font-weight: 600;
      color: var(--hr-gold);
      margin-bottom: 8px;
    }
    
    .report-title {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 4px;
    }
    
    .report-subtitle {
      font-size: 14px;
      opacity: 0.8;
    }
    
    .report-period {
      font-size: 12px;
      margin-top: 8px;
      opacity: 0.7;
    }
    
    /* AI Attribution */
    .ai-attribution {
      display: flex;
      justify-content: center;
      gap: 12px;
      padding: 10px;
      background: linear-gradient(90deg, #f8f9fa, #e9ecef);
      border-radius: var(--hr-radius-sm);
      margin-bottom: 20px;
    }
    
    .ai-pill {
      padding: 4px 10px;
      background: white;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
      color: var(--hr-muted);
      border: 1px solid var(--hr-sand);
    }
    
    .ai-pill.verified {
      background: var(--hr-green-bg);
      border-color: var(--hr-green);
      color: var(--hr-green);
    }
    
    /* Audit Bar */
    .audit-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 20px;
      background: white;
      border-radius: var(--hr-radius);
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .audit-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .audit-badge {
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
    }
    
    .audit-badge.pass { background: var(--hr-green-bg); color: var(--hr-green); }
    .audit-badge.conditional { background: var(--hr-amber-bg); color: #92400e; }
    .audit-badge.fail { background: var(--hr-red-bg); color: var(--hr-red); }
    
    /* Hero Section */
    .hero-section {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 24px;
      align-items: center;
      margin-bottom: 24px;
    }
    
    .score-circle {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      flex-shrink: 0;
      text-align: center;
      padding: 10px;
      box-sizing: border-box;
      overflow: hidden;
      position: relative;
    }
    
    .score-circle:hover {
      transform: scale(1.05);
    }
    
    .score-circle.expanded {
      width: 200px;
      height: 200px;
    }
    
    .score-circle.expanded:hover {
      transform: scale(1);
    }
    
    .score-main {
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.3s ease;
    }
    
    .score-circle.expanded .score-main {
      transform: scale(0.65);
      margin-bottom: -8px;
    }
    
    .score-breakdown {
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 2px;
      font-size: 9px;
      width: 90%;
    }
    
    .score-circle.expanded .score-breakdown {
      display: flex;
    }
    
    .score-breakdown-item {
      display: flex;
      justify-content: space-between;
      opacity: 0.95;
      line-height: 1.3;
    }
    
    .score-breakdown-label {
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .score-breakdown-value {
      font-weight: 700;
      margin-left: 4px;
    }
    
    .score-circle.green { background: linear-gradient(135deg, var(--hr-green), #059669); }
    .score-circle.amber { background: linear-gradient(135deg, var(--hr-amber), #d97706); }
    .score-circle.red { background: linear-gradient(135deg, var(--hr-red), #dc2626); }
    
    .score-number {
      font-size: 38px;
      font-weight: 800;
      line-height: 1;
    }
    
    .score-scale {
      font-size: 11px;
      opacity: 0.9;
    }
    
    .score-label {
      font-size: 10px;
      font-weight: 600;
      margin-top: 2px;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .hero-content {
      padding: 16px 0;
    }
    
    .hero-headline {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    
    .hero-summary {
      font-size: 15px;
      color: var(--hr-muted);
      margin-bottom: 12px;
    }
    
    .trend-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 16px;
      font-size: 13px;
      font-weight: 600;
    }
    
    .trend-badge.up { background: var(--hr-green-bg); color: var(--hr-green); }
    .trend-badge.down { background: var(--hr-red-bg); color: var(--hr-red); }
    .trend-badge.flat { background: var(--hr-sand); color: var(--hr-muted); }
    
    /* Confidence Pills */
    .conf-pill {
      display: inline-flex;
      padding: 2px 6px;
      border-radius: 8px;
      font-size: 9px;
      font-weight: 500;
      margin-left: 6px;
      opacity: 0.7;
    }
    
    .conf-pill.direct { background: #e5e7eb; color: #374151; }
    .conf-pill.inferred { background: #e5e7eb; color: #374151; }
    .conf-pill.judgment { background: #fef3c7; color: #92400e; }
    
    /* Stats Row */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    
    .stat-card {
      background: white;
      border-radius: var(--hr-radius);
      padding: 20px;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      border: 1px solid var(--hr-sand);
    }
    
    .stat-value {
      font-size: 28px;
      font-weight: 800;
    }
    
    .stat-value span {
      font-size: 14px;
      color: var(--hr-muted);
      font-weight: 400;
    }
    
    .stat-value.green { color: var(--hr-green); }
    .stat-value.amber { color: var(--hr-amber); }
    .stat-value.red { color: var(--hr-red); }
    
    .stat-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--hr-muted);
    }
    
    /* Sections */
    .section {
      background: white;
      border-radius: var(--hr-radius);
      padding: 20px 24px;
      margin-bottom: 24px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      border: 1px solid var(--hr-sand);
    }
    
    .section-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .section-hint {
      font-size: 11px;
      font-weight: 400;
      color: var(--hr-muted);
    }
    
    .section p {
      margin: 0 0 12px 0;
      font-size: 14px;
    }
    
    /* 9-Box Grid */
    .ninebox-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 80px);
      gap: 8px;
      margin-bottom: 20px;
      position: relative;
    }
    
    .ninebox-ylabel {
      position: absolute;
      left: -28px;
      top: 50%;
      transform: translateY(-50%) rotate(-90deg);
      font-size: 10px;
      font-weight: 600;
      color: var(--hr-muted);
      text-transform: uppercase;
      white-space: nowrap;
    }
    
    .ninebox-xlabel {
      text-align: center;
      font-size: 10px;
      font-weight: 600;
      color: var(--hr-muted);
      text-transform: uppercase;
      margin-top: 8px;
    }
    
    .ninebox-cell {
      border-radius: var(--hr-radius-sm);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
    }
    
    .ninebox-cell:hover {
      transform: scale(1.05);
    }
    
    .ninebox-cell.active {
      border-color: var(--hr-gold);
      box-shadow: 0 0 20px rgba(201, 162, 39, 0.6), 0 0 40px rgba(201, 162, 39, 0.3);
      transform: scale(1.1);
      animation: pulse-glow 2s ease-in-out infinite;
      z-index: 10;
    }
    
    @keyframes pulse-glow {
      0%, 100% { box-shadow: 0 0 20px rgba(201, 162, 39, 0.6), 0 0 40px rgba(201, 162, 39, 0.3); }
      50% { box-shadow: 0 0 30px rgba(201, 162, 39, 0.8), 0 0 60px rgba(201, 162, 39, 0.5); }
    }
    
    .ninebox-cell.star { background: #f0fdf4; }
    .ninebox-cell.potential { background: #eff6ff; }
    .ninebox-cell.core { background: #f5f3ff; }
    .ninebox-cell.solid, .ninebox-cell.effective { background: #f9fafb; }
    .ninebox-cell.gem { background: #fefce8; }
    .ninebox-cell.inconsistent { background: #fffbeb; }
    .ninebox-cell.risk { background: #fef2f2; }
    .ninebox-cell.under { background: #fef2f2; }
    
    .ninebox-cell-icon {
      font-size: 20px;
      margin-bottom: 4px;
    }
    
    .ninebox-cell-label {
      font-size: 10px;
      font-weight: 600;
      text-align: center;
    }
    
    .ninebox-detail {
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      padding: 16px;
    }
    
    .ninebox-detail-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    
    /* Competency Cards */
    .comp-card {
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      margin-bottom: 12px;
      overflow: hidden;
    }
    
    .comp-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 16px;
      cursor: pointer;
    }
    
    .comp-header:hover {
      background: rgba(0,0,0,0.02);
    }
    
    .comp-name {
      font-size: 14px;
      font-weight: 600;
    }
    
    .comp-score-area {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .comp-bar {
      width: 80px;
      height: 6px;
      background: rgba(0,0,0,0.1);
      border-radius: 3px;
      overflow: hidden;
    }
    
    .comp-bar-fill {
      height: 100%;
      border-radius: 3px;
    }
    
    .comp-bar-fill.green { background: var(--hr-green); }
    .comp-bar-fill.amber { background: var(--hr-amber); }
    .comp-bar-fill.red { background: var(--hr-red); }
    
    .comp-score {
      font-size: 16px;
      font-weight: 700;
      min-width: 32px;
      text-align: right;
    }
    
    .comp-score.green { color: var(--hr-green); }
    .comp-score.amber { color: var(--hr-amber); }
    .comp-score.red { color: var(--hr-red); }
    
    .comp-expand {
      font-size: 10px;
      color: var(--hr-muted);
      transition: transform 0.2s;
    }
    
    .comp-card.expanded .comp-expand {
      transform: rotate(180deg);
    }
    
    .comp-body {
      display: none;
      padding: 0 16px 16px;
      font-size: 13px;
    }
    
    .comp-card.expanded .comp-body {
      display: block;
    }
    
    .comp-rationale {
      background: white;
      padding: 12px;
      border-radius: 6px;
      margin-bottom: 12px;
    }
    
    .bars-scale {
      background: white;
      border-radius: 6px;
      padding: 12px;
      margin-top: 12px;
    }
    
    .bars-level {
      display: flex;
      gap: 10px;
      padding: 6px 0;
      border-bottom: 1px solid var(--hr-sand);
      font-size: 12px;
    }
    
    .bars-level:last-child {
      border-bottom: none;
    }
    
    .bars-level-num {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--hr-sand);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 11px;
    }
    
    .bars-level.current .bars-level-num {
      background: var(--hr-gold);
      color: white;
    }
    
    .bars-level.current .bars-level-text {
      font-weight: 600;
    }
    
    .bars-level-text {
      flex: 1;
      color: var(--hr-muted);
    }
    
    /* OKRs */
    .okr-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    
    .okr-overall {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .okr-pct {
      font-size: 24px;
      font-weight: 800;
    }
    
    .okr-bar {
      width: 120px;
      height: 8px;
      background: var(--hr-sand);
      border-radius: 4px;
      overflow: hidden;
    }
    
    .okr-bar-fill {
      height: 100%;
      border-radius: 4px;
    }
    
    .okr-objective {
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      padding: 16px;
      margin-bottom: 12px;
    }
    
    .okr-obj-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }
    
    .okr-obj-title {
      font-size: 14px;
      font-weight: 600;
    }
    
    .okr-obj-pct {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 700;
    }
    
    .okr-kr {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
      border-top: 1px solid rgba(0,0,0,0.06);
      font-size: 13px;
    }
    
    .okr-kr-status {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: white;
    }
    
    .okr-kr-status.achieved { background: var(--hr-green); }
    .okr-kr-status.on-track { background: var(--hr-amber); }
    .okr-kr-status.at-risk { background: var(--hr-red); }
    
    .okr-kr-text {
      flex: 1;
    }
    
    .okr-kr-progress {
      font-size: 12px;
      color: var(--hr-muted);
    }
    
    /* Values */
    .values-overall {
      font-size: 12px;
      color: var(--hr-muted);
      margin-left: auto;
    }
    
    .value-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--hr-sand);
    }
    
    .value-item:last-child {
      border-bottom: none;
    }
    
    .value-name {
      width: 120px;
      font-size: 13px;
      font-weight: 500;
    }
    
    .value-bar {
      flex: 1;
      height: 8px;
      background: var(--hr-sand);
      border-radius: 4px;
      overflow: hidden;
    }
    
    .value-bar-fill {
      height: 100%;
      background: var(--hr-purple);
      border-radius: 4px;
    }
    
    .value-score {
      font-size: 14px;
      font-weight: 700;
      width: 32px;
      text-align: right;
    }
    
    /* 360 Feedback */
    .feedback-sources {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 16px;
    }
    
    .feedback-source {
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      padding: 16px;
      text-align: center;
    }
    
    .feedback-source-name {
      display: block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--hr-muted);
      margin-bottom: 4px;
    }
    
    .feedback-source-score {
      font-size: 24px;
      font-weight: 800;
    }
    
    .feedback-gap-alert {
      background: var(--hr-amber-bg);
      border-left: 3px solid var(--hr-amber);
      padding: 12px 16px;
      border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0;
      font-size: 13px;
      margin-bottom: 16px;
    }
    
    .feedback-themes {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    
    .feedback-theme {
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      padding: 14px;
    }
    
    .feedback-theme.strength {
      border-left: 3px solid var(--hr-green);
    }
    
    .feedback-theme.dev {
      border-left: 3px solid var(--hr-amber);
    }
    
    .feedback-theme-title {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--hr-muted);
      margin-bottom: 8px;
    }
    
    .feedback-theme div {
      font-size: 13px;
      margin-bottom: 4px;
    }
    
    /* Retention Risk Indicators */
    .flight-meter {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 16px;
    }
    
    .flight-gauge {
      flex: 1;
      height: 12px;
      background: linear-gradient(90deg, var(--hr-green), var(--hr-amber), var(--hr-red));
      border-radius: 6px;
      position: relative;
    }
    
    .flight-indicator {
      position: absolute;
      top: -4px;
      width: 20px;
      height: 20px;
      background: white;
      border: 3px solid var(--hr-dark);
      border-radius: 50%;
      transform: translateX(-50%);
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    
    .flight-label {
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 16px;
    }
    
    .flight-label.low { background: var(--hr-green-bg); color: var(--hr-green); }
    .flight-label.medium { background: var(--hr-amber-bg); color: #92400e; }
    .flight-label.high, .flight-label.critical { background: var(--hr-red-bg); color: var(--hr-red); }
    
    .flight-factors {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }
    
    .flight-factor {
      padding: 6px 12px;
      border-radius: 16px;
      font-size: 12px;
      font-weight: 500;
    }
    
    .flight-factor.positive { background: var(--hr-green-bg); color: var(--hr-green); }
    .flight-factor.negative { background: var(--hr-red-bg); color: var(--hr-red); }
    
    .flight-mitigations {
      background: var(--hr-sand);
      border-radius: var(--hr-radius-sm);
      padding: 14px;
      font-size: 13px;
    }
    
    .flight-mitigations strong {
      font-size: 11px;
      text-transform: uppercase;
      color: var(--hr-muted);
      display: block;
      margin-bottom: 8px;
    }
    
    /* Highlights */
    .highlight {
      border-radius: var(--hr-radius);
      padding: 20px 24px;
      margin-bottom: 24px;
      background: var(--hr-sand);
      border-left: 4px solid var(--hr-border);
    }
    
    .highlight.success { border-left-color: var(--hr-green); }
    .highlight.info { border-left-color: var(--hr-blue); }
    .highlight.warning { border-left-color: var(--hr-amber); }
    
    .highlight-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    
    .highlight-text {
      font-size: 14px;
    }
    
    /* Dev Plan */
    .devplan-item {
      display: flex;
      gap: 16px;
      padding: 16px 0;
      border-bottom: 1px solid var(--hr-sand);
    }
    
    .devplan-item:last-child {
      border-bottom: none;
    }
    
    .devplan-num {
      width: 32px;
      height: 32px;
      background: var(--hr-gold);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      flex-shrink: 0;
    }
    
    .devplan-goal {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 4px;
    }
    
    .devplan-action {
      font-size: 13px;
      color: var(--hr-muted);
      margin-bottom: 8px;
    }
    
    .devplan-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 12px;
      color: var(--hr-muted);
    }
    
    /* Recommendation */
    .recommendation {
      background: linear-gradient(135deg, var(--hr-dark), #2d2520);
      color: white;
    }
    
    .rec-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    
    .rec-badge {
      background: var(--hr-gold);
      color: white;
      padding: 6px 12px;
      border-radius: 16px;
      font-size: 11px;
      font-weight: 700;
    }
    
    .rec-summary {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    
    .rec-rationale {
      font-size: 14px;
      opacity: 0.9;
      margin-bottom: 16px;
    }
    
    .rec-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    
    .rec-action {
      background: rgba(255,255,255,0.15);
      padding: 6px 12px;
      border-radius: 16px;
      font-size: 12px;
    }
    
    /* Acknowledgment */
    .acknowledgment {
      background: var(--hr-sand);
    }
    
    .ack-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      font-size: 13px;
    }
    
    .ack-row input {
      width: 18px;
      height: 18px;
    }
    
    .ack-comments {
      width: 100%;
      min-height: 80px;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: var(--hr-radius-sm);
      font-size: 13px;
      margin-top: 12px;
      resize: vertical;
    }
    
    /* Footer */
    .report-footer {
      text-align: center;
      padding: 24px;
      color: var(--hr-muted);
      font-size: 12px;
    }
    
    .footer-brand {
      font-weight: 700;
      color: var(--hr-gold);
    }
    
    .footer-disclaimer {
      opacity: 0.7;
      font-size: 10px;
    }
    
    /* Actions Bar */
    .actions-bar {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-bottom: 24px;
    }
    
    .action-btn {
      padding: 12px 24px;
      border-radius: var(--hr-radius-sm);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
    }
    
    .action-btn.primary {
      background: var(--hr-gold);
      color: white;
    }
    
    .action-btn.secondary {
      background: var(--hr-sand);
      color: var(--hr-dark);
    }
    
    .action-btn:hover {
      transform: translateY(-2px);
    }
    
    /* Hidden Section */
    .section-hidden {
      padding: 20px;
      background: var(--hr-sand);
      border-radius: var(--hr-radius);
      text-align: center;
      margin-bottom: 24px;
    }
    
    .section-hidden-icon {
      font-size: 24px;
      margin-bottom: 8px;
    }
    
    .section-hidden-title {
      font-weight: 700;
    }
    
    .section-hidden-notice {
      font-size: 12px;
      color: var(--hr-muted);
      font-style: italic;
    }
    
    /* Responsive */
    @media (max-width: 1024px) {
      .app-container {
        grid-template-columns: 1fr;
      }
      .input-panel {
        border-right: none;
        border-bottom: 1px solid var(--hr-sand);
      }
    }
    
    @media (max-width: 768px) {
      .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .score-circle {
        margin: 0 auto;
      }
      .stats-row {
        grid-template-columns: repeat(2, 1fr);
      }
      .feedback-sources {
        grid-template-columns: repeat(2, 1fr);
      }
      .feedback-themes {
        grid-template-columns: 1fr;
      }
    }
    
    @media print {
      .input-panel, .loading-overlay, .actions-bar, .floating-controls {
        display: none !important;
      }
      .app-container {
        display: block;
      }
      .output-panel {
        padding: 0;
      }
      .section, .highlight {
        break-inside: avoid;
      }
    }
    
    /* Floating Controls Panel */
    .floating-controls {
      position: sticky;
      top: 0;
      background: white;
      border-radius: var(--hr-radius);
      box-shadow: var(--hr-shadow);
      padding: 12px 16px;
      margin-bottom: 20px;
      z-index: 100;
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    
    .floating-controls-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--hr-muted);
      text-transform: uppercase;
    }
    
    .floating-controls-toggles {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      flex: 1;
    }
    
    .toggle-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: var(--hr-sand);
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
      user-select: none;
    }
    
    .toggle-chip:hover {
      background: #e8e0d5;
    }
    
    .toggle-chip.active {
      background: var(--hr-gold);
      color: white;
    }
    
    .toggle-chip input {
      display: none;
    }
    
    .toggle-chip-icon {
      font-size: 14px;
    }

    /* =============================================
       TOOLBAR
       ============================================= */
    .app-toolbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 56px;
      background: var(--bg-alt);
      border-bottom: 1px solid var(--line);
      display: none;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      z-index: 1000;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .app-toolbar.active {
      display: flex;
    }

    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .toolbar-btn {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      color: var(--ink);
      transition: all 0.2s ease;
    }

    .toolbar-btn:hover {
      border-color: var(--cyan);
    }

    .toolbar-btn:active {
      transform: scale(0.96);
    }

    .toolbar-btn svg {
      width: 20px;
      height: 20px;
      display: block;
    }

    .toolbar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo-icon-img {
      width: 32px;
      height: 32px;
      object-fit: contain;
    }

    .logo-text {
      font-family: 'Playfair Display', Georgia, serif !important;
      font-weight: 600;
      font-size: 1.25rem;
      color: var(--ink);
    }

    /* Theme Selector */
    .theme-selector {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .theme-label {
      display: flex;
      align-items: center;
    }

    .theme-label svg {
      width: 18px;
      height: 18px;
      color: var(--ink-muted, #999);
    }

    .theme-selector select {
      appearance: none;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 32px 8px 12px;
      font-size: 0.875rem;
      font-family: inherit;
      color: var(--ink);
      cursor: pointer;
      transition: all 0.2s ease;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
    }

    .theme-selector select:hover {
      border-color: var(--cyan);
    }

    .theme-selector select:focus {
      outline: none;
      border-color: var(--cyan);
      box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    }

    /* =============================================
       USER PROFILE DROPDOWN
       ============================================= */
    .user-profile-dropdown {
      position: relative;
    }

    .user-profile-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px 6px 6px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 24px;
      cursor: pointer;
      transition: all 0.2s ease;
      width: auto;
      height: auto;
    }

    .user-profile-btn:hover {
      background: var(--surface, #f9f9f9);
      border-color: var(--muted, #aaa);
    }

    .user-name-display {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--ink);
    }

    .dropdown-arrow {
      color: var(--ink-muted, #999);
    }

    .user-avatar-small {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--cyan, #0891b2), var(--teal, #0d9488));
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      color: white;
      font-size: 12px;
      flex-shrink: 0;
    }

    .user-avatar-large {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--cyan, #0891b2), var(--teal, #0d9488));
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: white;
      font-size: 16px;
      flex-shrink: 0;
    }

    .profile-dropdown-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 280px;
      background: var(--panel, #fff);
      border: 1px solid var(--border, #ddd);
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px) scale(0.95);
      transform-origin: top right;
      transition: all 0.2s ease;
      z-index: 1001;
    }

    .profile-dropdown-menu.show,
    .profile-dropdown-menu.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    .profile-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
    }

    .profile-info {
      overflow: hidden;
    }

    .profile-name {
      font-weight: 600;
      font-size: 14px;
      color: var(--ink, #333);
    }

    .profile-email {
      font-size: 12px;
      color: var(--ink-muted, #888);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .profile-plan {
      font-size: 11px;
      color: var(--accent, #b8860b);
      font-weight: 600;
      margin-top: 2px;
    }

    .profile-divider {
      height: 1px;
      background: var(--border, #eee);
    }

    .profile-menu-item {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      padding: 12px 16px;
      background: transparent;
      border: none;
      color: var(--ink, #333);
      font-size: 14px;
      cursor: pointer;
      transition: background 0.15s;
      text-align: left;
    }

    .profile-menu-item:hover {
      background: var(--surface, #f9f9f9);
    }

    /* =============================================
       APP LAUNCHER
       ============================================= */
    .app-launcher-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.3);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease;
      z-index: 998;
    }

    .app-launcher-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .app-launcher {
      position: fixed;
      top: 64px;
      left: 16px;
      width: 420px;
      background: var(--surface, #fff);
      border: 1px solid var(--line, #eee);
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
      opacity: 0;
      visibility: hidden;
      transform: scale(0.9) translateY(-10px);
      transform-origin: top left;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 999;
      overflow: hidden;
      max-height: 80vh;
    }

    .app-launcher.active {
      opacity: 1;
      visibility: visible;
      transform: scale(1) translateY(0);
    }

    .app-launcher-header {
      padding: 16px;
      border-bottom: 1px solid var(--line, #eee);
      font-weight: 600;
      font-size: 14px;
      color: var(--ink, #333);
    }

    .app-launcher-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      padding: 12px;
      overflow-y: auto;
      max-height: calc(80vh - 60px);
    }

    .app-launcher-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 12px 8px;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.15s;
      text-decoration: none;
      color: var(--ink, #333);
    }

    .app-launcher-item:hover {
      background: var(--line-soft, #f5f5f5);
    }

    .app-launcher-item.current {
      border: 2px solid var(--cyan, #0891b2);
      background: var(--glow, rgba(0,0,0,0.03));
    }

    .app-launcher-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

    .app-launcher-label {
      font-size: 11px;
      text-align: center;
      line-height: 1.3;
      font-weight: 500;
    }
