/* Brokier Desktop – S&P-farver: navy #1B2A41, off-white #F5F3F3, guld #B08442 */
:root {
  --navy: #1B2A41; --navy2: #13203A; --bg: #F5F3F3; --hvid: #FFFFFF; --guld: #B08442; --guld-lys: #F7EEDD; --guld-tekst: #6E5022;
  --linje: #E4E1E1; --linje2: #F1EFEF; --graa: #5A6578; --graa2: #4A5466; --graa-lys: #ECE9E9;
  --roed: #8A2B1F; --roed-lys: #F6E3DF; --groen: #235C42; --groen-lys: #E3F0E8; --blaa: #2B3A52; --blaa-lys: #E4E8EF;
  --r: 8px; --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 13px; color: var(--navy); background: var(--bg); line-height: 1.4; }
a { color: var(--navy); }
a:hover { color: var(--guld); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.skjult { display: none !important; }
.sr { position: absolute; left: -9999px; }

/* Ramme */
.ramme { display: flex; height: 100vh; }
.rail { width: 208px; background: var(--navy); color: var(--bg); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.logo { font-weight: 700; font-size: 18px; padding: 2px 10px 16px; }
.logo span { color: var(--guld); }
.rail a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--bg); text-decoration: none; }
.rail a:hover { background: rgba(245,243,243,.08); color: var(--bg); }
.rail a.aktiv { background: var(--bg); color: var(--navy); font-weight: 600; }
.rail svg { width: 16px; height: 16px; flex-shrink: 0; }
.rail .fod { margin-top: auto; border-top: 1px solid rgba(245,243,243,.12); padding-top: 10px; }
.rail .mig { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: none; border: 0; color: var(--bg); width: 100%; text-align: left; cursor: pointer; border-radius: 6px; }
.rail .mig:hover { background: rgba(245,243,243,.08); }
.rail .mig small { color: #C9CED6; display: block; font-size: 11px; }
.indhold { flex: 1; min-width: 0; overflow: auto; }
.side { padding: 22px 26px 40px; max-width: 1400px; }
.hoved { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hoved h1 { font-size: 22px; font-weight: 700; }
.over { font-size: 11px; color: var(--graa); text-transform: uppercase; letter-spacing: .06em; }
.under { color: var(--graa); margin-top: 3px; }

/* Byggesten */
.kort { background: var(--hvid); border-radius: var(--r); padding: 14px 16px; }
.kort h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.kort-hoved { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.kort-hoved h2 { margin: 0; }
.gitter { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raekke { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stak { display: flex; flex-direction: column; gap: 14px; }
.tal { font-size: 24px; font-weight: 700; margin-top: 2px; }
.lille { font-size: 12px; color: var(--graa); }
.mut { color: var(--graa); }
.knap { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 14px; border-radius: 6px; border: 1px solid #D8D4D4; background: var(--hvid); color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.knap:hover { border-color: var(--navy); color: var(--navy); }
.knap.pri { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.knap.pri:hover { background: var(--navy2); color: var(--bg); }
.knap.guld { background: var(--guld); color: #fff; border-color: var(--guld); }
.knap.guld:hover { background: #9A7238; color: #fff; }
.knap.lille-k { min-height: 28px; padding: 4px 10px; font-size: 12px; }
.knap.fare { color: var(--roed); }
.knap:disabled { opacity: .5; cursor: default; }
.chip { text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; border: 1px solid #D8D4D4; background: var(--hvid); cursor: pointer; font-size: 12px; }
.chip.aktiv { background: var(--navy); color: var(--bg); border-color: var(--navy); font-weight: 600; }
.maerke { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.m-risk { background: var(--roed-lys); color: var(--roed); }
.m-warn { background: #F3E9D8; color: var(--guld-tekst); }
.m-ok { background: var(--groen-lys); color: var(--groen); }
.m-info { background: var(--blaa-lys); color: var(--blaa); }
.m-neutral { background: var(--graa-lys); color: var(--navy); }
.pille { border-radius: 999px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--navy); flex-shrink: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--graa-lys); overflow: hidden; }
.bar > div { height: 6px; background: var(--navy); border-radius: 3px; }
.liste-r { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linje2); }
.liste-r:first-of-type { border-top: 0; }
.flex1 { flex: 1; min-width: 0; }
.fed { font-weight: 600; }
.tom { color: var(--graa); padding: 10px 0; }

/* Formularer */
label.felt { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--graa2); }
.inp, select.inp, textarea.inp { width: 100%; padding: 8px 10px; border: 1px solid #D8D4D4; border-radius: 6px; background: var(--hvid); font-weight: 400; color: var(--navy); min-height: 36px; }
.inp:focus { outline: 2px solid var(--guld); outline-offset: -1px; border-color: var(--guld); }
textarea.inp { min-height: 70px; resize: vertical; }
.fejl-tekst { background: var(--roed-lys); color: var(--roed); padding: 8px 10px; border-radius: 6px; }
.info-tekst { background: var(--guld-lys); color: var(--guld-tekst); padding: 8px 10px; border-radius: 6px; }

/* Tabeller */
.tabel-boks { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; color: var(--graa); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--linje); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--linje2); vertical-align: middle; }
.tbl tr.klik { cursor: pointer; }
.tbl tr.klik:hover td { background: #FAF9F9; }
.hojre { text-align: right; }

/* Søgefelt */
.soegeboks { background: var(--hvid); border: 1px solid var(--linje); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.soegelinje { display: flex; align-items: center; gap: 10px; }
.soegelinje input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; background: transparent; min-height: 32px; }
.tast { font-size: 11px; color: var(--graa); border: 1px solid #D8D4D4; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
mark { background: #F3DFB8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* Brief */
.brief { background: var(--navy); color: var(--bg); border-radius: 10px; padding: 14px 18px; }
.brief h2 { color: #D9BE8F; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.brief ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.brief li { display: flex; gap: 10px; }
.brief a { color: var(--bg); font-weight: 700; text-decoration: none; }
.brief a:hover { color: #D9BE8F; }
.brief .ikon-risk { color: #E8B9AE; font-weight: 700; }
.brief .ikon-warn { color: #D9BE8F; font-weight: 700; }
.brief .ikon-ok { color: #9FD1B6; font-weight: 700; }

/* Radar */
.baner { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 4px; }
.bane { background: var(--graa-lys); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.bane-hoved { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 0; }
.prik { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.rkort { background: var(--hvid); border-radius: 8px; padding: 11px 12px; display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: var(--navy); border: 1px solid transparent; }
.rkort:hover { border-color: var(--guld); color: var(--navy); }

/* Søgeresultater og kildepanel */
.soeg-layout { display: flex; gap: 16px; align-items: flex-start; }
.soeg-layout > .res { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.resultat { background: var(--hvid); border: 1px solid var(--linje); border-radius: 8px; padding: 12px 14px; cursor: pointer; text-align: left; width: 100%; }
.resultat:hover, .resultat.valgt { border-color: var(--guld); }
.resultat.valgt { background: #FDFAF4; }
.resultat .snip { margin-top: 6px; color: var(--blaa); line-height: 1.5; }
.kildepanel { width: 420px; flex-shrink: 0; background: var(--hvid); border: 1px solid var(--linje); border-radius: 8px; position: sticky; top: 0; max-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.kildepanel .ph { padding: 14px 16px 10px; border-bottom: 1px solid var(--linje2); }
.kildepanel .pb { padding: 14px 16px; overflow: auto; flex: 1; font-family: "Source Serif 4", Georgia, serif; font-size: 14px; line-height: 1.6; color: var(--blaa); white-space: pre-wrap; }
.kildepanel .pf { padding: 10px 16px; border-top: 1px solid var(--linje2); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Fornyelsestrin */
.trin { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--linje2); }
.trin:first-child { border-top: 0; }
.trin-knap { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #D8D4D4; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--graa2); }
.trin-knap.done { background: var(--navy); border-color: var(--navy); color: #fff; }
.trin-knap.now { background: var(--guld-lys); border-color: var(--guld); color: var(--guld-tekst); }

/* Søjlediagram for skader */
.soejler { display: grid; gap: 10px; align-items: end; height: 170px; border-bottom: 1px solid #D8D4D4; }
.soejle { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.soejle .par { display: flex; gap: 4px; align-items: flex-end; height: 120px; }
.soejle .p { width: 18px; background: var(--navy); border-radius: 3px 3px 0 0; }
.soejle .s { width: 18px; background: var(--guld); border-radius: 3px 3px 0 0; }

/* Modal */
.modal-bag { position: fixed; inset: 0; background: rgba(19,32,58,.45); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 50; overflow: auto; }
.modal { background: var(--hvid); border-radius: 12px; width: 100%; max-width: 560px; box-shadow: 0 18px 50px rgba(19,32,58,.35); }
.modal.bred { max-width: 760px; }
.modal .mh { padding: 16px 18px 10px; display: flex; justify-content: space-between; align-items: center; }
.modal .mh h2 { font-size: 16px; }
.modal .mb { padding: 4px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.modal .mf { padding: 12px 18px; border-top: 1px solid var(--linje2); display: flex; justify-content: flex-end; gap: 8px; background: #FAF9F9; border-radius: 0 0 12px 12px; }
.luk { background: none; border: 0; cursor: pointer; width: 36px; height: 36px; border-radius: 6px; font-size: 18px; color: var(--graa); }
.luk:hover { background: var(--graa-lys); }

/* Hurtigsøgning */
.hurtig { max-width: 600px; }
.hurtig .soegelinje { padding: 14px 16px; border-bottom: 1px solid var(--linje2); }
.hurtig .soegelinje input { font-size: 17px; }
.hurtig .hl { padding: 6px; max-height: 360px; overflow: auto; }
.hurtig .hl a, .hurtig .hl button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; text-decoration: none; color: var(--navy); width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.hurtig .hl .valgt, .hurtig .hl a:hover, .hurtig .hl button:hover { background: var(--bg); }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 60; box-shadow: 0 8px 24px rgba(19,32,58,.3); }
.toast.fejl { background: var(--roed); }

/* Login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login form { background: var(--hvid); border-radius: 12px; padding: 28px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }

.drop { border: 2px dashed #D8D4D4; border-radius: 10px; padding: 22px; text-align: center; color: var(--graa); cursor: pointer; }
.drop.over { border-color: var(--guld); background: var(--guld-lys); }

@media (max-width: 900px) {
  .ramme { flex-direction: column; height: auto; min-height: 100vh; }
  .rail { width: auto; flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .rail .logo { padding: 8px 10px; }
  .rail .fod { margin: 0 0 0 auto; border: 0; padding: 0; }
  .indhold { overflow: visible; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .soeg-layout { flex-direction: column; }
  .kildepanel { width: 100%; position: static; max-height: none; }
  .side { padding: 16px; }
  .tast { display: none; }
  .soegelinje .knap { padding: 8px 10px; }
}
@media print {
  .rail, .knap, .soegeboks { display: none !important; }
  .ramme { display: block; height: auto; }
  body { background: #fff; }
}

/* Statusmøde-brief (A4) */
#brief-rod { background: #E9E6E6; min-height: 100vh; padding: 0 0 40px; }
.brief-vaerktoej { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 20px; background: var(--hvid); border-bottom: 1px solid var(--linje); }
.a4 { width: 210mm; min-height: 297mm; margin: 24px auto; background: #fff; box-shadow: 0 6px 24px rgba(19,32,58,.18); display: flex; flex-direction: column; font-size: 10.5pt; line-height: 1.45; color: var(--navy); outline: none; }
.a4-hoved { background: var(--navy); color: var(--bg); padding: 12mm 14mm 9mm; }
.a4-hoved h1 { font-size: 21pt; margin-top: 6px; }
.a4-over { font-size: 8pt; letter-spacing: .12em; text-transform: uppercase; color: #D9BE8F; }
.a4-tal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.a4-tal span { display: block; font-size: 8pt; color: #C9CED6; }
.a4-tal strong { font-size: 14pt; }
.a4-krop { padding: 9mm 14mm; display: flex; flex-direction: column; gap: 7mm; flex: 1; }
.a4-krop h2 { font-size: 11.5pt; margin-bottom: 3mm; display: flex; gap: 8px; }
.a4-krop h2 span { color: var(--guld); }
.a4-krop p { margin: 0; }
.a4-krop ul { margin: 0; padding-left: 18px; }
.a4-tbl { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.a4-tbl th { text-align: left; font-weight: 600; color: var(--graa); border-bottom: 1px solid #D8D4D4; padding: 4px 0; }
.a4-tbl td { padding: 4px 0; border-top: 1px solid var(--linje2); }
.a4-tbl th:not(:first-child), .a4-tbl td:not(:first-child) { text-align: right; }
.a4-note { font-size: 8.5pt; color: var(--graa2); margin-top: 4px !important; }
.a4-anb { display: grid; grid-template-columns: 22mm minmax(0, 1fr); gap: 10px; margin-bottom: 6px; align-items: start; }
.a4-anb > span { font-size: 8pt; font-weight: 700; text-align: center; border-radius: 3px; padding: 2px 4px; }
.a4-m-gap { background: var(--roed-lys); color: var(--roed); }
.a4-m-adj { background: #F3E9D8; color: var(--guld-tekst); }
.a4-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a4-plan div { background: var(--bg); border-radius: 4px; padding: 7px 9px; }
.a4-plan span { display: block; font-size: 8.5pt; color: var(--graa); }
.a4-fod { padding: 4mm 14mm 6mm; border-top: 3px solid var(--guld); display: flex; justify-content: space-between; font-size: 8pt; color: var(--graa); }
@media print {
  @page { size: A4; margin: 0; }
  #brief-rod { background: #fff; padding: 0; min-height: 0; }
  html, body { height: auto !important; }
  .brief-vaerktoej { display: none !important; }
  html, body { margin: 0 !important; background: #fff !important; }
  .toast, .modal-bag { display: none !important; }
  .a4 { margin: 0; box-shadow: none; width: 210mm; min-height: 0; height: 292mm; overflow: hidden; page-break-after: avoid; break-after: avoid; }
  .a4-hoved, .a4-m-gap, .a4-m-adj, .a4-plan div, .a4-fod { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 900px) { .a4 { width: auto; min-height: 0; margin: 12px; } }

/* ================= Design 2.1 – mere liv, samme S&P-farver ================= */
:root { --skygge: 0 1px 2px rgba(19,32,58,.06), 0 4px 14px rgba(19,32,58,.06); --skygge2: 0 2px 6px rgba(19,32,58,.08), 0 12px 32px rgba(19,32,58,.12); --r: 12px; }
body { background: radial-gradient(1200px 500px at 85% -120px, #EDE6DA 0%, rgba(237,230,218,0) 60%), var(--bg); background-attachment: fixed; }
.kort { border-radius: var(--r); box-shadow: var(--skygge); border: 1px solid rgba(27,42,65,.05); }
.kort h2 { display: flex; align-items: center; gap: 8px; }
.h-ik { width: 26px; height: 26px; border-radius: 8px; background: var(--guld-lys); color: var(--guld-tekst); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.h-ik svg { width: 15px; height: 15px; }
.knap { border-radius: 8px; transition: transform .08s ease, box-shadow .15s ease, background .15s; }
.knap:hover { box-shadow: 0 2px 8px rgba(19,32,58,.1); }
.knap:active { transform: translateY(1px); }
.knap svg { width: 15px; height: 15px; }
.knap.lys { background: rgba(245,243,243,.1); color: var(--bg); border-color: rgba(245,243,243,.28); }
.knap.lys:hover { background: rgba(245,243,243,.18); color: #fff; border-color: rgba(245,243,243,.5); }
.knap.ikon-k { padding: 8px 9px; }
.tbl tr.klik:hover td { background: #FBF8F2; }

/* Menu */
.rail { width: 228px; background: linear-gradient(180deg, #1B2A41 0%, #15223A 100%); padding: 18px 12px; gap: 1px; box-shadow: 2px 0 18px rgba(19,32,58,.18); z-index: 2; }
.logo { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; font-size: 19px; letter-spacing: -.01em; }
.logo small { font-size: 10px; font-weight: 600; color: #9FA9B9; letter-spacing: .14em; text-transform: uppercase; margin-left: 2px; margin-top: 4px; }
.logo-m { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #C79A55, #9A7238); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 12px rgba(176,132,66,.4); }
.rail-gruppe { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7F8BA0; padding: 14px 12px 6px; font-weight: 600; }
.rail a { position: relative; padding: 9px 12px; border-radius: 9px; color: #D6DBE3; transition: background .15s, color .15s; }
.rail a svg { opacity: .85; }
.rail a:hover { background: rgba(245,243,243,.07); color: #fff; }
.rail a.aktiv { background: rgba(176,132,66,.16); color: #fff; font-weight: 600; }
.rail a.aktiv::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--guld); }
.rail a.aktiv svg { color: #E2C38F; opacity: 1; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--guld); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.badge:empty { display: none; }
.rail .fod { display: flex; flex-direction: column; gap: 6px; }
.synk-knap { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(176,132,66,.45); background: rgba(176,132,66,.1); color: #F1E3C8; cursor: pointer; text-align: left; width: 100%; }
.synk-knap:hover { background: rgba(176,132,66,.2); }
.synk-knap svg { width: 16px; height: 16px; flex-shrink: 0; }
.synk-knap small { display: block; font-size: 10.5px; color: #B5A27F; }
.synk-knap.kører svg { animation: drej 1s linear infinite; }
@keyframes drej { to { transform: rotate(360deg); } }
.rail .mig small { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Overblik-banner (I dag) */
.helt { position: relative; overflow: hidden; border-radius: 16px; padding: 22px 24px 18px; color: var(--bg);
  background: radial-gradient(600px 260px at 100% 0%, rgba(176,132,66,.35), rgba(176,132,66,0) 70%), linear-gradient(135deg, #1B2A41 0%, #22385A 60%, #1B2A41 100%); box-shadow: var(--skygge2); }
.helt::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(245,243,243,.04); pointer-events: none; }
.helt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.helt-over { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #D9BE8F; }
.helt h1 { font-size: 28px; margin-top: 6px; letter-spacing: -.01em; }
.helt-under { color: #C9D0DB; margin-top: 4px; font-size: 14px; }
.kpi-raekke { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; position: relative; z-index: 1; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(245,243,243,.07); border: 1px solid rgba(245,243,243,.1); color: var(--bg); text-decoration: none; transition: background .15s, transform .15s; }
.kpi:hover { background: rgba(245,243,243,.13); color: #fff; transform: translateY(-1px); }
.kpi b { display: block; font-size: 24px; line-height: 1.1; }
.kpi small { color: #B9C2CF; font-size: 12px; }
.kpi-ik { width: 38px; height: 38px; border-radius: 10px; background: rgba(245,243,243,.1); display: inline-flex; align-items: center; justify-content: center; color: #E2C38F; flex-shrink: 0; }
.kpi-ik svg { width: 19px; height: 19px; }
.kpi-guld { background: rgba(176,132,66,.25); border-color: rgba(226,195,143,.4); }
.kpi-guld .kpi-ik { background: var(--guld); color: #fff; }
.kpi-roed .kpi-ik { background: #A23B2A; color: #fff; }
.ugestrimmel { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.dag { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: 10px; text-decoration: none; color: #C9D0DB; background: rgba(245,243,243,.04); }
.dag:hover { background: rgba(245,243,243,.12); color: #fff; }
.dag small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.dag b { font-size: 15px; color: #fff; }
.dag.weekend { opacity: .6; }
.dag.i-dag { background: var(--guld); color: #fff; }
.dag.i-dag small { color: #fff; }
.prikker { display: flex; gap: 3px; height: 6px; margin-top: 2px; }
.prikker i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(27,42,65,.6); }

.idag-g { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.brief-kort { border-left: 4px solid var(--guld); }
.brief-liste { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.brief-liste li { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; background: #FAF8F5; }
.brief-liste a { font-weight: 700; text-decoration: none; }
.b-ik { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.b-risk .b-ik { background: var(--roed-lys); color: var(--roed); }
.b-warn .b-ik { background: #F3E9D8; color: var(--guld-tekst); }
.b-ok .b-ik { background: var(--groen-lys); color: var(--groen); }
.ai-tekst { margin: 8px 0; font-size: 14px; white-space: pre-wrap; border-left: 3px solid var(--guld); padding-left: 10px; }
.dage-pille { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--graa-lys); color: var(--graa2); white-space: nowrap; }
.dage-pille.d-roed { background: var(--roed-lys); color: var(--roed); }
.dage-pille.d-guld { background: #F3E9D8; color: var(--guld-tekst); }
.mono { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); letter-spacing: .02em; }
.mono.stor { width: 54px; height: 54px; border-radius: 14px; font-size: 19px; box-shadow: var(--skygge); }
.kilder { display: inline-flex; gap: 4px; margin-top: 2px; }
.kilde { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.k-ba2 { background: #E6EEF6; color: #2F6690; }
.k-ba1 { background: #F3ECDA; color: #8A6A1F; }
.k-v2 { background: #F8E7DF; color: #A23B2A; }
.k-delt { background: var(--guld-lys); color: var(--guld-tekst); }

/* Tidslinje */
.tidslinje { position: sticky; top: 14px; }
.tl { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--linje2); position: relative; }
.tl:first-of-type { border-top: 0; }
.tl-dato { width: 34px; text-align: center; flex-shrink: 0; line-height: 1.1; }
.tl-dato b { display: block; font-size: 17px; }
.tl-dato span { font-size: 10px; text-transform: uppercase; color: var(--graa); }
.tl-prik { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.tl-titel { font-weight: 600; }
.tl-luk { opacity: .5; }
.tl-luk .tl-titel { text-decoration: line-through; }
.legende { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--linje2); font-size: 11px; color: var(--graa); }
.legende span { display: inline-flex; align-items: center; gap: 5px; }
.legende i { width: 8px; height: 8px; border-radius: 50%; }

/* Kalender */
.seg { display: inline-flex; background: var(--hvid); border: 1px solid #D8D4D4; border-radius: 9px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 7px; text-decoration: none; color: var(--graa2); font-weight: 600; font-size: 12.5px; }
.seg a.aktiv { background: var(--navy); color: var(--bg); }
.kal-filtre { gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; border: 1px solid #D8D4D4; background: var(--hvid); cursor: pointer; font-size: 12px; color: var(--graa); }
.fchip i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c); }
.fchip small { font-size: 10.5px; color: var(--graa); background: var(--graa-lys); border-radius: 8px; padding: 0 6px; }
.fchip.til { color: var(--navy); border-color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 8%, #fff); font-weight: 600; }
.fchip.til i { background: var(--c); }
.kal-g { display: flex; gap: 14px; align-items: flex-start; }
.kal-side { width: 330px; flex-shrink: 0; position: sticky; top: 14px; }
.mgitter { background: var(--hvid); border-radius: var(--r); box-shadow: var(--skygge); overflow: hidden; border: 1px solid rgba(27,42,65,.05); }
.mg-hoved { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--navy); color: #C9D0DB; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mg-hoved div { padding: 9px 10px; }
.mg-dage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mg-dag { min-height: 112px; padding: 6px; border-right: 1px solid var(--linje2); border-bottom: 1px solid var(--linje2); display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .12s; min-width: 0; }
.mg-dag:nth-child(7n) { border-right: 0; }
.mg-dag:hover { background: #FBF8F2; }
.mg-dag.weekend { background: #FBFAFA; }
.mg-dag.anden { background: #F7F6F6; }
.mg-dag.anden .mg-nr { color: #B3B8C2; }
.mg-dag.valgt { background: #FDF8EE; box-shadow: inset 0 0 0 2px var(--guld); }
.mg-nr { font-size: 12px; font-weight: 700; color: var(--graa2); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.mg-dag.i-dag .mg-nr { background: var(--guld); color: #fff; }
.kp { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--navy); font-size: 11.5px; padding: 3px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp:hover { background: color-mix(in srgb, var(--c) 20%, #fff); }
.kp b { font-weight: 700; }
.kp-luk { opacity: .5; text-decoration: line-through; }
.kp-flere { border: 0; background: none; color: var(--graa); font-size: 11px; text-align: left; cursor: pointer; padding: 1px 6px; }
.ugegitter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ug-dag { background: var(--hvid); border-radius: var(--r); box-shadow: var(--skygge); padding: 8px; min-height: 340px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; min-width: 0; }
.ug-dag.i-dag { box-shadow: inset 0 0 0 2px var(--guld), var(--skygge); }
.ug-dag.valgt { background: #FDF8EE; }
.ug-hoved { padding: 2px 4px 8px; border-bottom: 1px solid var(--linje2); margin-bottom: 4px; }
.ug-hoved small { display: block; text-transform: capitalize; color: var(--graa); font-size: 11px; }
.ug-hoved b { font-size: 15px; }
.ug-dag .kp { white-space: normal; }
.agenda { padding: 6px 16px; }
.ag-dag { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--linje2); }
.ag-dag:first-child { border-top: 0; }
.ag-dato { width: 54px; flex-shrink: 0; text-align: center; padding-top: 6px; }
.ag-dato b { display: block; font-size: 22px; line-height: 1; }
.ag-dato small { font-size: 10.5px; color: var(--graa); text-transform: uppercase; }
.ag-dag.i-dag .ag-dato b { color: var(--guld); }

@media (max-width: 1150px) {
  .idag-g { grid-template-columns: minmax(0, 1fr); }
  .tidslinje { position: static; }
  .kal-g { flex-direction: column; }
  .kal-side { width: 100%; position: static; }
}
@media (max-width: 900px) {
  .rail { width: auto; }
  .rail-gruppe, .logo small { display: none; }
  .rail a.aktiv::before { display: none; }
  .kpi-raekke { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ugestrimmel { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ugestrimmel .dag:nth-child(n+8) { display: none; }
  .mg-dag { min-height: 70px; }
  .kp { font-size: 10px; }
  .ugegitter { grid-template-columns: minmax(0, 1fr); }
  .ug-dag { min-height: 0; }
  .helt h1 { font-size: 22px; }
}
@media print { .helt, .rail, .synk-knap { display: none !important; } }
.logo .logo-n { color: var(--bg); }
.logo .logo-n em { font-style: normal; color: var(--guld); }
.dag.i-dag { opacity: 1 !important; box-shadow: 0 4px 14px rgba(176,132,66,.45); }

/* ================= Design 2.2 – ikon-menu, topbar, assistent og mørkt tema ================= */
:root { --cyan: #0E86B8; --as-b: 400px; --panel: rgba(255,255,255,.92); --glow: 0 0 0 transparent; }
.ramme { display: grid; grid-template-columns: 84px minmax(0, 1fr); height: 100vh; }
.ramme.med-as { grid-template-columns: 84px minmax(0, 1fr) var(--as-b); }
.midte { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.indhold { flex: 1; overflow: auto; min-height: 0; }
.assistent { display: none; }
.med-as .assistent { display: flex; }

.rail { width: auto; padding: 14px 8px; gap: 4px; align-items: stretch; box-shadow: none; border-right: 1px solid var(--linje); }
.rail .lg { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 13px; background: linear-gradient(135deg, #D4A862, #8E6630); color: #fff !important; display: grid; place-items: center; font-weight: 800; font-size: 19px; text-decoration: none; box-shadow: 0 0 22px rgba(176,132,66,.5); padding: 0; }
.rail a, .rail .as-knap, .rail .synk-knap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 7px; border-radius: 14px; color: #A9B6CB; text-decoration: none; background: none; border: 1px solid transparent; cursor: pointer; width: 100%; font: inherit; }
.rail a svg, .rail .as-knap svg, .rail .synk-knap svg { width: 20px; height: 20px; opacity: 1; }
.rail .rl { font-size: 10px; letter-spacing: .02em; line-height: 1.1; text-align: center; }
.rail a:hover, .rail .as-knap:hover, .rail .synk-knap:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail a.aktiv { background: rgba(56,214,255,.12); color: #fff; border-color: rgba(56,214,255,.45); box-shadow: 0 0 18px rgba(56,214,255,.2); font-weight: 600; }
.rail a.aktiv::before { display: none; }
.rail a.aktiv svg { color: #7FE3FF; }
.rail .badge { position: absolute; top: 4px; right: 10px; min-width: 18px; height: 18px; font-size: 10px; font-style: normal; }
.rail .fod { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.rail .as-knap { color: #7FE3FF; }
.rail .as-knap.aktiv { background: rgba(56,214,255,.14); border-color: rgba(56,214,255,.5); box-shadow: 0 0 18px rgba(56,214,255,.3); }
.rail .synk-knap { border: 1px solid rgba(176,132,66,.35); color: #E9C88E; }
.rail .synk-knap.kører svg { animation: drej 1s linear infinite; }
.rail .mig { justify-content: center; padding: 6px 0; width: 100%; }

.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--linje); background: var(--topbar, rgba(245,243,243,.85)); backdrop-filter: blur(10px); position: relative; z-index: 3; flex-wrap: wrap; }
.tb-soeg { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--linje); background: var(--hvid); color: var(--graa); cursor: pointer; font: inherit; text-align: left; min-width: 0; }
.tb-soeg svg { width: 17px; height: 17px; flex-shrink: 0; }
.tb-soeg span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-soeg kbd { font-size: 11px; border: 1px solid var(--linje); border-radius: 5px; padding: 1px 6px; font-family: inherit; }
.ans-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.af-l { font-size: 11px; color: var(--graa); letter-spacing: .08em; text-transform: uppercase; margin-right: 2px; }
.af { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--linje); background: var(--hvid); color: var(--graa); cursor: pointer; font: inherit; font-size: 12px; text-decoration: line-through; opacity: .6; }
.af small { font-size: 10px; opacity: .8; }
.af.on { text-decoration: none; opacity: 1; color: var(--navy); border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; font-weight: 600; }
.af-alle { text-decoration: none; opacity: .85; }
.af-skjult { font-size: 11px; color: var(--guld-tekst); background: var(--guld-lys); padding: 3px 8px; border-radius: 999px; }

/* I dag – HUD */
.hilsen { font-size: 28px; letter-spacing: -.01em; margin-top: 4px; }
.hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.h { position: relative; display: block; padding: 16px 16px 14px; border-radius: 16px; background: var(--hvid); border: 1px solid var(--linje); text-decoration: none; color: var(--navy); overflow: hidden; box-shadow: var(--skygge); transition: transform .15s, box-shadow .15s; }
.h:hover { transform: translateY(-2px); color: var(--navy); }
.h::before, .h::after { content: ''; position: absolute; width: 30px; height: 2px; background: currentColor; }
.h::before { left: 0; top: 0; } .h::after { right: 0; bottom: 0; }
.h b { display: block; font-size: 34px; font-weight: 300; line-height: 1.05; margin-top: 6px; color: var(--navy); }
.h .h-l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--graa); }
.h .h-ik { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: transparent; }
.h .h-ik svg { width: 18px; height: 18px; }
.h .ring { position: absolute; right: 14px; top: 14px; width: 56px; height: 56px; }
.c-cyan { --hc: #0E86B8; } .c-blaa { --hc: #2F6690; } .c-guld { --hc: #B08442; } .c-roed { --hc: #A23B2A; }
.h { color: var(--hc); } .h b, .h .h-l { } .h b { color: var(--navy); }
.hoved .knap svg { width: 16px; height: 16px; }
.ugestrimmel { margin-top: 0; }
.dag { background: var(--hvid); border: 1px solid var(--linje); color: var(--graa); }
.dag b { color: var(--navy); }
.dag:hover { background: var(--hvid); border-color: var(--cyan); color: var(--navy); }
.dag.i-dag { background: var(--guld); border-color: var(--guld); }
.dag.i-dag b { color: #fff; }
.prikker i { box-shadow: none; }
.hoejre-kol { position: sticky; top: 0; }
.tidslinje { position: static; }
.radar-vis { display: grid; place-items: center; color: var(--cyan); padding: 4px 0 8px; }
.radar-vis svg { width: 220px; height: 220px; }
.radar-vis circle[r="5"] { stroke: rgba(0,0,0,.25); stroke-width: 1; cursor: pointer; }
.sweep { transform-origin: 110px 110px; animation: drej 4s linear infinite; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex-shrink: 0; }

/* Assistent BØF */
.assistent { flex-direction: column; border-left: 1px solid var(--linje); background: var(--as-bg, linear-gradient(180deg, #0A1830, #04080F)); color: #E6EEF8; min-height: 0; overflow: hidden; position: relative; }
.assistent::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3; background-image: linear-gradient(rgba(56,214,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(56,214,255,.07) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%); }
.as-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px 0 18px; position: relative; z-index: 1; }
.as-status { flex: 1; display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #38D6FF; }
.as-status i { width: 7px; height: 7px; border-radius: 50%; background: #38D6FF; box-shadow: 0 0 10px #38D6FF; }
.as-ik { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(56,214,255,.25); background: transparent; color: #9FB4D4; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.as-ik svg { width: 16px; height: 16px; } .as-ik.on { color: #38D6FF; border-color: #38D6FF; box-shadow: 0 0 12px rgba(56,214,255,.4); }
.as-robot { height: 220px; display: grid; place-items: center; position: relative; z-index: 1; flex-shrink: 0; }
.robot-bot { width: 210px; height: 210px; }
@keyframes puls { 50% { opacity: .65; } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes mund { 50% { transform: scaleY(.3); } }
.as-hej { padding: 0 20px; position: relative; z-index: 1; }
.as-hej h3 { margin: 0; font-size: 20px; font-weight: 600; color: #fff; }
.as-hej p { margin: 3px 0 0; color: #8FA2C0; font-size: 12.5px; }
.as-chat { flex: 1; overflow: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 9px; min-height: 60px; position: relative; z-index: 1; }
.as-chat .b { max-width: 94%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; }
.as-chat .b.u { align-self: flex-end; background: rgba(61,139,255,.2); border: 1px solid rgba(61,139,255,.45); color: #fff; }
.as-chat .b.a { align-self: flex-start; background: rgba(12,24,44,.85); border: 1px solid rgba(56,214,255,.2); color: #DCE6F4; }
.as-chat .b.a a { color: #9FE7FF; text-decoration: none; }
.as-chat .b.a a:hover { text-decoration: underline; color: #fff; }
.as-tom { color: #6F82A2; font-size: 12px; padding: 4px 2px; }
.as-kort { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(4,8,15,.65); border: 1px solid rgba(56,214,255,.15); }
.as-kt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #E9C88E; margin-bottom: 4px; }
.as-l { padding: 3px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.as-l:first-of-type { border-top: 0; }
.as-l.roed, .as-l.roed a { color: #FF9B8C; }
.as-kilde { font-size: 10px; border: 1px solid rgba(56,214,255,.4); border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.as-ai { margin-top: 8px; padding: 8px 10px; border-left: 2px solid #38D6FF; background: rgba(56,214,255,.06); white-space: pre-wrap; }
.as-h { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; }
.tanker { display: inline-flex; gap: 4px; } .tanker i { width: 6px; height: 6px; border-radius: 50%; background: #38D6FF; animation: puls .9s infinite; } .tanker i:nth-child(2) { animation-delay: .2s; } .tanker i:nth-child(3) { animation-delay: .4s; }
.as-forsl { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; position: relative; z-index: 1; }
.as-forsl button { font: inherit; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(56,214,255,.3); background: rgba(56,214,255,.06); color: #CFE7FF; cursor: pointer; }
.as-forsl button:hover { background: rgba(56,214,255,.16); }
.as-input { margin: 0 14px 14px; border-radius: 16px; border: 1px solid rgba(56,214,255,.4); background: rgba(4,8,15,.75); padding: 8px 8px 8px 12px; display: flex; gap: 8px; align-items: center; box-shadow: 0 0 24px rgba(56,214,255,.1) inset; position: relative; z-index: 1; }
.as-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; font-size: 13.5px; }
.as-input input::placeholder { color: #6F82A2; }
.as-send { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(56,214,255,.35); background: transparent; color: #9FE7FF; cursor: pointer; display: grid; place-items: center; }
.as-send svg { width: 16px; height: 16px; }
.as-mic { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #7BE7FF, #1E86C9 60%, #0B3A66); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(56,214,255,.1), 0 0 24px rgba(56,214,255,.55); flex-shrink: 0; }
.as-mic svg { width: 20px; height: 20px; }
.lytter .as-mic { animation: micp 1s ease-in-out infinite; }
@keyframes micp { 50% { box-shadow: 0 0 0 12px rgba(56,214,255,.08), 0 0 40px rgba(56,214,255,.9); } }
.bolge { display: flex; gap: 3px; align-items: center; height: 22px; }
.bolge i { width: 3px; height: 4px; border-radius: 2px; background: #38D6FF; opacity: .5; }
.lytter .bolge i { animation: bol .8s ease-in-out infinite; opacity: 1; }
.bolge i:nth-child(2n) { animation-delay: .2s; } .bolge i:nth-child(3n) { animation-delay: .4s; }
@keyframes bol { 50% { height: 20px; } }

/* ---------- Mørkt tema (standard) ---------- */
:root[data-tema="moerk"] {
  --navy: #E6EEF8; --navy2: #FFFFFF; --bg: #04080F; --hvid: rgba(12,24,44,.62); --panel: rgba(12,24,44,.9);
  --linje: rgba(90,170,255,.16); --linje2: rgba(90,170,255,.08); --graa: #8090AA; --graa2: #A9B6CB; --graa-lys: rgba(255,255,255,.07);
  --guld-lys: rgba(176,132,66,.16); --guld-tekst: #E9C88E; --roed: #FF8B7A; --roed-lys: rgba(255,107,87,.13); --groen: #5FE6AE; --groen-lys: rgba(63,224,160,.12);
  --blaa: #A8CBFF; --blaa-lys: rgba(61,139,255,.15); --cyan: #38D6FF; --topbar: rgba(4,8,15,.75);
  --skygge: 0 10px 30px rgba(0,0,0,.35); --skygge2: 0 16px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}
[data-tema="moerk"] body { background: radial-gradient(900px 600px at 75% 0%, rgba(56,214,255,.12), transparent 60%), radial-gradient(700px 450px at 0% 100%, rgba(176,132,66,.10), transparent 60%), #04080F; background-attachment: fixed; color: var(--navy); }
[data-tema="moerk"] .indhold { background-image: linear-gradient(rgba(56,214,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(56,214,255,.035) 1px, transparent 1px); background-size: 44px 44px; }
[data-tema="moerk"] .rail { background: rgba(4,8,15,.85); }
[data-tema="moerk"] .kort { background: var(--hvid); border-color: var(--linje); backdrop-filter: blur(10px); }
[data-tema="moerk"] .kort h2 { color: #DCE6F4; }
[data-tema="moerk"] .h-ik { background: rgba(56,214,255,.1); color: #7FE3FF; }
[data-tema="moerk"] a { color: #DCE6F4; } [data-tema="moerk"] a:hover { color: #7FE3FF; }
[data-tema="moerk"] .knap { background: rgba(12,24,44,.7); border-color: rgba(90,170,255,.25); color: #DCE6F4; }
[data-tema="moerk"] .knap:hover { border-color: #38D6FF; color: #fff; box-shadow: 0 0 14px rgba(56,214,255,.25); }
[data-tema="moerk"] .knap.pri { background: linear-gradient(135deg, #1E86C9, #0B4F86); border-color: #38D6FF; color: #fff; box-shadow: 0 0 16px rgba(56,214,255,.3); }
[data-tema="moerk"] .knap.guld { background: linear-gradient(135deg, #C79A55, #8E6630); border-color: #C79A55; color: #fff; }
[data-tema="moerk"] .knap.fare { color: #FF8B7A; }
[data-tema="moerk"] .chip { background: rgba(12,24,44,.7); border-color: var(--linje); color: #CFE0F5; }
[data-tema="moerk"] .chip.aktiv { background: rgba(56,214,255,.16); border-color: #38D6FF; color: #fff; }
[data-tema="moerk"] .inp, [data-tema="moerk"] select.inp, [data-tema="moerk"] textarea.inp { background: rgba(4,8,15,.6); border-color: rgba(90,170,255,.25); color: #E6EEF8; }
[data-tema="moerk"] .inp:focus { outline-color: #38D6FF; border-color: #38D6FF; }
[data-tema="moerk"] select.inp option { background: #0A1830; }
[data-tema="moerk"] .soegeboks { background: rgba(12,24,44,.7); border-color: rgba(56,214,255,.35); box-shadow: 0 0 24px rgba(56,214,255,.08) inset; }
[data-tema="moerk"] .soegelinje input { color: #fff; }
[data-tema="moerk"] mark { background: rgba(233,200,142,.3); color: #fff; }
[data-tema="moerk"] .tbl th { color: #8090AA; border-color: var(--linje); }
[data-tema="moerk"] .tbl tr.klik:hover td { background: rgba(56,214,255,.05); }
[data-tema="moerk"] .modal { background: #0B1830; border: 1px solid rgba(56,214,255,.3); color: #E6EEF8; }
[data-tema="moerk"] .modal .mf { background: rgba(4,8,15,.6); border-color: var(--linje); }
[data-tema="moerk"] .modal-bag { background: rgba(0,0,0,.6); }
[data-tema="moerk"] .toast { background: #0B4F86; border: 1px solid #38D6FF; }
[data-tema="moerk"] .brief-liste li { background: rgba(4,8,15,.45); }
[data-tema="moerk"] .bane { background: rgba(12,24,44,.45); border: 1px solid var(--linje); }
[data-tema="moerk"] .rkort { background: rgba(4,8,15,.55); border-color: var(--linje); color: #E6EEF8; }
[data-tema="moerk"] .rkort:hover { border-color: #38D6FF; }
[data-tema="moerk"] .resultat { background: rgba(12,24,44,.62); border-color: var(--linje); color: #E6EEF8; }
[data-tema="moerk"] .resultat.valgt { background: rgba(56,214,255,.08); border-color: #38D6FF; }
[data-tema="moerk"] .resultat .snip { color: #B9C9E2; }
[data-tema="moerk"] .kildepanel { background: #0B1830; border-color: var(--linje); }
[data-tema="moerk"] .kildepanel .pb { color: #D3DEEE; }
[data-tema="moerk"] .trin-knap { background: rgba(4,8,15,.6); border-color: rgba(90,170,255,.3); color: #A9B6CB; }
[data-tema="moerk"] .trin-knap.done { background: #1E86C9; border-color: #38D6FF; color: #fff; }
[data-tema="moerk"] .bar { background: rgba(255,255,255,.08); } [data-tema="moerk"] .bar > div { background: linear-gradient(90deg, #1E86C9, #38D6FF); }
[data-tema="moerk"] .soejle .p { background: #3D8BFF; }
[data-tema="moerk"] .mgitter, [data-tema="moerk"] .ug-dag { background: rgba(12,24,44,.62); border-color: var(--linje); }
[data-tema="moerk"] .mg-hoved { background: rgba(4,8,15,.85); color: #8FA2C0; border-bottom: 1px solid var(--linje); }
[data-tema="moerk"] .mg-dag { border-color: var(--linje2); }
[data-tema="moerk"] .mg-dag:hover { background: rgba(56,214,255,.05); }
[data-tema="moerk"] .mg-dag.weekend { background: rgba(255,255,255,.015); }
[data-tema="moerk"] .mg-dag.anden { background: rgba(0,0,0,.25); }
[data-tema="moerk"] .mg-dag.valgt { background: rgba(176,132,66,.08); }
[data-tema="moerk"] .kp { background: color-mix(in srgb, var(--c) 22%, transparent); color: #E6EEF8; }
[data-tema="moerk"] .kp:hover { background: color-mix(in srgb, var(--c) 35%, transparent); }
[data-tema="moerk"] .seg { background: rgba(12,24,44,.7); border-color: var(--linje); }
[data-tema="moerk"] .seg a { color: #A9B6CB; } [data-tema="moerk"] .seg a.aktiv { background: #1E86C9; color: #fff; }
[data-tema="moerk"] .fchip { background: rgba(12,24,44,.6); border-color: var(--linje); color: #8090AA; }
[data-tema="moerk"] .fchip.til { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 60%, transparent); color: #fff; }
[data-tema="moerk"] .fchip small { background: rgba(255,255,255,.08); color: #A9B6CB; }
[data-tema="moerk"] .k-ba2 { background: rgba(61,139,255,.16); color: #9CC4FF; }
[data-tema="moerk"] .k-v2 { background: rgba(255,107,87,.16); color: #FF9B8C; }
[data-tema="moerk"] .info-tekst { background: rgba(176,132,66,.14); color: #E9C88E; }
[data-tema="moerk"] .fejl-tekst { background: rgba(255,107,87,.13); color: #FF9B8C; }
[data-tema="moerk"] .login form { background: rgba(12,24,44,.85); border: 1px solid rgba(56,214,255,.3); }
[data-tema="moerk"] .login .logo { color: #fff !important; }
[data-tema="moerk"] .hurtig .hl .valgt, [data-tema="moerk"] .hurtig .hl a:hover, [data-tema="moerk"] .hurtig .hl button:hover { background: rgba(56,214,255,.08); }
[data-tema="moerk"] .drop { border-color: rgba(90,170,255,.3); }
[data-tema="moerk"] .h { background: linear-gradient(160deg, rgba(12,24,44,.8), rgba(4,8,15,.6)); }
[data-tema="moerk"] .c-cyan { --hc: #38D6FF; } [data-tema="moerk"] .c-blaa { --hc: #3D8BFF; } [data-tema="moerk"] .c-guld { --hc: #E9C88E; } [data-tema="moerk"] .c-roed { --hc: #FF6B57; }
[data-tema="moerk"] .h b { color: #fff; text-shadow: 0 0 18px var(--hc); }
[data-tema="moerk"] .h:hover { box-shadow: 0 0 0 1px var(--hc), 0 0 24px color-mix(in srgb, var(--hc) 35%, transparent); }
[data-tema="moerk"] .dag { background: rgba(12,24,44,.6); }
[data-tema="moerk"] .dag.i-dag { background: var(--guld); box-shadow: 0 0 16px rgba(176,132,66,.55); }
[data-tema="moerk"] .mono { box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); }
[data-tema="moerk"] .tl-dato span { color: #6F82A2; }
[data-tema="moerk"] .af { background: rgba(12,24,44,.6); }
[data-tema="moerk"] .af.on { color: #fff; box-shadow: 0 0 0 1px #38D6FF inset, 0 0 12px rgba(56,214,255,.25); }
[data-tema="moerk"] .tb-soeg { background: rgba(12,24,44,.7); border-color: rgba(56,214,255,.3); color: #8090AA; box-shadow: 0 0 20px rgba(56,214,255,.06) inset; }
[data-tema="moerk"] .avatar { box-shadow: 0 0 0 2px rgba(56,214,255,.3); }
/* Lyst tema: assistenten beholder sit mørke look */
:root[data-tema="lys"] .rail { background: var(--navy); }
/* Statusmøde-brief (A4) er altid lys */
#brief-rod { --navy: #1B2A41; --bg: #F5F3F3; --hvid: #FFFFFF; --linje: #E4E1E1; --linje2: #F1EFEF; --graa: #5A6578; --graa2: #4A5466; --guld-tekst: #6E5022; --roed: #8A2B1F; --roed-lys: #F6E3DF; color: #1B2A41; }
[data-tema="moerk"] #brief-rod .knap { background: #fff; color: #1B2A41; border-color: #D8D4D4; }

@media (max-width: 1250px) { .ramme.med-as { grid-template-columns: 84px minmax(0, 1fr) min(var(--as-b), 45vw); } .robot-bot { width: 170px; height: 170px; } .as-robot { height: 180px; } }
@media (max-width: 1050px) { .ramme.med-as { grid-template-columns: 84px minmax(0, 1fr); } .as-greb { display: none !important; } .med-as .assistent { position: fixed; right: 0; top: 0; bottom: 0; width: min(400px, 100vw); z-index: 40; box-shadow: -10px 0 40px rgba(0,0,0,.5); } }
@media (max-width: 900px) {
  .ramme, .ramme.med-as { display: flex; flex-direction: column; height: auto; min-height: 100vh; }
  .rail { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 6px; }
  .rail a, .rail .as-knap, .rail .synk-knap { width: 62px; }
  .rail .lg { margin: 0 4px; }
  .rail .fod { flex-direction: row; margin: 0; border: 0; padding: 0; }
  .indhold { overflow: visible; }
  .hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[data-tema="moerk"] a.h { color: var(--hc); }
[data-tema="moerk"] .dage-pille { background: rgba(255,255,255,.07); color: #A9B6CB; }
[data-tema="moerk"] .dage-pille.d-guld { background: rgba(176,132,66,.18); color: #E9C88E; }
[data-tema="moerk"] .dage-pille.d-roed { background: rgba(255,107,87,.16); color: #FF9B8C; }
[data-tema="moerk"] .b-warn .b-ik { background: rgba(176,132,66,.2); color: #E9C88E; }
[data-tema="moerk"] .b-risk .b-ik { background: rgba(255,107,87,.18); color: #FF9B8C; }
[data-tema="moerk"] .b-ok .b-ik { background: rgba(63,224,160,.15); color: #5FE6AE; }
[data-tema="moerk"] .m-warn { background: rgba(176,132,66,.18); color: #E9C88E; }
[data-tema="moerk"] .m-risk { background: rgba(255,107,87,.16); color: #FF9B8C; }
[data-tema="moerk"] .m-ok { background: rgba(63,224,160,.14); color: #5FE6AE; }
[data-tema="moerk"] .m-info { background: rgba(61,139,255,.16); color: #9CC4FF; }
[data-tema="moerk"] .m-neutral { background: rgba(255,255,255,.08); color: #CFE0F5; }
.liste-r a, .tl a, .brief-liste a { text-decoration: none; }
.forslag-kort { border: 1px solid #E8D3AE; background: #FFFCF6; }
[data-tema="moerk"] .forslag-kort { border-color: rgba(176,132,66,.45); background: linear-gradient(160deg, rgba(176,132,66,.1), rgba(12,24,44,.6)); }
:root[data-tema="moerk"] { --dk-ok-bg: rgba(63,224,160,.1); --dk-ok-k: rgba(63,224,160,.4); --dk-adj-bg: rgba(176,132,66,.12); --dk-adj-k: rgba(233,200,142,.45); --dk-gap-bg: rgba(255,107,87,.1); --dk-gap-k: rgba(255,107,87,.45); --dk-na-bg: rgba(255,255,255,.04); --dk-na-k: rgba(255,255,255,.12); }
/* 2.3: fuld skærmbredde + assistent altid i fuld højde */
.side { max-width: none; }
.ramme { grid-template-rows: minmax(0, 1fr); }
.assistent { height: 100vh; }
@media (max-height: 820px) { .as-robot { height: 150px; } .robot-bot { width: 140px; height: 140px; } }
@media (min-width: 1700px) { .idag-g { grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr); } }
[data-tema="moerk"] .k-ba1 { background: rgba(201,162,74,.16); color: #E4C77F; }
.login-kilde { display: flex; gap: 4px; background: var(--graa-bg, #EEF1F5); border-radius: 10px; padding: 4px; }
.login-kilde button { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 7px; font: inherit; font-size: 13px; color: var(--mut, #5A6578); cursor: pointer; }
.login-kilde button.on { background: var(--hvid, #fff); color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
[data-tema="moerk"] .login-kilde { background: rgba(255,255,255,.05); border: 1px solid rgba(56,214,255,.2); }
[data-tema="moerk"] .login-kilde button { color: #9FB3CC; }
[data-tema="moerk"] .login-kilde button.on { background: rgba(56,214,255,.16); color: #fff; box-shadow: none; }
.kilde-link { text-decoration: none; } .kilde-link:hover .kilde { outline: 1px solid currentColor; }
/* AI-svar (27/10) */
.ai-svar { margin-top: 8px; font-size: 14px; color: var(--navy); line-height: 1.5; }
.ai-svar .ai-pkt { position: relative; padding-left: 14px; }
.ai-svar .ai-pkt::before { content: ''; position: absolute; left: 3px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--guld, #B08442); }
.ai-ref { border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; padding: 0 5px; margin: 0 1px; border-radius: 4px; background: rgba(176,132,66,.18); color: inherit; vertical-align: 1px; }
.ai-kilder { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-kilde { border: 1px solid var(--linje); background: transparent; color: inherit; font: inherit; font-size: 12px; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
[data-tema="moerk"] .ai-svar { color: #E6EDF6; }
.as-chat .ai-svar { color: inherit; font-size: inherit; }

/* ================= 2.6.4 – bredt BØF, udvidet svar, smal kundeliste (27/10) ================= */
.as-greb { display: none; position: fixed; top: 0; bottom: 0; right: calc(var(--as-b) - 4px); width: 8px; cursor: col-resize; z-index: 30; touch-action: none; }
.med-as .as-greb { display: block; }
.as-greb::after { content: ''; position: absolute; top: 50%; left: 3px; width: 2px; height: 46px; transform: translateY(-50%); border-radius: 2px; background: #38D6FF; opacity: 0; transition: opacity .15s; }
.as-greb:hover::after, .as-greb.traek::after { opacity: .9; box-shadow: 0 0 8px #38D6FF; }
body.traekker { cursor: col-resize; user-select: none; }
@media (max-width: 1250px) { .as-greb { right: calc(min(var(--as-b), 45vw) - 4px); } }
.assistent { container-type: inline-size; container-name: brk; }
.as-ai { position: relative; }
.as-udvid { float: right; margin: -2px -2px 4px 8px; border: 1px solid #B08442; background: transparent; color: #B08442; border-radius: 6px; padding: 1px 8px; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
[data-tema="moerk"] .as-udvid { color: #E4C77F; }
.ai-pkter { display: block; }
@container brk (min-width: 560px) { .ai-pkter { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; } }
.indhold { container-type: inline-size; container-name: indhold; }
.kol-hint { display: none; padding: 6px 8px; }
@container indhold (max-width: 880px) {
  .kunde-tbl th:nth-child(2), .kunde-tbl td:nth-child(2), .kunde-tbl th:nth-child(3), .kunde-tbl td:nth-child(3),
  .kunde-tbl th:nth-child(5), .kunde-tbl td:nth-child(5), .kunde-tbl th:nth-child(7), .kunde-tbl td:nth-child(7) { display: none; }
  .med-as .kol-hint { display: block; }
}
.modal.udvid-modal { max-width: min(1080px, 94vw); }
.udvid-modal .mb { max-height: 72vh; overflow: hidden; padding: 0; }
.udvid-g { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; max-height: 72vh; }
.udvid-tekst { padding: 16px 20px; overflow: auto; font-size: 14px; line-height: 1.55; }
.udvid-kilde { border-left: 1px solid var(--linje); overflow: auto; max-height: 72vh; display: flex; flex-direction: column; }
.udvid-panel { width: auto; border: 0; border-radius: 0; position: static; max-height: none; flex: 1; min-height: 0; }
.udvid-liste { border-top: 1px solid var(--linje2); padding: 8px 16px; font-size: 12px; }
.udvid-liste div { padding: 3px 0; }
.ai-ref.on { background: #B08442; color: #fff; }
.udvid-tekst button.ai-ref { border: 0; cursor: pointer; font: inherit; }
@media (max-width: 800px) { .udvid-g { grid-template-columns: 1fr; } .udvid-kilde { border-left: 0; border-top: 1px solid var(--linje); } }

/* BØF (SVG 27/10) – animationerne ligger i SVG'ens egen <style> */
.robot-bot { display: grid; place-items: center; }
.robot-bot .bof-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(56,214,255,.28)); }
