/* Live-session presenter (Training > Live sessions > Present).
   Global on purpose: the page is hosted outside .page-content (MainLayout swaps that class while presenting), so none of the app's heading, paragraph, button or dark-mode rules reach it.
   Everything is sized from --u, one sixteenth of a 1080p screen: the slide is a 16:9 stage of 120u by 67.5u, so 1080p, 4K and a projector all look the same, just sharper.
   Phones and narrow windows switch to a scrolling layout at the bottom of this file. */

#app .dk {
    --u: min(calc(100vw / 120), calc(100vh / 67.5));
    --ink: #eef6fc; --mute: #a9bfd4; --mint: #5cc4f5; --mint2: #8fd8ff; --sky: #6fd3ff; --red: #ff5a4a; --gold: #ffc857; --violet: #a98bff;
    --panel: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .17);
    position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; color: var(--ink); background: #060f1c;
    font-family: Inter, system-ui, "Segoe UI", Roboto, Arial, sans-serif; font-size: calc(var(--u) * 1.6); line-height: 1.35;
    outline: none; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility;
}
@supports (height: 100dvh) { #app .dk { --u: min(calc(100vw / 120), calc(100dvh / 67.5)); height: 100dvh; } }
#app .dk.blank::after { content: ""; position: absolute; inset: 0; background: #000; z-index: 90; }
#app .dk:not(.awake):not(.touch) { cursor: none; }
#app .dk * { box-sizing: border-box; }

/* ---------- backdrop: drifting colour, a faint grid and rising sparks ---------- */
#app .dk .dk-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#app .dk .dk-blob { position: absolute; border-radius: 50%; filter: blur(calc(var(--u) * 9)); opacity: .55; animation: dk-drift 26s ease-in-out infinite alternate; }
#app .dk .dk-blob.b1 { width: calc(var(--u) * 62); height: calc(var(--u) * 62); left: calc(var(--u) * -14); top: calc(var(--u) * -20); background: #0A5BA6; }
#app .dk .dk-blob.b2 { width: calc(var(--u) * 58); height: calc(var(--u) * 58); right: calc(var(--u) * -16); bottom: calc(var(--u) * -22); background: #1e4fa8; animation-duration: 33s; }
#app .dk .dk-blob.b3 { width: calc(var(--u) * 36); height: calc(var(--u) * 36); left: 46%; top: 28%; background: #6a37b0; opacity: .26; animation-duration: 39s; }
#app .dk .dk-gridfx { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: calc(var(--u) * 4) calc(var(--u) * 4); -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 78%); }
#app .dk .dk-spark i { position: absolute; bottom: calc(var(--u) * -3); left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(111, 224, 184, .6); box-shadow: 0 0 calc(var(--u) * 1) rgba(111, 224, 184, .7); animation: dk-rise var(--d) linear infinite; animation-delay: var(--l); }
@keyframes dk-drift { to { transform: translate(calc(var(--u) * 8), calc(var(--u) * 6)) scale(1.16); } }
@keyframes dk-rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(calc(var(--u) * -78)); opacity: 0; } }

/* ---------- toolbar, arrows and progress (quiet until the mouse or a finger moves) ---------- */
#app .dk .dk-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: calc(var(--u) * .7); padding: calc(var(--u) * 1.2) calc(var(--u) * 2); z-index: 40; opacity: 0; transition: opacity .3s; }
#app .dk.awake .dk-top, #app .dk .dk-top:focus-within, #app .dk.touch .dk-top { opacity: 1; }
#app .dk .dk-spacer { flex: 1; }
#app .dk .dk-count, #app .dk .dk-clock { font-size: max(13px, calc(var(--u) * 1.25)); color: var(--mute); font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .28); padding: .25em .8em; border-radius: 999px; white-space: nowrap; }
#app .dk .dk-btn { background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .22) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border-radius: calc(var(--u) * .9); min-width: max(40px, calc(var(--u) * 3.4)); height: max(40px, calc(var(--u) * 3.4)); font-size: max(16px, calc(var(--u) * 1.5)); cursor: pointer; padding: 0 .4em; line-height: 1; }
#app .dk .dk-btn:hover { background: rgba(255, 255, 255, .22) !important; }
#app .dk .dk-nav { position: absolute; bottom: calc(var(--u) * 1.6); right: calc(var(--u) * 2); display: flex; gap: calc(var(--u) * .6); z-index: 40; opacity: 0; transition: opacity .3s; }
#app .dk.awake .dk-nav, #app .dk .dk-nav:focus-within, #app .dk.touch .dk-nav { opacity: 1; }
#app .dk .dk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: max(4px, calc(var(--u) * .35)); background: rgba(255, 255, 255, .1); z-index: 41; }
#app .dk .dk-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--sky), var(--violet)); transition: width .45s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 0 calc(var(--u) * 1) rgba(111, 211, 255, .7); }

