/* Staging presentation layer. Existing classroom models, IDs and handlers remain intact. */
body.tp-refined{--tp-blue:#a4c6ca;--tp-pink:#cfadbc}
body.tp-refined>header,.tp-refined .app{max-width:none;width:100%}
body.tp-refined>header{padding:12px 24px 8px;gap:10px 20px}
.tp-refined main{padding-inline:24px}
.tp-refined .activitybar{margin-block:4px 12px}
.tp-refined .recording-toolbar{margin-block:7px 12px;padding-bottom:10px;gap:12px}
body.tp-refined .checkin{padding:12px 18px;gap:18px;margin-bottom:16px;border:1px solid #68736b;border-radius:10px;background:#242b26!important;grid-template-columns:minmax(250px,1fr) auto}
body.tp-refined .checkin strong{font-size:22px}
body.tp-refined .checkin .names button[data-id]{font-size:24px}
.tp-refined .room{border-radius:8px;border:1px solid #bac4bd;box-shadow:inset 0 0 0 5px #171d19,inset 0 0 0 6px #68736b;min-height:480px}
.tp-refined .desk-art path{stroke-width:1.85;stroke-linejoin:round;stroke-linecap:round}
.tp-refined .desk-art .staging-desk-edge{stroke-width:.75;opacity:.42;fill:none}
.tp-refined .chair{border-radius:0 0 6px 6px}
.tp-refined .fixture svg{stroke-width:1.6}
body.tp-refined .tp-chalk-button{border-radius:8px!important;min-height:44px;padding:9px 14px!important}
body.tp-refined header #headerActions button{min-height:44px;padding-inline:11px}
body.tp-refined #popover{width:min(560px,calc(100vw - 28px));border-radius:12px;border:1px solid #68736b;background:#242b26;padding:20px;max-height:calc(100dvh - 32px)}
body.tp-refined #ratings.unified-ratings button{border-radius:9px!important;min-height:80px;gap:7px}
body.tp-refined #ratings.unified-ratings button>svg{width:30px;height:30px}
body.tp-refined #observationActions .family-grid{gap:9px}
body.tp-refined #popover .action-shortcut{border-radius:9px!important;min-height:78px;padding:10px 8px!important}
body.tp-refined #popover .action-shortcut svg{width:32px;height:32px;flex:none}
body.tp-refined #popover .comment-family h3{font-size:13px!important;font-weight:600;margin-block:18px 9px}
.staging-badge{display:inline-flex;align-items:center;gap:8px;font:500 11px/1.4 'Segoe UI',Arial,sans-serif;color:#bac4bd;white-space:nowrap}
.staging-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:#cfadbc}
@media(max-width:700px){body.tp-refined>header{padding:10px 12px}.tp-refined main{padding-inline:12px}body.tp-refined .checkin{grid-template-columns:1fr;padding:12px;gap:12px}.tp-refined .room{min-height:480px}body.tp-refined #popover{padding:16px}body.tp-refined #headerActions{gap:4px}.staging-badge{font-size:10px}}
@media(prefers-reduced-motion:reduce){body.tp-refined *{scroll-behavior:auto!important}}
.staging-control-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:5px 0 14px}
body.tp-refined .staging-control-row .activitybar{position:static;max-width:none;margin:0;padding:0;flex:none}
body.tp-refined .staging-control-row .recording-toolbar{margin:0;padding:0;border:0;flex:1;justify-content:flex-end}
body.tp-refined .staging-control-row .recording-toolbar .whole-class-action{margin-right:auto}
.staging-utilities{position:relative;margin-left:auto;font-size:12px}
.staging-utilities summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 12px;border:1px solid #68736b;border-radius:8px}
.staging-utilities[open] .staging-utilities-content{position:absolute;right:0;top:48px;width:min(380px,calc(100vw - 28px));padding:20px;background:#242b26;border:1px solid #68736b;border-radius:10px;z-index:30}
.staging-utilities .saving-help,.staging-utilities .classroom-status{display:flex;gap:12px;flex-wrap:wrap;margin-block:6px}
body.tp-refined .checkin .daily-focus-person{flex-direction:row;align-items:center;gap:10px}
body.tp-refined .checkin .names{gap:24px}
body.tp-refined .checkin{padding:10px 16px;min-height:70px}
@media(min-width:1000px){body.tp-refined .room{height:clamp(480px,calc(100dvh - 300px),850px)}.tp-refined .room-footer{gap:8px;padding-top:9px}}
@media(max-width:1100px){.staging-control-row{flex-wrap:wrap;gap:10px}.staging-control-row .activitybar{width:100%}.staging-control-row .recording-toolbar{width:100%}body.tp-refined .checkin .names{gap:12px}}
@media(max-width:700px){.staging-utilities{margin-left:0}body.tp-refined .checkin .daily-focus-person{flex-direction:column}.staging-control-row{margin-block:8px 12px}.staging-control-row .whole-class-action{flex-wrap:wrap}body.tp-refined .checkin .names{flex-wrap:wrap}}
@media(min-width:1101px){body.tp-refined .staging-control-row .activitybar{display:flex!important;flex-direction:row;flex-wrap:nowrap;width:auto!important;gap:14px}.staging-control-row .observation-date-bar{width:auto!important;flex:0 0 auto!important;grid-column:auto}.staging-control-row .activitybar>label{flex:none;width:auto}}
/* Alignment pass: match icon tracks to their artwork and align wrapped labels. */
body.tp-refined #popover .action-shortcut,
body.tp-refined #popover .next-step-option,
body.tp-refined #classObservation.standard-batch-evaluation .batch-prompt[data-prompt-family]{
 display:grid;grid-template-rows:32px minmax(0,1fr);align-items:start;justify-items:center;
 gap:8px;height:auto;min-height:100px;padding:10px 8px!important;box-sizing:border-box;
}
body.tp-refined #popover .action-shortcut>svg,
body.tp-refined #popover .next-step-option>svg,
body.tp-refined #classObservation.standard-batch-evaluation .batch-prompt[data-prompt-family]>svg{width:32px;height:32px;align-self:center}
body.tp-refined #popover .action-shortcut>span:not(.prompt-check),
body.tp-refined #popover .next-step-option>span:not(.prompt-check),
body.tp-refined #classObservation .batch-prompt[data-prompt-family]>span:not(.prompt-check){align-self:start;line-height:1.35}
body.tp-refined #popover .family-grid{align-items:stretch;column-gap:9px;row-gap:8px}
@media(max-width:1100px){
 body.tp-refined .staging-control-row .activitybar{display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;width:100%!important}
 body.tp-refined .staging-control-row .observation-date-bar{width:auto!important;flex:0 0 auto!important}
 body.tp-refined .staging-control-row .activitybar>label{margin:0;flex:0 1 auto}
}
/* Daily focus: keep absence secondary to the student's name. */
body.tp-refined .checkin .names .daily-away-button{
 font-size:11px!important;line-height:1.2;min-height:28px;min-width:0;
 padding:4px 8px!important;border-radius:5px!important;
}
@media(pointer:coarse){body.tp-refined .checkin .names .daily-away-button{min-height:36px}}
/* Guided class setup: original controls, one decision group at a time. */
body.tp-refined #classSetup{width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:24px;border:1px solid #68736b;border-radius:12px;background:#242b26}
#classSetup .setup-page[hidden],#classSetup [hidden]{display:none!important}
.setup-progress{display:flex;gap:8px;padding:0;margin:16px 0 26px;list-style:none;counter-reset:setup}
.setup-progress li{flex:1;padding:8px 0;border-bottom:2px solid #68736b;font-size:12px;color:#bac4bd}
.setup-progress li[aria-current]{color:#a4c6ca;border-color:#a4c6ca;font-weight:700}
#classSetup .setup-page{margin-bottom:20px}#classSetup .setup-fields{gap:16px}
#classSetup label{line-height:1.5}#classSetup input,#classSetup select,#classSetup textarea{min-height:44px;border-radius:6px;padding:9px 11px;box-sizing:border-box;max-width:100%}
#classSetup textarea{width:100%;min-height:150px}#classSetup .dialog-actions{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid #68736b;padding-top:16px}
#classSetup .dialog-actions button{min-height:44px;padding:10px 16px;border-radius:6px}#setupNext,#saveClassSetup{background:#a4c6ca!important;color:#171d19!important;font-weight:650}
#cancelClassSetup{margin-left:auto}#classSetupStatus:not(:empty){color:#f0c66b;padding:10px 0}
#setupReview{border-bottom:1px solid #68736b;margin-bottom:20px;padding-bottom:12px}#setupReview h3{font-family:'Patrick Hand',sans-serif;font-size:28px;margin:0 0 8px}
body.tp-refined #stagingNewClass{min-height:40px;padding:8px 12px;font-size:12px;border-radius:6px}
@media(max-width:600px){body.tp-refined #classSetup{padding:18px}.setup-progress{gap:5px}.setup-progress li{font-size:11px}#classSetup .setup-fields{grid-template-columns:1fr!important}.setup-page p{line-height:1.5}}
.guided-setup #setupArrangeSeats{display:none!important}
#setupReview .review-students{color:#bac4bd;font-size:13px;line-height:1.6}
body.tp-refined dialog::backdrop{background:rgba(9,15,11,.72)}
body.tp-refined button:focus-visible,body.tp-refined a:focus-visible{outline:2px solid #a4c6ca;outline-offset:3px}
body.tp-refined #popover,body.tp-refined dialog{scrollbar-color:#68736b #242b26;scrollbar-width:thin}
body.tp-refined #popover .action-shortcut:hover,body.tp-refined #popover .next-step-option:hover{border-color:#68736b!important}
@media(max-width:440px){body.tp-refined #popover .family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
