/* Skrifttyper (selv-hostet, så appen ser ens ud offline) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/Barlow-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/BarlowCondensed-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/BarlowCondensed-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/BarlowCondensed-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   DESIGNSYSTEM
   Stadion om aftenen: mørk grøn-sort som en bane under lys,
   limegrøn som målmandshandsker og lysmaster.
   Display: Barlow Condensed (som trøjenumre og stadionskilte)
   Brødtekst: Barlow
   ========================================================= */
:root {
  --bg: #0C1210;
  --bg-2: #101814;
  --card: #16201B;
  --card-2: #1C2822;
  --line: #24322B;
  --line-2: #33443B;
  --text: #F1F5EF;
  --soft: #CDD7CE;
  --muted: #93A398;
  --dim: #66776C;
  --lime: #C8F03C;
  --lime-ink: #142000;
  --lime-soft: rgba(200, 240, 60, .13);
  --rest: #4DB6FF;
  --rest-ink: #00213A;
  --push: #FF9A3D;
  --push-ink: #2E1300;
  --prep: #FFD84A;
  --danger: #FF6B5B;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .38);
  --font-d: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", system-ui, sans-serif;
  --font-b: "Barlow", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --top-h: 56px;
  --nav-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%; -webkit-text-size-adjust: 100%; overflow: hidden; overscroll-behavior: none; touch-action: manipulation;
}
/* Appen er en fast skal: kun .page scroller, og kun hvis indholdet er højere end skærmen.
   Det fjerner "elastik"-træk og pull-to-refresh på sider, der ikke skal kunne flyttes. */
body {
  margin: 0; position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--font-b);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
.app { height: 100%; display: flex; flex-direction: column; }
.pages { flex: 1 1 auto; min-height: 0; position: relative; }
.page {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-top: 76px;
}
.page.is-entering { animation: pageIn .22s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-in { padding-top: 14px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.app.has-mini .page-in { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.page-in > * + * { margin-top: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head > div { min-width: 0; }
.page-head h2 { font-size: clamp(32px, 8.6vw, 54px); text-transform: uppercase; letter-spacing: -.005em; outline: none; }
.block-title { margin-top: 26px !important; }
.block-title h2 { font-size: 26px; text-transform: uppercase; color: var(--soft); }
svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; z-index: 100; top: 8px; left: 8px; width: auto; height: auto; overflow: visible; clip: auto; padding: 12px 16px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right)); }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 800; line-height: .95; margin: 0; }
p { margin: 0; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-md);
  font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line-2);
  transition: transform .12s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; font-size: 16px; padding: 0 16px; border-radius: var(--r-sm); }
