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

  :root {
    --ink: #0a0a0b;
    --paper: #f6f3ee;
    --cream: #edeae3;
    --accent: #3d6e91;
    --accent-light: #5d91b5;
    --accent-glow: rgba(61,110,145,0.18);
    --accent-dim: rgba(61,110,145,0.07);
    --steel: #1e2a36;
    --muted: #8a8480;
    --muted-light: #b0aba5;
    --border: #d4cfc7;
    --border-light: #e8e3db;
    --success: #1a6b3c;
    --success-dim: rgba(26,107,60,0.07);
    --warning: #7a4d0a;
    --card: #ffffff;
    --output-bg: #0e1117;
    --output-surface: #141820;
    --output-border: rgba(255,255,255,0.06);
    --output-muted: rgba(255,255,255,0.35);
    --output-text: rgba(255,255,255,0.88);
    --shadow-sm: 0 1px 3px rgba(10,10,11,0.08);
    --shadow: 0 4px 20px rgba(10,10,11,0.1), 0 1px 4px rgba(10,10,11,0.06);
    --shadow-lg: 0 12px 48px rgba(10,10,11,0.2), 0 2px 8px rgba(10,10,11,0.1);
    --shadow-accent: 0 8px 32px rgba(61,110,145,0.22);
    --radius: 14px;
    --radius-sm: 8px;
  }

  html { scroll-behavior: smooth; }
  body { font-family: 'Instrument Sans', sans-serif; background: var(--paper); color: var(--ink); min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }

  /* HEADER */
  header { background: var(--ink); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 58px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.04); }
  header::after { content: ''; position: absolute; bottom: 0; left: 48px; right: 48px; height: 1px; background: linear-gradient(90deg, transparent, rgba(61,110,145,0.4), transparent); }
  .logo { display: flex; align-items: center; gap: 10px; }
  .logo-name { font-family: 'DM Serif Display', serif; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
  .logo-tag { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--accent-light); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
  .header-right { display: flex; align-items: center; gap: 16px; }
  .header-meta { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.25); letter-spacing: 0.1em; text-transform: uppercase; }
  #headerAdjuster { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
  #headerAdjuster::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.8); } }

  /* HERO */
  .hero { background: var(--ink); padding: 20px 48px; position: relative; overflow: hidden; }
  .hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(61,110,145,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(61,110,145,0.04) 1px, transparent 1px); background-size: 52px 52px; pointer-events: none; }
  .hero-glow-1 { position: absolute; top: -120px; right: -80px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(61,110,145,0.1) 0%, transparent 65%); pointer-events: none; }
  .hero-inner { max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .hero-left { flex-shrink: 0; }
  .hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(20px,2vw,28px); color: #fff; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0; opacity: 0; animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) forwards 0.1s; }
  .hero h1 em { color: var(--accent-light); font-style: italic; }

  .hero-chips {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
    opacity: 0; animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) forwards 0.32s;
  }
  .hero-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 12px; color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    transition: all 0.2s;
  }
  .hero-chip svg { opacity: 0.5; flex-shrink: 0; }
  .hero-chip:hover { background: rgba(61,110,145,0.1); border-color: rgba(61,110,145,0.2); color: var(--accent-light); }
  .hero-chip:hover svg { opacity: 0.8; }
  @keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

  /* HISTORY STRIP */
  .history-strip { display: none; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 48px; }
  .history-strip.visible { display: block; }
  .history-strip-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .history-strip-inner::-webkit-scrollbar { display: none; }
  .history-strip-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); white-space: nowrap; padding: 0 16px 0 0; border-right: 1px solid rgba(255,255,255,0.07); margin-right: 4px; flex-shrink: 0; }
  .history-tab { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-right: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: background 0.15s; white-space: nowrap; flex-shrink: 0; position: relative; border-top: 2px solid transparent; }
  .history-tab:hover { background: rgba(255,255,255,0.04); }
  .history-tab.active { background: rgba(61,110,145,0.1); border-top-color: var(--accent); }
  .history-tab-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.75); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
  .history-tab.active .history-tab-title { color: #fff; }
  .history-new-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.55); border-left: 1px solid rgba(255,255,255,0.05); margin-left: auto; transition: color 0.15s; }
  .history-new-btn:hover { color: var(--accent-light); }

  /* MAIN */
  .main { max-width: 1400px; margin: 0 auto; padding: 48px; display: grid; grid-template-columns: 1fr 1.8fr; gap: 24px; align-items: start; }
  .input-col { align-self: start; }

  /* PANELS */
  .panel { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); opacity: 0; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) forwards 0.42s; }
  .panel-header { padding: 16px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 12px; background: linear-gradient(to bottom, var(--cream), #eae5dc); }
  .panel-icon { width: 28px; height: 28px; background: var(--ink); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(10,10,11,0.25); }
  .panel-icon svg { width: 13px; height: 13px; stroke: rgba(255,255,255,0.8); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .panel-title { font-size: 12px; font-weight: 600; color: var(--ink); }
  .panel-subtitle { font-size: 10px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 2px; letter-spacing: 0.03em; }
  .panel-body { padding: 24px; }

  /* FORM */
  .field-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; display: block; }
  .field-group { margin-bottom: 22px; }
  .field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; font-family: 'DM Mono', monospace; line-height: 1.5; }

  input[type="text"], input[type="password"], textarea, select { width: 100%; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 13px; font-family: 'DM Mono', monospace; font-size: 14px; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; appearance: none; }
  input[type="password"] { letter-spacing: 0.1em; }
  input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: #fff; }
  textarea { resize: vertical; min-height: 76px; line-height: 1.6; font-size: 14px; font-family: 'Instrument Sans', sans-serif; }
  select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8480'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

  /* UPLOAD */
  .upload-zone { border: 1.5px dashed var(--border); border-radius: 10px; padding: 28px 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--paper); margin-bottom: 20px; position: relative; }
  .upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
  .upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
  .upload-icon { width: 36px; height: 36px; margin: 0 auto 10px; background: var(--cream); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
  .upload-icon svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .upload-primary { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
  .upload-secondary { font-size: 10px; color: var(--muted); font-family: 'DM Mono', monospace; }

  .file-attached { display: none; align-items: center; gap: 9px; padding: 9px 13px; background: var(--success-dim); border: 1px solid rgba(26,107,60,0.16); border-radius: var(--radius-sm); margin-bottom: 20px; }
  .file-attached.visible { display: flex; }
  .file-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
  .file-name { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--success); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-remove { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 2px; transition: color 0.15s; }
  .file-remove:hover { color: #c0392b; }

  /* VIN */
  .vin-confirmed { display: none; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; background: var(--success-dim); border: 1px solid rgba(26,107,60,0.15); border-radius: 7px; }
  .vin-confirmed.visible { display: flex; }
  .vin-confirmed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
  .vin-confirmed-text { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--success); flex: 1; }
  .vin-error { display: none; font-family: 'DM Mono', monospace; font-size: 10px; color: #c0392b; margin-top: 5px; }
  .vin-error.visible { display: block; }
  .vin-loading { display: none; font-family: 'DM Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 5px; }
  .vin-loading.visible { display: block; }

  /* RECALLS */
  .recall-list { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
  .recall-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; background: rgba(192,57,43,0.04); border: 1px solid rgba(192,57,43,0.12); border-radius: 6px; }
  .recall-dot { width: 5px; height: 5px; border-radius: 50%; background: #c0392b; flex-shrink: 0; margin-top: 4px; }
  .recall-text { font-size: 10px; color: var(--ink); line-height: 1.5; }
  .recall-campaign { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--muted); margin-top: 1px; }

  /* TOGGLES */
  .tech-find-row { display: flex; gap: 8px; }
  .tech-option { flex: 1; position: relative; }
  .tech-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
  .tech-option label { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--paper); transition: all 0.15s; height: 100%; }
  .tech-option input:checked + label { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); font-weight: 600; }
  .tech-note { margin-top: 12px; display: none; }
  .tech-note.visible { display: block; }

  /* CHECKLIST */
  .auth-checklist { margin-top: 16px; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
  .auth-checklist-header { padding: 10px 14px; background: rgba(255,255,255,0.04); font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
  .auth-checklist-items { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,0.02); }
  .auth-checklist-item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
  .auth-checklist-item input[type="checkbox"] { margin-top: 2px; width: 14px; height: 14px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
  .auth-checklist-item label { font-size: 12px; color: var(--output-text); line-height: 1.5; cursor: pointer; }
  .auth-checklist-item.checked label { color: rgba(255,255,255,0.25); text-decoration: line-through; }
  .auth-checklist-status { padding: 8px 14px; font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.55); border-top: 1px solid rgba(255,255,255,0.06); text-align: center; letter-spacing: 0.08em; }

  /* BUTTONS */
  .btn-row { display: flex; gap: 8px; margin-top: 4px; }
  .clear-btn { flex: 0 0 auto; padding: 12px 18px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 7px; }
  .clear-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
  .submit-btn { flex: 1; padding: 12px 24px; background: var(--ink); color: #fff; border: none; border-radius: 10px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; letter-spacing: 0.01em; position: relative; overflow: hidden; }
  .submit-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%); pointer-events: none; }
  .submit-btn:hover:not(:disabled) { background: var(--accent); transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow-accent); }
  .submit-btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
  .submit-btn:disabled { background: var(--border); color: var(--muted-light); cursor: not-allowed; }
  .submit-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* OUTPUT PANEL */
  .output-panel { grid-column: 2; grid-row: 1 / span 2; align-self: start; opacity: 0; animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) forwards 0.52s; }
  .output-panel .panel { background: var(--output-bg); border-color: var(--output-border); box-shadow: var(--shadow-lg); animation: none; opacity: 1; position: sticky; top: 74px; }
  .output-panel .panel-header { background: var(--output-surface); border-bottom-color: var(--output-border); }
  .output-panel .panel-icon { background: rgba(61,110,145,0.15); box-shadow: none; }
  .output-panel .panel-icon svg { stroke: var(--accent-light); }
  .output-panel .panel-title { color: rgba(255,255,255,0.85); }
  .output-panel .panel-subtitle { color: rgba(255,255,255,0.65); }
  .output-panel .panel-body { padding: 28px; }

  .output-empty { padding: 64px 24px; text-align: center; }
  .output-empty-icon { width: 48px; height: 48px; background: var(--output-surface); border: 1px solid var(--output-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
  .output-empty-icon svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.18); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .output-empty-title { font-family: 'DM Serif Display', serif; font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 8px; letter-spacing: -0.01em; }
  .output-empty-sub { font-size: 11px; color: rgba(255,255,255,0.2); line-height: 1.7; max-width: 240px; margin: 0 auto; }

  /* LOADING */
  .loading-state { display: none; padding: 52px 24px; text-align: center; }
  .loading-state.visible { display: block; }
  .loading-orb { width: 48px; height: 48px; margin: 0 auto 20px; position: relative; }
  .loading-orb::before, .loading-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; }
  .loading-orb::before { border-top-color: var(--accent-light); border-right-color: rgba(61,110,145,0.25); animation: spin 0.8s linear infinite; }
  .loading-orb::after { inset: 6px; border-top-color: rgba(61,110,145,0.45); animation: spin 1.2s linear infinite reverse; }
  .loading-center { position: absolute; inset: 14px; background: var(--accent); border-radius: 50%; opacity: 0.25; animation: pulse 1.5s ease-in-out infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .loading-label { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.14em; text-transform: uppercase; }
  .loading-dots::after { content: ''; animation: dots 1.4s steps(4,end) infinite; }
  @keyframes dots { 0%,20%{content:'';} 40%{content:'.';} 60%{content:'..';} 80%,100%{content:'...';} }

  /* DETERMINATION */
  .determination { display: none; }
  .determination.visible { display: block; }

  .complaint-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--output-border); }
  .complaint-card { border: 1px solid var(--output-border); border-radius: 10px; overflow: hidden; background: var(--output-surface); opacity: 0; animation: cardIn 0.35s cubic-bezier(0.22,1,0.36,1) forwards; transition: border-color 0.15s, box-shadow 0.15s; }
  .complaint-card:hover { border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
  @keyframes cardIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
  .complaint-card.covered { border-left: 2px solid #2d8a56; }
  .complaint-card.not-covered { border-left: 2px solid var(--accent); }
  .complaint-card.conditional { border-left: 2px solid #c47d0a; }
  .complaint-card.needs-review { border-left: 2px solid #4a6070; }
  .complaint-card-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; gap: 12px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--output-border); }
  .complaint-card-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); flex-shrink: 0; }
  .complaint-card-text { font-size: 14px; color: rgba(255,255,255,0.92); font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .complaint-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; flex-shrink: 0; border: 1px solid; }
  .complaint-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .complaint-badge.covered { background: rgba(45,138,86,0.14); color: #4caf7d; border-color: rgba(45,138,86,0.2); }
  .complaint-badge.not-covered { background: rgba(61,110,145,0.14); color: var(--accent-light); border-color: rgba(61,110,145,0.2); }
  .complaint-badge.conditional { background: rgba(196,125,10,0.14); color: #e8a436; border-color: rgba(196,125,10,0.2); }
  .complaint-badge.needs-review { background: rgba(74,96,112,0.18); color: #7a9bb0; border-color: rgba(74,96,112,0.22); }
  .complaint-card-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
  .complaint-card-row { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; }
  .complaint-card-row-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); flex-shrink: 0; width: 64px; padding-top: 2px; }
  .complaint-card-row-value { color: rgba(255,255,255,0.92); flex: 1; }
  .complaint-card-action { margin-top: 6px; padding: 10px 13px; background: rgba(61,110,145,0.12); border: 1px solid rgba(61,110,145,0.2); border-radius: 7px; color: #7ab3d4; font-size: 14px; line-height: 1.55; }

  /* LABOR ESTIMATE */
  .labor-estimate-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 11px; background: transparent; border: 1px solid rgba(255,255,255,0.09); border-radius: 6px; font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.28); cursor: pointer; transition: all 0.15s; }
  .labor-estimate-btn:hover:not(:disabled) { border-color: var(--accent-light); color: var(--accent-light); background: rgba(61,110,145,0.08); }
  .labor-estimate-btn:disabled { opacity: 0.3; cursor: not-allowed; }
  .labor-estimate-btn svg { width: 9px; height: 9px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .labor-result { margin-top: 10px; padding: 12px 14px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
  .labor-result-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28); }
  .labor-result-header::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #e8a436; flex-shrink: 0; }
  .labor-result-disclaimer { margin-top: 8px; font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.18); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 8px; line-height: 1.5; }
  .labor-spinner { display: inline-block; width: 9px; height: 9px; border: 1.5px solid rgba(255,255,255,0.1); border-top-color: var(--accent-light); border-radius: 50%; animation: spin 0.7s linear infinite; }

  /* DET SECTIONS */
  .det-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--output-border); }
  .det-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .det-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 10px; font-family: 'DM Mono', monospace; }

  .det-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 100px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 16px; border: 1px solid; }
  .det-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .det-badge.covered { background: rgba(45,138,86,0.12); color: #4caf7d; border-color: rgba(45,138,86,0.2); }
  .det-badge.not-covered { background: rgba(61,110,145,0.12); color: var(--accent-light); border-color: rgba(61,110,145,0.2); }
  .det-badge.conditional { background: rgba(196,125,10,0.12); color: #e8a436; border-color: rgba(196,125,10,0.2); }
  .det-badge.needs-review { background: rgba(74,96,112,0.15); color: #7a9bb0; border-color: rgba(74,96,112,0.2); }

  .confidence-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 100px; font-size: 9px; font-weight: 600; letter-spacing: 0.08em; font-family: 'DM Mono', monospace; border: 1px solid; }
  .confidence-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .confidence-badge.high { background: rgba(45,138,86,0.12); color: #4caf7d; border-color: rgba(45,138,86,0.2); }
  .confidence-badge.medium { background: rgba(196,125,10,0.12); color: #e8a436; border-color: rgba(196,125,10,0.2); }
  .confidence-badge.low { background: rgba(61,110,145,0.12); color: var(--accent-light); border-color: rgba(61,110,145,0.2); }
  .confidence-badge.needs-review { background: rgba(74,96,112,0.15); color: #7a9bb0; border-color: rgba(74,96,112,0.2); }

  .flag-block { background: rgba(196,125,10,0.06); border: 1px solid rgba(196,125,10,0.12); border-left: 2px solid #c47d0a; border-radius: 0 7px 7px 0; padding: 12px 16px; font-size: 14px; line-height: 1.65; color: var(--output-text); }
  .flag-block.inspection { background: rgba(74,96,112,0.07); border-color: rgba(74,96,112,0.13); border-left-color: #4a6070; }
  .flag-block.none { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-left: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.5); font-size: 13px; }
  .next-step { background: rgba(61,110,145,0.09); border: 1px solid rgba(61,110,145,0.14); border-radius: 10px; padding: 14px 16px; color: var(--output-text); font-size: 14px; line-height: 1.7; position: relative; overflow: hidden; }
  .next-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(61,110,145,0.5), transparent); }

  .claim-note-block { background: rgba(45,138,86,0.06); border: 1px solid rgba(45,138,86,0.12); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.8; color: var(--output-text); }
  .claim-note-copy { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 16px; background: #1a6b3c; color: #fff; border: none; border-radius: 7px; font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em; }
  .claim-note-copy:hover { background: #155c32; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,107,60,0.3); }
  .claim-note-copy.copied { background: #1e2a36; }
  .claim-note-copy:disabled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.28); cursor: not-allowed; transform: none; }
  .section-copy { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px; background: transparent; color: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.09); border-radius: 5px; font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.06em; cursor: pointer; transition: all 0.15s; }
  .section-copy:hover { border-color: var(--accent-light); color: var(--accent-light); }
  .section-copy.copied { border-color: #4caf7d; color: #4caf7d; }

  /* FOLLOW-UP */
  .followup-section { display: none; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--output-border); }
  .followup-section.visible { display: block; }
  .followup-header { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 14px; font-family: 'DM Mono', monospace; }
  .followup-messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; max-height: 360px; overflow-y: auto; }
  .followup-msg { padding: 10px 13px; border-radius: 8px; font-size: 12px; line-height: 1.65; }
  .followup-msg.user { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.72); align-self: flex-end; max-width: 85%; border-bottom-right-radius: 2px; border: 1px solid rgba(255,255,255,0.07); }
  .followup-msg.assistant { background: rgba(61,110,145,0.09); color: var(--output-text); align-self: flex-start; max-width: 95%; border-bottom-left-radius: 2px; border: 1px solid rgba(61,110,145,0.14); }
  .followup-msg.thinking { background: transparent; border: 1px solid var(--output-border); color: rgba(255,255,255,0.22); font-family: 'DM Mono', monospace; font-size: 10px; align-self: flex-start; }
  .followup-input-row { display: flex; gap: 8px; align-items: flex-end; }
  .followup-input { flex: 1; resize: none; min-height: 40px; max-height: 100px; background: var(--output-surface) !important; border-color: var(--output-border) !important; color: var(--output-text) !important; font-size: 12px !important; }
  .followup-input::placeholder { color: rgba(255,255,255,0.18) !important; }
  .followup-input:focus { border-color: rgba(61,110,145,0.4) !important; box-shadow: 0 0 0 3px rgba(61,110,145,0.1) !important; }
  .followup-send { width: 40px; height: 40px; background: rgba(61,110,145,0.18); border: 1px solid rgba(61,110,145,0.22); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
  .followup-send:hover { background: var(--accent); border-color: var(--accent); }
  .followup-send:disabled { background: rgba(255,255,255,0.04); border-color: var(--output-border); cursor: not-allowed; }
  .followup-send svg { stroke: rgba(255,255,255,0.55); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 14px; height: 14px; }

  /* ERROR */
  .error-msg { display: none; background: rgba(192,57,43,0.06); border: 1px solid rgba(192,57,43,0.14); border-radius: 7px; padding: 10px 14px; font-size: 11px; color: #e07060; margin-top: 10px; font-family: 'DM Mono', monospace; }
  .error-msg.visible { display: block; }

  /* OUTCOME CONFIRMATION */
  .outcome-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--output-border); }
  .outcome-label { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 12px; font-family: 'DM Mono', monospace; }
  .outcome-buttons { display: flex; gap: 8px; }
  .outcome-btn { flex: 1; padding: 10px 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .outcome-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
  .outcome-btn.authorized:hover { background: rgba(45,138,86,0.12); border-color: rgba(45,138,86,0.25); color: #4caf7d; }
  .outcome-btn.denied:hover { background: rgba(192,57,43,0.1); border-color: rgba(192,57,43,0.2); color: #e07060; }
  .outcome-btn.pending:hover { background: rgba(196,125,10,0.1); border-color: rgba(196,125,10,0.2); color: #e8a436; }
  .outcome-btn svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .outcome-confirmed { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; }
  .outcome-confirmed.visible { display: flex; }
  .outcome-confirmed-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .outcome-confirmed-dot.authorized { background: #4caf7d; }
  .outcome-confirmed-dot.denied { background: #e07060; }
  .outcome-confirmed-dot.pending { background: #e8a436; }
  .outcome-confirmed-text { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.72); flex: 1; }
  .outcome-edit { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.2); cursor: pointer; border: none; background: none; text-decoration: underline; padding: 0; transition: color 0.15s; }
  .outcome-edit:hover { color: rgba(255,255,255,0.45); }

  /* PER-COMPLAINT OUTCOME TOGGLES */
  .complaint-outcome-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
  .complaint-outcome-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 8px; }
  .complaint-outcome-btns { display: flex; gap: 6px; flex-wrap: wrap; }
  .complaint-outcome-btn { padding: 5px 12px; border-radius: 6px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; border: 1px solid; transition: all 0.15s; }
  .complaint-outcome-btn.authorized { background: rgba(26,107,60,0.1); border-color: rgba(26,107,60,0.25); color: #4caf78; }
  .complaint-outcome-btn.authorized:hover { background: rgba(26,107,60,0.2); }
  .complaint-outcome-btn.denied { background: rgba(192,57,43,0.1); border-color: rgba(192,57,43,0.25); color: #e07060; }
  .complaint-outcome-btn.denied:hover { background: rgba(192,57,43,0.2); }
  .complaint-outcome-btn.pending { background: rgba(122,77,10,0.12); border-color: rgba(200,140,40,0.25); color: #c8a84a; }
  .complaint-outcome-btn.pending:hover { background: rgba(122,77,10,0.22); }
  .complaint-denial-wrap { margin-top: 8px; }
  .complaint-denial-select { width: 100%; background: #1e2a36; border: 1px solid rgba(192,57,43,0.18); border-radius: 7px; color: var(--output-text); font-size: 12px; font-family: 'DM Mono', monospace; padding: 7px 10px; margin-bottom: 6px; appearance: none; }
  .complaint-denial-select option { background: #1e2a36; color: #fff; }
  .complaint-denial-other { width: 100%; resize: none; background: rgba(255,255,255,0.03); border: 1px solid rgba(192,57,43,0.18); border-radius: 7px; color: var(--output-text); font-size: 12px; padding: 7px 10px; margin-bottom: 6px; font-family: 'Instrument Sans', sans-serif; }
  .complaint-denial-confirm { width: 100%; padding: 8px; background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.22); border-radius: 7px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: #e07060; cursor: pointer; transition: all 0.15s; }
  .complaint-denial-confirm:hover { background: rgba(192,57,43,0.2); }
  .complaint-outcome-confirmed { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .complaint-outcome-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .complaint-outcome-dot.authorized { background: #4caf78; }
  .complaint-outcome-dot.denied { background: #e07060; }
  .complaint-outcome-dot.pending { background: #c8a84a; }
  .complaint-outcome-confirmed-text { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.82); flex: 1; }
  .complaint-outcome-change { background: none; border: none; font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.3); cursor: pointer; padding: 0; transition: color 0.15s; }
  .complaint-outcome-change:hover { color: rgba(255,255,255,0.55); }
  /* Card tint when outcome confirmed */
  .complaint-card.outcome-authorized { border-left-color: rgba(26,107,60,0.5); }
  .complaint-card.outcome-denied { border-left-color: rgba(192,57,43,0.5); }
  .complaint-card.outcome-pending { border-left-color: rgba(200,140,40,0.5); }
  .variance-reason-wrap { display: none; margin-top: 10px; }
  .variance-reason-wrap.visible { display: block; }
  .variance-reason-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 6px; }
  .variance-reason-select { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(192,57,43,0.18); border-radius: 7px; color: var(--output-text); font-size: 12px; font-family: 'DM Mono', monospace; padding: 8px 32px 8px 10px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff44'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
  .variance-reason-select option { background: #1e2a36; color: #fff; }
  .variance-reason-select:focus { border-color: rgba(192,57,43,0.35); outline: none; box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
  .variance-reason-input { width: 100%; resize: none; min-height: 54px; background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(192,57,43,0.18) !important; border-radius: 7px; color: var(--output-text) !important; font-size: 12px !important; font-family: 'Instrument Sans', sans-serif; padding: 8px 10px; }
  .variance-reason-input::placeholder { color: rgba(255,255,255,0.15) !important; }
  .variance-reason-input:focus { border-color: rgba(192,57,43,0.35) !important; outline: none; box-shadow: 0 0 0 3px rgba(192,57,43,0.08) !important; }
  .variance-reason-confirm { margin-top: 8px; width: 100%; padding: 9px; background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.22); border-radius: 7px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: #e07060; cursor: pointer; transition: all 0.15s; }
  .variance-reason-confirm:hover { background: rgba(192,57,43,0.2); border-color: rgba(192,57,43,0.35); }
  .variance-reason-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

  /* SIMILAR CLAIMS */
  .similar-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--output-border); }
  .similar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; cursor: pointer; }
  .similar-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); font-family: 'DM Mono', monospace; }
  .similar-count { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--accent-light); letter-spacing: 0.06em; }
  .similar-toggle { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.35); border: none; background: none; cursor: pointer; padding: 0; transition: color 0.15s; }
  .similar-toggle:hover { color: rgba(255,255,255,0.55); }
  .similar-list { display: flex; flex-direction: column; gap: 6px; }
  .similar-list.collapsed { display: none; }
  .similar-item { padding: 10px 12px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
  .similar-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; gap: 8px; }
  .similar-item-complaint { font-size: 12px; color: rgba(255,255,255,0.78); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .similar-item-outcome { font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 600; letter-spacing: 0.06em; flex-shrink: 0; }
  .similar-item-outcome.authorized { color: #4caf7d; }
  .similar-item-outcome.denied { color: #e07060; }
  .similar-item-outcome.pending { color: #e8a436; }
  .similar-item-meta { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.55); }
  .similar-empty { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.55); line-height: 1.6; padding: 8px 0; }

  /* FOOTER */
  footer { text-align: center; padding: 24px 48px 40px; font-family: 'DM Mono', monospace; font-size: 9px; color: var(--muted-light); letter-spacing: 0.1em; border-top: 1px solid var(--border-light); margin-top: 8px; }
  footer span { color: var(--ink); font-weight: 500; }

  /* PIN GATE */
  .pin-gate { position: fixed; inset: 0; display: flex; z-index: 9999; width: 100%; height: 100%; overflow: hidden; }
  .pin-gate.hidden { display: none; }
  body.pin-locked { overflow: hidden; height: 100%; position: fixed; width: 100%; }
  .pin-left { flex: 1.1; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 56px 64px; position: relative; overflow: hidden; }
  .pin-left::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(61,110,145,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(61,110,145,0.06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
  .pin-left::after { content: ''; position: absolute; top: -120px; left: -80px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(61,110,145,0.18) 0%, transparent 70%); pointer-events: none; }
  .pin-brand { position: relative; z-index: 1; }
  .pin-brand-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--accent-light); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
  .pin-brand-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
  .pin-brand-name { font-family: 'DM Serif Display', serif; font-size: 48px; color: #fff; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
  .pin-brand-name em { color: var(--accent-light); font-style: italic; }
  .pin-brand-sub { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 48px; }
  .pin-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
  .pin-feature { display: flex; align-items: flex-start; gap: 14px; }
  .pin-feature-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
  .pin-feature-text { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; }
  .pin-feature-text strong { color: rgba(255,255,255,0.85); font-weight: 600; }
  .pin-left-footer { position: relative; z-index: 1; font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.2); letter-spacing: 0.08em; }
  .pin-right { width: 440px; flex-shrink: 0; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 64px 56px; border-left: 1px solid rgba(255,255,255,0.04); }
  .pin-form-inner { width: 100%; }
  .pin-welcome { font-family: 'DM Serif Display', serif; font-size: 32px; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 6px; }
  .pin-welcome-sub { font-size: 14px; color: var(--muted); margin-bottom: 40px; line-height: 1.5; }
  .pin-field-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
  .pin-input { width: 100%; text-align: center; font-size: 28px; letter-spacing: 0.4em; padding: 16px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); font-family: 'DM Mono', monospace; outline: none; transition: border-color 0.15s, box-shadow 0.15s; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(10,10,11,0.04); }
  .pin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
  .pin-input.error { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,0.08); animation: pinShake 0.35s ease; }
  @keyframes pinShake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-6px);} 40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);} }
  .pin-submit { width: 100%; padding: 15px; background: var(--ink); color: #fff; border: none; border-radius: 12px; font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em; display: flex; align-items: center; justify-content: center; gap: 10px; }
  .pin-submit:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-accent); }
  .pin-submit:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; transform: none; }
  .pin-submit svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pin-error { font-family: 'DM Mono', monospace; font-size: 11px; color: #c0392b; margin-top: 12px; letter-spacing: 0.04em; min-height: 16px; text-align: center; }
  .pin-attempts { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
  .pin-attempt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.2s; }
  .pin-attempt-dot.used { background: #c0392b; }

  /* SUPERVISOR REVIEW FLAG */
  .flag-review-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--output-border); }
  .flag-review-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; background: rgba(196,125,10,0.08); border: 1px solid rgba(196,125,10,0.18); border-radius: 8px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: #e8a436; cursor: pointer; transition: all 0.15s; }
  .flag-review-btn:hover:not(:disabled) { background: rgba(196,125,10,0.15); border-color: rgba(196,125,10,0.32); }
  .flag-review-btn:disabled { opacity: 0.45; cursor: not-allowed; }
  .flag-review-btn svg { stroke: currentColor; flex-shrink: 0; }
  .flag-review-confirmed { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(196,125,10,0.08); border: 1px solid rgba(196,125,10,0.2); border-radius: 8px; }
  .flag-review-confirmed.visible { display: flex; }
  .flag-review-dot { width: 7px; height: 7px; border-radius: 50%; background: #e8a436; flex-shrink: 0; }
  .flag-review-confirmed span { font-family: 'DM Mono', monospace; font-size: 10px; color: #e8a436; letter-spacing: 0.04em; }

  @media (max-width: 800px) {
    .pin-gate { flex-direction: column; }
    .pin-left { display: none; }
    .pin-right { width: 100%; padding: 48px 32px; }
    header { padding: 0 24px; }
    .hero { padding: 24px; }
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hero-chips { justify-content: flex-start; }
    .main { grid-template-columns: 1fr; padding: 32px 24px; }
    .output-panel { grid-column: 1; grid-row: auto; }
    .output-panel .panel { position: static; }
  }

  /* PRINT / EXPORT PDF */
  #printArea { display: none; }
  .export-pdf-btn { display: flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
  .export-pdf-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.18); }
  .export-pdf-btn svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  @media print {
    body * { visibility: hidden; }
    #printArea, #printArea * { visibility: visible; }
    #printArea { display: block !important; position: absolute; top: 0; left: 0; width: 100%; background: #fff; font-family: 'Instrument Sans', sans-serif; color: #111; }
    .print-header { background: #0a0a0b; color: #fff; padding: 20px 32px; display: flex; align-items: center; gap: 0; }
    .print-logo { font-family: 'DM Serif Display', serif; font-size: 18px; color: #fff; letter-spacing: -0.02em; flex-shrink: 0; }
    .print-logo-sub { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; padding-left: 16px; margin-left: 16px; border-left: 1px solid rgba(255,255,255,0.12); flex: 1; }
    .print-header-meta { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }
    .print-meta { display: grid; grid-template-columns: repeat(4, 1fr); background: #f8f8f6; padding: 12px 32px; border-bottom: 1px solid #e5e5e5; gap: 16px; }
    .print-meta-row { display: flex; flex-direction: column; gap: 3px; }
    .print-meta-label { font-family: 'DM Mono', monospace; font-size: 7px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #888; }
    .print-meta-value { font-size: 12px; font-weight: 600; color: #111; }
    .print-card { border: 1px solid #e5e5e5; border-radius: 6px; margin: 16px 32px 0; overflow: hidden; page-break-inside: avoid; }
    .print-card-header { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #f4f4f2; border-bottom: 1px solid #e5e5e5; }
    .print-card-num { font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #666; flex-shrink: 0; }
    .print-card-complaint { font-size: 13px; font-weight: 600; color: #111; flex: 1; }
    .print-card-badge { font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 600; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 100px; border: 1px solid; flex-shrink: 0; }
    .print-badge-covered { color: #1a6b3c; border-color: rgba(26,107,60,0.4); background: rgba(26,107,60,0.05); }
    .print-badge-not-covered { color: #3d6e91; border-color: rgba(61,110,145,0.4); background: rgba(61,110,145,0.05); }
    .print-badge-conditional { color: #7a4d0a; border-color: rgba(122,77,10,0.4); background: rgba(122,77,10,0.05); }
    .print-badge-needs-review { color: #4a6070; border-color: rgba(74,96,112,0.4); background: rgba(74,96,112,0.05); }
    .print-card-row { display: flex; gap: 12px; padding: 7px 14px; border-bottom: 1px solid #f2f2f0; font-size: 12px; line-height: 1.55; }
    .print-card-row-label { font-family: 'DM Mono', monospace; font-size: 7px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #888; flex-shrink: 0; width: 68px; padding-top: 2px; }
    .print-card-row-value { color: #222; flex: 1; }
    .print-outcome-row { padding: 7px 14px; background: #f8f8f6; border-top: 1px solid #e5e5e5; display: flex; align-items: center; gap: 8px; }
    .print-outcome-label { font-family: 'DM Mono', monospace; font-size: 7px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #888; }
    .print-outcome-val { font-size: 11px; font-weight: 600; }
    .print-outcome-authorized { color: #1a6b3c; }
    .print-outcome-denied { color: #c0392b; }
    .print-outcome-pending { color: #7a4d0a; }
    .print-summary { margin: 16px 32px 0; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; }
    .print-summary-row { display: flex; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #f2f2f0; font-size: 12px; line-height: 1.55; }
    .print-summary-row:last-child { border-bottom: none; }
    .print-summary-label { font-family: 'DM Mono', monospace; font-size: 7px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #888; flex-shrink: 0; width: 140px; padding-top: 2px; }
    .print-summary-value { color: #222; flex: 1; }
    .print-note-section { margin: 16px 32px 32px; border: 1px solid #e5e5e5; border-radius: 6px; padding: 14px 16px; }
    .print-note-label { font-family: 'DM Mono', monospace; font-size: 7px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #888; margin-bottom: 8px; }
    .print-note-text { font-size: 13px; line-height: 1.7; color: #111; }
  }