.grade3-data-plan-astra-board{padding:0!important;overflow:hidden!important;min-height:0!important;background:#edf4ef!important;container-type:inline-size}
.dp-scene{height:100%;width:100%;box-sizing:border-box;padding:clamp(12px,2.5cqw,28px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(10px,2cqw,20px);overflow:auto;color:#214d4b;background:radial-gradient(ellipse at 50% 10%,#fffdf3,#e5f2ed 80%)}
.dp-scene h2{font-size:clamp(17px,2.5cqw,27px);line-height:1.3;text-align:center;margin:0;font-weight:850;max-width:100%}.dp-scene p{margin:0;font-size:clamp(14px,1.9cqw,19px);line-height:1.4;text-align:center;max-width:100%}.dp-target{border-radius:14px}.dp-target.is-speaking{background-color:#fff0bd;box-shadow:0 2px 0 #d6b456;filter:brightness(1.05)}.dp-scene img{object-fit:contain;max-width:100%;height:auto}.dp-icon{width:40px;height:40px;flex-shrink:0;color:#568f86}
.dp-group{display:flex;gap:clamp(8px,2cqw,20px);align-items:center;justify-content:center}.dp-portrait{width:clamp(50px,10cqw,90px);aspect-ratio:1.35;overflow:hidden;position:relative;border-radius:50% 50% 35% 35%;background:#dbe9df;box-shadow:0 4px 0 #b7d2c6}.dp-portrait img{position:absolute;width:400%;max-width:none!important;height:auto;left:calc(var(--person)* -100%);top:0;pointer-events:none}.dp-portrait.full{width:clamp(60px,15cqw,118px);aspect-ratio:.42;border-radius:20px 20px 8px 8px}
.dp-plan{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;width:100%;max-width:790px;align-items:stretch}.dp-plan-part{grid-column:span 2;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:6px 10px;padding:clamp(10px,1.7cqw,18px);box-sizing:border-box;background:#fffdf4;border:2px solid #bfd3c6;box-shadow:0 6px 0 #c6d9cc;min-height:95px;min-width:0}.dp-plan-part:nth-last-child(-n+2){grid-column:span 3}.dp-part-icon{grid-row:span 2}.dp-plan-part span{font-size:clamp(13px,1.7cqw,18px);color:#557e72;line-height:1.2}.dp-plan-part b{font-size:clamp(15px,2cqw,21px);line-height:1.28;overflow-wrap:normal;word-break:normal}.dp-plan-part.empty b{color:#8fa89b}.dp-plan-part.current{border-color:#d7a94d;background:#fff8df}.dp-plan-part.is-speaking{border-color:#d9b74c;background:#fff2c5}.dp-part-icon .dp-icon{width:clamp(28px,4cqw,42px);height:clamp(28px,4cqw,42px)}
.dp-survey{width:min(100%,760px);display:flex;align-items:center;flex-direction:column;gap:16px}.dp-same-question{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;background:#fffdf3;border:2px solid #b9cfbf;border-radius:22px;max-width:90%;font-weight:800;font-size:clamp(15px,2cqw,21px);box-shadow:0 7px 0 #cadaad;position:relative;z-index:4}.dp-same-question .dp-icon{width:29px;height:29px}.dp-participants{width:100%;display:flex;gap:clamp(10px,4cqw,42px);justify-content:center;align-items:flex-end}.dp-participant{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;flex:1;max-width:200px;min-width:0}.dp-answer{background:#fffef7;border:2px solid #bad3c6;padding:8px 14px;border-radius:18px;min-height:38px;display:flex;align-items:center;justify-content:center;gap:10px;position:relative;font-size:clamp(17px,2.6cqw,25px);box-sizing:border-box;width:100%;z-index:2}.dp-answer:after{content:'';position:absolute;bottom:-8px;left:45%;width:12px;height:12px;background:#fffef7;transform:rotate(45deg);border-right:2px solid #bad3c6;border-bottom:2px solid #bad3c6}.dp-record-slot{width:100%;height:45px;background:#bcd6c6;border:2px solid #7ba58f;border-top-width:5px;border-radius:7px;position:relative;display:flex;align-items:center;justify-content:center}.dp-slip{width:85%;padding:8px 4px;box-sizing:border-box;background:#fff9de;border:1px solid #c5b675;border-radius:5px;box-shadow:0 3px 1px #0002;font-size:clamp(15px,2.1cqw,21px);font-weight:800;text-align:center;z-index:3}.dp-blank-line{display:block;width:65%;height:3px;background:#bfd0bf;margin:8px auto}.dp-record-key{display:flex;gap:10px;align-items:center;justify-content:center;font-size:clamp(14px,1.9cqw,19px)}.dp-record-key .dp-icon{width:25px;height:25px}.dp-survey.fruit{max-width:480px}.dp-survey.fruit .dp-participant{max-width:260px}.dp-survey.fruit .dp-answer{min-height:100px}.dp-survey .dp-berry{height:90px;width:90px;object-fit:contain}.dp-feature-fruit{height:clamp(70px,15cqw,140px)!important;width:auto!important}.dp-survey.neutral .dp-answer{min-height:50px}.dp-survey.neutral .dp-record-key{display:none}
.dp-count-scene{width:min(100%,750px);display:grid;grid-template-columns:35% 65%;align-items:center;gap:0;min-height:180px}.dp-bag-area{position:relative;display:flex;align-items:center;justify-content:center;height:230px}.dp-bag-area .dp-portrait{position:absolute;top:0;left:0;width:65px;z-index:0}.dp-bag{width:150px;max-height:210px}.dp-count-work{display:flex;align-items:center;flex-direction:column;gap:18px;padding:8px}.dp-book-row{display:flex;justify-content:center;gap:16px;width:100%;align-items:flex-end;border-bottom:9px solid #bd946c;padding-bottom:0}.dp-book-slot{width:28%;max-width:100px;position:relative;display:flex;flex-direction:column;align-items:center;gap:6px}.dp-book-slot .dp-book{width:100%;height:auto;max-height:122px;object-fit:contain;z-index:2}.dp-book-slot b{position:absolute;top:-30px;font-size:22px;color:#346e62;background:#fff9df;border-radius:50%;width:27px;height:27px;text-align:center}.dp-number-slip{display:flex;align-items:center;gap:20px;padding:10px 24px;background:#fff9dc;border:2px solid #b8cda5;border-radius:12px;box-shadow:0 5px 0 #c8d5b4}.dp-number-slip strong{font-size:30px}.dp-count-plan{width:100%}.dp-count-plan .dp-plan-part{min-height:70px;padding:8px 10px}.dp-count-plan .dp-icon{width:25px;height:25px}.dp-count-plan .dp-plan-part b{font-size:16px}.dp-count-plan .dp-plan-part span{font-size:13px}.dp-count-plan .dp-plan{gap:8px}.dp-count-scene.neutral .dp-number-slip strong{font-size:28px}
.dp-privacy{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;max-width:650px}.dp-privacy>section{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;min-height:210px;padding:20px;border:2px solid #b8cdbf;border-radius:24px;background:#fffdf7;font-size:clamp(18px,3cqw,28px)}.dp-private-book{width:100px;max-height:150px}.dp-house{width:140px;height:135px}.dp-safety{grid-column:1/-1;text-align:center;font-size:24px;color:#326d56}.dp-private.removed{opacity:0}.dp-context{padding:10px;border-bottom:2px solid #9ebdaa}.dp-build-group .dp-portrait{width:clamp(40px,7cqw,65px)}
.dp-support{width:100%;display:flex;align-items:center;flex-direction:column;gap:18px}.dp-picnic{width:100%;display:flex;align-items:center;justify-content:center;gap:20px}.dp-support-bag{height:100px!important;width:auto}.dp-support .dp-plan-part{min-height:75px}.dp-support .dp-survey{gap:10px}.dp-support .dp-survey.fruit .dp-answer{min-height:70px}.dp-support .dp-berry{height:60px;width:60px}.dp-support .dp-count-scene{min-height:150px}.dp-support .dp-bag-area{height:180px}.dp-support .dp-bag{max-height:170px}
.dp-return,.dp-next,.dp-image-retry{min-height:48px;min-width:140px;background:#277d69;border:2px solid #17604e;border-radius:14px;color:#fff;padding:12px 22px;font-size:17px;font-weight:800;cursor:pointer}.dp-next:disabled{opacity:.5;cursor:wait}.dp-return:focus-visible,.dp-next:focus-visible,.dp-image-retry:focus-visible{outline:3px solid #d39925;outline-offset:3px}.dp-image-retry{position:relative;z-index:9;font-size:14px;min-width:100px;padding:8px}
.dp-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.dp-choices:has(>:last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}.dp-choices .theme4-final-choice{appearance:none;background:#fffef9;color:#264f48;border:2px solid #a8c9ba;border-radius:16px;box-shadow:0 4px 0 #cadcd0;font-weight:800;cursor:pointer;text-align:center;min-height:52px!important;height:auto!important;max-width:none!important;font-size:clamp(14px,1.5vw,18px)!important;line-height:1.35!important;padding:12px!important;white-space:normal!important;overflow-wrap:normal;word-break:normal}.dp-choices .theme4-final-choice:hover{background:#eef8f1;border-color:#5c9c82}.dp-choices .theme4-final-choice:focus-visible{outline:3px solid #bd861b;outline-offset:3px}.dp-choices .theme4-final-choice.wrong-cell{background:#fff2dc;border-color:#c99648}.dp-choices .theme4-final-choice.wrong-cell:before{content:'↻ ';color:#956a2e}
.dp-summary{padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;box-sizing:border-box;text-align:center;min-height:0;max-height:100%;color:#244d47}.dp-summary h2,.dp-summary p{margin:0}.dp-summary nav{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:6px;width:min(100%,440px)}.dp-summary nav button{min-width:44px;width:100%;min-height:44px;height:44px;padding:0;border:2px solid #8cbca7;border-radius:10px;background:#fff}.dp-summary-path{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center}
.dp-pencil-research{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,3cqw,28px);width:min(100%,700px)}.dp-pencil-research>section{display:flex;flex-direction:column;align-items:center;gap:14px}.dp-pencilcase{height:140px!important;width:auto}.dp-pencil-samples{width:90%;display:flex;flex-direction:column;gap:8px}.dp-pencil{width:100%;height:auto}.dp-safe-note{font-size:clamp(15px,2cqw,20px);font-weight:800;padding:8px 15px;background:#e3f2df;color:#3e7056}
@media(max-width:600px){.dp-scene{gap:10px;padding:12px}.dp-plan{gap:8px}.dp-plan-part{padding:8px;gap:4px;grid-template-columns:1fr;min-height:94px;text-align:center}.dp-part-icon{grid-row:auto;display:none}.dp-plan-part span{font-size:13px}.dp-plan-part b{font-size:14px}.dp-survey{gap:12px}.dp-participants{gap:10px}.dp-participant{gap:9px}.dp-portrait.full{width:clamp(58px,19cqw,80px)}.dp-same-question{padding:8px 10px;font-size:14px}.dp-answer{font-size:16px;padding:7px}.dp-slip{font-size:14px}.dp-record-slot{height:39px}.dp-record-key{font-size:14px}.dp-count-scene{grid-template-columns:32% 68%;min-height:140px}.dp-bag-area{height:175px}.dp-bag-area .dp-portrait{width:42px;top:-8px}.dp-bag{max-height:150px}.dp-count-work{padding:5px;gap:14px}.dp-book-row{gap:8px;border-bottom-width:6px}.dp-book-slot .dp-book{max-height:88px}.dp-book-slot b{font-size:17px;width:23px;height:23px;top:-24px}.dp-number-slip{gap:8px;padding:7px 12px;font-size:14px}.dp-number-slip strong{font-size:24px}.dp-count-plan .dp-plan-part{min-height:75px;padding:7px}.dp-count-plan .dp-plan-part b{font-size:14px}.dp-count-plan .dp-plan-part span{font-size:12px}.dp-privacy{gap:12px}.dp-privacy>section{min-height:170px;padding:12px;font-size:17px}.dp-house{width:90px;height:90px}.dp-private-book{width:74px;max-height:105px}.dp-safety{font-size:18px}.dp-choices{gap:6px}.grade3-data-plan-astra-shell .dp-choices .theme4-final-choice{font-size:14px!important;padding:8px!important}.dp-support{gap:12px}.dp-support .dp-picnic{gap:12px}.dp-support .dp-group{gap:5px}.dp-support .dp-portrait{width:40px}.dp-support .dp-survey .dp-portrait{width:60px}.dp-summary{padding:12px;gap:10px}.dp-summary h2{font-size:20px;line-height:1.2}.dp-summary p{font-size:14px;line-height:1.35}.dp-summary-path{font-size:14px;gap:6px;line-height:1.3}.dp-summary nav{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:6px}}
@media(prefers-reduced-motion:reduce){.dp-scene *{transition:none!important;animation:none!important}}

@media(max-width:600px){.dp-scene[data-dp-kind="category"]{gap:8px}.dp-scene[data-dp-kind="category"] .dp-survey{gap:9px}.dp-portrait.full{width:58px}.dp-choices .theme4-final-choice{overflow-wrap:anywhere}.grade3-data-plan-astra-shell:has([data-dp-phase="13"]) .dp-choices{grid-template-columns:1fr}.grade3-data-plan-astra-shell:has([data-dp-phase="13"]:not(.support)) .teaching-board{min-height:230px!important;height:230px!important}.grade3-data-plan-astra-shell:has([data-dp-phase="13"]) .dp-plan-part{min-height:68px}.grade3-data-plan-astra-shell:has([data-dp-phase="13"]) .dp-scene{gap:8px}.grade3-data-plan-astra-shell:has([data-dp-phase="13"]) .dp-scene h2{font-size:16px}}

/* The teaching objects keep their own height; plan cards never cover a count. */
.dp-scene[data-dp-kind="category"]{gap:8px;padding:12px}
.dp-scene[data-dp-kind="category"] .dp-survey{gap:8px}
.dp-scene[data-dp-kind="category"] .dp-participant{gap:6px}
.dp-scene[data-dp-kind="category"] .dp-portrait.full{width:64px;clip-path:inset(0 7% round 10px)}
.dp-scene[data-dp-kind="category"] .dp-same-question{padding:8px 12px;font-size:15px}
.dp-scene[data-dp-kind="count"]{gap:8px;padding:12px}
.dp-scene[data-dp-kind="count"]>*{flex-shrink:0}
.dp-scene[data-dp-kind="count"] .dp-count-scene{height:156px;min-height:156px}
.dp-scene[data-dp-kind="count"] .dp-bag-area{height:150px}
.dp-scene[data-dp-kind="count"] .dp-bag{height:140px;width:110px}
.dp-scene[data-dp-kind="count"] .dp-book-slot .dp-book{height:80px;width:auto}
.dp-scene[data-dp-kind="count"] .dp-count-work{gap:8px;padding:4px}
.dp-scene[data-dp-kind="count"] .dp-number-slip{padding:5px 16px}
.dp-scene[data-dp-kind="count"] .dp-number-slip strong{font-size:24px}
.dp-scene[data-dp-kind="count"] .dp-count-plan .dp-plan-part{min-height:66px;padding:6px}
@media(min-width:601px){.grade3-data-plan-astra-shell:has([data-dp-kind="category"], [data-dp-kind="count"]) .teaching-board{height:440px!important;max-height:calc(100dvh - 220px)!important}}
@media(max-width:600px){.dp-scene[data-dp-kind="category"] .dp-portrait.full{width:52px}.dp-scene[data-dp-kind="count"] .dp-count-scene{height:140px;min-height:140px}.dp-scene[data-dp-kind="count"] .dp-bag-area{height:130px}.dp-scene[data-dp-kind="count"] .dp-bag{height:120px;width:95px}.dp-scene[data-dp-kind="count"] .dp-book-slot .dp-book{height:70px}}

/* Override shared legacy section heights with the actual candidate board height. */
.grade3-data-plan-astra-board>.dp-scene,.grade3-data-plan-astra-board>.dp-summary{height:100%!important;max-height:100%!important;min-height:0!important}
.dp-summary{gap:8px;padding:12px}.dp-summary h2{font-size:22px;line-height:1.2}.dp-summary p{font-size:14px;line-height:1.3}.dp-summary .dp-plan{gap:8px}.dp-summary .dp-plan-part{min-height:68px;padding:8px}.dp-summary .dp-plan-part b{font-size:17px}.dp-summary .dp-plan-part span{font-size:13px}.dp-summary .dp-part-icon{display:none}.dp-summary .dp-plan-part{grid-template-columns:1fr;text-align:center}
.grade3-data-plan-astra-shell:has([data-dp-kind="fair"]) .dp-choices{grid-template-columns:1fr}
.grade3-data-plan-astra-shell:has(.dp-scene[data-dp-kind="fair"][data-dp-resolved="false"]:not(.support)) .teaching-board{height:300px!important;min-height:0!important}
.dp-scene[data-dp-kind="fair"] .dp-survey.neutral .dp-record-slot{display:none}
@media(max-width:600px){.grade3-data-plan-astra-shell:has([data-dp-phase="13"]:not(.support)) .teaching-board{height:250px!important;min-height:0!important}.grade3-data-plan-astra-shell:has(.dp-scene[data-dp-kind="fair"][data-dp-resolved="false"]:not(.support)) .teaching-board{height:280px!important}.dp-scene[data-dp-kind="fair"]{gap:8px}.dp-scene[data-dp-kind="fair"] .dp-survey{gap:8px}.dp-summary .dp-plan-part b{font-size:14px}}

.dp-scene[data-dp-kind="fair"][data-dp-resolved="true"]{gap:8px;padding:12px}
.dp-scene[data-dp-kind="fair"][data-dp-resolved="true"] .dp-survey{gap:8px}
.dp-scene[data-dp-kind="fair"][data-dp-resolved="true"] .dp-participant{gap:6px}
.dp-scene[data-dp-kind="fair"][data-dp-resolved="true"] .dp-portrait.full{width:64px;clip-path:inset(0 7% round 10px)}
.dp-scene[data-dp-kind="fair"][data-dp-resolved="true"] .dp-same-question{padding:8px 12px;font-size:15px}
@media(min-width:601px){.grade3-data-plan-astra-shell:has([data-dp-kind="fair"][data-dp-resolved="true"]) .teaching-board{height:440px!important;max-height:calc(100dvh - 220px)!important}}
@media(max-width:600px){.dp-scene[data-dp-kind="fair"][data-dp-resolved="true"] .dp-portrait.full{width:52px}}
.grade3-data-plan-astra-shell #teaching-board.grade3-data-plan-astra-board > .dp-scene:only-child,.grade3-data-plan-astra-shell #teaching-board.grade3-data-plan-astra-board > .dp-summary:only-child{height:100%!important;max-height:100%!important;min-height:0!important}
/* Count labels belong to their own book, never the question above it. */
.dp-book-slot b{top:6px!important;z-index:4}
.dp-support:has(.dp-picnic){gap:10px}
.dp-support:has(.dp-picnic) .dp-plan-part{min-height:64px;padding:8px}
.dp-support:has(.dp-picnic) .dp-support-bag{height:75px!important}
.dp-support:has(.dp-picnic) .dp-return{padding:9px 18px;min-height:46px}
/* A second representation still leaves its return control fully visible. */
.dp-support:has(.dp-survey.fruit){gap:8px}
.dp-support .dp-survey.fruit{gap:6px}
.dp-support .dp-survey.fruit .dp-participant{gap:6px}
.dp-support .dp-survey.fruit .dp-portrait{width:62px}
.dp-support .dp-survey.fruit .dp-answer{min-height:60px}
.dp-support .dp-survey.fruit .dp-berry{height:50px;width:50px}
.dp-support .dp-survey.fruit .dp-record-slot{height:35px}
.dp-support .dp-survey.fruit .dp-slip{padding:5px 4px}
.dp-support .dp-survey.fruit .dp-same-question{padding:6px 10px}
/* Portrait tablet uses a side-by-side shell; these richer scenes need more
   height than the legacy width-derived 3:4 board, without shrinking text. */
@media(min-width:601px) and (max-width:900px) and (min-height:700px){
 .grade3-data-plan-astra-shell:has(.dp-scene.support,.dp-scene[data-dp-kind="record"],.dp-scene[data-dp-kind="build"],.dp-scene[data-dp-kind="independent"]) #teaching-board.grade3-data-plan-astra-board{height:440px!important;min-height:0!important;max-height:none!important}
}
