/*
 * Rekrytering följer BloxITs grafiska profil så som KundNext tillämpar den
 * (/srv/kundnext/app/.ai/rules/design.md). Alltid mörkt läge. Samma grund som Hemligt.
 *
 *   Ram        #221F1C  ytan bakom allt, bär aldrig text
 *   Sida       #2F2E2A  svart 100
 *   Kort       #403E3C  svart 90, kortytor och fält
 *   Linje      #514F4D  svart 80
 *   Text       #F4F4F2  varmgrå 20
 *   Dämpad     #CFCECD  svart 20 (6,78 mot kort)
 *   Guld       #E2B77E  bär text endast på mörk yta; guld yta bär #2D2926
 *
 * Dosis spärrat 0,2em bär bara korta etiketter. Rubriker är Mulish Bold.
 */

@font-face {
  font-family: "Mulish"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("fonts/mulish-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Dosis"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/dosis-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --shell: #221f1c;
  --bar: #2d2926;
  --page: #2f2e2a;
  --card: #403e3c;
  --line: #514f4d;
  --fg: #f4f4f2;
  --muted: #cfcecd;
  --gold: #e2b77e;
  --gold-80: #dec498;
  --ink: #2d2926;
  --critical: #efa890;
  --active: #8fd3c0;
  --radius: 6px;
  --ring: 0 0 0 3px rgb(226 183 126 / .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--shell); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--shell);
  color: var(--fg);
  font: 400 15px/1.6 "Mulish", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- typografi ---------- */

.eyebrow {
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin: 0;
}
h1, h2 { font-weight: 700; margin: 0; letter-spacing: -.005em; }
h1 { font-size: 30px; line-height: 1.25; margin-left: -.03em; }
h2 { font-size: 18px; line-height: 1.4; }
.meta { color: var(--muted); font-size: 14px; margin: 0; max-width: 62ch; }
.body { color: var(--muted); margin: 0; }
.long { margin: 0; line-height: 1.7; max-width: 62ch; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
.opt { font-weight: 400; color: var(--muted); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { font-size: .9em; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

/* ---------- ram ---------- */

.bar { background: var(--bar); border-bottom: 1px solid #000; }
.bar-in {
  max-width: 1040px; margin: 0 auto; height: 76px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.brand:hover { text-decoration: none; }
.logo { height: 28px; width: auto; display: block; }
.product {
  font-family: "Dosis", sans-serif; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .2em; color: var(--fg);
  padding-left: 16px; border-left: 1px solid var(--line); line-height: 20px;
}
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-link { color: var(--muted); font: inherit; }
.nav-link:hover { color: var(--fg); text-decoration: none; }
.nav-gold { color: var(--gold); font-weight: 600; }
.nav-gold:hover { color: var(--gold-80); }
.as-button { background: none; border: 0; padding: 0; cursor: pointer; }
.who { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.who-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--active); }

.wrap { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 40px 24px 48px; }
.view { display: flex; flex-direction: column; gap: 24px; }
.view.narrow { max-width: 384px; margin: 8vh auto 0; gap: 28px; }

.tagline {
  font-family: "Dosis", sans-serif; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
  text-align: center; padding: 24px 16px 32px;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.tagline a { color: var(--muted); }
.tagline a:hover { color: var(--gold); text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- sidhuvud ---------- */

.page-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.center-head { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.center-head h1 { font-size: 24px; }

/* ---------- paneler ---------- */

.panel { background: var(--page); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.panel.pad { padding: 24px; }
.panel-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 16px 24px; background: var(--card); border-top: 1px solid var(--line);
}
.panel-foot .fine { margin: 0; margin-right: auto; }
.panel-foot .field-error { margin: 0 auto 0 0; }
.foot-status { margin-right: auto; flex: 1; min-width: 0; }

/* Start: en panel delad med en linje, inte två flytande kort */
.home { padding-top: 6vh; }
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.split-col { padding: 40px; display: flex; flex-direction: column; gap: 10px; }
.split-col + .split-col { border-left: 1px solid var(--line); }
.split-col h2 { font-size: 28px; line-height: 1.2; }
.split-col .eyebrow { color: var(--gold); }
.split-col .body { margin-bottom: 18px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eyebrow.num { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.eyebrow.num span { color: var(--muted); font-weight: 500; }
.eyebrow.num span::after { content: ""; display: inline-block; width: 20px; height: 1px; background: var(--line); vertical-align: middle; margin-left: 10px; }

.choice-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.choice {
  display: grid; grid-template-columns: 20px 1fr 16px; align-items: center; gap: 14px;
  padding: 14px 16px; color: var(--fg); background: var(--card);
  transition: background .12s;
}
.choice + .choice { border-top: 1px solid var(--line); }
.choice:hover { background: #4a4846; text-decoration: none; }
.choice:hover .chev { color: var(--gold); transform: translateX(2px); }
.choice svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.choice .chev { width: 16px; height: 16px; stroke: var(--muted); transition: transform .12s; }
.choice strong { display: block; font-weight: 700; font-size: 14.5px; }
.choice small { display: block; color: var(--muted); font-size: 13px; }

.tag {
  margin-left: auto; font-style: normal; font-size: 10.5px; letter-spacing: .16em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 3px 7px 2px;
}

/* Formulär i rader: etikett till vänster, fält till höger */
.row-form { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 24px; }
.row-form + .row-form { border-top: 1px solid var(--line); }
.row-label label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.row-label p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.row-field { min-width: 0; }
.row-field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--fg); }
.row-field > .sub-label { margin-top: 18px; }

.block { padding: 24px; }
.block + .block { border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* ---------- fält ---------- */

label { font-size: 14px; font-weight: 600; }
.form-tight { display: flex; flex-direction: column; gap: 8px; }
.form-tight .btn-block { margin-top: 8px; }

input, textarea, select {
  width: 100%; font: inherit; font-size: 14px; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 12px; height: 38px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.55; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; }
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFCECD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
input::placeholder, textarea::placeholder { color: #a2a09f; }
input[readonly] { font-size: 13px; color: var(--fg); background: var(--shell); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
:focus-visible { outline: none; box-shadow: var(--ring); }

.input-group { display: flex; gap: 8px; }
.input-group > input, .input-group > .pw { flex: 1; min-width: 0; }
.pw { position: relative; }
.pw input { padding-right: 42px; }
.icon-btn {
  position: absolute; right: 3px; top: 3px; width: 32px; height: 32px;
  display: grid; place-items: center; background: none; border: 0; border-radius: 4px; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--fg); background: var(--line); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.field-error { color: var(--critical); font-size: 13.5px; font-weight: 600; margin: 4px 0 0; }
.alert {
  margin: 0; padding: 12px 16px; font-size: 14px; color: var(--fg);
  background: var(--page); border: 1px solid var(--line); border-left: 3px solid var(--critical); border-radius: var(--radius);
}

/* ---------- knappar ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-80); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-outline:hover { background: var(--card); border-color: #797774; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: var(--card); }
.btn-danger { background: transparent; color: var(--critical); border-color: var(--line); }
.btn-danger:hover { border-color: var(--critical); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* Flikar: raka, med guldlinje under den valda */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-top: -8px; }
.tabs button {
  background: none; border: 0; padding: 0 0 12px; margin-bottom: -1px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--gold); }

/* ---------- filer ---------- */

.drop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 88px; border: 1px dashed #797774; border-radius: var(--radius);
  color: var(--muted); font-size: 14px; cursor: pointer; background: var(--card);
  transition: border-color .12s, background .12s;
}
.drop svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop small { color: #a2a09f; font-size: 12.5px; margin-left: 6px; }
.drop u { color: var(--gold); text-decoration: none; font-weight: 600; }
.drop:hover, .drop.over { border-color: var(--gold); }

.rows { list-style: none; margin: 0; padding: 0; }
.drop + .rows:not(:empty) { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#dl-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rows li {
  position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
  min-height: 46px; padding: 6px 6px 6px 14px; background: var(--card);
}
.rows li + li { border-top: 1px solid var(--line); }
.rows .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rows .size { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rows .done { color: var(--active); font-size: 13px; font-weight: 600; }
.rows .ghost.icon { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); border-radius: 4px; cursor: pointer; font-size: 14px; }
.rows .ghost.icon:hover { background: var(--line); color: var(--fg); }
.rows .secondary.small {
  height: 30px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius);
}
.rows .secondary.small:hover { border-color: #797774; }
.rows .fbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.rows .fbar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s; }

.progress { display: flex; align-items: center; gap: 12px; }
.progress .bar { flex: 1; max-width: 280px; height: 2px; background: var(--line); }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
.progress span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.secret {
  margin: 0; padding: 16px; white-space: pre-wrap; word-break: break-word;
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius);
  font: 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; max-height: 50vh; overflow: auto;
}

/* ---------- status ---------- */

.state { display: flex; align-items: center; gap: 12px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.state.gone::before { background: var(--active); }
.facts { display: grid; grid-template-columns: 240px 1fr; margin: 0; }
.facts dt, .facts dd { padding: 14px 24px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { font-variant-numeric: tabular-nums; }
.facts dt:not(:first-of-type), .facts dt:not(:first-of-type) + dd { border-top: 1px solid var(--line); }
#m-opens:not(:empty) { border-top: 1px solid var(--line); padding: 14px 24px; display: grid; grid-template-columns: 216px 1fr; gap: 24px; font-size: 14px; }
#m-opens label { color: var(--muted); font-weight: 400; }
#m-opens ul { margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
  background: var(--fg); color: var(--ink); padding: 9px 16px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobil ---------- */

@media (max-width: 760px) {
  .wrap { padding: 28px 16px 40px; }
  .bar-in { padding: 0 16px; }
  h1 { font-size: 24px; }
  .split { grid-template-columns: 1fr; }
  .split-col { padding: 28px 20px; }
  .home { padding-top: 0; }
  .split-col + .split-col { border-left: 0; border-top: 1px solid var(--line); }
  .row-form { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .row-field.two { grid-template-columns: 1fr; }
  .panel-foot { padding: 14px 20px; }
  .panel-foot .btn-primary { width: 100%; }
  .facts { grid-template-columns: 1fr 1.4fr; }
  .facts dt, .facts dd { padding: 12px 16px; }
  #m-opens:not(:empty) { grid-template-columns: 1fr; gap: 6px; padding: 12px 16px; }
  .logo { height: 22px; }
  .bar-in { height: 64px; }
  .who { border-left: 0; padding-left: 0; }
  #who-name { display: none; }
}
@media (max-width: 420px) {
  .input-group { flex-wrap: wrap; }
  .input-group > input, .input-group > textarea { flex-basis: 100%; }
  .input-group > .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Sidhuvudet: lodräta linjer mellan Så fungerar det | Skickat | namn | Logga ut */
.nav { gap: 0; }
.nav > *:not([hidden]) { display: flex; align-items: center; line-height: 20px; padding: 0 18px; border-left: 1px solid var(--line); }
.nav > *:not([hidden]):first-child { border-left: 0; }
.nav > *:not([hidden]):last-child { padding-right: 0; }
.who { gap: 0; }
.who #who-name { padding: 0 18px 0 10px; opacity: 1; }
.who #logout { padding-left: 18px; border-left: 1px solid var(--line); line-height: 20px; }
@media (max-width: 760px) {
  .nav > *:not([hidden]) { padding: 0 12px; }
  .who #logout { padding-left: 0; border-left: 0; }
  .who #who-name { padding: 0 8px 0 0; }
}
.nav-link { white-space: nowrap; }
.btn, .btn-sm { height: 40px; min-width: 0; padding: 0 18px; font-size: 14px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ===================== Rekrytering ===================== */
textarea { font-family: inherit; font-size: 14px; }
.eyebrow.gold { color: var(--gold); }
.wrap { max-width: 1120px; }
.bar-in { max-width: 1120px; }

/* ---------- inledning ---------- */
.hero { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 4px; }
.hero h1 { font-size: 40px; line-height: 1.15; }
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.steps3 li { display: flex; gap: 14px; padding: 20px 24px; align-items: flex-start; }
.steps3 li + li { border-left: 1px solid var(--line); }
.steps3 .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--gold); font-weight: 700; font-size: 14px; }
.steps3 strong { display: block; font-size: 14.5px; }
.steps3 small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }

/* ---------- formulär ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid2 .span2 { grid-column: 1 / -1; }
.grid2 .sub-label, .grid2 > div > .sub-label { margin-top: 0; }
.after-chips { margin-top: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--gold); cursor: pointer; }
.grid2 .check { height: 38px; align-items: center; }
.grid2 .check input { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row-label .opt, .sub-label .opt { font-weight: 400; font-size: 12.5px; color: #a2a09f; margin-left: 4px; }
.field-error.inline { margin-top: 8px; }
.invalid-row .row-label label { color: var(--critical); }
input.invalid, select.invalid { border-color: var(--critical); }
.counter { margin: 10px 0 0; font-size: 13px; color: var(--muted); min-height: 20px; }
.counter b { color: var(--gold); }

/* Chips: roller, certifieringar, anställning (av/på) och kompetenser (nivå 0–3) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--fg); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  transition: background .12s, border-color .12s, color .12s; user-select: none; -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: #797774; }
.chips.small .chip { height: 30px; font-size: 13px; padding: 0 11px; }
.chip[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--card)); }
.chip[aria-pressed="true"]::before {
  content: ""; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translate(1px, -1px); margin-left: -2px;
}
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 5px; height: 12px; border-radius: 2px; background: var(--line); transition: background .12s; }
.chip.lv1, .chip.lv2, .chip.lv3 { border-color: var(--gold); }
.chip.lv1 { background: color-mix(in srgb, var(--gold) 8%, var(--card)); }
.chip.lv2 { background: color-mix(in srgb, var(--gold) 20%, var(--card)); }
.chip.lv3 { background: var(--gold); color: var(--ink); }
.chip.lv1 .pips i:nth-child(1), .chip.lv2 .pips i:nth-child(-n+2) { background: var(--gold); }
.chip.lv3 .pips i { background: var(--ink); }
.chip.lv0x { border-style: dashed; color: var(--muted); text-decoration: line-through; }
.chip.demo { width: 34px; height: 22px; padding: 0; justify-content: center; cursor: default; }
.chip.demo .pips i { height: 9px; width: 4px; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 10px; }
.skill-groups { display: flex; flex-direction: column; gap: 18px; }
.skill-group h3 { margin: 0 0 8px; font-family: "Dosis", sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.skill-groups + .sub-label { margin-top: 22px; }
.skill-groups.compact { gap: 12px; }
.skill-groups.compact .chip { height: 30px; font-size: 13px; padding: 0 11px; }
.chips.readonly .chip, .chip.ro { cursor: default; }
.chips.readonly .chip:hover { border-color: inherit; }

/* Segmentväljare för erfarenhet */
.seg { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { height: 40px; background: var(--card); color: var(--muted); border: 0; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0 6px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"] { background: var(--gold); color: var(--ink); }
.seg + .sub-label { margin-top: 22px !important; }

.apply-foot { justify-content: space-between; gap: 16px 24px; }
.apply-foot .consent { flex: 1 1 360px; color: var(--muted); font-size: 13.5px; }
.apply-foot .consent b { color: var(--fg); }
.apply-foot .foot-status { flex: 1 1 100%; order: 3; margin: 0; }
.apply-foot .foot-status:has([hidden]) { display: none; }
#drop.has-file { display: none; }
#cv-file:not(:empty) { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#cv-file:not(:empty) + .sub-label, #drop + #cv-file:empty + .sub-label { margin-top: 18px; }
.back-btn { align-self: flex-start; }

/* ---------- admin: lista ---------- */
.count { font-weight: 400; color: var(--muted); font-size: 22px; margin-left: 6px; }
.filters { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; overflow: visible; }
.search-row { display: flex; gap: 10px; }
.search-in { position: relative; flex: 1; min-width: 0; }
.search-in svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-in input { padding-left: 40px; height: 40px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; }
#skill-toggle[aria-expanded="true"] { border-color: var(--gold); }
.picker { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px; }
.picker .chip { background: var(--page); }
.picker .chip.lv1 { background: color-mix(in srgb, var(--gold) 8%, var(--page)); }
.picker .chip.lv2 { background: color-mix(in srgb, var(--gold) 20%, var(--page)); }
.picker .chip.lv3 { background: var(--gold); }
.picker-hint { margin: 0 0 14px; }
.active-skills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.active-skills .chip { height: 30px; font-size: 13px; padding: 0 6px 0 11px; }
.active-skills .x { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; line-height: 1; }
.active-skills .chip.lv3 .x { color: var(--ink); }
.active-skills .clear { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 0 6px; }
.active-skills .clear:hover { color: var(--fg); }
.filter-row { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
.f-check .check { height: 38px; align-items: center; }
.f-check .check input { margin: 0; }

.cand-head, .cand-rows a { display: grid; grid-template-columns: 1.3fr 2.2fr .8fr 1fr 92px; gap: 18px; align-items: center; padding: 14px 24px; }
.cand-head { font-family: "Dosis", sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 16px; padding-bottom: 12px; }
.cand-rows { list-style: none; margin: 0; padding: 0; }
.cand-rows li + li { border-top: 1px solid var(--line); }
.cand-rows a { color: var(--fg); font-size: 14px; transition: background .12s; }
.cand-rows a:hover { background: #363431; text-decoration: none; }
.cand-rows .who-c strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-rows .who-c small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-rows .sk { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.cand-rows .sk .chip { height: 24px; font-size: 12px; padding: 0 8px; gap: 6px; cursor: inherit; }
.cand-rows .sk .chip .pips i { height: 9px; width: 4px; }
.cand-rows .sk .more { color: var(--muted); font-size: 12.5px; align-self: center; }
.cand-rows .sk .chip.match { box-shadow: 0 0 0 1px var(--gold); }
.cand-rows .yrs, .cand-rows .when { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.st.ny::before { background: var(--gold); }
.st.kontaktad::before, .st.intervju::before, .st.erbjudande::before { background: #9fb8e6; }
.st.anstalld::before { background: var(--active); }
.st.nej::before, .st.vilande::before { background: var(--line); }
.mini-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; margin-left: 4px; }
.assessed { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-left: 6px; }

/* ---------- admin: kandidat ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; align-self: flex-start; margin-bottom: -8px; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--fg); text-decoration: none; }
.cand-top h1 { font-size: 32px; }
.c-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-bar { display: grid; grid-template-columns: 240px auto 1fr; gap: 24px; align-items: end; padding: 18px 24px; }
.status-bar .fine { margin: 0 0 10px; text-align: right; }
.stars { display: flex; gap: 2px; height: 38px; align-items: center; }
.stars button { width: 30px; height: 30px; background: none; border: 0; cursor: pointer; padding: 0; color: var(--line); font-size: 22px; line-height: 1; border-radius: 4px; }
.stars button.on { color: var(--gold); }
.stars button:hover { color: var(--gold-80); }
.btn-row { display: flex; gap: 8px; }
.block-head { gap: 16px; align-items: flex-start; }
.block-head .fine { margin: 6px 0 0; }
#c-skills .chip { cursor: default; }
#c-skills.editing .chip { cursor: pointer; }
#c-skills .chip .self { font-size: 11px; font-weight: 600; color: var(--muted); }
#c-skills .chip.lv3 .self { color: var(--ink); opacity: .75; }
.other { margin-top: 16px !important; color: var(--muted); }
.other b { color: var(--fg); }
.facts { border-top: 1px solid var(--line); }
.facts dd a { color: var(--gold); }
.msg { white-space: pre-wrap; margin-top: 10px !important; }
.note-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; margin: 12px 0 0; }
.notes { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; }
.notes li { padding: 14px 0; border-top: 1px solid var(--line); }
.notes .n-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.notes .n-meta b { color: var(--fg); font-weight: 600; }
.notes .n-body { margin: 0; white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; }
.notes li.sys .n-body { color: var(--muted); font-size: 13.5px; }
.notes:empty { display: none; }

@media (max-width: 900px) {
  .filter-row { grid-template-columns: repeat(3, 1fr); }
  .cand-head { display: none; }
  .cand-rows a { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; }
  .cand-rows .who-c { grid-column: 1; }
  .cand-rows .st { grid-column: 2; grid-row: 1; }
  .cand-rows .sk { grid-column: 1 / -1; }
  .cand-rows .yrs { grid-column: 1; }
  .cand-rows .when { grid-column: 2; text-align: right; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15.5px; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps3 li { padding: 14px 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg button:nth-child(odd) { border-left: 0; }
  .seg button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .seg button:last-child { grid-column: 1 / -1; }
  .legend { flex-direction: row; gap: 16px; }
  .filters { padding: 16px; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .search-row { flex-wrap: wrap; }
  .search-row .btn { flex: 1; }
  .status-bar { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .status-bar .fine { text-align: left; margin: 0; }
  .cand-top { flex-direction: column; align-items: flex-start; }
  .c-actions { width: 100%; }
  .c-actions .btn { flex: 1; }
  .head-row .btn#export { display: none; }
  .block { padding: 20px 16px; }
  .block-head { flex-direction: column; }
}
.head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head-row > div { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .cand-top { flex-direction: column; align-items: flex-start; } }
@media (max-width: 760px) { .search-in { flex-basis: 100%; } .cand-rows .when { grid-column: 2; grid-row: 3; } .cand-rows .yrs { grid-row: 3; } }
.filter-row { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
@media (max-width: 900px) { .filter-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .filter-row { grid-template-columns: 1fr 1fr; } }
#certs + .after-chips { margin-top: 16px; }
.start-date { margin-top: 12px; }
input[type="date"] { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(78%) sepia(30%) saturate(500%) hue-rotate(350deg); cursor: pointer; }
