/* Live HTML slides: text, photos and links remain native DOM. */
.slide-host{container-type:inline-size;width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;background:#f5f2e9;color:#153c38;isolation:isolate}.deck-slide{position:relative;width:100%;height:100%;overflow:hidden;font-family:"Apple SD Gothic Neo","Noto Sans CJK KR","Malgun Gothic",sans-serif;letter-spacing:-.045em;background:#f5f2e9}.deck-slide *{box-sizing:border-box}.deck-kicker{position:absolute;left:5.1%;top:6.8%;font-size:1.05cqw;letter-spacing:.13em;color:#a77a4b;font-weight:700}.deck-title{position:absolute;left:5%;top:14%;width:89%;margin:0;font-size:4.35cqw;line-height:1.18;letter-spacing:-.055em;font-weight:750;white-space:pre-line;overflow-wrap:anywhere}.deck-body{position:absolute;left:5.25%;top:43%;width:87%;font-size:2.8cqw;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere;letter-spacing:-.04em}.deck-foot,.deck-number{position:absolute;bottom:3.6%;font-size:.92cqw;letter-spacing:.025em;color:#687e72}.deck-foot{left:5%}.deck-number{right:5%}.slide-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.photo-shade{position:absolute;inset:0;background:linear-gradient(90deg,#061c26b8 0%,#061c2670 44%,transparent 76%)}.is-dark{color:#fffdf7;background:#071c24}.is-dark .deck-title{top:23%;width:77%;font-size:4.5cqw;line-height:1.3}.is-dark .deck-body{top:61%;width:45%;font-size:2.45cqw;line-height:1.55;color:#e6ebdf}.is-dark .deck-kicker{color:#dfc49c}.is-dark .deck-foot,.is-dark .deck-number{color:#c2cfbf}.layout-cover .deck-title{font-size:4.9cqw;top:22%}.layout-ending .deck-body{font-size:2.18cqw}.layout-quote .deck-title{font-size:4.65cqw}.layout-case .deck-title,.layout-split .deck-title{top:12%;font-size:3.4cqw;line-height:1.25}.case-image{position:absolute;object-fit:contain;left:31%;top:31%;width:64%;height:60%;cursor:default}.case-image[role=button]{cursor:pointer}.case-image[role=button]:focus-visible{outline:4px solid #bf8a51;outline-offset:4px}.layout-case .deck-body{left:5%;top:35%;width:23%;font-size:2.25cqw;line-height:1.55}.image-caption{position:absolute;left:5%;top:75%;font-size:1.04cqw;letter-spacing:0;color:#6e8075}.deck-source{position:absolute;left:5%;top:82%;display:flex;align-items:center;gap:1cqw;letter-spacing:0}.source-link{font-size:1.1cqw;color:#ac7042;text-decoration:underline;text-underline-offset:.25em}.video-play{font:inherit;font-size:1.15cqw;padding:.55cqw .8cqw;min-height:0;border:1px solid #bb8d63;border-radius:.35cqw;color:#704a2e;background:transparent;cursor:pointer}.layout-case .deck-source{flex-direction:column;align-items:flex-start;gap:.75cqw;top:80%}.layout-split .case-image{left:46%;top:33%;width:49%;height:52%}.layout-split .deck-body{top:34%;width:37%;font-size:2.3cqw;line-height:1.6}.layout-split .image-caption{left:46%;top:88%;font-size:.86cqw}.layout-split .deck-source{top:86%;max-width:38%}.layout-prompt .deck-title{font-size:3.9cqw;top:13%}.prompt-label{position:absolute;top:36%;left:5.1%;color:#a97649;font-size:1.4cqw;font-weight:650}.layout-prompt .deck-body{top:47%;font-size:2.65cqw;line-height:1.55;width:88%}.layout-gallery .deck-title{font-size:3.8cqw;top:13%}.layout-gallery .deck-body{top:32%;font-size:2cqw;color:#6b8074;line-height:1.4}.deck-gallery{position:absolute;left:5%;right:5%;top:45%;height:43%;display:flex;gap:2.8%;align-items:stretch;justify-content:center}.deck-gallery img{width:49%;min-width:0;object-fit:contain}.deck-gallery:has(.portrait) img:first-child{width:54%}.deck-gallery img.portrait{width:18%;object-fit:cover}.layout-steps .deck-body{font-size:2.7cqw;line-height:1.75}.video-dialog{background:#091817;color:#f8f5eb;border:1px solid #334a40;border-radius:14px;padding:20px;width:min(1100px,94vw);max-height:95dvh}.video-dialog::backdrop{background:#000c}.video-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.video-bar button{background:#263e37;color:white;border:1px solid #547064;border-radius:7px;min-height:44px;padding:8px 16px}.video-dialog iframe{width:100%;aspect-ratio:16/9;border:0}.video-dialog>a{display:block;color:#e0be8e;padding:14px 0 4px;font-size:14px}
@media(prefers-reduced-motion:no-preference){.present-stage .deck-slide{animation:slide-in .22s ease-out}@keyframes slide-in{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:none}}}
@media(max-width:600px){.video-dialog{padding:12px}.video-bar{font-size:13px}.video-dialog>a{font-size:12px}}

.deck-title,.deck-body{word-break:keep-all}

