/* 0.2: the whole viewport is the whiteboard. Everything else unfolds on request. */
:root{--ink:#283e32;--sage:#53715c;--paper:#fbfaf1;--line:#dbe1d4;--shadow:0 9px 35px #253a2410}
html,body{width:100%;height:100%;overflow:hidden;margin:0}body{font-family:'Segoe UI',sans-serif}button{font-family:inherit}button:focus-visible,select:focus-visible,.widget:focus-visible{outline:2px solid #668770;outline-offset:4px}[hidden]{display:none!important}#app{height:100%}#world,body.demo-mode #world{height:100dvh;min-height:0;width:100%;overflow:hidden}.landscape{transition:filter 40s ease;background-position:center;background-size:cover;z-index:0}.weather-light{position:absolute;inset:0;pointer-events:none;z-index:1;background:#8c9caa;opacity:0;transition:opacity 40s ease}#world[data-weather=cloud] .weather-light{opacity:.065}#world[data-weather=rain] .weather-light{opacity:.11}#ambience{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}#worldDecor{position:absolute;inset:0;pointer-events:none;z-index:3}
.board{inset:0;z-index:10;position:absolute;pointer-events:none}.widget{min-width:80px;min-height:50px;border:1px solid #fff8;background:#faf9f1f0;border-radius:22px;box-shadow:0 5px 24px #3649310c;overflow:visible;touch-action:none;cursor:grab;outline:none}.widget.selected{box-shadow:0 0 0 1.5px #7e9d7f99,0 9px 35px #32492a13;z-index:15}.widget.moving{cursor:grabbing;z-index:17}.widget.locked{cursor:default}.widget-body{width:100%;height:100%;overflow:hidden!important;padding:24px;position:relative;border-radius:inherit;user-select:none;display:block}.widget-body *{box-sizing:border-box}.widget-head{height:36px;top:-42px;left:auto;right:0;bottom:auto;width:max-content;padding:3px 5px;border:1px solid #dce3d5;border-radius:12px;background:#fcfbf4;box-shadow:var(--shadow);opacity:0;pointer-events:none;cursor:default;z-index:4;display:flex;gap:2px}.widget-head strong{display:none}.widget.selected .widget-head,.widget:focus-within .widget-head{opacity:1;pointer-events:auto}.widget:hover:not(.selected) .widget-head{opacity:0;pointer-events:none}.widget-head button{height:28px;width:30px;border-radius:7px;display:grid;place-items:center;cursor:pointer}.widget-head button:hover{background:#e9efdf}.widget-head svg{width:16px;height:16px}.widget.near-top .widget-head{top:auto;bottom:-42px}.resize-handle{right:-9px;bottom:-9px;width:28px;height:28px;border-radius:50%;background:#fcfcf5;border:1px solid #9dad92;opacity:0;pointer-events:none;display:grid;place-items:center;z-index:5}.resize-handle:after{right:9px;bottom:9px}.widget.selected:not(.locked) .resize-handle{opacity:1;pointer-events:auto}.widget:hover:not(.selected) .resize-handle{opacity:0}.widget.locked .resize-handle{display:none}
.widget-text .widget-body{line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.widget-text .widget-body>div{white-space:pre-wrap}.widget-welcome{border:0;background:#52725cde;color:#fffdf1;border-radius:22px;min-height:50px}.widget-welcome .widget-body{font-family:Georgia,'Segoe UI',serif;font-weight:700;letter-spacing:-1px;line-height:1.1;padding:12px 24px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere}.widget-date{background:transparent;box-shadow:none;border:0;color:#2b4335}.widget-date .widget-body{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;text-align:center;padding:0;white-space:nowrap;filter:drop-shadow(0 1px 3px #ffffffe0)}.date-weekday{font-size:18px;font-weight:500;line-height:1.2}.date-main{font-size:34px;font-weight:600;letter-spacing:-.5px;line-height:1.2}.widget-checklist .widget-body{display:flex;flex-direction:column;padding:24px 28px;gap:10px}.widget-checklist h2{font-family:'Segoe UI',sans-serif;font-size:28px;font-weight:650;letter-spacing:-.5px;margin:0;flex:0 0 auto}.tasklist{min-height:0;flex:1;display:flex;flex-direction:column;gap:0}.task-row{min-height:0;flex:1;padding:6px 0;gap:12px;font-size:23px;border-top:1px solid #d6dfce90;display:flex;align-items:center;cursor:pointer}.task-row:first-child{border-top:0}.task-row>span:not(.task-icon){font-size:inherit;line-height:1.25;overflow-wrap:anywhere}.task-row input{appearance:none;display:block;flex:none;width:25px;height:25px;border:1.6px solid #94a58c;border-radius:6px;background:#fffff9;cursor:pointer;margin-left:auto}.task-row input:checked{background:#6e8b68;border-color:#6e8b68}.task-row input:checked:after{content:'✓';display:block;text-align:center;color:#fff;font-size:20px;line-height:21px}.task-row.done>span{text-decoration:line-through;opacity:.5}.check-subtitle,.task-reward,.task-icon{display:none}
.widget-timer .widget-body,.widget-morningTimer .widget-body{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:18px}.timer-dial{width:var(--dial-size,150px)!important;height:var(--dial-size,150px)!important;max-width:none;max-height:none!important;min-height:0;aspect-ratio:1;flex:none;padding:0;border-radius:50%;background:conic-gradient(#7e997b var(--angle),#dfe4d7 0);display:grid;place-items:center}.timer-dial:before{inset:8px;background:#faf9f1}.timer-dial strong{font-family:'Segoe UI',sans-serif;font-size:calc(var(--dial-size,150px)*.28)!important;font-weight:350;letter-spacing:-2px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}.timer-buttons{flex:none;height:32px;display:flex;gap:14px}.timer-buttons .icon-button{background:#e8edde;width:32px;height:32px}.timer-label,.timer-state{display:none}.widget-clock .widget-body{display:flex;flex-direction:column;align-items:center;justify-content:center}.clock-face{font-size:54px;line-height:1}.clock-date{display:none}.widget-symbol .widget-body{display:flex;align-items:center;justify-content:center;gap:15px;padding:15px}.work-symbol-icon{height:auto;margin:0;display:grid;place-items:center}.work-symbol-icon svg{width:32px;height:32px}.work-symbol{font:500 29px/1.15 'Segoe UI',sans-serif;letter-spacing:-.5px;white-space:nowrap}.widget-media .widget-body,.widget-embed .widget-body{padding:0}.widget-media img,.widget-media video,.widget-draw img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit;pointer-events:auto}.widget iframe{display:block;border:0;width:100%;height:100%;border-radius:inherit}.widget.selected .iframe-drag{position:absolute;inset:0;z-index:1;cursor:grab;background:transparent}.embed-note{font-size:16px;text-align:center}.widget-draw{background:transparent}
.corner-start{position:absolute;top:18px;left:18px;z-index:40}.app-mark{width:46px;height:46px;background:#fbfaf1de;border:1px solid #fff7;border-radius:16px;padding:4px;box-shadow:var(--shadow);display:grid;place-items:center}.app-mark img{width:38px;height:38px}.floating-menu{position:absolute;top:56px;left:0;min-width:245px;background:#fcfbf3fa;border:1px solid #fff9;border-radius:20px;box-shadow:0 10px 45px #2c3d2920;padding:22px;display:flex;flex-direction:column;gap:16px}.brand-wordmark{font-family:Georgia,serif;font-size:21px;line-height:1.3;color:#49634d;white-space:nowrap}.brand-wordmark strong{display:block;font-size:34px;font-weight:800;letter-spacing:-1.3px;color:#34563d}#classSelect{padding:10px 8px;border:0;border-bottom:1px solid #dbe1d4;background:transparent;color:var(--ink);font-size:17px;font-weight:600;width:100%}.corner-level{position:absolute;top:19px;right:20px;z-index:40}.level-dot{width:42px;height:42px;border:1px solid #eef2e3a0;border-radius:50%;background:#f9fae7dc;color:#4f6e50;box-shadow:var(--shadow);font:500 21px Georgia,serif}.corner-level .floating-menu{left:auto;right:0;min-width:275px;gap:13px}.floating-menu .progress{width:100%;height:5px}.floating-menu small{font-size:12px;color:#7c8973}.resources{display:flex;justify-content:space-between;gap:20px;padding:8px 0;margin:0}.resources span{display:flex;align-items:center;gap:6px}.resources svg{width:29px;height:29px;display:block}.resources b{font-weight:500;font-size:18px}.pill.demo{position:absolute;top:22px;left:76px;z-index:35;font-size:11px;padding:7px 10px}.preview-banner{top:20px;font-size:10px}
.bottom-controls{position:absolute;left:18px;right:18px;bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;z-index:30;pointer-events:none}.bottom-controls>*{pointer-events:auto}.toolbar{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;gap:2px;padding:8px 12px;border:1px solid #fff8;background:#fbfaf2ef;border-radius:22px;box-shadow:var(--shadow);height:59px}.tool{min-width:44px;padding:5px 9px;gap:0;border-radius:10px}.tool svg{width:24px;height:24px;stroke-width:1.6}.tool span{display:none}.tool:hover{background:#e7edde}.page-switch{min-width:0;max-width:230px;padding:8px 6px;background:#fbfaf2e8;border:1px solid #fff8;border-radius:18px;box-shadow:var(--shadow);height:52px;display:flex;gap:3px;align-items:center}.page-switch .icon-button{width:27px;height:30px}#pageButton{font-size:12px;padding:2px 8px;max-width:154px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.view-controls{display:flex;gap:2px;align-items:center;background:#fbfaf2e8;border:1px solid #fff8;padding:8px;border-radius:18px;box-shadow:var(--shadow);height:52px;margin-left:auto}.view-controls .icon-button{width:30px;height:30px}.teacher-button{font-size:13px;padding:8px 10px;font-weight:600;border-radius:10px;color:#344b39}.teacher-button:hover{background:#e9efdf}.focus-toggle{position:absolute;bottom:80px;right:22px;z-index:35;width:26px;height:26px;padding:5px;border-radius:50%;background:#fbfaf1a8;display:grid;place-items:center;color:#61715b}.focus-toggle svg{width:16px;height:16px}.ui-hidden .bottom-controls,.ui-hidden .corner-start,.ui-hidden .corner-level{visibility:hidden;pointer-events:none}.ui-hidden .focus-toggle{opacity:.4}.ui-hidden .focus-toggle:hover{opacity:1}.sound-control{position:absolute;left:50%;transform:translateX(-50%);bottom:93px;width:340px;height:54px;min-height:0;border:1px solid #fff7;border-radius:18px;background:#fbfaf2ed;padding:8px 12px;gap:12px;box-shadow:var(--shadow);z-index:25;display:flex;align-items:center}.phase-button{height:36px;min-height:0;padding:7px 10px;border-radius:11px;gap:5px;font-size:12px;white-space:nowrap}.phase-button svg{height:17px;width:17px}.sound-body{min-width:0;flex:1}.sound-label{font-size:10px;line-height:1;min-height:10px;margin-bottom:7px;color:#69775f}.meter{height:9px;border-radius:6px;overflow:visible;background:#e4e9da}.meter input{height:29px;top:-10px;cursor:ew-resize}.meter input::-webkit-slider-thumb{height:21px;width:10px;border:0;background:transparent;cursor:ew-resize}.meter input::-moz-range-thumb{background:transparent;border:0;width:10px;height:21px}.meter #meterFill{height:100%;border-radius:6px;background:#9aae86;transition:width .35s linear}.meter.loud #meterFill{background:#cba57a}.meter #thresholdMark{height:19px;top:-5px;width:3px;border-radius:3px;background:#63795a;box-shadow:0 0 0 2px #fcfbf080}.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}.animal-notice{bottom:155px;left:50%;transform:translateX(-50%);font-size:12px;padding:7px 14px;max-width:80%;z-index:24;background:#faf7e6d4;border-radius:13px}.animal-lane{inset:0;height:auto;position:absolute;z-index:8;pointer-events:none}.animal{position:absolute;left:0;top:0;bottom:auto;width:112px;height:112px;transform:translate(-50%,-100%);transition:opacity 1.8s;animation:none;border:0;background:none;pointer-events:auto;will-change:left,top;overflow:visible}.animal .sprite{width:100%;height:100%;display:block;background-repeat:no-repeat;background-size:500% 600%;transform-origin:50% 90%;animation:living-breathe 7s ease-in-out infinite}.animal.warning .sprite{animation:none}.animal-name{display:none}.animal:hover .animal-name,.animal:focus-visible .animal-name{display:block;bottom:-13px;font-size:10px}.animal:after{height:6px;left:28%;right:28%;bottom:3px;filter:blur(3px);background:#45613d1b}.animal.leaving{opacity:0;pointer-events:none}.animal.look .sprite{animation:living-look 14s ease-in-out infinite}.animal.sniff .sprite{animation:living-sniff 8s ease-in-out infinite}.animal.rest .sprite{animation:living-breathe 9s ease-in-out infinite}.catalog-portrait{background-size:500% 600%}.drawing-layer{inset:12px;z-index:50}.toast{bottom:160px;font-size:12px;padding:10px 16px;max-width:530px;border-radius:12px;background:#466348eb}.demo-controls{position:fixed;bottom:0;left:0;right:0;height:48px;padding:6px 12px;font-size:11px;background:#f5ead0f5;gap:13px;z-index:55;flex-wrap:nowrap;justify-content:center}.demo-controls .button{font-size:11px;padding:7px 11px}.demo-controls input{width:100px}body.demo-mode .bottom-controls{bottom:61px}body.demo-mode .sound-control{bottom:138px}body.demo-mode .focus-toggle{bottom:125px}body.demo-mode .animal-notice{bottom:200px}dialog{max-height:88dvh;overflow:auto;padding:25px 28px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.modal-head h2{font-size:26px;font-family:'Segoe UI',sans-serif;letter-spacing:-.5px}.modal-head .eyebrow{display:none}.item-card .catalog-portrait{background-size:500% 600%}.world-decor-plant{z-index:3}.construction{z-index:3}.construction-label{display:none}
@keyframes living-breathe{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.008)}}@keyframes living-look{0%,35%,100%{transform:rotate(0)}45%,55%{transform:rotate(-1.2deg)}70%,80%{transform:rotate(.7deg)}}@keyframes living-sniff{0%,60%,100%{transform:translateY(0) rotate(0)}25%,40%{transform:translateY(1px) rotate(-.7deg)}}
@media(min-width:1700px){.board{inset:0}.animal-lane{inset:0;height:auto}.animal{width:140px;height:140px}.sound-control{bottom:100px;width:390px}.toolbar{height:64px;padding:9px 15px}.tool{padding:7px 12px}.tool svg{width:27px;height:27px}.widget-checklist h2{font-size:32px}.task-row{font-size:28px}.task-row input{width:30px;height:30px}.date-main{font-size:43px}.date-weekday{font-size:22px}.teacher-button{font-size:15px}}
@media(max-width:1100px){.toolbar{height:52px;padding:6px;gap:0}.tool{min-width:34px;padding:5px 7px}.tool svg{width:22px;height:22px}.page-switch{max-width:165px}#pageButton{max-width:90px;padding:2px 3px;font-size:10px}.view-controls{padding:5px}.view-controls .icon-button{width:26px}.teacher-button{padding:5px;font-size:12px}.bottom-controls{left:10px;right:10px}.widget-checklist .widget-body{padding:18px 20px}.widget-checklist h2{font-size:23px}.task-row{font-size:19px}.work-symbol{font-size:23px}.work-symbol-icon svg{width:24px}.date-main{font-size:28px}.date-weekday{font-size:16px}.sound-control{width:310px;bottom:83px}.animal{width:96px;height:96px}.focus-toggle{bottom:73px;right:15px}}
@media(max-width:760px){.toolbar{left:0;transform:none;bottom:55px}.bottom-controls{align-items:end}.view-controls{display:flex}.sound-control{bottom:139px;left:auto;right:10px;transform:none;width:270px}.corner-start,.corner-level{top:10px}.widget-checklist .widget-body{padding:12px}.widget-checklist h2{font-size:18px}.task-row input{width:20px;height:20px}.task-row{font-size:16px}.focus-toggle{right:12px;bottom:122px}.date-main{font-size:24px}.widget-head{height:32px;top:-37px}.demo-controls{height:52px;gap:5px}.demo-controls input{width:65px}.demo-controls .button{padding:5px;font-size:9px}body.demo-mode .sound-control{bottom:190px}}
@media(prefers-reduced-motion:reduce){.animal .sprite{animation:none!important}.weather-light{transition:none}}

.animal .facing{display:block;width:100%;height:100%;transform-origin:50% 80%}.field select{border:1px solid #d3dccb;border-radius:10px;padding:10px;background:#fffdf5;color:#354b39;font:inherit}
body{position:fixed;inset:0}.view-controls{flex-direction:row}.widget-symbol .widget-body{flex-direction:row}.work-symbol-icon{flex:none}.widget-symbol .work-symbol{flex:0 1 auto}.widget-text .widget-body{font-weight:400}.timer-dial strong{font-family:'Segoe UI',sans-serif!important}

.animal .facing{position:relative}.pose-shadow{position:absolute;inset:0;background-repeat:no-repeat;background-size:500% 600%;pointer-events:none;opacity:1;transition:opacity .6s ease}.work-symbol{margin:0}.widget-text .widget-body{padding-top:24px}

.catalog-portrait{width:125px;height:125px;aspect-ratio:1}.item-card .catalog-portrait{width:125px;height:125px}

/* 0.2.1: readable date and visual morning routines. */
.widget-date{background:#faf9f1;border:1px solid #eeeede;box-shadow:0 3px 16px #263c2110;border-radius:20px;color:#263e30}
.widget-date .widget-body{padding:5px 12px;filter:none;gap:2px}
.task-row .task-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;opacity:1;text-decoration:none}
.task-icon img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.task-row .task-text{min-width:0;flex:1}
.task-row.done .task-icon{opacity:.7}
.task-row{padding:3px 0}
