/* =========================================================
   Hjernet – designsystem »Klart blæk« (se DESIGN.md)
   Indlæses SIDST på alle sider og ejer farver, skrift, form og bevægelse.
   Placeringen af elementer er uændret – her ændres udtrykket.
   ========================================================= */

/* ---------- Skrift (selvhostet, OFL – se fonts/) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Reserveskrift med næsten samme mål, så teksten ikke hopper, når skriften er hentet */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 101%; ascent-override: 93%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 103%; ascent-override: 90%; descent-override: 24%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --page: #F3F5F9; --bg: #F3F5F9; --card: #FFFFFF; --soft: #EBEEF5; --line: #DCE1EA; --line-2: #C3CAD7;
  --ink: #131A2C; --navy: #131A2C; --ink-2: #434C63; --muted: #434C63;
  --brand: #2B47C9; --brand-2: #6F86E8; --brand-soft: #E6EAFB; --brand-line: #B9C4F2;
  --action: #2B47C9; --action-hover: #1F379F;
  --blue: #2B47C9; --blue-hover: #1F379F; --blue-soft: #E6EAFB; --blue-line: #B9C4F2;
  --grape: #2B47C9; --grape-dark: #1F379F; --grape-soft: #E6EAFB;
  --mint: #12A877; --mint-dark: #0E7A55; --mint-soft: #E2F5EE;
  --coral: #E5533D; --coral-dark: #B4321E; --coral-soft: #FCEBE7;
  --sun: #F2B640; --sun-dark: #B97A06; --sun-soft: #FDF3DC;
  --radius: 14px; --r-card: 14px; --r-ctl: 10px;
  --shadow: none; --card-shadow: none;
  --lift: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .18);
  --pop: 0 2px 6px rgba(0, 0, 0, .08), 0 24px 48px -20px rgba(0, 0, 0, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Bricolage Grotesque", "Bricolage Fallback", "Figtree", system-ui, sans-serif;
  --text: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--display);
  color-scheme: light;
}
html:not([data-a11y~="ordblind"]) { --font: var(--text); }
html[data-theme="dark"] {
  --page: #0E121A; --bg: #0E121A; --card: #161B26; --soft: #1E2431; --line: #2A3242; --line-2: #3A4457;
  --ink: #EEF1F7; --navy: #EEF1F7; --ink-2: #B9C2D3; --muted: #B9C2D3;
  --brand: #9EB1FF; --brand-2: #6F86E8; --brand-soft: #1F2747; --brand-line: #3B4A8C;
  --action: #4562E0; --action-hover: #3550C4;
  --blue: #9EB1FF; --blue-hover: #4562E0; --blue-soft: #1F2747; --blue-line: #3B4A8C;
  --grape: #9EB1FF; --grape-dark: #C3CEFF; --grape-soft: #1F2747;
  --mint: #2FBF8C; --mint-dark: #5FD3A8; --mint-soft: #13281F;
  --coral: #F06A55; --coral-dark: #FF9A8A; --coral-soft: #2E1915;
  --sun: #F2B640; --sun-dark: #F2B640; --sun-soft: #2B2412;
  --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -12px rgba(0, 0, 0, .6);
  --pop: 0 2px 6px rgba(0, 0, 0, .45), 0 28px 56px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Grundlag ---------- */
html, body { background: var(--page) !important; }
body { font-family: var(--font) !important; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
button, input, select, textarea { font-family: inherit; }
html:not([data-a11y~="ordblind"]) :is(h1, h2, h3, .th-title, .mt-h1, .mt-h2, .brand, .bill-big, .qz-score b, .mt-num, .th-ring b, .dev-stats b, .stat-cards b, .lvl-opt b, .mig-tile b, .mt-pick-test b) {
  font-family: var(--display) !important; font-optical-sizing: auto; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-weight: 800 !important; letter-spacing: -.02em !important; line-height: 1.04 !important; }
h2 { font-weight: 700 !important; letter-spacing: -.015em !important; line-height: 1.15 !important; font-size: clamp(1.35rem, 2.1vw, 1.6rem); }
h3 { font-weight: 700 !important; letter-spacing: -.01em; font-size: 1.12rem; }
p, li, dd, .lead { text-wrap: pretty; }
p { max-width: 65ch; }
.lead { font-size: 1.15rem !important; line-height: 1.5; }
/* Sekundær tekst: tydeligt hierarki – og stadig over 7:1 i kontrast */
html body :is(.muted, .hint, small, .small, figcaption, .lead, .th-sub, .th-date, .crumbs, .crumbs a, .mt-sub, .lvl-d, .fn-item span, .mig-tile small) { color: var(--ink-2) !important; }
:is(.stat-cards b, .th-ring b, .dev-stats b, .mt-num, .qz-score b, .ch-sc, .ch-t, .gs-st, .bill-price strong, .bill-count b, .tnum, .lvl, td.tnum, .hjc-tip strong) { font-variant-numeric: tabular-nums; }

/* Browserflader – også dem, vi ikke selv tegner */
::selection { background: color-mix(in srgb, var(--brand) 26%, transparent); color: var(--ink); }
input, textarea { caret-color: var(--brand); }
html { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--page); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 3px solid var(--brand) !important; outline-offset: 2px !important; }
a { text-underline-offset: .18em; text-decoration-thickness: from-font; }
:where(main, .panel-main) p a, :where(main, .panel-main) li > a:not(.btn) { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); }
:where(main, .panel-main) p a:hover, :where(main, .panel-main) li > a:not(.btn):hover { text-decoration-color: currentColor; }
hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- Sidehoved ---------- */
.top { background: color-mix(in srgb, var(--page) 94%, transparent) !important; border-bottom: 1px solid var(--line) !important; }   /* ingen backdrop-filter: den ville fange mobilmenuen (position: fixed) */
.brand { font-weight: 800 !important; letter-spacing: -.02em; font-size: 1.3rem !important; color: var(--ink); }
.brand .ic { color: var(--brand); }
#nav > a { color: var(--ink-2) !important; font-weight: 650 !important; position: relative; border-bottom: 0 !important; }
#nav > a:hover { color: var(--ink) !important; }
#nav > a.active, #nav > a[aria-current="page"] { color: var(--ink) !important; }
@media (min-width: 701px) {
  #nav > a.active::after, #nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px; border-radius: 2px; background: var(--brand); }
}
.tourbtn { width: 40px !important; height: 40px !important; border: 0 !important; border-radius: var(--r-ctl) !important; background: transparent !important; color: var(--ink-2); transition: background-color .15s var(--ease), color .15s var(--ease); }
.tourbtn:hover { background: var(--soft) !important; color: var(--ink); }
.tourbtn .ic { width: 20px !important; height: 20px !important; }
.stats { gap: 2px !important; }
.top .tourbtn.acct-guest { width: auto !important; padding: 0 18px !important; background: var(--action) !important; color: #fff !important; font-weight: 650; }
.top .tourbtn.acct-guest:hover { background: var(--action-hover) !important; color: #fff !important; }
.acct-in, html[data-theme="dark"] .acct-in { background: var(--action) !important; color: #fff !important; width: 34px !important; height: 34px !important; margin: auto; }
.lvl { font-size: .82rem !important; font-weight: 700 !important; color: var(--ink-2) !important; margin-left: 8px; }
.lvl .bar { height: 6px !important; border: 0 !important; background: var(--soft) !important; }
.lvl .bar i { background: var(--sun) !important; }
@media (max-width: 700px) {
  #nav { background: color-mix(in srgb, var(--card) 94%, transparent) !important; backdrop-filter: blur(12px); border-top: 1px solid var(--line) !important; box-shadow: none !important; }
  #nav a { border-radius: var(--r-ctl) !important; }
  #nav a.active, #nav a[aria-current="page"] { background: var(--brand-soft) !important; color: var(--ink) !important; }
  .lvl { margin-left: 2px; min-width: 64px !important; }
}

/* ---------- Knapper og felter ---------- */
.btn { border-radius: var(--r-ctl) !important; font-weight: 650 !important; letter-spacing: 0; min-height: 44px;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease) !important; }
.btn.sm { min-height: 36px; }
.btn.go { background: var(--action) !important; border-color: var(--action) !important; color: #fff !important; }
.btn.go:hover:not([disabled]) { background: var(--action-hover) !important; border-color: var(--action-hover) !important; }
.btn:not(.go):not(.ghost) { background: var(--card) !important; border: 1px solid var(--line-2) !important; color: var(--ink) !important; }
.btn:not(.go):not(.ghost):hover:not([disabled]) { border-color: var(--ink-2) !important; background: var(--card) !important; }
.btn.ghost { background: transparent !important; border: 1px solid transparent !important; color: var(--ink) !important; }
.btn.ghost:hover:not([disabled]) { background: var(--soft) !important; }
/* Grønne knapper (»Ja«, »Rigtigt«) – samme fejl som de røde: hvid tekst på hvid baggrund ved hover */
.btn.yes:not(.go):not(.ghost):hover:not([disabled]) { background: #06593F !important; border-color: #06593F !important; color: #fff !important; }
/* Røde knapper (»Afslut«, »Slet«) beholder deres farve ved hover – før blev de hvide med hvid tekst */
.btn.danger:not(.go):not(.ghost):hover:not([disabled]) { background: #8F2716 !important; border-color: #8F2716 !important; color: #fff !important; }
html[data-theme="dark"] .btn.danger:not(.go):not(.ghost):hover:not([disabled]) { background: #A8331F !important; border-color: #A8331F !important; color: #fff !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn.danger:not(.go):not(.ghost):hover:not([disabled]) { background: #A8331F !important; border-color: #A8331F !important; color: #fff !important; } }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea {
  border-radius: var(--r-ctl) !important; border: 1px solid var(--line-2) !important; background: var(--card) !important; color: var(--ink) !important;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):hover, select:hover, textarea:hover { border-color: var(--ink-2) !important; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 0 !important; border-color: var(--brand) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent) !important; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--action); }

/* ---------- Flader: sektioner er flade, kun gentagne ting er kort ---------- */
#main > .box:not(:has(form, input, select, textarea, table, .qz-opt)),
#main > section.box:not(:has(form, input, select, textarea, table, .qz-opt)),
#main .mt-more .box, #main .landing > .box {
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; }
#main > .box, #main > section { margin-top: clamp(28px, 4vw, 44px); }
#main > .box:first-child, #main > section:first-child, #main > .crumbs + * { margin-top: 0; }
#main > .box > h2:first-child, #main > section.box > h2:first-child { margin-bottom: 16px !important; }
/* Kasser, der stadig er kasser (formularer, tabeller, valg) */
.box { border-radius: var(--r-card) !important; border-color: var(--line) !important; box-shadow: none !important; }

/* Kort (gentagne elementer) – én fælles form */
.fn-item, .mastery li, .dp-steps li, .lvl-opt, .pack-card, .mig-tile, .mt-pick-test, .tech-card, .game, .tile, .lib-card, .bill-plan, .bill-method, .sh-btn, .ch-pick li, .sh-mine li {
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r-card) !important; box-shadow: none !important;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease) !important; }
:is(.fn-item, .lvl-opt, .pack-card, .mig-tile, .mt-pick-test, .tech-card, .bill-plan, .bill-method, .sh-btn):hover {
  border-color: var(--line-2) !important; box-shadow: var(--lift) !important; transform: translateY(-2px) !important; }
.ch-pick li, .sh-mine li { padding: 14px 16px !important; margin-bottom: 8px; }
.ch-pick li:first-child, .sh-mine li:first-child { border-top: 1px solid var(--line) !important; }

