/* Klar stue – find 20 fejl på patientstuen (owner: game agent). Prefix ks-. iOS 15-sikker CSS. */
:root {
  --ink: #2b2622;
  --bg: #eef6f4;
  --tomato: #ff6b4a;
  --tomato-d: #c9431f;
  --sun: #ffd34d;
  --sun-l: #fff4cf;
  --scrub: #b3c5e6;
  --scrub-l: #e6edf8;
  --pencil: #e5484d;
  --blue: #3f6fb5;
  --green: #1f7a60;
  --mute: #6a655f;
  --line: rgba(43, 38, 34, .14);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.35; color: var(--ink); background: var(--bg);
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
#ks-app { height: 100%; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, .ks-dialog:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.ks-card { background: #fff; border: 3px solid var(--ink); border-radius: 24px; }

.ks-btn {
  min-height: 48px; padding: 8px 22px; border: 3px solid var(--ink); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: 18px; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.ks-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.ks-primary { background: var(--tomato); }
.ks-quiet { box-shadow: none; border-color: transparent; text-decoration: underline; font-weight: 500; }
.ks-quiet:active { transform: none; box-shadow: none; }

/* ---------- start ---------- */
.ks-start { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ks-start-card {
  display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: 8px 30px; align-items: center;
  width: 100%; max-width: 940px; padding: 26px 30px; box-shadow: 0 8px 0 rgba(43, 38, 34, .14);
}
.ks-hero { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ks-bunting { width: 100%; max-width: 290px; }
.ks-bunting svg, .ks-hero-nurse svg { display: block; width: 100%; height: auto; }
.ks-hero-nurse { width: 100%; max-width: 280px; margin-top: -6px; }
.ks-start-main { min-width: 0; }
.ks-start h1 { margin: 0; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.ks-sub { margin: 6px 0 0; font-size: 21px; font-weight: 500; color: var(--mute); }
.ks-hello {
  position: relative; margin: 16px 0 14px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 18px;
  background: #fff; font-size: 17px;
}
.ks-hello::before {
  content: ""; position: absolute; left: -10.5px; top: 26px; width: 16px; height: 16px; background: #fff;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); border-radius: 0 0 0 4px;
}
.ks-field { display: flex; align-items: center; gap: 8px 12px; margin-top: 10px; flex-wrap: wrap; }
.ks-label { font-weight: 600; font-size: 16px; min-width: 112px; }
.ks-label small { font-weight: 400; color: var(--mute); font-size: 13.5px; margin-left: 4px; }
.ks-chips { display: flex; gap: 8px; }
.ks-chip {
  width: 58px; height: 48px; padding: 0; border: 3px solid var(--ink); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: 19px;
}
.ks-opts { display: flex; gap: 8px; flex: 1 1 300px; min-width: 0; }
.ks-opt {
  flex: 1 1 0; min-width: 0; min-height: 52px; padding: 5px 14px; border: 3px solid var(--ink); border-radius: 16px;
  background: #fff; text-align: left; display: flex; flex-direction: column; justify-content: center; line-height: 1.15;
}
.ks-opt b { font-size: 17px; font-weight: 600; }
.ks-opt span { font-size: 13.5px; opacity: .8; }
.ks-chip[aria-pressed="true"], .ks-opt[aria-pressed="true"] { background: var(--sun); box-shadow: 0 3px 0 var(--ink); }
.ks-go { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.ks-mixfield { display: flex; flex-direction: column; gap: 3px; }
.ks-mix-in {
  width: 160px; height: 56px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 16px; background: #fff;
  font: 600 22px 'Fredoka', sans-serif; color: var(--ink); letter-spacing: .08em;
}
.ks-mix-in::placeholder { color: #b9b4ad; font-weight: 400; letter-spacing: 0; }
.ks-startbtn { flex: 1 1 180px; min-height: 56px; font-size: 24px; }
.ks-mix-help { margin: 8px 0 0; font-size: 13.5px; color: var(--mute); }
.ks-mix-help.ks-bad { color: #b3261e; font-weight: 500; }
.ks-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-top: 6px; }
.ks-note { margin: 0; font-size: 14px; color: var(--mute); }
.ks-link {
  border: 0; background: none; padding: 12px 0; min-height: 44px; color: var(--blue); font-weight: 500; font-size: 14px;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .ks-start { padding: 10px; align-items: flex-start; }
  .ks-start-card { grid-template-columns: 100%; padding: 14px 16px 10px; gap: 0; border-radius: 22px; }
  .ks-bunting { max-width: 210px; }
  .ks-hero-nurse { max-width: 150px; }
  .ks-start-head { text-align: center; margin-top: 6px; }
  .ks-start h1 { font-size: 38px; }
  .ks-sub { font-size: 18px; }
  .ks-hello { font-size: 16px; margin: 16px 0 10px; padding: 10px 14px; }
  .ks-hello::before { left: 50%; margin-left: -8px; top: -10.5px; border: 0; border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); border-radius: 4px 0 0 0; }
  .ks-label { min-width: 0; flex: 0 0 100%; }
  .ks-opts { flex-basis: 100%; }
  .ks-opt { padding: 5px 10px; }
  .ks-mixfield .ks-label { flex: none; }
  .ks-mix-in { width: 132px; }
  .ks-startbtn { flex-basis: 120px; }
}
@media (max-height: 520px) and (min-width: 701px) {
  .ks-start { padding: 8px; }
  .ks-start-card { padding: 10px 18px; gap: 0 18px; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); border-radius: 20px; }
  .ks-start-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .ks-start h1 { font-size: 30px; }
  .ks-sub { font-size: 16px; margin: 0; }
  .ks-hello { font-size: 14.5px; margin: 8px 0 6px; padding: 7px 12px; line-height: 1.3; }
  .ks-hello::before { top: 16px; }
  .ks-field { margin-top: 6px; }
  .ks-chip { height: 44px; }
  .ks-opt { min-height: 44px; padding: 3px 12px; }
  .ks-go { margin-top: 6px; }
  .ks-mixfield { flex-direction: row; align-items: center; gap: 12px; }
  .ks-mix-in { height: 46px; width: 128px; font-size: 19px; }
  .ks-startbtn { min-height: 48px; font-size: 21px; }
  .ks-mix-help { display: none; }
  .ks-mix-help.ks-bad { display: block; margin-top: 4px; }
  .ks-foot { margin-top: 0; }
  .ks-note { font-size: 13px; }
  .ks-link { font-size: 13px; }
}

/* ---------- topbjælke ---------- */
.ks-top {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 7px var(--pad, 12px);
  background: #fff; border-bottom: 3px solid var(--ink);
}
.ks-ib {
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--sun); display: grid; place-items: center;
}
.ks-ib svg { display: block; }
.ks-ttl { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; margin-right: auto; }
.ks-ttl b { font-size: 20px; font-weight: 600; white-space: nowrap; }
.ks-ttl span { font-size: 14px; color: var(--mute); white-space: nowrap; }
.ks-prog { display: flex; align-items: center; gap: 10px; }
.ks-count { font-size: 19px; font-weight: 500; white-space: nowrap; display: inline-block; }
.ks-count b { font-size: 25px; font-weight: 700; color: var(--pencil); }
.ks-bar { display: block; width: 120px; height: 12px; border: 2.5px solid var(--ink); border-radius: 9px; background: #fff; overflow: hidden; }
.ks-bar i { display: block; height: 100%; width: 0; background: var(--pencil); transition: width .4s ease; }
.ks-time {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: var(--scrub-l); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ks-time .ks-ic { font-size: 14px; }
.ks-tools { display: flex; align-items: center; gap: 8px; }
.ks-tb {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px;
  padding: 0 14px 0 10px; border: 3px solid var(--ink); border-radius: 999px; background: #fff;
  font-weight: 500; font-size: 16px; white-space: nowrap;
}
.ks-tb:active, .ks-ib:active, .ks-chip:active, .ks-opt:active, .ks-pan:active, .ks-x:active { transform: translateY(2px); }
.ks-tb .ks-ic { font-size: 19px; line-height: 1; }
.ks-tb[data-act="sound"] { padding: 0; width: 44px; }
.ks-tb[data-act="sound"] .ks-lb { display: none; }
.ks-tb[data-act="result"] { background: var(--sun); }
.ks-tb-text[aria-pressed="true"] { background: var(--sun); }
.ks-seg { display: inline-flex; height: 44px; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.ks-seg-b { border: 0; background: none; padding: 0 16px; font-weight: 500; font-size: 16px; min-width: 56px; }
.ks-seg-b[aria-pressed="true"] { background: var(--sun); font-weight: 600; }
@keyframes ks-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.ks-bump { animation: ks-bump .35s ease-out; }

@media (max-width: 1179px) {
  .ks-play .ks-tb { padding: 0; width: 44px; }
  .ks-play .ks-tb .ks-lb { display: none; }
  .ks-play .ks-tb[data-act="result"] { width: auto; padding: 0 14px 0 10px; }
  .ks-play .ks-tb[data-act="result"] .ks-lb { display: inline; }
}
@media (max-width: 900px) {
  .ks-bar { width: 84px; }
  .ks-top { gap: 9px; }
}
@media (max-width: 619px) {
  .ks-play .ks-top { flex-wrap: wrap; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .ks-play .ks-tools { width: 100%; justify-content: space-between; gap: 6px; }
  .ks-play .ks-tb, .ks-play .ks-tb[data-act="result"], .ks-play .ks-tb[data-act="sound"] { flex: 1 1 0; width: auto; padding: 0; }
  .ks-play .ks-tb[data-act="result"] .ks-lb { display: none; }
  .ks-prog { flex-direction: column; align-items: flex-end; gap: 1px; }
  .ks-count { font-size: 16px; line-height: 1; }
  .ks-count b { font-size: 21px; }
  .ks-bar { width: 72px; height: 10px; }
  .ks-time { padding: 0 9px; font-size: 16px; }
  .ks-ttl b { font-size: 18px; }
  .ks-ttl span { font-size: 13px; }
  .ks-all .ks-seg-b { padding: 0 10px; min-width: 48px; }
  .ks-all .ks-tb .ks-lb { display: none; }
  .ks-all .ks-tb { padding: 0; width: 44px; }
}
@media (max-height: 520px) {
  .ks-top { min-height: 50px; padding-top: 2px; padding-bottom: 2px; }
  .ks-ttl b { font-size: 17px; }
  .ks-ttl span { font-size: 13px; }
}

/* ---------- spilleskærmen ---------- */
.ks-play {
  --pad: 12px; --pw: 800px; --ph: 450px; --strip-w: 260px; --strip-h: 170px;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 100%; grid-template-rows: auto minmax(0, 1fr) auto;
}
.ks-stage { display: flex; align-items: center; justify-content: center; padding: var(--pad); min-width: 0; min-height: 0; }
.ks-frame {
  position: relative; flex: 0 0 auto; max-width: 100%; border: 3px solid var(--ink); border-radius: 18px; background: #fff;
  overflow: hidden; box-shadow: 0 5px 0 rgba(43, 38, 34, .14);
}
.ks-scroller { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ks-scroller::-webkit-scrollbar { display: none; }
.ks-svg {
  display: block; width: var(--pw); height: var(--ph); cursor: pointer; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.ks-pan {
  position: absolute; top: 8px; width: 44px; height: 44px; padding: 0; display: none; place-items: center;
  border: 3px solid var(--ink); border-radius: 50%; background: rgba(255, 255, 255, .93); box-shadow: 0 3px 0 rgba(43, 38, 34, .22);
}
.ks-pan-l { left: 8px; }
.ks-pan-r { right: 8px; }
.ks-pan-r svg { transform: rotate(180deg); }
.ks-more-l .ks-pan-l, .ks-more-r .ks-pan-r { display: grid; }

.ks-play[data-mode="scroll"] .ks-stage { align-items: flex-start; }
.ks-play[data-mode="scroll"] .ks-frame { width: 100%; }
.ks-play[data-mode="side"] { grid-template-columns: minmax(0, 1fr) var(--strip-w); grid-template-rows: auto minmax(0, 1fr); }
.ks-play[data-mode="side"] .ks-top { grid-column: 1 / 3; }

/* instruktøren og taleboblen */
.ks-strip { display: flex; min-width: 0; min-height: 0; }
.ks-bust { flex: 0 0 auto; height: var(--bh); width: calc(var(--bh) * .8667); transform-origin: 50% 100%; }
.ks-bust svg { display: block; width: 100%; height: 100%; }
.ks-bubble {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 rgba(43, 38, 34, .14);
  font-size: 17px;
}
.ks-bubble-in {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 9px 16px 10px;
  line-height: 1.3; scrollbar-width: thin; border-radius: 17px;
}
.ks-bubble::before {
  content: ""; position: absolute; left: -10.5px; top: 50%; margin-top: -8px; width: 16px; height: 16px; background: #fff;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); border-radius: 0 0 0 4px;
}
.ks-bubble::after {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 30px; border-radius: 0 0 17px 17px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; opacity: 0; transition: opacity .15s;
}
.ks-bubble.ks-more::after { opacity: 1; }
.ks-b-head { display: block; line-height: 1.22; margin-bottom: 3px; }
.ks-kick {
  display: inline-block; vertical-align: 2px; margin-right: 4px; padding: 0 9px 1px; border-radius: 99px;
  background: #ffe3da; color: #a8320f; font-size: .8em; font-weight: 600; white-space: nowrap;
}
.ks-b-title { font-size: 1.14em; font-weight: 600; line-height: 1.22; }
.ks-b-ok { display: block; margin-bottom: 3px; color: var(--green); }
.ks-b-why { display: block; }
.ks-b-fix { display: block; margin-top: 6px; padding: 4px 10px 5px; background: var(--sun-l); border-radius: 10px; }
.ks-b-fix b, .ks-fix b { font-weight: 600; }

.ks-play[data-mode="bottom"] .ks-strip, .ks-play[data-mode="scroll"] .ks-strip {
  height: var(--strip-h); padding: 0 var(--pad); gap: 16px; justify-content: center; align-items: flex-end;
}
.ks-play[data-mode="bottom"] .ks-bust { --bh: calc(var(--strip-h) - 2px); }
.ks-play[data-mode="bottom"] .ks-bubble {
  flex: 0 1 900px; align-self: center; min-height: 92px; max-height: calc(100% - var(--pad) - 6px); margin-bottom: var(--pad);
}
.ks-play[data-mode="scroll"] .ks-strip { gap: 12px; }
.ks-play[data-mode="scroll"] .ks-bust { --bh: 96px; }
.ks-play[data-mode="scroll"] .ks-bubble { flex: 1 1 0; align-self: stretch; margin: 2px 0 calc(var(--pad) + 4px); font-size: 15px; }
.ks-play[data-mode="scroll"] .ks-bubble-in { padding: 8px 12px 9px; }
.ks-play[data-mode="scroll"] .ks-bubble::before { top: auto; bottom: 44px; }

.ks-play[data-mode="side"] .ks-strip { flex-direction: column; align-items: center; padding: var(--pad) var(--pad) calc(var(--pad) + 4px) 0; }
.ks-play[data-mode="side"] .ks-bust { --bh: 88px; }
.ks-play[data-mode="side"] .ks-bubble { flex: 1 1 0; width: 100%; margin-top: -8px; font-size: 15px; z-index: 1; }
.ks-play[data-mode="side"] .ks-bubble-in { padding: 8px 12px 9px; }
.ks-play[data-mode="side"] .ks-bubble::before { display: none; }
@media (min-height: 600px) { .ks-play[data-mode="side"] .ks-kick { display: table; margin: 0 0 3px; } }
@media (min-height: 600px) {
  .ks-play[data-mode="side"] .ks-bust { --bh: 180px; }
  .ks-play[data-mode="side"] .ks-bubble { flex: 0 1 auto; font-size: 17px; }
}

@keyframes ks-pop { 0% { transform: scale(.96); opacity: .3; } 60% { transform: scale(1.015); opacity: 1; } 100% { transform: none; } }
.ks-pop { animation: ks-pop .28s ease-out; }
@keyframes ks-nod { 0%, 100% { transform: none; } 35% { transform: translateY(5px) rotate(-2.5deg); } 70% { transform: translateY(-2px) rotate(1deg); } }
.ks-nod { animation: ks-nod .5s ease; }

/* ---------- ringe, hint og "?" i billedet ---------- */
.ks-rings, .ks-fx { pointer-events: none; }
.ks-r-line { fill: none; stroke: var(--pencil); stroke-linecap: round; stroke-linejoin: round; }
.ks-r-halo { fill: none; stroke: #fff; stroke-opacity: .7; stroke-linecap: round; stroke-linejoin: round; }
.ks-ring-shown .ks-r-line { stroke: var(--blue); }
.ks-badge circle { fill: var(--pencil); stroke: #fff; stroke-width: 2.5; }
.ks-ring-shown .ks-badge circle { fill: var(--blue); }
.ks-badge text { fill: #fff; stroke: none; font: 600 17px 'Fredoka', sans-serif; }
@keyframes ks-draw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }
.ks-fresh .ks-r-line { stroke-dasharray: 1.02 1.02; animation: ks-draw .55s ease-out both; }
@keyframes ks-fade { from { opacity: 0; } to { opacity: 1; } }
.ks-fresh .ks-r-halo { animation: ks-fade .5s ease-out both; }
@keyframes ks-badge { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.ks-fresh .ks-badge-in { animation: ks-badge .32s .42s ease-out both; }
@keyframes ks-flash { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: .2; } }
.ks-flash .ks-r-line { animation: ks-flash .9s ease; }
.ks-flash .ks-badge-in { animation: ks-badge .32s ease-out both; }

.ks-hint-fill { fill: var(--sun); fill-opacity: .26; stroke: none; }
.ks-hint-line { fill: none; stroke: #ffb300; stroke-linecap: round; }
@keyframes ks-hint { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.ks-hint { animation: ks-hint 1.05s ease-in-out infinite; }

.ks-puff circle { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.ks-puff text { fill: var(--ink); stroke: none; font: 600 20px 'Fredoka', sans-serif; }
@keyframes ks-puff {
  0% { transform: scale(.3); opacity: 0; } 18% { transform: scale(1.12); opacity: 1; }
  65% { transform: translateY(-12px); opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; }
}
.ks-puff-in { animation: ks-puff 1s ease-out forwards; }

.ks-confetti { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.ks-confetti i { position: absolute; top: -26px; border: 1.5px solid rgba(43, 38, 34, .55); animation: ks-fall 2s linear forwards; }
@keyframes ks-fall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(112vh) rotate(680deg); } }

/* ---------- kort og ark ---------- */
.ks-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ks-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(43, 38, 34, .46); }
.ks-dialog {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 540px; max-height: 100%;
  box-shadow: 0 8px 0 rgba(43, 38, 34, .25); outline: none; animation: ks-card-in .22s ease-out; overflow: hidden;
}
.ks-dialog-body { scrollbar-width: thin; }
@keyframes ks-card-in { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.ks-m-result .ks-dialog, .ks-m-sheet .ks-dialog { max-width: 740px; }
.ks-x {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 3px solid var(--ink);
  border-radius: 50%; background: #fff; font-size: 18px; font-weight: 600; line-height: 1;
}
.ks-h2 { margin: 0; font-size: 27px; font-weight: 600; line-height: 1.15; }
.ks-h2 small { font-size: 16px; font-weight: 500; color: var(--mute); margin-left: 6px; }
.ks-m-sheet .ks-h2 { padding: 16px 64px 10px 20px; }
.ks-h3 { margin: 16px 0 0; font-size: 18px; font-weight: 600; }
.ks-dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 20px 14px; }
.ks-m-sheet .ks-dialog-body { padding-top: 4px; }
.ks-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; padding: 12px 16px 16px; border-top: 2px solid var(--line); }
.ks-empty { margin: 12px 0 18px; color: var(--mute); }

.ks-confirm { display: flex; align-items: center; gap: 14px; padding: 20px 22px 6px; }
.ks-confirm-nurse { flex: 0 0 86px; }
.ks-confirm-nurse svg, .ks-res-nurse svg { display: block; width: 100%; height: auto; }
.ks-confirm p { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; }
.ks-m-confirm .ks-actions { border-top: 0; }

.ks-res-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.ks-res-nurse { flex: 0 0 104px; }
.ks-res-t p { margin: 4px 0 0; }
.ks-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ks-stat { display: flex; flex-direction: column; align-items: center; padding: 7px 4px 8px; border-radius: 14px; background: var(--scrub-l); text-align: center; line-height: 1.15; }
.ks-stat b { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ks-stat span { font-size: 13.5px; color: #4d4944; }

.ks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ks-item { display: flex; gap: 10px; padding: 9px 12px 10px; border: 2px solid var(--line); border-radius: 14px; background: #fbfdfc; break-inside: avoid; -webkit-column-break-inside: avoid; }
.ks-num {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--pencil); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 15px; line-height: 1;
}
.ks-num-shown { background: var(--blue); }
.ks-num-btn { flex-basis: 44px; width: 44px; height: 44px; border: 3px solid var(--ink); font-size: 17px; padding: 0; }
.ks-item-t { min-width: 0; flex: 1 1 auto; }
.ks-item-h { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.ks-item-h b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.ks-item p { margin: 3px 0 0; font-size: 15.5px; }
.ks-st { font-size: 13px; font-weight: 600; padding: 1px 9px; border-radius: 99px; white-space: nowrap; }
.ks-st-found { background: #dcf1ea; color: var(--green); }
.ks-st-shown { background: var(--scrub-l); color: #2f558f; }
.ks-cat { font-size: 12.5px; font-weight: 500; color: #fff; padding: 1px 9px 2px; border-radius: 99px; white-space: nowrap; }
.ks-group-h { display: flex; align-items: center; gap: 8px; margin: 16px 0 7px; font-size: 16px; font-weight: 600; }
.ks-group-h i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); }
.ks-group-h small { font-weight: 400; color: var(--mute); }
@keyframes ks-item-flash { 0%, 100% { background: #fbfdfc; } 30% { background: var(--sun); } }
.ks-item-flash { animation: ks-item-flash 1.2s ease; }

@media (max-width: 520px) {
  .ks-modal { padding: 8px; }
  .ks-dialog-body { padding: 14px 14px 12px; }
  .ks-m-sheet .ks-h2 { padding-left: 14px; }
  .ks-h2 { font-size: 23px; }
  .ks-res-nurse { flex-basis: 76px; }
  .ks-res-head { gap: 12px; }
  .ks-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ks-btn { font-size: 17px; padding: 8px 18px; }
  .ks-confirm p { font-size: 18px; }
  .ks-confirm-nurse { flex-basis: 68px; }
}
@media (max-height: 520px) {
  .ks-modal { padding: 6px; }
  .ks-actions { padding: 8px 12px 10px; }
  .ks-btn { min-height: 44px; }
  .ks-res-nurse { flex-basis: 72px; }
  .ks-confirm { padding-top: 12px; }
  .ks-confirm-nurse { flex-basis: 64px; }
}

/* ---------- undervisere: alle fejl ---------- */
.ks-all { --pad: 16px; --pw: 800px; --ph: 450px; position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ks-all .ks-top { position: sticky; top: 0; z-index: 5; }
.ks-all-body { max-width: 1318px; margin: 0 auto; padding: var(--pad); }
.ks-all-intro { margin: 0 0 12px; max-width: 860px; }
.ks-all .ks-frame { max-width: calc(var(--pw) + 6px); margin: 0 auto; }
.ks-all-list { margin-top: 10px; -webkit-columns: 380px; columns: 380px; -webkit-column-gap: 22px; column-gap: 22px; }
.ks-all-list .ks-group-h { margin-top: 12px; break-after: avoid; -webkit-column-break-after: avoid; }
.ks-all-list .ks-item { align-items: flex-start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ks-puff-in { animation: none !important; }
}