/* Small native diagrams: one relationship per screen, editable labels. */
.has-diagram .deck-title{top:13%;font-size:4.05cqw}.has-diagram .deck-body{top:34%;font-size:2cqw;color:#687e72}.native-diagram{position:absolute;left:6%;right:6%;top:48%;height:35%;display:flex;align-items:center;justify-content:space-between;gap:2cqw}.diagram-node{flex:1;text-align:center;padding:2cqw 1.2cqw;border-top:.25cqw solid #b68a54;background:#e7eade;color:#244d43;font-size:2.15cqw;line-height:1.55;white-space:pre-line}.diagram-arrow{font-size:2.8cqw;color:#ad7c48}.diagram-tree{display:flex;flex-direction:column;gap:2.8cqw;justify-content:flex-start;top:44%;height:41%}.diagram-root{font-size:2.6cqw;font-weight:700;text-align:center;background:#244d43;color:#fff9ee;padding:1.2cqw 4cqw;min-width:40%;position:relative}.diagram-root:after{content:'';position:absolute;left:50%;top:100%;height:2.8cqw;border-left:.12cqw solid #9ba98d}.diagram-branches{display:flex;gap:2cqw;width:100%;position:relative;padding-top:1.2cqw}.diagram-branches:before{content:'';position:absolute;left:16%;right:16%;top:0;border-top:.12cqw solid #9ba98d}.diagram-branches .diagram-node{position:relative}.diagram-branches .diagram-node:before{content:'';position:absolute;left:50%;bottom:100%;height:1.2cqw;border-left:.12cqw solid #9ba98d}.diagram-room{border:.65cqw solid #244d43;gap:0;height:38%;top:45%}.diagram-room .diagram-node{background:transparent;border-top:0;border-right:.2cqw dashed #b68a54;height:100%;display:grid;place-items:center}.diagram-room .diagram-node:last-child{border-right:0}.has-diagram .deck-source{top:87%}

/* Photo essays and authentic reference screens for architecture lessons. */
.image-editorial .deck-title{top:20%;width:39%;font-size:3.35cqw;line-height:1.3}.image-editorial .deck-body{left:5.2%;top:64%;width:37%;font-size:2.15cqw;line-height:1.6}.image-editorial .case-image{left:47%;top:18%;width:48%;height:67%;object-fit:cover}.image-editorial .image-caption{left:47%;top:88%;width:48%;font-size:.82cqw;line-height:1.4}.image-editorial .deck-source{display:none}.image-editorial:has(img[src*="real-"]) .case-image{object-fit:contain;background:#e9e7df}.image-editorial:has(img[src*="leonardo"]) .case-image{object-fit:contain;background:#ece9de}.image-screen .deck-title{top:12%;width:90%;font-size:3.15cqw;line-height:1.25}.image-screen .deck-body{left:5%;top:29%;width:90%;font-size:1.8cqw;line-height:1.4}.image-screen .case-image{left:5%;top:39%;width:90%;height:47%;object-fit:contain;background:#e8e6df}.image-screen .image-caption{left:5%;top:89%;font-size:.85cqw;line-height:1.3}.image-screen .deck-source{display:none}.layout-photo .photo-shade,.layout-cover:has(.slide-background) .photo-shade,.layout-ending:has(.slide-background) .photo-shade{background:linear-gradient(90deg,#061a1be8 0%,#061a1bc9 42%,#061a1b55 77%,#061a1b22 100%)}.layout-photo .deck-title,.layout-cover:has(.slide-background) .deck-title,.layout-ending:has(.slide-background) .deck-title{width:70%}

/* Keep the complete goal-map cards visible in the thinking-board prologue. */
.image-editorial:has(img[src*="arch-thinking-"]) .case-image{object-fit:contain;background:#ece8df}

/* Concrete examples: photos, quantities, native tables and relationship circles. */
.has-teaching .deck-title{top:11%;font-size:3.45cqw;line-height:1.2;width:90%}.has-teaching .deck-body{top:29%;font-size:1.85cqw;line-height:1.5;width:90%;color:#597164}.teaching-figure{position:absolute;left:5%;right:5%;top:39%;height:46%;display:flex;gap:3%;align-items:center;justify-content:center}.teaching-image{width:100%;height:100%;object-fit:contain;min-width:0;border-radius:.4cqw}.teaching-figure.with-image>*{width:49%}.teaching-figure.with-image>.teaching-image{object-fit:contain}.teaching-caption{position:absolute;left:5%;bottom:8.8%;max-width:90%;font-size:1.05cqw;line-height:1.4;color:#687e72;letter-spacing:0}.teaching-table-wrap{width:100%}.teaching-table{border-collapse:collapse;width:100%;font-size:1.85cqw;line-height:1.45;letter-spacing:-.025em}.teaching-table th{text-align:left;background:#214b41;color:#fffdf6;padding:1.1cqw}.teaching-table td{padding:1.2cqw 1.1cqw;border-bottom:.12cqw solid #ced7c8;white-space:pre-line}.teaching-table tbody tr:nth-child(2n){background:#e8ecdf}.with-image .teaching-table{font-size:1.5cqw}.teaching-numbers{width:100%;text-align:center}.teaching-label{font-size:1.9cqw;line-height:1.5;color:#597164}.teaching-value{font-size:6.2cqw;line-height:1.3;font-weight:800;white-space:pre-line;letter-spacing:-.045em;color:#244d43}.teaching-detail{font-size:2cqw;line-height:1.5;margin-top:1cqw;white-space:pre-line}.teaching-equation .teaching-value{font-size:4.3cqw}.teaching-scene .teaching-figure{isolation:isolate;background:#eeeadd;border-radius:.6cqw}.teaching-scene .teaching-image{object-fit:contain}.teaching-marker{position:absolute;padding:.65cqw 1cqw;color:#fff;background:#214b41f2;border-radius:.4cqw;border-left:.35cqw solid #d5a559;font-size:1.65cqw;line-height:1.4;white-space:pre-line;box-shadow:0 .3cqw 1cqw #142f2925;max-width:31%}.teaching-marker:before{content:'●';font-size:.9em;margin-right:.45cqw;color:#e3bd73}.venn-enclosure{position:relative;border:.25cqw solid #254e43;border-radius:1.2cqw;width:89%;height:100%;background:#edf0e5}.venn-heading{position:absolute;top:3%;left:4%;font-size:1.9cqw;font-weight:750}.venn-circle{position:absolute;top:19%;width:46%;height:64%;border:.2cqw solid #8ca58b;border-radius:50%;background:#c3d5bdba;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1cqw}.venn-circle b{font-size:2.5cqw}.venn-circle span{font-size:1.8cqw;line-height:1.5;white-space:pre-line;text-align:center}.venn-resource{left:9%;padding-right:5%}.venn-task{right:9%;background:#e6cda9b0;border-color:#c5a36f;padding-left:5%}.venn-link{position:absolute;left:46%;top:46%;font-size:1.5cqw;font-weight:700;background:#fffdf7;padding:.35cqw .6cqw;border-radius:1cqw}.venn-total{position:absolute;left:0;right:0;bottom:3%;text-align:center;font-size:2.2cqw}.teaching-step{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#e8ecdf;border-radius:.5cqw;overflow:hidden;min-width:0}.teaching-step .teaching-image{height:61%;width:100%;background:#f3f0e8}.teaching-step b{font-size:2.3cqw;margin:.7cqw}.teaching-step span{font-size:1.9cqw;white-space:pre-line;line-height:1.5;margin:.3cqw .8cqw 1cqw}.library-card{flex:1;height:100%;padding:1.4cqw;background:#e8ecdf;border-top:.3cqw solid #b68a54;position:relative}.library-card small{font-size:1.1cqw;color:#a77a4b}.library-card b{display:block;font-size:2.5cqw;margin:1cqw 0}.library-card p{font-size:1.7cqw;line-height:1.6;white-space:pre-line}.library-card .teaching-image{height:46%;position:absolute;bottom:0;left:0;width:100%;object-fit:contain}.apply-card{width:48%;font-size:2.15cqw;line-height:1.6}.apply-card p{padding:.6cqw;border-bottom:1px solid #c9d2c4}.teaching-apply .teaching-image{width:48%}.wall-card{width:48%;height:100%;text-align:center}.wall-card img{height:76%}.wall-card b{display:block;font-size:2.4cqw;margin-top:.5cqw}

.teaching-apply .apply-card{font-size:2cqw;line-height:1.5}.teaching-apply .apply-card p{margin:.35cqw 0;padding:.5cqw}

/* v3: cost item contains direct resources plus tasks containing resources. */
.cost-hierarchy{width:100%;height:100%;border:.25cqw solid #244d43;border-radius:.7cqw;background:#edf0e5;padding:1.3cqw 1.7cqw;display:flex;flex-direction:column;gap:1cqw}.cost-hierarchy-title{font-size:2.05cqw}.cost-columns{display:flex;gap:2cqw;flex:1;min-height:0}.cost-direct{width:26%;display:flex;flex-direction:column;gap:.8cqw;justify-content:center}.cost-work{width:74%;display:flex;flex-direction:column;justify-content:center;gap:.7cqw}.cost-columns small{font-size:1.25cqw;color:#597164}.cost-task-row{display:flex;gap:1.2cqw;min-height:0}.nested-task{flex:1;border:.2cqw solid #b69b73;border-radius:.5cqw;background:#f6efdf;padding:1.1cqw .8cqw;display:flex;flex-direction:column;gap:.8cqw;align-items:stretch;text-align:center;min-width:0}.nested-task>b{font-size:1.85cqw}.task-duration{font-size:1.4cqw;white-space:pre-line;line-height:1.5}.resource-chip{padding:.9cqw .65cqw;background:#d9e5d1;border:.1cqw solid #9aaf8b;font-size:1.55cqw;line-height:1.45;text-align:center;white-space:pre-line;border-radius:.3cqw}.cost-total{font-size:1.7cqw;text-align:right}.cost-bill{border-collapse:collapse;width:100%;font-size:1.65cqw;line-height:1.3;letter-spacing:-.025em}.cost-bill th{background:#244d43;color:#fffdf7;text-align:left;padding:.65cqw 1cqw}.cost-bill td{padding:.65cqw 1cqw;border-bottom:.1cqw solid #cbd4c3;white-space:pre-line}.cost-bill tr:nth-child(2n){background:#e8ecdf}.cost-bill th:last-child,.cost-bill td:last-child{text-align:right;font-variant-numeric:tabular-nums}.cost-bill .bill-total{font-weight:800;background:#d8e3cc;border-top:.2cqw solid #244d43}.gantt-chart{width:100%;height:100%;display:flex;flex-direction:column;gap:1cqw}.gantt-ticks,.gantt-row{display:grid;grid-template-columns:22% 78%;align-items:center}.gantt-ticks{font-size:1.35cqw;min-height:15%}.gantt-axis{display:grid;grid-template-columns:repeat(6,1fr);font-size:1.25cqw;color:#597164;text-align:center}.gantt-row{flex:1;min-height:0}.gantt-label{font-size:1.8cqw;white-space:pre-line;line-height:1.5}.gantt-lane{height:100%;position:relative;background:repeating-linear-gradient(to right,#e4e8dc 0,#e4e8dc calc(16.6667% - 1px),#c3cebb calc(16.6667% - 1px),#c3cebb 16.6667%);border-left:1px solid #c3cebb}.gantt-bar{position:absolute;top:13%;height:74%;display:flex;align-items:center;justify-content:center;color:#fffdf7;background:#315c4b;border-radius:.4cqw;font-size:1.65cqw;font-weight:700}.gantt-color-1{background:#b4773e}.gantt-color-2{background:#547a63}

/* Three procedure scenes: reserve room for two short resource lines. */
.teaching-steps .teaching-step .teaching-image{height:56%;flex-shrink:0}.teaching-steps .teaching-step span{font-size:1.75cqw;line-height:1.4;margin:.2cqw .8cqw .6cqw}

.teaching-scene .teaching-figure{border:.22cqw solid #284f44;border-radius:.6cqw}.teaching-scene .teaching-marker{font-size:1.45cqw;padding:.45cqw .7cqw;max-width:31%}

/* Keep library explanations above their image in normal layout flow. */
.library-card{display:grid;grid-template-rows:1.2cqw 2.8cqw minmax(0,1fr) 40%;gap:.4cqw;min-width:0}.library-card small{line-height:1.1}.library-card b{font-size:2.1cqw;line-height:1.2;margin:0}.library-card p{font-size:1.55cqw;line-height:1.4;margin:0;min-height:0}.library-card .teaching-image{position:static;width:100%;height:100%;min-height:0;object-fit:contain}

.object-flow{display:grid;grid-template-columns:25% 9% 32% 34%;width:100%;height:100%;gap:0;align-items:stretch}.flow-object{display:flex;flex-direction:column;align-items:center;justify-content:space-between;border:.15cqw solid #b9c8b5;background:#e8ecdf;border-radius:.5cqw;padding:1.1cqw}.flow-object small{font-size:1.2cqw;color:#597164}.flow-object>b{font-size:2.15cqw}.flow-object .teaching-image{height:64%;object-fit:contain}.flow-object>span{font-size:1.65cqw}.flow-link{display:flex;flex-direction:column;align-items:center;justify-content:center}.flow-link small{font-size:1cqw}.flow-link>b{font-size:3.5cqw}.flow-data{border:.23cqw solid #284f44;border-radius:.5cqw;padding:1cqw;display:grid;grid-template-rows:2.4cqw 1fr 1fr;gap:.8cqw;background:#edf0e5}.flow-heading{font-size:1.9cqw}.flow-cost,.flow-task{display:flex;flex-direction:column;justify-content:center;padding:.7cqw 1cqw;gap:.5cqw;border-radius:.3cqw;background:#dbe5d1}.flow-task{background:#f3e7d5;border:.13cqw solid #c6aa82}.flow-cost b,.flow-task b{font-size:1.7cqw}.flow-cost span,.flow-task span{font-size:1.45cqw;line-height:1.5;white-space:pre-line}.flow-outputs{display:grid;grid-template-rows:2.4cqw 1fr 1fr;gap:.8cqw;padding:1.23cqw 0 1.23cqw 0}.flow-output{display:grid;grid-template-columns:18% 82%;align-items:center}.flow-bill{grid-row:2}.flow-schedule{grid-row:3}.flow-arrow{font-size:3cqw;text-align:center}.flow-result{height:100%;display:flex;flex-direction:column;justify-content:center;padding:.8cqw;background:#dbe5d1;border-radius:.4cqw;gap:.5cqw}.flow-schedule .flow-result{background:#f3e7d5}.flow-result b{font-size:2.2cqw}.flow-result span{font-size:1.3cqw;line-height:1.4}

.nested-flow{position:relative;width:100%;height:100%}.nf-object{position:absolute;left:0;top:0;width:20%;height:100%;padding:1cqw;background:#e8ecdf;border:.13cqw solid #b8c7b3;border-radius:.4cqw;display:flex;flex-direction:column;justify-content:space-between;align-items:center}.nf-object small{font-size:1.1cqw}.nf-object>b{font-size:1.8cqw}.nf-object>span{font-size:1.5cqw}.nf-object .teaching-image{height:60%;object-fit:contain}.nf-link{position:absolute;left:20%;width:6%;top:43%;text-align:center}.nf-link small{font-size:.8cqw;white-space:nowrap}.nf-link>b{display:block;font-size:2.7cqw}.nf-data{position:absolute;left:26%;width:48%;top:0;height:100%;border:.25cqw solid #284f44;border-radius:.5cqw;background:#edf0e5}.nf-heading{position:absolute;left:4%;top:4%;font-size:1.8cqw}.nf-direct{position:absolute;top:16%;left:4%;width:92%;height:17%;display:flex;gap:1cqw;align-items:stretch}.nf-resource{background:#d9e5ce;border:.1cqw solid #9db18e;padding:.5cqw .7cqw;border-radius:.3cqw;font-size:1.3cqw;display:flex;align-items:center;justify-content:center;white-space:pre-line}.nf-direct .nf-resource{flex:1}.nf-task{position:absolute;left:4%;width:92%;height:17%;background:#f5e9d6;border:.15cqw solid #b58d5e;border-radius:.35cqw;padding:.5cqw .8cqw;display:flex;align-items:center;justify-content:space-between;gap:1cqw}.nf-task-0{top:40%}.nf-task-1{top:60%}.nf-task-2{top:80%}.nf-task>b{font-size:1.5cqw}.nf-task>.nf-resource{font-size:1.3cqw;min-width:52%;height:100%}.nf-result{position:absolute;left:80%;width:20%;display:flex;flex-direction:column;justify-content:center;padding:.7cqw;gap:.5cqw;border-radius:.4cqw}.nf-bill{top:5%;height:22%;background:#dbe5d1}.nf-schedule{top:64%;height:28%;background:#f3e7d5}.nf-result>b{font-size:2.1cqw}.nf-result>span{font-size:1.2cqw;line-height:1.4}.nf-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

/* Native studio media player: direct MP4/WebM and bounded teaching segments. */
.video-dialog video{display:block;width:100%;max-height:70dvh;background:#000;aspect-ratio:16/9;object-fit:contain}.video-status{font-size:14px;line-height:1.5;color:#d7e1d8}.video-bar{flex-wrap:wrap}.video-bar button{font-size:14px}

/* Optional blue presentation theme; existing decks retain their original styles. */
.deck-slide.theme-blue{background:#e2efff;color:#111318;letter-spacing:-.035em}
.theme-blue::before{content:'↗';position:absolute;right:4.5%;top:6%;width:2.6cqw;height:2.6cqw;border:.08cqw solid #14171d;border-radius:50%;display:grid;place-items:center;font-size:1.6cqw;line-height:1}
.theme-blue .deck-kicker{left:4.5%;top:6.5%;color:#303945;font-weight:500;font-size:.95cqw;letter-spacing:.04em}
.theme-blue .deck-title{left:4.5%;top:16%;width:87%;font-size:3.8cqw;font-weight:600;line-height:1.2;letter-spacing:-.045em;color:#111318}
.theme-blue .deck-body{left:4.5%;top:42%;width:86%;font-size:2.25cqw;color:#303945;line-height:1.55}
.theme-blue .deck-foot,.theme-blue .deck-number{bottom:3.4%;font-size:.85cqw;color:#3c4756}
.theme-blue .deck-foot{left:4.5%}.theme-blue .deck-number{right:4.5%}
.theme-blue .image-caption{color:#4d5867;font-size:.74cqw;line-height:1.25;letter-spacing:0}
.theme-blue .case-image,.theme-blue .blue-cover-detail{filter:grayscale(1);border-radius:0}
.theme-blue.layout-cover .case-image{left:4.5%;top:23%;width:61%;height:43%;object-fit:cover;object-position:center}
.theme-blue .blue-cover-detail{position:absolute;left:68%;top:23%;width:27.5%;height:43%;object-fit:cover;object-position:65% center}
.theme-blue.layout-cover .deck-title{left:4.5%;top:74%;width:62%;font-size:4.05cqw;line-height:1.15;font-weight:600}
.theme-blue.layout-cover .deck-body{left:70%;top:76%;width:25.5%;font-size:1.65cqw;line-height:1.5}
.theme-blue.layout-cover .image-caption{left:4.5%;top:67.5%;width:90%}
.theme-blue.image-editorial .case-image{left:4.5%;top:20%;width:91%;height:49%;object-fit:cover;object-position:50% 48%}
.theme-blue.image-editorial .deck-title{left:4.5%;top:75%;width:61%;font-size:2.85cqw;line-height:1.18;font-weight:600}
.theme-blue.image-editorial .deck-body{left:70%;top:75%;width:25.5%;font-size:1.55cqw;line-height:1.45}
.theme-blue.image-editorial .image-caption{left:4.5%;top:70%;width:90%}
.theme-blue.has-diagram .deck-title,.theme-blue.has-teaching .deck-title{top:15%;font-size:3.25cqw;line-height:1.2}
.theme-blue.has-diagram .deck-body,.theme-blue.has-teaching .deck-body{top:31%;font-size:1.75cqw;color:#303945}
.theme-blue .native-diagram{left:4.5%;right:4.5%;top:51%;height:32%;gap:1.8cqw}
.theme-blue .diagram-node{background:transparent;border-top:.1cqw solid #101820;border-bottom:.1cqw solid #101820;padding:2cqw .8cqw;color:#111318;font-size:1.9cqw;line-height:1.45;text-align:left}
.theme-blue .diagram-arrow{color:#111318;font-size:2.35cqw}
.theme-blue .teaching-figure{left:4.5%;right:4.5%;top:41%;height:43%}
.theme-blue .teaching-table{font-size:1.65cqw;line-height:1.4;color:#111318}
.theme-blue .teaching-table th{background:transparent;color:#111318;border-top:.15cqw solid #111318;border-bottom:.1cqw solid #111318;font-weight:650;padding:.9cqw .6cqw}
.theme-blue .teaching-table td{padding:1.05cqw .6cqw;border-bottom:.07cqw solid #91a5bc}
.theme-blue .teaching-table tbody tr:nth-child(2n){background:#cddff466}
.theme-blue.layout-ending .deck-title{top:25%;width:88%;font-size:4.6cqw;border-top:.12cqw solid #111318;padding-top:2.8cqw}
.theme-blue.layout-ending .deck-body{top:64%;width:88%;font-size:2.25cqw;color:#303945}

@font-face{font-family:WorkshopPretendard;src:url('/assets/fonts/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}


.deck-slide.font-pretendard{font-family:WorkshopPretendard,sans-serif}.deck-slide.font-suit{font-family:WorkshopSuit,sans-serif}.deck-slide.font-wanted{font-family:WorkshopWanted,sans-serif}
.deck-slide.theme-architecture{background:#fff;color:#151515;letter-spacing:-.025em}
.theme-architecture .deck-kicker{top:6%;left:5%;font-size:.92cqw;font-weight:500;letter-spacing:.08em;color:#606060}
.theme-architecture .deck-title{left:5%;top:16%;width:88%;font-weight:750;font-size:3.8cqw;line-height:1.2;letter-spacing:-.045em;color:#151515}
.theme-architecture .deck-body{left:5%;top:42%;width:87%;font-size:2.15cqw;line-height:1.55;color:#4b4b4b;letter-spacing:-.02em}
.theme-architecture .deck-foot,.theme-architecture .deck-number{font-size:.85cqw;color:#6a6a6a;bottom:3.5%;letter-spacing:.02em}
.theme-architecture .deck-foot{left:5%}.theme-architecture .deck-number{right:5%}
.theme-architecture .case-image{filter:grayscale(1);border-radius:0}
.theme-architecture .image-caption{color:#777;font-size:.72cqw;line-height:1.3;letter-spacing:0}
.theme-architecture.layout-cover .case-image{left:52%;top:15%;width:43%;height:68%;object-fit:cover;object-position:64% center}
.theme-architecture.layout-cover .deck-title{left:5%;top:31%;width:44%;font-size:4.6cqw;line-height:1.13;font-weight:800}
.theme-architecture.layout-cover .deck-body{left:5%;top:71%;width:40%;font-size:1.75cqw;line-height:1.5}
.theme-architecture.layout-cover .image-caption{left:52%;top:85%;width:43%}
.theme-architecture.image-editorial .deck-title{left:5%;top:22%;width:43%;font-size:3.3cqw;line-height:1.25}
.theme-architecture.image-editorial .deck-body{left:5%;top:61%;width:40%;font-size:1.85cqw;line-height:1.5}
.theme-architecture.image-editorial .case-image{left:52%;top:19%;width:43%;height:64%;object-fit:cover;object-position:center}
.theme-architecture.image-editorial .image-caption{left:52%;top:85%;width:43%}
.theme-architecture.has-diagram .deck-title,.theme-architecture.has-teaching .deck-title{top:14%;font-size:3.25cqw}
.theme-architecture.has-diagram .deck-body,.theme-architecture.has-teaching .deck-body{top:31%;font-size:1.75cqw;color:#555}
.theme-architecture .native-diagram{left:5%;right:5%;top:51%;height:32%;gap:1.8cqw}
.theme-architecture .diagram-node{background:#f5f5f5;border-top:.15cqw solid #151515;border-bottom:0;color:#151515;font-size:1.85cqw;text-align:left;line-height:1.5;padding:2cqw 1cqw}
.theme-architecture .diagram-arrow{color:#777;font-size:2.2cqw}
.theme-architecture .teaching-figure{left:5%;right:5%;top:41%;height:43%}
.theme-architecture .teaching-table{font-size:1.65cqw;line-height:1.45;color:#151515}
.theme-architecture .teaching-table th{background:#151515;color:white;font-weight:600;padding:.9cqw .8cqw}
.theme-architecture .teaching-table td{padding:1.05cqw .8cqw;border-bottom:.07cqw solid #ddd}
.theme-architecture .teaching-table tbody tr:nth-child(2n){background:#f5f5f5}
.theme-architecture.layout-ending .deck-title{top:26%;font-size:4.4cqw;font-weight:800;border-top:.16cqw solid #151515;padding-top:2.6cqw}
.theme-architecture.layout-ending .deck-body{top:65%;font-size:2.2cqw;color:#555}

@font-face{font-family:WorkshopJalnan;src:url('/assets/fonts/JalnanGothic.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
.deck-slide.font-title-jalnan .deck-title{font-family:WorkshopJalnan,WorkshopPretendard,sans-serif;font-weight:400;letter-spacing:-.025em;font-size:3.45cqw;line-height:1.25}
.theme-architecture.font-title-jalnan.layout-cover .deck-title{font-size:3.95cqw}
.theme-architecture.font-title-jalnan.image-editorial .deck-title{font-size:3.05cqw;top:21%;line-height:1.3}
.theme-architecture.font-title-jalnan.has-teaching .deck-title,.theme-architecture.font-title-jalnan.has-diagram .deck-title{font-size:2.95cqw;top:14%;white-space:pre-line}
.theme-architecture.font-title-jalnan.has-teaching .deck-body,.theme-architecture.font-title-jalnan.has-diagram .deck-body{top:32%;font-size:1.6cqw;line-height:1.4}
.theme-architecture.font-title-jalnan .teaching-figure{top:44%;height:40%}
.theme-architecture .info-hub{position:relative;width:100%;height:100%}
.theme-architecture .hub-center{position:absolute;left:28%;top:36%;width:44%;height:28%;background:#151515;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5cqw;z-index:2}
.theme-architecture .hub-center b{font-size:1.8cqw}.theme-architecture .hub-center span{font-size:1.1cqw;color:#ddd}
.theme-architecture .hub-lines{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.theme-architecture .hub-node{position:absolute;width:27%;height:26%;display:flex;align-items:center;justify-content:center;background:#f1f1f1;border-top:.1cqw solid #151515;font-size:1.55cqw;z-index:1}
.theme-architecture .hub-node-0,.theme-architecture .hub-node-3{left:2%}.theme-architecture .hub-node-1,.theme-architecture .hub-node-4{left:36.5%}.theme-architecture .hub-node-2,.theme-architecture .hub-node-5{left:71%}.theme-architecture .hub-node-0,.theme-architecture .hub-node-1,.theme-architecture .hub-node-2{top:0}.theme-architecture .hub-node-3,.theme-architecture .hub-node-4,.theme-architecture .hub-node-5{bottom:0}
.theme-architecture.teaching-journey .teaching-figure{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2cqw}
.theme-architecture .journey-card{border-top:.15cqw solid #999;background:#f3f3f3;padding:1.3cqw;display:flex;flex-direction:column;gap:1.5cqw;white-space:pre-line;justify-content:center}
.theme-architecture .journey-card.is-emphasis{background:#151515;color:#fff;border-color:#151515}
.theme-architecture .journey-card small{font-size:1cqw;opacity:.65}.theme-architecture .journey-card b{font-size:1.6cqw}.theme-architecture .journey-card span{font-size:1.25cqw;line-height:1.6}
.theme-architecture.teaching-steps .teaching-figure{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5cqw;height:45%;top:43%}
.theme-architecture .teaching-step{padding:0;background:#fff;border:0;border-radius:0;display:grid;grid-template-rows:57% auto 1fr;gap:.65cqw;overflow:hidden}
.theme-architecture .teaching-step img{position:static;width:100%;height:100%;object-fit:cover;border-radius:0;filter:grayscale(1)}
.theme-architecture .teaching-step b{font-size:1.65cqw;line-height:1.3;color:#151515;padding:0}
.theme-architecture .teaching-step span{font-size:1.3cqw;line-height:1.45;color:#555;white-space:pre-line;padding:0}
.theme-architecture.font-title-jalnan .teaching-table{font-size:1.45cqw;line-height:1.4}.theme-architecture.font-title-jalnan .teaching-table td{padding:.8cqw}.theme-architecture.font-title-jalnan .teaching-table th{padding:.7cqw .8cqw}

.theme-architecture .case-image[src$="arch-official-bonsai-layout.png"],.theme-architecture .case-image[src$="ot-v2-space-app.png"]{object-fit:contain;background:#f6f6f6}

.theme-architecture.teaching-goalmap .teaching-figure{top:43%;height:45%}.goal-bubble-map{position:relative;width:100%;height:100%}.goal-map-lines{position:absolute;inset:0;width:100%;height:100%}.goal-map-lines line{stroke:#aaa;stroke-width:.28}.goal-bubble{position:absolute;transform:translate(-50%,-50%);width:18%;height:24%;border:.1cqw solid #444;border-radius:50%;background:#fff;color:#151515;display:flex;align-items:center;justify-content:center;text-align:center;font-size:1.25cqw;line-height:1.35;white-space:pre-line;padding:.4cqw;z-index:1}.goal-bubble.goal-root{width:24%;height:29%;background:#151515;color:white;font-size:1.5cqw}.goal-bubble.goal-ai{background:#f1f1f1;border-style:dashed}.goal-bubble.goal-me{border-width:.22cqw}.theme-architecture .case-image[src*="ot-v4-"]{object-fit:contain;background:#f7f7f7}

.goal-bubble{box-sizing:border-box;width:17%}

.goal-bubble{width:16%}

/* Interactive goal map is a separate exercise, never a shared lecture mutation. */
.goalboard-dialog{background:#fafafa;color:#191919;width:96vw;max-width:1500px;max-height:94dvh;box-sizing:border-box;padding:24px;border:1px solid #777;border-radius:8px;overflow:auto;font-family:Pretendard,system-ui,sans-serif}.goalboard-dialog::backdrop{background:#0009}.gb-head,.gb-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.gb-head{justify-content:space-between}.gb-head h2{margin:0 0 15px}.goalboard-dialog>input{width:100%;box-sizing:border-box;margin-bottom:12px}.goalboard-dialog button,.goalboard-dialog input,.goalboard-dialog textarea,.goalboard-dialog select{font:inherit;font-size:16px;padding:10px;border:1px solid #bbb;border-radius:5px;background:white;color:#171717;min-height:44px}.goalboard-dialog button{cursor:pointer}.gb-main{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px}.gb-canvas{overflow:auto;background:#fff;border:1px solid #ddd}.gb-canvas svg{width:100%;min-width:700px;display:block;touch-action:none}.gb-node{cursor:grab}.gb-node rect{fill:#edf2e8;stroke:#496445;stroke-width:3}.gb-node.ai rect{fill:#e3efff;stroke:#5075a3}.gb-node.review rect{fill:#fff4d7;stroke:#9c7b37}.gb-node.selected rect{stroke:#111;stroke-width:5}.gb-node text{font:17px system-ui;fill:#171717;pointer-events:none}.gb-panel{display:grid;gap:10px;align-content:start}.gb-panel h3,.gb-panel p{margin:0}.gb-panel p,.gb-status{font-size:14px;line-height:1.6}.gb-panel textarea,.gb-panel select{max-width:100%;box-sizing:border-box}.gb-panel select{width:100%}@media(max-width:750px){.goalboard-dialog{padding:14px}.gb-main{grid-template-columns:1fr}.gb-panel{grid-template-columns:1fr}.gb-actions button{flex:1 1 auto}} 

.goalboard-slide-action{position:absolute;right:3cqw;bottom:3cqw;z-index:2;border:1px solid #222;background:#fff;color:#111;padding:.6cqw 1cqw;font-size:1.1cqw;cursor:pointer}

.cad-slide-action {
  position: absolute; left: 5%; bottom: 27%; z-index: 2;
  padding: .65cqw .95cqw; border: 1px solid #1c5277; border-radius: .35cqw;
  background: #153d5c; color: #fff; font: inherit; font-size: 1.3cqw; font-weight: 750; cursor: pointer;
}
.cad-practice {
  box-sizing: border-box; width: min(1180px, 96vw); max-width: none; max-height: 94dvh;
  padding: clamp(14px, 2vw, 28px); border: 1px solid #d7e1ea; border-radius: 14px;
  background: #fff; color: #1d3143; font: 16px/1.5 "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.cad-practice::backdrop { background: #111d2dcc; }
.cad-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.cad-header h2 { margin: 0; font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -.05em; }
.cad-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.cad-tools button {
  min-height: 38px; padding: 5px 12px; border: 1px solid #b5c7d6; border-radius: 6px;
  color: #23415c; background: #fff; font: inherit; font-size: 14px; cursor: pointer;
}
.cad-tools button:last-child { color: #fff; background: #183e60; border-color: #183e60; }
.cad-tools button:disabled { opacity: .45; cursor: default; }
.cad-hint { margin: 10px 0 17px; color: #455e74; }
.cad-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cad-panel { min-width: 0; border: 1px solid #d3dfe9; border-radius: 7px; overflow: hidden; }
.cad-panel-heading { padding: 10px 12px; background: #122e47; color: #f4f8fc; }
.cad-panel-heading h3, .cad-result h3 { margin: 0; font-size: 16px; }
.cad-panel-heading span { display: block; color: #c6d7e6; font-size: 13px; }
.cad-panel svg { display: block; width: 100%; height: auto; background: #f6f9fc; }
.cad-grid { fill: none; stroke: #dbe5ee; stroke-width: .55; }
.cad-reference { stroke: #7c8da1; stroke-dasharray: 5 4; }
.cad-marker { fill: #526579; font: 11px sans-serif; }
.cad-stroke { stroke: #4c5b6b; stroke-width: 2; pointer-events: none; }
.cad-window .cad-stroke { stroke: #1577b7; stroke-width: 2.8; }
.cad-hit { stroke: transparent; stroke-width: 13; pointer-events: stroke; cursor: move; touch-action: none; }
.cad-selected .cad-stroke, .cad-line:hover .cad-stroke { stroke: #af4a12; stroke-width: 3; }
.cad-grip { visibility: hidden; fill: #fff; stroke: #af4a12; stroke-width: 1.6; cursor: crosshair; touch-action: none; }
.cad-grip-active { visibility: visible; }
.cad-grip:focus-visible, .cad-grip:hover { fill: #ffcb9e; }
.cad-panel-hint { margin: 0; padding: 10px 12px; font-size: 13px; color: #344d63; }
.cad-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cad-result { border: 1px solid #d7e1ea; border-radius: 7px; padding: 9px 12px; background: #f7f9fc; }
.cad-result p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.cad-result strong { padding: 0 7px; border-radius: 4px; background: #deeeeb; color: #234c42; font-size: 13px; }
.cad-result strong.cad-mismatch { background: #ffe5cf; color: #863401; }
@media (max-width: 660px) {
  .cad-panels, .cad-comparison { grid-template-columns: 1fr; }
  .cad-panel svg { max-height: 250px; }
}

.bim-practice {
  box-sizing: border-box; width: min(1180px, 96vw); max-width: none; max-height: 94dvh;
  padding: 0 clamp(14px, 2.4vw, 30px) 25px; border: 1px solid #cedce9; border-radius: 14px;
  background: #f8fbfd; color: #172e44; color-scheme: light;
  font: 16px/1.5 "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.bim-practice * { box-sizing: border-box; }
.bim-practice::backdrop { background: #111e2ddb; }
.bim-header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px;
  padding: 12px 0; border-bottom: 1px solid #dce7ef; background: #f8fbfd;
}
.bim-header h2 { margin: 0 auto 0 0; font-size: clamp(20px, 3vw, 29px); letter-spacing: -.045em; }
.bim-practice button {
  min-height: 42px; padding: 6px 10px; border: 1px solid #b9ccdc; border-radius: 6px;
  background: #fff; color: #1d425f; font: inherit; font-weight: 650; font-size: .875rem; cursor: pointer;
}
.bim-header .bim-close, .bim-toolbar button[aria-pressed=true] { background: #164464; border-color: #164464; color: #fff; }
.bim-practice button:focus-visible, .bim-practice select:focus-visible { outline: 2px solid #1b67a0; outline-offset: 2px; }
.bim-practice button:disabled { opacity: .45; cursor: default; }
.bim-intro, .bim-assumption { margin: 12px 0; color: #456278; font-size: .93rem; }
.bim-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.bim-toolbar button:last-child { margin-left: auto; }
.bim-status { min-height: 1.5em; margin: 8px 0 10px; font-weight: 650; font-size: .9rem; color: #205976; }
.bim-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: stretch; }
.bim-view { min-width: 0; overflow: hidden; border: 1px solid #c8dbe8; border-radius: 8px; background: #f0f6fb; }
.bim-view-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;
  padding: 7px 10px; color: #f3f8ff; background: #173c5a;
}
.bim-view-head h4 { margin: 0; font-size: .95rem; }
.bim-view-head span { color: #d1e0ed; font-size: .75rem; }
.bim-view svg { display: block; width: 100%; height: auto; }
.bim-view-plan svg { cursor: crosshair; }
.bim-view-plan svg, .bim-view-3d svg { max-height: 295px; }
.bim-gridline { stroke: #c2d7e6; stroke-width: .75; pointer-events: none; }
.bim-shape { stroke: #276286; stroke-width: 1.5; cursor: pointer; }
.bim-shape.wall { fill: #83b7d3; }
.bim-shape.slab { fill: #d4e6ec; }
.bim-shape.has-asset { stroke: #246c52; }
.bim-shape.wall.has-asset { fill: #78bca5; }
.bim-shape.slab.has-asset { fill: #b6d6c9; }
.bim-shape.selected { stroke: #ad501e; stroke-width: 2.6; }
.bim-wall-hit { stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer; }
.bim-cut { stroke: #ac4b29; stroke-dasharray: 6 5; stroke-width: 1.2; pointer-events: none; }
.bim-marker { fill: #9b4225; font: 12px sans-serif; pointer-events: none; }
.bim-point { fill: #c45122; stroke: #fff; stroke-width: 1.5; pointer-events: none; }
.bim-cut-control { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: .86rem; }
.bim-cut-control input { width: min(180px, 45%); height: 38px; accent-color: #245779; }
.bim-cut-control span { min-width: 3em; font-variant-numeric: tabular-nums; }
.bim-inspector { padding: 12px; border: 1px solid #d2e2ee; border-radius: 8px; background: #fff; }
.bim-inspector h3, .bim-reports h3, .bim-object-schedule h3 { margin: 0 0 8px; font-size: 1.05rem; }
.bim-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bim-field { display: grid; align-content: start; gap: 2px; min-width: 0; font-size: .82rem; font-weight: 650; }
.bim-field select {
  width: 100%; min-width: 0; min-height: 42px; padding: 4px 5px; border: 1px solid #b9ccdc;
  border-radius: 5px; background: #f9fbfc; color: #173c58; font: inherit; font-size: 16px;
}
.bim-quantity { margin: 8px 0 6px; color: #235372; font-size: .9rem; font-weight: 650; }
.bim-inspector button { min-height: 40px; }
.bim-reports { padding-top: 17px; }
.bim-reports .bim-assumption { margin: 0 0 10px; }
.bim-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.bim-report-grid > div { min-width: 0; padding: 12px; border: 1px solid #d2e2ee; border-radius: 8px; background: #fff; }
.bim-report-grid h4 { margin: 0 0 5px; }
.bim-empty { margin: 0; color: #4b6174; font-size: .86rem; }
.bim-bill { width: 100%; border-collapse: collapse; font-size: .86rem; }
.bim-bill th, .bim-bill td { padding: 6px 4px; border-bottom: 1px solid #dfe8ef; vertical-align: top; }
.bim-bill th { text-align: left; }
.bim-bill th:not(:first-child), .bim-bill td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bim-bill tr.selected { background: #fdf0e2; }
.bim-bill small { display: block; color: #4d6373; font-weight: 400; }
.bim-total { margin: 7px 0 0; text-align: right; font-weight: 750; }
.bim-timescale { margin: 2px 0 7px; color: #456177; font-size: .84rem; text-align: right; }
.bim-gantt { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bim-task-info { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1px 8px; font-size: .84rem; }
.bim-task-info b { font-weight: 650; }
.bim-task-track { position: relative; height: 9px; border-radius: 2px; background: #e7eef4; }
.bim-task-bar { position: absolute; top: 0; height: 100%; min-width: 2px; border-radius: 2px; background: #3a7e9b; }
.bim-gantt .selected .bim-task-bar { background: #a65b34; }
@media (max-width: 690px) {
  .bim-practice {
    inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: 100%; max-height: 100dvh;
    padding: 0 max(12px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0; border-radius: 0; overscroll-behavior: contain;
  }
  .bim-header { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .bim-toolbar button:last-child { margin-left: 0; }
  .bim-practice button { min-height: 44px; }
  .bim-views { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .bim-view-plan, .bim-view-3d { grid-column: 1 / -1; }
  .bim-view-head { padding: 4px 7px; }
  .bim-view-plan svg, .bim-view-3d svg { max-height: 48dvh; }
  .bim-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bim-field:last-child { grid-column: 1 / -1; }
  .bim-report-grid { grid-template-columns: minmax(0, 1fr); }
}
.bim-practice .bim-jumps button:hover,
.bim-practice .bim-toolbar button[aria-pressed=false]:hover,
.bim-practice .bim-inspector button:hover,
.bim-practice .bim-toolbar button:last-child:hover { background: #e5eff7; color: #123957; }

.bim-jumps { display: flex; gap: 5px; min-width: 0; }
.bim-header .bim-close { order: 1; }
.bim-view-3d { display: flex; flex-direction: column; }
.bim-view-3d svg {
  flex: 1 0 auto; touch-action: none; user-select: none; cursor: grab;
  background: radial-gradient(ellipse at 50% 45%, #f7fbfe, #e5eff6);
}
.bim-view-3d svg.is-orbiting, .bim-view-3d svg.is-orbiting .bim-face { cursor: grabbing; }
.bim-view-3d svg:focus-visible { outline: 2px solid #1b67a0; outline-offset: -3px; }
.bim-face { stroke: #56768e; stroke-width: 1; stroke-linejoin: round; cursor: pointer; }
.bim-face-wall { fill: #82b0cb; }
.bim-face-slab { fill: #c7d9e0; }
.bim-face-wall.has-asset { fill: #78af99; }
.bim-face-slab.has-asset { fill: #adcbc0; }
.bim-face-side { filter: brightness(.86); }
.bim-face-top { filter: brightness(1.13); }
.bim-face.selected { stroke: #ad501e; stroke-width: 1.9; }
.bim-orbit-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; justify-content: center;
  padding: 4px 6px 6px; border-top: 1px solid #d2e0ea; background: #f8fbfd;
}
.bim-practice .bim-orbit-controls button { min-width: 42px; line-height: 1; }
.bim-practice .bim-orbit-controls button:hover,
.bim-practice .bim-object-table button:hover { background: #e5eff7; color: #123957; }
.bim-object-schedule { padding: 12px; margin-top: 12px; border: 1px solid #d2e2ee; border-radius: 8px; background: #fff; }
.bim-object-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .88rem; }
.bim-object-table th, .bim-object-table td { padding: 7px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.bim-object-table thead { background: #eaf3f8; }
.bim-object-table thead th:first-child { width: 18%; }
.bim-object-table thead th:nth-child(2) { width: 29%; }
.bim-object-table thead th:nth-child(3) { width: 27%; }
.bim-object-table tbody tr { border-bottom: 1px solid #e2eaf0; }
.bim-object-table tbody tr:last-child { border-bottom: 0; }
.bim-object-table tbody tr.selected { background: #fff2e7; }
.bim-practice .bim-object-table button { padding-inline: 7px; }
.bim-practice .bim-object-table button[aria-pressed=true] { border-color: #b05d33; color: #783416; background: #fff8f1; }
.bim-object-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .35em; line-height: 1.35; }
.bim-object-value + .bim-object-value { margin-top: 2px; }
.bim-object-value small { color: #536a7d; }
.bim-object-value b { color: #173c58; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
@media (max-width: 690px) {
  .bim-header { flex-wrap: wrap; }
  .bim-header .bim-close { order: 0; }
  .bim-jumps { flex: 1 0 100%; }
  .bim-jumps button { flex: 1; padding-inline: 5px; }
  .bim-object-schedule { padding: 9px 6px; }
  .bim-object-table th, .bim-object-table td { padding: 6px 4px; }
}
@media (max-width: 370px) {
  .bim-object-table { font-size: .82rem; }
  .bim-practice .bim-object-table button { min-height: 44px; padding-inline: 4px; font-size: .78rem; }
}

.slide-image-action {
  position: absolute; right: 10%; bottom: 2.5%; z-index: 2; min-height: 0;
  padding: .45cqw .85cqw; border: 1px solid #7293aa; border-radius: .35cqw;
  background: #f8fcff; color: #1c4d71; font: inherit; font-size: 1.1cqw; font-weight: 650; cursor: pointer;
}
.slide-image-dialog {
  width: min(1240px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 10px;
  border: 1px solid #bbcddd; border-radius: 9px; color: #1b3145; background: #f7fbff;
}
.slide-image-dialog::backdrop { background: #111e2ddd; }
.slide-image-dialog header { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }
.slide-image-dialog h2 { margin: 0 auto 0 0; font-size: clamp(14px, 3vw, 19px); }
.slide-image-dialog button {
  min-width: 44px; min-height: 44px; padding: 5px 8px; border: 1px solid #5d839c; border-radius: 6px;
  background: #e4edf4; color: #183954; font-size: 14px; cursor: pointer;
}
.slide-image-scroll { max-height: 80dvh; overflow: auto; background: #e6edf4; }
.slide-image-scroll img { display: block; width: 100%; height: auto; object-fit: contain; max-height: 76dvh; margin: auto; }
.slide-image-scroll.is-zoomed img { width: max(125%, 920px); max-height: none; margin: 0; }

.image-screen.has-image-zoom .deck-body { top: 31%; width: 24%; font-size: 2.05cqw; line-height: 1.5; }
.image-screen.has-image-zoom .case-image { left: 31%; top: 22%; width: 64%; height: 65%; background: transparent; }
.image-screen.has-image-zoom .image-caption { left: 31%; top: 89%; }
.image-screen.has-image-zoom.has-video .deck-source {
  display: flex; flex-direction: row; align-items: center;
  left: 19%; top: auto; bottom: 2.8%;
}
.slide-image-dialog button:hover, .slide-image-dialog button:focus-visible { background: #d5e8f5; color: #123957; }
@media(max-width:720px) and (orientation:portrait) {
  .slide-image-scroll.is-zoomed img { width: max(155%, 590px); }
}

.deck-slide.has-quiz .deck-title { top: 12%; font-size: 3.5cqw; }
.deck-slide.has-quiz .deck-body { top: 28%; width: 89%; font-size: 2.25cqw; line-height: 1.38; }
.deck-slide .quiz-panel { position: absolute; top: 44%; left: 5%; right: 5%; }
.quiz-options { display: grid; gap: .35em; padding: 0; margin: 0 0 .75em; list-style: none; counter-reset: item; }
.quiz-options li {
  display: grid; grid-template-columns: 1.65em 1fr; align-items: baseline; gap: .4em;
  padding: .33em .55em; border-bottom: 1px solid #cedbd0; background: #fdfcf6;
}
.quiz-options li::before { counter-increment: item; content: counter(item) "."; color: #3a6758; font-weight: 750; }
.deck-slide .quiz-panel { font-size: 1.85cqw; line-height: 1.32; }
.quiz-short { margin: .3em 0 1em; color: #5a7367; }
.deck-slide .lesson-action, .deck-slide .quiz-answer {
  min-height: 0; padding: .45cqw .8cqw; border: 1px solid #789c8c; border-radius: .35cqw;
  color: #1d4438; background: #fbfdfb; font: inherit; font-size: 1.2cqw; font-weight: 680; cursor: pointer;
}
.deck-slide .lesson-action { position: absolute; left: 5%; bottom: 11%; z-index: 2; }
.deck-slide:has(.deck-source) .lesson-action { left: auto; right: 5%; }
.deck-slide .lesson-action:hover, .deck-slide .quiz-answer:hover { background: #e1eee6; color: #1d4438; }
.present-reading .quiz-panel { margin-block-start: 12px; }
.present-reading .quiz-options li { color: #e9f2ec; background: #1c3630; border-color: #355449; padding: .55em; }
.present-reading .quiz-options li::before, .present-reading .quiz-short { color: #b4d9c6; }
.present-reading .quiz-answer { min-height: 44px; }
.lesson-dialog {
  width: min(700px, 94vw); max-height: 86dvh; color-scheme: light; padding: 16px;
  border: 1px solid #b7cfc5; border-radius: 10px; background: #f9fcfa; color: #16392c;
  font: 16px/1.6 system-ui, sans-serif;
}
.lesson-dialog::backdrop { background: #10281dd6; }
.lesson-dialog header { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.lesson-dialog h2 { margin: 0; font-size: clamp(18px, 3vw, 23px); }
.lesson-dialog p { margin: 8px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.lesson-dialog .quiz-solution { font-size: 1.15em; }
.lesson-dialog textarea {
  display: block; box-sizing: border-box; width: 100%; min-height: min(190px, 40dvh); padding: 10px;
  background: white; color: #17372c; border: 1px solid #a2c1b4; border-radius: 6px; font: inherit; margin-bottom: 10px;
}
.lesson-dialog button { min-height: 44px; padding: 5px 12px; border: 1px solid #8eb3a3; border-radius: 6px; color: #17372c; background: #e4f0e9; font: inherit; font-weight: 650; }
.lesson-dialog button:hover { color: #17372c; background: #ccdfd4; }


/* A source slide and a corresponding field photograph. */
.deck-slide.with-context-photo .deck-title {
  top: 11.5%; width: 90%; font-size: 3.45cqw; line-height: 1.2;
}
.deck-image-pair {
  position: absolute; top: 23%; left: 5%; right: 5%; height: 53%;
  display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(0, 1fr); gap: 1.4cqw;
}
.deck-image-pair figure {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .4cqw;
  min-width: 0; min-height: 0; margin: 0;
}
.deck-image-pair img {
  display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain;
  background: #fff; border: 1px solid #d4d9d0;
}
.deck-image-pair .deck-context-photo img { object-fit: cover; }
.deck-image-pair figcaption {
  margin: 0; white-space: nowrap; font-size: 1.03cqw; line-height: 1.15; letter-spacing: 0; color: #4f665b;
}
.deck-slide.with-context-photo .deck-body {
  top: 78%; left: 5%; width: 90%; font-size: 1.97cqw; line-height: 1.34;
}
.deck-slide.with-context-photo .deck-source {
  left: 18%; top: auto; bottom: 2.8%; flex-direction: row; align-items: center;
}

:root{font-family:-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:#dce4d8;background:#0a1818;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-size:14px;min-width:44px;min-height:44px;padding:9px 15px;background:#192d29;color:#dce4d8;border:1px solid #344c42;border-radius:8px;cursor:pointer}button:hover{background:#304a3c}button:disabled{opacity:.3;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #d3ad71;outline-offset:3px}a{color:#c9d8c7;text-decoration:none}#message{padding:15vh 8vw;font-size:22px}#presenter{height:100dvh;display:grid;grid-template-rows:56px minmax(0,1fr) 68px}.present-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:6px 22px;background:#0e211f}.present-head>a{font-size:14px;min-height:44px;display:flex;align-items:center}#lecture-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8ca398;max-width:60%}.present-stage{display:flex;align-items:center;justify-content:center;padding:12px 22px;min-height:0;overflow:hidden}#stage{width:min(100%,calc((100dvh - 148px) * 16 / 9));max-height:100%;box-shadow:0 20px 80px #0004}.present-controls{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 20px max(8px,env(safe-area-inset-bottom));background:#0e211f}.present-controls button{font-size:13px}#counter{min-width:72px;text-align:center;font-size:13px;color:#a9c0ad;font-variant-numeric:tabular-nums}#notes{position:fixed;z-index:5;right:20px;top:70px;bottom:85px;width:min(520px,calc(100vw - 40px));padding:22px;background:#f6f3e9;color:#254438;box-shadow:0 15px 80px #0008;border-radius:12px;overflow:auto}#notes>div,.overview-head{display:flex;align-items:center;justify-content:space-between;gap:12px}#notes h2,#overview h2{font-size:19px}#notes p{white-space:pre-wrap;font-size:17px;line-height:1.9;overflow-wrap:anywhere}#notes button{color:#254438;background:#e2e9dc;border-color:#c8d6c1}#overview{width:min(1000px,94vw);height:min(80dvh,850px);padding:24px;border-radius:14px;border:1px solid #49624e;background:#122923;color:#eef1e7}#overview::backdrop{background:#000a}#overview-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-top:18px}#overview-list button{text-align:left;display:flex;flex-direction:column;padding:10px;gap:10px;background:#1d342a;min-width:0}#overview-list button.current{outline:2px solid #d0ad75}#overview-list .slide-host{pointer-events:none}#overview-list span{font-size:12px;line-height:1.5}#black-screen{position:fixed;inset:0;z-index:30;background:#000;display:grid;place-items:end center;padding:25px}#black-close{opacity:.3}#black-close:hover,#black-close:focus{opacity:1}[hidden]{display:none!important}@media(max-width:650px){.present-head{padding:4px 12px}#lecture-name{display:none}#presenter{grid-template-rows:56px minmax(0,1fr) auto}.present-stage{padding:8px}#stage{width:min(100%,calc((100dvh - 160px) * 16 / 9))}.present-controls{flex-wrap:wrap;gap:6px;padding:8px 8px max(8px,env(safe-area-inset-bottom))}.present-controls button{font-size:12px;padding:7px 10px}.present-controls #blackout{display:none}#counter{min-width:52px}#overview-list{grid-template-columns:repeat(2,minmax(0,1fr))}#overview{padding:14px}}@media(max-height:500px){#presenter{grid-template-rows:45px minmax(0,1fr) 52px}.present-head{padding:0 12px}.present-controls{padding:3px 10px}#stage{width:min(100%,calc((100dvh - 113px) * 16 / 9))}.present-stage{padding:8px}}

.present-reading { display: none; }
@media (max-width: 720px) and (orientation: portrait) {
  #presenter { grid-template-rows: auto minmax(0, 1fr) auto; }
  .present-head {
    flex-wrap: wrap; justify-content: flex-start; gap: 2px 7px;
    padding: max(5px, env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) 5px max(9px, env(safe-area-inset-left));
  }
  #lecture-name {
    display: block; order: -1; flex: 1 0 100%; max-width: 100%; padding: 2px 1px;
    font-size: 12px; color: #bed2c7;
  }
  .present-head a, .present-head button { min-height: 44px; min-width: 0; padding: 4px 7px; font-size: 12px; }
  .present-stage { display: block; overflow: auto; padding: 10px max(9px, env(safe-area-inset-right)) 14px max(9px, env(safe-area-inset-left)); }
  #stage { width: 100%; max-height: none; }
  #stage .deck-source, #stage .cad-slide-action, #stage .goalboard-slide-action, #stage .slide-image-action, #stage .lesson-action, #stage .quiz-answer { display: none; }
  .present-reading {
    display: block; margin-top: 9px; padding: 12px; border: 1px solid #355444; border-radius: 9px;
    background: #122723; color: #edf2e9; overflow-wrap: anywhere;
  }
  .present-reading h2 { margin: 0; font-size: clamp(18px, 4.9vw, 26px); line-height: 1.3; white-space: pre-line; }
  .present-reading p { margin: 9px 0 0; font-size: 16px; line-height: 1.52; color: #d0dfd6; white-space: pre-line; }
  .reading-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .reading-actions button, .reading-actions a { min-height: 44px; padding: 5px 9px; font-size: 13px; }
  .reading-actions a { display: inline-flex; align-items: center; text-decoration: underline; }
  .reading-actions .reading-exercise { background: #285475; color: #fff; border-color: #49799c; order: -1; }
  .present-controls { flex-wrap: wrap; gap: 4px; padding: 5px 6px max(5px, env(safe-area-inset-bottom)); }
  .present-controls #blackout { display: none; }
  .present-controls button { padding: 4px 6px; font-size: 12px; white-space: nowrap; }
  #counter { min-width: 41px; font-size: 12px; }
  #notes { inset: auto 9px max(55px, calc(50px + env(safe-area-inset-bottom))); width: auto; max-height: 76dvh; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .present-head, .present-controls {
    padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right));
  }
}