/* ---------- the stage ---------- */
#app .dk .dk-slide { position: absolute; inset: 0; margin: auto; width: calc(var(--u) * 120); height: calc(var(--u) * 67.5); display: flex; flex-direction: column; justify-content: center; justify-content: safe center; padding: calc(var(--u) * 3.2) calc(var(--u) * 7) calc(var(--u) * 8.4); z-index: 5; animation: dk-in .75s cubic-bezier(.2, .9, .25, 1) both; }
#app .dk .dk-slide > * { flex-shrink: 0; }
@keyframes dk-in { from { opacity: 0; transform: translateY(calc(var(--u) * 2.5)) scale(.965); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }

#app .dk .dk-part { align-self: flex-start; display: inline-flex; align-items: center; gap: .6em; padding: .35em 1.1em; border-radius: 999px; background: rgba(92,196,245, .16); border: 1px solid rgba(92,196,245, .55); color: var(--mint2); font-size: calc(var(--u) * 1.35); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 calc(var(--u) * 1.4); }
#app .dk h1, #app .dk h2, #app .dk h3 { margin: 0; padding: 0; color: var(--ink); -webkit-text-fill-color: var(--ink); letter-spacing: -.025em; text-transform: none; }
#app .dk h1 { font-size: calc(var(--u) * 7.4); line-height: 1.02; font-weight: 900; text-shadow: 0 0 calc(var(--u) * 3) rgba(111, 224, 184, .35); }
#app .dk h2 { font-size: calc(var(--u) * 4.7); line-height: 1.05; font-weight: 850; }
#app .dk h2::after { content: ""; display: block; height: calc(var(--u) * .45); width: 0; margin-top: calc(var(--u) * .8); border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--sky)); animation: dk-underline 1s .35s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes dk-underline { to { width: calc(var(--u) * 16); } }
#app .dk h3 { font-size: calc(var(--u) * 2.3); line-height: 1.2; font-weight: 800; }
#app .dk p { margin: 0; color: inherit; -webkit-text-fill-color: currentColor; font-size: inherit; line-height: inherit; max-width: none; }
#app .dk strong, #app .dk b { color: inherit; -webkit-text-fill-color: currentColor; }
#app .dk .dk-sub { font-size: calc(var(--u) * 2.3); color: var(--mute); -webkit-text-fill-color: var(--mute); margin: calc(var(--u) * 1) 0 calc(var(--u) * 1.9); }

/* reveals: each press of next brings one more thing in with a little bounce */
#app .dk .off { opacity: 0; transform: translateY(calc(var(--u) * 2.2)) scale(.95); pointer-events: none; }
#app .dk .on { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s cubic-bezier(.2, 1.5, .35, 1); }
#app .dk .dk-url.off { opacity: 1; transform: none; }

#app .dk .dk-why { margin-top: calc(var(--u) * 2.2); padding: calc(var(--u) * 1.5) calc(var(--u) * 2); border-left: calc(var(--u) * .5) solid var(--mint); background: rgba(92,196,245, .15); border-radius: calc(var(--u) * 1.2); font-size: calc(var(--u) * 2); line-height: 1.4; max-width: calc(var(--u) * 100); }
#app .dk .dk-why.side { max-width: calc(var(--u) * 46); align-self: center; margin: 0; }
#app .dk .dk-quip { position: absolute; left: calc(var(--u) * 7); bottom: calc(var(--u) * 3); max-width: calc(var(--u) * 104); display: flex; align-items: center; gap: .7em; padding: .55em 1.2em .55em .9em; border-radius: 999px; background: linear-gradient(135deg, #ffe27a, #ffc857); color: #2b2200; -webkit-text-fill-color: #2b2200; font-weight: 700; font-size: calc(var(--u) * 1.75); box-shadow: 0 calc(var(--u) * .8) calc(var(--u) * 2.4) rgba(0, 0, 0, .4); transform: rotate(-1.2deg); z-index: 8; }
#app .dk .dk-quip.on { transform: rotate(-1.2deg); animation: dk-wobble .9s cubic-bezier(.2, 1.6, .4, 1) both; }
#app .dk .dk-quip.off { transform: rotate(-1.2deg) translateY(calc(var(--u) * 2)); }
#app .dk .dk-quip span { font-size: 1.5em; line-height: 1; }
@keyframes dk-wobble { 0% { transform: rotate(-6deg) scale(.6); } 60% { transform: rotate(1.6deg) scale(1.05); } 100% { transform: rotate(-1.2deg) scale(1); } }

/* ---------- title and section slides ---------- */
#app .dk .dk-title-slide { text-align: center; position: relative; }
#app .dk .dk-title-sub { font-size: calc(var(--u) * 2.9); color: var(--mute); -webkit-text-fill-color: var(--mute); margin-top: calc(var(--u) * 1.6); }
#app .dk .dk-shield { position: relative; width: calc(var(--u) * 14); height: calc(var(--u) * 14); margin: 0 auto calc(var(--u) * 2); display: grid; place-items: center; font-size: calc(var(--u) * 9.5); animation: dk-float 3.4s ease-in-out infinite; }
#app .dk .dk-shield::before, #app .dk .dk-shield::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: calc(var(--u) * .25) solid rgba(111, 224, 184, .6); animation: dk-pulse-ring 2.8s ease-out infinite; }
#app .dk .dk-shield::after { animation-delay: 1.4s; }
@keyframes dk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--u) * -1.2)); } }
@keyframes dk-pulse-ring { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
#app .dk .dk-section { position: relative; border-left: calc(var(--u) * .8) solid var(--mint); padding-left: calc(var(--u) * 3); }
#app .dk .dk-section .dk-ghost { position: absolute; right: calc(var(--u) * -2); top: 50%; transform: translateY(-50%); font-size: calc(var(--u) * 34); font-weight: 900; color: rgba(255, 255, 255, .05); -webkit-text-fill-color: rgba(255, 255, 255, .05); letter-spacing: -.05em; line-height: 1; pointer-events: none; }
#app .dk .dk-section .dk-title-sub { font-size: calc(var(--u) * 3); }

/* ---------- bullets, cards, steps ---------- */
#app .dk .dk-bullets { list-style: none; padding: 0; margin: calc(var(--u) * 1.4) 0 0; display: grid; gap: calc(var(--u) * 1.5); }
#app .dk .dk-bullets li { display: flex; align-items: center; gap: calc(var(--u) * 1.6); font-size: calc(var(--u) * 3.3); font-weight: 700; line-height: 1.22; margin: 0; padding: 0; }
#app .dk .dk-dot { flex: 0 0 auto; width: calc(var(--u) * 4.6); height: calc(var(--u) * 4.6); border-radius: 50%; background: linear-gradient(135deg, var(--mint), #0C78C0); color: #04203a; -webkit-text-fill-color: #04203a; display: grid; place-items: center; font-size: calc(var(--u) * 2.3); font-weight: 900; box-shadow: 0 0 calc(var(--u) * 1.6) rgba(92,196,245, .55); }

#app .dk .dk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 1.6); margin-top: calc(var(--u) * 1); }
#app .dk .dk-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--u) * 1.8); padding: calc(var(--u) * 1.8) calc(var(--u) * 2.2); overflow: hidden; }
#app .dk .dk-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--u) * .45); background: linear-gradient(var(--mint), var(--sky)); }
#app .dk .dk-card.on { box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) rgba(0, 0, 0, .35); }
#app .dk .dk-card .dk-card-icon { font-size: calc(var(--u) * 4.2); line-height: 1; margin-bottom: calc(var(--u) * .6); display: inline-block; }
#app .dk .dk-card.on .dk-card-icon { animation: dk-wiggle .9s .15s ease-in-out; }
#app .dk .dk-card h3 { font-size: calc(var(--u) * 2.3); }
#app .dk .dk-card p { color: var(--mute); -webkit-text-fill-color: var(--mute); font-size: calc(var(--u) * 1.8); line-height: 1.38; margin-top: calc(var(--u) * .5); }
@keyframes dk-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.15); } 60% { transform: rotate(10deg) scale(1.1); } }

