:root{--bg:#f5f5f2;--card:#fff;--ink:#171816;--muted:#6b6d68;--line:#dedfd9;--accent:#d9ff62;--dark:#151713;--shadow:0 10px 35px rgba(20,20,15,.07)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif}.topbar{height:72px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(245,245,242,.92);position:sticky;top:0;backdrop-filter:blur(15px);z-index:10}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:800;text-decoration:none}.brand small{font-size:10px;text-transform:uppercase;color:var(--muted);font-weight:700}.brand-logo{display:block;height:30px;width:auto}.auth-brand{margin:0 0 6px;text-align:center;line-height:0}.auth-logo{display:inline-block;height:44px;width:auto;max-width:100%}.topbar nav{display:flex;gap:22px}.topbar nav a{color:#555;text-decoration:none;font-size:14px;font-weight:600}.topbar nav a:hover{color:#000}.container{max-width:1120px;margin:0 auto;padding:46px 24px 80px}.hero{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:30px}.hero h1,.page-head h1{font-size:44px;line-height:1.05;letter-spacing:-2px;margin:5px 0 10px}.hero p,.page-head p{max-width:650px;color:var(--muted);font-size:17px;line-height:1.5}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.7px}.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:28px 0 44px}.stat,.panel,.job-card,.empty{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.stat{padding:16px;min-height:116px;display:flex;flex-direction:column}.stat span{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.8px}.stat strong{font-size:19px;margin-top:8px}.stat a,.stat small{font-size:12px;color:var(--muted);margin-top:auto}.section-head,.page-head{display:flex;align-items:end;justify-content:space-between;margin:22px 0 14px}.section-head h2{font-size:24px;margin:0}.section-head span{font-size:13px;color:var(--muted)}.job-card{padding:21px 22px;margin:12px 0}.job-top{display:flex;gap:15px;align-items:start}.job-top h3{margin:0;font-size:20px}.meta{color:var(--muted);margin-top:4px}.score{min-width:58px;height:38px;border-radius:10px;display:grid;place-items:center;font-weight:900;background:#eee}.score.hot{background:#d9ff62}.score.good{background:#e8f7da}.score.maybe{background:#f1f1ed}.job-card p{line-height:1.5}.chips{display:flex;flex-wrap:wrap;gap:7px}.chips span,.file-pill{background:#f2f2ee;border:1px solid #e3e3dd;padding:7px 9px;border-radius:9px;font-size:12px}.job-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;padding-top:15px;border-top:1px solid #eee;color:var(--muted);font-size:12px}.inline{display:inline}.button,button{border:0;background:var(--dark);color:#fff;padding:11px 16px;border-radius:10px;font-weight:750;text-decoration:none;cursor:pointer;font:inherit;font-size:14px}button:hover,.button:hover{opacity:.88}button:disabled{opacity:.35;cursor:not-allowed}.ghost{background:#efefeb;color:#222}.small{padding:8px 10px;font-size:12px}.empty{text-align:center;padding:50px 30px}.empty h2{margin-top:0}.empty p{color:var(--muted);max-width:560px;margin:0 auto 22px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{padding:24px}.panel h2{margin-top:0}.panel h3{font-size:13px;margin:20px 0 8px;color:#555}form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;margin:14px 0}input,textarea,select{width:100%;padding:12px 13px;border:1px solid #d3d4cd;border-radius:10px;background:#fff;font:inherit;font-size:14px;outline:none}input:focus,textarea:focus,select:focus{border-color:#888;box-shadow:0 0 0 3px rgba(0,0,0,.05)}label small,.muted{color:var(--muted);font-weight:400;font-size:12px;line-height:1.45}.dropzone{border:1.5px dashed #bbb;padding:22px;border-radius:12px;background:#fafaf8}.dropzone input{border:0;padding:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.wide{grid-column:1/-1}.check{flex-direction:row;align-items:center}.check input{width:auto}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.health{background:#f5f5f2;border-radius:11px;padding:10px 12px;font-size:13px;line-height:2}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#bbb;margin-right:7px}.dot.on{background:#5ab44c}.flash,.error{padding:13px 15px;border-radius:11px;margin-bottom:20px}.flash{background:#ebf9c9;border:1px solid #d6ed9a}.error{background:#ffe5e0;border:1px solid #ffc7bd;color:#8d2415}.auth-shell{min-height:82vh;display:grid;place-items:center}.auth-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:32px}.auth-card h1{text-align:center;font-size:30px;margin-bottom:5px}.auth-card>p{text-align:center;color:var(--muted)}.auth-card button{width:100%;margin-top:8px}.auth-card a{color:#111}details{margin-top:12px;color:#555}code{background:#eee;padding:2px 5px;border-radius:5px}footer{text-align:center;padding:25px;color:#92938e;font-size:11px;border-top:1px solid var(--line)}@media(max-width:800px){.topbar{height:auto;padding:14px 18px;align-items:flex-start}.topbar nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.topbar nav a{font-size:11px}.brand small{display:none}.container{padding:30px 15px 60px}.hero{align-items:flex-start;flex-direction:column}.hero h1,.page-head h1{font-size:36px}.status-grid{grid-template-columns:1fr 1fr}.two-col,.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.job-footer{align-items:flex-start;flex-direction:column}.job-footer>div{display:flex;flex-wrap:wrap;gap:4px}}@media(max-width:480px){.status-grid{grid-template-columns:1fr}.topbar{display:block}.topbar nav{margin-top:12px;justify-content:flex-start}.topbar nav a{font-size:10px}.auth-card{padding:24px}.container{padding-top:24px}}

.progress-panel{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:20px 22px;margin:0 0 22px}.progress-panel[hidden]{display:none}.progress-panel.error{border-color:#ffc7bd}.progress-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}.progress-head strong{font-size:17px}.progress-pct{font-weight:800;font-variant-numeric:tabular-nums;color:var(--muted)}.progress-bar{height:12px;background:#ecece7;border-radius:99px;overflow:hidden}.progress-fill{height:100%;background:var(--dark);border-radius:99px;transition:width .45s ease}.progress-panel.done .progress-fill{background:#5ab44c}.progress-panel.error .progress-fill{background:#d9534f}.progress-stages{list-style:none;padding:0;margin:14px 0 0;font-size:14px;line-height:1.5}.stage{display:grid;grid-template-columns:22px 1fr;gap:2px 6px;padding:3px 0}.stage-icon{font-weight:900;text-align:center}.stage.pending{color:#9a9b96}.stage.active{font-weight:700}.stage.active .stage-icon{color:#2f6fdb;animation:pulse 1.2s ease-in-out infinite}.stage.done .stage-icon{color:#3d9a31}.stage.failed{color:#8d2415}.stage.warning .stage-icon{color:#b36b00}.stage.skipped{color:#9a9b96}.stage-detail{grid-column:2;font-size:12px;color:#8d2415;font-weight:400}.stage.warning .stage-detail{color:#8a5a00}.progress-panel .error,.progress-panel .flash,.progress-panel .warning-box{margin:14px 0 0}.progress-summary{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}.sum-item{background:#f5f5f2;border-radius:10px;padding:8px 12px;display:flex;gap:6px;align-items:baseline;font-size:13px}.sum-item strong{font-size:18px}@keyframes pulse{50%{opacity:.35}}
.privacy-note{font-size:13px;line-height:1.5;border-radius:11px;padding:10px 13px;margin:0 0 18px;border:1px solid var(--line);background:#fafaf8;color:#444}.privacy-note span{color:var(--muted)}.privacy-note.cloud{background:#f1f5fd;border-color:#d8e3f6}.privacy-note.local{background:#f0f8ec;border-color:#d6ebcb}.upload-panel{margin-bottom:18px}.upload-panel .privacy-note{margin:16px 0 0}.warning-box{background:#fff4dc;border:1px solid #f3dca4;color:#6b4700;padding:11px 13px;border-radius:11px;font-size:13px;line-height:1.45;margin:10px 0}
@media(prefers-reduced-motion:reduce){.progress-fill{transition:none}.stage.active .stage-icon{animation:none}}
.score.pending{background:#f1f1ed;color:#8a8b86}.job-card.pending{opacity:.85}.pending-badge{display:inline-block;margin-top:12px;font-size:12px;font-weight:700;color:#6b5a00;background:#fff4dc;border:1px solid #f3dca4;border-radius:8px;padding:4px 8px}
.stage-detail{color:#8a5a00}.stage.failed .stage-detail{color:#8d2415}.analysed-by{margin-top:10px;font-size:11px;color:var(--muted)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}label.button{display:inline-block;margin:0;cursor:pointer;color:#fff;font-weight:750}label.button.is-disabled{opacity:.35;pointer-events:none}.cv-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0 4px}.cv-actions form{margin:0}.next-step{background:#ebf9c9;border:1px solid #d6ed9a;border-radius:11px;padding:12px 15px;margin-bottom:18px;font-weight:600}.next-step a{color:#111}
.field{margin:14px 0;display:flex;flex-direction:column;gap:7px}.field-label{font-size:13px;font-weight:700}.chip-input{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:8px;border:1px solid #d3d4cd;border-radius:10px;background:#fff;cursor:text;min-height:48px}.chip-input:focus-within{border-color:#888;box-shadow:0 0 0 3px rgba(0,0,0,.05)}.chip{display:inline-flex;align-items:center;gap:4px;background:#f2f2ee;border:1px solid #e3e3dd;border-radius:9px;padding:5px 4px 5px 10px;font-size:14px;font-weight:600}.chip.dup{animation:dup .6s}.chip-x{background:none;color:#555;padding:2px 7px;font-size:17px;line-height:1;border-radius:7px;font-weight:400}.chip-x:hover{background:#e3e3dd;opacity:1}.chip-entry{flex:1;min-width:150px;border:0;padding:6px;box-shadow:none!important;font-size:16px}@keyframes dup{50%{background:#ffe08a}}
.section-actions{display:flex;align-items:center;gap:14px}.link-button{background:none;color:var(--muted);padding:0;font-size:13px;font-weight:600;text-decoration:underline}.link-button:hover{color:#8d2415;opacity:1}.mail-to{background:#f5f5f2;border-radius:10px;padding:11px 13px;font-size:14px;margin:6px 0 10px}.section-head form{margin:0}
.status-grid.three{grid-template-columns:repeat(3,1fr)}.stat.admin-only{border-style:dashed}.prelim-label{display:inline-block;margin-top:12px;font-size:12px;color:var(--muted);background:#f5f5f2;border-radius:8px;padding:4px 8px}.privacy-text{font-size:12px;color:var(--muted);line-height:1.5;margin:18px 2px 0}
@media(max-width:800px){.status-grid.three{grid-template-columns:1fr 1fr}}@media(max-width:480px){.status-grid.three{grid-template-columns:1fr}}
/* Icons are drawn with CSS (no emoji or symbol characters). */
.stage-icon{position:relative;display:inline-block;width:14px;height:14px;margin:4px auto 0;border-radius:50%;box-sizing:border-box}
.stage.pending .stage-icon,.stage.skipped .stage-icon{border:2px solid #c4c5bf}
.stage.active .stage-icon{background:#2f6fdb;transform:scale(.72)}
.stage.done .stage-icon::after,.tick::before{content:"";position:absolute;left:4px;top:0;width:4px;height:9px;border:solid #3d9a31;border-width:0 2px 2px 0;transform:rotate(45deg)}
.stage.failed .stage-icon::before,.stage.failed .stage-icon::after{content:"";position:absolute;left:6px;top:0;width:2px;height:14px;background:#b3261e;transform:rotate(45deg)}
.stage.failed .stage-icon::after{transform:rotate(-45deg)}
.stage.warning .stage-icon{background:#b36b00}.stage.warning .stage-icon::after{content:"!";position:absolute;inset:0;color:#fff;font-size:10px;font-weight:900;line-height:14px;text-align:center}
.chips span.tick{position:relative;padding-left:22px}.tick::before{left:9px;top:7px;width:3px;height:7px}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#5ab44c;margin-right:6px;vertical-align:middle}.status-dot.off{background:#bbb}
/* Autocomplete */
.chip-field{position:relative}
.suggest-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;list-style:none;margin:0;padding:6px;background:#fff;border:1px solid #d3d4cd;border-radius:12px;box-shadow:0 12px 30px rgba(20,20,15,.12);max-height:320px;overflow:auto}
.suggest-item{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 11px;border-radius:8px;cursor:pointer;font-size:15px}
.suggest-item[aria-selected="true"],.suggest-item:hover{background:#f0f0eb}
.suggest-label{font-weight:600}.suggest-sub{font-size:12px;color:var(--muted);text-align:right}
/* Suggestions from the CV */
.cv-suggestions{display:flex;flex-direction:column;gap:6px;margin:2px 0 4px}.cv-suggestions-title{font-size:12px;color:var(--muted);font-weight:600}
.cv-suggestion-list{display:flex;flex-wrap:wrap;gap:7px}.cv-suggestion{display:inline-flex;align-items:center;border:1px dashed #b9bab3;border-radius:9px;background:#fbfbf8}
.cv-add{background:none;color:#222;padding:6px 4px 6px 10px;font-size:14px;font-weight:600}.cv-add:hover{opacity:1;text-decoration:underline}
.cv-dismiss{background:none;color:#888;padding:4px 8px;font-size:15px;font-weight:400}.cv-dismiss:hover{color:#222;opacity:1}
/* Dropdowns with "Annat" */
.choice-field select{width:100%}.choice-custom{display:flex;flex-direction:column;gap:7px;margin-top:10px}.choice-custom[hidden]{display:none}
/* E-post för jobbmatchningar */
.email-panel{margin-top:18px}.email-form{display:flex;gap:10px;flex-wrap:wrap}.email-form input{flex:1;min-width:220px}
@media(max-width:480px){.suggest-item{flex-direction:column;gap:2px}.suggest-sub{text-align:left}}
/* ---------- CV drag and drop ---------- */
.cv-drop{position:relative}
.drop-hint{font-size:17px;font-weight:700;margin:4px 0 2px}.drop-or{color:var(--muted);font-size:13px;margin:2px 0 10px}
.drop-overlay{display:none;position:absolute;inset:0;z-index:2;align-items:center;justify-content:center;text-align:center;padding:16px;border:2px dashed #2f6fdb;border-radius:16px;background:rgba(236,243,255,.94);color:#1d4ed8;font-size:20px;font-weight:800;pointer-events:none}
.cv-drop.drag-over .drop-overlay{display:flex}
.drop-bad{display:none}.cv-drop.drag-invalid .drop-overlay{border-color:#b3261e;background:rgba(255,236,233,.95);color:#8d2415}.cv-drop.drag-invalid .drop-ok{display:none}.cv-drop.drag-invalid .drop-bad{display:inline}
/* Touch devices use the native document picker; drag-and-drop texts would only confuse. */
@media (hover:none),(pointer:coarse){.drop-hint,.drop-or,.drop-only{display:none}}

/* ---------- Menu ---------- */
.menu-toggle{display:none;align-items:center;gap:8px;background:transparent;color:var(--ink);border:1px solid var(--line);padding:9px 12px;min-height:44px}
.menu-bars,.menu-bars::before,.menu-bars::after{display:block;width:16px;height:2px;background:currentColor;border-radius:2px;position:relative}
.menu-bars::before,.menu-bars::after{content:"";position:absolute;left:0}.menu-bars::before{top:-5px}.menu-bars::after{top:5px}
.topbar nav a[aria-current="page"]{color:#000;text-decoration:underline;text-underline-offset:5px}

/* ---------- Phones and narrow windows ---------- */
@media (max-width:720px){
  .topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;height:auto;min-height:60px;padding:10px 16px}
  .brand small{display:none}
  .menu-toggle{display:inline-flex}
  .topbar nav{display:none;flex-basis:100%;flex-direction:column;gap:0;margin:8px 0 2px;border-top:1px solid var(--line)}
  .topbar.nav-open nav,.no-js .topbar nav{display:flex}.no-js .menu-toggle{display:none}
  .topbar nav a{font-size:16px;padding:13px 2px;border-bottom:1px solid var(--line)}
  .container{padding:22px 16px 56px}
  .hero h1,.page-head h1{font-size:32px;letter-spacing:-1px;overflow-wrap:anywhere}
  .hero form,.hero button{width:100%}
  input,select,textarea,.chip-entry{font-size:16px}  /* below 16px iOS zooms in on focus */
  .auth-shell{min-height:0;padding:24px 0}
  .panel{padding:18px}
  .job-card{padding:18px 16px}
  .section-head{flex-wrap:wrap;gap:8px}
  .progress-head{flex-wrap:wrap}
  .progress-summary .sum-item{flex:1 1 auto}
  .email-form input{min-width:0;flex-basis:100%}.email-form button{width:100%}
  .cv-actions>*{flex:1 1 auto}.cv-actions .button,.cv-actions button{width:100%;text-align:center}
  .suggest-list{max-height:320px;max-height:min(320px,45dvh)}
  .chip-input{scroll-margin-top:84px}
}
@media (max-width:400px){.hero h1,.page-head h1{font-size:28px}.score{min-width:52px}}
/* Long words (job titles, employers, file names) never force sideways scrolling. */
.job-top>div{min-width:0}.job-top h3,.meta,.file-pill,.chip,.suggest-label,.stage-label,.mail-to{overflow-wrap:anywhere}
.chip{max-width:100%}
/* Comfortable touch targets. Nothing depends on hover. */
@media (pointer:coarse){
  .chip-x{min-width:36px;min-height:36px}
  .cv-add,.cv-dismiss{min-height:40px}.cv-dismiss{min-width:40px}
  .suggest-item{min-height:44px;padding:11px 12px}
  .small,.job-footer .button,.job-footer button{min-height:44px;padding:10px 14px}
  .link-button{min-height:44px}
}
@media (min-width:721px) and (max-width:800px){.topbar nav{gap:14px}.topbar nav a{font-size:13px}}
.progress-panel{scroll-margin-top:84px}
@media (max-width:720px){.brand-logo{height:26px}.auth-logo{height:38px}}
.forced-digest{border-top:1px solid var(--line);margin-top:18px}.forced-digest h3{font-size:15px;color:var(--ink)}.forced-status{font-size:14px;font-weight:600;min-height:1.4em;margin:10px 0 0}
