/* v1.5. Geometry comes from core/layout.js; icon controls float without shrinking the paper. */
body[data-page="studio"]{overflow:hidden}
.child-studio.studio-shell{position:relative;min-height:0;max-width:none;margin:0;gap:0;background:#FFFDF8;overflow:hidden;display:flex;flex-direction:column}
.studio-content{display:flex;flex-direction:column;gap:0;flex:1;min-height:0;min-width:0}
.child-studio .drawing-stage{flex:1;min-height:0;min-width:0;display:flex;align-items:flex-start;justify-content:center;margin:0;max-width:none;background:#FFFDF8}
.child-studio .board-wrap{flex-shrink:0;max-width:none;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;overflow:hidden;position:relative;background:#FFFDF8;touch-action:none}
#drawing-board{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}
.board-hint{position:absolute;top:22px;left:120px;right:12px;display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#A7B19B;font-size:12px;letter-spacing:0;opacity:.8;pointer-events:none}.board-hint[hidden]{display:none}.board-hint img{width:28px;height:28px}
.studio-utilities{z-index:5;position:absolute;top:var(--utility-top);left:var(--utility-left);display:flex;gap:6px;height:48px}
/* Visible circles are compact; their hit targets remain 48 px. */
.studio-utilities button{width:48px;height:48px;min-width:48px;min-height:48px;display:flex;align-items:center;justify-content:center;border:0;padding:0;background:transparent;border-radius:50%}
.utility-glyph{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,253,248,.96);border:1px solid #DCE4D5;box-shadow:0 2px 8px #61785312}
.studio-utilities .utility-tool .utility-glyph{background:#E5EEDD;border-color:#D8E3CD}.studio-utilities svg,.studio-utilities image{width:21px;height:21px}.studio-utilities button[disabled]{opacity:.32}
.child-studio .child-controls{width:100%;height:100px;flex:0 0 100px;max-width:none;display:flex;flex-direction:column;gap:4px;min-width:0;margin:0}
.tool-scroll,.context-options{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:none;min-width:0;scroll-padding:6px}.tool-scroll::-webkit-scrollbar,.context-options::-webkit-scrollbar{display:none}
.tool-scroll{width:100%;height:48px;flex:0 0 48px;border-radius:17px}
.child-studio .toolbox{display:flex;flex-direction:row;gap:6px;padding:0 2px;width:max-content;min-width:100%;height:48px;border:0;background:transparent;align-items:stretch;justify-content:flex-start;border-radius:0}
.child-studio .tool{width:64px;min-width:64px;flex:0 0 64px;height:48px;min-height:48px;border:2px solid transparent;border-radius:17px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;font-size:11px;background:#F9FBF4;color:#7B8E72;padding:0}
.child-studio .tool img{width:33px;height:33px;object-fit:contain}.child-studio .tool img.brush-art{width:26px}.child-studio .tool.selected{border-color:#A6BD96;background:#fff;color:#476543}.tool.selected:before{display:none}
.child-studio .context-tray{display:flex;height:48px;flex:0 0 48px;min-height:48px;min-width:0;border-radius:18px;background:#FFFDF8;overflow:hidden;margin:0}.context-options{width:100%;height:48px;position:relative}
.child-studio .colors,.child-studio .magic-tray,.child-studio .sticker-tray{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:6px;box-sizing:border-box;height:48px;padding:0 6px;min-width:100%;width:max-content;border:0;background:transparent}
.child-studio .swatch{position:relative;width:48px;height:48px;min-height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:50%}.child-studio .swatch:before{width:32px;height:32px}.swatch.selected:after{background:url('/miniprogram/assets/icon-check-white.png') center/contain no-repeat;border:0;transform:none;width:19px;height:19px}.swatch[data-id="#FFFFFF"].selected:after{background-image:url('/miniprogram/assets/icon-check.png')}.swatch[data-id="#FFFFFF"].selected{outline-color:#A9B59F}
.child-studio .magic-tray button{width:72px;flex:0 0 72px;height:48px;min-height:48px;padding:0;display:flex;align-items:center;justify-content:center;gap:3px;border:2px solid transparent;border-radius:15px;font-size:11px}.child-studio .magic-tray img{width:29px;height:29px}.child-studio .magic-tray .selected{border-color:#B7ADD2;background:#F4F0F8}
.child-studio .sticker-tray button{width:52px;height:48px;min-height:48px;flex:0 0 52px;border:2px solid transparent;border-radius:14px;padding:0;display:flex;align-items:center;justify-content:center;background:transparent}.child-studio .sticker-tray img{width:40px;height:40px}.child-studio .sticker-tray button.selected{border-color:#AEC59D;background:#F0F5E7}.child-studio .sticker-tray .more-stickers{width:62px;flex-basis:62px;gap:4px;font-size:10px;color:#7D9474;background:#EDF3E5}.more-stickers svg{width:21px;height:21px}

.child-studio.landscape-dock .child-controls{flex-direction:row;height:52px;flex-basis:52px;gap:12px}.landscape-dock .tool-scroll{width:46%;height:52px;flex:0 0 46%}.child-studio.landscape-dock .context-tray{height:52px;flex:1;align-items:center}.landscape-dock .context-options{height:48px}.child-studio.landscape-dock .tool{width:66px;min-width:66px;flex-basis:66px}
.paper-row{position:relative;min-width:0}.paper-row+.paper-row{margin-top:2px}.paper-row .paper-next{position:absolute;right:-18px;top:50%;transform:translateY(-65%);background:#FFFDF8;box-shadow:0 3px 16px #52654319}.paper-carousel:focus-visible,.tool-scroll:focus-visible,.context-options:focus-visible{outline:2px solid #92B2CF;outline-offset:-2px}.child-home .paper-carousel .theme-card{flex-basis:180px}.paper-row:nth-child(3) .theme-card{background:#FDFBF6}.paper-carousel .theme-card:hover{transform:none;box-shadow:0 3px 14px #52654312}
/* One compact room: primary destinations, three secondary actions, and a clear return. */
.modal:has(.room-panel){height:580px;max-height:calc(100dvh - 32px);padding:24px 20px 16px;overflow:hidden;max-width:450px}.room-panel{height:100%;display:flex;flex-direction:column;min-height:0}.room-heading{display:flex;align-items:center;gap:12px;text-align:left;padding-right:28px;padding-bottom:16px;flex-shrink:0}.room-heading>img{width:76px;height:64px;object-fit:contain;border-radius:18px;flex-shrink:0}.room-heading h2{font-size:21px;font-weight:600;letter-spacing:1px;color:#405D41;margin:0}.room-heading p{font-size:11px;color:#7F9378;margin:7px 0 0;line-height:1.5}.room-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#D5DFC9 transparent;padding:0 2px}.room-cards.box-actions{display:flex;flex-direction:column;gap:10px;margin:4px 0 16px}.room-cards.box-actions button{padding:14px 16px;border-radius:20px;display:flex;justify-content:flex-start;gap:14px;background:#EDF2E7;min-height:80px;text-align:left}.room-cards.box-actions button+button{background:#F3ECE2}.room-cards button>svg{width:32px;height:32px;flex-shrink:0}.room-cards button>span{flex:1;font-size:16px;font-weight:600}.room-cards small{display:block;font-size:11px;font-weight:400;color:#859079;margin-top:6px}.room-cards button>svg:last-child{width:18px;height:18px}.room-panel .extra-tools{border:0;margin:0;padding:0 4px}.room-panel .extra-tools h3{text-align:left;margin:12px 0 8px;font-size:12px}.room-panel .widths{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0;border:0}.room-panel .width-button{width:100%;height:56px;display:flex;flex-direction:row;gap:8px;border:1px solid #E4E8DC;font-size:11px}.room-utilities.box-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 8px}.room-utilities.box-actions button{background:transparent;flex-direction:column;gap:6px;min-height:62px;font-size:11px;border-radius:14px}.room-utilities svg{width:21px;height:21px}.room-footer{padding-top:12px;flex-shrink:0}.room-footer .primary{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;border-radius:18px;box-shadow:none}.room-footer .primary svg{width:20px;height:20px}.parent-link{margin:4px auto 0;display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;font-size:11px;color:#8A9782}.parent-link svg{width:15px;height:15px}
@media(max-width:700px){.child-home .paper-carousel .theme-card{flex-basis:146px}.child-home .paper-carousel .theme-picture{aspect-ratio:1.5}.paper-row .paper-next{display:none}}
@media(orientation:landscape) and (max-height:600px){.modal:has(.room-panel){height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);max-width:680px;padding:16px}.room-panel{position:relative;padding-left:168px}.room-heading{position:absolute;left:0;top:0;width:146px;display:block;padding:0}.room-heading>img{width:94px;height:74px;margin-bottom:8px}.room-heading h2{font-size:19px}.room-heading p{line-height:1.5}.room-footer{display:flex;align-items:center;gap:8px}.room-footer .primary{width:auto;flex:1}.parent-link{margin:0;min-width:86px}.room-cards.box-actions{margin-top:0;gap:8px}.room-cards.box-actions button{min-height:64px;padding:10px 14px}.room-utilities.box-actions{margin:8px 0 0}.room-panel .width-button{height:50px}.child-home .welcome{padding:20px 30px;min-height:200px}.child-home .welcome-art{width:265px;right:20px;bottom:-10px}}
@media(prefers-reduced-motion:reduce){.tool-scroll,.context-options,.paper-carousel{scroll-behavior:auto!important}}
@media(orientation:landscape) and (max-height:600px){.modal:has(.room-panel) .close{left:114px;right:auto;top:6px}}

/* Simple one-tap controls share the existing option rail. */
.shape-choice,.quick-size{width:48px;height:48px;min-width:48px;min-height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;border:2px solid transparent;border-radius:14px;padding:0;background:transparent;box-sizing:border-box}
.shape-choice image,.shape-choice img{width:34px;height:34px;object-fit:contain}.shape-choice.selected,.quick-size.selected,.eraser-size.selected{background:#E9F1E2;border-color:#ABC39C}
.quick-size>view,.quick-size>span{background:#7C9870;border-radius:50%}.option-divider{width:1px;height:26px;background:#DDE6D3;flex:0 0 1px;margin:0 6px}
.eraser-options{display:flex;align-items:center;gap:8px;height:48px;width:max-content;padding:0 6px}.eraser-size{width:88px;flex:0 0 88px;height:48px;min-height:48px;border:2px solid transparent;border-radius:14px;padding:0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#7F9275;background:transparent;box-sizing:border-box}.eraser-size>view,.eraser-size>span:first-child{background:#E7BCC2;border-radius:5px;transform:rotate(-12deg)}

.draft-caption{font-size:12px;color:#738B69;max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:12px 0 0 8px!important}.work-card,.work-info,.work-info>div{min-width:0}.work-info h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-actions button{min-width:48px;min-height:48px}.work-info .icon-button{flex-shrink:0}

@media(max-width:360px){.room-heading{gap:10px;padding-right:30px}.room-heading>img{width:56px;height:52px}.room-heading h2{font-size:18px;letter-spacing:0;white-space:nowrap}.room-heading p{font-size:10px}}

/* v1.6: more room, quiet floating controls, brush materials within one drawing mode. */
.studio-utilities{height:0;display:block;right:var(--utility-right,4px);pointer-events:none}
.studio-utilities button{position:absolute;top:0;pointer-events:auto}.studio-utilities .undo-button{left:0}.studio-utilities .utility-tool{right:0}
.board-hint{left:64px;right:64px;justify-content:center;top:18px;font-size:11px}
.pen-choice,.pattern-choice{min-width:58px;width:58px;flex:0 0 58px;height:48px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:2px;padding:0;border:2px solid transparent;border-radius:14px;font-size:10px;background:transparent}
.pen-choice img,.pen-choice image{width:29px;height:36px;object-fit:contain}.pattern-choice img,.pattern-choice image{width:30px;height:30px;object-fit:contain}
.pen-choice.selected,.pattern-choice.selected{background:#EAF1E3;border-color:#ABC39C}
.child-studio .tool{width:58px;min-width:58px;flex-basis:58px;font-size:10px;border-radius:14px}.child-studio .tool img{width:27px;height:27px}.child-studio .toolbox{gap:4px}.child-studio .sticker-tray .more-stickers{width:48px;flex-basis:48px;background:#EDF3E5}.more-stickers svg{width:27px;height:27px}
.overlay{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.modal{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.paper-picker-link{font-size:12px;gap:6px;white-space:nowrap}.paper-picker-link svg{width:18px;height:18px}

/* v1.7: physical tools without captions, a separate native-menu row, a side rack. */
.board-hint{display:none!important}
.utility-glyph{background:#FFFDF8;box-shadow:none;border-color:#D8E1D3}.studio-utilities .utility-tool .utility-glyph{background:#E4EEE3}
.child-studio .tool{width:56px;min-width:56px;flex-basis:56px;background:#F8F7EF;border-color:transparent;border-radius:15px}
.child-studio .tool img,.child-studio .tool img.brush-art{width:46px;height:46px}
.child-studio .tool.selected{border-color:#80AB94;background:#E5F0E5;box-shadow:inset 0 -3px 0 #C0D8C3}
.child-studio .context-tray{background:#FFFCF3;border-radius:15px}
.child-studio .magic-tray button,.child-studio .sticker-tray button,.pen-choice,.pattern-choice,.eraser-size{width:52px;min-width:48px;flex-basis:52px;justify-content:center;padding:0;gap:0}
.pen-choice img,.pen-choice image{width:42px;height:44px}.pattern-choice img,.pattern-choice image{width:38px;height:38px;border-radius:9px}
.child-studio .magic-tray img{width:42px;height:42px}.child-studio .sticker-tray img{width:42px;height:42px}
.pen-choice.selected,.pattern-choice.selected,.shape-choice.selected{background:#E5F0E5;border-color:#80AB94}
.child-studio.landscape-dock .studio-content{flex-direction:row}
.child-studio.landscape-dock .child-controls{width:104px;height:100%;flex:0 0 104px;flex-direction:row;gap:4px;min-height:0}
.child-studio.landscape-dock .tool-scroll{width:48px;flex:0 0 48px;height:100%;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior-y:contain;border-radius:16px;background:#E8EBDD}
.child-studio.landscape-dock .toolbox{flex-direction:column;gap:6px;width:48px;min-width:48px;height:max-content;min-height:100%;padding:0}
.child-studio.landscape-dock .tool{width:48px;min-width:48px;height:52px;min-height:52px;flex:0 0 52px}
.child-studio.landscape-dock .context-tray{height:100%;width:52px;flex:0 0 52px;min-height:0}
.child-studio.landscape-dock .context-options{width:52px;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior-y:contain}
.child-studio.landscape-dock .colors,.child-studio.landscape-dock .magic-tray,.child-studio.landscape-dock .sticker-tray,.child-studio.landscape-dock .eraser-options{flex-direction:column;width:52px;min-width:52px;height:max-content;min-height:100%;padding:0 2px;gap:6px}
.child-studio.landscape-dock .context-options button{width:48px;min-width:48px;height:48px;min-height:48px;flex:0 0 48px}
.child-studio.landscape-dock .option-divider{width:28px;height:1px;flex:0 0 1px;margin:4px 0}
.room-cards.box-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}
.room-cards.box-actions button{padding:0;min-height:94px;justify-content:center;border-radius:22px}.room-cards button>img{width:78px;height:78px;object-fit:contain}
.room-utilities.box-actions{margin:10px 0}.room-utilities.box-actions button{min-height:56px;background:#F2F3E9}.room-utilities img{width:40px;height:40px}.room-utilities svg{width:26px;height:26px}
.room-footer{display:flex;gap:12px;align-items:center;padding-top:10px}.room-footer .primary{min-height:56px;flex:1;background:#E3EFDF}.room-footer .primary img{width:48px;height:48px}.parent-link{width:56px;min-width:56px;height:56px;margin:0;background:#F1F0E7;border-radius:16px}.parent-link svg{width:24px;height:24px}
.modal:has(.room-panel){height:430px}.room-panel .width-button{height:48px}.room-panel .width-dot{max-width:30px;max-height:30px}
.family-tabs button{justify-content:center}.family-tabs img{width:38px;height:38px}.sticker-grid button{padding:12px 4px}.sticker-grid img{width:76px;height:76px}
.child-home .start-big{width:104px;min-width:104px;height:84px;min-height:84px;padding:0;background:#DDEBDC;border:1px solid #C6DCC8;border-radius:26px;box-shadow:0 5px 0 #CBDAC633}
.child-home .start-big>img{width:76px;height:76px}.action-art{width:48px;height:48px;object-fit:contain}.paper-picker-link,.section-heading>.link{min-width:52px;min-height:52px;padding:0}.paper-picker-link img,.section-heading>.link img{width:44px;height:44px}.child-home .recent-empty{justify-content:center}.child-home .recent-empty img{width:72px;height:72px}
.navigation .quiet{width:52px;padding:0;justify-content:center}.navigation svg{width:24px;height:24px}.work-actions button{min-width:52px}.work-actions svg{width:24px;height:24px}
@media(orientation:landscape) and (max-height:600px){.modal:has(.room-panel){height:calc(100dvh - 24px)}.room-cards.box-actions{grid-template-columns:1fr 1fr}.room-cards.box-actions button{min-height:74px}.room-cards button>img{width:64px;height:64px}.room-utilities.box-actions button{min-height:48px}.room-footer .primary{min-height:48px}.parent-link{min-width:48px;width:48px;height:48px}}

/* Materials and clearly labelled settings. */
.fill-material{position:relative;width:52px;min-width:52px;height:48px;flex:0 0 52px;padding:3px;border:1px solid #ADBEAC;border-radius:13px;background:#FFF9EB}.fill-material img{width:40px;height:40px;border-radius:10px}
.picker-caret{position:absolute;right:4px;bottom:4px;width:6px;height:6px;border-right:2px solid #577C65;border-bottom:2px solid #577C65;transform:rotate(45deg)}
.fill-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}
.fill-library button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:88px;padding:8px 2px;border:2px solid transparent;border-radius:18px;background:#F2F4E9;color:#436551;font-size:13px}
.fill-library img{width:52px;height:52px;border-radius:13px}.fill-library .selected{border-color:#77A98C;background:#E4F1E3}
.modal:has(.room-panel){height:540px}.room-cards.box-actions button{min-height:100px;flex-direction:column;gap:0;font-size:14px;color:#47694F}.room-cards button>img{width:62px;height:62px}
.room-utilities.box-actions button{min-height:64px;flex-direction:column;gap:4px;font-size:13px}.room-utilities img{width:30px;height:30px}.room-utilities svg{width:23px;height:23px}
.room-panel .width-button{height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.width-button span{font-size:11px;color:#6F826D}
.room-footer .primary{gap:8px;color:#3B6950;font-size:15px}.room-footer .primary img{width:34px;height:34px}.room-footer .parent-link{width:72px;min-width:72px;display:flex;flex-direction:column;gap:3px;font-size:11px}
.room-music{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px}.room-music strong{font-size:14px;color:#47694F}.room-music small{display:block;font-size:11px;color:#859580;margin-top:4px}
.fill-feedback{pointer-events:none;position:absolute;width:38px;height:38px;margin:-19px;border:3px solid var(--fill-color,#81B397);border-radius:50%;opacity:0;box-shadow:0 0 0 6px #FFFFFFA0}
.fill-feedback.show{animation:fill-bloom .48s ease-out both}@keyframes fill-bloom{0%{opacity:.8;transform:scale(.25)}100%{opacity:0;transform:scale(2.5)}}
@media(prefers-reduced-motion:reduce){.fill-feedback.show{animation:none;opacity:0}}
@media(orientation:landscape) and (max-height:600px){.modal:has(.room-panel){height:calc(100dvh - 24px)}.room-cards.box-actions button{min-height:78px}.room-cards button>img{width:45px;height:45px}.room-music{padding:6px 2px}.room-utilities.box-actions button{min-height:56px}.fill-library button{min-height:76px}.fill-library{gap:8px;margin-top:12px}}

@media(min-height:601px){.modal:has(.room-panel):not(:has(.extra-tools)){height:440px}}

/* v2: two generous rails, with undo always within reach. */
.child-studio .studio-content{gap:0!important}.child-studio .board-wrap{border-radius:14px 14px 0 0}.child-studio .studio-utilities .utility-tool{left:0;right:auto}.child-studio .child-controls{height:132px;flex:0 0 132px;gap:4px;padding:0;min-width:0}.child-studio .primary-rail{display:flex;gap:4px;height:64px;min-height:64px;min-width:0;flex:0 0 64px}.child-studio .tool-scroll{height:64px;min-width:0;flex:1;width:0}.child-studio .toolbox{height:64px;gap:4px;padding:0;width:max-content;min-width:100%}.child-studio .tool,.child-studio .dock-undo{width:64px;min-width:64px;flex:0 0 64px;height:64px;min-height:64px!important;border:2px solid transparent;border-radius:18px;padding:0;background:#F8F7EF;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.child-studio .dock-undo{background:#E1EADB;border-color:#CEDCC5}.child-studio .dock-undo[disabled]{opacity:.38}.child-studio .tool img,.child-studio .dock-undo img{width:54px;height:54px;object-fit:contain}.child-studio .context-tray,.child-studio .context-options{height:64px;min-height:64px}.child-studio .context-tray{flex:0 0 64px;border-radius:18px}.child-studio .colors,.child-studio .magic-tray,.child-studio .sticker-tray,.child-studio .eraser-options{height:64px;padding:0 4px;gap:4px}.child-studio .swatch,.child-studio .pen-choice,.child-studio .pattern-choice,.child-studio .shape-choice,.child-studio .quick-size,.child-studio .magic-tray button,.child-studio .sticker-tray button,.child-studio .more-stickers,.child-studio .eraser-size,.child-studio .fill-material{width:60px;min-width:60px;height:64px;min-height:64px;flex:0 0 60px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0;border:2px solid transparent;border-radius:17px;background:transparent}.child-studio .swatch{border-radius:50%}.child-studio .swatch>span{width:40px;height:40px}.child-studio .pen-choice img,.child-studio .magic-tray img,.child-studio .sticker-tray button img{width:50px;height:50px;object-fit:contain}.child-studio .fill-material img{width:48px;height:48px;border-radius:13px}.child-studio .fill-material.selected{border-color:#80AB94;background:#E5F0E5}.child-studio .board-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#FFFDF8E8;color:#6F8D75;font-size:14px;pointer-events:none}.child-studio.landscape-dock .child-controls{width:132px;flex:0 0 132px;height:100%;gap:4px}.child-studio.landscape-dock .primary-rail{flex:0 0 64px;width:64px;min-height:0;height:100%;flex-direction:column;gap:4px}.child-studio.landscape-dock .tool-scroll{width:64px;flex:1;height:0;min-height:0}.child-studio.landscape-dock .toolbox{width:64px;min-width:64px;height:auto;flex-direction:column;gap:4px}.child-studio.landscape-dock .tool,.child-studio.landscape-dock .dock-undo{width:64px;min-width:64px;height:64px;flex:0 0 64px;min-height:64px!important}.child-studio.landscape-dock .context-tray{width:64px;flex:0 0 64px;height:100%;min-height:0}.child-studio.landscape-dock .context-options{width:64px;height:100%;min-height:0}.child-studio.landscape-dock .colors,.child-studio.landscape-dock .magic-tray,.child-studio.landscape-dock .sticker-tray,.child-studio.landscape-dock .eraser-options{width:64px;min-width:64px;height:auto;min-height:100%;padding:0;gap:4px;flex-direction:column}.child-studio.landscape-dock .swatch,.child-studio.landscape-dock .pen-choice,.child-studio.landscape-dock .pattern-choice,.child-studio.landscape-dock .shape-choice,.child-studio.landscape-dock .quick-size,.child-studio.landscape-dock .magic-tray button,.child-studio.landscape-dock .sticker-tray button,.child-studio.landscape-dock .more-stickers,.child-studio.landscape-dock .eraser-size,.child-studio.landscape-dock .fill-material{width:64px;min-width:64px;height:64px;min-height:64px;flex:0 0 64px}.child-studio .context-tray{overflow:hidden}.child-studio .child-controls{display:flex;flex-direction:column}.child-studio .primary-rail .tool-scroll{overflow-x:auto;overflow-y:hidden}.child-studio.landscape-dock .child-controls{flex-direction:row}.child-studio.landscape-dock .primary-rail .tool-scroll{overflow-y:auto;overflow-x:hidden}.child-studio .swatch{background:radial-gradient(circle,var(--color) 0 19px,transparent 20px)}.child-studio .swatch.selected{border-color:var(--color)}

/* v2.0.1: the paper meets its workspace edge without a decorative frame. */
.child-studio .board-wrap{border-radius:0!important;box-shadow:none!important}

/* v2.1: nearby selector slots replace the long mixed option rail. */
.child-studio .primary-rail{width:100%}.child-studio .context-tray{align-items:center;justify-content:center;background:#F5F6EC;border:1px solid #E2E7D8;box-sizing:border-box;overflow:visible}
.context-shortcuts{width:100%;height:64px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 10px;box-sizing:border-box}
.shortcut{position:relative;width:72px;min-width:64px;max-width:96px;height:58px;min-height:58px;flex:1 1 72px;border:2px solid transparent;border-radius:17px;padding:0;background:#FFFDF7;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 #DDE5D4}
.shortcut.open{border-color:#729C83;background:#E4EFE4;box-shadow:inset 0 -3px 0 #C3D8C5}.shortcut img{width:50px;height:50px;object-fit:contain}.size-glyph{width:48px;height:48px;display:flex;align-items:center;justify-content:center}.size-glyph>span{border-radius:50%;background:#789985;box-shadow:inset 0 0 0 3px #FFFFFF90}
.color-shortcut>span{width:42px;height:42px;border-radius:50%;border:2px solid #FFF;box-shadow:0 0 0 1px #9AA99A55}.library-shortcut{background:#E8EFE2}
.choice-shelf{position:absolute;z-index:8;left:8px;right:8px;bottom:calc(var(--dock) + 8px);height:min(310px,42vh);padding:12px 10px 10px;border:1px solid #D7E2D2;border-radius:22px;background:#FFFEF8;box-shadow:0 10px 34px #40554432;box-sizing:border-box;overflow:hidden}
.choice-scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.choice-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:10px 2px 8px}
.choice{min-width:0;width:100%;height:66px;min-height:66px;padding:2px;border:2px solid transparent;border-radius:16px;background:#F4F5EB;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.choice.selected{border-color:#78A58B;background:#E2EFE2;box-shadow:inset 0 -3px 0 #C0D7C2}.choice img{width:56px;height:56px;object-fit:contain}.size-choice>span{border-radius:50%;background:#769681}.color-choice>span{width:42px;height:42px;border-radius:50%;border:2px solid #FFF;box-shadow:0 0 0 1px #83958644}
.child-studio.landscape-dock .context-shortcuts{height:100%;width:64px;flex-direction:column;justify-content:center;gap:7px;padding:8px 0}.child-studio.landscape-dock .shortcut{width:58px;min-width:58px;height:64px;min-height:58px;flex:0 1 64px}.child-studio.landscape-dock .shortcut img{width:49px;height:49px}.child-studio.landscape-dock .choice-shelf{left:auto;right:calc(var(--dock) + 8px);bottom:8px;width:min(420px,52vw);height:calc(100% - 16px)}
.fill-feedback{border:0;box-shadow:none;background:radial-gradient(circle,var(--fill-color,#81B397) 0 14%,#81B39755 42%,transparent 72%)}.fill-feedback.show{animation:fill-bloom .48s ease-out both}@keyframes fill-bloom{0%{opacity:.68;transform:scale(.35)}100%{opacity:0;transform:scale(3.1)}}

/* v2.2: tactile, icon-only child controls with a quieter visual rhythm. */
.child-studio .child-controls{background:linear-gradient(180deg,#F8F7EF 0%,#ECEFDF 100%);border-top:1px solid #DDE4D5;padding:3px 4px 4px;gap:3px;box-shadow:0 -4px 18px #5063480C}.child-studio .primary-rail{height:62px;min-height:62px;flex-basis:62px}.child-studio .tool-scroll,.child-studio .toolbox{height:62px}.child-studio .toolbox{gap:5px;padding:0 2px}.child-studio .tool,.child-studio .dock-undo{height:58px;min-height:58px!important;width:62px;min-width:62px;flex-basis:62px;border-radius:19px;background:#FFFDF8;border:1px solid #E1E5D9;box-shadow:0 3px 0 #D9DFD1;padding:0;position:relative}.child-studio .tool img,.child-studio .dock-undo img{width:50px;height:50px}.child-studio .dock-undo{background:#E4EDDE;border-color:#CBDAC2}.child-studio .tool.selected{background:#DCEBDD;border-color:#6F9D82;box-shadow:inset 0 -3px 0 #AFCDB5,0 2px 0 #CDD8C8}.child-studio .tool.selected:after{content:"";position:absolute;left:50%;bottom:3px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#527C65}.child-studio .context-tray{height:62px;min-height:62px;flex-basis:62px;background:#F4F3E9;border-color:#DCE2D5;border-radius:20px}.child-studio .context-shortcuts{height:62px;gap:8px;padding:0 8px}.child-studio .shortcut{height:56px;min-height:56px;border-radius:19px;background:#FFFEFA;border-color:#E1E5DA;box-shadow:0 3px 0 #D9DFD3}.child-studio .shortcut.open{background:#E0EDDF;border-color:#709C82;box-shadow:inset 0 -3px 0 #B7D1BA}.child-studio .shortcut img{width:47px;height:47px}.child-studio .color-shortcut>span{width:39px;height:39px}.child-studio .size-glyph{width:44px;height:44px}.child-studio .choice-shelf{border-radius:26px;border-color:#CFDCCB;background:#FFFDF8;box-shadow:0 14px 40px #34493B36}.child-studio .choice{border-radius:19px;background:#F4F5EC;box-shadow:0 2px 0 #E0E4D9}.child-studio .choice.selected{border-color:#6F9C82;background:#DDECDD;box-shadow:inset 0 -3px 0 #B6D0B9}.child-studio.landscape-dock .child-controls{padding:4px 3px 4px 4px}.child-studio.landscape-dock .primary-rail,.child-studio.landscape-dock .tool-scroll,.child-studio.landscape-dock .toolbox{width:62px;min-width:62px}.child-studio.landscape-dock .tool,.child-studio.landscape-dock .dock-undo{width:58px;min-width:58px;height:62px;min-height:62px!important;flex-basis:62px}.child-studio.landscape-dock .context-tray,.child-studio.landscape-dock .context-shortcuts{width:62px}.child-studio.landscape-dock .shortcut{width:56px;min-width:56px;border-radius:18px}

/* Preserve the established large 64 px targets and exact 132 px dock budget. */
.child-studio .child-controls{padding:0;gap:4px;border-top:0;box-shadow:inset 0 1px 0 #DDE4D5,0 -4px 18px #5063480C}.child-studio .primary-rail{height:64px;min-height:64px;flex-basis:64px}.child-studio .tool-scroll,.child-studio .toolbox{height:64px}.child-studio .tool,.child-studio .dock-undo{width:64px;min-width:64px;flex-basis:64px;height:64px;min-height:64px!important}.child-studio .context-tray{height:64px;min-height:64px;flex-basis:64px}.child-studio .context-shortcuts{height:64px}.child-studio.landscape-dock .child-controls{padding:0;gap:4px}.child-studio.landscape-dock .primary-rail,.child-studio.landscape-dock .tool-scroll,.child-studio.landscape-dock .toolbox,.child-studio.landscape-dock .context-tray,.child-studio.landscape-dock .context-shortcuts{width:64px;min-width:64px}.child-studio.landscape-dock .tool,.child-studio.landscape-dock .dock-undo{width:64px;min-width:64px;height:64px;min-height:64px!important;flex-basis:64px}

/* Illustrated tool icons share the same rounded, two-tone family as native. */
.child-studio .tool>.app-icon,.child-studio .dock-undo>.app-icon{width:48px;height:48px}.child-studio .tool .premium-mark{position:absolute;right:3px;bottom:3px;width:18px;height:18px;display:grid;place-items:center;border-radius:9px;background:#FFFDF8;box-shadow:0 1px 3px #40554426}.child-studio .tool .premium-mark .app-icon{width:14px;height:14px}.child-studio .premium-tool{background:#F7F4EC}
.child-studio .shortcut>.app-icon,.child-studio .choice>.app-icon{width:46px;height:46px}.child-studio .choice-grid{padding:10px 2px 8px}

@media (min-width:700px) and (min-height:700px){
  .child-studio .child-controls{height:156px;flex:0 0 156px;gap:4px;max-width:none}
  .child-studio .primary-rail,.child-studio .tool-scroll,.child-studio .toolbox{height:76px;min-height:76px;flex-basis:76px}
  .child-studio .tool,.child-studio .dock-undo{width:76px;min-width:76px;flex-basis:76px;height:76px;min-height:76px!important;border-radius:22px}
  .child-studio .tool>.app-icon,.child-studio .dock-undo>.app-icon{width:58px;height:58px}
  .child-studio .context-tray,.child-studio .context-shortcuts{height:76px;min-height:76px;flex-basis:76px}
  .child-studio .shortcut{height:68px;min-height:68px;max-width:118px;border-radius:21px}.child-studio .shortcut img{width:57px;height:57px}
  .child-studio .size-glyph{width:56px;height:56px}.child-studio .color-shortcut>span{width:48px;height:48px}
  .child-studio .choice-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.child-studio .choice{height:78px;min-height:78px}.child-studio .choice img{width:66px;height:66px}
  .child-studio.landscape-dock .child-controls{width:156px;flex:0 0 156px;height:100%}
  .child-studio.landscape-dock .primary-rail,.child-studio.landscape-dock .tool-scroll,.child-studio.landscape-dock .toolbox,.child-studio.landscape-dock .context-tray,.child-studio.landscape-dock .context-shortcuts{width:76px;min-width:76px}
  .child-studio.landscape-dock .tool,.child-studio.landscape-dock .dock-undo,.child-studio.landscape-dock .shortcut{width:76px;min-width:76px;height:76px;min-height:76px;flex-basis:76px}
  .child-studio.landscape-dock .choice-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
