/* Six original Dritë visual systems, shared by slides, print and maps. */
body[data-style][data-style]{--paper:#19162f!important;--ink:#f4f0ff;--muted:#c6bedb;--amber:#cdb5ff;--line:#777086;--panel:#29233f;--good:#a2ebbf;--bad:#ffb6c2;--dg1:#cdb5ff;--dg2:#a9c9ff;--dg3:#9de1ca;--dg4:#dfbeef;--dg5:#ffb6c2;--dg6:#a8dfea;--heading:'Libre Baskerville',Georgia,serif;background:radial-gradient(ellipse at 100% 0,#34265e,transparent 65%),var(--paper)!important;color:var(--ink)}
body[data-style][data-style="light"]{--paper:#f7f7ff!important;--ink:#28283e;--muted:#535368;--amber:#62429b;--line:#aaa2bc;--panel:#eeebf7;--good:#165d3a;--bad:#962d43;--dg1:#62429b;--dg2:#2d529d;--dg3:#17634f;--dg4:#774776;--dg5:#962d43;--dg6:#206173;background:#e5e3f0!important}
body[data-style][data-style="academic"]{--paper:#f5efe3!important;--ink:#302d36;--muted:#635849;--amber:#63427e;--line:#ad9f8d;--panel:#eae1d1;--good:#245b3c;--bad:#932e40;--dg1:#63427e;--dg2:#38547c;--dg3:#325d4e;--dg4:#754b64;--dg5:#932e40;--dg6:#386174;background:#e2d9c9!important}
body[data-style][data-style="chalkboard"]{--paper:#123d35!important;--ink:#f1f7ed;--muted:#c2dcd0;--amber:#c8baff;--line:#789c8e;--panel:#204e44;--good:#aff1c8;--bad:#ffbbc7;--dg1:#c8baff;--dg2:#b5d8ff;--dg3:#aff1c8;--dg4:#ebc7ee;--dg5:#ffbbc7;--dg6:#afe9ed;--heading:'Libre Baskerville',Georgia,serif;background:repeating-linear-gradient(5deg,#ffffff03 0 1px,transparent 1px 6px),#0e302a!important}
body[data-style][data-style="editorial"]{--paper:#faf5f3!important;--ink:#302537;--muted:#645565;--amber:#793755;--line:#b39ba9;--panel:#eee4e9;--good:#215b41;--bad:#972842;--dg1:#793755;--dg2:#3d508e;--dg3:#246050;--dg4:#72478a;--dg5:#972842;--dg6:#306472;--heading:'Instrument Sans',sans-serif;background:#ded2de!important}
body[data-style][data-style="playful"]{--paper:#f1efff!important;--ink:#302856;--muted:#5d5278;--amber:#6334a2;--line:#a899ca;--panel:#e3dcf6;--good:#195e43;--bad:#96264b;--dg1:#6334a2;--dg2:#3154a1;--dg3:#17634f;--dg4:#784074;--dg5:#96264b;--dg6:#206173;--heading:'Instrument Sans',sans-serif;background:radial-gradient(circle at 5% 8%,#c9b5ff 0 8%,transparent 8.2%),radial-gradient(circle at 94% 85%,#a9dfe5 0 10%,transparent 10.2%),#e1daf7!important}
body[data-style][data-style] h1,body[data-style][data-style] h2,body[data-style][data-style] h3,body[data-style][data-style] .rich-idea p,body[data-style][data-style] .dg-t{font-family:var(--heading)}
body[data-style][data-style] .slide{background:var(--paper)!important;color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 70px #15102c20;isolation:isolate;min-width:0;padding-bottom:52px}
body[data-style][data-style] .slide:before{content:'';inset:0 auto 0 0;width:5px;z-index:-1;background:var(--amber);animation:none;transform:none}
body[data-style][data-style] .title-bg,body[data-style][data-style] .rich-bg,body[data-style][data-style] .motion-dust{display:none}
body[data-style][data-style] .kicker,body[data-style][data-style] .rich-ev b,body[data-style][data-style] .rich-value,body[data-style][data-style] .rich-ic{color:var(--amber);background:none;-webkit-text-fill-color:currentColor}
body[data-style][data-style] .audience,body[data-style][data-style] .closing p,body[data-style][data-style] .brand,body[data-style][data-style] .mt-why,body[data-style][data-style] .mt-of,body[data-style][data-style] .mt-msg{color:var(--muted);opacity:1}
body[data-style][data-style] .rich-card,body[data-style][data-style] .rich-col,body[data-style][data-style] .rich-step,body[data-style][data-style] .key-point,body[data-style][data-style] .discussion,body[data-style][data-style] .option-face,body[data-style][data-style] .mt-o{background:var(--panel);border-color:var(--line);color:var(--ink)}
body[data-style][data-style] .rich-card p,body[data-style][data-style] .rich-step p,body[data-style][data-style] .rich-quote cite{opacity:1;color:var(--muted)}
body[data-style][data-style] .rich-quote,body[data-style][data-style] .rich-col.right{border-color:var(--amber)}
body[data-style][data-style] .rich-dot,body[data-style][data-style] .rich-time:before{background:var(--amber)}
body[data-style][data-style] .letter{background:var(--paper);color:var(--amber)}
body[data-style][data-style] .option-back{color:var(--bad);background:var(--panel);border-color:var(--bad)}
body[data-style][data-style] .option.good .option-back,body[data-style][data-style] .mt-o.ok{color:var(--good);background:var(--panel);border-color:var(--good)}
body[data-style][data-style] .mt-o.dim{opacity:1;color:var(--muted)}
body[data-style][data-style] .mt-reveal,body[data-style][data-style] .mt-save,body[data-style][data-style] .actions a:not(.secondary){background:var(--amber);color:var(--paper)}
body[data-style][data-style] footer,body[data-style][data-style] #exitc,body[data-style][data-style] .deck-tools button{background:var(--paper);color:var(--ink);border-color:var(--line)}
body[data-style][data-style] footer{position:fixed;z-index:10}
body[data-style][data-style] .controls button{color:var(--ink);border-color:var(--muted);background:var(--panel)}
body[data-style][data-style] #drite-voice-toggle,body[data-style][data-style] #vplay,body[data-style][data-style] #voice-add{background:var(--paper)!important;color:var(--ink)!important;border:1px solid var(--amber)!important}
body[data-style][data-style] #drite-voice-toggle{top:12px!important;max-width:155px;font-size:14px}
body[data-style][data-style] .deck-tools{left:180px;right:90px;justify-content:flex-end;flex-wrap:wrap;gap:6px;max-height:94px;overflow:auto}
body[data-style][data-style] #stage{padding-top:110px}
body[data-style][data-style="academic"] .slide{border-radius:2px;border-top:5px double var(--line);box-shadow:0 18px 50px #51453618}
body[data-style][data-style="academic"] .slide:before{display:none}
body[data-style][data-style="academic"] h1,body[data-style][data-style="academic"] h2{line-height:1.26}
body[data-style][data-style="academic"] .kicker{border-bottom:1px solid var(--line);padding-bottom:12px;letter-spacing:.18em}
body[data-style][data-style="academic"] .speaker-notes,body[data-style][data-style="academic"] .rich-quote cite{font-family:Georgia,serif;font-size:17px}
body[data-style][data-style="academic"] .rich-card,body[data-style][data-style="academic"] .rich-col,body[data-style][data-style="academic"] .key-point{border-radius:2px}
body[data-style][data-style="chalkboard"] .slide{border:7px solid #648176;border-radius:8px;box-shadow:inset 0 0 80px #061f222d,0 15px 50px #061f2240;background:repeating-linear-gradient(2deg,#ffffff03 0 1px,transparent 1px 5px),var(--paper)!important}
body[data-style][data-style="chalkboard"] h1,body[data-style][data-style="chalkboard"] h2{font-style:italic;text-decoration:underline;text-decoration-style:wavy;text-decoration-color:var(--line);text-underline-offset:12px;text-decoration-thickness:1px}
body[data-style][data-style="chalkboard"] .slide:before{display:none}
body[data-style][data-style="chalkboard"] .rich-card,body[data-style][data-style="chalkboard"] .key-point,body[data-style][data-style="chalkboard"] .option-face{border-radius:8px 14px 7px 12px;border-style:dashed}
body[data-style][data-style="editorial"] .slide{border-radius:0;border-top:10px solid var(--amber)}
body[data-style][data-style="editorial"] .slide:before{display:none}
body[data-style][data-style="editorial"] h1,body[data-style][data-style="editorial"] h2{font-weight:800;letter-spacing:-.045em;line-height:1.04}
body[data-style][data-style="editorial"] .hook,body[data-style][data-style="editorial"] .rich-quote{border-left:5px solid var(--amber);padding-left:24px;font:italic 28px/1.45 'Libre Baskerville',serif}
body[data-style][data-style="editorial"] .kicker{letter-spacing:.22em;font-size:14px}
body[data-style][data-style="editorial"] .rich-card,body[data-style][data-style="editorial"] .key-point{border-radius:0;border-width:0 0 1px}
body[data-style][data-style="playful"] .slide{border:3px solid var(--line);border-radius:36px;box-shadow:8px 8px 0 #b9aad644}
body[data-style][data-style="playful"] h1,body[data-style][data-style="playful"] h2{font-weight:800;letter-spacing:-.025em}
body[data-style][data-style="playful"] .kicker{letter-spacing:.06em;text-transform:none;font-weight:800}
body[data-style][data-style="playful"] .title-tag{display:block;background:var(--panel);border:2px solid var(--amber);transform:rotate(-2deg)}
body[data-style][data-style="playful"] .rich-card,body[data-style][data-style="playful"] .option-face,body[data-style][data-style="playful"] .key-point{border-radius:25px;border-width:2px}
body[data-style][data-style="playful"] .light-motif{width:100px;height:100px}
body[data-style][data-style="playful"] .goal-check{border-radius:50%;background:var(--panel);padding:5px;width:44px;height:44px}
@media(min-width:901px) and (orientation:landscape){body[data-style][data-style="editorial"] .slide.scene:not(.textonly){grid-template-columns:minmax(0,1.8fr) minmax(0,1fr)}body[data-style][data-style="editorial"] .scene .media{border-radius:0;height:100%;max-height:74vh}body[data-style][data-style] .slide.scene.lay-cine>div{position:static;padding:6px 12px 6px 0}body[data-style][data-style] .scene.lay-cine .narration,body[data-style][data-style] .scene.lay-cine h2{text-shadow:none;color:var(--ink)}body[data-style][data-style] .scene.lay-cine .media:after{display:none}}
/* Diagram palette inherits the active lesson and print style, for all 18 types. */
body[data-style][data-style] .dg{--ink:inherit;--soft:var(--muted);--card:var(--panel);--line:inherit;background:var(--panel);color:var(--ink);border:1px solid var(--line)}
body[data-style][data-style] .dg:before{display:none}
body[data-style][data-style] .dg-eye,body[data-style][data-style] .dg-date,body[data-style][data-style] .dg-v,body[data-style][data-style] .dg-big{color:var(--amber)}
body[data-style][data-style] .dg-card,body[data-style][data-style] .dg-face{box-shadow:none;background:var(--paper);border-color:var(--line)}
body[data-style][data-style] .dg-n{background:var(--c);color:var(--paper)}
body[data-style][data-style] .dg-code{background:var(--paper);color:var(--ink)}
body[data-style][data-style] .dg-ring .fg{stroke:var(--amber)}
body[data-style][data-style] .dg-quote{border-color:var(--amber)}
body[data-style][data-style] .dg-tap{opacity:1}
/* Accessible style picker with real typographic previews. */
#style-picker{width:min(840px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:24px;padding:24px;background:var(--paper);color:var(--ink);font:18px/1.4 'Instrument Sans',sans-serif;z-index:20000}
#style-picker::backdrop{background:#14102bba;backdrop-filter:blur(5px)}
.picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.picker-head h2{font-size:28px;margin:0}.picker-head button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--ink)}
.style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.style-choice{padding:0;text-align:left;border:2px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel);color:var(--ink);font-size:16px;min-width:0}
.style-choice[aria-pressed="true"]{outline:3px solid var(--amber);outline-offset:3px}
.style-choice>strong{display:block;padding:12px;line-height:1.4}
.style-preview{display:flex;flex-direction:column;gap:8px;min-height:140px;padding:18px;background:var(--preview-paper);color:var(--preview-ink);border-top:5px solid var(--preview-accent)}
.style-preview b{font:600 23px/1.1 var(--preview-font);overflow-wrap:anywhere}.style-preview small{font-size:11px;letter-spacing:.1em}.style-preview i{display:block;border:1px solid var(--preview-accent);padding:5px;font-size:12px;font-style:normal}.style-preview em{height:4px;width:45%;background:var(--preview-accent)}
.style-choice[data-choice="playful"] .style-preview{border-radius:22px}.style-choice[data-choice="chalkboard"] .style-preview b{font-style:italic;text-decoration:underline wavy}.style-choice[data-choice="academic"] .style-preview{border-top:5px double var(--preview-accent)}
.default-style{display:flex;gap:12px;align-items:center;min-height:48px}.default-style input{width:24px;height:24px;accent-color:var(--amber)}
#style-status{font-size:16px;min-height:24px}
/* Same lesson, two additional views. */
#lesson-format{position:fixed;inset:0;z-index:11000;overflow:auto;background:var(--paper);color:var(--ink);font:18px/1.5 'Instrument Sans',sans-serif;padding:80px 24px 24px}
#lesson-format[hidden]{display:none}.format-tools{position:fixed;inset:0 0 auto;z-index:11001;background:var(--paper);border-bottom:1px solid var(--line);padding:10px 16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.format-tools button{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;min-height:44px;padding:8px 14px;font-size:16px}.format-tools strong{margin-right:auto;font-size:16px}
.handout{width:190mm;min-height:270mm;max-width:100%;margin:0 auto;background:var(--paper);padding:12mm;border:1px solid var(--line);font-size:11pt;line-height:1.4;overflow-wrap:anywhere}.handout h1{font-size:27pt;margin:0 0 10px}.handout h2{font-size:15pt;margin:16px 0 8px;border-bottom:1px solid var(--line);padding-bottom:5px}.handout .hand-kicker{font-size:9pt;letter-spacing:.14em;color:var(--amber)}.handout p{margin:4px 0 10px}.handout ul,.handout ol{padding-left:20px;margin:5px 0}.handout li{margin:4px 0}.handout .hand-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.handout .hand-diagram{height:200px;margin:12px 0}.handout .hand-source{margin-top:16px;font-size:9pt;color:var(--muted);border-top:1px solid var(--line);padding-top:8px}.handout .dg-in{animation:none!important}.handout .dg-more{grid-template-rows:1fr}.handout .dg-cyc{display:none}
.map-shell{height:calc(100dvh - 135px);min-height:400px;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--panel);position:relative;touch-action:none;outline-offset:-4px;cursor:grab}.map-shell:active{cursor:grabbing}.map-world{position:absolute;left:0;top:0;transform-origin:0 0;width:1800px;height:1100px}.map-lines{position:absolute;inset:0;width:1800px;height:1100px;pointer-events:none}.map-lines path{fill:none;stroke:var(--amber);stroke-width:3}.map-node{position:absolute;background:var(--paper);border:2px solid var(--line);border-left:7px solid var(--amber);border-radius:18px;padding:14px 18px;width:250px;font-size:17px;overflow-wrap:anywhere}.map-node h2{font:700 20px/1.25 var(--heading);margin:0 0 8px}.map-node ul{padding-left:18px;margin:0;font-size:15px}.map-root{width:280px;background:var(--panel);border:3px solid var(--amber);font:700 26px/1.3 var(--heading)}.map-help{font-size:14px;color:var(--muted);margin:8px 0}
@media(max-width:899px){body[data-style][data-style] .deck-tools{left:10px;right:78px;max-height:100px;justify-content:flex-start;top:8px}body[data-style][data-style] .deck-tools button{font-size:12px;min-height:40px;padding:7px 9px}body[data-style][data-style] #drite-voice-toggle{top:110px!important;font-size:12px;min-height:40px}body[data-style][data-style] #stage{padding-top:160px}body[data-style][data-style] .slide{padding:28px 22px 48px;min-height:calc(100dvh - 268px)}body[data-style][data-style] .scene .media{height:auto;min-height:200px;flex-shrink:0}body[data-style][data-style] .scene .media.dgm{height:340px}body[data-style][data-style] .slide.scene{display:flex;flex-direction:column}body[data-style][data-style] .slide.scene>div{position:static;padding:0;overflow:visible;max-height:none}body[data-style][data-style] .scene .narration{font-size:22px;text-shadow:none}body[data-style][data-style] .scene h2{font-size:34px;text-shadow:none}body[data-style][data-style] .scene .media:after{display:none}.style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.style-preview{min-height:125px;padding:12px}.style-preview b{font-size:20px}#style-picker{padding:18px}.handout{padding:18px}.handout .hand-columns{grid-template-columns:1fr}.handout h1{font-size:24px}#lesson-format{padding:124px 10px 16px}.format-tools{gap:5px}.format-tools strong{width:100%}.map-shell{height:calc(100dvh - 180px)}}
@media(prefers-reduced-motion:reduce){body[data-style][data-style] .w{opacity:1;transform:none;filter:none}body[data-style][data-style] .media img{animation:none!important;transform:none!important}}
@page{size:A4;margin:10mm}
@media print{html,body{height:auto!important;min-height:0!important;background:var(--paper)!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}body>*:not(#lesson-format){display:none!important}#lesson-format{display:block!important;position:static!important;padding:0!important;overflow:visible!important}.format-tools,.map-help{display:none!important}.handout{width:190mm;min-height:0;border:0;margin:0;padding:7mm;font-size:10pt}.handout h1{font-size:23pt}.handout h2{font-size:13pt;margin-top:12px}.handout .hand-columns{grid-template-columns:1fr 1fr}.handout .hand-diagram{height:170px}.handout .dg *{animation:none!important;transition:none!important;opacity:1!important}.map-shell{width:190mm!important;height:260mm!important;border:0;border-radius:0;overflow:hidden}.map-world{transform:scale(var(--map-print-scale,.39))!important;left:0!important;top:0!important}.map-node{break-inside:avoid}body[data-format="map"] .map-shell{height:260mm!important}}
body[data-style][data-style] .slide-source{font:14px/1.35 'Instrument Sans',sans-serif;color:var(--muted);margin:18px 0 0;max-width:90%;overflow-wrap:anywhere}
body[data-style][data-style="academic"] .slide-source{font-family:Georgia,serif;border-top:1px solid var(--line);padding-top:8px;font-size:13px}
body[data-style][data-style] .slide.scene .slide-source{grid-column:1/-1;align-self:end}
body[data-style][data-style] .dg-card.on,body[data-style][data-style] .dg-face.back{background:var(--panel);color:var(--ink);border-color:var(--amber)}
body[data-style][data-style] .dg-table th,body[data-style][data-style] .dg-table td{color:var(--ink);background:var(--paper)}
body[data-style][data-style] .dg-track{background:var(--line)}
body[data-style][data-style] .dg-ring .bg{stroke:var(--line)}
body[data-style][data-style] .dg-n,body[data-style][data-style] .dg-vs{color:var(--paper);background:var(--amber);animation:none}
body[data-style][data-style] .dg-eye:before,body[data-style][data-style] .dg-time:before{background:var(--amber)}
body[data-style][data-style] .dg-arc,body[data-style][data-style] .dg-flow path{stroke:var(--amber)}
body[data-style][data-style] .dg-orb{fill:var(--amber)}
body[data-style][data-style] .dg-big{background:none;-webkit-text-fill-color:var(--amber)}
@media(max-width:899px){body[data-style][data-style] .dg{overflow:auto;gap:16px;padding:16px}body[data-style][data-style] .dg-body{display:block;flex:none}body[data-style][data-style] .dg-t{font-size:22px}body[data-style][data-style] .dg-eye{font-size:12px}body[data-style][data-style] .dg-l,body[data-style][data-style] .dg-date,body[data-style][data-style] .dg-tree .dg-l,body[data-style][data-style] .dg-time.dense .dg-l,body[data-style][data-style] .dg-agenda .dg-l{font-size:17px;line-height:1.3}body[data-style][data-style] .dg-x,body[data-style][data-style] .dg-tree .dg-x,body[data-style][data-style] .dg-time.dense .dg-x,body[data-style][data-style] .dg-procard ul,body[data-style][data-style] .dg-table,body[data-style][data-style] .dg-example,body[data-style][data-style] .dg-code,body[data-style][data-style] .dg-axes,body[data-style][data-style] .dg-quote cite{font-size:15px;line-height:1.4}body[data-style][data-style] .dg-tap{font-size:12px}body[data-style][data-style] .dg-n{min-width:32px;min-height:32px;font-size:16px}body[data-style][data-style] .dg-flow,body[data-style][data-style] .dg-progrid,body[data-style][data-style] .dg-agenda,body[data-style][data-style] .dg-icons,body[data-style][data-style] .dg-time,body[data-style][data-style] .dg-time.dense{grid-template-columns:1fr;gap:16px}body[data-style][data-style] .dg-cmp{grid-template-columns:1fr}body[data-style][data-style] .dg-vs{margin:auto;width:40px;height:40px;font-size:15px}body[data-style][data-style] .dg-cyc{display:none}body[data-style][data-style] .dg-procycle{display:grid}body[data-style][data-style] .dg-flow svg,body[data-style][data-style] .dg-time:before,body[data-style][data-style] .dg-ev:before{display:none}body[data-style][data-style] .dg-time{padding-top:0}body[data-style][data-style] .dg-tree ul{flex-direction:column;padding-left:12px}body[data-style][data-style] .dg-tree>.dg-procard{width:100%}body[data-style][data-style] .dg-tile{min-height:180px}body[data-style][data-style] .dg-quote{font-size:22px}body[data-style][data-style] .dg-big{font-size:28px!important}body[data-style][data-style] .dg-kpi .dg-value{font-size:32px}body[data-style][data-style] .dg-num .dg-x{max-width:none}body[data-style][data-style] .slide.scene .slide-source{font-size:13px}}
/* Compact static concept diagram for an A4 page. */
body[data-style][data-style] .handout .dg{padding:14px;gap:12px;overflow:hidden}
body[data-style][data-style] .handout .dg-body{display:flex;min-height:0;flex:1}
body[data-style][data-style] .handout .dg-flow{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
body[data-style][data-style] .handout .dg-t{font-size:17px}
body[data-style][data-style] .handout .dg-eye{display:none}
body[data-style][data-style] .handout .dg-step{padding:9px;gap:8px;min-height:0}
body[data-style][data-style] .handout .dg-n{width:26px;height:26px;min-width:26px;min-height:26px;font-size:13px}
body[data-style][data-style] .handout .dg-l{font-size:12px;line-height:1.3}
body[data-style][data-style] .handout .dg-flow svg{display:none}
@media(max-width:899px){body[data-style][data-style] .handout .dg-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.handout .hand-diagram{height:290px}}
@media print{body[data-style][data-style] .handout .dg-flow{grid-template-columns:repeat(4,minmax(0,1fr))}.handout .hand-diagram{height:150px!important}body[data-style][data-style] .handout .dg-step{padding:7px}body[data-style][data-style] .handout .dg-l{font-size:10px}}
@media print{body[data-format="map"] .map-shell{height:auto!important;overflow:visible}.map-world{position:static!important;width:100%!important;height:auto!important;display:grid;grid-template-columns:1fr 1fr;gap:12px;transform:none!important}.map-lines{display:none}.map-node{position:static;width:auto;font-size:10pt;padding:10px 12px}.map-node h2{font-size:12pt}.map-node ul{font-size:10pt}.map-root{grid-column:1/-1;font-size:20pt}.map-node:focus{outline:none}}
body[data-style][data-style] #dritebeams{display:none}
body[data-style][data-style] .title-tag{background:var(--panel)}
body[data-style][data-style] .slide.rich{--hue:var(--amber)}
body[data-style][data-style] .rich-n,body[data-style][data-style] .rich-vs{background:var(--amber);color:var(--paper);box-shadow:none}
body[data-style][data-style] .scene.reading .narration .sentence{opacity:1}
body[data-style][data-style] .rich-tap{color:var(--amber);opacity:1}
body[data-style][data-style="chalkboard"]{--heading:'Caveat','Libre Baskerville',serif}
body[data-style][data-style="chalkboard"] h1,body[data-style][data-style="chalkboard"] h2{font-weight:700;font-style:normal;text-decoration-thickness:2px}
body[data-style][data-style] .dg-procycle{display:grid}
body[data-style][data-style] .dg-cyc{display:none}
body[data-style][data-style] .dg{overflow:auto}
@media(min-width:900px){body[data-style][data-style] .dg-l,body[data-style][data-style] .dg-tree .dg-l,body[data-style][data-style] .dg-time .dg-l{font-size:clamp(18px,2.7cqw,26px)}body[data-style][data-style] .dg-x,body[data-style][data-style] .dg-tree .dg-x,body[data-style][data-style] .dg-procard ul,body[data-style][data-style] .dg-time .dg-x{font-size:clamp(16px,2.1cqw,22px)}body[data-style][data-style] .dg-eye{font-size:clamp(12px,1.8cqw,16px)}body[data-style][data-style] .dg-body{overflow:auto;align-items:safe center}body[data-style][data-style] .dg-table{font-size:clamp(16px,2.5cqw,24px)}body[data-style][data-style] .handout .dg-l{font-size:12px}}
/* Reserve a row for narration instead of laying its chip over the slide. */
body[data-style][data-style] #stage{height:calc(100dvh - 152px)}
body[data-style][data-style].editing #stage{height:auto}
body[data-style][data-style] #voice-add,body[data-style][data-style] #vplay{max-width:calc(100vw - 105px);white-space:normal;line-height:1.25}
@media(max-width:899px){body[data-style][data-style] #voice-add,body[data-style][data-style] #vplay{font-size:13px!important;left:12px!important;padding:10px 12px!important;min-height:44px;bottom:96px!important}}
html:has(body[data-format])>#drite-feedback{display:none!important}
@media print{html{background:var(--print-paper,#fff)!important}body[data-style][data-style]{min-height:277mm!important}#lesson-format{min-height:277mm!important;background:var(--paper)!important}html>#drite-feedback,.fibo-inline-preview{display:none!important}.handout{min-height:260mm!important}body[data-style][data-style] .handout .dg-l{font-size:10px}}
body[data-style][data-style]{min-height:100dvh}
@media(min-width:901px) and (orientation:landscape){
 body[data-style][data-style] .slide.scene.lay-cine:not([hidden]){display:grid!important;padding:24px!important;grid-template-columns:minmax(0,55fr) minmax(0,45fr);gap:32px;overflow:hidden}
 body[data-style][data-style] .scene.lay-cine .media{position:relative!important;inset:auto!important;width:100%!important;height:min(70dvh,100%)!important;max-height:100%;border-radius:14px}
 body[data-style][data-style="editorial"] .slide.scene.lay-cine:not([hidden]){grid-template-columns:minmax(0,1.8fr) minmax(0,1fr)}
 body[data-style][data-style] .scene.lay-cine .narration{max-height:none;overflow:visible}
}
html:has(body[data-style])>#drite-feedback:not([split]):not([sheet]){left:auto!important;right:12px!important;bottom:100px!important}

/* Printing never uses the dark screen colours: white paper, dark ink, no wasted toner (professor, 8 Nov). */
@media print{body[data-style][data-style]{--paper:#ffffff!important;--ink:#28283e;--muted:#535368;--amber:#62429b;--line:#aaa2bc;--panel:#eeebf7;--good:#165d3a;--bad:#962d43;--dg1:#62429b;--dg2:#2d529d;--dg3:#17634f;--dg4:#774776;--dg5:#962d43;--dg6:#206173;background:#e5e3f0!important}html,body,#lesson-format,.handout{background:#fff!important;color:#1d1b26}}
