/* Dogs & Saints MC Oslo – kameraplattform v2. Svart tekstur, hvitt, rødt. */
:root {
  --svart: #070707;
  --panel: rgba(14, 14, 14, .88);
  --panel2: rgba(20, 20, 20, .92);
  --felt: #111;
  --linje: #262626;
  --linje2: #3a3a3a;
  --hvit: #f3efe8;
  --dempet: #9c9890;
  --dempet2: #6e6a64;
  --rod: #c8102e;
  --rod2: #e0202f;
  --gronn: #2fc96a;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --side: 232px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--hvit); font-family: 'Barlow', system-ui, sans-serif; font-size: 14px; line-height: 1.4;
  background: #070707 url('/web/tekstur.png') repeat; background-size: 1200px 800px;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%); }
a { color: var(--hvit); } a:hover { color: var(--rod2); }
button { font: inherit; color: inherit; }
.bl { font-family: 'Pirata One', 'Barlow', serif; font-weight: 400; letter-spacing: .01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.skjult { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ik { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- ramme: sidemeny + innhold ---------- */
.app { position: relative; z-index: 1; min-height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.meny {
  position: sticky; top: 0; height: 100dvh; padding: 22px 16px calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--linje);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6));
}
.meny .logo { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.8)); }
.meny a.punkt {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent; color: var(--hvit); font-size: 22px; line-height: 1;
}
.meny a.punkt .ik { width: 22px; height: 22px; color: var(--dempet); }
.meny a.punkt:hover { border-color: var(--linje2); background: rgba(255,255,255,.03); color: var(--hvit); }
.meny a.punkt.aktiv { border-color: var(--rod); background: rgba(200,16,46,.10); box-shadow: 0 0 0 1px rgba(200,16,46,.25), 0 0 24px rgba(200,16,46,.18); }
.meny a.punkt.aktiv .ik { color: var(--rod2); }
.meny .merke { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rod); color: #fff; font: 700 12px/22px 'Barlow', sans-serif; text-align: center; }
.meny .bunn { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.meny .bruker { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--linje); border-radius: 8px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; width: 100%; text-align: left; }
.meny .bruker:hover { border-color: var(--rod); }
.meny .initial { width: 28px; height: 28px; border-radius: 50%; background: var(--rod); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.meny .bruker small { display: block; font-weight: 500; color: var(--dempet); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.meny .fot { font-size: 11px; color: var(--dempet2); letter-spacing: .08em; text-transform: uppercase; text-align: center; }

.innhold { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.topp {
  min-height: 92px; padding: calc(18px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--linje); flex-shrink: 0;
}
.topp .tittel { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.topp h1 { margin: 0; font-size: 42px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
@media (max-width: 1280px) { .topp h1 { font-size: 34px; } }
.topp .slash { font-size: 30px; color: var(--rod2); font-weight: 700; letter-spacing: -.05em; }
.topp .undertittel { display: inline; }
.kunmobil { display: none !important; }
.topp .hoyre { display: flex; align-items: center; gap: 22px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dempet); white-space: nowrap; }
.prikk { width: 10px; height: 10px; border-radius: 50%; background: var(--gronn); box-shadow: 0 0 10px rgba(47,201,106,.7); flex-shrink: 0; }
.prikk.av { background: var(--dempet2); box-shadow: none; }
.prikk.feil { background: var(--rod2); box-shadow: 0 0 10px rgba(224,32,47,.7); }
.topp .skille { width: 1px; height: 44px; background: var(--linje); }
.klokke { text-align: center; line-height: 1.05; }
.klokke b { display: block; font-size: 30px; font-weight: 600; }
.klokke span { font-size: 13px; color: var(--dempet); }
.ikonknapp { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--dempet); cursor: pointer; text-decoration: none; }
.ikonknapp:hover { color: var(--hvit); border-color: var(--linje2); }
.ikonknapp .ik { width: 24px; height: 24px; }

/* ---------- oversikt: kameraene fyller høyden, hendelser som lav stripe nederst ---------- */
.oversiktside .innhold { height: 100dvh; overflow: hidden; }
.oversikt { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px max(28px, env(safe-area-inset-right, 0px)) 16px 32px; }
.scene { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.rutenett { flex: 1; display: grid; gap: 14px; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.rutenett[data-antall="1"] { grid-template-columns: 1fr; }
.rutenett[data-antall="5"], .rutenett[data-antall="6"] { grid-template-columns: repeat(3, 1fr); }
.rutenett.enkel { grid-template-columns: 1fr !important; }
.rutenett.enkel .feed:not(.valgt) { display: none; }

.feed { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--linje); background: #0c0c0c; min-height: 0; aspect-ratio: 16 / 9; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.rutenett .feed { aspect-ratio: auto; }
.rutenett ds-feed video { object-fit: cover; }   /* oversikten: fyll ruten; fullt bilde på kamerasiden */
.rutenett.enkel ds-feed video, .feed:fullscreen video { object-fit: contain; }
.feed::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); pointer-events: none; opacity: 1; transition: opacity .6s; z-index: 1; }
.feed.spiller::after { opacity: .3; }
ds-feed { position: absolute; inset: 0; display: block; background: #000; }
ds-feed video { width: 100%; height: 100%; object-fit: contain; display: block; }
.feed .topplinje { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0)); pointer-events: none; }
.feed .topplinje > * { pointer-events: auto; }
.feed .navnlinje { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--hvit); }
.feed .navn { font-size: 26px; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.8)); pointer-events: none; }
.feed .ov > * { pointer-events: auto; }
.feed .tc { font-size: 15px; color: var(--hvit); text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.feed .info { font-size: 11px; color: var(--dempet); }
.feed .knapper { display: flex; gap: 6px; }
.feed .melding { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--dempet); text-align: center; padding: 20px; pointer-events: none; }
.feed .melding .ik { width: 52px; height: 52px; stroke-width: 1.4; color: #555; }
.feed .melding b { font-family: 'Pirata One', serif; font-weight: 400; font-size: 26px; color: var(--hvit); }
.feed.spiller .melding { display: none; }
.feed a.flate { position: absolute; inset: 0; z-index: 2; }

.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 6px; background: var(--rod); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .12em; box-shadow: 0 0 18px rgba(200,16,46,.45); }
.live.venter { background: #2a2a2a; color: var(--dempet); box-shadow: none; }
.live.venter::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dempet); animation: puls 1.2s ease-in-out infinite; }
.live.feil { background: #1a1a1a; color: var(--rod2); border: 1px solid var(--rod); box-shadow: none; }
@keyframes puls { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.ib { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.55); color: var(--hvit); cursor: pointer; text-decoration: none; backdrop-filter: blur(4px); }
.ib:hover { border-color: var(--rod2); color: var(--rod2); }
.ib[aria-pressed="true"] { background: var(--rod); border-color: var(--rod); color: #fff; }
.ib:disabled { opacity: .4; cursor: default; }

/* nederste verktøylinje */
.verktoy { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--linje); border-radius: 12px; background: var(--panel); flex-shrink: 0; }
.verktoy .livepill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--rod); color: var(--hvit); font-weight: 800; letter-spacing: .12em; font-size: 13px; box-shadow: inset 0 0 20px rgba(200,16,46,.15); }
.verktoy .livepill i { width: 10px; height: 10px; border-radius: 50%; background: var(--rod2); box-shadow: 0 0 10px var(--rod2); animation: puls 1.6s ease-in-out infinite; }
.verktoy .skille { width: 1px; height: 26px; background: var(--linje); margin: 0 6px; }
.knapp2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--linje2); background: transparent; color: var(--hvit); cursor: pointer; font-weight: 600; letter-spacing: .04em; }
.knapp2:hover { border-color: var(--hvit); }
.knapp2[aria-pressed="true"] { border-color: var(--rod); color: var(--rod2); }
.knapp2:disabled { opacity: .4; cursor: default; }
.verktoy .hoyre { margin-left: auto; display: flex; gap: 8px; }

