@font-face{font-family:ColourGrandstander;src:url(/app/colour/grandstander-latin.1bb44f8aae.woff2) format('woff2');font-display:swap}.colour-screen{color-scheme:light;--navy:#1c2354;--navy-deep:#171d46;--cream:#fff8e7;--teal:#214f56;--white:#fff;--yellow:#ffda74;--line:#44517b;--muted:#d1d5ee}.colour-screen *{box-sizing:border-box}.colour-screen{margin:0;background:var(--navy);color:var(--cream);font:700 17px/1.4 Nunito,system-ui,sans-serif;background-image:radial-gradient(circle at 15% 13%,#40477a55,transparent 30%),radial-gradient(circle at 90% 78%,#31376f55,transparent 35%)}.colour-screen button,.colour-screen a{-webkit-tap-highlight-color:transparent}.colour-screen button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation}.colour-screen button:disabled{opacity:.42;cursor:default}.colour-screen button:focus-visible,.colour-screen a:focus-visible,.colour-screen canvas:focus-visible{outline:3px solid var(--yellow);outline-offset:5px}.colour-screen button:hover:not(:disabled){filter:brightness(1.045)}.colour-screen [hidden]{display:none!important}.colour-screen h1,.colour-screen h2,.colour-screen p{margin:0}.colour-screen h1,.colour-screen h2{font-family:ColourGrandstander,Nunito,sans-serif;font-weight:800}.colour-screen h1{font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.18}.colour-screen h2{font-size:1.12rem}.colour-screen .colour-shell{max-width:1280px;min-height:100dvh;margin:auto;padding:24px max(20px,env(safe-area-inset-left)) 16px}.colour-screen .topbar{display:flex;align-items:center;gap:24px;margin:0 0 28px}.colour-screen .back{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 18px;border:1px solid #65709d;border-radius:28px;color:var(--cream);text-decoration:none;font-size:1.1rem;background:#ffffff08}.colour-screen .back:first-letter{font-size:1.8rem}.colour-screen .heading{flex:1}.colour-screen .eyebrow{font-size:.78rem;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:6px}.colour-screen .quiet{background:#2c3564;border:1px solid #5e6994;border-radius:18px;min-height:50px;padding:10px 18px}.colour-screen .colour-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:34px;align-items:start}.colour-screen .picture-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.colour-screen .picture-heading h2{font-size:1.6rem}.colour-screen .picture-heading p{color:var(--muted);font-size:.88rem;margin-top:3px}.colour-screen .level-switch{display:flex;padding:5px;gap:2px;border:1px solid #59658e;background:#131b43;border-radius:25px;flex-shrink:0}.colour-screen .level-switch button{font-size:.87rem;border-radius:21px;min-height:42px;padding:9px 15px;background:transparent;color:var(--muted)}.colour-screen .level-switch button[aria-pressed=true]{background:#fff4d6;color:#2c3d58}.colour-screen .paper{width:100%;position:relative;aspect-ratio:1;background:#fbf9f3;border:5px solid #d7c8f0;border-radius:32px;box-shadow:0 8px 0 #121a4029;overflow:hidden;isolation:isolate}.colour-screen .paper canvas,.colour-screen .paper>svg{position:absolute;inset:0;width:100%;height:100%}.colour-screen .paper canvas{touch-action:none;cursor:crosshair}.colour-screen .paper>svg{pointer-events:none}.colour-screen .under-picture{display:flex;justify-content:space-between;gap:10px;margin:16px 5px 0;color:#dde0f5;font-size:.9rem}.colour-screen .under-picture [data-colour-id="progress"]{white-space:nowrap;color:#ffe9aa}.colour-screen .tools{padding-top:4px}.colour-screen .tools h2{margin-bottom:11px;font-size:1rem}.colour-screen .tools section{margin-bottom:22px}.colour-screen .friends{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.colour-screen .friends button{background:#293261;border:2px solid transparent;border-radius:19px;padding:6px 4px 10px;font-size:.82rem;line-height:1.2}.colour-screen .friends button[aria-pressed=true]{border-color:#ffdc7e;background:#35416e;color:#ffe7a1}.colour-screen .friends img{display:block;width:100%;height:74px;object-fit:contain;margin:0 auto 5px}.colour-screen .tool-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px}.colour-screen .tool-switch button{display:flex;justify-content:center;align-items:center;gap:10px;background:#2a3461;min-height:56px;border:1px solid #515d8b;border-radius:18px}.colour-screen .tool-switch button[aria-pressed=true]{background:#ffe092;color:#273b51;border-color:#fff0ba}.colour-screen .tool-switch svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.colour-screen .brush-sizes{display:flex;align-items:center;gap:8px;margin-top:12px}.colour-screen .brush-sizes>span{flex:1;color:var(--muted);font-size:.85rem}.colour-screen .brush-sizes button{width:40px;height:40px;min-height:40px;border-radius:50%;background:#2c3564;border:1px solid #55618c;font-size:.83rem}.colour-screen .brush-sizes button[aria-pressed=true]{background:#f4f1ff;color:#283a5b}.colour-screen .palette{display:flex;flex-wrap:wrap;gap:13px}.colour-screen .swatch{background:var(--swatch);width:48px;height:48px;border-radius:50%;border:5px solid #ffffff99;position:relative;box-shadow:inset 0 -2px 0 #1c235423;outline-offset:5px}.colour-screen .swatch[aria-pressed=true]{outline:3px solid #fff3c6}.colour-screen .swatch[aria-pressed=true]:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#24364b;font-size:1.2rem;text-shadow:0 1px #ffffff88}.colour-screen .swatch.rainbow{background:conic-gradient(#f5b6cd,#ffd783,#aad8a4,#91d6e6,#baa7ed,#f5b6cd)}.colour-screen .helper{display:flex;align-items:center;gap:10px;background:#293664;border:1px solid #60739c;border-radius:21px;width:100%;padding:10px 12px;text-align:left;min-height:78px}.colour-screen .helper img{width:42px;height:53px;object-fit:contain}.colour-screen .helper>span:nth-child(2){flex:1}.colour-screen .helper strong{display:block;font-size:.92rem}.colour-screen .helper small{display:block;font-size:.73rem;color:var(--muted);font-weight:650;line-height:1.3;margin-top:3px}.colour-screen .toggle{display:block;width:37px;height:23px;flex:none;border-radius:20px;background:#596186;padding:3px}.colour-screen .toggle:after{content:'';display:block;width:17px;height:17px;border-radius:50%;background:white;transition:transform .15s}.colour-screen .helper[aria-pressed=true] .toggle{background:#83d1ae}.colour-screen .helper[aria-pressed=true] .toggle:after{transform:translateX(14px)}.colour-screen .edit-actions{display:flex;gap:10px;margin-bottom:22px}.colour-screen .undo{min-height:56px;padding:10px 20px;flex:1;background:#eeebff;color:#2a3c5b;border-radius:18px;font-size:1.1rem}.colour-screen .edit-actions .quiet{font-size:.85rem;padding:9px 15px}.colour-screen .keep-actions{display:flex;gap:8px}.colour-screen .save{min-height:56px;padding:12px 22px;border-radius:20px;background:#ffdb76;color:#25394c;box-shadow:0 3px 0 #cda749;font-weight:900}.colour-screen .keep-actions .save{flex:1}.colour-screen .download{border-radius:18px;padding:10px 16px;min-height:56px;background:#293462;border:1px solid #5b6996;font-size:.85rem}.colour-screen .device-note{color:#c4c9e5;font-size:.76rem;font-weight:650;margin-top:13px;text-align:center}.colour-screen .prototype-note{text-align:center;margin-top:25px;font-size:.72rem;font-weight:600;color:#aeb7db}.colour-screen .loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fbf9f3;color:#35555f;gap:20px;text-align:center;padding:32px}.colour-screen .loading img{width:80px;height:100px;object-fit:contain}.colour-screen .soft-hint{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);color:#28545c;background:#fff2bfeb;padding:9px 17px;border:1px solid #edd49a;border-radius:20px;white-space:nowrap;font-size:.86rem;pointer-events:none}.colour-screen .hint-path{stroke:#edbe49;stroke-width:20;fill:#ffd36933;opacity:.8;filter:drop-shadow(0 0 10px #edbe4966);animation:colour-hintpulse 2.8s ease-in-out infinite}.colour-screen .celebration{position:absolute;right:12px;bottom:14px;display:flex;align-items:center;gap:3px;background:#fff8e7f2;color:#36535e;border-radius:23px;padding:7px 15px 7px 5px;pointer-events:none;font-size:.9rem;box-shadow:0 4px 20px #233b5520}.colour-screen .celebration img{height:64px;width:54px;object-fit:contain;animation:colour-littlejump .7s ease-in-out}.colour-screen .paper.show-colour-sparkles:after{content:'✦';position:absolute;left:70%;top:22%;color:#eac15c;font-size:50px;pointer-events:none;animation:colour-sparkle .9s ease-out forwards}.colour-screen .picture-heading,.colour-screen .tools,.colour-screen .under-picture{user-select:none}.colour-screen dialog{border:2px solid #c8c3e5;border-radius:30px;background:#202957;color:#fff8e7;max-width:min(740px,calc(100vw - 28px));padding:30px;box-shadow:0 20px 80px #060a3655}.colour-screen dialog::backdrop{background:#10162ac4;backdrop-filter:blur(6px)}.colour-screen dialog h2{font-size:1.6rem}.colour-screen dialog>p{margin:16px 0}.colour-screen dialog .device-note{margin-top:16px}.colour-screen .dialog-x{position:absolute;right:14px;top:12px;background:#303b6a;width:42px;height:42px;border-radius:50%;font-size:1.65rem;z-index:1}.colour-screen .reveal-welcome{display:flex;align-items:center;gap:15px;padding-right:20px}.colour-screen .reveal-welcome>img{width:70px;height:90px;object-fit:contain}.colour-screen .reveal-welcome h2{font-size:1.55rem;max-width:24ch}.colour-screen .reveal-pictures{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:25px;margin:20px 0}.colour-screen .reveal-pictures img{max-height:390px;width:100%;object-fit:contain}.colour-screen .reveal-pictures [data-colour-id="finished-picture"]{background:#fbf9f3;border:4px solid #cab9e9;border-radius:20px;aspect-ratio:1;animation:colour-reveal-in .8s both}.colour-screen .reveal-pictures [data-colour-id="real-card"]{animation:colour-card-turn 1.2s both .35s}.colour-screen .dialog-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.colour-screen [data-colour-id="reveal-copy"]{text-align:center}.colour-screen [data-colour-id="toast"]{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#fff5d7;color:#2d4d58;padding:13px 24px;border-radius:22px;box-shadow:0 4px 24px #0003;z-index:10;max-width:90vw;text-align:center}.colour-screen [data-colour-id="saved-gallery"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:22px 0}.colour-screen [data-colour-id="saved-gallery"] figure{margin:0;background:#2e3968;padding:9px;border-radius:16px}.colour-screen [data-colour-id="saved-gallery"] figure img{width:100%;background:#fcf9f2;aspect-ratio:1;object-fit:contain;border-radius:9px}.colour-screen [data-colour-id="saved-gallery"] figcaption{text-align:center;font-size:.78rem;margin-top:6px}.colour-screen [data-colour-id="saved-gallery"] figure a{color:#ffdf80;font-size:.75rem;text-align:center;display:block;margin-top:6px}.colour-screen [data-colour-id="saved-gallery"] .empty{grid-column:1/-1;min-height:80px;text-align:center;color:var(--muted)}@keyframes colour-hintpulse{50%{opacity:.3;stroke-width:10}}@keyframes colour-littlejump{40%{transform:translateY(-8px) rotate(6deg)}}@keyframes colour-sparkle{from{transform:scale(.3) rotate(0);opacity:0}30%{opacity:1}to{transform:scale(1.2) rotate(60deg);opacity:0}}@keyframes colour-reveal-in{from{transform:translateY(30px) scale(.88);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes colour-card-turn{from{transform:perspective(700px) rotateY(90deg);opacity:0}to{transform:perspective(700px) rotateY(0);opacity:1}}@media(min-width:1000px) and (min-height:700px){.colour-screen .paper{max-width:min(100%,calc(100dvh - 220px));margin:auto}.colour-screen .picture-heading,.colour-screen .under-picture{max-width:min(100%,calc(100dvh - 220px));margin-left:auto;margin-right:auto}.colour-screen .tools section{margin-bottom:19px}}@media(max-width:900px){.colour-screen .colour-shell{max-width:760px;padding:18px 18px 15px}.colour-screen .topbar{gap:12px;margin-bottom:20px}.colour-screen .heading h1{font-size:1.55rem}.colour-screen .eyebrow{font-size:.68rem}.colour-screen .topbar>.quiet{font-size:.85rem;padding:9px 12px;min-height:46px}.colour-screen .back{padding:0 14px;min-height:46px}.colour-screen .colour-layout{grid-template-columns:1fr;gap:22px}.colour-screen .tools{display:grid;grid-template-columns:1fr 1fr;gap:18px 25px}.colour-screen .tools section{margin:0}.colour-screen .friend-picker{grid-row:1;grid-column:1}.colour-screen .paint-tools{grid-row:1;grid-column:2}.colour-screen .palette-section{grid-column:1;grid-row:2}.colour-screen .helper-section{grid-column:2;grid-row:2;align-self:end}.colour-screen .edit-actions,.colour-screen .keep-actions{margin:0;align-self:end}.colour-screen .device-note{grid-column:1/-1;margin:0}.colour-screen .friends img{height:62px}.colour-screen .prototype-note{margin-top:20px}.colour-screen .paper{max-width:620px;margin:auto}.colour-screen .picture-heading,.colour-screen .under-picture{max-width:620px;margin-left:auto;margin-right:auto}}@media(max-width:540px){.colour-screen{font-size:16px}.colour-screen .colour-shell{padding:14px 15px 20px}.colour-screen .topbar{display:grid;grid-template-columns:auto 1fr auto;gap:10px}.colour-screen .topbar .eyebrow{display:none}.colour-screen .heading h1{font-size:1.05rem;text-align:center;line-height:1.22}.colour-screen .back{font-size:1.45rem;min-height:44px;width:44px;padding:0;justify-content:center}.colour-screen .back span{display:none}.colour-screen .topbar>.quiet{font-size:.68rem;min-height:44px;padding:7px 9px;max-width:65px;line-height:1.15;border-radius:15px}.colour-screen .picture-heading{flex-wrap:wrap;gap:12px;margin-bottom:12px}.colour-screen .picture-heading h2{font-size:1.3rem}.colour-screen .picture-heading p{display:none}.colour-screen .level-switch{padding:3px}.colour-screen .level-switch button{font-size:.75rem;min-height:38px;padding:8px 11px}.colour-screen .paper{border-radius:25px;border-width:4px}.colour-screen .under-picture{font-size:.73rem;gap:12px;margin-top:12px}.colour-screen .colour-layout{gap:19px}.colour-screen .tools{gap:17px 14px}.colour-screen .tools h2{font-size:.83rem;margin-bottom:8px}.colour-screen .friends{gap:4px}.colour-screen .friends button{font-size:.65rem;border-radius:14px;padding:4px 1px 7px}.colour-screen .friends img{height:48px}.colour-screen .tool-switch{gap:5px}.colour-screen .tool-switch button{min-height:49px;font-size:.81rem;gap:5px;border-radius:14px}.colour-screen .tool-switch svg{width:20px;height:20px}.colour-screen .brush-sizes{gap:5px;margin-top:8px}.colour-screen .brush-sizes span{font-size:.68rem}.colour-screen .brush-sizes button{width:31px;height:31px;min-height:31px;font-size:.68rem}.colour-screen .palette{gap:9px;justify-content:space-around}.colour-screen .swatch{width:43px;height:43px;border-width:4px}.colour-screen .palette-section{grid-column:1/-1;grid-row:2}.colour-screen .palette-section h2{display:none}.colour-screen .helper-section{grid-column:1/-1;grid-row:3}.colour-screen .helper{min-height:66px;padding:7px 11px}.colour-screen .helper img{height:47px;width:38px}.colour-screen .helper strong{font-size:.85rem}.colour-screen .helper small{font-size:.7rem}.colour-screen .edit-actions{grid-column:1/-1;grid-row:4}.colour-screen .edit-actions button{min-height:52px}.colour-screen .keep-actions{grid-column:1/-1;grid-row:5}.colour-screen .save{min-height:52px;font-size:.9rem}.colour-screen .download{min-height:52px}.colour-screen .device-note{font-size:.68rem}.colour-screen .soft-hint{font-size:.7rem;bottom:10px;padding:7px 12px}.colour-screen .celebration img{height:48px;width:40px}.colour-screen .celebration{font-size:.73rem;bottom:9px;right:7px;padding-right:10px}.colour-screen dialog{padding:22px 17px;border-radius:24px}.colour-screen .reveal-welcome>img{width:48px;height:68px}.colour-screen .reveal-welcome h2{font-size:1.15rem}.colour-screen .reveal-welcome .eyebrow{font-size:.62rem}.colour-screen .reveal-pictures{gap:12px}.colour-screen .dialog-actions{gap:8px}.colour-screen .dialog-actions button{font-size:.8rem;padding:10px 15px}.colour-screen [data-colour-id="saved-gallery"]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.colour-screen *,.colour-screen *:before,.colour-screen *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}/* A finished keepsake visibly pairs the child's picture with its genuine matching free card. */
.colour-screen [data-colour-id="saved-gallery"] .saved-pair{display:flex;align-items:center;gap:7px;min-height:100px}.colour-screen [data-colour-id="saved-gallery"] .saved-pair img{min-width:0;flex:1}.colour-screen [data-colour-id="saved-gallery"] .saved-pair.with-card>img:first-child{width:55%;flex:1.15}.colour-screen [data-colour-id="saved-gallery"] .saved-pair .saved-card{width:42%;height:auto;aspect-ratio:auto;background:transparent;border-radius:0;flex:.85}.colour-screen [data-colour-id="saved-gallery"] .saved-pair.with-card{padding:5px 0}

.colour-screen{padding-top:calc(20px + var(--st));padding-bottom:calc(20px + var(--sb));}.colour-screen .colour-shell{min-height:auto}.colour-screen dialog{color-scheme:dark}.colour-screen .save{font-weight:900}.colour-screen .paper{color-scheme:light}

.colour-screen.colour-still *,.colour-screen.colour-still *::before,.colour-screen.colour-still *::after{animation:none!important;transition:none!important}.colour-screen .colour-shell{max-width:1280px;margin:auto}.colour-screen .paper canvas{touch-action:none}.colour-screen dialog{inset:calc(var(--st) + var(--colour-status-gap,0px) + 12px) var(--sr) calc(max(0px,100dvh - var(--colour-vh,100dvh)) + var(--sb) + 12px) var(--sl);max-height:calc(var(--colour-vh,100dvh) - var(--st) - var(--colour-status-gap,0px) - var(--sb) - 24px);max-width:min(740px,calc(100vw - var(--sl) - var(--sr) - 28px));overflow:auto}

/* The screen owns its spacing; avoid applying the common kid padding twice. */
.colour-screen.kid{width:100%;max-width:none;margin:0 auto;padding:var(--st) var(--sr) var(--sb) var(--sl)}

/* Reviewed native painting symbols and an optional full palette for little hands. */
.colour-screen .tool-switch button{flex-direction:column;gap:4px;min-height:100px;padding:8px 5px}.colour-screen .paint-tool-icon{width:62px;height:62px;display:block;object-fit:contain;filter:drop-shadow(0 3px 3px #101b3b33)}.colour-screen .more-colours{display:block;margin:13px 0 0;padding:9px 16px;min-height:44px;border-radius:22px;border:1px solid #7180af;background:#303c6b;color:#fff1ce;font-size:.86rem}.colour-screen .friends{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x proximity;padding:3px 2px 10px;scrollbar-color:#94a1cc #202957}.colour-screen .friends button{flex:0 0 90px;scroll-snap-align:start;min-width:0}.colour-screen .palette{display:grid;grid-template-columns:repeat(5,48px);justify-content:space-between;gap:13px 8px}@media(max-width:900px){.colour-screen .friend-picker{grid-column:1/-1;grid-row:1}.colour-screen .paint-tools{grid-column:1;grid-row:2}.colour-screen .palette-section{grid-column:2;grid-row:2}.colour-screen .helper-section{grid-column:1/-1;grid-row:3}.colour-screen .edit-actions{grid-column:1/-1;grid-row:4}.colour-screen .keep-actions{grid-column:1/-1;grid-row:5}.colour-screen .palette{grid-template-columns:repeat(4,43px)}.colour-screen .friends button{flex-basis:90px}}@media(max-width:540px){.colour-screen .paint-tools{grid-column:1/-1;grid-row:2}.colour-screen .palette-section{grid-column:1/-1;grid-row:3}.colour-screen .helper-section{grid-row:4}.colour-screen .edit-actions{grid-row:5}.colour-screen .keep-actions{grid-row:6}.colour-screen .tool-switch button{flex-direction:row;min-height:74px;font-size:1rem;gap:12px}.colour-screen .paint-tool-icon{width:54px;height:54px}.colour-screen .palette{grid-template-columns:repeat(6,43px);justify-content:space-between}.colour-screen .friends button{flex-basis:82px}.colour-screen .friends img{height:62px}.colour-screen .friends button{font-size:.76rem}}@media(max-width:365px){.colour-screen .palette{grid-template-columns:repeat(5,43px)}}

.colour-screen .friend-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.colour-screen .friend-picker-heading h2{margin:0}.colour-screen .friend-picker-heading button{padding:7px 10px;min-height:44px;font-size:.8rem;white-space:nowrap}.colour-screen .all-friends{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.colour-screen .all-friends button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;border:2px solid #65709d;border-radius:20px;background:#303c6b;padding:12px 5px;font-size:.88rem}.colour-screen .all-friends button[aria-pressed="true"]{border-color:#ffdb83;background:#444b76}.colour-screen .all-friends img{height:82px;max-width:100%;object-fit:contain}.colour-screen .colour-friends-dialog{width:min(650px,94vw)}.colour-screen .reveal-pictures:has(img[hidden]){grid-template-columns:1fr}.colour-screen .reveal-pictures:has(img[hidden]) img:not([hidden]){max-width:420px;margin:auto}@media(max-width:400px){.colour-screen .all-friends{gap:7px}.colour-screen .all-friends button{font-size:.76rem}.colour-screen .all-friends img{height:68px}}

/* Saving keeps the full picture visible, including on older iPads. */
.colour-screen .colour-image-dialog{width:min(660px,94vw)}
.colour-screen .colour-image-dialog h2{padding-right:42px;margin-bottom:18px}
.colour-screen .colour-image-preview{display:block;width:100%;max-width:480px;max-height:55vh;max-height:55dvh;object-fit:contain;margin:0 auto 16px;border-radius:16px;background:#fffdf6;-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto}
.colour-screen .colour-image-dialog .device-note{font-size:.95rem;line-height:1.5;margin:12px 0}
.colour-screen .colour-image-download{display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--cream);font:inherit}
.colour-screen .saved-picture-actions{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.colour-screen .saved-picture-actions button{width:100%;min-height:48px;padding:10px 12px;font-size:.88rem;line-height:1.25;border-radius:16px}
.colour-screen .saved-picture-actions .save{color:#253b51}
@media(max-width:540px){.colour-screen .colour-image-dialog .dialog-actions{display:grid;grid-template-columns:1fr 1fr}.colour-screen .colour-image-dialog .dialog-actions>*{min-height:48px;padding:10px 9px;font-size:.85rem}.colour-screen .colour-image-dialog .device-note{font-size:.83rem}.colour-screen .saved-picture-actions button{font-size:.75rem}}

.colour-screen .colour-card-link{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px 16px;border:1px solid #64719c;border-radius:20px;background:#2c3564}
.colour-screen .colour-card-link strong,.colour-screen .colour-card-link span{display:block}.colour-screen .colour-card-link span{font-size:.8rem;color:var(--muted);margin-top:3px}.colour-screen .colour-card-link button{flex-shrink:0;color:#ffe49b;font-size:.9rem;min-height:48px}
@media(max-width:540px){.colour-screen .colour-card-link{gap:9px;padding:11px 12px}.colour-screen .colour-card-link strong{font-size:.9rem}.colour-screen .colour-card-link span{font-size:.72rem}.colour-screen .colour-card-link button{font-size:.8rem;padding:10px 12px}}

/* A quiet working header and compact tools leave room for the child's picture. */
.colour-screen .topbar{gap:12px;justify-content:space-between;margin-bottom:12px}
.colour-screen .topbar .heading{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.colour-screen .topbar .back,.colour-screen .topbar>.quiet{min-height:44px;padding:8px 15px;font-size:.95rem}
.colour-screen .tool-switch button{flex-direction:row;gap:9px;min-height:58px;padding:6px 10px;font-size:.95rem}
.colour-screen .paint-tool-icon{width:38px;height:38px;filter:none}
.colour-screen .helper{min-height:48px;padding:5px 9px;gap:8px}
.colour-screen .helper img{width:28px;height:35px}
.colour-screen .helper strong{font-size:.88rem}.colour-screen .helper small{font-size:.72rem;line-height:1.2}
.colour-screen .palette{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:8px}
.colour-screen .palette .swatch{width:44px;height:44px;min-width:44px;flex:0 0 44px}
.colour-screen .more-colours{min-height:44px;margin-top:6px;padding:8px 13px}
.colour-screen .colour-palette-dialog{width:min(430px,94vw)}
.colour-screen .colour-palette-dialog h2{padding-right:42px;margin-bottom:22px}
.colour-screen .all-colour-options{display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:13px;justify-items:center}
.colour-screen .all-colour-options .swatch{width:44px;height:44px}
@media(min-width:700px){
 .colour-screen .colour-shell{padding:8px 16px 10px}
 .colour-screen .topbar{margin-bottom:8px}
 .colour-screen .colour-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}
 .colour-screen .picture-heading{gap:10px;margin-bottom:8px;min-height:48px}
 .colour-screen .picture-heading h2{font-size:1.4rem}.colour-screen .picture-heading p{font-size:.78rem}
 .colour-screen .level-switch{padding:3px}.colour-screen .level-switch button{min-height:40px;padding:7px 11px;font-size:.82rem}
 .colour-screen .paper{width:min(100%,calc(100vh - 205px));width:min(100%,calc(100dvh - 205px));margin:0 auto;border-radius:25px}
 .colour-screen .under-picture{margin:7px 0 0;font-size:.8rem}
 .colour-screen .colour-card-link{margin-top:8px;padding:8px 12px;min-height:54px;border-radius:17px}
 .colour-screen .colour-card-link strong{font-size:.9rem}.colour-screen .colour-card-link span{font-size:.73rem}.colour-screen .colour-card-link button{min-height:40px;font-size:.82rem;padding:8px 11px}
 .colour-screen .tools{display:flex;flex-direction:column;gap:7px;padding-top:0}
 .colour-screen .tools section{margin:0}
 .colour-screen .paint-tools>h2,.colour-screen .palette-section>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .colour-screen .friend-picker-heading{gap:8px;margin-bottom:3px}.colour-screen .friend-picker-heading h2{font-size:1.05rem}
 .colour-screen .friends{padding:2px 0 4px;gap:6px}.colour-screen .friends button{flex-basis:80px;min-height:70px;padding:4px 3px 5px;border-radius:16px;font-size:.75rem}.colour-screen .friends img{height:43px;margin:0 auto 3px}
 .colour-screen .brush-sizes{margin-top:5px;gap:7px}.colour-screen .brush-sizes>span{font-size:.78rem}.colour-screen .brush-sizes button{width:40px;height:40px;min-height:40px}
 .colour-screen .helper small{display:none}.colour-screen .helper{min-height:44px}.colour-screen .helper img{height:31px}
 .colour-screen .edit-actions,.colour-screen .keep-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0}
 .colour-screen .edit-actions button,.colour-screen .keep-actions button{min-height:44px;padding:8px 9px;font-size:.82rem}
 .colour-screen .tools>.device-note{font-size:.68rem;margin:0}
}
@media(max-width:540px){.colour-screen .colour-shell{padding-top:10px}.colour-screen .all-colour-options{grid-template-columns:repeat(5,minmax(44px,1fr));gap:12px}.colour-screen .tool-switch button{min-height:58px}.colour-screen .paint-tool-icon{width:38px;height:38px}.colour-screen .helper{min-height:48px}}
@media(max-width:360px){.colour-screen .all-colour-options{grid-template-columns:repeat(4,minmax(44px,1fr))}}

.colour-screen [data-colour-id="toast"]{pointer-events:none}

/* A painting workspace: visible controls, protected iPad status bar and swipe colours. */
.colour-screen .colour-palette-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.colour-screen .colour-palette-heading h2{position:static!important;width:auto!important;height:auto!important;clip:auto!important;overflow:visible!important;margin:0;font-size:.92rem}
.colour-screen .glitter-switch{display:flex;align-items:center;gap:6px;min-height:40px;padding:6px 11px;border:1px solid #727da9;border-radius:12px;background:#303b6b;font-size:.85rem}
.colour-screen .glitter-switch span{color:#ffe5a2;font-size:1.3rem}
.colour-screen .glitter-switch[aria-pressed="true"]{background:#ffe19a;color:#25335e;border-color:#ffe19a}
.colour-screen .glitter-switch[aria-pressed="true"] span{color:#77518f}
.colour-screen .palette{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:10px;touch-action:pan-x;max-width:100%}
.colour-screen .palette::-webkit-scrollbar{display:none}
.colour-screen .glitter-swatch{background-image:radial-gradient(circle at 24% 27%,#fff 0 1px,transparent 2px),radial-gradient(circle at 63% 68%,#fff 0 1.5px,transparent 2px),radial-gradient(circle at 80% 24%,#fff9 0 1px,transparent 2px);background-size:14px 14px}
.colour-screen .colour-card-mini{display:flex;align-items:center;gap:12px;min-height:72px;width:100%;padding:6px 10px;border:1px solid #69779e;border-radius:17px;background:#303b65;text-align:left;color:#fff4d4}
.colour-screen .colour-card-mini img{width:40px;height:57px;object-fit:contain;flex:0 0 40px;border-radius:4px}
.colour-screen .colour-card-mini>span:nth-child(2){flex:1;min-width:0}
.colour-screen .colour-card-mini strong{display:block;font-size:.85rem}
.colour-screen .colour-card-mini small{display:block;font-size:.7rem;font-weight:600;color:#d1d8eb;margin-top:2px}
.colour-screen .colour-card-mini>span:last-child{font-size:1.6rem;color:#ffe29b}
.colour-screen .picture-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;border:0;padding:0;background:transparent;color:#fff1c7;cursor:pointer;font:inherit}
.colour-screen .picture-link img{width:100%;height:auto;max-width:100%;object-fit:contain}
.colour-screen .picture-link>span{font-size:.86rem}
.colour-screen .picture-link:focus-visible{outline:3px solid #ffdb83;outline-offset:5px;border-radius:14px}
.colour-screen .picture-link:active{transform:scale(.98)}
.colour-screen .saved-pair>.picture-link{flex:1}
.colour-screen .saved-pair.with-card>.picture-link:first-child{flex:1.15}
.colour-screen .saved-pair.with-card>.card-picture-link{flex:.85}
.colour-screen .saved-pair .picture-link .saved-card{width:100%;flex:none}
.colour-screen .reveal-pictures .picture-link img{max-height:48vh;max-height:48dvh}
.colour-screen .reveal-pictures:has(.card-picture-link[hidden]){grid-template-columns:1fr}
@media(min-width:700px){
 .colour-screen{height:var(--colour-vh,100vh);min-height:0;padding:0;overflow:hidden;box-sizing:border-box}
 .colour-screen .colour-shell{height:100%;min-height:0;max-height:none;box-sizing:border-box;display:grid;grid-template-rows:44px minmax(0,1fr);gap:10px;padding: max(28px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 .colour-screen .topbar{margin:0;align-items:center;min-height:0}
 .colour-screen .colour-layout{height:100%;min-height:0;grid-template-columns:minmax(0,1fr) 286px;gap:22px}
 .colour-screen .painting-area{display:grid;grid-template-rows:52px minmax(0,1fr) 24px;gap:6px;min-height:0;height:100%}
 .colour-screen .picture-heading{margin:0;min-height:0}
 .colour-screen .paper{width:auto;max-width:100%;height:100%;max-height:100%;aspect-ratio:1;box-sizing:border-box;justify-self:center;margin:0}
 .colour-screen .under-picture{margin:0;min-height:0;font-size:.75rem;align-items:center}
 .colour-screen .tools{gap:5px;min-height:0;align-self:start}
 .colour-screen .friend-picker-heading{margin:0;min-height:40px}
 .colour-screen .friend-picker-heading button{min-height:40px;padding:5px 9px}
 .colour-screen .friends button{min-height:65px;padding:3px;font-size:.74rem}
 .colour-screen .friends img{height:38px;margin:0 auto 2px}
 .colour-screen .tool-switch button{min-height:48px;height:48px;padding:4px 8px;border-radius:15px}
 .colour-screen .paint-tool-icon{width:32px;height:32px}
 .colour-screen .brush-sizes{margin-top:3px;min-height:36px}
 .colour-screen .brush-sizes button{width:36px;height:36px;min-height:36px}
 .colour-screen .palette .swatch{width:42px;height:42px;min-width:42px;flex-basis:42px}
 .colour-screen .helper{min-height:40px;height:40px;padding:3px 8px;border-radius:14px}
 .colour-screen .helper img{height:28px}
 .colour-screen .edit-actions button,.colour-screen .keep-actions button{min-height:42px;padding:6px 8px;border-radius:14px}
 .colour-screen .colour-card-mini{min-height:68px;padding:4px 9px;margin-top:1px}
}
@media(min-width:700px) and (max-height:660px){
 .colour-screen .colour-shell{gap:6px;padding-bottom:8px}
 .colour-screen .friends{display:none}
 .colour-screen .friend-picker-heading{margin-bottom:4px}
 .colour-screen .tools{gap:7px}
}
@media(max-width:699px){
 .colour-screen .colour-card-mini{grid-column:1/-1;grid-row:6;margin-top:5px}
 .colour-screen .palette-section{min-width:0}
}

/* The drawing fills the usable display. Four controls float above the paper. */
.colour-screen.kid{position:fixed;inset:0;width:100%;height:var(--colour-vh,100vh);min-height:0;max-width:none;padding:0;margin:0;overflow:hidden;background:#1c2354}
.colour-screen .colour-shell{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;min-height:0;padding:0;margin:0}
.colour-screen .colour-layout,.colour-screen .painting-area{position:absolute;inset:0;display:block;height:100%;width:100%;min-height:0;padding:0;margin:0}
.colour-screen .paper{position:absolute;inset:var(--st) 0 var(--sb);width:100%;height:auto;max-width:none;max-height:none;justify-self:stretch;aspect-ratio:auto;border:0;border-radius:0;margin:0;box-shadow:none;background:#fffdf6}
.colour-screen .paper canvas,.colour-screen .paper>svg{width:100%;height:100%}
.colour-screen .colour-art-stack{position:absolute;z-index:0;pointer-events:none;isolation:isolate}
.colour-screen .paper>[data-colour-id="hint-layer"]{z-index:1}
.colour-screen .paper>.loading{z-index:2}
.colour-screen .colour-art-stack canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.colour-screen .colour-base-layer{z-index:0;pointer-events:none}
.colour-screen .colour-paint-layer{z-index:1;pointer-events:auto;background:transparent}
.colour-screen .colour-ink-layer{z-index:2;pointer-events:none}
.colour-screen .tools,.colour-screen .picture-heading{display:none}
.colour-screen .topbar{position:absolute;z-index:3;top:calc(var(--st) + 10px);left:max(12px,var(--sl));right:max(12px,var(--sr));display:flex;align-items:center;justify-content:center;gap:7px;height:50px;min-height:0;margin:0;padding:0;pointer-events:none}
.colour-screen .topbar>button{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:6px;height:48px;min-height:48px;padding:5px 11px;border:1px solid #d8dee3;border-radius:17px;color:#214f56;background:#ffffffed;box-shadow:0 3px 12px #1c354517;font-size:.84rem;line-height:1.15;flex:none}
.colour-screen .topbar>button:active{transform:translateY(1px);background:#fff4d6}
.colour-screen .topbar .back{font-size:.9rem;width:auto}
.colour-screen .topbar .back span{display:inline}
.colour-screen .topbar img{width:28px;height:32px;object-fit:contain;flex:none}
.colour-screen .topbar .friend-shortcut{max-width:180px}
.colour-screen .topbar .friend-shortcut h2{font-size:.88rem;line-height:1.15;max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#214f56}
.colour-screen .topbar .more-shortcut{flex-direction:column;gap:0;min-width:55px;font-size:.7rem}
.colour-screen .more-shortcut>span:first-child{font-size:1.15rem;letter-spacing:1px;line-height:.8;margin-bottom:4px}
.colour-screen .current-paint{display:block;width:15px;height:15px;border-radius:50%;background:var(--current-paint,#91d5e5);border:1px solid #214f5633;flex:none}
.colour-screen .under-picture{position:absolute;z-index:2;right:max(14px,var(--sr));bottom:calc(var(--sb) + 9px);display:block;margin:0;padding:5px 10px;border-radius:20px;background:#203e52dd;font-size:.69rem;line-height:1.25;color:#fff7dd;pointer-events:none}
.colour-screen .under-picture>span:first-child{display:none}
.colour-screen .celebration,.colour-screen .soft-hint{display:none!important}
.colour-screen .hint-path{stroke-width:9;animation:none;filter:none;fill:#ffd36922}
.colour-screen .colour-drawer{width:min(410px,calc(100vw - 24px));max-width:calc(100vw - var(--sl) - var(--sr) - 24px);max-height:calc(var(--colour-vh,100dvh) - var(--st) - var(--colour-status-gap,0px) - var(--sb) - 24px);padding:22px 18px 16px;border:1px solid #d5dae0;border-radius:25px;background:#fffaf0;color:#203e52;box-shadow:0 16px 54px #122d4433}
.colour-screen .colour-drawer::backdrop{background:#17294466;backdrop-filter:none}
.colour-screen .colour-drawer>h2{font-size:1.25rem;margin:0 44px 15px 0}
.colour-screen .colour-drawer .dialog-x{width:36px;height:36px;top:12px;right:12px;background:#e9edf0;color:#23485a;font-size:1.4rem}
.colour-screen .paint-controls{display:grid;gap:13px}
.colour-screen .paint-controls section{margin:0;min-width:0;grid-row:auto;grid-column:auto}
.colour-screen .paint-controls .paint-tools>h2{display:none}
.colour-screen .colour-drawer .tool-switch button{min-height:46px;height:46px;flex-direction:row;gap:8px;padding:5px 8px;color:#fff8e7}
.colour-screen .colour-drawer .tool-switch button[aria-pressed=true]{color:#25394c}
.colour-screen .colour-drawer .paint-tool-icon{width:32px;height:32px}
.colour-screen .colour-drawer .brush-sizes{margin-top:7px;min-height:36px}
.colour-screen .colour-drawer .brush-sizes>span{color:#597080}
.colour-screen .colour-drawer .brush-sizes button{width:36px;height:36px;min-height:36px;color:#fff8e7}
.colour-screen .colour-drawer .brush-sizes button[aria-pressed=true]{color:#25394c;background:#e5ecf0}
.colour-screen .colour-drawer .colour-palette-heading{margin:0;min-height:32px}
.colour-screen .colour-drawer .colour-palette-heading h2{font-size:.86rem}
.colour-screen .colour-drawer .glitter-switch{min-height:34px;padding:3px 9px;font-size:.8rem;color:#fff7dd}
.colour-screen .colour-drawer .glitter-switch[aria-pressed=true]{color:#25394c}
.colour-screen .colour-drawer .palette{display:flex;flex-flow:row nowrap;justify-content:flex-start;gap:11px;min-height:60px;padding:8px}
.colour-screen .colour-drawer .swatch{width:42px;height:42px;min-width:42px;flex:0 0 42px;border-width:4px}
.colour-screen .colour-drawer .swatch[aria-pressed=true]{outline-color:#c4a14c}
.colour-screen .colour-drawer .helper{min-height:44px;height:44px;padding:4px 9px;color:#fff8e7}
.colour-screen .colour-drawer .helper img{width:28px;height:32px}
.colour-screen .colour-drawer .helper small{display:none}
.colour-screen .drawer-done{display:block;min-height:44px;width:100%;margin-top:15px;padding:8px;border-radius:15px;background:#ffe19a;color:#244454;font-size:.88rem}
.colour-screen .picture-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.colour-screen .picture-options>.level-switch,.colour-screen .picture-options>.edit-actions,.colour-screen .picture-options>.keep-actions{grid-column:1/-1;grid-row:auto;margin:0;display:flex;gap:8px}
.colour-screen .picture-options .level-switch{justify-self:center;background:#e9eef1}
.colour-screen .picture-options .level-switch button{min-height:40px;color:#405f70;padding:6px 15px}
.colour-screen .picture-options .level-switch button[aria-pressed=true]{background:#ffe19a;color:#244454}
.colour-screen .picture-options .edit-actions>button,.colour-screen .picture-options .keep-actions>button{min-height:44px;flex:1;padding:6px 9px;font-size:.8rem}
.colour-screen .picture-options>.quiet{min-height:52px;font-size:.8rem;color:#fff7dd}
.colour-screen .picture-options>.colour-card-mini{grid-row:auto;grid-column:auto;min-height:62px;gap:7px;padding:5px 8px}
.colour-screen .picture-options .colour-card-mini img{width:30px;height:42px;flex-basis:30px}
.colour-screen .picture-options .colour-card-mini strong{font-size:.73rem}
.colour-screen .picture-options .colour-card-mini small{display:none}
@media(max-width:420px){.colour-screen .friend-shortcut-name{display:none}.colour-screen .topbar{gap:6px}.colour-screen .topbar>button{padding:5px 9px}.colour-screen .topbar .friend-shortcut{width:61px}}
@media(orientation:landscape) and (max-height:560px){
 .colour-screen .topbar{top:calc(var(--st) + 7px);height:44px}
 .colour-screen .topbar>button{height:42px;min-height:42px;border-radius:15px}
 .colour-screen .colour-drawer{width:min(650px,calc(100vw - var(--sl) - var(--sr) - 24px));padding:16px}
 .colour-screen .colour-drawer>h2{font-size:1.1rem;margin-bottom:10px}
 .colour-screen .paint-controls{grid-template-columns:1fr 1fr;gap:10px 15px}
 .colour-screen .paint-controls .helper-section{grid-column:1/-1}
 .colour-screen .drawer-done{min-height:40px;margin-top:10px}
 .colour-screen .picture-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .colour-screen .picture-options>.level-switch,.colour-screen .picture-options>.edit-actions,.colour-screen .picture-options>.keep-actions{grid-column:auto;align-self:start;min-width:0}
 .colour-screen .picture-options>.edit-actions,.colour-screen .picture-options>.keep-actions{flex-direction:column}
 .colour-screen .picture-options>.level-switch{flex-direction:column;justify-self:stretch}
 .colour-screen .picture-options>.colour-card-mini{grid-column:span 2}
}

.colour-screen .picture-options .edit-actions .quiet,.colour-screen .picture-options .keep-actions .download{background:#2c3564;color:#fff8e7}

@media(max-width:360px){.colour-screen .topbar .back{width:44px;padding:5px}.colour-screen .topbar .back span,.colour-screen .topbar .paint-shortcut>span{display:none}.colour-screen .topbar .paint-shortcut{width:68px}.colour-screen .topbar .friend-shortcut{width:55px}}

html.colour-fixed{height:100%;overflow:hidden;overscroll-behavior:none}
html.colour-fixed body{position:fixed;inset:0;height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
html.colour-fixed #app,html.colour-fixed #app>.layer:not(.over){height:100%;min-height:0}

/* Quick access stays above the drawing: one row on wide screens, two on phones. */
.colour-screen .topbar{display:grid;grid-template-columns:44px auto auto 44px minmax(120px,1fr) 70px 48px;gap:7px;height:auto;max-width:1100px;margin:0 auto;align-items:center}
.colour-screen .topbar>button,.colour-screen .topbar .tool-switch button{height:48px;min-height:48px;border:1px solid #d8dee3;border-radius:15px;background:#fffffff2;color:#214f56;box-shadow:0 2px 8px #1c354512;font-size:.78rem;padding:4px 8px;line-height:1.1;touch-action:manipulation}
.colour-screen .topbar .back{grid-column:1;width:44px;padding:0;font-size:1.8rem}
.colour-screen .topbar .back span{display:none}
.colour-screen .topbar .friend-shortcut{max-width:150px;min-width:48px;padding:4px 6px;gap:4px}
.colour-screen .topbar .friend-shortcut h2{font-size:.8rem;max-width:90px}
.colour-screen .topbar .tool-switch{pointer-events:auto;display:flex;gap:3px;padding:0;margin:0;min-width:0}
.colour-screen .topbar .tool-switch button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:58px;padding:4px 7px}
.colour-screen .topbar .tool-switch button[aria-pressed=true],.colour-screen .topbar .glitter-switch[aria-pressed=true]{background:#ffe092;color:#203e52;border-color:#ddbd6b;box-shadow:inset 0 1px #fff7dd}
.colour-screen .topbar .tool-switch .paint-tool-icon,.colour-screen .topbar .tool-switch svg{width:24px;height:26px;flex:none}
.colour-screen .topbar .tool-switch svg{fill:none;stroke:none}
.colour-screen .topbar>.undo{display:flex;flex-direction:column;gap:0;width:44px;padding:3px;font-size:.6rem;flex:none}
.colour-screen .topbar>.undo>span:first-child{font-size:1.6rem;line-height:1}
.colour-screen .topbar>.palette{pointer-events:auto;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;gap:8px;min-width:0;width:100%;height:58px;min-height:0;margin:0;padding:7px;background:#fffffff2;border:1px solid #d8dee3;border-radius:19px;box-shadow:0 2px 8px #1c354512;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.colour-screen .topbar>.palette::-webkit-scrollbar{display:none}
.colour-screen .topbar .palette .swatch{width:42px;height:42px;min-width:42px;flex:0 0 42px;margin:0;border-width:4px;outline-offset:2px;box-shadow:inset 0 -2px 0 #1c235423}
.colour-screen .topbar .palette .swatch[aria-pressed=true]{outline:2px solid #ab8638}
.colour-screen .topbar .palette .swatch:focus-visible{outline:3px solid #214f56;outline-offset:2px}
.colour-screen .topbar>.glitter-switch{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;width:70px;font-size:.71rem;white-space:normal}
.colour-screen .topbar>.glitter-switch>span{font-size:1.2rem;color:#b48730}
.colour-screen .topbar>.more-shortcut{min-width:0;width:48px;font-size:.61rem}
.colour-screen .picture-options>.brush-sizes,.colour-screen .picture-options>.helper-section{grid-column:1/-1;grid-row:auto;margin:0;min-width:0}
.colour-screen .picture-options>.edit-actions>.quiet{width:100%;flex:1}
.colour-screen .picture-options .helper{height:44px;min-height:44px;padding:4px 9px;color:#fff8e7}
.colour-screen .picture-options .helper small{display:none}
.colour-screen .picture-options .helper img{width:28px;height:32px}
@media(max-width:900px){
 .colour-screen .topbar{grid-template-columns:44px 50px 138px 44px minmax(90px,1fr) 48px 44px;gap:6px}
 .colour-screen .topbar .friend-shortcut-name{display:none}
 .colour-screen .topbar .tool-switch{gap:3px}
 .colour-screen .topbar .tool-switch button{width:44px;min-width:44px;flex-direction:column;gap:0;padding:3px;font-size:.58rem}
 .colour-screen .topbar .tool-switch .paint-tool-icon,.colour-screen .topbar .tool-switch svg{width:24px;height:27px}
 .colour-screen .topbar>.glitter-switch{width:48px;flex-direction:column;gap:0;padding:3px;font-size:.58rem}
 .colour-screen .topbar>.glitter-switch>span{line-height:1.1}
 .colour-screen .topbar>.more-shortcut{width:44px}
}
@media(max-width:600px){
 .colour-screen .topbar{grid-template-columns:44px minmax(44px,1fr) 138px 44px;grid-template-areas:"home friend tools more" "undo paints paints glitter";row-gap:5px;top:calc(var(--st) + 7px);left:max(10px,var(--sl));right:max(10px,var(--sr))}
 .colour-screen .topbar>.back{grid-area:home}
 .colour-screen .topbar>.friend-shortcut{grid-area:friend;width:auto;max-width:none;justify-self:stretch}
 .colour-screen .topbar>.tool-switch{grid-area:tools}
 .colour-screen .topbar>.undo{grid-area:undo}
 .colour-screen .topbar>.palette{grid-area:paints}
 .colour-screen .topbar>.glitter-switch{grid-area:glitter;width:44px}
 .colour-screen .topbar>.more-shortcut{grid-area:more}
}
@media(orientation:landscape) and (max-height:560px){
 .colour-screen .topbar{top:calc(var(--st) + 5px)}
 .colour-screen .topbar>button,.colour-screen .topbar .tool-switch button{height:44px;min-height:44px}
 .colour-screen .topbar>.palette{height:54px;padding:5px 7px}
 .colour-screen .picture-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .colour-screen .picture-options>.level-switch{grid-column:1;grid-row:1;flex-direction:row;justify-self:stretch;padding:2px;gap:0}
 .colour-screen .picture-options .level-switch button{min-height:40px;padding:4px 8px;font-size:.73rem}
 .colour-screen .picture-options>.brush-sizes{grid-column:2;grid-row:1;gap:4px;align-self:center}
 .colour-screen .picture-options .brush-sizes>span{font-size:.66rem;line-height:1.1}
 .colour-screen .picture-options .brush-sizes button{width:32px;height:36px;min-height:36px;font-size:.72rem}
 .colour-screen .picture-options>.helper-section{grid-column:3;grid-row:1}
 .colour-screen .picture-options .helper{gap:6px;padding:3px 6px}
 .colour-screen .picture-options .helper strong{font-size:.68rem}
 .colour-screen .picture-options .helper img{width:22px;height:28px}
 .colour-screen .picture-options .helper .toggle{width:31px;height:21px;padding:3px}
 .colour-screen .picture-options .helper .toggle:after{width:15px;height:15px}
 .colour-screen .picture-options .helper[aria-pressed=true] .toggle:after{transform:translateX(10px)}
 .colour-screen .picture-options>.edit-actions{grid-column:1;grid-row:2;flex-direction:row}
 .colour-screen .picture-options>.keep-actions{grid-column:2/span 2;grid-row:2;flex-direction:row}
 .colour-screen .picture-options>.quiet{grid-column:1;grid-row:3;min-height:44px}
 .colour-screen .picture-options>.colour-card-mini{grid-column:2/span 2;grid-row:3}
}

/* Selected controls use a tick and a clear border, rather than colour alone. */
.colour-screen .topbar .tool-switch button,.colour-screen .topbar>.glitter-switch,.colour-screen .picture-options .brush-sizes button{position:relative}
.colour-screen .topbar .tool-switch button[aria-pressed=true],.colour-screen .topbar>.glitter-switch[aria-pressed=true],.colour-screen .picture-options .brush-sizes button[aria-pressed=true]{background:#ffe092;color:#183d49;border:2px solid #214f56;box-shadow:0 0 0 2px #fffdf6}
.colour-screen .topbar .tool-switch button[aria-pressed=true]:after,.colour-screen .topbar>.glitter-switch[aria-pressed=true]:after,.colour-screen .picture-options .brush-sizes button[aria-pressed=true]:after{content:'✓';position:absolute;right:-4px;top:-5px;display:grid;place-items:center;width:16px;height:16px;background:#214f56;color:white;border:2px solid #fffdf6;border-radius:50%;font:900 10px/1 Nunito,system-ui,sans-serif;z-index:1}
.colour-screen .topbar>.glitter-switch>span:last-child{font-size:.63rem;line-height:1.05}
.colour-screen .topbar .palette .swatch[aria-pressed=true]{outline:3px solid #214f56;outline-offset:2px}
.colour-screen .topbar .palette .swatch[aria-pressed=true]:after{inset:auto -3px -3px auto;width:21px;height:21px;background:#214f56;color:#fff;border:2px solid white;border-radius:50%;font-size:13px;text-shadow:none}
.colour-screen .picture-options .brush-sizes>span{font-weight:800}
.colour-screen .swatch.vivid-rainbow{background-image:conic-gradient(#ff1744,#ff8c00,#fff000,#42f500,#00d8ff,#245bff,#a329ff,#ff23b4,#ff1744)}
.colour-screen .topbar .back svg{display:block;width:27px;height:27px;flex:none}
.colour-screen .glitter-swatch{background-size:72px 72px;background-repeat:repeat}
.colour-screen .swatch.neon-swatch{border-color:#ffffffd9;box-shadow:inset 0 -2px 2px #18344d30,0 0 5px var(--swatch)}
.colour-screen .colour-reference{position:absolute;left:max(12px,var(--sl));bottom:30px;z-index:1;margin:0;width:clamp(112px,13vw,144px);padding:6px 5px 4px;border:1px solid #cfddd7;border-radius:15px;background:#ffffffd9;box-shadow:0 3px 12px #1d465317;pointer-events:none;user-select:none}
.colour-screen .colour-reference img{display:block;width:100%;height:clamp(106px,13vw,138px);object-fit:contain}
.colour-screen .colour-reference figcaption{font-size:9px;line-height:1.15;text-align:center;color:#35535b;font-weight:800;margin-top:2px}
.colour-screen .topbar>.undo svg{display:block;width:25px;height:25px;flex:none}
@media(max-width:600px){.colour-screen .colour-reference{left:10px;bottom:33px;width:104px;padding:5px 4px 4px;border-radius:12px}.colour-screen .colour-reference img{height:98px}.colour-screen .colour-reference figcaption{font-size:9px}}

/* Keep the iPhone status-bar shadow above the quick controls. The existing
   opaque edge is active only in portrait phone colouring, never over a button. */
@media(max-width:600px){
 html.colour-fixed{--colour-status-gap:min(28px,var(--st))}
 html.colour-fixed .home-status-edge{display:block;height:calc(var(--st) + var(--colour-status-gap));background:#1c2354}
 .colour-screen .topbar{top:calc(var(--st) + var(--colour-status-gap,0px) + 7px)}
}

/* The size chooser belongs beside Brush, with the same four touch targets on phones and tablets. */
/* One-tap sizes stay visible beside Brush. */
.colour-screen .topbar .brush-sizes{display:flex;align-items:center;flex:none;gap:3px;margin:0;padding:0}
.colour-screen .topbar .brush-sizes>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.colour-screen .topbar .brush-sizes>button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;position:relative;width:44px;min-width:44px;height:48px;min-height:48px;margin:0;padding:3px 1px;border:1px solid #d8dee3;border-radius:12px;background:#fff;color:#214f56;font-size:.58rem;line-height:1.1}
.colour-screen .topbar .brush-sizes>button:before{content:'';display:block;width:var(--size-dot);height:var(--size-dot);background:currentColor;border-radius:50%;flex:none}
.colour-screen .topbar .brush-sizes [data-size=T]{--size-dot:4px}.colour-screen .topbar .brush-sizes [data-size=S]{--size-dot:9px}.colour-screen .topbar .brush-sizes [data-size=M]{--size-dot:15px}.colour-screen .topbar .brush-sizes [data-size=L]{--size-dot:21px}
.colour-screen .topbar .brush-sizes>button[aria-pressed=true]{background:#ffe092;border:2px solid #214f56;box-shadow:none}
@media(max-width:1100px){.colour-screen .topbar{grid-template-columns:44px 50px 326px 44px minmax(45px,1fr) 48px 44px}.colour-screen .topbar .friend-shortcut-name{display:none}.colour-screen .topbar .tool-switch{gap:3px}.colour-screen .topbar .tool-switch>button{width:44px;min-width:44px;flex-direction:column;gap:0;padding:3px;font-size:.58rem}.colour-screen .topbar>.glitter-switch{width:48px;flex-direction:column;gap:0;padding:3px;font-size:.58rem}.colour-screen .topbar>.more-shortcut{width:44px}}
@media(max-width:899px){.colour-screen .topbar{grid-template-columns:44px minmax(0,1fr) 44px 44px;grid-template-areas:"home friend undo more" "tools tools tools tools" "paints paints paints glitter";row-gap:5px;top:calc(var(--st) + var(--colour-status-gap,0px) + 7px);left:max(10px,var(--sl));right:max(10px,var(--sr))}.colour-screen .topbar>.back{grid-area:home}.colour-screen .topbar>.friend-shortcut{grid-area:friend;max-width:none;min-width:44px;width:100%;padding:3px}.colour-screen .topbar>.tool-switch{grid-area:tools;justify-content:space-between;width:100%}.colour-screen .topbar>.undo{grid-area:undo}.colour-screen .topbar>.palette{grid-area:paints}.colour-screen .topbar>.glitter-switch{grid-area:glitter;width:44px}.colour-screen .topbar>.more-shortcut{grid-area:more}.colour-screen .topbar .friend-shortcut img{max-width:24px}}
@media(max-width:350px){.colour-screen .topbar{left:max(6px,var(--sl));right:max(6px,var(--sr));column-gap:4px}.colour-screen .topbar .brush-sizes{gap:2px}.colour-screen .topbar .brush-sizes>button{width:38px;min-width:38px;font-size:.55rem}.colour-screen .topbar .tool-switch{gap:2px}}
@media(orientation:landscape) and (max-height:560px){.colour-screen .topbar .brush-sizes>button{height:44px;min-height:44px}}

/* Enlarge the same reference image in a modal; no cloned image or paint buffer. */
.colour-screen .colour-reference{pointer-events:auto;cursor:zoom-in;touch-action:manipulation}
.colour-screen .colour-reference:focus-visible{outline:3px solid #214f56;outline-offset:3px}
.colour-screen .colour-guide-window{width:min(760px,calc(100vw - 24px),calc(var(--colour-vh,100vh) - var(--st) - var(--sb) - 70px));padding:14px;overflow:hidden}
.colour-screen .colour-guide-window .colour-reference{position:static;left:auto;bottom:auto;z-index:auto;display:block;margin:0;width:100%;max-width:none;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff;cursor:zoom-out}
.colour-screen .colour-guide-window .colour-reference img{display:block;width:100%;height:auto;max-height:calc(var(--colour-vh,100vh) - var(--st) - var(--sb) - 120px);object-fit:contain}
.colour-screen .colour-guide-window .colour-reference figcaption{font-size:14px;line-height:1.35;margin:9px 0 2px}

/* Bounded learning-page addition after the existing compact colouring CSS. */
.colour-screen .colour-picture-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 14px}
.colour-screen .colour-picture-groups button{min-width:0;min-height:48px;padding:8px 6px;border:2px solid #7180aa;border-radius:15px;background:#303c6b;color:#fff7dd;font:inherit;font-size:.86rem;font-weight:800;line-height:1.22;white-space:normal}
.colour-screen .colour-picture-groups button[aria-pressed=true]{background:#ffe092;border-color:#dfbd69;color:#203e52}
.colour-screen .colour-picture-groups button:focus-visible{outline:3px solid #ffdc79;outline-offset:3px}
.colour-screen .all-friends{overflow-anchor:none}
.colour-screen .colour-learning-prompt{position:absolute;z-index:2;top:var(--colour-learning-prompt-top,175px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);margin:0;padding:7px 12px;border:1px solid #d8d9b9;border-radius:15px;background:#fff9e7f5;color:#214f56;box-shadow:0 2px 8px #1c354512;font-size:clamp(.78rem,1.4vw,.97rem);font-weight:800;line-height:1.35;text-align:center;pointer-events:none}
.colour-screen .colour-learning-prompt[hidden]{display:none!important}
@media(max-width:420px){.colour-screen .colour-picture-groups{gap:5px}.colour-screen .colour-picture-groups button{font-size:.76rem;padding:7px 4px}.colour-screen .colour-learning-prompt{padding:6px 9px;max-width:calc(100% - 20px)}}
@media(orientation:landscape) and (max-height:560px){.colour-screen .colour-learning-prompt{padding:4px 10px;font-size:.76rem}}

/* Keep the picker heading, close control and groups visible while pictures scroll. */
.colour-screen .colour-friends-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.colour-screen .colour-friends-dialog>h2{flex:none;min-height:44px;display:flex;align-items:center;padding-right:56px;font:900 clamp(1.25rem,3.5vw,1.55rem)/1.15 Nunito,system-ui,sans-serif}
.colour-screen .colour-friends-dialog>.colour-picture-groups{flex:none}
.colour-screen .colour-friends-dialog>.all-friends{min-height:0;overflow-y:auto;overscroll-behavior:contain}

/* The three picture groups are compact illustrated plates, separate from Close. */
.colour-screen .colour-friends-dialog>.dialog-x{top:16px;right:16px;width:44px;height:44px;border:2px solid #fff0a9;border-radius:15px;background:linear-gradient(#fff5ca,#ffd477);color:#203e52;box-shadow:inset 0 2px 0 #fffbe8,0 3px 0 #a47c36;font:900 28px/1 Nunito,system-ui,sans-serif;transform:none;animation:none;transition:none}
.colour-screen .colour-friends-dialog>.colour-picture-groups{gap:8px;margin:10px 0 0}
.colour-screen .colour-friends-dialog .colour-picture-groups>button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:84px;padding:7px 4px;border:2px solid #9bdcd4;border-radius:17px;background:linear-gradient(155deg,#f1fffa,#afe9df);color:#173f4a;box-shadow:inset 0 2px 0 #ffffffc9,0 4px 0 #0b173b;font:900 .72rem/1.15 Nunito,system-ui,sans-serif;transform:none;animation:none;transition:none}
.colour-screen .colour-friends-dialog .colour-picture-groups>button:before{content:'';display:grid;place-items:center;flex:none;width:36px;height:32px;border-radius:9px;background:url(/app/creator/breatho-live-idle.c63063c0cd.webp) center/contain no-repeat;font:1000 16px/1 Nunito,system-ui,sans-serif;letter-spacing:-.05em}
.colour-screen .colour-friends-dialog .colour-picture-groups>[data-picture-group="letters"]{border-color:#f0bf63;background:linear-gradient(155deg,#fff7d6,#ffd17c);color:#503919}
.colour-screen .colour-friends-dialog .colour-picture-groups>[data-picture-group="letters"]:before{content:'';background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2036%22%3E%3Cpath%20d%3D%22M5%2027%2013%208%2021%2027%20M8%2021H18%20M27%208V27H34C43%2027%2043%2017%2034%2017H27%20M27%208H34C42%208%2042%2017%2034%2017%20M56%2010C43%201%2041%2034%2056%2025%22%20fill%3D%22none%22%20stroke%3D%22%2371381c%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat,linear-gradient(135deg,#ffe7a3,#ffb85f);color:#71381c;border:1px solid #fff1ca;box-shadow:inset 0 1px 0 #fff5db,0 2px 0 #cd8c3e}
.colour-screen .colour-friends-dialog .colour-picture-groups>[data-picture-group="numbers"]{border-color:#eaa7cc;background:linear-gradient(155deg,#fff0f7,#f6b5d9);color:#542749}
.colour-screen .colour-friends-dialog .colour-picture-groups>[data-picture-group="numbers"]:before{content:'';background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2036%22%3E%3Cpath%20d%3D%22M6%2012%2012%208V27%20M6%2027H18%20M25%2012C25%205%2039%205%2039%2013%2039%2018%2025%2022%2025%2027H39%20M46%209C57%204%2060%2016%2049%2017%2061%2016%2060%2030%2046%2026%22%20fill%3D%22none%22%20stroke%3D%22%23553079%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat,linear-gradient(135deg,#fbe1ff,#d6acff);color:#553079;border:1px solid #fff0ff;box-shadow:inset 0 1px 0 #fff5ff,0 2px 0 #b77bcd}
.colour-screen .colour-friends-dialog .colour-picture-groups>[aria-pressed="true"]{border-color:#fff3ae;outline:2px solid #ffd56f;outline-offset:2px;box-shadow:inset 0 2px 0 #fffef2,0 4px 0 #0b173b,0 0 16px #ffdb7945}
.colour-screen .colour-friends-dialog .colour-picture-groups>[aria-pressed="true"]:after{content:'';position:absolute;top:5px;right:6px;width:6px;height:10px;border:solid #203e52;border-width:0 3px 3px 0;border-radius:0;background:transparent;transform:rotate(45deg)}

/* A real label and selected picture replace the empty phone selector. */
.colour-screen .topbar>.friend-shortcut{display:grid;grid-template-columns:28px minmax(0,1fr) 10px;gap:7px;width:100%;max-width:230px;min-width:0;justify-self:start;padding:5px 8px;text-align:left;background:linear-gradient(#fffdf4,#fff3d6);border-color:#e0d3ae}
.colour-screen .topbar>.friend-shortcut img{width:28px;height:32px;max-width:28px;border-radius:7px;object-fit:contain;background:#fff}
.colour-screen .topbar .friend-shortcut-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.colour-screen .topbar .friend-shortcut-label{display:block;color:#214f56;font:900 .73rem/1.1 Nunito,system-ui,sans-serif;white-space:nowrap}
.colour-screen .topbar .friend-shortcut-name{display:block;min-width:0}
.colour-screen .topbar .friend-shortcut-name h2{max-width:none;width:100%;color:#48636a;font:800 .65rem/1.1 Nunito,system-ui,sans-serif;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.colour-screen .topbar>.friend-shortcut>span:last-child{font-size:15px;text-align:center}
@media(min-width:900px) and (max-width:1100px){.colour-screen .topbar{grid-template-columns:44px minmax(160px,220px) 326px 44px minmax(45px,1fr) 48px 44px}}

/* Native text/image menus do not belong on the drawing workspace. Export previews stay selectable. */
.colour-screen .paper,.colour-screen .paper *,.colour-screen .topbar,.colour-screen .topbar *,.colour-screen .colour-reference,.colour-screen .colour-reference *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}

@media(min-width:1101px){.colour-screen .topbar{grid-template-columns:44px minmax(160px,220px) auto 44px minmax(120px,1fr) 70px 48px}}
