/* Studio layout is scoped independently from the storefront. */
.svg-editor{background:#f5f3ee;color:#263a30;--studio-line:#e3e5dd;--studio-green:#304c3b;--studio-muted:#6d766d}
.svg-editor .header{position:relative;height:70px;max-width:none;padding:0 32px;background:#fff;border-bottom:1px solid var(--studio-line);gap:24px}
.svg-editor .header .logo{font-size:27px}
.studio-header-label{font-size:10px;letter-spacing:2px;color:var(--studio-muted);border-left:1px solid var(--studio-line);padding-left:24px;margin-right:auto}
.svg-editor .header nav{display:flex;position:static;flex-direction:row;gap:24px;padding:0;border:0;background:transparent;flex-wrap:wrap;font-size:12px}
.svg-editor main.studio{display:block;background:transparent;border:0;max-width:1920px;padding:24px 32px 40px;margin:auto}
.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
#back-simple{font-size:12px;color:var(--studio-muted);display:inline-block;margin:0 0 8px}
.studio-heading h1{font-family:Georgia,serif;font-size:34px;line-height:1.15;font-weight:400;letter-spacing:-1px;margin:0 0 7px}
.studio-heading p{font-size:13px;color:var(--studio-muted);margin:0}
.studio-heading-actions{display:flex;gap:10px;flex-wrap:wrap}
.studio .button{border-radius:8px;padding:13px 18px;min-height:44px;justify-content:center;font-size:12px;line-height:1.5;letter-spacing:0}
.studio .button.dark{background:var(--studio-green);color:#fff}
.studio .studio-secondary{border:1px solid #cbd1c6;background:#fff;color:var(--studio-green)}
.studio-layout{display:grid;grid-template-columns:300px minmax(0,1fr) 270px;gap:18px;align-items:stretch;height:calc(100dvh - 239px);min-height:610px;max-height:1100px}
.studio-panel{background:#fff;border:1px solid var(--studio-line);border-radius:14px;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#c9cfc4 transparent}
.inspiration-panel{padding:0}
.product-picker{padding:22px;border-bottom:1px solid var(--studio-line)}
.panel-kicker,.studio .idea-assistant .eyebrow{font-size:10px;font-weight:600;letter-spacing:1.3px;color:#7a8374;margin:0 0 10px;line-height:1.5}
.studio h2{font-size:17px;font-weight:600;letter-spacing:-.3px;margin:0 0 16px;line-height:1.3}
.studio label{display:block;font-size:12px;font-weight:500;margin:14px 0;color:#465347}
.studio input:not([type=checkbox]),.studio select,.studio textarea{width:100%;box-sizing:border-box;padding:10px 11px;margin-top:6px;border:1px solid #d9ded3;border-radius:7px;background:#fcfcf9;color:#263a30;font:inherit;font-size:13px;min-width:0}
.studio textarea{resize:vertical;line-height:1.5}
.studio select{min-height:44px;padding-right:24px;text-overflow:ellipsis}
.studio input:focus,.studio select:focus,.studio textarea:focus{outline:2px solid #879e7c;outline-offset:2px}
.studio input[type=color]{height:38px;padding:3px}
.studio input[type=checkbox]{width:auto}
.studio button{cursor:pointer}
.studio button:disabled{opacity:.4;cursor:not-allowed}
.studio [hidden]{display:none!important}
.properties-panel legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#dimensions{font-size:11px;color:var(--studio-muted);line-height:1.6;margin:9px 0}
.product-info{font-size:11px;color:var(--studio-muted);line-height:1.6}
.product-info p{margin-top:8px}
.studio summary{cursor:pointer;min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;font-size:12px}
.studio summary::-webkit-details-marker{display:none}
.studio summary:after{content:'＋';font-size:15px;font-weight:400}
.studio details[open]>summary:after{content:'−'}
.idea-assistant{padding:22px;background:linear-gradient(155deg,#faf9f4,#f1f3eb);scroll-margin-top:24px}
.studio .idea-assistant h2{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:0 0 10px;letter-spacing:-.5px}
.idea-assistant>div>p:not(.eyebrow){font-size:12px;line-height:1.7;color:#66725e;margin-bottom:18px}
.idea-occasions{display:flex;flex-wrap:wrap;gap:6px}
.idea-occasions button{border:1px solid #d7ddcd;border-radius:20px;padding:7px 11px;background:#fff;color:#526148;font:inherit;font-size:11px;min-height:36px}
.idea-occasions button:hover,.idea-occasions button[aria-pressed=true]{background:#e5ebdc;border-color:#93a584;color:#304c3b}
#ideas-generate{width:100%;margin:0}
.studio-hint{font-size:11px;line-height:1.6;color:var(--studio-muted);margin:8px 0}
#ideas-status{margin:12px 0 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#ideas-status[data-state=error]{border-left:2px solid #b07942;padding-left:10px;color:#885229}
.idea-results{display:grid;grid-template-columns:1fr;gap:12px}
.idea-results:not(:empty){margin-top:18px}
.idea-card{background:#fff;border:1px solid #dce1d4;border-radius:10px;padding:12px;min-width:0;display:flex;flex-direction:column;gap:10px}
.idea-card h3{font-size:13px;letter-spacing:0;margin:0}
.idea-card svg{display:block;width:100%;height:110px;background:#eee6d5;border-radius:7px}
.idea-card p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.5;font-size:12px;margin:0}
.idea-card .button{padding:9px;font-size:11px;min-height:40px}
.canvas-panel{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--studio-line);border-radius:14px;overflow:hidden}
.canvas-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px 16px}
.canvas-heading h2{font-family:Georgia,serif;font-size:23px;font-weight:400;margin:6px 0 0}
.preview-badge{font-size:10px;color:#5d7253;white-space:nowrap;display:flex;gap:6px;align-items:center;background:#f0f4eb;border-radius:20px;padding:7px 10px}
.preview-badge:before{content:'';width:5px;height:5px;border-radius:50%;background:#718b5c}
.canvas-toolbar{display:flex;justify-content:space-between;gap:8px;padding:10px 16px;border-block:1px solid var(--studio-line)}
.drawing-tools,.history-tools{display:flex;gap:4px;flex-wrap:wrap}
.canvas-toolbar button{border:0;background:transparent;border-radius:6px;color:#4c5e48;padding:9px;min-height:38px;font-size:12px}
.canvas-toolbar button:hover,.canvas-toolbar button[aria-pressed=true]{background:#eaf0e3}
.history-tools{border-left:1px solid var(--studio-line);padding-left:6px;flex-wrap:nowrap}
.history-tools button{font-size:20px;min-width:36px;line-height:1}
#canvas-scroll{flex:1;min-height:250px;overflow:auto;display:grid;align-items:center;padding:clamp(20px,3vw,55px);background-color:#eef0e9;background-image:radial-gradient(#cfd5c7 .7px,transparent .7px);background-size:18px 18px}
#canvas{display:block;width:100%;min-width:150px;max-height:none;background:#f7f0e2;box-shadow:0 15px 35px -14px #37453050,0 0 0 1px #c4b799;border-radius:8px;touch-action:none;overflow:hidden}
#canvas [data-index]{cursor:move}
#canvas.drawing{cursor:crosshair}
/* 100% fits the whole product into both available dimensions. */
#canvas-scroll{display:flex;flex-direction:column;contain:size}
#canvas{flex:none;min-width:0;max-width:none;margin:auto}
.canvas-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;font-size:10px;color:var(--studio-muted);border-top:1px solid var(--studio-line)}
.studio .canvas-footer label{display:flex;align-items:center;gap:8px;margin:0;font-size:10px;white-space:nowrap}
.studio .canvas-footer input{width:75px;margin:0;padding:0;accent-color:#607c51;border:0;min-height:24px}
.canvas-footer output{min-width:36px;font-variant-numeric:tabular-nums}
#status{font-size:11px;line-height:1.5;color:var(--studio-muted);padding:0 18px 14px;margin:0}
.studio-warning{color:#7a4a12;font-size:12px;line-height:1.5;background:#fff0d8;border-radius:6px;padding:10px;margin:10px 18px}
.studio-warning:empty{display:none}
.properties-panel{padding:22px}
.studio fieldset{border:0;padding:0;min-width:0}
.studio legend{font-size:11px;color:var(--studio-muted);padding:0;margin-bottom:2px}
#no-selection{font-size:12px;line-height:1.6;color:var(--studio-muted)}
.tool-grid,.property-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.property-grid label{margin:6px 0}
.tool-grid button,.layers button{border:1px solid #dce1d5;background:#f8faf5;color:#3e5438;border-radius:6px;padding:10px 6px;min-height:40px;font:inherit;font-size:11px}
.tool-grid button:hover,.layers button:hover{border-color:#9cac8f}
.layers button[aria-pressed=true]{background:#e8eedd;color:#304c3b;border-color:#99ad83}
.object-actions{margin:18px 0}
#delete{grid-column:1/-1;color:#97604e;background:transparent;border-color:#e9ded6}
.advanced-options,.import-options{border-block:1px solid var(--studio-line);padding:6px 0;margin-top:18px}
.import-options{border-top:0;margin:0}
.studio .file-label input{padding:8px;font-size:10px}
.layers-section{margin-top:22px}
.layers-section h2{font-size:14px;margin-bottom:6px}
.layers{display:grid;gap:6px;max-height:230px;overflow:auto;margin-top:12px}
.layers button{text-align:left;overflow-wrap:anywhere}
.request-panel{display:grid;grid-template-columns:1fr 1fr;gap:60px;background:#fff;border:1px solid var(--studio-line);border-radius:14px;padding:36px;margin-top:28px;scroll-margin-top:24px}
.svg-editor .request-panel{background:#fff}
.request-panel h2{font-family:Georgia,serif;font-size:30px;font-weight:400}
.request-panel p{font-size:13px;line-height:1.7;max-width:50ch}
#request-summary{padding:16px;background:#f2f5eb;border-radius:8px;margin-top:24px}
.svg-editor footer{padding:20px 32px;max-width:none}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.admin-list{display:grid;gap:16px}.admin-item{padding:24px;background:white;border:1px solid #ddd;border-radius:12px}.admin-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.admin-item select{max-width:240px}
@media(min-width:1600px){.studio-layout{grid-template-columns:320px minmax(0,1fr) 290px;gap:22px}}
@media(max-width:1200px){.svg-editor main.studio{padding:22px 18px}.studio-layout{grid-template-columns:260px minmax(0,1fr) 230px;gap:12px}.product-picker,.idea-assistant,.properties-panel{padding:16px}.canvas-toolbar{flex-wrap:wrap;padding:8px}.canvas-heading{padding:16px}.preview-badge{display:none}.studio-heading h1{font-size:30px}}
@media(max-width:1000px){.studio-layout{grid-template-columns:280px minmax(0,1fr);height:auto;max-height:none;min-height:0}.inspiration-panel{grid-row:1/3;max-height:1100px}.canvas-panel{min-height:560px}.properties-panel{grid-column:2}.properties-panel #text-options{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.properties-panel #text-options label:first-child{grid-column:1/-1}.studio-heading-actions{max-width:180px}.studio-heading-actions .button{width:100%}.request-panel{gap:28px;padding:24px}}
@media(max-width:650px){.svg-editor .header{height:auto;min-height:64px;padding:15px 16px;gap:12px;flex-wrap:wrap}.studio-header-label{display:none}.svg-editor .header nav{gap:14px;font-size:11px}.svg-editor main.studio{padding:20px 12px}.studio-heading{align-items:flex-start;flex-direction:column;gap:16px}.studio-heading h1{font-size:30px}.studio-heading p{font-size:12px}.studio-heading-actions{max-width:none;width:100%;flex-wrap:nowrap}.studio-heading-actions .button{width:auto;flex:1;padding:11px 8px}.studio-layout{grid-template-columns:1fr;gap:16px}.inspiration-panel{grid-row:auto;max-height:none}.properties-panel{grid-column:auto}.canvas-panel{min-height:480px}.canvas-heading h2{font-size:22px}.canvas-toolbar{flex-wrap:nowrap}.canvas-toolbar button{padding:8px 6px;font-size:11px}.history-tools{gap:0;padding-left:2px}.history-tools button{min-width:28px;font-size:18px}#canvas-scroll{min-height:280px;padding:25px}.canvas-footer{padding:12px;flex-wrap:wrap}.idea-assistant{padding:18px}.product-picker{padding:18px}.request-panel{grid-template-columns:1fr;gap:20px;padding:20px}.request-panel h2{font-size:27px}.idea-results{grid-template-columns:1fr}.idea-card svg{height:140px}.svg-editor footer{padding:24px 16px}}
@media(max-width:650px){.idea-results{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:88%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px}.idea-card{scroll-snap-align:start}}
