@font-face {
  font-family: "Miele";
  src: url("assets/MieleElementsVariable.woff2") format("woff2");
  font-weight: 100 900;
}

/* Mieles egne tokens: varme grå flader, næsten sort tekst. Miele-rød kun til logo og én primær handling pr. skærm. */
:root {
  --bg: #f6f5f4;
  --card: #ffffff;
  --soft: #eae8e4;
  --line: #e2dfda;
  --ink: #1e1e1e;
  --ink-2: #52504c;
  --muted: #6b6862;
  --red: #8c0014;
  --red-deep: #54000c;
  --red-tint: #f9f2f3;
  --good: #2e6b47;
  --good-tint: #e4f0e8;
  --ok: #8a5a00;
  --ok-tint: #f7ebd3;
  --low: #8a5a00;
  --hero: #161513;
  --hero-ink: #f6f5f4;
  --hero-muted: #a9a49c;
  --heat-0: #e2dfda;
  --heat-1: #bdb8b0;
  --heat-2: #7d7870;
  --heat-3: #2b2926;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(30 30 30 / 0.04), 0 8px 24px -12px rgb(30 30 30 / 0.12);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ai-bg: #161513;
  --ai-ink: #f6f5f4;
  --ai-muted: #a9a49c;
  --ai-glow: #c4122f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --card: #1c1b19;
    --soft: #282623;
    --line: #2f2d2a;
    --ink: #f3f1ee;
    --ink-2: #c9c4bc;
    --muted: #9c978f;
    --red: #c4122f;
    --red-tint: #2a1215;
    --good: #7cc79b;
    --good-tint: #18291f;
    --ok: #e6b45a;
    --ok-tint: #2c2416;
    --low: #e6b45a;
    --hero: #0b0b0a;
    --heat-0: #2f2d2a;
    --heat-1: #5a5650;
    --heat-2: #a29d95;
    --heat-3: #f3f1ee;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Miele", -apple-system, system-ui, sans-serif;
  font-variation-settings: "wght" 400;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

b, strong, h1, h2, h3, .big, .btn, .pill { font-variation-settings: "wght" 600; font-weight: 600; }
h1 { font-variation-settings: "wght" 700; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Ramme: sidemenu på computer, svævende bundmenu på mobil ---------- */

.logo img { display: block; height: 26px; width: auto; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 5;
  display: flex; flex-direction: column; gap: 28px;
  padding: 26px 16px; background: var(--card); border-right: 1px solid var(--line);
}
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--soft); font-variation-settings: "wght" 600; }
.nav a.active svg { color: var(--red); }
/* Booking ligger på sidelinjen: under en streg i sidemenuen og i kontomenuen på mobil. */
.nav a.nav-extra { margin-top: 10px; position: relative; }
.nav a.nav-extra::before { content: ""; position: absolute; left: 12px; right: 12px; top: -6px; border-top: 1px solid var(--line); }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: var(--muted); display: grid; gap: 8px; }

.rep-switch { display: grid; gap: 8px; margin: 16px 0; font-size: 14px; }
.rep-select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px;
}

.topbar { display: none; }

main {
  margin-left: 232px;
  padding: 36px 40px 80px;
  max-width: calc(1180px + 232px);
  animation: fade 0.25s var(--ease-out);
}

@media (max-width: 860px) {
  .topbar {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: center;
    padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  }
  .top-rep {
    font-size: 14px; color: var(--ink-2); background: var(--card); border: 0; border-radius: 99px;
    padding: 8px 14px; min-height: 40px; cursor: pointer; box-shadow: var(--shadow);
  }
  .sidebar {
    inset: auto 12px calc(env(safe-area-inset-bottom) + 10px) 12px; width: auto; height: auto;
    flex-direction: row; gap: 0; padding: 6px; border: 0; border-radius: 22px;
    background: color-mix(in srgb, var(--card) 80%, transparent);
    backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 10px 30px -10px rgb(30 30 30 / 0.35), inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  }
  .sidebar > .logo, .sidebar-foot { display: none; }
  .nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .nav a.nav-extra { display: none; }
  .nav a { flex-direction: column; gap: 3px; padding: 8px 0 6px; font-size: 11px; border-radius: 16px; min-height: 52px; }
  .nav a.active { background: var(--soft); }
  main { margin: 0; padding: 8px 16px calc(env(safe-area-inset-bottom) + 110px); }
}

/* ---------- Typografi ---------- */

.top { margin-bottom: 22px; }
h1 { font-size: 36px; line-height: 1.08; letter-spacing: -0.025em; margin: 2px 0 8px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 32px 2px 12px; }
h3 { font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; color: var(--muted); margin: 0; }
.eyebrow::first-letter { text-transform: uppercase; }
.lede { color: var(--ink-2); margin: 0; font-size: 17px; }
.muted { color: var(--muted); font-size: 14px; margin: 3px 0 0; }
.note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.empty { color: var(--muted); text-align: center; padding: 48px 16px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 15px; margin-bottom: 12px; min-height: 40px; }
.good { color: var(--good); } .ok { color: var(--ok); } .low { color: var(--low); }
.num { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) { h1 { font-size: 32px; } }

/* ---------- Kort, lister, knapper ---------- */

.card {
  display: block; background: var(--card); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.stack { display: grid; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 1000px) { .grid2 { grid-template-columns: 1fr; } }

.list { padding: 4px 18px; }
.list > * { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list h3 { font-size: 16px; }
a.row { transition: transform 0.1s; }
a.row:active { transform: scale(0.99); }
a.row:hover h3 { color: var(--red); }
.chev { color: var(--muted); font-size: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--card); color: var(--ink); font-size: 15px; cursor: pointer; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.1s var(--ease-out), background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--red) 80%, transparent); min-height: 56px; font-size: 16px; }
.btn.primary:hover { background: color-mix(in srgb, var(--red) 88%, #000); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn.chosen { box-shadow: inset 0 0 0 2px var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.actions .btn { flex: 1 1 160px; }
.text-link { color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.pill {
  font-size: 13px; padding: 4px 10px; border-radius: 99px; white-space: nowrap;
  font-variant-numeric: tabular-nums; background: var(--soft);
}
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.low { background: var(--ok-tint); color: var(--ok); }
.pill.neutral { background: var(--soft); color: var(--ink); }

.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px;
  font-variation-settings: "wght" 600; white-space: nowrap;
}
.tag.amb { color: var(--ink); background: var(--soft); }
.tag.new { color: var(--good); background: var(--good-tint); }

.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--soft); color: var(--ink-2); font-variation-settings: "wght" 600;
  box-shadow: inset 0 0 0 2px transparent;
}
.avatar.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--heat-3); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips a, .chips span { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--soft); }
.chips a:hover { background: var(--line); }
.more summary { cursor: pointer; font-size: 13px; color: var(--ink-2); margin-top: 8px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
details summary { cursor: pointer; }

.bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--heat-3); transform-origin: left; animation: grow 0.6s var(--ease-out) both; }

