/* © 2026 Ole Stephensen. Alle rettigheter forbeholdt. Se LICENSE.txt. */
:root {
  --border: #dfe6f3;
  --bg: #f1f5fc;
  --card-bg: #ffffff;
  --text: #1a2233;
  --muted: #66728a;
  --accent: var(--accent);
  --accent-dark: var(--accent-dark);
  --danger: #e6493b;
  --success: #1fa971;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,0.04), 0 6px 16px rgba(16,24,40,0.06);
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.08);

  --zone1: #4F8FE8; --zone1-bg: #EAF2FD;
  --zone2: #21B3A4; --zone2-bg: #E3F8F5;
  --zone3: #F0B429; --zone3-bg: #FDF3DC;
  --zone4: #F2793A; --zone4-bg: #FDEAE0;
  --zone5: #E6493B; --zone5-bg: #FBE4E2;

  --lt1: #1FA971; --lt1-bg: #E7F8F0;
  --lt2: #E6493B; --lt2-bg: #FDEBEA;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 20px 70px;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card .form-grid { grid-template-columns: 1fr; gap: 12px; }
.auth-feedback { min-height: 1.2em; font-size: 0.85rem; margin: 4px 0 0; }
.auth-error { color: var(--danger); }
.auth-info { color: var(--success); }

h1 { font-size: 1.55rem; margin: 0.4em 0; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0.2em 0 0.7em; font-weight: 650; letter-spacing: -0.005em; }
h3 { font-size: 0.95rem; margin: 0.6em 0 0.3em; font-weight: 650; }

.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}

.brand { font-weight: 700; margin-right: 8px; letter-spacing: -0.01em; }

.tabs { display: flex; gap: 2px; flex-wrap: wrap; background: #eef1f6; padding: 3px; border-radius: 10px; }

.tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: white; color: var(--text); box-shadow: var(--shadow-sm); }

.nav-actions { margin-left: auto; display: flex; gap: 8px; }

.import-btn {
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  background: white;
}

