/* Approved desk-story layer. The existing selected pet, replies and motion
   remain authoritative; props never accept input or affect task completion. */
body :is(h1,h2,h3,h4,button,summary,dt,dd,label,small,span,strong) { text-wrap:balance; }
body :is(p,li,.pet-speech) { text-wrap:balance; }
.task-text { text-wrap:balance; }
.junior-today-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.8fr); align-items:center; gap:24px; margin-bottom:20px; }
.junior-today-intro .page-heading { margin:0; gap:12px; }
.pet-scene.junior-pet-desk { display:grid; grid-template-columns:210px minmax(0,1fr); align-items:center; gap:12px; height:auto; min-height:168px; background:transparent; border-radius:0; overflow:visible; }
.junior-pet-stage { position:relative; height:168px; width:210px; isolation:isolate; }
.junior-pet-desk .pet-hit { left:0; bottom:8px; width:148px; height:152px; z-index:1; }
.junior-pet-props { position:absolute; right:0; bottom:0; width:110px; height:110px; object-fit:contain; pointer-events:none; z-index:2; }
.junior-pet-copy { min-width:0; }
.junior-pet-desk .scene-name { position:static; display:block; max-width:none; white-space:normal; overflow:visible; padding:0; margin-bottom:8px; font-size:14px; background:transparent; border:0; }
.junior-pet-desk .pet-speech { position:static; width:auto; max-height:none; padding:0; border:0; background:transparent; font-size:15px; line-height:1.55; overflow-wrap:anywhere; }
.junior-pet-desk .pet-speech::before { content:none; }
.junior-companion-tools { border-bottom:1px solid var(--study-line); padding-bottom:8px; }
.junior-companion-tools .scene-footer { background:transparent; border:0; padding:0; }
.junior-companion-tools .companion-controls { padding:4px 0; }
.focus-companion { margin:12px 0; }
.focus-companion .junior-pet-desk { grid-template-columns:132px minmax(0,1fr); min-height:88px; margin:0; gap:12px; }
.focus-companion .junior-pet-stage { width:132px; height:88px; }
.focus-companion .pet-hit { width:84px; height:84px; bottom:2px; }
.focus-companion .junior-pet-props { width:64px; height:64px; }
.focus-companion .scene-name { margin-bottom:4px; }
.junior-welcome-art { display:flex; align-items:end; justify-content:center; width:280px; max-width:100%; margin:16px auto; }
.junior-welcome-art .pet-thumb { width:180px; height:160px; }
.junior-welcome-art > img { width:120px; height:120px; object-fit:contain; margin-left:-30px; }
.junior-plan-props { width:64px; height:64px; object-fit:contain; flex:none; pointer-events:none; }
@media(max-width:1100px) {
 .junior-today-intro { grid-template-columns:minmax(0,1fr) 330px; gap:16px; }
 .junior-today-intro .junior-pet-desk { grid-template-columns:150px minmax(0,1fr); min-height:138px; }
 .junior-today-intro .junior-pet-stage { width:150px; height:138px; }
 .junior-today-intro .pet-hit { width:108px; height:126px; }
 .junior-today-intro .junior-pet-props { width:80px; height:80px; }
}
@media(max-width:760px) {
 .junior-today-intro { display:block; margin-bottom:12px; }
 .junior-today-intro .page-heading { margin-bottom:4px; }
 .junior-today-intro .junior-pet-desk { grid-template-columns:140px minmax(0,1fr); min-height:116px; gap:12px; }
 .junior-today-intro .junior-pet-stage { width:140px; height:116px; }
 .junior-today-intro .pet-hit { width:98px; height:110px; bottom:4px; }
 .junior-today-intro .junior-pet-props { width:80px; height:80px; }
 .junior-pet-desk .scene-name { margin-bottom:4px; }
 .junior-pet-desk .pet-speech { font-size:14px; line-height:1.55; }
 .focus-companion .junior-pet-desk { grid-template-columns:100px minmax(0,1fr); min-height:84px; gap:8px; }
 .focus-companion .junior-pet-stage { width:100px; height:84px; }
 .focus-companion .pet-hit { width:66px; height:80px; }
 .focus-companion .junior-pet-props { width:54px; height:54px; }
 .focus-companion .scene-name { display:none; }
 .today-grid { gap:16px; }
 .today-grid > aside { padding-top:12px; }
 .junior-plan-props { width:48px; height:48px; }
}
.junior-pet-props.pet-desk-custom { width:80px; height:80px; bottom:4px; z-index:0; }
.junior-pet-props[data-props-pet='chirp'] { width:94px; height:94px; bottom:6px; }
.junior-pet-props[data-props-pet='xingchao'] { width:88px; height:70px; bottom:2px; }
.focus-companion .junior-pet-props.pet-desk-custom { width:44px; height:44px; bottom:0; }
.focus-companion .junior-pet-props[data-props-pet='chirp'] { width:54px; height:54px; }
.junior-plan-props.pet-desk-custom { width:44px; height:44px; }
.junior-plan-props[data-props-pet='chirp'] { width:54px; height:54px; }
.junior-welcome-art > .pet-desk-custom { width:86px; height:86px; margin-left:8px; }
.junior-welcome-art > [data-props-pet='chirp'] { width:94px; height:94px; }
.junior-welcome-art > [data-props-pet='xingchao'] { width:88px; height:70px; }
@media(max-width:760px) {
 .junior-today-intro .junior-pet-props.pet-desk-custom { width:48px; height:48px; }
 .junior-today-intro .junior-pet-props[data-props-pet='chirp'] { width:56px; height:56px; bottom:5px; }
 .junior-today-intro .junior-pet-props[data-props-pet='xingchao'] { width:52px; height:44px; }
 .focus-companion .junior-pet-props.pet-desk-custom { width:34px; height:34px; }
 .focus-companion .junior-pet-props[data-props-pet='chirp'] { width:40px; height:40px; }
 .junior-plan-props.pet-desk-custom { width:34px; height:34px; }
 .junior-plan-props[data-props-pet='chirp'] { width:40px; height:40px; }
}
body[data-density='compact'] .junior-pet-desk { height:auto; }
@media(prefers-reduced-motion:reduce) { .junior-pet-desk .pet-hit { transition:none; } }
