/* ============================================================
   stil-landing.css — del 2/12
   Landingssiden (desktop), design-konfigurator, org-innstillinger-fanen
   (oset-), live-systemets konsoll (live-) + endringslogg-panelet
   Del av styles.css-splitten (2026-08-07). Lastes i FAST rekkefølge —
   kildeorden er kaskade-bærende (primitivene i stil-tema.css vinner ved
   lik spesifisitet fordi de kommer sist). Ny fil? Oppdater Index.html
   (statisk lenke eller DESKTOP_STIL i loaderen) OG alle test-*.html.
   ============================================================ */
/* ============================================================
   LANDINGSSIDE
   ============================================================ */
#landing-screen {
  background: var(--bg, #1D1D1D);
  color: var(--text, #FFFFFF);
  font-family: 'Inter', sans-serif;
}

.landing-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

/* ============================================================
   LANDING — A+B (full-bredde dashboard)
   ============================================================ */
.lp-skjerm {
  display: flex; flex-direction: column;
  width: 100%; min-height: 100vh;
  background: var(--paper);
  color: var(--text);
}
/* Flate — sentrert bento-flate under headeren */
.lp-flate {
  box-sizing: border-box;
  width: 100%; max-width: 1640px; margin: 0 auto;
  padding: 26px clamp(20px, 3.5vw, 48px) 64px;
  display: flex; flex-direction: column; gap: 20px;
  flex: 1; min-width: 0;
}

/* Hero-bånd — dato + hurtighandlinger til venstre, hilsen til høyre */
.lp-hero2 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap; padding: 4px 0;
}
.lp-hero2-venstre { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-dato-sirkel {
  width: 74px; height: 74px; border-radius: 999px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--text);
}
.lp-dato-tekst {
  display: flex; flex-direction: column; line-height: 1.3;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  text-transform: capitalize;
}
.lp-dato-tekst span + span { color: var(--text-muted); font-weight: 500; }
.lp-hero2-skille { width: 1px; height: 42px; background: var(--border); margin: 0 10px; }
.lp-hero2-ikonknapp {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.lp-hero2-ikonknapp:hover {
  border-color: var(--line-soft);
  box-shadow: 0 4px 12px rgba(29,29,29,0.07);
  transform: translateY(-1px);
}
.lp-hero2-ikonknapp.stor { width: 56px; height: 56px; }
.lp-hero2-hilsen { display: flex; align-items: center; gap: 18px; margin-left: auto; text-align: right; }
.lp-hero2-tittel {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400; line-height: 1.04; margin: 0;
  letter-spacing: 0.02em; color: var(--text);
}
.lp-hero2-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05; letter-spacing: 0.02em;
  color: var(--text-muted);
}
.lp-hero-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Bento-rad — feature-kort (span 4) + fire KPI-kort (span 2) på 12 kolonner */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.lp-bento > .ev-stat-kort { grid-column: span 2; }
.lp-bento > .lp-b-feature { grid-column: span 4; }
.lp-b-feature { display: flex; flex-direction: column; text-decoration: none; }
a.lp-b-feature { transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s; }
a.lp-b-feature:hover {
  transform: translateY(-1px);
  border-color: var(--line-soft);
  box-shadow: 0 4px 14px rgba(29,29,29,0.07);
}
.lp-b-prikker { display: grid; grid-template-columns: repeat(14, 8px); gap: 5px; margin-top: 12px; }
.lp-b-prikk { width: 8px; height: 8px; border-radius: 999px; background: var(--border); }
.lp-b-prikk.fylt { background: var(--primary); }
.ev-stat-kort.tone-red .lp-b-prikk { background: rgba(255,255,255,0.18); }
.ev-stat-kort.tone-red .lp-b-prikk.fylt { background: var(--primary); }
.lp-b-cta { margin-top: auto; padding-top: 10px; font-weight: 600; }

/* Hovedområdet — seksjonskort venstre, «Mitt ansvar»/Møter som høyrespalte */
.lp-hoved {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}
.lp-hoved[data-layout="en-kolonne"] { grid-template-columns: minmax(0, 1fr); }
.lp-hoved-venstre { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lp-hoved-hoyre {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 16px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  min-width: 0;
}
.lp-hoved-hoyre .lp-kp-grid { grid-template-columns: 1fr; }

/* Seksjonskort — felles flate for alle bento-seksjonene */
.lp-kort {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.lp-kort .lp-ah-seksjon { border-top: none; padding: 0; margin-top: 0; }

.lp-sidebar-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: -4px;
}
.lp-sidebar-tom {
  padding: 18px; border: 1px dashed var(--line-soft);
  border-radius: 10px; text-align: center;
  color: var(--text-muted); font-size: 12px;
}
.lp-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 14px;
}
.lp-event-kort {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}
.lp-event-kort:hover {
  transform: translateY(-2px);
  border-color: var(--line-soft);
  box-shadow: 0 6px 18px rgba(29,29,29,0.07);
}
.lp-event-rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
}
.lp-event-topp {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.lp-event-navn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; line-height: 1; margin: 0;
  color: var(--text); letter-spacing: 0.02em; text-transform: uppercase;
}
.lp-event-pille {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
}
.lp-event-pille.live {
  background: var(--primary); color: #fff;
}
.lp-event-pille.live::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px;
  background: #fff; animation: ev-pulse-dot 1.4s ease-in-out infinite;
}
.lp-event-pille.kommende { background: rgba(59,130,246,0.12); color: #1D4ED8; }
.lp-event-pille.avsluttet { background: var(--border); color: var(--text-muted); }

.lp-event-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 11.5px; color: var(--ink-soft);
}
.lp-event-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
}
.lp-event-meta-item svg { stroke: var(--text-muted); flex-shrink: 0; }
.lp-event-pil {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--primary);
  opacity: 0; transition: opacity 0.15s, right 0.15s;
}
.lp-event-kort:hover .lp-event-pil { opacity: 1; right: 14px; }

.lp-tom-state {
  grid-column: 1 / -1;
  padding: 32px; text-align: center;
  color: var(--text-muted); font-size: 13px;
  border: 1px dashed var(--line-soft); border-radius: 12px;
  background: var(--surface);
}

