:root{--card-bg:#fff;--card-border:#e5e7eb;--muted:#6b7280;--text:#111827;--accent:#635bff;--good:#16a34a;--warn:#d97706;--bad:#dc2626}body{color:var(--text);background:#f7f7fb;margin:0}.topbar{z-index:50;-webkit-backdrop-filter:saturate(120%)blur(8px);backdrop-filter:saturate(120%)blur(8px);background:rgba(255,255,255,.78);border-bottom:1px solid #eef2f7;position:-webkit-sticky;position:sticky;top:0}.topbar-inner{justify-content:space-between;align-items:center;max-width:1100px;margin:0 auto;padding:10px 16px;display:flex}.topbar-left{align-items:center;gap:10px;display:flex}.topbar-logo{background:linear-gradient(135deg,#e0e7ff,#f5f3ff);border-radius:999px;justify-content:center;align-items:center;width:36px;height:36px;font-size:18px;display:flex}.topbar-title{font-size:18px;font-weight:800}.topbar-subtitle{color:#64748b;font-size:12px}.main-header{background:#fff;border-bottom:1px solid #f1f5f9;padding:20px 0}.main-header-content{max-width:1200px;margin:0 auto;padding:0 24px}.main-header-left{align-items:center;gap:16px;display:flex}.main-logo{background:linear-gradient(135deg,#e0e7ff,#f5f3ff);border:2px solid #e5e7eb;border-radius:999px;justify-content:center;align-items:center;width:48px;height:48px;font-size:24px;display:flex}.main-title{color:#6366f1;margin:0 0 4px;font-size:24px;font-weight:700}.main-subtitle{color:#6b7280;margin:0;font-size:14px}.main-content{background:#f7f7fb;min-height:100vh}.input-container{background:linear-gradient(145deg,#fff,#fafbfc);border:1px solid #e1e5e9;border-radius:20px;margin-bottom:32px;padding:40px;position:relative;overflow:hidden;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06),inset 0 0 0 1px rgba(255,255,255,.05)}.input-container:before{content:"";background:linear-gradient(90deg,transparent,rgba(99,102,241,.1),transparent);height:1px;position:absolute;top:0;left:0;right:0}.input-container:after{content:"";pointer-events:none;background:radial-gradient(circle,rgba(99,102,241,.03) 0%,transparent 70%);width:200%;height:200%;position:absolute;top:-50%;left:-50%}.analyze-button{color:#fff;cursor:pointer;z-index:1;background:linear-gradient(135deg,#635bff,#7c3aed);border:none;border-radius:12px;min-width:220px;padding:14px 40px;font-size:16px;font-weight:600;transition:all .3s;position:relative;box-shadow:0 4px 14px rgba(99,91,255,.3)}.analyze-button:hover:not(:disabled){background:linear-gradient(135deg,#5b54f0,#7333e0);transform:translateY(-2px);box-shadow:0 6px 20px rgba(99,91,255,.4)}.analyze-button:active:not(:disabled){transform:translateY(0)}.analyze-button:disabled{cursor:not-allowed;background:linear-gradient(135deg,#94a3b8,#a1a1aa);transform:none;box-shadow:0 2px 8px rgba(148,163,184,.2)}.history-sidebar{background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;width:100%;height:100vh;display:flex;overflow:hidden}.history-header{background:#fafbfc;border-bottom:1px solid #f1f5f9;padding:16px}.new-analysis-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:12px;width:100%;padding:12px 16px;font-size:14px;font-weight:600;transition:all .3s;box-shadow:0 2px 8px rgba(102,126,234,.3)}.new-analysis-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(102,126,234,.4)}.history-list{flex:1;padding:8px;overflow-y:auto}.history-empty{text-align:center;color:#6b7280;padding:40px 16px}.history-empty p{margin:0 0 8px;font-weight:500}.history-empty span{color:#9ca3af;font-size:12px}.history-card{cursor:pointer;color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:12px;margin-bottom:12px;padding:16px;transition:all .3s;position:relative}.history-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,.3)}.history-card-content{width:100%}.history-card-header{justify-content:space-between;align-items:flex-start;margin-bottom:8px;display:flex}.history-job-title{color:#fff;flex:1;margin-right:8px;font-size:14px;font-weight:600;line-height:1.3}.history-status-badge{color:#fff;white-space:nowrap;background:rgba(255,255,255,.2);border-radius:12px;padding:2px 8px;font-size:10px;font-weight:500}.history-status-badge.pending{color:#fff;background:rgba(255,193,7,.8);animation:2s infinite pulse}.history-status-badge.failed{color:#fff;background:rgba(239,68,68,.8)}@keyframes pulse{0%{opacity:1}50%{opacity:.6}to{opacity:1}}.history-cv-info{color:rgba(255,255,255,.8);text-overflow:ellipsis;white-space:nowrap;margin-bottom:8px;font-size:12px;overflow:hidden}.history-date{color:rgba(255,255,255,.7);font-size:11px}.history-card-delete{color:#fff;cursor:pointer;opacity:0;background:rgba(255,255,255,.2);border:none;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;line-height:1;transition:all .2s;display:flex;position:absolute;top:8px;right:8px}.history-card:hover .history-card-delete{opacity:1}.history-card-delete:hover{color:#fff;background:rgba(239,68,68,.8)}.upload-area{text-align:center;background:#fafbfc;border:2px dashed #d1d5db;border-radius:12px;padding:24px;transition:all .2s}.upload-area:hover{background:#f9fafb;border-color:#9ca3af}.upload-placeholder{margin-bottom:16px}.upload-icon{margin-bottom:8px;font-size:32px}.upload-text{color:#374151;margin-bottom:4px;font-size:14px;font-weight:500}.upload-hint{color:#6b7280;font-size:12px}.upload-fallback{border-top:1px solid #e5e7eb;padding-top:16px}.uploaded-file{background:#f3f4f6;border-radius:6px;justify-content:space-between;align-items:center;padding:8px 12px;font-size:13px;display:flex}.file-action{color:#3b82f6;cursor:pointer;background:0 0;border:none;font-size:12px;text-decoration:underline}.privacy-notice{background:#fef3c7;border:1px solid #f59e0b;border-radius:8px;margin-top:32px;padding:16px}.privacy-title{color:#92400e;margin-bottom:8px;font-size:14px;font-weight:600}.privacy-list{color:#92400e;margin:0;padding-left:16px;font-size:13px;line-height:1.5}.privacy-list li{margin-bottom:4px}.sidebar{z-index:10;background:#fafbfc;border-right:1px solid #e5e7eb;flex-direction:column;width:280px;height:100vh;display:flex;position:fixed;top:0;left:0}.sidebar-header{border-bottom:1px solid #f1f5f9;padding:20px 16px 16px}.sidebar-title{align-items:flex-start;gap:10px;margin-bottom:16px;display:flex}.sidebar-title>span{margin-top:2px;font-size:20px}.sidebar-main-title{color:#111827;font-size:16px;font-weight:700}.sidebar-subtitle{color:#6b7280;margin-top:2px;font-size:12px}.new-analysis-btn-sidebar{color:#fff;cursor:pointer;background:linear-gradient(135deg,#635bff,#7c3aed);border:none;border-radius:8px;width:100%;padding:10px 12px;font-size:13px;font-weight:600;transition:all .2s}.new-analysis-btn-sidebar:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(99,91,255,.3)}.sidebar-content{flex:1;padding:8px 0;overflow-y:auto}.history-list{padding:0 8px}.history-item{cursor:pointer;border:1px solid transparent;border-radius:8px;margin-bottom:4px;padding:12px;transition:all .2s}.history-item:hover{background:#fff;border-color:#e5e7eb;box-shadow:0 1px 3px rgba(0,0,0,.05)}.history-item-header{justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px;display:flex}.history-title{flex:1;font-size:13px;font-weight:500;line-height:1.3}.status-pill{white-space:nowrap;border-radius:4px;padding:2px 6px;font-size:10px}.status-pill.completed{color:#0a7a2b;background:#e8f7ee}.status-pill.optimized{color:#3730a3;background:#e0e7ff}.history-meta{justify-content:space-between;align-items:center;font-size:11px;display:flex}.history-actions{align-items:center;gap:6px;display:flex}.delete-btn{cursor:pointer;opacity:.5;background:0 0;border:none;padding:2px;font-size:12px}.delete-btn:hover{opacity:1}.empty-state{text-align:center;color:#6b7280;padding:60px 20px}.empty-icon{opacity:.5;margin-bottom:12px;font-size:48px}.empty-text{margin-bottom:6px;font-size:14px;font-weight:500}.empty-hint{opacity:.8;font-size:12px;line-height:1.4}.card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:12px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.card-framed{border:1px solid #e2e8f0;border-radius:16px;position:relative;box-shadow:0 1px rgba(16,24,40,.04),0 10px 24px rgba(2,6,23,.06),0 0 0 6px rgba(99,91,255,.05)}.card-framed:before{content:"";pointer-events:none;background:radial-gradient(120% 60% at 10% 0,rgba(99,91,255,.08),rgba(99,91,255,0) 60%),radial-gradient(120% 60% at 90% 100%,rgba(99,91,255,.06),rgba(99,91,255,0) 60%);border-radius:16px;position:absolute;top:0;bottom:0;left:0;right:0;-webkit-mask:linear-gradient(#000,#000);mask:linear-gradient(#000,#000)}.section-title{align-items:center;gap:8px;margin:0 0 12px;font-size:32px;font-weight:700;display:flex}.kpi{color:var(--accent);font-size:42px;font-weight:800}.kpi-ring{--p:0%;background:conic-gradient(#ef4444 var(--p),#eef2ff 0);border-radius:999px;justify-content:center;align-items:center;width:140px;height:140px;display:inline-flex;position:relative}.kpi-ring:after{content:"";background:#fff;border-radius:999px;position:absolute;top:10px;bottom:10px;left:10px;right:10px}.kpi-ring>span{z-index:10;color:#ef4444;font-size:96px;font-weight:800;position:relative}.kpi-ring>span .percent-symbol{font-size:48px}.subtle{color:var(--muted);font-size:13px}.grid2{grid-template-columns:1fr 1fr;gap:16px;display:grid}.grid3{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.list{margin:0;padding-left:16px}.list li{margin:6px 0}.tags{flex-wrap:wrap;gap:8px;display:flex}.tag{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:4px 10px;font-size:12px}.table{border-collapse:collapse;width:100%}.table th,.table td{border-top:1px solid var(--card-border);text-align:left;padding:10px 8px}.table th{background:#fafafa;font-weight:600}.pill{border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.pill-good{color:#0a7a2b;background:#e8f7ee;border:1px solid #bfe9cc}.pill-warn{color:#a26200;background:#fff8e6;border:1px solid #ffe3a6}.pill-bad{color:#a11a1a;background:#ffebeb;border:1px solid #ffc4c4}.bar{background:#eef2ff;border-radius:999px;width:100%;height:8px;overflow:hidden}.bar>span{background:var(--accent);height:100%;display:block}.muted-box{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:8px;padding:10px}@media (max-width:960px){.grid2,.grid3{grid-template-columns:1fr}}