button {
  border: 1px solid var(--border);
  background: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 550;
  margin: 2px 4px 2px 0;
  color: var(--text);
  transition: background 0.15s, box-shadow 0.15s;
}
button:hover { background: #f7f8fa; box-shadow: var(--shadow-sm); }
button.danger { color: var(--danger); border-color: #f7c9c4; }
button.danger:hover { background: #fff5f4; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px 16px;
}
.form-grid label, label.full { display: flex; flex-direction: column; font-size: 0.83rem; color: var(--muted); gap: 4px; font-weight: 550; }
.form-grid .full { grid-column: 1 / -1; }

input, select, textarea {
  font-size: 0.95rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  color: var(--text);
  background: #fbfbfd;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: white; }
textarea { min-height: 60px; resize: vertical; }

/* Fjerner nettleserens opp/ned-piler på tallfelt - de tok opp plass inni de smale
   kolonnene i trinn-tabellen og klippet av siste siffer i verdier som "130" eller "1,12". */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.steps-table input { padding: 7px 6px; text-align: left; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th, .table td {
  border-bottom: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
}
.table thead th { color: var(--muted); font-weight: 650; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table tbody tr:last-child td { border-bottom: none; }
.small-table td { font-size: 0.78rem; padding: 3px 6px; white-space: nowrap; }
.selected-row { background: var(--zone1-bg); }

.steps-table input { width: 100%; }

.hint { color: var(--muted); font-size: 0.85rem; }
.muted { color: var(--muted); }

.checkbox { display: inline-flex; align-items: center; gap: 5px; font-size: 0.88rem; margin-right: 14px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; flex-wrap: wrap; }

.method-group { margin-bottom: 10px; }

.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.15);
}

.explain-card h3 { margin-top: 0.8em; }
.explain-card ul { padding-left: 20px; margin: 6px 0; }
.explain-card li { margin-bottom: 6px; font-size: 0.92rem; }
.explain-card p { font-size: 0.92rem; }

.threshold-tooltip {
  position: fixed;
  display: none;
  background: rgba(26, 34, 51, 0.97);
  color: #fff;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  pointer-events: none;
  z-index: 9999;
  border-left: 4px solid #888;
  max-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.threshold-tooltip strong { display: block; margin-bottom: 2px; }

.table-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: #f4f6fb;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.86rem;
  color: #495057;
}

.chart-card canvas { max-width: 100%; }

.summary-cards { display: flex; gap: 20px; flex-wrap: wrap; }
.stat { min-width: 140px; }
.stat-label { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 650; }
.stat-value { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.01em; }

.print-header { border-bottom: 2px solid var(--text); padding-bottom: 8px; margin-bottom: 8px; }
.print-header p { margin: 2px 0; color: var(--muted); }

.zone-basis { color: var(--muted); font-size: 0.85rem; margin-top: -4px; }

.findings-summary { background: #f8f9fb; }
.findings-summary h2 { margin-top: 0; font-size: 1.3rem; }
.findings-summary p { font-size: 1.08rem; line-height: 1.65; margin: 12px 0; }
.findings-summary ul { font-size: 1.02rem; line-height: 1.7; padding-left: 22px; }
.findings-summary li { margin-bottom: 4px; }

/* ---------- Dashboard-kort (glansbilde-oversikt øverst på Resultater) ---------- */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 16px 0;
}

.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.dash-card-title { font-weight: 700; font-size: 0.98rem; }
.dash-card-sub { color: var(--muted); font-size: 0.76rem; }

.dash-pill {
  background: var(--zone1-bg);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.threshold-box-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.threshold-box {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.threshold-box.lt1 { background: var(--lt1-bg); }
.threshold-box.lt2 { background: var(--lt2-bg); }
.threshold-box-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.threshold-box.lt1 .threshold-box-label { color: var(--lt1); }
.threshold-box.lt2 .threshold-box-label { color: var(--lt2); }
.threshold-box-value { font-size: 1.5rem; font-weight: 800; margin: 2px 0; letter-spacing: -0.01em; }
.threshold-box-value .unit { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.threshold-box-detail { font-size: 0.76rem; color: var(--muted); }

.zone-list { display: flex; flex-direction: column; gap: 2px; }
.zone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-radius: 8px;
  font-size: 0.88rem;
}
.zone-row.is-current { background: #f4f6fb; }
.zone-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.zone-row-name { font-weight: 650; width: 34px; flex-shrink: 0; }
.zone-row-range { flex: 1; color: var(--text); }
.zone-row-hr { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.mini-chart-wrap { position: relative; }

/* Den korte, fokuserte rapporten (Skriv ut / Eksporter PDF) ligger alltid i DOM-en i normal
   dokumentflyt (IKKE display:none eller position:absolute langt utenfor skjermen - html2canvas
   klarer da ikke å måle innholdet og genererer en tom PDF). I stedet klippes den bort visuelt
   av en 0-høyde, overflow:hidden wrapper - elementet selv beholder full, målbar layout. */
.print-report-wrapper { height: 0; overflow: hidden; }
/* html2pdf skalerer alltid det fangede innholdet til å fylle PDF-sidens bredde (A4 minus marger,
   ca. 194mm), UANSETT hvor mange CSS-piksler #printReportArea er bred - jo bredere den er i CSS-
   piksler, jo mer krympes hver tekstpiksel når den presses inn i de faste 194mm. Ved 800px ble
   normal UI-fontstørrelse (14-15px) bare ca. 9-10pt på papir - for smått til å lese godt. Gjør
   containeren smalere (640px) for at samme innhold skal fylle de 194mm-ene med større, mer
   lesbar skrift (uten å endre noen fontstørrelser direkte - alt skaleres proporsjonalt opp). */
#printReportArea { width: 640px; }

@media print {
  .no-print, .topnav, #printArea { display: none !important; }
  body { background: white; }
  .container { max-width: 100%; padding: 0; }
  .print-report-wrapper { height: auto; overflow: visible; }
  #printReportArea { width: auto; }
  .card, .dash-card { border: none; box-shadow: none; padding: 6px 0; page-break-inside: avoid; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  canvas { max-height: 280px; }
  .findings-summary { background: white; }
  .findings-summary h2 { font-size: 1.5rem; }
  .findings-summary p { font-size: 1.05rem; }
  .findings-summary ul { font-size: 1rem; }
}

/* ---------- Sammenlign-siden ---------- */

.seg { display: inline-flex; gap: 2px; background: #eef1f6; padding: 3px; border-radius: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.seg button { border: 1px solid transparent; background: transparent; margin: 0; color: var(--muted); font-weight: 550; padding: 7px 14px; border-radius: 8px; }
.seg button:hover { background: transparent; color: var(--text); box-shadow: none; }
.seg button.active { background: white; color: var(--text); box-shadow: var(--shadow-sm); }

.cmp-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 18px; margin-top: 8px; }
.cmp-chart-box { min-width: 0; }
.cmp-chart-box h3 { margin-top: 4px; }

.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; font-size: 0.86rem; }
.cmp-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

.cmp-table { font-size: 0.84rem; }
.cmp-table th, .cmp-table td { padding: 7px 8px; vertical-align: top; }
.cmp-table td:first-child, .cmp-table th:first-child { position: sticky; left: 0; background: var(--card-bg); }
.cmp-group-row td { background: #f4f6fb !important; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); position: static !important; }
.cmp-delta { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.cmp-sig td { background: #fff7ee; }
.cmp-sig td:first-child { background: #fff7ee; }
.cmp-primary { font-weight: 700; }
.cmp-stats td, .cmp-stats th { white-space: nowrap; }

.cmp-warn { background: #fff8e6; border-left: 3px solid #E69F00; padding: 8px 12px; border-radius: 8px; font-size: 0.86rem; margin: 8px 0; }
.cmp-ok { color: var(--success); font-weight: 600; }
.cmp-bad { color: var(--danger); font-weight: 600; }
.muted-row td { color: var(--muted); }

@media print {
  .cmp-chart-grid { grid-template-columns: 1fr 1fr; }
  .cmp-table td:first-child, .cmp-table th:first-child { position: static; }
}

.form-grid label.checkbox { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }

.recovery-table th { text-align: left; white-space: nowrap; color: var(--muted); font-size: 0.8rem; font-weight: 650; padding-right: 14px; }
.recovery-table td { padding: 6px 6px; }
.recovery-table input { width: 68px; text-align: left; }
.recovery-table tr:last-child td { border-bottom: none; }
.cmp-flags { font-size: 0.78rem; color: var(--danger); max-width: 280px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--zone1-bg); color: var(--accent-dark); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 0.86rem; font-weight: 650; }
.chip button { border: none; background: transparent; margin: 0; padding: 2px 7px; color: var(--accent-dark); border-radius: 999px; font-size: 0.8rem; }
.chip button:hover { background: rgba(0,0,0,0.08); box-shadow: none; }

#intensityNewPct { width: 120px; }
.intensity-rev-out { display: inline-block; margin: 0 0 0 8px; }
#intensityRevOut:empty { display: none; }

.banner { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 14px; font-size: 0.9rem; line-height: 1.5; border-left: 4px solid; }
.banner button { margin-left: 8px; }
.banner-bad { background: #fdebea; border-color: var(--danger); }
.banner-warn { background: #fff4e0; border-color: #E69F00; }
.banner-info { background: #eaf2fd; border-color: var(--accent); }

.warmup-box { background: #f1f6fd; border: 1px solid #d6e4f9; border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 16px; }
.warmup-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--accent-dark); }
.warmup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 12px; }
.warmup-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--muted); font-weight: 550; }
.warmup-grid .warmup-notes { grid-column: span 2; }
.warmup-grid input { width: 100%; }
.olt-table td, .olt-table th { vertical-align: top; }

label.checkbox.full { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 0.9rem; }

/* ---------- Resultater: hero, faner, KPI, hurtigblikk ---------- */

:root { --fat: #E69F00; --fat-bg: #FDF1D6; --cho: #0072B2; --cho-bg: #E0EFF8; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head h1 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-head h2 { margin-bottom: 0.4em; }

button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent-dark); }
button.link { border: none; background: transparent; color: var(--accent-dark); padding: 4px 6px; box-shadow: none; }
button.link:hover { background: transparent; text-decoration: underline; box-shadow: none; }

.hero {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1a2233 0%, #2c3e66 100%);
  color: #fff; border-radius: 22px; padding: 28px 30px; margin: 8px 0 14px;
  box-shadow: 0 10px 30px rgba(26,34,51,0.22);
}
.hero h1 { color: #fff; font-size: 2rem; margin: 2px 0 8px; letter-spacing: -0.02em; }
.hero-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.65; font-weight: 700; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
.hero-meta span { background: rgba(255,255,255,0.12); border-radius: 999px; padding: 3px 11px; font-size: 0.8rem; font-weight: 550; }
.hero-meta.dim span { background: rgba(255,255,255,0.07); opacity: 0.85; }
.hero-warm { margin-top: 10px; font-size: 0.8rem; opacity: 0.75; max-width: 520px; }
.hero-side { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.hero-big { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hero-big-label { font-size: 0.78rem; opacity: 0.7; margin-top: 4px; }
.hero-actions { margin-top: 14px; }
button.ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.22); margin: 0 0 0 6px; }
button.ghost-light:hover { background: rgba(255,255,255,0.22); box-shadow: none; }

.subnav { display: flex; gap: 2px; overflow-x: auto; background: #eaeef5; padding: 4px; border-radius: 12px; margin: 0 0 14px; -webkit-overflow-scrolling: touch; }
.subtab { flex: 0 0 auto; border: none; background: transparent; margin: 0; padding: 8px 15px; border-radius: 9px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.subtab:hover { background: transparent; color: var(--text); box-shadow: none; }
.subtab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.kpi-row.compact { margin: 8px 0 12px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.kpi-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 3px; }
.kpi-unit { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi-sub { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.kpi.fat { border-top: 3px solid var(--fat); }
.kpi.cp { border-top: 3px solid #CC79A7; }

.insight-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 14px; }
.insight { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; margin: 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--ic, var(--accent)); }
.insight:hover { background: #fafbfd; }
.insight-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.insight-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.015em; }
.insight-sub { font-size: 0.76rem; color: var(--muted); font-weight: 500; }

.formula { font-size: 1.05rem; font-weight: 650; background: #f4f6fb; border-radius: 10px; padding: 10px 14px; margin: 4px 0 10px; }
.weir-inputs { max-width: 440px; }
.weir-out { margin-top: 10px; }

/* Fett/karbohydrat */
.fuel-table th.fat, .fuel-table td.fat { color: #8a5a00; }
.fuel-table th.cho, .fuel-table td.cho { color: #00537f; }
.fuelbar { display: flex; height: 12px; width: 150px; border-radius: 6px; overflow: hidden; background: #eee; }
.fuelbar .f { background: var(--fat); }
.fuelbar .c { background: var(--cho); }
.row-hl td { background: var(--fat-bg); }
.row-flag td { color: var(--muted); }
.row-peak td { background: #f4f6fb; }
.tag { display: inline-block; font-size: 0.66rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #e8ebf0; color: #495057; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.03em; }
.tag.fat { background: var(--fat); color: #fff; }

/* Utnyttingsgrad-målere */
.meter { position: relative; background: #eef1f6; border-radius: 8px; height: 22px; min-width: 110px; overflow: hidden; }
.meter span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; opacity: 0.85; }
.meter em { position: absolute; left: 9px; top: 0; line-height: 22px; font-style: normal; font-weight: 700; font-size: 0.8rem; color: #14213d; }
.meter.blue span { background: #9ccbea; } .meter.orange span { background: #f2b88c; } .meter.teal span { background: #9bdcc0; }
.card-sub-chart { margin-top: 14px; }
.chart-wrap { margin: 8px 0 12px; }

.empty-state p { max-width: 640px; line-height: 1.6; }
.cp-trials input { width: 130px; }

/* Metoder */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-top: 10px; }
.method-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fcfdff; transition: border-color 0.15s, box-shadow 0.15s; }
.method-card.on { border-color: var(--accent); background: #f4f8ff; box-shadow: 0 0 0 3px rgba(79,127,232,0.12); }
.method-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; flex-wrap: wrap; }
.method-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.method-role { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--zone1-bg); color: var(--accent-dark); }
.method-role.dim { background: #eef0f4; color: var(--muted); }
.method-what { font-size: 0.85rem; color: #4a5468; line-height: 1.5; margin: 8px 0; }
.method-foot { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; flex-wrap: wrap; font-size: 0.8rem; }
.method-ref { color: var(--muted); }
.method-value { text-align: right; display: flex; flex-direction: column; }
.method-detail { color: var(--muted); font-size: 0.76rem; }
.method-param { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8rem; color: var(--muted); font-weight: 550; }
.method-param input { width: 80px; }

@media (max-width: 720px) {
  .hero { padding: 20px; }
  .hero-side { align-items: flex-start; text-align: left; }
  .hero-big { font-size: 2.6rem; }
}
@media print { .hero, .subnav, .insight-row { display: none !important; } }

.inc-box { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* =====================================================================================
   TEMA 2: lys, fargerik og dyp. Bokser løftes og får farge når musa er over.
   ===================================================================================== */

:root {
  --ink: #16203a;
  --tint-blue: var(--accent-soft);  --tint-teal: #dff6f2;  --tint-amber: #fff1d6;
  --tint-coral: #ffe6df; --tint-violet: #efe9ff; --tint-green: #e2f6e9;
  --c-blue: var(--accent); --c-teal: #12a594; --c-amber: #f0a30a; --c-coral: #f0623f; --c-violet: #7c5cf0; --c-green: #1fa971;
  --card-border: rgb(var(--accent-rgb) / 0.14);
  --lift: 0 2px 4px rgba(22, 32, 58, 0.04), 0 10px 26px rgba(40, 70, 150, 0.10);
  --lift-hover: 0 4px 8px rgba(22, 32, 58, 0.06), 0 18px 40px rgba(40, 70, 150, 0.20);
  --shadow: 0 1px 2px rgba(22, 32, 58, 0.04), 0 8px 22px rgba(40, 70, 150, 0.08);
}

html { background: var(--bg); }
body {
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -80px, rgb(var(--accent-rgb) / 0.16), transparent 70%),
    radial-gradient(800px 380px at 96% -60px, rgba(18, 165, 148, 0.14), transparent 70%),
    radial-gradient(700px 500px at 60% 120%, rgba(124, 92, 240, 0.08), transparent 70%),
    #f1f5fc;
  background-attachment: fixed;
}

/* Navigasjon */
.topnav { background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid var(--card-border); box-shadow: 0 6px 24px rgba(40, 70, 150, 0.07); }
.brand { background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.08rem; letter-spacing: -0.02em; }
.tabs, .seg, .subnav { background: rgb(var(--accent-rgb) / 0.08); }
.tab, .subtab, .seg button { transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s; }
.tab:hover, .subtab:hover, .seg button:hover { color: var(--accent-dark); background: rgba(255, 255, 255, 0.7); }
.tab.active, .subtab.active, .seg button.active { background: #fff; color: var(--accent-dark); box-shadow: 0 2px 8px rgb(var(--accent-rgb) / 0.25); }

/* Knapper */
button { border-color: var(--card-border); transition: transform 0.15s, box-shadow 0.18s, background 0.18s, border-color 0.18s; }
button:hover { transform: translateY(-1px); background: #fff; border-color: rgb(var(--accent-rgb) / 0.4); box-shadow: 0 6px 16px rgb(var(--accent-rgb) / 0.18); }
button:active { transform: translateY(0); }
button.primary { background: linear-gradient(135deg, var(--c-blue), #5b86ff); border-color: transparent; box-shadow: 0 4px 14px rgb(var(--accent-rgb) / 0.35); }
button.primary:hover { background: linear-gradient(135deg, #2f5ee8, var(--c-blue)); box-shadow: 0 8px 22px rgb(var(--accent-rgb) / 0.45); }
button.danger:hover { box-shadow: 0 6px 16px rgba(230, 73, 59, 0.2); border-color: #f0a29b; }
button.link, button.link:hover, .subtab:hover, .tab:hover { transform: none; box-shadow: none; }
.tab.active:hover, .subtab.active:hover, .seg button.active:hover { box-shadow: 0 2px 8px rgb(var(--accent-rgb) / 0.25); }
.import-btn { border-color: var(--card-border); background: #fff; transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s; }
.import-btn:hover { transform: translateY(-1px); border-color: rgb(var(--accent-rgb) / 0.4); box-shadow: 0 6px 16px rgb(var(--accent-rgb) / 0.18); }

/* Skjemafelt */
input, select, textarea { background: #fbfcff; border-color: #d6dff0; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
input:hover, select:hover, textarea:hover { border-color: rgb(var(--accent-rgb) / 0.45); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.16); background: #fff; }

/* Kort */
.card, .dash-card {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--lift);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--lift-hover); border-color: rgb(var(--accent-rgb) / 0.32); }
.card h2 { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.card h2::before { content: ''; width: 5px; height: 1.05em; border-radius: 3px; background: linear-gradient(180deg, var(--c-blue), var(--c-teal)); flex: none; }
.card-head h2 { margin-bottom: 0.4em; }
.chart-card canvas { background: linear-gradient(180deg, #fbfdff, #f5f8ff); border-radius: 14px; }

/* Flis som løftes og får farge ved hover */
.dash-card { cursor: default; position: relative; overflow: hidden; }
.dash-card::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); opacity: 0.75; transition: height 0.25s, opacity 0.25s; }
.dash-card:nth-child(2)::after { background: linear-gradient(90deg, var(--c-violet), var(--c-blue)); }
.dash-card:nth-child(3)::after { background: linear-gradient(90deg, var(--c-amber), var(--c-coral)); }
.dash-card:nth-child(4)::after { background: linear-gradient(90deg, var(--c-green), var(--c-teal)); }
.dash-card:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); border-color: rgb(var(--accent-rgb) / 0.35); }
.dash-card:hover::after { height: 7px; opacity: 1; }
.dash-card { transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease; }

.kpi, .insight, .method-card {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.22s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.kpi { background: linear-gradient(160deg, var(--tint, var(--accent-soft)) 0%, #fff 62%); border-top: 4px solid var(--kc, var(--c-blue)); }
.kpi:nth-child(6n+1) { --kc: var(--c-blue);   --tint: var(--tint-blue); }
.kpi:nth-child(6n+2) { --kc: var(--c-teal);   --tint: var(--tint-teal); }
.kpi:nth-child(6n+3) { --kc: var(--c-amber);  --tint: var(--tint-amber); }
.kpi:nth-child(6n+4) { --kc: var(--c-coral);  --tint: var(--tint-coral); }
.kpi:nth-child(6n+5) { --kc: var(--c-violet); --tint: var(--tint-violet); }
.kpi:nth-child(6n)   { --kc: var(--c-green);  --tint: var(--tint-green); }
.kpi.fat { --kc: var(--fat); --tint: var(--tint-amber); }
.kpi.cp { --kc: #cc79a7; --tint: #fbe9f3; }
.kpi:hover { transform: translateY(-5px) scale(1.025); box-shadow: 0 6px 12px rgba(22, 32, 58, 0.06), 0 22px 40px color-mix(in srgb, var(--kc, var(--accent)) 35%, transparent); border-color: var(--kc, var(--c-blue)); }
.kpi-value { color: var(--ink); font-variant-numeric: tabular-nums; transition: color 0.2s; }
.kpi:hover .kpi-value { color: color-mix(in srgb, var(--kc, var(--accent)) 78%, #16203a); }
.kpi-label { color: var(--muted); }

.insight { background: linear-gradient(120deg, color-mix(in srgb, var(--ic, var(--accent)) 12%, #fff) 0%, #fff 70%); border-left-width: 6px; }
.insight:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(22, 32, 58, 0.06), 0 22px 40px color-mix(in srgb, var(--ic, var(--accent)) 32%, transparent); border-color: var(--ic); background: linear-gradient(120deg, color-mix(in srgb, var(--ic, var(--accent)) 20%, #fff) 0%, #fff 78%); }
.insight-value { color: var(--ink); }

.method-card { background: linear-gradient(180deg, #fff, var(--accent-tint)); }
.method-card:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); border-color: rgb(var(--accent-rgb) / 0.45); }
.method-card.on { background: linear-gradient(180deg, var(--accent-soft), #fff); border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.18), var(--lift); }

.threshold-box { transition: transform 0.2s, box-shadow 0.2s; }
.threshold-box:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(22, 32, 58, 0.14); }
.threshold-box.lt1 { background: linear-gradient(135deg, #d9f5e8, #eefaf4); }
.threshold-box.lt2 { background: linear-gradient(135deg, #ffe0dc, #fff1ef); }

.zone-row { transition: background 0.15s, transform 0.15s; }
.zone-row:hover { background: var(--tint-blue); transform: translateX(3px); }
.stat { transition: transform 0.2s; }
.stat:hover { transform: translateY(-2px); }

/* Hero */
.hero { background: linear-gradient(125deg, #1c2a7a 0%, var(--accent) 52%, #14b8a6 100%); box-shadow: 0 18px 44px rgb(var(--accent-rgb) / 0.35); position: relative; overflow: hidden; border-radius: 24px; }
.hero::before { content: ''; position: absolute; width: 380px; height: 380px; right: -90px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%); pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 300px; height: 300px; left: -80px; bottom: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-meta span { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); }
.hero-big { text-shadow: 0 4px 22px rgba(0, 0, 0, 0.25); }
button.ghost-light { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
button.ghost-light:hover { background: rgba(255, 255, 255, 0.34); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

/* Tabeller */
.table { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.table thead th { background: var(--accent-soft); color: #44547a; padding: 10px 12px; border-bottom: 2px solid rgb(var(--accent-rgb) / 0.22); white-space: nowrap; }
.table thead th:first-child { border-top-left-radius: 12px; }
.table thead th:last-child { border-top-right-radius: 12px; }
.table td { padding: 10px 12px; border-bottom: 1px solid #e9eef8; transition: background 0.12s; }
.table tbody tr { transition: background 0.12s, box-shadow 0.12s; }
.table tbody tr:hover td { background: var(--accent-tint); }
.table tbody tr:hover td:first-child { box-shadow: inset 4px 0 0 var(--c-blue); }
.table tbody tr:nth-child(even) td { background: #fafcff; }
.table tbody tr:nth-child(even):hover td { background: var(--accent-tint); }
.table tbody tr.row-hl td, .table tbody tr.row-hl:hover td { background: #fff2d1; }
.table tbody tr.row-peak td { background: var(--accent-soft); }
.selected-row td { background: #e4edff !important; }
.table-note { background: linear-gradient(90deg, #eaf0ff, #f6f9ff); border-left: 4px solid var(--c-blue); border-radius: 12px; color: #33415f; }
.formula { background: linear-gradient(90deg, var(--accent-soft), #e1f7f3); border-radius: 12px; color: var(--ink); }
.meter { background: #e6edfb; }

/* Bannere, piller */
.banner { border-radius: 14px; box-shadow: 0 4px 14px rgba(22, 32, 58, 0.06); }
.banner-warn { background: linear-gradient(90deg, #fff2d6, #fff9ec); }
.banner-info { background: linear-gradient(90deg, #e2ecff, var(--accent-tint)); }
.banner-bad { background: linear-gradient(90deg, #ffe1dd, #fff2f0); }
.dash-pill, .method-role { background: var(--tint-blue); color: var(--accent-dark); }
.chip { background: var(--tint-blue); color: var(--accent-dark); transition: transform 0.15s, box-shadow 0.15s; }
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgb(var(--accent-rgb) / 0.2); }
.tag { background: #dde6fb; color: #2d3f6d; }

/* Sammenlign-siden */
.cmp-chart-grid { gap: 20px; }
.cmp-chart-box, .cmp-chart-grid > .card { background: linear-gradient(180deg, #fff, #f7faff); border: 1px solid var(--card-border); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.cmp-chart-box:hover { transform: translateY(-3px); box-shadow: var(--lift-hover); border-color: rgb(var(--accent-rgb) / 0.4); }
.cmp-chart-box h3 { color: var(--accent-dark); }
.cmp-table thead th { background: var(--accent-soft); }
.cmp-table td:first-child, .cmp-table th:first-child { background: #fff; }
.cmp-table tbody tr:hover td:first-child { background: var(--accent-tint); }
.cmp-legend span { transition: transform 0.15s; }
.cmp-legend span:hover { transform: translateX(2px); }
.cmp-legend i { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(22, 32, 58, 0.1); }

h1 { color: var(--ink); }
.hint, .muted { color: var(--muted); }
.page-head .hint { margin: 0; }
.print-header { border-bottom-color: var(--ink); }

/* Utskrift: ingen effekter */
@media print {
  body { background: #fff; }
  .card, .dash-card, .kpi, .insight { background: #fff; transform: none !important; }
  .card h2::before, .dash-card::after { display: none; }
  .chart-card canvas { background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kpi, .insight, .method-card, .dash-card, .cmp-chart-box, button { transition: none; }
  .kpi:hover, .insight:hover, .method-card:hover, .dash-card:hover, .cmp-chart-box:hover { transform: none; }
}
.zone-row-name { width: auto; min-width: 58px; white-space: nowrap; }

/* Testrapport-toppkortet: roligere farger */
.hero { background: linear-gradient(125deg, #2a3768 0%, #3f589e 55%, #4f8d98 100%); box-shadow: 0 12px 30px rgba(42, 55, 104, 0.24); }
.hero::before { background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%); }
.hero::after { background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%); }
.hero-meta span { background: rgba(255, 255, 255, 0.14); }
.hero-big { text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18); }
button.ghost-light { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }

/* ---------- Utøverrapport (Sammenlign → Utøverrapport) ---------- */
.rp-tests { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.rp-test { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--card-border); border-radius: 12px; cursor: pointer; background: #fff; font-size: 0.9rem; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.rp-test:hover { background: var(--accent-tint); border-color: rgb(var(--accent-rgb) / 0.45); transform: translateX(3px); }
.rp-test.on { background: var(--accent-soft); border-color: var(--accent); }
.rp-toggles { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 12px; }

.rp-sheet { width: 720px; max-width: 100%; margin: 20px auto; background: #fff; padding: 34px 38px; border-radius: 14px; border: 1px solid var(--card-border); box-shadow: 0 18px 50px rgba(40, 70, 150, 0.16); color: #16203a; font-size: 0.95rem; line-height: 1.55; }
.rp-head { border-bottom: 3px solid var(--accent); padding-bottom: 14px; margin-bottom: 18px; position: relative; }
.rp-brand { position: absolute; right: 0; top: 0; font-weight: 800; font-size: 0.85rem; letter-spacing: -0.01em; color: var(--accent); }
.rp-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: #66728a; }
.rp-head h1 { margin: 2px 0 8px; font-size: 1.9rem; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-meta span { background: var(--accent-soft); color: #2d3f6d; border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 600; }
.rp-block { margin: 20px 0; break-inside: avoid; page-break-inside: avoid; }
.rp-block h2 { font-size: 1.12rem; margin: 0 0 8px; padding-bottom: 5px; border-bottom: 1px solid #dfe6f3; display: block; }
.rp-block h2::before { display: none; }
.rp-block h3 { font-size: 0.88rem; color: #44547a; margin: 4px 0; }
.rp-block ul { padding-left: 20px; margin: 6px 0 10px; }
.rp-block li { margin-bottom: 6px; }
.rp-table { font-size: 0.82rem; }
.rp-table td, .rp-table th { padding: 7px 8px; }
.rp-table tbody tr:nth-child(even) td { background: var(--accent-tint); }
.rp-table tbody tr:hover td { background: inherit; box-shadow: none; }
.rp-change { white-space: nowrap; font-weight: 650; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-note { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; }
.rp-note h2 { border: none; }
.rp-foot { margin-top: 26px; padding-top: 10px; border-top: 1px solid #dfe6f3; font-size: 0.75rem; color: #66728a; }
.rp-sheet canvas { background: none; }

@media print {
  .rp-sheet { width: auto; margin: 0; padding: 0; border: none; box-shadow: none; border-radius: 0; }
  .rp-block { margin: 14px 0; }
  .rp-sheet canvas { max-height: 300px; }
}

/* ---------- Utøverrapport: penere og tydeligere for skjerm/PDF ---------- */
.rp-sheet { padding: 0; overflow: hidden; border-radius: 18px; font-size: 1rem; }
.rp-sheet > *:not(.rp-head) { margin-left: 38px; margin-right: 38px; }
.rp-head { margin: 0 0 8px; padding: 30px 38px 22px; border-bottom: none; color: #fff; background: linear-gradient(125deg, #2a3768 0%, #3f589e 58%, #4f8d98 100%); }
.rp-head h1 { color: #fff; font-size: 2.1rem; letter-spacing: -0.02em; margin: 2px 0 10px; }
.rp-brand { right: 38px; top: 30px; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.rp-eyebrow { color: rgba(255, 255, 255, 0.7); letter-spacing: 0.14em; }
.rp-meta span { background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 0.82rem; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; margin-bottom: 4px; break-inside: avoid; }
.rp-kpi { border-radius: 14px; padding: 12px 14px; border-top: 5px solid var(--k); background: linear-gradient(170deg, var(--kt) 0%, #fff 75%); border-left: 1px solid #e3e9f6; border-right: 1px solid #e3e9f6; border-bottom: 1px solid #e3e9f6; }
.rp-kpi-0 { --k: var(--accent); --kt: var(--accent-soft); } .rp-kpi-1 { --k: #12a594; --kt: #dff6f2; } .rp-kpi-2 { --k: #f0623f; --kt: #ffe6df; } .rp-kpi-3 { --k: #7c5cf0; --kt: #efe9ff; }
.rp-kpi-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: #55627f; }
.rp-kpi-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-top: 2px; }
.rp-kpi-value span { font-size: 0.78rem; font-weight: 650; color: #66728a; margin-left: 4px; }
.rp-kpi-delta { font-size: 0.78rem; font-weight: 700; margin-top: 3px; color: #16203a; }
.rp-kpi-delta span { font-weight: 500; color: #66728a; }
.rp-block h2 { display: flex; align-items: center; gap: 9px; border-bottom: 2px solid #e3e9f6; font-size: 1.2rem; padding-bottom: 6px; }
.rp-block h2::before { display: inline-block; content: ''; width: 6px; height: 1.1em; border-radius: 3px; background: linear-gradient(180deg, var(--accent), #12a594); }
.rp-chart { border: 1px solid #e3e9f6; border-radius: 14px; padding: 10px 8px 4px; background: #fbfdff; }
.rp-sub { margin-top: 14px; }
.rp-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rp-stage h3 { margin: 0 0 4px; }
.rp-stage .rp-table { font-size: 0.8rem; }
.rp-stage .rp-table td, .rp-stage .rp-table th { padding: 4px 8px; }
.rp-table thead th { background: var(--accent-soft); }
.rp-foot { margin-bottom: 26px; }
.rp-note { margin-left: 38px; margin-right: 38px; }
@media print {
  .rp-sheet { overflow: visible; }
  .rp-sheet > *:not(.rp-head) { margin-left: 0; margin-right: 0; }
  .rp-head { margin-bottom: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-kpi, .rp-meta span, .rp-table thead th, .rp-block h2::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Wasserman 9-panel ---------- */
.wp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.wp-cell { border: 1px solid var(--card-border); border-radius: 16px; padding: 10px 12px 8px; background: linear-gradient(180deg, #fff, var(--accent-tint)); transition: box-shadow 0.25s, border-color 0.25s, transform 0.22s; min-width: 0; }
.wp-cell:hover { box-shadow: var(--lift-hover); border-color: rgb(var(--accent-rgb) / 0.4); transform: translateY(-3px); }
.wp-cell h3 { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; margin: 0 0 6px; color: var(--ink); flex-wrap: wrap; }
.wp-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--c-blue), var(--c-teal)); color: #fff; font-size: 0.72rem; font-weight: 800; flex: none; }
.wp-note { font-weight: 600; color: var(--accent-dark); font-size: 0.74rem; }
.wp-chart { height: 250px; position: relative; }
.wp-empty { height: 250px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 0.82rem; padding: 12px; background: repeating-linear-gradient(45deg, #f6f8fd, #f6f8fd 8px, #f1f4fb 8px, #f1f4fb 16px); border-radius: 10px; }
@media (max-width: 980px) { .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Samlet testrapport (Resultater → Rapport) ---------- */
.rp-meta-dim span { background: rgba(255, 255, 255, 0.1); opacity: 0.9; }
.rp-warm { margin-top: 10px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); }
.rp-sheet .card, .rp-sheet .dash-card { background: none; border: none; box-shadow: none; padding: 0; margin: 10px 0; border-radius: 0; transform: none !important; transition: none; }
.rp-sheet .card:hover { box-shadow: none; border: none; }
.rp-sheet .card h2 { font-size: 1.05rem; }
.rp-sheet .card h2::before { display: none; }
.rp-sheet .rp-findings .card { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; }
.rp-sheet .rp-findings .card h2 { display: none; }
.rp-sheet .rp-findings p { font-size: 1rem; margin: 8px 0; line-height: 1.6; }
.rp-sheet .rp-findings ul { margin: 4px 0 6px; padding-left: 20px; }
.rp-sheet .rp-flat { margin-top: 6px; }
.rp-sheet .chart-card canvas { background: none; }
.rp-sheet .table { font-size: 0.82rem; }
.rp-sheet .zone-basis { color: #66728a; font-size: 0.8rem; margin: 0 0 6px; }
.rp-panel .wp-grid { gap: 8px; }
.rp-panel .wp-cell { padding: 6px 8px; transform: none !important; box-shadow: none; }
.rp-panel .wp-cell h3 { font-size: 0.72rem; margin-bottom: 2px; }
.rp-panel .wp-chart, .rp-panel .wp-empty { height: 190px; }
.rp-panel .wp-num { width: 18px; height: 18px; font-size: 0.66rem; }
.rp-steps td, .rp-steps th { padding: 4px 8px; }
@media print {
  #testReportPage .hero, #testReportPage .subnav { display: none !important; }
  .rp-sheet .rp-findings .card { background: var(--accent-tint) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-panel .wp-cell { break-inside: avoid; }
}
.rp-panel .wp-grid { grid-template-columns: repeat(3, 1fr) !important; }

/* ---------- Utskrift: alt skal ligge innenfor A4-arket ---------- */
@page { size: A4; margin: 10mm; }
.rp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-stages { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.rp-two > * { min-width: 0; }
@media print {
  html, body { width: auto !important; background: #fff !important; }
  .container, main.container { max-width: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
  .rp-sheet { width: 100% !important; max-width: 100% !important; box-sizing: border-box; margin: 0 !important; padding: 0 !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; font-size: 0.9rem; }
  .rp-sheet *, .rp-sheet *::before, .rp-sheet *::after { box-sizing: border-box; }
  .rp-sheet > * { max-width: 100%; }
  .rp-sheet canvas { max-width: 100% !important; max-height: none !important; height: auto !important; }
  .rp-chart, .wp-chart { max-width: 100%; overflow: hidden; }
  .rp-sheet table { width: 100% !important; max-width: 100%; table-layout: auto; }
  .rp-sheet th, .rp-sheet td { padding: 4px 6px !important; font-size: 0.74rem; word-break: normal; overflow-wrap: anywhere; }
  .rp-sheet [style*="overflow-x"] { overflow: visible !important; }
  .rp-sheet .rp-head { padding: 18px 20px 14px !important; margin: 0 0 8px !important; border-radius: 10px; }
  .rp-sheet .rp-brand { right: 20px !important; top: 18px !important; }
  .rp-sheet .rp-head h1 { font-size: 1.7rem; }
  .rp-sheet .rp-block, .rp-sheet .rp-kpis, .rp-sheet .rp-note { margin-left: 0 !important; margin-right: 0 !important; }
  .rp-sheet .wp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
  .rp-sheet .fuelbar { width: 100%; min-width: 60px; }
  .rp-sheet .zone-basis { font-size: 0.72rem; }
  .rp-sheet .rp-stages { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
@media print {
  .rp-sheet h2, .rp-sheet h3 { break-after: avoid; page-break-after: avoid; }
  .rp-sheet tr, .rp-sheet .rp-kpi { break-inside: avoid; page-break-inside: avoid; }
  .rp-sheet thead { display: table-header-group; }
}

/* ---------- Rapport på skjerm: alt skal ligge innenfor arket, også i smale vinduer ---------- */
.rp-sheet { min-width: 0; }
.rp-sheet > * { min-width: 0; }
.rp-sheet table { width: 100%; }
.rp-sheet th, .rp-sheet td { overflow-wrap: anywhere; }
.rp-sheet .rp-table th, .rp-sheet .rp-table td { padding-left: 6px; padding-right: 6px; }
.rp-sheet .rp-table th { white-space: normal; }
.rp-sheet img, .rp-sheet canvas { max-width: 100%; }
@media (max-width: 760px) {
  .rp-sheet { padding: 0; border-radius: 12px; }
  .rp-sheet > *:not(.rp-head) { margin-left: 16px; margin-right: 16px; }
  .rp-head { padding: 20px 16px 16px; }
  .rp-brand { position: static; margin-bottom: 4px; }
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-two { grid-template-columns: 1fr; }
  .rp-table th, .rp-table td { font-size: 0.74rem; }
  .rp-sheet .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media print {
  .rp-sheet .rp-brand { position: absolute !important; margin: 0; }
  .rp-sheet .rp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .rp-sheet .rp-two { grid-template-columns: 1fr 1fr !important; }
  .rp-sheet .wp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.rp-sheet th, .rp-sheet td { white-space: normal !important; }
.rp-sheet .olt-table, .rp-sheet .table { table-layout: auto; }
@media (max-width: 760px) { .rp-sheet .table th, .rp-sheet .table td { font-size: 0.7rem; padding: 4px 4px; } }

/* ---------- Avansert side + 9-panel (standardoppsett) ---------- */
.wp-g-v { background: linear-gradient(135deg, #4f9bec, #2b6fd1) !important; }
.wp-g-k { background: linear-gradient(135deg, #f0624a, #cf3a2c) !important; }
.wp-g-g { background: linear-gradient(135deg, #3fbf7f, #1d8f5a) !important; }
.wp-g-vg { background: linear-gradient(135deg, #4f9bec 0%, #4f9bec 50%, #3fbf7f 50%, #3fbf7f 100%) !important; }
.wp-g-n { background: linear-gradient(135deg, #8a94a6, #66728a) !important; }
.wp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.wp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wp-legend i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 0.68rem; font-weight: 800; }
.adv-card h2 { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.adv-card h2::before { display: none; }
.adv-group:first-child h2 { margin-top: 0; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.adv-tile { border-radius: 16px; padding: 14px 16px; background: linear-gradient(165deg, var(--at, var(--accent-soft)) 0%, #fff 70%); border: 1px solid var(--card-border); border-top: 4px solid var(--ac, var(--accent)); box-shadow: var(--shadow); transition: transform 0.22s, box-shadow 0.25s, border-color 0.25s; }
.adv-tile:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(22, 32, 58, 0.06), 0 22px 40px color-mix(in srgb, var(--ac) 30%, transparent); border-color: var(--ac); }
.adv-v { --ac: #2b6fd1; --at: #e3efff; } .adv-k { --ac: #cf3a2c; --at: #ffe8e4; } .adv-g { --ac: #1d8f5a; --at: #def6ea; }
.adv-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--muted); }
.adv-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.adv-value span { font-size: 0.74rem; font-weight: 650; color: var(--muted); margin-left: 5px; }
.adv-sub { font-size: 0.78rem; color: #33415f; margin-top: 3px; font-weight: 600; }
.adv-hint { font-size: 0.72rem; color: var(--muted); margin-top: 6px; line-height: 1.4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s, opacity 0.3s; }
.adv-tile:hover .adv-hint { max-height: 90px; opacity: 1; }
.adv-table td, .adv-table th { white-space: nowrap; font-size: 0.8rem; padding: 7px 9px; }
@media (hover: none) { .adv-hint { max-height: none; opacity: 1; } }

/* ---------- Sky-status og innlogging ---------- */
.cloud-status { align-self: center; font-size: 0.78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: #e8f6ee; color: #187a4d; white-space: nowrap; }
.cloud-status.cloud-pending { background: var(--accent-soft); color: var(--accent-dark); }
.cloud-status.cloud-error, .cloud-status.cloud-conflict { background: #ffe6df; color: #b3321f; }
.auth-card .consent { align-items: flex-start; font-size: 0.8rem; font-weight: 500; line-height: 1.4; }
.auth-card .consent input { margin-top: 3px; }

/* ---------- Merkevare: PhysLabPerformance ---------- */
.brand { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: inherit !important; display: inline-flex; align-items: center; text-decoration: none; margin-right: 10px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-logo-big { height: 52px; }
.rp-logo { position: absolute; right: 38px; top: 26px; height: 40px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 30px; } .rp-logo { position: static; display: block; margin-bottom: 8px; height: 32px; } }
@media print { .rp-sheet .rp-logo { position: absolute !important; right: 20px; top: 16px; height: 34px; } }

/* ---------- Hjem, hjelp, kvalitet, toast ---------- */
.home-hero { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; background: linear-gradient(125deg, #241a66 0%, #3a4fb8 55%, #2f8f9c 100%); color: #fff; border-radius: 24px; padding: 30px 34px; margin: 6px 0 16px; box-shadow: 0 16px 38px rgba(42, 55, 140, 0.28); position: relative; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; width: 360px; height: 360px; right: -90px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%); pointer-events: none; }
.home-hero > * { position: relative; z-index: 1; }
.home-hero h1 { color: #fff; font-size: 2rem; margin: 2px 0 6px; letter-spacing: -0.02em; }
.home-hero p { margin: 0 0 16px; opacity: 0.85; max-width: 520px; }
.home-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; opacity: 0.7; }
.home-actions button { margin-right: 8px; }
.home-stats { display: flex; gap: 12px; }
.home-stats > div { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; padding: 14px 18px; min-width: 96px; text-align: center; backdrop-filter: blur(4px); }
.home-stats b { display: block; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.home-stats span { font-size: 0.74rem; opacity: 0.8; }
.start-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; margin: 10px 0 8px; }
.start-step { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--card-border); border-radius: 16px; background: var(--accent-tint); }
.start-step.done { background: #eaf8f0; border-color: #bfe6d2; }
.start-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--c-blue), var(--c-teal)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.start-step.done .start-num { background: #1fa971; }
.start-step p { margin: 2px 0 8px; }
.follow-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.follow-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 14px; background: #fff; transition: transform 0.2s, box-shadow 0.2s; flex-wrap: wrap; }
.follow-item:hover { transform: translateX(3px); box-shadow: var(--lift); }
.follow-item span { display: block; }
.home-note { margin: 14px 4px; font-size: 0.85rem; color: var(--muted); }
.search-box { max-width: 260px; }

.help-sec { border: 1px solid var(--card-border); border-radius: 14px; margin: 8px 0; padding: 0 16px; background: #fcfdff; transition: box-shadow 0.2s; }
.help-sec[open] { box-shadow: var(--shadow); background: #fff; }
.help-sec summary { cursor: pointer; padding: 13px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.help-sec summary::-webkit-details-marker { display: none; }
.help-sec summary::after { content: '＋'; color: var(--accent); font-weight: 800; }
.help-sec[open] summary::after { content: '－'; }
.formula-item { padding: 10px 0 12px; border-top: 1px solid #e9eef8; }
.formula-item h3 { margin: 0 0 4px; }
.formula-item p { margin: 4px 0; font-size: 0.92rem; line-height: 1.55; }
.formula-eq { display: inline-block; background: linear-gradient(90deg, var(--accent-soft), #e1f7f3); border-radius: 10px; padding: 7px 12px; margin: 4px 0; font-weight: 650; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.help-flow { padding-left: 20px; line-height: 1.8; }
.help-actions { margin: 6px 0; }

.quality-card { border-left: 6px solid #1fa971; }
.quality-card.q-warn { border-left-color: #f0a30a; }
.quality-card.q-bad { border-left-color: #e6493b; }
.q-pill { font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #e3f7ec; color: #17784d; }
.q-pill.q-warn { background: #fff1d6; color: #a86a00; }
.q-pill.q-bad { background: #ffe3de; color: #b3321f; }
.q-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.q-list li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-tint); border: 1px solid #e3e9f6; }
.q-list li.q-error { background: #fff4f2; border-color: #f7cfc8; }
.q-list li.q-warn { background: #fffaf0; border-color: #f4e1ae; }
.q-hint { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.range-warn { border-color: #e6493b !important; background: #fff3f1 !important; }

#toastHost { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99999; }
.toast { display: flex; align-items: center; gap: 12px; background: #16203a; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 14px 40px rgba(16, 26, 51, 0.4); font-size: 0.9rem; animation: toastIn 0.25s ease; }
.toast button { background: rgba(255, 255, 255, 0.16); color: #fff; border: none; margin: 0; padding: 6px 12px; }
.toast button:hover { background: rgba(255, 255, 255, 0.28); box-shadow: none; transform: none; }
.toast .toast-x { background: transparent; padding: 4px 8px; opacity: 0.7; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media print { .home-hero, #toastHost, .quality-card { display: none !important; } }
@media (max-width: 760px) { .home-hero { padding: 22px; } .home-stats { width: 100%; } .home-stats > div { flex: 1; min-width: 0; padding: 10px; } }

/* ---------- FTP og 7 soner ---------- */
:root { --zone6: #7c5cf0; --zone6-bg: #efe9ff; --zone7: #4a3d99; --zone7-bg: #e6e2f7; }
.ftp-box { border: 1px solid var(--card-border); border-radius: 16px; padding: 14px 16px; margin: 10px 0 14px; background: linear-gradient(180deg, var(--accent-tint), #fff); }
.ftp-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.ftp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; }
.ftp-grid label { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted); font-weight: 550; gap: 4px; }
.ftp-row { display: flex; gap: 6px; align-items: center; }
.ftp-row input { flex: 1; min-width: 0; }
.ftp-row button { margin: 0; white-space: nowrap; }
.zone-table7 td { vertical-align: top; }
.sweet-callout { display: flex; gap: 14px; align-items: center; margin: 14px 0 6px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(100deg, #fff4d6, #fffaf0); border: 1px solid #f4dfa3; }
.sweet-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #f0b429; box-shadow: 0 0 0 5px rgba(240, 180, 41, 0.25), 0 0 0 10px rgba(240, 180, 41, 0.12); }

/* ---------- PDF-eksport: fast skrivebordsoppsett, uten ramme/skygge ---------- */
.rp-sheet.pdf-capture { box-shadow: none !important; border: none !important; border-radius: 0 !important; margin: 0 !important; width: 720px !important; max-width: none !important; }
.rp-sheet.pdf-capture .rp-head { border-radius: 0; }
.rp-sheet.pdf-capture > *:not(.rp-head) { margin-left: 38px !important; margin-right: 38px !important; }
.rp-sheet.pdf-capture .rp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.rp-sheet.pdf-capture .rp-two { grid-template-columns: 1fr 1fr !important; }
.rp-sheet.pdf-capture .wp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.rp-sheet.pdf-capture .rp-logo { position: absolute !important; right: 38px; top: 26px; height: 46px; width: auto; margin: 0; }
.rp-sheet.pdf-capture .rp-head h1 { padding-right: 270px; }
.rp-sheet.pdf-capture .rp-head { padding: 30px 38px 22px !important; }
.rp-sheet.pdf-capture .card, .rp-sheet.pdf-capture .rp-block { transform: none !important; }

/* ---------- RAPPORTDESIGN v3: dyp indigo som i logoen, sonefarge-stripe, rolige kort, nummererte seksjoner ---------- */
.rp-sheet {
  --rp-ink: #17133f; --rp-accent: #4a3fc4; --rp-accent-soft: #eeedfb; --rp-line: #e4e6f2; --rp-muted: #626a8c; --rp-panel: #f5f5fd;
  --z1: #4f8fe8; --z2: #21b3a4; --z3: #f0b429; --z4: #f2793a; --z5: #e6493b;
  --rp-zones: linear-gradient(90deg, var(--z1) 0 20%, var(--z2) 20% 40%, var(--z3) 40% 60%, var(--z4) 60% 80%, var(--z5) 80% 100%);
  color: var(--rp-ink); counter-reset: rpsec; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
/* Topp */
.rp-sheet .rp-head {
  position: relative; overflow: hidden; padding: 32px 38px 30px;
  background: radial-gradient(120% 140% at 100% 0%, #3b2fa8 0%, rgba(59, 47, 168, 0) 55%), linear-gradient(135deg, #2b2180 0%, #1b1360 55%, #130d40 100%);
}
.rp-sheet .rp-head::before { /* laktatkurve i sonefarger som vannmerke */
  content: ''; position: absolute; right: 26px; bottom: 16px; width: 200px; height: 67px; opacity: 0.6; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='330' height='110' viewBox='0 0 330 110'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%234f8fe8'/><stop offset='.35' stop-color='%2321b3a4'/><stop offset='.62' stop-color='%23f0b429'/><stop offset='.82' stop-color='%23f2793a'/><stop offset='1' stop-color='%23e6493b'/></linearGradient></defs><path d='M6 96 C90 94 160 92 215 80 C262 70 292 44 322 8' fill='none' stroke='url(%23g)' stroke-width='3.2' stroke-linecap='round' opacity='.9'/><path d='M6 104 H324 M6 104 V12' stroke='white' stroke-opacity='.25' stroke-width='1' fill='none'/></svg>");
}
.rp-sheet .rp-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rp-zones); }
.rp-sheet .rp-head > * { position: relative; z-index: 1; }
.rp-sheet .rp-eyebrow { color: rgba(255, 255, 255, 0.72); font-size: 0.7rem; letter-spacing: 0.2em; font-weight: 700; }
.rp-sheet .rp-head h1 { color: #fff; font-size: 2.15rem; font-weight: 800; letter-spacing: -0.025em; margin: 4px 0 12px; }
.rp-sheet .rp-meta span { background: transparent; border: 1px solid rgba(255, 255, 255, 0.34); color: #fff; font-weight: 600; padding: 2px 11px; }
.rp-sheet .rp-meta-dim span { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.06); opacity: 1; }
.rp-sheet .rp-warm { color: rgba(255, 255, 255, 0.72); max-width: 66%; }
/* Nøkkeltall: hvite kort, farge bare som liten markør */
.rp-sheet .rp-kpis { gap: 12px; margin-top: 22px; }
.rp-sheet .rp-kpi { border: 1px solid var(--rp-line); border-radius: 12px; background: #fff; padding: 12px 14px 11px; box-shadow: 0 1px 0 rgba(23, 19, 63, 0.04); position: relative; }
.rp-sheet .rp-kpi::before { content: ''; position: absolute; left: 14px; top: 0; width: 26px; height: 4px; border-radius: 0 0 4px 4px; background: var(--k); }
.rp-sheet .rp-kpi-0 { --k: #4a3fc4; } .rp-sheet .rp-kpi-1 { --k: #0f9d7a; } .rp-sheet .rp-kpi-2 { --k: #e8663d; } .rp-sheet .rp-kpi-3 { --k: #c43d68; }
.rp-sheet .rp-kpi-label { color: var(--rp-muted); font-size: 0.66rem; letter-spacing: 0.08em; margin-top: 4px; }
.rp-sheet .rp-kpi-value { color: var(--rp-ink); font-size: 1.85rem; font-weight: 800; }
.rp-sheet .rp-kpi-value span { color: var(--rp-muted); }
.rp-sheet .rp-kpi-delta { color: var(--rp-ink); }
/* Seksjoner: nummerert overskrift */
.rp-sheet .rp-block h2 { counter-increment: rpsec; font-size: 1.15rem; font-weight: 800; color: var(--rp-ink); border-bottom: 1px solid var(--rp-line); padding-bottom: 8px; gap: 10px; letter-spacing: -0.01em; }
.rp-sheet .rp-block h2::before {
  content: counter(rpsec, decimal-leading-zero); width: auto; height: auto; border-radius: 7px; background: var(--rp-accent-soft); color: var(--rp-accent);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; padding: 3px 7px; line-height: 1.2;
}
.rp-sheet .rp-findings h2, .rp-sheet .rp-note h2::before { display: none; }
.rp-sheet .rp-findings .card, .rp-sheet .rp-note { background: var(--rp-panel); border-left: 4px solid var(--rp-accent); border-radius: 12px; }
.rp-sheet .rp-findings .card { border-left: 4px solid var(--rp-accent) !important; }
.rp-sheet .rp-chart { background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; }
.rp-sheet .hint, .rp-sheet .zone-basis { color: var(--rp-muted); }
/* Tabeller */
.rp-sheet .rp-table thead th, .rp-sheet .table thead th { background: var(--rp-panel); color: #3a3f78; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 2px solid #cfd0ee; }
.rp-sheet .rp-table tbody tr:nth-child(even) td { background: transparent; }
.rp-sheet .rp-table tbody td, .rp-sheet .table tbody td { border-bottom: 1px solid #edeff7; }
.rp-sheet .rp-foot { border-top: 1px solid var(--rp-line); color: var(--rp-muted); }
/* Lys variant (sparer blekk): hvit topp med mørk tekst */
.rp-sheet.rp-lys .rp-head { background: #fff; border-bottom: 1px solid var(--rp-line); padding-bottom: 28px; }
.rp-sheet.rp-lys .rp-head::before { opacity: 0.9; }
.rp-sheet.rp-lys .rp-head::before { background-blend-mode: normal; filter: none; }
.rp-sheet.rp-lys .rp-eyebrow { color: var(--rp-accent); }
.rp-sheet.rp-lys .rp-head h1 { color: var(--rp-ink); }
.rp-sheet.rp-lys .rp-meta span { background: var(--rp-accent-soft); border-color: transparent; color: #2e2a78; }
.rp-sheet.rp-lys .rp-meta-dim span { background: #f3f4f9; color: var(--rp-muted); }
.rp-sheet.rp-lys .rp-warm { color: var(--rp-muted); }
.rp-sheet.rp-lys .rp-head::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='330' height='110' viewBox='0 0 330 110'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%234f8fe8'/><stop offset='.35' stop-color='%2321b3a4'/><stop offset='.62' stop-color='%23f0b429'/><stop offset='.82' stop-color='%23f2793a'/><stop offset='1' stop-color='%23e6493b'/></linearGradient></defs><path d='M6 96 C90 94 160 92 215 80 C262 70 292 44 322 8' fill='none' stroke='url(%23g)' stroke-width='3.2' stroke-linecap='round'/><path d='M6 104 H324 M6 104 V12' stroke='%23171340' stroke-opacity='.18' stroke-width='1' fill='none'/></svg>"); }
.rp-sheet .rp-theme-pick { display: none; }

/* ---------- Karbohydratinntak (energifanen) ---------- */
.fuel-box { border-left: 5px solid #f0b429; background: linear-gradient(100deg, #fffaf0 0%, #fff 60%); }
.fuel-box h2 { margin-bottom: 4px; }
.fuel-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0 6px; }
.fuel-controls label { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted); font-weight: 600; gap: 4px; }
.fuel-big { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 2px; flex-wrap: wrap; }
.fuel-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; color: #17133f; line-height: 1; }
.fuel-unit { font-size: 0.95rem; font-weight: 650; color: #5b6482; }
.fuel-sub { margin: 4px 0; font-size: 0.9rem; font-weight: 550; }
.fuel-details { margin-top: 10px; }
.fuel-details summary { cursor: pointer; font-weight: 650; color: #4a3fc4; font-size: 0.88rem; }

/* ---------- Mobil: ingenting skal stikke ut av skjermen ---------- */
@media (max-width: 760px) {
  table.table:not(.rp-table) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card, .chart-card, .wp-cell { min-width: 0; max-width: 100%; }
  .chart-card canvas { max-width: 100% !important; }
}

/* ---------- Polish: like toppknapper, rolig mobilmeny, ryddige forsideknapper ---------- */
.import-btn { font-size: 0.88rem; font-weight: 550; padding: 8px 16px; margin: 2px 4px 2px 0; color: var(--text); display: inline-block; line-height: normal; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-actions button, .home-actions button.ghost-light { margin: 0; }
@media (max-width: 760px) {
  .topnav { gap: 10px; padding: 10px 14px; position: static; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; width: 100%; order: 3; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; padding: 8px 14px; }
  .nav-actions { order: 2; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
  .nav-actions button, .import-btn { padding: 6px 10px; font-size: 0.8rem; margin: 0; }
  .brand { order: 1; margin-right: 0; }
  .home-actions button { flex: 1 1 auto; }
}

/* ---------- Innlogging ---------- */
.auth-card a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }
.auth-feedback:empty { display: none; }
.auth-show { font-size: 0.82rem; color: var(--muted); margin: -4px 0 2px; }
.auth-legal { margin-top: 14px; text-align: center; font-size: 0.75rem; }
@media (max-width: 1100px) { .topnav { position: static; } }

/* ---------- Tilgjengelighet: tydelig fokus for tastatur ---------- */
button:focus-visible, a:focus-visible, .tab:focus-visible, summary:focus-visible, .import-btn:focus-within { outline: 3px solid rgba(74, 63, 196, 0.55); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 3px rgba(74, 63, 196, 0.28); }

/* Resultat-fanene brytes over flere linjer på brede skjermer (ingenting skjult), og scroller sideveis på mobil */
@media (min-width: 761px) { .subnav { flex-wrap: wrap; overflow-x: visible; } }

.fuel-acc { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 14px; background: #fff; }
.fuel-acc h3 { margin: 0 0 8px; font-size: 0.92rem; }
.fuel-stack { display: flex; height: 22px; border-radius: 11px; overflow: hidden; background: #eef0f7; margin-bottom: 10px; }
.fuel-seg.fat { background: #e0962c; } .fuel-seg.intake { background: #8fb8ea; } .fuel-seg.glyc { background: #2f6db5; }
.fuel-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.fuel-key.fat { background: #e0962c; } .fuel-key.intake { background: #8fb8ea; } .fuel-key.glyc { background: #2f6db5; }
.fuel-stores { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); font-weight: 600; margin: 6px 0; }
.fuel-stores input { width: 90px; }

/* LES AV SKJERMBILDE (photoread.js) */
.pr-overlay { position: fixed; inset: 0; background: rgba(20, 28, 48, 0.55); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.pr-modal { background: var(--card-bg); border-radius: 14px; box-shadow: 0 24px 60px rgba(10, 20, 50, 0.35); width: min(980px, 100%); padding: 16px 20px 20px; }
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pr-head h3 { margin: 0; font-size: 1.05rem; }
.pr-head button { margin: 0; padding: 4px 10px; }
.pr-status { font-weight: 600; margin: 8px 0; }
.pr-bar { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.pr-bar span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 6px; animation: pr-slide 1.2s ease-in-out infinite; }
@keyframes pr-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.pr-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pr-photo img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #f6f8fc; }
.pr-table .table td, .pr-table .table th { padding: 6px 8px; }
.pr-table select { max-width: 190px; }
.pr-ex { font-size: 0.72rem; color: var(--muted); margin-top: 2px; min-height: 0; }
.pr-chip { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.pr-ok { color: #0b6b4a; border-color: #9fd8c3; background: #eefaf5; }
.pr-warn { color: #8a5a00; border-color: #f0cf8f; background: #fff7e6; }
.pr-bad { color: #a3261b; border-color: #f2b3ad; background: #fdeeec; }
.pr-info { color: var(--accent-dark); border-color: #b9c9f7; background: var(--accent-soft); }
.pr-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 760px) { .pr-grid { grid-template-columns: 1fr; } .pr-photo img { max-height: 240px; } .pr-overlay { padding: 8px; } .pr-modal { padding: 12px; } }
.pr-st { margin-top: 4px; }
.pr-table select { max-width: 170px; }
.pr-modal { box-sizing: border-box; }
.pr-chip { white-space: normal; }
@media (max-width: 760px) {
  .pr-table .table td, .pr-table .table th { padding: 6px 3px; }
  .pr-table select { max-width: 118px; font-size: 0.8rem; padding: 6px 4px; }
  .pr-table input[type="number"] { width: 84px !important; }
  .pr-chip { font-size: 0.7rem; padding: 2px 6px; }
}

/* TRINN FOR TRINN, HURTIGSØK, SEGMENTVELGER (livelog.js) */
.live-pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.live-pill { flex: 0 0 auto; min-width: 42px; height: 42px; margin: 0; padding: 0 10px; border-radius: 12px; font-weight: 700; }
.live-pill.done { border-color: #9fd8c3; background: #eefaf5; color: #0b6b4a; }
.live-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.live-pill.add { border-style: dashed; color: var(--accent-dark); }
.live-card { border: 1px solid var(--border); border-radius: 16px; padding: 14px 14px 12px; background: linear-gradient(180deg, #fbfcff, #fff); }
.live-title { font-size: 1.15rem; font-weight: 750; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.live-load { font-size: 0.95rem; color: var(--accent-dark); font-weight: 650; }
.live-timer { margin: 10px 0 14px; padding: 12px; border-radius: 14px; background: #f1f5fc; text-align: center; }
.live-clock { font-size: 3rem; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.live-clock.done { color: var(--danger); }
.live-bar { height: 6px; background: #dfe6f3; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.live-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }
.live-status { min-height: 1.2em; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.live-timer-btns { margin-top: 6px; }
.live-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.live-big label, .live-two label, .live-gas-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.live-big-field input { font-size: 1.5rem; padding: 12px 10px; text-align: center; font-weight: 700; }
.live-two, .live-gas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.live-gas { border-top: 1px dashed var(--border); padding-top: 10px; }
.live-gas-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.live-gas-head button { margin: 0; }
.live-card input[type="number"] { width: 100%; min-width: 0; box-sizing: border-box; }
.live-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.live-nav button { margin: 0; padding: 14px 10px; font-size: 1rem; }
.live-del { margin-left: 6px; padding: 4px 10px; }
@media (max-width: 760px) { .live-clock { font-size: 2.6rem; } .live-big-field input { font-size: 1.35rem; } }
.qs-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(20, 28, 48, 0.5); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 12px 12px; }
.qs-box { width: min(560px, 100%); background: var(--card-bg); border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 20, 50, 0.4); overflow: hidden; }
.qs-box input { width: 100%; box-sizing: border-box; border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 18px; font-size: 1.05rem; background: #fff; }
.qs-box input:focus { outline: none; }
#qsList { max-height: 50vh; overflow-y: auto; padding: 6px; }
.qs-item { display: flex; width: 100%; justify-content: space-between; gap: 12px; text-align: left; margin: 0; border: none; background: transparent; padding: 10px 12px; border-radius: 10px; font-weight: 550; }
.qs-item.active { background: var(--accent-soft); color: var(--accent-dark); }
.qs-hint { color: var(--muted); font-size: 0.75rem; flex: 0 0 auto; align-self: center; }
.qs-foot { border-top: 1px solid var(--border); padding: 8px 14px; font-size: 0.75rem; color: var(--muted); }
.step-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.step-toolbar .seg { margin: 0; }
.step-toolbar > button { margin: 0; }
.live-big label { justify-content: flex-end; }
.icon-search { vertical-align: -2px; margin-right: 2px; }

/* SONEBÅND OG UTVIKLING (visuals.js) */
.zonestrip-wrap { margin: 6px 0 14px; }
.zonestrip { display: flex; gap: 3px; height: 36px; border-radius: 12px; overflow: hidden; }
.zonestrip span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.02em; }
.zonestrip span:first-child { border-radius: 12px 4px 4px 12px; }
.zonestrip span:last-child { border-radius: 4px 12px 12px 4px; }
.zonestrip-marks { position: relative; height: 30px; margin-top: 2px; }
.zonestrip-mark { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.7rem; font-weight: 700; color: var(--muted); white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.zonestrip-mark i { width: 2px; height: 8px; background: var(--muted); border-radius: 2px; opacity: 0.6; }
.trend-card .card-head { flex-wrap: wrap; gap: 4px 12px; }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 4px; }
.trend-tile { border-radius: 16px; padding: 14px 16px 10px; background: #f6f8fd; position: relative; overflow: hidden; }
.trend-tile.lt1 { background: var(--lt1-bg); color: var(--lt1); }
.trend-tile.lt2 { background: var(--lt2-bg); color: var(--lt2); }
.trend-tile.vo2 { background: var(--accent-soft); color: var(--accent-dark); }
.trend-label { font-size: 0.7rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.05em; }
.trend-value { font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin: 2px 0; }
.trend-value .unit { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.trend-delta { font-size: 0.85rem; font-weight: 700; display: inline-block; }
.trend-delta.up { color: #0b6b4a; }
.trend-delta.down { color: #a3261b; }
.trend-delta.flat, .trend-delta.muted { color: var(--muted); }
.trend-spark { margin-top: 6px; height: 30px; }
.spark { display: block; }
.zonestrip-marks.two { height: 48px; }
.zonestrip-mark.low { top: 20px; }
.zonestrip-mark.low i { position: absolute; top: -12px; height: 12px; }

/* ===== Bevegelse (motion.js) ===== */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); }
::selection { background: rgb(var(--accent-rgb) / 0.22); }

/* Kort glir inn ved sidebytte (klassen settes av motion.js og fjernes igjen) */
@keyframes fxUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxPop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fxReveal { from { clip-path: inset(0 100% 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }
@keyframes fxDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fxDot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes fxFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }
@keyframes fxRipple { from { transform: scale(0); opacity: 0.45; } to { transform: scale(1); opacity: 0; } }

main.fx-enter .page-head, main.fx-enter .hero, main.fx-enter .banner, main.fx-enter .card, main.fx-enter .dash-card, main.fx-enter .kpi,
main.fx-enter .insight, main.fx-enter .method-card, main.fx-enter .adv-tile, main.fx-enter .follow-item, main.fx-enter .trend-tile {
  animation: fxUp 0.55s var(--ease-out) backwards;
  animation-delay: calc(var(--fx-i, 0) * 45ms);
}
main.fx-enter .zonestrip { animation: fxReveal 0.9s var(--ease-out) 0.15s backwards; }
main.fx-enter .zonestrip-mark { animation: fxFade 0.5s ease 0.8s backwards; }
main.fx-enter .spark polyline { stroke-dasharray: 1; animation: fxDraw 1s var(--ease-out) 0.3s backwards; }
main.fx-enter .spark circle { transform-box: fill-box; transform-origin: center; animation: fxDot 0.35s var(--ease-out) 1.1s backwards; }
main.fx-enter .meter > * { transform-origin: left; animation: fxReveal 0.8s var(--ease-out) 0.2s backwards; }

/* Lysglimt som følger musen */
.card, .follow-item, .adv-tile, .method-card { position: relative; }
.card::before, .dash-card::before, .kpi::before, .insight::before, .method-card::before, .adv-tile::before, .follow-item::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--accent-rgb) / 0.075), transparent 62%);
}
.card:hover::before, .dash-card:hover::before, .kpi:hover::before, .insight:hover::before, .method-card:hover::before, .adv-tile:hover::before, .follow-item:hover::before { opacity: 1; }
.rp-sheet .card::before, .rp-sheet .dash-card::before { display: none; }

/* Hovedknapper: lysstrime og bølge */
button.primary { position: relative; overflow: hidden; }
button.primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-130%);
}
button.primary:hover::after { transform: translateX(130%); transition: transform 0.75s ease; }
.import-btn { position: relative; overflow: hidden; }
.fx-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.55); pointer-events: none; transform: scale(0); animation: fxRipple 0.6s ease-out forwards; }
.import-btn .fx-ripple { background: rgb(var(--accent-rgb) / 0.25); }
button:active:not(.link):not(.tab):not(.subtab) { transform: translateY(1px) scale(0.985); }

/* Faner og små kontroller */
.tab:active, .subtab:active, .seg button:active { transform: scale(0.96); }
.brand-logo { transition: transform 0.35s var(--ease-out), filter 0.35s; }
.brand:hover .brand-logo { transform: scale(1.06) rotate(-2deg); filter: drop-shadow(0 4px 10px rgb(var(--accent-rgb) / 0.35)); }

/* Sonebånd: de andre toner ned når du peker på en sone */
.zonestrip span { transition: opacity 0.2s, transform 0.2s var(--ease-out), filter 0.2s; transform-origin: center bottom; cursor: default; }
.zonestrip:hover span { opacity: 0.55; }
.zonestrip:hover span:hover { opacity: 1; transform: scaleY(1.22); filter: saturate(1.2); position: relative; z-index: 1; }
.zonestrip-wrap { overflow: visible; }

/* Utviklingsflisene */
.trend-tile { transition: transform 0.22s var(--ease-out), box-shadow 0.25s; }
.trend-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px color-mix(in srgb, currentColor 22%, transparent); }
.trend-tile .spark { transition: transform 0.3s var(--ease-out); transform-origin: left center; }
.trend-tile:hover .spark { transform: scaleX(1.04); }

/* Lister og tabeller */
.follow-item:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40, 70, 150, 0.14); border-color: rgb(var(--accent-rgb) / 0.35); }
.rp-test:hover { transform: translateX(3px); }
.help-sec:hover { box-shadow: 0 6px 16px rgba(40, 70, 150, 0.1); }
.table tbody tr:hover td:first-child { transition: box-shadow 0.2s; }

/* Dialoger og hurtigsøk */
.pr-overlay, .qs-overlay { animation: fxFade 0.2s ease; }
.pr-modal, .qs-box { animation: fxPop 0.28s var(--ease-out); }

/* Innlogging: rolig, bevegelig bakgrunn */
.auth-wrap { position: relative; overflow: hidden; }
.auth-wrap::before, .auth-wrap::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; z-index: 0;
  animation: fxFloat 14s ease-in-out infinite;
}
.auth-wrap::before { width: 420px; height: 420px; left: -120px; top: -100px; background: #bcd0ff; }
.auth-wrap::after { width: 380px; height: 380px; right: -100px; bottom: -120px; background: #b7efe6; animation-delay: -7s; }
.auth-wrap > * { position: relative; z-index: 1; }
.auth-card { animation: fxPop 0.6s var(--ease-out) backwards; box-shadow: 0 24px 60px rgba(40, 70, 150, 0.18); }

@media print { .card::before, .dash-card::before, .kpi::before, .insight::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .auth-wrap::before, .auth-wrap::after { animation: none; }
}
.zonestrip { overflow: visible; }

/* ===== Formler og innstillinger ===== */
.icon-gear { vertical-align: -2px; }
.settings-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(125deg, var(--accent-soft), #e3f7f3); }
.settings-hero-text { flex: 1 1 320px; min-width: 0; }
.settings-hero-text p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.settings-hero h2::before { display: none; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 18px; align-items: start; }
.settings-links { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px; }
.settings-links a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; background: #fff; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.settings-links a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40, 70, 150, 0.14); border-color: rgb(var(--accent-rgb) / 0.4); }
.settings-links a strong { color: var(--accent-dark); }
.settings-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.settings-libs { margin: 8px 0; padding-left: 18px; line-height: 1.7; }

.fx-trust h2::before { background: linear-gradient(180deg, var(--c-green), var(--c-teal)); }
.fx-points { margin: 6px 0 14px; padding-left: 20px; line-height: 1.6; }
.fx-points li { margin: 6px 0; }
.fx-legend { display: grid; gap: 8px; margin-top: 6px; }
.fx-legend-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; }
.fx-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); font-size: 0.85rem; }
.fx-grade { display: inline-block; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; text-align: center; }
.fx-grade-std { color: #0b6b4a; background: #e3f6ee; }
.fx-grade-crit { color: #1f4fc4; background: #e6eeff; }
.fx-grade-prac { color: #8a5a00; background: #fff3d6; }
.fx-grade-guide { color: #5b3fb3; background: #efe9ff; }
.fx-tools { display: grid; gap: 10px; }
.fx-search { width: 100%; font-size: 1rem; padding: 11px 14px; border-radius: 12px; }
.fx-toc { display: flex; gap: 6px 8px; flex-wrap: wrap; }
.fx-toc a { font-size: 0.8rem; text-decoration: none; color: var(--accent-dark); background: var(--tint-blue); padding: 4px 10px; border-radius: 999px; transition: transform 0.15s, box-shadow 0.15s; }
.fx-toc a:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgb(var(--accent-rgb) / 0.2); }
.fx-section { scroll-margin-top: 90px; }
.fx-item { border-top: 1px solid #e9eef8; padding: 0; }
.fx-item > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; font-weight: 650; transition: background 0.15s, padding 0.15s; border-radius: 10px; }
.fx-item > summary::-webkit-details-marker { display: none; }
.fx-item > summary::before { content: '▸'; color: var(--muted); margin-right: 8px; transition: transform 0.2s; display: inline-block; }
.fx-item[open] > summary::before { transform: rotate(90deg); }
.fx-item > summary:hover { background: var(--tint-blue); padding-left: 10px; }
.fx-name { flex: 1; min-width: 0; }
.fx-body { padding: 0 6px 14px 22px; animation: fxFade 0.25s ease; }
.fx-body p { margin: 6px 0; font-size: 0.92rem; line-height: 1.6; }
.fx-eq { display: block; max-width: 100%; overflow-x: auto; white-space: normal; line-height: 1.6; }
.fx-ex { background: #f4f8ff; border-left: 3px solid var(--c-blue); padding: 6px 10px; border-radius: 0 8px 8px 0; }
.fx-limits { background: #fff8e8; border-left: 3px solid var(--c-amber); padding: 6px 10px; border-radius: 0 8px 8px 0; }
.fx-meta a { text-decoration: none; font-weight: 700; color: var(--accent-dark); }
.fx-reflist { padding-left: 24px; line-height: 1.55; font-size: 0.86rem; }
.fx-reflist li { margin: 6px 0; padding: 2px 6px; border-radius: 6px; scroll-margin-top: 150px; }
.fx-ref-hl, .fx-reflist li:target { background: #fff2d1; transition: background 1s; }
@media (max-width: 760px) { .fx-legend-item { grid-template-columns: 1fr; gap: 4px; } .fx-tools { position: static; } .fx-body { padding-left: 8px; } }
@media print { .fx-tools { display: none; } .fx-item:not([open]) .fx-body { display: block; } }

/* ===== Del med utøver ===== */
.ar-share-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.ar-miss { color: #8a5a00; background: #fff3d6; padding: 6px 10px; border-radius: 8px; }
.ar-frame { margin: 8px auto 0; border: 1px solid var(--card-border); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--lift); }
.ar-frame iframe { width: 100%; height: 78vh; min-height: 520px; border: 0; display: block; }
.ar-frame-mobil { max-width: 400px; border-radius: 30px; border: 8px solid #17244a; }
.ar-frame-desktop { max-width: 100%; }

/* ===== Testbatteri ===== */
.btc { width: 100%; height: auto; display: block; }
.btc-spark { display: block; }
.bt-muted { color: var(--muted); font-size: 0.82rem; }
.bt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.bt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Forside */
.bt-hero { background: linear-gradient(125deg, #17244a 0%, #2f4f9e 58%, #3f9b9a 100%); }
.bt-planner h2::before { display: none; }
.bt-step { position: relative; padding: 14px 0 6px 42px; border-top: 1px solid #e9eef8; }
.bt-step:first-of-type { border-top: none; }
.bt-stepn { position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--c-blue), #5b86ff); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgb(var(--accent-rgb) / 0.35); }
.bt-athbar { display: flex; gap: 8px; margin: 10px 0 8px; flex-wrap: wrap; }
.bt-athbar .search-box { flex: 1 1 200px; min-width: 0; }
.bt-aths { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-ath { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid var(--card-border); background: #fff; font-weight: 650; }
.bt-ath em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.bt-av { width: 26px; height: 26px; border-radius: 50%; background: var(--tint-blue); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
.bt-ath.on { border-color: var(--c-blue); background: var(--tint-blue); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.15); }
.bt-ath.on .bt-av { background: var(--c-blue); color: #fff; }
.bt-packs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 12px; }
.bt-pack { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border-radius: 14px; background: linear-gradient(160deg, var(--accent-soft), #fff); border: 1px solid var(--card-border); text-align: left; }
.bt-pack b { font-size: 0.9rem; } .bt-pack span { font-size: 0.75rem; color: var(--muted); }
.bt-cat { margin: 12px 0 0; }
.bt-cat-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.bt-cat-h .bt-dot { background: var(--c); }
.bt-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.bt-mod { border: 1.5px solid var(--card-border); border-top: 5px solid var(--c); border-radius: 16px; background: #fff; transition: transform 0.2s var(--ease-out), box-shadow 0.25s, border-color 0.2s; display: flex; flex-direction: column; }
.bt-mod:hover { transform: translateY(-3px); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 22%, transparent); }
.bt-mod.on { border-color: var(--c); background: linear-gradient(170deg, color-mix(in srgb, var(--c) 9%, #fff), #fff 70%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent); }
.bt-mod-main { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 6px 40px; position: relative; flex: 1; }
.bt-mod-main:focus-visible { outline: 3px solid rgba(74, 63, 196, 0.55); outline-offset: -3px; border-radius: 12px; }
.bt-check { position: absolute; left: 12px; top: 13px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--c); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.8rem; transition: background 0.15s; }
.bt-mod.on .bt-check { background: var(--c); }
.bt-mod-name { font-weight: 700; line-height: 1.25; }
.bt-mod-what { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.bt-chips { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.bt-chips i { font-style: normal; font-size: 0.7rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--accent)) 12%, #fff); color: #33415f; border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 30%, #fff); }
.bt-mod-foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px 10px; }
.bt-mod-info { padding: 0 14px 12px; font-size: 0.84rem; border-top: 1px dashed var(--card-border); }
.bt-gain { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.bt-gain-i { border-left: 4px solid var(--c-green); background: #f3fbf7; border-radius: 0 12px 12px 0; padding: 8px 12px; }
.bt-gain-i p { margin: 2px 0; font-size: 0.86rem; line-height: 1.45; }
.bt-hint-next { grid-column: 1 / -1; font-size: 0.86rem; color: #8a5a00; background: #fff8e8; padding: 8px 12px; border-radius: 10px; }
.bt-start { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-top: 8px; }
.bt-summary { font-weight: 650; flex: 1 1 240px; }
.bt-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.bt-rel { border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; background: #fff; transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s; }
.bt-rel:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40, 70, 150, 0.12); }
.bt-rel.hl { border-color: var(--c-blue); background: linear-gradient(170deg, var(--accent-soft), #fff 70%); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.14); }
.bt-rel p { margin: 6px 0; font-size: 0.86rem; line-height: 1.5; }
.bt-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.bt-sess { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--card-border); background: #fff; text-align: left; }

/* Testøkt */
.bt-group-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.bt-gtab { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--card-border); background: #fff; font-weight: 650; }
.bt-gtab span { font-size: 0.75rem; color: var(--muted); background: #eef1f6; padding: 1px 7px; border-radius: 999px; }
.bt-gtab.on { background: var(--c-blue); border-color: var(--c-blue); color: #fff; } .bt-gtab.on span { background: rgba(255, 255, 255, 0.25); color: #fff; }
.bt-datefield { display: inline-flex; align-items: center; gap: 8px; }
.bt-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } .bt-cards > * { min-width: 0; }
.bt-card { border: 1px solid var(--card-border); border-left: 6px solid var(--c); border-radius: 18px; background: #fff; box-shadow: var(--lift); }
.bt-card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; flex-wrap: wrap; }
.bt-card > summary::-webkit-details-marker { display: none; }
.bt-card > summary b { flex: 1 1 200px; font-size: 1.02rem; }
.bt-status { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.bt-status.done { background: #e3f6ee; color: #0b6b4a; }
.bt-x { background: transparent; border: none; box-shadow: none; color: var(--muted); padding: 2px 8px; }
.bt-x:hover { color: var(--danger); transform: none; box-shadow: none; background: transparent; }
.bt-body { padding: 0 16px 16px; }
.bt-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.bt-f { display: flex; flex-direction: column; gap: 4px; font-size: 0.84rem; font-weight: 600; }
.bt-f.wide { grid-column: 1 / -1; }
.bt-f span em, .bt-rt th em { font-style: normal; font-weight: 500; color: var(--muted); }
.bt-f input, .bt-f select, .bt-f textarea { font-weight: 500; }
.bt-f textarea { min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.bt-help { font-weight: 400; color: var(--muted); font-size: 0.74rem; line-height: 1.35; }
.bt-rows { margin: 14px 0 6px; overflow-x: auto; }
.bt-rows-h { font-weight: 700; font-size: 0.86rem; margin-bottom: 4px; }
.bt-rt { border-collapse: collapse; }
.bt-rt th { font-size: 0.74rem; text-align: left; padding: 4px 8px; color: #44547a; }
.bt-rt td { padding: 3px 4px; } .bt-rt td:first-child { color: var(--muted); font-size: 0.8rem; padding-right: 8px; }
.bt-rt input { width: 110px; }
.bt-add { margin-top: 6px; font-size: 0.82rem; }
.bt-out { margin-top: 16px; padding-top: 6px; border-top: 1px dashed var(--card-border); }

/* Resultater: toppresultat, absolutt og relativ */
.bt-sect-h { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; display: flex; align-items: center; gap: 10px; }
.bt-sect-h::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }
.bt-peaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.bt-peak { position: relative; border-radius: 20px; padding: 16px 18px 14px; border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-top: 6px solid var(--c); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, #fff) 0%, #fff 72%); box-shadow: 0 2px 4px rgba(22, 32, 58, 0.04), 0 10px 26px color-mix(in srgb, var(--c) 16%, transparent); transition: transform 0.22s var(--ease-out), box-shadow 0.25s; }
.bt-peak:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(22, 32, 58, 0.06), 0 22px 40px color-mix(in srgb, var(--c) 30%, transparent); }
.bt-peak-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bt-peak-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #16203a); }
.bt-badge { font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bt-badge.pr { background: #fff3d6; color: #8a5a00; border: 1.5px solid #E69F00; }
.bt-badge.first { background: #eef1f6; color: var(--muted); }
.bt-peak-val { font-size: 3rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 2px; color: #16203a; font-variant-numeric: tabular-nums; }
.bt-peak-val small { font-size: 1rem; font-weight: 650; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.bt-peak-sub { font-size: 0.84rem; min-height: 1.2em; }
.bt-bar { height: 7px; background: #e6edfb; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.bt-bar i { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.bt-bar-l { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.bt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.bt-tile { border: 1px solid var(--card-border); border-radius: 14px; padding: 10px 14px; background: #fff; transition: transform 0.2s, box-shadow 0.2s; }
.bt-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(40, 70, 150, 0.12); }
.bt-tile-l { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bt-tile-v { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bt-tile-v small { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.bt-tile-d { font-size: 0.78rem; margin-top: 2px; }
.bt-delta { font-weight: 700; font-size: 0.82rem; }
.bt-delta.good { color: #0b6b4a; } .bt-delta.bad { color: #a3261b; } .bt-delta.neutral, .bt-delta.flat { color: var(--muted); }
.bt-notes { margin: 12px 0 0; padding-left: 20px; font-size: 0.84rem; color: #44547a; line-height: 1.5; }
.bt-chart { margin: 14px 0 4px; max-width: 760px; }

/* Profil */
.bt-profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; color: #fff; padding: 22px 26px; border-radius: 24px; margin-bottom: 14px; background: linear-gradient(125deg, #2a3768 0%, #3f589e 55%, #4f8d98 100%); box-shadow: 0 12px 30px rgba(42, 55, 104, 0.24); position: relative; overflow: hidden; }
.bt-profile-hero::after { content: ''; position: absolute; width: 320px; height: 320px; right: -80px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%); pointer-events: none; }
.bt-profile-hero h1 { color: #fff; margin: 2px 0 8px; font-size: 2rem; letter-spacing: -0.02em; }
.bt-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.5); font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bt-ph-stats { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.bt-ph-stats div { display: flex; flex-direction: column; } .bt-ph-stats b { font-size: 1.5rem; } .bt-ph-stats span { font-size: 0.74rem; opacity: 0.8; }
.bt-ph-side { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.bt-ph-side label { color: #fff; font-size: 0.78rem; } .bt-ph-side select { width: 100%; }
.bt-cat-block { margin: 14px 0 6px; } .bt-cat-block .bt-cat-h .bt-dot { background: var(--c); }
.bt-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 16px; align-items: start; }
.bt-vlist { display: grid; gap: 2px; }
.bt-vrow { display: grid; grid-template-columns: minmax(0, 1.5fr) auto minmax(60px, 0.8fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; transition: background 0.15s; }
.bt-vrow:hover { background: var(--tint-blue); }
.bt-vrow-l { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; font-size: 0.84rem; } .bt-vrow-l .bt-dot { background: var(--c); } .bt-vrow-l span:not(.bt-dot) { color: var(--muted); font-size: 0.75rem; }
.bt-vrow-v { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; } .bt-vrow-v small { font-weight: 600; color: var(--muted); margin-left: 3px; font-size: 0.74rem; }
.bt-vrow-b { height: 7px; background: #e6edfb; border-radius: 4px; overflow: hidden; } .bt-vrow-b i { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.bt-vrow-d { font-size: 0.72rem; }
.bt-radar { max-width: 420px; margin: 0 auto; }
.bt-sparkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.bt-spark { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--card-border); background: #fff; text-align: left; border-top: 4px solid var(--c); }
.bt-spark.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.bt-spark:disabled { opacity: 0.7; cursor: default; }
.bt-resultcard { border-left: 6px solid var(--c); }

/* Analyse */
.bt-an-sel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; margin: 8px 0 12px; }
.bt-an-sel select { width: 100%; }
.bt-an-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }

/* Rapport */
.bt-rep-h { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 12px 0 4px; }
.bt-rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
.bt-rp-kpis .rp-kpi { break-inside: avoid; }
.bt-rp-mod h2 { border-bottom: 2px solid var(--c); }
.rp-date { font-size: 0.8rem; font-weight: 500; color: #66728a; margin-left: 8px; }
.bt-rp-table .rp-peakrow td { background: #fff8e8 !important; font-weight: 600; }
.rp-sheet .bt-chart { max-width: 100%; }
.rp-sheet .bt-peaks, .rp-sheet .bt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .bt-profile-hero { grid-template-columns: 1fr; } .bt-vrow { grid-template-columns: 1fr auto; } .bt-vrow-b, .bt-vrow-d { display: none; } .bt-peak-val { font-size: 2.5rem; } .bt-step { padding-left: 0; padding-top: 44px; } }
@media print { .bt-peak, .bt-tile, .bt-rel { break-inside: avoid; box-shadow: none; transform: none !important; } .bt-peak { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

.bt-vrow-l { display: grid; grid-template-columns: 10px 1fr; column-gap: 9px; align-items: center; }
.bt-vrow-l div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bt-vrow-l div b { font-size: 0.86rem; }

/* ===== Forenklet navigasjon og flyt ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topnav { gap: 12px; flex-wrap: nowrap; }
.topnav .tabs { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; justify-content: flex-start; }
.topnav .tabs::-webkit-scrollbar { display: none; }
.topnav .tab { white-space: nowrap; font-weight: 650; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.nav-icon { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; cursor: pointer; list-style: none; }
.nav-icon::-webkit-details-marker { display: none; }
.nav-kbd { font-size: 0.68rem; color: var(--muted); border: 1px solid var(--card-border); border-radius: 5px; padding: 0 5px; }
.nav-menu { position: relative; }
.nav-menu > summary { border: 1px solid var(--border); background: #fff; }
.nav-menu[open] > summary { background: var(--tint-blue); border-color: rgb(var(--accent-rgb) / 0.4); }
.nav-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 18px 44px rgba(22, 32, 58, 0.18); padding: 8px; z-index: 50; animation: fxPop 0.18s var(--ease-out); }
.nav-panel .nav-item { display: block; width: 100%; text-align: left; border: none; background: transparent; box-shadow: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 0.92rem; }
.nav-panel .nav-item:hover { background: var(--tint-blue); transform: none; box-shadow: none; }
.nav-sep { height: 1px; background: var(--card-border); margin: 6px 4px; }
.nav-who { font-size: 0.78rem; color: var(--muted); padding: 6px 12px 8px; word-break: break-all; }
.groupnav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; padding: 4px; background: rgb(var(--accent-rgb) / 0.07); border-radius: 12px; width: fit-content; max-width: 100%; }
.groupnav button { border: none; background: transparent; box-shadow: none; padding: 7px 14px; border-radius: 9px; font-weight: 650; font-size: 0.88rem; color: #44547a; }
.groupnav button:hover { background: rgba(255, 255, 255, 0.8); transform: none; box-shadow: none; }
.groupnav button.on { background: #fff; color: var(--accent-dark); box-shadow: 0 2px 8px rgb(var(--accent-rgb) / 0.22); }
@media (max-width: 760px) { .topnav { padding: 10px 12px; gap: 8px; flex-wrap: wrap; } .topnav .tabs { order: 3; flex: 1 1 100%; } .nav-kbd { display: none; } .nav-panel { position: fixed; left: 12px; right: 12px; top: 60px; } }

/* Utøverkort */
.bt-headacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bt-athgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-top: 4px; }
.bt-athcard { position: relative; border: 1px solid var(--card-border); border-radius: 20px; background: linear-gradient(180deg, #fff, #fbfcff); padding: 16px 16px 14px; cursor: pointer; box-shadow: var(--lift); transition: transform 0.22s var(--ease-out), box-shadow 0.25s, border-color 0.2s; }
.bt-athcard:hover, .bt-athcard:focus-visible { transform: translateY(-4px); box-shadow: var(--lift-hover); border-color: rgb(var(--accent-rgb) / 0.4); outline: none; }
.bt-athcard-top { display: flex; align-items: center; gap: 12px; }
.bt-av.lg { width: 44px; height: 44px; font-size: 1.15rem; background: linear-gradient(135deg, var(--tint-blue), #dfe8ff); }
.bt-athcard-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bt-athcard-name b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-athcard-stats { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 0.88rem; }
.bt-cover { display: flex; gap: 5px; margin-top: 10px; }
.bt-cover i { flex: 1; height: 6px; border-radius: 3px; background: #e6edfb; }
.bt-cover i.on { background: var(--c); }
.bt-addath { margin: 0 0 14px; } .bt-addath > summary { cursor: pointer; font-weight: 700; } .bt-addath[open] > summary { margin-bottom: 10px; }
.bt-more { position: relative; margin-left: auto; }
.bt-more > summary { list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; color: var(--muted); transition: background 0.15s; }
.bt-more > summary::-webkit-details-marker { display: none; }
.bt-more > summary:hover, .bt-more[open] > summary { background: var(--tint-blue); color: var(--accent-dark); }
.bt-more.light > summary { color: #fff; background: rgba(255, 255, 255, 0.18); } .bt-more.light > summary:hover, .bt-more.light[open] > summary { background: rgba(255, 255, 255, 0.32); color: #fff; }
.bt-more-p { position: absolute; right: 0; top: 100%; min-width: 200px; background: #fff; border: 1px solid var(--card-border); border-radius: 14px; box-shadow: 0 14px 34px rgba(22, 32, 58, 0.18); padding: 6px; z-index: 30; display: grid; gap: 2px; animation: fxPop 0.16s var(--ease-out); }
.bt-more.up .bt-more-p { top: auto; bottom: 100%; }
.bt-more-p button { text-align: left; border: none; background: transparent; box-shadow: none; padding: 8px 12px; border-radius: 9px; font-weight: 600; color: var(--text); }
.bt-more-p button:hover { background: var(--tint-blue); transform: none; box-shadow: none; }
.bt-more-p button.danger { color: var(--danger); } .bt-more-p button.danger:hover { background: #fdeceb; }

/* Forside */
.bt-hero2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; padding: 24px 26px; border-radius: 24px; color: #fff; background: linear-gradient(125deg, #17244a 0%, #2f4f9e 60%, #3f9b9a 100%); box-shadow: 0 14px 34px rgba(42, 55, 104, 0.24); position: relative; overflow: hidden; }
.bt-hero2::after { content: ''; position: absolute; right: -80px; top: -140px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%); pointer-events: none; }
.bt-hero2 > * { position: relative; z-index: 1; }
.bt-hero2 h1 { color: #fff; margin: 0 0 6px; font-size: 1.9rem; letter-spacing: -0.02em; }
.bt-hero2 p { margin: 0; opacity: 0.88; max-width: 520px; }
.bt-hero2-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.bt-hero2-stats span { background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; } .bt-hero2-stats b { font-size: 1.05rem; margin-right: 4px; }
.bt-planner { display: grid; gap: 14px; }
.bt-stepcard { background: linear-gradient(180deg, #fff, #fbfcff); border: 1px solid var(--card-border); border-radius: 22px; padding: 18px 20px; box-shadow: var(--lift); }
.bt-stephead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.bt-stephead h3 { margin: 0; font-size: 1.08rem; }
.bt-stephead .bt-stepn { position: static; flex: none; }
.bt-stepn.alt { background: linear-gradient(135deg, var(--c-green), var(--c-teal)); box-shadow: 0 4px 12px rgba(31, 169, 113, 0.35); }
.bt-stepacts { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.bt-stepacts .search-box { width: 190px; }
.bt-step { padding: 0; border: none; }
.bt-packs { margin: 0 0 6px; }
.bt-pack { flex-direction: row; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 650; font-size: 0.88rem; background: #fff; }
.bt-pack span { background: var(--tint-blue); color: var(--accent-dark); font-weight: 800; font-size: 0.72rem; padding: 1px 8px; border-radius: 999px; }
.bt-cat { margin: 14px 0 0; }
.bt-cat-h { margin-bottom: 8px; }
.bt-mods { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.bt-mod-main { padding: 12px 14px 4px 42px; }
.bt-mod-what { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-mod-foot { padding: 2px 14px 10px; }
.bt-i { width: 24px; height: 24px; border-radius: 50%; padding: 0; font-weight: 800; font-style: italic; font-size: 0.8rem; font-family: Georgia, serif; border: 1.5px solid var(--card-border); background: #fff; color: var(--accent-dark); line-height: 1; }
.bt-i.on, .bt-i:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); transform: none; }
.bt-mod-info p { margin: 8px 0 4px; }
.bt-gaincard { border-left: 6px solid var(--c-green); }
.bt-startbar { position: sticky; bottom: 14px; z-index: 20; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 16px 0; padding: 12px 16px 12px 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border: 1px solid var(--card-border); box-shadow: 0 14px 40px rgba(22, 32, 58, 0.2); transition: border-color 0.2s, box-shadow 0.25s; }
.bt-startbar.ready { border-color: rgba(31, 169, 113, 0.55); box-shadow: 0 14px 40px rgba(31, 169, 113, 0.22); }
.bt-startinfo { display: flex; flex-direction: column; flex: 1 1 200px; line-height: 1.3; }
.bt-startdate { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; }
.bt-startbar button.primary { padding: 12px 22px; font-size: 1rem; }
.bt-startbar button.primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.bt-recent h3 { margin: 18px 0 8px; font-size: 1rem; }
.bt-prog { display: block; height: 5px; border-radius: 3px; background: #e6edfb; overflow: hidden; width: 100%; margin: 4px 0 2px; } .bt-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); border-radius: 3px; transition: width 0.4s var(--ease-out); } .bt-prog.big { height: 9px; border-radius: 5px; }
.bt-foot-link { text-align: center; margin: 6px 0 22px; }

/* Testøkt */
.bt-progress { margin: 4px 0 14px; } .bt-progress-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.92rem; margin-bottom: 4px; }
.bt-cardfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--card-border); flex-wrap: wrap; }
.bt-cardfoot .link { font-size: 0.84rem; color: var(--muted); } .bt-cardfoot .danger-link { color: var(--danger); }
.bt-next { background: linear-gradient(135deg, var(--c-blue), #5b86ff); color: #fff; border-color: transparent; font-weight: 700; margin-left: auto; }
.bt-next:hover { background: linear-gradient(135deg, #2f5ee8, var(--c-blue)); }
.bt-sessfoot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 8px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--card-border); box-shadow: var(--lift); }
.bt-sessfoot .bt-addmod { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; flex: 1 1 220px; min-width: 0; max-width: 100%; } .bt-sessfoot .bt-addmod select { flex: 1; min-width: 0; }
.bt-sessfoot .bt-more { margin-left: 0; } .bt-sessfoot .bt-more .bt-more-p { right: auto; left: 0; max-width: calc(100vw - 32px); } .bt-sessfoot button.primary { padding: 10px 20px; }
.bt-card > summary { padding: 14px 18px; }
.bt-card > summary b { flex: 1 1 160px; }
.bt-card[open] > summary { border-bottom: 1px solid var(--card-border); margin-bottom: 12px; }
.bt-card > summary::after { content: '▾'; color: var(--muted); transition: transform 0.2s; margin-left: 6px; } .bt-card:not([open]) > summary::after { transform: rotate(-90deg); }
/* Menyen er nå kompakt (én rad), så den kan ligge fast på alle bredder, og menypanelet legger seg over innholdet */
.topnav { position: sticky; top: 0; }
@media (max-width: 1100px) { .topnav { position: sticky; top: 0; } }
.topnav .nav-panel { position: absolute; }
@media (max-width: 760px) { .topnav .nav-panel { position: fixed; } }
.bt-sumval { font-weight: 800; font-variant-numeric: tabular-nums; color: #16203a; margin-left: auto; } .bt-sumval small { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .topnav .tabs { justify-content: space-between; gap: 0; }
  .topnav .tab { padding: 7px 9px; font-size: 0.82rem; }
  .bt-startbar { bottom: 8px; padding: 10px 12px; gap: 8px 10px; border-radius: 16px; }
  .bt-startinfo { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
  .bt-startinfo .bt-muted { display: none; }
  .bt-startdate { flex: 1 1 0; } .bt-startdate input { width: 100%; min-width: 0; }
  .bt-startbar button.primary { flex: 1 1 0; padding: 11px 12px; font-size: 0.95rem; }
  .bt-stepcard { padding: 14px 14px; border-radius: 18px; }
  .bt-stepacts { margin-left: 0; width: 100%; } .bt-stepacts .search-box { flex: 1; width: auto; min-width: 0; }
}
@media (max-width: 760px) {
  .topnav .tab { padding: 7px 6px; font-size: 0.78rem; }
  .topnav .tabs { padding: 3px; }
  .bt-startbar button.primary { white-space: nowrap; font-size: 0.9rem; flex: 1.2 1 0; }
  .bt-startdate { font-size: 0.8rem; flex: 1 1 0; }
}

/* ===== Forside: hero med animerte illustrasjoner ===== */
.bt-hero3 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center; margin: 4px 0 18px; padding: 30px 32px; border-radius: 28px; color: #fff; background: linear-gradient(125deg, #121c3f 0%, #27438f 55%, #2f8f93 100%); box-shadow: 0 18px 44px rgba(42, 55, 104, 0.3); position: relative; overflow: hidden; }
.bt-hero3::before { content: ''; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%); pointer-events: none; }
.bt-hero3::after { content: ''; position: absolute; width: 360px; height: 360px; right: -90px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%); pointer-events: none; }
.bt-hero3 > * { position: relative; z-index: 1; }
.bt-hero3 h1 { color: #fff; margin: 4px 0 10px; font-size: 2.35rem; line-height: 1.12; letter-spacing: -0.025em; }
.bt-hero3 p { margin: 0 0 18px; opacity: 0.9; max-width: 480px; font-size: 1.02rem; line-height: 1.55; }
.bt-hero3 .home-eyebrow { color: rgba(255, 255, 255, 0.75); }
.bt-hero2-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.bt-hero2-stats span { background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; } .bt-hero2-stats b { font-size: 1.05rem; margin-right: 4px; }

.bt-stage { position: relative; height: 290px; border-radius: 26px; background: rgba(255, 255, 255, 0.97); color: #16203a; box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28); overflow: hidden; }
.bt-scene { position: absolute; inset: 14px 18px 38px; display: flex; flex-direction: column; opacity: 0; animation: artCycle calc(var(--n) * 3.8s) infinite; animation-delay: calc(var(--i) * 3.8s); }
.bt-scene-art { flex: 1; min-height: 0; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, #fff), #fff 78%); padding: 8px 12px; }
.bt-scene-art .art { width: 100%; height: 100%; }
.bt-scene-cap { display: flex; flex-direction: column; text-align: center; padding-top: 10px; line-height: 1.3; }
.bt-scene-cap b { font-size: 1.05rem; } .bt-scene-cap span { font-size: 0.82rem; color: var(--muted); }
.bt-stage-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.bt-stage-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d4dcee; animation: artDot calc(var(--n) * 3.8s) infinite; animation-delay: calc(var(--i) * 3.8s); }
@keyframes artCycle { 0% { opacity: 0; transform: translateY(12px); } 1.8% { opacity: 1; transform: none; } 11% { opacity: 1; transform: none; } 12.5% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 0; } }
@keyframes artDot { 0% { background: #d4dcee; transform: scale(1); } 1.8% { background: var(--c-blue); transform: scale(1.5); } 11% { background: var(--c-blue); transform: scale(1.5); } 12.5% { background: #d4dcee; transform: scale(1); } 100% { background: #d4dcee; } }

/* Illustrasjonene */
.art { display: block; overflow: visible; color: #16203a; }
.art .art-grid line { stroke: currentColor; opacity: 0.16; stroke-width: 1.5; }
.art .art-ground { stroke: currentColor; opacity: 0.3; stroke-width: 2; stroke-linecap: round; }
.art .art-line { fill: none; stroke: var(--c); stroke-width: 4.5; stroke-linecap: round; }
.art .art-line2 { fill: none; stroke: var(--c); opacity: 0.4; stroke-width: 3; stroke-dasharray: 6 5; stroke-linecap: round; }
.art .art-dot { fill: var(--c); stroke: #fff; stroke-width: 2; }
.art .art-t { font: 700 10px -apple-system, sans-serif; fill: currentColor; opacity: 0.65; }
.art .art-dash { stroke: currentColor; opacity: 0.35; stroke-dasharray: 4 4; stroke-width: 1.5; }
.art .art-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: artDraw 5s ease-in-out infinite; }
.art .art-late { animation-delay: 0.6s; }
.art .art-pulse, .art .art-drop, .art .art-bolt { transform-box: fill-box; transform-origin: center; }
.art .art-pulse { animation: artPulse 2.2s ease-in-out infinite; } .art .art-p2 { animation-delay: 0.7s; }
.art .art-drop { fill: var(--c); transform-origin: center bottom; animation: artDrop 2.8s ease-in-out infinite; }
.art .art-bolt { fill: #E69F00; }
.art .art-bar { fill: var(--c); opacity: calc(1 - var(--i) * 0.045); transform-box: fill-box; transform-origin: bottom; animation: artBar 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * 0.09s); }
.art .art-lift { animation: artLift 3.4s ease-in-out infinite; }
.art .art-bar0 { fill: #5c6884; } .art .art-plate { fill: var(--c); } .art .art-plate2 { fill: var(--c); opacity: 0.6; }
.art .art-gauge { fill: none; stroke: currentColor; opacity: 0.25; stroke-width: 5; stroke-linecap: round; }
.art .art-needle { stroke: var(--c); stroke-width: 3; stroke-linecap: round; animation: artNeedle 3.4s ease-in-out infinite; }
.art .art-ball { fill: var(--c); transform-box: fill-box; transform-origin: center bottom; animation: artBounce 1.9s cubic-bezier(0.33, 0, 0.5, 1) infinite; }
.art .art-shadow { fill: currentColor; opacity: 0.16; transform-box: fill-box; transform-origin: center; animation: artShadow 1.9s cubic-bezier(0.33, 0, 0.5, 1) infinite; }
.art .art-speed line { stroke: var(--c); opacity: 0.5; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 22 70; animation: artStreak 1.2s linear infinite; }
.art .art-speed line:nth-child(2) { animation-delay: -0.3s; } .art .art-speed line:nth-child(3) { animation-delay: -0.6s; } .art .art-speed line:nth-child(4) { animation-delay: -0.9s; }
.art .art-track rect { fill: currentColor; opacity: 0.28; animation: artTrack 1s linear infinite; }
.art .art-body0 > * { fill: currentColor; opacity: 0.1; } .art .art-body1 > * { fill: var(--c); opacity: 0.85; }
.art .art-scanline { fill: var(--c); filter: drop-shadow(0 0 5px var(--c)); animation: artScan 5s linear infinite; }
.art .art-seg { fill: var(--c); transform-box: fill-box; transform-origin: left; animation: artSeg 3.2s ease-in-out infinite; }
.art .art-seg.s2 { opacity: 0.65; animation-delay: 0.4s; } .art .art-seg.s3 { opacity: 0.35; animation-delay: 0.8s; }
.art .art-cone { fill: var(--c); opacity: 0.85; }
.art .art-runner { fill: var(--c); animation: artRun 2.4s ease-in-out infinite alternate; transform: translate(42px, 112px); }
.art .art-ring { fill: none; stroke: var(--c); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: artRing 2.4s ease-out infinite; }
.art .art-r2 { animation-delay: 1.2s; }
@keyframes artDraw { 0% { stroke-dashoffset: 1; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes artPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.55); } }
@keyframes artDrop { 0%, 100% { transform: scale(0.92); } 50% { transform: scale(1.08); } }
@keyframes artBar { 0% { transform: scaleY(0); } 16% { transform: scaleY(1); } 80% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes artLift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes artNeedle { 0%, 100% { transform: rotate(-58deg); } 50% { transform: rotate(58deg); } }
@keyframes artBounce { 0%, 100% { transform: translateY(0) scale(1.18, 0.82); } 12% { transform: translateY(-8px) scale(0.95, 1.06); } 50% { transform: translateY(-74px) scale(1, 1); } 88% { transform: translateY(-8px) scale(0.95, 1.06); } }
@keyframes artShadow { 0%, 100% { transform: scale(1.1); opacity: 0.2; } 50% { transform: scale(0.55); opacity: 0.08; } }
@keyframes artStreak { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -92; } }
@keyframes artTrack { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@keyframes artScan { 0% { transform: translateY(0); } 55% { transform: translateY(122px); } 80% { transform: translateY(122px); } 100% { transform: translateY(0); } }
@keyframes artSeg { 0%, 100% { transform: scaleX(0.55); } 50% { transform: scaleX(1); } }
@keyframes artRun { from { transform: translate(42px, 112px); } to { transform: translate(198px, 112px); } }
@keyframes artRing { 0% { transform: scale(0.6); opacity: 0.9; } 70% { transform: scale(2.4); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bt-scene { animation: none; opacity: 0; } .bt-scene:first-child { opacity: 1; }
  .art .art-draw, .art .art-pulse, .art .art-drop, .art .art-bar, .art .art-lift, .art .art-needle, .art .art-ball, .art .art-shadow, .art .art-speed line, .art .art-track rect, .art .art-scanline, .art .art-seg, .art .art-runner, .art .art-ring { animation: none; }
  .art .art-ring { opacity: 0; } .art .art-needle { transform: rotate(20deg); } .art .art-scanline { transform: translateY(60px); }
}

/* Fremdrift A–Å */
.bt-stepper { list-style: none; display: flex; align-items: center; gap: 0; margin: 4px 0 16px; padding: 10px 16px; background: #fff; border: 1px solid var(--card-border); border-radius: 999px; box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%; }
.bt-stepper li { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.bt-stepper li span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef1f6; font-size: 0.78rem; font-weight: 800; }
.bt-stepper li.on { color: var(--accent-dark); } .bt-stepper li.on span { background: var(--c-blue); color: #fff; box-shadow: 0 3px 10px rgb(var(--accent-rgb) / 0.4); }
.bt-stepper li.done { color: #0b6b4a; } .bt-stepper li.done span { background: #e3f6ee; color: #0b6b4a; }
.bt-stepper li.sep { width: 34px; height: 2px; background: var(--card-border); margin: 0 10px; border-radius: 1px; }

.bt-resume { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(120deg, #e3f6ee, #fff 70%); border: 1px solid rgba(31, 169, 113, 0.4); }
.bt-resume div { display: flex; flex-direction: column; } .bt-resume span { color: var(--muted); font-size: 0.88rem; }

/* Kategorikort med illustrasjon */
.bt-catgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; margin-top: 10px; }
.bt-catcard { border: 1.5px solid var(--card-border); border-radius: 24px; background: #fff; overflow: hidden; transition: transform 0.22s var(--ease-out), box-shadow 0.25s, border-color 0.2s; }
.bt-catcard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px color-mix(in srgb, var(--c) 24%, transparent); }
.bt-catcard.has { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.bt-catcard.open { grid-column: 1 / -1; }
.bt-catcard-main { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; position: relative; }
.bt-catcard-main:focus-visible { outline: 3px solid rgba(74, 63, 196, 0.55); outline-offset: -3px; border-radius: 22px; }
.bt-catart { display: block; height: 132px; margin: 10px 10px 0; padding: 8px 12px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 17%, #fff), #fff 82%); overflow: hidden; }
.bt-catart .art { width: 100%; height: 100%; }
.bt-catcard-txt { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 16px; }
.bt-catcard-txt b { font-size: 1.05rem; } .bt-catcard-txt .small { font-size: 0.78rem; }
.bt-chips.sel { margin: 6px 0 0; } .bt-chips.sel i { background: color-mix(in srgb, var(--c) 16%, #fff); border-color: var(--c); font-weight: 700; }
.bt-count { position: absolute; right: 20px; top: 20px; min-width: 38px; height: 28px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1.5px solid color-mix(in srgb, var(--c) 40%, #fff); color: var(--c); font-weight: 850; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(22, 32, 58, 0.1); }
.bt-count small { font-weight: 600; opacity: 0.7; font-size: 0.74rem; }
.bt-catcard.has .bt-count { background: var(--c); color: #fff; border-color: var(--c); }
.bt-catcard.open .bt-catcard-main { flex-direction: row; align-items: center; gap: 4px; }
.bt-catcard.open .bt-catart { width: 250px; flex: none; margin: 12px 0 0 12px; height: 140px; }
.bt-catcard.open .bt-catcard-txt { padding: 12px 70px 12px 18px; }
.bt-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 8px; padding: 6px 16px 18px; border-top: 1px solid var(--card-border); margin-top: 10px; padding-top: 14px; }
.bt-test-row { display: flex; align-items: center; gap: 6px; }
.bt-test-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--card-border); background: #fff; box-shadow: none; }
.bt-test-main:hover { border-color: var(--c); transform: none; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 20%, transparent); }
.bt-test.on .bt-test-main { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.bt-test-main .bt-check { position: static; flex: none; width: 20px; height: 20px; border-color: var(--c); }
.bt-test.on .bt-test-main .bt-check { background: var(--c); }
.bt-test-name { flex: 1; font-weight: 650; line-height: 1.25; font-size: 0.92rem; }
.bt-test-info { margin: 6px 4px 0 8px; padding: 10px 12px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 6%, #fff); border-radius: 0 12px 12px 0; font-size: 0.86rem; line-height: 1.5; }
.bt-test-info p { margin: 4px 0; }

/* Oppsummering (steg 3) */
.bt-done { display: flex; gap: 16px; align-items: center; margin: 4px 0 16px; padding: 18px 22px; border-radius: 22px; background: linear-gradient(120deg, #e3f6ee, #fff 75%); border: 1px solid rgba(31, 169, 113, 0.35); }
.bt-done h1 { margin: 0 0 4px; font-size: 1.5rem; } .bt-done p { margin: 0; }
.bt-done-ic { width: 52px; height: 52px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--c-green), var(--c-teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; box-shadow: 0 8px 20px rgba(31, 169, 113, 0.4); animation: fxPop 0.5s var(--ease-out); }
.bt-summary-peaks { margin-bottom: 8px; }
.bt-sessfoot .grow { flex: 1; }
.bt-sec-title { margin: 26px 0 8px; font-size: 1.2rem; }

@media (max-width: 900px) {
  .bt-hero3 { grid-template-columns: 1fr; padding: 22px 20px; gap: 20px; } .bt-hero3 h1 { font-size: 1.8rem; }
  .bt-stage { height: 250px; }
  .bt-catcard.open .bt-catcard-main { flex-direction: column; align-items: stretch; } .bt-catcard.open .bt-catart { width: auto; margin: 10px 10px 0; } .bt-catcard.open .bt-catcard-txt { padding: 12px 16px 14px; }
  .bt-stepper { padding: 8px 12px; } .bt-stepper li.sep { width: 18px; margin: 0 6px; } .bt-stepper li { font-size: 0.82rem; }
  @media (max-width: 360px) { .bt-stepper { padding: 8px 10px; } .bt-stepper li { gap: 5px; font-size: 0.78rem; } .bt-stepper li.sep { width: 10px; margin: 0 4px; } .bt-stepper li span { width: 21px; height: 21px; } }
}

/* Ny utøver direkte på forsiden */
.bt-ath.add { border-style: dashed; color: var(--accent-dark); background: transparent; }
.bt-ath.add .bt-av { background: var(--tint-blue); font-size: 1.1rem; line-height: 1; }
.bt-ath.add.on { border-style: solid; background: var(--tint-blue); }
.bt-newath { margin-top: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, var(--accent-soft), #fbfcff 70%); border: 1px solid var(--card-border); animation: fxPop 0.22s var(--ease-out); }
.bt-newath-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
.bt-newath label { display: flex; flex-direction: column; gap: 4px; font-size: 0.84rem; font-weight: 650; }
.bt-newath label.wide { grid-column: 1 / -1; }
.bt-newath p { margin: 10px 0 0; }

/* ===== Rapportlogo: PhysLabPerformance til venstre, organisasjonens logo til høyre ===== */
.rp-brandbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 16px; min-height: 44px; }
.rp-sheet .rp-brandbar .rp-logo, .rp-sheet.pdf-capture .rp-brandbar .rp-logo { position: static !important; right: auto !important; top: auto !important; margin: 0 !important; height: 36px; width: auto; display: block; }
.rp-org { background: #fff; border-radius: 12px; padding: 6px 12px; display: flex; align-items: center; justify-content: center; min-height: 44px; max-width: 46%; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
.rp-org-img { max-height: 36px; max-width: 200px; width: auto; height: auto; object-fit: contain; display: block; }
.rp-org-text { font-weight: 800; color: #2a3768; font-size: 0.92rem; line-height: 1.2; text-align: center; }
.rp-sheet.rp-lys .rp-org { box-shadow: none; border: 1px solid #dfe6f3; }
.rp-orgtoggle, .rp-orghint { margin: 8px 0 0; display: block; }
@media (max-width: 760px) { .rp-brandbar { margin-bottom: 12px; } .rp-org-img { max-width: 130px; max-height: 30px; } }
.settings-org-grid { display: grid; grid-template-columns: minmax(min(220px, 100%), 1fr) auto; gap: 12px 16px; align-items: end; margin: 8px 0; }
.settings-org-grid label:not(.import-btn) { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: 0.86rem; }
.settings-org-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.settings-org-prev { margin: 12px 0 4px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(125deg, #2a3768, #3f589e 60%, #4f8d98); }
.rp-prevhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.rp-prevlogo { height: 32px; width: auto; }
.settings-org-prev .checkbox { color: #fff; }
.settings-bullets { margin: 6px 0 12px; padding-left: 20px; line-height: 1.55; font-size: 0.92rem; }
.settings-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .settings-org-grid { grid-template-columns: 1fr; } }

/* ===== PhysLabPerformance: forside, testbibliotek og generell opprydding ===== */
body { background: radial-gradient(1100px 520px at 92% -8%, rgba(79, 143, 232, 0.16), transparent 62%), radial-gradient(900px 480px at -8% 2%, rgba(33, 179, 164, 0.11), transparent 58%), var(--bg); background-attachment: fixed; }
.brand-logo { height: 38px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 32px; } }
.page-head h1 { font-size: 1.95rem; letter-spacing: -0.025em; }
.page-head h1::after { content: ''; display: block; width: 46px; height: 4px; border-radius: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); }
.home-hero { background: linear-gradient(125deg, #121c3f 0%, #27438f 55%, #2f8f93 100%); border-radius: 28px; }
.bt-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.bt-hero-cta button { padding: 12px 22px; font-size: 1rem; border-radius: 14px; }

.bt-platform { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.bt-plat { background: #fff; border: 1px solid var(--card-border); border-radius: 20px; padding: 14px 18px; border-top: 5px solid var(--c); box-shadow: var(--lift); transition: transform 0.22s var(--ease-out), box-shadow 0.25s; }
.bt-plat:hover { transform: translateY(-3px); box-shadow: var(--lift-hover); }
.bt-plat b { display: block; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1.05; color: var(--c); font-variant-numeric: tabular-nums; }
.bt-plat span { color: var(--muted); font-size: 0.84rem; font-weight: 600; }

.bt-caps-wrap { margin: 26px 0 8px; }
.bt-caps-head h2 { margin: 0 0 4px; font-size: 1.45rem; letter-spacing: -0.02em; } .bt-caps-head h2::before { display: none; }
.bt-caps-head p { margin: 0 0 14px; color: var(--muted); }
.bt-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 14px; }
.bt-cap { background: linear-gradient(180deg, #fff, #fbfcff); border: 1px solid var(--card-border); border-radius: 24px; padding: 16px 18px 18px; box-shadow: var(--lift); transition: transform 0.22s var(--ease-out), box-shadow 0.25s; }
.bt-cap:hover { transform: translateY(-4px); box-shadow: 0 16px 36px color-mix(in srgb, var(--c) 24%, transparent); }
.bt-cap h3 { margin: 10px 0 6px; font-size: 1.05rem; } .bt-cap p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #44547a; }
.cap-art { width: 100%; height: 92px; display: block; padding: 8px 10px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 15%, #fff), #fff 80%); }
.cap-art .cap-bars rect { fill: var(--c); opacity: 0.55; transform-box: fill-box; transform-origin: bottom; animation: capGrow 3.2s var(--ease-out) infinite; } .cap-art .cap-bars rect:nth-child(2) { animation-delay: 0.15s; } .cap-art .cap-bars rect:nth-child(3) { animation-delay: 0.3s; } .cap-art .cap-bars rect.hl { opacity: 1; animation-delay: 0.45s; }
.cap-art .cap-star { fill: #E69F00; transform-box: fill-box; transform-origin: center; animation: artPulse 2.2s ease-in-out infinite; }
.cap-art .cap-axes path { fill: none; stroke: #16203a; opacity: 0.25; stroke-width: 2; stroke-linecap: round; }
.cap-art .cap-fvline { stroke: var(--c); stroke-width: 3; stroke-dasharray: 6 5; opacity: 0.8; stroke-linecap: round; }
.cap-art .cap-dot { fill: var(--c); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: artPulse 3s ease-in-out infinite; } .cap-art .cap-dot:nth-of-type(2) { animation-delay: 0.4s; } .cap-art .cap-dot:nth-of-type(3) { animation-delay: 0.8s; }
.cap-art .cap-ring { fill: none; stroke: #E69F00; stroke-width: 2.5; stroke-dasharray: 4 4; }
.cap-art .cap-doc { fill: #fff; stroke: #cfd8ee; stroke-width: 2; } .cap-art .cap-hd { fill: #27438f; } .cap-art .cap-logo { fill: #fff; } .cap-art .cap-logo.r { fill: var(--c); opacity: 0.9; } .cap-art .cap-ln { fill: #d9e1f3; } .cap-art .cap-bx { fill: var(--c); opacity: 0.4; }
@keyframes capGrow { 0% { transform: scaleY(0.15); } 30%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0.15); } }
@media (prefers-reduced-motion: reduce) { .cap-art .cap-bars rect, .cap-art .cap-star, .cap-art .cap-dot { animation: none; } }
.bt-teaser { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 16px 0 6px; padding: 20px 24px; border-radius: 24px; background: linear-gradient(125deg, var(--accent-soft), #e6f7f4); border: 1px solid var(--card-border); }
.bt-teaser h3 { margin: 0 0 4px; font-size: 1.15rem; } .bt-teaser p { margin: 0 0 10px; max-width: 560px; color: #44547a; }
.bt-samples { display: flex; gap: 6px; flex-wrap: wrap; } .bt-sample { border-radius: 999px; padding: 5px 14px; font-weight: 650; font-size: 0.84rem; background: #fff; }

/* Testbibliotek */
.bt-lib-hero { margin: 4px 0 16px; padding: 24px 28px; border-radius: 26px; color: #fff; background: linear-gradient(125deg, #121c3f 0%, #27438f 58%, #2f8f93 100%); box-shadow: 0 14px 34px rgba(42, 55, 104, 0.24); }
.bt-lib-hero h1 { color: #fff; margin: 4px 0 8px; font-size: 1.9rem; letter-spacing: -0.02em; } .bt-lib-hero p { margin: 0; opacity: 0.9; max-width: 640px; } .bt-lib-hero .home-eyebrow { color: rgba(255, 255, 255, 0.75); }
.bt-lib { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.bt-lib-nav { position: sticky; top: 76px; display: grid; gap: 10px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.bt-lib-cat { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 10px 10px 8px; }
.bt-lib-cath { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 0.82rem; padding: 2px 6px 6px; } .bt-lib-cath .bt-dot { background: var(--c); }
.bt-lib-item { display: block; width: 100%; text-align: left; border: none; background: transparent; box-shadow: none; padding: 7px 10px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; }
.bt-lib-item:hover { background: var(--tint-blue); transform: none; box-shadow: none; }
.bt-lib-item.on { background: color-mix(in srgb, var(--c) 14%, #fff); color: #16203a; box-shadow: inset 3px 0 0 var(--c); font-weight: 750; }
.bt-lib-detail { min-width: 0; }
.bt-lib-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; background: linear-gradient(180deg, #fff, #fbfcff); border: 1px solid var(--card-border); border-radius: 26px; padding: 18px 22px; box-shadow: var(--lift); border-left: 7px solid var(--c); }
.bt-lib-art { height: 140px; border-radius: 18px; padding: 8px 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 17%, #fff), #fff 80%); } .bt-lib-art .art { width: 100%; height: 100%; }
.bt-lib-catname { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.bt-lib-head h2 { margin: 2px 0 6px; font-size: 1.5rem; letter-spacing: -0.02em; } .bt-lib-head h2::before { display: none; }
.bt-lib-lead { margin: 0 0 8px; font-size: 1rem; line-height: 1.55; color: #33415f; }
.bt-lib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; margin: 14px 0; }
.bt-lib-card { background: #fff; border: 1px solid var(--card-border); border-radius: 22px; padding: 16px 20px; box-shadow: var(--shadow); margin: 0 0 14px; }
.bt-lib-grid .bt-lib-card { margin: 0; } .bt-lib-card.warn { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #f2dfae; }
.bt-lib-card h3 { margin: 0 0 8px; font-size: 1.02rem; } .bt-lib-card p, .bt-lib-card li { font-size: 0.92rem; line-height: 1.6; color: #33415f; } .bt-lib-card p { margin: 0; } .bt-lib-card ul { margin: 0; padding-left: 20px; } .bt-lib-card li { margin: 4px 0; }
.bt-lib-metrics { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 4px 18px; }
.bt-lib-metrics li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed #e4e9f6; } .bt-lib-metrics em { font-style: normal; color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.bt-lib-peak { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 1px 7px; border-radius: 999px; background: #fff3d6; color: #8a5a00; }
.bt-lib-refs { padding-left: 22px !important; } .bt-lib-refs li { font-size: 0.84rem; color: #44547a; }
@media (max-width: 900px) { .bt-lib { grid-template-columns: 1fr; } .bt-lib-nav { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .bt-lib-top { grid-template-columns: 1fr; } .bt-lib-art { height: 120px; } .bt-hero-cta button { flex: 1 1 140px; } }

/* Forkast og rydd bort økter */
.bt-resume-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bt-discard { background: transparent; color: var(--danger); border-color: rgba(230, 73, 59, 0.35); font-weight: 650; }
.bt-discard:hover { background: #fdeceb; border-color: var(--danger); color: var(--danger); box-shadow: none; }
.bt-recent-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; } .bt-recent-h h3 { margin: 0; font-size: 1rem; } .bt-recent-h .link { font-size: 0.84rem; color: var(--muted); }
.bt-sess { position: relative; padding: 0; display: block; }
.bt-sess-main { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 44px 10px 14px; width: 100%; border-radius: 14px; }
.bt-sess-main:focus-visible { outline: 3px solid rgba(74, 63, 196, 0.55); outline-offset: -3px; }
.bt-sess:hover { border-color: rgb(var(--accent-rgb) / 0.4); box-shadow: 0 8px 18px rgba(40, 70, 150, 0.12); }
.bt-sess .bt-more { position: absolute; right: 6px; top: 6px; margin: 0; }

/* ===== Felles visuelt system for hele appen: ikoner, tolkning, hovedfunn, grafer (battvisual.js) ===== */
.bt-ic { flex: none; vertical-align: -3px; }
.bt-icb { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 11px; color: var(--c, var(--accent)); background: var(--ct, #eef2fb); transition: transform 0.25s var(--ease-out), background 0.2s; }
button:hover > .bt-icb, summary:hover > .bt-icb, .bt-card:hover > summary > .bt-icb { transform: scale(1.08) rotate(-4deg); }
.bt-test-main .bt-icb { width: 28px; height: 28px; border-radius: 9px; }
.bt-card > summary .bt-icb { width: 30px; height: 30px; border-radius: 10px; }
.bt-lib-head h2 { display: flex; align-items: center; gap: 10px; }
.bt-lib-head h2 .bt-icb { width: 38px; height: 38px; }
.bt-lib-item { display: flex; align-items: center; gap: 8px; }
.bt-lib-item .bt-ic { color: var(--c); }
.bt-peak-label { display: inline-flex; align-items: center; gap: 6px; }
.bt-peak-label .bt-ic { color: var(--c); }

/* Tolkningsboks */
.bt-insight { margin: 14px 0 6px; padding: 12px 16px 12px; border-radius: 14px; background: linear-gradient(180deg, #f7f9ff, #f2f6fd); border: 1px solid var(--card-border, #dfe6f3); border-left: 5px solid var(--c, var(--accent)); }
.bt-insight-h { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bt-insight ul, .bt-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bt-insight li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 0.93rem; line-height: 1.45; }
.bt-tone { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.7rem; font-weight: 800; flex: none; margin-top: 1px; }
.t-good .bt-tone { background: #dff3ea; color: #00694a; }
.t-down .bt-tone { background: #fbe6d6; color: #8f3d00; }
.t-info .bt-tone { background: #e3ebfb; color: var(--accent-dark); }
.t-warn .bt-tone { background: #fff0c2; color: #7a5600; }
.bt-insight.compact li { font-size: 0.86rem; }

/* Hovedfunn */
.bt-findcard h2 { margin-bottom: 10px; }
.bt-findings li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--card-border, #dfe6f3); transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.bt-findings li:hover { transform: translateY(-2px); box-shadow: var(--lift, 0 8px 22px rgba(16,24,40,0.1)); }
.bt-fi { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; color: var(--c); background: var(--ct, #eef2fb); }
.bt-ftext { font-size: 0.94rem; line-height: 1.4; }
.bt-ftext b { margin-right: 4px; }
.bt-findings .t-good { border-left: 4px solid #009E73; }
.bt-findings .t-down { border-left: 4px solid #D55E00; }
.bt-findings .t-warn { border-left: 4px solid #E69F00; }
.bt-findings .t-info { border-left: 4px solid #8592b0; }

/* Felles grafstil: skygge fra forrige måling, hover og inntegning */
.btc-ghost { pointer-events: none; }
.btc-pt { transition: r 0.15s; transform-box: fill-box; transform-origin: center; }
.btc-pt:hover { transform: scale(1.5); }
.btc-bar { transition: filter 0.15s, opacity 0.15s; }
.btc-bar:hover { filter: brightness(1.12) saturate(1.1); }
.bt-chart svg:has(.btc-bar:hover) .btc-bar:not(:hover) { opacity: 0.72; }
@keyframes btc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes btc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes btc-pop { from { opacity: 0; } to { opacity: 1; } }
.bt-chart.anim .btc-main { stroke-dasharray: 1; stroke-dashoffset: 1; animation: btc-draw 1.1s var(--ease-out) 0.15s forwards; }
.bt-chart.anim .btc-dashed, .bt-chart.anim .btc-pt { animation: btc-pop 0.6s ease 0.5s backwards; }
.bt-chart.anim .btc-bar { transform-box: fill-box; transform-origin: bottom; animation: btc-grow 0.7s var(--ease-out) calc(var(--i, 0) * 60ms) backwards; }
@media (prefers-reduced-motion: reduce) {
  .bt-chart.anim .btc-main, .bt-chart.anim .btc-dashed, .bt-chart.anim .btc-pt, .bt-chart.anim .btc-bar { animation: none; stroke-dashoffset: 0; }
  .bt-icb, .bt-findings li { transition: none; }
}

/* Rapport: tolkning og funn skal være rolige og trykkvennlige */
.rp-sheet .bt-insight { break-inside: avoid; background: #f7f9fd; }
.rp-sheet .bt-findings li { break-inside: avoid; box-shadow: none; transform: none; }
.rp-sheet .bt-icb, .rp-sheet .bt-fi { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-cover-find { margin: 16px 0 6px; }
.rp-cover-find h3 { margin: 0 0 8px; font-size: 1.05rem; }

/* Laktat/VO2 i samme uttrykk som testbatteriet */
.findings-summary { border-left: 5px solid var(--c-blue, #0072B2); background: linear-gradient(180deg, #fbfcff, #f4f7fd); }
.findings-summary h2 { display: flex; align-items: center; gap: 10px; }
.findings-summary h2::before { content: ''; width: 30px; height: 30px; flex: none; border-radius: 10px; background: color-mix(in srgb, #0072B2 13%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230072B2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M3 20V4'/%3E%3Cpath d='M5 17c4 0 6-1 8-5s4-7 7-8'/%3E%3Ccircle cx='13' cy='12' r='1.6'/%3E%3C/svg%3E") center / 20px no-repeat; }
.trend-card .card-head h2, .kpi-row + .card h2 { letter-spacing: -0.01em; }

.btc-hit:hover { fill-opacity: 0.9 !important; }

/* ===== Bevegelsesanalyse (movementui.js) ===== */
.mv-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 8px; }
.mv-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 650; color: var(--muted); }
.mv-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; margin: 8px 0 12px; }
.mv-act { text-align: left; display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--card-border, #dfe6f3); border-top: 5px solid var(--c); background: #fff; cursor: pointer; transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.mv-act:hover { transform: translateY(-3px); box-shadow: var(--lift, 0 10px 24px rgba(16, 24, 40, 0.12)); }
.mv-act.on { background: var(--ct, #f4f8ff); box-shadow: 0 0 0 2px var(--c) inset; }
.mv-act b { font-size: 1.02rem; } .mv-act span { font-size: 0.86rem; color: var(--muted); line-height: 1.4; font-weight: 500; }
.mv-go { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.mv-file { position: relative; display: inline-flex; align-items: center; cursor: pointer; padding: 11px 18px; border-radius: 12px; font-weight: 700; }
.mv-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.mv-guide { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; font-size: 0.94rem; }
.mv-limits { background: #fafbff; border-left: 5px solid #8592b0; }
.mv-list { display: grid; gap: 10px; }
.mv-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--card-border, #dfe6f3); border-left: 5px solid var(--c); border-radius: 16px; background: #fff; transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.mv-row:hover { transform: translateY(-2px); box-shadow: var(--lift, 0 8px 22px rgba(16, 24, 40, 0.1)); }
.mv-row-b { display: grid; gap: 2px; min-width: 0; } .mv-row-a { display: flex; gap: 6px; }
.mv-thumb { width: 64px; height: 64px; border-radius: 12px; background: #f3f6fc; overflow: hidden; display: grid; place-items: center; } .mv-sk { width: 100%; height: 100%; display: block; }
.mv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(min(280px, 100%), 1fr); gap: 16px; align-items: start; }
.mv-canvas { width: 100%; height: auto; display: block; border-radius: 14px; background: #101828; }
.mv-canvas.aim { cursor: crosshair; outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.mv-scrub { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .mv-scrub input[type=range] { flex: 1; min-width: 0; }
.mv-meta, .mv-trim { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.mv-mks { display: grid; gap: 8px; }
.mv-mk { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--card-border, #dfe6f3); background: #fff; }
.mv-mk.arm { box-shadow: 0 0 0 2px var(--accent) inset; background: #f5f8ff; }
.mv-mk-t { display: grid; font-size: 0.9rem; } .mv-mk-t span { color: var(--muted); font-size: 0.78rem; } .mv-mk-t i { font-weight: 500; color: var(--muted); }
.mv-dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid; display: inline-block; }
.mv-mk-a { display: flex; gap: 6px; align-items: center; } .mv-ok { color: #00694a; font-weight: 800; }
.mv-scale { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; } .mv-scale label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.mv-start { width: 100%; margin-top: 12px; padding: 13px; font-size: 1rem; }
.mv-prog { display: flex; gap: 12px; align-items: center; margin-top: 12px; } .mv-prog-b { flex: 1; height: 12px; border-radius: 99px; background: #e6ecf8; overflow: hidden; } .mv-prog-b i { display: block; height: 100%; background: linear-gradient(90deg, #0072B2, #009E73); transition: width 0.15s; }
.mv-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 0.88rem; } .mv-tools label { display: inline-flex; align-items: center; gap: 6px; }
.mv-readout { font-weight: 800; color: #B34700; }
.mv-d { font-weight: 700; color: var(--accent-dark, var(--accent-dark)); }
.mv-rhero { --ct: #fff; } .mv-rh-i .bt-icb { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, 0.92); }
.mv-q summary { cursor: pointer; padding: 2px 0; }
.mv-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; } .mv-fig { margin: 0; border: 1px solid var(--card-border, #dfe6f3); border-radius: 14px; padding: 8px; background: #f7f9fd; break-inside: avoid; } .mv-fig svg { width: 100%; height: 200px; display: block; } .mv-fig figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 4px; }
.mv-viewer .mv-canvas { max-height: 70vh; object-fit: contain; }
@media (max-width: 860px) { .mv-grid { grid-template-columns: 1fr; } .mv-row { grid-template-columns: 52px 1fr; } .mv-row-a { grid-column: 1 / -1; } .mv-thumb { width: 52px; height: 52px; } }

.mv-file { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgb(var(--accent-rgb) / 0.3); transition: transform 0.15s, box-shadow 0.15s; } .mv-file:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgb(var(--accent-rgb) / 0.38); }
.mv-viewer .mv-canvas { background: #f3f6fc; max-width: 760px; margin: 0 auto; }

/* Bevegelsesanalyse som eget modulkort på forsiden */
.mv-module { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 22px; align-items: center; margin: 16px 0; padding: 20px 26px; border-radius: 24px; background: linear-gradient(135deg, #ffffff 0%, #f4f2fc 100%); border: 1px solid var(--card-border, #dfe6f3); border-left: 8px solid var(--c); box-shadow: var(--lift, 0 10px 28px rgba(16, 24, 40, 0.09)); color: #16203a; }
.mv-mod-art { color: #16203a; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #e8e6f6; padding: 6px; } .mv-mod-art svg { width: 100%; height: auto; display: block; }
.mv-mod-txt h2 { margin: 2px 0 8px; font-size: 1.6rem; letter-spacing: -0.02em; } .mv-mod-txt p { margin: 0 0 12px; max-width: 640px; line-height: 1.5; color: #44547a; }
.mv-mod-txt .home-eyebrow { color: var(--c); }
.mv-mod-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.mv-mod-txt .bt-chips i { display: inline-flex; align-items: center; gap: 6px; color: var(--c); }
.art .mv-bone { stroke: #16203a; stroke-width: 6; stroke-linecap: round; } .art .mv-m { stroke: #fff; stroke-width: 2.5; }
@media (max-width: 760px) { .mv-module { grid-template-columns: 1fr; padding: 16px; } .mv-mod-art { max-width: 280px; } }

/* ===== Polering: oversikt, resultater og navigasjon ved mye data ===== */
.bt-secnav { position: sticky; top: 62px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin: 0 0 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border: 1px solid var(--card-border, #dfe6f3); box-shadow: 0 6px 18px rgba(22, 32, 58, 0.08); -webkit-overflow-scrolling: touch; }
.bt-secnav button { flex: 0 0 auto; border: 0; background: transparent; box-shadow: none; padding: 7px 13px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bt-secnav button:hover { background: rgb(var(--accent-rgb) / 0.1); color: var(--accent-dark); }
[id^="sec-"] { scroll-margin-top: 130px; }
.bt-sec-title { margin: 26px 2px 10px; font-size: 1.25rem; }

/* Fold-ut-kort (alle verdier) */
.bt-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bt-fold > summary::-webkit-details-marker { display: none; }
.bt-fold .bt-fold-t h2 { margin: 0 0 2px; } .bt-fold .bt-fold-t { display: grid; gap: 2px; }
.bt-fold-b { flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: 0.86rem; color: var(--accent-dark); background: rgb(var(--accent-rgb) / 0.1); }
.bt-fold[open] .bt-fold-b::before { content: 'Skjul'; } .bt-fold[open] .bt-fold-b { font-size: 0; } .bt-fold[open] .bt-fold-b::before { font-size: 0.86rem; }
.bt-fold[open] > summary { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--card-border, #dfe6f3); }
.bt-fold h3 { margin: 4px 0 2px; font-size: 1rem; }

/* Velg test / filter */
.bt-pickcard { padding: 12px 14px; }
.bt-pick-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bt-pick { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.bt-pick button { border: 1.5px solid var(--card-border, #dfe6f3); background: #fff; box-shadow: none; border-radius: 999px; padding: 6px 12px; font-size: 0.86rem; font-weight: 700; color: var(--ink, #16203a); display: inline-flex; align-items: center; gap: 6px; }
.bt-pick button:hover { border-color: var(--c, var(--accent)); }
.bt-pick button.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; }
.bt-pick button b { font-size: 0.74rem; padding: 1px 6px; border-radius: 999px; background: rgba(22, 32, 58, 0.1); }
.bt-pick button.on b { background: rgba(255, 255, 255, 0.28); }
.bt-pick button .bt-dot { background: var(--c); }
.bt-pick button.on .bt-dot { background: #fff; }
.bt-pick-g { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 6px 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 8%, #fff); border-left: 4px solid var(--c); }
.bt-pick-g em { font-style: normal; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, #16203a); margin-right: 2px; }
.bt-pick-g button.on { background: var(--c); }
.bt-sparkgrid { margin-top: 10px; }
.bt-older { margin: -4px 0 18px; }
.bt-older > summary { cursor: pointer; padding: 10px 14px; border-radius: 14px; background: #eef2fb; font-weight: 700; color: var(--accent-dark); list-style: none; }
.bt-older > summary::-webkit-details-marker { display: none; }
.bt-older > summary::before { content: '▸'; display: inline-block; margin-right: 8px; transition: transform 0.2s; }
.bt-older[open] > summary::before { transform: rotate(90deg); }
.bt-older[open] > summary { margin-bottom: 12px; }
.bt-modgroup { margin-bottom: 8px; }

/* Toppresultat-flis: ren topplinje i stedet for buet kant, og merke som ikke flyter ut */
.bt-peak { border-top: 1px solid color-mix(in srgb, var(--c) 30%, #fff); overflow: hidden; }
.bt-peak::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.bt-peak-top { flex-wrap: wrap; row-gap: 6px; }
.bt-peak-label { min-width: 0; overflow-wrap: anywhere; }
.bt-radar { max-width: 640px; }
.bt-radar svg { width: 100%; height: auto; }
@media (max-width: 760px) { .bt-secnav { top: 54px; } .bt-pickcard { position: static; } [id^="sec-"] { scroll-margin-top: 110px; } .bt-pick-g { border-radius: 14px; } }
@media print { .bt-secnav, .bt-pickcard { display: none !important; } }
@media (max-width: 760px) {
  .bt-pickcard .bt-pick-h .hint { display: none; }
  .bt-pickcard .bt-pick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .bt-pickcard .bt-pick > * { flex: 0 0 auto; }
  .bt-pick-g { flex-wrap: nowrap; scroll-snap-align: start; }
  .bt-pick-g em { display: none; }
}

/* Bevegelsesanalyse: stående video ved siden av nøkkeltall, liggende video i full bredde */
.mv-split { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mv-split.wide { grid-template-columns: 1fr; }
.mv-split > .card { margin-bottom: 0; }
.mv-split:not(.wide) .mv-viewer { position: sticky; top: 74px; }
.mv-split:not(.wide) .mv-viewer .mv-canvas { max-height: 68vh; width: auto; max-width: 100%; margin: 0 auto; }
.mv-split:not(.wide) .mv-tools { font-size: 0.86rem; }
@media (max-width: 900px) { .mv-split { grid-template-columns: 1fr; } .mv-split:not(.wide) .mv-viewer { position: static; } }

/* ===== Biomekanikk-fanen ===== */
.mv-bio-sum { border-left: 6px solid var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, #fff), #fff 70%); }
.mv-bio-sum h2 { margin-top: 0; }
.mv-bio-sum ol, .mv-bio-ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.mv-bio-sum li::marker { font-weight: 800; color: var(--c); }
.mv-bio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.mv-bio-grid .mv-find { margin: 0; padding: 16px 18px; border-top: 4px solid var(--c); }
.mv-find-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.mv-find-i { flex: 0 0 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.mv-find-a { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #16203a); }
.mv-find h3 { margin: 0; font-size: 1.02rem; }
.mv-find p { margin: 0 0 10px; line-height: 1.5; font-size: 0.93rem; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-chips span { display: inline-flex; flex-direction: column; padding: 6px 12px; border-radius: 12px; background: #f1f5fc; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.mv-chips b { font-size: 1.1rem; color: #16203a; font-variant-numeric: tabular-nums; }
.mv-tablewrap { overflow-x: auto; margin: 8px -4px 0; padding: 0 4px 4px; }
.mv-bio-table { font-variant-numeric: tabular-nums; min-width: 640px; }
.mv-bio-table th small { display: block; font-weight: 600; color: var(--muted); }
.mv-bio-table thead th { font-size: 0.74rem; vertical-align: bottom; }
.mv-bio-table tbody th { text-align: left; white-space: nowrap; }
.mv-bio-table td { text-align: right; }
.mv-bio-table td.mv-out { background: #fff3d6; font-weight: 800; box-shadow: inset 3px 0 0 #E69F00; }
.mv-bio-table tr.mv-sum th, .mv-bio-table tr.mv-sum td { background: #eef2fb; font-weight: 700; }
.mv-bio-table tr.mv-sum:first-of-type th, .mv-bio-table tr.mv-sum:first-of-type td { border-top: 2px solid #c7cfe3; }
.mv-bfigs, .mv-figgrid { display: grid; gap: 16px; }
.mv-bfigs { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.mv-figgrid { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.mv-bfig { margin: 0; padding: 12px 14px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--card-border, #dfe6f3); }
.mv-bfig figcaption { display: grid; gap: 2px; margin-bottom: 6px; }
.mv-bfig figcaption b { font-size: 0.98rem; }
.mv-bfig figcaption span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.mv-qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mv-qc { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--card-border, #dfe6f3); border-left: 5px solid #009E73; background: #fff; }
.mv-qc.warn { border-left-color: #E69F00; background: #fffaf0; }
.mv-qc-v { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mv-qc-l { font-weight: 700; font-size: 0.86rem; display: flex; gap: 6px; align-items: center; }
.mv-qc-h { font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.mv-limits { display: grid; gap: 8px; padding-left: 20px; line-height: 1.5; }
.mv-playhead { pointer-events: none; transition: none; }
@media print { .mv-bfigs, .mv-figgrid { grid-template-columns: 1fr 1fr; } .mv-bio-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Bevegelsesanalyse: løftedata, sporingsmåte og sikkerhetsstripe ===== */
.mv-liftform { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; margin: 10px 0; }
.mv-liftform label { display: grid; gap: 4px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.mv-liftform input, .mv-liftform select { font-size: 0.95rem; }
.mv-liftform .mv-chk { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; font-weight: 600; }
.mv-liftform .mv-chk input { width: auto; }
.mv-lift-hint { grid-column: 1 / -1; margin: 0; }
.mv-liftdet { margin-bottom: 14px; border: 1px solid var(--card-border, #dfe6f3); border-radius: 14px; padding: 10px 14px; background: #fafcff; }
.mv-liftdet > summary { cursor: pointer; font-weight: 800; }
.mv-seg { display: flex; gap: 0; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--card-border, #dfe6f3); margin-bottom: 8px; }
.mv-seg button { flex: 1; border: 0; border-radius: 0; box-shadow: none; background: #fff; padding: 9px 10px; font-weight: 700; font-size: 0.86rem; }
.mv-seg button.on { background: var(--accent); color: #fff; }
.mv-pat { font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #eef2fb; color: var(--accent-dark); margin-right: 6px; }
.mv-confwrap { margin: 8px 0 2px; }
.mv-conf { display: flex; height: 14px; border-radius: 7px; overflow: hidden; cursor: pointer; border: 1px solid var(--card-border, #dfe6f3); }
.mv-conf i { flex: 1; } .mv-conf i.ok { background: #cfe9de; } .mv-conf i.warn { background: #E69F00; } .mv-conf i.bad { background: #D55E00; }
.mv-conf-t { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }

/* ===== Tilbake-knapp og forside ===== */
.backbar { margin: 0 0 12px; }
.backbar .back { display: inline-flex; align-items: baseline; gap: 8px; border: 1.5px solid var(--card-border, #dfe6f3); background: #fff; border-radius: 999px; padding: 8px 16px 8px 14px; font-weight: 800; font-size: 0.92rem; box-shadow: 0 2px 8px rgba(22, 32, 58, 0.06); color: var(--ink, #16203a); }
.backbar .back:hover { border-color: var(--accent); color: var(--accent-dark); }
.backbar .back small { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.bt-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; margin-top: 10px; }
.bt-mine-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--card-border, #dfe6f3); background: #fff; box-shadow: none; transition: transform 0.18s var(--ease-out), box-shadow 0.2s; }
.bt-mine-card:hover { transform: translateY(-2px); box-shadow: var(--lift, 0 8px 22px rgba(16,24,40,0.1)); }
.bt-mine-t { display: grid; gap: 2px; min-width: 0; } .bt-mine-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-mine-t i { font-style: normal; font-size: 0.7rem; padding: 1px 7px; border-radius: 999px; background: #eef2fb; color: var(--muted); margin-left: 4px; }
.bt-planhead { margin-top: 4px; }
@media print { .backbar { display: none !important; } }

/* ===== Bevegelsesanalyse: verktøy, sanntid, egne vinkler og lagrede bilder ===== */
.mv-events { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.mv-ev-h { font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.mv-events button { border: 1.5px solid var(--card-border, #dfe6f3); background: #fff; box-shadow: none; border-radius: 999px; padding: 5px 11px; font-size: 0.82rem; font-weight: 700; }
.mv-events button small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.mv-events button:hover { border-color: var(--accent); color: var(--accent-dark); }
.mv-now { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0; min-height: 44px; }
.mv-now span { display: inline-flex; flex-direction: column; padding: 5px 11px; border-radius: 12px; background: #f1f5fc; min-width: 64px; }
.mv-now small { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.mv-now b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.mv-marks { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 8px 0; font-size: 0.86rem; }
.mv-mark { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: #f9ecf4; }
.mv-timebasis { margin: 14px 0; padding: 12px 16px; border-radius: 14px; background: #f1f5fc; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.mv-tb-set { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; } .mv-tb-set input { width: 64px; }
.mv-custom .mv-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.mv-angform { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin: 10px 0; }
.mv-angform label { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.mv-ca { margin: 10px 0; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--card-border, #dfe6f3); border-left: 5px solid var(--c); }
.mv-ca-h { display: flex; justify-content: space-between; align-items: center; } .mv-ca-h i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.mv-shotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 10px; }
.mv-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--card-border, #dfe6f3); background: #fff; }
.mv-shot img { width: 100%; display: block; }
.mv-shot figcaption { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; padding: 8px 10px; font-size: 0.82rem; }
.bt-chart svg[data-seek] { cursor: ew-resize; touch-action: none; }

/* ===== Tester-fanen (liste + valgt test), testkart og tabeller ===== */
.bt-fold .card { box-shadow: none; border: 0; padding: 0; margin: 0 0 14px; background: transparent; }
.bt-tests { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.bt-tl { position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--card-border, #dfe6f3); box-shadow: 0 4px 16px rgba(22, 32, 58, 0.06); }
.bt-tl-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 8px; }
.bt-tl-g { margin-top: 8px; }
.bt-tl-h { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #16203a); padding: 4px 6px; }
.bt-tl-i { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; border: 1.5px solid transparent; background: transparent; box-shadow: none; border-radius: 12px; padding: 8px 10px; margin-bottom: 2px; }
.bt-tl-i:hover { background: color-mix(in srgb, var(--c) 8%, #fff); }
.bt-tl-i.on { background: color-mix(in srgb, var(--c) 12%, #fff); border-color: var(--c); }
.bt-tl-t { display: grid; gap: 1px; min-width: 0; } .bt-tl-t b { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bt-tl-t .bt-muted { font-size: 0.74rem; }
.bt-tl-v { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 0.95rem; text-align: right; } .bt-tl-v small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--muted); }
.bt-tphead { padding: 16px 18px 12px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, #fff), #fff 75%); border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); border-left: 6px solid var(--c); margin-bottom: 14px; }
.bt-tphead-t { display: flex; gap: 14px; align-items: center; } .bt-tphead h2 { margin: 0; } .bt-tphead .hint { margin: 2px 0 0; }
.bt-tpdates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.bt-tpdates button { border: 1.5px solid var(--card-border, #dfe6f3); background: #fff; box-shadow: none; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 0.84rem; }
.bt-tpdates button.on { background: var(--c); border-color: var(--c); color: #fff; } .bt-tpdates small { font-weight: 600; opacity: 0.8; }
.bt-tptabs { display: flex; gap: 4px; margin-top: 12px; border-bottom: 2px solid #e6ebf5; }
.bt-tptabs button { border: 0; background: transparent; box-shadow: none; border-radius: 10px 10px 0 0; padding: 9px 16px; font-weight: 800; color: var(--muted); margin-bottom: -2px; border-bottom: 3px solid transparent; }
.bt-tptabs button.on { color: var(--ink, #16203a); border-bottom-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.bt-devgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.bt-devc { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--card-border, #dfe6f3); border-top: 4px solid var(--c); background: #fff; box-shadow: none; }
.bt-devc.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.bt-devc-l { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.bt-devc-v { font-size: 1.6rem; font-weight: 850; font-variant-numeric: tabular-nums; } .bt-devc-v small { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.bt-tablewrap { overflow-x: auto; margin: 8px -4px 0; padding: 0 4px 4px; }
.bt-mx { font-variant-numeric: tabular-nums; min-width: 560px; } .bt-mx th:first-child, .bt-mx td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.bt-mx tbody th { text-align: left; font-weight: 700; } .bt-mx th small { display: block; font-weight: 600; color: var(--muted); }
.bt-mx td { text-align: right; } .bt-mx td.best { background: #e3f5ee; font-weight: 800; box-shadow: inset 3px 0 0 #009E73; }
.bt-mx td.bt-d.good { color: #00694a; font-weight: 800; } .bt-mx td.bt-d.bad { color: #a63a00; font-weight: 800; }
.bt-mx tr.bt-mx-h th { background: #eef2fb; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); position: static; }
.bt-mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.bt-mapt { position: relative; display: grid; gap: 3px; text-align: left; padding: 14px 16px 12px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, #fff), #fff 70%); box-shadow: 0 2px 6px rgba(22, 32, 58, 0.04); overflow: hidden; transition: transform 0.18s var(--ease-out), box-shadow 0.2s; }
.bt-mapt::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.bt-mapt:hover { transform: translateY(-3px); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 22%, transparent); }
.bt-mapt-top { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; } .bt-mapt-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-mapt-pr { color: #E69F00; font-size: 1rem; } .bt-mapt-n { margin-left: auto; font-size: 0.7rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(22, 32, 58, 0.08); }
.bt-mapt-val { font-size: 1.9rem; font-weight: 850; line-height: 1.1; font-variant-numeric: tabular-nums; } .bt-mapt-val small { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-left: 5px; }
.bt-mapt-sub { font-size: 0.74rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) { .bt-tests { grid-template-columns: 1fr; } .bt-tl { position: static; max-height: none; } }
.bt-tests > * { min-width: 0; } .bt-tl-i { min-width: 0; }
.bt-tl.mob { display: none; }
.bt-tl.mob > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 4px 4px 10px; font-size: 0.95rem; }
.bt-tl.mob > summary::-webkit-details-marker { display: none; } .bt-tl.mob > summary span { color: var(--accent-dark); font-weight: 800; font-size: 0.84rem; }
@media (max-width: 900px) { .bt-tl.desk { display: none; } .bt-tl.mob { display: block; position: static; max-height: none; } .bt-tp { overflow-x: hidden; } }
.bt-tptabs { overflow-x: auto; -webkit-overflow-scrolling: touch; } .bt-tptabs button { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 600px) { .bt-tptabs button { padding: 9px 12px; font-size: 0.9rem; } }

/* ===== Testleder-støtte: kom i gang, testdag-oversikt, advarsler og testark ===== */
.bt-guide { border-left: 6px solid var(--accent); background: linear-gradient(135deg, var(--accent-tint), #fff 70%); }
.bt-guide-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bt-guide-steps li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--card-border, #dfe6f3); }
.bt-guide-steps li.now { border-color: var(--accent); box-shadow: 0 4px 14px rgb(var(--accent-rgb) / 0.14); }
.bt-guide-steps li.done { opacity: 0.7; } .bt-guide-steps li div { display: grid; gap: 2px; } .bt-guide-steps li span { font-size: 0.86rem; color: var(--muted); }
.bt-guide-n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: #eef2fb; color: var(--accent-dark); }
.bt-guide-steps li.done .bt-guide-n { background: #009E73; color: #fff; } .bt-guide-steps li.now .bt-guide-n { background: var(--accent); color: #fff; }
.bt-gcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 14px 24px; margin-top: 8px; }
.bt-gsec h3 { margin: 4px 0 6px; } .bt-gsec ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.45; font-size: 0.93rem; }
.bt-daymx > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.bt-mxd { border-collapse: collapse; width: 100%; font-size: 0.9rem; } .bt-mxd th, .bt-mxd td { padding: 5px 8px; text-align: center; border-bottom: 1px solid #eef1f8; }
.bt-mxd thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); } .bt-mxd tbody th { text-align: left; } .bt-mxd tr.cur { background: var(--accent-tint); }
.bt-cell { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--card-border, #dfe6f3); background: #fff; box-shadow: none; font-weight: 800; padding: 0; }
.bt-cell.done { background: #e3f5ee; border-color: #009E73; color: #00694a; } .bt-cell.part { background: #fff3d6; border-color: #E69F00; color: #8a5a00; } .bt-cell.none { opacity: 0.4; } .bt-cell:hover { border-color: var(--accent); }
.bt-cell-n { font-weight: 800; color: var(--muted); }
.bt-remain { margin: 4px 0 10px; font-size: 0.88rem; color: var(--muted); }
.bt-nextbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: #e3f5ee; border: 1px solid #009E73; margin: 10px 0; font-weight: 700; color: #00694a; }
.bt-warn { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: #fff3d6; border: 1.5px solid #E69F00; margin: 8px 0; font-size: 0.9rem; line-height: 1.45; }
.bt-warn > span { flex: 0 0 24px; height: 24px; border-radius: 50%; background: #E69F00; color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
@media (pointer: coarse) { .bt-card input, .bt-card select, .bt-card button, .bt-cell { min-height: 46px; font-size: 1.02rem; } .bt-rt input { min-width: 72px; } }
.bt-sheets { display: grid; gap: 18px; }
.bt-sheet { background: #fff; border: 1px solid var(--card-border, #dfe6f3); border-radius: 14px; padding: 18px 22px; page-break-after: always; break-after: page; }
.bt-sheet-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid #16203a; padding-bottom: 6px; } .bt-sheet h2 { margin: 0; }
.bt-sheet-how { font-size: 0.86rem; color: #444; }
.bt-sheet-a { margin: 12px 0; padding-top: 8px; border-top: 1px dashed #b9c2d6; break-inside: avoid; }
.bt-sheet-an { display: flex; justify-content: space-between; gap: 10px; font-size: 1rem; } .bt-sheet-f { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; font-size: 0.86rem; }
.bt-blank { display: inline-block; border-bottom: 1.2px solid #16203a; height: 1.15em; vertical-align: baseline; margin: 0 2px; }
.bt-sheet-t { width: 100%; border-collapse: collapse; margin-top: 6px; } .bt-sheet-t th, .bt-sheet-t td { border: 1px solid #16203a; padding: 6px 8px; height: 26px; font-size: 0.8rem; text-align: left; } .bt-sheet-t th { background: #eef1f8; }
.bt-sheet-note { margin-top: 8px; font-size: 0.86rem; }
@media print { .bt-sheet { border: 0; padding: 0; } }
.bt-saved { font-weight: 700; color: var(--muted); transition: color 0.3s; } .bt-saved.flash { color: #009E73; }
.bt-sesstools { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.bt-clock { position: fixed; right: 16px; bottom: 90px; z-index: 60; width: 300px; max-width: calc(100vw - 32px); background: #fff; border: 1.5px solid var(--card-border, #dfe6f3); border-radius: 18px; box-shadow: 0 18px 50px rgba(22, 32, 58, 0.28); padding: 12px 14px 12px; display: none; }
.bt-clk-h { display: flex; justify-content: space-between; align-items: center; }
.bt-clk-t { font-size: 3rem; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 4px 0 8px; } .bt-clk-t.cd { color: #D55E00; } .bt-clk-t.end { color: #009E73; }
.bt-clk-b { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr; gap: 8px; } .bt-clk-b button { min-height: 46px; font-size: 0.95rem; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.bt-clk-cd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 0.8rem; font-weight: 700; color: var(--muted); } .bt-clk-cd button { padding: 5px 10px; font-size: 0.82rem; }
.bt-clk-laps { list-style: none; margin: 8px 0 0; padding: 0; max-height: 150px; overflow-y: auto; display: grid; gap: 4px; }
.bt-clk-laps li { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 10px; align-items: center; font-size: 0.86rem; padding: 4px 0; border-bottom: 1px solid #eef1f8; } .bt-clk-laps li b { font-variant-numeric: tabular-nums; } .bt-clk-laps li small { color: var(--muted); } .bt-clk-laps li button { grid-row: 2; font-size: 0.76rem; padding: 2px 4px; } .bt-clk-laps li button:nth-of-type(1) { grid-column: 1; } .bt-clk-laps li button:nth-of-type(2) { grid-column: 2; }
@media print { .bt-clock { display: none !important; } }
.bt-gs { width: 100%; border-collapse: collapse; } .bt-gs th { text-align: left; } .bt-gs th, .bt-gs td { padding: 8px 6px; border-bottom: 1px solid #eef1f8; } .bt-gs tr.cur { background: var(--accent-tint); } .bt-gs-a { text-align: right; white-space: nowrap; }

/* Egen start/stopp, egne punkter, tidslinje og stangbane */
.mv-tl-wrap { margin-top: 8px; }
.mv-tl { position: relative; height: 26px; border-radius: 8px; background: #eaf0fb; border: 1px solid var(--card-border, #dfe6f3); cursor: ew-resize; touch-action: none; overflow: hidden; }
.mv-tl-dim { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(120, 130, 155, 0.35) 0 5px, rgba(120, 130, 155, 0.18) 5px 10px); }
.mv-tl-edge { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #16203a; }
.mv-tl-ev { position: absolute; top: 5px; width: 10px; height: 16px; margin-left: -5px; border-radius: 3px; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(22, 32, 58, 0.25); }
.mv-tl-ev.man { height: 20px; top: 3px; box-shadow: 0 0 0 2px #16203a; }
.mv-tl-ph { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #16203a; text-decoration: none; pointer-events: none; }
.mv-tl-ph::before { content: ''; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top-color: #16203a; }
.mv-tl-l { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.mv-edit .mv-ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; border-top: 1px solid var(--card-border, #e5eaf4); }
.mv-edit .mv-ed-row:first-of-type { border-top: none; }
.mv-edit .mv-ed-row > b { min-width: 150px; }
.mv-ed-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.mv-ed-b { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.mv-ed-k { border-left: 6px solid var(--c); font-weight: 700; }
.mv-evs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 10px; }
.mv-ev { display: inline-flex; align-items: stretch; border: 1.5px solid var(--card-border, #dfe6f3); border-left: 6px solid var(--c); border-radius: 10px; background: #fff; overflow: hidden; }
.mv-ev.out { opacity: 0.55; }
.mv-ev button { border: none; background: transparent; box-shadow: none; border-radius: 0; padding: 6px 9px; font-size: 0.82rem; font-weight: 700; min-height: 0; }
.mv-ev button + button { border-left: 1px solid var(--card-border, #e5eaf4); }
.mv-ev button:hover { background: var(--tint-blue); transform: none; box-shadow: none; }
.mv-ev button small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.mv-ev button.x { color: var(--danger); }
.mv-path .card-head { flex-wrap: wrap; gap: 8px 14px; }
.mv-path-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 0.86rem; }
.mv-path-ctl label { display: inline-flex; align-items: center; gap: 6px; }
.mv-ed-lbl { color: var(--muted); font-weight: 600; }
.mv-pathsvg { max-width: 640px; margin: 0 auto; display: block; cursor: crosshair; touch-action: none; }
.mv-pathsel { padding: 0 0 8px; } .mv-pathsel button.on { background: var(--c-blue, var(--accent)); color: #fff; border-color: transparent; }
.mv-ph { font-variant-numeric: tabular-nums; } .mv-ph td, .mv-ph th { white-space: nowrap; }
@media print { .mv-pathsvg { max-width: 100%; } }

/* Bevegelsesanalyse: ryddigere analyseside (fane-seksjoner, punktlinje under videoen, bunnpunkt fra kneet) */
.mv-split { grid-template-columns: minmax(340px, 500px) minmax(0, 1fr); }
.mv-tl { height: 36px; background: #f1f5fc; }
.mv-tl-sp { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mv-tl-sp path { fill: none; stroke: #0072B2; stroke-width: 1.6; opacity: 0.55; stroke-linejoin: round; }
.mv-tl-ev { top: 7px; } .mv-tl-ev.man { top: 5px; height: 24px; }
.mv-tl-l { align-items: center; } .mv-tl-key { color: #0072B2; font-weight: 700; opacity: 0.85; }
.mv-meta { margin-top: 6px; }
.mv-pb { margin-top: 10px; display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #f6f8fd; border: 1px solid var(--card-border, #e3e9f5); }
.mv-pb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: space-between; }
.mv-pb-t { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .mv-pb-t b { color: var(--ink, #16203a); font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; margin-left: 4px; }
.mv-pb-b { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mv-pb button { padding: 7px 11px; font-size: 0.84rem; min-height: 0; border-radius: 10px; }
.mv-pb-find { font-weight: 800; } .mv-pb-find small { font-weight: 600; opacity: 0.85; margin-left: 4px; }
.mv-now { min-height: 0; margin: 10px 0 4px; } .mv-now:empty { display: none; }
.mv-now span { padding: 4px 10px; min-width: 56px; }
.mv-confwrap { margin-top: 6px; }
.mv-tooldet, .mv-more, .mv-howto { margin-top: 10px; border: 1px solid var(--card-border, #e3e9f5); border-radius: 12px; padding: 8px 12px; background: #fff; }
.mv-tooldet > summary, .mv-more > summary, .mv-howto > summary { cursor: pointer; font-weight: 750; font-size: 0.9rem; color: #33405f; }
.mv-more > summary span { display: inline-block; min-width: 20px; padding: 0 7px; margin-left: 6px; border-radius: 99px; background: #e8eefb; color: var(--accent-dark, var(--accent-dark)); font-size: 0.78rem; text-align: center; }
.mv-more[open], .mv-tooldet[open] { padding-bottom: 12px; } .mv-more .bt-tiles { margin-top: 10px; }
.mv-tooldet .mv-tools { margin-top: 8px; }
.mv-secs { padding-top: 6px; }
.mv-sectabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 -6px 16px; padding: 0 6px; border-bottom: 1.5px solid var(--card-border, #e3e9f5); scrollbar-width: none; }
.mv-sectabs::-webkit-scrollbar { display: none; }
.mv-sectabs button { flex: 0 0 auto; border: 0; background: transparent; box-shadow: none; border-radius: 10px 10px 0 0; padding: 11px 15px; font-weight: 700; font-size: 0.92rem; color: #5a6a8f; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.mv-sectabs button:hover { background: #f1f5fc; transform: none; box-shadow: none; color: var(--accent-dark, var(--accent-dark)); }
.mv-sectabs button.on { color: var(--accent-dark, var(--accent-dark)); border-bottom-color: var(--accent, var(--accent)); background: transparent; }
.mv-sec > .card, .mv-sec > .mv-edit, .mv-sec .mv-q.card { box-shadow: none; border: 0; padding: 0; margin: 0 0 12px; background: transparent; }
.mv-sec .mv-q.card { border: 1px solid var(--card-border, #e3e9f5); border-radius: 12px; padding: 8px 12px; background: #fff; }
.mv-sec .card-head h2 { font-size: 1.12rem; }
.mv-sec .mv-timebasis { margin: 0 0 12px; }
.mv-sec .bt-chart + .bt-chart { margin-top: 14px; }
@media (max-width: 900px) { .mv-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mv-pb-row { align-items: flex-start; } .mv-sectabs button { padding: 10px 12px; font-size: 0.88rem; } }
.mv-split:not(.wide) .mv-viewer .mv-canvas { max-height: 52vh; }
.mv-path-ctl .mv-seg { margin-bottom: 0; }
#toastHost { width: max-content; max-width: calc(100vw - 24px); }
.mv-scrub button { white-space: nowrap; }
@media (max-width: 480px) { .mv-scrub { gap: 6px; } .mv-scrub select { width: 92px; padding-left: 8px; padding-right: 22px; } .mv-scrub button { padding-left: 11px; padding-right: 11px; } }
@media (max-width: 480px) { .mv-scrub { flex-wrap: wrap; } .mv-scrub input[type=range] { order: 5; flex: 1 1 100%; } .mv-scrub select { width: 108px; } .mv-scrub button:first-child { margin-right: auto; } }
.bt-sessfoot .bt-more.up .bt-more-p { left: auto; right: 0; }
.mv-ev { max-width: 100%; }
@media (max-width: 560px) { .mv-ev { flex-wrap: wrap; width: 100%; } .mv-ev .mv-ev-l { flex: 1 1 100%; text-align: left; border-bottom: 1px solid var(--card-border, #e5eaf4); } .mv-ev button:not(.mv-ev-l) { flex: 1 1 auto; } .mv-ev button + button { border-left: 1px solid var(--card-border, #e5eaf4); } }

/* ===== Graf-inspektør (chartinspect.js): hårkors, kort ved musen og avlesning under grafen ===== */
.ci-card { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; opacity: 0; visibility: hidden; max-width: min(430px, 94vw); padding: 11px 13px 9px; border-radius: 14px; color: var(--accent-soft); background: rgba(18, 26, 48, 0.96); box-shadow: 0 14px 40px rgba(10, 18, 40, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset; backdrop-filter: blur(10px); font-size: 12.5px; line-height: 1.35; font-variant-numeric: tabular-nums; transition: opacity 0.12s ease; }
.ci-card.on { opacity: 1; visibility: visible; }
.ci-card .ci-t { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.ci-card .ci-t span { color: #aebbe0; font-weight: 600; }
.ci-card .ci-t b { font-size: 1.05rem; letter-spacing: -0.01em; }
.ci-card table, .ci-ro table { border-collapse: collapse; width: 100%; }
.ci-card th { text-align: right; color: #8fa0cf; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 0 3px 12px; }
.ci-card td { padding: 2.5px 0 2.5px 12px; text-align: right; white-space: nowrap; }
.ci-card td.ci-n, .ci-ro td.ci-n { text-align: left; padding-left: 0; color: #cdd8f5; white-space: nowrap; }
.ci-card td b { font-size: 13.5px; }
.ci-card small { color: #9fb0dc; font-size: 11px; }
.ci-card tr.ci-gh td { opacity: 0.8; }
.ci-card tr.ci-df td { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 5px; }
.ci-card .ci-hint { margin-top: 6px; color: #8fa0cf; font-size: 10.5px; }
.ci-card em, .ci-ro em { font-style: normal; font-weight: 700; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; margin-left: 2px; }
.ci-card .ci-pk, .ci-ro .ci-pk { background: rgba(31, 169, 113, 0.28); color: #8ef0c4; }
.ci-card .ci-lo, .ci-ro .ci-lo { background: rgba(86, 180, 233, 0.28); color: #a8dcf6; }
.ci-sw { vertical-align: middle; margin-right: 7px; }
.ci-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.ci-ip { cursor: help; }

.ci-ro { margin: 6px 0 14px; padding: 10px 14px 8px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, #ffffff, var(--accent-tint)); box-shadow: var(--shadow-sm); font-size: 0.85rem; animation: ciIn 0.25s ease both; font-variant-numeric: tabular-nums; }
@keyframes ciIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ci-ro-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.ci-ro-h b { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ci-ro-b { display: inline-flex; gap: 6px; }
.ci-ro-b button { font-size: 0.75rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--accent-dark); cursor: pointer; font-weight: 600; }
.ci-ro-b button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ci-ro-x { margin-bottom: 6px; color: var(--muted); }
.ci-ro-x b { color: var(--text); }
.ci-ab { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; background: #16203a; color: #fff; font-size: 11px; font-weight: 800; }
.ci-ab.b { background: #D55E00; }
.ci-dx { margin-left: 8px; font-weight: 700; color: var(--accent-dark); }
.ci-ro-w { overflow-x: auto; }
.ci-ro th { text-align: right; color: var(--muted); font-size: 0.72rem; font-weight: 600; padding: 0 0 4px 14px; white-space: nowrap; }
.ci-ro td { padding: 4px 0 4px 14px; text-align: right; white-space: nowrap; border-top: 1px solid var(--border); }
.ci-ro td.ci-n { color: var(--text); font-weight: 600; }
.ci-ro small { color: var(--muted); }
.ci-ro tr.ci-df td { background: rgb(var(--accent-rgb) / 0.06); }

svg.btc[data-ci] { cursor: crosshair; }
svg.btc[data-ci] [data-ci-i] { cursor: pointer; }
svg.btc[data-ci][data-seek] { cursor: pointer; }
svg[data-ci]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.ci-hl.hov { stroke: rgba(22, 32, 58, 0.5); stroke-width: 1.2; stroke-dasharray: 3 3; }
.ci-hl.pin { stroke: #16203a; stroke-width: 1.8; }
.ci-tag rect { fill: #16203a; }
.ci-tag.b rect { fill: #D55E00; }
.ci-tag text { fill: #fff; font-size: 11px; font-weight: 800; }
svg.btc.ci-has [data-ci-i].btc-bar:not(.ci-on), svg.btc.ci-has rect[data-ci-i]:not(.btc-col):not(.btc-bar):not(.ci-on) { opacity: 0.42; }
svg.btc [data-ci-i].ci-pin.btc-bar { stroke: #16203a; stroke-width: 2.4; }
svg.btc .btc-bar, svg.btc rect[data-ci-i] { transition: opacity 0.15s ease; }
.ci-canvas { cursor: crosshair; }
@media (max-width: 560px) { .ci-ro { padding: 8px 10px; } .ci-ro td, .ci-ro th { padding-left: 9px; } }
@media print { .ci-card, .ci-ro, .ci-ov { display: none !important; } }

/* ===== Signatur ===== */
.app-credit { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 44px auto 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.74rem; letter-spacing: 0.02em; opacity: 0.72; transition: opacity 0.2s ease; }
.app-credit:hover { opacity: 1; }
.app-credit img { opacity: 0.8; }
.app-credit b { font-weight: 650; color: var(--text); }
.auth-wrap { flex-direction: column; gap: 22px; }
.auth-wrap .app-credit { border-top: 0; margin-top: 0; padding-top: 0; }
.nav-credit { padding: 8px 14px 4px; font-size: 0.7rem; line-height: 1.35; color: var(--muted); text-align: left; }
.ci-tip { margin: -4px 0 12px; font-size: 0.72rem; color: var(--muted); text-align: center; opacity: 0.85; }
.ci-tip span::before { content: "◎ "; color: var(--accent); }
@media print { .ci-tip { display: none; } }

/* ===== Demotur ===== */
.tour-card { position: fixed; left: 50%; bottom: 22px; z-index: 9000; width: min(460px, calc(100vw - 24px)); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; padding: 14px 18px 14px; border-radius: 20px; color: var(--accent-soft); background: linear-gradient(160deg, rgba(23, 36, 74, 0.97), rgba(18, 26, 48, 0.97)); box-shadow: 0 22px 60px rgba(10, 18, 40, 0.45), 0 0 0 1px rgba(255,255,255,0.1) inset; backdrop-filter: blur(12px); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.9,.3,1.1); }
.tour-card.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-n { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9fb0dc; font-weight: 700; }
.tour-x { background: none; border: 0; color: #9fb0dc; font-size: 1rem; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.tour-x:hover { color: #fff; background: rgba(255,255,255,0.12); }
.tour-card h3 { margin: 4px 0 4px; font-size: 1.12rem; color: #fff; }
.tour-card p { margin: 0 0 10px; font-size: 0.88rem; line-height: 1.45; color: #cdd8f5; }
.tour-dots { display: flex; gap: 6px; margin-bottom: 12px; }
.tour-dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.18); transition: background 0.2s ease, width 0.2s ease; }
.tour-dots i.done { background: rgba(142, 240, 196, 0.6); }
.tour-dots i.on { background: #6f93ff; width: 34px; }
.tour-b { display: flex; justify-content: space-between; gap: 10px; }
.tour-b button { flex: 1; padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; font-weight: 650; cursor: pointer; font-size: 0.9rem; }
.tour-b button:hover:not(:disabled) { background: rgba(255,255,255,0.16); }
.tour-b button:disabled { opacity: 0.35; cursor: default; }
.tour-b button.primary { background: linear-gradient(135deg, #5b7dff, var(--accent)); border-color: transparent; }
@media (max-width: 560px) { .tour-card { bottom: 10px; padding: 12px 14px; } }
@media print { .tour-card { display: none !important; } }
.tour-card { bottom: 78px; }
@media (min-width: 1000px) { .tour-card { left: 24px; bottom: 22px; width: 390px; transform: translate(0, 24px); } .tour-card.on { transform: none; } }

/* Autolagring i testtabellene */
.as-saved { display: inline-block; margin-left: 10px; font-size: 0.85rem; }
.bt-saved.pending { color: #E69F00; }

/* Økonomi-kort (løpeøkonomi / sykkeleffektivitet) */
.eco-card { overflow: hidden; }
.eco-hero { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 22px; align-items: center; margin: 6px 0 16px; }
.eco-hero-h { display: flex; flex-direction: column; gap: 2px; }
.eco-hero-h span { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.eco-hero-h b { font-size: 2.6rem; line-height: 1.05; color: var(--c, #14213d); font-variant-numeric: tabular-nums; }
.eco-hero-h b small { font-size: 0.9rem; font-weight: 600; margin-left: 6px; color: var(--muted); }
.eco-hero-h em { font-style: normal; font-weight: 700; color: var(--muted); font-size: 0.88rem; }
.eco-gauge { padding: 26px 8px 4px; min-width: 0; }
.eco-g-track { position: relative; height: 16px; border-radius: 10px; background: #e6edfb; overflow: visible; }
.eco-g-track i { position: absolute; top: 0; bottom: 0; opacity: 0.85; }
.eco-g-track i:first-child { border-radius: 10px 0 0 10px; } .eco-g-track i:last-child { border-radius: 0 10px 10px 0; }
.eco-g-mark { position: absolute; top: -5px; width: 4px; height: 26px; margin-left: -2px; background: #14213d; border-radius: 3px; box-shadow: 0 0 0 2px #fff; transition: left 0.9s cubic-bezier(.2,.8,.2,1); }
.eco-g-mark em { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--c, #14213d); color: #fff; font-style: normal; font-weight: 800; font-size: 0.8rem; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.eco-g-labels { position: relative; height: 18px; margin-top: 8px; }
.eco-g-labels span { position: absolute; transform: translateX(-50%); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.eco-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.eco-tile { background: #f4f7fd; border: 1px solid #e1e8f5; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.eco-tile span { font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.eco-tile b { font-size: 1.45rem; font-variant-numeric: tabular-nums; color: #14213d; }
.eco-tile b small { font-size: 0.72rem; margin-left: 4px; color: var(--muted); font-weight: 600; }
.eco-tile em { font-style: normal; font-size: 0.76rem; color: var(--muted); }
.eco-fixed { margin: 4px 0 12px; }
.eco-fixed-h { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.eco-fixed-row { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-fixed-row div { background: #fff; border: 1px solid #dfe6f3; border-radius: 10px; padding: 6px 12px; display: flex; flex-direction: column; min-width: 78px; }
.eco-fixed-row span { font-size: 0.72rem; color: var(--muted); } .eco-fixed-row b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.eco-warn { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; font-size: 0.82rem; color: #8a5a00; }
.eco-card.compact .eco-hero { margin-bottom: 6px; }
@media (max-width: 720px) { .eco-hero { grid-template-columns: 1fr; gap: 6px; } .eco-hero-h b { font-size: 2.2rem; } }

/* Utøversenter (forsiden), Start test-knapp og lag */
.nav-start { background: linear-gradient(135deg, var(--accent), #5b8cff); color: #fff; border: 0; border-radius: 12px; padding: 8px 14px; font-weight: 800; letter-spacing: 0.01em; cursor: pointer; box-shadow: 0 6px 16px rgb(var(--accent-rgb) / 0.35); white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s; }
.nav-start:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgb(var(--accent-rgb) / 0.45); }
@media (max-width: 640px) { .nav-start { padding: 8px 10px; font-size: 0.85rem; } }
button.big { padding: 12px 22px; font-size: 1.02rem; border-radius: 14px; }
button.sm { padding: 5px 10px; font-size: 0.8rem; border-radius: 9px; }
.ro-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.ro-head h1 { margin: 2px 0 4px; }
.ro-head-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ro-follow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff7e8; border: 1px solid #f3d9a4; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.ro-tools { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 6px 0 10px; }
.ro-tools .search-box { flex: 1 1 220px; min-width: 0; }
.ro-tools label { display: flex; flex-direction: column; gap: 2px; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.ro-view { display: inline-flex; border: 1px solid var(--card-border, #dfe6f3); border-radius: 12px; overflow: hidden; }
.ro-view button { border: 0; border-radius: 0; background: #fff; padding: 8px 14px; }
.ro-view button.on { background: var(--c-blue, var(--accent)); color: #fff; }
.ro-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.ro-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--card-border, #dfe6f3); background: #fff; font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.ro-chip span { background: #eef2fb; color: var(--muted); border-radius: 999px; padding: 0 7px; font-size: 0.74rem; line-height: 18px; }
.ro-chip.on { background: var(--c-blue, var(--accent)); border-color: var(--c-blue, var(--accent)); color: #fff; }
.ro-chip.on span { background: rgba(255, 255, 255, 0.25); color: #fff; }
.ro-selbar { font-size: 0.85rem; color: var(--muted); margin: 2px 0 10px; }
.ro-bulk { position: sticky; top: 64px; z-index: 5; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid #cdd9fb; border-radius: 14px; padding: 10px 14px; margin: 4px 0 12px; box-shadow: 0 8px 18px rgb(var(--accent-rgb) / 0.12); }
.ro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.ro-card { position: relative; border: 1px solid var(--card-border, #dfe6f3); border-radius: 20px; background: linear-gradient(180deg, #fff, #fbfcff); padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.ro-card:hover, .ro-card:focus-visible { transform: translateY(-4px); box-shadow: var(--lift-hover, 0 14px 30px rgba(20, 33, 61, 0.14)); border-color: rgb(var(--accent-rgb) / 0.45); outline: none; }
.ro-card.on { border-color: var(--c-blue, var(--accent)); box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / 0.25); }
.ro-check { position: absolute; top: 12px; right: 12px; }
.ro-check input { width: 18px; height: 18px; cursor: pointer; }
.ro-top { display: flex; align-items: center; gap: 12px; padding-right: 26px; }
.ro-name { display: flex; flex-direction: column; min-width: 0; }
.ro-name b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-mid { display: flex; justify-content: space-between; align-items: center; font-size: 0.86rem; }
.ro-due { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 0.78rem; }
.ro-due.ok { background: #dff5ec; color: #00694a; } .ro-due.soon { background: #fff1d6; color: #8a5a00; } .ro-due.late { background: #fde3d3; color: #a63f00; } .ro-due.none { background: #eceff5; color: #5b6783; }
.ro-acts { display: flex; gap: 8px; margin-top: 2px; }
.ro-link { text-align: left; }
.team-table td, .team-table th { text-align: right; } .team-table td:first-child, .team-table th:first-child { text-align: left; }
.team-table td { font-variant-numeric: tabular-nums; }
.team-table tfoot th, .team-table tfoot td { background: #f4f7fd; }
.bt-teamchips { margin: 0 0 10px; }
@media (max-width: 720px) { .ro-head-acts { width: 100%; } .ro-head-acts button { flex: 1; } }

/* Bevegelsesanalyse: kompakt topp, video som står stille og alt annet i én kolonne ved siden av */
.mv-rhero { padding: 12px 18px !important; min-height: 0 !important; gap: 14px; }
.mv-rhero h1 { font-size: 1.35rem; margin: 0; }
.mv-rhero .home-eyebrow { display: none; }
.mv-rhero .hero-meta { margin-top: 4px; gap: 6px; }
.mv-rhero .hero-meta span { font-size: 0.72rem; padding: 2px 8px; }
.mv-rhero .mv-rh-i { transform: scale(0.8); transform-origin: left center; }
.mv-rightcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mv-rightcol > .card { margin-bottom: 0; }
.mv-split:not(.wide) { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); }
.mv-split:not(.wide) .mv-viewer { top: 72px; max-height: calc(100vh - 86px); overflow-y: auto; }
.mv-split:not(.wide) .mv-viewer .mv-canvas { max-height: 46vh; }

/* Bluetooth-sensorer */
.ble-card summary { cursor: pointer; }
.ble-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.ble-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 8px 0; }
.ble-fill { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0; }
.ble-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; align-items: end; }
.ble-raw { background: #101828; color: #b9f3d6; border-radius: 10px; padding: 10px; font-size: 0.8rem; overflow-x: auto; min-height: 2.2em; }

/* Prestasjon fra video */
.mp-wrap { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.mp-wrap > .card { margin-bottom: 0; }
.mp-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border: 0; color: #fff; background: linear-gradient(135deg, #14213d, color-mix(in srgb, var(--c, var(--accent)) 70%, #14213d)); box-shadow: 0 18px 40px rgba(20, 33, 61, 0.25); overflow: hidden; position: relative; }
.mp-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%); }
.mp-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }
.mp-big { font-size: 3.6rem; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mp-big small { font-size: 1rem; font-weight: 700; margin-left: 8px; opacity: 0.8; }
.mp-sub { opacity: 0.95; }
.mp-hero-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; position: relative; z-index: 1; }
.mp-chip { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); }
.mp-chip.good { background: rgba(0, 200, 140, 0.28); } .mp-chip.warn { background: rgba(255, 150, 60, 0.35); }
.mp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.mp-tile { background: #fff; border: 1px solid var(--card-border, #dfe6f3); border-top: 4px solid var(--c); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 16px rgba(20, 33, 61, 0.06); }
.mp-tile span { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.mp-tile b { font-size: 1.7rem; font-variant-numeric: tabular-nums; color: #14213d; }
.mp-tile b small { font-size: 0.74rem; margin-left: 5px; color: var(--muted); font-weight: 600; }
.mp-tile em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.mp-ins { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-ins li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: #f4f7fd; border-left: 4px solid #8ea3d9; }
.mp-ins li i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #8ea3d9; color: #fff; font-style: normal; font-weight: 900; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.mp-ins li.good { background: #eaf8f2; border-color: #00A86B; } .mp-ins li.good i { background: #00A86B; }
.mp-ins li.warn { background: #fff4e6; border-color: #E69F00; } .mp-ins li.warn i { background: #E69F00; }
.mp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.mp-two > .card { margin-bottom: 0; min-width: 0; }
.mp-reps td, .mp-reps th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-bar { position: relative; background: #eef1f6; border-radius: 8px; height: 24px; min-width: 130px; overflow: hidden; }
.mp-bar span { position: absolute; left: 0; top: 0; bottom: 0; opacity: 0.8; border-radius: 8px; }
.mp-bar em { position: absolute; left: 9px; line-height: 24px; font-style: normal; font-weight: 800; font-size: 0.8rem; color: #14213d; }
.mp-warn { color: #B34700; font-weight: 800; }
.mp-lvtxt { margin-top: 6px; }
.mp-empty { text-align: center; padding: 30px 20px; }

/* Forsiden (Hjem): arbeidsflate først */
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.hm-head h1 { margin: 2px 0 2px; }
.hm-head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-go-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.hm-go { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line, #dfe5ee); background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 60, .05); cursor: pointer; }
.hm-go:hover { border-color: #8fa4ff; box-shadow: 0 4px 14px rgba(60, 80, 200, .12); transform: translateY(-1px); }
.hm-go-i { font-size: 1.4rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #eef1ff; }
.hm-go.c1 .hm-go-i { background: #e3f6ee; } .hm-go.c3 .hm-go-i { background: #fff3df; } .hm-go.c4 .hm-go-i { background: #fde8ee; }
.hm-go-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-go-t b { font-size: 1.02rem; }
.hm-go-t em { font-style: normal; font-size: .84rem; color: var(--muted, #5b6679); }
.hm-focus { margin-bottom: 16px; }
.hm-f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.hm-f-col h3 { margin: 0 0 2px; }
.hm-f-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line, #e6ebf3); }
.hm-f-row span { display: block; font-size: .82rem; color: var(--muted, #5b6679); }
.hm-about { margin: 18px 0 8px; }
.hm-about > summary { cursor: pointer; font-weight: 600; padding: 10px 14px; border-radius: 12px; background: #f3f5fa; list-style: none; }
.hm-about > summary::before { content: '▸ '; }
.hm-about[open] > summary::before { content: '▾ '; }

/* =====================================================================================
   TEMA 3: mørk topplinje, rolige flater og ÉN aksentfarge (fire valgbare tema via data-theme).
   Sonefarger og diagramfarger er med vilje urørt: de bærer mening og er valgt for fargesvakhet.
   ===================================================================================== */
:root, :root[data-theme="midnatt"] {
  --accent: #0b8a83; --accent-dark: #076b66; --accent-rgb: 11 138 131; --accent-soft: #e0f3f1; --accent-tint: #f1f9f8; --accent-bright: #37dccb;
  --ink: #0b1322; --ink-2: #14203a; --cta: #ffbf3f; --cta-ink: #2b1b00;
  --bg: #f3f5f9; --border: #e0e5ed; --card-border: #e0e5ed; --text: #121a2b; --muted: #5d6a80;
  --radius: 16px; --shadow: 0 1px 2px rgba(11, 19, 34, .04), 0 8px 24px rgba(11, 19, 34, .06);
}
:root[data-theme="fjord"] { --accent: #3558e6; --accent-dark: #2440b8; --accent-rgb: 53 88 230; --accent-soft: #e6ecff; --accent-tint: #f4f6ff; --accent-bright: #93abff; }
:root[data-theme="skog"] { --accent: #2b7a4b; --accent-dark: #1d5c36; --accent-rgb: 43 122 75; --accent-soft: #e2f3e9; --accent-tint: #f2faf5; --accent-bright: #86e3a6; --cta: #f4c542; }
:root[data-theme="solnedgang"] { --accent: #c8501d; --accent-dark: #9d3b11; --accent-rgb: 200 80 29; --accent-soft: #fdebe1; --accent-tint: #fff6f1; --accent-bright: #ffa56e; --cta: #ffd166; }

body { background: radial-gradient(1200px 380px at 50% -120px, rgb(var(--accent-rgb) / 0.10), transparent 70%), var(--bg); font-family: -apple-system, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -0.003em; }
h1 { font-size: 1.75rem; letter-spacing: -0.025em; }
h2 { letter-spacing: -0.012em; }
.container { max-width: 1120px; }

/* Topplinje */
.topnav { background: linear-gradient(180deg, var(--ink), var(--ink-2)); border-bottom: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 10px 30px rgba(8, 14, 30, .28); backdrop-filter: none; padding: 10px 22px; }
.topnav .tabs { background: rgba(255, 255, 255, .07); padding: 4px; border-radius: 14px; }
.topnav .tab { color: rgba(255, 255, 255, .72); padding: 8px 16px; border-radius: 11px; font-weight: 600; }
.topnav .tab:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.topnav .tab.active, .topnav .tab.active:hover { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.topnav .nav-icon, .topnav .nav-menu > summary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.topnav .nav-icon:hover, .topnav .nav-menu > summary:hover { background: rgba(255, 255, 255, .16); }
.topnav .nav-menu[open] > summary { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .3); }
.topnav .nav-kbd, .topnav .cloud-status { color: rgba(255, 255, 255, .6); }
.topnav .brand-logo { filter: none; height: 36px; }
.topnav .brand:hover .brand-logo { filter: drop-shadow(0 4px 14px rgb(var(--accent-bright) / 0.5)); }
.nav-start { background: var(--cta); color: var(--cta-ink); box-shadow: 0 6px 18px rgba(255, 191, 63, .35); border-radius: 12px; font-weight: 800; }
.nav-start:hover { box-shadow: 0 10px 26px rgba(255, 191, 63, .5); }
.nav-panel { border-radius: 18px; }

/* Knapper og flater */
button.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgb(var(--accent-rgb) / 0.32); }
button.primary:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); box-shadow: 0 8px 22px rgb(var(--accent-rgb) / 0.42); }
button { border-radius: 11px; padding: 9px 16px; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / 0.45); outline-offset: 2px; }
.card { border-radius: 18px; border-color: var(--card-border); }
.subnav { background: #e8ecf3; border-radius: 14px; }
.subtab.active { color: var(--accent-dark); }

/* Forside */
.hm-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 32px; margin: 6px 0 18px; color: #fff; background:
  radial-gradient(520px 260px at 92% -10%, rgb(var(--accent-rgb) / 0.55), transparent 70%),
  radial-gradient(420px 240px at 8% 120%, rgba(255, 191, 63, .22), transparent 70%),
  linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 55%, #1c2d52 100%);
  box-shadow: 0 24px 60px rgba(11, 19, 34, .28); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.hm-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px); }
.hm-hero > * { position: relative; z-index: 1; }
.hm-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-bright); }
.hm-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; margin: 6px 0 8px; letter-spacing: -0.035em; }
.hm-hero p { margin: 0 0 18px; color: rgba(255, 255, 255, .74); font-size: 1rem; max-width: 46ch; }
.hm-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-hero button { margin: 0; }
.hm-hero .hm-cta { background: var(--cta); color: var(--cta-ink); border: 0; font-weight: 800; font-size: 1.05rem; padding: 14px 24px; border-radius: 14px; box-shadow: 0 10px 28px rgba(255, 191, 63, .38); }
.hm-hero .hm-cta:hover { background: var(--cta); box-shadow: 0 14px 34px rgba(255, 191, 63, .55); }
.hm-hero .hm-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); padding: 14px 20px; border-radius: 14px; font-weight: 650; }
.hm-hero .hm-ghost:hover { background: rgba(255, 255, 255, .2); box-shadow: none; }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px 14px; backdrop-filter: blur(6px); }
.hm-stat b { display: block; font-size: 2.1rem; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hm-stat span { display: block; margin-top: 6px; font-size: .78rem; color: rgba(255, 255, 255, .7); font-weight: 600; }
.hm-stat.warn b { color: var(--cta); }
.hm-go-row { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.hm-go { position: relative; overflow: hidden; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--card-border); flex-direction: column; align-items: flex-start; gap: 14px; transition: transform .2s, box-shadow .25s, border-color .2s; }
.hm-go::before { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--g1); opacity: .12; transition: opacity .25s, transform .35s; }
.hm-go:hover { transform: translateY(-4px); border-color: var(--g1); box-shadow: 0 18px 40px color-mix(in srgb, var(--g1) 24%, transparent); }
.hm-go:hover::before { opacity: .22; transform: scale(1.25); }
.hm-go-i { width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--g1) 40%, transparent); }
.hm-go-i svg { width: 24px; height: 24px; }
.hm-go.c1 { --g1: var(--accent); --g2: color-mix(in srgb, var(--accent) 60%, #6ff0e0); }
.hm-go.c2 { --g1: #3d6bf5; --g2: #7aa0ff; } .hm-go.c3 { --g1: #e08a00; --g2: #ffc247; } .hm-go.c4 { --g1: #d6336c; --g2: #ff7aa3; }
.hm-go.c1 .hm-go-i, .hm-go.c2 .hm-go-i, .hm-go.c3 .hm-go-i, .hm-go.c4 .hm-go-i { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.hm-go-t b { font-size: 1.08rem; letter-spacing: -0.01em; }
.hm-go-t em { font-size: .86rem; line-height: 1.35; }
.hm-focus { border-left: 6px solid var(--cta); }
.hm-f-row button.primary { white-space: nowrap; }
.bt-av { background: linear-gradient(135deg, hsl(var(--h, 190) 62% 42%), hsl(calc(var(--h, 190) + 40) 70% 55%)) !important; color: #fff !important; }
.hm-about > summary { background: #fff; border: 1px solid var(--card-border); }
@media (max-width: 860px) { .hm-hero { grid-template-columns: 1fr; padding: 24px 20px; } .hm-stat b { font-size: 1.6rem; } .topnav .tab { padding: 7px 12px; } }
.nav-theme { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; border-bottom: 1px solid var(--card-border); margin-bottom: 4px; }
.nav-theme span { font-size: .8rem; font-weight: 700; color: var(--muted); margin-right: auto; }
.nav-panel .nav-sw { width: 24px; height: 24px; padding: 0; margin: 0; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--card-border); }
.nav-panel .nav-sw.on { box-shadow: 0 0 0 2.5px var(--c); }
.nav-panel .nav-sw:hover { background: var(--c); transform: scale(1.12); }
.hm-go-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .hm-go-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hm-go-row { grid-template-columns: 1fr; gap: 10px; } .hm-go { flex-direction: row; align-items: center; padding: 14px; } .hm-go-i { width: 42px; height: 42px; } }
.hero, .bt-hero3 { background:
  radial-gradient(460px 240px at 94% -12%, rgb(var(--accent-rgb) / 0.55), transparent 70%),
  radial-gradient(380px 220px at 6% 125%, rgba(255, 191, 63, .16), transparent 70%),
  linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 58%, #1c2d52 100%); box-shadow: 0 20px 50px rgba(11, 19, 34, .26); }
.hero-eyebrow { color: var(--accent-bright); opacity: 1; }

/* =====================================================================================
   TEMA 4: lyse, fargerike tema som standard (Indigo). Hvert tema setter aksent + bannerfarger.
   data-nav="light|dark" styrer topplinjen. Sone- og diagramfarger er urørt.
   ===================================================================================== */
:root, :root[data-theme="indigo"] {
  --accent: #5146e5; --accent-dark: #3a2fc4; --accent-rgb: 81 70 229; --accent-2: #9b6bff; --accent-soft: #ecebff; --accent-tint: #f7f6ff; --accent-bright: #b9b0ff;
  --h1: #1f1672; --h2: #4338d8; --h3: #b44fd0; --glow: 160 130 255; --cta: #fff; --cta-ink: #3a2fc4; --cta-sh: 0 12px 30px rgba(20, 10, 90, .35); --edge: var(--accent);
  --bg: #f5f4fb; --ink: #1b1646; --ink-2: #2a2370;
}
:root[data-theme="hav"] { --accent: #1673e6; --accent-dark: #0f56b8; --accent-rgb: 22 115 230; --accent-2: #22b8cf; --accent-soft: #e5f0ff; --accent-tint: #f4f9ff; --accent-bright: #9ccaff; --h1: #0a2c6e; --h2: #1673e6; --h3: #1fc0d6; --glow: 120 220 255; --cta-ink: #0f56b8; --bg: #f2f7fd; --ink: #0a2c6e; --ink-2: #123f93; }
:root[data-theme="koral"] { --accent: #e2405f; --accent-dark: #b52745; --accent-rgb: 226 64 95; --accent-2: #ff8a5c; --accent-soft: #ffe8ed; --accent-tint: #fff6f8; --accent-bright: #ffb3c1; --h1: #6e1138; --h2: #e2405f; --h3: #ff9b62; --glow: 255 190 150; --cta-ink: #b52745; --bg: #fdf6f7; --ink: #52112f; --ink-2: #7a1b42; }
:root[data-theme="skog"] { --accent: #1d8a5a; --accent-dark: #136a43; --accent-rgb: 29 138 90; --accent-2: #4cc38a; --accent-soft: #e0f5ea; --accent-tint: #f2fbf6; --accent-bright: #95e6bb; --h1: #0b3b2d; --h2: #1d8a5a; --h3: #7ccf9b; --glow: 170 240 200; --cta-ink: #136a43; --bg: #f3f9f6; --ink: #0b3b2d; --ink-2: #145a43; }
:root[data-theme="midnatt"] { --accent: #0b8a83; --accent-dark: #076b66; --accent-rgb: 11 138 131; --accent-2: #6ff0e0; --accent-soft: #e0f3f1; --accent-tint: #f1f9f8; --accent-bright: #37dccb; --h1: #0b1322; --h2: #14203a; --h3: #1c2d52; --glow: 11 138 131; --cta: #ffbf3f; --cta-ink: #2b1b00; --cta-sh: 0 10px 28px rgba(255, 191, 63, .38); --edge: #ffbf3f; --bg: #f3f5f9; --ink: #0b1322; --ink-2: #14203a; }

/* Lys topplinje */
:root[data-nav="light"] .topnav { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); box-shadow: 0 6px 24px rgb(var(--accent-rgb) / 0.09); }
:root[data-nav="light"] .topnav .tabs { background: var(--accent-soft); }
:root[data-nav="light"] .topnav .tab { color: var(--accent-dark); }
:root[data-nav="light"] .topnav .tab:hover { color: var(--accent-dark); background: rgb(var(--accent-rgb) / 0.12); }
:root[data-nav="light"] .topnav .tab.active, :root[data-nav="light"] .topnav .tab.active:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px rgb(var(--accent-rgb) / 0.38); }
:root[data-nav="light"] .topnav .nav-icon, :root[data-nav="light"] .topnav .nav-menu > summary { background: #fff; border-color: var(--border); color: var(--text); }
:root[data-nav="light"] .topnav .nav-icon:hover, :root[data-nav="light"] .topnav .nav-menu > summary:hover { background: var(--accent-soft); }
:root[data-nav="light"] .topnav .nav-menu[open] > summary { background: var(--accent-soft); border-color: rgb(var(--accent-rgb) / 0.4); }
:root[data-nav="light"] .topnav .nav-kbd, :root[data-nav="light"] .topnav .cloud-status { color: var(--muted); }
:root[data-nav="light"] .nav-start { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px rgb(var(--accent-rgb) / 0.4); }
:root[data-nav="light"] .nav-start:hover { box-shadow: 0 12px 28px rgb(var(--accent-rgb) / 0.5); }

/* Bannere (forside, testrapport) følger temaet */
.hm-hero, .hero, .bt-hero3 { background:
  radial-gradient(520px 260px at 94% -12%, rgb(var(--glow) / 0.5), transparent 70%),
  radial-gradient(420px 240px at 4% 125%, rgb(var(--glow) / 0.22), transparent 70%),
  linear-gradient(125deg, var(--h1) 0%, var(--h2) 58%, var(--h3) 120%); box-shadow: 0 22px 54px rgb(var(--accent-rgb) / 0.3); }
.hm-hero .hm-cta { box-shadow: var(--cta-sh); }
.hm-hero .hm-cta:hover { box-shadow: var(--cta-sh); transform: translateY(-2px); }
.hm-eyebrow, .hero-eyebrow { color: var(--accent-bright); }
.hm-focus { border-left-color: var(--edge); }
.hm-stat.warn b { color: #fff; }
.hm-go.c2 { --g1: var(--accent); --g2: var(--accent-2); }

/* Dette analyserer appen */
.hm-can-wrap { margin: 20px 0 8px; }
.hm-can-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hm-can-head h2 { font-size: 1.35rem; margin: 0; }
.hm-can-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; margin-top: 14px; }
.hm-can { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--card-border); border-left: 6px solid var(--c); transition: transform .2s, box-shadow .25s; margin: 0; }
.hm-can:hover { transform: translateY(-3px); box-shadow: 0 16px 36px color-mix(in srgb, var(--c) 24%, transparent); border-color: var(--c); background: #fff; }
.hm-can-art { width: 76px; height: 60px; display: block; color: var(--c); } .hm-can-art svg { width: 100%; height: 100%; }
.hm-can-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-can-t b { font-size: 1.02rem; letter-spacing: -0.01em; }
.hm-can-t em { font-style: normal; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.hm-can-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.hm-can-chips i { font-style: normal; font-size: .74rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); }
.hm-can-n { text-align: center; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--c); line-height: 1; }
.hm-can-n small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.hm-outs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; margin-top: 14px; }
.hm-out { padding: 12px 14px; border-radius: 14px; background: var(--accent-tint); border: 1px solid rgb(var(--accent-rgb) / 0.16); }
.hm-out b { display: block; color: var(--accent-dark); font-size: .92rem; } .hm-out span { font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) { .hm-can { grid-template-columns: 56px minmax(0, 1fr); } .hm-can-n { display: none; } .hm-can-art { width: 56px; } }

/* ===== Animert åpningsbilde på forsiden ===== */
.hm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 340px; padding: 32px 34px; }
.hm-stats { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.hm-stat { display: flex; align-items: baseline; gap: 7px; padding: 7px 13px; border-radius: 999px; }
.hm-stat b { font-size: 1.15rem; display: inline; } .hm-stat span { display: inline; margin: 0; font-size: .8rem; }
.hm-scene { position: relative; height: 300px; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 20px 50px rgba(0, 0, 0, .22); backdrop-filter: blur(6px); }
.hm-blob { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .55; animation: hmBlob 14s ease-in-out infinite alternate; }
.hm-blob.b1 { width: 190px; height: 190px; left: -30px; top: -40px; background: rgb(var(--glow)); }
.hm-blob.b2 { width: 170px; height: 170px; right: -20px; bottom: -50px; background: #ffb86b; animation-duration: 18s; animation-delay: -6s; opacity: .4; }
@keyframes hmBlob { to { transform: translate(40px, 30px) scale(1.2); } }
.hm-chart { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px 12px 6px; }
.hm-curve { stroke-dasharray: 760; stroke-dashoffset: 760; animation: hmDraw 10s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes hmDraw { 0% { stroke-dashoffset: 760; opacity: 1; } 34% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 98% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 760; opacity: 0; } }
.hm-area { animation: hmArea 10s ease infinite; }
@keyframes hmArea { 0%, 8% { opacity: 0; } 36%, 90% { opacity: 1; } 98%, 100% { opacity: 0; } }
.hm-dot { opacity: 0; animation: hmDot 10s ease infinite; }
.hm-dot.d2 { animation-name: hmDot2; }
@keyframes hmDot { 0%, 20% { opacity: 0; } 24%, 90% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hmDot2 { 0%, 27% { opacity: 0; } 31%, 90% { opacity: 1; } 98%, 100% { opacity: 0; } }
.hm-ring { transform-box: fill-box; transform-origin: center; animation: hmPulse 2.2s ease-out infinite; }
@keyframes hmPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.hm-ecg { animation: hmEcg 4.5s linear infinite; }
@keyframes hmEcg { to { transform: translateX(-200px); } }
.hm-orb { position: absolute; left: 11%; top: 13%; width: 116px; height: 116px; display: grid; place-items: center; animation: hmFloat 6s ease-in-out infinite; }
.hm-orb::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--glow) / .55), transparent 68%); animation: hmGlow 3.4s ease-in-out infinite; }
.hm-orb img { position: relative; width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 16px 36px rgba(0, 0, 0, .4), 0 0 0 2px rgba(255, 255, 255, .5); }
.hm-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .38); animation: hmSpin 14s linear infinite; }
.hm-orbit i { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px rgb(var(--glow)); }
.hm-orbit.o2 { inset: -12px; animation-duration: 22s; animation-direction: reverse; border-style: solid; border-color: rgba(255, 255, 255, .14); }
.hm-orbit.o2 i { background: #ffd166; box-shadow: 0 0 12px 2px rgba(255, 209, 102, .8); }
@keyframes hmSpin { to { transform: rotate(360deg); } }
@keyframes hmFloat { 50% { transform: translateY(-9px); } }
@keyframes hmGlow { 50% { opacity: .55; transform: scale(1.12); } }
.hm-fchip { position: absolute; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 750; letter-spacing: .01em; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); animation: hmBob 5s ease-in-out infinite; }
.hm-fchip::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--d, #fff); }
.hm-fchip.c1 { right: 7%; top: 9%; --d: #E6493B; } .hm-fchip.c2 { right: 30%; top: 5%; --d: #4F8FE8; animation-delay: -1s; }
.hm-fchip.c3 { left: 6%; bottom: 20%; --d: #21B3A4; animation-delay: -2s; } .hm-fchip.c4 { right: 5%; top: 40%; --d: #F0B429; animation-delay: -3s; }
.hm-fchip.c5 { left: 34%; bottom: 8%; --d: #F2793A; animation-delay: -1.5s; } .hm-fchip.c6 { right: 6%; bottom: 22%; --d: #CC79A7; animation-delay: -2.5s; }
@keyframes hmBob { 50% { transform: translateY(-8px); } }
@media (max-width: 860px) { .hm-hero { grid-template-columns: 1fr; } .hm-scene { height: 240px; } .hm-orb { width: 92px; height: 92px; } .hm-orb img { width: 66px; height: 66px; border-radius: 19px; } }
@media (prefers-reduced-motion: reduce) { .hm-blob, .hm-ring, .hm-ecg, .hm-orb, .hm-orb::before, .hm-orbit, .hm-fchip { animation: none !important; } .hm-curve, .hm-area, .hm-dot { animation: none !important; stroke-dashoffset: 0; opacity: 1; } }

/* ===== Åpningsbilde v2 (riktig laktatprofil) og levende snarveiskort ===== */
.hm-scene { height: 312px; }
.hm-curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hmDraw2 10s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes hmDraw2 { 0% { stroke-dashoffset: 1; opacity: 1; } 34% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 98% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
.hm-step { opacity: 0; animation: hmStep 10s ease infinite; animation-delay: calc(var(--i) * .38s - .2s); }
@keyframes hmStep { 0% { opacity: 0; transform: scale(.3); } 3%, 90% { opacity: .95; transform: scale(1); } 98%, 100% { opacity: 0; } }
.hm-step, .hm-dot circle { transform-box: fill-box; transform-origin: center; }
.hm-zones { opacity: 0; animation: hmArea 10s ease infinite; }
.hm-cursor { filter: drop-shadow(0 0 8px #fff); }
.hm-orb { left: 7%; top: 7%; width: 84px; height: 84px; }
.hm-orb img { width: 58px; height: 58px; border-radius: 17px; }
.hm-orb::before { inset: -10px; }
.hm-cap { position: absolute; left: 14px; bottom: 9px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .78); }
.hm-chart { padding: 8px 10px 0; }

.hm-go { padding: 16px 16px 18px; min-height: 150px; justify-content: space-between; opacity: 0; animation: hmUp .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--n, 0) * .09s + .1s); }
@keyframes hmUp { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.hm-go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.hm-go:hover::after { transform: translateX(120%); transition: transform .8s ease; }
.hm-go-art { position: absolute; right: 8px; top: 8px; width: 104px; height: 70px; color: var(--g1); pointer-events: none; }
.hm-go .hm-go-i { animation: hmIcon 4.5s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -1.1s); }
@keyframes hmIcon { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
.hm-go:hover .hm-go-i { animation-duration: 1.2s; }
.hm-go-t b { font-size: 1.15rem; }
.art-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: artTick 4.5s ease infinite; animation-delay: calc(var(--d, 0s) + .3s); }
@keyframes artTick { 0% { stroke-dashoffset: 1; } 12%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.art-row rect:last-child { transform-box: fill-box; transform-origin: left; animation: artRow 4.5s ease infinite; animation-delay: var(--d, 0s); }
@keyframes artRow { 0% { transform: scaleX(.2); } 14%, 88% { transform: scaleX(1); } 100% { transform: scaleX(.2); } }
.art-av { transform-box: fill-box; transform-origin: 50% 100%; animation: artAv 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes artAv { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.06); } }
.art-bar { transform-box: fill-box; transform-origin: bottom; animation: artBar 4.2s cubic-bezier(.3, .8, .3, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes artBar { 0% { transform: scaleY(.05); } 25%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.05); } }
.art-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: artTick 4.2s ease infinite; animation-delay: .5s; }
.art-pt { opacity: 0; animation: artPt 4.2s ease infinite; animation-delay: .5s; } @keyframes artPt { 0%, 24% { opacity: 0; } 30%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 520px) { .hm-go { min-height: 0; } .hm-go-art { width: 84px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .hm-go, .hm-go-i, .art-tick, .art-row rect, .art-av, .art-bar, .art-line, .art-pt, .hm-step, .hm-zones, .hm-go::after { animation: none !important; opacity: 1; stroke-dashoffset: 0; transform: none; } }
.hm-orb { left: 24%; top: 9%; }

/* ===== Gruppeanalyse (groupanalysis.js) ===== */
.gx-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 12px 14px; margin: 0 0 14px; box-shadow: var(--shadow-sm); position: sticky; top: 64px; z-index: 5; }
.gx-bar-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gx-lab { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex: none; }
.gx-chips { display: flex; gap: 6px; flex-wrap: wrap; } .gx-chips-pad { margin: 4px 0 14px; }
.gx-chip { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 13px; border-radius: 999px; font-weight: 650; background: #f3f5fa; border: 1px solid transparent; color: var(--text); }
.gx-chip span { font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--muted); }
.gx-chip:hover { background: color-mix(in srgb, var(--c) 12%, #fff); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.gx-chip.on { background: var(--c); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent); }
.gx-chip.on span { background: rgba(255, 255, 255, .25); color: #fff; }
.gx-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--c, #5d6a80); flex: none; }
.gx-dot.team { border-radius: 3px; } .gx-chip.on .gx-dot { background: #fff; }
.gx-bar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.gx-seg { display: inline-flex; background: #eef1f6; border-radius: 12px; padding: 3px; }
.gx-seg button { margin: 0; border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-size: .82rem; }
.gx-seg button.on { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow-sm); }
.gx-manage { margin: 0; white-space: nowrap; }
.gx-count { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.gx-count b { color: var(--text); }
.gx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 14px; }
.gx-kpi { background: #fff; border: 1px solid var(--card-border); border-top: 5px solid var(--c); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.gx-kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 22%, transparent); }
.gx-kpi b { display: block; font-size: 2rem; line-height: 1.05; letter-spacing: -0.03em; color: var(--c); font-variant-numeric: tabular-nums; }
.gx-kpi span { display: block; font-size: .85rem; font-weight: 650; margin-top: 3px; } .gx-kpi em { font-style: normal; font-size: .76rem; color: var(--muted); }
.gx-h2 { margin: 22px 0 2px; font-size: 1.25rem; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; margin: 12px 0 16px; }
.gx-card { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 16px 16px 12px; box-shadow: var(--shadow-sm); }
.gx-card-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.gx-card-h b { display: block; font-size: 1rem; } .gx-card-h span { font-size: .78rem; color: var(--muted); }
.gx-big { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.gx-big small { font-size: .85rem; font-weight: 650; color: var(--muted); margin-left: 4px; letter-spacing: 0; } .gx-big em { font-style: normal; font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.gx-strip { margin: 16px 6px 4px; }
.gx-track { position: relative; height: 44px; border-radius: 12px; background: linear-gradient(180deg, #f6f8fc, #eef1f7); }
.gx-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #d9dfeb; transform: translateY(-50%); }
.gx-sd { position: absolute; top: 6px; bottom: 6px; border-radius: 8px; background: color-mix(in srgb, var(--g) 14%, transparent); }
.gx-mean { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--g, #5146e5); }
.gx-pt { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0; border-radius: 50%; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(20, 30, 60, .3); transition: transform .15s; z-index: 1; }
.gx-pt:hover { transform: scale(1.5); z-index: 3; }
.gx-pt span { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .66rem; font-weight: 700; color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.gx-pt:hover span { opacity: 1; color: var(--text); }
.gx-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 5px; } .gx-ends b { color: var(--text); }
.gx-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--card-border); }
.gx-prof-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.gx-pill { padding: 10px 14px; border-radius: 14px; margin-bottom: 8px; font-size: .92rem; } .gx-pill em { font-style: normal; font-weight: 800; float: right; }
.gx-pill.up { background: #e3f6ee; color: #0b6b4a; } .gx-pill.down { background: #fdeadf; color: #9a3d00; }
.gx-sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.gx-mini td { padding: 5px 6px; } .gx-zbar { width: 38%; } .gx-zbar span { display: block; height: 8px; border-radius: 4px; width: var(--w); background: #009E73; margin-left: 50%; } .gx-zbar span.neg { background: #D55E00; margin-left: calc(50% - var(--w)); }
.gx-cov td, .gx-cov th { text-align: center; } .gx-cov td:first-child, .gx-cov th:first-child { text-align: left; }
.gx-ok { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--c); font-weight: 800; }
.gx-no { font-style: normal; color: #c3cad8; } .gx-late { color: #D55E00; font-weight: 700; }
.gx-follow-list, .gx-ung { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.gx-fchip { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 12px; border-radius: 12px; background: #fff3e6; border: 1px solid #f6d7b0; font-size: .82rem; } .gx-fchip b { font-size: .9rem; }
.gx-ung .gx-fchip { background: #f3f5fa; border-color: var(--card-border); }
.gx-sentence { padding: 12px 16px; border-radius: 14px; background: var(--accent-tint); border: 1px solid rgb(var(--accent-rgb) / .2); margin: 0 0 14px; line-height: 1.5; }
.gx-rows { display: grid; gap: 8px; margin-bottom: 14px; }
.gx-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 14px; background: #fafbfe; border: 1px solid var(--card-border); }
.gx-row-l { display: flex; flex-direction: column; gap: 2px; } .gx-row-l b { font-size: .95rem; } .gx-row-l span { font-size: .75rem; color: var(--muted); }
.gx-row .gx-strip { margin: 6px 6px 0; }
.gx-tbl td { white-space: nowrap; } .gx-up { color: #0b6b4a; } .gx-down { color: #b34400; }
.gx-best { font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #e3f6ee; color: #0b6b4a; margin-left: 4px; }
.gx-div { display: grid; gap: 6px; margin: 12px 0; }
.gx-dr { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 80px minmax(150px, 230px); gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #fafbfe; border: 1px solid var(--card-border); }
.gx-dbar { position: relative; height: 18px; border-radius: 9px; background: #eef1f6; overflow: hidden; }
.gx-dbar i { position: absolute; top: 0; bottom: 0; border-radius: 9px; } .gx-dbar i.pos { background: linear-gradient(90deg, #35c28f, #009E73); } .gx-dbar i.neg { background: linear-gradient(270deg, #ff9a52, #D55E00); }
.gx-dbar em { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #9aa6bc; }
.gx-dv { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; } .gx-dd { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.gx-newrow { display: flex; gap: 8px; flex-wrap: wrap; } .gx-newrow input { flex: 1 1 260px; }
.gx-gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 14px; margin: 14px 0; }
.gx-gcard { background: #fff; border: 1px solid var(--card-border); border-top: 6px solid var(--c); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); }
.gx-gh { display: flex; gap: 8px; align-items: center; } .gx-gh input[type=color] { width: 34px; height: 34px; padding: 0; border: 0; background: none; border-radius: 10px; cursor: pointer; flex: none; }
.gx-gname { flex: 1; font-weight: 750; font-size: 1.05rem; border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 10px; } .gx-gname:hover, .gx-gname:focus { background: #f3f5fa; border-color: var(--card-border); }
.gx-gn { font-weight: 800; font-size: 1.2rem; color: var(--c); }
.gx-mem { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; min-height: 34px; }
.gx-m { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); font-size: .85rem; } .gx-m .link { padding: 3px 2px; font-weight: 650; }
.gx-x { margin: 0; padding: 0; width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1rem; line-height: 1; } .gx-x:hover { background: #fde8e6; color: #c0392b; transform: none; box-shadow: none; }
.gx-add { display: flex; gap: 6px; flex-wrap: wrap; } .gx-add select { flex: 1 1 140px; }
.gx-gacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--card-border); } .gx-gacts button { margin: 0; }
.gx-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; margin: 8px 0 14px; }
.gx-mode { display: flex; flex-direction: column; gap: 4px; text-align: left; margin: 0; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--card-border); background: #fff; } .gx-mode span { font-size: .78rem; font-weight: 450; color: var(--muted); line-height: 1.35; }
.gx-mode.on { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 6px 16px rgb(var(--accent-rgb) / .18); }
@media (max-width: 860px) { .gx-bar { grid-template-columns: 1fr; position: static; } .gx-bar-r { justify-content: flex-start; } .gx-prof-body { grid-template-columns: 1fr; } .gx-row { grid-template-columns: 1fr; gap: 4px; } .gx-dr { grid-template-columns: 1fr 70px; } .gx-dr .gx-dbar { grid-column: 1 / -1; order: 3; } .gx-dd { grid-column: 1 / -1; } }
.gx-cov td:last-child { white-space: nowrap; }

/* Bilder og kvalitet i bevegelsesrapporten */
.mv-repshots { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 10px 0 0; border-radius: 14px; background: var(--accent-tint); border: 1px solid rgb(var(--accent-rgb) / .2); }
.mv-repshots span { flex: 1 1 220px; font-size: .85rem; color: var(--muted); } .mv-repshots button { margin: 0; }
.mp-q { border-left: 6px solid var(--c); }
.mp-q-verdict { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 10%, #fff); } .mp-q-verdict p { margin: 0; font-weight: 600; }
.mp-q-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; flex: none; }
.mp-q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; margin: 12px 0; }
.mp-q-item { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--card-border); background: #fff; display: flex; flex-direction: column; gap: 3px; font-size: .84rem; } .mp-q-item span { color: var(--muted); }
.mp-q-item.good b { color: #0b6b4a; } .mp-q-item.warn b { color: #9a6200; } .mp-q-item.bad b { color: #b34400; }
.mp-q-list { margin: 6px 0 8px 18px; padding: 0; font-size: .86rem; line-height: 1.5; }

/* Tofaktor */
.auth-code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.auth-steps { margin: 0 0 4px; padding-left: 20px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.auth-qr { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--card-border); }
.auth-qr img { border-radius: 8px; max-width: 100%; height: auto; }
.auth-secret { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; } .auth-secret span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auth-secret code { font-size: .86rem; padding: 6px 9px; border-radius: 8px; background: #f3f5fa; word-break: break-all; user-select: all; }
.mfa-box { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--accent-tint); border: 1px solid rgb(var(--accent-rgb) / .18); }
.mfa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .mfa-head h3 { margin: 0; }
.mfa-badge { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; } .mfa-badge.on { background: #e3f6ee; color: #0b6b4a; } .mfa-badge.off { background: #fdeadf; color: #9a3d00; }
.mfa-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; } .mfa-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--card-border); } .mfa-list li span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; } .mfa-list small { color: var(--muted); font-size: .74rem; }

/* ===== Kvalitetsrunde: tekst og tall skal holde seg i boksene sine, også på smale skjermer ===== */
@media (max-width: 900px) {
  .mv-split, .mv-split:not(.wide) { grid-template-columns: minmax(0, 1fr); }
  .mv-split:not(.wide) .mv-viewer { position: static; }
}
.mv-split > *, .mv-rightcol > *, .mv-grid > * { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.card > table.table:not(.rp-table), details > table.table:not(.rp-table), .bt-stepcard > table.table { display: block; overflow-x: auto; max-width: 100%; }
button { max-width: 100%; }
button.danger, button.primary, .bt-actions button, .bt-discard { white-space: normal; text-align: center; }
.bt-tile-l, .bt-peak-val, .bt-peak small, .bt-insight span, .bt-insight-h, .rp-kpi-value, .rp-kpi-label, .mv-liftdet label, .mv-liftdet summary, .mv-more summary, .mv-howto summary, .mv-howto p, .hint { overflow-wrap: anywhere; }
.rp-kpi-value span { white-space: normal; }
.mv-liftdet label, .mv-liftdet input, .mv-liftdet select { min-width: 0; max-width: 100%; }
.auth-code { width: 100%; min-width: 0; box-sizing: border-box; letter-spacing: .3em; }
.auth-steps li { overflow-wrap: anywhere; }
.gx-gh { flex-wrap: wrap; } .gx-gname { min-width: 0; flex: 1 1 140px; }
@media (max-width: 420px) { .bt-peak-val { font-size: clamp(1.4rem, 9vw, 2rem); } .gx-chip { max-width: 100%; } }
.bt-startbar button { white-space: normal; }
.bt-startbar button.primary { flex: 1.2 1 auto; }
.bt-mapt-top b { min-width: 0; flex: 1 1 auto; }
.rp-date { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-left: 0; }
.bt-mapt { grid-template-columns: minmax(0, 1fr); }
.bt-mapt-top b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
.btc-hit { pointer-events: none; }
@media (max-width: 420px) { .topnav .tabs { padding: 3px; gap: 1px; } .topnav .tab { padding: 7px 8px; font-size: .8rem; } }
@media (max-width: 420px) { .topnav .tabs { flex-wrap: nowrap; } .topnav .tabs .tab { flex: 1 1 auto; padding: 7px 5px; font-size: clamp(.64rem, 3.1vw, .8rem); text-align: center; } }
@media (max-width: 340px) { .topnav .tabs .tab { padding: 7px 2px; font-size: .62rem; } .topnav { padding-left: 8px; padding-right: 8px; } }

/* ===== Åpningsbilde v3: logo og bildetekst følger grafen i alle bredder (ingen overlapp med akse eller tekst) ===== */
.hm-scene { container-type: size; }
.hm-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; width: min(100cqw, 100cqh * 430 / 262); aspect-ratio: 430 / 262; }
.hm-stage .hm-chart { padding: 0; }
.hm-stage .hm-orb { left: 21%; top: 6%; width: 16%; height: auto; aspect-ratio: 1; }
.hm-stage .hm-orb img { width: 69%; height: auto; aspect-ratio: 1; border-radius: 28%; }
@media (max-width: 860px) { .hm-scene { height: auto; aspect-ratio: 430 / 262; max-height: 312px; } }
/* Snarveiskort på mobil: illustrasjonen får egen plass til høyre, teksten går ikke under den */
@media (max-width: 520px) { .hm-go-art { width: 62px; height: 42px; top: 50%; right: 10px; transform: translateY(-50%); } .hm-go-t { padding-right: 64px; } .hm-go::before { width: 96px; height: 96px; } }

/* ===== Bluetooth-panel v2: tydelig status, store tall og levende kurve ===== */
.ble-live { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.ble-tile { position: relative; overflow: hidden; padding: 12px 14px 30px; transition: border-color .3s, background .3s, box-shadow .3s; }
.ble-tile b { font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; color: #a9b3c6; transition: color .3s, opacity .3s; }
.ble-tile.live b { color: #14213d; }
.ble-tile.stale b { color: #14213d; opacity: .5; }
.ble-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #c5cddc; vertical-align: 1px; }
.ble-tile.live { background: #fff; border-color: rgb(var(--accent-rgb) / .45); box-shadow: 0 6px 18px rgb(var(--accent-rgb) / .12); }
.ble-tile.live .ble-dot, .ble-dot.on { background: #1fb676; }
.ble-tile.live .ble-dot { animation: blePulse 1.2s ease-out infinite; }
.ble-tile.stale .ble-dot, .ble-dot.wait { background: #f0b429; }
@keyframes blePulse { 0% { box-shadow: 0 0 0 0 rgba(31, 182, 118, .55); } 100% { box-shadow: 0 0 0 9px rgba(31, 182, 118, 0); } }
.ble-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26px; pointer-events: none; }
.ble-spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.ble-legend { margin: 2px 0 8px; } .ble-legend .ble-dot { margin-left: 2px; }
.ble-how { margin: 6px 0 12px; padding-left: 20px; } .ble-how li { margin: 3px 0; }
.ble-raw { white-space: pre-wrap; word-break: break-all; max-height: 180px; overflow-y: auto; }
.ble-rawacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 14px; }
@media (prefers-reduced-motion: reduce) { .ble-tile.live .ble-dot { animation: none; } }
.ble-tile b span { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }

/* ---------------------------------------------------------------------------------------------
   Live stangbane (movementlive.js) */
.mvl-head { align-items: flex-end; }
.mvl-head .hint { max-width: 62ch; }
.mvl-head-b { display: flex; gap: 8px; flex-wrap: wrap; }
.mvl-steps { margin-top: 12px; }
.mvl-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.mvl-stage { padding: 16px; display: grid; gap: 12px; }
.mvl-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.mvl-meta label, .mvl-scale label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 650; color: var(--muted); min-width: 0; }
.mvl-video { position: relative; border-radius: 16px; overflow: hidden; background: #0d1321; box-shadow: 0 10px 30px rgba(13, 19, 33, 0.22); line-height: 0; }
.mvl-video .mv-canvas { border-radius: 0; outline-offset: -3px; touch-action: manipulation; }
.mvl-hud { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; line-height: 1.3; }
.mvl-msg { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(13, 19, 33, 0.78); color: #fff; font-size: 0.86rem; font-weight: 650; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 78%; }
.mvl-msg::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright, #93abff); }
.mvl-msg.rec::before { background: #ff5247; animation: mvlRec 1.1s ease-in-out infinite; }
.mvl-msg.bad { background: rgba(190, 40, 30, 0.92); } .mvl-msg.bad::before { background: #fff; }
.mvl-fps { padding: 5px 9px; border-radius: 999px; background: rgba(13, 19, 33, 0.6); color: rgba(255, 255, 255, 0.82); font-size: 0.72rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.mvl-fps:empty { display: none; }
.mvl-fullb { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 0; background: rgba(13, 19, 33, 0.7); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.mvl-fullb:hover { background: rgba(13, 19, 33, 0.9); transform: none; }
.mvl-video:fullscreen { display: flex; align-items: center; justify-content: center; border-radius: 0; background: #000; }
.mvl-video:fullscreen .mv-canvas { width: auto; height: auto; max-width: 100vw; max-height: 100vh; outline: 0; }
@keyframes mvlRec { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

.mvl-scale { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-tint); border: 1px solid var(--card-border); animation: fxUp 0.35s var(--ease-out) backwards; }
.mvl-scale input[type="range"] { width: 100%; padding: 0; accent-color: var(--accent); }
.mvl-scale-t { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 0.86rem; }
.mvl-scale-t b { color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.mvl-scale-t small { color: var(--muted); }
.mvl-scale .mv-chk { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 0.86rem; }
.mvl-scale .mv-chk input, .mvl-opt input { width: auto; }
.mvl-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.mvl-actions button.primary { min-height: 48px; padding: 0 26px; font-size: 1rem; }
.mvl-actions button.mvl-start:not(:disabled) { animation: mvlReady 1.8s ease-in-out infinite; }
.mvl-actions button.mvl-stop { background: linear-gradient(135deg, #e6493b, #c23327); box-shadow: 0 6px 16px rgba(230, 73, 59, 0.35); }
@keyframes mvlReady { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.45); } 60% { box-shadow: 0 0 0 10px rgb(var(--accent-rgb) / 0); } }
.mvl-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.mvl-opt select { width: auto; padding: 5px 8px; }
.mvl-err { padding: 16px; border-radius: 14px; background: #fdeeec; border: 1px solid rgba(230, 73, 59, 0.35); }
.mvl-err p { margin: 6px 0 10px; }

.mvl-side { display: grid; gap: 12px; min-width: 0; }
.mvl-side .card { margin: 0; padding: 14px 16px; }
.mvl-score { --z: #94a0b8; --z-soft: #f3f5f9; position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--z) 45%, transparent); background: linear-gradient(160deg, var(--z-soft), #fff 62%); transition: border-color 0.3s, background 0.3s; }
.mvl-score::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--z); transition: background 0.3s; }
.mvl-score[data-z="good"] { --z: #1fb676; --z-soft: #e6f8ef; }
.mvl-score[data-z="warn"] { --z: #f0a020; --z-soft: #fef4e0; }
.mvl-score[data-z="bad"] { --z: #e6493b; --z-soft: #fdeceb; }
.mvl-score-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mvl-score-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.mvl-v { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 6px; }
.mvl-v b { font-size: clamp(3rem, 6.5vw, 4.4rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink, #16203a); animation: mvlTick 0.45s var(--ease-out); }
.mvl-v span { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
@keyframes mvlTick { from { opacity: 0.2; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.mvl-meter { height: 8px; border-radius: 4px; background: #e8ecf3; overflow: hidden; }
.mvl-meter i { display: block; height: 100%; border-radius: 4px; background: var(--z); transition: width 0.5s var(--ease-out), background 0.3s; }
.mvl-cue { margin: 10px 0 0; font-size: 1rem; font-weight: 650; line-height: 1.35; color: var(--text); }
.mvl-cue.good { color: #0b6b4a; } .mvl-cue.warn { color: #9a5b00; } .mvl-cue.bad { color: #b3261a; }
.mvl-cue.sub { margin-top: 4px; font-size: 0.88rem; font-weight: 550; }
.mvl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mvl-tiles div { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--card-border); min-width: 0; }
.mvl-tiles span { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvl-tiles b { font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mvl-empty h3, .mvl-card h3 { margin: 0 0 6px; font-size: 1rem; }
.mvl-card .card-head { align-items: baseline; }

.mvl-bars, .mvl-path { display: block; width: 100%; height: auto; }
.mvl-path { max-width: 340px; margin: 0 auto; }
.mvl-bar { transform-box: fill-box; transform-origin: bottom; animation: mvlGrow 0.45s var(--ease-out) backwards; }
@keyframes mvlGrow { from { transform: scaleY(0.05); opacity: 0.3; } to { transform: none; opacity: 1; } }
.mvl-bar-v { font-size: 9.5px; font-weight: 700; text-anchor: middle; fill: var(--text); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; }
.mvl-bar-n { font-size: 9.5px; font-weight: 650; text-anchor: middle; fill: var(--muted); }
.mvl-ax { stroke: #d5dbe7; stroke-width: 1; }
.mvl-stopline { stroke: #e6493b; stroke-width: 1.2; stroke-dasharray: 4 3; }
.mvl-stop-t { font-size: 8.5px; font-weight: 700; text-anchor: end; fill: #c23327; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; }
.mvl-plumb { stroke: #b9c2d4; stroke-width: 1; stroke-dasharray: 3 4; }
.mvl-ax-t { font-size: 9.5px; font-weight: 650; fill: var(--muted); }
.mvl-p-dn, .mvl-p-up { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mvl-p-dn { stroke: #5aa9ff; } .mvl-p-up { stroke: #1fb676; }
.mvl-p-last .mvl-p-dn, .mvl-p-last .mvl-p-up { stroke-width: 3.2; }
.mvl-leg { margin: 6px 0 0; text-align: center; }
.mvl-leg i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; vertical-align: middle; margin: 0 3px 0 8px; }
.mvl-leg i.up { background: #1fb676; margin-left: 0; } .mvl-leg i.dn { background: #5aa9ff; }
.mvl-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mvl-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.mvl-table th { padding: 4px 6px; text-align: right; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.2; border-bottom: 1px solid var(--border); background: none; }
.mvl-table th small { font-weight: 600; text-transform: none; letter-spacing: 0; }
.mvl-table td { padding: 6px; text-align: right; border-bottom: 1px solid #eef1f6; }
.mvl-table th:first-child, .mvl-table td:first-child { text-align: left; }
.mvl-table td:first-child { font-weight: 800; padding-left: 12px; box-shadow: inset 4px 0 0 #1fb676; }
.mvl-table tr.warn td:first-child { box-shadow: inset 4px 0 0 #f0a020; } .mvl-table tr.bad td:first-child { box-shadow: inset 4px 0 0 #e6493b; }
.mvl-table tr.bad td:last-child { color: #b3261a; font-weight: 700; } .mvl-table tr.warn td:last-child { color: #9a5b00; font-weight: 700; }
.mvl-table tbody tr:last-child { animation: fxFade 0.4s ease; }
.mvl-tips { margin-top: 16px; }

/* Kortet på forsiden av Bevegelse */
.mvl-promo { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink, #16203a), var(--ink-2, #223056)); color: #fff; border: 0; }
.mvl-promo::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.45), transparent 70%); pointer-events: none; }
.mvl-promo-b { position: relative; z-index: 1; min-width: 0; }
.mvl-promo h2 { margin: 4px 0 6px; color: #fff; font-size: 1.45rem; letter-spacing: -0.02em; }
.mvl-promo p { margin: 0 0 12px; color: rgba(255, 255, 255, 0.82); max-width: 68ch; line-height: 1.5; }
.mvl-promo .home-eyebrow { color: var(--accent-bright, #93abff); opacity: 1; }
.mvl-promo .mvl-meta { margin-bottom: 4px; max-width: 640px; }
.mvl-promo .mvl-meta label { color: rgba(255, 255, 255, 0.72); }
.mvl-promo .mvl-meta select, .mvl-promo .mvl-meta input { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.mvl-promo .mvl-meta select option { color: #16203a; }
.mvl-promo .mvl-meta input::placeholder { color: rgba(255, 255, 255, 0.5); }
.mvl-promo .mv-go button:not(.primary) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.mvl-promo .mv-go button:not(.primary):hover { background: rgba(255, 255, 255, 0.18); }
.mvl-promo-art { position: relative; z-index: 1; }
.mvl-promo-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.mvl-promo-art .a-ring { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.mvl-promo-art .a-plumb { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.2; stroke-dasharray: 3 5; }
.mvl-promo-art .a-dn, .mvl-promo-art .a-up { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.mvl-promo-art .a-dn { stroke: #5aa9ff; } .mvl-promo-art .a-up { stroke: #3ddc97; }
.mvl-promo-art .a-plate { offset-path: path('M75 30 C82 50 84 76 78 118 C70 92 71 58 75 30'); offset-rotate: 0deg; animation: mvlPlate 3.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.mvl-promo-art .a-p1 { fill: #12161f; stroke: #e6493b; stroke-width: 4; }
.mvl-promo-art .a-p2 { fill: #d7dbe4; }
@keyframes mvlPlate { 0% { offset-distance: 0%; } 46% { offset-distance: 50%; } 54% { offset-distance: 50%; } 100% { offset-distance: 100%; } }

@media (max-width: 980px) { .mvl-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mvl-stage { padding: 12px; }
  .mvl-stage[data-ph="run"] .mvl-meta { display: none; }
  .mvl-steps { padding: 8px 10px; } .mvl-steps li { font-size: 0.78rem; gap: 5px; } .mvl-steps li.sep { width: 12px; margin: 0 5px; }
  .mvl-scale { grid-template-columns: minmax(0, 1fr); }
  .mvl-actions button.primary { flex: 1 1 100%; }
  .mvl-msg { font-size: 0.78rem; padding: 6px 10px; max-width: 100%; } .mvl-fps { display: none; }
  .mvl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvl-promo { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mvl-promo-art { width: 104px; }
  .mvl-promo h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mvl-msg.rec::before, .mvl-actions button.mvl-start:not(:disabled), .mvl-v b, .mvl-bar, .mvl-scale, .mvl-table tbody tr:last-child { animation: none; }
  .mvl-promo-art .a-plate { animation: none; offset-distance: 50%; }
  .mvl-meter i { transition: none; }
}

/* ===== Loggesidene (logui.js): felles hode, hopp-linje, «Så langt»-panel og sammenleggbare kort ===== */
.lg-head { align-items: flex-end; margin-bottom: 12px; }
.lg-head .home-eyebrow { color: var(--accent-dark); opacity: 1; margin-bottom: 4px; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.lg-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--card-border); font-size: 0.82rem; font-weight: 650; color: var(--ink-2, var(--text)); box-shadow: var(--shadow-sm); }
.lg-tag.ok { background: #e3f6ee; border-color: #b9e6d3; color: #0b6b4a; }
.lg-meta .as-saved { margin-left: 6px; }
.lg-head-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lg-head-act button { margin: 0; }
.lg-nav button { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.lg-nav i { font-style: normal; font-size: 0.74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-nav i.ok { background: #e3f6ee; color: #0b6b4a; }
[id^="sec-lg-"] { scroll-margin-top: 124px; }

.lg-gt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 750; color: var(--accent-dark); margin: 16px 0 8px; display: flex; align-items: center; gap: 10px; }
.lg-gt::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }
.lg-fold-b > .lg-gt:first-child { margin-top: 4px; }
.lg-notes { margin-top: 14px; }
.lg-help { margin-top: 12px; border-radius: 12px; background: #f6f8fc; border: 1px solid var(--card-border); padding: 0 14px; }
.lg-help > summary { cursor: pointer; padding: 10px 0; font-size: 0.86rem; font-weight: 650; color: var(--accent-dark); list-style: none; display: flex; align-items: center; gap: 8px; }
.lg-help > summary::-webkit-details-marker { display: none; }
.lg-help > summary::before { content: '?'; width: 18px; height: 18px; border-radius: 50%; background: rgb(var(--accent-rgb) / 0.12); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; }
.lg-help[open] > summary { border-bottom: 1px dashed var(--card-border); }
.lg-help .hint { margin: 10px 0; line-height: 1.5; }

details.lg-fold { padding: 0; }
details.lg-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 18px; }
details.lg-fold > summary::-webkit-details-marker { display: none; }
details.lg-fold > summary h2 { margin: 0; font-size: 1.08rem; flex: 0 1 auto; }
details.lg-fold > summary:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / 0.55); outline-offset: -3px; }
.lg-sum { flex: 1; min-width: 0; color: var(--muted); font-size: 0.86rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-chev { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgb(var(--accent-rgb) / 0.09); position: relative; transition: transform 0.25s var(--ease-out, ease), background 0.2s; }
.lg-chev::before { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark); transform: translate(-50%, -70%) rotate(45deg); }
details.lg-fold[open] > summary .lg-chev { transform: rotate(180deg); }
details.lg-fold > summary:hover .lg-chev { background: rgb(var(--accent-rgb) / 0.18); }
details.lg-fold[open] > summary .lg-sum { visibility: hidden; }
.lg-fold-b { padding: 0 20px 18px; animation: lgOpen 0.28s var(--ease-out, ease) both; }
@keyframes lgOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#sec-lg-extra { display: grid; gap: 0; }

.lg-live { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.lg-live > .live { min-width: 0; }
.lg-live > .lg-sofar { position: sticky; top: 124px; }
.lg-sofar { border: 1px solid var(--card-border); border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.05), #fff 46%); }
.lg-sofar.wide { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-areas: 'h h' 'c l' 'c t'; gap: 4px 20px; margin-bottom: 14px; align-items: start; }
.lg-sofar.wide .lg-sf-h { grid-area: h; } .lg-sofar.wide .lg-sf-chart { grid-area: c; } .lg-sofar.wide .lg-sf-last { grid-area: l; align-self: end; } .lg-sofar.wide .lg-tiles { grid-area: t; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.lg-sf-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.lg-sf-h b { font-size: 0.98rem; color: var(--ink, var(--text)); }
.lg-sf-h span { font-size: 0.8rem; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.lg-chart { display: block; width: 100%; height: auto; }
.lg-grid { stroke: #e3e8f2; stroke-width: 1; }
.lg-ax { font-size: 9.5px; fill: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-ax.hr { fill: #0e8f80; }
.lg-cur { stroke: rgb(var(--accent-rgb) / 0.35); stroke-width: 1.5; stroke-dasharray: 3 3; }
.lg-lac { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-lac-d { fill: #fff; stroke: var(--accent); stroke-width: 2.2; }
.lg-lac-d.last { fill: var(--accent); stroke: #fff; transform-box: fill-box; transform-origin: center; animation: lgPop 0.45s var(--ease-out, ease) both; }
.lg-hr { fill: none; stroke: #12a594; stroke-width: 1.8; stroke-dasharray: 5 4; stroke-linecap: round; }
.lg-hr-d { fill: #12a594; }
@keyframes lgPop { from { transform: scale(0.2); opacity: 0; } 60% { transform: scale(1.35); } to { transform: none; opacity: 1; } }
.lg-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.lg-leg span { display: inline-flex; align-items: center; gap: 6px; }
.lg-leg span::before { content: ''; width: 16px; height: 0; border-top: 3px solid var(--accent); border-radius: 2px; }
.lg-leg .hr::before { border-top: 2px dashed #12a594; }
.lg-empty { display: grid; place-items: center; text-align: center; min-height: 120px; padding: 14px; border-radius: 12px; border: 1px dashed var(--card-border); color: var(--muted); font-size: 0.86rem; background: #fff; }
.lg-sf-last { font-size: 0.8rem; color: var(--muted); font-weight: 650; margin: 10px 0 6px; }
.lg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lg-tile { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border-radius: 12px; background: #fff; border: 1px solid var(--card-border); min-width: 0; }
.lg-tile span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }
.lg-tile b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 1.35rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink, var(--text)); }
.lg-tile small { font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; }
.lg-tile em { font-style: normal; font-size: 0.78rem; font-weight: 750; color: var(--accent-dark); white-space: nowrap; }

.lg-next { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 8px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--card-border); box-shadow: var(--lift); }
.lg-next > div { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-next > div span { font-size: 0.85rem; color: var(--muted); }
.lg-next button { margin: 0; }

/* samme fokus på alle tallfelt i loggingen */
.live-card input:focus, .steps-table input:focus, .warmup-grid input:focus, .recovery-table input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.18); outline: none; }
.live-card { border-color: var(--card-border); box-shadow: var(--shadow-sm); }
.live-timer { background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.08), rgb(var(--accent-rgb) / 0.03)); border: 1px solid rgb(var(--accent-rgb) / 0.12); }
.live-bar span { background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); }
.live-pill { transition: transform 0.15s var(--ease-out, ease), box-shadow 0.15s; }
.live-pill.active { box-shadow: 0 4px 12px rgb(var(--accent-rgb) / 0.4); transform: translateY(-1px); }
.warmup-box { background: rgb(var(--accent-rgb) / 0.05); border-color: rgb(var(--accent-rgb) / 0.16); border-radius: 14px; }

@media (max-width: 980px) {
  .lg-live { grid-template-columns: minmax(0, 1fr); }
  .lg-live > .lg-sofar { position: static; }
  .lg-live > .lg-sofar .lg-tiles { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
}
@media (max-width: 640px) {
  .lg-head-act { width: 100%; } .lg-head-act button { flex: 1 1 auto; }
  .lg-sofar.wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'h' 'c' 'l' 't'; }
  .lg-live > .lg-sofar .lg-tiles, .lg-sofar.wide .lg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  details.lg-fold > summary { padding: 14px 16px; } .lg-fold-b { padding: 0 16px 16px; }
  .lg-sum { display: none; }
  .lg-next button { flex: 1 1 100%; }
  [id^="sec-lg-"] { scroll-margin-top: 112px; }
}
@media (prefers-reduced-motion: reduce) { .lg-fold-b, .lg-lac-d.last { animation: none; } .lg-chev { transition: none; } }
@media print { .lg-nav, .lg-chev { display: none !important; } }
/* på mobil er toppmenyen høy og fast - hopp-linjen ruller da med siden i stedet for å legge seg oppå menyen */
@media (max-width: 760px) { .bt-secnav { position: static; } [id^="sec-"], [id^="sec-lg-"] { scroll-margin-top: 156px; } }
/* utøverprofil: laktat/VO2-tester uten målinger, og meny for å slette en test */
.bt-sess-empty { border-style: dashed; background: transparent; } .bt-sess-empty .bt-sess-main span:first-of-type { color: var(--muted); font-style: italic; }
.bt-emptynote { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #fff6e0; color: #6b4a00; }
/* veien fra utøver til test: utøverlinjen (hvem og hvor i løpet), «Velg utøver» og «Ny test» på utøversiden */
.bt-athbar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 4px 0 16px; }
.bt-athbar .bt-stepper { margin: 0; }
.bt-athbar-who { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--card-border); box-shadow: var(--shadow-sm); }
.bt-athbar-who:hover { border-color: rgb(var(--accent-rgb) / .55); } .bt-athbar-who:focus-visible { outline: 3px solid rgba(74, 63, 196, 0.55); outline-offset: 2px; }
.bt-athbar-who .bt-av.lg { width: 36px; height: 36px; font-size: 1rem; }
.bt-athbar-t { display: flex; flex-direction: column; line-height: 1.15; } .bt-athbar-t small { color: var(--muted); font-size: 0.72rem; font-weight: 650; } .bt-athbar-t b { font-size: 0.98rem; color: var(--text); }
.subtab.subtab-new { color: var(--accent-dark); font-weight: 750; margin-left: auto; }
.bt-newtest { display: grid; gap: 14px; } .bt-newtest .bt-athbar { margin-bottom: 0; } .bt-newtest .bt-startbar { margin: 2px 0; } .bt-newtest .bt-foot-link { margin: 0 0 12px; }
.bt-contcard .bt-sess-main b { font-size: 0.98rem; }
.pk-search { width: min(420px, 100%); margin: 0 0 12px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px; margin-bottom: 16px; }
.pk-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--card-border); box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .18s; }
.pk-card:hover { border-color: rgb(var(--accent-rgb) / .55); box-shadow: 0 8px 22px rgb(var(--accent-rgb) / .14); transform: translateY(-1px); }
.pk-card:focus-visible { outline: 3px solid rgba(74, 63, 196, 0.55); outline-offset: 2px; }
.pk-t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .pk-t b { overflow-wrap: anywhere; line-height: 1.2; } .pk-t b i { font-weight: 600; font-size: 0.75rem; color: var(--muted); } .pk-t .bt-muted { font-size: 0.84rem; }
/* sensorer: «Registrer» fører løpende snitt inn i trinnet */
.ble-recbar { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 4px 0 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgb(var(--accent-rgb) / .3); background: rgb(var(--accent-rgb) / .05); font-size: 0.9rem; }
.ble-recbar.off { border-style: dashed; border-color: var(--card-border); background: transparent; color: var(--muted); justify-content: space-between; }
.ble-recbar.rec { border-color: #e2483d; background: #fff4f2; }
.ble-recbar label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; } .ble-recbar select { width: auto; padding: 5px 8px; }
.ble-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ble-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--card-border); color: var(--muted); font-variant-numeric: tabular-nums; }
.ble-chip b { font-size: 1.05rem; color: #14213d; min-width: 2.2ch; text-align: right; } .ble-chip.live .ble-dot { background: #1fb676; } .ble-chip.stale .ble-dot { background: #f0b429; } .ble-chip.stale b { opacity: .5; }
.ble-recstat { flex: 1 1 260px; color: var(--muted); } .ble-recbar.rec .ble-recstat { color: #a32a21; font-weight: 700; font-variant-numeric: tabular-nums; }
button.ble-recbtn { padding: 5px 10px; margin-right: 4px; border-color: #e2483d; color: #b3261e; background: #fff; font-weight: 700; white-space: nowrap; }
button.ble-recbtn:hover { background: #fff0ee; }
button.ble-recbtn.on { background: #e2483d; color: #fff; animation: bleRecPulse 1.6s ease-in-out infinite; font-variant-numeric: tabular-nums; }
button.ble-recbtn.big { padding: 10px 16px; margin: 0; }
@keyframes bleRecPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 72, 61, .45); } 50% { box-shadow: 0 0 0 7px rgba(226, 72, 61, 0); } }
@media (prefers-reduced-motion: reduce) { button.ble-recbtn.on { animation: none; } }
tr.ble-rec-row td { background: #fff4f2; } tr.ble-rec-row input[data-sf] { border-color: #e2483d; background: #fff; font-weight: 700; }
button.ble-simbtn { border-style: dashed; }
/* Smal skjerm: fire steg får ikke plass med tekst, så bare steget man står på har navn. */
@media (max-width: 560px) {
  .bt-athbar .bt-stepper li:not(.on):not(.sep) { font-size: 0; gap: 0; }
  .bt-athbar .bt-stepper li.sep { width: 12px; margin: 0 5px; }
}
@media (max-width: 400px) { button.ble-recbtn.big { white-space: normal; padding: 10px 12px; } }
.res-empty { text-align: center; padding: 44px 24px; display: grid; justify-items: center; gap: 6px; }
.res-empty-ic { font-size: 2.4rem; line-height: 1; margin-bottom: 4px; }
.res-empty p { margin: 0 auto 10px; color: var(--muted); }
.res-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* VO2maks-kriterier: ryddig sjekkliste i stedet for punktliste med tegn */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crit-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.crit-list li { display: flex; gap: 8px; align-items: baseline; }
.crit-list li > i { flex: 0 0 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 800; align-self: center; }
.crit-list li.ok > i { background: #d9f2e3; color: #0b6b3a; }
.crit-list li.no > i { background: #fde3e0; color: #a3261a; }

/* Sonetabell: navn og tall brytes ikke midt i ord på smale skjermer (tabellen ruller sidelengs) */
.zone-table7 td:not(:last-child), .zone-table7 th { white-space: nowrap; }
.zone-table7 td:last-child { min-width: 190px; }

/* OLT-tabell: nok bredde til at «Pust» ikke klemmes sammen (tabellen ruller sidelengs på smale skjermer) */
.olt-table { min-width: 940px; }
.olt-table th { white-space: normal; }
.olt-table td:last-child, .olt-table th:last-child { min-width: 150px; }
.rp-sheet .olt-table { min-width: 0; }
.rp-sheet .olt-table td:last-child, .rp-sheet .olt-table th:last-child { min-width: 0; }

/* Rapportark: sonetabellene fyller hele bredden som de andre rapporttabellene */
.rp-sheet .rp-block > table.table, .rp-sheet .card > table.table, .rp-sheet div > table.table { display: table; width: 100%; }

/* Prestasjon på mobil: nøkkeltall to i bredden og merkelappene venstrestilt under hovedtallet */
@media (max-width: 560px) {
  .mp-tiles { grid-template-columns: 1fr 1fr; }
  .mp-hero { padding: 20px; }
  .mp-hero-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

/* lange enkeltord i testkartet (Kroppssammensetning) brytes i stedet for å gå under telleren */
.bt-mapt-top b { overflow-wrap: anywhere; hyphens: auto; }

/* Bevegelsesanalyse: marker selve løftet (start og slutt) før sporing */
.mv-trim { display: block; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line, #dfe5f0); border-radius: 12px; background: var(--soft, #f6f8fc); color: inherit; font-size: 0.9rem; }
.mv-trim-h { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; } .mv-trim-h span { color: var(--muted); font-variant-numeric: tabular-nums; }
.mv-trim-bar { position: relative; height: 10px; margin: 10px 0; border-radius: 999px; background: rgba(22, 32, 58, 0.12); overflow: hidden; }
.mv-trim-bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: rgba(22, 32, 58, 0.28); } .mv-trim-bar.on i { background: #D55E00; }
.mv-trim-bar b { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #16203a; }
.mv-trim-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .mv-trim .hint { margin: 8px 0 0; }
.mv-pb-t small { font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: 6px; }

/* Logging: forrige test og foreløpige terskler i «Så langt»-kurven */
.lg-ghost { fill: none; stroke: #8a94ab; stroke-width: 1.6; stroke-dasharray: 2 3; stroke-linecap: round; stroke-linejoin: round; }
.lg-ghost-d { fill: #8a94ab; }
.lg-leg span.ghost::before { border-top: 2px dotted #8a94ab; }
.lg-thr { stroke-width: 1.4; stroke-dasharray: 4 3; } .lg-thr.lt1 { stroke: #009E73; } .lg-thr.lt2 { stroke: #D55E00; }
.lg-thr-t { font-size: 8.5px; font-weight: 800; } .lg-thr-t.lt1 { fill: #00795a; } .lg-thr-t.lt2 { fill: #b34e00; }
.lg-thr-note { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; margin-top: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(22, 32, 58, 0.05); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.lg-thr-note b { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.lg-thr-note span { font-weight: 750; } .lg-thr-note span.lt1 { color: #00795a; } .lg-thr-note span.lt2 { color: #b34e00; }
.lg-thr-note small { color: var(--muted); flex-basis: 100%; }
/* Testbatteri: beste forsøk i forsøkslisten */
.bt-rt .bt-bestm { display: none; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #e6f6ef; color: #00795a; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.bt-rt tr.best .bt-bestm { display: inline-block; }
.bt-rt tr.best td:nth-child(2) input { border-color: #009E73; box-shadow: 0 0 0 2px rgba(0, 158, 115, 0.18); font-weight: 750; }

/* Dagsform (wellness.js) */
.wl-wrap { display: grid; gap: 16px; }
.wl-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-file { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line, #dfe5f0); border-radius: 10px; background: #fff; font-weight: 650; font-size: 0.9rem; cursor: pointer; }
.btn-file:hover { border-color: var(--accent); }
.wl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; margin: 6px 0 10px; }
.wl-tile { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, #dfe5f0); background: #fff; border-top: 4px solid #c9d1e3; display: grid; gap: 2px; }
.wl-tile.good { border-top-color: #009E73; } .wl-tile.normal { border-top-color: #8a94ab; } .wl-tile.warn { border-top-color: #D55E00; }
.wl-tile span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.wl-tile b { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; } .wl-tile b small { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.wl-tile em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.wl-tile i { font-style: normal; font-size: 0.8rem; font-weight: 700; color: #44547a; } .wl-tile.good i { color: #00795a; } .wl-tile.warn i { color: #b34e00; } .wl-tile i.wait { font-weight: 500; color: var(--muted); }
.wl-form { display: grid; gap: 12px; max-width: 760px; }
.wl-form-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .wl-form-h label { display: flex; gap: 8px; align-items: center; font-weight: 650; }
.wl-saved { padding: 3px 10px; border-radius: 999px; background: #e6f6ef; color: #00795a; font-size: 0.8rem; font-weight: 800; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.wl-f { display: grid; gap: 4px; font-size: 0.86rem; font-weight: 650; } .wl-f span em { font-style: normal; font-weight: 500; color: var(--muted); }
.wl-f input:not([type=hidden]) { width: 100%; }
.wl-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.wl-scale button { padding: 9px 0; min-width: 0; border-radius: 9px; font-weight: 750; font-variant-numeric: tabular-nums; }
.wl-scale button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wl-form-a { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wl-form.big input:not([type=hidden]):not([type=date]) { font-size: 1.15rem; padding: 12px; } .wl-form.big .wl-scale button { padding: 13px 0; } .wl-form.big .primary { padding: 13px 22px; font-size: 1rem; }
.wl-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .wl-range button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wl-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; } .wl-charts.two { gap: 10px 16px; margin-top: 10px; }
.wl-card { margin: 0; } .wl-card-h h3, .wl-mini h3 { margin: 0 0 6px; font-size: 0.95rem; } .wl-card-h h3 em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.wl-chart { display: block; width: 100%; height: auto; }
.wl-grid line, line.wl-grid { stroke: #e3e8f2; stroke-width: 1; }
.wl-ax { font-size: 9px; fill: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.wl-band { fill: rgba(22, 32, 58, 0.08); }
.wl-dot { opacity: 0.45; } .wl-bar { opacity: 0.55; } .wl-bar.load { fill: #8a94ab; opacity: 0.5; }
.wl-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .wl-line.acute { stroke: #D55E00; } .wl-line.chronic { stroke: #0072B2; }
.wl-mark { stroke: #16203a; stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.45; } .wl-mark-t { fill: #16203a; opacity: 0.7; }
.wl-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.wl-leg span { display: inline-flex; align-items: center; gap: 6px; } .wl-leg span::before { content: ''; width: 16px; border-top: 3px solid #8a94ab; border-radius: 2px; }
.wl-leg span.acute::before { border-top-color: #D55E00; } .wl-leg span.chronic::before { border-top-color: #0072B2; }
.wl-empty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 0.88rem; border: 1px dashed var(--line, #dfe5f0); border-radius: 12px; }
.wl-table td, .wl-table th { font-variant-numeric: tabular-nums; white-space: nowrap; } .wl-table td.warn { color: #b34e00; font-weight: 750; } .wl-table td.good { color: #00795a; }
.wl-table td i, .wl-flag { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #D55E00; color: #fff; font-size: 0.7rem; font-weight: 800; }
.wl-me { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.wl-me-h { display: flex; gap: 12px; align-items: center; } .wl-me-h h1 { margin: 0; font-size: 1.5rem; } .wl-me-h p { margin: 2px 0 0; color: var(--muted); } .wl-me-h .link { margin-left: auto; }
.wl-me .card { margin: 0; } .wl-me-note { text-align: center; }
.wl-pick, .wl-res { display: grid; gap: 8px; } .wl-res button { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 12px 14px; } .wl-res button span { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Egen forside (homecustom.js) */
.hc-foot { display: flex; justify-content: center; margin: 18px 0 6px; }
.hc-bat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; } .hc-bat-grid.one { grid-template-columns: 1fr; margin-bottom: 12px; }
.hc-bat { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line, #dfe5f0); border-radius: 14px; background: #fff; }
.hc-bat-h { display: grid; gap: 2px; } .hc-bat-h b { font-size: 1.05rem; } .hc-bat-h span { font-size: 0.82rem; color: var(--muted); }
.hc-bat-m { display: flex; flex-wrap: wrap; gap: 5px; } .hc-bat-m i { font-style: normal; font-size: 0.76rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--c, #8a94ab); color: #26314f; background: #fff; }
.hc-bat-a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hc-editor { border: 2px solid var(--accent); }
.hc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; } .hc-cols h3 { margin: 0 0 10px; font-size: 1rem; }
.hc-rows { display: grid; gap: 6px; margin-bottom: 8px; }
.hc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line, #dfe5f0); border-radius: 12px; background: #fff; } .hc-row.off { opacity: 0.6; }
.hc-row label { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; } .hc-row label span { display: grid; } .hc-row em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.hc-mv { display: flex; gap: 4px; } .hc-mv button { padding: 5px 10px; }
.hc-form { display: grid; gap: 12px; } .hc-form h3 { margin: 0; }
.hc-cat { display: grid; gap: 6px; } .hc-cat > span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-left: 4px solid var(--c); padding-left: 8px; } .hc-cat > div { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-mod { padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; } .hc-mod.on { background: var(--c); border-color: var(--c); color: #fff; }
.hc-form-a { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .hc-form-a .hint { margin: 0 auto 0 0; }
.hc-planchips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; } .hc-planchips > span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.hc-planchips button { border-radius: 999px; padding: 6px 12px; font-size: 0.86rem; } .hc-planchips button.on { background: var(--accent); border-color: var(--accent); color: #fff; } .hc-planchips em { font-style: normal; opacity: 0.7; margin-left: 4px; }


/* =====================================================================================
   TEMA 5: roligere uttrykk. Flate flater i stedet for fargeløp og glød, ingen svevende bokser, varm papirbakgrunn og
   én dyp aksentfarge med en varm aksent som bare brukes på det viktigste. Gjelder alle fargetema; «Sand» er standard.
   Sone- og diagramfarger er urørt (de bærer mening og er valgt for fargesvakhet).
   ===================================================================================== */
:root[data-theme="sand"] {
  --accent: #1d5a47; --accent-dark: #134032; --accent-rgb: 29 90 71; --accent-2: #2b7560; --accent-soft: #dde9e3; --accent-tint: #f3f7f4; --accent-bright: #93c8b0;
  --h1: #17211c; --h2: #1c2922; --h3: #22322a; --glow: 120 180 150; --cta: #b8531f; --cta-ink: #fff; --cta-sh: none; --edge: #b8531f;
  --bg: #f2efe6; --ink: #17211c; --ink-2: #1f2c26; --text: #1b2620; --muted: #666e63; --border: #ddd8ca; --card-border: #ddd8ca; --radius: 12px;
  --tint-blue: #dde9e3; --tint-teal: #dcebe5; --tint-amber: #f6ecd2; --tint-coral: #f5e1d6; --tint-violet: #ece6ee; --tint-green: #e1eddd;
  --c-teal: #2b7560; --c-amber: #b58a1c; --c-coral: #c0652f; --c-violet: #7a5a78; --c-green: #2f7d4f;
}
:root { --lift: 0 1px 2px rgba(22, 32, 28, 0.05); --lift-hover: 0 1px 3px rgba(22, 32, 28, 0.08); --shadow: 0 1px 2px rgba(22, 32, 28, 0.05); }
body { background: var(--bg); background-attachment: scroll; }
:root[data-theme="sand"] .container, :root[data-theme="sand"] main { --page-ink: var(--ink); }
:root[data-theme="sand"] h1, :root[data-theme="sand"] .page-head h1 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; letter-spacing: -0.015em; }
:root[data-theme="sand"] .hm-hero h1, :root[data-theme="sand"] .bt-hero3 h1, :root[data-theme="sand"] .bt-profile-hero h1 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; }

/* Knapper: flate, uten glød og uten å sveve */
button:hover { transform: none; box-shadow: none; border-color: var(--accent); background: var(--accent-tint); }
button.primary { background: var(--accent); border-color: var(--accent); box-shadow: none; }
button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: none; }
button.danger:hover { box-shadow: none; }
.import-btn:hover { transform: none; box-shadow: none; }
.fx-ripple { display: none; }
.tab.active, .subtab.active, .seg button.active { box-shadow: 0 1px 2px rgba(22, 32, 28, 0.14); }
:root[data-nav="light"] .topnav { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--border); box-shadow: none; }
:root[data-nav="light"] .topnav .tabs { background: var(--sunk, #e8e4d8); }
:root[data-nav="light"] .topnav .tab.active, :root[data-nav="light"] .topnav .tab.active:hover { background: var(--accent); color: #fff; box-shadow: none; }
:root[data-nav="light"] .nav-start { background: var(--accent); box-shadow: none; }
:root[data-nav="light"] .nav-start:hover { background: var(--accent-dark); box-shadow: none; }
:root { --sunk: #e8e4d8; }

/* Bokser: tynn ramme, ingen glede ved hover, ingen lysglimt som følger musen */
.card:hover { box-shadow: var(--lift); border-color: var(--card-border); }
.card::before, .dash-card::before, .kpi::before, .insight::before, .method-card::before, .adv-tile::before, .follow-item::before { background: none; }
main.fx-enter .page-head, main.fx-enter .hero, main.fx-enter .banner, main.fx-enter .card, main.fx-enter .dash-card, main.fx-enter .kpi,
main.fx-enter .insight, main.fx-enter .method-card, main.fx-enter .adv-tile, main.fx-enter .follow-item, main.fx-enter .trend-tile { animation-duration: 0.25s; }
.hm-go { border-radius: 12px; opacity: 1; animation: none; min-height: 0; }
.hm-go::before, .hm-go::after { display: none; }
.hm-go:hover { transform: none; border-color: var(--accent); box-shadow: none; }

/* Bannere: én flate, ingen glødende fargeflekker */
.hm-hero, .hero, .bt-hero3, .bt-profile-hero { background: var(--h1); box-shadow: none; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.06); }
.hm-hero::after { display: none; }
.hm-stat { backdrop-filter: none; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.hm-hero .hm-cta, .hm-hero .hm-cta:hover { box-shadow: none; transform: none; background: var(--cta); color: var(--cta-ink); }
.hm-hero .hm-cta:hover { filter: brightness(1.08); }
.bt-hero3, .bt-profile-hero { box-shadow: none; }
/* Forsidens åpningsbilde: ingen glød rundt kurven, ingen lysende ring rundt ikonet, ingen fargeflekker i bakgrunnen */
.hm-scene { background: rgba(255, 255, 255, 0.05); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: none; }
.hm-curve-glow, .hm-blob { display: none; }
.hm-orb::before { display: none; }
.hm-orb img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.hm-orb { animation: none; }
/* Ikonmerker på snarveiskortene: flat farge i stedet for fargeløp */
.hm-go-i { background: var(--g1); box-shadow: none; }
.hm-go-art { opacity: 0.55; }

/* Flere logoer: bibliotek i Innstillinger og valg på rapporten */
.logo-list { display: grid; gap: 8px; margin: 10px 0; }
.logo-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.logo-row.def { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.logo-thumb { width: 120px; height: 52px; display: grid; place-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-name { display: grid; gap: 3px; font-size: 0.82rem; font-weight: 650; } .logo-name input { font: inherit; padding: 7px 9px; }
@media (max-width: 640px) { .logo-row { grid-template-columns: auto minmax(0, 1fr); } .logo-def, .logo-row .danger { grid-column: 2; justify-self: start; } }
.rp-orgtoggle { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; font-size: 0.9rem; } .rp-orgtoggle select { font: inherit; padding: 6px 28px 6px 10px; max-width: 240px; }

/* VO2maks som figur og nøkkeltall */
.vo2-card .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vo2-verdict { font-size: 0.8rem; font-weight: 750; padding: 3px 11px; border-radius: 999px; } .vo2-verdict.ok { background: #e1efe6; color: #25704a; } .vo2-verdict.warn { background: #f5e3cf; color: #85490e; }
.vo2-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin: 8px 0 14px; }
.vo2-big b { display: block; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--accent-dark, var(--accent)); }
.vo2-big small { font-size: 0.95rem; font-weight: 650; color: var(--muted); } .vo2-big em { display: block; font-style: normal; color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.vo2-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 18px; }
.vo2-fact { border-left: 3px solid var(--border); padding-left: 10px; } .vo2-fact span { display: block; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.vo2-fact b { font-size: 1.3rem; font-variant-numeric: tabular-nums; } .vo2-fact b small { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.vo2-chart { margin: 4px 0 8px; } .vo2-h3 { font-size: 0.95rem; margin: 14px 0 8px; }
.vo2-crits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.vo2-crit { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.vo2-crit i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.85rem; }
.vo2-crit.ok i { background: #e1efe6; color: #25704a; } .vo2-crit.no i { background: #f5e3cf; color: #85490e; }
.vo2-crit b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; } .vo2-crit div span { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.vo2-all > summary { cursor: pointer; list-style: none; } .vo2-all > summary h2 { display: inline; }
@media (max-width: 640px) { .vo2-top { grid-template-columns: 1fr; gap: 12px; } .vo2-big b { font-size: 2.8rem; } }

/* Fra test til trening */
.tp-wrap { display: grid; gap: 16px; } .tp-head .card-head { align-items: flex-start; } .tp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-card .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tp-src { font-size: 0.78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft, #e8eef0); color: var(--accent-dark, #1d5a47); } .tp-src.old { background: #f5e3cf; color: #85490e; }
.tp-table td, .tp-table th { font-variant-numeric: tabular-nums; } .tp-table td.num, .tp-table th.num { text-align: right; white-space: nowrap; } .tp-table small { color: var(--muted); font-weight: 500; }
.tp-table td:first-child { white-space: nowrap; } .tp-table td:first-child small { display: block; margin-left: 22px; }
.tp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 10px; vertical-align: -1px; } .tp-desc { color: var(--muted); font-size: 0.86rem; min-width: 180px; }
.tp-keiser { padding: 8px 0; border-top: 1px solid var(--border); } .tp-keiser:first-of-type { border-top: 0; } .tp-keiser > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .tp-chips span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; text-align: center; font-size: 0.8rem; color: var(--muted); } .tp-chips span b { display: block; font-size: 1.15rem; color: var(--ink); } .tp-chips span.main { border-color: var(--accent); background: var(--accent-tint, #f3f7f4); }
.tp-note { text-align: center; }
/* Stasjonsmodus */
.st-card > summary { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; cursor: pointer; }
.st-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0; } .st-bar label { display: flex; gap: 8px; align-items: center; font-weight: 650; }
.st-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; } .st-table th, .st-table td { padding: 6px 8px 6px 0; text-align: left; border-bottom: 1px solid var(--border); }
.st-table thead th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); } .st-table thead th em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.st-table tbody th { font-weight: 650; white-space: nowrap; } .st-table input { width: 100%; min-width: 64px; font: inherit; font-size: 1.05rem; padding: 9px 10px; } .st-table select { font: inherit; padding: 8px; }
.st-res { font-weight: 750; white-space: nowrap; } .st-prev { color: var(--muted); white-space: nowrap; }
.bt-rt input::placeholder { color: #9aa1a8; }

/* Kvalitet, endring og målefeil, prognose og normer */
.qc-wrap { display: grid; gap: 16px; } .qc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.qc-f { display: grid; gap: 4px; font-size: 0.84rem; font-weight: 650; } .qc-f.wide { grid-column: 1 / -1; } .qc-f input { font: inherit; padding: 9px 10px; width: 100%; }
.qc-acts { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qc-lim { width: 76px; font: inherit; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.qc-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.qc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--sunk, #e8e4d8); color: #555d52; }
.qc-chip i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.72rem; background: #fff; }
.qc-chip.ok { background: #e1efe6; color: #25704a; } .qc-chip.warn { background: #f5e3cf; color: #85490e; } .qc-chip.fail { background: #f3d6d2; color: #a1382c; }
.qc-today { font-size: 0.84rem; font-weight: 650; padding: 3px 11px; border-radius: 999px; background: var(--sunk, #e8e4d8); color: var(--muted); } .qc-today.ok { background: #e1efe6; color: #25704a; } .qc-today.warn { background: #f5e3cf; color: #85490e; } .qc-today.fail { background: #f3d6d2; color: #a1382c; }
.qc-table small { color: var(--muted); } .cq-qc { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.cq-card .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .cq-vs { font-size: 0.82rem; color: var(--muted); font-weight: 650; }
.cq-table td.num, .cq-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .cq-table small { color: var(--muted); } .cq-te { display: block; }
.cq-tag { display: inline-block; font-size: 0.78rem; font-weight: 750; padding: 2px 9px; border-radius: 999px; } .cq-tag.noise { background: var(--sunk, #e8e4d8); color: #555d52; } .cq-tag.maybe { background: #f6ecd2; color: #7a5c0e; } .cq-tag.clear { background: #e1efe6; color: #25704a; }
.cq-sec { margin-top: 14px; } .cq-sec h3 { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.cq-flags, .cq-between { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cq-flags li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; } .cq-flags i, .cq-same i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.75rem; }
.cq-flags li.warn i { background: #f5e3cf; color: #85490e; } .cq-flags li.info i { background: var(--sunk, #e8e4d8); color: var(--muted); } .cq-same { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 0.9rem; } .cq-same i { background: #e1efe6; color: #25704a; }
.cq-between li { font-size: 0.9rem; padding-left: 12px; border-left: 3px solid var(--border); } .cq-between li.warn { border-color: #d9733a; } .cq-between li.good { border-color: #2f7d4f; }
.fw-ctl { display: flex; gap: 18px 24px; flex-wrap: wrap; align-items: end; margin: 10px 0; } .fw-ctl label { display: grid; gap: 4px; font-weight: 650; font-size: 0.86rem; min-width: 180px; } .fw-ctl input[type=range] { width: 100%; }
.fw-table td.num, .fw-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .fw-table small { color: var(--muted); font-weight: 500; } .fw-out { opacity: 0.6; } .fw-d.up { color: #25704a; font-weight: 750; }
.nm-card .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .nm-sel { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; font-weight: 650; }
.nm-table td.num, .nm-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .nm-table small { color: var(--muted); }
.nm-bar { position: relative; display: block; width: 140px; height: 8px; border-radius: 4px; background: var(--sunk, #e8e4d8); } .nm-bar .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: 0.45; } .nm-bar b { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
.nm-txt { font-size: 0.86rem; color: var(--muted); } .nm-txt.good { color: #25704a; font-weight: 700; } .nm-txt.low { color: #85490e; font-weight: 700; } .nm-g { display: grid; } .nm-g small { color: var(--muted); }

.bt-sess-mods { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
/* Mobil: ikonet over åpningsbildet dekker kurven, og logoen står allerede i toppen */
@media (max-width: 560px) { .hm-orb { display: none; } }
/* Mobil: normtabellen og endringstabellen legges som kort per rad i stedet for å rulle sideveis */
@media (max-width: 640px) {
  .nm-table thead, .cq-table thead { display: none; } .nm-table, .nm-table tbody, .cq-table, .cq-table tbody { display: block; }
  .nm-table tr { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); } .nm-table td { display: block; padding: 0; border: 0; text-align: left; }
  .nm-table td:nth-child(1) { font-weight: 650; } .nm-table td:nth-child(2) { text-align: right; } .nm-table td:nth-child(3) { grid-column: 1; } .nm-table td:nth-child(4), .nm-table td:nth-child(5) { grid-column: 1 / -1; } .nm-table td:nth-child(4) { margin: 4px 0; } .nm-bar { width: 100%; }
  .cq-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); } .cq-table td { display: block; padding: 0; border: 0; text-align: left !important; }
  .cq-table td:nth-child(1) { grid-column: 1 / -1; font-weight: 700; } .cq-table td:nth-child(2)::before { content: 'Forrige '; color: var(--muted); font-size: 0.74rem; } .cq-table td:nth-child(3)::before { content: 'Nå '; color: var(--muted); font-size: 0.74rem; } .cq-table td:nth-child(4) { grid-column: 1 / -1; } .cq-table td:nth-child(4)::before { content: 'Endring '; color: var(--muted); font-size: 0.74rem; } .cq-table td:nth-child(5) { grid-column: 1 / -1; margin-top: 4px; }
}

/* Stasjonsmodus: lesbare kolonneoverskrifter, trangere felt og færre kolonner på smal skjerm */
.st-table thead th { text-transform: none; letter-spacing: 0; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.st-table input { min-width: 54px; padding: 8px 6px; }
@media (max-width: 520px) { .st-table { table-layout: fixed; } .st-table thead th { overflow: hidden; text-overflow: ellipsis; } .st-table thead th em { display: none; } .st-table input { min-width: 0; font-size: 0.95rem; padding: 8px 4px; text-align: center; } .st-table select { max-width: 100%; padding: 6px 2px; } .st-table td.st-res { font-size: 0.78rem; width: 58px; word-break: break-word; } .st-table tbody th, .st-table thead th:first-child { width: 66px; } .st-table th:last-child, .st-table td:last-child { display: none; } .st-table th, .st-table td { padding-right: 5px; } .st-table tbody th { max-width: 74px; overflow: hidden; text-overflow: ellipsis; } }
/* Skala 1–10 på mobil: fem og fem, så knappene er store nok å treffe */
@media (max-width: 520px) { .wl-scale { grid-template-columns: repeat(5, 1fr); gap: 6px; } .wl-scale button { padding: 13px 0; font-size: 1rem; } }

/* Rutenettene i de nyeste sidene lar aldri en bred tabell presse siden utover skjermen */
.tp-wrap, .wl-wrap, .qc-wrap { grid-template-columns: minmax(0, 1fr); } .tp-wrap > *, .wl-wrap > *, .qc-wrap > * { min-width: 0; }
.tp-card .hint, .tp-card .card-head, .fw-card .hint { overflow-wrap: anywhere; } .tp-src { max-width: 100%; white-space: normal; }

/* ---- VO2maks-test som egen testtype ---- */
.lg-vo2 { fill: none; stroke: #0072B2; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-vo2-d { fill: #fff; stroke: #0072B2; stroke-width: 2.2; }
.lg-vo2-d.last { fill: #0072B2; stroke: #fff; }
.lg-peak-t { font-size: 11px; font-weight: 800; fill: #0b4f7a; paint-order: stroke; stroke: var(--card, #fff); stroke-width: 3px; stroke-linejoin: round; }
.lg-leg .vo2::before { border-top-color: #0072B2; }
.lg-tag.vo2 { background: #e3f1fa; color: #0b4f7a; border-color: #b9dcf0; font-weight: 700; }
.vo2t-kpis { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.vo2t-chartcard canvas, .vo2t-vent canvas { max-width: 100%; }
.vo2t-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vo2t-table tr.vo2t-peakrow td { background: #e9f4fb; font-weight: 700; }
.vo2t-table th { white-space: nowrap; }
.vo2t-thr .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vo2t-prl { display: grid; gap: 8px; margin: 6px 0 10px; }
.vo2t-pr { display: grid; grid-template-columns: 82px minmax(0, 1fr) 54px 64px; gap: 10px; align-items: center; font-size: 0.88rem; }
.vo2t-pr .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.vo2t-pr .b { height: 12px; border-radius: 99px; background: #e8eef5; overflow: hidden; }
.vo2t-pr .b i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5aa7d6, #0072B2); }
.vo2t-pr.cur .b i { background: linear-gradient(90deg, #2a8f6f, #0b7a5a); }
.vo2t-pr.cur .d, .vo2t-pr.cur b { font-weight: 800; color: var(--text); }
.vo2t-pr b { text-align: right; font-variant-numeric: tabular-nums; }
.vo2t-pr em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.vo2t-pr em.up { color: #0b7a5a; } .vo2t-pr em.dn { color: #b3441a; }
@media (max-width: 520px) { .vo2t-pr { grid-template-columns: 74px minmax(0, 1fr) 46px 54px; gap: 8px; } }
.vo2t-intro p { margin: 6px 0 0; max-width: 70ch; }
.vo2t-proj .num, .vo2t-act { white-space: nowrap; }
.vo2t-proj .num, .table .num { font-variant-numeric: tabular-nums; }
.vo2t-d { font-weight: 700; color: var(--muted); } .vo2t-d.up { color: #0b7a5a; } .vo2t-d.dn { color: #b3441a; } .vo2t-d small { font-weight: 600; color: var(--muted); }
.vo2t-act { text-align: right; }
@media (max-width: 640px) { .vo2t-act { text-align: left; } .vo2t-act button { margin: 2px 4px 2px 0; } }
.vo2t-tl { display: grid; gap: 10px; margin-top: 8px; }
.vo2t-trow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--border, #e3e0d6); border-radius: 12px; background: var(--card, #fff); }
.vo2t-tmain { display: grid; grid-template-columns: 92px minmax(130px, 1fr) auto 64px auto; gap: 8px 16px; align-items: baseline; min-width: 0; flex: 1 1 420px; }
.vo2t-tmain .dt { font-weight: 700; font-variant-numeric: tabular-nums; }
.vo2t-tmain .pr, .vo2t-tmain .st { color: var(--muted); font-size: 0.86rem; }
.vo2t-tmain .v b { font-size: 1.2rem; font-variant-numeric: tabular-nums; } .vo2t-tmain .v small { color: var(--muted); margin-left: 4px; }
.vo2t-tact { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) { .vo2t-tmain { grid-template-columns: 1fr auto; } .vo2t-tmain .dt { grid-column: 1; } .vo2t-tmain .v { grid-column: 2; grid-row: 1 / span 2; text-align: right; } .vo2t-tmain .pr { grid-column: 1; } .vo2t-tmain .st { grid-column: 1; } .vo2t-tmain .vo2t-d { grid-column: 2; text-align: right; } }
@media (max-width: 420px) { .vo2t-kpis .kpi-unit { display: block; margin-left: 0; } }

/* ---- VO2maks-test på Logg test: peak eller hele testen ---- */
.vo2f-seg { margin: 4px 0 14px; display: flex; }
.vo2f-seg .seg { flex-wrap: wrap; }
.vo2f-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.vo2f-paste textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; min-height: 96px; }
.vo2f-scroll { overflow-x: auto; margin: 10px -2px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.vo2f-table { min-width: 980px; }
.vo2f-table th { white-space: nowrap; font-size: 0.74rem; vertical-align: bottom; }
.vo2f-table th small { display: block; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.vo2f-table td { padding: 4px 4px; }
.vo2f-table td.ro { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; font-size: 0.84rem; padding-right: 8px; }
.vo2f-table input { padding: 6px 6px; text-align: right; }
.vo2f-tiles { margin-top: 10px; }
.vo2f-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.vo2f-chart { margin-top: 6px; }
.vo2f-svg { width: 100%; height: auto; }
.vo2f-best { fill: #0072B2; opacity: 0.12; }
.vo2f-raw { fill: #0072B2; opacity: 0.35; }
.lg-leg .best::before { border-top-color: transparent; width: 14px; height: 10px; border: 0; background: rgba(0, 114, 178, 0.18); border-radius: 3px; }
.vo2f-scroll { max-height: 440px; overflow: auto; border: 1px solid var(--border, #e3e0d6); border-radius: 10px; margin: 10px 0; }
.vo2f-table { margin: 0; }
.vo2f-table thead th { position: sticky; top: 0; z-index: 1; }
.bt-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.bt-quick-g { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--border, #e3e0d6); border-radius: 12px; background: var(--card, #fff); align-content: start; }
.bt-quick-g b { font-size: 1rem; } .bt-quick-g .bt-actions { margin-top: 8px; }
.vo2t-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.vo2t-kpis .kpi { min-width: 0; } .vo2t-kpis .kpi-unit { white-space: normal; }
.rp-sheet h3, #cmpReportArea h3 { overflow-wrap: anywhere; }

/* ---- Backup til mappe på PC ---- */
.fsb-status { margin: 6px 0 10px; font-size: 0.92rem; }
.fsb-ok { color: #0b7a5a; font-weight: 700; } .fsb-warn { color: #a85a0a; font-weight: 700; } .fsb-off { color: var(--muted); font-weight: 700; }
.fsb-home { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; border-left: 4px solid var(--accent, #1d5a47); }
.fsb-home p { margin: 2px 0 0; max-width: 60ch; } .fsb-home-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---- Gjenopprett fra backup ---- */
.rs-drop { display: grid; place-items: center; gap: 4px; padding: 30px 16px; border: 2px dashed var(--border, #cfd6e6); border-radius: 14px; cursor: pointer; text-align: center; background: var(--card-soft, rgba(0,0,0,0.015)); transition: border-color .15s, background .15s; }
.rs-drop:hover, .rs-drop.over { border-color: var(--accent, #1d5a47); background: rgba(29, 90, 71, 0.06); }
.rs-drop-t { font-weight: 700; font-size: 1.02rem; } .rs-drop-s { color: var(--muted); font-size: 0.88rem; }
.rs-ok, .rs-bad, .rs-done { border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.rs-ok { border: 1px solid var(--border, #dfe6f3); background: var(--card, #fff); }
.rs-bad { border: 1px solid #e6b3a5; background: #fdf1ed; color: #7a2a14; } .rs-bad p { margin: 6px 0 10px; }
.rs-done { border: 1px solid #b7dcc9; background: #eef8f2; color: #0b4d38; }
.rs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 4px; }
.rs-badge { background: #e3f4ec; color: #0b6b4c; font-weight: 800; font-size: 0.82rem; padding: 4px 10px; border-radius: 99px; }
.rs-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; margin: 10px 0; }
.rs-cols h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 6px; }
.rs-t { margin: 0; } .rs-t td { padding: 6px 8px; } .rs-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .rs-plan li { padding-left: 22px; position: relative; font-size: 0.92rem; }
.rs-plan li::before { content: '•'; position: absolute; left: 6px; color: var(--muted); } .rs-plan li.ok::before { content: '✓'; color: #0b7a5a; left: 2px; font-weight: 800; } .rs-plan li.warn::before { content: '!'; color: #b3601a; left: 4px; font-weight: 800; }
.rs-issues { background: #fff6e8; border: 1px solid #f0d8ae; border-radius: 10px; padding: 10px 14px; margin: 10px 0; color: #6b4608; } .rs-issues ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 640px) { .rs-cols { grid-template-columns: minmax(0, 1fr); } }
.settings-grid .rs-card { grid-column: 1 / -1; }
.rs-t td:first-child { white-space: normal; }

/* ---- Loggetabeller: like store bokser med lik avstand (laktat/VO2 og hele VO2maks-testen) ---- */
.steps-scroll, .vo2f-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.steps-table, .vo2f-table { table-layout: fixed; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.steps-table th, .steps-table td, .vo2f-table th, .vo2f-table td { width: 92px; min-width: 92px; max-width: 92px; padding: 6px 4px; text-align: center; vertical-align: middle; box-sizing: border-box; }
.steps-table th:first-child, .steps-table td:first-child { width: 44px; min-width: 44px; max-width: 44px; }
.steps-table th:last-child, .steps-table td:last-child { width: 132px; min-width: 132px; max-width: 132px; }
.vo2f-table th:last-child, .vo2f-table td:last-child { width: 60px; min-width: 60px; max-width: 60px; }
.steps-table td input, .vo2f-table td input { width: 100%; min-width: 0; box-sizing: border-box; height: 40px; padding: 0 6px; text-align: center; font-variant-numeric: tabular-nums; margin: 0; }
.steps-table td input::placeholder, .vo2f-table td input::placeholder { color: var(--muted); opacity: 0.55; }
.steps-table td.ro, .vo2f-table td.ro { text-align: center; }
.steps-table th small, .vo2f-table th small { display: block; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 0.7rem; white-space: nowrap; }
.steps-table th, .vo2f-table th { white-space: nowrap; vertical-align: bottom; }
.vo2f-table { min-width: 0; }
/* ⓘ-forklaringer */
.gl-h { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.gl-i { appearance: none; border: 0; background: transparent; color: var(--accent, #1d5a47); font: inherit; font-size: 0.85rem; line-height: 1; padding: 2px 3px; cursor: pointer; border-radius: 50%; min-width: 0; box-shadow: none; }
.gl-i:hover, .gl-i:focus-visible { background: rgba(29, 90, 71, 0.12); }
.gl-bar { margin: 8px 0; padding: 10px 14px; border-radius: 10px; background: #eef6f1; border: 1px solid #cfe4d8; color: #1c3a2e; font-size: 0.92rem; }
.gl-bar[hidden] { display: none; }
.gl-all { margin: 8px 0 6px; } .gl-all summary { cursor: pointer; font-weight: 700; color: var(--accent, #1d5a47); padding: 4px 0; }
.gl-dl { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 6px 16px; margin: 8px 0 4px; font-size: 0.9rem; }
.gl-dl dt { font-weight: 700; } .gl-dl dd { margin: 0; color: var(--text-soft, #44547a); }
@media (max-width: 560px) { .gl-dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .gl-dl dd { margin-bottom: 8px; } }

/* ---- Ny versjon klar ---- */
.upd-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; max-width: calc(100vw - 24px); padding: 12px 16px; border-radius: 14px; background: #14302a; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.28); font-size: 0.92rem; }
.upd-bar .link { color: #cfe4d8; }