#app .dk .dk-steps { display: grid; gap: calc(var(--u) * 1.1); margin-top: calc(var(--u) * 1); }
#app .dk .dk-step { display: flex; gap: calc(var(--u) * 2); align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--u) * 1.8); padding: calc(var(--u) * 1.2) calc(var(--u) * 2.4); }
#app .dk .dk-step-n { flex: 0 0 auto; width: calc(var(--u) * 5.4); height: calc(var(--u) * 5.4); border-radius: 50%; background: linear-gradient(135deg, var(--mint), #0C78C0); color: #04203a; -webkit-text-fill-color: #04203a; display: grid; place-items: center; font-weight: 900; font-size: calc(var(--u) * 2.6); box-shadow: 0 0 calc(var(--u) * 1.6) rgba(92,196,245, .5); }
#app .dk .dk-step h3 { font-size: calc(var(--u) * 3); }
#app .dk .dk-step p { color: var(--mute); -webkit-text-fill-color: var(--mute); font-size: calc(var(--u) * 2.05); margin-top: calc(var(--u) * .3); }

/* ---------- paper: the email, the web page and the chat window stay white and dark-inked in every theme ---------- */
#app .dk .dk-email, #app .dk .dk-browser, #app .dk .dk-chat { background: #fff !important; color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; border-radius: calc(var(--u) * 1.4); overflow: hidden; box-shadow: 0 calc(var(--u) * 1.8) calc(var(--u) * 6) rgba(0, 0, 0, .55); position: relative; }
#app .dk .dk-email *, #app .dk .dk-browser *, #app .dk .dk-chat * { color: inherit; -webkit-text-fill-color: currentColor; }
#app .dk .dk-email { font-size: calc(var(--u) * 1.75); }
#app .dk .dk-email-head { background: #eef3f8 !important; padding: .7em 1em; display: grid; gap: .45em; border-bottom: 1px solid #d6dee8; }
#app .dk .dk-email-head > div { display: flex; align-items: center; gap: .7em; border-radius: .4em; padding: .15em .3em; background: transparent !important; transition: background .4s ease, outline-color .4s ease; min-width: 0; }
#app .dk .dk-email-head span { flex: 0 0 auto; width: 5.6em; color: #5a6672 !important; -webkit-text-fill-color: #5a6672 !important; font-size: .72em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
#app .dk .dk-from-name { font-weight: 800; }
#app .dk .dk-from-addr { font-style: normal; color: #5a6672 !important; -webkit-text-fill-color: #5a6672 !important; font-size: .86em; overflow-wrap: anywhere; }
#app .dk .dk-av { flex: 0 0 auto; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0C78C0, #1a5fb4); color: #fff !important; -webkit-text-fill-color: #fff !important; font-weight: 800; font-size: .85em; }
#app .dk .dk-email-body { padding: .9em 1.1em 1.2em; background: transparent !important; }
#app .dk .dk-email-body p { margin: .35em 0; line-height: 1.5; border-radius: .4em; padding: .05em .3em; background: transparent !important; transition: background .4s ease, outline-color .4s ease; }
#app .dk .dk-email .hl { background: #ffe0dc !important; outline: .16em solid #e5493a; animation: dk-flash 1.1s ease-out; }
#app .dk .dk-email .hl-soft { background: #fff1c9 !important; }
#app .dk .dk-email-btn { display: inline-block; margin-top: .6em; background: #1a5fb4 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border-radius: .5em; padding: .55em 1.1em; font-weight: 800; transition: outline-color .4s ease; }
#app .dk .dk-email-btn.hl { background: #1a5fb4 !important; outline-offset: .15em; }
@keyframes dk-flash { 0% { outline-width: .6em; outline-color: rgba(229, 73, 58, 0); } 100% { outline-width: .16em; } }

#app .dk .dk-emailwrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: calc(var(--u) * 2.2); align-items: start; margin-top: calc(var(--u) * .6); }
#app .dk .dk-flags { display: grid; gap: calc(var(--u) * 1.1); }
#app .dk .dk-flag { background: rgba(255, 90, 74, .17); border-left: calc(var(--u) * .5) solid #ff5a4a; border-radius: calc(var(--u) * 1.1); padding: calc(var(--u) * 1.1) calc(var(--u) * 1.6); font-size: calc(var(--u) * 1.85); line-height: 1.38; font-weight: 600; }
#app .dk .dk-flag.off { transform: translateX(calc(var(--u) * 4)) scale(.96); }
#app .dk .dk-flag.on { animation: dk-slap .6s cubic-bezier(.2, 1.4, .4, 1) both; }
#app .dk .dk-flag span { margin-right: .5em; }
@keyframes dk-slap { from { transform: translateX(calc(var(--u) * 4)) scale(.96); } 60% { transform: translateX(calc(var(--u) * -.6)); } to { transform: none; } }

#app .dk .dk-spot { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 2.2); align-items: start; margin-top: calc(var(--u) * .6); }
#app .dk .dk-spot .dk-email { font-size: calc(var(--u) * 1.5); transition: transform .5s ease, box-shadow .5s ease, opacity .5s ease; }
#app .dk .dk-spot .dk-email.fake { transform: scale(1.02); box-shadow: 0 0 0 calc(var(--u) * .5) #ff5a4a, 0 calc(var(--u) * 1.8) calc(var(--u) * 6) rgba(0, 0, 0, .55); animation: dk-shake .6s .35s ease-in-out; }
#app .dk .dk-spot .dk-email.real { box-shadow: 0 0 0 calc(var(--u) * .5) #5cc4f5, 0 calc(var(--u) * 1.8) calc(var(--u) * 6) rgba(0, 0, 0, .55); opacity: .93; }
#app .dk .dk-stamp { position: absolute; top: .6em; right: .8em; font-weight: 900; letter-spacing: .12em; padding: .15em .7em; border: .2em solid; border-radius: .4em; transform: rotate(8deg); animation: dk-stamp .5s cubic-bezier(.2, 1.7, .4, 1) both; font-size: 1.5em; background: rgba(255, 255, 255, .94) !important; }
#app .dk .dk-stamp.fake { color: #e5493a !important; -webkit-text-fill-color: #e5493a !important; border-color: #e5493a; }
#app .dk .dk-stamp.real { color: #0C78C0 !important; -webkit-text-fill-color: #0C78C0 !important; border-color: #0C78C0; }
@keyframes dk-stamp { from { transform: scale(3) rotate(8deg); opacity: 0; } to { transform: scale(1) rotate(8deg); opacity: 1; } }
@keyframes dk-shake { 0%, 100% { translate: 0 0; } 20% { translate: calc(var(--u) * -.6) 0; } 40% { translate: calc(var(--u) * .6) 0; } 60% { translate: calc(var(--u) * -.4) 0; } 80% { translate: calc(var(--u) * .4) 0; } }

