:root{color-scheme:light;--ink:#344451;--muted:#7f858e;--rose:#f17f77;--rose-dark:#b85453;--cream:#fbf7f2;--line:#eee8e3;--shadow:0 20px 55px rgba(78,62,78,.055),0 2px 8px rgba(78,62,78,.025);font-family:ui-rounded,"Avenir Next","Segoe UI","Trebuchet MS",sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(ellipse 75% 22% at 13% -9%,#ffeadf 0,transparent 90%),var(--cream)}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:not-allowed}button:not(:disabled){cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,input:focus-visible,a:focus-visible,[data-region]:focus-visible{outline:3px solid #f58a70;outline-offset:4px}.topline{height:5px;background:linear-gradient(90deg,#facb96 0%,#f3a2b7 27%,#c5b7ed 55%,#a1cfdf 79%,#b4d9b1 100%)}.site-header{max-width:1420px;margin:auto;padding:25px 45px 23px;display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid #ece8e1}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(150deg,#fce1cb,#f6d4d9);color:#905969;box-shadow:inset 0 1px #ffffffab,0 8px 14px #d4aaa022}.brand-mark svg{width:38px;height:38px}.brand strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:700;letter-spacing:-.8px}.brand small{display:block;color:#ab9794;font-size:9px;font-weight:800;letter-spacing:1.6px;margin-top:5px}.header-pill{border:1px solid #ebe4dc;background:#fffdfb;padding:12px 17px;border-radius:999px;font-size:12px;color:#8b827e;font-weight:650;white-space:nowrap}.dot{width:7px;height:7px;border-radius:50%;background:#8eb68e;display:inline-block;margin-right:7px;vertical-align:1px}.header-pill-extra{color:#aaa5a0}main{max-width:1370px;margin:auto;padding:34px 45px 20px}.intro-row{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:30px}.eyebrow{color:#ba827c;letter-spacing:2px;font-size:10px;font-weight:800;margin:0 0 10px}.eyebrow-star{font-size:14px;margin-right:5px;color:#eba585}h1{font-family:Georgia,"Iowan Old Style",serif;font-size:clamp(30px,3.2vw,49px);line-height:1.17;letter-spacing:-1.8px;margin:0 0 11px;font-weight:600}h1 em{color:#df8b87;font-weight:500}.lead{font-size:14.5px;line-height:1.7;color:#7c7e84;margin:0;max-width:720px}.edition-tag{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 92px;width:92px;height:92px;border-radius:50%;background:#fce6df;color:#ab7172;border:1px solid #f6d9d3;transform:rotate(8deg)}.edition-star{position:absolute;top:-12px;right:-8px;font-size:25px;color:#e7a35b}.edition-tag strong{font:600 35px Georgia,serif;line-height:1}.edition-tag small{font-size:10px;font-weight:800;letter-spacing:1.5px;margin-top:4px}.studio{display:grid;grid-template-columns:minmax(0,1fr) 365px;align-items:start;gap:23px}.drawing-card,.palette-card,.next-card{background:#fff;border:1px solid #eee7e1;box-shadow:var(--shadow)}.drawing-card{border-radius:25px;min-width:0;overflow:hidden}.drawing-heading{padding:18px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #f1eeea}.story-identity{display:flex;align-items:center;gap:12px}.story-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff2e5;color:#e6a35d;font-size:25px}.overline{display:block;margin:0;color:#b3938e;font-size:9px;font-weight:850;letter-spacing:1.55px}.story-identity strong{display:block;font-family:Georgia,serif;font-size:19px;line-height:1.2;letter-spacing:-.4px;margin-top:4px}.zoom-button{display:flex;align-items:center;gap:7px;min-height:43px;padding:8px 13px;border:1px solid #e6e2dd;border-radius:12px;background:#fff;color:#6e7677;font-size:12px;font-weight:750;transition:background .2s,transform .2s}.zoom-button:hover{background:#fff6f0}.zoom-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.canvas-frame{background:linear-gradient(135deg,#fff9f1,#fff9f8 54%,#f6faff);margin:17px;border-radius:18px;padding:9px;border:1px solid #f3e9e2;position:relative}.canvas-corner{position:absolute;pointer-events:none;z-index:1;font-size:27px;color:#eab6ad}.canvas-corner-top{top:-14px;right:18px;transform:rotate(15deg)}.canvas-corner-bottom{bottom:-18px;left:14px;color:#e2bc7f}.illustration{display:block;position:relative;overflow:auto;overscroll-behavior-x:contain;border-radius:12px;background:#fff;border:1px solid #f1edeb;min-height:175px;touch-action:pan-x pan-y}.illustration svg{display:block;width:100%;height:auto;max-width:none}.illustration.is-zoomed svg{width:168%}.illustration [data-region]{cursor:pointer;touch-action:manipulation;transition:fill .12s ease}.illustration .details{pointer-events:none}.illustration [data-region]:focus-visible{outline:none;stroke:#d96f68!important;stroke-width:5}.illustration [data-region]:hover{filter:brightness(.965)}.under-canvas{padding:0 25px 23px}.progress-info{display:flex;align-items:center;gap:11px;margin-bottom:11px}.progress-icon{display:grid;place-items:center;background:#fdf1dd;color:#dda85a;width:37px;height:37px;border-radius:12px;font-size:19px}.progress-info strong{display:block;font-size:13px;color:#4c5960;font-weight:800}.progress-info span:last-child{display:block;font-size:11px;color:#a09a97;margin-top:3px}.progress-track{height:7px;border-radius:99px;background:#f1eeeb;overflow:hidden}.progress-track span{height:100%;width:0;display:block;background:linear-gradient(90deg,#f6b66b,#ed9d9e,#abaee3);border-radius:inherit;transition:width .22s ease}.canvas-hint{margin:15px 0 0;font-size:12px;line-height:1.65;color:#89878a}.canvas-hint>span{font-size:17px;color:#e9a67e;margin-right:5px}.tools{min-width:0}.palette-card{padding:23px;border-radius:23px}.tools-header{display:flex;align-items:center;gap:9px;margin-bottom:8px}.studio-icon{display:grid;place-items:center;background:#fdf0ea;color:#df9183;border-radius:11px;width:37px;height:37px}.studio-icon svg{width:25px;height:25px}.palette-card h2{font-family:Georgia,serif;font-size:26px;font-weight:600;letter-spacing:-.8px;line-height:1.16;margin:0}.palette-card h2 span{color:#db99a9;font:400 19px sans-serif}.palette-subtitle{font-size:12px;line-height:1.6;color:#9a9391;margin:9px 0 17px}.current-color{display:flex;align-items:center;gap:11px;background:linear-gradient(110deg,#fffbf7,#faf6f7);border:1px solid #f1e9e5;padding:10px;border-radius:13px;min-height:65px}.current-color-swatch{display:block;width:37px;height:37px;flex:0 0 37px;border-radius:11px;background:#ffdb73;border:2px solid white;box-shadow:0 0 0 1px #ddd8d4,0 3px 7px #5b5b5b0d}.current-color-caption{min-width:0}.current-color-caption small{font-size:9px;letter-spacing:1px;font-weight:850;color:#b1a5a1}.current-color-caption strong{display:block;font-size:12px;color:#3e4d58;margin-top:4px}.current-check{margin-left:auto;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;background:#d9ebdb;color:#538260;font-size:12px}.palette-toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:20px;margin-bottom:11px}.palette-caption,.action-label{font-size:9px;font-weight:850;letter-spacing:1.65px;color:#927d81}.palette-count{font-size:10px;color:#a19995}.color-filters{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none;margin:0 -4px 11px;padding:2px 4px 7px}.color-filters::-webkit-scrollbar{display:none}.filter-chip{white-space:nowrap;padding:7px 10px;min-height:35px;border:1px solid #ece7e3;background:#fff;color:#8c8987;border-radius:10px;font-size:11px;font-weight:750;transition:background .15s}.filter-chip[aria-pressed="true"]{border-color:#ebc5bb;background:#fff1ed;color:#ba6b62}.palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));justify-items:center;gap:10px 4px;margin:4px 0 17px}.color-button{height:45px;width:45px;max-width:100%;padding:5px;border:2px solid transparent;border-radius:50%;background:transparent;display:grid;place-items:center;position:relative;transition:transform .18s ease,border-color .18s ease}.color-button[hidden]{display:none}.color-button[aria-pressed="true"]{border-color:#dc8f89;transform:scale(1.04)}.color-dot{width:34px;height:34px;max-width:100%;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #33445517,0 2px 6px #26394b0d;display:grid;place-items:center;color:#45535b}.color-dot:after{content:"✓";font-size:17px;font-weight:900;opacity:0}.color-button[aria-pressed="true"] .color-dot:after{opacity:1}.dark-swatch .color-dot{color:#fff}.custom-color{display:flex;align-items:center;gap:10px;border:1px dashed #e8d7d1;background:#fffcf9;padding:10px 12px;min-height:63px;border-radius:13px;cursor:pointer}.custom-color-icon{display:grid;place-items:center;border:1px solid #ecd5cb;border-radius:11px;width:36px;height:36px;color:#c58c7e;font-size:22px;flex:0 0 36px}.custom-color>span:nth-child(2){min-width:0}.custom-color strong{display:block;font-size:11px;color:#5d6466}.custom-color small{display:block;font-size:10px;color:#a8a19d;margin-top:4px}.custom-color input{width:38px;height:38px;border:0;padding:2px;background:transparent;margin-left:auto;cursor:pointer;flex:0 0 38px}.tool-divider{height:1px;background:#f0ebe7;margin:23px 0 18px}.actions{display:flex;gap:10px;margin-top:12px}.action-button{display:flex;justify-content:center;align-items:center;gap:7px;flex:1;min-height:48px;padding:9px;border:1px solid #eae2df;border-radius:11px;color:#647079;background:#fff;font-size:12px;font-weight:800;transition:transform .16s,background .16s,box-shadow .16s}.action-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.action-button:disabled{opacity:.45}.action-button:not(:disabled):hover{background:#fff6f3;border-color:#f1cfc7}.undo-note{font-size:10.5px;line-height:1.6;text-align:center;color:#a5a09d;margin:12px 0 0}.next-card{border-radius:19px;margin-top:14px;padding:18px 19px;background:linear-gradient(130deg,#fcf3ec,#fbf4f7 55%,#f4f2fb)}.next-top{display:flex;align-items:center;gap:10px}.next-illustration{display:grid;place-items:center;border-radius:12px;width:40px;height:40px;flex:0 0 40px;background:#fce8e3;color:#db8e89;font-size:24px}.next-card h3{font-family:Georgia,serif;font-size:16px;margin:5px 0 0;letter-spacing:-.2px}.next-card button{width:100%;margin-top:14px;border:1px solid #e8d9d6;background:#eee2df;border-radius:11px;min-height:44px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;color:#a99893;font-size:12px;font-weight:850}.next-card button span{font-size:18px}.next-card p:last-child{margin:10px 0 0;text-align:center;font-size:10.5px;color:#aaa09b}.site-footer{max-width:1280px;margin:13px auto 0;padding:25px 45px 35px;display:flex;justify-content:space-between;gap:15px;color:#ada49f;font-size:11px}.site-footer span:first-child{color:#8a7978;font-weight:800}.loading,.error{text-align:center;padding:80px 15px;font-size:13px;color:#8b8586}.error button{border:1px solid #ecc5b6;background:#fff5f0;color:#975b55;padding:10px 15px;border-radius:11px;min-height:44px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (hover:hover){.color-button:hover{transform:translateY(-2px)}.zoom-button:hover{transform:translateY(-1px)}.action-button:not(:disabled):hover{transform:translateY(-1px)}}
@media (max-width:1100px){main{padding:30px 25px}.site-header{padding:22px 25px}.studio{grid-template-columns:minmax(0,1fr) 326px;gap:16px}.palette-card{padding:19px}.palette{gap:8px 0}.site-footer{padding-left:25px;padding-right:25px}}
@media (max-width:780px){main{padding:25px 17px 10px}.site-header{padding:17px}.brand-mark{width:46px;height:46px}.brand-mark svg{width:33px;height:33px}.brand strong{font-size:19px}.header-pill-extra{display:none}.intro-row{align-items:flex-start;margin-bottom:21px}h1{font-size:clamp(29px,7.6vw,42px);max-width:610px}.lead{font-size:13.5px;max-width:610px}.edition-tag{flex-basis:67px;width:67px;height:67px}.edition-tag strong{font-size:27px}.edition-tag small{font-size:8px}.studio{grid-template-columns:1fr;gap:17px}.drawing-card{border-radius:20px}.drawing-heading{padding:15px 18px}.canvas-frame{margin:12px}.under-canvas{padding:0 19px 20px}.tools{display:grid;grid-template-columns:1fr;gap:0}.palette-card{padding:22px}.palette{grid-template-columns:repeat(8,minmax(0,1fr));gap:12px 2px}.next-card{margin-top:15px}.site-footer{margin-top:15px;padding:18px 17px 27px}}
@media (max-width:480px){.site-header{padding:15px 15px;gap:7px}.brand{gap:8px}.brand-mark{width:40px;height:40px;border-radius:13px}.brand strong{font-size:16px;letter-spacing:-.6px}.brand small{font-size:7px;letter-spacing:.9px}.header-pill{font-size:0;padding:9px 10px}.header-pill .dot{width:8px;height:8px;margin:0}.intro-row{gap:9px}.eyebrow{font-size:8px;letter-spacing:1.4px}h1{font-size:30px;letter-spacing:-1.1px}.lead{font-size:12px;line-height:1.55}.edition-tag{flex:0 0 51px;width:51px;height:51px;margin-top:21px}.edition-tag strong{font-size:21px}.edition-tag small{font-size:7px;letter-spacing:.8px}.edition-star{font-size:19px;top:-8px}.story-identity strong{font-size:17px}.story-icon{width:35px;height:35px}.overline{font-size:8px}.zoom-button{padding:7px 8px;min-height:39px;font-size:11px}.canvas-frame{margin:10px 9px}.canvas-hint{font-size:11px}.palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 0}.color-button{width:47px;height:47px}.color-dot{width:37px;height:37px}.palette-card{padding:20px 16px}.palette-card h2{font-size:25px}.site-footer{display:block;line-height:1.8}.site-footer span{display:block}}
@media (max-width:360px){main{padding-left:10px;padding-right:10px}.drawing-heading{padding:12px}.palette{grid-template-columns:repeat(6,minmax(0,1fr))}.color-button{width:43px;height:43px}.color-dot{width:33px;height:33px}.palette-card{padding:19px 12px}.under-canvas{padding:0 13px 14px}.edition-tag{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* V1.1: expanded palette, eraser, and accessible compact mobile color dock. */
.palette-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.action-button[aria-pressed="true"]{background:#fff1e6;border-color:#e9af87;color:#a85f3e;box-shadow:0 0 0 2px #f9e8da}
.actions .action-button{font-size:11px;gap:5px;white-space:nowrap}
.eraser-active{background:repeating-linear-gradient(135deg,#fff 0 7px,#ffd5d5 7px 14px)!important;border:2px dashed #d88484!important}
.palette-overlay,.mobile-dock,.mobile-close-palette{display:none}
@media(max-width:780px){
  body{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .palette-card{display:none}
  .palette-open{overflow:hidden}
  .palette-open .palette-card{display:block;position:fixed;bottom:calc(77px + env(safe-area-inset-bottom,0px));left:10px;right:10px;width:auto;max-width:610px;margin:0 auto;max-height:min(75dvh,720px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:55;border-radius:23px;box-shadow:0 -14px 66px #2537473b;border:1px solid #efe6e0}
  .palette-open .palette-overlay{display:block;position:fixed;inset:0;background:#27364873;z-index:50;backdrop-filter:blur(2px)}
  .mobile-close-palette{display:grid;place-items:center;flex:0 0 41px;width:41px;height:41px;background:#f9f3ee;border:1px solid #eee2da;border-radius:50%;color:#806e70;font-size:17px}
  .mobile-dock{display:flex;align-items:center;gap:7px;position:fixed;bottom:0;left:0;right:0;padding:10px max(10px,env(safe-area-inset-left,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-right,0px));background:#fffcf9fa;border-top:1px solid #ede1da;box-shadow:0 -10px 28px #293b4620;z-index:65;min-height:72px}
  .dock-palette-toggle{display:flex;flex:0 0 auto;align-items:center;gap:6px;border:1px solid #eed9d0;border-radius:12px;background:#fff2ea;color:#925e54;padding:7px 9px;min-height:48px;font-weight:800;font-size:11px}
  #dock-swatch{display:block;width:24px;height:24px;border-radius:50%;background:#ffdb73;border:2px solid #fff;box-shadow:0 0 0 1px #e0d0c9}
  .quick-colors{display:flex;flex:1;justify-content:space-evenly;gap:3px;min-width:0}
  .quick-color{min-width:0;flex:1;max-width:47px;min-height:46px;border:2px solid transparent;background:transparent;border-radius:100px;display:grid;place-items:center;padding:3px}
  .quick-color:before{content:"";display:block;background:var(--swatch);width:100%;height:100%;max-height:35px;min-height:27px;border-radius:50%;box-shadow:inset 0 0 0 1px #26394b26}
  .quick-color[aria-pressed="true"]{border-color:#d68578}
  .dock-undo{flex:0 0 43px;min-height:47px;border-radius:12px;border:1px solid #e8ded8;background:#fff;color:#606f76;font-size:28px;line-height:1}
  .dock-undo:disabled{opacity:.32}
  .palette-card .palette{grid-template-columns:repeat(8,minmax(0,1fr))}
}
@media(max-width:480px){.palette-open .palette-card{bottom:calc(73px + env(safe-area-inset-bottom,0px));padding:18px 15px}.palette-card .palette{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-dock{gap:4px}.quick-colors{gap:1px}.quick-color{padding:3px;min-height:44px}.dock-palette-toggle{gap:5px;padding:7px}.dock-undo{flex-basis:40px}}
@media(max-width:350px){.quick-color:nth-child(5){display:none}.dock-palette-toggle{font-size:10px}}
@media(prefers-reduced-motion:reduce){.palette-open .palette-overlay{backdrop-filter:none}}
@media(min-width:781px){
  .palette{max-height:345px;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:4px 4px 8px 0;scrollbar-width:thin;scrollbar-color:#e2d3c9 #fbf7f4}
  .palette::-webkit-scrollbar{width:6px}.palette::-webkit-scrollbar-thumb{background:#e2d3c9;border-radius:12px}
}

/* Compact persistence reassurance; never takes space away from the canvas. */
.save-state{margin:9px 0 0;color:#5b896c;font-size:11px;font-weight:700;letter-spacing:.05px}
.save-state[data-state="unavailable"]{color:#a65a42}

/* V1.3 — compact, touch-first mobile studio. Desktop layout is unchanged. */
.title-short,.mobile-lead{display:none}
@media(max-width:780px){
  :root{--shadow:0 9px 30px rgba(73,55,74,.075),0 1px 5px rgba(73,55,74,.025)}
  body{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px));background:linear-gradient(165deg,#fff9f2 0%,#fbf7f2 42%,#fffaf6 100%)}
  .topline{height:4px}
  .site-header{padding:11px 16px 10px;border-bottom-color:#efe8e1;background:#fffcf9de}
  .brand-mark{width:38px;height:38px;border-radius:12px}.brand-mark svg{width:29px;height:29px}
  .brand{gap:9px}.brand strong{font-size:17px;letter-spacing:-.5px}.brand small{margin-top:2px;font-size:7px}
  .header-pill{padding:7px 9px;font-size:0}.header-pill .dot{margin:0;width:9px;height:9px}
  main{padding:13px 10px 0}
  .intro-row{margin:0 5px 13px;gap:5px;align-items:center}
  .title-short,.mobile-lead{display:block}.title-long,.lead{display:none}
  .eyebrow{margin:0 0 4px;font-size:8px;letter-spacing:1.15px}
  h1{font-size:clamp(25px,6.1vw,33px);margin:0 0 4px;line-height:1.08;letter-spacing:-1.05px}
  h1 em{font-style:normal;color:#e5a269}
  .mobile-lead{font-size:12px;color:#817c7d;line-height:1.4;margin:0}
  .edition-tag{display:none}
  .studio{gap:15px}
  .drawing-card{border-radius:22px;border-color:#eadfd9;box-shadow:0 8px 30px #7f625916,0 2px 5px #7f625908}
  .drawing-heading{padding:10px 12px;min-height:58px}
  .story-identity{gap:8px}.story-icon{width:35px;height:35px;border-radius:11px;font-size:19px}
  .overline{font-size:8px;letter-spacing:1.05px}
  .story-identity strong{font-size:17px;margin-top:2px}
  .zoom-button{min-width:91px;min-height:44px;padding:8px 10px;justify-content:center;font-size:11px;border-radius:12px;background:#fff9f4}
  .canvas-frame{margin:7px 7px 5px;padding:5px;border-radius:15px;background:#fff8f4;border-color:#f3e4dc}
  .canvas-corner{display:none}
  .illustration{border-radius:10px;border-color:#e8e4df;min-height:160px}
  .illustration [data-region]:hover{filter:none}
  .under-canvas{padding:7px 14px 13px}
  .progress-info{gap:8px;margin:0 0 7px}.progress-icon{width:27px;height:27px;font-size:14px;border-radius:9px}
  .progress-info strong{font-size:12px}.progress-info span:last-child{font-size:10px;margin-top:2px}
  .progress-track{height:5px}.save-state{margin:7px 0 0;font-size:10px}
  .canvas-hint{margin:5px 0 0;font-size:10px;line-height:1.4}.canvas-hint>span{font-size:12px}
  .next-card{margin:0 4px;border-radius:17px;padding:13px 16px}.next-card h3{font-size:16px}.next-card button{margin-top:10px}
  .site-footer{padding:18px 12px 30px}
  .palette-open .palette-overlay{display:block;position:fixed;inset:0;background:rgba(39,46,57,.57);z-index:50;backdrop-filter:blur(3px)}
  .palette-open .palette-card{display:flex;flex-direction:column;position:fixed;left:8px;right:8px;bottom:calc(87px + env(safe-area-inset-bottom,0px));height:min(605px,calc(100vh - 105px));height:min(605px,calc(100dvh - 105px));max-height:none;overflow:hidden;padding:25px 15px 13px;z-index:55;border-radius:23px;box-shadow:0 -15px 60px #26344c4a;background:#fffdfa}
  .palette-open .palette-card:before{content:"";position:absolute;top:9px;left:50%;width:42px;height:4px;border-radius:99px;transform:translateX(-50%);background:#e8dad5}
  .tools-header,.palette-subtitle{display:none}
  .palette-title-row{flex:0 0 auto;margin:0 0 9px}.palette-card h2{font-size:23px}
  .mobile-close-palette{flex:0 0 44px;width:44px;height:44px;font-size:16px}
  .current-color{flex:0 0 auto;min-height:49px;padding:6px 9px;border-radius:12px;gap:10px}
  .current-color-swatch{width:34px;height:34px;flex-basis:34px}
  .current-color-caption small{font-size:8px}.current-color-caption strong{font-size:12px;margin-top:2px}
  .palette-toolbar{flex:0 0 auto;margin:11px 0 7px}
  .color-filters{flex:0 0 auto;min-height:42px;margin:0 -2px 6px;padding:0 2px 5px;gap:5px}
  .filter-chip{min-height:38px;border-radius:12px;padding:8px 12px;font-size:11px}
  .palette-card .palette{display:grid;flex:1 1 auto;min-height:70px;align-content:start;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 0;padding:5px 0 11px;margin:0 0 8px;scrollbar-width:thin}
  .color-button{width:49px;height:49px;max-width:100%;padding:5px}.color-dot{width:38px;height:38px}
  .custom-color{flex:0 0 auto;min-height:51px;padding:6px 10px;border-radius:12px}.custom-color-icon{width:31px;height:31px;flex-basis:31px}.custom-color input{width:38px;height:38px}
  .tool-divider,.action-label,.undo-note{display:none}
  .actions{flex:0 0 auto;margin-top:10px;gap:7px}.actions .action-button{min-height:47px;font-size:11px;padding:7px 4px;gap:5px}
  .mobile-dock{display:flex;align-items:center;gap:6px;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));min-height:69px;padding:7px;border:1px solid #e8d9d2;border-radius:20px;background:#fffcf9f5;box-shadow:0 7px 28px #3b37323b,0 1px 7px #3b373218;z-index:65;backdrop-filter:blur(15px)}
  .dock-palette-toggle{flex:0 0 94px;min-height:48px;gap:6px;padding:5px 6px;border-radius:14px;border-color:#f1cfb8;background:linear-gradient(145deg,#fff0e3,#ffe9e9);color:#7a534c;justify-content:flex-start}
  .dock-swatch{width:27px;height:27px;flex:0 0 27px;box-shadow:0 0 0 1px #dcbdb2;border:2px solid #fff}
  .dock-palette-label{font-size:11px;font-weight:850;text-align:left;white-space:nowrap}
  .dock-palette-label small{display:block;width:44px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:8px;color:#9b7c74;font-weight:650;margin-top:3px}
  .dock-chevron{font-size:15px;margin-left:auto}
  .quick-colors{gap:2px;justify-content:space-evenly;flex:1 1 auto;min-width:0}
  .quick-color{flex:1 1 0;max-width:48px;min-width:0;min-height:44px;padding:4px;border-radius:50%}
  .quick-color:before{min-height:34px;max-height:38px;max-width:38px;border:2px solid #fff;box-shadow:0 0 0 1px #28394b25,0 2px 5px #28394b11}
  .quick-color[aria-pressed="true"]{border:2px solid #d58f74}
  .quick-color[aria-pressed="true"]:before{min-height:30px;max-height:34px}
  .quick-color:nth-child(n+4){display:none}
  .dock-actions{display:flex;flex:0 0 auto;gap:4px}
  .dock-tool{flex:0 0 44px;display:grid;place-items:center;width:44px;height:46px;min-height:44px;border-radius:12px;border:1px solid #eae0da;background:#fff;color:#667178;box-shadow:0 2px 5px #65737b0a}
  .dock-tool svg{width:21px;height:21px}
  .dock-tool[aria-pressed="true"]{background:#ffece0;border-color:#f1bba0;color:#a65e4d}
  .dock-tool:disabled{opacity:.32}
}
@media(max-width:360px){
  .site-header{padding:10px 12px}.brand strong{font-size:15px}
  main{padding-left:7px;padding-right:7px}
  .intro-row{margin-left:4px;margin-right:4px}
  .palette-open .palette-card{left:5px;right:5px;padding-left:10px;padding-right:10px}
  .quick-color:nth-child(n+3){display:none}
  .dock-palette-toggle{flex-basis:86px}
  .dock-palette-label small{max-width:36px}
  .dock-tool{flex-basis:42px;width:42px}
  .mobile-dock{gap:4px;padding:6px;left:6px;right:6px}
}
@media(min-width:510px) and (max-width:780px){
  .quick-color:nth-child(n+4){display:grid}
  .palette-open .palette-card{max-width:620px}
  .mobile-dock{left:50%;right:auto;transform:translateX(-50%);width:min(620px,calc(100% - 20px));gap:9px}
}
@media(max-height:640px) and (max-width:780px){
  .palette-open .palette-card{bottom:calc(82px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 94px)}
  .palette-title-row{margin-bottom:5px}.current-color{min-height:42px}
  .palette-toolbar{margin:8px 0 5px}.color-filters{min-height:40px;margin-bottom:2px}
  .custom-color{min-height:44px}.actions{margin-top:6px}
}
