body{grid-template-rows:64px auto minmax(0,1fr) auto}.demo-notice{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 18px;background:#d6f542;color:#172019;font:600 11px/1.4 system-ui}.demo-notice button{font:inherit;min-height:30px;padding:4px 10px;background:#172019;color:#e5f7ac;border-color:#172019}.demo-locked{background:#f4f4ec;border-style:dashed}.demo-locked .theme-number{color:#707965}.demo-more{width:100%;display:grid;gap:8px;text-align:left;margin-top:12px;padding:20px;background:#edf1dc}.demo-more span{font-weight:400;font-size:13px;line-height:1.6}.demo-store-actions{display:grid;gap:12px}.demo-store-actions a{display:block;padding:14px;border-radius:10px;background:#d6f542;color:#162016;font-weight:700;text-decoration:none}.demo-store-actions span{color:#69725d;font-size:13px}#demo-full-dialog{padding:26px;max-width:470px}#demo-full-dialog h2{font:30px/1.15 Georgia,serif}#demo-full-dialog p{line-height:1.6}#demo-close{margin-top:20px;width:100%}@media(max-width:600px){body{grid-template-rows:52px auto minmax(0,1fr) auto}.demo-notice{padding:4px 10px;font-size:10px}}@media(max-height:500px){body{grid-template-rows:46px auto minmax(0,1fr) auto}.demo-notice{padding:2px 10px}}

.demo-manual a{display:block;padding:14px;border:1px solid #91a267;border-radius:10px;background:#e9f2d3;color:#344b21;text-decoration:none;font-weight:650;font-size:13px}

/* Audit: reserve a readable lesson pane; use the actual landscape viewport. */
body{grid-template-rows:auto auto minmax(0,1fr) auto}
.app-header{min-height:52px}.demo-notice{font-family:system-ui,sans-serif;font-size:11px}.demo-notice button{min-height:34px;font-size:11px;touch-action:manipulation}
.demo-lesson-label{grid-column:1/-1;font-size:12px;line-height:1.5;font-weight:650;color:#435620}
.demo-help-scope{padding:14px;border-left:3px solid #8ca52e;background:#f0f5df;font-size:14px;line-height:1.65}
.theme-card:focus-visible,.demo-more:focus-visible{outline:3px solid #687c23;outline-offset:3px}
@media(orientation:landscape) and (max-height:420px){.app-header{min-height:36px}.app-footer{min-height:40px}.position-heading{min-height:14px}.reading{padding:10px 14px}.steps button{min-height:32px}.brand strong{font-size:16px}.header-actions button{min-height:30px}.position-panel{justify-content:center}}
@media(orientation:landscape) and (max-height:360px){body{grid-template-rows:auto minmax(0,1fr) auto}.demo-notice{display:none}.workspace{gap:10px;padding:4px 10px}.app-header{padding:2px 10px}.board-frame{padding:3px 12px 13px}.board-toolbar button{min-height:28px}.position-panel{gap:2px}.app-footer{padding:3px 10px;min-height:38px}.app-footer button.primary{min-height:34px;padding:5px 12px}.steps{padding:0 6px}.steps button{font-size:11px}.reading h1{font-size:22px}.scenario-intro{font-size:12px;padding:8px 10px}}

/* Native dialogs must also fit the visible area around a scaled preview. */
dialog{max-height:min(calc(var(--vh) - 30px),var(--demo-dialog-height,100dvh))}
