:root{--bg: #f5f6fa;--surface: #ffffff;--border: #e3e6ec;--text: #1c2330;--text-muted: #6b7280;--primary: #2563eb;--primary-hover: #1d4ed8;--primary-light: #dbeafe;--green: #16a34a;--green-bg: #dcfce7;--yellow: #ca8a04;--yellow-bg: #fef9c3;--red: #dc2626;--red-bg: #fee2e2;--gray-bg: #e5e7eb;--shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--shadow-md: 0 4px 12px rgba(0, 0, 0, .06);--radius: 8px;--radius-lg: 12px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif;font-size:15px;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}h1,h2,h3{margin:0 0 .5em;font-weight:600;line-height:1.3}h1{font-size:1.25rem}h2{font-size:1.1rem}h3{font-size:1rem}p{margin:0 0 .5em}.muted{color:var(--text-muted)}.small{font-size:.875rem}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.topbar-inner{max-width:1200px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:36px;height:36px;border-radius:var(--radius);background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;letter-spacing:.5px}.tabs{display:flex;gap:4px;background:var(--bg);padding:4px;border-radius:999px}.tab{border:0;background:transparent;padding:8px 18px;border-radius:999px;font-size:.9rem;font-weight:500;color:var(--text-muted);cursor:pointer;transition:all .15s}.tab:hover{color:var(--text)}.tab-active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow)}.container{flex:1;max-width:1200px;width:100%;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:20px}.page-title{margin-bottom:4px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow)}.card.no-padding{padding:0}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.card-header h2{margin:0}.banner{background:var(--primary-light);border:1px solid #93c5fd;border-radius:var(--radius-lg);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.banner p{margin:4px 0 0}.banner-actions{display:flex;gap:8px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.input,.textarea{width:100%;border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px;font-size:.95rem;font-family:inherit;color:var(--text);background:var(--surface);transition:border-color .15s,box-shadow .15s}.input:focus,.textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.textarea{resize:vertical;min-height:220px;line-height:1.5}.textarea-small{min-height:60px;max-height:200px}.char-count{font-size:.8rem;color:var(--text-muted);margin:6px 0 0;text-align:right}.row .input{flex:1;min-width:240px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media (max-width: 820px){.two-col{grid-template-columns:1fr}}.btn{border:1px solid transparent;border-radius:var(--radius);padding:10px 18px;font-size:.95rem;font-weight:500;font-family:inherit;cursor:pointer;transition:all .15s;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface);color:var(--primary);border-color:var(--primary)}.btn-secondary:hover:not(:disabled){background:var(--primary-light)}.btn-ghost{background:transparent;color:var(--text);border-color:var(--border)}.btn-ghost:hover:not(:disabled){background:var(--bg)}.btn-large{padding:14px 32px;font-size:1rem}.btn-small{padding:6px 12px;font-size:.85rem}.link-btn{background:none;border:0;color:var(--primary);font-size:.9rem;font-weight:500;cursor:pointer;padding:4px 8px;border-radius:4px}.link-btn:hover{background:var(--primary-light)}.cta-row{display:flex;align-items:center;gap:12px}.alert{padding:12px 16px;border-radius:var(--radius);font-size:.95rem}.alert-error{background:var(--red-bg);color:var(--red);border:1px solid #fca5a5}.result{display:flex;flex-direction:column;gap:16px}.scorecard{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;display:flex;gap:24px;align-items:center;box-shadow:var(--shadow)}.score-circle{width:96px;height:96px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0;color:#fff}.score-green .score-circle{background:var(--green)}.score-yellow .score-circle{background:var(--yellow)}.score-red .score-circle{background:var(--red)}.score-number{font-size:2.2rem}.score-meta{flex:1;min-width:0}.score-jobtitle{font-size:1.35rem;margin-bottom:4px}.score-company{color:var(--text-muted);margin:0 0 8px}.score-begrundelse{margin:8px 0 0;line-height:1.5}.result-grid{display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 900px){.result-grid{grid-template-columns:1fr 1fr 1fr}}.result-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow);border-left:4px solid var(--border)}.result-card-match{border-left-color:var(--green)}.result-card-missing{border-left-color:var(--yellow)}.result-card-suggest{border-left-color:var(--primary)}.result-card h3{margin:0 0 12px;color:var(--text)}.bullet-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.bullet-list li{line-height:1.5;font-size:.92rem}.evidence{color:var(--text-muted)}.badge{display:inline-block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:2px 8px;border-radius:999px;margin-right:6px;vertical-align:middle}.badge-red{background:var(--red-bg);color:var(--red)}.badge-yellow{background:var(--yellow-bg);color:var(--yellow)}.badge-gray{background:var(--gray-bg);color:#4b5563}.table{width:100%;border-collapse:collapse;font-size:.95rem}.table th,.table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--border)}.table th{font-size:.8rem;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);font-weight:600;background:var(--bg)}.table tr:last-child td{border-bottom:0}.row-clickable{cursor:pointer}.row-clickable:hover{background:var(--bg)}.score-pill{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:600;font-size:.85rem;color:#fff;min-width:36px;text-align:center}.score-pill-green{background:var(--green)}.score-pill-yellow{background:var(--yellow)}.score-pill-red{background:var(--red)}.empty{text-align:center;padding:48px 24px}.chat-wrap{display:flex;flex-direction:column;gap:16px;height:calc(100vh - 160px);min-height:500px}.chat-examples{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow)}.example-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.example-chip{background:var(--primary-light);color:var(--primary);border:1px solid #93c5fd;padding:8px 14px;border-radius:999px;font-size:.88rem;cursor:pointer;font-family:inherit;transition:all .15s}.example-chip:hover{background:#bfdbfe}.chat-list{flex:1;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow)}.bubble{max-width:80%;padding:10px 14px;border-radius:16px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;font-size:.95rem}.bubble-user{align-self:flex-end;background:var(--primary);color:#fff;border-bottom-right-radius:4px}.bubble-assistant{align-self:flex-start;background:var(--bg);color:var(--text);border-bottom-left-radius:4px}.chat-input{display:flex;gap:8px;align-items:flex-end;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:12px;box-shadow:var(--shadow)}.chat-input .textarea{border:0;padding:8px;min-height:50px;background:transparent}.chat-input .textarea:focus{box-shadow:none}.chat-actions{display:flex;gap:8px}