/* ---------- compare columns ---------- */
#app .dk .dk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 2); margin-top: calc(var(--u) * 1); }
#app .dk .dk-col { background: var(--panel); border: 2px solid var(--line); border-radius: calc(var(--u) * 1.8); padding: calc(var(--u) * 1.8) calc(var(--u) * 2.4); }
#app .dk .dk-col ul { list-style: none; padding: 0; margin: calc(var(--u) * 1) 0 0; display: grid; gap: calc(var(--u) * .9); font-size: calc(var(--u) * 2.3); }
#app .dk .dk-col li { margin: 0; padding: 0; }
#app .dk .dk-col.good, #app .dk .dk-col.new { border-color: var(--mint); }
#app .dk .dk-col.good h3 { color: var(--mint2); -webkit-text-fill-color: var(--mint2); }
#app .dk .dk-col.bad { border-color: #ff5a4a; }
#app .dk .dk-col.bad h3, #app .dk .dk-col.new h3 { color: #ff8a7d; -webkit-text-fill-color: #ff8a7d; }
#app .dk .dk-col.old { opacity: .72; }

/* ---------- the fake sign-in page ---------- */
#app .dk .dk-browser { max-width: calc(var(--u) * 78); font-size: calc(var(--u) * 1.5); }
#app .dk .dk-urlbar { background: #e8ecf2 !important; padding: .6em .9em; display: flex; gap: .6em; align-items: center; font-family: Consolas, "SFMono-Regular", monospace; font-size: .95em; }
#app .dk .dk-url { background: #fff !important; border-radius: 999px; padding: .3em 1em; transition: background .4s, outline-color .4s; flex: 1; overflow-wrap: anywhere; }
#app .dk .dk-url.on { background: #ffe0dc !important; outline: .16em solid #e5493a; }
#app .dk .dk-page { padding: 1em 1.5em 1.3em; display: grid; gap: .5em; max-width: 24em; background: transparent !important; }
#app .dk .dk-logo { font-weight: 800; color: #555 !important; -webkit-text-fill-color: #555 !important; }
#app .dk .dk-page h3 { color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; font-size: 1.6em; }
#app .dk .dk-input { border: 1px solid #bbb; border-radius: .4em; padding: .6em .8em; color: #777 !important; -webkit-text-fill-color: #777 !important; background: #fff !important; }
#app .dk .dk-signin { background: #0067b8 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border-radius: .3em; padding: .55em 1.5em; width: max-content; font-weight: 700; }
#app .dk .dk-callout { position: absolute; top: 3.9em; right: 1em; background: #e5493a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border-radius: .7em; padding: .6em 1em; font-weight: 800; max-width: 15em; line-height: 1.3; box-shadow: 0 .5em 1.4em rgba(0, 0, 0, .35); }
#app .dk .dk-callout::before { content: ""; position: absolute; top: -.55em; right: 3em; border: .55em solid transparent; border-top: 0; border-bottom-color: #e5493a; }

/* ---------- phone mock-ups: toll text, MFA prompts ---------- */
#app .dk .dk-phonewrap { display: flex; gap: calc(var(--u) * 3); align-items: center; flex-wrap: wrap; margin-top: calc(var(--u) * .6); }
#app .dk .dk-phone { width: calc(var(--u) * 34); background: #0f1217 !important; border: calc(var(--u) * .3) solid #3a4250; border-radius: calc(var(--u) * 3.6); padding: calc(var(--u) * 1.4) calc(var(--u) * 1.3) calc(var(--u) * 2); box-shadow: 0 calc(var(--u) * 1.8) calc(var(--u) * 6) rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: calc(var(--u) * .8); }
#app .dk .dk-phone-head { text-align: center; font-weight: 800; font-size: calc(var(--u) * 1.5); opacity: .9; border-bottom: 1px solid #333; padding-bottom: .5em; }
#app .dk .dk-bubble { background: #2b3038 !important; border-radius: calc(var(--u) * 1.8) calc(var(--u) * 1.8) calc(var(--u) * 1.8) calc(var(--u) * .4); padding: calc(var(--u) * .9) calc(var(--u) * 1.3); font-size: calc(var(--u) * 1.65); line-height: 1.4; max-width: 94%; }
#app .dk .dk-bubble.link { color: #6fb3ff; -webkit-text-fill-color: #6fb3ff; text-decoration: underline; word-break: break-all; }
#app .dk .dk-prompt { background: #1b2028 !important; border: 1px solid #3a4450; border-radius: calc(var(--u) * 1.6); padding: calc(var(--u) * .9) calc(var(--u) * 1.3); display: grid; gap: .2em; margin-top: calc(var(--n) * var(--u) * -.5); font-size: calc(var(--u) * 1.6); }
#app .dk .dk-prompt.on { animation: dk-pop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
#app .dk .dk-prompt span { opacity: .65; font-size: .85em; }
#app .dk .dk-prompt-btns { display: flex; gap: .6em; margin-top: .3em; }
#app .dk .dk-prompt-btns b { flex: 1; text-align: center; padding: .45em; border-radius: .6em; background: #2c3440 !important; font-weight: 700; }
#app .dk .dk-prompt-btns b.pick { background: #e5493a !important; color: #fff; -webkit-text-fill-color: #fff; animation: dk-pulse 1s ease-in-out infinite; }
@keyframes dk-pop { from { transform: translateY(calc(var(--u) * 3)) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dk-pulse { 50% { box-shadow: 0 0 0 calc(var(--u) * .8) rgba(229, 73, 58, .3); } }

/* ---------- terminal screens: fake CAPTCHA, ransomware ---------- */
#app .dk .dk-term { border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 1.9) calc(var(--u) * 3); max-width: calc(var(--u) * 80); box-shadow: 0 calc(var(--u) * 1.8) calc(var(--u) * 6) rgba(0, 0, 0, .6); position: relative; }
#app .dk .dk-term.captcha { background: #fff !important; color: #222 !important; -webkit-text-fill-color: #222 !important; border: 1px solid #ccc; }
#app .dk .dk-term.captcha * { color: #222 !important; -webkit-text-fill-color: #222 !important; }
#app .dk .dk-term.captcha .dk-term-title { font-size: calc(var(--u) * 2.8); font-weight: 800; }
#app .dk .dk-term.ransom { background: #1a0606 !important; color: #ff5a4a !important; -webkit-text-fill-color: #ff5a4a !important; border: .15em solid #b3261e; font-family: Consolas, "SFMono-Regular", monospace; }
#app .dk .dk-term.ransom * { color: #ff5a4a !important; -webkit-text-fill-color: #ff5a4a !important; }
#app .dk .dk-term.ransom .dk-term-title { font-size: calc(var(--u) * 3.4); font-weight: 900; animation: dk-blink 1.4s steps(2) infinite; }
#app .dk .dk-term-line { font-size: calc(var(--u) * 2.2); margin: .5em 0; }
#app .dk .dk-countdown { font-size: calc(var(--u) * 5.4); font-weight: 900; margin-top: .3em; font-variant-numeric: tabular-nums; }
@keyframes dk-blink { 50% { opacity: .5; } }

/* ---------- the call from the boss ---------- */
#app .dk .dk-callwrap { display: flex; gap: calc(var(--u) * 3.5); align-items: center; margin-top: calc(var(--u) * .6); }
#app .dk .dk-call { flex: 0 0 auto; width: calc(var(--u) * 30); background: linear-gradient(#26324a, #141a28) !important; border-radius: calc(var(--u) * 3.6); padding: calc(var(--u) * 2.4) calc(var(--u) * 1.4); text-align: center; box-shadow: 0 calc(var(--u) * 1.8) calc(var(--u) * 6) rgba(0, 0, 0, .6); }
#app .dk .dk-avatar { font-size: calc(var(--u) * 5.2); width: calc(var(--u) * 8.4); height: calc(var(--u) * 8.4); border-radius: 50%; background: #3b4a6b !important; display: grid; place-items: center; margin: 0 auto calc(var(--u) * 1); animation: dk-ring 1.6s ease-in-out infinite; }
#app .dk .dk-caller { font-size: calc(var(--u) * 2.4); font-weight: 800; }
#app .dk .dk-calling { opacity: .7; margin-bottom: calc(var(--u) * 1.2); font-size: calc(var(--u) * 1.6); }
#app .dk .dk-wave { display: flex; gap: calc(var(--u) * .3); justify-content: center; align-items: center; height: calc(var(--u) * 4.6); }
#app .dk .dk-wave i { display: block; width: calc(var(--u) * .4); height: calc(var(--u) * .8); border-radius: 99px; background: var(--sky); animation: dk-wave .7s ease-in-out infinite alternate; }
#app .dk .dk-quotes { flex: 1 1 auto; font-size: calc(var(--u) * 2.5); line-height: 1.45; font-style: italic; }
#app .dk .dk-quotes p { background: var(--panel); border-left: calc(var(--u) * .5) solid var(--sky); border-radius: calc(var(--u) * 1.1); padding: calc(var(--u) * 1.2) calc(var(--u) * 1.8); margin: calc(var(--u) * .8) 0; }
@keyframes dk-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(111, 211, 255, .55); } 50% { box-shadow: 0 0 0 calc(var(--u) * 1.8) rgba(111, 211, 255, 0); } }
@keyframes dk-wave { from { height: calc(var(--u) * .5); } to { height: calc(var(--u) * 4.2); } }

