@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=DM+Serif+Display:ital@0;1&display=swap');
:root{--paper:#f8f7f2;--white:#fffefa;--ink:#293d38;--muted:#78817a;--line:#e4e6dd;--green:#366554;--coral:#cb785d;--serif:'DM Serif Display',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 var(--sans)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}button,a{touch-action:manipulation}button{border:0;background:none}a{color:inherit}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}:focus-visible{outline:3px solid #c7795d;outline-offset:4px}button{transition:background .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}.app-shell{display:flex}.sidebar{width:238px;background:#f1f2ea;border-right:1px solid var(--line);padding:37px 23px 28px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font-size:25px;font-weight:650;letter-spacing:-1.2px;line-height:1}.brand-light{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:3.4px;margin-top:10px;font-weight:600;color:var(--muted)}.brand-mark{display:grid;grid-template-columns:15px 15px;grid-template-rows:15px 15px;gap:3px;transform:rotate(-8deg)}.brand-mark i{background:#d69373;border-radius:5px 5px 2px 5px}.brand-mark i:nth-child(2){background:#d7bb77;transform:rotate(12deg)}.brand-mark i:nth-child(3){background:#8baba1}.brand-mark i:nth-child(4){background:#557a64;transform:rotate(10deg)}.side-label,.eyebrow{font-size:10px;letter-spacing:1.65px;font-weight:650;line-height:1.5}.side-label{color:#8a9286;margin:55px 10px 15px;font-size:9px;letter-spacing:1.3px}.nav-item{display:flex;align-items:center;gap:13px;text-align:left;min-height:49px;padding:12px 14px;width:100%;border-radius:9px;font-size:13px;font-weight:500;margin:4px 0;white-space:nowrap}.nav-item svg{width:19px;height:19px}.nav-item:hover{background:#e6eadf}.nav-item.active{background:#dfe7d9;color:#345c47}.nav-dot{width:5px;height:5px;background:#557b57;border-radius:50%;margin-left:auto}.nav-item:not(.active) .nav-dot{display:none}.side-divider{height:1px;background:#dee2d6;margin:22px 13px 18px}.new-tag{font-size:7px;padding:1px 5px;background:#e9dbbd;color:#806a36;border-radius:4px;letter-spacing:1px;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:35px 11px 0}.small-palette{display:flex;gap:5px}.small-palette span{width:15px;height:15px;border-radius:50%;background:#d38d72}.small-palette span:nth-child(2){background:#d8ba7a}.small-palette span:nth-child(3){background:#aebc97}.small-palette span:nth-child(4){background:#81a59c}.small-palette span:nth-child(5){background:#517265}.sidebar-bottom p{font-family:var(--serif);font-size:22px;line-height:1.4;margin:17px 0 24px}.text-button{font-size:12px;padding:5px 0;text-decoration:underline;text-underline-offset:4px;color:var(--green)}.home-link{display:block;text-decoration:none;color:#7f897d;font-size:10px;margin-top:25px}.library-main{margin-left:238px;padding:0 52px;width:calc(100% - 238px);max-width:1800px}.topbar{height:98px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.topbar-note{font-size:9px;letter-spacing:1.5px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:9px}.topbar-note>span{width:6px;height:6px;border-radius:50%;background:#9cab8b}.top-actions{display:flex;gap:16px;align-items:center}.icon-button{width:43px;height:43px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;font-size:20px}.icon-button:hover{background:#e6e9e1}.top-actions>.icon-button{border:1px solid #d9ded1;font-family:var(--serif);width:30px;height:30px;font-size:16px}.primary,.dark-button,.outline-button{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:48px;padding:12px 21px;border-radius:7px;font-weight:550;font-size:13px;text-decoration:none}.primary{background:var(--coral);color:#fffdfa}.primary:hover{background:#b96950}.small{min-height:41px;padding:9px 16px;font-size:12px}.small svg{width:18px;height:18px}.dark-button{background:var(--ink);color:#fffdf7}.dark-button:hover{background:#456358}.dark-button svg{width:18px}.outline-button{border:1px solid #d8ded2;background:transparent}.outline-button:hover{background:#ebeee5}.welcome{display:flex;align-items:center;justify-content:space-between;padding:41px 0 34px}.welcome .eyebrow{color:var(--coral);margin:0 0 13px}.welcome h1{font:54px/1.09 var(--serif);letter-spacing:-1.7px;margin:0}.welcome h1 em{color:#698468;font-weight:400}.welcome p:not(.eyebrow){font-size:12px;color:var(--muted);margin-top:19px;margin-bottom:0}.welcome-note{display:flex;align-items:center;gap:14px;padding-right:25px}.drawn-star{font-size:51px;line-height:1;color:#c38e5c}.welcome-note p{font-family:var(--serif);font-style:italic;font-size:18px!important;line-height:1.5;margin:0!important;color:#87927f!important}.featured{height:347px;position:relative;overflow:hidden;background:#e7ebdd;border-radius:13px;margin-bottom:42px;isolation:isolate}.feature-copy{position:relative;z-index:2;padding:31px 34px;width:46%;height:100%;background:linear-gradient(90deg,#e9eddf 70%,#e9eddf00)}.feature-copy>.eyebrow{font-size:8px;color:#6d7b61;margin:0 0 14px}.feature-copy h2{font:43px/1.08 var(--serif);letter-spacing:-1px;margin:0}.feature-copy h2 em{font-weight:400}.feature-copy>p:not(.eyebrow){font-size:11px;line-height:1.7;color:#6e7d69;margin:14px 0 20px}.feature-copy .dark-button{font-size:11px;min-height:41px;padding:9px 15px;gap:22px}.feature-caption{display:block;font-size:7px;letter-spacing:1.3px;color:#818c77;margin-top:20px}.featured>img{position:absolute;width:69%;height:100%;object-fit:cover;object-position:50% 44%;right:0;top:0;z-index:-1}.feature-seal{position:absolute;right:22px;top:21px;width:59px;height:59px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid #f8eed0;font-size:8px;letter-spacing:1px;line-height:1.3;text-align:center;color:#fff6d8;transform:rotate(14deg);background:#38574a66}.collection-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.collection-heading .eyebrow{margin:0 0 7px;color:#8b927f;font-size:8px}.collection h2{font:27px/1.2 var(--serif);letter-spacing:-.55px;margin:0}.collection h2 span,.dialog-header h2 span{color:var(--coral)}.search-field{display:flex;align-items:center;gap:9px;border-bottom:1px solid #d9ded0;width:180px;padding:9px 0}.search-field svg{width:16px;height:16px;color:#8a9486}.search-field input{border:0;outline:0;background:none;font-size:11px;width:100%;color:var(--ink)}.filters{display:flex;gap:8px;margin:23px 0 25px;overflow:auto;padding:3px 0 5px;scrollbar-width:none}.filter{border:1px solid #e1e5d9;white-space:nowrap;min-height:34px;padding:6px 17px;border-radius:20px;font-size:10px;color:#7c8675}.filter.active{background:var(--ink);color:#fffdf6;border-color:var(--ink)}.picture-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 19px}.picture-card{min-width:0;position:relative}.picture-image{border-radius:10px;overflow:hidden;background:#edece0;aspect-ratio:1/1;position:relative}.picture-image>button:first-child{display:block;width:100%;height:100%;padding:0;position:relative}.picture-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.picture-image>button:first-child:hover img{transform:scale(1.045)}.image-overlay{position:absolute;inset:0;background:#233d3166;opacity:0;display:flex;justify-content:center;align-items:center;transition:opacity .25s}.picture-image>button:hover .image-overlay{opacity:1}.image-overlay span{font-size:11px;background:#fffdf5;padding:9px 17px;border-radius:30px;display:flex;align-items:center;gap:7px}.image-overlay svg{width:15px;height:15px}.favorite-button{position:absolute;top:9px;right:9px;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fffdf4df;color:#53664f;z-index:1}.favorite-button svg{width:15px;height:15px}.favorite-button.active svg,#paint-favorite.active svg{fill:var(--coral);stroke:var(--coral)}.picture-title{font-size:12px;font-weight:550;margin:11px 0 2px;line-height:1.4}.picture-meta{color:#939a8a;font-size:9px;display:flex;justify-content:space-between;gap:5px}.card-progress{position:absolute;bottom:9px;left:9px;font-size:9px;border-radius:10px;background:#fffdf5eb;padding:3px 8px}.create-banner{border:1px solid #e0e3d7;border-radius:11px;margin:46px 0 26px;padding:24px;display:flex;align-items:center;gap:22px;background:#f3f2e9}.create-symbol{width:54px;height:63px;display:flex;align-items:center;justify-content:center;border:1px solid #cbd4c0;border-radius:9px;transform:rotate(-8deg);color:#8c9f7e;background:#e5e9dc}.create-symbol svg{width:29px;height:29px}.create-banner .eyebrow{font-size:7px;color:#8a947e;margin:0 0 5px}.create-banner h2{font:21px/1.2 var(--serif);margin:0}.create-banner p:not(.eyebrow){font-size:10px;color:#8b9482;margin:8px 0 0}.create-banner .outline-button{margin-left:auto;white-space:nowrap;font-size:10px;min-height:39px;padding:8px 14px}.create-banner .outline-button svg{width:15px}.library-footer{display:flex;justify-content:space-between;gap:20px;color:#92998b;font-size:9px;border-top:1px solid var(--line);padding:21px 0 26px}.library-footer .text-button{font-size:9px}.empty-state{text-align:center;padding:60px 20px;border:1px dashed #ccd6c2;border-radius:12px}.empty-state h3{font:28px var(--serif)}.empty-state p{color:var(--muted)}.studio-stats{display:flex;gap:30px;margin-bottom:26px}.studio-stats strong{font:25px var(--serif);display:block}.studio-stats span{font-size:10px;color:var(--muted)}
/* Painting is a separate, quiet workspace. */
/* Creators and utility dialogs */
dialog{color:var(--ink);border:1px solid #e1e6d7;border-radius:18px;background:var(--white);padding:30px;box-shadow:0 25px 100px #182e3240;max-height:92dvh}dialog::backdrop{background:#253a366b;backdrop-filter:blur(5px)}.create-dialog{width:970px;max-width:calc(100% - 32px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-header h2{font:32px/1.2 var(--serif);letter-spacing:-.6px;margin:0}.dialog-header .eyebrow{font-size:8px;color:#a08d74;margin:0 0 7px}.creation-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:24px}.creation-tabs button{display:flex;align-items:center;gap:8px;font-size:12px;padding:9px 1px 13px;border-bottom:2px solid transparent;color:var(--muted)}.creation-tabs button[aria-pressed=true]{border-color:var(--green);color:var(--green)}.creation-tabs svg{width:16px;height:16px}.creator-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:32px}.creator-preview{background:#f1f2e9;border-radius:12px;overflow:hidden;min-height:390px;display:flex;align-items:center;justify-content:center;position:relative}.drop-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;border:1px dashed #c3cdb8;position:absolute;inset:20px;border-radius:8px;cursor:pointer;padding:20px}.drop-zone.dragging{background:#dae6d3}.drop-zone>svg{width:43px;height:43px;color:#8f9e7f;margin-bottom:10px}.drop-zone strong{font:23px var(--serif)}.drop-zone span{color:var(--muted);font-size:11px}.drop-zone small{font-size:9px;line-height:1.7;color:#9da58f;margin-top:20px}.drop-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.creator-controls>label:not(.checkbox-field){display:block;font-size:11px;font-weight:600;margin:0 0 9px}.creator-controls input:not([type=range]):not([type=checkbox]),.creator-controls select,.creator-controls textarea{width:100%;border:1px solid #dce1d1;border-radius:6px;background:#fffefa;padding:11px 12px;margin-top:7px;font-size:12px;color:var(--ink)}.creator-controls textarea{resize:vertical;min-height:90px}.creator-controls>select{margin-top:0;margin-bottom:19px;font-size:11px}.creator-controls input[type=range]{width:100%;accent-color:var(--green);margin:5px 0 0;min-height:25px}.range-label{display:flex!important;justify-content:space-between;margin-top:19px!important}.range-label output{font-weight:400;color:var(--muted)}.range-ends{display:flex;justify-content:space-between;color:#969e8b;font-size:8px;margin:0 0 20px}.checkbox-field{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #e0e5d5;border-radius:6px;margin:12px 0 17px;font-size:11px;cursor:pointer}.checkbox-field input{accent-color:var(--green);width:16px;height:16px}.checkbox-field small{display:block;font-size:9px;color:var(--muted);font-weight:400}.checkbox-field svg{width:17px;height:17px;margin-left:auto;color:#a18c55}.creation-privacy{font-size:10px;color:var(--muted);line-height:1.7;margin:14px 0}.creator-controls .primary{width:100%;margin-top:6px}.creation-caption{text-align:center;color:#9da58e;font-size:9px;margin:10px 0 0}.creator-controls>#cancel-creation{display:block;margin:10px auto 0}.ai-empty{text-align:center;padding:30px}.ai-empty>span{font-size:80px;color:#c79f70}.ai-empty h3{font:26px/1.4 var(--serif)}.ai-empty h3 em{color:#7b9471;font-weight:400}.ai-empty p{font-size:11px;color:#929c85;line-height:1.9}.creation-status{font-size:11px;color:var(--green);padding:12px 0}.creation-status progress{display:block;width:100%;height:5px;accent-color:var(--green);margin-top:10px}#preview-wrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center;min-height:390px;padding-bottom:54px}#source-preview,#conversion-preview{width:100%;max-height:450px;object-fit:contain;display:block}#conversion-preview{height:auto}.preview-switch{display:flex;gap:3px;position:absolute;bottom:13px;left:50%;transform:translateX(-50%);background:#fffdf8;border-radius:25px;padding:3px;box-shadow:0 2px 10px #35472e11;white-space:nowrap}.preview-switch button{font-size:10px;border-radius:20px;padding:7px 13px}.preview-switch button[aria-pressed=true]{background:#e3eadb}.preview-ready{display:flex;align-items:center;justify-content:space-between;padding-top:20px;margin-top:24px;border-top:1px solid var(--line);gap:20px}.preview-ready p{font-size:12px}.preview-ready p span{color:var(--muted)}.utility-dialog{width:480px;max-width:calc(100% - 28px)}.utility-dialog h3{font:24px var(--serif);margin:20px 0 10px}.utility-dialog p{font-size:12px;color:var(--muted)}.utility-dialog .outline-button,.utility-dialog .primary{width:100%;margin:6px 0}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px;gap:20px}.setting-row small{display:block;font-size:10px;color:var(--muted)}.setting-row input{width:19px;height:19px;accent-color:var(--green)}.help-steps{padding-left:20px;font-size:12px}.help-steps li{padding:6px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#2e4f41;color:#fffdf3;border:1px solid #ffffff22;border-radius:9px;padding:13px 22px;font-size:12px;box-shadow:0 8px 30px #182c282b;max-width:calc(100% - 30px);text-align:center}.completion-art{text-align:center;color:#c79d65;font-size:70px;line-height:1.3}.completion-copy{text-align:center}.completion-copy h3{font-size:29px}.danger-button{color:#a35c4c!important}.backup-note{background:#f0f2e8;padding:12px;border-radius:8px}.contrast{--ink:#14271e;--muted:#475743}
@media(min-width:1550px){.library-main{padding:0 75px}.featured{height:410px}.feature-copy{padding:45px}.feature-copy h2{font-size:53px}.picture-grid{gap:30px 24px}.welcome{padding:50px 0 42px}.welcome h1{font-size:63px}}
@media(max-width:1200px){.sidebar{width:205px;padding:32px 15px}.library-main{margin-left:205px;width:calc(100% - 205px);padding:0 30px}.brand{font-size:23px}.nav-item{font-size:11px;gap:10px}.welcome h1{font-size:47px}.welcome-note{padding-right:0}.welcome-note p{font-size:16px!important}.featured{height:320px}.feature-copy{width:49%;padding:28px}.feature-copy h2{font-size:36px}.picture-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.create-banner{gap:15px}.create-banner h2{font-size:19px}.create-symbol{display:none}}
@media(max-width:900px){.sidebar{width:82px;padding:29px 12px}.brand>span:last-child,.side-label,.sidebar .nav-item:not(.active) .new-tag{display:none}.brand{justify-content:center}.sidebar nav{margin-top:40px}.nav-item{font-size:0;justify-content:center;padding:12px}.nav-item svg{width:22px;height:22px}.nav-dot,.new-tag,.sidebar-bottom{display:none}.side-divider{margin:22px 7px}.library-main{margin-left:82px;width:calc(100% - 82px);padding:0 30px}.welcome-note p{font-size:15px!important}.welcome-note{gap:10px}.drawn-star{font-size:40px}.welcome h1{font-size:45px}.featured{height:315px}.feature-copy{width:52%;padding:27px}.collection h2{font-size:24px}.search-field{width:148px}.picture-grid{gap:23px 15px}.creator-layout{gap:20px}.create-dialog{padding:24px}.creator-preview{min-height:350px}}
@media(max-width:650px){.sidebar{position:relative;width:100%;height:auto;padding:20px 20px 0;border:0;background:var(--paper);display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.app-shell{display:block}.brand{font-size:24px}.brand>span:last-child{display:block}.brand small{font-size:6px;letter-spacing:3px;margin-top:7px}.brand-mark{grid-template-columns:12px 12px;grid-template-rows:12px 12px}.sidebar nav{display:flex;order:2;width:100%;margin:20px 0 0;gap:5px;border-bottom:1px solid var(--line);padding-bottom:9px}.nav-item{font-size:11px;gap:7px;min-height:41px;margin:0;border-radius:7px;white-space:nowrap;padding:8px 10px}.nav-item svg{width:16px;height:16px}.sidebar>.nav-item{display:none}.side-divider{display:none}.library-main{margin:0;padding:0 21px;width:100%}.topbar{height:auto;position:absolute;top:21px;right:21px;border:0}.topbar-note,.top-actions>.icon-button{display:none}.top-actions .primary{font-size:0;padding:8px;width:36px;height:36px;min-height:36px}.top-actions .primary svg{width:20px;height:20px}.welcome{padding:28px 0 26px}.welcome .eyebrow{font-size:8px;margin-bottom:11px}.welcome h1{font-size:43px;letter-spacing:-1.2px}.welcome p:not(.eyebrow){font-size:10px;max-width:265px;line-height:1.7;margin-top:14px}.welcome-note{display:none}.featured{height:297px;margin-bottom:31px;border-radius:10px}.feature-copy{padding:24px 20px;width:62%;background:linear-gradient(90deg,#e9eddf 50%,#e9eddf00)}.feature-copy>.eyebrow{font-size:6px;letter-spacing:1px}.feature-copy h2{font-size:33px}.feature-copy>p:not(.eyebrow){font-size:9px;max-width:170px}.feature-copy .dark-button{font-size:9px;gap:9px;min-height:38px;padding:9px 11px}.feature-caption{font-size:5px;letter-spacing:.7px}.featured>img{width:85%;object-position:50% 50%}.feature-seal{width:43px;height:43px;font-size:6px;right:12px;top:14px}.collection-heading{align-items:center;flex-wrap:wrap;gap:16px}.collection h2{font-size:24px;letter-spacing:-.5px}.collection-heading .eyebrow{font-size:7px}.search-field{width:100%;padding:6px 0}.search-field input{font-size:11px}.filters{gap:6px;margin:16px 0 17px}.filter{min-height:32px;font-size:9px;padding:6px 13px}.picture-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.picture-title{font-size:11px;margin-top:9px}.picture-meta{font-size:8px}.favorite-button{width:27px;height:27px;top:7px;right:7px}.favorite-button svg{width:13px;height:13px}.create-banner{margin:33px 0 20px;padding:21px;display:block}.create-banner h2{font-size:23px}.create-banner .eyebrow{font-size:6px}.create-banner p:not(.eyebrow){font-size:10px;max-width:240px}.create-banner .outline-button{margin-top:17px;font-size:10px}.library-footer{flex-direction:column;gap:4px;font-size:8px;padding:16px 0 21px}.library-footer .text-button{font-size:8px}.create-dialog{max-width:calc(100% - 16px);padding:20px;max-height:95dvh;border-radius:13px}.dialog-header{gap:10px;margin-bottom:12px}.dialog-header h2{font-size:27px}.dialog-header .eyebrow{font-size:6px;letter-spacing:1px}.dialog-header .icon-button{width:34px;height:34px}.creation-tabs{margin-bottom:15px}.creation-tabs button{font-size:11px}.creator-layout{grid-template-columns:1fr;gap:22px}.creator-preview,#preview-wrap{min-height:240px}.creator-preview{max-height:310px}.drop-zone{inset:13px;padding:15px;gap:7px}.drop-zone>svg{width:29px;height:29px;margin-bottom:0}.drop-zone strong{font-size:23px}.drop-zone small{margin-top:5px;font-size:8px}.creator-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.creator-controls>*{grid-column:1/-1}.creator-controls #photo-title-field{margin-bottom:0}.range-label{margin-top:13px!important}.creator-controls .range-ends{margin-bottom:14px}.creator-controls textarea{min-height:80px}.checkbox-field{margin-top:0}.ai-empty{padding:10px}.ai-empty>span{font-size:40px}.ai-empty h3{font-size:23px;margin:5px 0 10px}.ai-empty p{font-size:10px;margin:0}.preview-ready{display:block;margin-top:15px;padding-top:15px}.preview-ready p{font-size:10px}.preview-ready .dark-button{width:100%}.utility-dialog{padding:22px}.toast{bottom:15px;font-size:11px}.studio-stats{gap:24px}.studio-stats strong{font-size:23px}}
@media(max-width:370px){.library-main{padding:0 16px}.sidebar{padding-left:16px;padding-right:16px}.welcome h1{font-size:39px}.feature-copy{padding:23px 15px;width:67%}.feature-copy h2{font-size:31px}.collection h2{font-size:22px}.picture-title{font-size:10px}.picture-meta{font-size:7px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* A full-width canvas with a compact horizontal color tray in every orientation. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.paint-view{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#efefe9}
.paint-header{height:56px;flex:none;padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));display:flex;align-items:center;gap:12px;background:var(--white);border-bottom:1px solid var(--line)}
.paint-heading{min-width:0}.paint-heading h1{font:20px/1.2 var(--serif);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.paint-heading span{font-size:9px;color:var(--muted)}
.paint-header-actions{margin-left:auto;display:flex;align-items:center;gap:5px}.paint-header .icon-button{width:42px;height:42px;flex:none}.paint-header-actions .outline-button{min-height:38px}
.paint-layout{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;overflow:hidden}
.canvas-panel{flex:1;min-height:0;position:relative;background:#efefe9;overflow:hidden}
.canvas-stage{position:absolute;inset:0;touch-action:none;overflow:hidden}.canvas-stage canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}.canvas-stage.moving canvas{cursor:grab}
.canvas-stage.reference:after{content:'FINISHED PICTURE PREVIEW';position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:#fffdebf0;border-radius:20px;padding:5px 12px;font-size:9px;letter-spacing:1px;white-space:nowrap;pointer-events:none}
.palette-panel{flex:none;min-width:0;width:100%;position:relative;background:var(--white);padding:5px max(16px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-top:1px solid #dce2d4}
.progress-track{position:absolute;left:0;right:0;top:-2px;height:3px;background:#e2e7d9;overflow:hidden}.progress-track>div{height:100%;background:#789574;transition:width .3s}
.dock-toolbar{display:flex;align-items:center;gap:18px;min-height:40px}.canvas-tools{display:flex;align-items:center;gap:1px;flex:none}.canvas-tools .icon-button{width:36px;height:36px;font-size:22px}.canvas-tools svg{width:17px;height:17px}.canvas-tools .icon-button[aria-pressed=true]{background:#d9e6d1}.canvas-tools #zoom-label{font-size:10px;min-width:38px;text-align:center}.tool-separator{height:17px;width:1px;background:#e0e5d8;margin:0 5px}.redo svg{transform:scaleX(-1)}
.palette-heading{min-width:0;flex:1}.palette-instruction{font-size:12px;font-weight:550;margin:0;white-space:nowrap}.painting-options{display:flex;align-items:center;gap:12px;margin-left:auto}.painting-options .icon-button{width:40px;height:40px}.painting-options .text-button{font-size:11px;white-space:nowrap}.painting-options .outline-button{min-height:34px;font-size:10px;padding:5px 10px;white-space:nowrap}
.palette{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#bac7ae transparent;padding:10px 7px 13px;min-width:0;width:100%;align-items:center;-webkit-overflow-scrolling:touch}
.color-swatch{flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:var(--swatch);color:var(--text);position:relative;border:1px solid #314d3017;font-size:16px;font-weight:550;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px var(--white)}.color-swatch[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:4px}.color-swatch.complete{opacity:.5}.color-swatch.complete:after{content:'✓';position:absolute;background:var(--white);color:var(--green);font-size:11px;border-radius:50%;width:17px;height:17px;bottom:-3px;right:-3px;border:1px solid #d7e0cc}.swatch-remaining{display:none}
.dock-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:17px;color:#74816b;font-size:9px}.canvas-note{margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.progress-summary{display:flex;align-items:center;gap:7px;white-space:nowrap}.progress-summary strong{font-weight:550;color:var(--ink)}
.picture-card.coming-soon .picture-image img{filter:grayscale(1);opacity:.52}.picture-card.coming-soon .picture-image>button{opacity:1;cursor:default}.coming-soon-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:7px 15px;border-radius:22px;background:#fffefae8;color:#66705f;font-size:12px;font-weight:600;white-space:nowrap}.picture-card.coming-soon .picture-title,.picture-card.coming-soon .picture-meta{color:#8b9385}
@media(max-width:700px){.paint-header{height:52px;padding:0 8px;gap:4px}.paint-heading h1{font-size:17px}.paint-header-actions{gap:0}.paint-header .icon-button{width:38px;height:40px}.paint-header-actions .outline-button{border:0;padding:7px;min-height:38px}.paint-header-actions .outline-button span{display:none}.palette-panel{padding-left:10px;padding-right:10px}.dock-toolbar{gap:8px;flex-wrap:wrap;min-height:36px}.canvas-tools{gap:0}.canvas-tools .icon-button{width:31px;height:34px}.canvas-tools #zoom-label{min-width:34px;font-size:9px}.tool-separator{margin:0 3px}.palette-heading{order:3;flex-basis:100%}.palette-instruction{font-size:10px;text-align:center;line-height:1.2}.painting-options{gap:7px}.painting-options .icon-button{width:33px;height:34px}.painting-options .text-button{font-size:10px}.palette{gap:16px;padding-top:9px;padding-bottom:11px}.color-swatch{width:44px;height:44px;flex-basis:44px;font-size:14px}.dock-footer{font-size:8px;gap:6px}.progress-summary #progress-count{display:none}}
@media(max-width:400px){.canvas-tools .icon-button{width:28px}.canvas-tools #zoom-label{min-width:31px}.painting-options{gap:4px}.painting-options .outline-button{font-size:9px;padding:4px 6px}.paint-header #paint-favorite{display:none}}

/* Progress stays in the existing palette; feedback never captures a touch. */
.canvas-stage canvas.paint-feedback{position:absolute;inset:0;pointer-events:none;cursor:inherit}
.color-swatch:before{content:'';position:absolute;inset:-4px;border-radius:50%;padding:2px;background:conic-gradient(var(--green) var(--color-progress,0deg),#e0e6d9 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.color-swatch{scroll-margin-inline:10px}.color-swatch[aria-pressed=true]{outline-offset:7px}.palette{padding-left:11px;padding-right:11px;padding-top:13px;padding-bottom:13px}
#colors-finished{border-left:1px solid #d5ddce;padding-left:7px}
.color-celebration{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:10px 18px;border:1px solid #d5e2cd;border-radius:24px;background:#fffefaf5;box-shadow:0 4px 18px #29493417;color:#355b42;font-size:12px;font-weight:550;white-space:nowrap;pointer-events:none;animation:color-arrives .22s ease-out}
@keyframes color-arrives{from{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:700px){.palette{padding-top:12px;padding-bottom:12px}.color-celebration{font-size:10px;padding:8px 12px}.color-swatch[aria-pressed=true]{outline-offset:6px}}

.completion-preview{display:block;width:180px;height:180px;object-fit:contain;margin:0 auto 15px;border-radius:10px;box-shadow:0 8px 25px #2b493c1a}