/* Hjem: Dagens plan og Dine emner */
.dp-steps li { padding: 14px 16px !important; }
.dp-steps li.is-next { border-color: var(--brand-line) !important; box-shadow: var(--lift) !important; }
.dp-steps li.is-done { background: var(--soft) !important; border-color: transparent !important; }
.dp-bar, .mp-bar { background: var(--soft) !important; border: 0 !important; }
.today-hero { padding-top: clamp(16px, 3vw, 32px) !important; }
.today-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem) !important; margin-bottom: 6px !important; }
.th-date { font-weight: 600 !important; font-size: 1rem !important; margin: 0 0 18px !important; letter-spacing: 0 !important; }
.th-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem) !important; font-weight: 700 !important; }
.th-ring .ring-bg { stroke: var(--soft) !important; }
.th-ring b { font-weight: 800; letter-spacing: -.02em; }
.ring-fg[stroke-dasharray^="0.0 "] { display: none; }   /* ingen enlig prik, når man husker 0 kort */

/* Find noget nyt: ikon og titel på linje, roligt */
.fn-grid { gap: 12px !important; }
.fn-item { padding: 16px 18px !important; gap: 4px !important; }
.fn-item b { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.fn-item b .ic { color: var(--brand); }

/* Mig: en liste, ikke en mur af ens kort */
.mig-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)) !important; gap: 10px !important; }
.mig-tile { display: grid !important; grid-template-columns: 40px 1fr auto; grid-template-rows: min-content min-content; align-content: center; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 14px 16px !important; min-height: 0 !important; }
.mig-tile .mig-ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--brand-soft); }
.mig-tile .mig-ic .ic { width: 20px !important; height: 20px !important; color: var(--brand) !important; }
.mig-tile b { font-size: 1.08rem !important; font-weight: 700 !important; grid-column: 2; }
.mig-tile small { grid-column: 2; font-size: .92rem !important; }
.mig-tile::after { content: ""; grid-column: 3; grid-row: 1 / span 2; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-top: 2px solid var(--ink-2); transform: rotate(45deg); margin-right: 4px; }

/* Huskepakker: niveauvalg med ikon på linje */
.lvl-opt { display: grid !important; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: center; padding: 20px !important; }
.lvl-opt .lvl-ic { width: auto !important; height: auto !important; background: none !important; border: 0 !important; padding: 0 !important; color: var(--brand); display: grid; }
.lvl-opt .lvl-ic .ic { width: 24px; height: 24px; }
.lvl-opt b { font-size: 1.25rem !important; }
.lvl-opt .lvl-d, .lvl-opt .lvl-n { grid-column: 1 / -1; }
.lvl-opt .lvl-n { color: var(--brand) !important; font-weight: 700; }

/* Øvning: rolige svarmuligheder */
.mc-opt { border-radius: var(--r-ctl) !important; border: 1px solid var(--line-2) !important; background: var(--card) !important; font-weight: 600 !important; }
.mc-opt:hover:not([disabled]) { border-color: var(--brand) !important; }
.mc-key, .qz-opt kbd { border-radius: 6px !important; border: 1px solid var(--line-2) !important; background: var(--soft) !important; color: var(--ink) !important; font-variant-numeric: tabular-nums; }

/* Brødkrummer */
.crumbs { font-size: .92rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* ---------- Forsiden for besøgende ---------- */
.mt-wrap { padding-top: clamp(8px, 3vw, 32px) !important; }
.mt-stage { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: clamp(8px, 2vw, 20px) 0 !important; min-height: 0 !important; gap: 18px !important; width: min(100%, 48rem) !important; }
.mt-h1 { font-size: clamp(2.6rem, 7.4vw, 4.6rem) !important; line-height: 1 !important; letter-spacing: -.02em !important; max-width: 14ch; }
.mt-sub { font-size: clamp(1.1rem, 2vw, 1.3rem) !important; max-width: 36ch !important; }
.mt-meta { margin: -6px 0 0; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.mt-res-h { margin: 0; font-size: 1.1rem !important; font-weight: 700 !important; color: var(--ink-2) !important; letter-spacing: 0 !important; }
.mt-choose { gap: 14px !important; margin-top: 10px !important; }
.mt-pick-test { padding: 20px !important; border-width: 1px !important; }
.mt-pick-test b { font-size: 1.4rem !important; font-weight: 800 !important; letter-spacing: -.02em; }
.mt-pt-go { color: var(--brand) !important; font-weight: 700 !important; }
.mt-pt-art span { border-radius: 8px !important; }
.mt-more { border-top: 1px solid var(--line) !important; padding-top: clamp(32px, 5vw, 56px) !important; margin-top: clamp(24px, 4vw, 40px); }
.mt-more-h { font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important; font-weight: 800 !important; letter-spacing: -.02em !important; max-width: 20ch; margin-bottom: 10px !important; }
.land-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: clamp(20px, 3vw, 40px) !important; margin-top: clamp(28px, 4vw, 44px) !important; }
#main .land-cards .box { border-top: 2px solid var(--ink) !important; padding-top: 16px !important; margin: 0 !important; }
.land-cards h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem !important; }
.land-cards h2 .ic { color: var(--brand); width: 22px; height: 22px; }
.gintro-steps li::marker { color: var(--brand); font-weight: 800; }
.land-price { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r-card) !important; padding: 22px 24px !important; }