/* ---------- the AI chat window ---------- */
#app .dk .dk-chat { max-width: calc(var(--u) * 78); font-size: calc(var(--u) * 1.8); }
#app .dk .dk-chat-head { background: #eef3f8 !important; padding: .6em 1em; font-weight: 800; font-size: .85em; }
#app .dk .dk-chat-msg { margin: .9em; background: #e1f0fb !important; border-radius: .8em; padding: .8em 1.1em; }
#app .dk .dk-chat-msg p { margin: .15em 0; }
#app .dk .dk-chat-stamp { margin: 0 1em 1em; color: #e5493a !important; -webkit-text-fill-color: #e5493a !important; font-weight: 900; letter-spacing: .06em; border: .17em solid #e5493a; border-radius: .4em; padding: .3em .8em; width: max-content; max-width: 100%; transform: rotate(-2deg); font-size: .85em; }

/* ---------- how a fake page steals MFA ---------- */
#app .dk .dk-flow { display: flex; align-items: stretch; gap: calc(var(--u) * 1); margin-top: calc(var(--u) * 1); }
#app .dk .dk-node { flex: 1 1 0; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--u) * 1.6); padding: calc(var(--u) * 1.6) calc(var(--u) * 1.8); }
#app .dk .dk-node p { color: var(--mute); -webkit-text-fill-color: var(--mute); font-size: calc(var(--u) * 1.7); line-height: 1.38; margin-top: calc(var(--u) * .5); }
#app .dk .dk-node h3 { font-size: calc(var(--u) * 2.1); }
#app .dk .dk-node-n { width: calc(var(--u) * 3.4); height: calc(var(--u) * 3.4); border-radius: 50%; background: var(--sky); color: #061e36; -webkit-text-fill-color: #061e36; display: grid; place-items: center; font-weight: 900; font-size: calc(var(--u) * 1.8); margin-bottom: calc(var(--u) * .7); }
#app .dk .dk-arrow { align-self: center; font-size: calc(var(--u) * 3); color: var(--sky); -webkit-text-fill-color: var(--sky); flex: 0 0 auto; }

/* ---------- scam bingo ---------- */
#app .dk .dk-bingo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 1.2); margin-top: calc(var(--u) * .6); max-width: calc(var(--u) * 100); }
#app .dk .dk-cell { position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 1.5) calc(var(--u) * 1.6); font-size: calc(var(--u) * 2.1); font-weight: 700; min-height: calc(var(--u) * 6.8); display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
#app .dk .dk-cell.on { border-color: var(--gold); background: rgba(255, 200, 87, .16); }
#app .dk .dk-cell.on::after { content: "✔"; position: absolute; top: .15em; right: .4em; color: var(--gold); -webkit-text-fill-color: var(--gold); font-size: 1.1em; animation: dk-stamp .45s cubic-bezier(.2, 1.7, .4, 1) both; }

