/* =====================================================================
   Learnly – designsystemet «Nordlys»
   Lag 1 (denne del): struktur, layout og komponenter.
   Lag 2 (sidst i filen): lys, glas, dybde og 3D-overflader.
   Se README → «Designsystem».
   ===================================================================== */
:root {
  /* flader */
  --bg: #f3f6fb;
  --bg-2: #e9eff8;
  --bg-3: #dde6f3;
  --surface: #ffffff;
  /* tekst */
  --ink: #0e1b36;
  --ink-2: #4b5a78;
  --ink-3: #8592ab;
  /* linjer */
  --line: #e1e7f1;
  --line-2: #eef2f8;
  /* brand */
  --navy: #0f1f45;
  --navy-2: #1a2d5e;
  --navy-3: #2a4280;
  --accent: #3b5bdb;
  --accent-2: #2f4cc4;
  --accent-soft: #e9eeff;
  --accent-ink: #263fa8;
  /* status */
  --ok: #18915a;
  --ok-soft: #e2f5eb;
  --bad: #db4148;
  --bad-soft: #fdebec;
  --warn: #d08000;
  --warn-soft: #fff3dc;
  --gold: #f2b20c;
  --gold-soft: #fff5d8;
  --flame: #f0641e;
  --flame-soft: #ffeee4;
  /* fagets farve – sættes pr. side via style="--s:…" */
  --s: #3b5bdb;
  --s-soft: #e9eeff;
  --s-ink: color-mix(in srgb, var(--s) 78%, #000);
  /* form */
  --r-xl: 24px; --r-lg: 18px; --r: 14px; --r-sm: 10px; --r-xs: 7px;
  --sh-1: 0 1px 2px rgb(14 27 54 / .06);
  --sh-2: 0 1px 2px rgb(14 27 54 / .05), 0 10px 28px -14px rgb(14 27 54 / .2);
  --sh-3: 0 2px 4px rgb(14 27 54 / .05), 0 24px 48px -20px rgb(14 27 54 / .32);
  --ring: 0 0 0 4px rgb(59 91 219 / .18);
  /* typografi */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  /* afstand (4-pkt) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  /* bevægelse */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --t-fast: .16s; --t: .3s;
  --side-w: 256px;
  interpolate-size: allow-keywords;
}
/* --s-ink skal regnes ud der, hvor fagfarven sættes */
[style*="--s:"], .wh-panel { --s-ink: color-mix(in srgb, var(--s) 78%, #000); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .45em; letter-spacing: -.022em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
h3 { font-size: 1.08rem; letter-spacing: -.012em; font-weight: 750; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: #cfdcff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
strong, b { font-weight: 750; }
hr { border: 0; border-top: 1px solid var(--line); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.stack > * + * { margin-top: 16px; }
.mt { margin-top: 28px; }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
kbd { font: 600 .8rem var(--mono); background: #fff; border-radius: 6px; padding: 1px 6px; box-shadow: inset 0 -2px 0 var(--line), inset 0 0 0 1px var(--line); }

/* ---------- opstart og indlæsning ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--ink-2); font-weight: 600; background: var(--bg); }
/* Learnly-mærket: en flise i navy → blå med et violet nordlysskær øverst til højre; symbolet er en SVG (brand.js) */
.boot-logo, .logo-mark { width: 44px; height: 44px; flex: none; border-radius: 30%; display: grid; place-items: center; position: relative;
  background: radial-gradient(110% 90% at 85% 0%, rgb(120 110 255 / .6), transparent 60%), linear-gradient(160deg, #16245e, #0a1233);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 1px rgb(255 255 255 / .08), 0 10px 22px -10px rgb(20 40 140 / .8); overflow: hidden; }
.boot-logo svg, .logo-mark svg { width: 100%; height: 100%; display: block; }
.boot-logo { width: 64px; height: 64px; animation: breathe 1.4s ease-in-out infinite; }
.wm { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
.wm b { font-weight: inherit; color: #3358ff; background: linear-gradient(90deg, #3358ff, #8f7bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes breathe { 50% { transform: scale(.92); opacity: .7; } }
.boot .bar { width: 140px; height: 4px; border-radius: 99px; background: var(--bg-3); overflow: hidden; position: relative; }
.boot .bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: var(--accent); animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--line-2), #f8fafd, var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- app-skal ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.sidenav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 30px; padding: 26px 18px 20px; background: var(--navy); color: #c9d3ea; z-index: 40; overflow-y: auto; scrollbar-width: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; padding: 0 8px; }
.brand:hover { color: inherit; }
.brand .logo-mark { width: 38px; height: 38px; }
.sidenav .brand { color: #fff; }
.sidenav .brand .wm b, .auth-hero .brand .wm b { background-image: linear-gradient(90deg, #9db8ff, #c3b6ff); }
.navlinks { display: grid; gap: 4px; }
.navlinks a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; color: #b7c3de; font-weight: 600; font-size: .97rem; transition: background var(--t-fast), color var(--t-fast); }
.navlinks a svg { width: 21px; height: 21px; flex: none; }
.navlinks a:hover { background: rgb(255 255 255 / .06); color: #fff; }
.navlinks a.active { color: #fff; background: var(--navy-3); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.navlinks .ns { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-card { border-radius: 20px; padding: 20px 18px; background: var(--navy-2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); text-align: center; display: grid; justify-items: center; gap: 6px; color: #c9d3ea; }
.side-card .sc-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgb(242 178 12 / .14); color: var(--gold); margin-bottom: 4px; }
.side-card .sc-ic svg { width: 24px; height: 24px; }
.side-card b { color: #fff; font-size: 1rem; }
.side-card p { margin: 0; font-size: .84rem; line-height: 1.45; }
.side-card .sc-bar { width: 100%; height: 6px; border-radius: 99px; background: rgb(255 255 255 / .1); overflow: hidden; margin: 8px 0 4px; }
.side-card .sc-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .8s var(--ease); }
.side-card .btn { margin-top: 6px; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 12px; padding: 18px 40px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .brand { display: none; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; flex: 0 1 520px; }
.search > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 50px; border: 0; border-radius: 999px; background: var(--bg-2); padding: 0 20px 0 50px; font-size: .95rem; color: var(--ink); transition: background var(--t-fast), box-shadow var(--t-fast); }
.search input::placeholder { color: var(--ink-3); }
.search input:hover { background: var(--bg-3); }
.search input:focus { outline: none; background: #fff; box-shadow: var(--sh-2), var(--ring); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3), 0 0 0 1px var(--line); padding: 8px; max-height: min(460px, 70vh); overflow-y: auto; animation: dropIn .18s var(--ease); z-index: 60; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.search-results .sr-group { font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px 4px; }
.search-results a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; color: var(--ink); }
.search-results a:hover, .search-results a.on { background: var(--bg); }
.search-results a .sr-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s-soft); color: var(--s); }
.search-results a .sr-ic svg { width: 18px; height: 18px; }
.search-results a b { display: block; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results a small { color: var(--ink-3); font-size: .78rem; }
.search-results .sr-empty { padding: 18px 12px; color: var(--ink-2); font-size: .9rem; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); font-weight: 700; font-size: .86rem; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip svg { width: 19px; height: 19px; flex: none; }
.chip.flame svg { color: var(--flame); fill: var(--flame); }
.chip.star svg { color: var(--gold); fill: var(--gold); }
.chip.level { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 750; flex: none; font-size: 1.05rem; transition: transform var(--t-fast) var(--spring); }
a:hover > .avatar { transform: scale(1.05); }
.icon-round { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bg-2); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-round svg { width: 20px; height: 20px; }
.mbar-search { display: none; }
.content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 40px 80px; min-width: 0; animation: pageIn .4s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
.bottom-nav { display: none; }
body.immersive .sidenav, body.immersive .topbar, body.immersive .bottom-nav { display: none; }
body.immersive .shell { display: block; }
body.immersive .content { max-width: none; padding: 0; animation: none; }

/* ---------- knapper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .93rem; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), opacity var(--t-fast); min-height: 46px; text-align: center; white-space: nowrap; position: relative; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--bg-3), var(--sh-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 0 0 1.5px var(--bg-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgb(15 31 69 / .7); }
.btn-primary:hover { background: var(--navy-2); color: #fff; box-shadow: 0 12px 22px -10px rgb(15 31 69 / .7); }
.btn-accent, .btn-blue { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px rgb(59 91 219 / .8); }
.btn-accent:hover, .btn-blue:hover { background: var(--accent-2); color: #fff; box-shadow: 0 12px 22px -10px rgb(59 91 219 / .8); }
.btn-subject { background: var(--s); color: #fff; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--s) 80%, transparent); }
.btn-subject:hover { background: var(--s-ink); color: #fff; box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--s) 80%, transparent); }
.btn-primary:active, .btn-accent:active, .btn-blue:active, .btn-subject:active { box-shadow: none; }
.btn-ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); box-shadow: none; transform: none; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .5); }
.btn-white:hover { background: #f4f7ff; color: var(--navy); }
.btn-danger { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.btn-danger:hover { background: #fbdcdf; color: var(--bad); box-shadow: none; }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: .84rem; }
.btn-lg { padding: 14px 26px; min-height: 54px; font-size: 1rem; }
.btn-xl { padding: 18px 32px; min-height: 62px; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn.pulse { animation: pop .5s var(--spring); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); flex: none; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.mini-link { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.go-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--s); color: #fff; flex: none; transition: transform var(--t) var(--spring); box-shadow: 0 6px 14px -8px var(--s); }
.go-round svg { width: 18px; height: 18px; }

/* ---------- etiketter, faner ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.green { background: var(--ok-soft); color: #0f7144; }
.pill.red { background: var(--bad-soft); color: #b5262d; }
.pill.amber { background: var(--warn-soft); color: #93590a; }
.pill.gray { background: var(--line-2); color: var(--ink-2); }
.pill.subject { background: var(--s-soft); color: var(--s-ink); }
.tiny-pill { font-size: .68rem; padding: 2px 8px; margin-left: 4px; vertical-align: 1px; }
.tabs, .seg-pick, .au-seg { display: inline-flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.tabs button, .seg-pick button, .au-seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--ink-2); cursor: pointer; font-size: .87rem; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.tabs button:hover, .seg-pick button:hover { color: var(--ink); }
.tabs button.on, .seg-pick button.on, .au-seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.seg-pick button b { font-size: 1.05rem; }
.toggle { border: 0; background: transparent; padding: 7px 11px; border-radius: 999px; font-weight: 700; font-size: .8rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background var(--t-fast), color var(--t-fast); }
.toggle:hover { background: var(--bg-2); color: var(--ink); }
.toggle.on { color: var(--accent-ink); background: var(--accent-soft); }
.toggle svg { width: 17px; height: 17px; }

/* ---------- formularer ---------- */
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 7px; color: var(--ink); }
.input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); min-height: 50px; color: var(--ink); }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--bg-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5a78' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-error, .form-ok { padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; margin-bottom: 16px; font-size: .9rem; animation: rise .3s var(--ease); }
.form-error { background: var(--bad-soft); color: #b5262d; }
.form-ok { background: var(--ok-soft); color: #0f7144; }

/* ---------- fremskridt ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 1s var(--ease); }
.progress.green > span { background: var(--ok); }
.progress.gold > span { background: var(--gold); }
.progress.subject > span { background: var(--s); }
.progress.thin { height: 5px; }
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { transition: stroke-dashoffset 1.2s var(--ease); }
.ring .ring-label { position: absolute; text-align: center; line-height: 1.1; }
.ring .ring-label strong { display: block; font-size: 1.5rem; letter-spacing: -.03em; font-weight: 800; }
.ring .ring-label small { color: var(--ink-2); font-size: .74rem; font-weight: 600; }
.diff { display: inline-flex; gap: 2px; align-items: flex-end; margin-right: 2px; }
.diff i { width: 4px; border-radius: 2px; background: var(--line); display: inline-block; }
.diff i:nth-child(1) { height: 7px; } .diff i:nth-child(2) { height: 10px; } .diff i:nth-child(3) { height: 13px; }
.diff i.on { background: var(--s); }

/* ---------- flader og overskrifter ---------- */
.card, .panel { background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 26px; }
.card.flat { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.card h2, .panel h2 { font-size: 1.15rem; }
.card-link { display: block; color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--sh-3); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 44px 0 18px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); display: flex; align-items: center; gap: 12px; }
.section-title h2 svg { width: 28px; height: 28px; color: var(--navy); }
.section-title .see-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.section-title .see-all svg { width: 17px; height: 17px; transition: transform var(--t) var(--spring); }
.section-title .see-all:hover svg { transform: translateX(3px); }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 24px; margin: 6px 0 30px; }
.page-head h1 { margin: 0 0 6px; }
.page-head p { max-width: 64ch; }
.crumbs { font-size: .84rem; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--ink-3); align-items: center; font-weight: 600; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); display: grid; justify-items: center; }
.empty .e-icon { font-size: 1.9rem; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--accent-soft); margin-bottom: 14px; }
.empty h3 { margin-bottom: 4px; }
.empty p { max-width: 44ch; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-2); font-size: .92rem; vertical-align: middle; }
table.list th { color: var(--ink-3); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
table.list tr:last-child td { border-bottom: 0; }
.stat { display: flex; gap: 14px; align-items: center; }
.stat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; flex: none; background: var(--bg-2); }
.stat strong { display: block; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.03em; }
.stat span { color: var(--ink-2); font-size: .84rem; }

/* ---------- fagikoner ---------- */
.s-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--s); color: #fff; flex: none; }
.s-icon svg { width: 26px; height: 26px; }
.s-icon.sm { width: 42px; height: 42px; border-radius: 12px; }
.s-icon.sm svg { width: 21px; height: 21px; }
.s-icon.soft, .s-tile { background: var(--s-soft); color: var(--s); }
.s-tile { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.s-tile svg { width: 30px; height: 30px; }
.subject-icon { width: 44px; height: 44px; border-radius: 13px !important; display: grid; place-items: center; flex: none; color: #fff; }
.subject-icon svg { width: 55%; height: 55%; }

/* ---------- login og registrering ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }
.auth-hero { margin: 16px 0 16px 16px; border-radius: 28px; background: var(--navy); color: #b9c5e2; padding: 44px clamp(28px, 4.5vw, 60px); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; position: relative; overflow: hidden; isolation: isolate; }
.auth-hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -220px; border-radius: 50%; background: var(--navy-2); z-index: -1; }
.auth-hero .brand { color: #fff; padding: 0; }
.auth-hero .logo-mark { box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 0 0 1px rgb(255 255 255 / .16), 0 10px 26px -8px rgb(143 123 255 / .8); }
.auth-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); color: #fff; max-width: 14ch; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 18px; }
.auth-hero h1 em { font-style: normal; color: #9fb7ff; }
.auth-hero p { max-width: 42ch; font-size: 1.06rem; }
.auth-facts { display: flex; gap: 12px; flex-wrap: wrap; }
.auth-facts div { padding: 14px 18px; border-radius: 16px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); min-width: 120px; }
.auth-facts b { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -.03em; line-height: 1.15; }
.auth-facts span { font-size: .8rem; }
.auth-tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-tiles div { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.auth-tiles svg { width: 22px; height: 22px; }
.auth-panel { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; animation: rise .5s var(--ease); }
.auth-card h1 { font-size: clamp(1.9rem, 3vw, 2.3rem); margin-bottom: 8px; }
.auth-card > p.muted { margin-bottom: 26px; }
.grade-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.grade-picker label { position: relative; }
.grade-picker input { position: absolute; opacity: 0; inset: 0; }
.grade-picker span { display: block; text-align: center; padding: 11px 6px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.grade-picker span:hover { box-shadow: inset 0 0 0 1.5px var(--bg-3); }
.grade-picker input:checked + span { background: var(--navy); color: #fff; box-shadow: 0 8px 16px -10px rgb(15 31 69 / .8); }
.grade-picker input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- hjem ---------- */
.dash-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; align-items: stretch; }
.hero { position: relative; border-radius: 28px; background: var(--navy); color: #c7d2ec; padding: clamp(28px, 4vw, 52px); overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 300px; }
.hero::before { content: ''; position: absolute; width: 460px; height: 460px; right: -110px; top: -70px; border-radius: 50%; background: var(--navy-2); z-index: -1; }
.hero::after { content: ''; position: absolute; width: 300px; height: 300px; right: -60px; bottom: -150px; border-radius: 50%; background: var(--navy-3); opacity: .55; z-index: -1; }
.hero .eyebrow { color: #9fb0d6; margin-bottom: 12px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0 0 12px; letter-spacing: -.035em; }
.hero p { font-size: 1.08rem; margin: 0 0 26px; max-width: 44ch; }
.hero p b { color: #fff; }
.hero .row .btn-ghost { color: #c7d2ec; }
.hero .row .btn-ghost:hover { background: rgb(255 255 255 / .08); color: #fff; }
.hero-art { width: clamp(160px, 18vw, 240px); height: auto; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .35)); animation: drift 7s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-8px); } }
.hero .hero-sub { display: flex; align-items: center; gap: 10px; font-size: .9rem; margin-top: 18px; }
.hero .hero-sub .progress { width: 160px; background: rgb(255 255 255 / .14); }
.hero .hero-sub .progress > span { background: #9fb7ff; }
.prog-card { background: #fff; border-radius: 28px; box-shadow: var(--sh-2); padding: 26px 28px; display: grid; gap: 18px; align-content: start; }
.prog-card h2 { margin: 0; font-size: 1.3rem; }
.prog-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.prog-stats { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); display: grid; gap: 14px; }
.prog-stats li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.prog-stats .pi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.prog-stats .pi svg { width: 21px; height: 21px; }
.prog-stats .pi.flame { background: var(--flame-soft); color: var(--flame); } .prog-stats .pi.flame svg { fill: var(--flame); }
.prog-stats .pi.star { background: var(--gold-soft); color: var(--gold); } .prog-stats .pi.star svg { fill: var(--gold); }
.prog-stats .pi.cup { background: var(--accent-soft); color: var(--accent); }
.prog-stats b { display: block; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.prog-stats span { font-size: .8rem; color: var(--ink-2); }
.goal-line { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.goal-line .row { justify-content: space-between; font-size: .85rem; }
.goal-line b { font-variant-numeric: tabular-nums; }
.scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scard { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px; border-radius: 22px; background: color-mix(in srgb, var(--s-soft) 72%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s) 12%, transparent); color: var(--ink); transition: transform var(--t) var(--ease), box-shadow var(--t); animation: rise .5s var(--ease) backwards; }
.scard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s) 22%, transparent), 0 18px 32px -20px color-mix(in srgb, var(--s) 70%, transparent); }
.scard .s-tile { background: color-mix(in srgb, var(--s) 14%, #fff); }
.scard h3 { margin: 4px 0 2px; font-size: 1.12rem; }
.scard .sc-meta { font-size: .86rem; color: var(--ink-2); }
.scard .sc-foot { grid-column: 2; display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.scard .sc-foot .progress { flex: 1; height: 6px; background: color-mix(in srgb, var(--s) 12%, #fff); }
.scard:hover .go-round { transform: translateX(3px); }
.scard .sc-desc { font-size: .86rem; color: var(--ink-2); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.milestone { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(160px, 320px) auto; gap: 22px; align-items: center; padding: 22px 26px; border-radius: 22px; background: color-mix(in srgb, var(--accent-soft) 70%, #fff); }
.milestone .mi { width: 52px; height: 52px; border-radius: 15px; background: #fff; color: var(--accent); display: grid; place-items: center; box-shadow: var(--sh-1); }
.milestone .mi svg { width: 24px; height: 24px; }
.milestone h3 { margin: 0 0 2px; font-size: 1.1rem; }
.milestone p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.milestone .progress { height: 10px; background: #fff; }
.also { display: grid; gap: 12px; }
.also a { display: grid; grid-template-columns: auto minmax(0, 1fr) 160px auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); color: var(--ink); transition: box-shadow var(--t), transform var(--t) var(--ease); }
.also a:hover { color: var(--ink); box-shadow: var(--sh-2); transform: translateY(-1px); }
.also h3 { margin: 0; font-size: 1rem; }
.also small { color: var(--ink-2); }
/* gammel flise (bruges på enkelte sider) */
.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.subject-tile { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 22px; background: color-mix(in srgb, var(--s-soft) 72%, #fff); color: inherit; transition: transform var(--t) var(--ease); min-height: 190px; }
.subject-tile:hover { transform: translateY(-3px); }
.subject-tile .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subject-tile .go, .exam-feature .go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--s); color: #fff; flex: none; }
.subject-tile .go svg, .exam-feature .go svg { width: 18px; height: 18px; }
.exam-banner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2); }
.exam-banner .art { display: flex; gap: 8px; }
.statline { display: flex; gap: 22px; flex-wrap: wrap; }
.resume { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; background: var(--navy); color: #fff; }
.resume .eyebrow { color: #9fb0d6; }
.resume h3 { color: #fff; margin: 3px 0 8px; }
.resume .progress { background: rgb(255 255 255 / .14); }
.resume .progress > span { background: #9fb7ff; }

/* ---------- fagoversigt ---------- */
.subj-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.subj-index .scard { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 22px 24px; }
.subj-index .scard .sc-foot { grid-column: 2; margin-top: 10px; }
.subj-index .scard .go-round { grid-row: 1; grid-column: 3; }

/* ---------- fagside ---------- */
.subj-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(24px, 3.6vw, 40px); border-radius: 28px; background: color-mix(in srgb, var(--s-soft) 70%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s) 12%, transparent); position: relative; overflow: hidden; isolation: isolate; }
.subj-head::after { content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -150px; border-radius: 50%; background: color-mix(in srgb, var(--s) 8%, transparent); z-index: -1; }
.subj-head .sh-top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.subj-head .s-tile { width: 72px; height: 72px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1); }
.subj-head .s-tile svg { width: 34px; height: 34px; }
.subj-head h1 { margin: 6px 0 0; font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -.035em; }
.subj-head p { color: var(--ink-2); font-size: 1.06rem; max-width: 60ch; margin: 0; }
.sh-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.sh-stats div { padding: 10px 16px; border-radius: 14px; background: rgb(255 255 255 / .75); }
.sh-stats b { display: block; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.sh-stats span { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.sh-ring { background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--sh-1); display: grid; justify-items: center; gap: 4px; }
.sh-ring small { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.subj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 28px; }
.subj-layout > aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.subj-layout .section-title:first-child { margin-top: 0; }
.subject-hero { position: relative; border-radius: 28px; background: color-mix(in srgb, var(--s-soft) 70%, #fff); padding: 36px; display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; overflow: hidden; }
.subject-hero .big-icon { width: 200px; height: 200px; justify-self: end; color: var(--s); }
.subject-hero .big-icon .disc { display: none; }
.subject-hero .big-icon svg { width: 100%; height: 100%; stroke-width: 1.2; }
.hero-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.5rem; line-height: 1.1; }
.hero-stats span { font-size: .8rem; color: var(--ink-2); }
.featured { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 24px 26px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.featured::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--s); }
.featured h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 6px 0; letter-spacing: -.025em; }
.featured .s-tile { width: 58px; height: 58px; }
.course-list { display: grid; gap: 12px; }
.course-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.course-row:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); }
.course-row h3 { margin: 0 0 4px; font-size: 1.08rem; }
.course-row .desc { color: var(--ink-2); font-size: .9rem; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-row .facts { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); align-items: center; font-weight: 550; }
.course-row .facts span { display: inline-flex; align-items: center; gap: 5px; }
.course-row .facts svg { width: 14px; height: 14px; }
.course-num { width: 54px; height: 54px; border-radius: 16px; background: var(--s-soft); color: var(--s-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.course-num.done { background: var(--ok); color: #fff; }
.course-num svg { width: 24px; height: 24px; }
.course-row .side { display: grid; justify-items: end; gap: 8px; min-width: 130px; }
.course-row .side .progress { width: 130px; }
.more-grades { margin-top: 18px; }
.more-grades summary { cursor: pointer; font-weight: 700; color: var(--ink-2); padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 10px; }
.more-grades summary::before { content: '+'; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-weight: 800; transition: transform var(--t) var(--ease); }
.more-grades[open] summary::before { transform: rotate(45deg); }
.more-grades summary::-webkit-details-marker { display: none; }
.more-grades .course-list { margin-top: 8px; }
.goals-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* ---------- forløbsside ---------- */
.course-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.course-top > aside { top: 100px !important; }
.course-head { padding: clamp(24px, 3.4vw, 36px); border-radius: 28px; background: color-mix(in srgb, var(--s-soft) 70%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s) 12%, transparent); position: relative; overflow: hidden; isolation: isolate; }
.course-head::after { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%; background: color-mix(in srgb, var(--s) 8%, transparent); z-index: -1; }
.course-head h1 { margin: 14px 0 10px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.03em; }
.course-head p { color: var(--ink-2); font-size: 1.04rem; max-width: 62ch; }
.course-hero { border-radius: 28px; padding: 34px; color: #fff; background: var(--navy) !important; position: relative; overflow: hidden; }
.course-hero h1 { color: #fff; }
.course-hero p { color: #c7d2ec !important; }
.path { position: relative; padding: 4px 0 10px; display: grid; gap: 8px; }
.path::before { content: ''; position: absolute; left: 37px; top: 36px; bottom: 36px; width: 2px; background: var(--line); }
.path-node { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px 14px 12px; border-radius: 18px; color: inherit; position: relative; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t), transform var(--t) var(--ease); }
a.path-node:hover { color: inherit; box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.path-node.locked { background: transparent; box-shadow: inset 0 0 0 1.5px dashed var(--line); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.path-node.locked h3 { color: var(--ink-3); }
.path-node .dot { justify-self: center; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); font-weight: 800; font-size: 1rem; position: relative; z-index: 1; transition: transform var(--t) var(--spring); }
a.path-node:hover .dot { transform: scale(1.06); }
.path-node .dot svg { width: 21px; height: 21px; }
.path-node.done .dot { background: var(--ok); color: #fff; }
.path-node.current { box-shadow: 0 0 0 2px var(--s), var(--sh-2); }
.path-node.current .dot { background: var(--s); color: #fff; animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s) 35%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--s) 0%, transparent); } }
.path-node h3 { margin: 0 0 2px; font-size: 1.02rem; }
.path-node .kind { font-size: .72rem; color: var(--ink-3); font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.path-node.final { box-shadow: 0 0 0 2px var(--navy), var(--sh-2); }
.path-node.final.locked { box-shadow: inset 0 0 0 1.5px var(--line); }
.path-node.final:not(.locked):not(.done) .dot { background: var(--navy); color: var(--gold); }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.objectives li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .94rem; }
.objectives li::before { content: ''; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318915a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mod-part { margin-bottom: 26px; }
.mod-part > .eyebrow { color: var(--s-ink); margin-bottom: 10px; }
.mod-block { background: #fff; border-radius: 20px; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); margin-bottom: 12px; overflow: hidden; transition: box-shadow var(--t); }
.mod-block:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); }
.mod-block[open] { box-shadow: var(--sh-2), 0 0 0 2px color-mix(in srgb, var(--s) 45%, transparent); }
.mod-block summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(120px, 170px) auto; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; }
.mod-block summary::-webkit-details-marker { display: none; }
.mod-block::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.mod-block[open]::details-content { block-size: auto; }
.mod-num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; background: var(--s-soft); color: var(--s-ink); }
.mod-num.done { background: var(--ok); color: #fff; }
.mod-num svg { width: 20px; height: 20px; }
.mod-title { display: grid; gap: 2px; min-width: 0; }
.mod-title b { font-size: 1.08rem; letter-spacing: -.015em; }
.mod-title .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-side { display: grid; gap: 6px; justify-items: end; }
.mod-side .progress { width: 100%; }
.mod-chev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); }
.mod-chev svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); color: var(--ink); }
.mod-block[open] .mod-chev svg { transform: rotate(90deg); }
.mod-path { padding: 6px 16px 16px; background: var(--bg); }
.mod-path .path-node { box-shadow: var(--sh-1); }
.mod-path.path::before { left: 53px; }
.mod-foot { padding: 0 16px 14px; }
.fr-book { display: block; color: inherit; }
.book-pick { display: grid; gap: 16px; }
.book-types { display: flex; flex-wrap: wrap; gap: 8px; }
.book-type { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 650; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: all var(--t-fast); }
.book-type:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--bg-3), var(--sh-1); }
.book-type b { min-width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); font-size: .86rem; padding: 0 4px; }
.book-type.on { background: var(--navy); color: #fff; box-shadow: none; }
.book-type.on b { background: rgb(255 255 255 / .15); color: #fff; }
.own { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- lektionen ---------- */
.lp { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--bg); overflow-x: clip; }
.lp-top { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(160px, 1.7fr) auto auto auto; align-items: center; gap: 6px 16px; padding: 14px 28px; width: 100%; max-width: 1200px; margin: 0 auto; }
.lp-title { min-width: 0; display: grid; line-height: 1.25; }
.lp-title small { font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-title b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-bar { height: 12px; border-radius: 99px; background: var(--bg-3); overflow: hidden; position: relative; }
.lp-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--s); transition: width .7s var(--ease); min-width: 12px; }
.lp-bar > span::after { content: ''; position: absolute; left: 6px; right: 6px; top: 3px; height: 3px; border-radius: 99px; background: rgb(255 255 255 / .35); }
.lp-count { font-weight: 700; font-size: .85rem; color: var(--ink-2); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.lp-top .icon-btn { background: #fff; box-shadow: var(--sh-1); }
.lp-phases { display: flex; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 28px 8px; overflow-x: auto; scrollbar-width: none; align-items: center; counter-reset: ph; }
.lp-phases span { counter-increment: ph; flex: 1 0 auto; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--ink-3); padding: 6px 10px 6px 0; white-space: nowrap; transition: color var(--t); }
.lp-phases span::before { content: counter(ph); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-3); flex: none; transition: background var(--t), color var(--t), box-shadow var(--t); }
.lp-phases span::after { content: ''; flex: 1; height: 2px; min-width: 12px; background: var(--line); border-radius: 1px; transition: background var(--t); }
.lp-phases span:last-child::after { display: none; }
.lp-phases span.past { color: var(--ink-2); }
.lp-phases span.past::before { content: '✓'; background: var(--ok); color: #fff; box-shadow: none; }
.lp-phases span.past::after { background: var(--ok); }
.lp-phases span.on { color: var(--ink); }
.lp-phases span.on::before { background: var(--s); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--s) 20%, transparent); }
.lp-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 28px 32px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.lp-step { animation: stepIn .45s var(--ease); min-width: 0; }
.lp-step.out { animation: stepOut .22s ease-in forwards; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } }
@keyframes stepOut { to { opacity: 0; transform: translateX(-20px); } }
.lp-foot { position: sticky; bottom: 0; background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -24px rgb(14 27 54 / .4); z-index: 20; transition: background var(--t); }
.lp-foot-in { max-width: 1200px; margin: 0 auto; padding: 16px 28px calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; min-height: 88px; }
.lp-foot .spacer { flex: 1; }
.lp-foot.ok { background: var(--ok-soft); animation: footIn .35s var(--ease); }
.lp-foot.bad { background: var(--bad-soft); animation: footIn .35s var(--ease); }
.lp-foot.soft { background: var(--warn-soft); animation: footIn .35s var(--ease); }
@keyframes footIn { from { transform: translateY(14px); opacity: .5; } }
.lp-foot .btn-lg { min-width: 190px; }
.lp-foot.ok .btn-subject, .lp-foot.ok .btn-primary { background: var(--ok); }
.lp-foot.bad .btn-subject, .lp-foot.bad .btn-primary { background: var(--bad); }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); flex-wrap: wrap; row-gap: 6px; }
.lp-kicker .tag { padding: 5px 11px; border-radius: 999px; background: var(--s-soft); color: var(--s-ink); }
.tag.tag-check { background: var(--navy) !important; color: #fff !important; }
.stage { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: stretch; margin-top: 6px; }
.presenter { display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 16px; align-self: start; }
.presenter .who { font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.presenter .who i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.presenter.talking .who i { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.teacher-wrap { width: 184px; height: 184px; border-radius: 50%; background: var(--s-soft); overflow: hidden; position: relative; box-shadow: inset 0 0 0 6px #fff, var(--sh-2); }
.teacher-wrap svg { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 172px; }
.board { background: #fff; border-radius: 28px; box-shadow: var(--sh-2); padding: 30px 34px; min-height: 380px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; min-width: 0; }
.board h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 2px 0 0; letter-spacing: -.03em; }
.visual { flex: 1; min-height: 210px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; position: relative; }
.caption { min-height: 64px; padding: 14px 20px; border-radius: 16px; background: var(--bg); font-size: 1.08rem; line-height: 1.5; display: flex; align-items: center; gap: 12px; }
.caption .cc-text { flex: 1; }
.caption .cc-text mark { background: var(--accent-soft); color: var(--ink); font-weight: 650; border-radius: 4px; }
.caption.off .cc-text { display: none; }
.caption.off::after { content: 'Undertekster er slået fra'; color: var(--ink-3); font-size: .85rem; }
.media-ctrls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.media-ctrls .play { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform var(--t-fast) var(--spring); flex: none; box-shadow: 0 8px 16px -8px rgb(15 31 69 / .7); }
.media-ctrls .play:hover { transform: scale(1.06); }
.media-ctrls .play svg { width: 20px; height: 20px; }
.media-ctrls .seg { display: flex; gap: 4px; flex: 1; min-width: 90px; }
.media-ctrls .seg i { flex: 1; height: 6px; border-radius: 99px; background: var(--line-2); transition: background var(--t); }
.media-ctrls .seg i.on { background: var(--s); }
.fulltext { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); padding: 16px 20px; border-left: 3px solid var(--s); background: var(--bg); border-radius: 0 14px 14px 0; animation: rise .4s var(--ease); line-height: 1.6; }
.voice-note { font-size: .8rem; color: var(--warn); }
.v-wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; gap: 14px; }
.v-svg { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.v-svg text { font-family: var(--font); }
.chipcloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 620px; }
.chipcloud span { padding: 10px 16px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; transition: all .45s var(--spring); animation: pop .6s var(--spring) backwards; }
.chipcloud span.lit { background: var(--s); color: #fff; box-shadow: 0 10px 24px -12px var(--s); transform: scale(1.06); }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.points { width: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; align-items: center; }
.points-l { display: grid; justify-items: center; gap: 16px; }
.points-r { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: pt; }
.points-r li { counter-increment: pt; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .95rem; padding: 9px 12px; border-radius: 12px; opacity: .3; transform: translateX(8px); transition: all .5s var(--ease); }
.points-r li::before { content: counter(pt); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 800; font-size: .75rem; color: var(--ink-3); }
.points-r li.on { opacity: 1; transform: none; }
.points-r li.now { background: var(--s-soft); }
.points-r li.on::before { background: var(--s); color: #fff; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 640px; }
.cmp { padding: 20px; border-radius: var(--r-lg); display: grid; gap: 10px; opacity: .25; transform: translateY(10px); transition: all .6s var(--spring); font-size: 1.1rem; font-weight: 600; }
.cmp.on { opacity: 1; transform: none; }
.cmp span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.cmp span svg { width: 20px; height: 20px; stroke-width: 3; }
.cmp p { margin: 0; }
.cmp.bad { background: var(--bad-soft); } .cmp.bad span { background: var(--bad); } .cmp.bad p { text-decoration: line-through; text-decoration-color: rgb(219 65 72 / .5); }
.cmp.ok { background: var(--ok-soft); } .cmp.ok span { background: var(--ok); }
.quotes { display: grid; gap: 12px; width: 100%; max-width: 620px; }
.quotes blockquote { margin: 0; padding: 18px 22px 18px 26px; border-radius: 0 16px 16px 0; background: var(--s-soft); border-left: 4px solid var(--s); font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); position: relative; opacity: .3; transform: translateY(8px); transition: all .6s var(--ease); }
.quotes blockquote.on { opacity: 1; transform: none; }
.bignum { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; color: var(--s); letter-spacing: -.04em; line-height: 1; animation: pop .7s var(--spring); }
.chalk { width: 100%; max-width: 560px; background: var(--navy); color: #e6ecfa; border-radius: var(--r-lg); padding: 22px 26px; font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.22rem); display: grid; gap: 10px; box-shadow: inset 0 0 0 6px var(--navy-2); }
.chalk div { opacity: .2; transform: translateY(6px); transition: all .5s var(--ease); }
.chalk div.on { opacity: 1; transform: none; }
.chalk div.on b { color: #ffd166; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 680px; }
.flow .node { padding: 12px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 650; text-align: center; max-width: 180px; font-size: .92rem; opacity: .35; transition: all .5s var(--ease); }
.flow .node.on { opacity: 1; background: var(--s-soft); box-shadow: inset 0 0 0 1.5px var(--s); transform: translateY(-2px); }
.flow .arr { color: var(--s); opacity: .35; transition: opacity .5s; }
.flow .arr.on { opacity: 1; }
.flow .arr svg { width: 22px; height: 22px; }
.tl { width: 100%; max-width: 640px; position: relative; padding: 30px 0 10px; min-height: 140px; }
.tl-line { height: 4px; border-radius: 99px; background: var(--line); position: relative; }
.tl-line span { position: absolute; inset: 0 auto 0 0; background: var(--s); border-radius: inherit; transition: width .9s var(--ease); }
.tl-ev { position: absolute; top: 18px; transform: translateX(-50%); text-align: center; width: 120px; opacity: .3; transition: opacity .5s; }
.tl-ev.on { opacity: 1; }
.tl-ev.cur.on i { background: var(--s); box-shadow: 0 0 0 6px var(--s-soft); }
.tl-ev.cur.on b { color: var(--s); }
.tl-ev i { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--s); margin: 4px auto 6px; }
.tl-ev b { font-size: 1.1rem; display: block; }
.tl-ev small { display: block; font-size: .74rem; color: var(--ink-2); line-height: 1.3; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; max-width: 640px; }
.cards3 > div { padding: 16px; border-radius: var(--r); background: var(--bg); text-align: center; opacity: .55; transition: all .5s var(--ease); }
.cards3 > div.on { opacity: 1; background: var(--s-soft); transform: translateY(-3px); }
.cards3 b { display: block; font-size: 1.05rem; margin-top: 6px; }
.cards3 small { color: var(--ink-2); font-size: .8rem; }
.cards3 .em { font-size: 1.8rem; }
.say-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; width: 100%; max-width: 620px; }
.say-card { border: 0; padding: 14px; border-radius: var(--r); background: var(--bg); text-align: left; cursor: pointer; transition: all var(--t) var(--spring); box-shadow: inset 0 0 0 1px var(--line); }
.say-card:hover { transform: translateY(-2px); background: var(--s-soft); }
.say-card b { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.say-card b svg { width: 16px; height: 16px; color: var(--s); }
.say-card small { color: var(--ink-2); }
.say-card.lit { background: var(--s-soft); box-shadow: inset 0 0 0 1.5px var(--s); }
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.demo-steps { display: grid; gap: 10px; counter-reset: st; }
.demo-steps div { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r); background: var(--bg); opacity: .3; transform: translateY(8px); transition: all .55s var(--ease); }
.demo-steps div::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line); }
.demo-steps div.on { opacity: 1; transform: none; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); }
.demo-steps div.on::before { background: var(--s); color: #fff; box-shadow: none; }
/* spørgsmål */
.ask { max-width: 780px; margin: 0 auto; width: 100%; padding-top: 8px; }
.ask h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 12px 0 24px; line-height: 1.25; letter-spacing: -.025em; }
.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; font-size: 1.03rem; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast); color: var(--ink); }
.choice:hover:not(:disabled) { box-shadow: var(--sh-2), inset 0 0 0 1.5px var(--bg-3); transform: translateY(-1px); }
.choice:active:not(:disabled) { transform: scale(.99); }
.choice .k { width: 32px; height: 32px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; font-size: .8rem; color: var(--ink-2); flex: none; font-weight: 800; transition: background var(--t-fast), color var(--t-fast); }
.choice.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.choice.sel .k { background: var(--accent); color: #fff; }
.choice.right { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); animation: correct .5s var(--spring); }
.choice.right .k { background: var(--ok); color: #fff; }
.choice.wrong { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad); animation: shake .45s; }
.choice.wrong .k { background: var(--bad); color: #fff; }
.choice:disabled { cursor: default; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes correct { 40% { transform: scale(1.02); } }
.tf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tf .choice { justify-content: center; padding: 26px; font-size: 1.15rem; }
.big-input { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.big-input input { font-size: 1.5rem; font-weight: 700; padding: 15px 20px; border-radius: 18px; border: 0; box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); width: 100%; max-width: 320px; background: #fff; color: var(--accent-ink); }
.big-input input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), var(--ring); }
.big-input .unit { font-weight: 700; color: var(--ink-2); font-size: 1.2rem; }
.big-input input.shake, #inp.shake { animation: shake .45s; box-shadow: inset 0 0 0 2px var(--bad); }
.listen-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 18px; border: 0; background: var(--s); color: #fff; cursor: pointer; font-weight: 700; margin-bottom: 18px; box-shadow: 0 10px 24px -12px var(--s); }
.listen-btn svg { width: 24px; height: 24px; }
.listen-btn.slow { background: #fff; color: var(--s); box-shadow: inset 0 0 0 2px var(--s-soft); }
.dnd { display: grid; gap: 10px; }
.dnd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: stretch; }
.dnd-row .term { padding: 14px 16px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 650; display: flex; align-items: center; }
.slot { min-height: 52px; border-radius: var(--r); border: 2px dashed var(--line); display: flex; align-items: center; padding: 6px; transition: all var(--t-fast); }
.slot.over, .slot.ready { border-color: var(--accent); background: var(--accent-soft); }
.slot.right { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.slot.wrong { border-style: solid; border-color: var(--bad); background: var(--bad-soft); animation: shake .4s; }
.bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 14px; border-radius: var(--r-lg); background: var(--bg-2); min-height: 66px; }
.tile { padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-weight: 600; cursor: grab; user-select: none; touch-action: none; transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast); font-size: .93rem; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tile.picked { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.tile.dragging { opacity: .4; }
.slot .tile { width: 100%; box-shadow: inset 0 0 0 1px var(--line); }
.ghost-tile { position: fixed; z-index: 200; pointer-events: none; transform: rotate(-3deg) scale(1.04); box-shadow: var(--sh-3); }
.fb-sheet { display: flex; gap: 16px; align-items: flex-start; flex: 1; animation: rise .35s var(--ease); min-width: 0; }
.fb-sheet .badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; animation: badgeIn .55s var(--spring); }
.fb-sheet .badge svg { width: 28px; height: 28px; stroke-width: 3; }
.fb-sheet .badge svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .18s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes badgeIn { from { transform: scale(.3); opacity: 0; } }
.fb-sheet.ok .badge { background: var(--ok); }
.fb-sheet.bad .badge { background: var(--bad); }
.fb-sheet.soft .badge { background: var(--warn); }
.fb-sheet h3 { margin: 0 0 4px; font-size: 1.2rem; }
.fb-sheet.ok h3 { color: #0f7144; }
.fb-sheet.bad h3 { color: #b5262d; }
.fb-sheet.soft h3 { color: #93590a; }
.fb-body { font-size: .95rem; color: var(--ink); max-height: 32vh; overflow: auto; }
.fb-body p { margin: 0 0 6px; }
.fb-extra { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: rgb(255 255 255 / .7); font-size: .9rem; }
.fb-extra b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin-bottom: 2px; }
.fb-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.concepts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.flip { perspective: 900px; height: 150px; cursor: pointer; border: 0; background: none; padding: 0; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip-f, .flip-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-lg); display: grid; place-items: center; padding: 16px; text-align: center; }
.flip-f { background: #fff; box-shadow: var(--sh-2); font-weight: 750; font-size: 1.15rem; }
.flip-b { background: var(--s); color: #fff; transform: rotateY(180deg); font-size: .92rem; }
.finish { max-width: 660px; margin: 24px auto; text-align: center; display: grid; justify-items: center; gap: 14px; }
.finish .trophy { width: 116px; height: 116px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; animation: trophy .9s var(--spring); }
@keyframes trophy { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); } }
.finish .trophy svg { width: 56px; height: 56px; color: var(--gold); }
.finish-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.finish-stats > div { padding: 18px 10px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); animation: rise .5s var(--ease) backwards; }
.finish-stats > div:nth-child(2) { animation-delay: .1s; } .finish-stats > div:nth-child(3) { animation-delay: .2s; }
.finish-stats b { display: block; font-size: 1.7rem; letter-spacing: -.03em; }
.finish-stats small { color: var(--ink-2); font-size: .78rem; }
.review { text-align: left; width: 100%; }
.teacher .mouth { transform-box: fill-box; transform-origin: center; transition: transform .12s; }
.teacher.talking .mouth { animation: talk .26s infinite alternate; }
@keyframes talk { from { transform: scaleY(.35); } to { transform: scaleY(1.2); } }
.teacher .eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.teacher .arm { transform-box: fill-box; transform-origin: 85% 90%; transition: transform .6s var(--ease); }
.teacher.talking .arm { animation: gesture 2.6s ease-in-out infinite; }
@keyframes gesture { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(-8deg); } }
.teacher.talking .head { transform-box: fill-box; transform-origin: 50% 90%; animation: nod 3s ease-in-out infinite; }
@keyframes nod { 50% { transform: rotate(2deg); } }
.substeps { display: grid; gap: 10px; }
.sub { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--bg); }
.sub .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.sub.done { align-items: center; animation: rise .3s var(--ease); }
.sub.done span:nth-child(2) { flex: 1; color: var(--ink-2); }
.sub.done b { font-size: 1.1rem; color: var(--ok); }
.sub.done .n { background: var(--ok); color: #fff; box-shadow: none; }
.sub.done.helped b { color: var(--warn); }
.sub.done.helped .n { background: var(--warn); }
.sub.cur { background: #fff; box-shadow: inset 0 0 0 2px var(--s); }
.sub.cur .n { background: var(--s); color: #fff; box-shadow: none; }
.sub-q { font-weight: 700; font-size: 1.12rem; margin: 2px 0 10px; }
#sfb .ex-feedback { margin-top: 10px; }

/* ---------- opgaver, prøver, resultater ---------- */
.course-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.course-card h3 { margin: 0; }
.course-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.course-card .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.ex { border-radius: 20px; padding: 22px 24px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); margin-bottom: 14px; transition: box-shadow var(--t), background var(--t); scroll-margin-top: 150px; }
.ex .q { font-weight: 650; margin-bottom: 14px; display: flex; gap: 12px; font-size: 1.03rem; }
.ex .q .qn { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.ex .type { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.options { display: grid; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option span { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: var(--r); cursor: pointer; transition: all var(--t-fast); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.option span:hover { box-shadow: inset 0 0 0 1.5px var(--bg-3), var(--sh-1); }
.option span::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c3cbdb; flex: none; transition: all var(--t-fast); background: #fff; }
.option input[type=checkbox] + span::before { border-radius: 6px; }
.option input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.option input:checked + span::before { border: 6px solid var(--accent); }
.option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.option.right span { box-shadow: inset 0 0 0 2px var(--ok); background: var(--ok-soft); }
.option.wrong span { box-shadow: inset 0 0 0 2px var(--bad); background: var(--bad-soft); }
.answer-row { display: flex; gap: 10px; align-items: center; max-width: 360px; }
.answer-row .unit { font-weight: 700; color: var(--ink-2); }
.match-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.match-row .left { font-weight: 600; padding: 10px 12px; background: var(--bg); border-radius: var(--r-sm); }
.ex.correct { box-shadow: inset 0 0 0 2px var(--ok); }
.ex.incorrect { box-shadow: inset 0 0 0 2px var(--bad); }
.ex.partial { box-shadow: inset 0 0 0 2px var(--warn); }
.ex-feedback { margin-top: 14px; padding: 12px 16px; border-radius: var(--r); font-size: .94rem; animation: rise .3s var(--ease); }
.ex-feedback.ok { background: var(--ok-soft); }
.ex-feedback.bad { background: var(--bad-soft); }
.ex-feedback.mid { background: var(--warn-soft); }
.mic-btn.recording { background: var(--bad); color: #fff; box-shadow: none; animation: breathe 1.2s infinite; }
.result-box { border-radius: 28px; padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: #fff; box-shadow: var(--sh-2); }
.result-box.good { background: var(--ok-soft); box-shadow: none; }
.result-box.mid { background: var(--warn-soft); box-shadow: none; }
.result-box.bad { background: var(--bad-soft); box-shadow: none; }
.fb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fb-list li { display: flex; gap: 10px; align-items: flex-start; }
.fb-list .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; margin-top: 1px; }
.fb-list .ic.ok { background: var(--ok-soft); color: var(--ok); }
.fb-list .ic.bad { background: var(--bad-soft); color: var(--bad); }
.fb-list .ic.warn { background: var(--warn-soft); color: var(--warn); }
.timer { position: sticky; top: 92px; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 22px; background: var(--navy); color: #fff; box-shadow: var(--sh-3); margin-bottom: 24px; flex-wrap: wrap; }
.timer .clock { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: center; }
.timer .clock svg { width: 22px; height: 22px; color: #9fb7ff; }
.timer.warn { background: #8a5400; }
.timer.danger { background: var(--bad); animation: breathe 1s infinite; }
.qdots { display: flex; gap: 4px; flex-wrap: wrap; }
.qdots a { width: 28px; height: 28px; border-radius: 9px; background: rgb(255 255 255 / .1); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 700; }
.qdots a:hover { background: rgb(255 255 255 / .2); color: #fff; }
.qdots a.answered { background: #9fb7ff; color: var(--navy); }
.reading { background: #fffdf8; border-radius: 20px; padding: 26px 30px; font-family: var(--serif); font-size: 1.14rem; margin-bottom: 18px; box-shadow: inset 0 0 0 1px #efe7d3; line-height: 1.7; }
.reading h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-3); }
.examiner { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; background: var(--navy); color: #fff; border-radius: 28px; padding: 24px; }
.examiner .teacher { width: 130px; }
.examiner .bubble { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px 20px; font-size: 1.12rem; font-weight: 650; position: relative; }
.examiner .bubble::before { content: ''; position: absolute; left: -8px; top: 26px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.badge-item { text-align: center; padding: 20px 12px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); transition: transform var(--t) var(--ease), box-shadow var(--t); }
a.badge-item:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.badge-item .b-icon { font-size: 1.8rem; width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); }
.badge-item.locked { opacity: .5; filter: grayscale(1); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.badge-item b { display: block; font-size: .9rem; line-height: 1.3; }
.badge-item small { color: var(--ink-2); font-size: .76rem; }
/* eksamensindeks */
.xlist { display: grid; gap: 12px; }
.xrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 120px auto; gap: 20px; align-items: center; padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); color: inherit; transition: box-shadow var(--t), transform var(--t) var(--ease); }
a.xrow:hover, .xrow:hover { color: inherit; box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); }
.xrow-main h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.xrow-main p { margin: 0 0 8px; max-width: 70ch; }
.xrow-main .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.xrow-num { display: grid; text-align: right; }
.xrow-num b { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.xrow-num b.ok { color: var(--ok); } .xrow-num b.mid { color: var(--warn); } .xrow-num b.bad { color: var(--bad); }
.xrow-num span { font-size: .76rem; color: var(--ink-2); }

/* ---------- skriftlig regning ---------- */
.paper { --cw: 46px; display: grid; gap: 14px; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.paper-head h3 { margin: 4px 0 0; font-size: 1.6rem; letter-spacing: -.02em; }
.paper-body { display: grid; grid-template-columns: auto minmax(260px, 1fr); gap: 20px; align-items: start; }
.sheet-wrap { overflow-x: auto; max-width: 100%; }
.sheet { display: inline-grid; padding: 18px 22px; border-radius: var(--r-lg); background-color: #fff; background-image: linear-gradient(#dce5f3 1px, transparent 1px), linear-gradient(90deg, #dce5f3 1px, transparent 1px); background-size: var(--cw) var(--cw); background-position: 22px 18px; box-shadow: var(--sh-2); font-family: var(--mono); }
.prow { display: grid; grid-template-columns: repeat(var(--W), var(--cw)); height: var(--cw); align-items: center; border-radius: 8px; transition: background var(--t); }
.prow > * { grid-row: 1; } /* cifrene skrives fra højre – alle skal blive i samme række */
.prow.carry { height: calc(var(--cw) * .62); }
.prow.line { height: 6px; }
.prow.hl { background: rgb(255 214 102 / .22); }
.pline { height: 3px; background: var(--ink); border-radius: 2px; }
.pc { height: 100%; display: grid; place-items: center; font-size: 1.7rem; font-weight: 600; color: var(--ink); position: relative; transition: background var(--t); }
.pc.small { font-size: 1rem; align-items: end; }
.pc.faint { color: var(--ink-3); }
.pc.hl { background: rgb(255 214 102 / .35); }
.pc.comma::after { content: ','; position: absolute; right: -5px; bottom: 4px; font-size: 1.7rem; font-weight: 700; }
.pc .pop { color: var(--s, var(--accent)); font-weight: 800; }
.pc.bring::before { content: '↓'; position: absolute; top: -14px; font-size: .75rem; color: var(--ink-3); }
.paper .prow.num .pop { font-size: 1.6rem; font-weight: 800; }
.pin { width: calc(var(--cw) - 8px); height: calc(var(--cw) - 8px); border: 0; border-radius: 9px; background: rgb(59 91 219 / .07); text-align: center; font: inherit; font-size: 1.6rem; font-weight: 700; color: var(--accent-ink); caret-color: var(--accent); transition: all var(--t-fast); padding: 0; }
.pin.sm { width: calc(var(--cw) * .6); height: calc(var(--cw) * .55); font-size: .95rem; background: rgb(59 91 219 / .05); color: var(--bad); }
.pin.wide { width: 170px; text-align: left; padding: 0 10px; font-size: 1.3rem; }
.pin:disabled { background: transparent; color: var(--accent-ink); }
.pin:focus { outline: none; background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.pin.cur:not(:disabled) { background: #fff6d6; box-shadow: inset 0 0 0 2px var(--gold); }
.pin.ok { background: var(--ok-soft); color: var(--ok); }
.pin.bad { background: var(--bad-soft); color: var(--bad); animation: shake .4s; }
.pin.shown { animation: pop .45s var(--spring); color: var(--accent-ink); }
.prow.setup .pin { background: rgb(59 91 219 / .1); box-shadow: inset 0 -2px 0 rgb(59 91 219 / .35); }
.prow.setup .pin:not(:disabled):placeholder-shown { background: rgb(59 91 219 / .12); }
.paper-status { min-height: 1.3em; margin-top: 6px; }
.coach { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 18px 20px; display: grid; gap: 8px; min-height: 180px; align-content: start; }
.coach-who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.coach-who svg { width: 44px; height: 48px; border-radius: 50%; background: var(--s-soft, var(--accent-soft)); }
.coach-msg p { margin: 0 0 8px; }
.small-choices .choice { padding: 10px 12px; font-size: .92rem; }
.help-menu { display: grid; gap: 6px; margin-top: 8px; padding: 12px; border-radius: var(--r); background: var(--bg); animation: rise .25s var(--ease); }
.help-opt { border: 0; text-align: left; padding: 10px 12px; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 650; box-shadow: inset 0 0 0 1px var(--line); }
.help-opt:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.help-opt.on { box-shadow: inset 0 0 0 2px var(--accent); }
.help-opt small { color: var(--ink-3); font-weight: 500; }
.help-btn { color: #93590a !important; background: var(--warn-soft) !important; box-shadow: none !important; }
.draft { border-radius: var(--r-lg); background: #fff; padding: 12px; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); }
.draft canvas { width: 100%; height: 220px; border-radius: 12px; touch-action: none; cursor: crosshair; display: block; background-color: #fffef8; background-image: linear-gradient(#e6ecf6 1px, transparent 1px), linear-gradient(90deg, #e6ecf6 1px, transparent 1px); background-size: 24px 24px; }
.draft-notes { display: grid; gap: 4px; margin-top: 8px; }
.ws-sheet { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); background-color: #fff; background-image: linear-gradient(#e3ebf7 1px, transparent 1px); background-size: 100% 46px; box-shadow: var(--sh-2); min-width: min(100%, 420px); }
.ws-line { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 28px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; transition: background var(--t); }
.ws-line.hl { background: rgb(255 214 102 / .22); }
.ws-line.given { border-bottom: 2px solid var(--line); border-radius: 0; padding-bottom: 12px; margin-bottom: 4px; }
.ws-line.given .ws-expr { font-size: 1.7rem; }
.ws-label { font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.ws-expr { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 1.45rem; font-weight: 600; }
.ws-op { color: var(--s, var(--accent)); font-weight: 800; padding: 0 2px; }
.ws-t { white-space: pre; }
.ws-frac { display: inline-grid; justify-items: center; gap: 3px; vertical-align: middle; }
.ws-frac .bar { width: 100%; min-width: 34px; height: 3px; border-radius: 2px; background: var(--ink); }
.ws-frac .n, .ws-frac .d { display: grid; place-items: center; min-height: 38px; line-height: 1; }
.ws-in.pin { width: calc(var(--ch, 3) * 1ch + 22px); height: 42px; font-size: 1.35rem; }
.ws-frac .ws-in.pin { height: 38px; }
.ws-ref { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; padding: 0 6px; border-radius: 8px; background: rgb(59 91 219 / .06); color: var(--accent-ink); border: 1px dashed rgb(59 91 219 / .35); }
.ws-ref.empty { color: var(--ink-3); }
.ws-mark .ok { color: var(--ok); font-weight: 800; font-size: 1.2rem; }
.ws-mark .bad { color: var(--bad); font-weight: 800; font-size: 1.2rem; }

/* ---------- danskprøven ---------- */
.exam-feature { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 26px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2); margin: 18px 0 8px; position: relative; overflow: hidden; }
.exam-feature::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--s); }
.exam-feature h2 { margin: 6px 0; }
.exam-feature p { margin: 0 0 8px; }
.part-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.part-tabs button { border: 0; border-radius: 12px; padding: 6px 10px; background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; display: grid; grid-template-columns: auto auto; gap: 0 6px; text-align: left; font-size: .78rem; line-height: 1.2; }
.part-tabs button:hover { background: rgb(255 255 255 / .16); }
.part-tabs button b { grid-row: span 2; width: 24px; height: 24px; border-radius: 8px; background: rgb(255 255 255 / .15); display: grid; place-items: center; align-self: center; }
.part-tabs button i { font-style: normal; opacity: .7; font-size: .7rem; }
.part-tabs button.on { background: #fff; color: var(--ink); }
.part-tabs button.on b { background: var(--accent); color: #fff; }
.dk-part h2 { margin-top: 6px; }
.dk-audio { display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--s-soft); margin-bottom: 18px; }
.dk-teacher { width: 78px; height: 78px; border-radius: 50%; background: #fff; overflow: hidden; position: relative; }
.dk-teacher svg { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); width: 74px; }
.dk-dictation { background: #fffdf8; border-radius: 20px; padding: 24px 28px; box-shadow: inset 0 0 0 1px #efe7d3; font-family: var(--serif); font-size: 1.18rem; line-height: 2.3; }
.dk-dictation p { margin: 0 0 6px; padding: 0 8px; border-radius: 10px; transition: background .4s; }
.dk-dictation p.reading { background: #fff3c4; }
input.gap { font: inherit; font-family: var(--font); font-size: 1rem; border: 0; border-bottom: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; border-radius: 6px 6px 0 0; padding: 2px 6px; margin: 0 2px; min-width: 4ch; }
input.gap:focus { outline: none; background: #fff; box-shadow: var(--ring); }
.dk-words { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.dk-words li { display: grid; grid-template-columns: 30px 40px 1fr; gap: 6px; align-items: center; padding: 6px 8px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: all var(--t); }
.dk-words li.reading { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.dk-words .n { font-weight: 800; color: var(--ink-3); text-align: center; }
.dk-words .input { min-height: 40px; padding: 8px 12px; }
.dk-proof { background: #fffdf8; border-radius: 20px; padding: 24px 28px; box-shadow: inset 0 0 0 1px #efe7d3; font-family: var(--serif); font-size: 1.16rem; line-height: 2.2; }
.pw { border: 0; background: none; padding: 1px 2px; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 5px; }
.pw:hover { background: var(--warn-soft); box-shadow: inset 0 -2px 0 var(--warn); }
.pw-edit { display: inline-flex; align-items: center; background: var(--warn-soft); border-radius: 6px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--warn); }
.pw-edit input { font: inherit; border: 0; background: transparent; padding: 0 4px; color: #92400e; font-weight: 600; }
.pw-edit input:focus { outline: none; }
.pw-edit button { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: .8rem; padding: 0 4px; }
.dk-punct { display: grid; gap: 8px; }
.dk-punct-text { display: block; background: #fffdf8; border-radius: 20px; padding: 22px 26px; box-shadow: inset 0 0 0 1px #efe7d3; line-height: 2.4; font-size: 1.1rem; font-family: var(--serif); }
.pt-sentence { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 1.05rem; }
.pt-sentence .n { font-weight: 800; color: var(--ink-3); }
.pt-gap { border: 0; background: none; cursor: pointer; width: 18px; height: 26px; margin: 0 -3px 0 -2px; vertical-align: middle; border-radius: 6px; font-weight: 800; font-size: 1.15rem; color: var(--accent); padding: 0; position: relative; }
.pt-gap i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--line); margin: 0 auto; transition: all var(--t-fast); }
.pt-gap:hover { background: var(--accent-soft); }
.pt-gap:hover i { background: var(--accent); transform: scale(1.3); }
.pt-gap.set { width: auto; min-width: 14px; background: var(--accent-soft); }
.sec-scores { display: grid; gap: 14px; }
.sec-score { color: inherit; display: grid; gap: 6px; }
.ans-table td:first-child { width: 28px; font-weight: 800; }
.ans-table tr.ok td:first-child { color: var(--ok); }
.ans-table tr.bad td:first-child { color: var(--bad); }
.ans-table tr.bad td:nth-child(3) { color: #b5262d; text-decoration: line-through; text-decoration-color: rgb(219 65 72 / .4); }

/* ---------- Færdighedsregning og fagord ---------- */
.fr-path { background: #fff; border-radius: 28px; box-shadow: var(--sh-2); padding: 28px 30px; display: grid; gap: 24px; margin: 8px 0 10px; position: relative; overflow: hidden; }
.fr-path::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--s); }
.fr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.fr-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 4px 0 8px; letter-spacing: -.03em; }
.fr-head p { max-width: 64ch; margin: 0 0 14px; }
.fr-stats { margin: 0 0 16px; }
.fr-ring { display: grid; place-items: center; }
.fr-part { display: grid; gap: 10px; }
.fr-part-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fr-part-head .eyebrow { color: var(--s-ink); font-size: .78rem; }
.fr-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fr-extra { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--s-soft) 70%, #fff); color: inherit; transition: box-shadow var(--t-fast), transform var(--t-fast); }
a.fr-extra:hover { color: inherit; box-shadow: var(--sh-2); transform: translateY(-1px); }
.fr-extra svg { width: 26px; height: 26px; color: var(--s); flex: none; }
.fr-extra b { display: block; }
.fr-extra span { font-size: .85rem; color: var(--ink-2); }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.exam-feature.compact { margin: 0; padding: 18px 20px; gap: 14px; color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.exam-feature.compact:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--sh-3); }
.exam-feature.compact h2 { font-size: 1.2rem; }
.exam-feature.compact .s-icon svg { width: 30px; height: 30px; }
.bench #bench:empty { display: none; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.term-card { display: block; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.term-card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--sh-2); }
.term-card h3 { margin: 0; font-size: 1.08rem; }
.term-card p { margin: 8px 0 0; }
.term-card.dim { opacity: .65; }
.term-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 28px; border-radius: 28px; background: color-mix(in srgb, var(--s-soft, var(--accent-soft)) 70%, #fff); }
.term-hero .coach-who { flex-direction: column; gap: 4px; font-size: .8rem; }
.term-hero .coach-who svg { width: 72px; height: 78px; background: #fff; }
.term-hero h1 { margin: 2px 0 6px; }
.term-hero .lead { font-size: 1.15rem; margin: 0 0 12px; }
.fv { display: grid; place-items: center; padding: 8px 0; }
.fv-eq { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fv-part { display: grid; justify-items: center; gap: 4px; min-width: 52px; }
.fv-part b { font-size: 2rem; padding: 6px 12px; border-radius: 12px; background: var(--bg); min-width: 52px; text-align: center; }
.fv-part.op b { background: transparent; color: var(--ink-3); min-width: 0; padding: 6px 2px; }
.fv-part.hl b { background: var(--s); color: #fff; }
.fv-part small { font-size: .76rem; font-weight: 700; color: var(--s); text-transform: uppercase; letter-spacing: .04em; }
.fv-frac { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; }
.fv-bar { display: grid; grid-template-columns: repeat(var(--d), 1fr); width: min(320px, 70vw); height: 54px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--ink-3); }
.fv-bar i { border-right: 2px solid var(--ink-3); }
.fv-bar i:last-child { border-right: 0; }
.fv-bar i.on { background: var(--s); }
.fv-f { display: grid; justify-items: center; font-size: 2.2rem; font-weight: 800; }
.fv-f hr { width: 60px; border: 0; border-top: 3px solid var(--ink); margin: 2px 0; }
.fv-f span { display: flex; align-items: center; gap: 10px; }
.fv-f span small { font-size: .76rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; }
.fv-f span.hl, .fv-f span.hl small { color: var(--s); }
.fv-grid { display: grid; grid-template-columns: repeat(10, 18px); gap: 3px; }
.fv-grid i { width: 18px; height: 18px; border-radius: 4px; background: var(--line-2); }
.fv-grid i.on { background: var(--s); }
.fv-groups { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fv-groups .grp { display: grid; grid-template-columns: repeat(2, 18px); gap: 4px; padding: 8px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--s); }
.fv-groups .grp i { width: 18px; height: 18px; border-radius: 50%; background: var(--s); }
.fv-groups .grp.rest { box-shadow: none; outline: 2px dashed var(--warn); position: relative; }
.fv-groups .grp.rest i { background: var(--warn); }
.fv-groups .grp.rest small { position: absolute; bottom: -20px; left: 0; font-weight: 700; color: var(--warn); white-space: nowrap; }
.fv-balance { display: grid; justify-items: center; width: min(360px, 80vw); }
.fv-balance .pans { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.fv-balance .pan { padding: 10px 18px; border-radius: 12px; background: var(--bg); font-size: 1.4rem; font-weight: 800; min-width: 110px; text-align: center; box-shadow: inset 0 -4px 0 var(--s); }
.fv-balance .eqs { font-size: 2rem; font-weight: 800; color: var(--s); }
.fv-balance .beam { width: 100%; height: 6px; border-radius: 3px; background: var(--ink-2); margin-top: 6px; }
.fv-balance .stand { width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 34px solid var(--ink-2); }
.fv-svg { width: min(340px, 82vw); height: auto; font: 600 11px var(--font); fill: var(--ink-2); }
.fv-svg .ax { stroke: var(--ink); stroke-width: 2; }
.fv-svg .gl { stroke: var(--line); stroke-width: 1; }
.fv-svg .walk { fill: none; stroke: var(--s); stroke-width: 2.5; stroke-dasharray: 5 4; }
.fv-svg .pt { fill: var(--s); }
.fv-svg .lbl { fill: var(--s); font-weight: 800; font-size: 12px; }
.fv-svg .cell { fill: var(--s-soft, #e8eefc); stroke: #fff; stroke-width: 2; }
.fv-svg .outline { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.fv-svg .perim { fill: none; stroke: var(--s); stroke-width: 5; stroke-dasharray: 10 6; }
.fv-svg .face { fill: var(--s-soft, #e8eefc); stroke: var(--ink); stroke-width: 2; }
.fv-svg .face.top { fill: #fff; }
.fv-svg .face.side { fill: var(--line-2); }
.fv-svg .hlline { stroke: var(--s); stroke-width: 3.5; }
.fv-svg .hlline.dashed { stroke-dasharray: 6 4; stroke-width: 2.5; }
.fv-svg .bar { fill: var(--s); opacity: .8; }

/* ---------- statistik og profil ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; border-radius: 24px; box-shadow: var(--sh-2); padding: 8px; margin-bottom: 24px; }
.kpis > div { padding: 16px 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 12px; align-items: center; border-left: 1px solid var(--line-2); animation: rise .5s var(--ease) backwards; }
.kpis > div:first-child { border-left: 0; }
.kpis .ki { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.kpis .ki svg { width: 20px; height: 20px; }
.kpis b { font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpis span { font-size: .78rem; color: var(--ink-2); font-weight: 600; line-height: 1.25; }
.ki.blue { background: var(--accent-soft); color: var(--accent); }
.ki.gold { background: var(--gold-soft); color: var(--gold); } .ki.gold svg { fill: var(--gold); }
.ki.flame { background: var(--flame-soft); color: var(--flame); } .ki.flame svg { fill: var(--flame); }
.ki.green { background: var(--ok-soft); color: var(--ok); }
.ki.violet { background: #f1ebff; color: #7a4fe0; }
.ki.navy { background: var(--bg-2); color: var(--navy); }
.u-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.u-grid > div { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-lg); background: var(--bg); }
.u-num { font-size: 2rem; line-height: 1; letter-spacing: -.03em; }
.u-num small { font-size: 1rem; color: var(--ink-3); }
.prof-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 32px; border-radius: 28px; background: var(--navy); color: #c7d2ec; margin-bottom: 26px; position: relative; overflow: hidden; isolation: isolate; }
.prof-head::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -180px; border-radius: 50%; background: var(--navy-2); z-index: -1; }
.prof-head .avatar { width: 92px; height: 92px; font-size: 2.4rem; background: #fff; color: var(--navy); }
.prof-head h1 { color: #fff; margin: 0 0 8px; }
.prof-head .pill { background: rgb(255 255 255 / .12); color: #fff; }
.prof-nums { display: flex; gap: 10px; }
.prof-nums > div { padding: 12px 18px; border-radius: 16px; background: rgb(255 255 255 / .07); display: grid; text-align: center; min-width: 96px; }
.prof-nums b { font-size: 1.5rem; color: #fff; letter-spacing: -.03em; line-height: 1.15; }
.prof-nums span { font-size: .76rem; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ================= Læsetræning ================= */
.rd { min-height: 100vh; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
.rd-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(120px, 220px) auto; gap: 6px 16px; align-items: center; padding: 12px 22px; background: rgb(255 255 255 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.rd-close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--bg-2); }
.rd-close:hover { color: var(--ink); background: var(--bg-3); }
.rd-close svg { width: 18px; height: 18px; }
.rd-title { display: grid; min-width: 0; line-height: 1.2; }
.rd-title b { font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-title .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-phase { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; font-size: .76rem; font-weight: 700; color: var(--ink-3); }
.rd-phase span { padding: 4px 12px; border-radius: 999px; background: var(--line-2); }
.rd-phase span.on { background: var(--s); color: #fff; }
.rd-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 26px 20px 40px; }
.rd-intro, .rd-result { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; animation: rise .5s var(--ease); }
.rd-cover { text-align: center; display: grid; justify-items: center; gap: 8px; }
.rd-cover h1 { margin: 4px 0 0; font-size: clamp(2rem, 5vw, 2.8rem); }
.rd-emoji { font-size: 4rem; line-height: 1; animation: drift 5s ease-in-out infinite; }
.rd-teach { display: flex; gap: 14px; align-items: flex-end; }
.rd-t { width: 96px; flex: none; }
.rd-t.sm { width: 58px; }
.rd-t .teacher { width: 100%; height: auto; display: block; --s: #e0445e; }
.rd-bubble { position: relative; background: #fff; border-radius: 22px 22px 22px 6px; padding: 14px 18px; box-shadow: var(--sh-2); flex: 1; }
.rd-bubble b { font-size: .78rem; color: var(--s); }
.rd-bubble p { margin: 4px 0 0; font-size: 1.08rem; }
.rd-pre .rd-chips, .rd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-chip { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem; padding: 9px 16px; border-radius: 999px; background: var(--s-soft); color: var(--s-ink); transition: transform var(--t-fast) var(--spring); }
.rd-chip:hover { transform: translateY(-2px); }
.rd-chip.hard { background: var(--warn-soft); color: #93590a; }
.rd-chip.ok { background: var(--ok-soft); color: #0f7144; }
.rd-chip.mid { background: var(--accent-soft); color: var(--accent-ink); }
.rd-howgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rd-howgrid > div { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: .92rem; color: var(--ink-2); }
.rd-howgrid .k { display: block; font-weight: 750; color: var(--ink); margin-bottom: 2px; }
.rd-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .95rem; cursor: pointer; }
.rd-opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.rd-start { text-align: center; }
.rd-read { display: grid; gap: 16px; }
.rd-stage { background: #fff; border-radius: 28px; box-shadow: var(--sh-2); padding: 22px clamp(16px, 4vw, 44px) 30px; display: grid; gap: 14px; }
.rd-coach { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.rd-say { background: var(--s-soft); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: 1rem; color: var(--ink); flex: 1; }
.rd-lens { text-align: center; min-height: 92px; display: grid; place-items: center; gap: 2px; padding: 8px 0 4px; border-bottom: 1px dashed var(--line); }
.lens-word { font-weight: 800; font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1.05; color: var(--ink); animation: lensIn .35s var(--spring); }
.lens-word i { font-style: normal; color: var(--ink-3); margin: 0 .08em; font-weight: 400; }
.lens-word .ls.s0, .wh-word .syl.s0 { color: #e0445e; }
.lens-word .ls.s1, .wh-word .syl.s1 { color: var(--accent); }
.lens-word .ls.s2, .wh-word .syl.s2 { color: var(--ok); }
.lens-n { font-size: .78rem; color: var(--ink-3); font-weight: 650; }
.lens-done { font-size: 3.4rem; }
@keyframes lensIn { from { opacity: 0; transform: translateY(8px) scale(.92); } }
.rd-text { font-size: clamp(1.45rem, 3.6vw, 2rem); line-height: 1.85; color: var(--ink); max-height: 46vh; overflow-y: auto; padding: 4px 2px; scroll-padding: 40px; font-weight: 500; }
.rd-text p { margin: 0 0 .6em; }
.rd-text .rs { border-radius: 10px; transition: background var(--t); padding: 2px 0; }
.rd-text .rs.cur { background: #fff5d6; box-shadow: 0 0 0 4px #fff5d6; }
.rd-text.focus { max-height: none; font-size: clamp(1.8rem, 5vw, 2.6rem); text-align: center; }
.rd-text.focus .rs:not(.cur) { display: none; }
.rd-text.focus .rs.cur { background: transparent; box-shadow: none; }
.rd-text.focus p:not(:has(.rs.cur)) { display: none; }
.rw { font: inherit; color: inherit; background: none; border: 0; padding: 0 .08em; margin: 0; cursor: pointer; border-radius: 8px; transition: background var(--t-fast), color var(--t-fast), transform var(--t) var(--spring), box-shadow var(--t-fast); }
.rw:hover { background: var(--s-soft); }
.rw.read { color: #7a869f; }
.rw.helped { text-decoration: underline dotted var(--warn) 3px; text-underline-offset: 6px; }
.rw.cur { background: var(--s); color: #fff; box-shadow: 0 6px 16px -6px var(--s); transform: translateY(-2px) scale(1.06); padding: 0 .22em; }
.rw.listen { background: #ffe08a; color: var(--ink); }
.rw.pulse { animation: wPulse 1s var(--ease); }
@keyframes wPulse { 30% { transform: scale(1.18); } }
.pn { color: var(--ink-3); }
.rd-done { animation: rise .45s var(--ease); }
.rd-fin { text-align: center; display: grid; gap: 8px; justify-items: center; }
.rd-fin .big { font-size: 3rem; }
.rd-fin h2 { margin: 0; }
.rd-bar { position: sticky; bottom: 10px; z-index: 15; display: grid; gap: 10px; padding: 12px; border-radius: 26px; background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); box-shadow: var(--sh-3); }
.rd-tools { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.rd-tool { display: flex; align-items: center; gap: 7px; border: 0; background: var(--bg-2); color: var(--ink); font: inherit; font-weight: 650; font-size: .9rem; padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background var(--t-fast); }
.rd-tool svg { width: 17px; height: 17px; }
.rd-tool:hover { background: var(--s-soft); color: var(--s-ink); }
.rd-tool.on { background: var(--navy); color: #fff; }
.rd-main-btns { display: grid; grid-template-columns: auto 1fr 1.3fr; gap: 10px; }
.rd-main-btns .btn { min-height: 60px; font-size: 1.06rem; }
.rd-prev { width: 60px; padding: 0; }
.rd-help { background: var(--warn-soft) !important; color: #7a4800 !important; box-shadow: none !important; }
.rd-help:hover { background: #ffe9bf !important; }
.rd-next { font-size: 1.12rem !important; }
.rd-main-btns .btn:disabled { opacity: .45; pointer-events: none; }
.rd-q { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 28px; box-shadow: var(--sh-2); padding: clamp(18px, 4vw, 34px); animation: stepIn .45s var(--ease); display: grid; gap: 4px; }
.rd-qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.rd-qq { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 6px 0 12px; line-height: 1.3; letter-spacing: -.02em; }
.qw { cursor: pointer; border-radius: 6px; transition: background var(--t-fast); }
.qw:hover { background: var(--s-soft); }
.rd-big { color: var(--s); }
.rd-opts { display: grid; gap: 10px; }
.rd-opts.words { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rd-opts.words .rd-opt-btn { font-size: 1.5rem; justify-content: center; }
.rd-opt-btn { display: flex; align-items: center; gap: 14px; text-align: left; border: 0; cursor: pointer; font: inherit; font-size: 1.1rem; font-weight: 600; padding: 16px 18px; border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 2px transparent; transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease); }
.rd-opt-btn:hover:not(:disabled) { background: var(--s-soft); box-shadow: inset 0 0 0 2px var(--s); transform: translateY(-1px); }
.rd-opt-btn .k { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; font-weight: 800; color: var(--ink-2); }
.rd-opt-btn.right { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); animation: correct .5s var(--spring); }
.rd-opt-btn.right .k { background: var(--ok); color: #fff; }
.rd-opt-btn.wrong { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad); animation: shake .4s; }
.rd-opt-btn:disabled { cursor: default; }
.rd-fb { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 18px; animation: rise .35s var(--ease); }
.rd-fb.ok { background: var(--ok-soft); }
.rd-fb.bad { background: var(--warn-soft); }
.rd-fb p { margin: 4px 0 0; }
.rd-cite { margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; border-left: 4px solid var(--s); }
.rd-cite p { margin: 2px 0 0; font-family: var(--serif); font-size: 1.12rem; }
.rd-textpeek { margin-top: 14px; background: var(--bg); border-radius: 16px; padding: 16px; font-size: 1.1rem; line-height: 1.7; max-height: 280px; overflow: auto; }
.rd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rd-stats > div, .laes-stats > div { background: #fff; border-radius: 18px; box-shadow: var(--sh-2); padding: 14px; text-align: center; display: grid; }
.rd-stats b { font-size: 1.8rem; letter-spacing: -.03em; }
.rd-stats span, .laes-stats span { font-size: .8rem; color: var(--ink-2); }
.rd-actions { justify-content: center; }
.wh-back { position: fixed; inset: 0; z-index: 200; background: rgb(14 27 54 / .35); display: flex; justify-content: flex-end; opacity: 0; transition: opacity .2s; }
.wh-back.in { opacity: 1; }
.wh-back.out { opacity: 0; }
.wh-panel { width: min(480px, 100%); height: 100%; overflow-y: auto; background: #fff; box-shadow: -20px 0 60px -20px rgb(14 27 54 / .45); padding: 18px 20px 24px; display: grid; gap: 14px; align-content: start; transform: translateX(30px); transition: transform var(--t) var(--ease); --s: #e0445e; --s-soft: #fdecef; }
.wh-back.in .wh-panel { transform: none; }
.wh-head { display: flex; align-items: flex-end; gap: 10px; }
.wh-teacher { width: 70px; flex: none; }
.wh-teacher .teacher { width: 100%; height: auto; --s: #e0445e; }
.wh-bubble { flex: 1; background: var(--s-soft); border-radius: 18px 18px 18px 4px; padding: 10px 14px; display: grid; font-size: .98rem; }
.wh-bubble b { font-size: .76rem; color: var(--s); }
.wh-x { align-self: flex-start; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; }
.wh-x:hover { background: var(--bg-3); }
.wh-x svg { width: 16px; height: 16px; }
.wh-word { text-align: center; font-weight: 800; font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1.1; padding: 10px 0; overflow-wrap: anywhere; }
.wh-word .syl { cursor: pointer; border-radius: 12px; padding: 0 .06em; transition: background var(--t-fast), transform var(--t-fast) var(--spring); display: inline-block; }
.wh-word .syl.on { background: #fff5d6; transform: translateY(-3px); }
.wh-word .dot { font-style: normal; color: var(--ink-3); font-weight: 400; margin: 0 .05em; }
.wh-listen { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wh-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: 999px; background: var(--s); color: #fff; }
.wh-btn svg { width: 17px; height: 17px; }
.wh-btn.slow { background: var(--warn-soft); color: #7a4800; }
.wh-btn.mic { background: var(--accent-soft); color: var(--accent-ink); }
.wh-mic { text-align: center; background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.wh-mic .ok { color: var(--ok); }
.pulse-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); margin-right: 6px; animation: breathe 1s infinite; }
.wh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wh-steps > li { border-radius: 16px; padding: 12px 14px; background: var(--bg); transition: background var(--t), box-shadow var(--t); }
.wh-steps > li.on { background: #fff; box-shadow: inset 0 0 0 2px var(--s), var(--sh-2); }
.wh-step-h { display: flex; align-items: center; gap: 10px; }
.wh-step-h .n { width: 26px; height: 26px; border-radius: 50%; background: var(--s); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 800; flex: none; }
.wh-step-h b { flex: 1; }
.wh-steps p, .wh-steps ul { margin: 6px 0 0; font-size: .97rem; }
.wh-steps ul { padding-left: 18px; display: grid; gap: 4px; }
.wh-ex { font-family: var(--serif); font-size: 1.14rem; }
.wh-steps mark { background: #ffe08a; border-radius: 4px; padding: 0 2px; }
.mini { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--s); flex: none; box-shadow: var(--sh-1); }
.mini svg { width: 15px; height: 15px; }
.wh-foot { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; position: sticky; bottom: -24px; background: #fff; padding: 10px 0 4px; }
.laes-head { background: color-mix(in srgb, #fdecef 70%, #fff) !important; }
.laes-rec { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.laes-rec h3 { margin: 2px 0; }
.laes-rec-emoji { font-size: 2.4rem; width: 64px; height: 64px; display: grid; place-items: center; background: var(--s-soft); border-radius: 18px; }
.laes-level { margin-top: 30px; }
.laes-lv-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 12px; }
.laes-lv-head h2 { margin: 0; font-size: 1.3rem; }
.laes-lv-emoji { font-size: 1.9rem; }
.laes-level.rec .laes-lv-head { background: var(--s-soft); border-radius: 18px; padding: 12px 16px; }
.rd-dot { font-size: 1.15rem; }
.laes-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.laes-stats > div { box-shadow: none; background: var(--bg); padding: 10px; }
.laes-stats b { font-size: 1.35rem; }

/* ================= Lydkontroller ================= */
body.no-audio .needs-audio { display: none !important; }
.au-speed { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.au-speed svg { width: 15px; height: 15px; }
.au-vol { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.au-vol svg { width: 17px; height: 17px; flex: none; }
.au-vol input { width: 84px; accent-color: var(--accent); cursor: pointer; }
.media-ctrls .au-vol input { width: 70px; }
.au-panel { display: grid; gap: 14px; margin-top: 8px; }
.au-panel .field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.au-panel small { display: block; margin-top: 6px; }
.au-panel .au-vol input { width: 100%; }
.au-panel .au-vol { display: flex; }
.rd-audio { display: flex; align-items: center; gap: 10px; justify-self: end; }
.rd-audio .rd-tool { padding: 7px 12px; }

/* ================= Video og tidslinjer ================= */
.video-board { grid-column: 1 / -1; width: 100%; max-width: 1060px; margin-inline: auto; min-width: 0; }
.video-board .lp-kicker { flex-wrap: wrap; row-gap: 6px; }
.vplayer { position: relative; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--sh-3); aspect-ratio: 16 / 9; }
.vplayer video { width: 100%; height: 100%; display: block; background: #000; }
.vplayer video::cue { background: rgb(0 0 0 / .72); color: #fff; font-family: var(--font); font-size: clamp(.95rem, 2.2vw, 1.25rem); line-height: 1.35; }
.vbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.vspeed { display: inline-flex; gap: 2px; background: var(--bg-2); padding: 4px; border-radius: 999px; }
.vspeed .toggle.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.vchapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.vchapters .eyebrow { width: 100%; }
.vchap { display: inline-flex; gap: 8px; align-items: center; border: 0; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 650; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink); transition: background var(--t-fast), color var(--t-fast); }
.vchap:hover { background: var(--bg-3); }
.vchap span { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 700; }
.vchap.on { background: var(--navy); color: #fff; }
.vchap.on span { color: #9fb7ff; }
.vcredits { margin-top: 16px; }
.vcredits summary { cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.vcredits ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; color: var(--ink-2); font-size: .9rem; }
.pulse-btn { animation: wPulse 1.2s var(--ease) 2; }
.tl.tl-dates { height: 210px; margin: 10px 4px 6px; padding: 0; max-width: none; min-height: 0; }
.tl-dates .tl-line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--s-soft), var(--s)); }
.tl-pt { position: absolute; top: 50%; width: 140px; margin-left: -70px; text-align: center; opacity: .25; transition: opacity .4s, transform .5s var(--spring); }
.tl-pt i { position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--s); }
.tl-pt b { display: block; font-size: 1.1rem; color: var(--s); }
.tl-pt span { display: block; font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.tl-pt.up { transform: translateY(-100%); padding-bottom: 16px; }
.tl-pt.down { padding-top: 16px; }
.tl-pt.on { opacity: 1; }
.tl-pt.on i { background: var(--s); }
.tl-list { display: none; margin: 8px 0 0; padding-left: 20px; }
.tl-list li { opacity: .4; transition: opacity var(--t); margin: 4px 0; }
.tl-list li.on { opacity: 1; }

/* ---------- toasts, dialoger, konfetti ---------- */
#toasts { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 18px; box-shadow: var(--sh-3); display: flex; gap: 12px; align-items: center; animation: toastIn .5s var(--spring); font-weight: 700; }
.toast .t-icon { font-size: 1.35rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .1); flex: none; }
.toast.error { background: var(--bad); }
.toast small { display: block; font-weight: 500; opacity: .78; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.modal-back { position: fixed; inset: 0; background: rgb(14 27 54 / .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 250; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { background: #fff; border-radius: 28px; padding: 30px; max-width: 470px; width: 100%; box-shadow: var(--sh-3); animation: modalIn .4s var(--spring); max-height: 90vh; overflow: auto; }
.modal h2 { font-size: 1.45rem; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 260; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* =====================================================================
   Brudpunkter: ≥1440 bred · 1100–1439 desktop · 768–1099 tablet · <768 mobil
   ===================================================================== */
@media (min-width: 1440px) { .content { max-width: 1320px; } }
@media (max-width: 1280px) {
  .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-top { grid-template-columns: minmax(0, 1fr); }
  .prog-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis > div:nth-child(4) { border-left: 0; }
  .kpis > div:nth-child(n+4) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 1099px) {
  :root { --side-w: 92px; }
  .sidenav { padding: 22px 12px; align-items: center; gap: 24px; }
  .sidenav .brand .wm { display: none; }
  .sidenav .brand { padding: 0; }
  .navlinks a { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: .7rem; width: 72px; text-align: center; }
  .navlinks .nl { display: none; }
  .navlinks .ns { display: inline; }
  .side-card { padding: 12px 8px; width: 72px; }
  .side-card b, .side-card p, .side-card .btn { display: none; }
  .side-card .sc-ic { margin: 0; width: 40px; height: 40px; }
  .topbar { padding: 16px 28px; }
  .content { padding: 6px 28px 80px; }
  .chip .lbl { display: none; }
  .course-top, .subj-layout { grid-template-columns: minmax(0, 1fr); }
  .course-top > aside, .subj-layout > aside { position: static !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
  .course-top > aside > * + * { margin-top: 0; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .presenter { position: static; flex-direction: row; justify-content: flex-start; }
  .teacher-wrap { width: 76px; height: 76px; box-shadow: inset 0 0 0 4px #fff, var(--sh-1); }
  .teacher-wrap svg { width: 72px; bottom: -3px; }
  .show { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; gap: 16px; }
  .compare { grid-template-columns: 1fr; }
  .lp-top { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
  .lp-top .lp-bar { grid-column: 1 / -1; grid-row: 2; }
  .subj-index { grid-template-columns: minmax(0, 1fr); }
  .milestone { grid-template-columns: auto minmax(0, 1fr) auto; }
  .milestone .progress { grid-column: 1 / -1; grid-row: 2; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .paper-body { grid-template-columns: 1fr; } .paper { --cw: 38px; }
  .u-grid { grid-template-columns: 1fr 1fr; }
  .prof-head { grid-template-columns: auto minmax(0, 1fr); }
  .prof-nums { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .exam-feature { grid-template-columns: 1fr; }
  .part-tabs button span { display: none; }
  .fr-head { grid-template-columns: 1fr; } .fr-ring { justify-self: start; } .fr-extras { grid-template-columns: 1fr; } .fr-path { padding: 22px 18px; }
  .feature-pair { grid-template-columns: 1fr; } .exam-feature.compact { grid-template-columns: auto 1fr; } .exam-feature.compact .go { display: none; }
  .subj-head { grid-template-columns: minmax(0, 1fr); }
  .sh-ring { justify-self: start; grid-auto-flow: column; align-items: center; gap: 14px; }
}
@media (max-width: 767px) {
  .shell { display: block; }
  .sidenav { display: none; }
  .topbar { padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); gap: 8px; flex-wrap: wrap; }
  .topbar .brand { display: inline-flex; font-size: 1.2rem; padding: 0; }
  .topbar .brand .logo-mark { width: 34px; height: 34px; }
  .topbar .search { display: none; order: 5; flex: 1 0 100%; }
  .topbar.searching .search { display: block; }
  .topbar .search input { height: 46px; }
  .mbar-search { display: grid; }
  .chip { height: 38px; padding: 0 12px; font-size: .82rem; }
  .chip.level { display: none; }
  .avatar, .icon-round { width: 38px; height: 38px; font-size: .95rem; }
  .content { padding: 6px 16px calc(100px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; background: var(--navy); border-radius: 24px; padding: 6px; box-shadow: var(--sh-3); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .66rem; font-weight: 700; color: #9fb0d6; padding: 8px 0 6px; border-radius: 18px; -webkit-tap-highlight-color: transparent; transition: background var(--t-fast), color var(--t-fast); }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: #fff; background: var(--navy-3); }
  .page-head { grid-template-columns: 1fr; margin-bottom: 22px; }
  .section-title { margin: 32px 0 14px; }
  .section-title h2 svg { width: 22px; height: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { margin: 10px 10px 0; padding: 24px 22px 26px; gap: 18px; border-radius: 24px; }
  .auth-hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); margin-bottom: 8px; }
  .auth-hero p { font-size: .98rem; margin: 0; }
  .auth-facts, .auth-tiles { display: none; }
  .auth-panel { padding: 28px 20px 40px; place-items: start center; }
  .hero { grid-template-columns: 1fr; padding: 26px 22px; min-height: 0; border-radius: 24px; }
  .hero-art { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .prog-card .ring { zoom: .78; }
  .hero .row .btn-white { flex: 1; }
  .hero .hero-sub .progress { flex: 1; }
  .prog-card { grid-template-columns: 1fr; padding: 22px; border-radius: 24px; }
  .prog-body { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .prog-stats { padding-left: 16px; gap: 10px; grid-template-columns: minmax(0, 1fr); }
  .prog-stats .pi { width: 38px; height: 38px; }
  .prog-stats li { grid-template-columns: 38px minmax(0, 1fr); }
  .scards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .scard { padding: 18px; gap: 14px; }
  .scard .s-tile { width: 54px; height: 54px; border-radius: 16px; }
  .milestone { padding: 18px; gap: 14px; grid-template-columns: auto minmax(0, 1fr); }
  .milestone .btn { grid-column: 1 / -1; }
  .also a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .also a .progress { display: none; }
  .subj-head { padding: 22px 20px; border-radius: 24px; }
  .subj-head .s-tile { width: 58px; height: 58px; }
  .subject-hero { grid-template-columns: 1fr; padding: 24px; }
  .subject-hero .big-icon { display: none; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .featured { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .featured .btn { grid-column: 1 / -1; width: 100%; }
  .course-row { grid-template-columns: 46px minmax(0, 1fr); padding: 16px; gap: 14px; align-items: start; }
  .course-num { width: 46px; height: 46px; border-radius: 14px; font-size: 1rem; }
  .course-row .side { grid-column: 1 / -1; justify-items: start; min-width: 0; grid-template-columns: auto 1fr; align-items: center; width: 100%; }
  .course-row .side .progress { width: 100%; }
  .course-head { padding: 22px 20px; border-radius: 24px; }
  .course-head .btn-lg { width: 100%; }
  .course-top > aside, .subj-layout > aside { grid-template-columns: 1fr; }
  .path::before { left: 33px; }
  .path-node { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 10px; }
  .path-node .dot { width: 42px; height: 42px; font-size: .9rem; }
  .path-node .dot svg { width: 18px; height: 18px; }
  .path-node > .btn, .path-node > .tiny { grid-column: 2; justify-self: start; }
  .mod-block summary { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; gap: 12px; }
  .mod-side { grid-column: 1 / -1; justify-items: stretch; grid-template-columns: auto 1fr; align-items: center; }
  .mod-title .small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mod-path { padding: 6px 10px 12px; }
  .mod-path.path::before { left: 43px; }
  .timer { top: 6px; padding: 12px 14px; border-radius: 18px; }
  .lp-top { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); gap: 6px 8px; }
  .lp-top .icon-btn { width: 38px; height: 38px; }
  .lp-phases { padding: 0 14px 6px; }
  .lp-phases span { font-size: 0; gap: 4px; padding-right: 4px; }
  .lp-phases span.on { font-size: .74rem; }
  .lp-main { padding: 8px 14px 24px; }
  .lp-foot-in { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; min-height: 0; gap: 10px; }
  .lp-foot-in > .small, .lp-foot-in > span.small { flex-basis: 100%; font-size: .8rem; line-height: 1.35; }
  .lp-foot .spacer { display: none; }
  .lp-foot .btn-lg { flex: 1; min-width: 0; }
  .board { padding: 20px 18px; min-height: 0; border-radius: 22px; }
  .board.video-board { padding: 16px 14px; }
  .vchapters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding: 0 14px 4px; }
  .vchapters .eyebrow { display: none; }
  .vchap { flex: none; }
  .exam-banner { grid-template-columns: 1fr; }
  .xrow { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px 14px; align-items: start; padding: 16px; }
  .xrow > .btn { grid-column: 1 / -1; }
  .xrow-main .meta { display: none; }
  .xrow-main p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card, .panel { padding: 20px; border-radius: 22px; }
  .result-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .examiner { grid-template-columns: 1fr; justify-items: center; }
  .examiner .bubble::before { display: none; }
  .match-row, .dnd-row { grid-template-columns: 1fr; gap: 4px; }
  .tf .choice { padding: 20px; }
  .choice { padding: 14px 15px; font-size: 1rem; }
  .finish-stats b { font-size: 1.35rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > div { padding: 14px 12px; grid-template-columns: 36px minmax(0, 1fr); }
  .kpis .ki { width: 36px; height: 36px; }
  .kpis > div:nth-child(odd) { border-left: 0; }
  .kpis > div:nth-child(4) { border-left: 1px solid var(--line-2); }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .prof-head { padding: 22px 20px; gap: 16px; border-radius: 24px; }
  .prof-head .avatar { width: 64px; height: 64px; font-size: 1.7rem; }
  .prof-nums > div { flex: 1; min-width: 0; padding: 10px; }
  .ws-line { grid-template-columns: 1fr 24px; } .ws-label { grid-column: 1 / -1; } .ws-expr { font-size: 1.2rem; }
  .term-hero { grid-template-columns: 1fr; } .fv-part b { font-size: 1.5rem; }
  .u-grid { grid-template-columns: 1fr; }
  .rd-top { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 14px; }
  .rd-prog { grid-column: 1 / -1; }
  .rd-main { padding: 16px 12px 30px; }
  .rd-tool span { display: none; }
  .rd-tool { padding: 11px 13px; }
  .rd-main-btns { grid-template-columns: auto 1fr; }
  .rd-main-btns .rd-next { grid-column: 1 / -1; order: -1; }
  .rd-stats { grid-template-columns: repeat(2, 1fr); }
  .rd-t { width: 70px; }
  .wh-back { align-items: flex-end; }
  .wh-panel { height: auto; max-height: 92vh; border-radius: 26px 26px 0 0; transform: translateY(30px); }
  .laes-rec { grid-template-columns: auto 1fr; }
  .laes-rec .btn { grid-column: 1 / -1; }
  .laes-lv-head { grid-template-columns: auto 1fr; }
  .laes-lv-head .pill { grid-column: 2; justify-self: start; }
  .rd-audio .au-vol, .media-ctrls .au-vol { display: none; }
  .tl.tl-dates { display: none; }
  .tl-list { display: block; }
  .tl-ev { width: 84px; }
  .tl-ev small { font-size: .68rem; }
  #toasts { right: 12px; left: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); max-width: none; }
  body.immersive #toasts { bottom: calc(110px + env(safe-area-inset-bottom)); }
  .modal { padding: 24px 20px; border-radius: 24px; }
}
@media (max-width: 420px) {
  .paper { --cw: 32px; } .pc { font-size: 1.35rem; } .pin { font-size: 1.3rem; }
  .chip { padding: 0 10px; gap: 6px; }
}
@media (hover: none) { .scard:hover, .course-row:hover, .card-link:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fb-sheet .badge svg path { stroke-dashoffset: 0; }
}
