
/* TAILO v0.3: The Little Joy Studio */
:root{--ink:#354d40;--green:#365c47;--paper:#f6f0df;--line:#ded9c7;--orange:#bf6952;--muted:#8c907d}
body{background:#f2ecda;color:var(--ink);font-family:"Tailo Sans",Arial,"Microsoft YaHei",sans-serif}
.app-header{height:74px;background:#fcf7e9;border:0;padding:0 28px;gap:18px}.brand-mark{color:#375b46;font-family:"Tailo Round",Arial,sans-serif;font-weight:700;font-size:49px;letter-spacing:-5px}.brand-spark{color:#c3795e;font-size:28px}.brand-cn{border-color:#cfcab7;font-size:14px;letter-spacing:3px}.brand-cn small{font-family:"Tailo Round",sans-serif;font-size:7px;letter-spacing:1.4px;margin-top:7px}
.top-nav{gap:8px}.top-nav .current{height:auto;padding:10px 18px;border:0;border-radius:30px;background:#dfe5cc;color:#3a5b46}.top-nav button{padding:10px 16px}.header-actions .button{border-radius:30px;padding:11px 18px}.header-actions .primary{background:#365c47;box-shadow:0 3px 0 #1f402c1f}.header-actions .quiet{background:#efe7d0}
.intro-bar{position:relative;height:115px;padding:0 32px;gap:22px;background:none}.intro-copy{flex:1;z-index:1}.intro-copy .eyebrow{font-family:"Tailo Round",sans-serif;font-size:8px;letter-spacing:2px;color:#8a8b70}.intro-bar h1{font-size:25px;letter-spacing:1.4px;margin:5px 0 0;line-height:1.5;color:#39553f;font-weight:700}.intro-bar h1 em{font-style:normal;color:#b96850}.intro-copy p{font-size:10px;margin:4px 0 0;color:#9a967e;letter-spacing:1px}
.intro-collage{position:relative;width:190px;height:114px;flex-shrink:0}.intro-collage img:first-child{width:90px;position:absolute;left:3px;top:14px;transform:rotate(-12deg)}.intro-collage img:nth-child(2){position:absolute;width:75px;right:23px;top:12px;transform:rotate(13deg)}.intro-collage span{position:absolute;right:-18px;top:40px;font-family:"Tailo Script",cursive;font-size:16px;line-height:1;transform:rotate(-12deg);color:#8c8e70}
.spec-pill{border:1px solid #d7d2be;border-radius:2px;background:#fbf6e6;padding:13px 18px;transform:rotate(2deg);box-shadow:3px 4px 0 #e3dcc5;line-height:1.8}.spec-pill b{display:block;margin-left:0;font-family:"Tailo Round",sans-serif;font-size:15px;font-weight:600}.spec-pill small{font-size:8px;margin:0}
.workspace{margin:0 18px 18px;height:calc(100dvh - 207px);min-height:620px;grid-template-columns:70px 320px minmax(330px,1fr) 250px;border:1px solid #d8d2bd;border-radius:22px;overflow:hidden;background:#fcf8ed;box-shadow:0 8px 28px #524b2c08}
.tool-rail{background:#365945;border:0;padding:16px 7px;gap:7px}.rail-button{width:56px;height:67px;color:#bdcbb6;gap:7px;border-radius:12px;font-size:11px}.rail-button .icon{width:23px;height:23px;stroke-width:1.5}.rail-button.active,.rail-button:hover{background:#eee0b7;color:#35533e}.rail-button.active{box-shadow:2px 3px 0 #1b372338}.rail-bottom .rail-button:hover{background:#54735a;color:#fff}
.library{background:#fcf8ee;border-right:1px solid #ded7c3}.library #library-content{padding:23px 18px;scrollbar-color:#d5cdb7 transparent}.library h2{font-size:20px;margin-top:5px;letter-spacing:.8px}.panel-title-row{align-items:flex-start}.panel-title-row .eyebrow{font-family:"Tailo Round",sans-serif;font-size:7px;letter-spacing:1.2px}.panel-title-row .small-tag{font-size:8px;border-radius:4px;padding:5px;max-width:65px;white-space:normal;text-align:center;line-height:1.5;transform:rotate(3deg);background:#dfe7d0;color:#64745b}
.panel-description{font-size:10px;line-height:1.9;color:#989680;margin-bottom:14px}.asset-search{display:flex;align-items:center;gap:8px;background:#efeada;border:1px solid #e5ddc9;border-radius:9px;padding:8px 11px;margin:0 0 13px;color:#7f8b72}.asset-search>span{font-size:23px;line-height:1}.asset-search input{width:100%;border:0;background:none;outline:none;font-size:11px;color:#5a6a50;min-width:0}.asset-search input::placeholder{color:#a49b81}
.filter-tabs{gap:5px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding-bottom:14px;margin-bottom:14px;border-bottom:1px dashed #d8d0ba}.filter-tabs button{font-size:10px;padding:7px 0;border-radius:6px;color:#95927a}.filter-tabs button.active{background:#365945;color:#fff5dc}.filter-tabs button:hover:not(.active){background:#e9e5d4}
.asset-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.asset-card,.asset-card:nth-child(n){min-height:149px;background:#f1e9d7;border:1px solid #e8dfc9;border-radius:9px;padding:7px 7px 11px;box-shadow:0 2px 0 #e5ddc817}.asset-card:nth-child(6n+2){background:#e5e9da}.asset-card:nth-child(6n+3){background:#eee0dc}.asset-card:nth-child(6n+4){background:#e3e6e8}.asset-card img{max-height:126px}.asset-card span{font-size:10px;color:#778063}.asset-card:hover{border-color:#9aac80;background:#e9eddb;box-shadow:0 5px 10px #4b523116}
.library-footer{border-top:1px dashed #d8d0ba;font-size:9px;padding:13px 8px;color:#9c9278;background:#faf4e4}.library-footer span{font-size:20px}
.stage{background:#e5e4dd;background-image:linear-gradient(#f7f5ed4d 1px,transparent 1px),linear-gradient(90deg,#f7f5ed4d 1px,transparent 1px);background-size:28px 28px}.stage-bar{height:55px;background:#eeeee5d6;padding:0 20px;border-bottom:1px solid #d7d9ca}.document-name input{font-size:12px;color:#6f7962}.history-actions .icon-button{color:#7e8b72}.artboard-wrap{box-shadow:0 3px 6px #46533112,0 20px 40px #3943291f;border-radius:3px}.artboard-wrap>canvas{border-radius:3px}
.empty-state .empty-doodle{width:104px;height:90px;transform:rotate(-12deg);margin-bottom:10px}.empty-doodle img{width:100%;height:100%;object-fit:contain}.empty-state h2{font-family:"Tailo Brush","Tailo Sans",sans-serif;font-size:29px;color:#4c6347;letter-spacing:1px}.empty-state p{color:#a49f88;font-size:11px;line-height:1.7}.empty-state .button{background:#dbbf70;border-radius:24px;color:#5b533c;padding:11px 20px}.empty-state .text-button{color:#8c9378}
.canvas-bottom{height:63px;padding:0 20px}.view-tools{border-radius:30px;padding:5px 7px;background:#fbf8ec;border:1px solid #d3d6c5;box-shadow:0 3px 0 #6870520a}.view-tools .selected{border-radius:50%;background:#e4e9d6}.safe-toggle{font-size:9px}.stage-hint{font-size:9px;padding-bottom:12px;color:#9b9e89}
.inspector{padding:25px 19px 18px;background:#f8f2e3;border-left:1px solid #ddd6c1}.preview-heading h2{font-size:17px;margin-bottom:20px;line-height:1.6}.preview-heading .eyebrow{font-size:7px;color:#a2997f;letter-spacing:1.5px}.ceramic-scene{height:220px;border-radius:80px 80px 10px 10px;background:linear-gradient(140deg,#dce2ce,#e9e1c8);border:1px solid #d8d9bf}.ceramic-tile{width:140px;height:140px;transform:rotate(-9deg);border-radius:9px;box-shadow:7px 10px 0 #c7c5ad,12px 20px 20px #4d593524}.scene-note{font-family:"Tailo Script",cursive;font-size:16px;color:#8a8b70;bottom:17px;right:9px}.scene-spark.one{top:16px;right:18px;color:#b26e53}.scene-spark.two{bottom:22px;left:13px;color:#677e50}.preview-note{font-size:8px;color:#a0987f;margin:10px 0 25px}
.step-list li{font-size:10px;line-height:1.9;margin-bottom:17px}.step-list b{font-size:11px;margin-bottom:5px}.step-number{background:#e2e7cc;color:#687b54;border-radius:50%;height:26px;width:26px}.handoff-note{background:#ece5d1;padding:14px 10px;border:0;border-radius:10px;margin-top:20px}.handoff-note b{font-size:10px}.handoff-note p{font-size:9px}.handoff-icon{color:#b7795c}
#brush-dock{background:#f3edda;border-color:#d5cfb8;padding:11px 17px 13px}.brush-item{background:#f5efdf;border-color:#e5dbc5}.brush-item.active{background:#e5ead5;border-color:#8d9f72}
.bg-grid{gap:17px 12px}.bg-card canvas{border:1px solid #ded5bd;border-radius:6px}.bg-card span{font-size:10px}.button.primary{background:#365b45}.button.secondary{background:#dcc174}.button.outline{background:#fffbed;border-color:#dcd6c3;border-radius:9px}.selected-controls h3{font-size:13px}.field-label{font-size:11px}.hint-box{background:#eeecd9;color:#939778;border:1px dashed #d1d4b8;border-radius:10px}
#modal{border:1px solid #d5cbb2;border-radius:22px;background:#fbf7ea;box-shadow:0 25px 70px #1b2c2840}#modal::backdrop{background:#263a305e;backdrop-filter:blur(4px)}.modal-header h2{font-family:"Tailo Brush","Tailo Sans",sans-serif;color:#45603f;font-size:29px}.modal-presets .preset-card{font-size:11px}.modal-presets .preset-card canvas{border:6px solid #fffbef;outline:1px solid #e0d7bf;box-shadow:0 4px 9px #6d705710;border-radius:1px}
@media(min-width:1700px){.workspace{grid-template-columns:76px 350px minmax(430px,1fr) 290px}.asset-card img{max-height:145px}.ceramic-scene{height:258px}.ceramic-tile{height:166px;width:166px}.intro-bar h1{font-size:29px}}
@media(max-width:1300px){.workspace{grid-template-columns:66px 278px minmax(290px,1fr) 216px;margin:0 12px 14px}.tool-rail{padding:14px 6px}.rail-button{width:53px}.library #library-content{padding:22px 14px}.asset-card,.asset-card:nth-child(n){min-height:132px}.asset-card img{max-height:109px}.asset-card span{font-size:9px}.panel-title-row .small-tag{font-size:7px;max-width:52px}.library h2{font-size:18px}.intro-collage{width:130px}.intro-collage img:first-child{width:76px}.intro-collage img:nth-child(2){width:65px;right:-3px}.intro-collage span{display:none}.spec-pill{padding:10px 13px}.intro-bar h1{font-size:23px}.inspector{padding:23px 14px}.preview-heading h2{font-size:14px}.ceramic-scene{height:190px}.ceramic-tile{height:121px;width:121px}.scene-note{font-size:13px}.top-nav{display:none}.canvas-bottom{padding:0 12px}.safe-toggle{font-size:8px}}
@media(max-width:1050px){.workspace{grid-template-columns:62px 280px minmax(290px,1fr)}.intro-collage{display:none}.inspector{display:none}.rail-button{width:50px}.app-header{padding:0 20px}}
@media(max-width:680px){
 .app-header{height:64px;padding:0 15px;gap:8px}.brand{gap:8px}.brand-mark{font-size:35px;letter-spacing:-3px}.brand-spark{font-size:19px}.brand-cn{font-size:10px;padding-left:8px;letter-spacing:1px}.brand-cn small{font-size:5px;letter-spacing:.3px;margin-top:4px}.header-actions{gap:3px}.header-actions .button{padding:8px 11px;border-radius:22px}.header-actions .quiet{padding:7px;background:transparent}.header-actions .primary{font-size:10px;gap:4px}.header-actions .primary .icon{width:13px;height:13px}
 .intro-bar{height:102px;padding:4px 18px 12px;align-items:center;gap:6px}.intro-copy .eyebrow{font-size:6px;letter-spacing:1.1px}.intro-bar h1{font-size:19px;letter-spacing:.4px;line-height:1.8;margin-top:3px}.intro-copy p{font-size:8px;letter-spacing:.15px;margin:2px 0 0}.spec-pill{position:absolute;right:18px;top:3px;border:0;box-shadow:none;background:none;padding:0;transform:none;line-height:1.1;font-size:0}.spec-pill b{font-size:8px;font-family:"Tailo Round",sans-serif}.spec-pill small{display:none}
 .workspace{margin:0 9px 12px;height:auto;min-height:0;display:flex;border-radius:19px;overflow:visible;border-color:#d8d2bd}.stage{border-radius:18px 18px 0 0;overflow:hidden;min-height:390px;height:calc(100vw + 56px)}.stage-bar{height:41px;padding:0 14px}.document-name input{font-size:10px}.canvas-bottom{height:49px;padding:0 11px}.view-tools{padding:4px;border-radius:24px}.view-tools .icon-button{width:24px;height:25px}.zoom-label{min-width:35px;font-size:8px}.safe-toggle{font-size:8px}.stage-hint{font-size:7px;padding-bottom:8px}
 .tool-rail{background:#365945;border:0;padding:10px 6px;gap:3px;top:0;border-radius:0;flex-direction:row}.rail-button{color:#c5d0bd;width:50px;height:49px;border-radius:9px;font-size:9px;gap:4px}.rail-button .icon{width:19px;height:19px}.rail-button.active{box-shadow:1px 2px 0 #132e2138}
 .library{border:0;border-radius:0 0 19px 19px;overflow:hidden}.library #library-content{padding:21px 17px}.library h2{font-size:20px}.panel-title-row .eyebrow{font-size:7px}.panel-title-row .small-tag{font-size:8px;max-width:none;padding:5px 9px}.panel-description{font-size:10px}.asset-search{padding:9px 12px}.filter-tabs{gap:6px;grid-template-columns:repeat(6,minmax(0,1fr))}.filter-tabs button{font-size:10px;padding:8px 0}
 .asset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.asset-card,.asset-card:nth-child(n){min-height:114px;padding:6px 4px 10px;border-radius:7px}.asset-card img{max-height:none}.asset-card span{font-size:9px}.empty-state .empty-doodle{height:68px;width:80px;margin-bottom:4px}.empty-state h2{font-size:23px;margin-bottom:8px}.empty-state p{font-size:9px;margin-bottom:13px}.empty-state .button{font-size:10px;padding:9px 16px}
 #brush-dock{padding:15px 18px;background:#f2eddc}.library-footer{border-radius:0 0 19px 19px}.modal-inner{padding:23px 18px}.modal-header h2{font-size:25px}.modal-presets{gap:18px 12px}.modal-presets .preset-card{font-size:9px}.modal-presets .preset-card small{font-size:8px}
}
/* Local photo workspace */
#image-editor{max-width:min(1100px,96vw);width:1100px;max-height:94dvh;border:1px solid #cfc6ad;border-radius:22px;padding:0;background:#fcf7e9;color:#365540;box-shadow:0 30px 90px #152a2345;overflow:auto}#image-editor::backdrop{background:#233a3169;backdrop-filter:blur(5px)}
.photo-editor{padding:26px}.photo-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:21px}.photo-title h2{font-family:"Tailo Brush","Tailo Sans",sans-serif;font-size:28px;font-weight:400;margin:7px 0 0}.photo-title>button{font-size:25px;padding:4px 10px;color:#8e947c}.photo-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.photo-preview{min-width:0}.photo-preview canvas{width:100%;height:auto;display:block;border-radius:12px;border:1px solid #d8d8c8;touch-action:none;cursor:crosshair}
#photo-status{font-size:11px;color:#93957b;line-height:1.8;min-height:38px;margin:12px 0}.photo-tools{display:flex;gap:7px;flex-wrap:wrap}.photo-tools button{font-size:11px;padding:9px 12px;background:#eee8d5;border-radius:8px;border:1px solid transparent}.photo-tools .active{background:#365945;color:#fff5df}.photo-tools button:disabled{opacity:.35}.photo-brush{display:flex;align-items:center;gap:12px;font-size:11px;color:#8c927c;margin-top:15px}.photo-brush input{flex:1;accent-color:#60744e}
.photo-settings h3{font-size:13px;margin:0 0 13px}.crop-shapes{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.crop-shapes button{background:#ede7d7;border:1px solid #e0d8c3;padding:12px 3px;border-radius:9px;font-size:11px}.crop-shapes .active{background:#dfe7ce;border-color:#8ea16f;color:#45643c}
.photo-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#859075;margin:17px 0}.photo-label select{font-size:11px;color:#65775a;background:#fffaf0;border:1px solid #d8d1b9;padding:9px 8px;border-radius:7px;max-width:160px}.photo-label input{max-width:140px;accent-color:#617853}
.cutout-box{background:#f0ecda;border:1px dashed #d2ceb7;padding:18px 15px;border-radius:12px;margin-top:20px}.cutout-box h3{margin:12px 0 6px}.cutout-box p,.photo-note{font-size:10px;line-height:1.9;color:#95927c}.cutout-box .button{font-size:11px;padding:10px 12px}.cutout-box .small-tag{font-size:8px;background:#e1e8cb;color:#74835e}.cutout-box .text-button{font-size:10px}.photo-note{margin-top:14px}
.photo-footer{border-top:1px solid #e3dbc5;padding-top:20px;display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:22px}.photo-footer>span{font-size:10px;color:#939879;margin-right:auto}.photo-footer .button{font-size:12px;padding:11px 18px}
@media(max-width:680px){#image-editor{width:96vw;max-height:96dvh;border-radius:18px}.photo-editor{padding:19px 15px}.photo-title{margin-bottom:16px}.photo-title h2{font-size:23px}.photo-title .eyebrow{font-size:7px}.photo-layout{grid-template-columns:1fr;gap:20px}.photo-tools{gap:5px}.photo-tools button{padding:9px;font-size:10px}#photo-status{font-size:10px;min-height:0}.photo-settings{border-top:1px solid #ded7c2;padding-top:18px}.crop-shapes{grid-template-columns:repeat(4,1fr)}.cutout-box{padding:16px}.photo-label select{max-width:200px}.photo-label input{max-width:190px}.photo-footer{position:sticky;bottom:-19px;background:#fcf7e9;padding:15px 0 3px;margin-top:12px;flex-wrap:wrap}.photo-footer>span{width:100%;font-size:9px}.photo-footer .button{font-size:11px;padding:9px 13px}}

.text-templates{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:20px}.text-templates button{background:#eee4d4;border:1px solid #dfd4be;min-height:47px;border-radius:5px;padding:8px 5px;font-size:14px;line-height:1.5}.text-templates button:nth-child(3n+2){background:#e6e8d5}.text-templates button:hover{border-color:#769168}.license-tag{font-size:9px;color:#617255;border:1px dashed #b0b990;background:#e8ecd8;padding:7px 5px;border-radius:5px;white-space:nowrap}#text-value{background:#fffbed;border:1px solid #d6cfb8;border-radius:8px;line-height:1.7;width:100%;min-height:94px;color:#42573e;padding:12px;font-family:inherit;font-size:13px;resize:vertical}#text-preview{width:100%;height:115px;object-fit:contain;border:1px dashed #cec6ad;border-radius:7px;margin:12px 0 16px}.font-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 20px}.font-choices button{display:flex;flex-direction:column;align-items:flex-start;padding:10px 8px;border-radius:7px;background:#f5eddb;border:1px solid #e1d7be}.font-choices button.active{border-color:#879e6f;background:#e6ead3;box-shadow:inset 0 0 0 1px #879e6f}.font-choices button span{font-size:20px;line-height:1.8;color:#566b4e}.font-choices button b{font-size:10px;font-weight:500}.font-choices button small{font-size:8px;color:#95927e;line-height:1.7}.text-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 9px;margin-bottom:15px}.text-form-grid label{font-size:10px;color:#889079;display:flex;flex-direction:column;gap:6px}.text-form-grid select{width:100%;border:1px solid #d8d2be;border-radius:5px;padding:8px 4px;font-size:10px;color:#55694b;background:#fffbed}.font-license-list details{margin:14px 0;border:1px solid #ded5c1;border-radius:10px;padding:14px}.font-license-list summary{cursor:pointer;font-weight:600}.font-license-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.6 monospace;max-height:360px;overflow:auto;color:#6d735f;background:#f1ecdc;padding:12px}.font-license-list a{color:#557c60}.font-license-list p{font-size:12px;line-height:1.8}
/* Keep the artwork in view while the material drawer scrolls. */
html,body{height:100%;overflow:hidden}body{display:flex;flex-direction:column}.app-header,.intro-bar{flex:none}.intro-copy{min-width:0}.intro-collage{overflow:hidden}.workspace{flex:1;min-height:0;height:auto;margin-bottom:18px}.tool-rail,.library,.stage,.inspector{min-height:0}.library #library-content{overscroll-behavior:contain}.selection-tools{position:absolute;z-index:8;width:242px;background:#fffaf0f5;border:1px solid #d7ceb5;border-radius:12px;padding:6px 8px;box-shadow:0 5px 20px #27382625;backdrop-filter:blur(8px);touch-action:manipulation}.selection-tools[hidden]{display:none}.selection-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}.selection-actions button{display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 3px;font-size:10px;border-radius:6px;white-space:nowrap}.selection-actions button:hover{background:#e6ecd9}.selection-actions .icon{width:14px;height:14px}.selection-actions .quick-delete{color:#b16a54}.selection-actions .quick-delete:hover{background:#f3dfd7}.selection-opacity{display:flex;align-items:center;gap:8px;font-size:9px;color:#778269;padding:4px 3px 3px;border-top:1px dashed #ded9c4;white-space:nowrap}.selection-opacity input{min-width:0;flex:1;width:110px;height:4px;margin:6px 0}.selection-opacity output{width:29px;text-align:right;font-variant-numeric:tabular-nums}.selection-locked{display:flex;gap:8px;align-items:center;justify-content:center;padding:8px;font-size:11px}.selection-locked .icon{width:16px;height:16px}.canvas-viewport{min-height:140px}.mobile-controls{display:none}
:is(#delete-confirm,#clear-confirm){width:340px;max-width:90vw;border:1px solid #d6cbb3;background:#fff9eb;border-radius:20px;padding:27px;color:#42593f;box-shadow:0 18px 60px #243b3340}:is(#delete-confirm,#clear-confirm)::backdrop{background:#243b3357;backdrop-filter:blur(3px)}:is(#delete-confirm,#clear-confirm) h2{font-size:21px;margin:12px 0}:is(#delete-confirm,#clear-confirm) p{font-size:13px;overflow-wrap:anywhere;color:#798169}:is(#delete-confirm,#clear-confirm) small{font-size:11px;color:#92947d}.confirm-actions{display:flex;gap:10px;margin-top:24px}.confirm-actions button{flex:1}.button.danger{background:#b5735d;color:#fff8eb}
@media(min-width:681px) and (max-height:760px){.intro-bar{height:82px}.intro-collage{height:80px}.intro-collage img:first-child{width:64px;top:5px}.intro-collage img:nth-child(2){width:55px;top:5px}.app-header{height:64px}.intro-bar h1{font-size:21px}.stage-bar{height:45px}.canvas-bottom{height:48px}.stage-hint{padding-bottom:8px}}
@media(max-width:680px){
 body{height:100dvh;min-height:0;overflow:hidden}.app-header{position:relative;height:57px;min-height:57px;padding:0 12px;flex:none;z-index:1}.brand{min-width:0;gap:7px}.brand-mark{font-size:32px}.brand-cn{font-size:9px;letter-spacing:.7px}.brand-cn small{font-size:4.5px;letter-spacing:.2px}.save-state,.top-nav{display:none}.header-actions{min-width:0;gap:4px}.header-actions .button{padding:8px 9px}.header-actions .quiet{font-size:0;padding:7px}.header-actions .quiet .icon{width:17px;height:17px}.header-actions .primary{font-size:10px;letter-spacing:0;gap:4px}.intro-bar{height:58px;min-height:58px;padding:5px 15px 9px;overflow:hidden;display:flex;align-items:center}.intro-copy{width:100%;min-width:0}.intro-copy .eyebrow,.intro-copy p,.intro-collage,.spec-pill{display:none}.intro-bar h1{font-size:18px;line-height:1.4;letter-spacing:0;margin:0;white-space:nowrap}.workspace{display:flex;flex-direction:column;flex:1;min-height:0;height:auto;overflow:hidden;margin:0 8px max(8px,env(safe-area-inset-bottom));border-radius:18px}.stage{order:0;flex:0 0 auto;height:clamp(264px,48dvh,480px);min-height:0;border-radius:17px 17px 0 0}.stage-bar{height:35px;padding:0 12px}.document-name input{width:138px;font-size:10px}.history-actions .icon-button{height:28px;width:28px}.canvas-viewport{min-height:0;flex:1}.canvas-bottom{height:43px;justify-content:center;padding:0 9px}.stage-hint{font-size:7px;padding:0 5px 7px;line-height:1.5;white-space:nowrap}.view-tools{padding:2px 5px}.dimension.horizontal{top:5px;font-size:7px}.dimension.vertical{font-size:7px;left:5px}.empty-state{padding:9px}.empty-state .empty-doodle{width:53px;height:45px;margin-bottom:2px}.empty-state h2{font-size:19px;letter-spacing:0;margin-bottom:6px}.empty-state p{font-size:8px;margin-bottom:9px}.empty-state .button{padding:6px 12px;font-size:9px}.empty-state>div{gap:6px}.empty-state .text-button{font-size:8px;padding:3px}.tool-rail{order:1;position:relative;top:auto;flex:0 0 57px;height:57px;padding:5px 7px;justify-content:space-around;gap:2px;z-index:2}.rail-button{height:46px;width:49px;flex:0 1 49px;font-size:9px}.rail-bottom{display:none}.library{order:2;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;display:flex;flex-direction:column;border-radius:0 0 17px 17px}.library #library-content{overflow:visible;flex:none;min-height:0;padding:18px 15px 28px}.library-footer{display:none}#brush-dock{flex:none;order:-1;padding:12px 15px}#brush-dock[hidden]{display:none}#brush-dock .brush-adjustments{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px}#brush-dock .brush-adjustments .field-label{margin:8px 0 3px;font-size:9px}#brush-dock .brush-adjustments input{margin:9px 0;height:4px}#brush-dock .helper-copy{grid-column:1/-1;font-size:9px;margin:3px 0}#brush-dock .palette{gap:8px;margin:10px 0}.selection-tools{width:230px;padding:4px 6px}.selection-actions button{font-size:9px;padding:7px 3px}.selection-opacity{font-size:8px;gap:7px}.selection-actions .icon{width:13px;height:13px}.mobile-controls{display:block;margin-top:12px}.mobile-controls .control-row{display:none}.mobile-controls .selected-controls>label:has(+input[data-prop=opacity]),.mobile-controls input[data-prop=opacity]{display:none}
}
@media(max-width:370px){.brand-cn{display:none}.header-actions .primary{font-size:9px}.intro-bar h1{font-size:16px}.stage{height:46dvh}.stage-hint{font-size:6px}.document-name input{width:116px}.rail-button{width:43px;flex-basis:43px}.selection-tools{width:212px}.selection-actions button{font-size:8px}.selection-actions .icon{width:12px;height:12px}}
@media(max-width:680px) and (max-height:650px){.intro-bar{height:36px;min-height:36px}.intro-bar h1{font-size:16px}.app-header{height:49px;min-height:49px}.stage{height:46dvh;min-height:235px}.stage-hint{display:none}.tool-rail{height:50px;flex-basis:50px}.rail-button{height:40px}}
.rail-button:not(.active){background:transparent;color:#bdcbb6;box-shadow:none}.rail-button:not(.active):hover{background:#52755b;color:#fff4d9}.asset-finder{display:flex;gap:7px;align-items:stretch;margin-bottom:13px}.asset-finder .asset-search{flex:1;min-width:0;margin:0}.asset-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:42px;border:1px dashed #b7c09c;border-radius:8px;color:#647b51;font-size:8px;background:#e9edda}.asset-upload .icon{width:15px;height:15px}.asset-upload:hover{background:#dde7c7}
@media(max-width:680px){.library #library-content{padding:13px 14px 24px}.library .panel-title-row{margin-bottom:11px}.library h2{font-size:16px;margin:0;letter-spacing:.3px}.library .panel-title-row .eyebrow,.library .panel-description{display:none}.library .panel-title-row .small-tag{font-size:7px;padding:4px 7px}.library .asset-finder{margin-bottom:7px}.library .asset-search{padding:5px 9px}.library .asset-search input{font-size:10px}.library .filter-tabs{gap:2px;padding-bottom:7px;margin-bottom:10px}.library .filter-tabs button{padding:6px 0;font-size:9px}.library .asset-card,.library .asset-card:nth-child(n){min-height:105px}.rail-button:not(.active):hover{background:#52755b;color:#fff4d9}}
@media(hover:none){.rail-button:not(.active):hover{background:transparent;color:#bdcbb6}}
