@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-lite-webfont@1.1.0/style.css');
:root{--paper:#f6f4ed;--ink:#304b47;--muted:#697b74;--green:#286555;--mint:#e7efe5;--line:#dce2d6;--white:#fffef9;--accent:#e9ac79;--font:var(--site-font)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px}button,select,input{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}button{transition:background .15s,border-color .15s,transform .15s}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #bb6837;outline-offset:4px}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.topbar{min-height:76px;padding:15px 32px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#faf9f3}.back{color:var(--muted);text-decoration:none;font-size:14px}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:bold}.brand small{font:10px/1.5 var(--site-font);letter-spacing:2px;padding-left:10px;border-left:1px solid var(--line)}.brand-flower{font-size:32px;color:var(--green)}.top-actions{display:flex;align-items:center;gap:20px}.quiet,.read-button{border:1px solid var(--line);border-radius:10px;background:transparent;padding:8px 12px;font-size:14px}.quiet{background:var(--white)}.toggle{display:flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}.toggle input{accent-color:var(--green);width:16px;height:16px}main{max-width:1500px;padding:30px 36px 18px;margin:auto}.welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font:11px/1.5 var(--site-font);letter-spacing:2px;color:var(--muted)}h1{font-size:clamp(25px,2.5vw,37px);font-weight:600;margin:9px 0 7px;letter-spacing:1px}.title-dot{color:#d99163}.welcome p{margin:0;color:var(--muted);font-size:14px}.welcome p span{margin-left:8px;font:12px var(--site-font)}.daily-note{display:flex;align-items:center;gap:12px;flex-shrink:0}.daily-note>span{font-size:46px;color:#d49b5e}.daily-note time{display:block;font-size:16px}.daily-note small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:26px}.tab{border:0;background:transparent;padding:14px 22px 17px;border-bottom:3px solid transparent;margin-bottom:-1px;font-size:18px;display:flex;align-items:center;gap:10px}.tab>span{font:11px var(--site-font);border:1px solid #cdd7cb;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}.tab small{font:12px var(--site-font);color:var(--muted)}.tab.active{color:var(--green);border-color:var(--green);font-weight:bold}.tab.active>span{background:var(--green);color:#fff;border-color:var(--green)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}h2{margin:0 0 5px;font-size:27px;font-weight:600}.section-heading p{margin:0;color:var(--muted);font-size:13px}.pinyin{font:12px/1.5 var(--site-font);color:var(--muted)}.no-pinyin .pinyin{display:none}.section-heading p .pinyin{margin-right:12px}.class-controls{display:flex;gap:12px;align-items:center}.class-controls>label{font-size:13px;color:var(--muted)}select{padding:7px;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:8px;margin-left:5px}.class-switch,.view-switch{display:flex;gap:3px;background:#e9ece3;padding:4px;border-radius:12px}.class-switch button,.view-switch button{border:0;border-radius:8px;padding:8px 13px;background:transparent;font-size:14px}.class-switch button[aria-pressed=true],.view-switch button[aria-pressed=true]{background:var(--white);box-shadow:0 2px 5px #2c493510;color:var(--green);font-weight:bold}.notice{padding:12px 16px;background:#e9eee5;border-radius:10px;margin-bottom:12px;font-size:14px}.notice.error,.notice.warning{background:#fff0db;color:#855016}.board-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}.record-actions{display:flex;gap:8px;align-items:center}#progress{font-size:13px;color:var(--muted);margin-right:8px}.checkin-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px}.feelings-panel,.roster-panel,.summary-panel{border:1px solid var(--line);border-radius:20px;background:var(--white)}.feelings-panel{padding:18px}.panel-caption{font-size:17px;margin-bottom:14px;display:flex;align-items:center;gap:8px}.panel-caption small{font:11px var(--site-font);color:var(--muted);margin-left:auto}.step-dot{display:inline-grid;place-items:center;background:var(--mint);color:var(--green);width:23px;height:23px;border-radius:50%;font:12px var(--site-font);margin-right:3px;flex-shrink:0}.emotion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.feeling-card{background:var(--tint);border:2px solid transparent;border-radius:15px;padding:8px 3px;display:flex;align-items:center;flex-direction:column;gap:3px;position:relative;min-width:0}.feeling-card[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 2px #fff inset}.feeling-card[aria-pressed=true]:after{content:'✓';position:absolute;top:3px;right:5px;background:var(--green);color:#fff;border-radius:50%;width:16px;height:16px;font:11px/16px var(--site-font)}.feeling-card .feeling-art{width:52px;height:52px;overflow:visible}.feeling-card strong{font-size:21px;font-weight:600}.feeling-card small{font:10px var(--site-font)}.feeling-card .pinyin{font-size:10px}.feeling-count{font:11px var(--site-font);background:#ffffffa6;border-radius:15px;padding:2px 8px;min-width:30px}.other-palette{display:flex;gap:7px;margin:12px 0}.other-palette button{flex:1;border:1px solid var(--line);border-radius:8px;padding:7px 3px;font-size:13px;background:#f5f5ee}.other-palette button[aria-pressed=true]{background:var(--green);color:#fff}.read-button{color:var(--green);background:#edf3e9;border-color:transparent;line-height:1.5}.feelings-panel>.read-button{font-size:13px;width:100%}.roster-panel{padding:18px 20px 12px;display:flex;flex-direction:column;min-height:390px}.roster-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:14px}.roster-heading h3{font-size:17px;font-weight:500;margin:0}.roster-heading p{font-size:12px;color:var(--muted);margin:6px 0 0}.roster-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;align-content:start;flex:1}.student{position:relative;border:1px solid transparent;border-radius:12px;background:#f6f5ee;padding:7px 3px 6px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}.student .avatar{width:54px;height:54px;border-radius:50%;background:#e9e9dc;object-fit:cover;display:grid;place-items:center;font-size:24px;color:#738c78}.student .student-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.student .english-name{font:10px var(--site-font);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.student.recorded{background:var(--tint);border-color:#cdd9ca}.student .student-mark{position:absolute;top:2px;right:3px;background:#fffef9;border-radius:50%;width:25px;height:25px;font-size:11px;display:grid;place-items:center;box-shadow:0 1px 3px #0001}.student-mark .feeling-art{width:24px;height:24px}.student-status{font-size:10px;color:var(--muted)}.roster-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed var(--line);margin-top:15px;padding-top:10px;color:var(--muted);font-size:12px}.mini-flower{font-size:24px;color:#a3b59b}.empty-state{grid-column:1/-1;text-align:center;padding:65px 20px;color:var(--muted);font-size:16px;line-height:1.8}.bottom-note{display:flex;justify-content:space-between;gap:12px;padding:15px 5px;font-size:14px;color:var(--muted)}.bottom-note small{font-size:11px}.summary-panel{padding:26px 40px}.summary-intro{display:flex;align-items:center;justify-content:space-between;gap:12px}.summary-intro h3{font-size:28px;margin:8px 0}.summary-intro p{font-size:14px;color:var(--muted);margin:0 0 14px}.summary-bars{display:grid;grid-template-columns:1fr 1fr;gap:17px 30px;margin:10px 0 20px}.summary-row{display:grid;grid-template-columns:48px 65px 1fr 38px;align-items:center;gap:9px}.summary-row .feeling-art{width:46px;height:46px}.summary-label strong{display:block;font-size:20px;font-weight:500}.summary-label small{font:10px var(--site-font);color:var(--muted)}.bar-track{height:16px;border-radius:15px;background:#eeeee6;overflow:hidden}.bar-fill{height:100%;background:var(--color);border-radius:15px;min-width:0;transition:width .3s}.summary-row>strong{font-size:23px;text-align:right}.summary-meta{font-size:13px;color:var(--muted)}.discussion{display:flex;align-items:center;gap:18px;background:var(--mint);border-radius:14px;padding:17px 22px;margin-top:18px}.discussion>span{font-size:36px;color:var(--green)}.discussion strong{font-size:21px;font-weight:500}.discussion p{font:13px var(--site-font);color:var(--muted);margin:5px 0 0}.story-controls{display:flex;align-items:center;gap:12px}.story-controls>span{font:12px var(--site-font);color:var(--muted)}.story-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}.story-art{border-radius:24px;background:#e8eee3;min-height:420px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line)}.story-art>svg{width:100%;max-height:490px}.story-copy{padding:24px;background:var(--white);border:1px solid var(--line);border-radius:24px}.story-copy h3{font-size:29px;line-height:1.6;margin:8px 0}.story-copy>p{font:14px/1.7 var(--site-font);color:var(--muted);margin:0 0 12px}.story-question{margin:22px 0 12px}.story-question h4{font-size:25px;margin:2px 0}.story-question small{font:12px var(--site-font);color:var(--muted)}.story-choices{display:flex;gap:10px;flex-wrap:wrap}.story-choices button{border:1px solid var(--line);border-radius:12px;background:var(--tint);padding:8px 14px;display:flex;gap:8px;align-items:center;font-size:19px}.story-choices .feeling-art{width:35px;height:35px}.story-choices button[aria-pressed=true]{outline:2px solid var(--green)}.story-response{font-size:15px;line-height:1.7;margin-top:12px;color:var(--green)}.teacher-prompt{border-top:1px dashed var(--line);padding-top:14px;margin-top:16px}.teacher-prompt>span{font-size:12px;color:var(--muted)}.teacher-prompt p{font-size:18px;line-height:1.7;margin:4px 0}.gentle-tag{background:#e8eee1;border-radius:20px;padding:9px 16px;font-size:13px}.practice-layout{display:grid;grid-template-columns:300px 1fr;gap:24px}.practice-menu{display:flex;flex-direction:column;gap:13px}.practice-choice{display:flex;align-items:center;gap:16px;padding:23px;border:1px solid var(--line);border-radius:16px;background:var(--white);text-align:left}.practice-choice>span{font-size:32px;width:40px;text-align:center;color:var(--green)}.practice-choice strong{font-size:22px;font-weight:500;display:block}.practice-choice small{font:12px var(--site-font);display:block;margin-top:5px;color:var(--muted)}.practice-choice b{margin-left:auto;font-weight:400}.practice-choice.active{background:var(--mint);border:2px solid #75977e;padding:22px}.practice-aside{padding:15px;color:var(--muted);font-size:16px;line-height:1.7}.practice-aside p{font:13px/1.7 var(--site-font)}.practice-stage{background:var(--white);border:1px solid var(--line);border-radius:24px;padding:28px;text-align:center;min-height:470px}.practice-stage h3{font-size:29px;margin:7px 0}.practice-stage p{color:var(--muted);font-size:16px;line-height:1.6}.practice-stage p[lang=en]{font:13px/1.7 var(--site-font)}.breathing-garden{height:230px;display:grid;place-items:center;background:radial-gradient(ellipse,#edf3e6,transparent 67%);margin:8px auto}.breathing-flower{width:132px;height:132px;position:relative;display:grid;place-items:center;transition:transform 4s ease-in-out}.breathing-flower.inhale{transform:scale(1.45)}.breathing-flower svg{width:100%;height:100%}.primary{background:var(--green);color:#fffef9;border:0;padding:12px 25px;border-radius:12px;font-size:17px}.practice-buttons{display:flex;gap:10px;justify-content:center;align-items:center}#breath-cue{font-size:26px;margin:0}#breath-progress{font-size:12px;min-height:20px;margin:5px 0 12px}.stretch-visual{font-size:80px;height:155px;display:grid;place-items:center}.stretch-steps{display:flex;gap:14px;justify-content:center;margin:25px auto}.stretch-steps span{background:var(--mint);border-radius:14px;padding:17px 20px;line-height:1.8;font-size:19px}.stretch-steps small{font:11px var(--site-font);display:block;color:var(--muted)}.help-phrases{display:grid;gap:14px;max-width:580px;margin:25px auto}.phrase{background:#f1f2e8;border:1px solid var(--line);border-radius:15px;padding:15px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px}.phrase strong{font-size:24px;font-weight:500;display:block}.phrase small{display:block;font:12px var(--site-font);margin-top:5px;color:var(--muted)}.phrase .pinyin{margin-bottom:5px}.phrase button{border:0;background:#e1e9da;border-radius:50%;width:40px;height:40px;flex-shrink:0;font-size:20px}.site-footer{border-top:1px solid var(--line);margin-top:24px;padding-top:17px;display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:12px}.site-footer span span{color:#a0b294;margin:0 8px}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:460px;background:var(--white);color:var(--ink)}dialog::backdrop{background:#203c3655}dialog h2{font-size:23px}dialog p{font-size:15px;line-height:1.8}dialog>div{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){.student .avatar{width:65px;height:65px}.student{padding:8px}.roster-grid{gap:14px}}@media(max-width:1150px){main{padding:24px}.topbar{padding:15px 24px}.brand small{display:none}.checkin-layout{grid-template-columns:280px minmax(0,1fr);gap:14px}.feelings-panel{padding:15px}.roster-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.student .avatar{width:45px;height:45px}.roster-panel{padding:15px}.student{padding:5px 2px}.roster-heading{flex-wrap:wrap}.tab{padding:14px 16px}.welcome p span{display:none}.story-copy h3{font-size:25px}.practice-layout{grid-template-columns:260px 1fr}.daily-note small{font-size:11px}}@media(max-width:767px){main{padding:20px 14px}.topbar{padding:12px 14px;flex-wrap:wrap;gap:10px}.brand{order:-1;flex-basis:100%}.top-actions{gap:10px}.welcome{align-items:flex-start}.welcome h1{font-size:25px}.daily-note{display:none}.tabs{gap:0;margin-bottom:20px}.tab{flex:1;padding:13px 5px;font-size:16px;gap:5px;justify-content:center}.tab small{display:none}.tab>span{width:20px;height:20px;font-size:10px}.section-heading{flex-wrap:wrap}h2{font-size:24px}.class-controls{width:100%;justify-content:space-between}.board-toolbar{flex-wrap:wrap}.record-actions{flex-wrap:wrap}#progress{font-size:12px}.checkin-layout{grid-template-columns:1fr}.emotion-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.feeling-card{padding:7px 1px;border-radius:10px}.feeling-card strong{font-size:18px}.feeling-card .feeling-art{width:40px;height:40px}.feeling-card .pinyin{font-size:9px}.feeling-card small{font-size:9px}.feeling-card[aria-pressed=true]:after{width:13px;height:13px;font-size:9px;line-height:13px;right:2px}.feelings-panel{padding:13px}.other-palette{margin:9px 0}.feelings-panel>.read-button{padding:4px}.roster-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.roster-panel{min-height:340px}.bottom-note,.site-footer{flex-direction:column;gap:6px}.summary-panel{padding:20px 16px}.summary-intro{flex-wrap:wrap}.summary-bars{grid-template-columns:1fr;gap:10px}.discussion{padding:14px}.discussion strong{font-size:19px}.story-layout{grid-template-columns:1fr;gap:14px}.story-art{min-height:220px;max-height:280px}.story-art>svg{max-height:280px}.story-copy{padding:20px}.practice-layout{grid-template-columns:1fr;gap:14px}.practice-menu{flex-direction:row;gap:6px}.practice-choice{padding:12px 6px;flex:1;justify-content:center;gap:5px;flex-direction:column;text-align:center}.practice-choice.active{padding:11px 5px}.practice-choice b,.practice-aside{display:none}.practice-choice strong{font-size:17px}.practice-choice small{font-size:10px}.practice-choice>span{font-size:25px}.practice-stage{padding:22px 14px}.stretch-steps{gap:6px}.stretch-steps span{padding:12px 10px;font-size:17px}.gentle-tag{font-size:12px}}@media(max-width:380px){.emotion-grid{grid-template-columns:repeat(3,1fr)}.roster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.brand{font-size:17px}.class-switch button{padding:8px}.section-heading p .pinyin{display:block}.summary-row{grid-template-columns:42px 60px 1fr 30px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
/* Keep the full class visible on the common 1024/1366 × 768 classroom display. */
@media (min-width:960px) and (max-height:850px){
  .topbar{min-height:56px;padding:9px 24px}.brand{font-size:17px}.brand-flower{font-size:27px}
  main{padding:16px 24px 12px}.welcome{margin-bottom:12px}.welcome h1{font-size:28px;margin:5px 0}.welcome .eyebrow{font-size:9px}.welcome p{font-size:12px}.daily-note>span{font-size:35px}
  .tabs{margin-bottom:16px}.tab{padding:9px 18px 12px;font-size:17px}.section-heading{margin-bottom:10px}h2{font-size:24px}.board-toolbar{margin-bottom:10px}
  .feelings-panel{padding:12px}.panel-caption{margin-bottom:9px}.emotion-grid{gap:7px}.feeling-card{padding:5px 2px;gap:2px}.feeling-card .feeling-art{width:38px;height:38px}.feeling-card strong{font-size:19px;line-height:1.15}.feeling-card .pinyin{font-size:9px}.feeling-card small{font-size:9px}.feeling-count{font-size:10px;padding:1px 6px}
  .other-palette{margin:8px 0}.other-palette button{padding:5px 2px}.feelings-panel>.read-button{padding:5px}.roster-panel{min-height:320px;padding:12px 15px 8px}.roster-heading{margin-bottom:10px}.roster-heading p{margin-top:4px}.roster-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.student{padding:4px 2px;gap:2px}.student .avatar{width:40px;height:40px}.student .student-name{font-size:13px;line-height:16px}.student .english-name{font-size:10px;line-height:12px}.student-status{display:none}.roster-footer{margin-top:9px;padding-top:7px;font-size:11px}.bottom-note{padding:10px 4px;font-size:12px}.site-footer{margin-top:12px;padding-top:12px;font-size:11px}
  .summary-panel{padding:20px 30px}.summary-intro h3{font-size:25px}.summary-bars{gap:10px 25px;margin:5px 0 15px}.discussion{padding:12px 20px}.story-art{min-height:360px}.story-art>svg{max-height:390px}.story-copy{padding:20px}.story-copy h3{font-size:25px;margin:5px 0}.story-question{margin:14px 0 10px}.teacher-prompt{margin-top:12px;padding-top:10px}.practice-stage{min-height:390px;padding:20px}.breathing-garden{height:180px}.practice-choice{padding:18px}.practice-choice.active{padding:17px}.practice-aside{padding:6px 12px}
}

/* One compact toolbar; the roster always shows children still waiting to check in. */
.checkin-heading{align-items:center;gap:14px;flex-wrap:wrap}.checkin-title{flex:0 0 auto}.checkin-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.checkin-controls .record-actions{gap:7px}.checkin-controls #progress{margin-right:0;white-space:nowrap}.checkin-controls .class-switch button,.checkin-controls .view-switch button{padding:8px 10px}.roster-panel{min-height:310px}
@media(max-width:1150px){.checkin-controls{justify-content:flex-start;gap:8px}.checkin-heading{gap:12px}.checkin-controls .quiet{padding:8px 10px}}
@media(max-width:767px){.checkin-controls{width:100%;justify-content:space-between;gap:10px}.checkin-controls .record-actions{width:100%}.checkin-controls #progress{margin-right:auto}.roster-panel{min-height:280px}}

/* Give each activity the same available screen area, without changing the toolbar. */
.summary-tools{display:flex;justify-content:flex-end}.summary-meta{margin:0}.breathing-flower{position:relative;transform:scale(.82);transition:none;isolation:isolate}.breathing-flower svg{position:relative;z-index:1;overflow:visible}.breathing-flower:before{content:'';position:absolute;inset:-25%;border-radius:50%;background:radial-gradient(circle,#edceb977 0%,#d7e8d655 45%,transparent 70%);z-index:0}.breathing-flower.inhale{transform:scale(.82)}.breathing-flower.breathing{animation:flower-breathe 8s ease-in-out 3}
@keyframes flower-breathe{0%,100%{transform:scale(.82);filter:drop-shadow(0 2px 4px #b8a7bd22)}50%{transform:scale(1.35);filter:drop-shadow(0 6px 16px #b8a7bd66)}}
@media (min-width:960px) and (min-height:500px), (min-width:768px) and (min-height:600px){
  body{height:100dvh;display:flex;flex-direction:column}.topbar{flex:0 0 auto;display:grid;grid-template-columns:1fr auto 1fr;min-height:54px;padding:8px 24px}.topbar .back{grid-column:1;grid-row:1;justify-self:start}.topbar .brand{grid-column:2;grid-row:1}
  main{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;padding:14px 24px 18px}.tabs{flex-shrink:0;margin-bottom:14px}.tab{padding:9px 18px 12px}.page{flex:1;min-height:0;display:flex;flex-direction:column}.section-heading{flex-shrink:0;margin-bottom:12px}.notice{flex-shrink:0}
  .checkin-layout,.summary-panel,.story-layout,.practice-layout{flex:1;min-height:0;height:auto}.feelings-panel,.roster-panel{min-height:0}.roster-panel{overflow:visible}.summary-panel{display:flex;flex-direction:column;padding:20px 30px;gap:12px}.summary-bars{flex:1;align-content:center;margin:0;gap:12px 30px}.summary-panel .discussion{margin:0;padding:12px 20px}.summary-row .feeling-art{width:42px;height:42px}.summary-meta{line-height:1.6}
  .story-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.story-art{min-height:0;max-height:none}.story-art>svg{height:100%;width:100%;max-height:none}.story-copy{min-height:0;padding:18px;display:flex;flex-direction:column;gap:8px}.story-copy h3{font-size:clamp(21px,2vw,28px);line-height:1.4;margin:0}.story-copy>p{font-size:13px;line-height:1.5;margin:0}.story-copy>.read-button{align-self:flex-start;padding:6px 12px}.story-question{margin:0}.story-question h4{font-size:22px;margin:0}.story-choices{gap:8px}.story-choices button{padding:6px 10px;font-size:18px}.story-choices .feeling-art{width:30px;height:30px}.story-response{margin:0;font-size:14px;line-height:1.5}.teacher-prompt{margin-top:auto;padding-top:8px}.teacher-prompt p{font-size:16px;line-height:1.5;margin:3px 0 0}
  .practice-layout{grid-template-columns:250px minmax(0,1fr);gap:20px}.practice-stage{min-height:0;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center}.practice-stage h3{font-size:27px;margin:6px 0}.practice-stage p{margin:6px 0;font-size:15px}.practice-stage p[lang=en]{font-size:13px}.practice-stage>.eyebrow{flex-shrink:0}.breathing-garden{flex:1;min-height:130px;max-height:240px;width:100%;height:auto;margin:4px 0}.breathing-flower{width:138px;height:138px}.practice-buttons{flex-shrink:0}.practice-choice{padding:18px}.practice-choice.active{padding:17px}.practice-aside{padding:6px 12px}.practice-stage #breath-cue{font-size:24px}.practice-stage #breath-progress{font-size:12px;margin:4px 0 10px}.stretch-visual{height:110px;font-size:70px}.stretch-steps{gap:10px;margin:12px auto}.stretch-steps span{padding:12px 18px}.help-phrases{gap:10px;margin:12px auto;width:min(100%,580px)}.phrase{padding:12px}.phrase strong{font-size:23px}
}
@media (min-width:960px) and (min-height:500px) and (max-height:720px), (min-width:768px) and (min-height:600px) and (max-height:850px){.topbar{min-height:48px;padding:5px 20px}main{padding:10px 20px 12px}.tabs{margin-bottom:10px}.tab{padding:7px 16px 10px}.section-heading{margin-bottom:8px}.story-copy{padding:14px;gap:6px}.story-copy h3{font-size:22px}.story-question h4{font-size:20px}.teacher-prompt p{font-size:15px}.story-choices button{font-size:16px;padding:5px 9px}.story-response{font-size:13px}.practice-stage{padding:14px}.practice-stage h3{font-size:24px}.breathing-garden{min-height:110px;max-height:180px}.breathing-flower{width:116px;height:116px}.practice-aside{display:none}.stretch-visual{height:80px;font-size:60px}.help-phrases{margin:8px auto;gap:8px}.phrase{padding:10px}.phrase strong{font-size:21px}}

/* Fit the full class to the available panel, not a fixed three-row assumption. */
@media (min-width:960px) and (min-height:500px), (min-width:768px) and (min-height:600px){
  .checkin-layout{grid-template-columns:clamp(244px,24vw,290px) minmax(0,1fr);gap:12px}
  .roster-panel{padding:12px;min-width:0}
  .roster-heading{flex-shrink:0;margin-bottom:8px}
  .roster-grid{min-height:var(--roster-min-height,0px);grid-template-columns:repeat(var(--roster-columns,8),minmax(0,1fr));grid-template-rows:repeat(var(--roster-rows,3),minmax(0,1fr));align-content:stretch;gap:6px}
  .student{justify-content:center;padding:5px 2px;gap:3px;min-height:0}
  .student .avatar{width:var(--roster-avatar,48px);height:var(--roster-avatar,48px);aspect-ratio:1;flex-shrink:0;font-size:22px}
  .student .student-name{font-size:14px;line-height:20px}
  .empty-state{grid-row:1/-1;align-self:center;padding:20px}
}
/* Let the feeling choices fill the left panel alongside the full-height roster. */
@media (min-width:960px) and (min-height:500px), (min-width:768px) and (min-height:600px){
  .feelings-panel{display:flex;flex-direction:column;padding:16px;min-height:0}
  .panel-caption{flex-shrink:0;margin-bottom:14px;font-size:19px}
  .emotion-grid{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
  .feeling-card{justify-content:center;padding:10px 3px;gap:5px;border-radius:18px}
  .feeling-card .feeling-art{width:clamp(52px,6vw,84px);height:auto;max-height:48%;flex-shrink:0}
  .feeling-card strong{font-size:24px;line-height:1.2}
  .feeling-card small{font-size:11px}
  .feeling-count{font-size:12px;padding:3px 9px}
  .other-palette{flex-shrink:0;margin:12px 0 10px;gap:8px}
  .other-palette button{padding:10px 3px;font-size:14px}
  .feelings-panel>.read-button{flex-shrink:0;padding:10px 5px;font-size:14px}
}
@media (min-width:960px) and (min-height:500px) and (max-height:720px), (min-width:768px) and (min-height:600px) and (max-height:850px){
  .feelings-panel{padding:12px}.panel-caption{margin-bottom:9px}
  .emotion-grid{gap:8px}.feeling-card{padding:6px 2px;gap:3px}
  .feeling-card .feeling-art{width:62px}.feeling-card strong{font-size:22px}
  .other-palette{margin:9px 0 8px}.other-palette button,.feelings-panel>.read-button{padding:7px 3px}
}


/* Smaller portraits release room for names and controls on classroom tablets. */
@media (min-width:960px) and (min-height:500px), (min-width:768px) and (min-height:600px){
  .feelings-panel{padding:12px}
  .panel-caption{font-size:17px;margin-bottom:10px}
  .emotion-grid{gap:7px}
  .feeling-card{min-height:0;padding:6px 2px;gap:3px}
  .feeling-card .feeling-art{width:64px;height:64px;max-height:calc(100% - 70px);min-height:24px;flex-shrink:1}
  .feeling-card strong{font-size:22px;line-height:26px}
  .feeling-card small{font-size:11px;line-height:13px}
  .feeling-count{font-size:11px;line-height:14px;padding:2px 7px}
  .other-palette{margin:9px 0 8px;gap:6px}
  .other-palette button{padding:7px 3px;font-size:14px}
  .feelings-panel>.read-button{padding:7px 3px;font-size:14px}
}
@media (min-width:768px) and (max-width:959px) and (min-height:600px){
  main{padding:10px 16px 12px}.topbar{padding:7px 16px}
  .brand small,.tab small{display:none}.tab{font-size:17px;padding:9px 14px 11px}
  .checkin-heading{gap:8px}.checkin-controls{width:100%;justify-content:space-between;gap:6px}
  .checkin-controls .class-switch button,.checkin-controls .view-switch button{padding:8px}
  .checkin-controls .record-actions{gap:5px}.checkin-controls .quiet{padding:8px}
  .roster-heading h3{font-size:16px}.roster-heading p{font-size:12px;line-height:1.4}
  .story-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px}
  .story-copy{padding:12px;gap:6px}.story-copy h3{font-size:21px}.story-copy>p{font-size:12px}
  .story-choices{gap:6px}.story-choices button{font-size:16px;padding:5px 7px;gap:5px}
  .teacher-prompt p{font-size:15px}
  .practice-layout{grid-template-columns:210px minmax(0,1fr);gap:12px}
  .practice-choice,.practice-choice.active{padding:13px;gap:9px}.practice-choice strong{font-size:20px}
  .summary-panel{padding:16px}.summary-bars{gap:10px 15px}.summary-row{grid-template-columns:40px 50px 1fr 28px;gap:6px}
  .summary-row .feeling-art{width:38px;height:38px}.summary-label strong{font-size:19px}
}
/* Phones, zoomed views and very short landscape windows keep natural scrolling.
   Never hide overflow or shrink text to pretend that inaccessible content fits. */

/* Preserve the full rabbit silhouette inside each existing emotion slot. */
.feeling-art{display:block;object-fit:contain}
/* A single activity bar, square artwork, and balanced classroom cards. */
.topbar{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:20px;min-height:64px;padding:8px 24px}
.topbar .back{flex:none;font-size:13px;white-space:nowrap}
.topbar .brand{order:0;flex:none;flex-basis:auto;gap:8px;font-size:18px;white-space:nowrap}
.topbar .brand-flower{font-size:28px}
.topbar .brand small{font-size:9px;letter-spacing:1.5px}
.topbar .tabs{align-self:stretch;align-items:center;flex:0 1 auto;gap:5px;margin:0 0 0 auto;border:0;min-width:0}
.topbar .tab{flex:0 1 auto;min-height:44px;margin:0;padding:9px 13px;gap:7px;border:0;border-radius:12px;font-size:17px;white-space:nowrap}
.topbar .tab.active{background:var(--mint);box-shadow:inset 0 0 0 1px #cbdcc8}
.topbar .tab small{font-size:11px}
.topbar .tab>span{width:22px;height:22px;font-size:10px}
main{max-width:1880px}
.feeling-art{object-fit:contain;object-position:center;aspect-ratio:1;flex-shrink:0}
.feeling-label{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.feeling-card .feeling-art{width:var(--feeling-art-size,88px);height:var(--feeling-art-size,88px);min-height:0;max-height:none;max-width:none;flex:0 0 auto;aspect-ratio:1}
.student .avatar{object-fit:cover;aspect-ratio:1;flex-shrink:0}
.student .student-name{line-height:20px;min-height:20px}
@media(max-width:1279px){
  .topbar{gap:14px;padding:8px 16px}
  .topbar .brand small,.topbar .tab small{display:none}
  .topbar .tab{padding:9px 12px}
}
@media (min-width:960px) and (min-height:500px), (min-width:768px) and (min-height:600px){
  body{height:100dvh;min-height:0}
  .topbar{flex-shrink:0}
  main{padding:14px 24px 18px}
  .section-heading{margin-bottom:12px}
  .checkin-heading{gap:8px 14px}
  .checkin-title h2{font-size:26px;line-height:1.2}
  .checkin-title p{font-size:13px;line-height:1.4}
  .checkin-controls{gap:8px}
  .checkin-controls .class-switch button,.checkin-controls .view-switch button{min-height:38px;padding:7px 10px}
  .checkin-controls .quiet{min-height:38px;padding:7px 10px}
  .checkin-layout{grid-template-columns:clamp(340px,30vw,560px) minmax(0,1fr);gap:16px}
  .feelings-panel{padding:14px;min-height:0}
  .panel-caption{font-size:17px;line-height:24px;margin-bottom:10px}
  .emotion-grid{grid-template-columns:repeat(var(--feeling-columns,3),minmax(0,1fr));grid-template-rows:repeat(var(--feeling-rows,2),minmax(0,1fr));min-height:var(--feelings-grid-min-height,0px);gap:10px}
  .feeling-card{padding:6px;gap:3px;min-height:0;justify-content:center;border-radius:16px}
  .feeling-card strong{font-size:22px;line-height:26px}
  .feeling-card small{font-size:11px;line-height:13px}
  .feeling-count{font-size:11px;line-height:14px;padding:2px 8px}
  .other-palette{margin:10px 0 8px;gap:7px}
  .other-palette button{min-height:38px;padding:7px 3px;font-size:14px}
  .feelings-panel>.read-button{min-height:40px;padding:7px 4px;font-size:14px}
  .roster-panel{padding:14px;min-width:0;min-height:0}
  .roster-heading{margin-bottom:12px;flex-shrink:0}
  .roster-heading h3{font-size:17px;line-height:24px}
  .roster-heading p{font-size:13px;line-height:18px;margin:4px 0 0}
  .roster-grid{grid-template-columns:repeat(var(--roster-columns,6),minmax(0,1fr));grid-template-rows:repeat(var(--roster-rows,4),var(--roster-card-height,124px));grid-auto-rows:var(--roster-card-height,124px);align-content:center;gap:var(--roster-gap,10px);min-height:var(--roster-min-height,0px)}
  .student{min-width:0;min-height:0;width:100%;max-width:200px;justify-self:center;padding:7px 4px;gap:2px;border-radius:14px;justify-content:center}
  .student .avatar{width:var(--roster-avatar,88px);height:var(--roster-avatar,88px);font-size:clamp(24px,2.5vw,38px)}
  .student .student-name{font-size:15px;line-height:20px;min-height:20px;max-width:100%}
  .empty-state{grid-row:1/-1;align-self:center;padding:20px}
  .summary-row .feeling-art{width:54px;height:54px;max-height:none}
  .summary-row{grid-template-columns:56px 65px minmax(0,1fr) 38px}
  .story-choices .feeling-art{width:42px;height:42px;max-height:none}
}
@media (min-width:960px) and (min-height:500px) and (max-height:720px){
  .topbar{min-height:54px;padding:5px 16px}
  main{padding:10px 16px 12px}
  .checkin-title h2{font-size:23px}
  .checkin-layout{grid-template-columns:clamp(320px,29vw,420px) minmax(0,1fr);gap:12px}
  .feelings-panel,.roster-panel{padding:12px}
  .panel-caption{margin-bottom:8px}
  .emotion-grid{gap:8px}
  .feeling-card{padding:5px;gap:2px}
  .other-palette{margin:8px 0 6px}
  .other-palette button,.feelings-panel>.read-button{min-height:36px;padding:5px 3px}
  .roster-heading{margin-bottom:8px}
  .roster-heading h3{font-size:16px}
  .story-choices .feeling-art{width:32px;height:32px}
}
@media (min-width:768px) and (max-width:959px) and (min-height:600px){
  .topbar{min-height:58px;padding:7px 14px;gap:12px}
  .topbar .brand{font-size:16px;gap:5px}
  .topbar .brand-flower{font-size:24px}
  .topbar .back{font-size:12px}
  .topbar .tab{font-size:15px;padding:8px;gap:5px}
  .topbar .tab>span{display:none}
  main{padding:12px 16px 14px}
  .checkin-layout{grid-template-columns:280px minmax(0,1fr);gap:12px}
  .checkin-controls{width:100%;justify-content:space-between;gap:6px}
  .checkin-title h2{font-size:24px}
  .feelings-panel,.roster-panel{padding:12px}
  .panel-caption small{font-size:10px}
  .roster-heading h3{font-size:15px;line-height:21px}
  .roster-heading p{font-size:12px;line-height:17px}
  .student .student-name{font-size:14px}
  .summary-row{grid-template-columns:48px 52px minmax(0,1fr) 28px;gap:6px}
  .summary-row .feeling-art{width:46px;height:46px}
  .story-choices .feeling-art{width:30px;height:30px}
}
@media(max-width:767px){
  .topbar{flex-wrap:wrap;gap:8px 12px;padding:10px 14px}
  .topbar .brand{margin-left:auto;font-size:17px}
  .topbar .brand small{display:none}
  .topbar .tabs{flex-basis:100%;margin:0;justify-content:space-between;gap:4px}
  .topbar .tab{flex:1;justify-content:center;font-size:15px;padding:8px 5px;gap:5px}
  .topbar .tab>span,.topbar .tab small{display:none}
  main{padding:16px 14px}
  .emotion-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .feeling-card{padding:10px 4px;gap:3px}
  .feeling-card .feeling-art{width:clamp(64px,19vw,110px);height:clamp(64px,19vw,110px);max-height:none;flex-shrink:0}
  .feeling-card strong{font-size:20px;line-height:25px}
  .roster-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .student{padding:9px 3px;gap:4px}
  .student .avatar{width:clamp(44px,12vw,70px);height:clamp(44px,12vw,70px)}
  .student .student-name{font-size:13px;line-height:19px;min-height:19px}
}
@media(pointer:coarse){.topbar .tab,.other-palette button,.checkin-controls button{min-height:44px}}

/* Zoomed or short windows scroll naturally, with two spacious artwork columns. */
@media (min-width:768px) and (max-width:959px) and (max-height:599px), (min-width:960px) and (max-height:499px){
  .emotion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feeling-card .feeling-art{width:88px;height:88px}
}

/* Feelings in the middle, with fixed seats in two banks at the sides. */
.palette-tools .read-button{width:100%;font-size:13px}
.checkin-flight{position:fixed;z-index:1000;pointer-events:none;object-fit:cover;border-radius:50%;display:grid;place-items:center;background:#e7eddf;color:var(--green);font-size:22px;border:3px solid #fffef9;box-shadow:0 5px 18px #304b4730;will-change:transform,opacity}
.breathing-flower{width:160px;height:160px}
@media(min-width:0px){
  .feeling-circle{display:block;position:relative;isolation:isolate;border:1px solid var(--line);border-radius:28px;background:radial-gradient(ellipse at center,#e7eee04d,transparent 65%),#fffef9}
  .feeling-circle .roster-panel{position:absolute;inset:0;display:block;padding:0;border:0;background:none;pointer-events:none}
  .feeling-circle .roster-heading{position:absolute;top:13px;left:90px;right:90px;justify-content:center;margin:0;text-align:center}
  .feeling-circle .roster-heading>div{display:flex;align-items:center;gap:14px}
  .feeling-circle .roster-heading h3{font-size:15px}
  .feeling-circle .roster-heading p{margin:0;font-size:12px}
  .feeling-circle .roster-grid{position:absolute;inset:0;display:block;min-height:0;pointer-events:none}
  .feeling-circle .student{position:absolute;width:74px;height:76px;transform:translate(-50%,-50%);padding:4px 2px;gap:3px;background:transparent;border:0;border-radius:16px;pointer-events:auto;z-index:3}
  .feeling-circle .student{transition:background .15s}
  .feeling-circle .student:hover{background:#eaf0e2}
  .feeling-circle .student .avatar{width:var(--ring-avatar,44px);height:var(--ring-avatar,44px);font-size:22px;border:2px solid #fff;box-shadow:0 2px 7px #3659461a;flex-shrink:0}
  .feeling-circle .student .student-name{font-size:14px;line-height:18px}
  .feeling-circle .feelings-panel{position:absolute;left:50%;top:calc(50% + 9px);transform:translate(-50%,-50%);width:min(60%,560px);height:calc(100% - 192px);max-height:420px;min-height:0;display:flex;flex-direction:column;padding:14px;z-index:2;background:#fffef9;border-color:#dbe5d3;border-radius:24px;box-shadow:0 8px 32px #45634109}
  .feeling-circle .panel-caption{justify-content:center;font-size:18px;margin-bottom:10px;flex-shrink:0}
  .feeling-circle .panel-caption small{margin-left:4px}
  .feeling-circle .emotion-grid{flex:1;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}
  .feeling-circle .feeling-card{padding:6px 3px;gap:2px;min-height:0;border-radius:16px}
  .feeling-circle .feeling-card .feeling-art{width:100%;height:calc(100% - 44px);max-height:100px;min-height:0;flex:1;object-fit:contain}
  .feeling-circle .feeling-card strong{font-size:23px;line-height:26px;flex-shrink:0}
  .feeling-circle .feeling-card small{font-size:10px;line-height:12px;flex-shrink:0}
  .feeling-circle .feeling-count{position:absolute;left:5px;top:5px;font-size:10px;line-height:14px;padding:1px 5px;min-width:0}
  .feeling-circle .palette-tools{display:flex;gap:8px;margin-top:10px;flex-shrink:0}
  .feeling-circle .other-palette{flex:1;margin:0;gap:6px}
  .feeling-circle .other-palette button{padding:7px 4px;font-size:13px}
  .feeling-circle .palette-tools .read-button{width:auto;flex-shrink:0;font-size:0;padding:6px 12px}
  .feeling-circle .palette-tools .read-button:after{content:'♫ 听一听';font-size:13px}
  .feeling-circle .empty-state{position:absolute;bottom:16px;left:100px;right:100px;font-size:14px;padding:0;line-height:1.5}
  .practice-stage .breathing-flower{width:160px;height:160px}
}
@media (min-width:960px) and (min-height:500px) and (max-height:720px){
  .feeling-circle .feelings-panel{width:min(calc(100% - 208px),780px);padding:12px}
  .feeling-circle .emotion-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
  .feeling-circle .feeling-card strong{font-size:21px;line-height:24px}
  .feeling-circle .panel-caption{font-size:16px;margin-bottom:8px}
  .feeling-circle .palette-tools{margin-top:8px}
  .practice-stage .breathing-flower{width:132px;height:132px}
}
@media(max-width:767px), (max-width:959px) and (max-height:599px), (max-height:499px){
  .feeling-circle{flex:none;height:800px;width:100%;margin-bottom:10px}
  .feeling-circle .feelings-panel{width:calc(100% - 112px);height:450px;max-height:450px;padding:10px;border-radius:20px}
  .feeling-circle .panel-caption{font-size:16px;gap:4px;flex-wrap:wrap}
  .feeling-circle .panel-caption small{display:none}
  .feeling-circle .emotion-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5px}
  .feeling-circle .feeling-card{padding:6px 1px;gap:3px;border-radius:12px}
  .feeling-circle .feeling-card .feeling-art{width:100%;height:auto;max-height:70px;min-height:24px}
  .feeling-circle .feeling-card strong{font-size:18px;line-height:23px}
  .feeling-circle .feeling-card small{font-size:9px}
  .feeling-circle .feeling-count{font-size:9px;top:3px;left:2px;padding:0 3px}
  .feeling-circle .student{width:48px;height:64px;padding:2px 0;gap:2px}
  .feeling-circle .student .avatar{width:32px;height:32px;font-size:18px}
  .feeling-circle .student .student-name{font-size:11px;line-height:16px}
  .feeling-circle .roster-heading{left:14px;right:14px;top:12px}
  .feeling-circle .roster-heading>div{display:block}
  .feeling-circle .roster-heading h3{font-size:14px}
  .feeling-circle .roster-heading p{display:none}
  .feeling-circle .palette-tools{display:block}
  .feeling-circle .other-palette button{font-size:12px;padding:7px 1px}
  .feeling-circle .palette-tools .read-button{width:100%;margin-top:8px;padding:6px}
  .feeling-circle .empty-state{left:20px;right:20px;bottom:12px;font-size:12px}
}

.feeling-circle .feeling-card .feeling-art{flex:0 0 auto;aspect-ratio:1}

@media(max-width:767px){.practice-stage .breathing-flower{width:clamp(110px,34vw,150px);height:clamp(110px,34vw,150px)}}

/* Side banks release the top and bottom for larger emotion illustrations. */
.class-switch button{display:flex;align-items:center;justify-content:center;gap:6px}
.class-art{display:block;width:28px;height:28px;object-fit:contain;flex-shrink:0}
.feeling-circle .student{width:64px;height:64px;padding:2px;gap:2px}
.feeling-circle .student .avatar{width:var(--ring-avatar,38px);height:var(--ring-avatar,38px)}
.feeling-circle .student .student-name{min-height:18px;line-height:18px}
.feeling-circle .feelings-panel{top:50%;width:calc(100% - 2*var(--side-space,164px));height:calc(100% - 40px);max-height:none;padding:16px}
.feeling-circle .emotion-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}
.feeling-circle .feeling-card .feeling-art{max-height:160px}
.feeling-circle .feeling-card strong{font-size:25px;line-height:29px}
.feeling-circle .roster-heading{left:20px;right:20px}
@media(max-width:767px), (max-width:959px) and (max-height:599px), (max-height:499px){
  .feeling-circle .student{width:48px;height:64px;padding:2px 0}
  .feeling-circle .student .avatar{width:32px;height:32px}
  .feeling-circle .feelings-panel{width:calc(100% - 2*var(--side-space,56px));height:calc(100% - 50px);max-height:720px;padding:10px}
  .feeling-circle .emotion-grid{gap:5px}
  .feeling-circle .feeling-card strong{font-size:18px;line-height:23px}
  .feeling-circle .feeling-card .feeling-art{max-height:100px}
}

/* Feeling cards: portrait beside the label instead of stacked above it, so the
   rabbit can use the full card height now that the step captions are gone. */
@media (min-width:960px) and (min-height:500px), (min-width:768px) and (min-height:600px){
  .feeling-circle .feeling-card{flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:6px 14px 6px 6px}
  .feeling-circle .feeling-card .feeling-art{width:auto;height:100%;max-height:none;aspect-ratio:1;flex:0 0 auto}
  .feeling-circle .feeling-card .feeling-label{align-items:flex-start;text-align:left;gap:3px}
  .feeling-circle .feeling-card strong{line-height:1.15}
  .feeling-circle .feeling-card small{line-height:1.15}
}

/* Language switch (中文 / EN) – lets a substitute teacher run the page in English. */
.topbar .lang-switch{display:flex;flex:none;gap:2px;background:#e9ece3;padding:3px;border-radius:10px}
.lang-switch button{border:0;border-radius:7px;padding:6px 10px;background:transparent;font-size:13px;min-height:32px;white-space:nowrap}
.lang-switch button[aria-pressed=true]{background:var(--white);color:var(--green);font-weight:bold;box-shadow:0 2px 5px #2c493510}
@media(max-width:767px){.topbar .tabs{order:3}.topbar .lang-switch{order:2}.lang-switch button{padding:5px 8px;min-height:30px}}
/* English labels cannot wrap between letters like Chinese can, so in the side-by-side
   card layout the rabbit gives up width for the word. */
@media (min-width:960px) and (min-height:500px), (min-width:768px) and (min-height:600px){
  html:lang(en) .feeling-circle .feeling-card{padding-right:8px;gap:6px}
  html:lang(en) .feeling-circle .feeling-card .feeling-art{flex:0 1 auto;min-width:0;max-width:calc(100% - 5.2em);object-fit:contain}
  html:lang(en) .feeling-circle .feeling-card strong{font-size:min(25px,2.3vw)}
}
html:lang(en) .feeling-circle .palette-tools .read-button:after{content:'♫ Listen (Chinese)'}