/* ---------- polls ---------- */
#app .dk .dk-q { max-width: calc(var(--u) * 104); position: relative; }
#app .dk .dk-q > p { font-size: calc(var(--u) * 2.9); line-height: 1.3; margin-bottom: calc(var(--u) * 1.6); font-weight: 600; }
#app .dk .dk-opts { display: grid; gap: calc(var(--u) * .9); }
#app .dk .dk-opt { position: relative; display: flex; gap: calc(var(--u) * 1.5); align-items: center; background: var(--panel); border: 2px solid var(--line); border-radius: calc(var(--u) * 1.6); padding: calc(var(--u) * .95) calc(var(--u) * 1.8); font-size: calc(var(--u) * 2.4); line-height: 1.25; transition: all .55s ease; }
#app .dk .dk-opt > span { flex: 0 0 auto; width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 900; font-size: .9em; }
#app .dk .dk-opt.right { border-color: var(--mint); background: rgba(92,196,245, .22); transform: scale(1.02); box-shadow: 0 0 calc(var(--u) * 3) rgba(92,196,245, .45); }
#app .dk .dk-opt.right > span { background: var(--mint); color: #04203a; -webkit-text-fill-color: #04203a; }
#app .dk .dk-opt.dim { opacity: .38; }
#app .dk .dk-confetti { position: absolute; right: calc(var(--u) * 4); top: 50%; width: 0; height: 0; pointer-events: none; }
#app .dk .dk-confetti i { position: absolute; width: calc(var(--u) * .8); height: calc(var(--u) * 1.4); border-radius: .15em; background: hsl(var(--h), 90%, 62%); animation: dk-burst 1.3s cubic-bezier(.1, .8, .3, 1) both; animation-delay: var(--dl); }
@keyframes dk-burst { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; } }

/* ---------- the ending: check in, take the quiz, get the certificate ---------- */
#app .dk .dk-end { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: calc(var(--u) * 4); align-items: center; margin-top: calc(var(--u) * 1); }
#app .dk .dk-end ol { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--u) * 1.4); }
#app .dk .dk-end li { display: flex; gap: calc(var(--u) * 1.6); align-items: center; font-size: calc(var(--u) * 2.4); font-weight: 700; line-height: 1.25; margin: 0; padding: 0; }
#app .dk .dk-end li small { display: block; font-size: .72em; color: var(--mute); -webkit-text-fill-color: var(--mute); font-weight: 500; margin-top: .15em; }
#app .dk .dk-cert { position: relative; justify-self: center; width: calc(var(--u) * 46); aspect-ratio: 11 / 8.5; background: #f7fafc !important; color: #162a3d !important; -webkit-text-fill-color: #162a3d !important; border: calc(var(--u) * .35) solid #0A5BA6; border-radius: calc(var(--u) * .8); padding: calc(var(--u) * 2.2) calc(var(--u) * 2.6); text-align: center; box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 6) rgba(0, 0, 0, .55), 0 0 0 calc(var(--u) * .3) #19A3EE inset; transform: rotate(2.2deg); display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * .5); }
#app .dk .dk-cert.on { animation: dk-cert-in .9s cubic-bezier(.2, 1.4, .35, 1) both; }
#app .dk .dk-cert * { color: inherit; -webkit-text-fill-color: currentColor; }
#app .dk .dk-cert-top { font-size: calc(var(--u) * 1.5); font-weight: 900; letter-spacing: .16em; color: #0A5BA6 !important; -webkit-text-fill-color: #0A5BA6 !important; }
#app .dk .dk-cert-title { font-size: calc(var(--u) * 2.5); font-weight: 900; margin-bottom: calc(var(--u) * .6); }
#app .dk .dk-cert-line { font-size: calc(var(--u) * 1.4); color: #5a6672 !important; -webkit-text-fill-color: #5a6672 !important; }
#app .dk .dk-cert-name { font-size: calc(var(--u) * 4.2); font-weight: 900; color: #0A5BA6 !important; -webkit-text-fill-color: #0A5BA6 !important; border-bottom: 2px solid #19A3EE; padding-bottom: .1em; margin: 0 calc(var(--u) * 3); }
#app .dk .dk-cert-course { font-size: calc(var(--u) * 2.2); font-weight: 800; }
#app .dk .dk-cert-foot { font-size: calc(var(--u) * 1.3); color: #5a6672 !important; -webkit-text-fill-color: #5a6672 !important; margin-top: calc(var(--u) * .6); }
#app .dk .dk-cert-seal { position: absolute; right: calc(var(--u) * 2); bottom: calc(var(--u) * 1.6); width: calc(var(--u) * 5.4); height: calc(var(--u) * 5.4); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe27a, #19A3EE); color: #5a4300 !important; -webkit-text-fill-color: #5a4300 !important; display: grid; place-items: center; font-size: calc(var(--u) * 3); box-shadow: 0 calc(var(--u) * .4) calc(var(--u) * 1.2) rgba(0, 0, 0, .35); }
@keyframes dk-cert-in { from { opacity: 0; transform: rotate(-8deg) translateY(calc(var(--u) * 6)) scale(.7); } to { opacity: 1; transform: rotate(2.2deg); } }

/* ---------- autoplay: play button, speed and the line that fills until the next press ---------- */
#app .dk .dk-play.playing { background: var(--mint) !important; border-color: var(--mint) !important; color: #04203a !important; -webkit-text-fill-color: #04203a !important; }
#app .dk .dk-speed { display: inline-flex; align-items: center; gap: calc(var(--u) * .3); background: rgba(0, 0, 0, .28); border-radius: 999px; padding: 0 calc(var(--u) * .3); }
#app .dk .dk-mini { min-width: max(34px, calc(var(--u) * 2.6)); height: max(34px, calc(var(--u) * 2.6)); border-radius: 50% !important; font-size: max(16px, calc(var(--u) * 1.6)); padding: 0; }
#app .dk .dk-speedval { min-width: 3.2em; text-align: center; font-size: max(13px, calc(var(--u) * 1.25)); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
#app .dk .dk-autobar { position: absolute; left: 0; right: 0; bottom: max(4px, calc(var(--u) * .35)); height: max(3px, calc(var(--u) * .25)); background: rgba(255, 255, 255, .06); z-index: 41; }
#app .dk .dk-autobar span { display: block; width: 0; height: 100%; background: var(--gold); box-shadow: 0 0 calc(var(--u) * .8) rgba(255, 200, 87, .8); animation: dk-autofill linear forwards; }
#app .dk .dk-autobar.paused span { animation-play-state: paused; }
@keyframes dk-autofill { from { width: 0; } to { width: 100%; } }