/* Abonnement, delte kort, udfordringer: flade helte uden glød */
.bill-hero, .sh-hero { background: transparent !important; border: 0 !important; padding: clamp(8px, 2vw, 20px) 0 clamp(20px, 3vw, 32px) !important; animation: none !important; }
.bill-hero h1, .sh-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem) !important; }
.sh-sub { margin: 0 0 10px; font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; font-family: var(--display); }
.bill-count { background: var(--card) !important; }
.bill-count b { color: var(--ink) !important; font-family: var(--display); font-weight: 800; }
.bill-plan.on, .bill-method.on { border-color: var(--action) !important; box-shadow: 0 0 0 1px var(--action) !important; transform: none !important; }
.bill-badge { background: var(--ink) !important; color: var(--card) !important; }
.qz-score, html[data-theme="dark"] .qz-score { background: var(--ink) !important; color: var(--card) !important; border-radius: 18px !important; }
.qz-end.won .qz-score, html[data-theme="dark"] .qz-end.won .qz-score { background: var(--mint-dark) !important; color: #fff !important; }
html[data-theme="dark"] .qz-end.won .qz-score { color: #0E121A !important; }
.qz-prog i, .gen-bar i, .mt-prog i { background: var(--action) !important; }

/* ---------- Beskeder, dialoger og bund ---------- */
#toast { background: var(--ink) !important; color: var(--card) !important; border-radius: 12px !important; box-shadow: var(--pop) !important; font-weight: 600 !important; }
html[data-theme="dark"] #toast .toast-x { background: rgba(0, 0, 0, .08); }
@media (max-width: 700px) { #toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; max-width: calc(100vw - 32px); } }
.announce { background: var(--brand-soft) !important; border: 1px solid var(--brand-line) !important; color: var(--ink) !important; }
dialog { border-radius: 16px !important; box-shadow: var(--pop) !important; border: 1px solid var(--line) !important; }
.foot { background: transparent !important; border-top: 1px solid var(--line) !important; }
.foot-in { max-width: 1120px !important; padding: 28px clamp(16px, 4vw, 40px) !important; font-size: .95rem; }
.foot-in p { color: var(--ink-2); }
.foot-in p b { color: var(--ink); }
.foot-in a { color: var(--ink-2) !important; font-weight: 600 !important; text-decoration: none !important; }
.foot-in a:hover { color: var(--ink) !important; text-decoration: underline !important; }
.foot .btn.sm { background: transparent !important; border-color: var(--line) !important; }

/* ---------- Admin og lærerside: samme system, tættere ---------- */
.panel-top .brand { font-size: 1.15rem !important; }
.panel-tabs [role=tab] { border-bottom: 0 !important; position: relative; color: var(--ink-2) !important; font-weight: 650 !important; }
.panel-tabs [role=tab]:hover { color: var(--ink) !important; }
.panel-tabs [role=tab][aria-selected="true"] { color: var(--ink) !important; }
.panel-tabs [role=tab][aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.stat-cards > div { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r-card) !important; box-shadow: none !important; }
.stat-cards b { font-weight: 800 !important; letter-spacing: -.02em; }
.tbl th { font-weight: 700; }
.tbl thead th { color: var(--ink-2); font-size: .85rem; letter-spacing: .01em; }

/* ---------- Bevægelse: ét roligt udtryk ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.fn-item, .lvl-opt, .pack-card, .mig-tile, .mt-pick-test, .tech-card, .bill-plan, .bill-method, .sh-btn):hover { transform: none !important; }
}
html[data-calm] :is(.fn-item, .lvl-opt, .pack-card, .mig-tile, .mt-pick-test, .tech-card, .bill-plan, .bill-method, .sh-btn):hover { transform: none !important; }

/* Ikon-limen (.nobr) i knapper: flex-gap + mellemrum gav dobbelt luft (»Øv  nu«) */
.btn > .nobr.sp { margin-left: calc(.27em - 8px); }       /* kun når der står tekst før (»Log ind«) – ellers ingen forskydning */

/* »Sådan virker det«: nummer, fed start og tekst flyder som én sætning */
.gintro-steps li { display: block !important; position: relative; padding-left: 1.9rem; }
.gintro-steps li::before { position: absolute; left: 0; top: 0; }

/* Mobil: sidehovedet holder sig på én linje */
@media (max-width: 700px) {
  .top-in { flex-wrap: nowrap !important; gap: 6px !important; padding: 8px 12px !important; }
  .top .stats { flex-wrap: nowrap !important; margin-left: auto; }
  .tourbtn { width: 36px !important; height: 36px !important; }
  .tourbtn .ic { width: 19px !important; height: 19px !important; }
  .acct-in, html[data-theme="dark"] .acct-in { width: 30px !important; height: 30px !important; }
  .brand { font-size: 1.15rem !important; }
}
@media (max-width: 380px) { .lvl { display: none !important; } }

/* Advarselstekst (fx overskreden lektiefrist) – også i appen */
.warn-txt { color: #8A4F00; font-weight: 650; }
html[data-theme="dark"] .warn-txt { color: #F5CD6B; }
/* Automatisk videre står stille, mens en dialog er åben */
body:has(.leave-ov, .pdlg-ov, dialog[open]) .rv-auto-fill { animation-play-state: paused !important; }

/* Beskeder (toast) på mobil: fuld bredde lige over menuen, lav højde – og selve beskeden fanger ikke klik (kun ✕) */
@media (max-width: 700px) {
  #toast { left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; transform: translateY(20px) !important;
    padding: 10px 12px 10px 16px !important; font-size: .95rem; line-height: 1.35; pointer-events: none !important; }
  #toast.show { transform: none !important; }
  #toast .toast-x { pointer-events: auto; }
}
#toast.show { pointer-events: none; } #toast .toast-x { pointer-events: auto; }

/* Panel-hoved på mobil: »Admin«/»Lærer« må ikke skæres over – knapperne går på egen linje */
@media (max-width: 560px) {
  .panel-top .top-in { flex-wrap: wrap !important; row-gap: 8px; }
  .panel-top .brand { order: 1; }
  .panel-top .tag { white-space: nowrap; flex: none; order: 2; }
  .panel-top nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
}

/* =========================================================
   Huskevæsener 2: ét væsen pr. huskepakke + sjældne væsener i et album
   ========================================================= */
.pet2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pet2 { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; }
.pet2 .pet-art { width: 96px; max-width: none; }
.pet2-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pet2-txt b { font-family: var(--display); font-size: 1.1rem; }
.pet2-stage { font-weight: 700; color: var(--brand); font-size: .9rem; }
.pet2-src { color: var(--ink-2); font-size: .88rem; overflow-wrap: anywhere; }
.pet2-mood { font-size: .85rem; color: var(--ink-2); }
.pet2-txt small { color: var(--ink-2); font-size: .82rem; }
.pet2-txt .btn { margin-top: 6px; align-self: flex-start; }
.pet2-bar { display: block; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 6px 0 2px; }
.pet2-bar.sm { height: 6px; max-width: 260px; }
.pet2-bar i { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
.pet2.m-fog { background: var(--soft); }
.pet2.m-fog .pet-svg { filter: grayscale(1) blur(1px); opacity: .6; }
.pet2.m-tired .pet-svg { filter: saturate(.6); }
.pet2.m-egg .pet2-stage { color: var(--sun-dark); }
.pet2.shiny { border: 2px solid var(--sun); }
.pet2.small { display: block; padding: 4px; border-radius: 12px; }
.pet2.small .pet-art { width: 52px; }
.mp-pet { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .88rem; color: var(--ink-2); }
.mp-pet .mp-pets .pet-svg { width: 44px; height: 44px; }

.rare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.rare { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.rare b { font-family: var(--display); }
.rare small { color: var(--ink-2); font-size: .82rem; }
.rare.off b { color: var(--ink-2); font-weight: 600; }
.rare-art { display: block; width: 96px; aspect-ratio: 1; border-radius: 50%; }
.rare-art.locked .pet-svg { filter: brightness(0); opacity: .18; }
:root[data-theme="dark"] .rare-art.locked .pet-svg { filter: brightness(0) invert(1); opacity: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rare-art.locked .pet-svg { filter: brightness(0) invert(1); opacity: .16; } }
.rar { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.rar-almindelig { color: #0E7A55; } .rar-sjaelden { color: #1F56B8; } .rar-episk { color: #6A2FC0; } .rar-legendarisk { color: #8A5A00; }
:root[data-theme="dark"] .rar-almindelig { color: #5FD3A8; } :root[data-theme="dark"] .rar-sjaelden { color: #9EC2FF; } :root[data-theme="dark"] .rar-episk { color: #CDB0FF; } :root[data-theme="dark"] .rar-legendarisk { color: #F2C14E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rar-almindelig { color: #5FD3A8; } :root:not([data-theme="light"]) .rar-sjaelden { color: #9EC2FF; } :root:not([data-theme="light"]) .rar-episk { color: #CDB0FF; } :root:not([data-theme="light"]) .rar-legendarisk { color: #F2C14E; } }
.rare.on.rar-bg-legendarisk, .rare.on:has(.rar-bg-legendarisk) { border-color: var(--sun); }

/* Fejring: nyt væsen eller sjældent væsen – forsvinder af sig selv */
.pet-pop { position: fixed; inset: 72px 0 auto 0; display: flex; justify-content: center; z-index: 120; pointer-events: none; padding: 0 16px; animation: petPopIn .45s var(--ease) both; }
.pet-pop.out { animation: petPopOut .35s ease both; }
.pet-pop-card { pointer-events: auto; cursor: pointer; display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; max-width: 460px; width: 100%;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pop); padding: 14px 16px; }
.pet-pop-art { grid-row: 1 / 4; width: 88px; }
.pet-pop-art .rare-art { width: 88px; }
.pet-pop-card b { font-family: var(--display); font-size: 1.08rem; }
.pet-pop-card span { color: var(--ink-2); font-size: .9rem; }
.pet-pop-card .btn { justify-self: start; margin-top: 6px; }
@keyframes petPopIn { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes petPopOut { to { transform: translateY(-16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pet-pop, .pet-pop.out { animation: none; } }
html[data-calm] .pet-pop, html[data-calm] .pet-pop.out { animation: none; }

/* Bedrifter */
.ach-level { display: flex; flex-direction: column; gap: 4px; }
.ach-level b { font-family: var(--display); font-size: 1.3rem; }
.ach-group h2 { margin-top: 22px; }
.ach-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ach-list li { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 14px; }
.ach-list li.done { background: var(--mint-soft); border-color: transparent; }
.ach-e { font-size: 1.3rem; display: inline-flex; flex: none; }
.ach-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ach-t small { color: var(--ink-2); }
.ach-list .btn { flex: none; }

/* =========================================================
   Dagens tastetest
   ========================================================= */
.tt-rules { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.tt-run { display: flex; flex-direction: column; gap: 12px; }
.tt-hud { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tt-time { font-family: var(--display); font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2ch; }
.tt-live { margin-left: auto; color: var(--ink-2); }
.tt-words { height: calc(2 * 2.2em); overflow: hidden; font-size: clamp(1.15rem, 3.4vw, 1.5rem); line-height: 2.2em; background: var(--soft); border-radius: var(--r-ctl); padding: 0 14px; position: relative; }
.tt-inner { transition: transform .15s ease; word-spacing: .2em; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .tt-inner { transition: none; } }
.tt-inner span { padding: 2px 3px; border-radius: 6px; }
.tt-inner span.cur { background: var(--brand-soft); outline: 2px solid var(--brand-line); }
.tt-inner span.bad-now { background: var(--coral-soft); outline-color: var(--coral); }
.tt-inner span.ok { color: var(--mint-dark); }
.tt-inner span.bad { color: var(--coral-dark); text-decoration: line-through; text-decoration-thickness: 2px; }
.tt-in { font-size: 1.3rem; padding: 12px 14px; border-radius: var(--r-ctl); border: 2px solid var(--line-2); background: var(--card); color: var(--ink); width: 100%; }
.tt-in:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.tt-result { text-align: center; }
.tt-big { display: flex; flex-direction: column; align-items: center; }
.tt-big b { font-family: var(--display); font-size: clamp(3rem, 12vw, 4.5rem); line-height: 1; }
.tt-facts { list-style: none; padding: 0; margin: 14px 0; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.tt-facts li { display: flex; flex-direction: column; }
.tt-facts b { font-size: 1.3rem; }
.tt-facts span { color: var(--ink-2); font-size: .88rem; }
.tt-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.tt-list { list-style: none; padding: 0; margin: 0; }
.tt-list li { display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.tt-list li:last-child { border-bottom: 0; }
.tt-list li.me { background: var(--brand-soft); border-radius: 8px; }
.tt-rank { font-weight: 800; color: var(--ink-2); text-align: center; }
.tt-name { overflow-wrap: anywhere; }
.tt-acc { color: var(--ink-2); font-size: .88rem; min-width: 3.5em; text-align: right; }
.tt-hist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tt-hist li { display: flex; gap: 14px; flex-wrap: wrap; }
.tt-hist li span { color: var(--ink-2); }

.tt-result .tt-rec { display: inline-block; margin: 6px auto; padding: 8px 16px; }

/* Aldersvalg på mobil: ikon til venstre, tekst stablet – før blev »Barn« brudt op bogstav for bogstav */
@media (max-width: 700px) {
  .agegate .agecard, .agecard { display: grid !important; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; }
  .agecard .e { grid-row: 1 / span 3; margin: 0 !important; }
  .agecard b, .agecard .sub, .agecard small { grid-column: 2; overflow-wrap: normal; hyphens: manual; }
}

/* =========================================================
   Den røde tråd: samme sidehoved overalt – brødkrumme · overskrift · indledning
   ========================================================= */
.crumbs { margin: 0 0 10px !important; font-size: .84rem !important; line-height: 1.4; }
.crumbs ol { gap: 2px 4px !important; }
.crumbs li { color: var(--ink-2) !important; gap: 4px !important; }
.crumbs li + li::before { width: 5px !important; height: 5px !important; border-color: var(--line-2) !important; margin: 0 4px 0 2px !important; }
.crumbs a, .crumbs button { color: var(--ink-2) !important; font-weight: 500 !important; font-size: .84rem !important; text-decoration: none !important; padding: 2px 0 !important; }
.crumbs a:hover, .crumbs button:hover { color: var(--ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 650; }
main > .crumbs + h1, main > .crumbs + .center, main > .crumbs + section { margin-top: 0 !important; }

/* Hovedmenuen: fire faste steder */
@media (max-width: 760px) { #nav { grid-template-columns: repeat(4, 1fr) !important; } #nav a { font-size: .74rem !important; } }

/* Mig: tre grupper i stedet for én lang række fliser */
.mig-stats { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.mig-stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; display: flex; flex-direction: column; }
.mig-stats b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mig-stats span { color: var(--ink-2); font-size: .88rem; }
.mig-sec { margin-top: 22px; }
.mig-sec h2 { font-size: 1.05rem; color: var(--ink-2); text-transform: none; margin: 0 0 10px; }
.mig-sec .mig-grid { margin: 0; }

/* Udfordringer */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ch-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ch-card h2 { margin: 4px 0 0; }
.ch-card p { margin: 0; color: var(--ink-2); }
.ch-card .ch-status { color: var(--ink); font-weight: 600; font-size: .92rem; }
.ch-card .btn { margin-top: auto; }
.ch-card > p + .btn, .ch-card > .ch-status + .btn { margin-top: 8px; }
.ch-ic { font-size: 1.7rem; color: var(--brand); display: inline-flex; }

/* Emneoversigten: links samlet i bunden */
.mp-links { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.ch-grid > .box, .ch-grid > .ch-card { margin: 0 !important; align-self: stretch; }

/* =========================================================
   Udfordringer: oversigt, klassetrinvælger og de fem spil
   ========================================================= */
:root { --vs0: #2F6FE0; --vs1: #12A877; --vs2: #D9480F; --vs3: #7B3FD3; --vs4: #C2255C; --vs5: #0C8599; --vs6: #A16207; --vs7: #364FC7; }
:root[data-theme="dark"] { --vs0: #8AB4FF; --vs1: #5FD3A8; --vs2: #FF9F6B; --vs3: #CDB0FF; --vs4: #FF8FB8; --vs5: #66D9E8; --vs6: #F2C14E; --vs7: #A5B4FC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vs0: #8AB4FF; --vs1: #5FD3A8; --vs2: #FF9F6B; --vs3: #CDB0FF; --vs4: #FF8FB8; --vs5: #66D9E8; --vs6: #F2C14E; --vs7: #A5B4FC; } }

.dc-progress { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin: 4px 0 18px; font-size: .95rem; }
.mig-sec-h { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 10px; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.dc-card { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.dc-card:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.dc-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.dc-card b { font-family: var(--display); font-size: 1.08rem; }
.dc-card small { color: var(--ink-2); font-size: .88rem; }
.dc-card .dc-st { margin-top: auto; padding-top: 8px; font-size: .84rem; font-weight: 650; color: var(--brand); }
.dc-card .dc-st.done { color: var(--mint-dark); }
.dc-card.is-done { background: var(--mint-soft); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .dc-card { transition: none; } .dc-card:hover { transform: none; } }

.dc-grade { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; max-width: 360px; }
.dc-grade label { font-weight: 650; }
.dc-grade select { padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; }
.dc-grade small { color: var(--ink-2); }

.dc-run { display: flex; flex-direction: column; gap: 12px; }
.dc-words { columns: 2; column-gap: 28px; padding-left: 1.6em; margin: 4px 0; font-size: 1.2rem; line-height: 1.9; }
@media (min-width: 700px) { .dc-words { columns: 4; } }
.dc-words li::marker { color: var(--ink-2); font-size: .9rem; }
.dc-words.facit li.ok { color: var(--mint-dark); }
.dc-words.facit li.bad { color: var(--coral-dark); }
.dc-words.facit small { color: var(--ink-2); }
.dc-recall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px 28px; padding-left: 1.8em; margin: 0; }
.dc-recall input { width: 100%; padding: 8px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; }
.dc-digit { font-family: var(--display); font-size: clamp(4rem, 18vw, 7rem); font-weight: 800; text-align: center; min-height: 1.3em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dc-digit.pop { animation: dcPop .25s var(--ease); }
@keyframes dcPop { from { transform: scale(.7); opacity: .2; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dc-digit.pop { animation: none; } }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.dc-problem { font-family: var(--display); font-size: clamp(2.4rem, 9vw, 3.6rem); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.dc-facit { list-style: decimal; padding-left: 1.6em; text-align: left; display: grid; gap: 10px; margin: 14px 0; }
.dc-facit li { display: flex; flex-direction: column; gap: 2px; }
.dc-facit li.ok span { color: var(--mint-dark); font-weight: 650; }
.dc-facit li.bad span { color: var(--coral-dark); }
.dc-facit small { color: var(--ink-2); }
.tt-result .dc-words, .tt-result .dc-facit { text-align: left; }

.vs-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; max-width: 460px; margin: 0 auto; width: 100%; }
.vs-card { aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line-2); background: var(--brand-soft); display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--c); transition: transform .15s; }
.vs-card:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--brand); }
.vs-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.vs-card.up { background: var(--card); border-color: var(--c); }
.vs-card.found { background: var(--soft); border-color: transparent; opacity: .75; cursor: default; }
.vs-card .ic { width: 52%; height: 52%; stroke-width: 2.2; }
@media (prefers-reduced-motion: reduce) { .vs-card { transition: none; } }
.kk-top { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: flex-end; }
.kk-list { margin-top: 10px; }
.dc-progress { display: block; }
.dc-progress .pet2-bar { margin-top: 8px; }
.tt-result > p { text-align: center; margin-left: auto; margin-right: auto; }

/* Fejringen: 7 sekunder med en nedtællingsbjælke i bunden – pauser, når man holder musen over den */
.pet-pop-card { position: relative; overflow: hidden; padding-bottom: 18px; }
.pet-pop-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--soft); }
.pet-pop-bar i { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left center; animation: popBar 7s linear forwards; }
.pet-pop-card:hover .pet-pop-bar i, .pet-pop-card:focus-within .pet-pop-bar i { animation-play-state: paused; }
@keyframes popBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Langsigtede bedrifter: fold-ud */
.long-fold { margin-top: 22px; padding: 0; overflow: hidden; }
.long-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.long-fold > summary::-webkit-details-marker { display: none; }
.long-fold > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin-left: auto; transition: transform .2s; }
.long-fold[open] > summary::after { transform: rotate(-135deg); }
.long-fold > summary span { display: flex; flex-direction: column; gap: 2px; }
.long-fold > summary b { font-family: var(--display); font-size: 1.1rem; }
.long-fold > summary small { color: var(--ink-2); }
.long-fold > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.long-fold > p, .long-fold > ul { margin: 0 18px 14px; }
.long-fold .ach-list li .rare-art { width: 52px; flex: none; }
.ach-group .long-fold { margin-top: 8px; }

/* Forsiden: »De daglige udfordringer« – én lille linje */
.dc-strip { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 10px 14px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; text-decoration: none !important; }
.dc-strip:hover { border-color: var(--brand-line); }
.dc-strip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.dc-strip-ic { font-size: 1.3rem; display: inline-flex; color: var(--sun-dark, var(--brand)); }
.dc-strip-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dc-strip-t b { font-size: .98rem; }
.dc-strip-t small { color: var(--ink-2); font-size: .84rem; }
.dc-dots { display: flex; gap: 5px; }
.dc-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--soft); border: 1.5px solid var(--line-2); }
.dc-dots i.on { background: var(--mint); border-color: var(--mint); }
.dc-strip-go { font-size: 1.4rem; color: var(--ink-2); line-height: 1; }
@media (max-width: 420px) { .dc-dots { display: none; } }

/* Ordjagt: bogstaverne som brikker */
.oj-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.oj-tiles span { width: clamp(42px, 11vw, 58px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); border: 2px solid var(--brand-line);
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 5vw, 1.9rem); color: var(--ink); }

/* Fokus på hovedindholdet efter sideskift: ingen ramme ved museklik, kun ved tastatur */
#app[tabindex="-1"]:focus:not(:focus-visible), main[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
/* Knapper, der ser ud som links – ens overalt */
.linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--brand, var(--blue)); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; font-weight: 650; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.linkbtn:focus-visible { outline: 2px solid var(--brand, var(--blue)); outline-offset: 2px; border-radius: 4px; }

/* Niveau og titel på hver sin linje (»Niveau 1« / »Nybegynder«) */
.ach-level > div { display: flex; flex-direction: column; gap: 2px; }
/* Trykflader: mindst 40 px høje */
.btn.sm { min-height: 40px; }

/* Valglister i formularer (niveau, klassetrin) ser ud som tekstfelterne */
.login-form select { font: inherit; font-size: 1.05rem; padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--card); color: inherit; width: 100%; min-height: 46px; }
.login-form select:focus-visible { outline: 3px solid var(--brand, #2b47d0); outline-offset: 2px; }
.login-form .chk { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 6px; }
.code-link { margin: 14px 0 6px; font-size: 1.02rem; }
.code-link .linkbtn { font-weight: 700; }
.r15 { margin-top: 4px; }
/* Niveau-spørgsmålet (én gang for konti fra før niveauet fandtes) */
.lvl-gate .ov-in { max-width: 520px; margin: 0 auto; }
.lvl-gate h1 { margin-top: 0; }
/* Udfordringer: niveauet vist kompakt med »Skift niveau« */
.dc-grade-mini { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 4px 0 10px; }
/* Grupper */
.grp-list { display: grid; gap: 10px; }
.grp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1.5px solid var(--line, #d7dce6); border-radius: 12px; }
.grp-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--soft, #eef1fb); flex: none; }
.grp-t { display: grid; flex: 1 1 180px; min-width: 0; }
.grp-t small { color: var(--muted, #4a5468); }
.grp-links, .grp-new { margin-top: 12px; flex-wrap: wrap; gap: 8px; }
.grp-code { flex-wrap: wrap; gap: 8px; }
.grp-code input { flex: 1 1 160px; min-width: 0; font-size: 1.05rem; padding: 10px 12px; text-transform: uppercase; letter-spacing: .08em; }
.invite-box .row { margin: 6px 0 10px; }

/* Grupper-siden: klasse eller familie */
.kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 14px; }
.kind-opt { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.kind-opt:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.kind-opt small { color: var(--muted); }
.dpa-box { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.inv-grid { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.inv-qr svg, .print-qr svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.inv-qr { max-width: 180px; }
.inv-link { font-weight: 700; word-break: break-all; }
.code-big.sm { font-size: 1.15rem; padding: 2px 8px; }
.print-qr { width: 220px; margin: 10px 0; }
@media (max-width: 560px) { .inv-grid { grid-template-columns: 1fr; } .inv-qr { max-width: 200px; } }
/* Abonnement: hak for 18 år og handelsbetingelser – hver på sin linje */
.bill-chk { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-weight: 600; }
.bill-chk input { margin-top: 3px; flex: none; }
.bill-ul { margin: 10px 0 0; padding-left: 18px; font-size: .92rem; display: grid; gap: 4px; }
.lvl-gate .ov-in { height: auto; max-height: calc(100vh - 32px); overflow: auto; margin: 16px auto; border-radius: 18px; }

/* =====================================================================
   Forsiden (#velkommen) – velkomst, eksempler i testkortene og trin med eksempler.
   Ingen tegninger: kun tekst, farvede ord og ikoner fra ikonsættet.
   ===================================================================== */
.mt-eyebrow { margin: 0; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .95rem; }
.mt-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 !important; }
.mt-meta span { display: inline-flex; align-items: center; gap: 7px; }
.mt-meta span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
/* Testkortene: et lille eksempel på teknikken, før man trykker */
.mt-choose { align-items: stretch; }
.mt-pick-test { gap: 6px !important; }
.mt-pick-test > span:not(.mt-pt-art):not(.mt-pt-go) { color: var(--ink-2); }
.mt-pt-art { height: auto !important; min-height: 116px; flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 10px !important;
  padding: 14px 16px; margin-bottom: 8px; border-radius: 12px; background: var(--page); border: 1px solid var(--line); box-sizing: border-box; }
.mt-pt-art span { padding: 0 !important; background: none !important; color: inherit !important; animation: none !important; border-radius: 0 !important; font-weight: inherit !important; }
.mt-pt-art .pt-label { font-size: .85rem; font-weight: 700 !important; color: var(--ink-2) !important; }
.mt-pt-art .pt-sent { font-size: 1.15rem; font-weight: 600 !important; line-height: 1.7; color: var(--ink) !important; }
.mt-pt-art mark { padding: 2px 8px; border-radius: 7px; font-weight: 800; color: #fff; background: var(--action); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mt-pt-art mark.w2 { background: #1B7F86; } .mt-pt-art mark.w3 { background: #B4581E; }
.mt-pt-art .pt-stops { display: flex !important; gap: 10px; width: 100%; }
.mt-pt-art .pt-stop { flex: 1 1 0; min-width: 0; display: flex !important; flex-direction: column; align-items: flex-start; gap: 5px; position: relative; }
.mt-pt-art .pt-stop i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--card); font-size: .78rem; font-weight: 800; position: relative; z-index: 1; }
.mt-pt-art .pt-stop:not(:last-child)::after { content: ''; position: absolute; top: 11px; left: 30px; right: -6px; border-top: 2px dashed var(--line-2); }
.mt-pt-art .pt-stop small { font-size: .8rem; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.mt-pt-art .pt-stop mark { font-size: .95rem; }
/* Huskeruten i testen: nummererede stop i stedet for en tegning af et hus */
.rt-route { list-style: none; margin: 4px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; width: min(100%, 34rem); }
.rt-stop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 12px; min-height: 92px; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.rt-stop .rt-num { position: absolute; top: -10px; left: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line-2); font-size: .8rem; font-weight: 800; transition: background .5s var(--ease), color .5s var(--ease); }
.rt-stop .rt-ic .ic { width: 22px; height: 22px; color: var(--ink-2); }
.rt-stop .rt-name { font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.rt-stop .rt-item { font-weight: 800; color: #fff; background: var(--action); padding: 2px 10px; border-radius: 8px; animation: rtItemIn .45s var(--ease); }
.rt-stop .rt-item[hidden] { display: none; }
.rt-stop.seen { background: color-mix(in srgb, var(--action) 6%, var(--card)); }
.rt-stop.seen .rt-num { background: var(--ink-2); color: var(--card); border-color: var(--ink-2); }
.rt-stop.on { border-color: var(--action); background: var(--brand-soft); transform: translateY(-3px); }
.rt-stop.on .rt-num { background: var(--action); color: #fff; border-color: var(--action); }
.rt-stop.on .rt-ic .ic { color: var(--brand); }
@keyframes rtItemIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (max-width: 460px) { .rt-route { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .rt-stop, .rt-stop .rt-num { transition: none; } .rt-stop.on { transform: none; } .rt-stop .rt-item { animation: none; } }
html[data-calm] .rt-stop.on { transform: none; } html[data-calm] .rt-stop .rt-item { animation: none; }
/* Resten af velkomstsiden */
#main .mt-more { border-top: 0 !important; }
#main .landing { gap: clamp(44px, 7vw, 80px) !important; }
.land-intro { text-align: center; max-width: 44rem; margin: 0 auto; }
#main .land-intro .mt-more-h { margin: 0 auto 12px !important; max-width: none; }
.land-lead { margin: 0; font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.land-steps { list-style: none; margin: calc(-1 * clamp(16px, 3vw, 40px)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 18px; }
.land-step { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.land-step h3 { margin: 8px 0 0; font-size: 1.2rem; }
.land-step > p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.55; }
.ls-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--action); color: #fff; font-weight: 800; }
.ls-demo { margin-top: auto; padding: 14px; border-radius: 12px; background: var(--page); border: 1px solid var(--line); }
.ls-packs { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-packs span { padding: 5px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line-2); font-weight: 700; font-size: .9rem; }
.ls-packs .own { border-style: dashed; color: var(--brand); }
.ls-digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ls-digits span { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; text-align: center; }
.ls-digits b { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; color: var(--ink); }
.ls-story { margin: 10px 0 0; font-weight: 600; line-height: 1.6; }
.ls-demo mark { background: var(--brand-soft); color: var(--ink); padding: 1px 5px; border-radius: 5px; font-weight: 800; }
.ls-q { font-weight: 600; }
.ls-a { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 8px; background: var(--mint-soft); color: var(--mint-dark); font-weight: 800; }
.ls-time { display: flex; gap: 6px; margin-top: 16px; background: linear-gradient(var(--line-2), var(--line-2)) 0 4px / 100% 2px no-repeat; }
.ls-time span { position: relative; padding-top: 16px; font-size: .78rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.ls-time span::before { content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--action); }
.ls-time span:nth-child(1) { flex: 1 1 0; } .ls-time span:nth-child(2) { flex: 1.3 1 0; } .ls-time span:nth-child(3) { flex: 1.8 1 0; } .ls-time span:nth-child(4) { flex: 2.2 1 0; }
#main .landing :is(.land-fun, .land-who) > h2, #main .land-final h2 { font-size: clamp(1.5rem, 3vw, 2rem) !important; margin: 0 0 20px !important; text-align: center; letter-spacing: -.02em; }
.land-fun ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 20px 28px; margin: 0; }
.land-fun li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); line-height: 1.5; }
.land-fun li b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.lf-ic { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.lf-ic .ic { width: 22px; height: 22px; }
#main .landing .land-cards { margin-top: 0 !important; gap: 18px !important; }
#main .mt-more .landing .land-cards .box, #main .landing .land-cards .box { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r-card) !important; padding: 20px !important; margin: 0 !important; }
.land-cards h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 1.2rem; }
.land-cards p { margin: 0; color: var(--ink-2); line-height: 1.55; }
#main .mt-more .landing > .land-price.box, #main .landing > .land-price.box { background: var(--brand-soft) !important; border: 1px solid var(--brand-line) !important; border-radius: var(--r-card) !important; padding: 22px 24px !important; margin: 0 !important; }
.land-final { text-align: center; padding: clamp(28px, 5vw, 48px) 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.land-final p { max-width: 38rem; margin: 0 auto 18px; color: var(--ink-2); line-height: 1.55; }
.land-final .land-cta { justify-content: center; }
.land-final .code-link { margin: 14px auto 0; }
#main .land-final .code-link { display: block; text-align: center; }
.ls-demo mark { padding: 1px 2px; }

/* Forsiden: ens kort (overskrifter og eksempler flugter, også når teksten er forskellig lang) */
#main .mt-more { margin-top: 0 !important; padding-top: clamp(24px, 4vw, 40px) !important; }
.mt-wrap { padding-bottom: clamp(16px, 3vw, 32px) !important; }
@supports (grid-template-rows: subgrid) {
  .mt-pick-test { display: grid !important; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px !important; justify-items: start; }
  .mt-pick-test > .mt-pt-art { justify-self: stretch; }
  .mt-pick-test b { margin-top: 6px; }
  .land-step { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; justify-items: start; }
  .land-step > .ls-demo { justify-self: stretch; margin-top: 0; }
}
.land-final .land-cta .btn { min-width: 12rem; justify-content: center; }
@media (max-width: 520px) { .land-final .land-cta .btn, .lp-cta .row .btn { flex: 1 1 100%; } }

/* Forsiden: »Det har virket« – samme gule stil som eksemplerne på Værkstedet */
.land-proof { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(22px, 4vw, 40px);
  background: var(--sun-soft); border: 1px solid color-mix(in srgb, var(--sun) 45%, transparent); border-left: 4px solid var(--sun); border-radius: var(--r-card); }
.lp-tag, .vk-proof > b { color: color-mix(in srgb, var(--sun-dark) 70%, var(--ink)); }
.lp-tag { margin: 0 0 8px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
#main .land-proof h2 { margin: 0 0 14px !important; font-size: clamp(1.5rem, 3vw, 2.1rem) !important; line-height: 1.15 !important; letter-spacing: -.02em; text-align: left; }
.lp-story > p { margin: 0 0 12px; line-height: 1.6; }
.lp-quote { margin: 4px 0 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--sun); font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.4; color: var(--ink); }
.lp-quote p { margin: 0; }
.lp-how { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.lp-how li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.lp-how b { display: block; margin-bottom: 2px; }
.lp-how p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.lp-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sun-soft); color: color-mix(in srgb, var(--sun-dark) 70%, var(--ink)); }
.lp-ic .ic { width: 20px; height: 20px; }
.lp-src, .lp-more { margin: 0; font-size: .88rem; color: var(--ink-2); }
.lp-sci h3 { margin: 0 0 14px; font-size: 1.2rem; }
.lp-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.lp-facts li { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.lp-num { display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.lp-facts p { margin: 6px 0 4px; color: var(--ink-2); line-height: 1.5; }
.lp-facts small { font-size: .82rem; color: var(--ink-2); }
.lp-more a { font-weight: 700; }
.lp-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  padding-top: clamp(18px, 3vw, 24px); border-top: 1px solid color-mix(in srgb, var(--sun) 50%, transparent); }
.lp-cta p { margin: 0; flex: 1 1 20rem; font-size: 1.05rem; line-height: 1.55; }
.lp-cta .row { gap: 10px; }
@media (max-width: 760px) { .land-proof { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Udfordringer 2.0: startside med eksempel, nedtælling, facit, tips, udvikling – og Farvefælden + Én tilbage
   ========================================================= */
.dc-sec-sub { margin: -4px 0 10px; }
.dc-card .dc-tag { align-self: flex-start; margin-top: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.dc-card.is-done .dc-tag { background: var(--card); }
.dc-intro-grid { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 8px; }
@media (max-width: 640px) { .dc-intro-grid { grid-template-columns: 1fr; gap: 12px; } }
.dc-intro h2 { margin-top: 0; }
.dc-demo { background: var(--soft); border-radius: var(--r-card); padding: 18px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 120px; justify-content: center; }
.dc-trains { font-size: .76rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.dcd-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dcd-arrow { color: var(--ink-2); font-size: 1.2rem; }
.dcd-words { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dcd-words li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; font-size: .9rem; font-weight: 650; min-width: 64px; text-align: center; }
.dcd-words.blank li { border-style: dashed; color: var(--ink-2); }
.dcd-words li.q { color: var(--brand); border-color: var(--brand-line); }
.dcd-digits, .dcd-tiles, .dcd-cards, .dcd-syms { display: flex; gap: 5px; }
.dcd-digits i, .dcd-tiles i { font-style: normal; width: 30px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.dcd-digits i.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.dcd-tiles i { background: var(--brand-soft); border: 2px solid var(--brand-line); }
.dcd-in { background: var(--card); border: 2px solid var(--mint); border-radius: 8px; padding: 4px 10px; font-weight: 800; letter-spacing: .06em; }
.dcd-cards i { width: 34px; height: 34px; border-radius: 8px; background: var(--brand-soft); border: 2px solid var(--line-2); display: grid; place-items: center; color: var(--vs2); }
.dcd-cards i.up { background: var(--card); border-color: var(--vs2); }
.dcd-cards .ic, .dcd-syms .ic { width: 60%; height: 60%; }
.dcd-syms i { font-style: normal; width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); position: relative; }
.dcd-syms i.hit { border: 2px solid var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.dcd-syms i b { position: absolute; bottom: -20px; font-size: .68rem; color: var(--mint-dark); white-space: nowrap; }
.dcd-syms { padding-bottom: 14px; }
.dcd-sum { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.dcd-sum b { color: var(--mint-dark); }
.dcd-ok { color: var(--mint-dark); display: inline-flex; }
.ff-mini { background: #1B2030; border-radius: 10px; padding: 8px 14px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; }
.ff-mini-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 2px solid var(--brand); border-radius: 10px; padding: 6px 10px; font-weight: 700; }
.ff-mini-btn i, .ff-btn i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.dc-start-row { align-items: center; gap: 10px; }
.dc-start-row small { font-weight: 500; color: var(--ink-2); }
.dc-count { text-align: center; padding: 40px 16px; }
.dc-count-n { display: block; font-family: var(--display); font-size: clamp(4rem, 20vw, 7rem); font-weight: 800; line-height: 1; color: var(--brand); }
.dc-practice-tag { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 99px; background: var(--sun-soft); color: var(--ink); font-weight: 700; font-size: .88rem; border: 1px solid var(--sun); }
.dc-timebar { height: 6px; }
.dc-timebar i { transition: width .25s linear; }
.dc-mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.dc-mk .ic { width: 14px; height: 14px; stroke-width: 3; }
.dc-mk.ok { background: var(--mint-soft); color: var(--mint-dark); }
.dc-mk.bad { background: var(--coral-soft); color: var(--coral-dark); }
.dc-facit-box h2 { margin-top: 0; }
.dc-facit-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px 14px; counter-reset: fl; }
.dc-facit-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; counter-increment: fl; }
.dc-facit-list li::before { content: counter(fl) "."; color: var(--ink-2); font-size: .85rem; min-width: 1.6em; }
.dc-facit-list li.bad { background: var(--coral-soft); }
.dc-facit-list small { color: var(--ink-2); width: 100%; padding-left: calc(1.6em + 38px); margin-top: -4px; }
.dc-tip { display: flex; gap: 14px; align-items: flex-start; background: var(--sun-soft); border-color: transparent; }
.dc-tip h2 { margin: 0 0 4px; font-size: 1.1rem; }
.dc-tip p { margin: 0 0 10px; }
.dc-tip-ic { color: var(--sun-dark); display: inline-flex; flex: none; margin-top: 2px; }
.dc-tip-ic .ic { width: 26px; height: 26px; }
.dc-fact { font-size: .92rem; color: var(--ink-2); margin-top: 8px !important; }
.dc-fact b { color: var(--ink); }
.dc-hist-box h2 { margin-top: 0; }
.dc-hist { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 6px; align-items: flex-end; height: 150px; overflow-x: auto; }
.dc-hist li { flex: 1 0 34px; max-width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.dc-bar { width: 100%; height: var(--h); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 8px 8px 3px 3px; display: flex; justify-content: center; align-items: flex-start; min-height: 22px; }
.dc-bar b { font-size: .8rem; padding-top: 2px; }
.dc-hist li.now .dc-bar { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="dark"] .dc-hist li.now .dc-bar { color: #0E121A; }
.dc-hist li.inv .dc-bar { background: repeating-linear-gradient(45deg, var(--soft), var(--soft) 4px, transparent 4px, transparent 8px); border-style: dashed; }
.dc-hist small { font-size: .72rem; color: var(--ink-2); white-space: nowrap; }
.ok-txt { color: var(--mint-dark); font-weight: 700; }
/* Talrækken */
.tr-dots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tr-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--soft); border: 1.5px solid var(--line-2); }
.tr-dots i.on { background: var(--brand); border-color: var(--brand); }
.tr-rounds { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.tr-rounds li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-rounds .mono { font-size: 1.15rem; letter-spacing: .12em; font-weight: 700; }
.tr-rounds .mono i { font-style: normal; }
.tr-rounds .mono i.bad { color: var(--coral-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.tr-rounds small { color: var(--ink-2); }
/* Ordjagt */
.oj-fb { min-height: 1.6em; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .95rem; }
.oj-fb.ok { color: var(--mint-dark); }
.oj-fb.bad { color: var(--coral-dark); }
.oj-fb small { color: var(--ink-2); }
.oj-in { text-transform: uppercase; letter-spacing: .08em; text-align: center; font-weight: 700; }
.oj-err { min-height: 1.3em; margin: 0; color: var(--coral-dark); font-size: .9rem; font-weight: 600; }
.shake { animation: dcShake .35s; }
@keyframes dcShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
.oj-facit li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 10px; }
.oj-facit li small { grid-column: 1 / -1; }
.oj-mix { font-weight: 800; letter-spacing: .12em; color: var(--ink-2); min-width: 5.5em; }
.oj-ans { color: var(--ink) !important; font-weight: 500 !important; }
.oj-ans s { color: var(--coral-dark); }
/* Hovedregning */
.hr-fb { min-height: 1.5em; margin: -4px 0 0; text-align: center; display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 650; }
.hr-fb.ok { color: var(--mint-dark); } .hr-fb.bad { color: var(--coral-dark); }
.hr-in { text-align: center; font-size: 1.6rem; font-variant-numeric: tabular-nums; max-width: 260px; margin: 0 auto; }
.hr-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 6px; }
.hr-grid li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; background: var(--soft); font-variant-numeric: tabular-nums; }
.hr-grid li.bad { background: var(--coral-soft); }
.hr-grid small { color: var(--ink-2); width: 100%; padding-left: 30px; margin-top: -4px; }
/* Farvefælden: skærmen er altid mørk, så alle fire farver står tydeligt – også gul */
.ffk0 { color: #FF6B4A; } .ffk1 { color: #5AA9FF; } .ffk2 { color: #F7E04B; } .ffk3 { color: #3CCB7F; }
.ffs0 { background: #FF6B4A; } .ffs1 { background: #5AA9FF; } .ffs2 { background: #F7E04B; } .ffs3 { background: #3CCB7F; }
.ff-screen { background: #1B2030; border-radius: var(--r-card); min-height: 150px; display: grid; place-items: center; outline: none; box-shadow: 0 0 0 0 transparent; transition: box-shadow .15s; }
.ff-screen:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.ff-screen.ok { animation: ffOk .3s; } .ff-screen.bad { animation: ffBad .35s; }
@keyframes ffOk { 0% { box-shadow: 0 0 0 6px var(--mint); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes ffBad { 0% { box-shadow: 0 0 0 6px var(--coral); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ff-word { font-family: var(--display); font-size: clamp(2.6rem, 11vw, 4.2rem); font-weight: 800; letter-spacing: .05em; }
.ff-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .ff-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ff-btn { min-height: 58px; border-radius: var(--r-ctl); border: 2px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-weight: 750; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; touch-action: manipulation; }
.ff-btn:hover { border-color: var(--brand); }
.ff-btn:active { transform: scale(.97); }
.ff-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ff-btn kbd { font-size: .72rem; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--soft); color: var(--ink-2); font-family: inherit; }
@media (hover: none) { .ff-btn kbd, .nb-press kbd { display: none; } }
.ff-facts { justify-content: flex-start; margin: 0 0 10px; }
.ff-wrong { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ff-wrong li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.ff-chip { background: #1B2030; border-radius: 8px; padding: 2px 10px; font-family: var(--display); letter-spacing: .04em; }
/* Én tilbage */
.nb-stage { background: var(--soft); border-radius: var(--r-card); height: 170px; display: grid; place-items: center; border: 3px solid transparent; outline: none; transition: border-color .12s, background .12s; }
.nb-stage.ok { border-color: var(--mint); background: var(--mint-soft); }
.nb-stage.bad { border-color: var(--coral); background: var(--coral-soft); }
.nb-stage.miss { border-color: var(--sun); background: var(--sun-soft); }
.nb-sym { display: grid; place-items: center; color: var(--brand); }
.nb-sym .ic { width: 96px; height: 96px; stroke-width: 2; }
.nb-sym.pop { animation: dcPop .2s var(--ease); }
@media (prefers-reduced-motion: reduce) { .nb-sym.pop { animation: none; } }
.nb-press { width: 100%; min-height: 64px; font-size: 1.25rem; touch-action: manipulation; }
.nb-press kbd { font-size: .75rem; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .5); margin-left: 8px; font-family: inherit; font-weight: 600; }
.nb-example { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.nb-example i { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--brand); }
.nb-example i.hit { background: var(--mint-soft); outline: 2px solid var(--mint); }
.nb-example .ic { width: 60%; height: 60%; }
.nb-example span { color: var(--ink-2); }
.nb-prev { margin: 0; }
.nb-run h2 { margin: 4px 0 0; }
.nb-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.nb-table th, .nb-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.nb-table th { font-size: .85rem; color: var(--ink-2); font-weight: 650; }
@media (max-width: 480px) { .nb-table th:nth-child(3), .nb-table td:nth-child(3) { display: none; } }
#main > section.box.dc-tip.dc-tip { background: var(--sun-soft) !important; padding: 16px 18px !important; border-radius: var(--r-card) !important; border: 0 !important; }
.oj-facit .oj-mix { color: var(--ink-2) !important; font-weight: 700 !important; }
/* Spillet står altid på et kort – også når der ikke er et felt (ellers hopper siden mellem fladt og kort) */
#main > .box.dc-run.dc-run, #main > section.box.dc-run.dc-run, #main > .box.dc-count.dc-count { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r-card) !important; padding: clamp(14px, 3vw, 22px) !important; }
/* Huskelisten: ordene står i samme rækkefølge og gitter, når man ser dem og når man skriver dem */
.dc-run .dc-words { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 4px 28px; padding-left: 2.2em; }
.dc-recall { padding-left: 2.2em; }
.dc-recall li::marker, .dc-run .dc-words li::marker { color: var(--ink-2); font-size: .9rem; }
.dc-recall li { padding-left: 4px; }
/* Vendespil: mønstrede bagsider og en lille vending */
.vs-card:not(.up):not(.found) { background-image: radial-gradient(circle at 50% 50%, var(--brand-line) 2px, transparent 2.5px); background-size: 14px 14px; }
.vs-card.up:not(.found) { animation: vsFlip .22s var(--ease); }
@keyframes vsFlip { from { transform: rotateY(80deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .vs-card.up { animation: none !important; } }
.dc-run:has(.vs-grid) .tt-hud { max-width: 460px; margin: 0 auto; width: 100%; }
/* Hovedregning: svar-knap og minus ved siden af feltet */
.hr-row { display: flex; gap: 8px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.hr-row .hr-in { flex: 1 1 160px; max-width: 240px; margin: 0; }
.hr-minus { min-width: 52px; font-size: 1.4rem; font-weight: 800; }
.dc-next { justify-content: center; gap: 10px; margin-top: 8px; }
.dc-next .ic { width: 18px; height: 18px; }
.tt-live.warn-txt { font-weight: 800; }
.hr-fb, .oj-fb, .oj-err { max-width: none !important; }
.hr-fb { margin-left: auto !important; margin-right: auto !important; width: 100%; }

/* =========================================================
   Huskeværkstedet 2.0
   ========================================================= */
.vk-how { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: vk; }
@media (max-width: 720px) { .vk-how { grid-template-columns: 1fr; } }
.vk-how li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; counter-increment: vk; }
.vk-how-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; position: relative; }
.vk-how-ic::after { content: counter(vk); position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
html[data-theme="dark"] .vk-how-ic::after { color: #0E121A; }
.vk-how-ic .ic { width: 22px; height: 22px; }
.vk-how b { font-size: 1rem; } .vk-how small { color: var(--ink-2); font-size: .88rem; }
.vk-need-h { font-size: 1.15rem; margin: 22px 0 10px; }
.vk-need { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.vk-need-btn { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; min-height: 56px; }
.vk-need-btn .ic { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.vk-need-btn span { font-weight: 700; line-height: 1.25; } .vk-need-btn small { color: var(--ink-2); font-size: .8rem; }
.vk-need-btn:hover, .vk-need-btn.on { border-color: var(--brand); background: var(--brand-soft); }
.vk-need-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.vk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 14px; margin-top: clamp(22px, 3vw, 34px); align-items: stretch; }
.vk-grid > .box { margin: 0 !important; }
.vk-card { display: flex !important; flex-direction: column; gap: 10px; }
.vk-card-head { display: flex; align-items: center; gap: 10px; }
.vk-card-head h2 { margin: 0; font-size: 1.25rem; }
.vk-card-head .e { font-size: 1.4rem; line-height: 1; display: inline-flex; } .vk-card-head .e .ic { width: 28px; height: 28px; color: var(--brand); }
.vk-tried { margin-left: auto; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--mint-soft); color: var(--mint-dark); }
.vk-card .tech-for, .vk-card .tech-how, .vk-card .tech-ex { margin: 0; }
.vk-proof { border-left: 3px solid var(--sun); background: var(--sun-soft); border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: .92rem; }
.vk-proof > b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sun-dark); margin-bottom: 2px; }
.vk-proof p { margin: 0 0 4px; }
.vk-proof small, .vk-src { color: var(--ink-2); font-size: .8rem; }
.vk-card .row { margin-top: auto; padding-top: 4px; }
.vk-grid > .ws-bench { grid-column: 1 / -1; border: 2px solid var(--brand) !important; margin: 0 !important; }
.ws-bench .btn[aria-disabled="true"] { opacity: .5 !important; }
.vk-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); align-self: flex-start; }
.vk-tab { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.vk-tab.on { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--brand); }
.vk-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.ws-body { display: flex; flex-direction: column; gap: 12px; }
.ws-body > p { margin: 0; }
.vk-step { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.vk-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
html[data-theme="dark"] .vk-step span { color: #0E121A; }
.vk-story { font-size: 1.12rem; line-height: 1.7; background: var(--soft); border-radius: 12px; padding: 14px 16px; margin: 0; }
.vk-story b { color: var(--brand); letter-spacing: .02em; }
.vk-route { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vk-route li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: var(--soft); border-radius: 12px; padding: 10px 12px; animation: popIn .3s calc(var(--i) * 70ms) both; }
.vk-route li > span:last-child { display: flex; flex-direction: column; }
.vk-rt-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--card); color: var(--brand); display: inline-grid; place-items: center; flex: none; }
.vk-rt-ic .ic { width: 22px; height: 22px; }
.vk-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.vk-words li { display: flex; flex-direction: column; gap: 2px; background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.vk-fw { font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: var(--brand); }
.vk-scene { font-size: .92rem; color: var(--ink-2); }
.vk-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.vk-shapes span { display: flex; flex-direction: column; align-items: center; background: var(--soft); border-radius: 10px; padding: 8px 4px; text-align: center; }
.vk-shapes b { font-family: var(--display); font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.vk-shapes small { font-weight: 700; font-size: .82rem; } .vk-shapes i { font-style: normal; font-size: .72rem; color: var(--ink-2); }
.vk-codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vk-codes li { display: flex; flex-direction: column; gap: 4px; background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.vk-codes .mono { letter-spacing: .14em; color: var(--brand); }
.vk-codes li > span b { color: var(--brand); }
.vk-test { display: flex; flex-direction: column; gap: 12px; }
.vk-test-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px 16px; }
.vk-test-list.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.vk-test-list li { display: flex; flex-direction: column; gap: 4px; }
.vk-test-list label { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.vk-test-list label .vk-rt-ic { width: 30px; height: 30px; background: var(--soft); } .vk-test-list label .vk-rt-ic .ic { width: 18px; height: 18px; }
.vk-test-list input { padding: 10px 12px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; min-height: 46px; }
.vk-result { display: flex; flex-direction: column; gap: 12px; }
.vk-score { font-size: 1.2rem; margin: 0; } .vk-score b { font-family: var(--display); font-size: 2rem; }
.vk-res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vk-res-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vk-res-list small { color: var(--ink-2); }
.vk-after { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin: 0; }
.vk-saved { display: flex; gap: 14px; align-items: flex-start; background: var(--mint-soft); border-radius: 12px; padding: 16px; }
.vk-saved h3 { margin: 0 0 4px; } .vk-saved p { margin: 0 0 10px; }
.vk-saved-ic { color: var(--mint-dark); display: inline-flex; } .vk-saved-ic .ic { width: 30px; height: 30px; }
.vk-or { margin: 4px 0 -4px !important; }
.vk-shape-fold summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 4px 0; }
.vk-shape-fold .vk-shapes { margin-top: 8px; }
.vk-science .vk-sci { padding: 0 18px 18px; display: grid; gap: 18px; }
.vk-sci h3 { margin: 0 0 6px; font-size: 1.05rem; }
.vk-sci p { margin: 0 0 4px; max-width: 72ch; }
.vk-sci .vk-src { display: block; margin-bottom: 10px; }
.vk-science > summary span { display: flex; flex-direction: column; } .vk-science > summary small { color: var(--ink-2); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .vk-route li { animation: none; } }
.ws-bench, .vk-result, .tt-result, .dc-run { scroll-margin-top: 84px; }
.kk-hero { display: flex; flex-direction: column; gap: 8px; }
#main > section.box.kk-hero.kk-hero { background: var(--brand-soft) !important; border-radius: var(--r-card) !important; padding: 18px !important; }
.kk-hero > div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.kk-hero-n { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--brand); line-height: 1; }
.kk-hero p { margin: 0; } .kk-hero .btn { align-self: flex-start; }
.kk-bar { display: block; height: 6px; border-radius: 3px; background: var(--soft); margin-top: 5px; max-width: 260px; }
.kk-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.kk-list .tt-acc { min-width: 7em; }
@media (max-width: 560px) { .kk-list li { grid-template-columns: 2.2em minmax(0, 1fr) auto; } .kk-list .tt-acc { grid-column: 2 / -1; text-align: left; min-width: 0; margin-top: -4px; } }
.dc-next-wrap > p { text-align: center; margin-left: auto !important; margin-right: auto !important; }
/* Oversigten på mobil: ikonet til venstre, så kortene fylder halvt så meget */
@media (max-width: 560px) {
  .dc-grid .dc-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 14px; align-items: start; }
  .dc-grid .dc-card > .ch-ic { grid-row: 1 / span 4; margin: 2px 0 0; }
  .dc-grid .dc-card > :not(.ch-ic) { grid-column: 2; }
  .dc-grid .dc-card .dc-st { padding-top: 4px; }
  .dc-grid .dc-card .dc-tag { margin-top: 4px; }
}
@media (max-width: 560px) { .dc-grid .dc-card .dc-tag, .dc-grid .dc-card .dc-st { justify-self: start; } }
/* Rettelser efter sidste gennemtest */
.dc-hist li { position: relative; }
/* Farvefælden: Okabe–Ito-farverne, som er lavet til at kunne skelnes ved de almindeligste former for farveblindhed */
.ffk0 { color: #E36A1E; } .ffk1 { color: #56B4E9; } .ffk2 { color: #F0E442; } .ffk3 { color: #1AAE82; }
.ffs0 { background: #E36A1E; } .ffs1 { background: #56B4E9; } .ffs2 { background: #F0E442; } .ffs3 { background: #1AAE82; }
.ff-btn { -webkit-tap-highlight-color: transparent; }
.ff-btn:focus:not(:focus-visible) { outline: none; border-color: var(--line-2); }
@media (max-width: 560px) {
  .ff-screen { min-height: 112px; }
  .ff-word { font-size: clamp(2.2rem, 10vw, 3rem); }
  .ff-btn { min-height: 52px; }
  .dc-practice-tag { margin-bottom: 6px; padding: 2px 10px; font-size: .8rem; }
  .ff-run .tt-time { font-size: 1.9rem; }
  .vk-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .vk-tab { padding: 8px 6px; font-size: .9rem; line-height: 1.2; }
}
.ws-form { align-items: end; }
.vk-next { background: var(--brand-soft) !important; border-color: transparent !important; }
.vk-next p { margin: 0; }

/* =========================================================
   Sådan virker Hjernet (#guide)
   ========================================================= */
.gd-steps { margin-bottom: 8px; }
.gd-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.gd-area { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; align-content: start; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.gd-area:hover { border-color: var(--brand); }
.gd-area:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.gd-area .gd-ic { grid-row: span 3; }
.gd-area b { font-size: 1.1rem; } .gd-area > span:not(.gd-ic):not(.gd-go) { color: var(--ink-2); font-size: .92rem; }
.gd-go { color: var(--brand); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.gd-go .ic { width: 16px; height: 16px; }
.gd-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.gd-ic .ic { width: 22px; height: 22px; }
.gd-whys { display: grid; gap: 12px; }
.gd-why { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-card); background: var(--sun-soft); }
.gd-why .gd-ic { background: var(--card); color: var(--sun-dark); }
.gd-why h3 { margin: 0 0 4px; font-size: 1.05rem; } .gd-why p { margin: 0 0 4px; max-width: 72ch; }
.gd-src { color: var(--ink-2); font-size: .8rem; }
.gd-qas { display: grid; gap: 8px; }
.gd-qa { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 16px; }
.gd-qa summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: inside; }
.gd-qa summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.gd-qa p { margin: 0 0 14px; }
#main > section.box.gd-cta.gd-cta { background: var(--brand-soft) !important; border-radius: var(--r-card) !important; padding: 20px !important; margin-top: 24px; }
.gd-cta h2 { margin-top: 0; }

/* Egne kort: venlige advarsler fra kvalitetskontrollen */
.own-warn { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.own-warn li { padding: 10px 12px; border-radius: 10px; background: var(--sun-soft); border-left: 3px solid var(--sun); overflow-wrap: anywhere; }
.own-warn li span { display: block; margin-top: 3px; font-size: .9rem; color: var(--ink-2); }

/* ---------- Pakkevælgeren (pakkevaelger.js): fliser i stedet for rullemenuer ---------- */
.pv { display: grid; gap: 12px; }
.pv-search { position: relative; display: flex; align-items: center; }
.pv-search input { width: 100%; min-width: 0 !important; padding: 11px 64px 11px 42px !important; border-radius: 999px !important; border: 1.5px solid var(--line-2); background: var(--card); font: inherit; color: var(--ink); }
.pv-s-ic { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.pv-search input:focus { border-color: var(--brand); }
.pv-count { position: absolute; right: 14px; font-size: .82rem; font-weight: 700; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 2px 9px; pointer-events: none; }
.pv-groups { display: grid; gap: 14px; }
.pv-gh { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 800; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pv-field .pv-grid, .pdlg .pv-grid { max-height: 360px; overflow: auto; padding: 3px; margin: -3px; }
.pv-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 12px 34px 12px 12px; cursor: pointer;
  transition: transform .15s var(--ease), border-color .15s, box-shadow .15s, background .15s; min-height: 64px; }
.pv-tile:hover { transform: translateY(-2px); border-color: var(--brand-line); box-shadow: var(--lift); }
.pv-tile[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1.5px var(--brand) inset; }
.pv-e { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--soft); color: var(--brand); }
.pv-e svg { width: 20px; height: 20px; }
.pv-tile[aria-checked="true"] .pv-e { background: var(--card); }
.pv-t { font-weight: 800; line-height: 1.2; font-size: .95rem; overflow-wrap: break-word; hyphens: auto; }
.pv-n { font-size: .8rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.pv-sub::before { content: '·'; margin-right: 8px; }
.pv-n:empty, .pv-n > .pv-sub:first-child::before { display: none; }
.pv-ok { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); }
.pv-tile[aria-checked="true"] .pv-ok { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px; }
.pv-none { margin: 0; color: var(--ink-2); }
.pv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pv-card { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 14px 14px 12px; min-height: 96px;
  box-shadow: 0 1px 0 var(--line), 0 3px 0 -1px var(--card), 0 4px 0 -1px var(--line); transition: transform .15s var(--ease), border-color .15s, box-shadow .15s; }
.pv-card:hover, .pv-card:focus-visible { transform: translateY(-3px) rotate(-.4deg); border-color: var(--brand); box-shadow: var(--lift); }
.pv-q { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-a { margin-top: auto; padding-top: 8px; border-top: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.pv-mark { position: absolute; top: -9px; right: 10px; font-size: .72rem; font-weight: 800; background: var(--mint-soft); color: var(--mint-dark); border: 1px solid var(--mint); border-radius: 999px; padding: 1px 8px; }
.pv-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.pv-field > legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.vk-pick-h { margin: 4px 0 10px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vk-pick-h small { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.vk-pick-h svg { width: 20px; height: 20px; color: var(--brand); }
.vk-pick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.vk-pick-bar .vk-pick-h { margin: 0; }
.vk-draw-new { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.vk-draw-new h3 { margin: 0 0 8px; font-size: 1rem; }
@media (max-width: 560px) { .pv-grid { grid-template-columns: 1fr; } .pv-cards { grid-template-columns: 1fr; } .pv-tile { padding: 10px 30px 10px 10px; } .pv-e { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .pv-tile, .pv-card { transition: none; } .pv-tile:hover, .pv-card:hover, .pv-card:focus-visible { transform: none; } }

/* ---------- Import: tre veje, live-forhåndsvisning og knapper i stedet for rullemenuer ---------- */
.chip-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.chip-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.chip-btn.on, .chip-btn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 1px var(--brand) inset; }
.chip-btn small { font-weight: 500; color: var(--ink-2); }
.imp-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 14px; }
.imp-way { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; transition: transform .15s var(--ease), border-color .15s, box-shadow .15s; }
.imp-way:hover { transform: translateY(-2px); box-shadow: var(--lift); border-color: var(--brand-line); }
.imp-way[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1.5px var(--brand) inset; }
.imp-way b { font-size: 1.05rem; } .imp-way small { color: var(--ink-2); font-size: .85rem; }
.imp-way-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); margin-bottom: 4px; }
.imp-way[aria-pressed="true"] .imp-way-ic { background: var(--brand); } .imp-way[aria-pressed="true"] .imp-way-ic svg { color: #fff; }
.imp-way-ic svg { width: 22px; height: 22px; color: var(--brand); }
.imp-pane { padding: 18px; }
.imp-paste { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.imp-paste-in label { display: flex; flex-direction: column; gap: 2px; } .imp-paste-in label small { color: var(--ink-2); font-weight: 500; }
.imp-paste-in textarea { width: 100%; min-height: 210px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.55; }
.imp-ex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.imp-live { border-radius: 16px; background: var(--soft); padding: 14px; min-height: 210px; display: flex; flex-direction: column; gap: 6px; }
.imp-live-empty { margin: auto 0; display: flex; flex-direction: column; gap: 6px; } .imp-live-empty p { margin: 0; }
.imp-live-empty > span svg { width: 22px; height: 22px; color: var(--brand); }
.imp-seps { display: flex; flex-wrap: wrap; gap: 6px; } .imp-seps code, .imp-live code { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: .85rem; }
.imp-live-n { margin: 0; font-size: 1.05rem; } .imp-live-n b { font-family: var(--display); font-size: 1.6rem; color: var(--brand); margin-right: 4px; }
.imp-live-list { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.imp-live-list li { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; animation: impPop .25s var(--ease) both; }
.imp-live-list li span { padding: 7px 10px; overflow-wrap: anywhere; font-size: .92rem; } .imp-live-list li span + span { border-left: 1.5px dashed var(--line-2); color: var(--ink-2); }
.imp-live p { margin: 0; }
@keyframes impPop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.imp-paste-go { margin-top: 14px; }
.imp-formats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; }
.imp-formats li { font-size: .85rem; font-weight: 700; background: var(--soft); border-radius: 999px; padding: 3px 11px; }
.imp-tpl { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); margin: 4px 0 12px; }
.imp-tpl > span svg { width: 22px; height: 22px; color: var(--mint-dark); } .imp-tpl p { margin: 2px 0 8px; }
.imp-write { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: center; } .imp-write p { margin: 0 0 12px; }
.imp-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.imp-mini-cards span { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; min-height: 92px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--lift); font-weight: 700; }
.imp-mini-cards span:first-child { transform: rotate(-2deg); } .imp-mini-cards span:last-child { transform: rotate(2deg); background: var(--brand-soft); }
.imp-mini-cards small { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.imp-sum { display: grid; gap: 12px; }
.imp-sum-top { display: flex; gap: 16px; align-items: center; }
.imp-sum-n { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: var(--brand-soft); text-align: center; line-height: 1.1; }
.imp-sum-n b { font-family: var(--display); font-size: 2.1rem; color: var(--brand); } .imp-sum-n span { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.imp-sum-txt h2 { margin: 0; } .imp-sum-txt p { margin: 4px 0 0; }
.imp-sum .btn svg { width: 16px; height: 16px; }
.imp-fix { border-top: 1px dashed var(--line-2); padding-top: 12px; display: grid; gap: 12px; animation: impPop .25s var(--ease) both; } .imp-fix p { margin: 0; }
.imp-fix-row { display: grid; gap: 6px; } .imp-fix-row .chips { margin: 0; gap: 6px; }
.sep-chips .chip-btn { padding: 6px 12px 6px 6px; }
.sep-sym { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--soft); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 1rem; }
.chip-btn.on .sep-sym, .chip-btn[aria-pressed="true"] .sep-sym { background: var(--brand); color: #fff; }
.imp-cardhead { display: grid; grid-template-columns: 32px 1fr 1fr 44px; gap: 8px; font-weight: 800; font-size: .85rem; padding: 0 2px 6px; }
.imp-cardhead small { font-weight: 500; color: var(--ink-2); }
.imp-cardhead.multi, .imp-list.multi li { grid-template-columns: 32px 1fr 1fr 11rem 44px; }
.imp-list:not(.multi) li { grid-template-columns: 32px 1fr 1fr 44px; }
.imp-no { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 8px; border-radius: 50%; background: var(--soft); font-size: .78rem; font-weight: 800; color: var(--ink-2); }
.imp-list li > textarea[data-f=a] { background: color-mix(in srgb, var(--brand-soft) 45%, var(--card)); }
.imp-groups { padding: 0; } .imp-groups > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.imp-groups > summary::-webkit-details-marker { display: none; }
.imp-groups > summary span { display: flex; flex-direction: column; } .imp-groups > summary small { color: var(--ink-2); }
.imp-groups > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin-left: auto; transition: transform .2s; }
.imp-groups[open] > summary::after { transform: rotate(-135deg); }
.imp-groups-in { padding: 0 18px 16px; display: grid; gap: 12px; }
.imp-go { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; z-index: 5; margin-top: 16px;
  padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--pop); }
.imp-name { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .85rem; flex: 1 1 14rem; max-width: 26rem; }
.imp-name input { font: inherit; font-weight: 600; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); }
@media (max-width: 760px) {
  .imp-ways { grid-template-columns: 1fr; gap: 8px; } .imp-way { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 12px; padding: 12px 14px; }
  .imp-way .imp-way-ic { margin: 0; grid-row: span 2; } .imp-way small { flex-basis: 100%; padding-left: 54px; margin-top: -6px; }
  .imp-paste, .imp-write { grid-template-columns: 1fr; } .imp-live { min-height: 0; }
  .imp-cardhead { display: none; }
  .imp-list:not(.multi) li, .imp-list.multi li { grid-template-columns: 32px 1fr 44px; }
  .imp-list li > textarea[data-f=a], .imp-list li > select { grid-column: 2 / 3; } .imp-list .imp-tog { grid-row: 1; grid-column: 3; }
  .imp-sum-n { width: 72px; height: 72px; border-radius: 18px; } .imp-sum-n b { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .imp-live-list li, .imp-fix { animation: none; } .imp-way, .chip-btn { transition: none; } .imp-way:hover, .chip-btn:hover { transform: none; } }

/* ---------- Derfor virker det: forskningen bag teknikkerne ----------
   Rolige farver (kun appens blå), én række pr. teknik – leget med typografi, tal og tidslinje i stedet for farver */
.vk-sci2 { margin-top: 26px; }
.sci-hero { padding: 24px 22px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.sci-hero h2 { margin: 8px 0 2px; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.01em; }
.sci-hero > p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.sci-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.sci-kicker svg { width: 15px; height: 15px; color: var(--brand); }
/* Tidslinjen: lige brede år, så linjen starter i det første punkt og slutter præcis i 2017 – derefter fader den over i »dig?« */
.sci-time { --w: 96px; --you: 170px; margin-top: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sci-time ol { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; position: relative; }
.sci-time ol::before { content: ''; position: absolute; left: calc(var(--w) / 2); right: calc(var(--you) + var(--w) / 2); top: 13px; height: 2px; background: var(--brand); opacity: .35; }
.sci-time li { position: relative; flex: 0 0 var(--w); }
.sci-time button { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; text-align: center; background: none; border: 0; padding: 0 4px; cursor: pointer; color: var(--ink); }
.sci-time button::before { content: ''; width: 14px; height: 14px; margin: 6px 0 7px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--brand); transition: transform .2s var(--ease), background .2s; }
.sci-time button:hover::before, .sci-time button:focus-visible::before { transform: scale(1.3); background: var(--brand); }
.sci-time b { font-family: var(--display); font-size: .95rem; } .sci-time small { font-size: .72rem; color: var(--ink-2); line-height: 1.2; }
.sci-time li.sci-you { flex-basis: var(--you); display: flex; flex-direction: column; align-items: flex-start; padding-left: 30px; }
.sci-you::before { content: ''; position: absolute; left: calc(var(--w) / -2); width: calc(var(--w) / 2 + 26px); top: 13px; height: 2px; background: var(--brand); opacity: .35;
  -webkit-mask-image: linear-gradient(90deg, #000 15%, transparent); mask-image: linear-gradient(90deg, #000 15%, transparent); }
.sci-you-w { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; margin-top: -3px; letter-spacing: -.01em; color: var(--brand);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 60%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 60%); }
.sci-time .sci-you-go { width: auto; display: inline; padding: 0; margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.sci-time .sci-you-go::before { display: none; }
.sci-you-y { display: none; }                                        /* årstallet vises kun på mobil, hvor »dig?« står i sin egen boks */
/* Rækkerne */
.sci-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.sci-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; outline: none; transition: box-shadow .2s, border-color .2s; }
.sci-row:hover { border-color: var(--line-2); box-shadow: var(--lift); }
.sci-row:focus-visible { box-shadow: 0 0 0 3px var(--brand); }
.sci-side { padding: 20px 20px 18px; background: var(--soft); border-right: 1px solid var(--line); }
.sci-side-in { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; }
.sci-id { display: flex; flex-direction: column; gap: 2px; }
.sci-no { font-family: var(--display); font-weight: 800; font-size: 2.8rem; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); letter-spacing: -.02em; transition: -webkit-text-stroke-color .2s, color .2s; }
.sci-row:hover .sci-no, .sci-row.sci-flash .sci-no { -webkit-text-stroke-color: var(--brand); }
.sci-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); white-space: nowrap; }
.sci-kind svg { width: 15px; height: 15px; color: var(--brand); }
.sci-stat { margin: 4px 0 0; display: flex; flex-direction: column; line-height: 1.15; }
.sci-stat b { font-family: var(--display); font-size: 2.1rem; color: var(--brand); letter-spacing: -.02em; white-space: nowrap; }
.sci-stat small { font-size: .82rem; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.sci-body { padding: 20px 22px 18px; }
.sci-body h3 { margin: 0 0 10px; font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.sci-body p { margin: 0 0 8px; max-width: 68ch; }
.sci-cols { columns: 2 300px; column-gap: 28px; }
.sci-body > div:not(.sci-cols) > .sci-sub:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sci-sub { break-inside: avoid; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.sci-cols > .sci-sub:last-child { border-bottom: 0; margin-bottom: 0; }
.sci-sub h4 { margin: 0 0 4px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.sci-src { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; margin: 2px 8px 2px 0; color: var(--ink-2) !important; text-decoration: underline !important; text-decoration-color: var(--line-2) !important; text-underline-offset: 3px; }
.sci-src:hover { color: var(--brand) !important; text-decoration-color: currentColor !important; }
.sci-src svg { width: 13px; height: 13px; flex: none; }
.sci-srcs { display: flex; flex-wrap: wrap; }
.sci-bars { margin: 2px 0 10px; display: grid; gap: 5px; max-width: 380px; }
.sci-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 24px; max-width: 640px; }
.sci-figs .sci-bars { margin-bottom: 12px; }
.sci-bars figcaption { font-size: .72rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.sci-bar { display: grid; grid-template-columns: 7.5rem minmax(40px, 1fr) 2.8rem; column-gap: 10px; align-items: center; font-size: .82rem; }
.sci-bl { color: var(--ink-2); }
.sci-track { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, var(--card)); overflow: hidden; }
.sci-fill { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--line-2); transform-origin: left; transition: transform 1s var(--ease); }
.sci-bar.hi .sci-fill { background: var(--brand); }
.sci-bar b { font-family: var(--display); text-align: right; font-size: .9rem; }
.vk-sci2:not(.sci-on) .sci-row:not(.sci-in) .sci-fill { transform: scaleX(0); }
.sci-champ { list-style: none; margin: 2px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sci-champ li { font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.sci-champ b { font-family: var(--display); font-size: 1.25rem; color: var(--brand); margin-right: 3px; }
.sci-curve { width: 100%; max-width: 320px; height: auto; margin: 2px 0 8px; overflow: visible; }
.sci-curve path { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.sci-forget { stroke: var(--line-2); stroke-dasharray: 5 5; } .sci-spaced { stroke: var(--brand); }
.sci-curve text { font-size: 9px; fill: var(--ink-2); text-anchor: end; font-weight: 700; }
.sci-flash { animation: sciFlash 1.2s var(--ease); }
@keyframes sciFlash { 30% { box-shadow: 0 0 0 3px var(--brand); } }
@media (max-width: 760px) {
  /* Mobil: ingen vandret scroll – årene står i et gitter med tre kolonner, og »dig?« får hele den sidste række */
  .sci-time { overflow: visible; margin-top: 16px; }
  .sci-time ol { width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sci-time ol::before { display: none; }
  .sci-time li { flex: none; }
  .sci-time li:not(.sci-you) button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
    padding: 7px 9px; border-radius: 12px; background: var(--soft); border-left: 3px solid var(--brand); height: 100%; }
  .sci-time li:not(.sci-you) button::before { display: none; }
  .sci-time li:not(.sci-you) button:active { background: var(--brand-soft); }
  .sci-time b { font-size: .85rem; line-height: 1.1; } .sci-time small { font-size: .68rem; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .sci-time li.sci-you { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 8px 12px;
    background: var(--soft); border-left: 3px solid var(--brand); border-radius: 12px; }
  .sci-you-y { display: inline; font-family: var(--display); font-weight: 800; font-size: .85rem; color: var(--ink); }
  .sci-you::before { display: none; }
  .sci-you-w { font-size: 1.45rem; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .sci-you-y, .sci-you-w { flex: none; white-space: nowrap; }
  .sci-time .sci-you-go { margin: 0 0 0 auto; min-width: 0; font-size: .8rem; white-space: normal; text-align: right; line-height: 1.3; }
  .sci-row { grid-template-columns: minmax(0, 1fr); }
  .sci-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .sci-side-in { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 8px; align-items: end; }
  .sci-bar { grid-template-columns: 6.5rem minmax(0, 1fr) 2.6rem; }
  .sci-no { font-size: 2.2rem; } .sci-stat b { font-size: 1.7rem; }
  .sci-body { padding: 16px; }
  .sci-hero { padding: 20px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .sci-fill, .sci-time button::before, .sci-row { transition: none; } .sci-flash { animation: none; } }
.imp-back-row { margin: -4px 0 4px; } .imp-back svg { width: 16px; height: 16px; }
.imp-step-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.imp-fix-swap { border-top: 1px dashed var(--line-2); } .imp-fix-swap p { margin: 0; }

/* ---------- Dine huskebilleder (#huskebilleder) ---------- */
.hb-n { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 99px; background: var(--brand-soft); color: var(--ink); font-weight: 700; font-size: .8rem; text-align: center; }
.hb-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 12px; }
.hb-tools .hb-search { flex: 1 1 260px; margin: 0; }
.hb-sort { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.hb-sort select { font: inherit; font-weight: 500; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.hb-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.hb-count { margin: 0 0 10px; }
.hb-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.hb-card { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 8px 10px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.hb-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.hb-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hb-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; border-radius: 9px; border: 1px solid var(--line); margin-bottom: 6px; }
.hb-q { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hb-a { color: var(--ink-2); line-height: 1.3; overflow-wrap: anywhere; }
.hb-meta { margin-top: auto; padding-top: 4px; font-size: .8rem; color: var(--ink-2); }
.hb-empty { text-align: center; padding: 28px 18px; }
.hb-empty-ic .ic { width: 40px; height: 40px; color: var(--brand); }
.hb-empty .row { justify-content: center; }
.hb-big { margin: 0; }
.hb-big img { display: block; width: 100%; max-width: 560px; margin: 0 auto 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.hb-big figcaption { display: flex; flex-direction: column; gap: 3px; }
.hb-big figcaption small { color: var(--ink-2); }
.hb-d { white-space: nowrap; }