.link-btn { color: var(--lime); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Topbar ---------- */
.topbar {
  flex: none; z-index: 50;
  background: rgba(12, 18, 16, .94);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-d); font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { display: none; }
.top-title { font-family: var(--font-d); font-weight: 800; font-size: 25px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; gap: 2px; margin-left: auto; }
.topnav a { color: var(--soft); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 12px; }
.topnav a:hover { background: var(--card); color: var(--text); }
.topnav a[aria-current="page"] { color: var(--lime); background: var(--lime-soft); }
.week-chip {
  margin-left: auto; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--lime-soft); color: var(--lime); border: 1px solid rgba(200, 240, 60, .35);
  font-family: var(--font-d); font-weight: 800; font-size: 18px; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Bundnavigation (mobil) ---------- */
.bottomnav {
  flex: none; z-index: 60;
  background: rgba(14, 21, 18, .98);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottomnav ul { list-style: none; margin: 0 auto; padding: 0 2px; display: grid; grid-template-columns: repeat(6, 1fr); max-width: 640px; }
.bottomnav a {
  height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; -webkit-tap-highlight-color: transparent;
}
.bottomnav a svg { width: 25px; height: 25px; }
.bottomnav a[aria-current="page"] { color: var(--lime); }
.bottomnav a:active { background: rgba(255, 255, 255, .04); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 16px 0 6px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% 10% -20%; z-index: -2;
  background: radial-gradient(55% 55% at 78% 0%, rgba(220, 255, 140, .18), transparent 70%);
}
.hero-net {
  position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image:
    repeating-linear-gradient(45deg, rgba(241, 245, 239, .07) 0 1.5px, transparent 1.5px 26px),
    repeating-linear-gradient(-45deg, rgba(241, 245, 239, .07) 0 1.5px, transparent 1.5px 26px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.hero-post { position: absolute; z-index: -1; top: 0; right: 18px; width: 12px; height: 100%; background: linear-gradient(180deg, rgba(241,245,239,.16), transparent); border-radius: 0 0 8px 8px; }
.eyebrow { font-family: var(--font-d); font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.hero h1 { font-size: clamp(34px, 9.5vw, 60px); line-height: .92; letter-spacing: -.005em; text-transform: uppercase; max-width: 14ch; outline: none; }
.hero + .page-in { padding-top: 12px; }

/* ---------- Fliser og lister (I dag / Mere) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px !important; }
.tile {
  display: grid; align-content: center; gap: 2px; min-height: 96px; padding: 14px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; position: relative;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .2s ease;
}
.tile:active, .list-row:active { transform: scale(.98); background: var(--card-2); }
.tile > span { color: var(--lime); }
.tile svg { width: 28px; height: 28px; margin-bottom: 4px; }
.tile b { font-family: var(--font-d); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
.tile small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.list { display: grid; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 14px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .2s ease;
}
.lr-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; }
.lr-ic svg { width: 24px; height: 24px; }
.lr-t { flex: 1; min-width: 0; display: grid; }
.lr-t b { font-family: var(--font-d); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.lr-t small { color: var(--muted); font-weight: 600; font-size: 14px; }
.lr-go { color: var(--dim); }
.lr-go svg { width: 22px; height: 22px; }
.disclaimer { color: var(--muted); font-size: 14px; }

/* ---------- Segmenteret vælger (tracker) og øvelsesfilter ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.seg-btn { min-height: 46px; border-radius: 12px; font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.seg-btn[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); }
.tracker-grid[data-tab="new"] #trackDev { display: none; }
.tracker-grid[data-tab="dev"] #matchForm { display: none; }
.lib-bar { position: sticky; top: 0; z-index: 30; margin: 0 -18px; padding: 8px 18px 8px; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.lib-bar .chips { padding: 0; }
.lib-search input { width: 100%; min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); padding: 10px 14px; font-size: 17px; color: var(--text); -webkit-appearance: none; appearance: none; }
.lib-search input::-webkit-search-cancel-button { filter: invert(1); }

/* ---------- Progression (fælles komponent) ---------- */
.progress-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pc-head span { color: var(--muted); font-weight: 600; font-size: 14px; }
.pc-head strong { font-family: var(--font-d); font-size: 24px; font-weight: 800; }
.pc-track { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pc-end { font-family: var(--font-d); font-weight: 800; font-size: 15px; color: var(--muted); white-space: nowrap; letter-spacing: .03em; }
.dots { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; align-items: center; }
.dots li { height: 6px; border-radius: 6px; background: var(--line-2); position: relative; }
.dots li.done { height: 14px; background: var(--lime); }
.dots li.now { height: 14px; background: transparent; box-shadow: inset 0 0 0 2.5px var(--lime); }
.progress-big .dots li { height: 10px; }
.progress-big .dots li.done, .progress-big .dots li.now { height: 22px; border-radius: 8px; }

/* ---------- Tekst ---------- */
.sec-lead { color: var(--soft); max-width: 46ch; margin-top: 6px; font-size: 15.5px; line-height: 1.4; }

/* ---------- I dag ---------- */
.today-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 20px;
  background: linear-gradient(135deg, var(--card-2), var(--card)); border: 1px solid var(--line-2);
  display: grid; gap: 14px;
}
.today-card.is-fit { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.today-card.is-fit .today-small { color: rgba(20, 32, 0, .72); }
.today-card.is-fit .btn { background: var(--lime-ink); color: var(--lime); border-color: var(--lime-ink); }
.today-small { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.today-big { font-size: clamp(38px, 10vw, 64px); text-transform: uppercase; }
.today-text { font-size: 17px; font-weight: 500; max-width: 40ch; }
.today-ic { position: absolute; right: -16px; top: -12px; width: 140px; height: 140px; opacity: .12; }

/* ---------- Min uge ---------- */
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  min-height: 108px; padding: 12px 6px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.day .dn { font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: .03em; }
.day .dl { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.15; }
.day svg { width: 28px; height: 28px; color: var(--soft); }
.day.fit { grid-column: span 2; background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(200, 240, 60, .22); }
.day.fit svg, .day.fit .dl { color: var(--lime-ink); }
.day.fit .dn { font-size: 26px; }
.day.fit .dl { font-size: 13.5px; font-weight: 700; }
.day.match svg { color: var(--lime); }
.day.today { box-shadow: 0 0 0 2px var(--text); }
.day.fit.today { box-shadow: 0 0 0 2px var(--text), 0 10px 30px rgba(200, 240, 60, .22); }
.today-pin { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }

/* ---------- Ugenavigation ---------- */
.weeknav {
  position: sticky; top: 0; z-index: 40;
  margin: 0 -18px; padding: 8px 0 10px;
  background: linear-gradient(180deg, var(--bg) 82%, rgba(12, 18, 16, 0));
}
.weeknav-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px; scroll-snap-type: x proximity; scrollbar-width: none; }
.weeknav-scroll::-webkit-scrollbar { display: none; }
.wk {
  flex: 0 0 auto; min-width: 82px; height: 54px; border-radius: 15px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line-2);
  font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.wk .ck { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; }
.wk .ck svg { width: 12px; height: 12px; }
.wk[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.wk[aria-selected="true"] .ck { background: var(--lime-ink); color: var(--lime); }

/* ---------- Ugevisning ---------- */
.wk-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 20px 20px;
  background: var(--card); border: 1px solid var(--line-2); margin-bottom: 14px;
}
.wk-hero .bignum {
  position: absolute; right: -8px; top: -30px; font-family: var(--font-d); font-weight: 800;
  font-size: 190px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(200, 240, 60, .22);
  pointer-events: none; user-select: none;
}
.wk-hero h3 { font-size: clamp(34px, 9.5vw, 58px); text-transform: uppercase; max-width: 12ch; position: relative; }
.wk-of { position: relative; font-family: var(--font-d); font-weight: 800; font-size: 17px; letter-spacing: .05em; color: var(--lime); margin-bottom: 8px; }
.wk-hero .desc { margin-top: 12px; font-size: 17px; color: var(--soft); max-width: 38ch; position: relative; font-weight: 500; }
.phase-steps { display: flex; gap: 6px; margin: 16px 0 0; position: relative; }
.phase-steps span { flex: 1; height: 5px; border-radius: 4px; background: var(--line-2); }
.phase-steps span.on { background: var(--lime); }
.wk-prog { margin-top: 16px; display: flex; align-items: center; gap: 12px; position: relative; }
.bar { flex: 1; height: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 12px; transition: width .35s ease; }
.wk-prog b { font-family: var(--font-d); font-size: 22px; font-weight: 800; white-space: nowrap; }

.blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.week-layout > * { min-width: 0; }
.block { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.block-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; }
.block-ic svg { width: 24px; height: 24px; }
.block-head h4 { overflow-wrap: anywhere; font-size: 27px; text-transform: uppercase; letter-spacing: .01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--soft); }
.tag.lime { background: var(--lime-soft); border-color: rgba(200, 240, 60, .35); color: var(--lime); }
.callout { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line-2); border-left: 4px solid var(--lime); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 12px; font-weight: 600; color: var(--soft); }
.callout svg { width: 22px; height: 22px; color: var(--lime); flex: none; margin-top: 1px; }

.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.item { display: flex; align-items: stretch; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.item-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; text-align: left; border-radius: var(--r-md); }
.thumb { flex: none; width: 108px; border-radius: 12px; overflow: hidden; }
.thumb .illu { width: 100%; height: auto; }
.item-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-txt .nm { font-weight: 700; font-size: 16px; line-height: 1.2; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.item-txt .ds { font-family: var(--font-d); font-weight: 800; font-size: 24px; color: var(--lime); line-height: 1.05; }
.item-txt .nt { font-size: 13px; color: var(--muted); line-height: 1.25; }
.check {
  flex: none; width: 52px; display: grid; place-items: center; border-left: 1px solid var(--line);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--dim);
}
.check span { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check svg { width: 18px; height: 18px; opacity: 0; }
.check[aria-pressed="true"] span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.check[aria-pressed="true"] svg { opacity: 1; }
.item.is-done .item-open { opacity: .55; }
.rest-row { align-items: center; padding: 10px 14px; gap: 12px; color: var(--soft); font-weight: 600; background: transparent; border-style: dashed; }
.rest-pill { font-family: var(--font-d); font-weight: 800; font-size: 18px; color: var(--rest-ink); background: var(--rest); border-radius: 10px; padding: 2px 10px; }
.block-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.block-actions .btn { flex: 1 1 200px; }

/* Intervalkort */
.ivl { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 12px; }
.ivl-steps { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.ivl-step { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 8px 12px; min-height: 48px; }
.ivl-step b { font-family: var(--font-d); font-weight: 800; font-size: 26px; min-width: 76px; line-height: 1; white-space: nowrap; }
.ivl-step span { font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.ivl-step small { margin-left: auto; font-weight: 700; font-size: 13px; opacity: .8; text-align: right; }
.ivl-step.work { background: var(--lime); color: var(--lime-ink); }
.ivl-step.push { background: var(--push); color: var(--push-ink); }
.ivl-step.rest { background: var(--rest); color: var(--rest-ink); }
.ivl-step.reps { background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); }
.ivl-arrow { align-self: center; color: var(--muted); height: 16px; }
.ivl-arrow svg { width: 16px; height: 16px; }
.ivl-rep { align-self: center; margin-top: 2px; font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--lime); display: flex; align-items: center; gap: 8px; }
.ivl-rep svg { width: 20px; height: 20px; }
.ivl-line { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin-top: 12px; gap: 2px; }
.ivl-line i { display: block; }
.ivl-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* Test-formular uge 8 */
.testform { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.field input, .field select, .field textarea {
  min-height: 50px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  padding: 10px 12px; font-size: 17px; color: var(--text); width: 100%;
}
.field textarea { min-height: 76px; resize: vertical; }
.saved-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

.wk-done-btn { margin-top: 16px; }
.wk-done-btn[aria-pressed="true"] { background: transparent; color: var(--lime); border-color: var(--lime); }

/* ---------- Hjemme ---------- */
.home-top { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 18px; margin-bottom: 14px; }
.not-training.home-rule { background: var(--lime); color: var(--lime-ink); }
.home-week { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hw-txt { font-weight: 600; color: var(--soft); }
.hw-txt b { font-family: var(--font-d); font-size: 26px; color: var(--text); margin-right: 4px; }
.hw-pills { display: flex; gap: 6px; }
.hw-pill { min-width: 62px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--font-d); font-weight: 800; font-size: 17px; color: var(--muted); }
.hw-pill svg { width: 15px; height: 15px; }
.hw-pill.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.hw-pill.now { box-shadow: 0 0 0 2px var(--text); }
#page-hjemme .blocks + .wk-done-btn { margin-top: 14px; }
.today-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Fredag ---------- */
.fri-card { border-radius: var(--r-xl); padding: 20px; background: var(--card); border: 1px solid var(--line-2); }
.not-training {
  display: flex; gap: 12px; align-items: center; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 16px;
  background: var(--rest); color: var(--rest-ink); font-weight: 700; font-size: 17px; line-height: 1.3;
}
.not-training svg { width: 30px; height: 30px; flex: none; }
.not-training > span:first-child { flex: none; display: grid; }
.not-training strong { font-family: var(--font-d); font-size: 22px; letter-spacing: .02em; }

/* ---------- Øvelsesbibliotek ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--card); font-weight: 700; font-size: 15px; color: var(--soft);
}
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.lib { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.timer-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.timer { min-width: 0; }
.ex-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.ex-illu { display: block; width: 100%; padding: 10px 10px 0; }
.ex-body { padding: 14px 16px 18px; display: grid; gap: 10px; }
.ex-cat { justify-self: start; font-size: 13px; font-weight: 700; color: var(--lime); background: var(--lime-soft); border-radius: 99px; padding: 3px 10px; }
.ex-body h3 { font-size: 30px; text-transform: uppercase; }
.ex-goal { color: var(--soft); font-weight: 600; }
.ex-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.ex-steps li { display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--soft); }
.ex-steps b { font-family: var(--font-d); font-weight: 800; font-size: 15px; letter-spacing: .05em; color: var(--text); text-transform: uppercase; padding-top: 1px; }
.ex-dose { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ex-dose div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; }
.ex-dose dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.ex-dose dd { margin: 0; font-family: var(--font-d); font-size: 24px; font-weight: 800; color: var(--lime); line-height: 1.1; }
.ex-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ex-tips li { display: flex; gap: 8px; font-size: 14.5px; color: var(--soft); }
.ex-tips svg { width: 18px; height: 18px; color: var(--lime); flex: none; margin-top: 2px; }

/* ---------- RPE ---------- */
.rpe { display: grid; gap: 6px; }
.rpe-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; }
.rpe-n { font-family: var(--font-d); font-weight: 800; font-size: 26px; text-align: right; }
.rpe-cell { display: grid; gap: 3px; }
.rpe-bar { height: 42px; border-radius: 12px; background: var(--c); width: var(--w); min-width: 132px; max-width: 100%; display: flex; align-items: center; padding: 0 12px; color: #0C1210; font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.rpe-cue { font-size: 13px; color: var(--muted); font-weight: 600; padding-left: 2px; }
.rpe-explain { margin-top: 16px; font-size: 18px; font-weight: 600; color: var(--soft); max-width: 40ch; }

/* ---------- Tracker ---------- */
.tracker-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.panel {
  min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.panel h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 8px; }
.rate { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rate-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.rate-top label { font-weight: 700; }
.rate-top output { font-family: var(--font-d); font-weight: 800; font-size: 30px; color: var(--lime); line-height: 1; min-width: 2ch; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--lime) 0 var(--p, 50%), var(--line-2) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 10px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 10px; background: var(--lime); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--text); border: 4px solid var(--lime); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--text); border: 4px solid var(--lime); }
.form-actions { margin-top: 14px; }
.chart-wrap { margin-top: 4px; }
.chart { width: 100%; height: auto; }
.chart .ax { fill: var(--muted); font: 700 15px var(--font-b); }
.empty { color: var(--muted); font-weight: 500; padding: 8px 0; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hist { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 8px; }
.hist-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hist-top b { font-family: var(--font-d); font-size: 20px; font-weight: 800; }
.hist-vals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.hist-vals span { text-align: center; background: var(--card); border-radius: 10px; padding: 4px 2px; font-size: 13px; color: var(--muted); line-height: 1.2; }
.hist-vals b { display: block; font-family: var(--font-d); font-size: 22px; color: var(--text); }
.hist p { font-size: 14.5px; color: var(--soft); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--card); color: var(--soft); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Progression-sektion ---------- */
.start-row { display: grid; gap: 8px; margin-bottom: 14px; max-width: 420px; }
.start-row .sec-lead { margin: 0; font-size: 14.5px; color: var(--muted); }
.prog-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.pt {
  min-height: 76px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--font-d); font-weight: 800; font-size: 22px;
}
.pt small { font-family: var(--font-b); font-size: 13px; font-weight: 600; color: var(--muted); }
.pt[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.pt[aria-pressed="true"] small { color: rgba(20, 32, 0, .7); }

/* ---------- Timer ---------- */
.timer { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.t-display {
  --ph: var(--card-2); --ink: var(--text);
  background: var(--ph); color: var(--ink); padding: 18px 18px 22px; text-align: center; transition: background .25s ease, color .25s ease;
}
.timer[data-phase="work"] .t-display { --ph: var(--lime); --ink: var(--lime-ink); }
.timer[data-phase="push"] .t-display { --ph: var(--push); --ink: var(--push-ink); }
.timer[data-phase="rest"] .t-display { --ph: var(--rest); --ink: var(--rest-ink); }
.timer[data-phase="prep"] .t-display { --ph: var(--prep); --ink: #2B2200; }
.timer[data-phase="reps"] .t-display { --ph: var(--lime); --ink: var(--lime-ink); }
.timer[data-phase="done"] .t-display { --ph: var(--lime); --ink: var(--lime-ink); }
.timer[data-phase="in"] .t-display { --ph: var(--rest); --ink: var(--rest-ink); }
.timer[data-phase="out"] .t-display { --ph: #7EE8A2; --ink: #002914; }
.timer[data-phase="hold"] .t-display { --ph: #2A3A32; --ink: var(--text); }
.timer[data-phase="react"] .t-display { --ph: var(--card-2); --ink: var(--text); }
.timer[data-phase="react"][data-cue="L"] .t-display, .timer[data-phase="react"][data-cue="R"] .t-display { --ph: var(--lime); --ink: var(--lime-ink); }
.timer[data-phase="react"][data-cue="U"] .t-display { --ph: var(--rest); --ink: var(--rest-ink); }
.timer[data-phase="react"][data-cue="D"] .t-display { --ph: var(--push); --ink: var(--push-ink); }
.timer[data-phase="react"] .t-phase { font-size: clamp(60px, 19vw, 120px); line-height: 1; min-height: 1.05em; }
.timer[data-phase="react"] .t-time { font-size: clamp(54px, 16vw, 90px); }
.t-display.cue-pop .t-phase { animation: cuePop .28s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes cuePop { from { transform: scale(.82); opacity: .4; } to { transform: none; opacity: 1; } }
.t-name { font-weight: 700; font-size: 14.5px; opacity: .8; min-height: 20px; }
.t-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.t-round { font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: .05em; }
.t-total { font-weight: 700; font-size: 14px; opacity: .8; }
.t-phase { font-family: var(--font-d); font-weight: 800; font-size: clamp(50px, 15vw, 84px); line-height: .9; letter-spacing: .03em; margin-top: 12px; }
.t-time { font-family: var(--font-d); font-weight: 800; font-size: clamp(92px, 28vw, 170px); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.t-label { font-size: 19px; font-weight: 700; min-height: 28px; margin-top: 4px; }
.t-prog { height: 10px; border-radius: 10px; background: rgba(0, 0, 0, .18); overflow: hidden; margin-top: 14px; }
.timer[data-phase="idle"] .t-prog { background: var(--bg-2); }
.t-prog i { display: block; height: 100%; width: 0; background: currentColor; border-radius: 10px; }
.t-next { margin-top: 12px; font-weight: 700; font-size: 15px; opacity: .85; min-height: 22px; }
.t-body { padding: 16px; display: grid; gap: 14px; }
.t-controls { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.t-controls .btn { min-height: 64px; font-size: 22px; padding: 0 8px; min-width: 0; }
.t-controls .btn:disabled { opacity: .35; }
.t-next-btn { min-height: 70px; font-size: 23px; }
.t-sub { font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.custom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; text-align: center; }
.stepper label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.stepper .sv { font-family: var(--font-d); font-weight: 800; font-size: 30px; line-height: 1.1; }
.stepper .sb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.stepper button { min-height: 44px; border-radius: 10px; background: var(--card-2); font-size: 24px; font-weight: 700; line-height: 1; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--soft); }
.toggle i { width: 34px; height: 20px; border-radius: 20px; background: var(--line-2); position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.toggle[aria-pressed="true"] i { background: var(--lime); }
.toggle[aria-pressed="true"] i::after { transform: translateX(14px); background: var(--lime-ink); }
.toggle:disabled { opacity: .5; }
.toggle-note { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.t-back { justify-self: start; }

/* Mini-timer */
.mini-timer {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px;
  background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
.mini-timer.show { display: flex; }
.mini-timer[data-phase="work"], .mini-timer[data-phase="reps"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.mini-timer[data-phase="push"] { background: var(--push); color: var(--push-ink); border-color: var(--push); }
.mini-timer[data-phase="rest"] { background: var(--rest); color: var(--rest-ink); border-color: var(--rest); }
.mini-timer[data-phase="prep"] { background: var(--prep); color: #2B2200; border-color: var(--prep); }
.mini-timer[data-phase="in"] { background: var(--rest); color: var(--rest-ink); border-color: var(--rest); }
.mini-timer[data-phase="out"] { background: #7EE8A2; color: #002914; border-color: #7EE8A2; }
.mini-timer[data-phase="react"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.mini-main { flex: 1; display: flex; gap: 12px; min-height: 48px; align-items: center; text-align: left; }
.mini-main b { font-family: var(--font-d); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; }
.mini-main span { font-family: var(--font-d); font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.mini-main small { font-weight: 700; font-size: 13px; opacity: .8; }
.mini-timer .icon-btn { background: rgba(0, 0, 0, .82); color: #fff; width: 52px; height: 48px; }

/* ---------- Dialog (øvelse) ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh;
  background: var(--card); color: var(--text); border-radius: 28px 28px 0 0; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
}
dialog.sheet::backdrop { background: rgba(4, 8, 6, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-in { padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line-2); justify-self: center; }
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-top h3 { font-size: clamp(32px, 9vw, 46px); text-transform: uppercase; }
.sheet-close { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--card-2); display: grid; place-items: center; }
.sheet-close svg { width: 22px; height: 22px; }
.m-illu .illu { width: 100%; height: auto; }
.m-dose { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.m-dose div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.m-dose small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.m-dose b { font-family: var(--font-d); font-weight: 800; font-size: 30px; color: var(--lime); line-height: 1.05; }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; bottom: 0; padding-top: 6px; background: linear-gradient(180deg, rgba(22, 32, 27, 0), var(--card) 30%); }
.m-actions .btn { min-height: 58px; }
.m-actions .btn[aria-pressed="true"] { background: transparent; color: var(--lime); border-color: var(--lime); }

/* ---------- Illustrationstekst ---------- */
.illu-label { fill: var(--muted); font: 800 14px var(--font-d); letter-spacing: .1em; }
.illu-note { fill: var(--muted); font: 800 11px var(--font-d); letter-spacing: .1em; }
.illu-mid { fill: var(--lime); font: 800 14px var(--font-d); letter-spacing: .04em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 80px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Styrkelog i dialog ---------- */
.logbox { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 10px; }
.logbox h4 { font-size: 22px; text-transform: uppercase; }
.log-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.log-form .btn { grid-column: 1 / -1; min-height: 48px; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.log-list li { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; color: var(--soft); }
.log-list b { font-family: var(--font-d); font-size: 20px; color: var(--lime); }
.log-list small { color: var(--muted); margin-left: auto; font-weight: 600; }
.hist-btns { display: flex; gap: 2px; }
.hist-btns .icon-btn:hover { color: var(--lime); }
.hist-btns .icon-btn[data-del]:hover { color: var(--danger); }

/* ---------- Godt til / bibliotek ---------- */
.thumb .illu-fb text { display: none; }
.good-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.good-lbl { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.tag.eq { background: transparent; border-style: dashed; color: var(--muted); }
.ex-meta { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- Sæson ---------- */
.lib-season .seg-btn { font-size: 14px; min-height: 40px; padding: 0 2px; }
.seg-btn[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.season-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.sn { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.sn.is-sel { border-color: rgba(200, 240, 60, .55); }
.sn small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn b { display: block; font-size: 13px; font-weight: 700; color: var(--soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-bars { display: flex; gap: 3px; margin-top: 5px; }
.sn-bars i { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); }
.sn-bars i.on { background: var(--lime); }
.md-line { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.md-line svg { width: 16px; height: 16px; flex: none; color: var(--lime); }
.lib-group { grid-column: 1 / -1; font-family: var(--font-d); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin-top: 6px; }
.lib-group:first-child { margin-top: 0; }

/* ---------- Programmer ---------- */
#progBody { display: grid; gap: 14px; }
#progBody > .chips { padding: 0; }
#progBody .lib-count { margin: 0; }
.wp .t-sub { margin: 14px 0 8px; }
.wp h3 + .t-sub { margin-top: 6px; }
.wp .chips { padding-bottom: 0; }
.wp-days { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 16px 0 10px; padding: 0; }
.wp-days li { display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); min-width: 0; }
.wp-days small { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.wp-days b { font-size: 13px; font-weight: 700; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wp-days li.fit { background: var(--lime); border-color: var(--lime); }
.wp-days li.fit small, .wp-days li.fit b { color: var(--lime-ink); }
.wp-days li.match { border-color: var(--lime); }
.wp-days li.match b { color: var(--lime); }
.wp .notice { margin-top: 10px; font-size: 14px; }
.notice.warn { background: rgba(255, 107, 91, .12); border-color: rgba(255, 107, 91, .45); }
.prog-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.prog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; }
.prog-card.is-active { border-color: rgba(200, 240, 60, .55); box-shadow: inset 0 0 0 1px rgba(200, 240, 60, .25); }
.prog-card header { display: flex; align-items: center; gap: 12px; }
.prog-card header > div { flex: 1; min-width: 0; }
.prog-card h3 { font-family: var(--font-d); font-weight: 800; font-size: 23px; text-transform: uppercase; line-height: 1.05; }
.pg-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; }
.pg-ic svg { width: 26px; height: 26px; }
.pg-meta { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.prog-card .tags { margin-top: 0; }
.pg-desc { color: var(--soft); font-size: 15px; line-height: 1.45; }
.pg-more summary { cursor: pointer; font-weight: 700; color: var(--lime); min-height: 40px; display: flex; align-items: center; }
.pg-ses { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pg-ses b { font-weight: 700; }
.pg-ses span { color: var(--muted); line-height: 1.4; }
.pg-actions { display: flex; gap: 8px; }
.pg-actions .btn { flex: 1; }
.start-cta { margin-bottom: 12px; text-decoration: none; border-color: rgba(200, 240, 60, .45); background: var(--lime-soft); }
@media (min-width: 760px) { .prog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item-txt .nt.good { color: var(--soft); font-weight: 600; }
.item-txt .nt.swapped { color: var(--prep); font-weight: 600; }
.lib-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 12px; }
.lib-count { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.legend { margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px; }
.legend summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--soft); cursor: pointer; }
.legend dl { margin: 0 0 10px; display: grid; gap: 6px; }
.legend dt { font-family: var(--font-d); font-weight: 800; font-size: 18px; color: var(--lime); }
.legend dd { margin: 0 0 4px; font-size: 14.5px; color: var(--soft); }
.lib-more { margin-top: 14px; }


/* ---------- Tryk-feedback og touch ---------- */
.chip:active, .toggle:active, .seg-btn:active, .item-open:active, .wk:active, .pt:active, .check:active { filter: brightness(1.2); }
.chips, .weeknav-scroll, .presets { touch-action: pan-x; }
.chips { -webkit-overflow-scrolling: touch; }
select, input, textarea { -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px !important; }
input[type="date"] { min-height: 50px; }
.form-row { grid-template-columns: 1fr 1fr; }
.t-controls .btn { min-height: 66px; }
.icon-btn { min-width: 44px; }

/* ---------- Footer ---------- */
.foot { color: var(--soft); font-size: 15px; display: grid; gap: 10px; }
.foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Større skærme ---------- */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .lib { grid-template-columns: repeat(2, 1fr); }
  .thumb { width: 150px; }
  .testform { grid-template-columns: repeat(4, 1fr); }
  .prog-tiles { grid-template-columns: repeat(8, 1fr); }
  .days { grid-template-columns: repeat(8, 1fr); }
  .day.fit { grid-column: span 2; }
}
@media (min-width: 900px) {
  :root { --nav-h: 0px; --top-h: 60px; }
  .bottomnav { display: none; }
  .topnav { display: flex; }
  .brand-name { display: inline; }
  .top-title { display: none; }
  .week-chip { margin-left: 8px; }
  .page-in { padding-top: 24px; padding-bottom: 60px; }
  .hero { padding: 36px 0 12px; }
  .hero h1 { font-size: clamp(48px, 5vw, 80px); max-width: 20ch; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .seg { display: none; }
  .tracker-grid[data-tab] #trackDev, .tracker-grid[data-tab] #matchForm { display: block; }
  .lib-bar { margin: 0; padding: 10px 0; }
  .lib { grid-template-columns: repeat(3, 1fr); }
  .lib-tools { grid-template-columns: 1fr 1fr; }
  .tracker-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .week-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
  .week-layout .wk-hero { position: sticky; top: 76px; margin-bottom: 0; }
  .timer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .mini-timer { left: auto; right: 20px; bottom: 20px; width: 360px; }
  .toast { bottom: 40px; }
  dialog.sheet { margin: auto; max-width: 720px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- Timer: telefon liggende ned (landskab, lav skærmhøjde) ----------
   Målmanden lægger ofte telefonen fladt under et interval. I almindelig
   portræt-opsætning er timer-visningen bygget til god plads lodret; i
   landskab på en telefon er der typisk kun 350–420px højde til rådighed,
   så uden denne blok ville skærmen let kræve scroll midt i et interval. */
@media (orientation: landscape) and (max-height: 520px) {
  #page-timer .page-in { padding-top: 8px; }
  #page-timer .page-head { display: none; }
  .timer-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 14px; }
  .t-display { padding: 10px 14px 12px; }
  .t-name { min-height: 0; }
  .t-phase { font-size: clamp(26px, 7vh, 46px); margin-top: 4px; }
  .t-time { font-size: clamp(44px, 16vh, 96px); }
  .t-label { font-size: 15px; min-height: 0; margin-top: 2px; }
  .t-prog { margin-top: 8px; }
  .t-next { margin-top: 6px; font-size: 13px; min-height: 0; }
  .t-body { padding: 10px; gap: 8px; }
  .t-controls .btn { min-height: 46px; font-size: 18px; }
  .t-next-btn { min-height: 50px; font-size: 18px; }
}

/* ---------- Mobil: titlen står i topbaren, scrollbars skjules, tættere formularer ---------- */
@media (max-width: 899px) {
  .page-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-head.ph-title-only { display: none; }
  .page { scrollbar-width: none; }
  .page::-webkit-scrollbar { display: none; }
  .rate { padding: 6px 0; }
  .rate-top output { font-size: 26px; }
  input[type="range"] { height: 32px; }
  .panel { padding: 16px; }
  .panel h3 { font-size: 24px; margin-bottom: 10px; }
}

/* ---------- Min form (coach) ---------- */
.seg4 { grid-template-columns: repeat(4, 1fr); }
.seg4 .seg-btn { font-size: 15px; padding: 0 2px; }
#coachBody > * + * { margin-top: 14px; }
.sess-h { font-size: 30px; text-transform: uppercase; color: var(--lime); margin: 10px 0 -2px; }
.sess-h:first-child { margin-top: 0; }
.plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 6px 8px 6px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-2); color: var(--soft); font-weight: 600; }
.plan-banner span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.plan-banner svg { width: 22px; height: 22px; flex: none; color: var(--lime); }
.plan-banner.on { border-color: rgba(200, 240, 60, .45); background: var(--lime-soft); }
.plan-banner b { color: var(--text); }
.plan-banner button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-family: var(--font-d); font-weight: 800; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.gauge { width: 100%; max-width: 360px; margin: 0 auto; }
.gauge .g-end { fill: var(--muted); font: 700 13px var(--font-b); }
.gauge-card { text-align: center; }
.gauge-card h3 { text-align: left; }
.g-read { display: grid; justify-items: center; gap: 2px; margin-top: -6px; }
.g-read b { font-family: var(--font-d); font-weight: 800; font-size: 64px; line-height: 1; }
.g-read span { font-family: var(--font-d); font-weight: 800; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.g-read em { font-style: normal; font-weight: 700; font-size: 14.5px; }
.g-read em.up { color: #7EE8A2; } .g-read em.down { color: var(--danger); }
.g-date { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.cats { display: grid; gap: 16px; }
.cat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cat-top b { font-family: var(--font-d); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.cat-top span { font-weight: 700; font-size: 14.5px; }
.muted { color: var(--muted); font-size: 14.5px; }
.sbar { position: relative; padding-top: 12px; }
.sbar-track { display: flex; gap: 3px; height: 12px; }
.sbar-track i { flex: 1; border-radius: 4px; }
.sbar-track i:first-child { border-radius: 8px 4px 4px 8px; } .sbar-track i:last-child { border-radius: 4px 8px 8px 4px; }
.sbar-arrow { position: absolute; top: 0; width: 0; height: 0; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid #F1F5EF; }
.sbar-off .sbar-track { opacity: .25; }
.sbar-sm { padding-top: 10px; } .sbar-sm .sbar-track { height: 9px; } .sbar-sm .sbar-arrow { border-left-width: 6px; border-right-width: 6px; border-top-width: 9px; }
.weak { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.coach-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.coach-steps li button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); text-align: left; }
.coach-steps li button > span:nth-child(2) { flex: 1; display: grid; }
.coach-steps small { color: var(--muted); font-weight: 600; }
.coach-steps li button > svg { width: 20px; height: 20px; color: var(--dim); }
.st-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--line-2); display: grid; place-items: center; }
.st-dot svg { width: 16px; height: 16px; }
.coach-steps li.ok .st-dot { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.goal-chip { display: flex; align-items: center; gap: 12px; }
.goal-chip b { font-family: var(--font-d); font-weight: 800; font-size: 22px; text-transform: uppercase; display: block; line-height: 1.1; }
.goal-chip small { color: var(--muted); font-weight: 600; }
.gc-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; }
.gc-ic svg { width: 24px; height: 24px; }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--soft); }
.goals { display: grid; gap: 8px; }
.goal-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); min-height: 76px; }
.goal-card .gc-t { display: grid; gap: 2px; min-width: 0; }
.goal-card b { font-family: var(--font-d); font-weight: 800; font-size: 21px; text-transform: uppercase; line-height: 1.1; }
.goal-card small { color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.goal-card[aria-checked="true"] { border-color: var(--lime); background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--lime); }
.ctest { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 8px; }
.ctest header { display: flex; gap: 8px; align-items: center; }
.ct-cat { font-size: 13px; font-weight: 700; color: var(--lime); background: var(--lime-soft); border-radius: 99px; padding: 3px 10px; }
.ct-rec, .ct-opt { font-size: 13px; font-weight: 700; color: var(--muted); }
.ctest h3 { font-size: 28px; text-transform: uppercase; }
.ct-why { color: var(--soft); font-size: 15px; }
.ct-how summary { min-height: 40px; display: flex; align-items: center; font-weight: 700; color: var(--lime); cursor: pointer; }
.ct-how p { color: var(--soft); font-size: 14.5px; padding-bottom: 6px; }
.ct-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-live { min-height: 4px; }
.live-top { display: flex; align-items: baseline; gap: 10px; }
.live-top b { font-family: var(--font-d); font-weight: 800; font-size: 32px; line-height: 1; }
.live-top span { font-weight: 700; color: var(--soft); }
.notice { padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 216, 74, .12); border: 1px solid rgba(255, 216, 74, .4); color: var(--soft); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stat-row > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; display: grid; }
.stat-row small { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-row b { font-family: var(--font-d); font-weight: 800; font-size: 22px; line-height: 1.1; }
.advice { color: var(--soft); font-size: 15px; }
.coach-mini { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); }
.coach-mini > div { flex: 1; min-width: 0; display: grid; }
.coach-mini b { font-family: var(--font-d); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.coach-mini small { color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.cm-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; }
.cm-ic svg { width: 26px; height: 26px; }
.cm-score { flex: none; font-family: var(--font-d); font-weight: 800; font-size: 46px; line-height: 1; min-width: 56px; text-align: center; }
#coachCard .sbar { margin: -6px 6px 0; }
#coachCard { display: grid; gap: 0; }
@media (min-width: 900px) { .goals { grid-template-columns: 1fr 1fr; } .ct-in { grid-template-columns: 1fr 1fr; } .seg4 { display: grid; } }

/* ---------- Træningstilstand ---------- */
.app.in-session .bottomnav { display: none; }
.sess > * + * { margin-top: 12px; }
.s-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-d); font-weight: 800; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.s-bar { height: 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; margin-top: 6px !important; }
.s-bar i { display: block; height: 100%; background: var(--lime); border-radius: 8px; transition: width .3s ease; }
.s-where { color: var(--muted); font-weight: 600; font-size: 14.5px; margin-top: 8px !important; }
.s-illu { border-radius: var(--r-md); overflow: hidden; }
.s-illu { display: grid; justify-items: center; }
.s-illu .illu { width: auto; height: auto; max-width: 100%; max-height: 19vh; }
.s-name { font-size: clamp(34px, 9vw, 46px); text-transform: uppercase; }
.s-set { font-family: var(--font-d); font-weight: 800; font-size: 24px; color: var(--lime); letter-spacing: .04em; margin-top: 2px !important; }
.s-target { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-target > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; }
.s-target small { color: var(--muted); font-weight: 600; font-size: 13px; }
.s-target b { font-family: var(--font-d); font-weight: 800; font-size: 24px; line-height: 1.1; }
.s-why { color: var(--soft); font-size: 14.5px; }
.s-inputs { display: grid; gap: 12px; }
.s-in > span { display: block; font-weight: 700; font-size: 14px; color: var(--soft); margin-bottom: 6px; }
.s-step { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; align-items: stretch; }
.s-step button { min-height: 64px; border-radius: var(--r-md); background: var(--card-2); border: 1px solid var(--line-2); font-family: var(--font-d); font-weight: 800; font-size: 36px; line-height: 1; }
.s-step button:active { background: var(--line-2); }
.s-step input { min-height: 64px; width: 100%; text-align: center; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); font-family: var(--font-d); font-weight: 800; font-size: 40px; color: var(--text); padding: 0; }
.rpe-chips .chip { flex: 1; min-height: 52px; font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.rpe-chips { overflow: visible; padding: 0; }
.s-main { min-height: 72px; font-size: 26px; }
.s-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-sec .btn:only-child { grid-column: 1 / -1; }
.s-rest { text-align: center; padding: 22px 12px; border-radius: var(--r-xl); background: var(--rest); color: var(--rest-ink); }
.s-rest p { font-family: var(--font-d); font-weight: 800; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; }
.s-rest b { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(90px, 28vw, 150px); line-height: .95; font-variant-numeric: tabular-nums; }
.s-rbar { height: 10px; border-radius: 10px; background: rgba(0, 0, 0, .18); overflow: hidden; margin-top: 10px; }
.s-rbar i { display: block; height: 100%; background: currentColor; border-radius: 10px; }
.s-next { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.s-next > span:last-child, .s-row > span:last-child { display: grid; min-width: 0; }
.s-next small, .s-row small { color: var(--muted); font-weight: 600; }
.s-next b, .s-row b { font-size: 17px; line-height: 1.2; }
.s-block { display: grid; gap: 8px; justify-items: start; }
.s-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.s-done { text-align: center; display: grid; gap: 12px; justify-items: center; padding-top: 12px; }
.s-done h3 { font-size: 48px; text-transform: uppercase; }
.s-done .stat-row { width: 100%; }
.s-done .btn { width: 100%; }
.s-check { width: 84px; height: 84px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; }
.s-check svg { width: 46px; height: 46px; }
.pr-list { text-align: left; list-style: none; padding-left: 0; width: 100%; }
.prog-line { padding: 8px 12px; border-radius: var(--r-sm); background: var(--lime-soft); color: var(--lime); font-weight: 700; font-size: 14.5px; }
.item-txt .nt.prog { color: var(--lime); font-weight: 700; }
/* ---------- Ugens oversigt, pas-overskrifter ---------- */
.week-sum { display: grid; gap: 10px; }
.ws-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ws-head h3 { margin: 0 !important; }
.ws-streak { font-weight: 700; font-size: 14.5px; color: var(--soft); }
.ws-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.ws-pill { position: relative; overflow: hidden; display: grid; padding: 8px 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.ws-pill small { color: var(--muted); font-weight: 600; font-size: 13px; }
.ws-pill b { font-family: var(--font-d); font-weight: 800; font-size: 24px; line-height: 1.1; }
.ws-pill b span { color: var(--muted); font-size: 16px; }
.ws-pill i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--lime); }
.ws-pill.ok { border-color: rgba(200, 240, 60, .5); }
.sess-head { display: flex; align-items: center; gap: 10px; margin: 10px 0 -2px; }
.sess-head .sess-h { margin: 0; flex: 1; min-width: 0; }
.sess-head small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
/* ---------- Fremgang ---------- */
.stat-row.s4 { grid-template-columns: repeat(4, 1fr); }
.stat-row.s4 b { font-size: 24px; }
#fremBody > * + * { margin-top: 14px; }
.lift-card .lc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.lift-card h3 { margin: 0 !important; }
.lc-top span { color: var(--soft); font-weight: 700; font-size: 14.5px; }
em.up { color: #7EE8A2; font-style: normal; font-weight: 700; font-size: 14.5px; }
em.down { color: var(--danger); font-style: normal; font-weight: 700; font-size: 14.5px; }
.spark { width: 100%; height: auto; margin-top: 8px; }
.cmp { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cmp li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.cmp li b { font-size: 15.5px; } .cmp li span { grid-column: 1; color: var(--muted); font-size: 13.5px; } .cmp li em { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

.s-dock { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 8px; padding: 14px 0 calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(12, 18, 16, 0), var(--bg) 28%); }
.s-dock .btn-block + .btn-block { margin-top: 0; }

/* ---------- Forside og Min form: oprydning ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; outline: none; }
.page-in > .today-card:first-of-type, #page-idag .page-in > .today-card { margin-top: 0; }
#page-idag .page-in { padding-top: 12px; }
#page-idag .page-in > * + * { margin-top: 12px; }
.week-sum .ws-head { align-items: center; }
.week-sum .days { grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 0; }
.week-sum .day { min-height: 66px; padding: 8px 2px 7px; gap: 3px; border-radius: 12px; box-shadow: none; }
.week-sum .day .dn { font-size: 13.5px; letter-spacing: .02em; }
.week-sum .day svg { width: 20px; height: 20px; }
.week-sum .day .dl { font-size: 13px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-sum .day.fit { grid-column: auto; box-shadow: none; }
.week-sum .day.fit .dn { font-size: 13.5px; }
.week-sum .day.today { box-shadow: 0 0 0 2px var(--text); }
.week-sum .day.fit.today { box-shadow: 0 0 0 2px var(--text); }
.week-sum .today-pin { display: none; }
.coach-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 12px 12px 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.coach-row:active { background: var(--card-2); }
.cr-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cr-t b { font-family: var(--font-d); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.cr-t small { color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.cr-t .sbar { margin-top: 2px; }
.coach-row .lr-go svg { width: 22px; height: 22px; color: var(--dim); }
.tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px !important; }
.tile { min-height: 84px; padding: 10px 6px; justify-items: center; text-align: center; border-radius: var(--r-md); }
.tile svg { width: 26px; height: 26px; margin-bottom: 2px; }
.tile b { font-size: 18px; }
.tile small { display: none; }
/* Min form: kompakt overblik */
.cs-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cs-bar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 6px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--soft); }
.cs-bar button.ok { border-color: rgba(200, 240, 60, .5); color: var(--lime); }
.cs-bar .st-dot { width: 24px; height: 24px; border-width: 2px; font-family: var(--font-d); font-weight: 800; font-size: 14px; }
.cs-bar .st-dot svg { width: 13px; height: 13px; }
.cs-bar button.ok .st-dot { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.fc-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 6px; }
.fc-gauge .gauge { max-width: 210px; }
.form-card .g-read { margin-top: 0; justify-items: start; text-align: left; gap: 0; }
.form-card .g-read b { font-size: 58px; }
.form-card .g-read span { font-size: 22px; }
.form-card .g-read small { color: var(--muted); font-size: 13px; font-weight: 600; }
.g-none { font-size: 18px !important; line-height: 1.2; }
.form-card .cats { gap: 10px; margin-top: 8px; }
.form-card .cat-top { margin-bottom: 4px; }
.form-card .cat-top b { font-size: 18px; }
.form-card .weak { margin-top: 12px; padding: 8px 12px; font-size: 14px; }
.fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fc-actions .btn { min-height: 50px; font-size: 17px; padding: 0 8px; }
.plan-card .link-btn { margin-top: 6px; }
.legend.status { padding-top: 0; }
/* Bundmenu: tydelig aktiv fane og fremhævet træn-knap */
.bottomnav ul { grid-template-columns: repeat(5, 1fr); max-width: 560px; align-items: end; }
.bottomnav a { position: relative; font-size: 13px; }
.bottomnav a .nl { line-height: 1; }
.bottomnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 0 0 4px 4px; background: var(--lime); }
.bottomnav a[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(200, 240, 60, .45)); }
.nav-train { display: flex; justify-content: center; }
.nav-train button { height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding-bottom: 8px; color: var(--lime); font-size: 13px; font-weight: 800; -webkit-tap-highlight-color: transparent; }
.nt-ic { width: 56px; height: 56px; margin-top: -22px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(200, 240, 60, .35), 0 0 0 5px var(--bg); transition: transform .12s ease; }
.nt-ic svg { width: 26px; height: 26px; margin-left: 2px; }
.nav-train button:active .nt-ic { transform: scale(.93); }
.nt-l { line-height: 1; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tile small { display: grid; } }

/* ---------- Status ---------- */
.stp { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 99px; font-family: var(--font-d); font-weight: 800; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--soft); background: var(--card-2); white-space: nowrap; }
.stp.bad { color: var(--danger); background: rgba(255, 107, 91, .14); border-color: rgba(255, 107, 91, .5); }
.stp.great { color: var(--lime); background: var(--lime-soft); border-color: rgba(200, 240, 60, .5); }
.stp.big { min-height: 40px; padding: 0 18px; font-size: 24px; }
.stp.mini { min-height: 20px; padding: 0 8px; font-size: 13px; margin-left: 8px; vertical-align: 3px; }
.status-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px 10px 12px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.status-row.bad { border-color: rgba(255, 107, 91, .5); } .status-row.great { border-color: rgba(200, 240, 60, .5); }
.sr-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sr-t b { font-family: var(--font-d); font-weight: 800; font-size: 19px; text-transform: uppercase; line-height: 1.1; }
.sr-t small { color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.status-row .lr-go svg { width: 22px; height: 22px; color: var(--dim); }
#statusBody > * + * { margin-top: 14px; }
.st-card.bad { border-color: rgba(255, 107, 91, .5); } .st-card.great { border-color: rgba(200, 240, 60, .5); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.st-top small { color: var(--muted); font-weight: 600; }
.flags { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.flags li { padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); color: var(--soft); font-size: 15px; border-left-width: 4px; }
.flags li.bad { border-left-color: var(--danger); } .flags li.good { border-left-color: var(--lime); } .flags li.info { border-left-color: var(--muted); }
.st-react { color: var(--soft); font-size: 15px; }
.stat-row.s2 { grid-template-columns: 1fr 1fr; }
.traits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.traits li { display: grid; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.traits small { color: var(--muted); font-weight: 600; font-size: 13px; }
.traits b { font-size: 16px; }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.timeline li { padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--line-2); display: grid; gap: 2px; }
.timeline li.status.bad { border-left-color: var(--danger); } .timeline li.status.great { border-left-color: var(--lime); } .timeline li.pain { border-left-color: var(--push); }
.timeline small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.timeline p { font-size: 14.5px; color: var(--soft); }
.timeline .out { color: var(--lime); font-weight: 700; }
.doc { margin: 0; padding: 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; overflow: auto; max-height: 340px; white-space: pre-wrap; word-break: break-word; -webkit-user-select: text; user-select: text; color: var(--soft); }

.day.home svg { color: var(--lime); }

/* =========================================================
   ENSRETNING · mobil først
   Faste mål, så knapper, felter og kort følger samme rammer overalt:
   - Knapper: 52 px (standard), 44 px (vælgere og små knapper), 64 px (store handlinger i træning og timer)
   - Knapper i samme række er lige brede, og teksten står på én linje
   - Kort: 16 px indre afstand og 22 px hjørner. Afstand mellem knapper: 8 px
   ========================================================= */
:root { --h-btn: 52px; --h-sm: 44px; --h-lg: 64px; --gap: 8px; --pad: 16px; }

/* Knapper */
.btn { min-height: var(--h-btn); padding: 0 14px; font-size: 18px; letter-spacing: .03em; line-height: 1.1; white-space: nowrap; min-width: 0; }
.btn-sm { min-height: var(--h-sm); font-size: 16px; padding: 0 14px; }
.s-main, .t-controls .btn, .t-next-btn { min-height: var(--h-lg); font-size: 22px; }
.m-actions .btn, .log-form .btn, .fc-actions .btn, .foot-actions .btn { min-height: var(--h-btn); }
.fc-actions .btn, .foot-actions .btn, .m-actions .btn { font-size: 16px; gap: 6px; padding: 0 10px; }

/* Knaprækker: lige brede knapper */
.today-actions, .fc-actions, .pg-actions, .s-sec, .m-actions, .t-controls, .block-actions, .foot-actions {
  display: grid; gap: var(--gap); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
}
.today-actions, .block-actions { grid-auto-flow: row; } /* lange tekster: én knap pr. linje i fuld bredde */
.foot-actions { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-actions .btn:last-child { grid-column: 1 / -1; }
.block-actions .btn { flex: none; }
@media (min-width: 560px) { .block-actions { grid-auto-flow: column; } }

/* Vælgere og små knapper: samme trykflade */
.chip, .toggle, .seg-btn, .week-chip, .link-btn { min-height: var(--h-sm); }
.chip { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.seg-btn { font-size: 17px; padding: 0 4px; white-space: nowrap; }
.icon-btn, .sheet-close { width: var(--h-sm); height: var(--h-sm); }
.plan-banner { min-height: 56px; }
.plan-banner button { min-height: var(--h-sm); }
.hw-pill { height: var(--h-sm); }
.field input, .field select, .field textarea { min-height: var(--h-btn); }

/* Kort: samme rammer */
.panel, .block, .prog-card, .fri-card, .home-top, .today-card, .wk-hero, .progress-card { padding: var(--pad); border-radius: var(--r-lg); }
.today-card { gap: 12px; }

/* Øvelsesrækker: mere plads til navn og dosis */
.thumb { width: 92px; }
.item-txt .ds { font-size: 21px; }

/* Øvelsesdialog: dosis på egen linje, så den ikke brækker */
.m-dose { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.m-dose div:first-child { grid-column: 1 / -1; }
.m-dose b { font-size: 26px; }

/* Statistik: 2 × 2 på mobil, så overskrifterne kan stå på én linje */
.stat-row.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .stat-row.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Små rettelser */
.page-head .link-btn { flex: none; white-space: nowrap; }
.cr-t .sbar, #coachCard .sbar { margin: 8px 0 0; }
.home-top .chips { flex-wrap: wrap; overflow: visible; }
/* ---------- Samlet menu: faner med indhold, sammenfoldede felter ---------- */
.stack > * + * { margin-top: 14px; }
.stack > .sec-lead:first-child { margin-top: 0; }
.sub-h { font-size: 22px; text-transform: uppercase; color: var(--soft); margin-top: 8px; }
.st-h { font-family: var(--font-d); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.fold { padding: 0; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 var(--pad); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fold > summary h3 { margin: 0; font-size: 22px; }
.fold-body { padding: 0 var(--pad) var(--pad); }
.match-row { border-color: rgba(200, 240, 60, .45); }
#doneCard:empty, #checkCard:empty, #matchCard:empty, #startCard:empty { display: none; }
button.list-row { width: 100%; text-align: left; }

/* ---------- Dagligt tjek ---------- */
.checkin .check-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.checkin .check-head h3 { margin: 0; }
.checkin .check-head small { color: var(--muted); font-weight: 600; font-size: 13px; }
.chk-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.chk-row:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.chk-q { font-weight: 700; margin-bottom: 8px; }
.chk-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chk-btn { min-height: var(--h-sm); border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--font-d); font-weight: 800; font-size: 20px; color: var(--soft); }
.chk-btn[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.chk-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.check-done { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); }
.check-done .btn { flex: none; }
.cd-score { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 22px; background: var(--card-2); border: 2px solid var(--line-2); }
.check-done.low { border-color: rgba(255, 216, 74, .5); } .check-done.low .cd-score { border-color: var(--prep); color: var(--prep); }
.check-done.high { border-color: rgba(200, 240, 60, .5); } .check-done.high .cd-score { border-color: var(--lime); color: var(--lime); }
.check-done.ok .cd-score { color: var(--text); }
.pain-row { margin-top: 8px; }
.warn-tag { background: rgba(255, 216, 74, .14); border-color: rgba(255, 216, 74, .5); color: var(--prep); }

/* ---------- Programmet er slut ---------- */
.done-card { border-color: rgba(200, 240, 60, .55); display: grid; gap: 12px; }
.done-card h3 { margin: 0; }
.done-card .eyebrow { margin: 0; }
.done-card .stat-row { margin: 0; }
.done-next { color: var(--soft); }
.done-actions { display: grid; gap: var(--gap); }
.done-card > .link-btn { justify-self: center; }
/* ---------- Belastning ---------- */
.form-row-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.load-card { display: grid; gap: 12px; }
.load-card .st-top, .load-card .stat-row { margin: 0; }
.load-card.z-risk { border-color: rgba(255, 107, 91, .55); }
.load-card.z-high { border-color: rgba(255, 216, 74, .5); }
.sub-fold { border-top: 1px solid var(--line); padding-top: 4px; }
.sub-fold > summary { min-height: var(--h-sm); display: flex; align-items: center; font-weight: 700; color: var(--lime); cursor: pointer; }
.sub-fold > .chips { padding: 6px 0 12px; }
.sub-fold .btn { margin-top: 10px; }
.chk-10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.s-load { text-align: left; margin-top: 4px; }
.s-load .t-sub { margin-bottom: 8px; }
.insight { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--lime); }
.insight b { font-family: var(--font-d); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.insight p { color: var(--soft); font-size: 15px; margin-top: 4px; }

/* ---------- Byg selv ---------- */
.b-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.b-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.b-item .thumb { width: 72px; }
.b-main { min-width: 0; display: grid; gap: 6px; }
.b-main > b { font-weight: 700; line-height: 1.2; }
.b-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.b-step { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.b-step button { width: 36px; height: 36px; font-family: var(--font-d); font-weight: 800; font-size: 22px; color: var(--lime); }
.b-step span { min-width: 56px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.b-step span b { font-family: var(--font-d); font-size: 19px; color: var(--text); margin-right: 2px; }
.b-tools { display: grid; gap: 2px; }
.b-tools .icon-btn { width: 36px; height: 36px; font-size: 13px; }
.b-tools .icon-btn:disabled { opacity: .25; }
#bygBody > * + * { margin-top: 14px; }
#bygBody > .chips { padding-bottom: 0; }
.wk-hero .wk-rpe { position: relative; margin-top: 4px; min-height: 40px; font-size: 15px; }

/* =========================================================
   LYS UDENDØRS-TILSTAND
   Høj kontrast til direkte sollys. Accent bliver mørkegrøn med hvid tekst på knapper.
   Øvelsestegningerne beholder deres mørke baggrund (som billeder).
   ========================================================= */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F5F0; --bg-2: #FFFFFF; --card: #FFFFFF; --card-2: #E9EFE6;
  --line: #D5DDD2; --line-2: #BCC9B8;
  --text: #0B140F; --soft: #24312A; --muted: #4B5B51; --dim: #788679;
  --lime: #3B6B00; --lime-ink: #FFFFFF; --lime-soft: rgba(59, 107, 0, .10);
  --rest: #0A6CB5; --rest-ink: #FFFFFF; --push: #B85200; --push-ink: #FFFFFF; --prep: #F0C000; --danger: #C42B1C;
  --shadow: 0 6px 18px rgba(20, 40, 20, .10);
}
:root[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] .topbar { background: rgba(242, 245, 240, .96); }
[data-theme="light"] .bottomnav { background: rgba(255, 255, 255, .98); }
[data-theme="light"] .weeknav { background: linear-gradient(180deg, var(--bg) 82%, rgba(242, 245, 240, 0)); }
[data-theme="light"] .m-actions { background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--card) 30%); }
[data-theme="light"] .s-dock { background: linear-gradient(180deg, rgba(242, 245, 240, 0), var(--bg) 28%); }
[data-theme="light"] .sbar-arrow { border-top-color: var(--text); }
[data-theme="light"] em.up, [data-theme="light"] .g-read em.up { color: #2E7D32; }
[data-theme="light"] .today-card.is-fit .today-small, [data-theme="light"] .pt[aria-pressed="true"] small { color: rgba(255, 255, 255, .82); }
[data-theme="light"] .timer[data-phase="out"] .t-display { --ph: #2E9D5A; --ink: #FFFFFF; }
[data-theme="light"] .timer[data-phase="hold"] .t-display { --ph: #DCE5D8; --ink: var(--text); }
[data-theme="light"] .t-prog, [data-theme="light"] .s-rbar { background: rgba(0, 0, 0, .12); }
[data-theme="light"] .stp.great { border-color: rgba(59, 107, 0, .45); }
[data-theme="light"] .check-done.low .cd-score, [data-theme="light"] .warn-tag { color: #8A6A00; }
[data-theme="light"] .day.fit, [data-theme="light"] .nt-ic { box-shadow: none; }
/* Grafer (SVG med faste farver) */
[data-theme="light"] svg:not(.illu) [fill="#F1F5EF"] { fill: var(--text) !important; }
[data-theme="light"] svg:not(.illu) [style*="F1F5EF"] { fill: var(--text) !important; }
[data-theme="light"] svg:not(.illu) [stroke="#F1F5EF"] { stroke: var(--text); }
[data-theme="light"] svg:not(.illu) [fill="#16201B"], [data-theme="light"] svg:not(.illu) [fill="#0C1210"] { fill: var(--card); }
[data-theme="light"] svg:not(.illu) [stroke="#24322B"] { stroke: var(--line); }
[data-theme="light"] svg:not(.illu) [fill="#C8F03C"] { fill: var(--lime); }
[data-theme="light"] svg:not(.illu) [stroke="#C8F03C"] { stroke: var(--lime); }
[data-theme="light"] svg:not(.illu) [fill="#4E6A2A"] { fill: #A9C48A; }
[data-theme="light"] svg:not(.illu) [fill="#24322B"] { fill: var(--line); }
.theme-btn { flex: none; width: var(--h-sm); height: var(--h-sm); border-radius: 50%; display: grid; place-items: center; color: var(--soft); border: 1px solid var(--line-2); background: var(--card); }
.theme-btn svg { width: 22px; height: 22px; }
.topbar .week-chip { margin-left: 0; }
.topbar .theme-btn { margin-left: auto; }

/* =========================================================
   ROLIGERE OVERSKRIFTER
   Store versaler er forbeholdt sidetitler, dagens kort, ugen og pastitler.
   Kort- og sektionsoverskrifter bruger brødteksten i fed, så hierarkiet er tydeligt.
   ========================================================= */
.panel h3, .fold > summary h3, .block-head h4, .prog-card h3, .ex-body h3, .st-h, .lr-t b, .cr-t b, .sr-t b,
.insight b, .checkin .check-head h3, .done-card h3, .season-card h3 {
  font-family: var(--font-b); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.2;
}
.panel h3, .done-card h3, .season-card h3, .block-head h4, .st-h { font-size: 20px; }
.fold > summary h3 { font-size: 18px; }
.prog-card h3, .ex-body h3 { font-size: 21px; }
.lr-t b, .cr-t b, .sr-t b { font-size: 17px; }
.insight b { font-size: 16px; }

/* ---------- Favoritter, animation, kalender, sæson ---------- */
.fav-btn { flex: none; width: var(--h-sm); height: var(--h-sm); border-radius: 50%; display: grid; place-items: center; color: var(--dim); }
.fav-btn svg { width: 24px; height: 24px; }
.fav-btn[aria-pressed="true"] { color: var(--prep); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
[data-theme="light"] .fav-btn[aria-pressed="true"] { color: #C99A00; }
.ex-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sheet-btns { display: flex; align-items: center; gap: 6px; flex: none; }
.anim-btn { justify-self: center; gap: 6px; }
.anim-btn svg { width: 18px; height: 18px; }
.m-illu .illu-anim { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; }
.season-card { border-color: rgba(77, 182, 255, .5); display: grid; gap: 10px; }
.season-card .eyebrow, .season-card h3 { margin: 0; }
.season-card > .link-btn { justify-self: center; }
.cal { display: grid; gap: 12px; }
.cal h3, .cal .form-row { margin: 0; }
.b-item { grid-template-columns: 32px 64px minmax(0, 1fr) auto; }
.b-item .thumb { width: 64px; }
.b-grip { width: 32px; height: 56px; display: grid; place-items: center; color: var(--muted); touch-action: none; cursor: grab; }
.b-grip svg { width: 20px; height: 20px; }
.b-item.dragging { border-color: var(--lime); box-shadow: var(--shadow); opacity: .92; }
.theme-seg { margin-top: 4px; }
/* Niveaufarver (skrives direkte i koden) gøres mørkere på lys baggrund */
[data-theme="light"] [style*="color:#C8F03C"] { color: #3B6B00 !important; }
[data-theme="light"] [style*="color:#7EE8A2"] { color: #1E7A3C !important; }
[data-theme="light"] [style*="color:#FFD84A"] { color: #8A6A00 !important; }
[data-theme="light"] [style*="color:#FF9A3D"] { color: #A84B00 !important; }
[data-theme="light"] [style*="color:#FF6B5B"] { color: #B3261E !important; }
/* =========================================================
   DESIGN 2 · professionelt og roligt
   Regler:
   - Limegrøn (accent) bruges kun til den vigtigste handling på en skærm, til fremskridt og til "færdig".
     Valgte faner er neutrale; valgte chips er en svag grøn tone.
   - Barlow Condensed (versaler) kun til sidetitler, dagens kort, ugen, pastitler og tal.
     Knapper, faner, chips og overskrifter bruger Barlow i almindelig skrivemåde.
   - Flade lister med skillelinjer i stedet for kort inde i kort.
   ========================================================= */
:root { --seg-track: #0F1713; --seg-sel: #2A3931; --sel-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
:root[data-theme="light"] { --seg-track: #E1E8DE; --seg-sel: #FFFFFF; --sel-shadow: 0 1px 3px rgba(20, 40, 20, .2); }

/* Knapper: fed brødtekst, ikke versaler */
.btn { font-family: var(--font-b); font-weight: 700; font-size: 16px; letter-spacing: .005em; text-transform: none; }
.btn-sm { font-size: 15px; }
.fc-actions .btn, .foot-actions .btn, .m-actions .btn { font-size: 15px; }
.s-main, .t-controls .btn, .t-next-btn { font-size: 18px; }
.plan-banner button { font-family: var(--font-b); font-weight: 700; font-size: 14px; letter-spacing: 0; text-transform: none; }
.btn-ghost { border-color: var(--line-2); }

/* Segmenteret vælger (faner): neutral, iOS-agtig */
.seg { background: var(--seg-track); border: 0; padding: 3px; gap: 2px; border-radius: 14px; }
.seg-btn { min-height: 40px; border-radius: 11px; font-family: var(--font-b); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.seg-btn[aria-selected="true"], .seg-btn[aria-pressed="true"] { background: var(--seg-sel); color: var(--text); box-shadow: var(--sel-shadow); }
.lib-season .seg-btn { font-size: 14px; }

/* Chips: valgt = svag grøn tone */
.chip { font-family: var(--font-b); font-weight: 600; font-size: 15px; background: var(--card); color: var(--soft); }
.chip[aria-pressed="true"] { background: var(--lime-soft); border-color: var(--lime); color: var(--lime); }

/* Ugefaner */
.wk { height: 44px; min-width: 74px; border-radius: 12px; font-family: var(--font-b); font-weight: 700; font-size: 15px; letter-spacing: 0; background: var(--card); color: var(--soft); }
.wk[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.wk[aria-selected="true"] .ck { background: var(--lime); color: var(--lime-ink); }

/* Tags: neutrale, kun den første må være grøn */
.tag { font-size: 13px; font-weight: 600; padding: 3px 10px; background: var(--card-2); border-color: transparent; color: var(--soft); }
.tag.lime { background: var(--lime-soft); border-color: transparent; color: var(--lime); }
.tag.eq { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }

/* Kort: rolige, uden skygge */
.panel, .block, .prog-card { box-shadow: none; }
.block { padding: 16px 16px 8px; }
.block-head { margin-bottom: 4px; }
.block-ic { width: 40px; height: 40px; border-radius: 12px; }
.block-ic svg { width: 22px; height: 22px; }
.block .block-actions { margin: 4px 0 8px; }

/* Øvelsesrækker: flad liste med skillelinjer og tydelig miniature */
.items { gap: 0; }
.item { background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--line); align-items: center; }
.item:first-child { border-top: 0; }
.item-open { padding: 10px 2px; gap: 12px; border-radius: 0; }
.thumb { width: 56px; border-radius: 12px; overflow: hidden; }
.thumb .illu { display: block; width: 100%; height: auto; }
.item-txt { gap: 1px; }
.item-txt .nm { font-size: 16px; font-weight: 700; }
.item-txt .ds { font-size: 19px; color: var(--text); margin-top: 2px; }
.item-txt .nt { font-size: 13.5px; }
.item.is-done .item-open { opacity: .45; }
.item.is-done .nm { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.check { padding: 0 2px 0 8px; }
.check span { width: 30px; height: 30px; }
.rest-row { border-top: 1px solid var(--line); padding: 10px 2px; }

/* Biblioteket: kompakt liste */
.lib { gap: 0; }
.lib-row { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.lib-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 0; text-align: left; }
.lib-row .thumb { width: 60px; }
.lib-txt { min-width: 0; display: grid; gap: 1px; }
.lib-txt b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.lib-good { font-size: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.lib-fit { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.lib-fit i { width: 5px; border-radius: 2px; background: var(--line-2); }
.lib-fit i.lv0 { height: 3px; } .lib-fit i.lv1 { height: 6px; } .lib-fit i.lv2 { height: 9px; background: var(--muted); } .lib-fit i.lv3 { height: 12px; background: var(--lime); }
.lib-fit i.sel { outline: 1.5px solid var(--text); outline-offset: 1px; }
@media (min-width: 640px) { .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
@media (min-width: 1000px) { .lib { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Forside */
.today-card { gap: 10px; }
.today-text { font-size: 16px; }
.today-card .btn-ghost { background: transparent; }
.today-card.is-fit .btn-ghost { background: transparent; color: var(--lime-ink); border: 1.5px solid currentColor; opacity: .9; }
.tile { min-height: 76px; }
.tile b { font-family: var(--font-b); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; }
.ws-pill { padding: 8px 8px 12px; }
.ws-pill small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dagligt tjek: kompakt, én linje pr. spørgsmål */
.checkin .check-head { margin-bottom: 4px; flex-wrap: wrap; }
.checkin .check-head h3 { font-size: 18px; }
.chk-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; border: 0; }
.chk-row:last-of-type { margin-bottom: 0; }
.chk-q { margin: 0; font-weight: 700; display: grid; line-height: 1.2; }
.chk-q small { font-size: 13px; font-weight: 600; color: var(--muted); }
.chk-btn { min-height: 40px; font-family: var(--font-b); font-weight: 700; font-size: 16px; }
.chk-btn[aria-pressed="true"] { background: var(--lime-soft); border-color: var(--lime); color: var(--lime); }
.checkin .btn { margin-top: 10px; }
.chk-why { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* Sektionsoverskrifter som små etiketter */
.block-title { margin-top: 24px !important; }
.block-title h2, .sub-h { font-family: var(--font-b); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sub-h { margin-top: 10px; }

/* Rutiner: reglerne er en rolig infoboks, ikke et skrig */
.not-training, .not-training.home-rule { background: var(--lime-soft); color: var(--text); border: 1px solid rgba(200, 240, 60, .3); font-size: 15px; font-weight: 500; }
.not-training svg { color: var(--lime); width: 26px; height: 26px; }
.not-training strong { font-family: var(--font-b); font-size: 16px; font-weight: 700; letter-spacing: 0; }
#rutFri .not-training { background: rgba(77, 182, 255, .12); border-color: rgba(77, 182, 255, .35); }
#rutFri .not-training svg { color: var(--rest); }
[data-theme="light"] .not-training { border-color: rgba(59, 107, 0, .25); }

/* Status og tal */
.stp.big { min-height: 32px; padding: 0 12px; font-size: 17px; }
.stat-row > div, .ws-pill { border-color: transparent; }
.illu-thumb text { display: none; }
.lib-more-info .t-sub { margin: 14px 0 6px; }
.lib-more-info .lib-tools { padding-top: 4px; }
/* Overskrifter, der stadig var kondenserede versaler */
.goal-chip b { font-family: var(--font-b); font-weight: 700; font-size: 18px; text-transform: none; letter-spacing: 0; }
.logbox h4 { font-family: var(--font-b); font-weight: 700; font-size: 18px; text-transform: none; }
.sess-h { color: var(--text); }
#sheetTitle:focus { outline: none; }
/* ===== UX-RUNDE (okt. 2026): mindre støj, vigtigste handling først ===== */
/* I dag: sæsonforslag som diskret række under dagens kort */
.season-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; border-color: var(--line); padding: 14px 16px; }
.season-card .sc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(77, 182, 255, .12); color: var(--rest); }
.season-card .sc-ic svg { width: 20px; height: 20px; }
.sc-txt { display: grid; gap: 2px; min-width: 0; }
.sc-txt b { font-weight: 700; font-size: 16px; }
.sc-txt > span { font-size: 14px; color: var(--muted); }
.sc-act { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; }
.sc-act .btn-sm { min-height: 40px; }
.sc-act .link-btn { min-height: 40px; font-size: 15px; }
.today-big.is-long { font-size: clamp(30px, 8.4vw, 50px); line-height: .98; }

/* Træn-tilstand: knapperne i bunden, hvor tommelfingeren er, og ingen topknapper */
.sess { display: flex; flex-direction: column; min-height: 100%; }
.sess > .s-dock { margin-top: auto; }
.app.in-session .theme-btn, .app.in-session .week-chip { display: none; }
.app[data-page="program"] .week-chip { display: none; }

/* Øvelseskort: sæt × gentagelser og pause på én række */
.m-dose.two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.m-dose.two div:first-child { grid-column: auto; }
#exSheet .logbox { margin-top: 12px; }

/* Program: kompakt ugekort og pas-overskrifter på én linje */
.wk-hero.wk-compact { display: grid; gap: 6px; }
.wk-compact h3 { font-size: clamp(28px, 7.6vw, 40px); max-width: none; }
.wk-compact .desc { margin-top: 0; font-size: 15px; max-width: none; }
.wk-compact .wk-rpe { display: inline; min-height: 0; margin: 0; font-size: 15px; }
.wk-compact .wk-prog { margin-top: 6px; }
.sess-head { align-items: flex-end; margin-top: 18px; }
.sess-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sess-t small { font-size: 13px; }
.sess-t .warn-txt { color: var(--prep); }
.sess-head .sess-h { font-size: clamp(24px, 6.6vw, 30px); line-height: 1; overflow-wrap: anywhere; }

/* Programmer: "Din uge" foldet sammen til én linje */
details.wp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 44px; }
details.wp > summary::-webkit-details-marker { display: none; }
.wp-sum { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wp-sum b { font-weight: 700; font-size: 17px; }
.wp-sum small { font-size: 14px; color: var(--muted); }
.wp-edit { flex: none; color: var(--lime); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
details.wp[open] > summary { margin-bottom: 4px; }

/* Min form uden test: ét kort, én handling */
.form-empty { display: grid; gap: 10px; justify-items: start; }
.form-empty .fe-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); }
.form-empty .fe-ic svg { width: 24px; height: 24px; }
.form-empty .btn { justify-self: stretch; }
.fe-miss { font-size: 14px; color: var(--muted); }
.fe-miss .link-btn { min-height: 0; font-size: 14px; }

/* Øvelser: søgning først, resten foldet sammen */
.lib-more-info .lib-season { margin-bottom: 4px; }
.lib-how { font-size: 14px; margin: 12px 0 4px; }
.theme-panel { padding: 10px; }

/* Kropsdele: filter i biblioteket og "Træner" på øvelseskortet */
.good-row + .good-row { margin-top: 8px; }
.lib-bar .lib-body .chip, #exSheet .lib-body .chip { min-height: 38px; font-size: 14.5px; }
#exSheet .lib-body { margin-top: 8px; }

/* Garmin-ur: kort på I dag, forslag i dagens tjek, 7-dages søjler i Min form og opsætning under Mere */
.gm-card { display: grid; gap: 12px; }
.gm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gm-head h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.gm-head h3 svg { width: 20px; height: 20px; color: var(--lime); }
.gm-head small { color: var(--muted); font-size: 13px; }
.gm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gm-stats > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 8px 10px; min-width: 0; }
.gm-stats small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-stats b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 26px; line-height: 1.05; }
.gm-stats em { display: block; font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-card .notice { margin: 0; font-size: 14px; }
.gm-err { font-size: 14px; color: var(--prep); }
.gm-err .link-btn { min-height: 0; font-size: 14px; }
.chk-gm { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--soft); background: var(--lime-soft); border-radius: var(--r-sm); padding: 8px 10px; margin: 2px 0 6px; }
.chk-gm svg { flex: none; width: 16px; height: 16px; color: var(--lime); margin-top: 3px; }
.gm-trend { display: grid; gap: 10px; }
.gm-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px; align-items: end; gap: 10px; }
.gm-lbl { font-size: 14px; font-weight: 700; padding-bottom: 18px; }
.gm-row > b { font-family: var(--font-d); font-weight: 800; font-size: 20px; text-align: right; padding-bottom: 16px; }
.gm-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; height: 64px; }
.gm-bars span { display: grid; grid-template-rows: 1fr auto; align-items: end; justify-items: center; min-width: 0; height: 100%; }
.gm-bars i { width: 100%; max-width: 18px; border-radius: 4px 4px 2px 2px; background: var(--line-2); align-self: end; }
.gm-bars span:last-child i { background: var(--lime); }
.gm-bars small { font-size: 13px; letter-spacing: 0; color: var(--muted); text-transform: uppercase; }
.gm-panel { display: grid; gap: 10px; }
@media (max-width: 560px) { .gm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.load-list { margin-top: 6px; }
.hist.is-off { opacity: .55; }
.gm-stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-send { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.gm-send h3 { font-size: 17px; }
.gm-send ul { display: grid; gap: 4px; font-size: 14.5px; color: var(--soft); }

/* ===== Garmin: parathed, trends, kampdag, opsummering og ugerapport ===== */
.gm-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.gm-score b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 24px; line-height: 1.1; }
.gm-score p { color: var(--soft); font-size: 15px; margin-top: 2px; }
.gm-score small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.gm-score.low b { color: var(--danger); }
.gm-score.high b { color: var(--lime); }
.ring { flex: none; }
.ring-v { font-family: var(--font-d); font-weight: 800; font-size: 30px; fill: var(--text); }
.gm-parts > summary { min-height: 40px; display: flex; align-items: center; font-weight: 700; color: var(--lime); cursor: pointer; font-size: 15px; }
.gm-parts ul { display: grid; gap: 8px; padding: 4px 0 6px; }
.gm-parts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "l b" "l t"; column-gap: 10px; align-items: center; }
.gm-parts li > span { grid-area: l; font-size: 14px; font-weight: 700; }
.gm-parts li > i { grid-area: b; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gm-parts li > i b { display: block; height: 100%; border-radius: 3px; }
.gm-parts li > em { grid-area: t; font-style: normal; font-size: 13px; color: var(--muted); }
.gm-trend .st-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gm-trend .st-top .chips { flex-wrap: nowrap; }
.gm-chart { border-top: 1px solid var(--line); padding-top: 10px; }
.gc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gc-top > b { font-size: 15px; }
.gc-top span { display: flex; align-items: baseline; gap: 8px; }
.gc-top span b { font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.gc-top em, .rep-grid em, .sum-list em { font-style: normal; font-size: 13px; color: var(--muted); }
em.up { color: var(--lime); } em.down { color: var(--danger); }
.gc-svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.gc-band { fill: var(--lime); opacity: .1; }
.gc-ax { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.zones { display: grid; gap: 4px; margin-top: 6px; }
.zb { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.zb i { display: block; height: 100%; }
.zones small { color: var(--muted); font-size: 13px; }
.m-watch { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; margin: 4px 0 12px; }
.m-watch b { display: block; font-size: 15px; }
.m-watch small { display: block; color: var(--soft); font-size: 14px; }
.mw-ic svg, .mp-ic svg { width: 20px; height: 20px; color: var(--lime); }
.hist-watch small { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.hist-watch small svg { width: 15px; height: 15px; flex: none; }
.match-prep h3 { font-size: 20px; margin-bottom: 8px; }
.mp-list { display: grid; gap: 10px; margin-bottom: 12px; }
.mp-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.mp-list b { display: block; font-size: 15px; }
.mp-list small { display: block; color: var(--muted); font-size: 14px; }
.sum-card .st-h, .rep-card .st-h { display: flex; align-items: center; gap: 8px; }
.sum-card .st-h svg, .rep-card .st-h svg { width: 18px; height: 18px; color: var(--lime); }
.sum-list { display: grid; gap: 6px; margin: 4px 0 8px; }
.sum-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.sum-list span { color: var(--soft); text-align: right; }
.fc-actions .btn svg { width: 16px; height: 16px; }
.rep-verdict { font-weight: 700; margin: 6px 0 10px; }
.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.rep-grid > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; display: grid; min-width: 0; }
.rep-grid small { color: var(--muted); font-size: 13px; font-weight: 600; }
.rep-grid b { font-family: var(--font-d); font-weight: 800; font-size: 22px; line-height: 1.1; }
.ins-list { display: grid; gap: 10px; margin-top: 8px; }
.ins-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 15px; color: var(--soft); }
.ins-list svg { width: 20px; height: 20px; color: var(--lime); }
.gm-auto { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 44px; }
.gm-auto input { width: 20px; height: 20px; accent-color: var(--lime); }
@media (max-width: 400px) { .rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-parts li { grid-template-columns: 96px minmax(0, 1fr); } }

/* ===== Kampprogram, sengetid, vejr og Optaget? ===== */
.club { display: grid; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px; }
.club .field input { width: 100%; }
.cal-list { display: grid; gap: 6px; }
.cal-ev { width: 100%; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; min-height: 44px; }
.cal-ev b { font-size: 14px; white-space: nowrap; }
.cal-ev span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.cal-ev.match { border-color: var(--lime); }
.cal-ev.match em { background: var(--lime); color: var(--lime-ink); }
.cal-ev.train em { background: var(--rest); color: var(--rest-ink); }
.cal-ev.other { opacity: .6; }
.wx-home { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.wx-home input { min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 12px; font: inherit; }
.wx-home .btn-ghost { grid-column: 1 / -1; justify-self: start; }
.mp-wx[hidden] { display: none; }
.sleep-row { cursor: default; }
.s-alts { display: grid; gap: 6px; margin: 4px 0 10px; }
.s-alt { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 6px 10px 6px 6px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; min-height: 56px; }
.s-alt b { display: block; font-size: 15px; }
.s-alt small { display: block; color: var(--muted); font-size: 13.5px; }
.s-alt.orig { grid-template-columns: 24px minmax(0, 1fr); padding-left: 12px; }
.s-alt.orig svg { width: 20px; height: 20px; color: var(--lime); }
.s-alt .thumb { width: 56px; height: 56px; }
.s-sec3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

.sync-panel { display: grid; gap: 8px; margin-bottom: 12px; }
.sync-panel .btn { justify-self: start; }

/* =========================================================
   GARMIN PERSONAL API
   Body Battery-kurve, søvnfaser, aktiviteter (Min form › Uret), hop pr. kamp og kilder under Mere › Garmin-ur.
   ========================================================= */
.tag.orange { background: rgba(255, 154, 61, .14); border-color: transparent; color: var(--push); }
.tag.blue { background: rgba(77, 182, 255, .14); border-color: transparent; color: var(--rest); }
.stat-row b.up { color: var(--lime); }
.stat-row b.down { color: var(--push); }

/* Body Battery på forsiden */
.bb-t { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.bb-svg { width: 100%; height: auto; display: block; }
.bb-sleep { fill: var(--rest); opacity: .08; }
.bb-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.bb-fill { fill: var(--lime); opacity: .14; }
.bb-line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bb-dot { fill: var(--lime); stroke: var(--card); stroke-width: 2; }
.bb-ax { fill: var(--dim); font: 600 9px var(--font-b); }
.bb-ev rect { fill: var(--push); opacity: .2; }
.bb-ev text { fill: var(--push); font: 700 10px var(--font-b); text-anchor: middle; }
.gm-card .stat-row { margin: 0; }
.gm-stale { font-size: 14px; color: var(--prep); }

/* Min form › Uret */
.uret-seg { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.act-sum { display: grid; gap: 8px; margin-bottom: 4px; }
.act-sum .stat-row, .sl-card .stat-row { margin: 0; }
.day-sep { font-family: var(--font-d); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 14px 0 6px; }
.act { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; }
.act > summary { list-style: none; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; }
.act > summary::-webkit-details-marker { display: none; }
.act[open] > summary { border-bottom: 1px solid var(--line); }
.act-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 15px; background: var(--card-2); color: var(--soft); }
.act-ic.k-kamp { background: rgba(255, 154, 61, .15); color: var(--push); }
.act-ic.k-fod { background: rgba(77, 182, 255, .15); color: var(--rest); }
.act-ic.k-sty { background: var(--lime-soft); color: var(--lime); }
.act-ic.k-lob { background: rgba(255, 216, 74, .15); color: var(--prep); }
.act-t { min-width: 0; }
.act-t b { display: block; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-t small { display: block; color: var(--muted); font-size: 13px; }
.act-r { text-align: right; font-family: var(--font-d); font-weight: 800; font-size: 22px; line-height: 1; }
.act-r small { display: block; font-family: var(--font-b); font-weight: 600; font-size: 11px; color: var(--muted); }
.act-z { grid-column: 2 / 4; display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.act-z i { display: block; }
.act-body { padding: 12px; display: grid; gap: 10px; }
.act-body .stat-row { margin: 0; }
.act-body .t-sub { margin: 4px 0 0; }
.pv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; font-size: 14px; align-items: center; }
.pv-h { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pv .ok { color: var(--lime); font-weight: 700; }
.pv .miss { color: var(--push); font-weight: 700; }

/* Søvn */
.sl-card { display: grid; gap: 10px; margin-bottom: 12px; }
.sl-card .st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sl-card h3 { font-size: 20px; }
.sl-bar { display: flex; gap: 2px; height: 22px; border-radius: 8px; overflow: hidden; }
.sl-bar i { display: block; }
.st-deep { background: #2E5BFF; }
.st-light { background: #3A6E8F; }
.st-rem { background: var(--rest); }
.st-awake { background: var(--push); }
.sl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.sl-legend b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.sl-nights { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sl-nights li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.sl-nights em { font-style: normal; color: var(--soft); font-weight: 600; white-space: nowrap; }
.sl-n { display: block; min-width: 20px; }
.sl-n .sl-bar { height: 10px; border-radius: 5px; }
.sl-n > i { display: block; height: 10px; border-radius: 5px; }

/* Hop pr. kamp */
.jumps svg { width: 100%; height: auto; margin-top: 8px; }
.jb { fill: var(--line-2); }
.jb-now { fill: var(--lime); }
.jb-v { fill: var(--muted); font: 600 10px var(--font-b); text-anchor: middle; }
.jb-v.now { fill: var(--lime); font-weight: 700; }
.jb-d { fill: var(--dim); font: 600 9px var(--font-b); text-anchor: middle; }

/* Mere › Garmin-ur: kilder og hentefrekvens */
.gm-src { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px; }
.gm-src li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.gm-freq { margin-bottom: 10px; }
.gm-freq .seg-btn { font-size: 14px; padding: 0 4px; }
