/* V4.29: one product heading, aligned workspace, explicit printed sides. */
@font-face{font-family:'DrukDar Noto';src:url('assets/fonts/noto-sans-regular.ttf') format('truetype');font-style:normal;font-weight:400 600;font-display:swap}
@font-face{font-family:'DrukDar Noto';src:url('assets/fonts/noto-sans-bold.ttf') format('truetype');font-style:normal;font-weight:650 900;font-display:swap}
body{font-family:'DrukDar Noto','Noto Sans TC',system-ui,sans-serif}button,input,textarea{font-family:inherit}.editor-layout :is(h2,h3,.print-sides-options button,.editing-face-label,.product-preview-tabs button,.mode-switch button,.item-select,.language-switch,.quantity-add-next,.quantity-price-open){font-family:'DrukDar Noto',system-ui,sans-serif}
.item-select{position:relative}.item-select img,.item-select canvas{width:42px;height:42px}.item-card{position:relative;padding:8px 20px 8px 7px;gap:0}.item-card .remove-item{position:absolute;right:2px;top:4px;padding:2px 4px}.item-select>span{flex:1}.item-select strong{line-clamp:3;-webkit-line-clamp:3;overflow-wrap:anywhere}.item-select small{white-space:normal;line-height:1.35}.editor-drawer-footer .language-switch{padding:6px 0;gap:5px;font-size:.7rem}.editor-drawer-footer .language-switch>span{display:none}.editor-drawer-footer .language-switch a{min-height:34px;padding:0 10px}
.editor-product-header{min-width:0}.editor-product-header .edit-heading{margin:0;gap:12px;align-items:center;flex-wrap:wrap}.editor-product-header h1{font-size:clamp(1.65rem,2.4vw,2.35rem);line-height:1.13;letter-spacing:-.025em}.editor-product-header #product-size{font:500 .85rem/1.3 system-ui;padding:6px 10px;border-radius:7px;background:#eef1f5;color:#536780}
.print-sides-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 0;font-size:.82rem}.print-sides-row[hidden]{display:none}.print-sides-row>span{font-weight:650}.print-sides-options{display:flex;padding:3px;background:#edf0f4;border:1px solid #dce3ed;border-radius:10px;gap:3px}.print-sides-options button{border:1px solid transparent;border-radius:7px;background:transparent;color:#52637c;font:600 .79rem/1.2 system-ui;padding:9px 14px;min-height:38px;cursor:pointer}.print-sides-options button[aria-pressed=true]{background:white;color:#071f48;border-color:#dce3ed;box-shadow:0 2px 5px #071f4810}.print-sides-options button:focus-visible{outline:3px solid #f56752;outline-offset:2px}.print-sides-row small{color:#667891;font-size:.75rem}.cart-empty .editor-product-header{display:none}
.items-panel h2{display:flex;gap:7px;align-items:center;font-size:1rem;margin-bottom:13px}.items-panel h2 span{font:600 .72rem system-ui;background:#edf0f4;border-radius:20px;padding:3px 7px}.item-select strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35;font-size:.8rem}.item-select small{font-size:.68rem;margin-top:5px}.items-panel,.editor-quantity-pricing{box-shadow:none}.items-panel .button{font-size:.79rem}.items-panel #clear-items{border:0;background:none;color:#667891;font-size:.72rem;margin-top:5px;min-height:32px}.item-upload h3{font-size:.8rem}.item-upload .upload{padding:14px 10px}.item-upload .upload small{font-size:.7rem;line-height:1.45}.sidebar-note{font-size:.73rem;line-height:1.55}.editor-drawer-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.editor-drawer-footer .language-switcher{margin:0}
.canvas-card{box-shadow:none}.face-preview-toolbar{padding-bottom:8px;border-bottom:1px solid #edf0f4}.canvas-help{font-size:.73rem;line-height:1.5;max-width:700px;margin:7px auto 0}.canvas-help:last-child{font-size:.69rem;color:#7b8aa1}.guide-row{font-size:.73rem;gap:18px;margin-top:10px}.design-comment{box-shadow:none;padding:10px 13px}.quantity-product-name{display:none}.quantity-current-group{font-size:.75rem}.quantity-group-rule{font-size:.73rem}.quantity-price-note{font-size:.71rem}.quantity-current{background:#f3f5f8}.quantity-next{padding:10px}.quantity-price-table th,.quantity-price-table td{padding:10px 7px}.settings-panel{box-shadow:none}.settings-panel>.mode-switch{margin-bottom:2px}.settings-panel .ratio-lock{margin-top:9px}.settings-panel .setting{margin-top:12px}.settings-panel>h2{display:none}
@media(min-width:721px){
 .editor-layout{grid-template-areas:'heading heading heading' 'items edit prices' 'items settings prices' 'bar bar bar';grid-template-columns:220px minmax(0,1fr) 290px;gap:14px;align-items:start}.editor-product-header{grid-area:heading;padding:0 2px 5px}.items-panel{padding:15px}.editor-quantity-pricing{padding:15px}.work-view:not(.expanded-view)>.canvas-wrap,.work-view:not(.expanded-view)>canvas{max-width:380px;max-height:380px;margin-inline:auto}.work-view .view-heading{min-height:31px;margin-bottom:6px}.view-heading h2{font-size:.8rem}.view-heading button{font-size:.64rem}.edit-panel{display:flex;flex-direction:column}.settings-panel{padding:14px 18px}.order-bar{padding:12px 17px}.cart-empty .empty-cart{grid-column:2/-1;grid-row:2/4}
}
@media(min-width:721px) and (max-width:1100px){
 .editor-layout{grid-template-columns:170px minmax(0,1fr) 245px;gap:10px}.editor-product-header h1{font-size:1.8rem}.editor-product-header .workspace-navigation{float:right;margin:0 0 0 10px}.items-panel,.editor-quantity-pricing{padding:12px}.print-sides-row{gap:8px}.print-sides-row small{margin-left:auto}.work-view:not(.expanded-view)>.canvas-wrap,.work-view:not(.expanded-view)>canvas{max-width:360px}.quantity-price-table th,.quantity-price-table td{padding:9px 4px}
}
@media(min-width:721px) and (max-width:870px){
 .editor-layout{grid-template-columns:145px minmax(0,1fr) 220px}.item-select img,.item-select canvas{width:37px;height:37px}.item-card{gap:2px;padding:5px}.item-select{gap:6px}.items-panel{padding:10px}.item-select strong{font-size:.71rem}.item-select small{font-size:.61rem}.editor-product-header h1{font-size:1.6rem}.print-sides-options button{padding-inline:10px}.quantity-current{padding:10px}.editor-quantity-pricing{padding:10px}
}
@media(max-width:720px){
 .editor-layout{grid-template-rows:auto minmax(0,1fr) auto auto}.editor-product-header{width:100%;min-height:0}.editor-product-header .edit-heading{flex-wrap:nowrap;margin:0 2px;gap:6px}.editor-product-header h1{font:700 .85rem/1.2 system-ui;letter-spacing:0}.editor-product-header #product-size{font:500 .66rem/1.2 system-ui;padding:3px 5px;background:none;max-width:35%;white-space:normal}.print-sides-row{gap:4px;margin-top:6px;justify-content:space-between}.print-sides-row>span{font-size:.68rem}.print-sides-options{padding:2px;gap:1px;border-radius:8px}.print-sides-options button{font-size:.68rem;min-height:34px;padding:5px 8px}.print-sides-row small{width:100%;font-size:.62rem;text-align:right;line-height:1.1}.face-preview-toolbar{padding-bottom:3px;margin-bottom:3px;border:0}.canvas-card{padding:4px}.guide-row{margin-top:4px;font-size:.66rem;gap:11px}.canvas-help{font-size:.65rem;margin-top:3px}.canvas-help:last-child{display:none}.design-comment{padding:3px 9px;margin-top:4px}.settings-panel{padding:6px 9px}.items-panel .item-select strong{font-size:.85rem}.items-panel .item-select small{font-size:.72rem}.editor-product-header .editing-advice{margin:4px 0;font-size:.7rem}.cart-empty .editor-layout{grid-template-rows:1fr auto auto}.cart-empty .empty-cart{grid-row:1}.settings-panel .ratio-lock{margin-top:9px}
}
@media(max-width:359px){.print-sides-row>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.print-sides-options{width:100%}.print-sides-options button{flex:1}.print-sides-row small{font-size:.6rem}.editor-product-header h1{font-size:.79rem}}
@media(max-width:359px){.settings-panel .mode-switch{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.15fr) 30px;gap:3px}.mode-switch button{font-size:.68rem;min-width:0}.work-view .view-heading{margin-bottom:1px}.design-comment summary{font-size:.68rem}.print-sides-row{margin-top:4px}.editor-product-header #product-size{font-size:.6rem}.face-preview-toolbar button{font-size:.62rem;padding-inline:6px}.editor-product-header .editing-advice{padding:4px 6px}.editor-product-header .editing-advice p{font-size:.62rem;max-height:36px}}
.item-select strong{-webkit-line-clamp:3;line-clamp:3;white-space:normal;overflow-wrap:anywhere}.item-select small{white-space:normal;line-height:1.35}
@media(min-width:721px) and (max-width:900px){
 .editor-layout{grid-template-areas:'heading heading' 'edit prices' 'settings prices' 'bar bar';grid-template-columns:minmax(0,1fr) 245px;gap:12px}.editor-product-header .workspace-navigation{float:none;display:flex;justify-content:space-between;margin:0 0 10px}.workspace-navigation #open-items{display:inline-flex}.items-panel{display:none}.items-open .items-panel{display:block;position:fixed;inset:0 auto 0 0;width:300px;z-index:71;overflow:auto;padding:16px;border-radius:0}.items-open .drawer-close{display:block;margin:0 0 12px auto}.items-open .drawer-backdrop{display:block;position:fixed;inset:0;background:#071f4880;border:0;z-index:70}.items-open .item-select strong{font-size:.85rem}.items-open .item-select small{font-size:.72rem}.items-open .item-select img,.items-open .item-select canvas{width:48px;height:48px}.items-open .item-card{padding:8px 20px 8px 8px}.items-open .items-panel h2{font-size:1rem}.items-open .editor-drawer-footer{display:flex}.cart-empty .empty-cart{grid-column:1/-1;grid-row:2/4}.work-view:not(.expanded-view)>.canvas-wrap,.work-view:not(.expanded-view)>canvas{max-width:390px;max-height:390px}.editor-product-header .edit-heading{clear:both}.order-bar .quantity-row{gap:8px}.order-bar .settings-actions{gap:7px}.order-bar .settings-actions .button{font-size:.8rem}
}