/* ---------- speaker notes and the slide grid ---------- */
#app .dk .dk-notes { position: absolute; left: 0; right: 0; bottom: max(4px, calc(var(--u) * .35)); max-height: 38vh; overflow: auto; background: rgba(0, 0, 0, .92); border-top: 2px solid var(--mint); padding: calc(var(--u) * 1.2) calc(var(--u) * 2.2) calc(var(--u) * 1.5); z-index: 60; font-size: max(16px, calc(var(--u) * 1.6)); line-height: 1.55; }
#app .dk .dk-notes-head { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; opacity: .8; font-size: .85em; margin-bottom: .3em; }
#app .dk .dk-notes p { font-size: 1em; }
#app .dk .dk-script { display: grid; gap: .4em; margin: .2em 0 .6em; }
#app .dk .dk-say { padding: .35em .8em; border-radius: .5em; border-left: .3em solid transparent; opacity: .9; }
#app .dk .dk-say b { display: inline-block; margin-right: .6em; font-size: .72em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mint2); -webkit-text-fill-color: var(--mint2); }
#app .dk .dk-say.now { background: rgba(92,196,245, .2); border-left-color: var(--mint); opacity: 1; font-size: 1.12em; }
#app .dk .dk-say.done { opacity: .4; }
#app .dk .dk-cue { opacity: .65; font-style: italic; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: .5em; }
#app .dk .dk-grid { position: absolute; inset: 0; background: rgba(4, 10, 8, .95); z-index: 70; overflow: auto; padding: calc(var(--u) * 6) calc(var(--u) * 3) calc(var(--u) * 3); }
#app .dk .dk-grid-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(190px, calc(var(--u) * 20)), 1fr)); gap: calc(var(--u) * .9); }
#app .dk .dk-thumb { text-align: left; background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: calc(var(--u) * 1); color: #fff !important; -webkit-text-fill-color: #fff !important; padding: calc(var(--u) * 1); cursor: pointer; font: inherit; font-size: max(14px, calc(var(--u) * 1.4)); min-height: calc(var(--u) * 7); }
#app .dk .dk-thumb.cur { border-color: var(--mint) !important; background: rgba(92,196,245, .22) !important; }
#app .dk .dk-thumb small { display: block; opacity: .6; margin-bottom: .2em; }

/* ---------- hide the rest of the app while presenting ---------- */
#app .app-layout.app-presenting > .desktop-sidebar,
#app .app-layout.app-presenting .topbar,
#app .app-layout.app-presenting .module-navigation,
#app .app-layout.app-presenting .mobile-tab-bar,
#app .app-layout.app-presenting .mobile-menu-overlay,
#app .app-layout.app-presenting .mobile-menu-panel,
#app .app-layout.app-presenting .dashboard-reminder-launcher,
#app .app-layout.app-presenting .page-help-button { display: none !important; }
#app .app-layout.app-presenting .presenter-host { padding: 0; margin: 0; }

/* ---------- phones and narrow windows: reflow and scroll instead of scaling the stage ---------- */
@media (max-width: 820px), (max-height: 520px) {
    #app .dk { --u: 8.2px; }
    #app .dk .dk-top { padding: max(10px, env(safe-area-inset-top)) 12px 8px; gap: 6px; background: linear-gradient(rgba(4, 10, 8, .88), transparent); opacity: 1; }
    #app .dk .dk-clock, #app .dk .dk-speed { display: none; }
    #app .dk .dk-slide { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; justify-content: flex-start; padding: calc(var(--u) * 8) 18px 110px; -webkit-overflow-scrolling: touch; }
    #app .dk .dk-nav { position: fixed; left: 0; right: 0; bottom: 0; justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(4, 10, 8, .94) 38%); opacity: 1; z-index: 45; }
    #app .dk .dk-nav .dk-btn { min-width: 56px; height: 48px; font-size: 18px; }
    #app .dk .dk-quip { position: static; margin-top: calc(var(--u) * 2.4); max-width: 100%; border-radius: calc(var(--u) * 2); font-size: calc(var(--u) * 1.9); }
    #app .dk h2 { font-size: calc(var(--u) * 4.3); }
    #app .dk h2::after { animation-name: dk-underline-s; }
    #app .dk .dk-cards, #app .dk .dk-emailwrap, #app .dk .dk-spot, #app .dk .dk-compare, #app .dk .dk-end { grid-template-columns: 1fr; }
    #app .dk .dk-bingo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #app .dk .dk-flow, #app .dk .dk-callwrap { flex-direction: column; align-items: stretch; }
    #app .dk .dk-arrow { transform: rotate(90deg); align-self: center; }
    #app .dk .dk-phonewrap { justify-content: center; }
    #app .dk .dk-phone { width: min(100%, calc(var(--u) * 38)); }
    #app .dk .dk-call { width: 100%; }
    #app .dk .dk-email { font-size: calc(var(--u) * 1.85); }
    #app .dk .dk-spot .dk-email { font-size: calc(var(--u) * 1.85); }
    #app .dk .dk-email-head span { width: 4.8em; }
    #app .dk .dk-stamp { position: static; display: block; width: max-content; margin: .6em .8em .1em auto; font-size: 1.05em; padding: .1em .6em; }
    #app .dk .dk-callout { position: static; margin: .8em 1em 1em; max-width: none; }
    #app .dk .dk-callout::before { display: none; }
    #app .dk .dk-code { font-size: calc(var(--u) * 7); }
    #app .dk .dk-bullets li { font-size: calc(var(--u) * 2.9); }
    #app .dk .dk-section .dk-ghost { font-size: calc(var(--u) * 22); }
    #app .dk .dk-notes { max-height: 46vh; bottom: 0; }
}
@keyframes dk-underline-s { to { width: calc(var(--u) * 10); } }

@media (prefers-reduced-motion: reduce) {
    #app .dk *, #app .dk *::before, #app .dk *::after { animation: none !important; }
    #app .dk .on, #app .dk .off { transition: none; }
}

/* The printable presenter script: hide the app around it when printing. */
@media print {
    #app .app-layout:has(.ts-page) .desktop-sidebar, #app .app-layout:has(.ts-page) .topbar, #app .app-layout:has(.ts-page) .module-navigation, #app .app-layout:has(.ts-page) .mobile-tab-bar, #app .app-layout:has(.ts-page) .mobile-menu-overlay, #app .app-layout:has(.ts-page) .mobile-menu-panel, #app .app-layout:has(.ts-page) .dashboard-reminder-launcher, #app .app-layout:has(.ts-page) .page-help-button { display: none !important; }
    #app .app-layout:has(.ts-page) .page-content, #app .app-layout:has(.ts-page) .workspace { padding: 0 !important; margin: 0 !important; overflow: visible !important; height: auto !important; }
}

