/* V21R6 - scoped improvements only for 7th and 9th lessons. */
.sim-shell[data-lesson="7"] #lesson7-lights-toggle:not([hidden]),
.sim-shell[data-lesson="9"] #lesson9-life-open:not([hidden]){
 display:inline-flex;align-items:center;justify-content:center;min-height:42px;
 padding:7px 12px;border-radius:7px;border:1px solid #98b4a7;background:#eff6f1;
 color:#17594e;font-size:12px;font-weight:800;line-height:1.35;cursor:pointer;
}
.sim-shell[data-lesson="7"] #lesson7-lights-toggle[aria-pressed="true"]{background:#155e63;color:white;border-color:#155e63}
.sim-shell[data-lesson="7"] .switch-chip:disabled{opacity:.57;cursor:not-allowed;filter:grayscale(.18)}
.sim-shell[data-lesson="7"] .light-hotspot[aria-disabled="true"]{pointer-events:none!important}
.sim-shell[data-lesson="7"] .blind-drag-grip .blind-grip-body{stroke-width:2.25}
.sim-shell[data-lesson="7"] .blind-drag-grip:focus-visible .blind-grip-body{stroke:#aa6f38;stroke-width:3.3}
.lesson9-life-dialog{width:min(520px,calc(100vw - 28px));max-height:86dvh;overflow-y:auto;border:1px solid #c9d9d0;border-radius:15px;padding:22px 24px;background:#fffefa;color:#193b38;box-shadow:0 18px 65px #163d453d}
.lesson9-life-dialog::backdrop{background:rgba(13,31,32,.48)}
.lesson9-life-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px;color:#43796a;font-size:12px;font-weight:800}
.lesson9-life-head button{border:0;border-radius:7px;background:#eaf2ed;color:#24534a;padding:10px 12px;font-weight:800;cursor:pointer}
.lesson9-life-dialog h2{font-size:clamp(18px,2.2vw,25px);line-height:1.4;letter-spacing:-.04em;margin:0 0 12px}
.lesson9-life-principle{margin:0 0 18px;padding:12px 14px;border-left:3px solid #31856e;background:#f0f7ef;border-radius:5px;line-height:1.55;font-size:14px}
.lesson9-life-dialog ol{padding-left:22px;display:grid;gap:13px;margin:10px 0 18px}
.lesson9-life-dialog li{line-height:1.5;padding-left:4px}
.lesson9-life-dialog li strong{display:block;font-size:15px;margin-bottom:3px}
.lesson9-life-dialog li span{display:block;font-size:13px;color:#49655b}
.lesson9-life-foot{border-top:1px solid #d7e2da;padding-top:12px;margin:0;font-size:12px;color:#526b60;line-height:1.6}
@media(max-width:700px){.lesson9-life-dialog{padding:15px 16px}.sim-shell[data-lesson="7"] #lesson7-lights-toggle:not([hidden]),.sim-shell[data-lesson="9"] #lesson9-life-open:not([hidden]){min-height:38px;font-size:11px;padding:6px 9px}}

.sim-shell[data-lesson="9"] .lesson9-empty:not([hidden]){position:absolute;z-index:6;left:50%;top:52%;transform:translate(-50%,-50%);width:min(530px,calc(100% - 30px));border:1px solid #c1d7ce;border-radius:13px;background:#fffefaed;box-shadow:0 16px 40px #24473b25;padding:20px 24px;color:#20473f;text-align:center}
.sim-shell[data-lesson="9"] .lesson9-empty strong{display:block;font-size:clamp(15px,1.65vw,22px);line-height:1.4;margin-bottom:12px}
.sim-shell[data-lesson="9"] .lesson9-empty p{font-size:clamp(12px,1.15vw,15px);margin:7px 0;line-height:1.5}
.sim-shell[data-lesson="9"].lesson9-no-plan .analysis-bar .readout,
.sim-shell[data-lesson="9"].lesson9-no-plan .analysis-bar #zone-result-panel{visibility:hidden}

.sim-shell[data-lesson="9"].lesson9-no-plan .lesson-criteria{visibility:hidden}
.sim-shell[data-lesson="9"] #compare-sunny[hidden]{display:none!important}
