/* Internal lesson scenes: tactile study and a separate, readable paper leaf. */
body[data-view=lesson] #lesson-panel{
 --study-ink:#303a32;--study-green:#506451;
 background:#a89b82 url('assets/v17/study-desk.png?v=17a') center/cover;
 border:1px solid #e5dcc5;border-radius:16px;
 grid-template-columns:minmax(0,.92fr) minmax(0,1.2fr);gap:0;
 padding:52px 0 0;overflow:hidden;isolation:isolate;
 box-shadow:0 16px 35px #29291f38;
}
body[data-view=lesson] #lesson-pages{top:0;left:0;right:0;min-height:48px;padding:7px 20px;gap:14px;background:#f1ecdfed;border-bottom:1px solid #b2aa9259;z-index:3;scrollbar-width:thin}
body[data-view=lesson] #lesson-pages button{font:16px/1.45 var(--font-body);padding:6px 12px;border-radius:8px;background:transparent;color:#626653;border:0;box-shadow:none}
body[data-view=lesson] #lesson-pages button[aria-pressed=true]{background:#506451;color:#fff9e9;box-shadow:inset 0 -2px #344c3a}
body[data-view=lesson] #lesson-panel .lesson-copy{height:100%;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:20px 28px 18px 38px;background:linear-gradient(100deg,#eee5d0,#f7f1e4 13%,#f1eadb);border:0;position:relative;box-shadow:-9px 0 22px #352c291c;min-height:0}
body[data-view=lesson] #lesson-panel .lesson-copy::before{content:'';position:absolute;left:-7px;top:0;bottom:0;width:9px;background:#eee5d0;clip-path:polygon(100% 0,30% 0,55% 8%,12% 18%,45% 27%,5% 40%,35% 52%,8% 67%,42% 81%,12% 94%,50% 100%,100% 100%)}
body[data-view=lesson] #lesson-panel h3{font-family:var(--font-title);font-size:30px;line-height:1.3;font-weight:600;color:#2e382e;letter-spacing:.035em;margin:0 0 14px;text-wrap:balance}
body[data-view=lesson] #lesson-body p,body[data-view=lesson] #lesson-body p:first-child{font-family:var(--font-body);font-size:24px;line-height:1.6;letter-spacing:0;margin:0 0 14px;color:#4b5246;font-weight:400}
body[data-view=lesson] #lesson-body p:first-child{color:#303c31;font-weight:500}
body[data-view=lesson] #lesson-body mark{background:linear-gradient(transparent 72%,#c3cdae 72%);color:#3e5943;font-weight:600}
body[data-view=lesson] #lesson-reference{margin-top:2px;color:#726f60}
body[data-view=lesson] #lesson-reference[open]{max-width:95%;bottom:12px;right:12px}
body[data-view=lesson] #lesson-figure{padding:22px 30px;min-width:0;max-height:100%;color:#efe8d8;align-self:center}
body[data-view=lesson] #lesson-figure>div,body[data-view=lesson] #lesson-figure>figure{position:relative;z-index:1}
body[data-view=lesson] .specimen-figure{padding:16px 18px 10px;background:linear-gradient(90deg,#c4b388,#ede0bb 6%,#ece3cd 94%,#b5a17c);border-inline:8px solid #6a543d;border-radius:6px;box-shadow:0 15px 15px -6px #211e18a1,0 2px 2px #241e1755}
body[data-view=lesson] .specimen-figure img,body[data-view=lesson] .specimen-tabs:not([hidden])+.specimen-figure img{height:190px;border-radius:0;filter:none}
body[data-view=lesson] .specimen-figure figcaption{font:16px/1.45 var(--font-body);margin-top:10px;color:#544f40}
body[data-view=lesson] .specimen-figure figcaption strong{font-family:var(--font-title);font-weight:600;color:#3c4437}
body[data-view=lesson] .specimen-figure figcaption small{font-size:12px;margin-top:4px}
body[data-view=lesson] .specimen-tabs{margin-bottom:10px;gap:12px}
body[data-view=lesson] .specimen-tabs button{background:#f4eedc;border-radius:8px;border-color:#b7ad92}
body[data-view=lesson] .specimen-tabs button[aria-pressed=true]{background:#506451;color:#fff8e9}
body[data-view=lesson] .hanging-diagram,body[data-view=lesson] .diamond-figure,body[data-view=lesson] .artwork-study,body[data-view=lesson] .story-visual,body[data-view=lesson] .material-pair{padding:14px;background:#f2ead9ee;border-radius:8px;box-shadow:0 12px 22px #25271e44}
body[data-view=lesson] .hanging-diagram svg{height:235px}
body[data-view=lesson] .hanging-diagram figcaption{font-size:16px;margin-top:6px}
body[data-view=lesson] .diamond-figure img{max-height:220px;border-radius:2px}
body[data-view=lesson] .figure-arrow,body[data-view=lesson] .component-legend{background:#eee7d7ec;border-radius:6px;padding:8px;font-size:18px;margin:10px 0}
body[data-view=lesson] .lesson-panel button:focus-visible{outline:3px solid #a45f47;outline-offset:3px}
@media(min-width:1600px){body[data-view=lesson] #lesson-panel{padding-top:64px}body[data-view=lesson] #lesson-pages{min-height:60px;padding:12px 28px}body[data-view=lesson] #lesson-pages button{font-size:19px}body[data-view=lesson] #lesson-panel .lesson-copy{padding:30px 46px 30px 50px}body[data-view=lesson] #lesson-panel h3{font-size:42px;margin-bottom:25px}body[data-view=lesson] #lesson-body p,body[data-view=lesson] #lesson-body p:first-child{font-size:30px;line-height:1.75;margin-bottom:20px}body[data-view=lesson] #lesson-figure{padding:28px 42px}body[data-view=lesson] .specimen-figure img,body[data-view=lesson] .specimen-tabs:not([hidden])+.specimen-figure img{height:310px}body[data-view=lesson] .specimen-figure figcaption{font-size:22px}body[data-view=lesson] .specimen-figure figcaption small{font-size:16px}body[data-view=lesson] .hanging-diagram svg{height:350px}body[data-view=lesson] .diamond-figure img{max-height:340px}}
@media(max-width:800px){body[data-view=lesson] #lesson-panel{grid-template-columns:1fr;overflow:auto}body[data-view=lesson] #lesson-pages{position:relative;grid-column:1}body[data-view=lesson] #lesson-panel .lesson-copy{padding:24px}body[data-view=lesson] #lesson-panel h3{font-size:28px}body[data-view=lesson] #lesson-figure{padding:20px}}

body[data-view=lesson] .specimen-figure[data-format=hanging]{width:max-content;max-width:100%;margin:auto;border-inline:0;border-block:6px solid #66513d;padding:10px 20px;background:#e8dec4;box-shadow:4px 12px 18px #201c1859}
body[data-view=lesson] .specimen-figure[data-format=hanging] img{height:200px;width:100%;max-width:235px}
body[data-view=lesson] .specimen-figure[data-format=hanging] figcaption{max-width:290px}
@media(min-width:1600px){body[data-view=lesson] .specimen-figure[data-format=hanging] img{height:340px;max-width:310px}}
body[data-view=lesson] #lesson-panel[data-presentation=artwork] #lesson-figure{padding-block:10px}
body[data-view=lesson] #lesson-panel .artwork-window{height:145px}
body[data-view=lesson] .artwork-study{gap:7px}
@media(min-width:1600px){body[data-view=lesson] #lesson-panel .artwork-window{height:260px}}

/* V19: separate object actions from camera controls; reserve real video. */
.has-model .ribbon,.has-model .wrapper,.has-model .open-control{bottom:32px}
.result-video-placeholder{width:100%;aspect-ratio:16/9;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;border:1px solid #b8aa86;border-radius:18px;background:linear-gradient(135deg,#eee7d6f2,#d8d7c2ed);box-shadow:0 12px 30px #30291e24,inset 0 0 0 7px #f9f4e77a;color:#495d48;text-align:center}
.result-video-placeholder strong{font:26px/1.5 'Songti SC',serif}.result-video-placeholder>span:last-child{font-size:17px;color:#737667}.result-video-symbol{font-size:40px;line-height:1}
@media(min-width:1600px){.has-model .ribbon,.has-model .wrapper,.has-model .open-control{bottom:42px}.result-video-placeholder strong{font-size:34px}}
