@font-face{font-family:Studio-serif;src:url('/assets/papier/fonts/DejaVuSerif.ttf')}
@font-face{font-family:Studio-sans;src:url('/assets/papier/fonts/DejaVuSans.ttf')}
@font-face{font-family:Studio-mono;src:url('/assets/papier/fonts/DejaVuSansMono.ttf')}
.studio-page{background:#f9f8f3;color:#24251f;font-family:Arial,sans-serif;padding-bottom:80px}
.studio-header{display:flex;align-items:center;gap:28px;padding:22px 3%;border-bottom:1px solid #dddcd1;background:#fffefa}
.studio-header .wordmark{margin-right:12px}.studio-header>a:last-child{margin-left:auto}.studio-header-title small{font-weight:normal;color:#77796d;margin-left:10px}
.studio-grid>.studio-tool-rail,.studio-grid>.studio-tools,.studio-grid>.studio-workspace{grid-row:1}
.studio-grid{display:grid;grid-template-columns:68px minmax(320px,1fr) 280px;min-height:720px}
.studio-grid[data-panel-open=false]{grid-template-columns:68px minmax(320px,1fr) 0}
.studio-grid[data-panel-open=false]>.studio-tools{display:none}
.studio-tool-rail{grid-column:1;background:#fffefa;border-right:1px solid #dddcd1;padding-top:16px}
.studio-tool-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;border:0;border-radius:0;background:transparent;padding:16px 3px;font-size:10px}
.studio-tool-rail b{font-size:21px;font-weight:normal}.studio-tool-rail button[aria-pressed=true]{background:#e5eadf;color:#243b30}
.studio-tools{grid-column:3;min-width:0;padding:16px 20px 24px;background:#fffefa;border-left:1px solid #dddcd1;max-height:calc(100vh - 170px);min-height:540px;overflow:auto}
.studio-tools h1{font-family:Georgia,serif;font-size:28px;line-height:1.1;font-weight:normal;letter-spacing:-.7px;margin:20px 0}
.studio-page h2{font-size:20px;letter-spacing:-.4px}.studio-page h3{font-size:14px}
.studio-page label{font-size:12px;display:block;margin:16px 0 7px;line-height:1.5}
.studio-page input,.studio-page select,.studio-page textarea{font:inherit;max-width:100%;width:100%;border:1px solid #d4d6cb;border-radius:2px;background:#fffefa;padding:10px;box-sizing:border-box;color:#24251f;min-width:0}
.studio-page textarea{line-height:1.4;resize:vertical}.studio-page button{font:inherit;cursor:pointer;padding:11px 13px;border:1px solid #ccd0c2;border-radius:2px;background:#edf0e7;color:#2c3028;line-height:1.3}
.studio-page button:hover{background:#dde4d5}.studio-page button:disabled{opacity:.5;cursor:default}.studio-page .help{font-size:12px;line-height:1.7;color:#6c7065}
.studio-page .studio-tool-rail button{font-size:10px;border:0;background:transparent;padding:16px 3px}.studio-page .studio-tool-rail button[aria-pressed=true]{background:#e5eadf}
.studio-status{font-size:13px;margin:10px 3%;line-height:1.5;overflow-wrap:anywhere}
.studio-workspace{grid-column:2;padding:22px 30px;background:#efeee7;min-width:0}
.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.workspace-top h2{font-size:20px;margin:0}.workspace-top button{padding:5px 12px}
.canvas-tabs{display:flex;justify-content:center;gap:5px;margin:20px 0 14px;flex-wrap:wrap}.canvas-tabs button{font-size:12px;background:transparent}.canvas-tabs button[aria-pressed=true]{background:#fffefa;border-color:#aab89d}
.studio-product,#canvas-wrap{height:520px;display:grid;place-items:center;margin:0 auto;max-width:620px;background:transparent}
.studio-product>svg,#design-canvas{width:100%;height:100%;display:block;max-width:620px}
#design-canvas{touch-action:none}#design-canvas [data-layer]{cursor:move}#design-canvas [data-native-role]{cursor:text}
#preview-note{max-width:620px;margin:20px auto 8px}.studio-workspace #render-status{max-width:620px;margin:8px auto}
#studio-add-panel>button,.studio-panel-footer>button{width:100%;margin:8px 0}.studio-panel-footer{border-top:1px solid #d4d6cb;margin-top:24px;padding-top:12px}
#studio-panel-close{width:100%;font-size:11px;padding:8px;background:#fffefa}
.studio-browse{display:inline-block;margin-top:16px;font-size:13px}.studio-empty{padding:14px;border:1px dashed #adb8a5;background:#fafbf5;color:#48583f;line-height:1.6;font-size:13px}
#layer-list{margin-top:18px}.layer-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.layer-heading h3{font-size:14px;margin:12px 0}.layer-heading button{font-size:10px;padding:7px}
#layer-properties{border-top:1px solid #d4d6cb;margin-top:20px;scroll-margin-top:40px}
#layer-native-note{padding:10px;background:#e5eadc;color:#344431}
.field-row,.position-grid{display:flex;gap:7px;flex-wrap:wrap}.field-row>*{flex:1;min-width:0}.position-grid label{flex:1;min-width:40%}.position-grid input{padding:8px 5px}
.studio-page .field-row button{font-size:10px;padding:8px 5px}#replace-image{width:100%}#layer-text::placeholder{color:#747b70}
.studio-product-options{min-width:0}.studio-total{border-top:1px solid #d4d6cb;margin-top:25px;padding-top:22px}.studio-total strong{font-size:24px;display:block}.studio-total button{width:100%;margin-top:18px;background:#283b2c;color:white;padding:14px}.studio-total button:hover{background:#3d5340}
#product-facts{margin-top:18px}.studio-product-options a{font-size:12px}
.studio-page #review{max-width:850px;margin:40px auto 80px;padding:40px;background:#fffefa;border:1px solid #d4d6cb}.studio-page #review h2{font-family:Georgia,serif;font-size:36px;font-weight:normal;margin-bottom:25px}
.address-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px 18px}.address-half{grid-column:span 3}.address-full{grid-column:span 6}.address-third{grid-column:span 2}
.checkbox{display:flex!important;align-items:flex-start;gap:10px;line-height:1.6}.checkbox input{width:16px;flex:none;margin-top:3px}
.studio-page details{border-top:1px solid #deded2;margin:18px 0;padding-top:16px}.studio-page summary{cursor:pointer}
.receipt{margin-top:25px;padding:22px;background:#efeee7;overflow-wrap:anywhere}.receipt pre{white-space:pre-wrap;max-height:320px;overflow:auto;font-size:11px;word-break:break-all}.receipt input{display:block}.receipt label{margin-bottom:18px}
.receipt-preview svg{display:block;width:100%;height:auto}#review-preview{max-width:260px;margin:0 auto 20px}#review-preview>svg{width:100%;height:auto}
.studio-mobile-buy{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;align-items:center;justify-content:space-between;gap:12px;padding:12px 3%;background:#fffefa;border-top:1px solid #ccd0c2;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.studio-mobile-buy>span{font-size:13px}.studio-mobile-buy small{display:block;font-size:11px;color:#6c7065;margin-top:3px}.studio-mobile-buy button,#submit-request{background:#283b2c;color:white}.studio-mobile-buy button:hover{background:#3d5340;color:white}
.studio-page .footer-bottom{padding-block:24px;line-height:1.8}.studio-page [hidden]{display:none!important}.studio-page :focus-visible{outline:3px solid #6b8965;outline-offset:3px}
.studio-page .visually-hidden{position:absolute;left:0;padding:0;border:0;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1500px){.studio-grid{grid-template-columns:72px minmax(320px,1fr) 300px}.studio-grid[data-panel-open=false]{grid-template-columns:72px minmax(320px,1fr) 0}.studio-product,#canvas-wrap{height:610px}}
@media(max-width:1000px) and (min-width:651px){.studio-grid{grid-template-columns:60px minmax(280px,1fr) 240px}.studio-grid[data-panel-open=false]{grid-template-columns:60px minmax(280px,1fr) 0}.studio-tools{padding:14px}.studio-workspace{padding:20px}.studio-header-title small{display:none}.studio-product,#canvas-wrap{height:460px}}
@media(max-width:650px){
 .studio-header{gap:10px;flex-wrap:wrap;padding:18px 5%}.studio-header .wordmark{font-size:25px}.studio-header>a{font-size:11px}.studio-header-title{order:4;width:100%;font-size:13px}.studio-header-title small{display:none}
 .studio-grid,.studio-grid[data-panel-open=false]{display:flex;flex-direction:column;min-height:0}.studio-tool-rail{position:sticky;top:0;z-index:45;display:flex;justify-content:space-around;padding:0;border-bottom:1px solid #dddcd1}.studio-page .studio-tool-rail button{flex:1;font-size:10px;padding:10px 3px;gap:3px}.studio-tool-rail b{font-size:18px}
 .studio-workspace{padding:20px 5%;min-width:0}.workspace-top h2{font-size:18px}.studio-product,#canvas-wrap{height:370px}.studio-workspace #preview-note{font-size:11px}
 .studio-tools{position:fixed;z-index:50;top:0;left:0;right:0;bottom:80px;max-height:none;min-height:0;padding:16px 5% 30px;overflow:auto;overscroll-behavior:contain;box-shadow:0 0 0 100vmax #24251f55;border:0}
 #studio-panel-close{position:sticky;top:-16px;z-index:2;padding:14px;background:#fffefa}
 .studio-page input,.studio-page select,.studio-page textarea{font-size:16px}.studio-page #layer-text{scroll-margin-bottom:130px}.position-grid label{min-width:20%}
 .studio-page #review{margin:24px 4% 110px;padding:24px 18px}.address-half,.address-third,.address-full{grid-column:span 6}.studio-page #review h2{font-size:30px}.studio-page .receipt{padding:16px}.receipt-summary{font-size:12px}
 .studio-mobile-buy{padding-inline:5%}.studio-mobile-buy>span{font-size:12px;min-width:0;max-width:47%}.studio-mobile-buy button{font-size:12px;padding:13px 12px;max-width:52%}.studio-page .footer-bottom{display:block;font-size:11px}.studio-page #payment-details input{min-height:44px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