.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 34px 2px 14px; }
.section-head h2 { color: var(--ink); font-size: 22px; text-transform: none; letter-spacing: -0.02em; margin: 0 0 2px; }
.section-head .muted { margin: 0; }

/* ---------- Morgenfeltet: hilsen og ugens egen fremdrift ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero); color: var(--hero-ink); border-radius: 24px; padding: 26px;
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.6);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -30% -30% auto auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgb(196 18 47 / 0.32)), transparent 62%);
}
.hero.is-morning { --glow: rgb(231 112 47 / 0.34); }
.hero.is-evening { --glow: rgb(140 0 20 / 0.45); }
.hero .eyebrow { color: var(--hero-muted); }
.hero h1 { color: var(--hero-ink); margin: 4px 0 2px; }
.hero .lede { color: var(--hero-muted); font-size: 15px; }
.hero-body { display: flex; align-items: center; gap: 26px; margin-top: 22px; }
.hero-stats { display: grid; gap: 14px; flex: 1; min-width: 0; }
.hero-stat b { display: block; font-size: 26px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stat > span, .hero-stat > a > span { display: block; color: var(--hero-muted); font-size: 13px; margin-top: 3px; }
.hero-stat b small { font-size: 15px; color: var(--hero-muted); font-variation-settings: "wght" 500; }
.hero-stat a { color: inherit; }

.week-ring { position: relative; flex: none; width: 140px; height: 140px; }
.week-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.week-ring circle { fill: none; stroke-width: 9; stroke-linecap: butt; }
.week-ring.single circle { stroke-linecap: round; }
.week-ring .off { stroke: rgb(255 255 255 / 0.13); }
.week-ring .on { stroke: #fff; animation: segment 0.45s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.week-ring.closed svg { filter: drop-shadow(0 0 10px rgb(255 255 255 / 0.45)); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center b { font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "wght" 700; font-variant-numeric: tabular-nums; }
.ring-center b small { font-size: 20px; color: var(--hero-muted); font-variation-settings: "wght" 500; }
.ring-center > span { font-size: 12px; color: var(--hero-muted); margin-top: 4px; }
.hero-note { margin: 18px 0 0; color: var(--hero-muted); font-size: 14px; }
.hero-note b { color: var(--hero-ink); }
@media (max-width: 420px) { .week-ring { width: 124px; height: 124px; } .hero-body { gap: 20px; } .hero { padding: 22px; } }

.next-cta { margin: 16px 0 0; }
.next-cta small { display: block; font-size: 13px; opacity: 0.8; font-variation-settings: "wght" 400; }
.next-cta .btn { flex-direction: column; gap: 0; line-height: 1.25; padding: 8px 18px; }

/* Ugen i tal: rolig afslutning med egne tal. */
.recap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.recap div { background: rgb(255 255 255 / 0.07); border-radius: 16px; padding: 14px; }
.recap b { display: block; font-size: 34px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.recap span { display: block; font-size: 12px; color: var(--hero-muted); margin-top: 6px; }

/* ---------- Nyt siden sidst ---------- */

.news-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.news-row::-webkit-scrollbar { display: none; }
.news {
  flex: 0 0 200px; scroll-snap-align: start; display: grid; gap: 4px; align-content: start;
  background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); min-height: 132px;
  animation: rise 0.35s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.news b { font-size: 34px; line-height: 1; letter-spacing: -0.03em; color: var(--good); font-variant-numeric: tabular-nums; }
.news span { font-size: 14px; color: var(--ink); }
.news small { font-size: 13px; color: var(--muted); margin-top: auto; }
@media (min-width: 861px) { .news-row { margin: 0; padding: 4px 0 10px; flex-wrap: wrap; overflow: visible; } }

/* ---------- Butikspuls: én flade pr. butik, mørkere = flere aktive brugere ---------- */

.pulse-card { padding: 20px; }
.pulse-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pulse-head h3 { font-size: 19px; }
.pulse { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 5px; margin: 16px 0 14px; }
.pulse a {
  aspect-ratio: 1; border-radius: 7px; background: var(--heat-0); transition: transform 0.12s var(--ease-out);
  animation: pop 0.4s var(--ease-out) both; animation-delay: calc(var(--i) * 8ms);
}
.pulse a:hover, .pulse a:focus-visible { transform: scale(1.18); position: relative; z-index: 1; }
.pulse .none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.pulse .l0 { background: var(--heat-0); }
.pulse .l1 { background: var(--heat-1); }
.pulse .l2 { background: var(--heat-2); }
.pulse .l3 { background: var(--heat-3); }
.pulse .fresh { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--good); }
.link-button { background: none; border: 0; padding: 4px 0; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.legend .l3 { background: var(--heat-3); } .legend .l2 { background: var(--heat-2); } .legend .l1 { background: var(--heat-1); } .legend .l0 { background: var(--heat-0); }
.legend .none { box-shadow: inset 0 0 0 1.5px var(--line); } .legend .fresh { box-shadow: inset 0 0 0 2px var(--good); }

/* ---------- Salg: fiktive testtal. Søjler for omsætningen og en streg for samme måned sidste år ---------- */

.pill.fictive { background: var(--ok-tint); color: var(--ok); font-size: 12px; }
.sales-card { padding: 20px; margin-top: 16px; }
/* Kommende funktioner har deres eget eksempelrum, væk fra dagens prioritering. */
.upcoming-label { background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.upcoming-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; margin: 28px 0 16px; }
.upcoming-teaser h2 { margin: 10px 0 4px; font-size: 21px; }
.upcoming-teaser p { margin: 0; max-width: 55ch; }
.example-notice { background: var(--ok-tint); color: var(--ink); padding: 18px 20px; border-radius: var(--radius); margin: 0 0 22px; }
.example-notice p { margin: 6px 0 0; font-size: 14px; }
.kpi-grid { display: grid; gap: 16px; }
.kpi-preview { padding: 20px; min-width: 0; }
.kpi-preview h2 { font-size: 19px; margin: 0; }
.kpi-preview h2, .upcoming-sales h2, .upcoming-teaser h2 { text-transform: none; letter-spacing: -0.02em; }
.upcoming-tabs { display: flex; gap: 8px; }
.upcoming-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; }
.upcoming-tabs a.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.kpi-scope { font-size: 13px; margin: 8px 0; }
.kpi-value { font-size: 42px; line-height: 1.15; margin: 22px 0 14px; font-weight: 600; }
.kpi-value span { color: var(--muted); font-size: 23px; }
.kpi-track { height: 8px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.kpi-track i { display: block; height: 100%; background: var(--ink-2); border-radius: inherit; }
.kpi-slots { display: flex; gap: 7px; }
.kpi-slots span { display: grid; place-items: center; flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.kpi-slots .filled { background: var(--ink-2); color: var(--card); border-color: transparent; }
.kpi-remaining { font-size: 14px; color: var(--muted); }
.kpi-next { background: var(--bg); border-radius: 10px; padding: 14px; margin: 18px 0; }
.kpi-next small { color: var(--muted); }
.kpi-next p { margin: 5px 0 0; }
.kpi-detail summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.kpi-detail ul { padding: 0; list-style: none; }
.kpi-detail li { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kpi-detail li span { color: var(--muted); }
.upcoming-store { margin: 20px 0; padding: 20px; }
.upcoming-store h3 { margin: 12px 0 4px; }
.upcoming-store summary { cursor: pointer; min-height: 44px; font-weight: 600; }
.upcoming-store summary .pill { display: inline-block; margin-left: 6px; font-weight: 400; }
.upcoming-sales { margin-top: 28px; scroll-margin-top: 80px; }
.upcoming-later { padding: 20px; margin-top: 22px; }
.upcoming-later summary { cursor: pointer; font-weight: 600; }
.upcoming-later p { color: var(--muted); font-size: 14px; }
@media (min-width: 700px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sales-body { display: grid; gap: 8px 28px; }
@media (min-width: 861px) { .sales-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.sales-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 6px; }
.sales-stat { background: var(--bg); border-radius: 12px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.sales-stat > span, .sales-stat small { font-size: 13px; color: var(--muted); }
.sales-stat b { font-size: clamp(20px, 5.6vw, 26px); letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.meter { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 4px 0 2px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--heat-3); }

.sales-chart { margin-top: 16px; }
.sc-readout { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.sc-plot { position: relative; height: 150px; margin-left: 52px; border-bottom: 1px solid var(--line); }
.sc-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.sc-grid small { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-cols { position: absolute; inset: 0; display: flex; }
.sc-col { flex: 1; min-width: 0; position: relative; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.sc-col:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sc-bar {
  position: absolute; bottom: 0; left: 50%; width: min(24px, 56%); transform: translateX(-50%); transform-origin: bottom;
  background: var(--heat-2); border-radius: 4px 4px 0 0; transition: background 0.15s; animation: column 0.6s var(--ease-out) both;
}
.sc-col.on .sc-bar, .sc-col:hover .sc-bar { background: var(--heat-3); }
.sc-ly {
  position: absolute; left: 50%; width: calc(min(24px, 56%) + 10px); height: 2px; margin-bottom: -1px; transform: translateX(-50%);
  border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--card);
}
.sc-col small { position: absolute; top: calc(100% + 6px); left: 0; right: 0; font-size: 11px; color: var(--muted); text-transform: uppercase; }
@keyframes column { from { transform: translateX(-50%) scaleY(0); } }
.sales-chart .legend { margin-top: 30px; }
.legend i.sc-key-bar { background: var(--heat-2); }
.legend i.sc-key-ly { width: 14px; height: 2px; border-radius: 2px; background: var(--ink); vertical-align: 3px; }
.sc-table { margin-top: 10px; font-size: 13px; }
.sc-table summary { color: var(--ink-2); }
.sc-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sc-table th, .sc-table td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.sc-table th:first-child, .sc-table td:first-child { text-align: left; }
.sc-table th { font-size: 12px; color: var(--muted); font-weight: 400; }
.sales-falling h4 { font-size: 15px; margin: 16px 0 2px; }
.sales-falling .list { padding: 0; }

/* Overblikket på computer: morgenfeltet til venstre og butikspulsen til højre. */
.overview-top { display: grid; gap: 16px; }
.overview-top .pulse-card { margin-top: 0; }
@media (min-width: 1100px) { .overview-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }

/* Butikslisten: lille farvefelt og aktive/registrerede. */
.heat { flex: none; width: 14px; height: 14px; border-radius: 5px; background: var(--heat-0); }
.heat.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.heat.l1 { background: var(--heat-1); } .heat.l2 { background: var(--heat-2); } .heat.l3 { background: var(--heat-3); }
.ratio { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ratio b { font-size: 17px; color: var(--ink); }

.search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.search input {
  flex: 1 1 240px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.search input:focus { outline: none; border-color: var(--ink); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  min-height: 40px; padding: 0 14px; border-radius: 99px; font-size: 14px; cursor: pointer;
}
.filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.engagement-panel > summary { list-style: none; }
.engagement-panel > summary::-webkit-details-marker { display: none; }
.engagement-panel > summary h2::after { content: " ›"; color: var(--muted); }
.engagement-panel[open] > summary h2::after { content: ""; }
.pulse-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pulse-sum b { display: block; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pulse-sum span { font-size: 12px; color: var(--muted); }

/* ---------- Forslag ---------- */

.recommendations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1180px) { .recommendations { grid-template-columns: 1fr; } }
.rec { padding: 20px; min-width: 0; animation: rise 0.35s var(--ease-out) both; }
.rec-agreement { box-shadow: var(--shadow), inset 3px 0 0 var(--ink); }
.rec h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 12px; }
.rec p { font-size: 14px; }
.rec .note { font-size: 12px; margin: 12px 0; }
.rec .btn { font-size: 14px; line-height: 1.3; padding: 10px 12px; }
.rec-why { color: var(--ink-2); }
.rec-decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.choice-status { color: var(--good); font-variation-settings: "wght" 600; }
.rec-more { margin-top: 12px; font-size: 12px; color: var(--muted); }
.rec-more .rec-decisions { grid-template-columns: 1fr; }
.agreement-quote { border-left: 2px solid var(--ink); padding-left: 12px; }
.dismissed { opacity: 0.8; }
.quiet-state { max-width: 720px; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.numbers div { padding: 4px 2px; }
.numbers b { display: block; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.numbers span { font-size: 13px; color: var(--muted); }

/* ---------- Butik ---------- */

.store-hero { display: flex; align-items: center; gap: 22px; padding: 24px; }
.store-hero .grow { flex: 1; min-width: 0; }
.store-hero h1 { font-size: 30px; margin: 4px 0 6px; overflow-wrap: anywhere; }
.store-ring { position: relative; flex: none; width: 112px; height: 112px; }
.store-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.store-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.store-ring .track { stroke: var(--soft); }
.store-ring .fill { stroke: var(--heat-3); animation: sweep 0.7s var(--ease-out) both; }
.store-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.store-ring b { font-size: 28px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.store-ring b small { font-size: 16px; color: var(--muted); }
.store-ring div > span { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 520px) { .store-hero { flex-direction: column-reverse; align-items: flex-start; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.fact svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.fact b { font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; color: var(--muted); }

.store-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 14px 0 6px; }
.store-actions .btn { min-height: 56px; }
@media (max-width: 520px) { .store-actions { grid-template-columns: 1fr; } }

.coverage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .coverage { grid-template-columns: repeat(5, 116px); overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; } }
.product {
  display: grid; justify-items: center; text-align: center; gap: 2px;
  background: linear-gradient(180deg, var(--card), var(--bg)); border-radius: 18px; padding: 14px 10px 12px; box-shadow: var(--shadow);
}
.product img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.12)); transition: transform 0.2s var(--ease-out); }
.product:hover img { transform: translateY(-3px) scale(1.04); }
.product b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.product span { font-size: 13px; color: var(--ink-2); }
.product small { font-size: 12px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .product img { background: #f6f5f4; border-radius: 14px; padding: 6px; } }

.visit-brief { padding: 24px; }
.visit-brief h2 { font-size: 24px; text-transform: none; color: var(--ink); letter-spacing: -0.02em; margin: 6px 0 4px; }
.brief-blocks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 18px 0 6px; }
@media (max-width: 900px) { .brief-blocks { grid-template-columns: 1fr; } }
.brief-blocks > div { background: var(--bg); border-radius: 14px; padding: 16px; }
.brief-blocks h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px; }
.brief-blocks ul { padding-left: 18px; margin: 0; }
.brief-blocks li { font-size: 15px; } .brief-blocks li + li { margin-top: 6px; }
.brief-blocks .ask p { font-size: 19px; line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
.brief-blocks p { margin: 0; font-size: 15px; }
.last-agreement { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.brief-limits { padding: 12px 0 0; color: var(--muted); font-size: 13px; }

.person-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.recency { font-size: 13px; color: var(--muted); }
.recency.on { color: var(--good); }
.people-overview, .context-overview { margin: 28px 0; }
.people-overview > summary, .context-overview > summary { font-size: 16px; font-variation-settings: "wght" 600; padding: 6px 0; }
.people-overview .list { margin-top: 12px; }

.qr-row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--card); border: 0; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-top: 12px;
}
.qr-row .qr-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.qr-row .qr-icon svg { width: 24px; height: 24px; fill: currentColor; }
.qr-row b { display: block; font-size: 15px; }
.qr-row small { color: var(--muted); font-size: 13px; }

/* ---------- Min uge ---------- */

.daystrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 4px 0 18px; }
.daystrip > * { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.daystrip small { font-size: 12px; color: var(--muted); }
.daystrip b { font-size: 20px; font-variant-numeric: tabular-nums; }
.daystrip i { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.daystrip .has i { background: var(--heat-2); }
.daystrip .today { background: var(--ink); color: var(--bg); }
.daystrip a:active { transform: scale(0.96); }
.daystrip .today small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.daystrip .today.has i { background: var(--bg); }

.ai {
  position: relative; overflow: hidden; isolation: isolate; color: var(--ai-ink); background: var(--ai-bg);
  border-radius: 24px; padding: 26px;
}
.ai::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -20% auto auto; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ai-glow) 40%, transparent), transparent 64%);
}
.ai .eyebrow { color: var(--ai-muted); }
.ai h2 { color: var(--ai-ink); text-transform: none; letter-spacing: -0.02em; font-size: 26px; margin: 4px 0 6px; }
.ai p { color: var(--ai-muted); margin: 0; }
.ai .btn { margin-top: 18px; }
.ai .btn.light { background: #fff; color: #000; box-shadow: none; }
.ai .btn.ghost { background: transparent; color: var(--ai-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.spark { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: #fff; opacity: 0.8; }

.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--ai-muted); font-size: 15px; animation: rise 0.3s var(--ease-out) both; }
.steps li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.8px solid rgb(255 255 255 / 0.5); border-top-color: transparent; animation: spin 0.8s linear infinite;
}
.steps li.done { color: var(--ai-ink); }
.steps li.done::before { animation: check 0.25s var(--ease-out); border: 0; background: #fff no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.2 4.7-5' fill='none' stroke='%23161513' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ai-text { margin-top: 16px; color: var(--ai-ink); font-size: 16px; line-height: 1.55; white-space: pre-wrap; }
.ai-text.typing::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: #fff; animation: blink 1s steps(2) infinite; }

.plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 1280px) { .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plan { grid-template-columns: 1fr; } }
.day { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); animation: rise 0.35s var(--ease-out) both; }
.day.today { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.day h3 { font-size: 15px; display: flex; justify-content: space-between; }
.day .focus { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.visit { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.visit b { display: block; font-size: 15px; }
.visit small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.visit:hover b { color: var(--red); }

/* ---------- Træninger ---------- */

.categories { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 900px) { .categories { grid-template-columns: repeat(5, 150px); overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; } }
.categories .product { padding: 18px 12px 16px; }
.categories .product img { width: 96px; height: 96px; }
.categories .product b { font-size: 30px; }

/* ---------- Noter og aftaler ---------- */

.check { display: flex; gap: 12px; align-items: center; width: 100%; background: none; border: 0; padding: 6px 0; text-align: left; cursor: pointer; min-height: 44px; }
.box { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.box::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.25s var(--ease-out); }
.check.done .box { background: var(--good); border-color: var(--good); }
.check.done .box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check.done > span:last-child { color: var(--muted); text-decoration: line-through; }
.note-card { animation: rise 0.3s var(--ease-out) both; }
.note-card .eyebrow { margin-bottom: 6px; }
.note-card p { margin: 4px 0; }

/* ---------- Formularer, ark og beskeder ---------- */

.form label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.form textarea, .form input, .report {
  display: block; width: 100%; margin-top: 6px; padding: 14px; min-height: 52px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px; resize: vertical; min-width: 0;
}
.form textarea:focus, .form input:focus { outline: none; border-color: var(--ink); background: var(--card); }
.form label small { color: var(--muted); font-size: 13px; }
.sheet input.report { min-height: 0; font-size: 13px; margin: 14px 0 10px; }
.sheet-steps { margin: 16px 0 6px; padding-left: 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }

/* Besøgsloggen: faste valg som knapper. Hvem og hvornår vises først, når der står en aftale. */
.visit-form { max-width: 640px; }
.visit-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.visit-form legend { font-size: 14px; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.form .choice label { display: inline-flex; margin: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span, .choice button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s var(--ease-out);
}
.choice span:active, .choice button:active { transform: scale(0.96); }
.choice input:checked + span, .choice button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.visit-form .choice + input { margin-top: 10px; }
.visit-form .check { padding: 8px 0; }
.visit-form:not(:has(textarea[name="agreed"]:not(:placeholder-shown))) .agreement-extra { display: none; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }

.sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: end center; background: rgb(0 0 0 / 0.42); animation: fade 0.2s ease; padding: 12px; }
@media (min-width: 861px) { .sheet { place-items: center; } }
.sheet[hidden] { display: none; }
.sheet-body { width: 100%; max-width: 440px; max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--card); border-radius: 24px; padding: 24px; animation: rise 0.28s var(--ease-out); }
.sheet-title { font-size: 26px; text-transform: none; letter-spacing: -0.02em; color: var(--ink); margin: 4px 0 16px; }
.qr { background: #fff; border-radius: 18px; padding: 14px; width: min(280px, 82%); margin: 0 auto; box-shadow: var(--shadow); }
.qr svg { display: block; width: 100%; height: auto; }
.code { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 16px; line-height: 1.6; }
.signup-code { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 17px; letter-spacing: 0.08em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.report { font-size: 14px; margin-bottom: 12px; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; }
.switch input { width: 22px; height: 22px; accent-color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px;
  background: var(--ink); color: var(--bg); font-size: 15px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.4);
  animation: toast 2.4s var(--ease-out) both;
}
.toast i { width: 20px; height: 20px; border-radius: 50%; background: var(--good); display: grid; place-items: center; }
.toast i::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
@media (min-width: 861px) { .toast { bottom: 32px; } }

/* ---------- Login: Mieles køkken i fuld skærm og et frostet glaskort ---------- */

.logged-out .sidebar, .logged-out .topbar { display: none; }
.logged-out main { margin: 0; padding: 0; max-width: none; }
.login { position: fixed; inset: 0; z-index: 10; overflow: hidden; background: #2a241f; color: #fff; }
.login-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; animation: kenburns 24s var(--ease-out) both; }
.login-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 14 11 / 0.72) 0%, rgb(18 14 11 / 0.35) 45%, rgb(18 14 11 / 0) 70%); }
.login-brand { position: absolute; top: calc(env(safe-area-inset-top) + 28px); left: 40px; display: flex; align-items: center; gap: 14px; animation: rise 0.5s var(--ease-out) both; }
.login-brand img { height: 30px; }
.login-brand span { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 0.85); }
.login-card {
  position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: min(420px, calc(100% - 32px));
  padding: 30px; border-radius: 28px; color: #fff;
  background: rgb(30 26 23 / 0.5); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .login-card { background: rgb(30 26 23 / 0.94); } }
.login-card > * { animation: rise 0.45s var(--ease-out) both; }
.login-card > :nth-child(2) { animation-delay: 60ms; } .login-card > :nth-child(3) { animation-delay: 120ms; }
.login-card > :nth-child(4) { animation-delay: 180ms; } .login-card > :nth-child(5) { animation-delay: 240ms; }
.login-card > :nth-child(n+6) { animation-delay: 300ms; }
.login-card .eyebrow { color: rgb(255 255 255 / 0.75); font-size: 15px; }
.login-card h1 { font-size: 40px; margin: 4px 0 6px; color: #fff; }
.login-card .lede { color: rgb(255 255 255 / 0.78); font-size: 16px; margin-bottom: 22px; }
.login-card label { display: block; font-size: 13px; color: rgb(255 255 255 / 0.8); margin-bottom: 12px; }
.login-card input {
  display: block; width: 100%; margin-top: 6px; min-height: 56px; padding: 0 16px; border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.22); background: rgb(255 255 255 / 0.12); color: #fff; font: inherit; font-size: 17px;
}
.login-card input:focus { outline: none; border-color: #fff; background: rgb(255 255 255 / 0.18); }
.login-card .btn.primary { margin-top: 6px; }
.login-error { min-height: 1.4em; margin: 0 0 8px; color: #ffd6a8; font-size: 14px; }
.login-foot { margin: 16px 0 0; font-size: 12px; color: rgb(255 255 255 / 0.6); }
.login-credit { position: absolute; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 10px); font-size: 11px; color: rgb(255 255 255 / 0.6); }
.pin-input { text-align: center; letter-spacing: 0.35em; font-size: 26px !important; }
@media (max-width: 700px) {
  .login-bg img { object-position: 78% 50%; }
  .login-scrim { background: linear-gradient(180deg, rgb(18 14 11 / 0.15) 0%, rgb(18 14 11 / 0) 35%, rgb(18 14 11 / 0.75) 100%); }
  .login-brand { left: 20px; }
  .login-card { left: 12px; right: 12px; top: auto; bottom: calc(env(safe-area-inset-bottom) + 12px); transform: none; width: auto; padding: 24px; }
  .login-card h1 { font-size: 34px; }
  .login-credit { top: calc(env(safe-area-inset-top) + 34px); bottom: auto; }
}

/* ---------- Indlæsning ---------- */

.skeleton { display: grid; gap: 14px; }
.skeleton div { border-radius: 18px; background: linear-gradient(90deg, var(--soft) 0%, var(--card) 50%, var(--soft) 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }

/* ---------- Academy-engagement: neutral skala, synlig måledato og ingen udfyldte huller ---------- */

.data-stamp { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.data-stale { color: var(--ok); }
.source-notice { margin: 12px 0; font-size: 14px; }
.engagement-panel { margin: 24px 0; padding: 22px; }
.engagement-panel h2 { color: var(--ink); text-transform: none; letter-spacing: -0.02em; font-size: 20px; margin: 4px 0 0; }
.engagement-value { display: flex; align-items: center; gap: 20px; margin: 18px 0; }
.engagement-value strong { font-size: 52px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.engagement-chart { margin: 18px 0; }
.engagement-chart figcaption { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.engagement-chart svg { width: 100%; max-height: 240px; font-size: 11px; fill: var(--muted); }
.chart-axis { fill: none; stroke: var(--line); }
.chart-series { stroke: var(--ink-2); fill: var(--ink-2); stroke-width: 2; }
.table-scroll { overflow-x: auto; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 13px; }
.table-scroll th, .table-scroll td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.store-measure { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; flex-shrink: 0; }
.store-measure small { font-size: 11px; color: var(--muted); }
.premise { margin-top: 28px; max-width: 680px; }

/* ---------- Bevægelse: korte overgange, intet der kører i ring ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes segment { from { stroke: rgb(255 255 255 / 0.13); } }
@keyframes sweep { from { stroke-dasharray: 0 100; } }
@keyframes check { from { transform: scale(0.4); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .toast { animation: none; }
}

/* ---------- Ugeplan, der kan redigeres ---------- */

.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.visit-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.visit-row .grow { flex: 1; min-width: 0; }
.visit-row b { display: block; font-size: 15px; }
.visit-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.visit-row a:hover b { color: var(--red); }
.stop { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 12px; font-variation-settings: "wght" 600; font-variant-numeric: tabular-nums; }
.stop.big { width: 36px; height: 36px; font-size: 16px; background: var(--ink); color: var(--bg); }
.stop.big.done { background: var(--good); color: var(--bg); }
.move { flex: none; max-width: 76px; min-height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-2); font: inherit; font-size: 13px; }
.remove { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.remove:hover { background: var(--soft); color: var(--ink); }
.day-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.add-visit { min-height: 40px; padding: 0 12px; border: 1.5px dashed var(--line); border-radius: 10px; background: none; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.add-visit:hover { border-color: var(--ink-2); }
.plan-actions { margin-top: 14px; }

/* ---------- Messer: liste, guide og messeside ---------- */
.halo { background: radial-gradient(ellipse at 45% 39%, #faf8f3 0%, #e7e2d9 45%, #d3cbbf 100%); display: grid; place-items: center; overflow: hidden; }
.halo img { max-width: 78%; max-height: 82%; object-fit: contain; filter: drop-shadow(8px 14px 14px rgb(78 68 51 / 0.22)); }
.messe-list { display: grid; gap: 10px; }
.messe-card { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); animation: rise 0.35s var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); transition: transform 0.15s var(--ease-out); }
.messe-card:hover { transform: translateY(-2px); }
.messe-card h3 { font-size: 19px; margin: 2px 0 6px; }
.messe-card .grow { flex: 1; min-width: 0; }
.messe-thumb { width: 88px; height: 88px; border-radius: 14px; flex: none; }
.messe-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.messe-tags span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.messe-empty { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; text-align: left; }
.messe-empty .halo { height: 160px; border-radius: 18px; }
.messe-empty .btn { margin-top: 14px; }

.wiz-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 8px 0 22px; overflow-x: auto; scrollbar-width: none; }
.wiz-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--card); color: var(--muted); font-size: 14px; white-space: nowrap; box-shadow: var(--shadow); }
.wiz-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); font-size: 12px; font-variation-settings: "wght" 600; }
.wiz-steps li.on { color: var(--ink); } .wiz-steps li.on span { background: var(--red); color: #fff; }
.wiz-steps li.done { color: var(--ink-2); } .wiz-steps li.done span { background: var(--good); color: #fff; }
.wiz-steps li.off { opacity: 0.4; }
.wizard [hidden] { display: none !important; }
.wizard { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; max-width: 980px; }
.wiz-page { animation: rise 0.3s var(--ease-out) both; }
.wiz-title { font-size: clamp(24px, 3vw, 32px); color: var(--ink); text-transform: none; letter-spacing: -0.03em; margin: 0 0 6px; }
.wiz-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.wiz-mode input, .wiz-product input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-mode-card { display: grid; gap: 6px; height: 100%; padding: 22px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease-out); position: relative; }
.wiz-mode-card:hover { transform: translateY(-2px); }
.wiz-mode-card svg { width: 34px; height: 34px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.wiz-mode-card b { font-size: 19px; }
.wiz-mode-card small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.wiz-mode input:checked + .wiz-mode-card { border-color: var(--red); background: var(--red-tint); }
.wiz-mode input:checked + .wiz-mode-card svg { stroke: var(--red); }
.wiz-mode input:checked + .wiz-mode-card::after { content: "✓"; position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 14px; }
.wiz-mode input:focus-visible + .wiz-mode-card, .wiz-product input:focus-visible + .wiz-product-card { outline: 2px solid var(--red); outline-offset: 2px; }
.wiz-mode.small .wiz-mode-card { padding: 16px 18px; }
.wiz-mode.small .wiz-mode-card b { font-size: 16px; }
.wiz-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.wiz-product-card { display: grid; gap: 4px; padding: 10px 10px 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; height: 100%; transition: border-color 0.15s, transform 0.15s var(--ease-out); }
.wiz-product-card:hover { transform: translateY(-2px); }
.wiz-product-card .halo { aspect-ratio: 1; border-radius: 12px; margin-bottom: 8px; }
.wiz-product-card small { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.wiz-product-card b { font-size: 15px; line-height: 1.25; padding: 0 4px; }
.wiz-badges { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 4px 0; }
.wiz-badges i { font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.wiz-badges i:first-child:not(:only-child) { background: var(--good-tint); color: var(--good); }
.wiz-product input:checked + .wiz-product-card { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.form-section { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.wizard .wiz-quiz legend { margin-top: 26px; }
.wiz-quiz { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wiz-quiz legend { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.wiz-custom { display: grid; gap: 12px; margin-top: 14px; }
.wiz-q { box-shadow: none; background: var(--bg); }
.wiz-q label { margin-bottom: 10px; }
.wiz-answer { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wiz-answer input[type=radio] { width: 22px; height: 22px; accent-color: var(--good); flex: none; margin: 0; min-height: 0; }
.wiz-answer input:not([type]) { margin: 0; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.wiz-nav .btn.primary { margin-left: auto; min-width: 180px; }

.messe-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center;
  background: var(--hero); color: var(--hero-ink); border-radius: 26px; padding: 30px; margin-bottom: 8px; }
.messe-hero::before { content: ""; position: absolute; z-index: -1; right: 14%; top: -40%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ai-glow) 34%, transparent), transparent 64%); }
.messe-hero .eyebrow { color: var(--hero-muted); }
.messe-hero h1 { color: var(--hero-ink); font-size: clamp(30px, 4vw, 46px); margin: 6px 0 4px; }
.messe-hero-lede { color: var(--hero-muted); margin: 0; }
.messe-hero-stats { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.messe-hero-stats div { background: rgb(255 255 255 / 0.07); border-radius: 14px; padding: 12px 16px; min-width: 140px; }
.messe-hero-stats b { display: block; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.messe-hero-stats span { font-size: 13px; color: var(--hero-muted); }
.messe-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.messe-hero-actions .btn.light { background: #fff; color: #000; box-shadow: none; }
.messe-hero-actions .btn.ghost { background: transparent; color: var(--hero-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.messe-hero-qr { text-align: center; z-index: 1; }
.messe-qr { background: #fff; border-radius: 20px; padding: 14px; width: 210px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.6); }
.messe-qr svg { display: block; width: 100%; height: auto; }
.messe-hero-qr p { margin: 10px 0 0; color: var(--hero-muted); font-size: 14px; }
.messe-hero-product { position: absolute; z-index: -1; right: 250px; bottom: -10px; height: 92%; opacity: 0.2; filter: grayscale(0.2); pointer-events: none; }
.messe-admin { margin-top: 28px; }
.contest-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 12px; align-items: stretch; }
.contest-top .facts { grid-template-columns: repeat(2, 1fr); margin: 0; }
.academy-panel { background: linear-gradient(160deg, #3a0f17, #24090e); color: #f6ece9; border-radius: 22px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.academy-panel .eyebrow { color: #c9a7a2; }
.academy-panel h3 { color: #fff; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.academy-panel p { color: #d9c4c0; margin: 0; font-size: 14px; }
.academy-ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; margin: 8px auto;
  background: radial-gradient(closest-side, #2d0b12 80%, transparent 81% 100%), conic-gradient(#d8b98c calc(var(--p) * 1%), rgb(255 255 255 / 0.12) 0); }
.academy-ring b { font-size: 40px; line-height: 1; color: #fff; } .academy-ring b small { font-size: 18px; }
.academy-ring span { font-size: 12px; color: #c9a7a2; }

@media (max-width: 860px) {
  .wizard { padding: 20px; border-radius: 20px; }
  .messe-hero { grid-template-columns: 1fr; padding: 22px; }
  .messe-hero-qr { order: -1; }
  .messe-qr { width: 180px; margin: 0 auto; }
  .messe-hero-product { display: none; }
  .contest-top { grid-template-columns: 1fr; }
  .messe-empty { grid-template-columns: 1fr; }
  .messe-thumb { width: 64px; height: 64px; }
}

/* ---------- Booking: reppens side ---------- */
.booking-actions { flex-wrap: wrap; }
.booking-days { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 1100px) { .booking-days { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.booking-day h3 { margin-bottom: 6px; }
.booking-slot { padding: 10px 0; border-top: 1px solid var(--line); }
.booking-slot.past { opacity: 0.6; }
.slot-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.booking-row { display: flex; align-items: center; gap: 6px; padding: 8px 0 0 12px; }
.booking-row .grow { flex: 1; min-width: 0; }
.booking-row b { display: block; font-size: 14px; }
.booking-row small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.booking-row.cancelled b, .booking-row.no_show b { text-decoration: line-through; color: var(--muted); }
.danger-link { margin-top: 12px; background: none; box-shadow: none; color: var(--muted); text-decoration: underline; }
.form select { display: block; width: 100%; margin-top: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.contest-board { margin-top: 18px; }
.contest-board .grid2 { margin-top: 12px; }
.contest-board .card h3 { margin-bottom: 8px; }
.contest-board .list { padding: 0; }
.contest-board .list > div { padding: 10px 0; }
.q-bar { padding: 8px 0; } .q-bar p { margin: 0 0 6px; font-size: 14px; }

/* ---------- Booking: offentlig side og standskærm ---------- */
.pb-top { padding: 18px 20px 0; max-width: 640px; margin: 0 auto; }
.pb-top img { height: 26px; }
.pb-main { max-width: 640px; margin: 0 auto; padding: 18px 20px 60px; }
body.screen { background: var(--hero); color: var(--hero-ink); }
body.screen .pb-top { max-width: none; padding: 32px 48px 0; }
body.screen .pb-main { max-width: none; padding: 24px 48px; }
.pb-screen { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 48px; align-items: center; min-height: 78vh; }
@media (orientation: portrait) { .pb-screen { grid-template-columns: 1fr; } }
.pb-screen h1 { color: var(--hero-ink); font-size: clamp(36px, 5vw, 64px); }
.pb-screen .eyebrow { color: var(--hero-muted); font-size: 18px; }
.pb-next { margin: 28px 0; }
.pb-next span, .pb-next small { display: block; color: var(--hero-muted); font-size: 22px; }
.pb-next b { display: block; font-size: clamp(80px, 12vw, 160px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pb-call { font-size: clamp(40px, 6vw, 80px) !important; letter-spacing: -0.02em !important; line-height: 1.05 !important; margin-top: 8px; }
.pb-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pb-list div { background: rgb(255 255 255 / 0.08); border-radius: 16px; padding: 14px 16px; }
.pb-list b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.pb-list span { color: var(--hero-muted); font-size: 15px; }
.pb-list .full { opacity: 0.45; }
.pb-side { display: grid; gap: 20px; justify-items: center; }
.pb-side > img { max-height: 34vh; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.45)); }
.pb-prize { margin: 24px 0 8px; }
.pb-prize span { display: block; color: var(--hero-muted); font-size: 20px; }
.pb-prize b { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; }
.pb-qrs { display: grid; gap: 16px; }
@media (orientation: landscape) { .pb-qrs:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.pb-qr { background: #fff; border-radius: 28px; padding: 24px; text-align: center; color: #1e1e1e; }
.pb-qr svg { width: 100%; height: auto; max-width: 360px; }
.pb-qr p { font-size: 22px; margin: 8px 0 0; font-variation-settings: "wght" 600; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 14px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-add { margin-top: 14px; }
.day-head h3 { display: block; }
.day-head h3 .muted { font-size: 13px; font-weight: 400; margin-left: 4px; }
.day .focus { margin-bottom: 2px; }
.day-meta { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.day.friday { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.day.friday .focus { margin: 2px 0 0; }
.day.friday h3 { display: block; }
.day.friday h3 .muted { font-size: 13px; font-weight: 400; margin-left: 4px; }
.day.friday .chev { font-size: 22px; color: var(--muted); }
.move-wrap { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); cursor: pointer; }
.move-wrap:hover, .move-wrap:focus-within { background: var(--soft); color: var(--ink); }
.move-wrap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.move-wrap select.move { position: absolute; inset: 0; width: 100%; max-width: none; min-height: 0; opacity: 0; cursor: pointer; }

/* ---------- Ugefeltet: kort over ugens ruter, nøgletal og hvorfor butikkerne er med ---------- */

.week-hero { display: grid; gap: 8px 32px; padding: 28px; }
@media (min-width: 861px) { .week-hero { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: center; } }
.week-hero h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; margin: 6px 0 8px; }
.wh-lede { color: var(--ai-muted); margin: 0; max-width: 46ch; }
.week-hero .btn.primary { margin-top: 20px; min-width: 220px; }
.wh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-top: 18px; }
.wh-stats div { background: rgb(255 255 255 / 0.07); border-radius: 14px; padding: 12px 14px; animation: rise 0.4s var(--ease-out) both; }
.wh-stats div:nth-child(2) { animation-delay: 80ms; } .wh-stats div:nth-child(3) { animation-delay: 160ms; }
.wh-stats b { display: block; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ai-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wh-stats span { display: block; font-size: 12px; line-height: 1.3; color: var(--ai-muted); margin-top: 6px; }
.wh-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.wh-kinds span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 6px 6px 12px; border-radius: 99px; background: rgb(255 255 255 / 0.1); color: var(--ai-ink); animation: pop 0.35s var(--ease-out) both; }
.wh-kinds b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: rgb(255 255 255 / 0.16); font-size: 12px; }
.wh-why { margin-top: 14px; }
.wh-why summary { color: var(--ai-muted); font-size: 14px; }
.wh-why .ai-text { margin-top: 8px; font-size: 15px; color: var(--ai-muted); }
.week-hero .btn.ghost { margin-top: 18px; }
.route-map { display: block; width: 100%; height: auto; max-height: 320px; overflow: visible; }
@media (max-width: 860px) { .route-map { order: -1; max-height: 230px; margin: -6px 0 6px; } }
.rm-city { fill: rgb(255 255 255 / 0.2); }
.rm-signal { fill: rgb(255 255 255 / 0.85); transform-box: fill-box; transform-origin: center; animation: pop 0.45s var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
.rm-day path { fill: none; stroke: rgb(255 255 255 / 0.8); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: draw 0.8s var(--ease-out) both; animation-delay: calc(var(--i) * 0.32s + 0.25s); }
.rm-day circle { fill: #fff; stroke: var(--ai-bg); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pop 0.35s var(--ease-out) both; animation-delay: calc(var(--i) * 0.32s + 0.15s); }
.rm-day text { fill: var(--ai-ink); font-size: 11px; font-variation-settings: "wght" 600; paint-order: stroke; stroke: var(--ai-bg); stroke-width: 3px; stroke-linejoin: round; animation: fade 0.3s ease both; animation-delay: calc(var(--i) * 0.32s + 0.3s); }
.rm-day.today path { stroke: #fff; stroke-width: 3; }
.rm-day:hover path, .rm-day:focus-visible path { stroke: #fff; stroke-width: 3.5; }
.rm-day:focus-visible { outline: none; }
.week-hero.still * { animation: none !important; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.sheet-search { display: block; width: 100%; min-height: 48px; padding: 0 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.add-list { padding: 0; max-height: 52dvh; overflow-y: auto; }
.add-row { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.add-row[hidden] { display: none; }
.add-row b { display: block; font-size: 15px; }
.add-row small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Dagens brief ---------- */

.day-link { display: block; text-align: center; margin-top: 10px; font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.day-chips { margin: 0 0 16px; }
.day-chips a { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); min-height: 40px; padding: 0 14px; border-radius: 99px; font-size: 14px; display: inline-flex; align-items: center; }
.day-chips a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day-brief { margin-top: 14px; }
.brief-card { padding: 20px; animation: rise 0.35s var(--ease-out) both; }
.brief-top { display: flex; align-items: center; gap: 14px; }
.brief-top .grow { min-width: 0; }
.brief-top h3 { font-size: 20px; }
.brief-reason { font-size: 16px; margin: 14px 0 10px; }
.mini-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.mini-facts b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.brief-news { margin: 12px 0 0; font-size: 14px; color: var(--good); }
.brief-card .agreement-quote { margin: 12px 0 0; }
.brief-card .ask { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.brief-card .ask h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.brief-card .ask p { margin: 0; font-size: 17px; line-height: 1.35; }
.brief-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brief-actions .btn { padding: 0 8px; font-size: 14px; }
.brief-actions .btn.visited { background: var(--good-tint); color: var(--good); box-shadow: none; cursor: default; }
.brief-top h3 a:hover { color: var(--red); }

/* Produktvalg og quizredigering i messens eksisterende guide. */
.catalog-toolbar { display:grid; grid-template-columns:minmax(180px,1fr) minmax(200px,2fr); gap:14px; margin-top:22px; }
.catalog-toolbar label { display:grid; gap:6px; color:var(--ink-2); font-size:14px; }
.catalog-toolbar input,.catalog-toolbar select { width:100%; min-width:0; border:1px solid var(--line); background:var(--card); border-radius:12px; padding:13px; color:var(--ink); font:inherit; }
.catalog-selection { background:var(--soft); border-radius:12px; padding:12px 16px; }
.wiz-product[hidden] { display:none; }
.wiz-product-card .muted { font-size:12px; padding:0 4px; }
.wiz-product input:checked + .wiz-product-card { border-color:var(--ink-2); box-shadow:inset 0 0 0 1px var(--ink-2); }
.wiz-mode input:checked + .wiz-mode-card { border-color:var(--ink-2); background:var(--soft); }
.wiz-mode input:checked + .wiz-mode-card svg { stroke:var(--ink-2); }
.wiz-mode input:checked + .wiz-mode-card::after,.wiz-steps li.on span { background:var(--ink); }
.quiz-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-top:28px; }
.quiz-heading .tag { white-space:nowrap; }
.wiz-q { min-width:0; border:1px solid var(--line); border-radius:18px; }
.wiz-q legend { font-size:16px; padding:0 7px; font-variation-settings:"wght" 600; }
.quiz-q-head,.quiz-q-tools { display:flex; align-items:center; gap:6px; }
.quiz-q-head { justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; }
.quiz-q-tools .btn { min-height:44px; padding:8px 12px; }
.wiz-answer .quiz-correct { display:flex; align-items:center; gap:6px; flex:none; margin:0!important; }
.wiz-answer input:not([type=radio]) { flex:1; min-width:0; width:100%; }
.quiz-bank { margin-top:22px; padding:18px; border:1px solid var(--line); border-radius:16px; }
.quiz-bank summary { cursor:pointer; font-variation-settings:"wght" 600; }
.quiz-suggestion { display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); padding:16px 0; }
.quiz-suggestion .btn { flex-shrink:0; }
.quiz-suggestion p { margin-bottom:0; }
@media(max-width:600px) { .catalog-toolbar { grid-template-columns:1fr; } .wiz-products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .quiz-heading { flex-direction:column; } .quiz-suggestion { align-items:flex-start; flex-direction:column; gap:10px; } }
