*{box-sizing:border-box}
html{scroll-padding-top:14px;-webkit-text-size-adjust:100%}
body{margin:0;background:#f4f3ee;color:#131b24;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.wrap{width:min(1140px,92%);margin:auto}
.row,.intro,.size,.check,.actions,.modes,#headerSample{display:flex;align-items:center;justify-content:space-between;gap:10px}
header{border-bottom:1px solid #d5d7d4;padding:10px 0}
header span{margin:0 8px;color:#606c70;font-weight:400}
button,select,input{font:inherit;color:inherit}
button,select,a,.check{touch-action:manipulation;cursor:pointer}
button,select,a{min-height:44px}
a{display:inline-flex;align-items:center;color:#145a59;text-underline-offset:4px}
button{background:transparent;border:0;padding:0 12px;border-radius:8px;font-weight:550}
button:active{opacity:.75}
:focus-visible{outline:3px solid #3988dc;outline-offset:2px}
#share,.actions button,select{border:1px solid #b9bfbd}
#notice:not(:empty){padding-top:14px;color:#065650}
#manual{width:100%;padding:10px}
.intro{margin:36px 0 24px;align-items:end}
.kicker,#count,#caption{font:12px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase}
.kicker{color:#326362;margin:0 0 9px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(34px,5.5vw,68px);font-weight:520;letter-spacing:-.065em;line-height:1.05}
h2{font-weight:550;letter-spacing:-.04em;font-size:32px;line-height:1.18}
h3{font-size:17px;letter-spacing:-.02em}
.studio{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(325px,1fr);gap:clamp(22px,4vw,56px)}
.night{background:#090e19;color:#fafaf6;--line:#454c5b;--reverse:#101825}
.day{background:#faf9f5;color:#111625;--line:#bdc3c3;--reverse:#fff}
#stage,#headerSample,.thumb{border-radius:12px;border:1px solid var(--line)}
#stage{padding:16px 20px}
.modes{gap:0;border:1px solid var(--line);border-radius:10px;padding:2px}
.modes button{font-size:14px;min-width:60px}
.modes button[aria-pressed=true]{background:#d2f4eb;color:#0f3533}
.day .modes button[aria-pressed=true]{background:#153838;color:white}
#art,.thumb{display:grid;place-items:center}
#art{height:clamp(285px,29vw,400px)}
#art svg{width:85%;height:90%;max-width:100%;min-width:0}
#art,.thumb{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.bottom button{border:1px solid var(--line);font-size:22px;width:46px;padding:0}
#caption{letter-spacing:.05em;text-align:center}
.test{margin-top:17px}
.size,#reset,#colorName,.hint{font-size:14px;color:#46525d}
select{background:#fafaf7;border-radius:8px;padding:8px;font-size:16px}
#headerSample{margin-top:10px;padding:13px 18px;min-height:72px;font-size:22px}
#mini{min-width:0}
#mini svg{display:block;max-width:100%}
.controls{padding:4px 0}
#reset{padding:0;text-decoration:underline;text-underline-offset:4px}
#note,#collection>p:not(.kicker),footer p{color:#495560;max-width:64ch;margin:9px 0 21px}
.controls>label,.palette{font-weight:600}
#face{display:block;width:100%;margin:7px 0 19px;min-height:48px}
#colorName{font-weight:400}
#swatches{display:flex;justify-content:space-between;gap:1px;margin:6px 0 9px}
#swatches button{padding:4px;min-width:44px;height:48px;display:grid;place-items:center}
#swatches svg{width:33px;height:33px;border-radius:50%;border:1px solid #88949a}
#swatches button[aria-pressed=true] svg{outline:2px solid #111625;outline-offset:3px}
.check{justify-content:flex-start;min-height:48px}
input[type=checkbox]{width:22px;height:22px;margin:0;accent-color:#146764}
.actions{margin:20px 0 9px}
.actions button{flex:1;min-height:48px;font-size:15px;padding:6px}
#save{color:white;background:#103d3d;border-color:#103d3d}
#collection,footer{margin:48px 0 28px;border-top:1px solid #ccd0cd;padding-top:30px}
#gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
#gallery button{padding:0;text-align:left}
.thumb{height:clamp(140px,18vw,242px);margin-bottom:8px}
.thumb svg{width:83%;height:79%}
#gallery button[aria-pressed=true] .thumb{outline:3px solid #137f77;outline-offset:2px}
footer p{margin-bottom:4px}
@media(max-width:790px){
.studio{grid-template-columns:minmax(0,1fr);gap:24px}
#art{height:clamp(212px,64vw,360px)}
#art svg{width:98%}
#stage{padding:11px 12px}
#gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px}
.intro{margin:22px 0 16px;align-items:center;flex-wrap:wrap;gap:3px}
.intro a,header{font-size:14px}
header span{margin:0 3px}
#share{padding:0 9px}
#caption{font-size:11px}
#collection h2{font-size:27px}
.thumb svg{width:93%}
.thumb{height:clamp(110px,36vw,235px)}
}
#swatches{flex-wrap:wrap;justify-content:flex-start}
#swatches button{flex:1}
