/* SusDesk-logoet (susdesk-logo.js): fem animerede logoer, som brugeren selv vælger imellem.
   Farverne kommer fra det valgte tema (se "Farver" herunder), så logoet altid passer til resten af siden;
   :root[data-light] (de lyse temaer) bytter om på lys og mørk, ligesom de lyse varianter i originalerne.
   Skrifterne ligger på serveren selv (woff2 fra @fontsource, SIL OFL 1.1). Intet hentes fra Google Fonts. */
@font-face { font-family: "IBM Plex Mono"; src: url(ibm-plex-mono-600.woff2) format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url(ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(rubik-600.woff2) format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "JetBrains Mono"; src: url(jetbrains-mono-700.woff2) format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "JetBrains Mono"; src: url(jetbrains-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url(press-start-2p.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url(share-tech-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Farver: alt bygges af temaets egne farver ----------
   --acc er accenten, --acc-hi har mere kontrast (lysere i mørke temaer, mørkere i lyse) og --acc-dim mindre;
   --plain er teksten, --muted den dæmpede tekst, --ground/--panel/--raise fladerne og --line-hi stregerne.
   En egen accentfarve (Udseende) slår også igennem. Uden SusChats variabler bruges standardtemaets farver.
   I temaet Amber ser Prompt ud præcis som originalen (#FFB000 på #120C00). */
susdesk-logo {
  --sdl-acc: var(--acc, #34e89e); --sdl-acc-hi: var(--acc-hi, #8af5c9); --sdl-acc-dim: var(--acc-dim, #1f9e6b);
  --sdl-text: var(--plain, #e7f1ed); --sdl-mute: var(--muted, #8ba39a); --sdl-line: var(--line-hi, #2a3c35);
  --sdl-bg: var(--ground, #060a09); --sdl-surf: var(--panel, #0b1210); --sdl-raise: var(--raise, #121b18);
  --sdl-on-acc: var(--ground, #060a09);   /* tekst på accentfarven */
  --sdl-glow: color-mix(in srgb, var(--sdl-acc) 45%, transparent);
}
:root[data-light] susdesk-logo { --sdl-on-acc: var(--panel, #fff); }

/* ---------- Fælles ---------- */
susdesk-logo {
  display: inline-block; vertical-align: middle; flex: 0 1 auto; min-width: 0; box-sizing: border-box;
  line-height: 1; letter-spacing: 0; text-transform: none; font-style: normal; text-align: left; white-space: nowrap;
  -webkit-user-select: none; user-select: none;
}
susdesk-logo *, susdesk-logo *::before, susdesk-logo *::after { box-sizing: border-box; }
.sdl-art { display: flex; align-items: center; width: 100%; height: 100%; }
/* Lille udgave (chat-toppen, menuen): højden er --sdl-h, men logoet skrumper i bredden (og dermed i højden), hvis der
   ikke er plads. Alt indeni regnes i cqw (logoets egen bredde), så det skalerer som et billede. */
susdesk-logo:not([size="login"]) {
  --sdl-h: 38px;
  width: calc(var(--sdl-h) * var(--sdl-ar, 5)); max-width: 100%; aspect-ratio: var(--sdl-ar, 5); min-height: 0;
  container-type: inline-size;
}
susdesk-logo[data-v="prompt"] { --sdl-ar: var(--sdl-pw, 5.89); }          /* ">" + 0,45em + "susdesk" + markør = 5,89em */
susdesk-logo[data-v="tastatur"] { --sdl-ar: 7.21875; }     /* 7 taster à 120 + 6 mellemrum à 14 = 924 × 128 */
susdesk-logo[data-v="8bit"] { --sdl-ar: 5.7; }             /* viewBox -4 -1 57 10 */
susdesk-logo[data-v="printplade"] { --sdl-ar: 3.6875; }    /* viewBox -2.4 -1.8 35.4 9.6 */
susdesk-logo[data-v="debug"] { --sdl-ar: 3.97; }           /* ("susdesk" 7 × 0,6em + markør) / markørens højde 1,08em */
/* Stor udgave (login): op til 680 px bred, og alt følger bredden */
susdesk-logo[size="login"] { display: block; width: min(100%, var(--sdl-max, 680px)); margin-inline: auto; container-type: inline-size; }
susdesk-logo[size="login"][data-v="printplade"] { --sdl-max: 600px; }
susdesk-logo[size="login"] .sdl-art { display: block; height: auto; }

/* Logoet i chat-toppen er en knap ("Skift logo") */
.sdl-btn {
  display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 6px;
  background: none; color: inherit; font: inherit; cursor: pointer; transition: filter .15s;
}
.sdl-btn:hover, .sdl-btn[aria-expanded="true"] { filter: brightness(1.15); }
:root[data-light] .sdl-btn:hover, :root[data-light] .sdl-btn[aria-expanded="true"] { filter: brightness(.92) saturate(1.1); }

/* ---------- 1. Prompt (terminal): fosfor = accenten ---------- */
.sdl-p {
  display: flex; align-items: baseline; font: 600 calc(100cqw / var(--sdl-pw, 5.89))/1 "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color: var(--sdl-acc); text-shadow: 0 0 3px var(--sdl-glow), 0 0 12px var(--sdl-glow);
}
.sdl-p-gt { margin-right: .45em; color: var(--sdl-acc-dim); }
.sdl-p-cur {
  display: inline-block; width: .56em; height: .74em; margin-left: .08em; background: var(--sdl-acc);
  box-shadow: 0 0 12px var(--sdl-glow); animation: sdl-blink 1.1s steps(1, end) infinite;
}
@keyframes sdl-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
/* Lys: mørk tekst, accent på ">" og markøren, ingen glød */
:root[data-light] .sdl-p { color: var(--sdl-text); text-shadow: none; }
:root[data-light] .sdl-p-gt { color: var(--sdl-acc); }
:root[data-light] .sdl-p-cur { background: var(--sdl-acc); box-shadow: none; }
/* Login: CRT-skærm med scanlines og "har du prøvet at genstarte? [J/n]" */
.sdl-crt {
  display: flex; flex-direction: column; align-items: center; gap: 3.2cqw; padding: 4.8cqw 5cqw 4.4cqw; border-radius: 2.6cqw;
  border: 1px solid color-mix(in srgb, var(--sdl-acc) 14%, transparent);
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .32) 0 1px, transparent 1px 4px), color-mix(in srgb, var(--sdl-acc) 7%, #000);
  box-shadow: inset 0 0 9cqw rgba(0, 0, 0, .8), 0 24px 60px -30px rgba(0, 0, 0, .9);
}
.sdl-crt .sdl-p { font-size: calc(80cqw / var(--sdl-pw, 5.89)); text-shadow: 0 0 .022em var(--sdl-glow), 0 0 .206em var(--sdl-glow); }
.sdl-crt .sdl-p-cur { box-shadow: 0 0 .206em var(--sdl-glow); }
.sdl-p-tag {
  font: 500 max(11px, 2.75cqw)/1.2 "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color: var(--sdl-acc-dim); text-shadow: 0 0 .5em color-mix(in srgb, var(--sdl-acc) 20%, transparent);
}
.sdl-p-j { color: var(--sdl-acc); }
:root[data-light] .sdl-crt { background: var(--sdl-surf); border-color: var(--sdl-line); box-shadow: 0 18px 44px -28px color-mix(in srgb, var(--sdl-text) 35%, transparent); }
:root[data-light] .sdl-crt .sdl-p, :root[data-light] .sdl-p-tag { text-shadow: none; }
:root[data-light] .sdl-crt .sdl-p-cur { box-shadow: none; }
:root[data-light] .sdl-p-tag { color: var(--sdl-mute); }
:root[data-light] .sdl-p-j { color: var(--sdl-text); }

/* ---------- 2. Tastatur (keycaps): "sus" i accenten, "desk" i temaets lyse farve ----------
   Mål fra en tast på 120 px; --u er én af de pixel. Bunden står stille, væg og flade trykkes ned.
   Væggen er fladen med 16 % sort, bunden med 36 % (som i originalen). */
.sdl-keys {
  --u: calc(100cqw / 924);
  display: flex; gap: calc(14 * var(--u)); font: 600 calc(60 * var(--u))/1 Rubik, "Segoe UI", system-ui, sans-serif;
}
.sdl-key {
  --sdl-k-face: var(--sdl-text); --sdl-k-ink: var(--sdl-bg);
  --sdl-k-wall: color-mix(in srgb, var(--sdl-k-face) 84%, #000); --sdl-k-base: color-mix(in srgb, var(--sdl-k-face) 64%, #000);
  --sdl-k-lo: rgba(0, 0, 0, .10); --sdl-k-hi: rgba(255, 255, 255, .8);
  position: relative; flex: none; width: calc(120 * var(--u)); height: calc(128 * var(--u));
}
.sdl-key.acc { --sdl-k-face: var(--sdl-acc); --sdl-k-ink: var(--sdl-on-acc); --sdl-k-lo: rgba(0, 0, 0, .16); --sdl-k-hi: rgba(255, 255, 255, .3); }
:root[data-light] .sdl-key:not(.acc) { --sdl-k-face: var(--sdl-surf); --sdl-k-ink: var(--sdl-text); }
.sdl-k-base {
  position: absolute; inset: calc(8 * var(--u)) 0 0; border-radius: calc(18 * var(--u)); background: var(--sdl-k-base);
  box-shadow: 0 calc(16 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, .42);
}
:root[data-light] .sdl-k-base { box-shadow: 0 calc(14 * var(--u)) calc(20 * var(--u)) color-mix(in srgb, var(--sdl-text) 24%, transparent); }
.sdl-k-top { position: absolute; inset: 0 0 auto; height: calc(120 * var(--u)); animation: sdl-press 4.8s ease-in-out infinite; }
.sdl-k-wall { position: absolute; inset: 0; border-radius: calc(18 * var(--u)); background: var(--sdl-k-wall); }
.sdl-k-face {
  position: absolute; left: calc(13 * var(--u)); right: calc(13 * var(--u)); top: calc(7 * var(--u)); height: calc(88 * var(--u));
  display: flex; align-items: center; justify-content: center; padding-bottom: calc(4 * var(--u));
  border-radius: calc(13 * var(--u)); background: var(--sdl-k-face); color: var(--sdl-k-ink);
  box-shadow: inset 0 calc(-6 * var(--u)) calc(10 * var(--u)) var(--sdl-k-lo), inset 0 calc(3 * var(--u)) calc(4 * var(--u)) var(--sdl-k-hi);
}
.sdl-key:nth-child(2) .sdl-k-top { animation-delay: .16s; }
.sdl-key:nth-child(3) .sdl-k-top { animation-delay: .32s; }
.sdl-key:nth-child(4) .sdl-k-top { animation-delay: .48s; }
.sdl-key:nth-child(5) .sdl-k-top { animation-delay: .64s; }
.sdl-key:nth-child(6) .sdl-k-top { animation-delay: .8s; }
.sdl-key:nth-child(7) .sdl-k-top { animation-delay: .96s; }
/* 7 px ned på en tast på 120 px (5,833 % af væggens højde) */
@keyframes sdl-press { 0%, 6%, 100% { transform: translateY(0); } 2.5% { transform: translateY(5.8333%); } }
/* Login: tasterne på en lille plade med stiplet kant og "ctrl + alt + hjælp" */
.sdl-kbd {
  --u: calc(84cqw / 924);
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 5.2cqw 4cqw 4.8cqw;
  border-radius: 2.6cqw; background: var(--sdl-raise);
}
.sdl-kbd::before {
  content: ""; position: absolute; inset: 1.5cqw; border: 2px dashed color-mix(in srgb, var(--sdl-text) 11%, transparent);
  border-radius: 1.8cqw; pointer-events: none;
}
.sdl-kbd .sdl-keys { --u: calc(84cqw / 924); }
.sdl-kx {
  display: flex; align-items: center; gap: .64em; margin-top: calc(52 * var(--u));
  font: 500 max(10px, calc(22 * var(--u)))/1 Rubik, "Segoe UI", system-ui, sans-serif; color: var(--sdl-mute);
}
.sdl-kc {
  display: inline-flex; align-items: center; height: 2.09em; padding: 0 .82em .14em; border-radius: .45em;
  background: color-mix(in srgb, var(--sdl-text) 12%, var(--sdl-raise)); box-shadow: inset 0 -.18em 0 var(--sdl-bg);
  color: var(--sdl-text); font-weight: 600;
}
.sdl-kc.acc { background: var(--sdl-acc); box-shadow: inset 0 -.18em 0 color-mix(in srgb, var(--sdl-acc) 64%, #000); color: var(--sdl-on-acc); }
:root[data-light] .sdl-kbd { background: color-mix(in srgb, var(--sdl-text) 6%, var(--sdl-bg)); }
:root[data-light] .sdl-kbd::before { border-color: color-mix(in srgb, var(--sdl-text) 13%, transparent); }
:root[data-light] .sdl-kc:not(.acc) {
  background: var(--sdl-surf); box-shadow: inset 0 -.18em 0 var(--sdl-line), 0 1px 2px color-mix(in srgb, var(--sdl-text) 12%, transparent);
}

/* ---------- 3. 8-bit (pixel): tre bånd fra tekstfarven over den lyse accent til accenten ---------- */
.sdl-px { display: block; width: 100%; height: auto; overflow: visible; }
.sdl-b1 { stop-color: var(--sdl-text); }
.sdl-b2 { stop-color: var(--sdl-acc-hi); }
.sdl-b3 { stop-color: var(--sdl-acc); }
.sdl-px-sh { fill: var(--sdl-acc-dim); }
.sdl-tw { fill: var(--sdl-acc-hi); animation: sdl-tw 3.2s steps(2, end) infinite; }
.sdl-tw.d1 { animation-delay: 1.1s; }
.sdl-tw.d2 { animation-delay: 2.2s; }
@keyframes sdl-tw { 0%, 70%, 100% { opacity: 1; } 82% { opacity: .15; } }
/* Lys: massivt i tekstfarven med en skygge i accenten */
:root[data-light] .sdl-px-fg { fill: var(--sdl-text); }
:root[data-light] .sdl-px-sh, :root[data-light] .sdl-tw { fill: var(--sdl-acc); }
/* Login: arkadeskærm med stjerner og blinkende "INSERT TICKET TO CONTINUE" */
.sdl-arc {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.4cqw;
  aspect-ratio: 680 / 230; padding: 4cqw 5cqw; border-radius: 2.6cqw; overflow: hidden;
  background: color-mix(in srgb, var(--sdl-acc) 9%, var(--sdl-bg));
}
.sdl-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sdl-dots { fill: var(--sdl-line); }
.sdl-arc .sdl-px { position: relative; width: 76cqw; }
.sdl-ins {
  position: relative; font: 400 max(8px, 2.2cqw)/1 "Press Start 2P", "Courier New", monospace; letter-spacing: .09em;
  color: var(--sdl-text); animation: sdl-insert 1.3s steps(1, end) infinite;
}
@keyframes sdl-insert { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
.sdl-cred {
  position: absolute; right: 3.4cqw; bottom: 3cqw; font: 400 max(7px, 1.3cqw)/1 "Press Start 2P", "Courier New", monospace;
  letter-spacing: .14em; color: var(--sdl-mute);
}
@container (max-width: 440px) { .sdl-cred { display: none; } }  /* for trangt på en telefon */
:root[data-light] .sdl-arc { background: color-mix(in srgb, var(--sdl-acc) 7%, var(--sdl-surf)); }
:root[data-light] .sdl-dots { fill: color-mix(in srgb, var(--sdl-acc) 22%, var(--sdl-surf)); }

/* ---------- 4. Printplade (PCB): printkortet er tonet i accenten, kobberet er accenten ---------- */
.sdl-pcb { display: block; width: 100%; height: auto; overflow: visible; }
.sdl-pcb-big { overflow: hidden; }  /* banerne går ud til kanten af kortet, men ikke længere */
.sdl-board { fill: color-mix(in srgb, var(--sdl-acc) 22%, var(--sdl-bg)); }
.sdl-tr { fill: none; stroke: color-mix(in srgb, var(--sdl-acc) 36%, var(--sdl-bg)); stroke-width: .22; stroke-linecap: round; stroke-linejoin: round; }
.sdl-pcb-big .sdl-tr { stroke-width: 7; }
.sdl-cu, .sdl-run { fill: none; stroke: var(--sdl-acc); stroke-width: .62; stroke-linecap: round; stroke-linejoin: round; }
/* Strømimpulsen: et lyst stykke (14 % af banen) løber igennem hvert bogstav, ét ad gangen fra venstre, og holder så en pause */
.sdl-run path {
  stroke: color-mix(in srgb, var(--sdl-acc-hi) 55%, #fff); stroke-dasharray: .14 2; stroke-dashoffset: .16;
  animation: sdl-run 3.6s linear infinite;
}
.sdl-run path:nth-child(2) { animation-delay: .14s; }
.sdl-run path:nth-child(3) { animation-delay: .28s; }
.sdl-run path:nth-child(4) { animation-delay: .42s; }
.sdl-run path:nth-child(5) { animation-delay: .56s; }
.sdl-run path:nth-child(6) { animation-delay: .7s; }
.sdl-run path:nth-child(7) { animation-delay: .84s; }
@keyframes sdl-run { 0% { stroke-dashoffset: .16; } 45%, 100% { stroke-dashoffset: -1.02; } }
.sdl-pad { fill: var(--sdl-acc); }
.sdl-hole { fill: var(--sdl-bg); }
.sdl-silk { fill: var(--sdl-text); font-family: "Share Tech Mono", Consolas, monospace; }
.sdl-silk-l { fill: none; stroke: var(--sdl-text); stroke-width: 2.5; }
/* Lys: lyst kort, mørke baner (den mørke accent), impulsen i den lyse accent */
:root[data-light] .sdl-board { fill: var(--sdl-surf); stroke: var(--sdl-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
:root[data-light] .sdl-tr { stroke: color-mix(in srgb, var(--sdl-acc) 16%, var(--sdl-surf)); }
:root[data-light] .sdl-cu { stroke: var(--sdl-acc-hi); }
:root[data-light] .sdl-run path { stroke: var(--sdl-acc-dim); }
:root[data-light] .sdl-hole { fill: var(--sdl-surf); }

/* ---------- 5. Debug (IDE): teksten i tekstfarven, linter-stregen i accenten, markøren i den lyse accent ---------- */
.sdl-dbg {
  position: relative; display: flex; align-items: baseline;
  font: 700 calc(100cqw / 4.29)/1 "JetBrains Mono", Consolas, ui-monospace, monospace; color: var(--sdl-text);
}
.sdl-d-sus { position: relative; display: inline-block; }
.sdl-d-sq { position: absolute; left: 0; top: .93em; width: 100%; height: .17em; overflow: visible; }
.sdl-d-sq path { fill: none; stroke: var(--sdl-acc); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sdl-d-caret {
  display: inline-block; align-self: center; width: max(1.5px, .04em); height: 1.08em; margin-left: .05em; border-radius: max(1px, .015em);
  background: var(--sdl-acc-hi); animation: sdl-caret 1.2s ease-in-out infinite;
}
@keyframes sdl-caret { 0%, 45% { opacity: 1; } 55%, 95% { opacity: 0; } 100% { opacity: 1; } }
/* Login: editor med linjenummer 42, markeret linje og en hover-boks fra linteren */
.sdl-ide {
  position: relative; display: block; padding: 3cqw 0 3.4cqw; border: 1px solid var(--sdl-line); border-radius: 2.2cqw;
  background: var(--sdl-surf); overflow: hidden; white-space: normal;
}
.sdl-ide::before { content: ""; position: absolute; top: 0; bottom: 0; left: 15cqw; width: 1px; background: var(--sdl-line); }
.sdl-ide-row {
  display: flex; align-items: baseline; padding: .1em 0 .133em; background: var(--sdl-raise);
  font: 700 12cqw/1 "JetBrains Mono", Consolas, ui-monospace, monospace;
}
.sdl-ide-ln { flex: none; width: 12cqw; text-align: right; font-size: .267em; font-weight: 500; color: var(--sdl-mute); }
.sdl-ide .sdl-dbg { margin-left: 7cqw; font-size: 1em; }
.sdl-hov {
  position: relative; display: flex; flex-direction: column; gap: .58em; width: fit-content; max-width: calc(100% - 21cqw);
  margin: 1.2cqw 0 0 19.6cqw; padding: .75em 1em .75em .83em; border: 1px solid var(--sdl-line); border-radius: .42em;
  background: var(--sdl-surf); box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .55);
  font: 400 max(11px, 2cqw)/1.25 var(--f-ui, system-ui), system-ui, sans-serif; color: var(--sdl-text);
}
:root[data-light] .sdl-hov { box-shadow: 0 14px 32px color-mix(in srgb, var(--sdl-text) 12%, transparent), 0 2px 6px color-mix(in srgb, var(--sdl-text) 6%, transparent); }
.sdl-hov-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .5em; }
.sdl-warn { flex: none; width: 1.08em; height: 1.08em; fill: none; stroke: var(--sdl-acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sdl-warn circle { fill: var(--sdl-acc); stroke: none; }
.sdl-mono { font: 500 .917em/1 "JetBrains Mono", Consolas, ui-monospace, monospace; }
.sdl-hov-rule { font-size: .75em; color: var(--sdl-mute); }
.sdl-hov-l2 { display: flex; flex-wrap: wrap; gap: .3em 1.17em; padding-left: 1.58em; font-size: .833em; }
.sdl-hov-a { color: var(--sdl-acc); }
.sdl-hov-k { color: var(--sdl-mute); }

/* ---------- Logovælgeren (samme udseende som sidens andre små menuer) ---------- */
.sdl-menu {
  position: fixed; z-index: 60; width: min(290px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; padding: 5px;
  border: 1px solid var(--edge-hi, var(--line-hi, #2a3c35)); border-radius: var(--r-md, 14px);
  background: var(--glass, var(--panel, #0b1210)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--elev-3, 0 30px 80px -24px rgba(0, 0, 0, .65)); color: var(--plain, #e7f1ed);
  font: 400 13px/1.3 var(--f-ui, system-ui), system-ui, sans-serif; animation: sdl-pop .14s var(--ease, ease-out);
}
@keyframes sdl-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.sdl-menu-h { margin: 7px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #8ba39a); }
.sdl-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 10px; border: 0; border-radius: 9px;
  background: transparent; color: inherit; font: inherit; text-align: left;
}
.sdl-opt:hover, .sdl-opt:focus-visible { background: var(--raise, rgba(255, 255, 255, .06)); }
.sdl-opt[aria-checked="true"] { background: var(--acc-ghost, rgba(52, 232, 158, .13)); }
.sdl-opt-art { flex: none; display: flex; align-items: center; width: 128px; height: 32px; }
.sdl-opt-art susdesk-logo { --sdl-h: 26px; }
.sdl-opt-name { flex: 1; min-width: 0; font-weight: 600; }
.sdl-opt-ok { width: 18px; height: 18px; color: var(--acc, #34e89e); visibility: hidden; }
.sdl-opt[aria-checked="true"] .sdl-opt-ok { visibility: visible; }
:root:is([data-theme="win95"], [data-theme="kontrast"]) .sdl-menu { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel); box-shadow: none; }

/* ---------- Placering i SusChat ---------- */
/* Chat-toppen (øverst i sidebjælken): logoet fylder hele bredden; højden følger logoets form */
.brand > susdesk-logo { flex: 1 1 auto; width: 100%; }
/* Loginskærmen: det store logo står centreret over kortet med loginformularen */
#login { align-content: center; row-gap: clamp(16px, 3.4vh, 30px); }
.sdl-login-h { width: min(100%, 680px); margin: 0; justify-self: center; font: inherit; letter-spacing: 0; }

/* ---------- Bevægelse ---------- */
/* Bag et åbent vindue står animationerne stille (vinduets baggrund er sløret og skulle ellers regnes om hele tiden).
   Reglen må kun ramme selve susdesk-logo, og pausen arves via --sdl-play. Med "susdesk-logo *" efter :root:has() regnede
   Chrome stilen for alle elementer på siden om, hver gang en besked blev sat ind (ca. 20 ms pr. besked, 10-15 sek. ved opstart). */
:root:has(dialog[open]) susdesk-logo { --sdl-play: paused; }
.sdl-p-cur, .sdl-k-top, .sdl-tw, .sdl-ins, .sdl-run path, .sdl-d-caret { animation-play-state: var(--sdl-play, running); }
/* "Reduceret bevægelse" i styresystemet: ingen animationer (markøren står fast, tasterne står oppe). Appens "Rolig" slår dem også fra. */
@media (prefers-reduced-motion: reduce) {
  susdesk-logo *, susdesk-logo *::before, susdesk-logo *::after, .sdl-menu { animation: none !important; }
  .sdl-btn { transition: none; }
}