/* ---------- the presenter view: your own window with a slide preview, the next slide, controls and the script ---------- */
#app .dk.console { font-size: 16px; line-height: 1.4; background: #0a1420; }
#app .dk.console .dkc-top { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: rgba(0, 0, 0, .4); border-bottom: 1px solid var(--line); z-index: 30; }
#app .dk.console .dkc-top strong { font-size: 1.05rem; }
#app .dk.console .dkc-hint { opacity: .6; font-size: .9rem; }
#app .dk.console .dkc-clock { font-variant-numeric: tabular-nums; opacity: .9; padding: .25em .8em; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .9rem; }
#app .dk.console .dkc-main { position: absolute; inset: 54px 0 6px 0; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 20px; padding: 18px 20px; overflow: hidden; }
#app .dk.console .dkc-left, #app .dk.console .dkc-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
#app .dk.console .dkc-preview { --u: min(calc(54vw / 120), calc((100vh - 250px) / 67.5)); position: relative; width: calc(var(--u) * 120); height: calc(var(--u) * 67.5); flex: 0 0 auto; overflow: hidden; border-radius: 12px; background: #060f1c; box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(0, 0, 0, .5); font-size: calc(var(--u) * 1.6); }
#app .dk.console .dkc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#app .dk.console .dk-btn.dkc-wide { padding: 0 16px; font-size: 14px; font-weight: 700; white-space: nowrap; }
#app .dk.console .dkc-autobar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; flex: 0 0 auto; }
#app .dk.console .dkc-autobar span { display: block; width: 0; height: 100%; background: var(--gold); animation: dk-autofill linear forwards; }
#app .dk.console .dkc-autobar.paused span { animation-play-state: paused; }
#app .dk.console .dkc-next { opacity: .8; font-size: .95rem; }
#app .dk.console .dkc-title { font-size: 1.4rem; font-weight: 800; }
#app .dk.console .dkc-edited { margin-left: .6em; padding: .1em .6em; border-radius: 99px; background: rgba(255, 200, 87, .2); color: var(--gold); -webkit-text-fill-color: var(--gold); font-size: .7rem; font-style: normal; font-weight: 800; vertical-align: middle; }
#app .dk.console .dkc-meta { opacity: .65; font-size: .9rem; margin-top: .15em; }
#app .dk.console .dkc-script { flex: 1 1 auto; min-height: 0; overflow: auto; font-size: clamp(18px, 1.6vw, 30px); line-height: 1.55; padding-right: 6px; margin: 0; }
#app .dk.console .dk-cue { font-size: .92rem; flex: 0 0 auto; margin: 0; }
#app .dk.console .dkc-foot { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
#app .dk.console .dkc-editor { flex: 1 1 auto; min-height: 0; overflow: auto; }
#app .dk.console .km-button { display: inline-flex; align-items: center; background: rgba(255, 255, 255, .1) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border: 1px solid rgba(255, 255, 255, .25) !important; border-radius: 9px; padding: .5em 1em; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; }
#app .dk.console .km-button.primary { background: var(--mint) !important; border-color: var(--mint) !important; color: #04203a !important; -webkit-text-fill-color: #04203a !important; }
#app .dk.console .km-button:disabled { opacity: .5; cursor: default; }
@media (max-width: 900px) { #app .dk.console .dkc-main { grid-template-columns: 1fr; overflow: auto; } #app .dk.console .dkc-preview { --u: calc(92vw / 120); } #app .dk.console .dkc-script { max-height: none; } }

/* ---------- the script editor (the presenter view and the script page) ---------- */
.se { display: grid; gap: 10px; }
.se-box { display: grid; gap: 4px; }
.se-box > span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.se-box textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(128, 128, 128, .5); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; }
.se-error { padding: 8px 12px; border-radius: 8px; background: rgba(229, 73, 58, .16); border: 1px solid #e5493a; color: inherit; }
.se-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.se-note { font-size: .8rem; opacity: .7; margin: 0; }
#app .dk.console .se-box textarea { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .28); }

#app .dk.console.blank::after { display: none; }

/* The printed presenter script: large, plain type for reading from paper, one slide kept together, the app's own small type overridden. */
@media print {
    @page { size: letter; margin: 0.6in 0.65in; }
    #app .app-layout:has(.ts-page) { background: #fff !important; }
    #app .ts-page { max-width: none !important; color: #000 !important; font-size: 14pt !important; }
    #app .ts-page .km-page-header p, #app .ts-page .page-header p { font-size: 11pt !important; }
    #app .ts-page h1 { font-size: 24pt !important; }
    #app .ts-page .ts-howto { font-size: 11pt !important; border: 1px solid #999 !important; padding: 8pt 10pt !important; margin-bottom: 14pt !important; }
    #app .ts-page .ts-slide { border: 0 !important; border-top: 2.5pt solid #0A5BA6 !important; border-radius: 0 !important; padding: 10pt 0 6pt !important; margin: 0 0 8pt !important; break-inside: avoid-page; page-break-inside: avoid; background: transparent !important; }
    #app .ts-page .ts-slide h2 { font-size: 18pt !important; color: #000 !important; -webkit-text-fill-color: #000 !important; }
    #app .ts-page .ts-num { width: 26pt !important; height: 26pt !important; min-width: 26pt !important; font-size: 13pt !important; }
    #app .ts-page .ts-meta { font-size: 11pt !important; opacity: 1 !important; color: #333 !important; }
    #app .ts-page .ts-screen { font-size: 11pt !important; color: #333 !important; opacity: 1 !important; }
    #app .ts-page .ts-say { font-size: 15pt !important; line-height: 1.5 !important; color: #000 !important; -webkit-text-fill-color: #000 !important; margin: 9pt 0 !important; padding-left: 10pt !important; border-left: 3pt solid #0A5BA6; }
    #app .ts-page .ts-say b { font-size: 10pt !important; color: #0A5BA6 !important; -webkit-text-fill-color: #0A5BA6 !important; margin-bottom: 1pt !important; }
    #app .ts-page .ts-cue { font-size: 11pt !important; color: #333 !important; opacity: 1 !important; border-top: 1px dashed #999 !important; }
    #app .ts-page .ts-edited { display: none; }
}
@media print {
    #app .app-layout:not(.mfg-shell) .page-content .km-page.ts-page .ts-slide h2:not([class*="hero"]) { font-size: 19pt !important; font-weight: 800 !important; line-height: 1.2 !important; }
    #app .app-layout .page-content .ts-page .ts-howto { display: none !important; }
}
