:root{--page:#eeeaff;--ink:#191e51;--muted:#7979b4;--purple:#8062f3;--line:#d8d1f6;--selected:#ede9ff;--radius:25px;font-family:"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--page);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:var(--ink);border:0;background:none;font-weight:700;font-size:19px;min-height:56px}button:focus-visible{outline:4px solid #4234b4;outline-offset:4px}button:disabled{cursor:default;opacity:.45}button:hover{filter:brightness(.98)}[hidden]{display:none!important}
.app{height:100dvh;min-height:610px;max-width:1440px;margin:0 auto;display:flex;flex-direction:column;padding:22px 36px 12px;gap:17px}header{display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{display:flex;gap:16px;align-items:center}.brand>svg{width:65px;height:65px;flex-shrink:0}h1{font-size:42px;line-height:1.05;letter-spacing:-1.5px;margin:0;font-weight:800}.brand p{font-size:22px;letter-spacing:.15px;margin:4px 0 0;color:var(--muted);font-weight:700}.quiet{border:2px solid var(--line);border-radius:22px;padding:10px 22px;background:#f8f6ff}header .quiet{border-color:#8c81d2;font-size:22px;padding:10px 23px;min-height:60px;background:transparent}
.paper{flex:1;min-height:210px;background:#fff;border-radius:var(--radius);box-shadow:0 10px 38px #6555c71c;position:relative;overflow:hidden}canvas{width:100%;height:100%;display:block;object-fit:contain;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}.empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#c9c4ef;pointer-events:none}.empty svg{width:94px;height:76px}.empty p{font-size:34px;font-weight:600;margin:12px 0;letter-spacing:.5px}
.tray{display:flex;align-items:center;justify-content:center;gap:17px;background:#fff;border-radius:var(--radius);padding:12px 20px;margin:0 22px;min-height:90px;box-shadow:0 8px 24px #6555c711}.colors,.sizes,.tools{display:flex;align-items:center;gap:12px}.colors button{height:58px;width:58px;min-height:58px;border:3px solid transparent;border-radius:50%;padding:5px;position:relative}.colors button span{display:block;width:100%;height:100%;border-radius:50%;box-shadow:inset 0 0 0 2px #ffffff77}.colors button[aria-pressed=true]{border-color:var(--ink)}.colors button[aria-pressed=true]:after{content:"";position:absolute;border:2px solid white;border-top:0;border-left:0;transform:rotate(45deg);height:12px;width:7px;top:19px;left:25px}.divider{height:52px;width:2px;background:var(--line);margin:0 6px}.sizes{gap:4px}.sizes button{min-height:64px;width:64px;border-radius:18px;display:grid;place-items:center}.sizes button[aria-pressed=true],.tool[aria-pressed=true]{background:var(--selected)}.dot{background:var(--ink);display:block;border-radius:50%}.thin{width:16px;height:16px}.medium{width:27px;height:27px}.thick{width:45px;height:45px}.tool{border-radius:18px;background:#f5f3ff;width:68px;height:64px}.tool svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.actions{position:relative;display:flex;justify-content:center;align-items:center;gap:26px}.primary{background:var(--purple);color:#fff;border-radius:25px;min-height:78px;width:min(590px,63%);font-size:34px;line-height:1.1;display:flex;align-items:center;justify-content:center;gap:18px;box-shadow:0 4px 0 #6950d9}.primary svg{width:44px;height:44px;fill:currentColor}.link{color:#6749e8;text-decoration:underline;text-underline-offset:4px;padding:10px 0;min-height:56px;font-size:21px}.status{text-align:center;margin:0;min-height:22px;font-size:16px;color:var(--muted)}
.thinking{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffffeb;font-size:26px;font-weight:700;gap:12px}.thinking p{margin:0 15px;text-align:center}.loader{height:55px;width:55px;border:6px solid #e5defb;border-top-color:var(--purple);border-radius:50%;animation:spin 1.5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.playback{position:absolute;bottom:12px;left:12px;right:12px;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}.playback .quiet{background:#fffffff2;min-height:56px;font-size:17px;border-radius:17px}progress{flex-basis:100%;width:100%;height:5px;accent-color:var(--purple);border:0}
dialog{color:var(--ink);border:0;border-radius:28px;padding:30px;width:min(600px,calc(100% - 30px));max-height:90dvh;box-shadow:0 22px 100px #191e5140}dialog::backdrop{background:#21174766}dialog h2{font-size:30px;margin:8px 0 20px}dialog h3{font-size:20px}dialog p{font-size:18px;line-height:1.55}dialog .close{float:right;margin-left:12px}dialog .small{font-size:14px;color:var(--muted)}.parent-actions{display:flex;flex-wrap:wrap;gap:12px}.sample-choices{display:grid;gap:14px}.sample-choices button{text-align:left;min-height:68px}
@media(max-width:1100px){.app{padding:18px 24px 12px;gap:13px}h1{font-size:35px}.brand p{font-size:18px}.brand>svg{width:55px;height:55px}.tray{margin:0;padding:10px 14px;gap:10px}.colors{gap:6px}.colors button{width:56px;height:56px;min-height:56px}.colors button[aria-pressed=true]:after{left:24px}.sizes button{width:56px;min-height:56px}.tool{width:58px;height:56px}.tools{gap:8px}.divider{margin:0 1px}.primary{min-height:72px;font-size:30px}.empty p{font-size:29px}}
@media(max-width:760px){.app{padding:14px 14px 10px;gap:12px;min-height:720px}h1{font-size:30px}.brand{gap:9px}.brand p{font-size:15px}.brand>svg{width:42px;height:42px}header .quiet{font-size:16px;padding:10px 12px;min-height:56px;border-radius:18px}.tray{flex-wrap:wrap;padding:10px 8px;gap:7px;min-height:144px}.colors{justify-content:center;width:100%;gap:6px}.colors button{width:56px;height:56px}.tray>.divider:first-of-type{display:none}.sizes button{width:60px}.tools{gap:12px}.actions{flex-direction:column;gap:4px}.primary{width:100%;min-height:74px;font-size:29px}.primary svg{width:35px;height:35px}.link{min-height:56px}.empty p{font-size:23px}.status{font-size:14px}.playback .quiet{padding:9px 12px;font-size:15px}}
@media(max-width:430px){.colors{gap:0}.colors button{width:46px;height:56px;padding:3px;min-width:46px;border-radius:18px}.colors button[aria-pressed=true]:after{left:19px;top:20px}.brand p{font-size:13px}h1{font-size:25px}.brand>svg{width:32px;height:32px}header .quiet{padding:8px;font-size:15px}}
@media(max-height:650px) and (min-width:761px){.app{min-height:520px;gap:9px;padding-top:12px}.brand p{font-size:15px}h1{font-size:30px}.brand>svg{width:48px;height:48px}.tray{min-height:76px;padding:6px 14px}.primary{min-height:64px;font-size:28px}.empty p{font-size:26px}}
@media(prefers-reduced-motion:reduce){.loader{animation:none}}
input{display:block;width:100%;min-height:56px;border:2px solid var(--line);border-radius:15px;padding:12px;font:inherit;margin:10px 0 16px}label{font-weight:700}form button{width:100%}
canvas{object-fit:fill}
@media(max-width:960px){.tray{flex-wrap:wrap;gap:8px}.colors{width:100%;justify-content:center}.tray>.divider:first-of-type{display:none}}
@media(min-width:1300px) and (min-height:900px){.app{max-width:1600px;padding:22px 48px 12px;gap:22px}.brand{gap:20px}.brand>svg{width:86px;height:86px}h1{font-size:56px}.brand p{font-size:28px}header .quiet{font-size:28px;min-height:70px;padding:10px 30px}.paper{border-radius:30px}.tray{min-height:124px;padding:12px 26px;margin:0 26px;gap:18px}.colors{gap:10px}.colors button{width:76px;height:76px;min-height:76px}.colors button[aria-pressed=true]:after{top:27px;left:33px}.sizes button{width:82px;min-height:82px}.thin{width:20px;height:20px}.medium{width:34px;height:34px}.thick{width:62px;height:62px}.divider{height:72px}.tool{width:94px;height:84px}.tool svg{width:44px;height:44px}.primary{width:690px;min-height:100px;font-size:44px}.primary svg{width:57px;height:57px}.link{font-size:26px}.empty svg{width:120px;height:90px}.empty p{font-size:44px}.status{font-size:20px}}
