.template-studio{color:#18231f;background:#f7f4ed;min-height:100vh}.template-layout{grid-template-columns:210px minmax(0,1fr) 320px;align-items:start;max-width:1600px;margin:auto;display:grid}.template-products{border-right:1px solid #ddd8ce;max-height:calc(100vh - 90px);padding:26px 16px;position:sticky;top:0;overflow:auto}.template-products h2{text-transform:uppercase;letter-spacing:.08em;margin:22px 0 8px;font-size:12px}.template-products button{text-align:left;border:1px solid #0000;border-radius:9px;align-items:center;gap:10px;width:100%;margin-bottom:5px;padding:8px;font-size:12px;display:flex}.template-products button.is-active{background:#e6eee4;border-color:#63846a}.template-products img{object-fit:contain;width:40px;height:45px}.template-products small{color:#647267;margin-top:3px;display:block}.template-main{min-width:0;padding:30px}.template-main>h1{margin:10px 0;font-size:clamp(25px,2.5vw,40px);line-height:1.1}.template-description{color:#657067;max-width:650px;font-size:14px;line-height:1.6}.template-specs{flex-wrap:wrap;gap:8px;margin:16px 0;display:flex}.template-specs span{background:#eee9df;border-radius:30px;padding:6px 10px;font-size:11px}.template-gallery{background:#efebe1;border-radius:18px;justify-content:center;align-items:center;gap:20px;min-height:250px;padding:15px;display:flex}.template-hero{object-fit:contain;max-width:75%;height:240px}.template-gallery>div{flex-direction:column;gap:7px;display:flex}.template-gallery button{background:#fff;border:1px solid #d4d2c6;border-radius:7px;width:52px;height:52px;padding:4px}.template-gallery button[aria-pressed=true]{border:2px solid #355742}.template-gallery button img{object-fit:contain;width:100%;height:100%}.template-preview-header{justify-content:space-between;align-items:center;gap:10px;margin:28px 0 15px;display:flex}.template-preview-header h2{font-size:18px}.template-preview-header button{padding:6px;font-size:12px}.template-preview{background:repeating-conic-gradient(#e5e4df 0% 25%,#f6f5f1 0% 50%) 50%/16px 16px;width:100%;max-width:640px;max-height:520px;margin:0 auto;position:relative;overflow:hidden;box-shadow:0 8px 26px #0001}.template-preview>img{object-fit:fill;width:100%;height:100%;display:block}.template-slot-outlines{position:absolute;inset:0}.template-slot-outlines>[data-print-slot]{background:0 0;border:1px dashed #71817699;min-width:0;padding:0;position:absolute}.template-slot-outlines>[data-print-slot][data-selected=true]{outline-offset:-2px;outline:2px solid #e75e43}.template-slot-outlines span{color:#fff;background:#203e30;border-radius:50%;place-items:center;width:18px;height:18px;font-size:10px;display:grid;position:absolute;top:3px;left:3px}.template-help{color:#657067;margin:10px 0;font-size:11px;line-height:1.6}.template-reference{font-size:12px;text-decoration:underline}.template-controls{background:#fffdf7;border-left:1px solid #ddd8ce;min-width:0;padding:28px 20px}.template-controls h2{margin:15px 0 10px;font-size:17px}.template-tabs{flex-wrap:wrap;gap:5px;margin:10px 0;display:flex}.template-tabs button{border:1px solid #dcded6;border-radius:5px;padding:7px 9px;font-size:11px}.template-tabs button[aria-pressed=true]{color:#fff;background:#203e30}.template-controls>label{margin:15px 0;font-size:12px;display:block}.template-controls input:not([type=range]):not([type=color]):not([type=checkbox]):not([type=file]),.template-controls textarea{background:#fff;border:1px solid #d7d9cf;border-radius:5px;width:100%;margin-top:5px;padding:10px;font-size:13px;display:block}.template-controls input[type=range]{accent-color:#355742;width:100%;margin:10px 0;display:block}.template-controls b{float:right}.template-controls small{color:#667269;margin-top:6px;line-height:1.5;display:block}.template-crop{touch-action:none;cursor:move;outline:1px solid #ddd;place-items:center;width:240px;max-width:100%;max-height:260px;margin:0 auto;display:grid;position:relative;overflow:hidden}.template-crop>img{object-fit:cover;pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;inset:0}.template-crop>span{color:#777;font-size:12px}.template-upload{cursor:pointer;color:#fff;text-align:center;background:#203e30;border-radius:6px;padding:12px;position:relative;overflow:hidden}.template-upload input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.template-library-button{border:1px solid #b5c0b3;border-radius:6px;width:100%;padding:9px;font-size:12px}.template-colours{gap:30px;font-size:12px;display:flex}.template-colours input{margin-top:6px;display:block}.template-price{border-top:1px solid #ddd;justify-content:space-between;padding:20px 0;font-size:14px;display:flex}.template-add{color:#fff;background:#df5d42;border-radius:7px;width:100%;padding:15px;font-weight:700}.template-error{color:#8c2525;background:#ffeded;padding:12px;font-size:13px;line-height:1.5}.template-message{color:#224d30;background:#e8f2e7;padding:12px;font-size:13px;line-height:1.5}.template-studio button:disabled{opacity:.4;cursor:not-allowed}.template-mode{line-height:1.5}.template-studio .photo-library-dialog{max-height:80vh;padding:35px;overflow:auto}.template-studio .photo-library-grid img{object-fit:contain;max-width:100%;height:160px}@media (max-width:1100px){.template-layout{grid-template-columns:165px minmax(0,1fr) 280px}.template-main{padding:22px 16px}.template-products{padding:20px 10px}.template-controls{padding:22px 15px}}@media (max-width:850px){.template-layout{grid-template-columns:minmax(0,1fr) 280px}.template-products{border-bottom:1px solid #ddd;border-right:0;grid-column:1/-1;gap:16px;max-height:150px;display:flex;position:static;overflow:auto}.template-products>.kicker{display:none}.template-products section{flex-shrink:0;align-items:center;gap:5px;display:flex}.template-products h2{display:none}.template-products button{width:140px}.template-main{padding:22px 15px}.template-hero{height:200px}.template-gallery{gap:8px;min-height:210px}.template-gallery button{width:38px;height:38px}}@media (max-width:600px){.template-layout{flex-direction:column;display:flex}.template-products{width:100%;max-height:115px;padding:10px}.template-products button{width:125px}.template-main,.template-controls{width:100%;padding:22px}.template-main>h1{font-size:28px}.template-controls{border-top:1px solid #ddd;border-left:0}.template-controls .template-crop{width:260px;max-height:350px}.template-gallery{min-height:240px}.template-hero{height:220px}.template-preview{max-height:none}.template-studio .photo-library-dialog{padding:25px 15px}.template-studio .photo-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.template-controls>button:not(.template-add):not(.template-library-button){border:1px solid #cbd2c7;border-radius:5px;padding:7px 10px;font-size:12px}.template-controls .template-crop,.template-preview{max-height:none}.template-studio .template-main{background:var(--sand,#eee9df);min-width:0;padding:0;overflow-y:auto}.template-studio .template-main>h1{margin:0;font-size:1.12rem;line-height:1.25}.template-workspace{padding:24px 28px 32px}.template-description{max-width:none;margin:0 0 16px}.template-controls-panel{min-width:0}.template-controls-panel .template-controls{background:0 0;border:0;padding:20px}.template-controls h2{margin:20px 0 14px}.template-tabs{margin:0 0 20px}@media (max-width:1000px){.template-studio .creator-products,.template-studio .template-main,.template-studio .template-controls-panel{width:100%}.template-workspace{padding:20px}}.template-main .canvas-heading>.canvas-product-title{display:block}.template-slot-outlines>[data-print-slot]{touch-action:none;cursor:grab}.template-slot-outlines>[data-print-slot]:active{cursor:grabbing}.direct-transform-handle{z-index:12;color:#fff;touch-action:none;cursor:grab;background:#193e30;border:2px solid #fff;border-radius:50%;place-items:center;width:32px;height:32px;padding:0;font:700 22px/1 Arial;display:grid;position:absolute;box-shadow:0 1px 5px #0005}.direct-rotation{top:4px;right:4px}.direct-scale{bottom:4px;right:4px}.direct-transform-handle:focus-visible{outline:3px solid #f4c43c}.studio-search{gap:8px;padding:16px 18px 4px;font-size:.8rem;font-weight:700;display:grid}.studio-search input{border:1px solid var(--line);background:var(--white);width:100%;min-width:0;font:inherit;border-radius:8px;padding:12px}.studio-mobile-nav{display:none}.studio-edit-status{flex-wrap:wrap;justify-content:space-between;gap:8px 20px;margin:12px 0;font-size:.85rem;display:flex}.studio-quick-actions{flex-wrap:wrap;gap:8px;margin-bottom:18px;display:flex}.studio-quick-actions button{color:#1d4031;background:#fffdf7;border:1px solid #1d4031;border-radius:8px;min-height:44px;padding:10px 16px;font-weight:700}.studio-quick-actions button:first-child{color:#fff;background:#1d4031}.studio-empty-slot{color:#495d52;pointer-events:none;text-align:center;place-items:center;font:12px/1.3 Arial;display:grid;position:absolute;inset:24px 4px 4px}.studio-reference-details{border-top:1px solid var(--line);margin:24px 0 16px;padding-top:14px}.studio-reference-details summary{cursor:pointer;padding:10px 0;font-weight:700}.template-controls input:not([type=range]):not([type=color]):not([type=file]):not([type=checkbox]),.template-controls textarea{min-height:44px;font-size:16px}.template-tabs button{min-height:44px;padding:10px 12px}.template-preview-header button{min-height:44px;padding:8px 12px}.studio-purchase{z-index:15;border-top:1px solid var(--line);background:#fffdf7;padding:12px 0 20px;position:sticky;bottom:-20px}.studio-purchase .template-price{border-top:0;padding:8px 0 14px}.creator-page :is(button,a,input,select,textarea,summary):focus-visible{outline-offset:3px;outline:3px solid #d89012}@media (max-width:940px){.studio-mobile-nav{z-index:30;border-bottom:1px solid var(--line);background:#f5efe3;gap:6px;padding:8px;display:flex;position:sticky;top:0}.studio-mobile-nav a{text-align:center;border:1px solid var(--line);background:#fffdf7;border-radius:8px;flex:1;padding:12px 4px;font-size:12px;font-weight:700;text-decoration:none}#studio-products,#studio-canvas,#studio-options{scroll-margin-top:70px}.creator-page .creator-products{flex-shrink:0;width:100%;max-height:290px}.creator-page .creator-controls{width:100%}.studio-purchase{padding-bottom:max(16px, env(safe-area-inset-bottom));bottom:0}.template-studio .template-main{overflow:visible}}
