:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#27453c;background:#f7f5ee}*{box-sizing:border-box}body{margin:0}button,a,input{touch-action:manipulation}button,a{font:inherit}button{min-height:44px;border:1px solid #cbd6ca;background:#fffdf7;color:inherit;border-radius:12px;padding:9px 14px;cursor:pointer}button:hover{background:#edf0e5}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #bd9446;outline-offset:3px}button.primary{background:#245f4b;color:#fff;border-color:#245f4b}button[aria-pressed=true]{background:#dce9d9;border-color:#245f4b}.paint-app{max-width:880px;margin:auto;padding:0 20px}.paint-header{display:flex;gap:14px;align-items:center;padding:20px 0;border-bottom:1px solid #e0e4d8}.paint-header>div{flex:1}.back{width:44px;height:44px;display:grid;place-items:center;border:1px solid #d5dbce;border-radius:50%;text-decoration:none;color:inherit;font-size:22px}.eyebrow{font-size:11px;letter-spacing:.08em;margin:0 0 3px;color:#738278}h1{font-size:23px;margin:0;letter-spacing:-.04em}h2{font-size:19px;margin:0 0 5px}.intro{display:flex;align-items:center;justify-content:space-between;padding:22px 0 16px}.intro p{margin:0;font-size:13px;color:#778276}#progress{font-variant-numeric:tabular-nums;background:#e8ecdf;border-radius:50%;width:56px;height:56px;display:grid;place-items:center;font-size:15px}.stage-shell{height:min(57dvh,650px);min-height:260px;background:#e9ecdf;border:1px solid #dfe3d4;border-radius:20px;position:relative;overflow:hidden;box-shadow:inset 0 0 40px #cbd5c533}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.canvas-tag{pointer-events:none;position:absolute;left:14px;top:13px;background:#fffdf0e6;border:1px solid #dddac6;border-radius:30px;padding:5px 11px;font-size:11px;letter-spacing:.04em;color:#7c816e}.tools{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:12px 0}.tools button{font-size:12px;padding:6px 12px}.tools output{width:46px;text-align:center;font-size:11px;color:#6d796f}.palette-area{background:#fffdf7;border:1px solid #e3e6d9;border-radius:18px;padding:16px 18px}.palette-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin-bottom:12px}.palette-heading label{display:flex;align-items:center;gap:7px;color:#7b8477}.palette-heading input{width:100px;accent-color:#28654f}#palette{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}.swatch{display:grid;place-items:center;padding:0;min-height:44px;height:44px;border-radius:13px;border:2px solid transparent;font-size:13px;font-weight:700;position:relative}.swatch[aria-pressed=true]{outline:2px solid #274d3d;outline-offset:3px;border:2px solid #fff;transform:translateY(-1px)}.swatch span{border-radius:20px;min-width:22px;padding:2px 3px;background:#ffffffce;color:#213e32}.hint{color:#798273;font-size:12px;line-height:1.65;margin:13px 0 0}footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 2px 20px;font-size:11px;color:#7b8576}.text-button{border:0;background:none;padding:5px 0;font-size:11px}dialog{width:min(90vw,440px);max-height:90dvh;overflow:auto;border:1px solid #d8dfd1;border-radius:22px;padding:20px;background:#fffdf7;color:#27453c;box-shadow:0 20px 80px #17362933}dialog::backdrop{background:#182c245e;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dialog-head button{border:0;font-size:25px;background:transparent}dialog img{width:100%;max-height:47dvh;object-fit:contain;background:#f3f1e7;border-radius:10px}dialog p{font-size:12px;line-height:1.6;color:#788171}.dialog-actions{display:flex;gap:8px}.dialog-actions button{flex:1}#export-status{min-height:1.5em}@media(min-width:760px){main{max-width:640px;margin:auto}.stage-shell{height:560px}.paint-header{padding:24px 0}}@media(max-width:380px){.paint-app{padding:0 12px}.paint-header{gap:9px}#palette{gap:6px}.swatch{min-height:40px;height:40px}.tools{gap:3px}.tools button{padding:6px 8px}.palette-area{padding:13px 12px}.hint{font-size:11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#paint-language{font:inherit;font-size:11px;min-height:44px;max-width:88px;border:1px solid #d5dbce;border-radius:12px;color:#45624f;background:#fffdf7;padding:6px}.paint-header .primary{font-size:12px;max-width:120px;line-height:1.3}.paint-header>div{min-width:0}.paint-header h1{overflow-wrap:anywhere}@media(max-width:430px){.paint-header{flex-wrap:wrap}.paint-header>div{flex:1 1 140px}.paint-header #paint-language{margin-left:auto}.paint-header .primary{max-width:138px}.paint-header h1{font-size:21px}}.tools button,.dialog-actions button{overflow-wrap:anywhere}.dialog-actions{flex-wrap:wrap}.hint{overflow-wrap:anywhere}
button{min-width:44px}.swatch{min-height:44px;height:44px}footer{flex-wrap:wrap}footer #save-status{flex:1 1 150px}#paint-language{flex:0 0 auto}@media(max-width:600px){#palette{grid-template-columns:repeat(6,minmax(44px,1fr))}}@media(max-width:380px){#palette{grid-template-columns:repeat(4,minmax(44px,1fr))}.swatch{min-height:44px;height:44px}}

[hidden]{display:none!important}.paint-header{flex-wrap:wrap}.paint-header #gallery-back{font-size:12px}.gallery-heading{padding:30px 0 22px}.gallery-heading h2{font-size:26px;line-height:1.3}.gallery-heading>p:last-child{font-size:12px;color:#687a6a;line-height:1.6}.art-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.art-card{padding:0;overflow:hidden;text-align:left;border-radius:16px;background:#fffdf7;min-width:0}.art-card:hover{box-shadow:0 8px 24px #2c493716}.art-card img{width:100%;height:auto;display:block;aspect-ratio:4/5;object-fit:cover;background:#e5e8d9}.art-card-copy{display:grid;padding:13px;gap:7px}.art-card strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.art-card small{font-size:11px;color:#6a7f6b}.art-card-progress{font-size:12px;color:#28593c}.art-source{font-size:12px;color:#6d7e70;margin:16px 0}.art-source summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.art-source a{color:inherit;line-height:1.6;overflow-wrap:anywhere}#art-credit{display:grid;gap:8px}#painting{max-width:640px;margin:auto}@media(min-width:760px){main{max-width:840px}.art-grid{gap:22px}}@media(max-width:600px){.art-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.art-card-copy{padding:10px}.art-card strong{font-size:14px}.gallery-heading h2{font-size:23px}}@media(max-width:340px){.art-grid{gap:9px}.art-card strong{font-size:13px}}
.art-gallery-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:22px 0 30px}.art-gallery-pagination button{min-height:44px;max-width:100%;overflow-wrap:anywhere;flex:0 1 auto}.art-page-count{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#61745f}@media(max-width:380px){.art-gallery-pagination{gap:8px}.art-gallery-pagination button{padding:9px 11px;font-size:12px}}
