:root{color-scheme:light;--ink:#374e46;--muted:#77867d;--green:#527f69;--paper:#fffefb;--line:#e4e7dd;--accent:#df8e80;--color:#e36e64;font-family:ui-rounded,"Hiragino Maru Gothic ProN","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#f7f5ef;color:var(--ink);-webkit-tap-highlight-color:transparent}button,a{-webkit-user-select:none;user-select:none;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:0;transition:background .15s,transform .15s,box-shadow .15s}button:active:not(:disabled){transform:translateY(2px)}button:focus-visible,a:focus-visible{outline:3px solid #b78b50;outline-offset:4px}button:disabled{opacity:.36;cursor:default}button[hidden],[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.app{max-width:1220px;margin:auto;padding:24px 32px max(16px,env(safe-area-inset-bottom))}.header{display:flex;align-items:center;gap:18px;margin-bottom:26px}.brand{display:flex;align-items:center;gap:13px;flex:1}.brand-flower{width:46px;height:46px}h1{font-size:25px;line-height:1.2;letter-spacing:-.7px;margin:0;font-weight:750}.brand p{font-size:12px;margin:6px 0 0;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:12px}.icon-button{width:44px;height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:transparent}.icon-button:hover:not(:disabled){background:#e9eee5}.primary,.secondary{min-height:48px;border-radius:16px;padding:12px 21px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650;font-size:14px}.primary{background:var(--green);color:white;box-shadow:0 4px 0 #3c614d}.primary:hover:not(:disabled){background:#466e59}.secondary{background:#edf0e6;box-shadow:0 3px 0 #dce2d4}.paper{width:100%;aspect-ratio:1;background:white;border-radius:50%;position:relative;box-shadow:0 0 0 10px #fffdf8,0 0 0 11px #e7e7dc,0 18px 48px #4353440b;isolation:isolate;touch-action:none;-webkit-user-select:none;user-select:none;overflow:hidden}.paper canvas,.paper>svg{position:absolute;inset:0;width:100%;height:100%;display:block}.paper canvas{touch-action:none;cursor:none}.paper>svg{pointer-events:none}.paper #guides{opacity:1;transition:opacity .2s}.paper #guides.off{opacity:0}.empty-hint{position:absolute;left:50%;top:63%;transform:translateX(-50%);width:70%;display:flex;flex-direction:column;align-items:center;pointer-events:none;font-size:13px;color:#98a295;transition:opacity .2s}.empty-hint svg{width:85px;height:48px;margin-bottom:5px}#cursor{display:none;position:absolute;border:1.5px solid #526756;background:#ffffff44;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}#cursor.eraser{background:#ffffffa6;border-style:dashed}.art-caption{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:24px;color:var(--muted);min-height:27px}.art-caption p{font-size:12px;line-height:1.5;margin:0;text-align:center}.little-star{font-size:22px;color:#d6a05b}footer{display:flex;justify-content:space-between;align-items:center;color:#8b958a;font-size:11px;gap:12px;margin-top:23px;min-height:20px}#draft-status::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#99b398;margin:0 7px 1px 0}#draft-status.warning{color:#a56442}#draft-status.warning::before{background:#c58d57}.studio-signature{font-size:10px;letter-spacing:2px;white-space:nowrap}.studio-signature i{font-family:Georgia,serif;font-size:12px;letter-spacing:0;font-weight:normal;margin-left:6px;color:#7f8d7d}
dialog{border:1px solid #e7e8dd;border-radius:28px;padding:26px;max-width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--ink);background:#fffdf8;box-shadow:0 22px 90px #26362f33}dialog::backdrop{background:#35483c55;backdrop-filter:blur(6px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{font-size:10px;letter-spacing:2px;color:#9a9e81}dialog h2{font-size:22px;margin:6px 0 12px;line-height:1.3}.dialog-header .icon-button{flex:none}.dialog-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.dialog-actions button{flex:1;white-space:nowrap}.dialog-actions .icon{width:20px;height:20px}#preview{display:block;width:min(100%,300px);height:auto;margin:14px auto;border:1px solid #eaece3;border-radius:14px;user-select:auto;-webkit-touch-callout:default}.save-note{text-align:center;font-size:12px;color:var(--muted);margin:12px 0 20px}.save-help{font-size:12px;line-height:1.7;color:var(--muted);text-align:center;margin:18px 0 0}#save-status{text-align:center;font-size:12px;margin-bottom:0}.new-dialog{text-align:center;padding:28px}.new-art{font-size:50px;color:#d8957c}.new-dialog p{font-size:14px;line-height:1.8;color:var(--muted);margin:8px 0 24px}.new-dialog .dialog-actions{flex-direction:column}#toast{position:fixed;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#3d5b4b;color:white;font-size:13px;line-height:1.5;padding:12px 20px;border-radius:16px;max-width:calc(100vw - 32px);width:max-content;box-shadow:0 6px 24px #35423726;z-index:10;pointer-events:none}

/* A ready-to-draw surface, with infrequent options in one native dialog. */
.app{height:100vh;height:100dvh;max-width:1220px;display:flex;flex-direction:column;padding:18px 28px max(12px,env(safe-area-inset-bottom));gap:14px}
.header{flex:none;margin:0;min-height:48px}.header-actions{gap:8px}.icon-button{width:44px;height:44px;flex:none}.header .brand{min-width:0}
.workspace{display:grid;grid-template-columns:144px minmax(0,1fr);gap:30px;min-height:0;flex:1;align-items:center}
.drawing-tools{display:flex;flex-direction:column;gap:22px;align-self:center}.palette-panel h2{font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;gap:6px}#color-name{font-size:10px;font-weight:400;color:var(--muted)}
.palette{display:grid;grid-template-columns:repeat(2,44px);justify-content:center;gap:10px 20px}.swatch{width:44px;height:44px;background:transparent;position:relative;padding:6px;border-radius:50%}.swatch::before{content:"";display:block;width:32px;height:32px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 -2px 0 #00000015}.swatch[aria-pressed="true"]::before{outline:2px solid var(--swatch);outline-offset:3px}.swatch[aria-pressed="true"]::after{content:"";position:absolute;width:8px;height:5px;border-left:2px solid white;border-bottom:2px solid white;transform:rotate(-45deg);left:calc(50% - 4px);top:calc(50% - 4px)}
.tool-row{display:flex;gap:4px;background:#eeeee5;border-radius:15px;padding:4px}.tool{min-width:44px;min-height:44px;padding:7px;flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:11px;font-size:12px;background:transparent}.tool .icon{width:20px;height:20px}.tool[aria-pressed="true"]{background:#fffefa;box-shadow:0 2px 6px #37503b12}.drawing-tools .tool-row{flex-direction:column}
.art-area{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch}.art-toolbar{display:flex;align-items:center;width:100%;max-width:680px;gap:12px;margin:0 0 14px;flex:none}.history-tools{display:flex;gap:4px;margin-right:auto}.subtle{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;background:#e9eee4;border-radius:14px;padding:8px 12px}.subtle .icon{width:21px;height:21px}.paper-wrap{width:min(100%,calc(100dvh - 220px),650px);min-width:0;position:relative;flex:none}.art-caption{margin-top:20px;min-height:24px}footer{flex:none;margin-top:0;min-height:18px}
#settings-dialog{width:min(430px,calc(100vw - 24px));padding:20px;overscroll-behavior:contain}#settings-dialog .dialog-header{position:sticky;top:-20px;margin:-2px -2px 12px;padding:2px;background:#fffdf8;z-index:2}#settings-dialog h2{margin:0;font-size:21px}.setting-group{margin:0 0 22px}.setting-group h3{margin:0 0 10px;font-size:13px;font-weight:650}.modes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mode{min-height:64px;min-width:44px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:1px solid transparent;border-radius:14px;background:#f0f1e8}.mode svg{width:32px;height:32px}.mode span{font-size:16px;font-weight:650}.mode[aria-pressed="true"]{background:#e5efdf;border-color:#7a9b84;box-shadow:0 2px 0 #71917b}.sizes{display:flex;gap:10px}.sizes button{flex:1;min-height:48px;min-width:44px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px;background:#f2f2eb}.sizes i{width:var(--size);height:var(--size);border-radius:50%;background:var(--color)}.sizes button[aria-pressed="true"]{border-color:#a5b69e;background:#e8efdf}.settings-actions{display:flex;gap:12px}.settings-actions button{flex:1;min-width:44px;padding:10px;font-size:13px}#axes[aria-pressed="false"]{color:#8f998d;background:#f0eee8}#axes[aria-pressed="true"]{outline:2px solid #a6b79e;outline-offset:-2px}
@media(max-width:900px) and (min-height:541px){
 .app{padding:16px 24px 12px;gap:12px}.workspace{display:flex;flex-direction:column;gap:16px;justify-content:center}.art-area{width:100%;flex:1;min-height:0}.paper-wrap{width:min(calc(100% - 24px),calc(100dvh - 310px),620px)}.drawing-tools{flex:none;width:100%;gap:10px;align-self:center;align-items:center}.drawing-tools .tool-row{flex-direction:row;order:0;width:230px}.palette-panel{order:1}.palette-panel h2{display:none}.palette{grid-template-columns:repeat(10,44px);gap:6px}.art-caption{margin-top:18px}.art-caption p{font-size:12px}.studio-signature{display:none}footer{justify-content:center;font-size:10px}
}
@media(max-width:540px){
 .app{padding:10px 16px max(10px,env(safe-area-inset-bottom));gap:10px}.header{gap:10px}.brand{gap:0}.brand-flower,.brand p{display:none}h1{font-size:19px;letter-spacing:-.5px}.header-actions{gap:2px;flex:none}.header-actions .primary{min-height:44px;padding:10px;font-size:12px;gap:5px}.header-actions .primary .icon{width:19px;height:19px}.header-actions .icon-button{width:44px;padding:10px}.workspace{display:flex;flex-direction:column;gap:14px;justify-content:center}.art-area{flex:1;min-height:0;width:100%}.art-toolbar{margin-bottom:14px;gap:8px}.subtle{font-size:12px;padding:8px 10px}.paper-wrap{width:min(calc(100% - 16px),calc(100dvh - 345px));min-width:0}.paper{box-shadow:0 0 0 6px #fffdf8,0 0 0 7px #e7e7dc,0 15px 32px #43534408}.art-caption{margin-top:16px;gap:6px;min-height:20px}.art-caption p{font-size:11px}.little-star{font-size:19px}.empty-hint{font-size:11px}.empty-hint svg{width:65px;height:38px}.drawing-tools{width:100%;align-items:center;gap:10px;flex:none}.drawing-tools .tool-row{flex-direction:row;width:230px}.palette-panel{order:1}.palette-panel h2{display:none}.palette{grid-template-columns:repeat(5,44px);gap:4px 18px}.studio-signature{display:none}footer{justify-content:center;font-size:10px}.dialog-actions{flex-direction:column}dialog{padding:20px}#preview{max-height:40dvh;width:auto;max-width:100%}
}
@media(max-width:355px){.app{padding-left:10px;padding-right:10px}.header{gap:6px}h1{font-size:16px}.header-actions .primary{font-size:11px;padding:10px 8px}.header-actions .primary .icon{display:none}.palette{column-gap:14px}.art-caption{display:none}.paper-wrap{width:min(calc(100% - 16px),calc(100dvh - 315px))}}
@media(max-height:540px) and (min-width:541px){
 .app{padding:8px 18px 8px;gap:8px}.header{min-height:44px;gap:12px}.brand-flower,.brand p{display:none}h1{font-size:20px}.primary{min-height:44px;padding:10px 14px}.workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:center}.drawing-tools{gap:12px}.palette-panel h2{display:none}.palette{grid-template-columns:repeat(5,44px);gap:6px}.drawing-tools .tool-row{flex-direction:row}.art-toolbar{margin-bottom:10px}.paper-wrap{width:min(100%,calc(100dvh - 145px))}.art-caption{display:none}.studio-signature{display:none}footer{justify-content:center;font-size:9px;min-height:14px}#settings-dialog{padding:14px;max-height:calc(100dvh - 16px)}#settings-dialog .dialog-header{top:-14px;margin-bottom:10px}.setting-group{margin-bottom:14px}.mode{min-height:54px}.mode svg{width:25px;height:25px}.setting-group h3{margin-bottom:6px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

@media(max-width:900px) and (min-height:541px){.drawing-tools{order:2}.art-area{order:1}}
@media(max-width:540px){.paper-wrap{width:min(100%,calc(100dvh - 345px))}}
@media(max-width:355px){.paper-wrap{width:min(100%,calc(100dvh - 315px))}}
