/* The approved two-question card. Loaded only by pupil and teacher card pages. */
.phone-preview:has(.two-task-card) .phone-heading{justify-content:center;margin:0 0 16px;min-height:92px}
.phone-preview:has(.two-task-card) .card-brand{display:flex;flex-direction:column;align-items:center;gap:5px}
.phone-preview:has(.two-task-card) .card-brand img{display:block;width:76px;height:76px;object-fit:contain}
.phone-preview:has(.two-task-card) .card-brand>span{margin:0;font:700 12px Arial,Helvetica,sans-serif;color:#605e56}
.two-task-card .card-front-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:54px;flex:none}
.two-task-card .card-front-heading .card-eyebrow{padding-top:8px}
.two-task-card .phone-week{width:48px;height:48px;margin:0;flex:none}
.two-task-card .phone-week>span{font-size:10px;letter-spacing:.5px}
.two-task-card .phone-week b{font-size:23px;line-height:24px}
.two-task-card #answer-class,.two-task-card #your-choice{display:none!important}
.student-monitor .phone-preview .two-task-card #demo-form .field textarea{height:80px;min-height:64px}
.student-monitor .phone-preview .two-task-card .card-eyebrow{font-size:12px;letter-spacing:.7px}
.student-monitor .phone-preview .two-task-card .field{font-size:12px;letter-spacing:.4px}
.student-monitor .phone-preview .two-task-card #demo-form{gap:20px}
.student-monitor .phone-preview .two-task-card #demo-form .field{margin:0}
.student-monitor .phone-preview .two-task-card .word{margin:8px 0 25px}
@media(min-width:761px){
 html.desktop-flow .student-page.has-word-card .pupil-card .phone-heading{min-height:104px}
 html.desktop-flow .student-page.has-word-card .pupil-card .two-task-card #demo-form .field{margin:0 0 20px}
 html.desktop-flow .student-page.has-word-card .pupil-card .two-task-card #demo-form textarea{height:112px;min-height:112px}
 html.desktop-flow .student-page.has-word-card .pupil-card .two-task-card .card-front-heading{min-height:58px}
}
/* Keep logo, both tasks and submit inside the existing mobile card viewport. */
@media(max-width:760px){
 body.student-page.has-word-card .pupil-card .phone-preview:has(.two-task-card){grid-template-rows:86px minmax(0,1fr) 28px!important;gap:8px}
 body.student-page.has-word-card .pupil-card .phone-heading{display:flex!important;grid-column:1 / -1;grid-row:1;min-height:0;margin:0;align-self:center}
 body.student-page.has-word-card .pupil-card .card-brand img{width:60px;height:60px}
 body.student-page.has-word-card .pupil-card .card-brand>span{font-size:11px}
 body.student-page.has-word-card .pupil-card .two-task-card{grid-column:1 / -1;grid-row:2}
 body.student-page.has-word-card .pupil-card .two-task-card .card-front-heading{min-height:44px}
 body.student-page.has-word-card .pupil-card .two-task-card .phone-week{width:40px;height:40px}
 body.student-page.has-word-card .pupil-card .two-task-card .phone-week>span{font-size:8px}
 body.student-page.has-word-card .pupil-card .two-task-card .phone-week b{font-size:19px;line-height:20px}
 body.student-page.has-word-card .pupil-card .two-task-card .card-eyebrow{font-size:11px}
 body.student-page.has-word-card .pupil-card .two-task-card #demo-form{gap:12px;justify-content:space-between}
 body.student-page.has-word-card .pupil-card .two-task-card #demo-form .field{flex:1;min-height:0;display:flex;flex-direction:column;gap:7px}
 body.student-page.has-word-card .pupil-card .two-task-card #demo-form .field textarea{flex:1;min-height:44px;height:clamp(44px,10cqh,110px);margin:0;font-size:16px}
 body.student-page.has-word-card .pupil-card .two-task-card #demo-form .flip-button{margin:0;flex:none}
 body.student-page.bank-card-focus .pupil-card .phone-preview:has(.two-task-card):has(.bank-card-tools){grid-template-rows:44px 86px minmax(0,1fr) 28px!important}
 body.student-page.bank-card-focus .pupil-card .phone-preview:has(.bank-card-tools) .phone-heading{grid-row:2}
 body.student-page.bank-card-focus .pupil-card .phone-preview:has(.bank-card-tools) .two-task-card{grid-row:3}
 body.student-page.bank-card-focus .pupil-card .phone-preview:has(.bank-card-tools) .bank-return{grid-row:4}
 body.student-page.has-word-card.pupil-keyboard .pupil-card .phone-preview:has(.two-task-card){grid-template-rows:minmax(0,1fr)!important}
 body.student-page.has-word-card.pupil-keyboard .pupil-card .phone-heading,body.student-page.has-word-card.pupil-keyboard .two-task-card .card-front-heading{display:none!important}
 body.student-page.has-word-card.pupil-keyboard .pupil-card .two-task-card{grid-row:1!important}
 body.student-page.has-word-card.pupil-keyboard .pupil-card .two-task-card #demo-form .field:not(.is-editing){display:flex}
 @media(max-height:650px){body.student-page.has-word-card .pupil-card .phone-preview:has(.two-task-card){grid-template-rows:65px minmax(0,1fr) 24px!important;gap:6px}body.student-page.has-word-card .pupil-card .card-brand img{width:44px;height:44px}body.student-page.has-word-card .pupil-card .card-brand>span{font-size:10px}}
}
@media(min-width:761px){html.desktop-flow .student-page.has-word-card .pupil-main>.pupil-card:has(.two-task-card){width:100%;max-width:500px;margin-inline:auto}}

/* Let form controls keep their minimum size when the viewport/keyboard is short. */
@media(max-width:760px){
 body.student-page.has-word-card .pupil-card .two-task-card #demo-form .field{flex:1 0 auto;min-height:82px}
 body.student-page.has-word-card .pupil-card .two-task-card #demo-form .field textarea{flex:1 0 auto;min-height:56px}
 body.student-page.has-word-card .pupil-card .two-task-card #demo-form>.flip-button{flex-shrink:0}
}

/* The live classroom card uses the space for the card itself. */
body.student-page.pupil-activity.has-word-card .pupil-card .phone-heading,body.student-page.pupil-activity #keep-bank{display:none!important}
@media (max-width:760px){
 body.student-page.pupil-activity.has-word-card .pupil-card .phone-preview:has(.two-task-card){grid-template-rows:minmax(0,1fr) 28px!important}
 body.student-page.pupil-activity.has-word-card .pupil-card .two-task-card,body.student-page.pupil-activity.has-word-card .pupil-card .waiting-card{grid-row:1;grid-column:1 / -1}
 body.student-page.pupil-activity.has-word-card .pupil-card .phone-footer{grid-row:2;grid-column:1 / -1}
 body.student-page.pupil-activity.has-word-card.pupil-keyboard .pupil-card .phone-preview:has(.two-task-card){grid-template-rows:minmax(0,1fr)!important}
}

body.student-page.pupil-activity .common-brand,body.student-page.pupil-activity>.pupil-header>a:first-child{display:none!important}
body.student-page.pupil-activity .common-header{min-height:0;height:auto;padding-block:10px}

@media (min-width:761px){body.student-page.pupil-activity .pupil-main>.pupil-round-status,body.student-page.pupil-activity .pupil-main>.pupil-demo-details{margin-bottom:18px}}
