/* Only the unapproved place-value candidate; nothing leaks to other lessons. */
.pv-astra{container-type:inline-size;overflow:hidden}
.pv-astra>.board-square{width:100%;height:100%;min-height:0;max-width:none;box-sizing:border-box;gap:10px;padding:14px;overflow:hidden;background:linear-gradient(145deg,#f1fbf8,#e1f2ed)}
.pv-astra .g3-place-model{width:100%;flex:1;min-height:0;max-height:70%;gap:8px;align-items:stretch}
.pv-astra .g3-place-column{display:flex;flex-direction:column;min-height:0;overflow:visible;transition:box-shadow .2s;background:#fffdf7;border:2px solid #acd6ce;border-radius:18px}
.pv-astra .g3-place-column header{flex:0 0 auto;padding:8px;font-size:clamp(11px,2.6cqw,16px);border-radius:15px 15px 0 0}
.pv-astra .g3-model-items{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--columns,2),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-content:stretch;gap:5px;padding:8px}
.pv-astra .g3-model-items img{width:100%;height:100%;min-height:0;max-height:82px;object-fit:contain;filter:drop-shadow(0 4px 3px #5e46352b)}
.pv-astra .g3-model-items:has(img:only-child){grid-template-columns:1fr}
.pv-astra .g3-model-items img:only-child{max-height:155px}
.pv-astra .g3-empty-place{width:100%;height:100%;min-width:0;min-height:0;font-size:clamp(32px,9cqw,55px);box-sizing:border-box}
.pv-astra .g3-empty-place small{font-size:clamp(10px,2.3cqw,14px)}
.pv-astra .pv-focused{box-shadow:0 0 0 3px #f2b544,0 6px 20px #d8a64626!important}
.pv-astra .pv-recall .g3-place-model{max-height:78%}
.pv-astra .g3pv-recall-values{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pv-astra .g3pv-recall-values span{font-size:clamp(11px,2.5cqw,15px)}
.pv-astra .g3pv-recall-values b{font-size:clamp(22px,5cqw,32px)}
.pv-astra .pv-equation{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;flex-wrap:wrap;position:relative}
.pv-astra .pv-number{display:flex;gap:4px;align-items:center}
.pv-astra .pv-digit{display:inline-grid;place-items:center;width:clamp(32px,8cqw,52px);height:clamp(40px,10cqw,64px);font-size:clamp(26px,6cqw,42px);font-weight:900;background:#fffdf5;color:#087e78;border-radius:10px;border-bottom:4px solid #d6ba81}
.pv-astra .pv-digit[data-place="1"]{color:#956600}.pv-astra .pv-digit[data-place="2"]{color:#c85636}
.pv-astra .pv-parts{display:flex;gap:5px;align-items:center;justify-content:center}
.pv-astra .pv-term{display:grid;place-items:center;min-width:42px;height:48px;padding:0 6px;font-size:clamp(20px,4.8cqw,30px);font-weight:900;color:#087e78;background:#fff;border-radius:10px;border-bottom:4px solid #77baaa;will-change:transform}
.pv-astra .pv-term[data-place="1"]{color:#956600;border-color:#e9c270}.pv-astra .pv-term[data-place="2"]{color:#c85636;border-color:#e79b85}
.pv-astra .pv-plus,.pv-astra .pv-equals{font-size:clamp(18px,4cqw,26px);color:#627d76}
.pv-astra .pv-decompose{display:flex;flex-direction:column;justify-content:center}
.pv-astra .pv-decompose>.pv-equation{display:grid;grid-template-columns:1fr;justify-items:center;flex:0 0 auto;gap:4px}
.pv-astra .pv-decompose .pv-equals{display:block;line-height:14px;height:14px;font-size:21px}
.pv-astra .pv-decompose .pv-parts{width:100%;display:grid;grid-template-columns:1fr 14px 1fr 14px 1fr}
.pv-astra .pv-decompose .pv-number{margin-bottom:5px}
.pv-astra .pv-decompose .g3-place-model{max-height:none}
.pv-astra .pv-zero-holds{box-shadow:0 0 0 3px #efb44e!important;background:#fff4d9!important}
.pv-astra .pv-lens{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;gap:6px}
.pv-astra .pv-lens-track{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:94%;height:76px;flex:0 0 76px;gap:4px}
.pv-astra .pv-lens-anchor{display:flex;align-items:end;justify-content:center;padding-bottom:3px;border-radius:10px}
.pv-astra .pv-lens-anchor small{font-size:clamp(12px,3cqw,18px);font-weight:800}
.pv-astra .pv-travelling-five{position:absolute;top:6px;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#ec8254;color:white;font-size:34px;box-shadow:0 5px 0 #b85731,0 9px 13px #78573c30;z-index:2}
.pv-astra .pv-rack{width:100%;aspect-ratio:1460/745;max-height:68%;position:relative;min-height:0}
.pv-astra .pv-rack svg{display:block;width:100%;height:100%}
.pv-astra .pv-rack g.pv-rack-group{display:block;filter:drop-shadow(0 3px 2px #62462826)}
.pv-astra .g3-zero-placeholder{min-height:0;width:94%;align-self:center;justify-self:center;border-width:2px;border-radius:13px}
.pv-astra .g3-zero-placeholder small{font-size:clamp(10px,2.2cqw,13px);padding:0 3px 4px}
.pv-astra .g3-zero-placeholder strong{font-size:clamp(30px,7cqw,44px);min-height:0}
.pv-astra .pv-rack-art{width:100%;height:100%;object-fit:fill;display:block}
.pv-astra .pv-rack-groups{position:absolute;inset:20% 10% 17%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8%}
.pv-astra .pv-rack-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:3px;align-items:end;border-radius:7px}
.pv-astra .pv-rack-group img{width:100%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 3px 2px #50321b33)}
.pv-astra .pv-lens-proof{display:flex;align-items:center;justify-content:center;gap:9px;min-height:42px;font-size:clamp(18px,4cqw,25px)}
.pv-astra .pv-lens-proof strong{font-size:clamp(27px,6cqw,40px);color:#087e78}
.pv-astra .g3pv-question h1{font-size:clamp(18px,4.6cqw,28px);line-height:1.18;margin:4px 0}
.pv-astra .pv-result{width:100%;flex:0 0 auto}
.pv-astra .pv-independent .g3pv-large-number{width:80%;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0}
.pv-astra .pv-independent .g3pv-large-number span{width:100%;height:95px;font-size:clamp(42px,12cqw,76px);box-sizing:border-box}
.pv-astra .pv-place-guide{width:80%;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;font-size:clamp(12px,3cqw,17px);font-weight:800;text-align:center}
.pv-astra .pv-reverse{display:flex;flex-direction:column;min-height:0;gap:8px}
.pv-astra .pv-reverse-model{width:100%;min-height:0;flex:1;display:flex}
.pv-astra .pv-reverse-model .g3-place-model{height:100%;max-height:none}
.pv-astra .g3pv-place-slots{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:0 0 auto}
.pv-astra .g3pv-place-slot{min-height:55px;min-width:0;padding:5px;border-radius:10px;box-sizing:border-box}
.pv-astra .g3pv-place-slot b{font-size:clamp(24px,6cqw,36px)}
.pv-astra .g3pv-place-slot small{display:none}
.pv-astra .pv-selected{border:2px solid #ddb970;background:#fff7df;box-shadow:0 3px 0 #d2ba84}
.pv-astra .g3pv-built-number{font-size:clamp(27px,7cqw,43px);padding:5px 20px;line-height:1.1;min-height:38px}
.pv-astra .pv-reverse:has(.g3-support-method) .pv-reverse-model{display:none}
.pv-astra .g3-support-method{min-height:0;max-height:75%;flex:1}
.pv-astra .pv-hero{padding:0;position:relative;display:block}
.pv-astra .g3pv-room-scene{position:absolute;inset:0}
.pv-astra .g3pv-room-scene img{width:100%;height:100%;object-fit:cover}
.pv-astra .g3pv-hero-card,.pv-astra .g3pv-finish-card{position:absolute;left:6%;right:6%;bottom:6%;top:auto;width:auto;max-width:none;background:#fffaf0f5;color:#085257;border:1px solid #e0c79a;border-radius:18px;padding:14px;box-shadow:0 10px 25px #382f2430}
.pv-astra .pv-hero h1{font-size:clamp(20px,5cqw,30px);margin:0 0 8px;text-align:center}
.pv-astra .pv-hero-values{display:flex;justify-content:center;gap:18px}
.pv-astra .pv-hero-values b{font-size:clamp(28px,8cqw,48px);color:#087e78;min-width:55px;background:transparent}
.pv-astra .g3pv-finish-card .pv-equation{display:flex}
.pv-astra .g3pv-finish-card .pv-equation b{padding:0;background:transparent;color:#526d65}
.lesson-shell:has(.pv-astra) #lesson-support-dock button{width:100%;min-height:44px;display:flex;flex-direction:column;justify-content:center;gap:3px;border:1px solid #8cc8bb;border-radius:14px;background:#fffdfa;color:#075967;font:700 14px inherit;padding:7px}
.lesson-shell:has(.pv-astra) #lesson-support-dock button span{font-size:11px;font-weight:400}
@container(max-width:400px){
 .pv-astra>.board-square{padding:8px;gap:6px}
 .pv-astra .g3-place-model{gap:5px}
 .pv-astra .g3-place-column header{padding:5px;font-size:11px}
 .pv-astra .g3-model-items{padding:5px;gap:3px}
 .pv-astra .pv-term{height:35px;min-width:28px;padding:0 4px}
 .pv-astra .pv-digit{height:37px;width:30px;font-size:27px}
 .pv-astra .pv-lens-track{height:65px;flex-basis:65px}
 .pv-astra .pv-travelling-five{height:38px;width:38px;font-size:29px}
 .pv-astra .pv-rack{max-height:62%}
 .pv-astra .g3pv-place-slot{min-height:41px;padding:2px}
 .pv-astra .g3pv-built-number{min-height:29px;padding:3px 16px;font-size:29px}
 .pv-astra .pv-independent .g3pv-large-number span{height:74px}
 .pv-astra .pv-hero .pv-equation{gap:3px}.pv-astra .pv-hero .pv-digit{width:24px;font-size:23px}
}
@media(prefers-reduced-motion:reduce){.pv-astra *{transition:none!important}}
