:root {
  /* Lyst, professionelt og optimistisk tema, inspireret af LinkedIns farver */
  --bg: #f4f2ee;            /* varm lys baggrund (LinkedIn feed) */
  --surface: #ffffff;       /* kort */
  --surface-2: #eef3f8;     /* input/sekundær flade */
  --line: #dfe1e4;          /* fine streger */
  --ink: #1d2226;           /* næsten sort tekst */
  --muted: #56687a;         /* dæmpet tekst (AA-kontrast på hvid) */
  --brand: #0a66c2;         /* LinkedIn-blå */
  --brand-2: #004182;       /* mørkere blå til hover */
  --brand-soft: #e8f0fb;    /* blå tint til aktive flader */
  --green: #057642;         /* LinkedIn-grøn (positiv) */
  --green-soft: #e7f3ec;
  --amber: #915907;         /* advarsel */
  --amber-soft: #fbf1dd;
  --red: #b24020;           /* fare */
  --red-soft: #fbe9e3;
  --blue: #0a66c2;
  --radius: 12px;
  --shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-sm: 0 0 0 1px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.06);
  --focus: #0a66c2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink); line-height: 1.6; min-height: 100vh;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; color: var(--brand-2); }
button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 8px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* --- Login: split-layout (hero + auth) --- */
.split { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.hero {
  background: linear-gradient(160deg, #0a66c2 0%, #0b5cad 55%, #084a8c 100%);
  color: #fff;
  padding: 56px 6vw; display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.hero .brand-name, .hero .hero-title { color: #fff; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.hero-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -1px; margin: 22px 0 14px; max-width: 16ch; }
.hero-lead { font-size: 17px; color: #eaf2fb; max-width: 46ch; margin-bottom: 26px; }
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 48ch; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #eaf2fb; }
.hp-ico { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.hero-points strong { color: #fff; }
.hero-trust { margin-top: 28px; font-size: 13px; color: #d4e4f7; border-top: 1px solid #ffffff33; padding-top: 18px; max-width: 48ch; }

.auth-pane { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card {
  width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow);
}
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.logo { width: 44px; height: 44px; border-radius: 10px; background: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; }
.auth-heading { font-size: 24px; letter-spacing: -0.5px; }
.auth-sub { color: var(--muted); font-size: 15px; margin: 6px 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; background: #fff; border: 1px solid #aab2bd;
  border-radius: 8px; color: var(--ink); font-size: 16px; min-height: 48px;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px #0a66c2; }

/* Alfa-disclaimer + samtykke */
.alpha-banner {
  background: var(--amber-soft); border: 1px solid #e9d3a0; color: #6b430a;
  border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; line-height: 1.5;
}
.alpha-banner strong { color: #5a3807; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .hero { padding: 36px 24px 26px; }
  .hero-points { gap: 10px; }
  .auth-pane { padding: 24px 18px 44px; }
}
.btn {
  width: 100%; padding: 13px 16px; min-height: 48px; border: none; border-radius: 24px; font-weight: 700; font-size: 15px;
  background: var(--brand); color: #fff; transition: background .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { background: var(--brand-2); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.btn-google { background: #fff; color: #1f2330; border: 1px solid #8c95a1; margin-bottom: 4px; }
.btn-google:hover { background: #f3f6f8; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.toggle-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.err { background: var(--red-soft); border: 1px solid #e6b5a6; color: #7a2a13; padding: 11px 13px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; display: none; }
.err.show { display: block; }

/* --- App shell (sammenfoldelig sidebar) --- */
.shell { display: grid; grid-template-columns: var(--side-w, 280px) 1fr; min-height: 100vh; transition: grid-template-columns .18s ease; }
body.nav-collapsed { --side-w: 76px; }

.icon-btn { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; min-height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; cursor: pointer; flex-shrink: 0; transition: background .12s, border-color .12s; }
.icon-btn:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-2); }
.topbar { display: none; }
.nav-overlay { display: none; }

.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.side .brand-row { margin-bottom: 22px; padding: 0 4px 0 8px; gap: 8px; align-items: center; }
.side-collapse { width: 30px; height: 30px; min-height: 30px; font-size: 14px; }
body.nav-collapsed .side-collapse { transform: rotate(180deg); }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-secondary { flex: 0 0 auto; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.nav a { display: flex; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; align-items: flex-start; transition: background .12s; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--brand-soft); color: var(--brand-2); box-shadow: inset 3px 0 0 var(--brand); }
.nav .ico { width: 18px; text-align: center; flex-shrink: 0; line-height: 1.5; }
.nav .nav-label { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav .nav-desc { font-size: 11.5px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.nav a.active .nav-desc { color: #3a6a9c; }
.userbox { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); margin-top: 12px; cursor: pointer; border-radius: 10px; transition: background .12s; }
.userbox:hover { background: var(--surface-2); }
.userbox.active { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.userbox-gear { margin-left: auto; color: var(--muted); font-size: 15px; flex-shrink: 0; }
.userbox:hover .userbox-gear, .userbox.active .userbox-gear { color: var(--brand-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.userbox .meta { flex: 1; min-width: 0; }
.userbox .meta b { display: block; font-size: 13px; }
.userbox .meta span { font-size: 11px; color: var(--muted); }

/* Sammenfoldet tilstand: kun ikoner */
body.nav-collapsed .side { padding: 20px 10px; }
body.nav-collapsed .brand-text { display: none; }
body.nav-collapsed .side .brand-row { justify-content: center; padding: 0; }
body.nav-collapsed .nav a { justify-content: center; padding: 11px 0; gap: 0; }
body.nav-collapsed .nav-label { display: none; }
body.nav-collapsed .userbox { justify-content: center; padding: 10px 0; }
body.nav-collapsed .userbox .meta, body.nav-collapsed .userbox-gear { display: none; }

.main { padding: 26px 32px; overflow-y: auto; max-height: 100vh; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { font-size: 24px; letter-spacing: -0.5px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; max-width: 70ch; }

.view { display: none; }
.view.active { display: block; }

/* Info-boks der forklarer en side (forståelig for alle) */
.explain { background: var(--brand-soft); border: 1px solid #cfe0f5; color: #234b73; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 18px; max-width: 760px; }
.explain b { color: #163a5c; }

/* Stat-kort */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat b { font-size: 26px; display: block; color: var(--brand); }
.stat span { color: var(--muted); font-size: 12px; }

/* Job-kort */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px,1fr)); gap: 14px; }
.jcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-left: 4px solid var(--muted); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.jcard.fit-high { border-left-color: var(--green); }
.jcard.fit-mid { border-left-color: var(--blue); }
.jcard.fit-low { border-left-color: var(--amber); }
.jcard .top { display: flex; justify-content: space-between; gap: 10px; }
.jcard .role { font-weight: 700; font-size: 15px; }
.jcard .role a { color: var(--ink); }
.jcard .role a:hover { color: var(--brand); }
.jcard .company { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pill-fit-high { background: var(--green-soft); color: var(--green); }
.pill-fit-mid { background: var(--brand-soft); color: var(--brand); }
.pill-fit-low { background: var(--amber-soft); color: var(--amber); }
.pill-lon { background: var(--surface-2); color: var(--muted); }
.pill-src { background: var(--surface-2); color: var(--muted); font-size: 10px; }
.jcard .note { color: #44505d; font-size: 13px; }
.jcard .foot { display: flex; gap: 7px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.sbtn { font-size: 13px; font-weight: 600; padding: 9px 14px; min-height: 40px; border-radius: 20px; border: 1px solid #8c95a1; background: var(--surface); color: var(--brand); }
.sbtn:hover { background: var(--brand-soft); border-color: var(--brand); }
.sbtn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.sbtn-primary:hover { background: var(--brand-2); }
.sbtn-danger { color: var(--red); border-color: #d6a08f; }
.sbtn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.sbtn-link { background: transparent; border-color: transparent; color: var(--brand); text-decoration: underline; }

/* Tags-input */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tag { background: var(--brand-soft); border: 1px solid #cfe0f5; padding: 5px 10px; border-radius: 20px; font-size: 13px; display: flex; align-items: center; gap: 7px; color: var(--brand-2); }
.tag button { background: none; border: none; color: var(--muted); font-size: 15px; line-height: 1; }
.tag button:hover { color: var(--red); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; max-width: 760px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 15px; margin-bottom: 6px; }
.panel .panel-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.panel label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
.panel input, .panel textarea, .panel select {
  width: 100%; padding: 12px; min-height: 46px; background: #fff; border: 1px solid #aab2bd; border-radius: 8px; color: var(--ink); font-size: 16px; font-family: inherit;
}
.panel input:focus, .panel textarea:focus, .panel select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px #0a66c2; }
.panel textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.switch-row input { width: auto; min-height: 0; width: 18px; height: 18px; accent-color: var(--brand); }
.switch-row label { margin: 0; }

/* Fare-zone (slet konto) */
.danger-zone { border-color: #e6c2b5; background: var(--red-soft); }
.danger-zone h3 { color: var(--red); }

/* Dropzone til drag'n'drop */
.dropzone {
  border: 2px dashed #aab2bd; border-radius: 12px; padding: 28px 18px; text-align: center;
  color: var(--muted); background: var(--surface-2); transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); }
.dropzone .dz-big { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.dz-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* Dokument-kort med kategori-vælger */
.doc-type-select { max-width: 180px; padding: 7px 10px !important; min-height: 36px !important; font-size: 13px !important; }

/* Modal (preview af genereret materiale) */
.modal { position: fixed; inset: 0; background: rgba(15,20,28,0.55); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal.show { display: flex; }
.modal-card { background: var(--surface); border-radius: 14px; max-width: 820px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); padding: 26px; }
.modal-card h2 { font-size: 20px; margin-bottom: 4px; }
.modal-card .m-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.modal-card label { display: block; font-size: 13px; font-weight: 700; margin: 16px 0 6px; }
.modal-card textarea { width: 100%; border: 1px solid #aab2bd; border-radius: 8px; padding: 12px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); resize: vertical; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.modal-close { margin-left: auto; }

/* Segmenteret kontrol (format-valg HTML/PDF) */
.seg { display: inline-flex; border: 1px solid #8c95a1; border-radius: 20px; overflow: hidden; }
.seg button { background: var(--surface); border: none; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 40px; }
.seg button.on { background: var(--brand); color: #fff; }

/* Progress-bjælker (upload + AI) */
.prog-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.prog-label { font-weight: 600; color: var(--ink); }
.progress { height: 10px; background: var(--surface-2); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--brand); border-radius: 20px; transition: width .25s ease; }
.progress-bar-ai { background: var(--green); }
.progress.indeterminate .progress-bar { width: 40%; animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* Sprogvalg-knapper */
.lang-opts { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.lang-opts .sbtn { flex: 1; min-width: 130px; }

/* Dæknings-tjek (krav fra opslaget dækket/mangler) */
.coverage { margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); font-size: 13px; }
.coverage h4 { font-size: 13px; margin: 0 0 6px; }
.coverage ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 3px; }
.coverage .cov-ok li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.coverage .cov-miss li::before { content: "• "; color: var(--amber); font-weight: 700; }
.coverage .cov-miss { color: #6b430a; }
.coverage .cov-miss-h { color: var(--amber); font-weight: 700; margin: 4px 0; }

/* Chat-revider boks i modal */
.revise-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.revise-box .row > input { min-width: 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1d2226; color: #fff; padding: 12px 20px; border-radius: 24px; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; box-shadow: var(--shadow); z-index: 300; }
.toast.show { opacity: 1; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #ffffff77; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
.spinner-brand { border-color: #0a66c233; border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* GDPR / privatliv */
.legal { max-width: 760px; }
.legal h3 { font-size: 16px; margin: 18px 0 8px; }
.legal p { color: #3a4753; font-size: 14px; margin-bottom: 10px; }
.legal ul { padding-left: 20px; color: #3a4753; font-size: 14px; margin-bottom: 10px; }
.legal li { margin-bottom: 6px; }

/* Mobil: topbar + slide-in skuffe */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
  /* Sidebaren bliver en off-canvas skuffe (ignorér collapse-tilstand på mobil) */
  body { --side-w: 280px; }
  .side {
    position: fixed; top: 0; left: 0; height: 100vh; width: 280px; z-index: 80;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow);
    padding: 20px 14px;
  }
  body.nav-open .side { transform: translateX(0); }
  /* fuld skuffe selv hvis collapsed-tilstand er gemt fra desktop */
  body.nav-collapsed .side { padding: 20px 14px; }
  body.nav-collapsed .brand-text, body.nav-collapsed .nav-label, body.nav-collapsed .userbox .meta { display: flex; }
  body.nav-collapsed .nav a { justify-content: flex-start; padding: 10px 12px; gap: 11px; }
  body.nav-collapsed .userbox { flex-direction: row; padding: 10px; }
  body.nav-collapsed .userbox .sbtn { font-size: 13px; }
  body.nav-collapsed .userbox .sbtn::after { content: ""; }
  .side-collapse { display: none; }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(15,20,28,.45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .22s; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  .main { max-height: none; padding: 18px 16px; }
  .cards { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
}

/* --- Sprog-vælger (flag) --- */
.lang-switch { display: flex; gap: 6px; margin: 6px 4px 10px; }
.lang-switch button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 8px; font-size: 14px; cursor: pointer; color: var(--muted); font-weight: 600;
}
.lang-switch button:hover { background: var(--brand-soft); }
.lang-switch button.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-2); }
.lang-switch .lang-txt { font-size: 13px; }
.lang-switch-top { margin: 0 0 0 auto; }
.lang-switch-top button { flex: 0 0 auto; padding: 6px 8px; }
.lang-switch-top .lang-txt { display: none; }
body.nav-collapsed .lang-switch .lang-txt { display: none; }
body.nav-collapsed .lang-switch { flex-direction: column; }

/* --- Kompakt job-liste med udfoldelig detalje --- */
/* Job-, remote- og headhunter-listen skal bruge hele bredden (ikke grid-kolonner). */
#jobCards, #remoteCards, #hhCards { display: block; }
/* Admin: fejllog */
.admin-log { font-size: 12.5px; max-height: 320px; overflow-y: auto; }
.admin-log .log-line { padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--ink, #1d2733); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-log .log-src { display: inline-block; min-width: 90px; color: var(--brand-2); font-weight: 700; }
.model-routing { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.model-routing td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.model-routing td:last-child { font-family: ui-monospace, Menlo, monospace; color: var(--brand-2); }
.jlist { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.jrow { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.jrow.open { border-color: var(--brand); box-shadow: var(--shadow); }
.jrow-head { display: flex; align-items: center; gap: 6px; padding-right: 10px; }
.jrow-head:hover { background: var(--brand-soft); }
.jrow-toggle {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.jrow-quick { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.qbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; line-height: 1;
}
.qbtn:hover { background: var(--brand-soft); color: var(--brand-2); text-decoration: none; }
.qbtn-ok:hover { background: #dcfce7; color: #166534; border-color: #9fe0b6; }
.qbtn-del:hover { background: #fee2e2; color: #991b1b; border-color: #f3b4b4; }
.chev { color: var(--muted); font-size: 12px; transition: transform .18s ease; flex: 0 0 auto; }
.jrow.open .chev { transform: rotate(180deg); }
.jrow-fit {
  flex: 0 0 auto; min-width: 44px; text-align: center; font-weight: 800; font-size: 13px;
  padding: 3px 8px; border-radius: 999px;
}
.jrow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.jrow-title { font-weight: 700; color: var(--ink, #1d2733); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jrow-company { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jrow-tags { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.jrow-applied { font-size: 12px; color: var(--muted); }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-onhold { background: #fef3c7; color: #92660a; }
.badge-applied { background: #dcfce7; color: #166534; }
.badge-interview { background: #dbeafe; color: #1e40af; }
.badge-dismissed { background: #f1f3f5; color: #687684; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.jrow-detail { padding: 4px 14px 14px 40px; border-top: 1px solid var(--line); }
.jrow-note { color: var(--ink, #1d2733); font-size: 14px; margin: 10px 0; }
.jrow-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.jrow-detail .foot { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .jrow-company { white-space: normal; }
  .jrow-detail { padding-left: 14px; }
}

/* --- CV-sprog-status på profilsiden --- */
.cv-langs { display: flex; flex-direction: column; gap: 8px; }
.cv-lang-row { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.cv-lang-flag { font-size: 18px; }
.cv-status .cv-ok { color: #1a7f37; font-weight: 700; }
.cv-status .cv-miss { color: var(--amber); }

/* ===== Kandidat-værktøjer (keyword/interview/company/salary/outreach) ===== */
.jtools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jtool-out { margin-top: 10px; }
.tool-loading { color: var(--muted); padding: 8px 0; display: flex; align-items: center; gap: 8px; }
.tool-err { color: var(--red); background: var(--red-soft); border-radius: var(--radius); padding: 10px 12px; }
.tool-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tool-card h4 { margin: 0 0 8px; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.tool-card b { display: block; margin: 12px 0 4px; color: var(--ink); font-size: .9rem; }
.tool-ul, .tool-ol { margin: 2px 0; padding-left: 20px; color: var(--ink); }
.tool-ul li, .tool-ol li { margin: 3px 0; }
.tool-hint { color: var(--muted); font-size: .9rem; margin: 2px 0 6px; }
.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-cols .tool-ul li { font-size: .92rem; }
.tool-copy { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 4px 0 6px; font-size: .92rem; }
.tool-meta { color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.tool-refresh { margin-top: 10px; }
@media (max-width: 640px) { .tool-cols { grid-template-columns: 1fr; } }

/* CRM pr. job */
.jcrm { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.jcrm summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .92rem; }
.crm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.crm-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.crm-grid input, .crm-grid textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.crm-grid .crm-wide { grid-column: 1 / -1; }
.crm-grid textarea { min-height: 60px; resize: vertical; }
@media (max-width: 640px) { .crm-grid { grid-template-columns: 1fr; } }

/* ===== Indsigt / analytics ===== */
.acards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 22px; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.acard.green { border-left: 3px solid var(--green); }
.acard.red { border-left: 3px solid var(--red); }
.acard .anum { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1; }
.acard .alabel { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.agrid h3 { color: var(--brand); margin: 0 0 8px; font-size: 1rem; }
@media (max-width: 720px) { .agrid { grid-template-columns: 1fr; } }

/* ===== Pipeline (Kanban) ===== */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; transition: background .12s, box-shadow .12s; }
.kanban-col.kover { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.kcol-head { font-weight: 700; color: var(--brand); font-size: .92rem; padding: 4px 6px 10px; display: flex; justify-content: space-between; align-items: center; }
.kcol-head .kcount { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: .8rem; color: var(--muted); }
.kcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 10px; padding: 9px 11px; cursor: grab; box-shadow: var(--shadow-sm); }
.kcard:active { cursor: grabbing; }
.kcard.fit-high { border-left-color: var(--green); }
.kcard.fit-mid { border-left-color: var(--blue); }
.kcard.fit-low { border-left-color: var(--amber); }
.kcard .kfit { font-size: .78rem; font-weight: 700; }
.kcard .ktitle { font-weight: 600; color: var(--ink); font-size: .9rem; margin: 3px 0 1px; }
.kcard .kcompany { font-size: .8rem; color: var(--muted); }
.kempty { color: var(--muted); text-align: center; padding: 10px 0; font-size: .85rem; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kanban { grid-template-columns: 1fr; } }

/* ===== Skill-gap ===== */
.skillgap-wrap { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.skillgap-wrap h2 { color: var(--brand); margin: 0 0 4px; }
#skillgapOut { margin-top: 12px; }