/* hendelsesstripe nederst: to lave paneler side om side */
.spalte { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.kort { border: 1px solid var(--linje); border-radius: 12px; background: var(--panel); padding: 12px 16px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); min-width: 0; }
.spalte .kort { height: 150px; display: flex; flex-direction: column; overflow: hidden; }
.kort .hode { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-shrink: 0; }
.kort h2 { margin: 0; font-size: 24px; line-height: 1; }
.kort .hode a { color: var(--rod2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.kort .merke { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--rod); color: #fff; font: 700 12px/22px 'Barlow', sans-serif; text-align: center; }
.liste { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.spalte .liste { flex-direction: row; gap: 10px; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
.liste .rad { display: grid; grid-template-columns: 28px minmax(0, 1fr) 72px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linje); text-decoration: none; color: inherit; }
.spalte .liste .rad { border-top: 0; border: 1px solid var(--linje); border-radius: 8px; padding: 6px 8px; min-width: 250px; flex: 0 0 auto; background: rgba(255,255,255,.02); }
.liste .rad:first-child { border-top: 0; }
.liste .rad:hover b { color: var(--rod2); }
.liste .rad .ik { width: 24px; height: 24px; color: var(--rod2); }
.liste .rad b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste .rad span { font-size: 12px; color: var(--dempet); }
.liste .tomt { padding: 10px 0 4px; color: var(--dempet2); font-size: 13px; }
.thumb { position: relative; width: 72px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; border: 1px solid var(--linje); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .spill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.thumb .spill i { width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.5); display: inline-flex; align-items: center; justify-content: center; }
.thumb .spill i::after { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; margin-left: 2px; }

/* ---------- ett kamera ---------- */
.enkel { flex: 1; padding: 22px max(28px, env(safe-area-inset-right, 0px)) 22px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; min-height: 0; }
.enkel .spalte { display: flex; flex-direction: column; gap: 18px; }
.enkel .kort { height: auto; padding: 18px 18px 14px; }
.enkel .kort h2 { font-size: 30px; }
.enkel .liste { flex-direction: column; overflow: visible; }
.enkel .liste .rad { border: 0; border-top: 1px solid var(--linje); border-radius: 0; padding: 10px 0; min-width: 0; background: transparent; grid-template-columns: 36px minmax(0, 1fr) 84px; }
.enkel .liste .rad:first-child { border-top: 0; }
.enkel .thumb { width: 84px; }
.enkel .scene .feed { flex: none; aspect-ratio: 16 / 9; width: min(100%, calc((100dvh - 250px) * 16 / 9)); margin: 0 auto; }
.enkel .tc { font-size: 22px; letter-spacing: .02em; }
.enkel .tc span { color: var(--dempet); }
.enkel .hjorne { position: absolute; top: 16px; font-size: 12px; color: var(--dempet); letter-spacing: .08em; z-index: 3; }
.enkel .hjorne.v { left: 16px; } .enkel .hjorne.h { right: 16px; letter-spacing: 0; }
.feed:fullscreen { border: 0; border-radius: 0; }
.ctl { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.6); color: var(--hvit); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: none; backdrop-filter: blur(4px); }
.ctl:hover { border-color: var(--rod2); color: var(--rod2); }
.ctl[aria-pressed="true"] { background: var(--rod); border-color: var(--rod); color: #fff; }
.ctl:disabled { opacity: .4; cursor: default; }
.kontroller { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bytt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bytt .mini { position: relative; width: 132px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--linje); background: #111; display: flex; align-items: flex-end; padding: 6px 9px; color: var(--hvit); text-decoration: none; font-size: 16px; }
.bytt .mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.bytt .mini span { position: relative; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.bytt .mini:hover { border-color: var(--hvit); }
.bytt .mini.cur { border-color: var(--rod); box-shadow: 0 0 0 1px var(--rod), 0 0 18px rgba(200,16,46,.35); }
.bytt .hint { margin-left: auto; font-size: 12px; color: var(--dempet); letter-spacing: .06em; text-transform: uppercase; }

/* styringspanel */
.styring { display: flex; flex-direction: column; }
.styring .rad { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linje); }
.styring .rad:first-child { border-top: 0; }
.styring .rad b { font-weight: 600; font-size: 15px; display: block; }
.styring .rad small { color: var(--dempet); font-size: 12px; }
.bryter { position: relative; width: 48px; height: 28px; border-radius: 999px; border: 1px solid var(--linje2); background: #1a1a1a; cursor: pointer; flex-shrink: 0; transition: background .2s, border-color .2s; padding: 0; }
.bryter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--dempet); transition: transform .2s, background .2s; }
.bryter[aria-checked="true"] { background: rgba(200,16,46,.35); border-color: var(--rod); }
.bryter[aria-checked="true"]::after { transform: translateX(20px); background: var(--rod2); }
.bryter:disabled { opacity: .4; cursor: default; }
.bryter.venter::after { animation: puls 1s ease-in-out infinite; }
.valg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.valg button { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--linje2); background: transparent; color: var(--dempet); cursor: pointer; font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.valg button[aria-pressed="true"] { border-color: var(--rod); color: var(--hvit); background: rgba(200,16,46,.15); }
.ptz { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 6px; justify-content: center; padding: 8px 0; }
.ptz button { border-radius: 8px; border: 1px solid var(--linje2); background: transparent; color: var(--hvit); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ptz button:hover { border-color: var(--rod2); color: var(--rod2); }
.ptz button:active { background: rgba(200,16,46,.3); }
.ptz .midt { border-style: dashed; color: var(--dempet2); }
.fare { border-color: var(--rod) !important; color: var(--rod2) !important; }
.fare[aria-pressed="true"] { background: var(--rod) !important; color: #fff !important; }
.styring .feilmelding { color: var(--rod2); font-size: 13px; padding: 10px 0; }
.styring .notis { color: var(--dempet2); font-size: 12px; line-height: 1.5; padding-top: 10px; }

/* ---------- hendelser-siden ---------- */
.hendelser { flex: 1; padding: 22px max(28px, env(safe-area-inset-right, 0px)) 22px 32px; display: flex; flex-direction: column; gap: 18px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linje2); background: transparent; color: var(--dempet); cursor: pointer; font-weight: 600; }
.filter button[aria-pressed="true"] { border-color: var(--rod); color: var(--hvit); background: rgba(200,16,46,.15); }
.filter .hoyre { margin-left: auto; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hkort { border: 1px solid var(--linje); border-radius: 12px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.hkort .media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.hkort .media img, .hkort .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hkort .media .tom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dempet2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hkort .media .spillknapp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.hkort .media .spillknapp i { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.6); display: inline-flex; align-items: center; justify-content: center; }
.hkort .media .spillknapp i::after { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.hkort .tekst { padding: 12px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hkort .tekst b { display: block; font-size: 17px; font-weight: 600; }
.hkort .tekst span { font-size: 12px; color: var(--dempet); }
.hkort .tekst .etikett { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dempet2); border: 1px solid var(--linje2); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.tomtstort { padding: 40px 20px; text-align: center; color: var(--dempet); border: 1px dashed var(--linje2); border-radius: 12px; }
.tomtstort b { display: block; font-family: 'Pirata One', serif; font-weight: 400; font-size: 30px; color: var(--hvit); margin-bottom: 6px; }

/* ---------- innstillinger-siden ---------- */
.innstillinger { flex: 1; padding: 22px max(28px, env(safe-area-inset-right, 0px)) 22px 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; align-content: start; }
.innstillinger .kort h2 { font-size: 32px; margin-bottom: 4px; }
.innstillinger .kort .under { color: var(--dempet); font-size: 13px; margin: 0 0 10px; }
.lager { height: 8px; border-radius: 999px; background: #1a1a1a; border: 1px solid var(--linje); overflow: hidden; margin-top: 6px; }
.lager i { display: block; height: 100%; background: linear-gradient(90deg, var(--rod), var(--rod2)); }

/* ---------- innlogging ---------- */
.innlogging { position: relative; z-index: 1; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.innlogging .venstre { position: relative; border-right: 1px solid var(--linje); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 60px max(28px, env(safe-area-inset-left, 0px)); background: rgba(0,0,0,.35); }
.innlogging .storlogo { width: 560px; max-width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 40px rgba(0,0,0,.9)); }
.innlogging .tekst { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 560px; }
.innlogging h1 { margin: 0; font-size: 56px; line-height: 1; text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.innlogging .tekst p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--dempet); max-width: 460px; }
.innlogging .hjv, .innlogging .hjh { position: absolute; bottom: 28px; font-size: 12px; color: var(--dempet); }
.innlogging .hjv { left: 32px; letter-spacing: .08em; } .innlogging .hjh { right: 32px; }
.innlogging .hoyre { display: flex; align-items: center; justify-content: center; padding: 40px max(28px, env(safe-area-inset-right, 0px)); }
.skjema { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 30px; border: 1px solid var(--linje); border-radius: 14px; background: var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.skjema h2 { margin: 0; font-size: 40px; line-height: 1; }
.skjema .under { margin: 0; font-size: 14px; color: var(--dempet); }
.felt { display: flex; flex-direction: column; gap: 8px; }
.lbl { font-size: 12px; font-weight: 600; color: var(--dempet); letter-spacing: .1em; text-transform: uppercase; }
.in { width: 100%; height: 48px; border-radius: 8px; border: 1px solid var(--linje2); background: var(--felt); color: var(--hvit); font: inherit; font-size: 15px; padding: 0 14px; outline: none; }
.in:focus { border-color: var(--rod); box-shadow: 0 0 0 3px rgba(200,16,46,.25); }
.husk { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.husk input { width: 16px; height: 16px; accent-color: var(--rod); margin: 0; }
.knapp { height: 50px; border-radius: 8px; border: 2px solid var(--rod); background: var(--rod); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 24px rgba(200,16,46,.35); }
.knapp:hover { background: #a50d26; border-color: #a50d26; }
.feilboks { margin: 0; padding: 12px 14px; border: 1px solid var(--rod); border-radius: 8px; font-size: 14px; background: rgba(200,16,46,.12); }
.lite { margin: 0; font-size: 12px; line-height: 1.5; color: var(--dempet2); }

/* ---------- smale skjermer ---------- */
@media (max-width: 1280px) {
  .enkel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  :root { --side: 0px; }
  .app { grid-template-columns: 1fr; }
  .meny { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; z-index: 20; flex-direction: row; align-items: center; gap: 4px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--linje); background: rgba(7,7,7,.96); }
  .meny .logo, .meny .fot, .meny .bruker small { display: none; }
  .meny a.punkt { flex: 1; flex-direction: column; gap: 4px; padding: 6px 4px; font-size: 13px; font-family: 'Barlow', sans-serif; font-weight: 600; }
  .meny a.punkt .ik { width: 22px; height: 22px; }
  .meny .merke { position: absolute; top: 2px; right: 10px; margin: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; }
  .meny .bunn { margin: 0; }
  .meny .bruker { padding: 6px; border: 0; width: auto; }
  .meny .bruker .navn { display: none; }
  .innhold { padding-bottom: 76px; min-height: auto; }
  .topp { min-height: 70px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px; gap: 10px; align-items: center; }
  .topp h1 { font-size: 24px; white-space: normal; line-height: 1; }
  .topp .undertittel { display: block; font-size: .72em; color: var(--dempet); margin-top: 3px; }
  .topp .slash { display: none; }
  .kunmobil { display: inline-flex !important; }
  .rutenett.kompakt { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .rutenett.kompakt .feed { border-radius: 8px; }
  .rutenett.kompakt .topplinje { padding: 7px 8px; gap: 6px; }
  .rutenett.kompakt .navnlinje { gap: 6px; }
  .rutenett.kompakt .feed .navn { font-size: 15px; }
  .rutenett.kompakt .prikk { width: 7px; height: 7px; }
  .rutenett.kompakt .live { padding: 2px 6px; font-size: 9px; letter-spacing: .08em; border-radius: 4px; }
  .rutenett.kompakt .ov { padding: 6px 8px; }
  .rutenett.kompakt .tc { font-size: 10px; }
  .rutenett.kompakt .melding { gap: 4px; padding: 8px; }
  .rutenett.kompakt .melding .ik { width: 26px; height: 26px; }
  .rutenett.kompakt .melding b { font-size: 15px; }
  .rutenett.kompakt .melding span { display: none; }
  .meny { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .topp .skille, .klokke span, .status .tekst { display: none; }
  .klokke b { font-size: 20px; }
  .oversikt, .enkel, .hendelser, .innstillinger { padding: 14px var(--gutter) 14px; gap: 14px; }
  .oversiktside .innhold { height: auto; overflow: visible; }
  .oversikt { display: flex; }
  .rutenett { flex: none; grid-template-columns: 1fr !important; grid-auto-rows: auto; }
  .rutenett .feed { aspect-ratio: 16 / 9; }
  .spalte { grid-template-columns: 1fr; }
  .spalte .kort { height: auto; }
  .spalte .liste { flex-direction: column; overflow: visible; }
  .spalte .liste .rad { min-width: 0; }
  .feed .navn { font-size: 20px; }
  .feed .knapper { display: none; }
  .feed .info { display: none; }
  .verktoy { flex-wrap: wrap; }
  .verktoy .skille { display: none; }
  .enkel .scene .feed { aspect-ratio: 16 / 9; flex: none; }
  .enkel .hjorne { display: none; }
  .enkel .ov { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
  .enkel .tc { font-size: 16px; }
  .kontroller { justify-content: space-between; }
  .ctl { height: 38px; padding: 0 10px; font-size: 12px; }
  .ctl .ord { display: none; }
  .bytt .mini { width: calc((100% - 20px) / 3); font-size: 13px; }
  .bytt .hint { display: none; }
  .innstillinger { grid-template-columns: 1fr; }
  .innlogging { grid-template-columns: minmax(0, 1fr); }
  .innlogging .venstre, .innlogging .hoyre { min-width: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .innlogging .venstre { border-right: 0; border-bottom: 1px solid var(--linje); padding-top: 44px; padding-bottom: 56px; gap: 22px; }
  .innlogging .tekst { max-width: 100%; }
  .skjema { width: 100%; }
  .innlogging .storlogo { width: 300px; }
  .innlogging h1 { font-size: 36px; }
  .innlogging .tekst p { font-size: 14px; }
  .innlogging .hjv, .innlogging .hjh { bottom: 18px; font-size: 11px; }
  .innlogging .hoyre { padding-top: 24px; padding-bottom: 40px; }
  .skjema { padding: 22px; }
}
