:root {
  --bg: #f4f6f8; --card: #fff; --text: #1d2733; --muted: #66727f; --line: #dde3e9;
  --accent: #1f6feb; --accent-dark: #1858c4; --ok: #1a7f37; --warn: #b26a00; --err: #c62828;
  --radius: 10px;
}
* { box-sizing: border-box; }
/* Elementer med hidden-attributtet skal alltid skjules, også når en klasse setter display (f.eks. flex) */
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.top { display: flex; align-items: center; gap: 20px; padding: 12px 24px; background: #14202e; color: #fff; }
header.top .brand { font-weight: 700; font-size: 17px; color: #fff; }
header.top nav { display: flex; gap: 16px; flex: 1; }
header.top nav a, header.top .user a { color: #c9d6e3; }
header.top .user { display: flex; gap: 14px; align-items: center; color: #c9d6e3; font-size: 14px; }

main { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
main.wide { max-width: none; margin: 0; padding: 0; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 220px; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=password] { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
button, .btn { display: inline-block; padding: 9px 16px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button:hover, .btn:hover { background: var(--accent-dark); text-decoration: none; }
button:disabled { background: #9db6dd; cursor: default; }
button.secondary, .btn.secondary { background: #e8edf2; color: var(--text); }
button.danger { background: #fbe9e9; color: var(--err); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { border: 2px solid var(--line); border-radius: 9px; padding: 12px; cursor: pointer; font-weight: normal; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: #eef4ff; }
.choice input { margin-right: 6px; }
.choice b { font-size: 15px; }
.choice .muted { display: block; margin-top: 4px; font-size: 13px; }

.dropzone { border: 2px dashed #b8c4d0; border-radius: 9px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: #eef4ff; }
.progress { height: 10px; background: #e8edf2; border-radius: 5px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .3s; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #e8edf2; }
.badge.done { background: #dcf3e2; color: var(--ok); }
.badge.running, .badge.queued { background: #fff2d6; color: var(--warn); }
.badge.failed, .badge.canceled, .badge.missing { background: #fbe9e9; color: var(--err); }
.badge.uploading { background: #e3ecfb; color: var(--accent); }
.error { color: var(--err); margin-top: 10px; }
.notice { background: #eef4ff; border: 1px solid #cddcf7; padding: 10px 14px; border-radius: 8px; }

/* Jobbside */
.jobbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.jobbar h1 { margin: 0; font-size: 19px; }
.tabs { display: flex; gap: 6px; }
.tabs button { background: #e8edf2; color: var(--text); }
.tabs button.active { background: var(--accent); color: #fff; }
.viewer { position: relative; height: calc(100vh - 118px); min-height: 400px; }
#map, #cesium { position: absolute; inset: 0; }
.overlay { position: absolute; top: 12px; left: 12px; z-index: 1000; background: rgba(255,255,255,.95); padding: 10px 14px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: 13px; max-width: 280px; }
.overlay label { margin: 6px 0 2px; font-size: 13px; }
.overlay input[type=range] { width: 100%; margin: 0; }
/* Volumpanelet: bredt nok til at tabellen får plass uten sidelengs rulling */
.volpanel { top: auto; bottom: 24px; width: 420px; max-width: calc(100% - 24px); max-height: calc(100% - 140px);
            overflow-y: auto; overflow-x: hidden; }
.voltable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.voltable th, .voltable td { padding: 4px 6px; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.voltable th { color: var(--muted); font-weight: normal; width: 52%; }
.voltable td { text-align: right; }
.volbox { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.volbox summary { cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; gap: 6px; align-items: center; font-weight: normal; font-size: 13px; margin: 8px 0 0; }
.savedtable td { font-size: 12.5px; }
/* GCP-merking */
.gcpmark { position: absolute; inset: 0; z-index: 1300; background: #10171f; color: #e6edf3; display: flex; flex-direction: column; }
.gm-head { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: #172230; flex-wrap: wrap; }
.gm-head .muted { color: #9fb0c2; }
.gm-head button { padding: 5px 10px; }
.gm-body { flex: 1; display: flex; min-height: 0; }
.gm-list { width: 180px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid #2b3a4a; }
.gm-thumb { cursor: pointer; border: 2px solid transparent; border-radius: 6px; padding: 2px; text-align: center; font-size: 11px; }
.gm-thumb img { width: 150px; height: 150px; display: block; border-radius: 4px; background: #000; }
.gm-thumb.active { border-color: #ff6a00; }
.gm-main { flex: 1; padding: 12px; overflow: auto; }
.gm-view { position: relative; width: 640px; height: 640px; max-width: 100%; background: #000; cursor: crosshair; }
.gm-view img { width: 640px; height: 640px; display: block; user-select: none; }
.gm-cross { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none;
  background: linear-gradient(red, red) center/2px 14px no-repeat, linear-gradient(red, red) center/14px 2px no-repeat;
  border: 2px solid rgba(255,0,0,.85); border-radius: 50%; box-sizing: border-box; }
.gm-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #2ee66b;
  border: 2px solid #fff; pointer-events: none; }
.gm-main .muted { color: #9fb0c2; }
.rolesel { width: auto; padding: 1px 4px; font-size: 12px; }
.savedtable tr.muted td { color: #8a96a3; }
.cptable th, .cptable td { text-align: right; }
.cptable th:first-child { text-align: left; }
#cppanel input[type=file] { width: 100%; font-size: 13px; margin-top: 4px; }
.savedtable tr.active td { background: #fff4e8; }
.savedtable td:first-child { text-align: left; }
.savedtip { background: rgba(255,255,255,.85); border: 1px solid #0b63ce; color: #0b4a9c; font-weight: 600; box-shadow: none; }
.voltip { background: rgba(255,255,255,.9); border: 1px solid #ff6a00; font-weight: 700; color: #b84a00; box-shadow: none; }
.advanced { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; margin: 12px 0 0; }
.advanced summary { cursor: pointer; font-weight: 600; }
.radios { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.radios label { font-weight: normal; margin: 0; }
/* Flyvningssjekk */
.flightcheck { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin: 12px 0; background: #fafbfc; }
.flightcheck h3 { margin: 0 0 8px; font-size: 15px; }
.pf-head { font-weight: 700; margin-bottom: 8px; }
.pf-head.pf-ok { color: var(--ok); } .pf-head.pf-warn { color: var(--warn); } .pf-head.pf-error { color: var(--err); }
.pf-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.3fr); gap: 12px; }
@media (max-width: 760px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-map { height: 260px; border-radius: 7px; border: 1px solid var(--line); }
.pf-issue { margin: 6px 0; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; }
.pf-issue.pf-error { background: #fbe9e9; color: var(--err); }
.pf-issue.pf-warn { background: #fff4dc; color: #7a4a00; }
.pf-issue.pf-info { background: #eef4ff; color: #24456f; }
.pf-issue button { margin-top: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: middle; }
.opacity-ctl { background: #fff; padding: 6px 10px; font-size: 13px; width: 190px; }
.opacity-ctl label { margin: 0 0 2px; font-size: 13px; }
.opacity-ctl input { width: 100%; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; font: inherit; background: #fff; }
.center-msg { display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; gap: 12px; padding: 20px; text-align: center; }
.downloads { display: flex; gap: 8px; flex-wrap: wrap; }
.logpanel { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 1100; background: #0f1720; color: #d6e2ee; display: flex; flex-direction: column; border-top: 2px solid #2b3a4a; }
.loghead { display: flex; gap: 16px; align-items: center; padding: 6px 12px; background: #172230; }
.loghead b { color: #fff; }
.loghead button { margin-left: auto; padding: 4px 12px; }
.logpanel pre { flex: 1; margin: 0; padding: 8px 12px; overflow: auto; font: 12px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
#msg .card { margin: 0; }

.login-wrap { max-width: 380px; margin: 12vh auto; }

/* Eksporter-meny i jobblinjen */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menu-list { position: absolute; z-index: 2000; top: calc(100% + 4px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid #d0d7de; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 6px 0; }
details.menu .menu-group { font-size: 12px; font-weight: 600; color: #6b7280; padding: 8px 14px 2px; text-transform: uppercase; letter-spacing: .03em; }
details.menu .menu-list a { display: block; padding: 6px 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
details.menu .menu-list a:hover { background: #eef3f8; }

/* Fotorealistisk visning (Gaussian splatting) */
#splatview { position: absolute; inset: 0; background: #1b1f24; }
#splatview canvas { display: block; }
#splat-ctl { max-width: 300px; }

/* Beskjæring av ortofoto */
.crop-ctl { margin-top: 6px !important; }
.crop-ctl .crop-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.crop-ctl button { padding: 4px 8px; font-size: 12px; }

/* Faner i volum-/målepanelet og måleverktøy */
.ptabs { display: flex; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid #e3e7ec; }
.ptabs button { background: none; color: var(--text); border-radius: 6px 6px 0 0; padding: 6px 12px; font-weight: 600;
  border-bottom: 2px solid transparent; }
.ptabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.meas-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.meas-tools button { padding: 5px 10px; font-size: 13px; }
.meas-tools button.active { background: var(--accent); color: #fff; }
#meas-chart { position: relative; }
#meas-chart svg .ax { font-size: 10px; fill: #666666; }
#meas-chart svg .lbl { font-size: 10px; fill: #191919; font-weight: 600; }
.pf-tip { position: absolute; top: 28px; background: #fff; border: 1px solid #d0d7de; border-radius: 6px; padding: 4px 8px;
  font-size: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.12); pointer-events: none; white-space: nowrap; }
.pf-tip .sw { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 4px; }

/* I 3D ligger innstillingene øverst til venstre – volum-/målepanelet flyttes til høyre så de ikke overlapper */
.viewer.mode3d .volpanel { left: auto; right: 12px; }

#cmp-result .sw { display: inline-block; width: 12px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }

/* Originalbilder som viser et punkt */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-grid .photo { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #eee; aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid .cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid #ff2d55; border-radius: 50%; box-shadow: 0 0 0 1px #fff; pointer-events: none; }
.photo-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; padding: 2px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.photo-box { position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 5000; display: flex; align-items: center; justify-content: center; }
.photo-box[hidden] { display: none; }
.photo-inner { max-width: 96vw; max-height: 94vh; display: flex; flex-direction: column; gap: 8px; }
.photo-stage { position: relative; line-height: 0; }
.photo-stage img { max-width: 96vw; max-height: 84vh; display: block; }
.photo-mark { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #ff2d55;
  border-radius: 50%; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.photo-bar { display: flex; gap: 8px; align-items: center; justify-content: center; color: #fff; flex-wrap: wrap; }

/* Delt visning (kunde uten innlogging): skjul alt som endrer noe */
body.shared .edit-only, body.shared [data-adel], body.shared [data-del], body.shared #splat-redo,
body.shared details:has(#splat-redo) { display: none !important; }
/* Dialog (deling) */
.modal { background: #fff; color: var(--text); border-radius: 10px; padding: 20px 22px; width: min(640px, 94vw);
  max-height: 90vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }

/* Kvalitetskontroll under jobblinjen */
.qcbox { padding: 6px 24px 0; font-size: 13px; }
.qcbox .qc summary { cursor: pointer; font-weight: 600; }
.qcbox .qc .voltable { max-width: 720px; margin: 6px 0; }
.qcbox .pf-issue { margin: 4px 0; max-width: 900px; }

/* Koordinater under musepekeren */
.cursorpos { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 1000;
  background: rgba(255,255,255,.92); border-radius: 6px; padding: 3px 10px; font-size: 12px;
  font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(0,0,0,.2); pointer-events: none; white-space: nowrap; }

/* Før/etter-glidebryter */
.swipe-bar { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #fff; z-index: 1100;
  box-shadow: 0 0 4px rgba(0,0,0,.5); cursor: ew-resize; touch-action: none; }
.swipe-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 14px;
  padding: 4px 8px; font-size: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.4); white-space: nowrap; user-select: none; }
.swipe-lbl { position: absolute; top: 10px; z-index: 1100; background: rgba(0,0,0,.65); color: #fff; padding: 3px 8px;
  border-radius: 4px; font-size: 12px; pointer-events: none; }
.swipe-lbl-l { left: 60px; } .swipe-lbl-r { right: 330px; }

/* ---------- Mobil (smal skjerm) ---------- */
@media (max-width: 700px) {
  header.top { padding: 8px 12px; gap: 10px; flex-wrap: nowrap; }
  header.top nav { gap: 10px; }
  header.top .user span { display: none; }
  header.top .user { gap: 10px; font-size: 13px; }
  .jobbar { padding: 8px 12px; gap: 8px; }
  .jobbar h1 { font-size: 16px; width: 100%; }
  #meta { display: none; }
  .jobbar > button, .jobbar > details > summary.btn { padding: 6px 10px; font-size: 13px; }
  .jobbar > div[style*="flex:1"] { display: none; }
  .qcbox { padding: 4px 12px 0; }
  .cursorpos { display: none !important; }
  /* Kartvalg til høyre: skjult til «☰ Kartvalg» trykkes */
  .viewer:not(.show-layers) .leaflet-top.leaflet-right > :not(.mobile-layers-btn) { display: none; }
  .viewer.show-layers .leaflet-top.leaflet-right { max-height: 70%; overflow-y: auto; }
  .mobile-layers-btn a { width: auto !important; padding: 0 10px; font-size: 13px; line-height: 30px; }
  /* Paneler: felt nederst over hele bredden, sammenslått til man trykker */
  .overlay.sheet { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto !important;
    max-width: none !important; border-radius: 12px 12px 0 0; max-height: 62% !important; overflow-y: auto; }
  .overlay.sheet.collapsed { max-height: 46px !important; overflow: hidden; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  /* Knappene i én rad som kan sveipes, og kartet fyller resten av skjermen */
  .jobbar { flex-wrap: wrap; }
  .jobbar .mbar { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; width: 100%; -webkit-overflow-scrolling: touch; }
  .jobbar .mbar > * { flex: 0 0 auto; }
  .viewer { height: calc(100dvh - var(--mtop, 200px)); min-height: 320px; }
  /* 3D-innstillinger og fotorealistisk-panelet: felt øverst i kartet (volum-/målepanelet er nederst) */
  #cesium-ctl.sheet, #splat-ctl.sheet { top: 0 !important; bottom: auto !important; border-radius: 0 0 12px 12px; }
  .swipe-lbl-r { right: 10px; } .swipe-lbl-l { left: 50px; }
  .modal { padding: 14px; }
}
@media (max-width: 700px) {
  #cesium-ctl.sheet.collapsed, #splat-ctl.sheet.collapsed { max-height: 38px !important; }
}

@media (max-width: 700px) {
  /* Toppen på én linje: navn · status · visning ▾ · ⋯ */
  .jobbar { padding: 6px 10px; }
  .jobbar #tabs { display: none; }
  .mhead { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
  .mhead h1 { flex: 1 1 auto; min-width: 0; width: auto !important; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mhead #status .badge, .mhead #status span { font-size: 11px; padding: 1px 6px; }
  .mhead select { flex: 0 0 auto; width: auto; max-width: 42%; padding: 5px 6px; font-size: 14px; }
  .mhead .mmore > summary { padding: 4px 12px; font-size: 18px; line-height: 1; }
  details.menu.mmore > .mmore-list { left: auto; right: 0; min-width: 220px; padding: 6px; display: flex; flex-direction: column; gap: 4px; max-height: 75vh; overflow-y: auto; }
  .mmore .mmore-list > button { width: 100%; text-align: left; }
  .mmore .mmore-list details.menu > summary { display: block; width: 100%; text-align: left; }
  .mmore .mmore-list details.menu .menu-list { position: static; box-shadow: none; border: 0; min-width: 0; }
  .jobbar .mbar { display: none; }
  /* Paneloverskrift = håndtak for å åpne/lukke */
  .overlay.sheet > b:first-child { display: block; padding: 2px 70px 8px 0; cursor: pointer; position: relative; }
  .overlay.sheet > b:first-child::after { content: "▲ Lukk"; position: absolute; right: 0; top: 0; font-weight: 400; font-size: 12px;
    color: #0b63ce; background: #eef3f8; border-radius: 10px; padding: 2px 9px; }
  .overlay.sheet.collapsed > b:first-child::after { content: "▼ Åpne"; }
  #volpanel.sheet.collapsed > b:first-child::after { content: "▲ Åpne"; }
  #volpanel.sheet > b:first-child::after, #cppanel.sheet > b:first-child::after { content: "▼ Lukk"; }
  #cppanel.sheet.collapsed > b:first-child::after { content: "▲ Åpne"; }
  #cesium-ctl.sheet.collapsed, #splat-ctl.sheet.collapsed { max-height: 36px !important; padding-top: 8px; }
  .sheet-x { position: absolute; right: 10px; top: 8px; z-index: 2; padding: 2px 9px; font-size: 12px; border-radius: 10px;
    background: #eef3f8; color: #0b63ce; border: 0; }
  .sheet-x::after { content: "▼ Lukk"; }
  .sheet.collapsed .sheet-x::after { content: "▲ Åpne"; }
  #volpanel.sheet { padding-top: 6px; }
  #volpanel.sheet #ptabs { padding-right: 76px; }
}
@media (min-width: 701px) { .sheet-x { display: none; } }

/* Tegnelinje (Angre punkt / Ferdig / Avbryt) */
.drawbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 64px; z-index: 1200; display: flex; gap: 6px;
  background: #fff; padding: 6px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.drawbar button { white-space: nowrap; }
@media (max-width: 700px) {
  .drawbar { bottom: 58px; width: calc(100% - 20px); justify-content: space-between; }
  .drawbar button { flex: 1; padding: 9px 4px; font-size: 14px; }
  .mhead .mfs { flex: 0 0 auto; padding: 4px 9px; font-size: 16px; line-height: 1.2; }
  body.fs header.top { display: none; }
  .mmore-list .qcbox { padding: 4px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; white-space: normal; font-size: 13px; }
  .mhead > details#exportmenu > summary { padding: 5px 10px; font-size: 14px; white-space: nowrap; }
  .mhead > details#exportmenu > .menu-list { left: auto; right: 0; max-width: 92vw; max-height: 70vh; overflow-y: auto; }
  details.menu .menu-list a { white-space: normal; }
}
.warn-text { color: #b26a00; }

/* Aktivitet nå (forsiden) */
.act { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.act:last-of-type { border-bottom: 0; }
.act-ico { width: 22px; text-align: center; font-size: 16px; line-height: 1.3; color: #0b63ce; flex: 0 0 auto; }
.act-run .act-ico { color: var(--ok); }
.act-txt { flex: 1; min-width: 0; }
.act-bar { margin: 6px 0 2px; height: 8px; }
.act-node { margin: 8px 0 0; }

/* Lagring (forsiden, admin) */
.dk-row { display: grid; grid-template-columns: 260px 1fr 190px; gap: 10px; align-items: center; padding: 4px 0; }
.dk-bar.warn > div { background: #d98e04; }
.dk-bar.crit > div { background: #c62828; }
.dk-txt { text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .dk-row { grid-template-columns: 1fr auto; } .dk-bar { grid-column: 1 / -1; grid-row: 2; } }
