@charset "UTF-8";
:root{--paper:#fff9ef;--ink:#57435f;--muted:#a18b9c;--line:#dfd0d9;--lavender:#a98dc4;--soft:#f1e9f5;--white:#fffdf8}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;background-image:radial-gradient(#a18c701b .7px,transparent .7px);background-size:7px 7px}button,input,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a889c4;outline-offset:3px}[hidden]{display:none!important}button{border:0}a{text-decoration:none;color:inherit}.studio{max-width:1130px;margin:auto;padding:26px 38px 20px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.brand{font-size:10px;letter-spacing:2px;font-weight:650;display:flex;gap:9px;align-items:center}.brand>span{font-size:29px;color:#c49079}.top-note{font-size:11px;color:#aa929f;letter-spacing:1px}.heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:2.1px;color:#ae8ea4}.heading h1{font-size:35px;font-weight:800;letter-spacing:-1px;line-height:1.3;margin:8px 0 9px}.heading h1>span{color:#b998b6}.heading p{font-size:12px;color:#a58b9e;margin:0}.restore{font-size:11px;background:transparent;color:#9a7fab;padding:10px;text-decoration:underline;text-underline-offset:5px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:26px;align-items:start}.canvas-card{border:1.5px solid #c8b0c5;border-radius:22px;background:#fff8ed;overflow:hidden;box-shadow:0 5px 0 #eee1df}.canvas-bar{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:15px 18px;border-bottom:1px solid #e6d7dd;font-size:10px}.canvas-bar>span:first-child{display:flex;align-items:center;gap:6px;white-space:nowrap}.canvas-bar i{width:5px;height:5px;border-radius:50%;background:#aabb95}.canvas-bar>span:last-child{font-size:9px;color:#b39aaa}.board-wrap{position:relative;aspect-ratio:600/480;isolation:isolate;background:#fff3e9}.board-wrap>svg{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}.board-wrap svg [data-item]{cursor:grab;outline:none}.board-wrap svg [data-item]:focus-visible .item-highlight{stroke:#9875b2;stroke-width:2;stroke-dasharray:5 4}.board-wrap svg [data-item]:active{cursor:grabbing}.board-wrap.brush-mode>svg{cursor:crosshair}.empty-invite{position:absolute;left:0;right:0;top:30%;display:flex;flex-direction:column;align-items:center;gap:14px;pointer-events:none}.empty-invite>span{font-size:13px;letter-spacing:.5px;color:#b49eae}.empty-invite button{pointer-events:auto;background:#fffbf2dc;border:1px dashed #c3a8c6;border-radius:30px;padding:11px 17px;color:#987aa8;font-size:12px}.empty-invite button>span{margin-left:14px}.tool-badge{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);border:1px solid #dbc4d1;background:#fffcf2d9;font-size:10px;border-radius:20px;padding:7px 13px;color:#a0879c;white-space:nowrap;pointer-events:none}.canvas-actions{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#fffaf2;border-top:1px solid #e5d1d5}.history{display:flex;gap:4px}.history button{background:transparent;font-size:23px;padding:3px 9px;color:#8e719e;display:flex;gap:5px;align-items:center;min-height:36px}.history span{font-size:10px}.quiet{font-size:10px;padding:8px;background:transparent;color:#a08a9b;text-decoration:underline;text-underline-offset:4px}.status{font-size:10px;color:#a58b9f;line-height:1.8;min-height:30px;text-align:center;margin:11px 0 7px}.finish-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.finish-row>span{font-size:10px;color:#b59eab;max-width:140px;line-height:1.7}.primary{display:block;text-align:center;width:100%;background:#a58ac0;border:1px solid #9274ae;border-radius:12px;color:#fffdf6;padding:13px;font-size:13px;font-weight:650;box-shadow:0 3px 0 #d6c3e3;transition:transform .15s}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #d6c3e3}.primary:disabled{box-shadow:none}.finish{width:auto;padding:12px 20px;white-space:nowrap}.finish>span{margin-left:16px}.materials{background:#fffcf7;border:1px solid #e0d0dc;border-radius:20px;overflow:hidden;box-shadow:0 3px 0 #f0e5e8}.tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:8px 9px 0;background:#f9f2ed;border-bottom:1px solid #e6d8df}.tabs button{background:transparent;color:#b29aaa;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 0 13px;position:relative}.tabs button>span{font-size:8px;letter-spacing:1px;color:#b7a3af}.tabs button[aria-selected=true]{color:#816391;font-weight:700}.tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:-1px;width:33px;height:3px;background:#b094c8;border-radius:3px}.panel{padding:22px 20px 18px;min-height:433px}.panel-title h2{font-size:17px;font-weight:750;letter-spacing:-.2px;margin:0 0 9px}.panel-title p{font-size:10px;line-height:1.8;color:#ae96a8;margin:0 0 20px}.section-label{font-size:10px;margin:20px 0 10px;display:flex;align-items:center;justify-content:space-between;color:#92748f}.section-label small{font-size:9px;color:#ba9fb2}.shape-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.shape-option{padding:11px 5px 9px;border:1px solid #e3d4dd;border-radius:12px;background:var(--white);font-size:10px;display:flex;align-items:center;flex-direction:column;gap:5px}.shape-option svg{width:39px;height:27px;overflow:visible}.shape-option[aria-pressed=true],.flavor[aria-pressed=true]{border-color:#af94c3;background:#f1e8f6;box-shadow:0 2px 0 #e4d6ec}.flavor-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.flavor{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e6d7df;border-radius:10px;font-size:10px;background:var(--white)}.flavor i{width:17px;height:17px;border:1px solid #b69b98;border-radius:5px}.layer-list,.cream-layer{display:flex;gap:7px;margin-bottom:13px;flex-wrap:wrap}.layer-chip{font-size:10px;background:#faf4ee;color:#a48b9f;padding:7px 10px;border:1px solid #e3d4df;border-radius:20px}.layer-chip[aria-pressed=true]{color:#846597;border-color:#baa1cd;background:#f1e8f6}.range-row{display:flex;align-items:center;gap:10px;font-size:10px;color:#a1899d;line-height:2;margin:14px 0}.range-row input{width:100%;min-width:30px;flex:1;accent-color:#ab8fc2;cursor:pointer}.range-row>span{font-size:9px;white-space:nowrap;min-width:31px}.remove-layer{display:block;margin:-4px 0 8px auto}#addLayer{margin-top:22px}.panel-footnote{font-size:9px;color:#b39bad;line-height:1.9;margin:13px 0 0;text-align:center}.custom-color{font-size:9px;display:flex;align-items:center;gap:5px}.custom-color input{width:23px;height:23px;border:0;padding:0;border-radius:50%;background:transparent;cursor:pointer}.swatches{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.swatch{width:27px;height:27px;border-radius:50%;background:var(--color);border:1px solid #b6a0aa;position:relative}.swatch[aria-pressed=true]:after{content:"";position:absolute;inset:-5px;border:1px solid #ae8fc4;border-radius:50%}.segmented{display:flex;border:1px solid #ded0df;border-radius:10px;overflow:hidden;margin:12px 0}.segmented button{flex:1;background:transparent;font-size:10px;color:#a28b9d;padding:10px 5px}.segmented button[aria-pressed=true]{background:#eee3f4;color:#826095}.soft-button{width:100%;padding:11px;border:1px solid #cdb7d9;background:#f6eef7;border-radius:10px;color:#92709e;font-size:11px}.drawing-title{padding-top:12px;border-top:1px dashed #e3d0dc;margin-top:22px}.cream-clean{display:flex;justify-content:space-between}.needs-cake{font-size:12px;line-height:2;text-align:center;color:#b095aa;border:1px dashed #deccd9;border-radius:15px;padding:30px 20px;margin:30px 0}.decor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.decor-option{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;background:#fffcf7;border:1px solid #e5d6df;border-radius:11px;padding:8px 2px;font-size:9px;touch-action:none;min-height:68px}.decor-option svg{width:35px;height:37px;overflow:visible}.decor-option[aria-pressed=true]{border-color:#b397c6;background:#f0e6f5}.decor-option.dragging{opacity:.4}.text-label{display:block;font-size:10px;color:#a68ba1;margin-bottom:8px}.text-input{width:100%;border:1px solid #d9c6d7;border-radius:10px;background:#fffef9;padding:13px 12px;font-size:16px}.text-input::placeholder{color:#c7b1c1;font-size:12px}#addText{margin-top:23px}.object-tools{background:#fffcf7;border:1px solid #dcc8de;border-radius:12px;margin-top:13px;padding:11px 13px}.object-title{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#997da5}.object-title>button{font-size:19px;background:transparent;width:27px;height:27px;color:#ac94ae}.object-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.object-controls label{font-size:9px;color:#ab91a8;display:flex;gap:6px;align-items:center;flex:1 1 130px}.object-controls input{width:100%;min-width:45px;accent-color:#af91c3;flex:1}.object-controls button{font-size:9px;background:#f5edf7;color:#9778a5;border-radius:6px;padding:8px}.object-controls #delete{color:#ba8b92;background:#f9eded}footer{display:flex;justify-content:space-between;color:#b8a2af;font-size:8px;letter-spacing:1px;border-top:1px solid #e6d8de;padding-top:19px;margin-top:33px}footer>span:last-child{font-size:9px;letter-spacing:.5px}.drag-ghost{position:fixed;width:53px;height:57px;pointer-events:none;z-index:100;transform:translate(-50%,-65%) rotate(-7deg);filter:drop-shadow(0 4px 4px #725a6b2b)}.drag-ghost svg{width:100%;height:100%}.modal{position:fixed;inset:0;z-index:200;background:#58435f66;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.export-card{max-width:470px;width:100%;padding:28px 23px 18px;border-radius:22px;background:var(--paper);position:relative;text-align:center;box-shadow:0 9px 40px #45304322;max-height:calc(100dvh - 40px);overflow:auto}.close-modal{position:absolute;right:12px;top:10px;width:32px;height:32px;border-radius:50%;background:transparent;font-size:24px;color:#b299af}.export-card h2{font-size:25px;margin:12px 0 8px}.export-card>p{font-size:11px;color:#a78b9f}.export-card img{width:100%;height:auto;border:1px solid #e4cfd9;border-radius:13px;margin:15px 0 0;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}.export-card .save-hint{font-size:9px;line-height:1.8;margin:13px 0 18px}.export-card .quiet{margin-top:14px}.item-highlight{fill:none;stroke:transparent;stroke-width:1.3;stroke-dasharray:5 4}.selected-item .item-highlight{stroke:#a283b9}.board-wrap svg text{user-select:none}.drop-ready{outline:2px dashed #b396c7;outline-offset:-9px}
@media(max-width:800px){.studio{padding:19px 17px 18px;max-width:560px}.topbar{margin-bottom:23px}.top-note{font-size:9px}.brand{font-size:8px;letter-spacing:1.1px}.brand>span{font-size:23px}.heading{margin-bottom:19px;display:block}.heading h1{font-size:28px;letter-spacing:-.8px;margin:7px 0}.eyebrow{font-size:8px}.heading p{font-size:10px;line-height:1.8}.restore{font-size:9px;padding:8px 0 0}.workspace{display:flex;flex-direction:column;gap:17px}.canvas-column{width:100%;position:sticky;top:-1px;z-index:5;background:var(--paper);padding-top:4px;padding-bottom:4px}.canvas-bar{padding:11px 12px;font-size:9px}.canvas-bar>span:last-child{font-size:8px}.canvas-actions{padding:5px 9px}.history button{font-size:20px;min-height:30px;padding:2px 7px}.history span{font-size:9px}.quiet{font-size:9px}.empty-invite>span{font-size:11px}.empty-invite{gap:10px}.empty-invite button{font-size:10px;padding:9px 13px}.tool-badge{font-size:8px;bottom:9px;padding:5px 10px}.status{font-size:9px;margin:7px 0 4px;min-height:23px}.finish-row>span{font-size:9px;max-width:none}.finish{font-size:11px;padding:10px 12px;box-shadow:0 2px 0 #d6c3e3}.finish>span{margin-left:9px}.materials{width:100%;scroll-margin-top:450px}.panel{min-height:0;padding:18px}.panel-title h2{font-size:16px}.panel-title p{margin-bottom:15px}.shape-options{gap:10px}.shape-option{padding:9px}.flavor-options{grid-template-columns:repeat(4,1fr);gap:6px}.flavor{flex-direction:column;gap:6px;padding:9px 4px;font-size:9px}.section-label{margin-top:17px}.decor-grid{grid-template-columns:repeat(4,1fr)}.decor-option{min-height:68px}footer{margin-top:24px;font-size:6px}footer>span:last-child{font-size:8px}.object-tools{margin-top:7px;padding:7px 10px}.object-title>button{height:22px}.object-controls label{flex-basis:100px}.object-controls button{padding:6px}.object-controls{gap:6px}.object-tools~.status{margin-top:4px}.canvas-card{border-radius:17px}.export-card{padding:27px 18px 15px}}
@media(max-width:380px){.studio{padding:15px 12px}.heading h1{font-size:25px}.top-note{display:none}.finish-row>span{font-size:8px}.finish{font-size:10px}.canvas-bar>span:last-child{font-size:7px}.empty-invite>span{font-size:10px}.materials{scroll-margin-top:400px}}
@media(max-height:700px) and (max-width:800px){.canvas-column{position:relative;top:auto}.materials{scroll-margin-top:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* A fixed mobile workbench keeps the cake visible while only the toolbox scrolls. */
@media(max-width:800px){
  html,body{height:100%;overflow:hidden}
  .studio{height:100svh;height:100dvh;display:flex;flex-direction:column;padding:13px 14px max(10px,env(safe-area-inset-bottom));overflow:hidden}
  .topbar{margin-bottom:8px;flex-shrink:0}.top-note{display:none}.brand{font-size:8px}.brand>span{font-size:20px}
  .heading{margin-bottom:12px;flex-shrink:0;position:relative}.heading .eyebrow,.heading p{display:none}.heading h1{font-size:24px;margin:0;line-height:1.3}.restore{position:absolute;right:0;bottom:0;font-size:8px;background:var(--paper);padding:5px 0 5px 8px;max-width:90px;text-align:right}
  .workspace{flex:1;min-height:0;gap:11px;overflow:hidden}.canvas-column{position:relative;top:auto;flex:0 0 auto;padding:0;min-height:0}.canvas-card{box-shadow:0 3px 0 #eee1df}
  .board-wrap{aspect-ratio:auto;height:clamp(170px,30svh,275px)}.canvas-bar{padding:9px 11px}.canvas-actions{padding:3px 9px}.history button{min-height:28px}.tool-badge{bottom:7px;font-size:8px;padding:4px 9px}
  .status{min-height:19px;line-height:1.5;margin:6px 0 3px;font-size:8px}.finish{padding:8px 10px;font-size:10px}.finish-row>span{font-size:8px}
  .materials{flex:1;min-height:0;overflow:hidden;scroll-margin-top:0}.tabs{position:sticky;top:0;z-index:3;padding:3px 8px 0;background:#f9f2ed}.tabs button{padding:7px 0 10px;gap:3px}.panel{padding:15px 16px}.panel-title h2{font-size:14px}.panel-title p{font-size:9px;margin-bottom:12px}.section-label{margin-top:15px}.shape-option{padding:8px}.shape-option svg{height:22px}.flavor{padding:7px 4px}.panel-footnote{font-size:8px}
  .object-tools{margin-top:6px;padding:5px 9px}.object-title{font-size:9px}.object-title>button{height:20px}.object-controls{gap:4px}.object-controls label{flex-basis:calc(50% - 5px);font-size:8px}.object-controls button{font-size:8px;padding:5px 8px}.object-tools~.status{margin-top:4px}
  .studio>footer{display:none}
}
@media(max-height:720px) and (max-width:800px){.heading h1{font-size:21px}.heading{margin-bottom:8px}.topbar{margin-bottom:5px}.board-wrap{height:clamp(145px,27svh,200px)}.finish-row>span{display:none}.finish{width:100%}.status{max-height:24px;overflow:hidden}.object-controls label{flex-basis:calc(50% - 5px)}}
/* Real three-dimensional workbench. SVG stays available for fallback and keyboard editing. */
.board-wrap.is-3d{background:#f5e8de}
.cake-webgl{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
.board-wrap.is-3d>#board{position:absolute;inset:0;opacity:0;pointer-events:none}
.empty-invite,.tool-badge{z-index:3}.board-wrap.is-3d .empty-invite{top:22%}
.view-controls{position:absolute;right:12px;top:12px;z-index:4;display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #d4c0cfb0;background:#fff9edda;border-radius:20px;backdrop-filter:blur(8px)}
.view-controls>span{font-size:9px;letter-spacing:1px;color:#b092aa;padding:0 7px}.view-controls button{font-size:10px;background:transparent;border-radius:16px;padding:6px 9px;color:#91738f;min-height:28px}
.view-controls button[aria-pressed=true]{background:#d5c0e3;color:#725480}.view-controls button:active{background:#e9daed}
.orbit-mode .cake-webgl{cursor:grab}.orbit-mode .cake-webgl:active{cursor:grabbing}
@media(max-width:800px){.view-controls{right:8px;top:8px;padding:2px}.view-controls button{font-size:9px;padding:4px 7px;min-height:26px}.view-controls>span{font-size:8px;padding:0 5px}.board-wrap.is-3d .empty-invite{top:23%;gap:8px}.empty-invite>span{background:#fff8ee7d;padding:3px 8px;border-radius:10px}}

.character-grid{grid-template-columns:repeat(3,1fr);gap:10px}.character-grid .decor-option{min-height:94px;background:#fffaf4}.character-grid .decor-option svg{width:49px;height:51px}.character-grid .decor-option[aria-pressed=true]{background:#f0e6f5}.decor-categories{margin:0 0 15px}.character-grid .decor-option span{font-size:10px}

.decor-search{width:100%;border:1px solid #e3d4df;border-radius:10px;padding:11px 12px;font-size:12px;background:#fffdf9}.decor-search::placeholder{color:#b59dab}.decor-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:10px 0;font-size:9px;color:#a28a9c}.decor-library{padding:2px 0 5px}.decor-library .decor-grid+.decor-grid{margin-top:10px}.decor-option{touch-action:pan-y}.decor-library #decorEmpty{font-size:12px;text-align:center;color:#a78f9f;padding:28px 5px}.object-controls .item-color{flex:0 0 auto}.item-color input{width:25px;min-width:25px;height:26px;border:0;background:transparent;padding:1px}.decor-categories{margin-bottom:10px}@media(max-width:800px){.character-grid .decor-option{min-height:83px}.character-grid .decor-option svg{width:42px;height:44px}}

/* Keep camera tools outside the cake, so tall character heads stay visible. */
.canvas-actions .view-controls{position:static;flex-shrink:0;border:0;background:transparent;backdrop-filter:none;padding:0;gap:1px}
@media(max-width:800px){.canvas-actions{gap:2px;padding-left:5px;padding-right:5px}.canvas-actions .view-controls>span{display:none}.canvas-actions .view-controls button{padding:4px 5px;font-size:9px}.canvas-actions .history button{padding:3px 5px}.canvas-actions .quiet{padding:5px}}

/* Touch workbench: one material scroller, with the canvas and tabs staying put. */
html,body{overscroll-behavior:none}
.studio{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.studio input:not([type=range]):not([type=color]),.studio textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}
.brand{letter-spacing:.5px;font-size:17px}.brand small{display:block;font-size:7px;letter-spacing:1.1px;margin-top:3px;color:#a28b9c}
.header-actions{display:flex;gap:12px;align-items:center}.topbar .finish{min-height:44px;padding:10px 17px;font-size:12px;width:auto}.finish>span{margin-left:8px}
.header-actions .restore{position:static;max-width:none;padding:8px;font-size:10px;background:none}
.canvas-bar{padding:5px 8px}.canvas-bar .view-controls{position:static;width:100%;border:0;background:transparent;backdrop-filter:none;border-radius:0;padding:0;gap:5px}
.canvas-bar .view-controls button{min-height:44px;min-width:44px;padding:8px 12px;font-size:12px;border-radius:12px}
.canvas-bar #rotateView{margin-right:auto;min-width:82px;background:#eee3f4;border:1px solid #d8c2e2;color:#80618e;font-weight:650}
.canvas-bar #rotateView[aria-pressed=true]{background:#a58ac0;color:#fff;border-color:#9274ae}
.work-count{font-size:9px;color:#b39aaa;margin-left:auto;margin-right:12px}.canvas-actions{padding:1px 9px;min-height:37px}.history button{min-height:36px}
.canvas-column{position:relative}.status{position:absolute;z-index:8;left:12px;right:12px;bottom:44px;margin:0;min-height:0;padding:8px 10px;border-radius:12px;background:#fffaf4f5;box-shadow:0 3px 16px #57435f14;pointer-events:none;font-size:11px;line-height:1.5;opacity:0;transition:opacity .15s}.status.visible{opacity:1}
.tool-badge{font-size:10px;bottom:8px;padding:6px 11px}.cancel-placement{position:absolute;top:8px;right:8px;z-index:4;min-height:36px;padding:6px 11px;border-radius:20px;background:#fffaf5ed;border:1px solid #d9c5df;font-size:11px;color:#8d729b}
.materials{display:flex;flex-direction:column;overflow:hidden;max-height:700px}
.tabs{position:static;flex-shrink:0;padding:0 8px}.tabs button{min-height:44px;padding:10px 0;font-size:13px;flex-direction:row;justify-content:center}.tabs button:after{height:3px}
.panel-scroller{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:none;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#d8c4de transparent}
.panel{min-height:0;padding:14px 16px 18px}.panel-title h2{font-size:15px}.panel-title p{margin-bottom:12px}.panel-title+.section-label{margin-top:0}
.decor-library{max-height:none;overflow:visible;padding:2px 0 5px;overscroll-behavior:auto}
.decor-library .decor-grid+.decor-grid{margin-top:8px}.decor-search{font-size:16px;min-height:42px;padding:8px 10px}.decor-search::placeholder{font-size:11px}
.decor-meta{margin:8px 0;font-size:10px}.decor-categories{margin:0 0 9px}.segmented button{min-height:42px;font-size:11px}
.object-tools{margin:10px 12px 0;padding:8px 10px;background:#f7eff9}.object-title{font-size:12px}.object-title>button{width:36px;height:36px}.object-controls{gap:6px}.object-controls label{font-size:11px;flex-basis:calc(50% - 6px)}.object-controls input[type=range]{height:30px}.object-controls button{min-height:36px;padding:7px 10px;font-size:11px}
.piping-ranges{display:grid;grid-template-columns:1fr 1fr;gap:16px}.piping-ranges .range-row{margin:6px 0;font-size:12px}.piping-ranges input{min-height:36px}
#move[aria-pressed=true]{color:#a28b9d;background:transparent}.board-wrap{touch-action:none}
@media(min-width:801px){.materials{height:680px}.panel-title{margin-bottom:16px}}
@media(max-width:800px){
  html,body{width:100%;height:100%;overflow:hidden}body{position:fixed;inset:0}
  .studio{position:relative;max-width:560px;height:100svh;height:100dvh;padding:8px 12px max(8px,env(safe-area-inset-bottom));gap:8px}
  .topbar{margin:0;min-height:44px}.brand{font-size:15px;gap:7px}.brand>span{font-size:26px}.brand small{font-size:6px;letter-spacing:.6px}.header-actions{gap:3px}.topbar .finish{padding:9px 13px;min-height:42px;font-size:12px;border-radius:12px}.header-actions .restore{font-size:10px;padding:6px}.heading{display:none}
  .workspace{gap:9px;flex:1;min-height:0;overflow:hidden}.canvas-column{flex-shrink:0;padding:0;position:relative;top:auto}.canvas-card{border-radius:18px}
  .canvas-bar{padding:3px 6px}.canvas-bar .view-controls button{font-size:12px;min-height:44px;padding:8px 12px}.canvas-bar #rotateView{min-width:82px}
  .board-wrap{height:clamp(175px,29svh,260px)}.canvas-actions{padding:0 7px;min-height:34px}.canvas-actions .history button{min-height:34px;padding:2px 7px}.history span{font-size:10px}.canvas-actions .quiet{font-size:10px;min-height:34px;padding:5px 7px}.work-count{font-size:9px;margin-right:3px}
  .tool-badge{font-size:10px;bottom:7px}.status{bottom:39px;font-size:11px}.materials{flex:1;min-height:0;max-height:none;overflow:hidden;scroll-margin-top:0;border-radius:16px}.tabs{position:static;padding:0 7px}.tabs button{padding:9px 0;min-height:43px;font-size:13px;gap:0}.panel-scroller{min-height:0}
  .panel{padding:12px 13px 18px}.panel-title{display:none}.section-label{font-size:12px;margin:14px 0 9px}.section-label:first-child,.panel-title+.section-label{margin-top:0}.section-label small{font-size:10px}
  .shape-option{padding:7px;font-size:11px;min-height:58px;gap:3px}.shape-option svg{height:24px}.flavor{font-size:11px;flex-direction:row;justify-content:center;gap:5px;padding:9px 3px;min-height:42px}.flavor i{width:13px;height:17px}
  .range-row{font-size:11px;margin:9px 0}.range-row input{min-height:30px}.layer-chip{font-size:11px;min-height:36px;padding:7px 12px}.layer-list,.cream-layer{margin-bottom:7px}.cream-layer:has(:only-child){display:none}.swatches{gap:12px;margin-bottom:14px;padding:5px 0}.swatch{width:28px;height:28px}.custom-color{font-size:11px}.custom-color input{width:30px;height:30px}.drawing-title{margin-top:16px;padding-top:13px}
  .primary,.soft-button{font-size:12px;min-height:42px;padding:10px}.panel-footnote{font-size:10px;margin-top:10px}.needs-cake{font-size:12px;margin:12px 0}.cream-clean .quiet{font-size:10px;min-height:36px}.piping-ranges{gap:14px}
  .decor-grid,.character-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.decor-option,.character-grid .decor-option{min-height:77px;padding:7px 2px;gap:4px}.decor-option svg,.character-grid .decor-option svg{width:40px;height:42px}.decor-option span,.character-grid .decor-option span{font-size:10px;line-height:1.3;white-space:nowrap}.decor-library{max-height:none;overflow:visible}
  .object-controls label{font-size:11px}.object-title{font-size:12px}.object-title>button{height:36px}.object-controls button{font-size:11px;padding:6px 9px;min-height:36px}.object-tools{margin:9px 12px 0;padding:5px 9px}.object-controls{gap:6px}
  #addLayer{margin-top:13px}.text-label{font-size:12px}.text-input{padding:11px}.text-input::placeholder{font-size:13px}
  .export-card{overscroll-behavior:none}.modal{overflow:hidden}.close-modal{width:40px;height:40px}
}
@media(max-height:600px) and (max-width:800px){.board-wrap{height:145px}.brand small{display:none}.studio{gap:5px;padding-top:5px}.workspace{gap:6px}}

/* Eight cake silhouettes remain in two compact rows. */
.shape-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.shape-option{min-width:0}.shape-option span{white-space:nowrap}

/* Camera zoom shares the existing toolbar; no extra row on a phone. */
.canvas-bar .zoom-controls{display:flex;flex-shrink:0;gap:0;background:#f1e9f5;border:1px solid #e0d1e6;border-radius:12px}
.canvas-bar .zoom-controls button{font-size:22px;line-height:1;padding:6px;min-width:44px;min-height:42px;background:transparent}
.canvas-bar .zoom-controls button+button{border-left:1px solid #e0d1e6;border-top-left-radius:0;border-bottom-left-radius:0}
@media(max-width:360px){.canvas-bar .view-controls{gap:3px}.canvas-bar .view-controls>button{padding-left:8px;padding-right:8px}.canvas-bar #rotateView{min-width:76px}}
