/* TheDispatch.dk – mørk kontrolpult. Venstre: opgaver + stationer, midten: kort, højre: radio. */
:root {
  --bg: #26292c; --panel: #2f3337; --panel2: #383d42; --row: #33373b; --row2: #2b2f33; --line: #474d53;
  --fg: #eceeef; --muted: #a6adb3; --head: #a8262b; --head2: #8e1f23;
  --green: #3e9f4c; --yellow: #e2b42b; --orange: #e17b2c; --blue: #4d8fd6; --lblue: #63b3e6; --purple: #a979d4;
  --red: #d43c41; --grey: #5d6368;
  --politi: #3d73c7; --ambulance: #e2c42b; --brand: #d43c41; --hospital: #e9eef2;
  --f-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font: 13px/1.4 var(--f-body); display: flex; flex-direction: column; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
[hidden] { display: none !important; }
.k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
h2 { font: 700 15px var(--f-display); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.btn { background: #1d2023; border: 1px solid #111; border-radius: 3px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #111416; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 2px 8px; font-size: 12px; }
.btn-go { background: var(--green); border-color: #2c7a37; color: #fff; font-weight: 700; }
.btn-go:hover { background: #359043; }
.btn-red { background: var(--red); border-color: #a02a2e; color: #fff; }
.btn-yellow { background: var(--yellow); border-color: #b58f1d; color: #222; font-weight: 700; }
.sel-sm { background: #1d2023; border: 1px solid #111; border-radius: 3px; padding: 2px 4px; }
input, select { background: #1d2023; border: 1px solid #555b61; border-radius: 3px; padding: 6px 8px; }
.err { color: #ff8a8e; min-height: 1.2em; }
.hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }

/* Login */
.auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at top, #3a2224 0%, var(--bg) 60%); }
.auth-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--head);
  border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.auth-brand, .brand { font: 700 28px var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.auth-brand span, .brand span { color: #ffd3d4; }
.auth-sub { margin: 0; color: var(--muted); }
#authForm { display: flex; flex-direction: column; gap: 6px; }
#authForm label { font-weight: 700; font-size: 12px; margin-top: 6px; }
#authForm .btn-go { margin-top: 12px; padding: 8px; font-size: 15px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { background: var(--panel2); border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; padding: 6px 12px; cursor: pointer; }
.tab.active { background: var(--head); border-color: var(--head); color: #fff; }

/* Topbar */
.top { display: flex; align-items: center; gap: 14px; padding: 6px 12px; background: linear-gradient(var(--head), var(--head2));
  border-bottom: 1px solid #5c1416; flex-wrap: wrap; }
.top .brand { font-size: 22px; }
.top .brand small { font: 11px var(--f-mono); color: #ffd3d4; text-transform: none; }
.top .k { color: #f3c9ca; }
.lvl { display: flex; align-items: center; gap: 8px; }
.lvl-n { font: 700 20px var(--f-display); background: #1d2023; border-radius: 4px; padding: 0 8px; min-width: 32px; text-align: center; }
.lvl-txt { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; }
.xpbar { width: 120px; height: 5px; background: rgba(0,0,0,.4); border-radius: 3px; overflow: hidden; margin-top: 2px; }
.xpbar i { display: block; height: 100%; background: var(--yellow); width: 0; transition: width .4s; }
.money, .clock { display: flex; flex-direction: column; line-height: 1.1; }
.money b, .clock b { font: 600 15px var(--f-mono); font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
.btn-top { background: rgba(0,0,0,.35); border-color: rgba(0,0,0,.4); }
.btn-sound { background: var(--yellow); color: #222; font-weight: 700; border-color: #b58f1d; }
.user { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.chip-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.35); white-space: nowrap; }
.chip-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #aaa; margin-right: 5px; }
.chip-status.ok::before { background: #5ee06e; } .chip-status.warn::before { background: var(--yellow); } .chip-status.bad::before { background: #ff6b70; }

/* Layout */
.game { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px minmax(0, 1fr) 330px; }
.left, .right { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.left { border-right: 2px solid var(--head); }
.right { border-left: 2px solid var(--head); }
.panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.missions { flex: 1.15; border-bottom: 2px solid var(--head); }
.stations { flex: 1; }
.radio { flex: 1; border-bottom: 2px solid var(--head); }
.recent { flex: 0 0 42%; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px;
  background: linear-gradient(#3b4045, #2c3034); border-bottom: 1px solid #111; }
.counts { display: flex; gap: 4px; }
.cnt { font: 600 11px var(--f-mono); padding: 1px 6px; border-radius: 3px; background: #1d2023; }
.cnt.red { color: #ff8a8e; } .cnt.yel { color: var(--yellow); } .cnt.grn { color: #74d982; }
.search { margin: 6px 8px; padding: 4px 8px; }
.mapwrap { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #1b1d1f; }
.map-hint { position: absolute; z-index: 1000; top: 10px; left: 50%; transform: translateX(-50%); background: var(--panel);
  border: 1px solid var(--yellow); border-radius: 4px; padding: 8px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 92%; }
@media (max-width: 1100px) {
  body { height: auto; }
  .game { display: flex; flex-direction: column; }
  .mapwrap { height: 55vh; order: -1; }
  .left, .right { border: 0; } .missions, .stations, .radio, .recent { flex: none; max-height: 60vh; }
}

/* Opgaveliste */
.mlist, .rlist, .hlist { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1; }
.mitem { padding: 6px 8px; border-bottom: 1px solid #1d2023; background: var(--row); display: grid; gap: 4px; }
.mitem:nth-child(even) { background: var(--row2); }
.mitem.sel { box-shadow: inset 3px 0 0 var(--yellow); }
.mtop { display: flex; gap: 6px; align-items: flex-start; }
.mtitle { cursor: pointer; min-width: 0; }
.mtitle b { font-weight: 700; }
.mnum { font: 600 11px var(--f-mono); color: var(--muted); margin-right: 4px; }
.maddr { color: var(--muted); font-size: 12px; }
.svc { flex: none; width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center; font: 700 10px var(--f-mono); color: #111; margin-top: 1px; }
.svc.politi { background: var(--politi); color: #fff; } .svc.ambulance { background: var(--ambulance); } .svc.brand { background: var(--brand); color: #fff; } .svc.hospital { background: var(--hospital); color: var(--red); }
.bar { height: 9px; background: #191b1d; border-radius: 2px; overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--green); transition: width .9s linear; }
.bar.ny { background: #7d2326; } .bar.disponeret { background: #6b5a1d; }
.mstate { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.mstate .miss { color: #ff9a9d; } .mstate .ok { color: #8fe09b; }
.empty { color: var(--muted); padding: 10px; }

/* Stationsliste */
.filters { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px 8px; }
.fchip { background: #2a6e35; border: 0; color: #fff; border-radius: 3px; padding: 2px 7px; font-size: 11.5px; cursor: pointer; }
.fchip.off { background: #1d2023; color: var(--muted); }
.slist { overflow-y: auto; flex: 1; min-height: 0; }
.bhead { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #24272a; border-top: 1px solid #111; font-weight: 700; }
.bhead .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.vrow { display: flex; align-items: center; gap: 6px; padding: 2px 8px 2px 14px; cursor: pointer; }
.vrow:hover { background: var(--panel2); }
.vname { background: var(--grey); border-radius: 2px; padding: 0 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vrow .mis { color: var(--muted); font: 11px var(--f-mono); margin-left: auto; }
.fms { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 2px; font: 700 11px var(--f-mono); color: #111; flex: none; }
.fms.s1 { background: var(--lblue); } .fms.s2 { background: #5cc96a; } .fms.s3 { background: var(--yellow); } .fms.s4 { background: var(--orange); }
.fms.s6 { background: #1b1d1f; color: #9aa; border: 1px solid #666; } .fms.s7 { background: var(--purple); }

/* Radio */
.onair { font: 700 12px var(--f-display); letter-spacing: .1em; text-transform: uppercase; padding: 1px 8px; border-radius: 3px; background: #1d2023; color: var(--muted); }
.onair.live { background: var(--red); color: #fff; }
.rlist li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px; padding: 4px 8px; border-bottom: 1px solid #1d2023; }
.rlist time { font: 11px var(--f-mono); color: var(--muted); padding-top: 2px; }
.rlist .who { font-weight: 700; cursor: default; }
.rlist .unit .who { color: #8fe09b; cursor: pointer; } .rlist .central .who { color: var(--yellow); }
.rlist .call .who { color: #ff8a8e; } .rlist .sys .who { color: var(--lblue); }
.rlist li.speaking .txt { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.hlist li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-bottom: 1px solid #1d2023; }
.hlist .r { font-family: var(--f-mono); color: #8fe09b; white-space: nowrap; }
.hlist small { color: var(--muted); display: block; }

/* Kortmarkører */
.mk-b { width: 22px; height: 22px; border-radius: 4px 4px 4px 0; border: 2px solid #111; display: grid; place-items: center; font: 700 12px var(--f-mono); }
.mk-b.politi { background: var(--politi); color: #fff; } .mk-b.ambulance { background: var(--ambulance); color: #111; }
.mk-b.brand { background: var(--brand); color: #fff; } .mk-b.hospital { background: #fff; color: var(--red); }
.mk-m { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; background: var(--red); }
.mk-m.disponeret { background: var(--yellow); } .mk-m.igang { background: var(--green); }
.mk-m.sel { box-shadow: 0 0 0 4px rgba(226,180,43,.8); }
.mk-v { font: 700 10.5px var(--f-mono); padding: 1px 4px; border: 2px solid #111; border-radius: 2px; white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; }
.mk-v.politi { background: #fff; color: #1a3d7a; } .mk-v.ambulance { background: #f2dd3a; color: #111; } .mk-v.brand { background: var(--red); color: #fff; }
.mk-place { width: 26px; height: 26px; border-radius: 50%; border: 3px dashed var(--yellow); background: rgba(226,180,43,.25); }
@media (prefers-reduced-motion: no-preference) {
  .mk-m.ny { animation: pulse 1.3s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,60,65,.8); } 70% { box-shadow: 0 0 0 14px rgba(212,60,65,0); } 100% { box-shadow: 0 0 0 0 rgba(212,60,65,0); } }
  .onair.live { animation: blink 1s steps(2, start) infinite; } @keyframes blink { to { opacity: .55; } }
}
.leaflet-container { font-family: var(--f-body); }

/* Vinduer */
.overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.55); display: flex; padding: 16px; }
.window { position: relative; margin: auto; width: min(1280px, 100%); height: min(860px, 100%); background: #3a3e42;
  border: 1px solid #111; border-top: 22px solid #121416; border-radius: 4px; display: flex; flex-direction: column; }
.win-close { position: absolute; top: -21px; right: 6px; background: none; border: 0; color: #fff; font-size: 20px; line-height: 20px; cursor: pointer; }
.win-body { flex: 1; overflow: auto; padding: 14px 16px; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.crumbs { background: #2b2f33; padding: 6px 10px; border-radius: 3px; font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--fg); font-weight: 700; cursor: pointer; text-decoration: none; }
.win-title { font: 400 28px var(--f-body); margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; align-items: center; }
.kv dt { font-weight: 700; text-align: right; } .kv dd { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; background: #1e2124; padding: 6px 8px; font-size: 12px; position: sticky; top: 0; z-index: 1; }
.tbl td { padding: 6px 8px; border-top: 1px solid #23272a; vertical-align: middle; }
.tbl tr:nth-child(even) td { background: #33373b; } .tbl tr:nth-child(odd) td { background: #2c3034; }
.tbl tr.dis td { opacity: .5; }
.tbl tr.chk td { background: #2f4532 !important; }
.tblwrap { overflow: auto; min-height: 0; border: 1px solid #111; }
.badge { display: inline-block; font: 700 12px var(--f-mono); padding: 2px 6px; border: 2px solid #111; border-radius: 2px; }
.badge.politi { background: #fff; color: #1a3d7a; } .badge.ambulance { background: #f2dd3a; color: #111; } .badge.brand { background: var(--red); color: #fff; }
.note { background: #2f6fa8; border-radius: 3px; padding: 8px 12px; }
.note.warn { background: #7a5b16; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Opgavevindue */
.mwin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; flex: 1; min-height: 0; }
.mwin .col { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mhead h1 { font: 700 26px var(--f-display); text-transform: uppercase; margin: 0; letter-spacing: .02em; }
.mhead .bar { flex: 0 0 40%; height: 14px; margin-top: 8px; }
.callq { margin: 0; padding: 8px 12px; border-left: 4px solid var(--yellow); background: #2b2f33; font-style: italic; }
.need-ok { color: #8fe09b; } .need-miss { color: #ff9a9d; font-weight: 700; }
.sendbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--head); margin: 0 -16px -14px; padding: 8px 16px; }
.cats { display: flex; gap: 4px; }
.cat input { position: absolute; opacity: 0; }
.cat span { display: inline-block; min-width: 40px; text-align: center; font: 700 16px var(--f-display); padding: 2px 10px; background: #1d2023; border-radius: 3px; cursor: pointer; }
.cat input:checked + span { background: #fff; color: #111; }
.cat input:focus-visible + span { outline: 2px solid var(--yellow); }
.subtabs { display: flex; gap: 2px; flex-wrap: wrap; }

/* Byg */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.card { background: #2b2f33; border: 1px solid #1d2023; border-radius: 4px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font: 700 18px var(--f-display); }
.card.locked { opacity: .55; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: #1d2023; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.toast.err { border-left-color: var(--red); } .toast.ok { border-left-color: var(--green); }
.toast.lvlup { border-left-color: var(--yellow); }
.toast b { display: block; }

/* Paneltabs, chat, alliance */
.ptabs { display: flex; gap: 2px; }
.ptab { background: none; border: 0; color: var(--muted); font: 700 14px var(--f-display); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; cursor: pointer; border-radius: 3px; }
.ptab.active { color: var(--fg); background: rgba(255,255,255,.08); }
.ptab .dot { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 4px; border-radius: 8px; background: var(--red); color: #fff; font: 700 10px var(--f-mono); }
.clist { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; min-height: 0; }
.clist li { padding: 3px 8px; word-break: break-word; }
.clist .cu { font-weight: 700; color: var(--lblue); margin-right: 4px; }
.clist .sys .cu { color: var(--yellow); }
.clist time { font: 10.5px var(--f-mono); color: var(--muted); margin-right: 4px; }
.cform { display: flex; gap: 6px; padding: 6px 8px; border-top: 1px solid #111; }
.cform input { flex: 1; min-width: 0; padding: 4px 8px; }
.owner { font-size: 11px; color: var(--purple); font-weight: 700; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: #1d2023; }
.pill.shared { background: #5b3c86; color: #fff; } .pill.esc { background: var(--orange); color: #111; }
.mk-m.ally { background: var(--purple); }
.formgrid { display: grid; grid-template-columns: max-content minmax(0, 360px); gap: 8px 12px; align-items: center; }

/* Rigtige stationer som forslag ved byg og flyt */
.mk-real { width: 18px; height: 18px; border-radius: 50%; background: rgba(140,148,156,.55); border: 2px solid #e8ecef;
  box-shadow: 0 0 0 2px rgba(0,0,0,.35); cursor: pointer; }
.mk-real.politi { border-color: #5b8def; } .mk-real.brand { border-color: #e0483e; }
.mk-real.ambulance { border-color: #e2b42b; } .mk-real.hospital { border-color: #4fb37a; }
.mk-real:hover { background: rgba(226,180,43,.6); }
.p-addr { font-size: 12px; color: var(--muted, #9aa3ab); max-width: 260px; }

/* Forespørgsler fra enheder */
.toast.req { border-left-color: var(--yellow); }
.pill.req { background: var(--yellow); color: #111; }
.reqbox { background: rgba(226,180,43,.14); border: 1px solid var(--yellow); border-radius: 4px; padding: 8px 10px; margin: 8px 0; font-size: 13px; }
.reqbox b { color: var(--yellow); margin-right: 6px; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.reqbox.done { border-color: var(--green); background: rgba(79,179,122,.12); }
.reqbox.done b { color: var(--green); }
.pill.public { background: #2f6f9f; color: #fff; }

/* Knap på kortet: vis opgaveområde */
.map-btn { background: var(--panel, #24282c); color: #e8ecef; border: 1px solid rgba(255,255,255,.25); border-radius: 4px;
  padding: 6px 10px; font: 600 12px/1 "Atkinson Hyperlegible", sans-serif; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.map-btn.on { background: var(--yellow, #e2b42b); color: #111; }

/* ☰-menu */
.menu-wrap { position: relative; }
.burger { width: 38px; height: 34px; display: grid; place-content: center; gap: 4px; background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25); border-radius: 4px; cursor: pointer; padding: 0 9px; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; }
.burger:hover, .burger[aria-expanded="true"] { background: rgba(0,0,0,.45); }
.menu { position: absolute; top: 40px; left: 0; z-index: 3000; min-width: 190px; background: var(--panel, #24282c);
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 6px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #e8ecef;
  font: 600 14px "Atkinson Hyperlegible", sans-serif; padding: 9px 12px; border-radius: 4px; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 4px 0; }

/* Indstillinger */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.set-box { background: #2b2f33; border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.set-box h2 { margin: 0 0 6px; }
.set-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.set-row:last-of-type { border-bottom: 0; }
.set-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--yellow, #e2b42b); flex: none; }
.set-row span { display: flex; flex-direction: column; gap: 2px; }
.set-row small { color: var(--muted, #9aa3ab); font-size: 12px; }
.set-select { justify-content: space-between; align-items: center; cursor: default; }
.vol { flex-direction: row !important; align-items: center; gap: 10px !important; }
.vol input { width: 160px; accent-color: var(--yellow, #e2b42b); }
.vol output { min-width: 32px; text-align: right; font-family: var(--f-mono, monospace); }

/* ---- venner og samspil */
body.guest .owner-only { display: none !important; }
.coopbar { display: flex; gap: 10px; align-items: center; padding: 6px 14px; background: #1d4f7a; color: #fff; font-size: 14px; }
.coopbar b { color: #ffd34d; }
.coopbar .btn { margin-left: auto; }
.menu .dot, .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; margin-left: 6px; vertical-align: middle; }
.burger { position: relative; }
.burger.has-news::after { content: ""; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.friend-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.friend-add input { min-width: 220px; }
.invite-box { background: rgba(255,211,77,.12); border: 1px solid rgba(255,211,77,.4); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.invite-box .row { margin-top: 6px; }
.set-box.danger { border-color: rgba(229,72,77,.45); }
.set-box.danger h2 { color: #ff8a8d; }

/* ---- kørselskategori A/B/C på køretøjer */
.kcat { display: inline-grid; place-items: center; min-width: 16px; height: 18px; margin-left: 3px; border-radius: 2px; font: 700 11px var(--f-mono); flex: none; vertical-align: middle; }
.kA { background: #e5484d; color: #fff; } .kB { background: #f2b33a; color: #111; } .kC { background: #4a9e5c; color: #fff; }
.mk-cat { font-style: normal; margin-left: 3px; padding: 0 3px; border-radius: 2px; }
.mk-v.blink { animation: blueblink .8s steps(1) infinite; }
@keyframes blueblink { 50% { box-shadow: 0 0 0 3px #2f7bff, 0 0 10px 3px rgba(47,123,255,.7); } }
@media (prefers-reduced-motion: reduce) { .mk-v.blink { animation: none; box-shadow: 0 0 0 2px #2f7bff; } }

/* forklaring ved musen over en kørselskategori */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-within::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 280px; white-space: normal; text-align: left; z-index: 4000; pointer-events: none;
  background: #111417; color: #e8ecef; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 8px 10px;
  font: 400 12.5px/1.4 var(--f-sans, system-ui, sans-serif); box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.vrow [data-tip]:hover::after, .tbl [data-tip]:hover::after { bottom: auto; top: calc(100% + 6px); left: 0; transform: none; }
.sendbar [data-tip]:hover::after, .sendbar [data-tip]:focus-within::after { left: 0; transform: none; }