.lp-seksjon-hdr {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.lp-seksjon-tittel {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.04em;
  color: var(--text); margin: 0;
}

.lp-kp-grupper {
  display: flex; flex-direction: column; gap: 14px;
}
.lp-kp-gruppe {
  display: flex; flex-direction: column; gap: 6px;
}
.lp-kp-gruppe-tittel {
  font-size: 11px; font-weight: 700;
  color: var(--text); letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}
.lp-kp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 8px;
}
.lp-kp-kort {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-kp-kort:hover { border-color: var(--line-soft); box-shadow: 0 4px 12px rgba(29,29,29,0.06); }
.lp-kp-info { flex: 1; min-width: 0; }
.lp-kp-navn {
  font-size: 12px; font-weight: 600;
  /* Tittelen får bryte over flere linjer i stedet for hard ellipsis —
     badgen på samme rad spiste bredden og ga «Oppstartsmøte S…». Kortet
     har i tillegg title-tooltip med full tittel. */
  overflow: hidden;
  display: flex; align-items: center; gap: 6px;
  line-height: 1.35; overflow-wrap: anywhere;
}
.lp-kp-navn svg { width: 13px; height: 13px; flex-shrink: 0; }
.lp-kp-meta {
  font-size: 10px; color: var(--text-muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-kp-badge {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(99,102,241,0.12); color: #6366F1;
  white-space: nowrap; flex-shrink: 0;
}
.lp-kp-badge.event {
  background: rgba(var(--st-ok-tint),0.12); color: var(--st-ok-tekst);
}
.lp-kp-badge.mote {
  background: rgba(139,92,246,0.14); color: #7c3aed;
}

.lp-mitt-arbeid-wrap {
  padding: 6px 0 0;
  flex: 1; min-height: 0;
}
.lp-mitt-arbeid-wrap .mitt-arbeid-header { padding: 0 0 8px; border: none; }

@media (max-width: 1500px) {
  .lp-hoved-venstre .lp-ah-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1280px) {
  /* NB: .lp-b-feature-regelen må stå ETTER .ev-stat-kort-regelen — feature-
     kortet har begge klassene og samme spesifisitet, så rekkefølgen avgjør. */
  .lp-bento > .ev-stat-kort { grid-column: span 3; }
  .lp-bento > .lp-b-feature { grid-column: span 6; }
  .lp-hoved { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1100px) {
  .lp-hoved { grid-template-columns: minmax(0, 1fr) !important; }
  .lp-hoved-hoyre { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 900px) {
  .lp-bento > .ev-stat-kort { grid-column: span 6; }
  .lp-bento > .lp-b-feature { grid-column: span 12; }
}
@media (max-width: 720px) {
  .lp-flate { padding: 18px 16px 56px; gap: 16px; }
  .lp-hero2-hilsen { margin-left: 0; text-align: left; }
  .lp-kort { padding: 14px; }
}

/* Topplinje */
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
  background: var(--bg-panel, #2A2A2A);
  flex-shrink: 0;
}
.landing-org-chip {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text, white);
  opacity: 0.8;
}
.landing-bruker-navn {
  font-size: 13px;
  color: var(--text-muted, #9CA3AF);
}
.landing-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(247,27,0,0.25);
  border: 1.5px solid rgba(247,27,0,0.5);
  color: var(--text, white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; cursor: default;
}
.landing-logg-ut-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  color: var(--text-muted, #9CA3AF);
  font-size: 12px; padding: 5px 12px; border-radius: 6px;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.landing-logg-ut-btn:hover { background: rgba(255,255,255,0.13); }

.landing-opprett-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: var(--primary, #F71B00);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(247,27,0,0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.landing-opprett-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(247,27,0,0.45);
  opacity: 0.92;
}
.landing-opprett-btn:active {
  transform: translateY(0);
}

.landing-settings-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  color: var(--text, white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.landing-settings-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--primary, #F71B00);
}
.landing-settings-btn.icon-only {
  padding: 0;
  width: 36px;
  height: 36px;
  gap: 0;
  justify-content: center;
  flex-shrink: 0;
}

/* Innholdsseksjon */
.landing-innhold {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.landing-header { text-align: center; }
.landing-tittel {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  color: var(--text, white);
  line-height: 1;
}
.landing-subtitle {
  font-size: 14px;
  color: var(--text-muted, #9CA3AF);
  margin: 0;
}

/* Event-kort */
.landing-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.landing-event-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px 22px;
  background: var(--bg-panel, #2A2A2A);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 16px;
  text-decoration: none;
  color: var(--text, white);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.landing-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border-color: var(--primary, #F71B00);
}
.landing-event-navn {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, white);
}
.landing-event-slug {
  font-size: 12px;
  color: var(--text-muted, #9CA3AF);
  font-family: monospace;
}
.landing-event-pil {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary, #F71B00);
  opacity: 0;
  transition: opacity 0.15s, right 0.15s;
}
.landing-event-card:hover .landing-event-pil {
  opacity: 1;
  right: 16px;
}

.landing-ingen-eventer {
  padding: 40px;
  text-align: center;
  color: var(--text-muted, #9CA3AF);
  font-size: 14px;
  background: var(--bg-panel, #2A2A2A);
  border: 1px dashed var(--border, rgba(255,255,255,0.1));
  border-radius: 16px;
  grid-column: 1 / -1;
}

/* Seksjonslabel (Arrangement / Kjøreplaner) */
.landing-seksjon-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #9CA3AF);
  margin-bottom: -16px;
}

/* Mitt arbeid på landingssiden — bruk samme kort som org-modalen */
.landing-mitt-arbeid {
  background: var(--bg-panel, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 12px;
  padding: 18px 20px;
}
.landing-mitt-arbeid .mitt-arbeid-seksjon { margin-bottom: 18px; }
.landing-mitt-arbeid .mitt-arbeid-seksjon:last-child { margin-bottom: 0; }
.mitt-arbeid-ikke-registrert {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 6px 0;
}

/* Kjøreplan-kort */
.landing-kp-seksjoner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.landing-kp-event-gruppe {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-kp-event-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  padding: 4px 2px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.landing-kp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.landing-kp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-panel, #2A2A2A);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  text-decoration: none;
  color: var(--text, white);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.landing-kp-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #F71B00);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.landing-kp-info { flex: 1; min-width: 0; }
.landing-kp-navn {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landing-kp-meta {
  font-size: 11px;
  color: var(--text-muted, #9CA3AF);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landing-kp-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  background: rgba(99,102,241,0.15);
  color: #818CF8;
  border: 1px solid rgba(99,102,241,0.25);
  flex-shrink: 0;
}
.landing-kp-type-badge.landing-kp-type-event {
  background: rgba(var(--st-ok-tint),0.12);
  color: #34D399;
  border-color: rgba(var(--st-ok-tint),0.25);
}

/* Sekundær opprett-knapp */
.landing-opprett-btn-sekundaer {
  background: transparent;
  border: 2px solid var(--border, rgba(255,255,255,0.2));
  color: var(--text-muted, #9CA3AF);
  box-shadow: none;
  font-size: 14px;
  padding: 12px 28px;
}
.landing-opprett-btn-sekundaer:hover {
  border-color: var(--primary, #F71B00);
  color: var(--text, white);
  box-shadow: none;
}

.landing-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary, #F71B00);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.landing-admin-btn:hover { opacity: 0.85; }

/* ============================================================
   DESIGN-KONFIGURATOR
   ============================================================ */
.design-panel {
  background: var(--bg-panel, #2A2A2A);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 16px;
  overflow: hidden;
}

.design-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  color: var(--text, white);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}
.design-panel-toggle {
  background: none; border: none;
  color: var(--text-muted, #9CA3AF);
  font-size: 13px; cursor: pointer; padding: 0;
}

#design-panel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.design-section { display: flex; flex-direction: column; gap: 10px; }
.design-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #9CA3AF);
}

.design-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.design-preset-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.1s;
}
.design-preset-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.design-preset-btn.active {
  box-shadow: 0 0 0 2px white;
}

.design-custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.design-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.15);
  padding: 8px 12px;
  border-radius: 8px;
}
.design-custom-row label {
  flex: 1;
  font-size: 13px;
  color: var(--text, white);
  white-space: nowrap;
}
.design-custom-row input[type="color"] {
  width: 32px; height: 32px;
  border: 2px solid var(--border, rgba(255,255,255,0.2));
  border-radius: 6px;
  padding: 2px; cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.dc-hex {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted, #9CA3AF);
  min-width: 52px;
}

.design-modus-row { display: flex; gap: 8px; }
.design-modus-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: 2px solid var(--border, rgba(255,255,255,0.15));
  background: rgba(0,0,0,0.15);
  color: var(--text-muted, #9CA3AF);
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.design-modus-btn.active {
  border-color: var(--primary, #F71B00);
  color: var(--text, white);
  background: rgba(247,27,0,0.1);
}
.design-modus-btn:hover:not(.active) {
  border-color: rgba(255,255,255,0.3);
  color: var(--text, white);
}

.design-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.design-lagre-btn {
  padding: 10px 24px;
  background: var(--primary, #F71B00);
  color: white; border: none;
  border-radius: 8px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.15s;
}
.design-lagre-btn:hover { opacity: 0.85; }
#design-lagre-status {
  font-size: 13px;
  color: var(--text-muted, #9CA3AF);
  transition: color 0.2s;
}

/* ==========================================
   ORG SETTINGS — INNSTILLINGER TAB (oset-)
   ========================================== */
.oset-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0 16px;
}
.oset-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.oset-card {
  background: var(--bg-panel, #2A2A2A);
  border: 1.5px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  overflow: hidden;
}
.oset-card-hdr {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}
.oset-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(128,128,128,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.oset-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.oset-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.oset-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.oset-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.oset-badge-ok {
  background: rgba(var(--st-ok-tint),0.12);
  color: #22c55e;
  border: 1px solid rgba(var(--st-ok-tint),0.25);
}
.oset-badge-off {
  background: rgba(156,163,175,0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.oset-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oset-ai-active {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #22c55e;
  background: rgba(var(--st-ok-tint),0.07);
  border: 1px solid rgba(var(--st-ok-tint),0.2);
  border-radius: 7px;
  padding: 7px 12px;
}
.oset-ai-active span { flex: 1; font-weight: 500; }
.oset-remove-btn {
  font-size: 11px !important;
  padding: 3px 10px !important;
  background: rgba(var(--st-feil-tint),0.1) !important;
  border: 1px solid rgba(var(--st-feil-tint),0.3) !important;
  border-radius: 5px !important;
  color: rgb(var(--st-feil-tint)) !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.oset-remove-btn:hover { background: rgba(var(--st-feil-tint),0.18) !important; }
.oset-ai-input-row { display: flex; gap: 8px; align-items: center; }
.oset-primary-btn {
  padding: 9px 16px !important;
  background: var(--primary) !important;
  border: none !important;
  border-radius: 8px !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.oset-primary-btn:hover { opacity: 0.85 !important; }
.oset-ai-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 8px 12px;
  background: rgba(128,128,128,0.05);
  border-radius: 7px;
  border: 1px solid var(--border);
}
.oset-subsection { display: flex; flex-direction: column; gap: 8px; }
.oset-subsection-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.oset-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.oset-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(128,128,128,0.06);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 6px 8px;
  transition: border-color 0.15s;
}
.oset-color-swatch:hover { border-color: rgba(128,128,128,0.35); }
.oset-color-swatch input[type="color"] {
  width: 34px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.oset-color-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.oset-color-swatch .dc-hex {
  font-size: 9px;
  font-family: monospace;
  color: var(--text-muted);
  opacity: 0.7;
}
.oset-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
@media (max-width: 680px) {
  .oset-2col { grid-template-columns: 1fr; }
  .oset-color-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Lys modus-overrides for body */
body.light-mode {
  background: var(--bg, #F3F4F6);
  color: var(--text, #111827);
}
body.light-mode .landing-topbar {
  background: var(--bg-panel, #FFFFFF);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
body.light-mode .landing-event-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.light-mode .design-custom-row {
  background: rgba(0,0,0,0.04);
}
body.light-mode .design-modus-btn {
  background: rgba(0,0,0,0.04);
}
body.light-mode .design-preset-btn.active {
  box-shadow: 0 0 0 2px #111827;
}

/* ─── LIVE SYSTEM — broadcast-konsoll, dark-room readability ─ */
.live-header {
  display:flex;align-items:center;gap:18px;
  padding:18px 28px;border-bottom:1px solid rgba(255,255,255,0.10);
  flex-shrink:0;background:#0E0E12;
}
.live-header-left { display:flex;align-items:center;gap:14px;flex:1; }
.live-dot-aktiv {
  display:inline-flex;align-items:center;justify-content:center;
  height:26px;padding:0 11px;border-radius:5px;
  background:#DC2626;color:#fff;
  font-size:11px;font-weight:900;letter-spacing:0.16em;
  font-family:'Bebas Neue', sans-serif;
  box-shadow:0 0 14px rgba(220,38,38,0.55), inset 0 -2px 0 rgba(0,0,0,0.25);
  animation:livepulse 2.4s ease-in-out infinite;flex-shrink:0;
}
.live-dot-aktiv::before { content:'LIVE'; }
@keyframes livepulse {
  0%,100%{ box-shadow:0 0 14px rgba(220,38,38,0.55), inset 0 -2px 0 rgba(0,0,0,0.25); }
  50%    { box-shadow:0 0 22px rgba(220,38,38,0.95), 0 0 38px rgba(220,38,38,0.35), inset 0 -2px 0 rgba(0,0,0,0.25); }
}
.live-header-tittel {
  font-size:20px;font-weight:700;color:#fff;letter-spacing:-0.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.live-header-lukk {
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.14);
  color:rgba(255,255,255,0.85);font-size:14px;font-weight:600;
  padding:9px 15px;border-radius:8px;cursor:pointer;
  transition:background 0.12s, border-color 0.12s;
}
.live-header-lukk:hover { background:rgba(255,255,255,0.12);color:#fff;border-color:rgba(255,255,255,0.25); }

.live-split { display:grid;grid-template-columns:38% 38% 24%;height:100%;overflow:hidden; }
.live-venstre {
  border-right:1px solid rgba(255,255,255,0.08);
  background:#0A0A0E;display:flex;flex-direction:column;overflow:hidden;padding:22px;
}
.live-midt {
  overflow-y:auto;padding:24px;
  background:#0E0E12;display:flex;flex-direction:column;gap:18px;
  border-right:1px solid rgba(255,255,255,0.08);
}
.live-panel-tittel {
  font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:0.10em;
  color:rgba(255,255,255,0.5);margin-bottom:14px;
}
.live-liste { flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:6px; }
/* Legende — kort forklaring av handlinger over listen */
.live-legende {
  display:flex;flex-direction:column;gap:5px;
  padding:10px 12px;margin:0 0 12px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:9px;
  font-size:11.5px;color:rgba(255,255,255,0.65);line-height:1.45;
}
.live-legende-rad { display:flex;align-items:center;gap:9px; }
.live-legende-tag {
  flex-shrink:0;font-size:10.5px;font-weight:800;
  padding:3px 8px;border-radius:4px;letter-spacing:0.04em;
  text-transform:uppercase;font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.live-legende-tag-plan {
  background:rgba(var(--st-obs-tint),0.13);color:#FCD34D;
  border:1px solid rgba(var(--st-obs-tint),0.40);
}
.live-legende-tag-overtid {
  background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.85);
  border:1px solid rgba(255,255,255,0.18);
}
.live-legende-tag-auto {
  background:rgba(99,102,241,0.16);color:#A5B4FC;
  border:1px solid rgba(99,102,241,0.45);
}
.live-fase-header {
  position:relative;
  font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:0.14em;
  color:rgba(255,255,255,0.85);
  padding:14px 0 8px 14px;margin-top:8px;
}
.live-fase-header:first-child { margin-top:0; }
.live-fase-header::before {
  content:'';position:absolute;left:0;top:14px;bottom:8px;width:3px;border-radius:2px;
  background:rgba(255,255,255,0.3);
}
/* Color-coded faser */
.live-fase-header[data-fase="Før"]::before,
.live-fase-header:nth-of-type(1):not([data-fase])::before  { background:#3B82F6; box-shadow:0 0 10px rgba(59,130,246,0.5); }
.live-fase-header[data-fase="Under"]::before { background:#10B981; box-shadow:0 0 10px rgba(var(--st-ok-tint),0.5); }
.live-fase-header[data-fase="Etter"]::before { background:#A855F7; box-shadow:0 0 10px rgba(168,85,247,0.5); }
/* Match labels by text content (no data-fase attribute set yet) — use generic colored bar */
.live-item {
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;border-radius:10px;cursor:pointer;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.025);
  transition:background 0.12s, border-color 0.12s, transform 0.08s;
}
.live-item:hover { background:rgba(255,255,255,0.07);border-color:rgba(255,255,255,0.16); }
.live-item:active { transform:scale(0.998); }
.live-item-aktiv {
  background:linear-gradient(180deg,rgba(var(--st-ok-tint),0.18) 0%,rgba(var(--st-ok-tint),0.10) 100%) !important;
  border-color:rgba(var(--st-ok-tint),0.55) !important;
  box-shadow:0 0 0 1px rgba(var(--st-ok-tint),0.25), 0 0 22px rgba(var(--st-ok-tint),0.20);
}
.live-item-valgt {
  background:rgba(99,102,241,0.14) !important;
  border-color:rgba(99,102,241,0.50) !important;
  box-shadow:0 0 0 1px rgba(99,102,241,0.20);
}
.live-overflow-aktiv {
  background:rgba(247,27,0,0.15) !important;
  color:#F87171 !important;
  border-color:rgba(247,27,0,0.4) !important;
}
.live-overflow-toggle { font-size:13px;padding:3px 6px; }
.live-item.dragging { opacity:0.4; }
.live-item { position: relative; }
.live-item.drag-over-top::before,
.live-item.drag-over-bottom::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: #6366F1;
  border-radius: 2px;
  z-index: 10;
}
.live-item.drag-over-top::before  { top: -2px; }
.live-item.drag-over-bottom::after { bottom: -2px; }
.live-item-indikator { font-size:16px;color:#10B981;flex-shrink:0;width:18px;text-align:center; }
.live-item-aktiv .live-item-indikator { color:#34D399; text-shadow:0 0 8px rgba(var(--st-ok-tint),0.6); }
.live-item-info { flex:1;min-width:0; }
.live-item-tittel { font-size:16px;font-weight:700;color:#fff;line-height:1.3;letter-spacing:-0.005em; }
.live-item-var { font-size:13px;color:rgba(255,255,255,0.55);margin-top:4px;font-variant-numeric:tabular-nums;letter-spacing:0.02em; }
.live-item-var-running { display:flex;align-items:baseline;gap:10px;margin-top:5px; }
.live-item-scheduled-badge {
  font-size:12px;font-weight:800;color:var(--amber);
  background:rgba(var(--st-obs-tint),0.10);
  border:1px solid rgba(var(--st-obs-tint),0.45);
  border-radius:5px;padding:2px 8px;letter-spacing:0.04em;
  text-transform:uppercase;
  font-variant-numeric:tabular-nums;
}
.live-item-avbryt-plan {
  background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.10);
  color:rgba(255,255,255,0.55);font-size:11px;cursor:pointer;padding:3px 7px;border-radius:4px;line-height:1;
  transition:background 0.12s, color 0.12s, border-color 0.12s;
}
.live-item-avbryt-plan:hover { color:#FCA5A5;background:rgba(var(--st-feil-tint),0.15);border-color:rgba(var(--st-feil-tint),0.4); }
.live-item-running-timer {
  font-size:28px;font-weight:900;letter-spacing:-0.04em;
  font-variant-numeric:tabular-nums;line-height:1;
  text-shadow:0 0 12px currentColor;
}
.live-item-var-av { font-size:12px;color:rgba(255,255,255,0.4); }
.live-ingen { color:rgba(255,255,255,0.4);font-size:14px;padding:32px 0;text-align:center; }

.live-hoyre {
  overflow-y:auto;padding:22px;
  background:#0A0A0E;display:flex;flex-direction:column;gap:18px;
}
.live-aktiv-bar {
  position:relative;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  background:linear-gradient(180deg,#15171F 0%,#0F1116 100%);
  border:1px solid rgba(var(--st-ok-tint),0.35);
  border-radius:14px;padding:18px 22px;flex-shrink:0;
  box-shadow:0 0 0 1px rgba(var(--st-ok-tint),0.10), 0 0 32px rgba(var(--st-ok-tint),0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}
.live-aktiv-bar-tom {
  border-color:rgba(255,255,255,0.10);
  box-shadow:none;background:rgba(255,255,255,0.02);
  opacity:0.6;
}
.live-aktiv-bar-venstre { display:flex;flex-direction:column;gap:6px;min-width:0;flex:1; }
.live-aktiv-bar-tittel {
  font-size:24px;font-weight:800;color:#fff;letter-spacing:-0.015em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.15;
}
.live-aktiv-bar-cue {
  font-size:13px;color:rgba(255,255,255,0.55);
  font-variant-numeric:tabular-nums;letter-spacing:0.02em;
  text-transform:uppercase;font-weight:600;
}
.live-aktiv-bar-timer {
  font-size:clamp(48px, 6vw, 72px);
  font-weight:900;letter-spacing:-0.04em;
  font-variant-numeric:tabular-nums;line-height:1;flex-shrink:0;
  transition:color 0.3s, text-shadow 0.3s;
  text-shadow:0 0 24px currentColor;
  font-feature-settings:'tnum' 1, 'ss01' 1;
}
.live-aktiv-bar-ingen { font-size:15px;color:rgba(255,255,255,0.45);font-weight:600; }

.live-venstre-header {
  display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:14px;
}
.live-klokke {
  font-family:'Bebas Neue', sans-serif;font-size:36px;font-weight:700;
  color:#fff;letter-spacing:0.06em;font-variant-numeric:tabular-nums;
  flex-shrink:0;line-height:1;
  text-shadow:0 0 18px rgba(255,255,255,0.18);
}
.live-footer-rad {
  display:flex;flex-direction:column;gap:8px;
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:14px;margin-top:10px;flex-shrink:0;
}
.live-total-rad { display:flex;justify-content:space-between;align-items:baseline; }
.live-total-label { font-size:11px;font-weight:700;color:rgba(255,255,255,0.45);text-transform:uppercase;letter-spacing:0.10em; }
.live-total-tid { font-size:15px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums;letter-spacing:0.01em; }

.live-kontroll-btns { display:flex;gap:10px;justify-content:center;flex-wrap:wrap; }
.live-btn {
  font-size:15px;font-weight:800;padding:13px 24px;border-radius:10px;
  cursor:pointer;border:1.5px solid transparent;transition:all 0.12s;
  white-space:nowrap;letter-spacing:0.01em;
  min-height:44px;display:inline-flex;align-items:center;justify-content:center;
}
.live-btn:active:not(:disabled) { transform:scale(0.98); }
.live-btn:disabled { opacity:0.30;cursor:not-allowed; }
.live-btn-start {
  background:linear-gradient(180deg,#10B981 0%,#059669 100%);color:#fff;
  box-shadow:0 0 0 1px rgba(var(--st-ok-tint),0.4), 0 4px 18px rgba(var(--st-ok-tint),0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.live-btn-start:hover:not(:disabled) { background:linear-gradient(180deg,#059669 0%,var(--st-ok-tekst) 100%); }
.live-btn-pause { background:rgba(var(--st-obs-tint),0.14);color:#FCD34D;border-color:rgba(var(--st-obs-tint),0.50); }
.live-btn-pause:hover:not(:disabled) { background:rgba(var(--st-obs-tint),0.24); }
.live-btn-neste { background:rgba(99,102,241,0.16);color:#A5B4FC;border-color:rgba(99,102,241,0.45); }
.live-btn-neste:hover:not(:disabled) { background:rgba(99,102,241,0.26); }
.live-btn-stopp { background:rgba(var(--st-feil-tint),0.10);color:#FCA5A5;border-color:rgba(var(--st-feil-tint),0.40); }
.live-btn-stopp:hover:not(:disabled) { background:rgba(var(--st-feil-tint),0.22); }
.live-btn-send { background:linear-gradient(180deg,#F71B00 0%,#CC1500 100%);color:#fff;border:none;box-shadow:0 4px 16px rgba(247,27,0,0.35); }
.live-btn-send:hover { background:linear-gradient(180deg,#CC1500 0%,#A21000 100%); }
.live-btn-fjern { background:rgba(255,255,255,0.05);color:rgba(255,255,255,0.7);border-color:rgba(255,255,255,0.12); }
.live-btn-fjern:hover { background:rgba(255,255,255,0.12);color:#fff; }
.live-btn-avslutt {
  background:rgba(var(--st-feil-tint),0.12);color:#FCA5A5;
  border:1px solid rgba(var(--st-feil-tint),0.40);
  font-size:14px;font-weight:700;padding:9px 18px;border-radius:8px;cursor:pointer;
  transition:background 0.12s;letter-spacing:0.02em;
}
.live-btn-avslutt:hover { background:rgba(var(--st-feil-tint),0.24);border-color:rgba(var(--st-feil-tint),0.6); }

.live-divider { height:1px;background:rgba(255,255,255,0.11); }

.live-seksjon-label { font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:#94A3B8;margin-bottom:10px; }
.live-melding-seksjon { display:flex;flex-direction:column; }
.live-melding-input {
  width:100%;box-sizing:border-box;background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.16);border-radius:8px;
  color:white;font-family:inherit;font-size:13px;padding:10px 12px;resize:none;outline:none;
}
.live-melding-input:focus { border-color:rgba(247,27,0,0.5); }
.live-melding-input::placeholder { color:#64748B; }

.live-url-seksjon { display:flex;flex-direction:column;gap:8px; }
.live-url-rad { display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);border-radius:8px;padding:8px 12px; }
.live-url-label { font-size:11px;font-weight:700;color:#64748B;width:60px;flex-shrink:0; }
.live-url-tekst { flex:1;font-size:11px;color:#94A3B8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:monospace; }
.live-url-btn { background:rgba(255,255,255,0.09);border:1px solid rgba(255,255,255,0.16);color:#94A3B8;font-size:11px;font-weight:600;padding:4px 10px;border-radius:5px;cursor:pointer;flex-shrink:0;white-space:nowrap; }
.live-url-btn:hover { background:rgba(255,255,255,0.18);color:white; }

/* Juster-tid knapper — større hit-target, tydeligere fargesignal */
.live-juster-seksjon { background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:14px; }
.live-juster-btn {
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.14);
  color:rgba(255,255,255,0.85);font-size:14px;font-weight:800;
  padding:10px 14px;border-radius:8px;cursor:pointer;flex:1;
  transition:all 0.1s;font-variant-numeric:tabular-nums;letter-spacing:0.01em;
  min-height:40px;
}
.live-juster-btn:hover { background:rgba(var(--st-feil-tint),0.18);color:#FCA5A5;border-color:rgba(var(--st-feil-tint),0.45); }
.live-juster-btn:active { transform:scale(0.97); }
.live-juster-pluss { }
.live-juster-pluss:hover { background:rgba(var(--st-ok-tint),0.18) !important;color:#6EE7B7 !important;border-color:rgba(var(--st-ok-tint),0.45) !important; }

/* Live-inspektor: full feltredigering i midtkolonnen */
.live-inspektor {
  background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;overflow:hidden;display:flex;flex-direction:column;
}
.live-inspektor-header {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 16px;background:rgba(255,255,255,0.035);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.live-inspektor-header-tittel {
  font-size:14px;font-weight:800;color:#fff;letter-spacing:-0.005em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.live-inspektor-form {
  padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;
}
.live-inspektor-rad { display:flex;flex-direction:column;gap:5px; }
.live-inspektor-rad.span2 { grid-column:1/-1; }
.live-inspektor-label {
  font-size:11px;font-weight:800;color:rgba(255,255,255,0.55);
  text-transform:uppercase;letter-spacing:0.10em;
}
.live-inspektor-input {
  background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.12);
  border-radius:7px;color:#fff;font-size:14px;font-family:inherit;
  padding:9px 12px;outline:none;width:100%;box-sizing:border-box;
  transition:border-color 0.12s, background 0.12s;
}
.live-inspektor-input:focus {
  border-color:rgba(99,102,241,0.6);background:rgba(99,102,241,0.08);
  box-shadow:0 0 0 3px rgba(99,102,241,0.18);
}
textarea.live-inspektor-input { resize:vertical;min-height:54px;line-height:1.5; }
select.live-inspektor-input { cursor:pointer; }
.live-inspektor-deler {
  grid-column:1/-1;font-size:11px;font-weight:800;color:rgba(255,255,255,0.55);
  text-transform:uppercase;letter-spacing:0.10em;
  border-top:1px solid rgba(255,255,255,0.06);padding-top:10px;margin-top:4px;
}
.live-inspektor-lagre {
  grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:6px;gap:10px;
}
.live-inspektor-lagre-btn {
  background:linear-gradient(180deg,#10B981 0%,#059669 100%);
  border:none;color:#fff;font-size:14px;font-weight:800;
  padding:11px 26px;border-radius:8px;cursor:pointer;font-family:inherit;
  box-shadow:0 4px 14px rgba(var(--st-ok-tint),0.30);
  transition:transform 0.06s, box-shadow 0.12s;
}
.live-inspektor-lagre-btn:hover { background:linear-gradient(180deg,#059669 0%,var(--st-ok-tekst) 100%); }
.live-inspektor-lagre-btn:active { transform:scale(0.97); }
.live-inspektor-tom {
  color:rgba(255,255,255,0.45);font-size:14px;text-align:center;padding:36px 18px;line-height:1.6;
}

/* Meldingseksjon */
.live-meld-monitor-rad {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;padding:10px 14px;margin-bottom:10px;
}
.live-meld-monitor-rad.har-melding {
  background:rgba(247,27,0,0.1);border-color:rgba(247,27,0,0.35);
}
.live-meld-monitor-info { display:flex;flex-direction:column;gap:2px;min-width:0;flex:1; }
.live-meld-monitor-label { font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:#475569; }
.live-meld-monitor-rad.har-melding .live-meld-monitor-label { color:#F87171; }
.live-meld-monitor-tekst { font-size:13px;font-weight:600;color:#94A3B8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.live-meld-monitor-rad.har-melding .live-meld-monitor-tekst { color:white; }
.live-meld-fjern-btn {
  background:rgba(var(--st-feil-tint),0.12);border:1px solid rgba(var(--st-feil-tint),0.3);color:#F87171;
  font-size:12px;font-weight:700;padding:6px 12px;border-radius:7px;cursor:pointer;
  font-family:inherit;flex-shrink:0;white-space:nowrap;
}
.live-meld-fjern-btn:hover:not(:disabled) { background:rgba(var(--st-feil-tint),0.25);border-color:rgba(var(--st-feil-tint),0.5); }
.live-meld-fjern-btn:disabled { opacity:0.3;cursor:not-allowed; }

.live-meld-liste { display:flex;flex-direction:column;gap:5px;margin-bottom:8px; }
.live-meld-rad {
  display:flex;align-items:center;gap:5px;
  background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;padding:5px 8px;
}
.live-meld-rad.aktiv { background:rgba(var(--st-ok-tint),0.08);border-color:rgba(var(--st-ok-tint),0.35); }
.live-meld-rad-input {
  flex:1;background:transparent;border:none;color:white;font-size:13px;
  font-family:inherit;padding:3px 4px;outline:none;min-width:0;
}
.live-meld-rad-input::placeholder { color:#475569; }
.live-meld-rad.aktiv .live-meld-rad-input { color:#6EE7B7; }
.live-meld-send-btn {
  background:rgba(247,27,0,0.15);border:1px solid rgba(247,27,0,0.35);color:#F87171;
  font-size:11px;font-weight:700;padding:4px 9px;border-radius:5px;cursor:pointer;
  font-family:inherit;flex-shrink:0;white-space:nowrap;
}
.live-meld-send-btn.aktiv { background:rgba(var(--st-ok-tint),0.15);border-color:rgba(var(--st-ok-tint),0.4);color:#10B981; }
.live-meld-send-btn:hover { background:rgba(247,27,0,0.3);color:white; }
.live-meld-send-btn.aktiv:hover { background:rgba(var(--st-ok-tint),0.3);color:white; }
.live-meld-slett-btn {
  background:none;border:none;color:rgba(255,255,255,0.25);font-size:12px;
  padding:4px 6px;cursor:pointer;border-radius:4px;flex-shrink:0;
}
.live-meld-slett-btn:hover { color:rgb(var(--st-feil-tint));background:rgba(var(--st-feil-tint),0.12); }

.live-meld-ny-rad {
  display:flex;align-items:center;gap:5px;
  border-top:1px solid rgba(255,255,255,0.09);padding-top:8px;margin-top:4px;
}
.live-meld-ny-input {
  flex:1;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);
  border-radius:7px;color:white;font-size:13px;font-family:inherit;
  padding:7px 10px;outline:none;min-width:0;
}
.live-meld-ny-input:focus { border-color:rgba(247,27,0,0.45);background:rgba(247,27,0,0.06); }
.live-meld-ny-input::placeholder { color:#475569; }
.live-meld-ny-lagre {
  background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.14);color:#94A3B8;
  font-size:12px;font-weight:600;padding:6px 10px;border-radius:6px;cursor:pointer;font-family:inherit;flex-shrink:0;
}
.live-meld-ny-lagre:hover { color:white;background:rgba(255,255,255,0.14); }
.live-meld-ny-send {
  background:#F71B00;border:none;color:white;font-size:12px;font-weight:700;
  padding:6px 12px;border-radius:6px;cursor:pointer;font-family:inherit;flex-shrink:0;
}
.live-meld-ny-send:hover { opacity:0.85; }

/* (kept for compat) */
.live-meld-bibliotek { display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,0.09); }
.live-meld-chip {
  display:flex;align-items:stretch;
  background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.13);
  border-radius:6px;overflow:hidden;transition:all 0.1s;
}
.live-meld-chip.aktiv { background:rgba(var(--st-ok-tint),0.12) !important;border-color:rgba(var(--st-ok-tint),0.4) !important; }
.live-meld-chip:hover { border-color:rgba(255,255,255,0.28); }
.live-meld-chip-btn {
  padding:5px 10px;font-size:12px;font-weight:500;color:rgba(255,255,255,0.75);
  background:transparent;border:none;cursor:pointer;font-family:inherit;
  max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.live-meld-chip.aktiv .live-meld-chip-btn { color:#10B981;font-weight:700; }
.live-meld-chip-btn:hover { color:white; }
.live-meld-chip-slett {
  padding:4px 7px;font-size:10px;color:rgba(255,255,255,0.3);
  background:transparent;border:none;border-left:1px solid rgba(255,255,255,0.1);
  cursor:pointer;flex-shrink:0;line-height:1;
}
.live-meld-chip-slett:hover { color:rgb(var(--st-feil-tint));background:rgba(var(--st-feil-tint),0.12); }

/* Mini monitor preview */
.live-mini-monitor {
  background:#0D1521;border:1px solid rgba(255,255,255,0.14);
  border-radius:10px;overflow:hidden;flex-shrink:0;
}
.live-mini-mon-topbar {
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 10px;background:rgba(255,255,255,0.04);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.live-mini-mon-label { font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:0.12em;color:#64748B; }
.live-mini-mon-dot { width:7px;height:7px;border-radius:50%;background:#10B981;box-shadow:0 0 6px #10B981;animation:livepulse 2s ease-in-out infinite; }
.live-mini-mon-dot.inaktiv { background:#475569;box-shadow:none;animation:none; }
.live-mini-mon-skjerm {
  padding:12px 14px;text-align:center;min-height:72px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
}
.live-mini-mon-artist { font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--amber);margin-bottom:2px; }
.live-mini-mon-naa-label { font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:#475569; }
.live-mini-mon-item-tittel { font-size:13px;font-weight:700;color:white;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.live-mini-mon-timer { font-size:30px;font-weight:900;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;line-height:1; }
.live-mini-mon-venter { font-size:12px;color:#475569; }
.live-mini-mon-meld {
  font-size:10px;color:#F87171;font-weight:600;background:rgba(247,27,0,0.12);
  border-radius:4px;padding:3px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;
}
.live-mini-mon-neste {
  padding:6px 10px;font-size:10px;color:#94A3B8;
  border-top:1px solid rgba(255,255,255,0.07);
  display:flex;align-items:center;gap:6px;
  white-space:nowrap;overflow:hidden;
}

/* Inline edit form i live-listen */
.live-item-editmod { cursor:default;flex-wrap:wrap;align-items:flex-start; }
.live-item-edit-form { width:100%;display:flex;flex-direction:column;gap:7px;padding:2px 0; }
.live-item-edit-row { display:flex;align-items:center;gap:7px; }
.live-item-edit-label { font-size:10px;font-weight:700;color:#94A3B8;text-transform:uppercase;letter-spacing:0.07em;min-width:72px;flex-shrink:0; }
.live-item-edit-input {
  flex:1;background:rgba(255,255,255,0.09);border:1px solid rgba(255,255,255,0.18);
  border-radius:6px;color:white;font-size:12px;font-family:inherit;
  padding:5px 9px;outline:none;
}
.live-item-edit-input:focus { border-color:rgba(99,102,241,0.55);background:rgba(99,102,241,0.08); }
.live-item-edit-actions { display:flex;gap:5px;margin-top:2px;justify-content:flex-end; }
.live-item-edit-save { background:#10B981;border:none;color:white;font-size:11px;font-weight:700;padding:5px 13px;border-radius:5px;cursor:pointer;font-family:inherit; }
.live-item-edit-save:hover { background:#0ea274; }
.live-item-edit-cancel { background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.14);color:#94A3B8;font-size:11px;padding:5px 10px;border-radius:5px;cursor:pointer;font-family:inherit; }
.live-item-edit-btn { background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.14);color:#94A3B8;font-size:12px;font-weight:600;padding:5px 10px;border-radius:6px;cursor:pointer;flex-shrink:0; }
.live-item-edit-btn:hover { color:white;background:rgba(255,255,255,0.15);border-color:rgba(255,255,255,0.3); }
.live-item-plan-btn { display:none; }
.live-item:hover .live-item-plan-btn { display:inline-flex; }

/* FOH detalje-panel */
.live-detaljer-panel {
  background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;
}
.live-detalj-rad { display:flex;gap:10px;align-items:baseline; }
.live-detalj-key { font-size:11px;font-weight:700;color:#64748B;white-space:nowrap;min-width:110px;flex-shrink:0; }
.live-detalj-val { font-size:13px;color:#CBD5E1;line-height:1.35; }

/* Planlagt start per item — alltid synlig, ingen hover-å-avsløre i live-bruk */
.live-item-actions { display:flex;align-items:center;gap:6px;flex-shrink:0; }
.live-item-btn {
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.85);
  font-size:13px;font-weight:600;
  padding:7px 12px;border-radius:7px;
  cursor:pointer;font-family:inherit;
  transition:background 0.12s, border-color 0.12s, color 0.12s, transform 0.06s;
  min-height:32px;display:inline-flex;align-items:center;
}
.live-item-btn:hover { background:rgba(255,255,255,0.12);color:#fff;border-color:rgba(255,255,255,0.28); }
.live-item-btn:active { transform:scale(0.97); }
.live-overflow-toggle.live-overflow-aktiv {
  background:rgba(99,102,241,0.18);color:#A5B4FC;
  border-color:rgba(99,102,241,0.5);
  box-shadow:0 0 12px rgba(99,102,241,0.20);
}
.live-schedule-time {
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  color:#fff;font-size:13px;font-weight:700;
  padding:6px 8px;border-radius:6px;
  width:88px;cursor:pointer;
  font-variant-numeric:tabular-nums;
  font-family:'SF Mono','JetBrains Mono',Consolas,monospace;
  display:inline-block; /* var hidden — nå alltid synlig */
}
.live-schedule-time:hover { border-color:rgba(255,255,255,0.28);background:rgba(255,255,255,0.10); }
.live-schedule-time:focus { outline:none;border-color:var(--amber);box-shadow:0 0 0 3px rgba(var(--st-obs-tint),0.2); }
/* Plan-knappen (siste <button> i .live-item-actions) skal alltid være synlig */
.live-item-actions > button:last-child { display:inline-flex; }
.live-schedule-time:focus { outline:none;border-color:rgba(var(--st-obs-tint),0.4);color:var(--amber); }

/* Live button in kjøreplan panel */
.live-start-btn, .live-monitor-btn, .kp-monitor-btn {
  font-size:12px;font-weight:700;padding:5px 12px;border-radius:7px;cursor:pointer;
  background:rgba(var(--st-ok-tint),0.12);color:#10B981;
  border:1.5px solid rgba(var(--st-ok-tint),0.3);
  transition:all 0.12s;white-space:nowrap;
}
.live-start-btn:hover, .live-monitor-btn:hover, .kp-monitor-btn:hover { background:rgba(var(--st-ok-tint),0.22); }
/* Skill Monitor visuelt fra Live: blå-tone */
.live-monitor-btn, .kp-monitor-btn {
  background:rgba(59,130,246,0.10);
  color:var(--accent);
  border-color:rgba(59,130,246,0.35);
}
.live-monitor-btn:hover, .kp-monitor-btn:hover { background:rgba(59,130,246,0.20); }


/* ─── ENDRINGSLOGG-PANEL («Historikk») ──────────────────────
   Token-basert drawer fra høyre (2026-08-08): --surface-flate med
   Bebas-tittel + mono-tellerchip, dag-grupper med eyebrow-header
   (program-fanens mønster), SVG-ikonbadges og den delte avatar-
   identiteten (personFarge/initialer). Radene bygges i _loggRadHTML
   (app-event.js); mørk modus følger tokens. */
#logg-panel {
  display: none;
  position: fixed; top: 0; right: 0;
  width: 400px; max-width: calc(100vw - 24px);
  height: 100dvh;
  z-index: 6000; /* matcher gammel stabling over timeline-headeren */
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 48px -12px rgba(29,29,29,0.28);
}
.logg-hode {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 13px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.logg-tittel {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: .06em; line-height: 1;
  color: var(--text);
}
.logg-antall {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted); background: var(--bg2);
  border-radius: 999px; padding: 3px 9px;
}
.logg-lukk { margin-left: auto; }
#logg-innhold { flex: 1; overflow-y: auto; padding-bottom: 20px; }

/* Dag-gruppe: eyebrow + hårlinje + antall */
.logg-dag {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.logg-dag-strek { flex: 1; height: 1px; background: var(--border); }

.logg-rad {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 20px;
  transition: background 0.12s;
}
.logg-rad:hover { background: color-mix(in srgb, var(--bg2) 55%, transparent); }
.logg-rad-angret { opacity: 0.5; }
.logg-ikon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2); color: var(--text-muted);
  margin-top: 1px;
}
.logg-ikon svg { display: block; }
.logg-ikon--ny    { background: rgba(var(--st-ok-tint), 0.13);   color: var(--st-ok-tekst); }
.logg-ikon--slett { background: rgba(var(--st-feil-tint), 0.12); color: var(--st-feil-tekst); }
.logg-info { flex: 1; min-width: 0; }
.logg-beskriv { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.45; word-break: break-word; }
.logg-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 4px; font-size: 11.5px; font-weight: 500; color: var(--text-muted);
}
.logg-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  color: #fff; font-size: 9px; font-weight: 700;
}
.logg-tid { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
.logg-angret-chip {
  background: var(--bg2); color: var(--text-muted);
  border-radius: 5px; padding: 2px 6px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.logg-angre-btn { flex-shrink: 0; margin-top: 3px; white-space: nowrap; }
.logg-angre-btn:disabled { opacity: 0.45; cursor: default; }
.logg-tom { padding: 64px 24px; text-align: center; font-size: 13px; line-height: 1.6; }

/* Skjelett under lasting */
.logg-skel { display: flex; gap: 11px; padding: 14px 20px 12px; }
.logg-skel-ikon { width: 28px; height: 28px; border-radius: 8px; background: var(--bg2); flex-shrink: 0; }
.logg-skel-linjer { flex: 1; padding-top: 2px; display: flex; flex-direction: column; gap: 7px; }
.logg-skel-linje { height: 11px; border-radius: 5px; background: var(--bg2); }

@media (prefers-reduced-motion: no-preference) {
  #logg-panel { animation: loggPanelInn var(--anim-tid-panel, .4s) var(--anim-kurve, ease) both; }
  /* Skjelett-puls er ambient tempo — skalerer bevisst ikke med --anim-nivaa */
  .logg-skel { animation: loggSkelPuls 1.1s ease-in-out infinite alternate; }
}
@keyframes loggPanelInn {
  from { transform: translateX(var(--anim-avstand, 16px)); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes loggSkelPuls { from { opacity: 1; } to { opacity: 0.45; } }

