:root{--paper: #f6f1e7;--paper-light: #fbf7ef;--paper-deep: #ece3d2;--ink: #26221e;--ink-soft: #6f665b;--ink-faint: #9a9084;--vermilion: #e0472e;--vermilion-deep: #b8341f;--indigo: #2e4a62;--line: rgba(38, 34, 30, .13);--line-strong: rgba(38, 34, 30, .24);--shadow-soft: 0 18px 40px -26px rgba(58, 42, 26, .55);--font-hand: "Klee One", "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Sans", cursive;--font-ui: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, sans-serif;--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E")}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-ui);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior:none;-webkit-text-size-adjust:100%}button{font-family:inherit;color:inherit}h1,h2,p{margin:0}.app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--paper);user-select:none;-webkit-user-select:none}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.eyebrow{display:inline-block;font-size:9.5px;font-weight:700;letter-spacing:.2em;color:var(--ink-faint);text-transform:uppercase}.topbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;padding-top:calc(8px + env(safe-area-inset-top));background:linear-gradient(180deg,#fdfaf3,#f8f3e9);border-bottom:1px solid var(--line);z-index:20}.brand{display:flex;align-items:center;gap:9px;min-width:0}.brand__mark{width:34px;height:34px;flex:0 0 auto;filter:drop-shadow(0 2px 3px rgba(184,52,31,.22))}.brand__text{min-width:0}.brand__name{font-family:var(--font-hand);font-size:17px;font-weight:600;letter-spacing:.04em;line-height:1.2;white-space:nowrap}.brand__tag{display:none;font-size:10px;letter-spacing:.12em;color:var(--ink-faint)}.topbar__actions{display:flex;align-items:center;gap:2px}.topbar__sep{width:1px;height:20px;margin:0 4px;background:var(--line-strong)}.icon-btn{width:34px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:50%;background:transparent;cursor:pointer;transition:background .15s ease,opacity .15s ease}.icon-btn:hover:not(:disabled){background:#26221e12}.icon-btn:active:not(:disabled){background:#26221e1f}.icon-btn:disabled{opacity:.26;cursor:default}.icon-btn--quiet{color:var(--ink-soft)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 13px;border:1px solid var(--ink);border-radius:999px;background:#fffdf8;color:var(--ink);font-size:12.5px;font-weight:600;letter-spacing:.02em;white-space:nowrap;cursor:pointer;box-shadow:2px 2px #26221e24;transition:transform .12s ease,box-shadow .12s ease,background .15s ease}.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:3px 3px #26221e29}.btn:active:not(:disabled){transform:translate(1px,1px);box-shadow:1px 1px #26221e24}.btn:disabled{opacity:.55;cursor:default}.btn--primary{background:var(--vermilion);border-color:var(--vermilion-deep);color:#fff8ee;box-shadow:2px 2px #b8341f52}.btn--primary:hover:not(:disabled){box-shadow:3px 3px #b8341f57}.btn--danger{background:var(--vermilion);border-color:var(--vermilion-deep);color:#fff8ee}.btn--wide{flex:1;padding:10px 14px;font-size:13.5px}.layout{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;background-color:#efe7d8;background-image:var(--grain),radial-gradient(115% 85% at 50% 6%,#fdfaf2,#f2eadb 52%,#e2d6c1);background-blend-mode:multiply,normal;background-size:180px 180px,cover}.stage__wrap{position:relative;display:flex;align-items:center;justify-content:center;transform-origin:center center;will-change:transform}.print{position:relative;box-sizing:content-box;padding:11px;background:#fff;border-radius:2px;box-shadow:0 24px 44px -26px #3a2a1a9e,0 3px 10px #3a2a1a1f,inset 0 0 0 1px #26221e0d}.print__canvas{display:block;width:100%;height:100%;background:#fffdf8;cursor:crosshair;touch-action:none}.print__tape{position:absolute;top:-11px;left:50%;width:84px;height:20px;transform:translate(-50%) rotate(-2.4deg);background:repeating-linear-gradient(90deg,#e0472e29 0 7px,#e0472e38 7px 13px);border-left:1px dashed rgba(224,71,46,.28);border-right:1px dashed rgba(224,71,46,.28);box-shadow:0 1px 3px #783c1e1f;pointer-events:none}.hint{position:absolute;top:10px;left:10px;right:10px;width:fit-content;margin:0 auto;display:flex;align-items:center;gap:8px;max-width:calc(100% - 20px);padding:5px 6px 5px 12px;background:#fbf7eff2;border:1px solid var(--line);border-radius:999px;box-shadow:0 8px 20px -16px #3a2a1acc;font-size:11.5px;color:var(--ink-soft);z-index:6}.hint p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hint__dot{width:6px;height:6px;border-radius:50%;background:var(--vermilion);flex:0 0 auto;animation:pulse 2.2s ease-in-out infinite}.hint__btn{flex:0 0 auto;padding:4px 10px;border:none;border-radius:999px;background:var(--vermilion);color:#fff8ee;font-size:11.5px;font-weight:700;cursor:pointer}.peek,.zoom{position:absolute;bottom:10px;display:flex;align-items:center;gap:5px;padding:5px 10px;background:#fbf7efeb;border:1px solid var(--line);border-radius:999px;box-shadow:0 6px 16px -14px #3a2a1ae6;z-index:6}.peek{left:10px;font-size:11px;color:var(--ink-soft);cursor:pointer;transition:background .15s ease,color .15s ease}.peek:active{background:var(--ink);color:var(--paper-light)}.peek span{letter-spacing:.04em}.zoom{right:10px;gap:0;padding:3px}.zoom button{width:28px;height:28px;display:grid;place-items:center;border:none;border-radius:50%;background:transparent;cursor:pointer}.zoom button:hover{background:#26221e12}.zoom__value{min-width:34px;text-align:center;font-size:10px;font-variant-numeric:tabular-nums;color:var(--ink-faint)}.tray{flex:0 0 auto;display:flex;flex-direction:column;gap:8px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));background-color:#fbf7ee;background-image:var(--grain);background-size:180px 180px;background-blend-mode:multiply;border-top:1px solid var(--line);box-shadow:0 -12px 26px -22px #3a2a1ae6;z-index:10}.tray__intro{display:flex;align-items:baseline;gap:8px;min-height:15px}.tray__hint{font-family:var(--font-hand);font-size:12.5px;color:var(--ink-soft);animation:hintIn .28s ease-out}.brushes{display:flex;gap:5px;overflow-x:auto;padding:1px 0 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.brushes::-webkit-scrollbar{display:none}@media(max-width:899px){.brushes{-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%)}}.brush{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 4px 3px;border:1px solid transparent;border-radius:11px;background:transparent;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}.brush__preview{display:block;width:58px;height:30px;border-radius:7px;border:1px solid rgba(38,34,30,.09);background:#fffdf8;overflow:hidden;transition:border-color .16s ease}.brush__preview canvas{display:block;width:58px;height:30px}.brush__label{font-size:10.5px;font-weight:500;color:var(--ink-soft);letter-spacing:.01em;white-space:nowrap}.brush.is-active{background:#fffdf8;border-color:#26221ec7;transform:translateY(-1px);box-shadow:2px 2px #26221e1f}.brush.is-active .brush__preview{border-color:#e0472e80}.brush.is-active .brush__label{color:var(--ink);font-weight:700}.tray__rule{height:1px;background:var(--line)}.tray__group{display:flex;flex-direction:column;gap:5px}.swatches{display:flex;flex-wrap:wrap;gap:6px}.swatch{position:relative;width:26px;height:26px;display:grid;place-items:center;padding:0;border:1px solid rgba(38,34,30,.16);border-radius:50%;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease}.swatch:hover{transform:scale(1.08)}.swatch.is-active{box-shadow:0 0 0 2px var(--paper-light),0 0 0 3.5px var(--ink)}.swatch--custom{border:none;background:conic-gradient(from 210deg,#e0472e,#e2a13b,#7fa05a,#2f7f6f,#2e5a88,#7a6aa8,#e6a0b4,#e0472e)}.swatch--custom input{position:absolute;inset:0;width:100%;height:100%;padding:0;border:none;opacity:0;cursor:pointer}.swatch__rainbow{width:15px;height:15px;border-radius:50%;border:2px solid #fffdf8;box-shadow:inset 0 0 0 1px #26221e1f;pointer-events:none}.size__head{display:flex;align-items:baseline;justify-content:space-between}.size__value{font-size:10px;font-variant-numeric:tabular-nums;color:var(--ink-faint)}.size__row{display:flex;align-items:center;gap:10px}.size__slider{flex:1;height:20px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}.size__slider::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(90deg,#26221e33,#26221e8c)}.size__slider::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-7px;border:2px solid #fffdf8;border-radius:50%;background:var(--vermilion);box-shadow:0 1px 4px #26221e59}.size__slider::-moz-range-track{height:4px;border-radius:999px;background:linear-gradient(90deg,#26221e33,#26221e8c)}.size__slider::-moz-range-thumb{width:14px;height:14px;border:2px solid #fffdf8;border-radius:50%;background:var(--vermilion)}.size__preview{flex:0 0 auto;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;border:1px dashed var(--line-strong);background:#fffdf8}.size__dot{border-radius:50%;transition:width .12s ease,height .12s ease,background .12s ease}.tray__foot{display:flex;justify-content:flex-end;margin-top:-2px}.link{padding:0;border:none;background:none;font-size:10.5px;color:var(--ink-faint);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer}.link:hover{color:var(--vermilion)}.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom))}.modal__backdrop{position:absolute;inset:0;border:none;background:#221b1475;backdrop-filter:blur(3px);cursor:pointer;animation:fadeIn .2s ease-out}.modal__card{position:relative;width:min(520px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:18px;background-color:var(--paper-light);background-image:var(--grain);background-size:180px 180px;background-blend-mode:multiply;box-shadow:0 30px 60px -24px #1e140a99;animation:cardIn .24s cubic-bezier(.2,.9,.3,1.1)}.modal__card--small{width:min(380px,100%)}.modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.modal__title{font-family:var(--font-hand);font-size:21px;font-weight:600;letter-spacing:.03em;margin-top:1px}.modal__text{font-size:12.5px;color:var(--ink-soft);line-height:1.7}.modal__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.sheet__preview{flex:1 1 auto;min-height:0;display:grid;place-items:center;padding:8px;border-radius:12px;background:#efe6d6;overflow:hidden}.sheet__preview img{display:block;max-width:100%;max-height:min(48dvh,420px);border-radius:3px;box-shadow:0 10px 24px -14px #3a2a1acc}.sheet__actions{display:flex;gap:8px}.sheet__note{font-size:10.5px;line-height:1.7;color:var(--ink-faint);text-align:center}.toast{position:fixed;left:50%;bottom:calc(26px + env(safe-area-inset-bottom));transform:translate(-50%);z-index:90;padding:8px 16px;border-radius:999px;background:var(--ink);color:var(--paper-light);font-size:12px;letter-spacing:.03em;box-shadow:0 12px 26px -14px #000000b3;animation:toastIn .24s ease-out;pointer-events:none;white-space:nowrap}.dropzone{position:fixed;inset:0;z-index:70;display:grid;place-items:center;background:#f6f1e7db;border:2px dashed var(--vermilion);font-family:var(--font-hand);font-size:20px;color:var(--vermilion);pointer-events:none;animation:fadeIn .15s ease-out}@keyframes pulse{0%,to{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}@keyframes hintIn{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes cardIn{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(max-width:640px){.topbar{gap:6px;padding-left:10px;padding-right:10px}.brand{gap:7px;flex:1 1 auto;overflow:hidden}.brand__mark{width:28px;height:28px}.brand__name{font-size:14.5px;overflow:hidden;text-overflow:ellipsis}.topbar__actions{gap:0;flex:0 0 auto}.topbar__sep{display:none}.topbar .icon-btn{width:30px;height:30px}.topbar .btn{width:34px;height:34px;padding:0;border-radius:50%}.topbar .btn span{display:none}.swatch{width:23px;height:23px}.swatches{gap:4px}}@media(max-width:400px){.brush__preview,.brush__preview canvas{width:52px;height:28px}.swatch{width:24px;height:24px}}@media(min-width:900px){.topbar{padding:10px 20px}.brand__mark{width:38px;height:38px}.brand__name{font-size:20px}.brand__tag{display:block}.layout{flex-direction:row}.tray{order:-1;width:292px;flex:0 0 292px;height:100%;overflow-y:auto;gap:14px;padding:20px 18px 24px;border-top:none;border-right:1px solid var(--line);box-shadow:12px 0 26px -26px #3a2a1ae6}.brushes{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:visible;padding:0}.brush{padding:6px 4px 5px}.brush__preview,.brush__preview canvas{width:100%;height:34px}.brush__preview{width:112px}.brush__label{font-size:11.5px}.swatches{gap:8px}.swatch{width:30px;height:30px}.tray__hint{font-size:13.5px}.stage{background-image:var(--grain),radial-gradient(90% 80% at 50% 10%,#fdfaf2,#f1e8d8 55%,#e0d3bd)}.print{padding:16px}.hint{top:16px}.peek,.zoom{bottom:16px}.peek{left:16px}.zoom{right:16px}}@media(min-width:1280px){.tray{width:320px;flex-basis:320px}.brush__preview{width:126px}}.tray__note{display:none}@media(min-width:900px){.tray__note{display:block;margin-top:auto;padding-top:18px;font-size:10.5px;line-height:1.9;color:var(--ink-faint);letter-spacing:.02em}.tray__note p{padding-top:10px;border-top:1px dashed var(--line-strong)}}.tray__tips{display:none}@media(min-width:900px){.tray__tips{display:block;padding-top:14px;border-top:1px dashed var(--line-strong)}.tray__tips ul{margin:7px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:5px}.tray__tips li{position:relative;padding-left:13px;font-size:10.5px;line-height:1.6;color:var(--ink-soft)}.tray__tips li:before{content:"";position:absolute;left:2px;top:7px;width:4px;height:4px;border-radius:50%;background:var(--vermilion);opacity:.6}}.project-save{display:flex;flex-direction:column;gap:5px;padding-top:4px}.project-save label{font-size:10px;color:var(--ink-faint);letter-spacing:.08em}.project-save__row{display:flex;gap:7px}.project-save input{min-width:0;flex:1;padding:8px 10px;border:1px solid var(--line-strong);border-radius:9px;background:#fffdf8;color:var(--ink);font:inherit;font-size:12px;outline:none}.project-save input:focus{border-color:var(--vermilion);box-shadow:0 0 0 3px #e0472e1f}.projects{width:min(640px,100%)}.projects__new{align-self:flex-start}.projects__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:min(56dvh,460px);overflow-y:auto;padding:2px}.project-card{position:relative;min-width:0}.project-card__open{width:100%;padding:0;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fffdf8;text-align:left;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.project-card__open:hover{transform:translateY(-2px);border-color:#e0472e80;box-shadow:var(--shadow-soft)}.project-card__image{display:block;aspect-ratio:4 / 5;background:#eee5d6;overflow:hidden}.project-card__image img{width:100%;height:100%;display:block;object-fit:cover}.project-card__meta{display:flex;flex-direction:column;gap:1px;padding:7px 8px 8px}.project-card__meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:700}.project-card__meta small{font-size:9.5px;color:var(--ink-faint)}.project-card__delete{position:absolute;top:6px;right:6px;width:25px;height:25px;display:grid;place-items:center;border:1px solid rgba(255,253,248,.75);border-radius:50%;background:#26221ea6;color:#fffdf8;cursor:pointer;opacity:0;transition:opacity .15s ease}.project-card:hover .project-card__delete,.project-card__delete:focus-visible{opacity:1}.project-card__delete svg{width:13px;height:13px}.projects__empty{display:grid;place-items:center;gap:4px;min-height:170px;padding:20px;border:1px dashed var(--line-strong);border-radius:12px;color:var(--ink-soft);text-align:center}.projects__empty-mark{font-family:var(--font-hand);font-size:34px;color:var(--vermilion)}.projects__empty small{color:var(--ink-faint);font-size:10.5px}@media(max-width:640px){.projects-btn{display:none}.projects__grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:min(57dvh,440px)}.project-card__delete{opacity:1}.project-save__row .btn{padding-inline:10px;font-size:11px}}@media(max-width:640px){.projects-btn{display:inline-flex;padding-inline:9px}.topbar__actions>.btn--ghost:not(.projects-btn){width:34px;padding-inline:0}.topbar__actions>.btn--ghost:not(.projects-btn) span{display:none}}@media(max-width:640px){.projects-btn{width:40px;padding-inline:7px;font-size:11px}}@media(max-width:640px){.topbar .projects-btn span{display:inline}}
