/* Launch Logging System – stilark. Ingen eksterne fonter eller CDN (fungerer uten internett). */
:root {
  --navy: #0b1b2b;
  --navy-2: #12283d;
  --navy-3: #1c3a55;
  --amber: #f2a541;
  --amber-ink: #6b3f00;
  --teal: #2a8f9b;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --line: #dde3ea;
  --text: #15212e;
  --muted: #5e6e7f;
  --ok: #1f8a4c;
  --ok-bg: #e3f4ea;
  --warn: #a15c00;
  --warn-bg: #fdf0dc;
  --bad: #b3261e;
  --bad-bg: #fbe5e3;
  --focus: #2a8f9b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 27, 43, .06), 0 4px 14px rgba(11, 27, 43, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --sidebar: 232px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1622; --surface: #102131; --surface-2: #0d1c2a; --line: #213649; --text: #e4ecf3; --muted: #93a6b8;
    --ok-bg: #12321f; --warn-bg: #3a2a10; --bad-bg: #3d1614; --ok: #5fd08f; --warn: #f2b860; --bad: #ff8a80;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1622; --surface: #102131; --surface-2: #0d1c2a; --line: #213649; --text: #e4ecf3; --muted: #93a6b8;
  --ok-bg: #12321f; --warn-bg: #3a2a10; --bad-bg: #3d1614; --ok: #5fd08f; --warn: #f2b860; --bad: #ff8a80;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.45rem; font-weight: 650; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 650; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- oppsett ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cfdbe6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 20px 18px 16px; border-bottom: 1px solid var(--navy-3);
  background: linear-gradient(180deg, rgba(42,143,155,.10), transparent); }
.brand-logo { display: block; margin-bottom: 12px; }
.brand-logo img { display: block; width: 150px; height: auto; }
.brand .t1 { font-weight: 700; letter-spacing: .14em; font-size: .68rem; color: var(--amber); }
.brand .t2 { font-size: .7rem; letter-spacing: .12em; color: #8aa3b8; margin-top: 3px; font-weight: 600; }
.env-badge { display: inline-block; margin-top: 10px; background: var(--amber); color: #2b1a00; font-weight: 700; font-size: .7rem; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; }
.nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav .sect { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #6f8aa1; padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; color: #cfdbe6; text-decoration: none; padding: 9px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.sidebar .foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--navy-3); font-size: .85rem; }
.sidebar .foot .who { color: #fff; font-weight: 600; }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #8aa3b8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6f8aa1; display: inline-block; }
.dot.live { background: #4cd38a; box-shadow: 0 0 0 3px rgba(76,211,138,.18); }
.dot.down { background: #ff6b5e; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 24px 28px 48px; max-width: 1400px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.bottomnav { display: none; }

@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: #fff;
            padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; position: sticky; top: 0; z-index: 20; }
  .topbar .t1 { font-weight: 750; letter-spacing: .08em; font-size: .78rem; }
  .topbar .right { display: flex; align-items: center; gap: 10px; }
  .topbar button.icon { color: #fff; }
  .content { padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); }
  .bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
               background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; font-size: .7rem; color: var(--muted); text-decoration: none; }
  .bottomnav a.active { color: var(--teal); }
  .bottomnav a.primary svg { background: var(--amber); color: #2b1a00; border-radius: 12px; padding: 4px; width: 32px; height: 32px; margin-top: -4px; }
  .bottomnav svg { width: 22px; height: 22px; }
  h1 { font-size: 1.25rem; }
}
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5,12,20,.5); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(290px, 85vw); z-index: 41; display: flex !important; }

/* ---------- komponenter ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card + .card { margin-top: 16px; }
.tiles > .card + .card, .grid > .card + .card { margin-top: 0; }
.card h2 { margin-bottom: 12px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface);
       color: var(--text); font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; min-height: 40px;
       text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--amber); border-color: #d98b22; color: #2b1a00; }
.btn.primary:hover { background: #f5b45e; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { min-height: 32px; padding: 5px 10px; font-size: .85rem; }
.btn svg { width: 17px; height: 17px; }
button.icon { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: inherit; display: inline-flex; }
button.icon svg { width: 22px; height: 22px; }

label.field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); min-width: 0; }
label.field .req { color: var(--bad); }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; min-height: 42px; width: 100%; min-width: 0; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.field .hint { font-weight: 400; font-size: .78rem; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; accent-color: var(--teal); }

.grid { 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)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.span2 { grid-column: span 2; }
@media (max-width: 560px) { .span2 { grid-column: auto; } }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 14px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 14px 16px; }
.tile .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.tile .v { font-size: 1.6rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: .8rem; color: var(--muted); }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--surface-2); }
table.data td.r, table.data th.r { text-align: right; }
table.data tr.flash td { animation: flash 2.4s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--amber) 35%, transparent); } to { background: transparent; } }
.table-wrap { overflow-x: auto; }
tr.inactive td { opacity: .55; }

.cards { display: none; }
@media (max-width: 899px) {
  .table-wrap.responsive { display: none; }
  .cards { display: flex; flex-direction: column; }
  .lcard { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line);
           text-decoration: none; color: inherit; }
  .lcard:last-child { border-bottom: 0; }
  .lcard .l1 { font-weight: 650; }
  .lcard .l2 { font-size: .82rem; color: var(--muted); }
  .lcard .r { text-align: right; font-size: .82rem; }
}

.patch { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); display: inline-grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: var(--muted); flex: none; }
.patch.lg { width: 96px; height: 96px; font-size: 1.2rem; }
.cell-camp { display: flex; align-items: center; gap: 10px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.anomaly { color: var(--warn); background: var(--warn-bg); }
.badge.aborted, .badge.bad { color: var(--bad); background: var(--bad-bg); }
.badge.neutral { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.badge.role-admin { color: #fff; background: var(--navy-3); }

.form-section { padding: 18px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section > h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.form-section > h3 .n { width: 22px; height: 22px; border-radius: 50%; background: transparent; border: 1.5px solid var(--amber); color: var(--amber); font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.form-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); position: sticky; bottom: 0; }
@media (max-width: 899px) { .form-foot { bottom: calc(60px + env(safe-area-inset-bottom)); } }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist .item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.checklist .item.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-bg); }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.progress > div { height: 100%; background: var(--ok); transition: width .2s; }

dl.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; margin: 0; }
dl.kv div { min-width: 0; }
dl.kv dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
dl.kv dd { margin: 3px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.notes { white-space: pre-wrap; }

.banner { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .9rem; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.info { background: color-mix(in srgb, var(--teal) 14%, var(--surface)); color: var(--text); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-bottom-color: var(--amber); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.timeline .when { color: var(--muted); font-size: .82rem; }
.chg { font-size: .85rem; margin-top: 6px; display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 3px 12px; }
.chg .old { color: var(--bad); text-decoration: line-through; }
.chg .new { color: var(--ok); }

.empty { padding: 36px 18px; text-align: center; color: var(--muted); }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 12, 20, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; width: min(620px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal.wide { width: min(900px, 100%); }
.modal header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal .body { padding: 18px; overflow-y: auto; }
.modal footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .modal-backdrop { padding: 0; align-items: end; } .modal { border-radius: 14px 14px 0 0; max-height: 92vh; } }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
@media (max-width: 899px) { #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; } }
.toast { background: var(--navy); color: #fff; padding: 11px 14px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .9rem; animation: tin .18s ease-out; }
.toast.ok { border-left: 4px solid #4cd38a; }
.toast.err { border-left: 4px solid #ff6b5e; }
.toast.info { border-left: 4px solid var(--amber); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- diagram ---------- */
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding: 0 18px 14px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.bar { height: 8px; background: var(--teal); border-radius: 99px; }

.pill-sync { background: var(--amber); color: #2b1a00; border-radius: 99px; padding: 2px 9px; font-size: .75rem; font-weight: 700; }
@media print {
  .sidebar, .topbar, .bottomnav, .actions, .form-foot, #toasts { display: none !important; }
  .shell { display: block; } .card { box-shadow: none; } body { background: #fff; }
}

details.filter-box > summary { display: none; }
@media (max-width: 899px) {
  details.filter-box > summary { display: block; padding: 12px 14px; font-weight: 650; cursor: pointer; }
  details.filter-box[open] > summary { border-bottom: 1px solid var(--line); }
}

/* =====================================================================
   Visuell profil (bilder byttes per instans: public/brand eller public/brand-neutral)
   ===================================================================== */
.kicker { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: #9fb4c6; text-transform: uppercase; }
.kick-bar { width: 18px; height: 2px; background: var(--amber); display: inline-block; }
.ops-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ops-clock { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 10px; border: 1px solid rgba(159,180,198,.28); border-radius: 6px;
  background: rgba(8,18,30,.55); color: #e8f0f6; font-size: .82rem; backdrop-filter: blur(4px); }
.ops-clock-k { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #8aa3b8; font-weight: 700; }
.ops-clock-v { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.side-clocks { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.side-clocks .ops-clock { background: var(--navy-2); border-color: var(--navy-3); justify-content: space-between; }
.with-icon { display: inline-flex; align-items: center; gap: 7px; }
.with-icon svg { width: 16px; height: 16px; flex: none; color: var(--teal); }
h3 .with-icon svg { width: 18px; height: 18px; }

/* rutenett i stil med operasjons-/radarskjermer */
.ops-grid-bg { background-image:
  linear-gradient(rgba(159,180,198,.07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(159,180,198,.07) 1px, transparent 1px);
  background-size: 32px 32px; }

/* ---------- innlogging ---------- */
.login { position: relative; min-height: 100vh; display: flex; flex-direction: column; color: #e8f0f6; overflow: hidden;
  background: var(--navy) url('/brand/hero.jpg') center 40% / cover no-repeat;
  background-image: image-set(url('/brand/hero.webp') type('image/webp'), url('/brand/hero.jpg') type('image/jpeg')); }
.login::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,14,24,.96) 0%, rgba(6,14,24,.86) 38%, rgba(6,14,24,.55) 70%, rgba(6,14,24,.75) 100%); }
.login::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(159,180,198,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(159,180,198,.06) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(90deg, #000 0%, transparent 65%); }
.login-grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px); gap: 48px;
  align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; padding: 48px 32px; }
.login-logo { width: 240px; max-width: 70%; height: auto; display: block; margin-bottom: 28px; }
.login-brand h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; margin: 14px 0 10px; color: #fff; }
.login-brand p { color: #b6c6d4; margin: 0 0 22px; max-width: 46ch; font-size: 1.02rem; }
.login .panel { width: 100%; background: var(--surface); color: var(--text); border-radius: 14px; padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); border-top: 3px solid var(--amber); display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-tag { font-size: .66rem; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 4px; }
.login form { display: flex; flex-direction: column; gap: 14px; }
.login-foot { position: relative; z-index: 1; text-align: center; padding: 14px; font-size: .68rem; letter-spacing: .16em; color: #7f97ab;
  border-top: 1px solid rgba(159,180,198,.15); }
.err-msg { color: var(--bad); font-size: .9rem; min-height: 1.2em; }
@media (max-width: 860px) {
  .login-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 18px; align-content: start; }
  .login-logo { width: 170px; margin-bottom: 16px; }
  .login-brand p { display: none; }
  .login-brand h1 { margin-bottom: 12px; }
}

/* ---------- toppbanner på oversikten ---------- */
.ops-hero { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 16px; color: #e8f0f6; min-height: 168px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 22px 24px;
  background: var(--navy) url('/brand/hero.jpg') 60% 22% / cover no-repeat;
  background-image: image-set(url('/brand/hero.webp') type('image/webp'), url('/brand/hero.jpg') type('image/jpeg'));
  box-shadow: var(--shadow); border: 1px solid rgba(159,180,198,.15); }
.ops-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,14,24,.95) 0%, rgba(6,14,24,.82) 45%, rgba(6,14,24,.45) 100%); }
.ops-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(159,180,198,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(159,180,198,.07) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(90deg, #000, transparent 55%); }
.ops-hero > * { position: relative; z-index: 1; }
.ops-hero h1 { color: #fff; margin-top: 10px; font-size: 1.7rem; }
.ops-hero .sub { color: #b6c6d4; margin-top: 4px; font-size: .92rem; }
.ops-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (min-width: 900px) { .ops-hero .ops-strip { display: none; } }
.btn.glass { background: rgba(8,18,30,.55); color: #fff; border-color: rgba(159,180,198,.35); backdrop-filter: blur(4px); }
.btn.glass:hover { background: rgba(28,58,85,.8); }
@media (max-width: 899px) {
  .ops-hero { min-height: 0; padding: 18px 16px; border-radius: 10px; }
  .ops-hero h1 { font-size: 1.35rem; }
  .ops-hero .sub { display: none; }
  .ops-hero .kicker { font-size: .62rem; letter-spacing: .12em; }
  .ops-hero-side { align-items: flex-start; width: 100%; }
}

/* ---------- toppfelt mobil ---------- */
.top-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.top-brand img { display: block; }
.topbar .t2 { font-size: .58rem; letter-spacing: .14em; color: #8aa3b8; margin-top: 1px; }

/* ---------- diskrete operasjonsdetaljer ---------- */
.tile { position: relative; }
.tile::before { content: ""; position: absolute; left: -1px; top: -1px; width: 12px; height: 12px;
  border-left: 2px solid var(--amber); border-top: 2px solid var(--amber); border-top-left-radius: var(--radius); }
.section-title h2, .card-pad > h2 { display: flex; align-items: center; gap: 8px; }
.section-title h2::before, .card-pad > h2::before { content: ""; width: 3px; height: 14px; background: var(--amber); border-radius: 2px; flex: none; }

/* ---------- utskrift ---------- */
.print-head { display: none; }
@media print {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --surface-2: #f5f7f9; --line: #c9d2db; --text: #000; --muted: #444;
    --ok: #1f6b3c; --ok-bg: #e6f2ea; --warn: #7a4a00; --warn-bg: #fbf0dc; --bad: #9b1c14; --bad-bg: #fbe5e3; --shadow: none; color-scheme: light; }
  .print-head strong { font-size: 1.05rem; }
  .print-head { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid #000; }
  .print-head img { height: 40px; width: auto; }
}
