:root{--bg:#fff8f4;--paper:#fff;--ink:#2d2521;--muted:#786d67;--line:#ead9d0;--accent:#e87973;--accent2:#f2a389;--dark:#3a2b27;--fold:rgba(0,0,0,.22);--shadow:0 20px 55px rgba(70,42,32,.14)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{min-height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif}body.modal-open{overflow:hidden}button,input{font:inherit}.site-header{display:flex;justify-content:space-between;align-items:center;padding:16px clamp(18px,5vw,70px);border-bottom:1px solid var(--line);background:rgba(255,248,244,.9);position:sticky;top:0;z-index:5}.brand{font-weight:900}.brand span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;margin-right:6px}.mini-cart{border:1px solid var(--line);background:white;border-radius:999px;padding:8px 14px;font-weight:900}.product-page{min-height:100dvh;background:radial-gradient(circle at 10% 0%,#ffe4db 0,transparent 28%),var(--bg)}.product-hero{width:min(1120px,calc(100% - 36px));margin:0 auto;min-height:calc(100dvh - 64px);display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding:48px 0}.product-visual{background:white;border:1px solid var(--line);border-radius:34px;padding:22px;box-shadow:var(--shadow)}.sample-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sample-grid i{aspect-ratio:1;border-radius:20px;background:linear-gradient(135deg,#d97067,#efb28e)}.sample-grid i:nth-child(2n){background:linear-gradient(135deg,#70a2b8,#e4cf9a)}.sample-grid i:nth-child(3n){background:linear-gradient(135deg,#c97da2,#efc1b2)}.eyebrow{margin:0 0 8px;color:#b95d58;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}h1,h2,p{margin-top:0}h1{margin-bottom:18px;font-size:clamp(38px,6vw,68px);line-height:1.05;letter-spacing:-.06em}h2{margin-bottom:12px;font-size:28px;letter-spacing:-.04em}.lead{color:var(--muted);line-height:1.75}.specs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.specs span{padding:7px 10px;border-radius:999px;background:white;border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:900}.primary,.secondary,.close-btn{border:0;border-radius:999px;min-height:44px;padding:0 16px;font-weight:900;cursor:pointer}.primary{background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;box-shadow:0 12px 24px rgba(232,121,115,.22)}.primary.big{width:100%;max-width:360px;min-height:54px}.secondary{background:white;border:1px solid var(--line)}.small{min-height:36px;font-size:13px}.small-note,.product-detail p{color:var(--muted);font-size:13px}.product-detail{width:min(900px,calc(100% - 36px));margin:0 auto 60px;padding:30px;border-radius:28px;background:white;border:1px solid var(--line)}.overlay{position:fixed;inset:0;z-index:50;display:none}.overlay.open{display:block}.scrim{position:absolute;inset:0;background:rgba(45,37,33,.42);opacity:0;transition:opacity .22s ease}.overlay.open .scrim{opacity:1}.flow-sheet{position:absolute;left:50%;bottom:0;transform:translate(-50%,105%);width:min(560px,100%);height:min(92dvh,820px);display:grid;grid-template-rows:auto 1fr auto;background:var(--bg);border:1px solid var(--line);border-bottom:0;border-radius:28px 28px 0 0;box-shadow:0 -18px 60px rgba(0,0,0,.22);overflow:hidden;transition:transform .26s ease}.overlay.open .flow-sheet{transform:translate(-50%,0)}.sheet-header{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:8px;padding:12px 14px;background:rgba(255,248,244,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.close-btn{min-height:40px;width:40px;padding:0;font-size:24px;background:white;border:1px solid var(--line)}.sheet-title{text-align:center}.sheet-title p{margin:0;color:var(--muted);font-size:11px;font-weight:900}.flow-body{min-height:0;overflow:auto;padding:16px}.flow-step{display:none}.flow-step.active{display:block}.select-card,.notice-card,.sheet-info{padding:20px;border-radius:24px;background:white;border:1px solid var(--line);box-shadow:0 10px 30px rgba(70,42,32,.06)}.select-card p,.notice-card span,.sheet-info p,.canvas-note{color:var(--muted);line-height:1.65;font-size:14px}.notice-card{margin-top:14px}.notice-card strong{display:block;margin-bottom:4px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-bottom:88px}.slot{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 22px rgba(70,42,32,.06)}.thumb{position:relative;aspect-ratio:1;background:#f1e3dc;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.slot-num{position:absolute;left:7px;top:7px;background:rgba(255,255,255,.86);padding:2px 7px;border-radius:999px;font-size:11px;font-weight:900}.slot-actions{display:grid;grid-template-columns:1fr 34px;gap:6px;padding:7px}.edit-btn,.more-btn{border:0;border-radius:12px;background:#fff0e8;color:#9d514b;min-height:34px;font-weight:900;font-size:12px}.more-btn{background:#f7eee9;color:var(--muted)}.empty-slot{display:grid;place-items:center;aspect-ratio:1;border:1px dashed #d6b6aa;border-radius:18px;color:var(--muted);font-weight:900}.flow-footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,248,244,.94);border-top:1px solid var(--line);backdrop-filter:blur(12px)}.flow-footer.hidden{display:none}.edit-top-row{display:grid;grid-template-columns:74px 1fr 74px;align-items:center;gap:8px;margin-bottom:12px}.edit-top-row span{text-align:center;color:var(--muted);font-size:13px;font-weight:900}.stage-wrap{width:min(86vw,420px);margin:0 auto;aspect-ratio:1}.stage{width:100%;aspect-ratio:1;position:relative;overflow:hidden;background:#eee;border-radius:18px;box-shadow:var(--shadow);touch-action:none;user-select:none}.stage img{position:absolute;left:50%;top:50%;max-width:none;transform-origin:center center;user-select:none;pointer-events:none}.fold-mask{position:absolute;background:var(--fold);pointer-events:none}.top-fold{left:0;top:0;width:100%;height:6.15%}.bottom-fold{left:0;bottom:0;width:100%;height:6.15%}.left-fold{left:0;top:0;width:6.15%;height:100%}.right-fold{right:0;top:0;width:6.15%;height:100%}.cut-line{position:absolute;inset:6.15%;border:2px solid rgba(255,255,255,.72);box-shadow:0 0 0 1px rgba(0,0,0,.25);pointer-events:none}.safe-line{position:absolute;inset:13.15%;border:1.5px dashed rgba(255,255,255,.82);pointer-events:none}.edge-label{position:absolute;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.86);background:rgba(0,0,0,.18);border-radius:999px;padding:1px 8px;font-size:10px;font-weight:900;letter-spacing:.04em;white-space:nowrap;pointer-events:none}.top-label{top:1.6%}.bottom-label{bottom:1.6%}.canvas-note{margin:10px auto 12px;max-width:420px;text-align:center}.tool-area{height:180px;padding:10px 0 0}.main-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.tool-tab{border:0;min-height:38px;border-radius:999px;background:#f7eee9;color:var(--muted);font-weight:900}.tool-tab.active{background:var(--dark);color:white}.panel{display:none;height:112px;overflow:hidden}.panel.active{display:flex}#cropPanel{gap:8px;overflow-x:auto;padding-bottom:2px}.tool-btn,.filter-btn{flex:0 0 auto;min-width:74px;border:0;border-radius:16px;background:#fff0e8;color:#9d514b;font-weight:900}.tool-btn{height:54px}#adjustPanel{flex-direction:column;gap:10px;padding:2px 6px}#adjustPanel label{display:grid;grid-template-columns:84px 1fr;align-items:center;gap:12px;font-size:13px;color:var(--muted);font-weight:900}#filterPanel{gap:8px;overflow-x:auto}.filter-btn{height:54px;min-width:94px}.filter-btn.active{background:var(--dark);color:white}.sheet-preview{width:min(360px,100%);margin:0 auto 24px;background:white;border:1px solid var(--line);box-shadow:var(--shadow);aspect-ratio:210/297;padding:12px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,1fr);gap:7px}.sheet-cell{position:relative;border:1px solid #d9c8bf;background:#f7eee9;overflow:hidden}.sheet-cell img{width:100%;height:100%;object-fit:cover;display:block}.sheet-cell:before{content:"";position:absolute;inset:6.15%;border:1px solid rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(0,0,0,.18)}.sheet-cell:after{content:attr(data-label);position:absolute;left:5px;top:5px;background:rgba(255,255,255,.85);border-radius:999px;padding:1px 6px;font-size:10px;font-weight:900}.qr-cell{display:grid;place-items:center;color:var(--ink);font-weight:900;text-align:center;background:linear-gradient(135deg,#fff,#fff0e8)}.qr-cell .fake-qr{width:44%;aspect-ratio:1;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:4px;background:white;margin:auto}.fake-qr i:nth-child(odd){background:var(--dark)}.fake-qr i:nth-child(even){background:#efc3b6}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,120px);z-index:80;background:var(--dark);color:white;padding:12px 18px;border-radius:999px;font-weight:900;box-shadow:var(--shadow);transition:transform .25s ease}.toast.show{transform:translate(-50%,0)}@media(max-width:820px){.product-hero{grid-template-columns:1fr;gap:28px;padding:28px 0}.product-visual{order:2}.product-copy{order:1}.flow-sheet{height:94dvh;border-radius:24px 24px 0 0}}@media(max-height:720px){.flow-sheet{height:96dvh}.tool-area{height:154px}.tool-btn,.filter-btn{height:44px}.panel{height:88px}}
.slot-actions{grid-template-columns:repeat(3,1fr);gap:6px}
.icon-btn{display:grid;place-items:center;min-width:36px;min-height:36px;border:0;border-radius:12px;background:#fff0e8;color:#9d514b;cursor:pointer}
.icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.copy-btn{background:#f7eee9;color:var(--muted)}
.copy-btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.delete-btn{background:#fff3f1;color:#b2514c}
.delete-btn:hover{background:#ffe4df}
.slot.is-preset-design .slot-actions{grid-template-columns:repeat(2,36px)}
.slot.is-preset-design .photo-progress{display:none}
.photo-progress{padding:7px 8px 0;color:var(--muted);font-size:10px;font-weight:900}
.photo-progress-bar{height:5px;border-radius:999px;background:#f3e4dd;overflow:hidden}
.photo-progress-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent2));transition:width .2s ease}
.photo-progress span{display:block;margin-top:3px;text-align:right;line-height:1.1}
.photo-progress.complete span{color:#6e8f68}
.upload-status{grid-column:1/-1;display:grid;gap:5px;color:var(--muted);font-size:12px;font-weight:900}
.overall-progress{height:6px;border-radius:999px;background:#f3e4dd;overflow:hidden}
.overall-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent2));transition:width .2s ease}
.overlay.edit-mode .close-btn{visibility:hidden;pointer-events:none}
.overlay.edit-mode .flow-body{overflow:hidden;padding:10px 14px}
.edit-step.active{height:100%;display:grid;grid-template-rows:auto minmax(190px,1fr) auto auto auto;gap:8px}
.edit-top-row{margin-bottom:0}
.overlay.edit-mode .stage-wrap{width:min(58vh,430px,86vw)}
.overlay.edit-mode .canvas-note{margin:0 auto;font-size:12px;line-height:1.35}
.overlay.edit-mode .tool-area{height:auto;padding-top:0}
.overlay.edit-mode .main-tools{margin-bottom:8px}
.overlay.edit-mode .panel{height:72px}
.overlay.edit-mode .tool-btn,.overlay.edit-mode .filter-btn{height:42px}
.edit-action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.edit-action{display:grid;place-items:center;min-height:46px;border:0;border-radius:16px;font-size:24px;font-weight:900;cursor:pointer}
.edit-action.cancel{background:white;border:1px solid var(--line);color:var(--muted)}
.edit-action.done{background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;box-shadow:0 12px 24px rgba(232,121,115,.22)}
@media(min-width:821px){.flow-sheet{bottom:50%;width:min(640px,calc(100% - 40px));height:min(88dvh,820px);border-radius:28px;border-bottom:1px solid var(--line);transform:translate(-50%,calc(50% + 36px))}.overlay.open .flow-sheet{transform:translate(-50%,50%)}.overlay.edit-mode .flow-sheet{width:min(1140px,calc(100% - 40px));height:min(92dvh,780px)}}
@media(max-width:420px){.flow-body{padding:12px}.photo-grid{gap:9px}.slot-actions{padding:6px;gap:5px}.icon-btn{min-width:36px;min-height:36px}.overlay.edit-mode .flow-body{padding:8px 10px}.edit-step.active{grid-template-rows:auto minmax(170px,1fr) auto auto auto;gap:6px}.overlay.edit-mode .stage-wrap{width:min(50vh,82vw)}.overlay.edit-mode .canvas-note{font-size:11px}.overlay.edit-mode .panel{height:60px}.overlay.edit-mode .tool-btn,.overlay.edit-mode .filter-btn{height:38px}}
.sheet-header .close-btn{grid-column:3;grid-row:1;justify-self:end}
.sheet-header .sheet-title{grid-column:2;grid-row:1}
.preview-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.75fr);gap:18px;align-items:start}
.preview-main,.preview-side{min-width:0}
.preview-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.preview-head strong{font-size:15px}
.preview-list{padding-bottom:12px}
.preview-side{position:sticky;top:0;display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:20px;background:white;box-shadow:0 10px 30px rgba(70,42,32,.06)}
.preview-side h2{margin:0;font-size:24px;letter-spacing:0}
.preview-note{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.add-more-btn{width:100%;min-height:46px}
.add-more-btn:disabled,.primary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
@media(min-width:821px){.overlay:not(.edit-mode) .flow-sheet{width:min(900px,calc(100% - 40px));height:min(88dvh,760px)}}
@media(max-width:820px){.preview-layout{display:grid;grid-template-columns:1fr;gap:14px}.preview-side{position:static;order:-1;padding:14px;border-radius:18px}.preview-side h2{font-size:20px}.preview-note{font-size:13px}.preview-head{margin-bottom:10px}.preview-list{padding-bottom:86px}}
.slot{position:relative}
.thumb{position:relative}
.thumb .slot-actions{position:absolute;left:8px;right:8px;bottom:8px;z-index:3;display:grid;grid-template-columns:repeat(3,36px);justify-content:center;gap:8px;padding:6px;border-radius:999px;background:rgba(45,37,33,.38);backdrop-filter:blur(10px)}
.thumb .icon-btn{min-width:36px;min-height:36px;border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 4px 14px rgba(45,37,33,.16)}
.thumb .delete-btn{background:rgba(255,243,241,.94);color:#b2514c}
.thumb .photo-progress{position:absolute;left:50%;top:50%;z-index:2;transform:translate(-50%,-50%);min-width:74px;padding:5px 8px;border-radius:999px;background:rgba(45,37,33,.58);color:white;font-size:11px;text-align:center;backdrop-filter:blur(8px);pointer-events:none}
.thumb .photo-progress.complete{opacity:0;transition:opacity .35s ease 1s}
.thumb .photo-progress-bar{height:3px;margin-top:4px;background:rgba(255,255,255,.28)}
.thumb .photo-progress-bar i{background:white}
.slot>.photo-progress,.slot>.slot-actions{display:none}
.preview-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.add-more-btn.cart-ready{background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;border:0;box-shadow:0 12px 24px rgba(232,121,115,.22)}
@media(max-width:420px){.thumb .slot-actions{left:6px;right:6px;bottom:6px;grid-template-columns:repeat(3,34px);gap:6px}.thumb .icon-btn{min-width:34px;min-height:34px}.preview-list{gap:10px}}
#stepGrid.active{height:100%}
#stepGrid .preview-layout{height:100%;grid-template-columns:minmax(0,1fr) minmax(188px,.42fr);gap:14px}
#stepGrid .preview-main{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0}
#stepGrid .preview-head{margin-bottom:8px}
#stepGrid .preview-list{align-self:start;padding-bottom:0}
#stepGrid .preview-list[data-count="9"]{aspect-ratio:1;grid-template-rows:repeat(3,minmax(0,1fr));max-height:100%;max-width:min(100%,calc(100dvh - 190px));margin:0 auto}
#stepGrid .preview-list[data-count="9"] .slot{min-height:0}
#stepGrid .preview-side{gap:10px;padding:14px}
#stepGrid .preview-side h2{font-size:20px}
#stepGrid .preview-note{font-size:12px;line-height:1.45}
#stepGrid .add-more-btn{min-height:44px}
#stepGrid .thumb .slot-actions{bottom:6px;grid-template-columns:repeat(3,32px);gap:6px;padding:5px}
#stepGrid .thumb .icon-btn{min-width:32px;min-height:32px}
#stepGrid .thumb .photo-progress{min-width:54px;font-size:10px;padding:4px 7px}
@media(max-width:820px){#stepGrid .preview-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:100%;gap:10px}#stepGrid .preview-side{order:-1;position:static;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 10px;padding:10px 12px;border-radius:16px}#stepGrid .preview-side .eyebrow,#stepGrid .preview-side h2{display:none}#stepGrid .preview-note{margin:0;font-size:11px;line-height:1.35}#stepGrid .add-more-btn{width:auto;min-width:150px;min-height:42px;padding:0 12px}#stepGrid .preview-main{min-height:0}#stepGrid .preview-head{margin-bottom:6px}#stepGrid .preview-list{gap:8px}#stepGrid .preview-list[data-count="9"]{max-width:min(100%,calc(100dvh - 230px))}#stepGrid .slot{border-radius:14px}#stepGrid .thumb .slot-actions{left:5px;right:5px;bottom:5px;grid-template-columns:repeat(3,30px);gap:5px}#stepGrid .thumb .icon-btn{min-width:30px;min-height:30px}#stepGrid .thumb .icon-btn svg{width:16px;height:16px}}
@media(max-width:420px){#stepGrid .preview-side{padding:8px 10px}#stepGrid .preview-note{display:none}#stepGrid .add-more-btn{width:100%;grid-column:1/-1}#stepGrid .preview-list{gap:7px}#stepGrid .preview-list[data-count="9"]{max-width:min(100%,calc(100dvh - 190px))}#stepGrid .thumb .slot-actions{grid-template-columns:repeat(3,28px)}#stepGrid .thumb .icon-btn{min-width:28px;min-height:28px}#stepGrid .slot-num{left:5px;top:5px;font-size:10px;padding:1px 6px}}
#stepGrid .preview-list{aspect-ratio:1;grid-template-rows:repeat(3,minmax(0,1fr));max-height:100%;max-width:min(100%,calc(100dvh - 190px));margin:0 auto}
#stepGrid .empty-slot{width:100%;height:100%;min-height:0;aspect-ratio:auto;border-radius:14px;background:rgba(255,255,255,.7);border:1px dashed #dec8bf;color:#b58a80;font-size:18px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
#stepGrid .empty-slot span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff0e8;color:#9d514b;font-weight:900}
@media(max-width:820px){#stepGrid .preview-list{max-width:min(100%,calc(100dvh - 230px))}}
@media(max-width:420px){#stepGrid .preview-list{max-width:min(100%,calc(100dvh - 190px))}#stepGrid .empty-slot span{width:24px;height:24px;font-size:16px}}
.source-options{display:grid;gap:10px;margin-top:16px}
.source-options .primary,.source-options .secondary{width:100%}
.source-options .secondary{min-height:44px;color:var(--muted)}
.customer-design-modal{position:fixed;inset:0;z-index:92;display:grid;place-items:center;padding:18px}
.customer-design-scrim{position:absolute;inset:0;background:rgba(45,37,33,.48)}
.customer-design-sheet{position:relative;z-index:1;width:min(760px,100%);max-height:min(86dvh,680px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--bg);box-shadow:0 18px 60px rgba(0,0,0,.24);overflow:hidden}
.customer-design-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-design-header p{margin:0 0 4px;color:#b95d58;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.customer-design-header h3{margin:0;font-size:18px;letter-spacing:0}
.customer-design-help{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.customer-design-list-view{min-height:0;overflow:auto}
.customer-design-list-view[hidden],.customer-design-detail-view[hidden]{display:none!important}
.customer-design-filter{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin:0 0 4px;-webkit-overflow-scrolling:touch}
.customer-design-filter button{flex:0 0 auto;min-height:34px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:white;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}
.customer-design-filter button.active{border-color:#f07f76;background:#fff1ed;color:#9d514b;box-shadow:0 4px 12px rgba(240,127,118,.18)}
.customer-design-empty{margin:10px 0 0;padding:18px;border:1px dashed var(--line);border-radius:14px;background:white;color:var(--muted);font-size:13px;text-align:center}
.customer-design-grid{min-height:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,220px));justify-content:center;gap:14px;padding:2px}
.customer-design-card{display:grid;gap:8px;align-content:start;padding:10px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--ink);text-align:left;cursor:pointer}
.customer-design-card strong{font-size:13px}
.customer-design-card span,.customer-design-card small{color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.customer-design-thumb,.customer-design-detail-image{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:14px;background:#f7eee9;overflow:hidden}
.customer-design-thumb img,.customer-design-detail-image img{width:100%;height:100%;object-fit:contain;display:block;padding:6px}
.customer-design-thumb span,.customer-design-detail-image span{padding:10px;text-align:center;font-weight:900;color:#9d514b}
.customer-design-detail-view{min-height:0;overflow:auto;display:grid;grid-template-columns:minmax(190px,280px) minmax(0,1fr);gap:16px;align-items:start;padding:2px}
.customer-design-detail-body{display:grid;gap:10px;align-content:start}
.customer-design-detail-body h4{margin:0;font-size:20px;line-height:1.25;letter-spacing:0}
.customer-design-detail-meta,.customer-design-description{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.customer-design-description{color:var(--ink)}
.customer-design-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.customer-design-detail-actions .primary,.customer-design-detail-actions .secondary{min-width:150px}
@media(max-width:620px){.customer-design-modal{align-items:start;padding:10px}.customer-design-sheet{width:100%;max-height:92dvh;grid-template-rows:auto minmax(0,1fr);padding:12px;gap:10px}.customer-design-grid{grid-template-columns:repeat(auto-fit,minmax(132px,180px));justify-content:center;gap:12px}.customer-design-card{width:100%;max-width:180px;justify-self:center}.customer-design-thumb{height:156px;aspect-ratio:auto;background:white}.customer-design-detail-view{display:block;grid-template-columns:none;padding:0 2px 2px;max-height:calc(92dvh - 78px);overflow:auto}.customer-design-detail-image{width:min(100%,240px);height:auto;aspect-ratio:1;margin:0 auto 10px;background:white}.customer-design-detail-body{display:block}.customer-design-detail-body>*+*{margin-top:8px}.customer-design-detail-body h4{font-size:18px}.customer-design-detail-meta,.customer-design-description{font-size:12px;line-height:1.5}.customer-design-help{font-size:11px}.customer-design-detail-actions{position:sticky;bottom:0;display:grid;margin-top:10px;padding-top:8px;background:var(--bg)}.customer-design-detail-actions .primary,.customer-design-detail-actions .secondary{width:100%;min-width:0;min-height:42px}}
#stepGrid .empty-slot{border:0;background:transparent;box-shadow:none;pointer-events:none}
#stepGrid .empty-slot span{display:none}
html,body{max-width:100%;overflow-x:hidden}
body.modal-open,.overlay,.flow-sheet,.flow-body,.flow-step,.preview-layout,.preview-main,.preview-side,.photo-grid,.preview-list{max-width:100%;min-width:0}
.overlay,.flow-sheet{overflow-x:hidden}
.flow-body{overflow-y:auto;overflow-x:hidden}
#stepGrid,.preview-layout,.preview-main,.preview-side,.preview-list{overflow-x:hidden}
#cropPanel,#filterPanel{overflow-x:auto}
.overlay.preview-mode .flow-body{overflow:hidden;padding:10px 12px}
.overlay.preview-mode #stepGrid.active{height:100%;overflow:hidden}
.overlay.preview-mode .preview-layout{height:100%;overflow:hidden;align-items:stretch}
.overlay.preview-mode .preview-main{min-height:0;overflow:hidden}
.overlay.preview-mode .preview-head{margin-bottom:6px;min-height:24px}
.overlay.preview-mode .preview-head .eyebrow{margin:0;font-size:10px}
.overlay.preview-mode .preview-head strong{font-size:13px}
.overlay.preview-mode .preview-side{align-self:start;gap:8px;padding:10px}
.overlay.preview-mode .preview-note{font-size:11px;line-height:1.3}
.overlay.preview-mode .add-more-btn{min-height:40px}
.overlay.preview-mode #stepGrid .preview-list{max-height:calc(100% - 30px);max-width:min(100%,calc(100dvh - 178px));gap:8px}
@media(min-width:821px){.overlay.preview-mode:not(.edit-mode) .flow-sheet{height:min(86dvh,720px)}.overlay.preview-mode #stepGrid .preview-list{max-width:min(100%,calc(86dvh - 112px))}}
@media(max-width:820px){.overlay.preview-mode .flow-sheet{height:94dvh}.overlay.preview-mode .flow-body{padding:8px 10px}.overlay.preview-mode .preview-layout{grid-template-rows:auto minmax(0,1fr);gap:8px}.overlay.preview-mode .preview-side{grid-template-columns:minmax(0,1fr) auto;padding:8px 10px}.overlay.preview-mode .preview-note{font-size:10px;line-height:1.25}.overlay.preview-mode .add-more-btn{min-height:38px}.overlay.preview-mode #stepGrid .preview-list{max-width:min(100%,calc(100dvh - 206px));gap:6px}}
@media(max-width:420px){.overlay.preview-mode .flow-body{padding:7px 8px}.overlay.preview-mode .preview-layout{gap:6px}.overlay.preview-mode .preview-side{padding:7px 8px}.overlay.preview-mode #stepGrid .preview-list{max-width:min(100%,calc(100dvh - 178px));gap:5px}.overlay.preview-mode .preview-head{margin-bottom:4px}.overlay.preview-mode .preview-head .eyebrow{display:none}}
@media(max-height:620px){.overlay.preview-mode .flow-body{overflow-y:auto}}
.overlay.preview-mode .preview-layout{width:min(100%,760px);margin:0 auto;grid-template-columns:minmax(0,1fr) minmax(150px,180px);gap:8px}
.overlay.preview-mode .preview-main{justify-self:end;width:100%}
.overlay.preview-mode .preview-side{justify-self:start;width:100%;max-width:180px}
@media(min-width:821px){.overlay.preview-mode:not(.edit-mode) .flow-sheet{width:min(820px,calc(100% - 40px))}.overlay.preview-mode .flow-body{padding-left:16px;padding-right:16px}}
@media(max-width:820px){.overlay.preview-mode .preview-layout{width:100%;grid-template-columns:1fr;gap:8px}.overlay.preview-mode .preview-main,.overlay.preview-mode .preview-side{justify-self:stretch;max-width:none}}
.overlay.preview-mode .preview-layout{width:min(100%,700px);grid-template-columns:minmax(0,1fr) minmax(150px,176px);gap:12px}
.overlay.preview-mode .preview-main{justify-self:center}
.overlay.preview-mode .preview-side{align-self:center;margin-top:24px;max-width:176px}
@media(min-width:821px){.overlay.preview-mode:not(.edit-mode) .flow-sheet{width:min(780px,calc(100% - 40px))}.overlay.preview-mode .flow-body{padding-left:12px;padding-right:12px}.overlay.preview-mode #stepGrid .preview-list{margin:0 auto}}
@media(max-width:820px){.overlay.preview-mode .preview-layout{width:100%;grid-template-columns:1fr;gap:8px}.overlay.preview-mode .preview-main{justify-self:stretch}.overlay.preview-mode .preview-side{align-self:stretch;margin-top:0;max-width:none}}
.preview-count{display:block;margin:0;color:var(--ink);font-size:13px;font-weight:900}
.overlay.preview-mode .preview-main{display:grid;grid-template-rows:minmax(0,1fr);align-items:center}
.overlay.preview-mode #stepGrid .preview-list{align-self:center;max-height:100%}
.overlay.preview-mode .preview-side{align-self:center;margin-top:0}
.overlay.preview-mode .preview-count{font-size:12px}
@media(min-width:821px){.overlay.preview-mode .preview-side{margin-top:18px}}
@media(max-width:820px){.overlay.preview-mode .preview-side{align-self:stretch;margin-top:0}.overlay.preview-mode .preview-count{font-size:12px}}
.confirm-overlay{position:fixed;inset:0;z-index:75;display:none}
.confirm-overlay{overscroll-behavior:contain}
.confirm-overlay.open{display:block}
.confirm-scrim{position:absolute;inset:0;background:rgba(45,37,33,.42)}
.confirm-sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100% - 32px));max-height:min(90dvh,760px);display:grid;gap:18px;padding:24px;background:var(--bg);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 60px rgba(0,0,0,.24);overflow:auto;overscroll-behavior:contain}
.confirm-close{position:absolute;right:12px;top:12px}
.confirm-content{padding-right:44px}
.confirm-content h2{margin:0 0 8px;font-size:24px;letter-spacing:0}
.confirm-content p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.confirm-actions{position:sticky;bottom:-24px;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 -24px -24px;padding:12px 24px 24px;background:linear-gradient(180deg,rgba(250,247,243,0),var(--bg) 26%,var(--bg))}
.confirm-actions .primary,.confirm-actions .secondary{width:100%;min-height:46px}
.cart-items{display:grid;gap:12px;max-height:min(52dvh,420px);overflow:auto;padding-right:2px}
.cart-items{overscroll-behavior:contain}
.cart-empty{margin:0;padding:18px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);text-align:center}
.cart-restore-status{display:grid;justify-items:center;gap:8px;margin:0;padding:24px 16px;border:1px solid #d6eadf;border-radius:18px;background:#f2fbf5;color:#2f6b47;text-align:center}
.cart-restore-status[hidden],.cart-restore-status.is-dismissed,.cart-restore-status.is-dismissed::before,.cart-restore-status.is-dismissed::after{display:none!important}
.toast:not(.show){visibility:hidden;pointer-events:none}.toast.show{visibility:visible}.toast[hidden],.toast[hidden]::before,.toast[hidden]::after{display:none!important}
.cart-restore-status strong{font-size:15px;line-height:1.45}
.cart-restore-status small{max-width:360px;color:#4f7a61;font-size:12px;font-weight:800;line-height:1.65}
.cart-restore-spinner{width:26px;height:26px;border:3px solid rgba(47,107,71,.2);border-top-color:#2f6b47;border-radius:50%;animation:cartRestoreSpin .85s linear infinite}
@keyframes cartRestoreSpin{to{transform:rotate(360deg)}}
.cart-item{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 10px 26px rgba(70,42,32,.06)}
.cart-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:112px}
.cart-thumb{position:relative;aspect-ratio:1;overflow:hidden;border-radius:6px;background:#f1e3dc}
.cart-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cart-thumb[class*="filter-gradient-"] .filter-gradient-overlay{display:block}
.cart-item-main h3{display:inline;margin:0 0 5px;font-size:15px;letter-spacing:0}
.cart-item-main p{margin:0;color:var(--muted);font-size:12px}
.cart-item.is-zero-quantity .cart-thumbs,.cart-item.is-zero-quantity .cart-item-main h3,.cart-item.is-zero-quantity .cart-item-main p{opacity:.42;filter:saturate(.72) brightness(.86)}
.cart-excluded-label{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;background:#f7eee9;color:#9d514b;font-size:11px;font-weight:900;vertical-align:middle}
.cart-quantity{display:inline-grid;grid-template-columns:auto 32px 34px 32px;align-items:center;gap:7px;margin-top:10px;color:var(--muted);font-size:12px;font-weight:800}
.cart-quantity button{width:32px;height:32px;border:1px solid var(--line);border-radius:999px;background:white;color:var(--ink);font-weight:900;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,color .18s ease}
.cart-quantity button:disabled{opacity:.42;cursor:not-allowed}
.cart-quantity strong{display:grid;place-items:center;min-width:34px;height:32px;border-radius:999px;background:#fff0e8;color:var(--dark);font-size:14px}
@media(hover:hover){.cart-quantity button:not(:disabled):hover{color:var(--accent);border-color:rgba(232,121,115,.58);box-shadow:0 8px 18px rgba(232,121,115,.14);transform:translateY(-1px)}}
.cart-quantity button:not(:disabled):active{transform:translateY(1px);box-shadow:0 4px 12px rgba(232,121,115,.12)}
.cart-item-actions{display:grid;gap:8px;min-width:116px}
.cart-item-actions .secondary{min-height:36px;border-radius:12px;font-size:12px}
.cart-summary{display:grid;gap:7px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 8px 22px rgba(70,42,32,.05)}
.cart-summary-row{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--muted);font-size:13px}
.cart-summary-row strong{color:var(--ink);font-size:14px}
.cart-summary-row.total{padding-top:8px;margin-top:3px;border-top:1px solid var(--line);color:var(--ink);font-weight:900}
.cart-summary-row.total strong{font-size:18px}
.cart-summary p{margin:2px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.cart-save-note{display:grid;gap:5px;margin-top:8px;padding:10px;border-radius:12px;background:#fff8f4;color:var(--muted);font-size:11px;line-height:1.5}
.cart-save-note strong{color:var(--ink);font-size:12px}
.cart-save-note span{display:block}
.cart-save-warning{color:#b95d58;font-weight:800}
.checkout-success-notice{display:grid;gap:10px;padding:14px;border:1px solid rgba(68,143,98,.28);border-radius:18px;background:#f1fbf5;box-shadow:0 10px 26px rgba(45,103,66,.08)}
.checkout-success-notice.hidden{display:none}
.checkout-success-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.checkout-success-header h3{margin:0;color:#2d6b43;font-size:14px;letter-spacing:0}
.checkout-success-close{width:28px;height:28px;border:1px solid rgba(68,143,98,.25);border-radius:999px;background:white;color:#2d6b43;font-weight:900;cursor:pointer}
.checkout-success-details{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 10px;margin:0;font-size:12px}
.checkout-success-details dt{color:#4b805d;font-weight:900}
.checkout-success-details dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.checkout-success-details a{color:#2d6b43;font-weight:900}
.checkout-success-help{margin:0;color:#4b805d;font-size:11px;line-height:1.5}
.pending-checkout-notice{display:grid;gap:10px;padding:14px;border:1px solid rgba(232,121,115,.34);border-radius:18px;background:#fff8f4;box-shadow:0 10px 26px rgba(70,42,32,.05)}
.pending-checkout-notice h3{margin:0;font-size:14px;letter-spacing:0}
.pending-checkout-help{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.pending-checkout-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border-radius:14px;background:white}
.pending-checkout-card strong{display:block;margin-bottom:4px;font-size:13px;overflow-wrap:anywhere}
.pending-checkout-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.pending-checkout-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:220px}
.pending-checkout-actions .secondary{min-height:34px;border-radius:12px;font-size:11px}
.pending-checkout-actions .pending-cancel{grid-column:1/-1;background:transparent;color:#9d514b;border-color:rgba(157,81,75,.28);box-shadow:none}
.confirm-actions .secondary,.cart-item-actions .secondary,.pending-checkout-actions .secondary,.mini-cart{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,color .18s ease,background .18s ease}
@media(hover:hover){.confirm-actions .secondary:not(:disabled):hover,.cart-item-actions .secondary:not(:disabled):hover,.pending-checkout-actions .secondary:not(:disabled):hover,.mini-cart:hover{background:#fff;color:var(--accent);border-color:rgba(232,121,115,.58);box-shadow:0 12px 24px rgba(232,121,115,.16);transform:translateY(-1px)}}
@media(hover:hover){.pending-checkout-actions .pending-cancel:not(:disabled):hover{background:transparent;color:#8f4943;border-color:rgba(157,81,75,.38);box-shadow:none;transform:none}}
.confirm-actions .secondary:not(:disabled):active,.cart-item-actions .secondary:not(:disabled):active,.pending-checkout-actions .secondary:not(:disabled):active,.mini-cart:active{background:#fff;color:var(--accent);border-color:rgba(232,121,115,.68);box-shadow:0 7px 16px rgba(232,121,115,.14);transform:translateY(1px)}
.production-entry{min-height:42px;padding:0 14px;margin-left:auto;margin-right:10px;font-size:12px}
.production-admin-menu{position:fixed;z-index:70;display:grid;gap:6px;min-width:190px;padding:8px;border:1px solid var(--line);border-radius:16px;background:rgba(255,248,244,.98);box-shadow:0 16px 44px rgba(70,42,32,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.production-admin-menu button{min-height:42px;border:0;border-radius:12px;background:white;color:var(--ink);font-weight:900;text-align:left;padding:0 12px;cursor:pointer}
.production-admin-menu button:hover,.production-admin-menu button:focus-visible{background:#fff0e8;color:#9d514b;outline:0}
.production-auth-dev-info{max-width:280px;margin-top:4px;padding:9px 10px;border:1px dashed rgba(157,81,75,.32);border-radius:12px;background:#fff7f2;color:#6d5c55;font-size:11px;font-weight:800;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.production-overlay{position:fixed;inset:0;z-index:78;display:none;overscroll-behavior:contain}
.production-overlay.open{display:block}
.production-scrim{position:absolute;inset:0;background:rgba(45,37,33,.42)}
.production-sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(960px,calc(100% - 32px));height:min(86dvh,760px);display:grid;grid-template-rows:auto auto 1fr;gap:14px;padding:22px;background:var(--bg);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 60px rgba(0,0,0,.24);overflow:hidden}
.production-utility-overlay{position:fixed;inset:0;z-index:79;display:none;overscroll-behavior:contain}
.production-utility-overlay.open{display:block}
.production-utility-scrim{position:absolute;inset:0;background:rgba(45,37,33,.42)}
.production-utility-sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:min(86dvh,760px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;padding:22px;background:var(--bg);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 60px rgba(0,0,0,.24);overflow:hidden}
.production-material-sheet{width:min(540px,calc(100% - 32px))}
.production-catalog-sheet{width:min(900px,calc(100% - 32px))}
.production-site-settings-sheet{width:min(560px,calc(100% - 32px))}
.production-cart-photo-sheet{width:min(1180px,calc(100% - 24px));max-width:100%;height:min(90vh,820px);height:min(90dvh,820px);grid-template-rows:minmax(0,1fr);gap:0;padding:12px;box-sizing:border-box}
.production-utility-close{position:absolute;right:12px;top:12px}
.production-utility-header{padding-right:48px}
.production-utility-header p{margin:0 0 5px;color:#b95d58;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.production-utility-header h2{margin:0;font-size:24px;letter-spacing:0}
.production-utility-content{min-height:0;overflow:auto;overscroll-behavior:contain}
.production-utility-content .production-material-manager-dev,.production-utility-content .production-catalog-debug{box-shadow:none}
.production-cart-photo-content{width:100%;max-width:100%;min-width:0;overflow-x:hidden;box-sizing:border-box}
.production-cart-photo-review{display:grid;width:100%;max-width:100%;min-width:0;gap:10px;padding:0;box-sizing:border-box}
.production-cart-photo-summary{position:sticky;top:0;z-index:3;display:flex;flex-wrap:nowrap;width:100%;max-width:100%;min-width:0;gap:14px;align-items:center;min-height:44px;padding:5px 8px;border-bottom:1px solid var(--line);background:rgba(255,248,244,.97);box-sizing:border-box;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.production-cart-photo-summary h2{flex:0 1 auto;min-width:0;margin:0;font-size:18px;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.production-cart-photo-summary-controls{display:flex;flex:1 1 auto;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.production-cart-photo-metrics{display:flex;flex:1 1 auto;align-items:center;justify-content:flex-end;gap:14px;min-width:0;color:var(--muted);font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden}
.production-cart-photo-metrics span{display:inline-flex;align-items:baseline;gap:4px}
.production-cart-photo-metrics strong{color:var(--ink);font-size:12px}
.production-cart-photo-summary .secondary{flex:0 0 auto;min-width:64px;min-height:34px;padding:0 12px;border-radius:10px;font-size:11px}
.production-cart-photo-summary .production-cart-photo-close{display:grid;flex:0 0 44px;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;line-height:1}
.production-cart-photo-message{margin:0;padding:18px;border:1px dashed var(--line);border-radius:16px;background:white;color:var(--muted);font-size:13px;font-weight:800;text-align:center}
.production-cart-photo-message.is-error{border-color:rgba(185,93,88,.34);background:#fff4ef;color:#b73535}
.production-cart-photo-card{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:0 6px 16px rgba(70,42,32,.05)}
.production-cart-photo-card>header{display:flex;justify-content:space-between;gap:12px;align-items:start}
.production-cart-photo-card>header>div{display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-width:0}
.production-cart-photo-card>header strong{font-size:14px;overflow-wrap:anywhere}
.production-cart-photo-card>header span,.production-cart-photo-card>header em{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border-radius:999px;background:#fff0e8;color:#9d514b;font-size:10px;font-style:normal;font-weight:900}
.production-cart-photo-card>header em{background:#edf8ea;color:#4d7a46;white-space:nowrap}
.production-cart-photo-card>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.production-cart-photo-card>dl div{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;border-radius:10px;background:#fff8f4;font-size:11px}
.production-cart-photo-card>dl dt{color:var(--muted);font-weight:800}
.production-cart-photo-card>dl dd{margin:0;color:var(--ink);font-weight:800;text-align:right}
.production-cart-photo-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;overflow:hidden}
.production-cart-photo-tile{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:1;border:1px solid #ead7cf;border-radius:8px;background:#f7f3f0;color:var(--muted);overflow:hidden;cursor:pointer}
.production-cart-photo-tile img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#f5f1ee;opacity:0}
.production-cart-photo-tile.is-loaded img{opacity:1}
.production-cart-photo-tile img[hidden]{display:none}
.production-cart-photo-tile:focus-visible{outline:3px solid rgba(232,121,115,.72);outline-offset:2px}
.production-cart-photo-number{position:absolute;z-index:2;left:4px;top:4px;padding:2px 5px;border-radius:999px;background:rgba(45,37,33,.78);color:white;font-size:8px;font-weight:900;box-shadow:0 2px 7px rgba(0,0,0,.14)}
.production-cart-photo-load-status{padding:6px;color:#776c67;font-size:9px;font-weight:900;text-align:center}
.production-cart-photo-tile.is-loading .production-cart-photo-load-status::before{content:'';display:block;width:16px;height:16px;margin:0 auto 4px;border:2px solid #ead7cf;border-top-color:#e87973;border-radius:50%;animation:admin-cart-photo-spin .8s linear infinite}
.production-cart-photo-tile.is-error{border-color:rgba(185,93,88,.36);background:#fff1f0}
.production-cart-photo-tile.is-error .production-cart-photo-load-status{color:#b73535}
@keyframes admin-cart-photo-spin{to{transform:rotate(360deg)}}
.production-cart-photo-viewer{position:fixed;inset:0;z-index:96;display:none;padding:24px;overflow:hidden;overscroll-behavior:contain}
.production-cart-photo-viewer.open{display:grid;place-items:center}
.production-cart-photo-viewer-scrim{position:absolute;inset:0;background:rgba(27,23,21,.78)}
.production-cart-photo-viewer-sheet{position:relative;z-index:1;width:min(960px,calc(100vw - 48px));height:min(760px,calc(100vh - 48px));height:min(760px,calc(100dvh - 48px));max-width:100%;max-height:100%;display:grid;grid-template-rows:minmax(42px,auto) minmax(0,1fr) minmax(40px,auto);gap:8px;padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:#2d2927;color:white;box-shadow:0 22px 70px rgba(0,0,0,.45);overflow:hidden;box-sizing:border-box}
.production-cart-photo-viewer-close{position:absolute;z-index:2;right:12px;top:12px}
.production-cart-photo-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:50px}
.production-cart-photo-viewer-header p{margin:0 0 2px;color:#f4c5b9;font-size:10px;font-weight:900}
.production-cart-photo-viewer-header h3{margin:0;color:white;font-size:16px}
.production-cart-photo-viewer-header strong{font-size:12px;white-space:nowrap}
.production-cart-photo-viewer-stage{min-width:0;min-height:0;overflow:hidden;border-radius:14px;background:#171412;overscroll-behavior:contain;scrollbar-gutter:stable}
.production-cart-photo-viewer-stage.is-zoomed{overflow:auto}
.production-cart-photo-viewer-canvas{width:100%;height:100%;min-width:100%;min-height:100%;display:grid;place-items:center}
.production-cart-photo-viewer-stage p{grid-area:1/1;margin:0;padding:18px;color:#f2e9e4;font-size:13px;font-weight:800;text-align:center}
.production-cart-photo-viewer-stage img{grid-area:1/1;display:block;max-width:none;max-height:none;width:auto;height:auto;object-fit:contain}
.production-cart-photo-viewer-stage img[hidden]{display:none}
.production-cart-photo-viewer-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.production-cart-photo-viewer-actions button{appearance:none;-webkit-appearance:none;min-height:38px;padding:6px;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:#fff7f4;color:#6b3f38;font-size:11px;font-weight:900;cursor:pointer}
.production-cart-photo-viewer-actions [data-admin-cart-viewer-action="zoom-out"],.production-cart-photo-viewer-actions [data-admin-cart-viewer-action="zoom-in"]{border-color:#fff;background:#fff;color:#342724;font-size:20px;line-height:1}
.production-cart-photo-viewer-actions button:disabled{opacity:.4;cursor:not-allowed}
.production-cart-photo-viewer-actions button:focus-visible{outline:3px solid #f59b83;outline-offset:2px}
@media(max-width:1000px){.production-cart-photo-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){.production-cart-photo-sheet{width:100%;height:94vh;height:94dvh;padding:8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}.production-cart-photo-review{padding-bottom:calc(8px + env(safe-area-inset-bottom))}.production-cart-photo-summary{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"title close" "controls controls";gap:5px 10px;min-height:0;padding:4px}.production-cart-photo-summary h2{grid-area:title;align-self:center;min-width:0;font-size:16px;overflow:hidden;text-overflow:ellipsis}.production-cart-photo-summary-controls{grid-area:controls;justify-content:flex-start;flex-wrap:wrap;gap:5px 10px;min-width:0}.production-cart-photo-metrics{flex:1 1 240px;justify-content:flex-start;flex-wrap:wrap;gap:4px 10px;white-space:normal;overflow:visible}.production-cart-photo-summary .secondary{min-height:36px}.production-cart-photo-summary .production-cart-photo-close{grid-area:close;justify-self:end;align-self:start}.production-cart-photo-viewer{padding:0}.production-cart-photo-viewer-sheet{width:100%;height:100vh;height:100dvh;border:0;border-radius:0;padding:10px 8px calc(8px + env(safe-area-inset-bottom))}.production-cart-photo-viewer-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.production-cart-photo-viewer-actions button{min-height:48px}}
@media(max-width:600px){.production-cart-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.production-cart-photo-card>dl{grid-template-columns:1fr}.production-cart-photo-card>dl div{padding:5px 7px}.production-cart-photo-tile{border-radius:7px}.production-cart-photo-viewer-header h3{font-size:15px}.production-cart-photo-viewer-actions button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.production-cart-photo-tile.is-loading .production-cart-photo-load-status::before{animation:none}}
.production-site-settings-panel{display:grid;gap:12px}
.production-site-setting-card{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 8px 22px rgba(70,42,32,.05)}
.production-site-setting-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start}
.production-site-setting-heading h3{margin:0 0 6px;color:var(--ink);font-size:16px;letter-spacing:0}
.production-site-setting-heading p{margin:0;color:var(--muted);font-size:12px;font-weight:700;line-height:1.65}
.production-site-setting-toggle{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border:1px solid rgba(232,121,115,.28);border-radius:999px;background:#fff8f4;color:#9d514b;font-size:12px;font-weight:900;white-space:nowrap}
.production-site-setting-toggle input{width:18px;height:18px;accent-color:#e87973}
.production-site-setting-toggle span{min-width:26px;text-align:center}
.production-site-setting-toggle span.is-off{color:#6f6864;-webkit-text-fill-color:#6f6864}
.production-site-setting-note{margin:0;padding:9px 10px;border-radius:12px;background:#f3fbf2;color:#4d7a46!important;-webkit-text-fill-color:#4d7a46;font-size:12px;font-weight:800;line-height:1.55}
.production-site-settings-confirm-overlay{position:fixed;inset:0;z-index:88;display:none;place-items:center;padding:18px}
.production-site-settings-confirm-overlay.open{display:grid}
.production-site-settings-confirm-scrim{position:absolute;inset:0;background:rgba(45,37,33,.34)}
.production-site-settings-confirm-sheet{position:relative;z-index:1;width:min(430px,calc(100% - 32px));display:grid;gap:12px;padding:18px;border:1px solid rgba(232,121,115,.28);border-radius:20px;background:#fffaf7;box-shadow:0 18px 54px rgba(70,42,32,.22);color:var(--ink)}
.production-site-settings-confirm-close{position:absolute;right:10px;top:10px}
.production-site-settings-confirm-sheet h3{margin:0;padding-right:42px;font-size:18px;letter-spacing:0}
.production-site-settings-confirm-sheet p{margin:0;color:#665a54;font-size:13px;font-weight:800;line-height:1.6}
.production-site-settings-confirm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.production-site-settings-confirm-actions button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:1 1 150px;min-height:42px;padding:10px 14px;border:1px solid #d69088;border-radius:13px;background:#fff7f4;color:#9d514b;-webkit-text-fill-color:#9d514b;font-size:12px;font-weight:900;line-height:1.35;text-align:center;opacity:1}
.production-site-settings-confirm-actions button.danger{border-color:#d8645f;background:linear-gradient(135deg,#f26f6b,#f59b83);color:white;-webkit-text-fill-color:white;box-shadow:0 8px 18px rgba(232,121,115,.2)}
.production-close{position:absolute;right:12px;top:12px}
.production-header{padding-right:48px}
.production-header p{margin:0 0 5px;color:#b95d58;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.production-header h2{margin:0;font-size:24px;letter-spacing:0}
.production-drive-connection-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;align-items:center;min-width:0;padding:10px 12px;border:1px solid rgba(118,159,111,.28);border-radius:14px;background:#fbfffb;box-sizing:border-box}
.production-drive-connection-card[hidden]{display:none}
.production-drive-connection-copy{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 12px;align-items:baseline;min-width:0}
.production-drive-connection-copy h3{grid-row:1/3;margin:0;color:var(--ink);font-size:14px;white-space:nowrap}
.production-drive-connection-copy p{min-width:0;margin:0;color:var(--muted);font-size:11px;font-weight:800;line-height:1.45;overflow-wrap:anywhere}
.production-drive-connection-copy strong{color:#6f6864}
.production-drive-connection-card[data-status="checking"] .production-drive-connection-copy strong{color:#355f86}
.production-drive-connection-card[data-status="connected"] .production-drive-connection-copy strong{color:#4d7a46}
.production-drive-connection-card[data-status="attention"]{border-color:rgba(185,93,88,.3);background:#fff8f4}
.production-drive-connection-card[data-status="attention"] .production-drive-connection-copy strong{color:#a8443f}
.production-drive-connection-card>.secondary{min-height:40px;padding:8px 12px;white-space:nowrap}
.production-cleanup-payment-warning{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:11px 13px;border:1px solid rgba(185,93,88,.34);border-radius:14px;background:#fff3f1;color:#8f3733}
.production-cleanup-payment-warning[hidden]{display:none}
.production-cleanup-payment-warning strong{font-size:12px;white-space:nowrap}
.production-cleanup-payment-warning p{margin:0;color:#6f4542;font-size:12px;font-weight:700;line-height:1.55;overflow-wrap:anywhere}
.production-cleanup-payment-warning span{padding:3px 7px;border-radius:999px;background:#fff;color:#a8443f;font-size:11px;font-weight:900;white-space:nowrap}
.production-body{min-height:0;display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:14px}
.production-catalog-panel{grid-column:1/-1;min-height:0;display:grid;gap:12px;align-content:start}
.production-list,.production-detail{min-height:0;overflow:auto;overscroll-behavior:contain}
.production-list{display:grid;gap:10px;align-content:start}
.production-empty{margin:0;padding:16px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);background:white;text-align:center}
.production-order-card,.production-detail-summary,.production-retention-panel,.production-item-detail,.production-print-spec,.production-print-preview,.production-print-test,.production-drive-export,.production-shop-insert-editor,.production-catalog-debug,.production-material-manager-dev{padding:14px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 8px 22px rgba(70,42,32,.05)}
.production-order-card{cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,opacity .18s ease}
.production-order-card.is-selected{border-color:rgba(232,121,115,.9);background:#fff4ef;box-shadow:0 14px 30px rgba(232,121,115,.2),inset 4px 0 0 var(--accent)}
.production-order-card:focus-visible{outline:2px solid rgba(232,121,115,.72);outline-offset:2px}
.production-order-card.is-expired{background:#f4f1ef;opacity:.72}
.production-order-card.is-cancelled{background:#f4f1ef;opacity:.78}
.production-order-card.is-pending{background:#fff8f4;border-color:rgba(232,121,115,.28)}
.production-order-card.is-paid{background:#fbfffb;border-color:rgba(118,159,111,.26)}
.production-order-card h3,.production-detail-summary h3,.production-retention-panel h4,.production-item-detail h4,.production-print-spec h4,.production-print-preview h4,.production-shop-insert-editor h4{margin:0 0 8px;font-size:14px;letter-spacing:0;overflow-wrap:anywhere}
.production-order-card p{margin:0 0 10px;color:var(--muted);font-size:11px}
.production-card-note{line-height:1.45}
.production-card-labels{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.production-card-labels span,.production-status-label{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:#f7eee9;color:#9d514b;font-size:11px;font-weight:900}
.production-order-card.is-expired .production-status-label,.production-detail-summary.is-expired .production-status-label{background:#e7e2df;color:#6f6864}
.production-order-card.is-cancelled .production-status-label,.production-detail-summary.is-cancelled .production-status-label{background:#e7e2df;color:#6f6864}
.production-order-card.is-pending .production-status-label,.production-detail-summary.is-pending .production-status-label{background:#fff0e8;color:#b95d58}
.production-order-card.is-paid .production-status-label,.production-detail-summary.is-paid .production-status-label{background:#edf7ec;color:#4d7a46}
.production-order-card dl,.production-detail-summary dl,.production-item-detail dl,.production-print-spec dl,.production-print-preview dl{display:grid;gap:6px;margin:0 0 12px}
.production-order-card dl div,.production-detail-summary dl div,.production-item-detail dl div,.production-print-spec dl div,.production-print-preview dl div{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.production-order-card dt,.production-detail-summary dt,.production-item-detail dt,.production-print-spec dt,.production-print-preview dt{font-weight:800}
.production-order-card dd,.production-detail-summary dd,.production-item-detail dd,.production-print-spec dd,.production-print-preview dd{margin:0;color:var(--ink);text-align:right;overflow-wrap:anywhere}
.production-print-spec p,.production-print-preview p,.production-shop-insert-editor p,.production-catalog-debug p,.production-material-manager-dev p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.production-print-preview-link{display:block;width:min(100%,360px);margin:8px auto 12px;border:1px solid var(--line);border-radius:12px;background:#fff8f4;overflow:hidden}
.production-print-preview img{display:block;width:100%;max-width:360px;height:auto;object-fit:contain;background:white}
.production-print-test{display:grid;gap:10px}
.production-print-test h4,.production-print-test p{margin:0}
.production-print-test>p{color:var(--muted);font-size:12px;line-height:1.55}
.production-print-test>.secondary{justify-self:start;min-height:36px}
.production-print-test-status{padding:9px 10px;border-radius:10px;background:#f7f3f0}
.production-print-test-status.is-generating{background:#eef6ff;color:#355f86}
.production-print-test-status.is-ready{background:#f3fbf2;color:#4d7a46}
.production-print-test-status.is-warning,.production-print-test-warning{background:#fff7df;color:#8a641d}
.production-print-test-status.is-error{background:#fff1f0;color:#a8443f}
.production-print-test-preview{display:block;width:min(100%,420px);height:auto;margin:2px auto;border:1px solid var(--line);background:white;box-shadow:0 8px 22px rgba(70,42,32,.08)}
.production-print-test-actions{display:flex;flex-wrap:wrap;gap:8px}
.production-print-test-actions .secondary{min-height:36px}
.production-print-test-note{font-weight:800}
.production-drive-export{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}
.production-drive-export h4,.production-drive-export p{margin:0}
.production-drive-export h4{font-size:14px}
.production-drive-export p{grid-column:1/-1;color:var(--muted);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.production-drive-export-status{justify-self:end;padding:4px 8px;border-radius:999px;background:#f1eeeb;color:#6f6864;font-size:11px}
.production-drive-export.is-preparing .production-drive-export-status,.production-drive-export.is-generating .production-drive-export-status,.production-drive-export.is-uploading .production-drive-export-status,.production-drive-export.is-exporting .production-drive-export-status,.production-drive-export.is-waiting .production-drive-export-status{background:#eef6ff;color:#355f86}
.production-drive-export.is-verified .production-drive-export-status,.production-drive-export.is-cleanup_pending .production-drive-export-status{background:#edf7ec;color:#4d7a46}
.production-drive-export.is-error .production-drive-export-status{background:#fff1f0;color:#a8443f}
.production-drive-export>.secondary{grid-column:1/-1;justify-self:start;min-height:38px}
.production-drive-pdf-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.production-shop-insert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.production-shop-insert-row{display:grid;grid-template-columns:1fr;gap:8px;align-items:stretch;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fffaf7}
.production-shop-insert-row.is-unused{background:#f7f3f0;border-style:dashed}
.production-shop-insert-row strong{font-size:12px;color:var(--ink)}
.production-shop-insert-thumb-action{width:100%;padding:0;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.production-shop-insert-thumb-action:disabled{cursor:not-allowed;opacity:.7}
.production-shop-insert-thumb-action:not(:disabled):hover .production-shop-insert-thumb{border-color:rgba(232,121,115,.8);box-shadow:0 8px 18px rgba(70,42,32,.12);transform:translateY(-1px)}
.production-shop-insert-thumb-action:focus-visible{outline:3px solid rgba(232,121,115,.45);outline-offset:3px}
.production-shop-insert-thumb{display:grid;place-items:center;gap:4px;min-height:118px;aspect-ratio:1;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,#fff,#fff0e8);overflow:hidden;text-align:center;color:#9d514b;font-weight:900}
.production-shop-insert-thumb{transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.production-shop-insert-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.production-shop-insert-thumb span{padding:0 8px;font-size:16px;line-height:1.2}
.production-shop-insert-thumb small{color:var(--muted);font-size:11px}
.shop-insert-design-preview{width:100%;height:100%;min-height:118px;display:grid;grid-template-rows:auto 1fr auto;align-items:center;justify-items:center;gap:6px;padding:12px;border-radius:11px;background:#f8fbff;color:#2d2521;text-align:center}
.shop-insert-design-preview strong{max-width:100%;font-size:11px;line-height:1.2;color:#2d2521;overflow-wrap:anywhere}
.shop-insert-design-preview span{display:grid;place-items:center;min-width:58px;min-height:42px;padding:0 8px;font-size:18px;line-height:1.1;font-weight:900;color:#786d67}
.shop-insert-design-preview small{max-width:100%;font-size:10px;font-weight:800;color:#9d514b;text-transform:uppercase;overflow-wrap:anywhere}
.shop-insert-design-preview.is-seasonal_bonus{background:#fff3e8}
.shop-insert-design-preview.is-seasonal_bonus span{font-size:26px;color:#d97067}
.shop-insert-design-preview.is-qr_coupon .shop-insert-qr-mark{width:52px;height:52px;min-width:52px;min-height:52px;padding:0;border:4px solid #2d2521;background:conic-gradient(#2d2521 0 25%,#fff 0 50%,#2d2521 0 75%,#fff 0) 0 0/18px 18px,#fff;color:transparent}
.shop-insert-design-preview.is-brand_card{background:#fff8f4}
.shop-insert-design-preview.is-brand_card span{color:#9d514b}
.shop-insert-design-preview.is-custom_design{background:linear-gradient(135deg,#fff,#eef6ff)}
.shop-insert-design-preview.is-unused{background:#fff;color:#6f6864}
.shop-insert-design-preview.is-unused span{color:#6f6864}
.production-shop-insert-row.is-unused .production-shop-insert-thumb{background:#fff;color:#6f6864}
.production-shop-insert-summary{display:grid;gap:3px;min-height:58px}
.production-shop-insert-summary b{font-size:14px;color:var(--ink)}
.production-shop-insert-summary span,.production-shop-insert-summary em{font-size:12px;color:var(--muted);font-style:normal;overflow-wrap:anywhere}
.production-shop-insert-row label{display:grid;gap:4px;color:var(--muted);font-size:11px;font-weight:800}
.production-shop-insert-row select,.production-shop-insert-row input{width:100%;min-height:34px;border:1px solid var(--line);border-radius:10px;padding:6px 8px;background:white;color:var(--ink);font:inherit;font-size:12px}
.production-shop-insert-state{align-self:center;color:var(--muted);font-size:12px;font-weight:800;overflow-wrap:anywhere}
.production-shop-insert-details{display:grid;gap:8px;padding-top:2px;color:var(--muted);font-size:11px}
.production-shop-insert-details summary{cursor:pointer;font-weight:900;color:#9d514b;list-style:none}
.production-shop-insert-details summary::-webkit-details-marker{display:none}
.production-shop-insert-details summary::before{content:"+ ";font-weight:900}
.production-shop-insert-details[open] summary::before{content:"- "}
.production-shop-insert-details p{margin:0;overflow-wrap:anywhere}
.production-material-manager-dev summary{cursor:pointer;font-weight:900;color:#9d514b;list-style:none}
.production-material-manager-dev summary::-webkit-details-marker{display:none}
.production-material-manager-dev summary::before{content:"+ ";font-weight:900}
.production-material-manager-dev[open] summary::before{content:"- "}
.production-catalog-debug p{margin-top:8px}
.production-material-manager-dev p{margin-top:8px}
.production-catalog-panel .production-material-manager-dev[open]{max-height:min(560px,62dvh);overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.production-material-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px;max-width:760px;padding-bottom:calc(86px + env(safe-area-inset-bottom))}
.production-material-field{display:grid;gap:6px;color:#665a54;font-size:12px;font-weight:900}
.production-material-field input,.production-material-field select,.production-material-field textarea{width:100%;border:1.5px solid #dfc7bd;border-radius:11px;padding:10px 11px;background:white;color:var(--ink);font:inherit;font-size:13px;box-shadow:inset 0 1px 0 rgba(70,42,32,.03)}
.production-material-field input:focus,.production-material-field select:focus,.production-material-field textarea:focus{outline:3px solid rgba(232,121,115,.18);border-color:#d69088}
.production-material-field small{color:#7d706a;font-size:11px;font-weight:700;line-height:1.45}
.production-material-field-wide,.production-material-file-field{grid-column:1/-1}
.production-material-id-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.production-material-id-control input{min-width:0}
.production-material-order-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.production-material-order-control input{min-width:0}
.production-material-id-control .secondary,.production-material-order-control .secondary{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:40px;padding:9px 14px;border:1px solid #d69088;border-radius:12px;background:#fff7f4;color:#9d514b;-webkit-text-fill-color:#9d514b;box-shadow:0 1px 0 rgba(157,81,75,.08);font-size:12px;font-weight:900;line-height:1.3;opacity:1}
.production-material-id-control .secondary:hover,.production-material-order-control .secondary:hover{background:#fff0ea;border-color:#c97970}
.production-material-id-control .secondary:focus-visible,.production-material-order-control .secondary:focus-visible{outline:3px solid rgba(232,121,115,.28);outline-offset:2px}
.production-material-id-status{display:inline-flex;width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;background:#f4f1ef;color:var(--muted);-webkit-text-fill-color:var(--muted)}
.production-material-id-status.is-ok{background:#edf8ea;color:#4d7a46;-webkit-text-fill-color:#4d7a46}
.production-material-id-status.is-warning{background:#fff0ea;color:#b95d58;-webkit-text-fill-color:#b95d58}
.production-material-order-status{display:inline-flex;width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;background:#f4f1ef;color:var(--muted);-webkit-text-fill-color:var(--muted)}
.production-material-order-status.is-ok{background:#edf8ea;color:#4d7a46;-webkit-text-fill-color:#4d7a46}
.production-material-order-status.is-warning{background:#fff0ea;color:#8a6650;-webkit-text-fill-color:#8a6650}
.production-material-file-field ul{margin:4px 0 0;padding-left:18px;color:var(--muted);font-size:12px;font-weight:700;line-height:1.55}
.production-material-preview{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;align-items:start;margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fffaf7}
.production-material-preview-frame{display:grid;place-items:center;width:140px;aspect-ratio:1;border:1px dashed #d6b6aa;border-radius:12px;background:#f7eee9;overflow:hidden;color:var(--muted);text-align:center;font-size:11px;font-weight:800;line-height:1.45}
.production-material-preview-frame img{width:100%;height:100%;object-fit:cover;display:block;background:white}
.production-material-preview-frame img[hidden],.production-material-preview[data-state="empty"] .production-material-preview-frame img{display:none}
.production-material-preview-frame span{padding:0 10px}
.production-material-preview:not([data-state="empty"]) .production-material-preview-frame span{display:none}
.production-material-preview-meta{display:grid;gap:5px;margin:0}
.production-material-preview-meta div{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.45}
.production-material-preview-meta dt{color:var(--muted);font-weight:900}
.production-material-preview-meta dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.production-material-preview.is-ok{border-color:rgba(77,122,70,.38);background:#f3fbf2}
.production-material-preview.is-ok [data-preview-square]{color:#4d7a46;font-weight:900}
.production-material-preview.is-warning{border-color:rgba(185,93,88,.5);background:#fff4ef}
.production-material-preview.is-warning [data-preview-square]{color:#b95d58;font-weight:900}
.production-material-confirmation{display:grid;gap:10px;padding:12px;border:1px solid rgba(232,121,115,.28);border-radius:14px;background:#fff8f4}
.production-material-confirmation h4{margin:0;color:var(--ink);font-size:14px}
.production-material-confirmation dl{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:0}
.production-material-confirmation div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:start;font-size:12px;line-height:1.45}
.production-material-confirmation dt{color:var(--muted);font-weight:900}
.production-material-confirmation dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.production-material-validation-summary{display:grid;gap:8px;padding:10px;border-radius:12px;border:1px solid rgba(214,100,95,.28);background:#fff4ef;color:var(--ink);font-size:12px;line-height:1.5}
.production-material-validation-summary.is-ok{border-color:rgba(77,122,70,.32);background:#f3fbf2}
.production-material-validation-summary.is-blocked strong{color:#b95d58;-webkit-text-fill-color:#b95d58}
.production-material-validation-summary.is-ok strong{color:#4d7a46;-webkit-text-fill-color:#4d7a46}
.production-material-validation-summary p{margin:0;color:#8a6650;font-weight:900}
.production-material-validation-summary ul{margin:0;padding-left:18px}
.production-material-validation-blockers{color:#b95d58;-webkit-text-fill-color:#b95d58;font-weight:900}
.production-material-validation-warnings{color:#8a6650;-webkit-text-fill-color:#8a6650;font-weight:800}
.production-material-flags{display:grid;gap:7px;padding:10px;border:1px dashed var(--line);border-radius:12px;background:#fffaf7;color:var(--ink);font-size:12px;font-weight:800}
.production-material-flags label{display:flex;align-items:center;gap:8px}
.production-material-target-option.is-disabled{opacity:.56}
.production-material-target-option input:disabled{cursor:not-allowed}
.production-material-publication-note,.production-material-target-disabled-note{display:block;padding:7px 9px;border-radius:10px;background:#fff4ef;color:#8a6650!important;-webkit-text-fill-color:#8a6650;font-weight:800}
.production-material-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.production-material-actions .secondary{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;max-width:320px;min-height:50px;padding:12px 22px;border:1px solid #d8645f;border-radius:16px;background:linear-gradient(135deg,#f26f6b,#f59b83);color:white;-webkit-text-fill-color:white;box-shadow:0 8px 18px rgba(232,121,115,.22);font-size:14px;font-weight:900;line-height:1.35;white-space:normal;opacity:1;text-align:center}
.production-material-actions .secondary:hover{filter:brightness(1.02);box-shadow:0 10px 20px rgba(232,121,115,.28)}
.production-material-actions .secondary:focus-visible{outline:3px solid rgba(232,121,115,.34);outline-offset:2px}
.production-material-actions .secondary:disabled{cursor:not-allowed;border-color:#d8ccc6;background:#e9e1dd;color:#6e625d;-webkit-text-fill-color:#6e625d;box-shadow:none;filter:none;opacity:1}
.production-material-edit-cancel{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #d6b6aa;border-radius:14px;background:#fffaf7;color:#8a6650;-webkit-text-fill-color:#8a6650;font-size:13px;font-weight:900;line-height:1.35;opacity:1}
.production-material-edit-cancel[hidden]{display:none}
.production-material-edit-cancel:hover{background:#fff3ed;border-color:#c99688}
.production-material-message{flex:1 1 100%;margin-top:0;color:#4d7a46;-webkit-text-fill-color:#4d7a46;font-weight:800}
.production-material-complete-overlay{position:fixed;inset:0;z-index:86;display:none;place-items:center;padding:18px}
.production-material-complete-overlay.open{display:grid}
.production-material-complete-scrim{position:absolute;inset:0;background:rgba(45,37,33,.34)}
.production-material-complete-sheet{position:relative;z-index:1;width:min(420px,calc(100% - 32px));display:grid;gap:10px;padding:18px;border:1px solid rgba(232,121,115,.28);border-radius:20px;background:#fffaf7;box-shadow:0 18px 54px rgba(70,42,32,.22);color:var(--ink)}
.production-material-complete-sheet h3{margin:0;font-size:18px;letter-spacing:0}
.production-material-complete-sheet p{margin:0;color:#665a54;font-size:13px;font-weight:800;line-height:1.55}
.production-material-complete-sheet small{display:block;padding:8px 10px;border-radius:12px;background:#f3fbf2;color:#4d7a46;-webkit-text-fill-color:#4d7a46;font-size:11px;font-weight:800;line-height:1.5}
.production-material-complete-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.production-material-complete-actions button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:1 1 160px;min-height:42px;padding:10px 14px;border:1px solid #d69088;border-radius:13px;background:#fff7f4;color:#9d514b;-webkit-text-fill-color:#9d514b;font-size:12px;font-weight:900;line-height:1.35;text-align:center;opacity:1}
.production-material-complete-actions button.secondary{border-color:#d8645f;background:linear-gradient(135deg,#f26f6b,#f59b83);color:white;-webkit-text-fill-color:white;box-shadow:0 8px 18px rgba(232,121,115,.2)}
.production-material-complete-actions button:hover{filter:brightness(1.02)}
.production-design-edit-panel{display:grid;gap:12px;padding-bottom:calc(86px + env(safe-area-inset-bottom))}
.production-design-edit-panel h3{margin:0;color:var(--ink);font-size:16px}
.production-design-edit-panel p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.production-design-edit-preview{display:grid;grid-template-columns:116px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fffaf7}
.production-design-edit-preview .shop-insert-thumb{width:116px;aspect-ratio:1}
.production-design-edit-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.production-design-edit-validation{display:grid;gap:8px;padding:10px;border-radius:12px;border:1px solid rgba(214,100,95,.28);background:#fff4ef;color:var(--ink);font-size:12px;line-height:1.5}
.production-design-edit-validation.is-ok{border-color:rgba(77,122,70,.32);background:#f3fbf2}
.production-design-edit-validation.is-blocked strong{color:#b95d58;-webkit-text-fill-color:#b95d58}
.production-design-edit-validation.is-ok strong{color:#4d7a46;-webkit-text-fill-color:#4d7a46}
.production-design-edit-validation ul{margin:0;padding-left:18px}
.production-design-edit-cancel-overlay{position:fixed;inset:0;z-index:88;display:none;place-items:center;padding:18px}
.production-design-edit-cancel-overlay.open{display:grid}
.production-design-edit-cancel-scrim{position:absolute;inset:0;background:rgba(45,37,33,.34)}
.production-design-edit-cancel-sheet{position:relative;z-index:1;width:min(430px,calc(100% - 32px));display:grid;gap:12px;padding:18px;border:1px solid rgba(232,121,115,.28);border-radius:20px;background:#fffaf7;box-shadow:0 18px 54px rgba(70,42,32,.22);color:var(--ink)}
.production-design-edit-cancel-close{position:absolute;right:10px;top:10px}
.production-design-edit-cancel-sheet h3{margin:0;padding-right:42px;font-size:18px;letter-spacing:0}
.production-design-edit-cancel-sheet p{margin:0;color:#665a54;font-size:13px;font-weight:800;line-height:1.6}
.production-design-edit-cancel-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.production-design-edit-cancel-actions button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:1 1 150px;min-height:42px;padding:10px 14px;border:1px solid #d69088;border-radius:13px;background:#fff7f4;color:#9d514b;-webkit-text-fill-color:#9d514b;font-size:12px;font-weight:900;line-height:1.35;text-align:center;opacity:1}
.production-design-edit-cancel-actions button.danger{border-color:#d8645f;background:linear-gradient(135deg,#f26f6b,#f59b83);color:white;-webkit-text-fill-color:white;box-shadow:0 8px 18px rgba(232,121,115,.2)}
.production-design-trash-confirm-overlay{position:fixed;inset:0;z-index:88;display:none;place-items:center;padding:18px}
.production-design-trash-confirm-overlay.open{display:grid}
.production-design-trash-confirm-scrim{position:absolute;inset:0;background:rgba(45,37,33,.34)}
.production-design-trash-confirm-sheet{position:relative;z-index:1;width:min(450px,calc(100% - 32px));display:grid;gap:12px;padding:18px;border:1px solid rgba(232,121,115,.28);border-radius:20px;background:#fffaf7;box-shadow:0 18px 54px rgba(70,42,32,.22);color:var(--ink)}
.production-design-trash-confirm-close{position:absolute;right:10px;top:10px}
.production-design-trash-confirm-sheet h3{margin:0;padding-right:42px;font-size:18px;letter-spacing:0}
.production-design-trash-confirm-sheet p{margin:0;color:#665a54;font-size:13px;font-weight:800;line-height:1.6}
.production-design-trash-confirm-sheet small{display:block;padding:8px 10px;border-radius:12px;background:#fff4ef;color:#8a6650;-webkit-text-fill-color:#8a6650;font-size:11px;font-weight:800;line-height:1.5}
.production-design-trash-confirm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.production-design-trash-confirm-actions button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:1 1 150px;min-height:42px;padding:10px 14px;border:1px solid #d69088;border-radius:13px;background:#fff7f4;color:#9d514b;-webkit-text-fill-color:#9d514b;font-size:12px;font-weight:900;line-height:1.35;text-align:center;opacity:1}
.production-design-trash-confirm-actions button.danger{border-color:#d8645f;background:linear-gradient(135deg,#f26f6b,#f59b83);color:white;-webkit-text-fill-color:white;box-shadow:0 8px 18px rgba(232,121,115,.2)}
.production-design-trash-confirm-actions button:disabled{cursor:not-allowed;border-color:#d8ccc6;background:#e9e1dd;color:#6e625d;-webkit-text-fill-color:#6e625d;box-shadow:none}
.production-design-restore-confirm-overlay .production-design-trash-confirm-actions button:last-child{border-color:#8fbf87;background:#f3fbf2;color:#4d7a46;-webkit-text-fill-color:#4d7a46}
@media(max-width:720px){.production-material-id-control,.production-material-order-control{grid-template-columns:1fr}.production-material-id-control input,.production-material-id-control .secondary,.production-material-order-control input,.production-material-order-control .secondary{width:100%}}
@media(max-width:560px){.production-site-setting-heading{grid-template-columns:1fr}.production-site-setting-toggle{justify-content:space-between;width:100%}}
@media(max-width:640px){.production-material-form{grid-template-columns:1fr}.production-material-preview,.production-design-edit-preview{grid-template-columns:1fr}.production-material-preview-frame,.production-design-edit-preview .shop-insert-thumb{width:min(100%,220px);justify-self:center}.production-material-actions .secondary,.production-material-complete-actions button,.production-site-settings-confirm-actions button,.production-design-edit-cancel-actions button,.production-design-trash-confirm-actions button{flex-basis:100%;width:100%}}
.production-catalog-debug{display:grid;gap:12px}
.production-catalog-debug h3{margin:0;color:var(--ink);font-size:18px;letter-spacing:0}
.production-catalog-debug-notice{padding:9px 10px;border:1px solid rgba(77,122,70,.28);border-radius:12px;background:#f3fbf2;color:#4d7a46!important;-webkit-text-fill-color:#4d7a46;font-weight:900}
.production-catalog-debug-notice.is-error{border-color:rgba(185,93,88,.35);background:#fff1f0;color:#b73535!important;-webkit-text-fill-color:#b73535}
.production-catalog-debug-tabs{display:flex;flex-wrap:wrap;gap:8px}
.production-catalog-debug-tabs button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border:1px solid #d6b6aa;border-radius:999px;background:#fffaf7;color:#8a6650;-webkit-text-fill-color:#8a6650;font-size:12px;font-weight:900;line-height:1.25}
.production-catalog-debug-tabs button.is-active{border-color:#d8645f;background:#fff0ea;color:#9d514b;-webkit-text-fill-color:#9d514b}
.production-catalog-debug-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:2px}
.production-catalog-debug-empty{grid-column:1/-1;padding:14px;border:1px dashed var(--line);border-radius:14px;background:#fffaf7;color:var(--muted);font-weight:900}
.production-catalog-debug-card{display:grid;gap:12px;align-content:start;padding:12px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:0 8px 22px rgba(70,42,32,.05)}
.production-catalog-debug-card.is-inactive{background:#f7f3f0}
.production-catalog-debug-card.is-temporary{border-color:rgba(232,121,115,.45);background:#fffaf7}
.production-catalog-debug-card.is-trashed{border-color:#d7cfca;background:#f7f3f0}
.production-catalog-debug-card-header{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:start;height:112px}
.production-catalog-debug-card .production-shop-insert-thumb{width:88px;height:88px;min-height:88px;aspect-ratio:1}
.production-catalog-debug-card .shop-insert-design-preview{height:100%;min-height:0;box-sizing:border-box;padding:7px;gap:3px}
.production-catalog-debug-card .shop-insert-design-preview strong{font-size:8px}
.production-catalog-debug-card .shop-insert-design-preview span{min-width:36px;min-height:26px;font-size:12px}
.production-catalog-debug-card .shop-insert-design-preview small{font-size:8px}
.production-catalog-debug-heading{min-width:0;display:grid;gap:5px;align-content:start}
.production-catalog-debug-heading strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-width:0;max-height:38px;overflow:hidden;color:var(--ink);font-size:13px;line-height:1.45;overflow-wrap:break-word;word-break:normal}
.production-catalog-debug-heading code{display:block;min-width:0;max-width:100%;overflow:hidden;color:#9d514b;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.production-catalog-debug-badge{display:inline-flex;align-items:center;min-height:21px;padding:3px 7px;border-radius:999px;background:#fff0e8;color:#9d514b;font-size:10px;font-weight:900;line-height:1.2}
.production-catalog-debug-badge.is-active{background:#edf8ea;color:#4d7a46}
.production-catalog-debug-badge.is-admin{background:#fff0e8;color:#9d514b}
.production-catalog-debug-badge.is-customer{background:#eef6ff;color:#486a91}
.production-catalog-debug-badge.is-muted{background:#ece6e2;color:#6f6864}
.production-catalog-debug-badge.design-status-public{background:#edf8ea;color:#4d7a46}
.production-catalog-debug-badge.design-status-backyard{background:#f0edff;color:#6552a8}
.production-catalog-debug-badge.design-status-unpublished{background:#ece6e2;color:#6f6864}
.production-catalog-debug-badge.is-temporary{background:#fff0e8;color:#b95d58;border:1px solid rgba(232,121,115,.28)}
.production-catalog-debug-meta{display:grid;gap:5px;margin:0}
.production-catalog-debug-meta div{display:grid;grid-template-columns:106px minmax(0,1fr);gap:8px;font-size:11px;line-height:1.45}
.production-catalog-debug-meta dt{color:var(--muted);font-weight:800}
.production-catalog-debug-meta dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.production-catalog-debug-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:2px}
.production-catalog-debug-actions button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border:1px solid #d69088;border-radius:12px;background:#fff7f4;color:#9d514b;-webkit-text-fill-color:#9d514b;font-size:12px;font-weight:900;line-height:1.25;opacity:1}
.production-catalog-debug-actions button:hover{background:#fff0ea;border-color:#c97970}
.production-catalog-debug-actions button.is-danger{border-color:#d8aaa0;background:#fff4ef;color:#b95d58;-webkit-text-fill-color:#b95d58}
.production-catalog-debug-actions button.is-restore{border-color:#9fc79a;background:#f3fbf2;color:#4d7a46;-webkit-text-fill-color:#4d7a46}
.production-asset-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:18px}
.production-asset-scrim{position:absolute;inset:0;background:rgba(45,37,33,.48)}
.production-asset-sheet{position:relative;z-index:1;width:min(860px,100%);max-height:min(86dvh,720px);display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:14px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--bg);box-shadow:0 18px 60px rgba(0,0,0,.24);overflow:hidden}
.production-asset-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.production-asset-header p{margin:0 0 4px;color:#b95d58;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.production-asset-header h3{margin:0;font-size:18px;letter-spacing:0}
.production-asset-notice,.production-asset-empty{margin:0;padding:10px 12px;border:1px solid #ead7cf;border-radius:12px;background:#fff8f4;color:#8a6f64;font-size:12px;font-weight:800;line-height:1.5}
.production-asset-grid{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px;padding:2px}
.production-asset-card{position:relative;display:grid;gap:8px;align-content:start;padding:10px;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink);text-align:center;cursor:pointer}
.production-asset-card.is-unused{background:#f7f3f0;border-style:dashed}
.production-asset-card.is-selected{border-color:rgba(232,121,115,.95);background:#fff8f4;box-shadow:0 0 0 2px rgba(232,121,115,.18)}
.production-asset-card .production-shop-insert-thumb{width:100%;min-height:128px;aspect-ratio:1}
.production-asset-card strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.production-asset-card span,.production-asset-card small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.production-asset-card em{position:absolute;top:8px;left:8px;padding:3px 8px;border-radius:999px;background:#fff0e8;color:#9d514b;font-size:11px;font-style:normal;font-weight:900;box-shadow:0 4px 12px rgba(70,42,32,.12)}
.production-asset-card.is-selected em{background:var(--dark);color:white}
.production-order-card .secondary{width:100%;min-height:36px;border-radius:12px;font-size:12px}
.production-detail{display:grid;gap:12px;align-content:start}
.production-detail-state{display:grid;gap:6px;margin:0 0 12px;padding:10px;border-radius:14px;background:#fff8f4;color:var(--muted);font-size:12px}
.production-detail-state p{margin:0;line-height:1.45}
.production-detail-state strong{color:var(--ink)}
.production-detail-summary.is-expired{background:#f4f1ef}
.production-detail-summary.is-expired .production-detail-state{background:#ebe7e4}
.production-detail-summary.is-cancelled{background:#f4f1ef}
.production-detail-summary.is-cancelled .production-detail-state{background:#ebe7e4}
.production-detail-summary.is-paid .production-detail-state{background:#f3fbf2}
.production-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.production-actions .secondary{min-height:34px;border-radius:12px;font-size:12px}
.production-actions .secondary:disabled{opacity:.48;cursor:not-allowed;box-shadow:none;transform:none}
.production-retention-panel{display:grid;gap:12px;min-width:0}
.production-retention-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
.production-retention-fields div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;padding:8px 10px;border-radius:11px;background:#fff8f4;color:var(--muted);font-size:11px;line-height:1.5;min-width:0}
.production-retention-fields dt{font-weight:900}.production-retention-fields dd{margin:0;color:var(--ink);text-align:right;overflow-wrap:anywhere}
.production-retention-message{margin:0;padding:9px 11px;border-radius:11px;background:#f4f1ef;color:var(--muted);font-size:12px;font-weight:700;line-height:1.55;overflow-wrap:anywhere}
.production-retention-message.is-error{background:#fff0ee;color:#9b3f39}.production-retention-message.is-warning{background:#fff7df;color:#7a5a19}.production-retention-message.is-success,.production-retention-message.is-completed{background:#edf7ec;color:#3f7139}.production-retention-message.is-progress{background:#eef5fb;color:#315d78}
.production-retention-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.production-retention-controls label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:11px;font-weight:800}
.production-retention-controls input,.production-retention-controls select{width:100%;min-width:0;min-height:38px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font:inherit}
.production-retention-controls input:disabled,.production-retention-controls select:disabled{opacity:.55;background:#f4f1ef}
.production-retention-action-row{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.production-retention-action-row .secondary,.production-retention-action-row .primary{min-height:38px;border-radius:11px;font-size:12px}
.production-retention-action-row button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none;transform:none}
.production-retention-confirmation{display:grid;gap:10px;padding:12px;border:1px solid rgba(232,121,115,.35);border-radius:13px;background:#fff4ef;color:var(--ink);font-size:12px}
.production-retention-confirmation ul{display:grid;gap:5px;margin:0;padding-left:20px;color:var(--muted);line-height:1.5}
.production-action-note{flex:1 1 100%;margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.primary-production-action{border-color:rgba(232,121,115,.5);color:var(--accent)}
.production-drive-manifest{padding:14px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 8px 22px rgba(70,42,32,.05)}
.production-drive-manifest h4{margin:0 0 10px;font-size:14px}
.production-drive-manifest p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.production-drive-manifest ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.production-drive-manifest li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;color:var(--muted);font-size:12px}
.production-drive-manifest li strong{color:var(--ink);font-weight:800;overflow-wrap:anywhere}
.production-drive-manifest li span{font-size:11px;color:#9d514b;white-space:nowrap}
.production-drive-manifest .drive-design{display:block;padding:8px;border-radius:12px;background:#fff8f4}
.production-drive-manifest .drive-design > strong{display:block;margin-bottom:7px}
.production-drive-manifest .drive-design ul{padding-left:10px}
.production-operation-log{padding:14px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 8px 22px rgba(70,42,32,.05)}
.production-operation-log h4{margin:0 0 10px;font-size:14px}
.production-operation-log p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.production-operation-log ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.production-operation-log li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;color:var(--muted);font-size:12px}
.production-operation-log li strong{color:var(--ink);font-weight:800;overflow-wrap:anywhere}
.production-operation-log li small{grid-column:1/-1;color:var(--muted);font-size:11px}
.production-thumbs{display:grid;grid-template-columns:repeat(9,minmax(34px,1fr));gap:4px;margin-top:10px}
.production-thumbs .cart-thumb{border-radius:7px}
@media(max-width:760px){.production-sheet,.production-utility-sheet{width:100%;height:94dvh;top:auto;bottom:0;transform:translateX(-50%);border-radius:22px 22px 0 0;border-bottom:0}.production-body{grid-template-columns:1fr}.production-list{max-height:220px}.production-thumbs{grid-template-columns:repeat(3,1fr)}.production-shop-insert-grid{grid-template-columns:1fr}.production-shop-insert-row{grid-template-columns:1fr;align-items:stretch}.production-entry{padding:0 10px;margin-left:auto;margin-right:8px}.production-admin-menu{right:10px;left:auto!important;min-width:176px}}
@media(max-width:520px){.production-drive-connection-card{gap:8px;padding:9px 10px}.production-drive-connection-copy{grid-template-columns:1fr;gap:2px}.production-drive-connection-copy h3{grid-row:auto}.production-drive-connection-card>.secondary{min-height:44px;padding:8px 10px;font-size:11px}}
@media(max-width:520px){.production-cleanup-payment-warning{grid-template-columns:1fr auto;gap:5px 8px;padding:10px}.production-cleanup-payment-warning p{grid-column:1/-1;font-size:12px}.production-cleanup-payment-warning span{grid-column:2;grid-row:1}}
@media(max-width:520px){.production-drive-export{grid-template-columns:1fr}.production-drive-export-status{justify-self:start}.production-drive-export p,.production-drive-export>.secondary{grid-column:1}.production-drive-export>.secondary{width:100%;min-height:44px}}
@media(max-width:520px){.production-retention-panel{padding:12px}.production-retention-fields,.production-retention-controls{grid-template-columns:1fr}.production-retention-fields div{grid-template-columns:minmax(0,1fr);gap:3px}.production-retention-fields dd{text-align:left}.production-retention-action-row{display:grid;grid-template-columns:1fr}.production-retention-action-row .secondary,.production-retention-action-row .primary{width:100%;min-height:44px}.production-retention-confirmation{padding:11px}}
@media(max-width:520px){.confirm-sheet{top:auto;bottom:0;transform:translateX(-50%);width:100%;max-height:94dvh;border-radius:22px 22px 0 0;border-bottom:0;padding:22px 16px calc(18px + env(safe-area-inset-bottom))}.cart-item{grid-template-columns:86px minmax(0,1fr);align-items:start}.cart-thumbs{width:86px}.cart-item-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.pending-checkout-card{grid-template-columns:1fr}.pending-checkout-actions{min-width:0}.confirm-actions{grid-template-columns:1fr;bottom:calc(-18px - env(safe-area-inset-bottom));margin:0 -16px calc(-18px - env(safe-area-inset-bottom));padding:12px 16px calc(18px + env(safe-area-inset-bottom))}.confirm-actions .primary{order:-1}}
#stepSelect .select-card{padding:18px}
#stepSelect .select-card h2{margin-bottom:8px;font-size:24px}
#stepSelect .select-card p:not(.eyebrow){margin-bottom:0;font-size:13px;line-height:1.55}
#stepSelect .source-options{gap:8px;margin-top:14px}
#stepSelect .source-options .primary,#stepSelect .source-options .secondary{min-height:40px;padding:0 14px;font-size:13px}
@media(max-width:420px){#stepSelect .select-card{padding:16px}#stepSelect .source-options .primary,#stepSelect .source-options .secondary{min-height:42px}}
.overlay.select-mode .flow-sheet{height:auto;min-height:0}
.overlay.select-mode .flow-body{overflow:hidden;padding:12px}
.overlay.select-mode .sheet-header{grid-template-columns:48px 1fr 48px;padding:10px 12px}
.overlay.select-mode .sheet-title{grid-column:2;justify-self:center;text-align:center}
.overlay.select-mode .sheet-title strong{font-size:15px}
.overlay.select-mode .sheet-title p{font-size:10px}
.overlay.select-mode #stepSelect.active{display:grid;place-items:center}
.overlay.select-mode #stepSelect .select-card{width:min(100%,360px);padding:16px;text-align:center;border-radius:20px}
.overlay.select-mode #stepSelect .select-card h2{font-size:22px;margin-bottom:6px}
.overlay.select-mode #stepSelect .select-card p:not(.eyebrow){font-size:12px;line-height:1.45}
.overlay.select-mode #stepSelect .source-options{gap:7px;margin-top:12px}
.overlay.select-mode #stepSelect .source-options .primary,.overlay.select-mode #stepSelect .source-options .secondary{min-height:38px;font-size:12px;padding:0 12px}
@media(min-width:821px){.overlay.select-mode .flow-sheet{width:min(430px,calc(100% - 40px))}}
@media(max-width:820px){.overlay.select-mode .flow-sheet{height:auto;max-height:88dvh}.overlay.select-mode #stepSelect .select-card{width:100%}}
@media(max-width:420px){.overlay.select-mode .flow-body{padding:10px}.overlay.select-mode #stepSelect .select-card{padding:20px 16px}.overlay.select-mode #stepSelect .source-options .primary,.overlay.select-mode #stepSelect .source-options .secondary{min-height:40px}}
.overlay.select-mode .flow-sheet{bottom:50%;transform:translate(-50%,42%)}
.overlay.open.select-mode .flow-sheet{transform:translate(-50%,42%)}
@media(min-width:821px){.overlay.select-mode .flow-sheet{bottom:50%;transform:translate(-50%,42%)}.overlay.open.select-mode .flow-sheet{transform:translate(-50%,42%)}}
@media(max-width:820px){.overlay.select-mode .flow-sheet{bottom:50%;transform:translate(-50%,42%);border-radius:24px}.overlay.open.select-mode .flow-sheet{transform:translate(-50%,42%)}}
.overlay.select-mode .sheet-title p:empty{display:none}
.overlay.select-mode .sheet-title strong{display:block}
.overlay.select-mode #stepSelect.active{min-height:260px}
.overlay.select-mode #stepSelect .select-card{min-height:230px;padding:30px 20px;display:grid;align-content:center}
.overlay.select-mode #stepSelect .select-card p{margin:0;font-size:12px;line-height:1.45}
.overlay.select-mode #stepSelect .source-options{margin-top:22px;gap:10px}
@media(max-width:420px){.overlay.select-mode #stepSelect.active{min-height:250px}.overlay.select-mode #stepSelect .select-card{min-height:220px;padding:28px 18px}}
.overlay.preview-mode .add-more-btn{background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;border:0;box-shadow:0 12px 24px rgba(232,121,115,.22)}
.overlay.preview-mode .thumb:before{content:"";position:absolute;inset:6.15%;z-index:2;border:2px solid rgba(255,255,255,.66);outline:1.5px dashed rgba(157,81,75,.76);outline-offset:-3px;box-shadow:0 0 0 1px rgba(45,37,33,.12);pointer-events:none}
.overlay.preview-mode .thumb:after{display:none}
.overlay.preview-mode .slot-num{display:none}
.guide-legend{display:grid;gap:6px;margin:0}
.guide-legend span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:900}
.guide-legend i{display:inline-block;width:22px;height:22px;border-radius:5px;background:#f7eee9}
.legend-fold{border:1.5px dashed rgba(45,37,33,.48);box-shadow:none;background:rgba(255,255,255,.62)}
.preview-copy{display:grid;gap:5px;color:var(--muted)}
.preview-copy p,.preview-copy small{margin:0;line-height:1.35}
.preview-copy p{font-size:11px}
.preview-copy small{font-size:9px;color:#9a8b84}
.overlay.preview-mode .sheet-title{text-align:left;justify-self:start}
.overlay.preview-mode .sheet-title p:empty{display:none}
.overlay.preview-mode .sheet-title strong{display:block}
.overlay.preview-mode .thumb .slot-actions{bottom:5px;grid-template-columns:repeat(3,22px);gap:4px;padding:3px;background:rgba(45,37,33,.16)}
.overlay.preview-mode .thumb .icon-btn{min-width:22px;min-height:22px;background:rgba(255,255,255,.58);box-shadow:none;color:#6f5951}
.overlay.preview-mode .thumb .delete-btn{background:rgba(255,243,241,.72);color:#9d514b}
.overlay.preview-mode .thumb .icon-btn svg{width:17px;height:17px}
@media(max-width:420px){.overlay.preview-mode .thumb .slot-actions{grid-template-columns:repeat(3,21px)}.overlay.preview-mode .thumb .icon-btn{min-width:21px;min-height:21px}.overlay.preview-mode .thumb .icon-btn svg{width:16px;height:16px}.guide-legend span{font-size:10px}.preview-copy small{display:none}}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Sans","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;font-weight:400;letter-spacing:0}
h1,h2,.sheet-title strong,.preview-count{font-weight:700;letter-spacing:0}
.brand,.primary,.secondary,.close-btn,.icon-btn,.tool-tab,.tool-btn,.filter-btn,.edit-action,.specs span,.eyebrow{font-weight:700;letter-spacing:0}
p,.lead,.preview-note,.preview-copy p,.preview-copy small,.select-card p{line-height:1.6}
.primary,.secondary{font-size:14px}
.overlay.preview-mode .preview-copy p{font-size:11px;font-weight:500}
.overlay.preview-mode .preview-copy small{font-size:9px;font-weight:400}
.overlay.preview-mode .thumb:before,.overlay.preview-mode .thumb:after{content:"";position:absolute;inset:6.15%;z-index:2;pointer-events:none}
.overlay.preview-mode .thumb:before{border:2px solid rgba(255,255,255,.72);box-shadow:0 0 0 1px rgba(45,37,33,.12)}
.overlay.preview-mode .thumb:after{display:block;border:0;background:linear-gradient(90deg,rgba(157,81,75,.82) 0 8px,transparent 8px 15px) top left/15px 2px repeat-x,linear-gradient(90deg,rgba(157,81,75,.82) 0 8px,transparent 8px 15px) bottom left/15px 2px repeat-x,linear-gradient(180deg,rgba(157,81,75,.82) 0 8px,transparent 8px 15px) top left/2px 15px repeat-y,linear-gradient(180deg,rgba(157,81,75,.82) 0 8px,transparent 8px 15px) top right/2px 15px repeat-y}
.legend-fold{background:linear-gradient(90deg,rgba(157,81,75,.72) 0 8px,transparent 8px 15px) center/15px 2px repeat-x,rgba(255,255,255,.62);border:2px solid rgba(255,255,255,.82);box-shadow:0 0 0 1px rgba(45,37,33,.12)}
.product-page{background:#fffaf7}
.product-visual{border-radius:26px;padding:18px;background:#fff;border-color:#eaded8;box-shadow:0 18px 48px rgba(70,42,32,.1)}
.sample-grid{gap:10px}
.sample-grid i{border-radius:14px;background:linear-gradient(145deg,#dc746d,#f0a28e)}
.sample-grid i:nth-child(2),.sample-grid i:nth-child(6),.sample-grid i:nth-child(7){background:linear-gradient(145deg,#6f9db2,#d9c88f)}
.sample-grid i:nth-child(3),.sample-grid i:nth-child(4),.sample-grid i:nth-child(8){background:linear-gradient(145deg,#c7799d,#efb7aa)}
.sample-grid i:nth-child(5),.sample-grid i:nth-child(9){background:linear-gradient(145deg,#e4a36f,#e7c992)}
.overlay.preview-mode .thumb:before{border:1.5px dashed rgba(255,255,255,.84);box-shadow:0 0 0 1px rgba(45,37,33,.18);background:none}
.overlay.preview-mode .thumb:after{display:none}
.legend-fold{background:transparent;border:1.5px dashed rgba(157,81,75,.62);box-shadow:none}
.preview-copy{gap:6px}
.preview-copy small{display:none}
.product-copy .upload-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:min(360px,100%);margin:10px 0 0 clamp(18px,8%,52px)}
.upload-cta svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
@media(max-width:820px){.product-copy .upload-cta{display:flex;margin:18px auto 0}}
.product-copy .upload-cta{margin-left:clamp(54px,14%,92px)}
.primary,.overlay.preview-mode .add-more-btn,.edit-action.done{transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,opacity .18s ease}
@media(hover:hover){.primary:not(:disabled):hover,.overlay.preview-mode .add-more-btn:not(:disabled):hover,.edit-action.done:hover{filter:saturate(1.08) brightness(.97);box-shadow:0 15px 28px rgba(232,121,115,.28);transform:translateY(-1px)}}
.primary:not(:disabled):active,.overlay.preview-mode .add-more-btn:not(:disabled):active,.edit-action.done:active{filter:saturate(1.04) brightness(.94);box-shadow:0 8px 18px rgba(232,121,115,.2);transform:translateY(1px)}
@media(max-width:820px){.product-copy .upload-cta{margin-left:auto}}
.overlay.preview-mode .thumb:before{content:"";position:absolute;inset:6.15%;z-index:2;border:0;outline:0;box-shadow:none;background:linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/20px 2px repeat-x,linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) bottom left/20px 2px repeat-x,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/2px 20px repeat-y,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top right/2px 20px repeat-y;pointer-events:none}
.overlay.preview-mode .thumb:after{content:"";position:absolute;inset:6.15%;z-index:3;border:0;background:linear-gradient(#fff 0 0) top left/16px 2px no-repeat,linear-gradient(#fff 0 0) top left/2px 16px no-repeat,linear-gradient(#fff 0 0) top right/16px 2px no-repeat,linear-gradient(#fff 0 0) top right/2px 16px no-repeat,linear-gradient(#fff 0 0) bottom left/16px 2px no-repeat,linear-gradient(#fff 0 0) bottom left/2px 16px no-repeat,linear-gradient(#fff 0 0) bottom right/16px 2px no-repeat,linear-gradient(#fff 0 0) bottom right/2px 16px no-repeat;pointer-events:none}
.legend-fold{background:linear-gradient(90deg,#fff 0 8px,rgba(232,121,115,.82) 8px 16px) center/16px 2px repeat-x;border:0;box-shadow:0 0 0 1px rgba(45,37,33,.12)}
.product-copy .upload-cta{width:min(360px,calc(100% - 36px));margin:12px clamp(8px,5%,36px) 0 auto}
@media(max-width:820px){.product-copy .upload-cta{width:min(360px,100%);margin:18px auto 0}}
.product-page{min-height:100dvh;overflow-x:hidden}
.product-hero{min-height:calc(100dvh - 63px);padding:clamp(24px,4vh,42px) 0;gap:clamp(28px,5vw,54px)}
.product-visual{width:min(100%,500px);justify-self:center}
.product-copy{align-self:center}
.product-copy .lead{max-width:520px}
.dev-version{display:inline-flex;margin:0 0 10px;padding:4px 9px;border:1px solid rgba(157,81,75,.18);border-radius:999px;background:rgba(255,255,255,.72);color:#9d514b;font-size:11px;font-weight:900;line-height:1.3}
.product-copy .upload-cta{width:min(360px,calc(100% - 44px));margin:20px clamp(12px,6%,44px) 0 auto}
.primary,.overlay.preview-mode .add-more-btn,.edit-action.done{border:1px solid transparent;background:linear-gradient(135deg,var(--accent),var(--accent2));color:white}
@media(hover:hover){.primary:not(:disabled):hover,.overlay.preview-mode .add-more-btn:not(:disabled):hover,.edit-action.done:hover{background:#fff;color:var(--accent);border-color:rgba(232,121,115,.58);filter:none;box-shadow:0 12px 28px rgba(232,121,115,.2);transform:translateY(-1px)}}
.primary:not(:disabled):active,.overlay.preview-mode .add-more-btn:not(:disabled):active,.edit-action.done:active{background:#fff;color:var(--accent);border-color:rgba(232,121,115,.68);filter:none;box-shadow:0 7px 18px rgba(232,121,115,.16);transform:translateY(1px)}
@media(max-width:820px){.product-hero{min-height:calc(100dvh - 63px);gap:18px;padding:22px 0;align-content:center}.product-visual{width:min(86vw,360px)}.product-copy .lead{font-size:14px;line-height:1.6}.product-copy .upload-cta{width:min(340px,100%);margin:18px auto 0}}
@media(max-width:420px){.product-hero{gap:14px;padding:18px 0}.product-visual{width:min(82vw,310px)}h1{font-size:clamp(32px,10vw,42px);margin-bottom:12px}.lead{margin-bottom:0}.product-copy .upload-cta{min-height:50px}}
.upload-policy-note{margin:8px auto 0;max-width:340px;color:var(--muted);font-size:11px;line-height:1.55}
.overlay.select-mode #stepSelect .select-card .upload-policy-note{font-size:11px;line-height:1.5}
#stepSelect.is-busy .source-options button{opacity:.55;cursor:default}
.overlay.preview-mode .preview-layout{width:min(100%,720px);grid-template-columns:minmax(0,1fr) minmax(164px,178px);gap:14px;align-items:center}
.overlay.preview-mode .preview-main{align-self:center}
.overlay.preview-mode .preview-side{align-self:center;margin-top:0;max-width:178px}
.legend-fold{position:relative;width:26px;height:26px;border-radius:6px;background:rgba(232,121,115,.08);border:1px solid rgba(232,121,115,.14);box-shadow:none;overflow:hidden}
.legend-fold:before{content:"";position:absolute;inset:5px;background:linear-gradient(90deg,#fff 0 7px,rgba(232,121,115,.84) 7px 14px) top left/14px 2px repeat-x,linear-gradient(90deg,#fff 0 7px,rgba(232,121,115,.84) 7px 14px) bottom left/14px 2px repeat-x,linear-gradient(180deg,#fff 0 7px,rgba(232,121,115,.84) 7px 14px) top left/2px 14px repeat-y,linear-gradient(180deg,#fff 0 7px,rgba(232,121,115,.84) 7px 14px) top right/2px 14px repeat-y}
.legend-fold:after{content:"";position:absolute;inset:5px;background:linear-gradient(#fff 0 0) top left/9px 2px no-repeat,linear-gradient(#fff 0 0) top left/2px 9px no-repeat,linear-gradient(#fff 0 0) top right/9px 2px no-repeat,linear-gradient(#fff 0 0) top right/2px 9px no-repeat,linear-gradient(#fff 0 0) bottom left/9px 2px no-repeat,linear-gradient(#fff 0 0) bottom left/2px 9px no-repeat,linear-gradient(#fff 0 0) bottom right/9px 2px no-repeat,linear-gradient(#fff 0 0) bottom right/2px 9px no-repeat}
@media(max-width:820px){.overlay.preview-mode .preview-layout{width:100%;height:auto;min-height:0;grid-template-columns:1fr;grid-template-rows:auto auto;gap:8px;align-items:start;align-content:start}.overlay.preview-mode .preview-main{align-self:start;display:block;align-items:start;min-height:0;overflow:visible}.overlay.preview-mode .preview-side{align-self:stretch;margin-top:0;max-width:none}.overlay.preview-mode #stepGrid .preview-list{align-self:start;max-height:none;margin:0 auto}.legend-fold{width:24px;height:24px}}
@media(max-width:420px){.overlay.preview-mode #stepGrid .preview-list{max-width:min(100%,330px)}}
@media(max-width:820px){.overlay.preview-mode #stepGrid.active{height:auto!important;overflow:visible!important}.overlay.preview-mode #stepGrid .preview-layout{height:auto!important;min-height:0!important;grid-template-rows:auto auto!important;align-items:start!important;align-content:start!important;overflow:visible!important}.overlay.preview-mode #stepGrid .preview-main{display:block!important;align-self:start!important;min-height:0!important;height:auto!important;overflow:visible!important}.overlay.preview-mode #stepGrid .preview-list{align-self:start!important;width:min(100%,330px)!important;height:min(330px,calc(100vw - 18px))!important;aspect-ratio:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;margin:8px auto 0!important;max-height:none!important}.overlay.preview-mode #stepGrid .slot,.overlay.preview-mode #stepGrid .empty-slot{height:100%!important;min-height:0!important}.overlay.preview-mode #stepGrid .thumb{height:100%!important;aspect-ratio:auto!important}}
@media(max-width:420px){.overlay.preview-mode #stepGrid .preview-list{width:min(100%,330px)!important;height:min(330px,calc(100vw - 18px))!important}}
.overlay.preview-mode:not(.edit-mode){overflow:hidden;overscroll-behavior:contain}
.overlay.open.preview-mode:not(.edit-mode) .flow-sheet{top:50%;bottom:auto;max-height:calc(100dvh - 24px);height:min(92dvh,760px);grid-template-rows:auto minmax(0,1fr) auto;transform:translate(-50%,-50%)}
.overlay.preview-mode:not(.edit-mode) .flow-body{min-height:0;overflow-y:auto;overflow-x:hidden;padding:10px 12px;overscroll-behavior:contain}
.overlay.preview-mode:not(.edit-mode) #stepGrid.active{height:auto!important;min-height:100%;overflow:visible!important}
.overlay.preview-mode:not(.edit-mode) #stepGrid .preview-layout{height:auto!important;min-height:0!important;align-items:start!important;align-content:start!important;overflow:visible!important}
.overlay.preview-mode:not(.edit-mode) #stepGrid .preview-main{min-height:0!important;height:auto!important;overflow:visible!important}
.overlay.preview-mode:not(.edit-mode) #stepGrid .preview-list{--preview-grid-size:clamp(180px,calc(100dvh - 220px),430px);display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;width:min(100%,var(--preview-grid-size))!important;height:auto!important;aspect-ratio:1/1!important;max-width:min(100%,var(--preview-grid-size))!important;max-height:none!important;margin:8px auto 0!important}
.overlay.preview-mode:not(.edit-mode) #stepGrid .slot,.overlay.preview-mode:not(.edit-mode) #stepGrid .empty-slot{width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1/1!important}
.overlay.preview-mode:not(.edit-mode) #stepGrid .thumb{width:100%!important;height:100%!important;aspect-ratio:1/1!important}
@media(max-width:420px){.overlay.preview-mode:not(.edit-mode) #stepGrid .preview-list{--preview-grid-size:clamp(168px,calc(100dvh - 190px),330px)}}
#stepGrid .slot.is-preset-design .thumb .slot-actions{grid-template-columns:repeat(2,32px)}
@media(max-width:820px){#stepGrid .slot.is-preset-design .thumb .slot-actions{grid-template-columns:repeat(2,30px)}}
@media(max-width:420px){#stepGrid .slot.is-preset-design .thumb .slot-actions{grid-template-columns:repeat(2,28px)}}
.overlay.edit-mode .sheet-title p:empty{display:none}
.overlay.edit-mode .sheet-title strong{display:block}
.overlay.edit-mode .flow-body{overflow:hidden;padding:10px 14px}
.edit-step.active{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:8px;align-items:center}
.overlay.edit-mode .stage-wrap{width:min(56vh,430px,84vw);align-self:center}
.overlay.edit-mode .stage{background:#f2ebe7;border:1px solid rgba(234,217,208,.9);box-shadow:0 12px 34px rgba(70,42,32,.12)}
.overlay.edit-mode .stage img{left:50%;top:50%;max-width:none;max-height:none}
.overlay.edit-mode .fold-mask,.overlay.edit-mode .safe-line,.overlay.edit-mode .edge-label{display:none}
.overlay.edit-mode .cut-line{inset:auto;left:50%;top:50%;width:var(--fold-size,82%);height:var(--fold-size,82%);transform:translate(-50%,-50%);border:0;box-shadow:none;background:linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/20px 2px repeat-x,linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) bottom left/20px 2px repeat-x,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/2px 20px repeat-y,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top right/2px 20px repeat-y}
.overlay.edit-mode .canvas-note{margin:0 auto;font-size:12px}
.overlay.edit-mode .tool-area{height:148px;padding-top:6px;width:min(100%,520px);justify-self:center}
.overlay.edit-mode .edit-action-row{width:min(112px,100%);justify-self:center;grid-template-columns:repeat(2,44px);justify-content:center;gap:12px;padding-bottom:2px}
.overlay.edit-mode .edit-action{width:44px;min-width:44px;min-height:44px;height:44px;border-radius:50%;font-size:22px;padding:0}
@media(max-width:420px){.overlay.edit-mode .flow-body{padding:8px 10px}.edit-step.active{grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:6px}.overlay.edit-mode .stage-wrap{width:min(44vh,82vw)}.overlay.edit-mode .tool-area{height:128px}.overlay.edit-mode .panel{height:58px}.overlay.edit-mode .tool-btn,.overlay.edit-mode .filter-btn{height:38px}.overlay.edit-mode .edit-action-row{grid-template-columns:repeat(2,42px);gap:12px}.overlay.edit-mode .edit-action{width:42px;min-width:42px;min-height:42px;height:42px}}
.overlay.edit-mode .sheet-header{border-bottom:0;background:rgba(255,248,244,.96)}
.overlay.edit-mode .flow-body{overflow:hidden;padding:18px 16px 12px}
.overlay.edit-mode .edit-step.active{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:10px;align-items:center}
.overlay.edit-mode .stage-wrap{width:min(48vh,390px,82vw);align-self:center}
.overlay.edit-mode .cut-line{width:var(--fold-size,94%);height:var(--fold-size,94%);background:linear-gradient(90deg,rgba(255,255,255,.9) 0 11px,rgba(232,121,115,.88) 11px 22px) top left/22px 2px repeat-x,linear-gradient(90deg,rgba(255,255,255,.9) 0 11px,rgba(232,121,115,.88) 11px 22px) bottom left/22px 2px repeat-x,linear-gradient(180deg,rgba(255,255,255,.9) 0 11px,rgba(232,121,115,.88) 11px 22px) top left/2px 22px repeat-y,linear-gradient(180deg,rgba(255,255,255,.9) 0 11px,rgba(232,121,115,.88) 11px 22px) top right/2px 22px repeat-y}
.overlay.edit-mode .tool-area{height:132px;padding-top:0;width:min(100%,520px);justify-self:center;align-self:center}
.overlay.edit-mode .main-tools{margin-bottom:8px}
.overlay.edit-mode .panel{height:82px}
.overlay.edit-mode .edit-action-row{width:100%;justify-self:stretch;display:grid;grid-template-columns:44px 44px;justify-content:space-between;gap:0;padding:0 4px}
.overlay.edit-mode .edit-action,.overlay.edit-mode .edit-action.done,.overlay.edit-mode .edit-action.cancel{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#8f6a62;font-size:28px;line-height:1}
.overlay.edit-mode .edit-action.done{color:var(--accent)}
@media(hover:hover){.overlay.edit-mode .edit-action:hover,.overlay.edit-mode .edit-action.done:hover{background:transparent;border:0;box-shadow:none;transform:scale(1.06);filter:none}}
.overlay.edit-mode .edit-action:active,.overlay.edit-mode .edit-action.done:active{background:transparent;border:0;box-shadow:none;transform:scale(.94);filter:none}
@media(max-width:420px){.overlay.edit-mode .flow-body{padding:14px 12px 10px}.overlay.edit-mode .edit-step.active{gap:7px}.overlay.edit-mode .stage-wrap{width:min(38vh,80vw)}.overlay.edit-mode .tool-area{height:116px}.overlay.edit-mode .panel{height:56px}.overlay.edit-mode .edit-action-row{grid-template-columns:42px 42px;padding:0 2px}.overlay.edit-mode .edit-action,.overlay.edit-mode .edit-action.done,.overlay.edit-mode .edit-action.cancel{width:42px;min-width:42px;height:42px;min-height:42px;font-size:27px}}
.overlay.edit-mode .sheet-header{border-bottom:1px solid var(--line);background:rgba(255,248,244,.94)}
.overlay.edit-mode .flow-body{overflow:hidden;padding:10px 14px}
.overlay.edit-mode .edit-step.active{height:100%;display:grid;grid-template-rows:auto minmax(190px,1fr) auto auto auto;gap:8px;align-items:stretch}
.overlay.edit-mode .stage-wrap{width:min(58vh,430px,86vw);align-self:auto}
.overlay.edit-mode .stage{background:#eee;border:0;box-shadow:var(--shadow)}
.overlay.edit-mode .stage img{left:50%;top:50%;max-width:none;max-height:none}
.overlay.edit-mode .fold-mask{display:block}
.overlay.edit-mode .safe-line{display:block}
.overlay.edit-mode .edge-label{display:block}
.overlay.edit-mode .cut-line{position:absolute;inset:6.15%;left:auto;top:auto;width:auto;height:auto;transform:none;border:2px solid rgba(255,255,255,.72);box-shadow:0 0 0 1px rgba(0,0,0,.25);background:none}
.overlay.edit-mode .canvas-note{margin:0 auto;font-size:12px;line-height:1.35}
.overlay.edit-mode .tool-area{height:auto;padding-top:0;width:auto;justify-self:stretch;align-self:auto}
.overlay.edit-mode .main-tools{margin-bottom:8px}
.overlay.edit-mode .panel{height:72px}
.overlay.edit-mode .tool-btn,.overlay.edit-mode .filter-btn{height:42px}
.overlay.edit-mode .edit-action-row{width:auto;justify-self:stretch;display:grid;grid-template-columns:1fr 1fr;justify-content:stretch;gap:10px;padding:0}
.overlay.edit-mode .edit-action{display:grid;place-items:center;width:auto;min-width:0;min-height:46px;height:auto;border-radius:16px;font-size:24px;font-weight:900;cursor:pointer}
.overlay.edit-mode .edit-action.cancel{background:white;border:1px solid var(--line);color:var(--muted);box-shadow:none}
.overlay.edit-mode .edit-action.done{background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;border:1px solid transparent;box-shadow:0 12px 24px rgba(232,121,115,.22)}
@media(max-width:420px){.overlay.edit-mode .flow-body{padding:8px 10px}.overlay.edit-mode .edit-step.active{grid-template-rows:auto minmax(170px,1fr) auto auto auto;gap:6px}.overlay.edit-mode .stage-wrap{width:min(50vh,82vw)}.overlay.edit-mode .panel{height:60px}.overlay.edit-mode .tool-btn,.overlay.edit-mode .filter-btn{height:38px}.overlay.edit-mode .edit-action-row{grid-template-columns:1fr 1fr;gap:10px;padding:0}.overlay.edit-mode .edit-action{width:auto;min-width:0;min-height:46px;height:auto;border-radius:16px;font-size:24px}}
.overlay.edit-mode .edge-label{display:none}
.overlay.edit-mode .edit-action-row{width:100%;display:grid;grid-template-columns:44px 44px;justify-content:space-between;gap:0;padding:0 4px}
.overlay.edit-mode .edit-action,.overlay.edit-mode .edit-action.cancel,.overlay.edit-mode .edit-action.done{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:28px;line-height:1}
.overlay.edit-mode .edit-action.cancel{color:#8f6a62}
.overlay.edit-mode .edit-action.done{color:var(--accent)}
@media(hover:hover){.overlay.edit-mode .edit-action:hover,.overlay.edit-mode .edit-action.done:hover{background:transparent;border:0;box-shadow:none;transform:scale(1.06);filter:none}}
.overlay.edit-mode .edit-action:active,.overlay.edit-mode .edit-action.done:active{background:transparent;border:0;box-shadow:none;transform:scale(.94);filter:none}
@media(max-width:420px){.overlay.edit-mode .edit-action-row{grid-template-columns:42px 42px;padding:0 2px}.overlay.edit-mode .edit-action,.overlay.edit-mode .edit-action.cancel,.overlay.edit-mode .edit-action.done{width:42px;min-width:42px;height:42px;min-height:42px;font-size:27px}}
.overlay.edit-mode .fold-mask,.overlay.edit-mode .safe-line,.overlay.edit-mode .edge-label{display:none}
.overlay.edit-mode .cut-line{display:block}
.overlay.edit-mode .flow-body{overflow:hidden;padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
.overlay.edit-mode .edit-step.active{height:100%;display:grid;grid-template-rows:auto minmax(160px,1fr) auto auto auto;gap:10px;align-items:center}
.overlay.edit-mode .stage-wrap{width:min(48vh,390px,82vw);align-self:center}
.overlay.edit-mode .canvas-note{margin:2px auto 0}
.overlay.edit-mode .tool-area{height:122px;padding-top:2px;width:min(100%,520px);justify-self:center}
.overlay.edit-mode .main-tools{margin-bottom:8px}
.overlay.edit-mode .panel{height:72px}
.overlay.edit-mode .edit-action-row{align-self:end;margin-top:2px}
@media(max-width:420px){.overlay.edit-mode .flow-body{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.overlay.edit-mode .edit-step.active{grid-template-rows:auto minmax(140px,1fr) auto auto auto;gap:7px}.overlay.edit-mode .stage-wrap{width:min(38vh,80vw)}.overlay.edit-mode .tool-area{height:108px}.overlay.edit-mode .main-tools{margin-bottom:6px}.overlay.edit-mode .panel{height:54px}.overlay.edit-mode .edit-action-row{margin-top:0}}
.overlay.edit-mode .cut-line{border:0;box-shadow:none;background:linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/20px 2px repeat-x,linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) bottom left/20px 2px repeat-x,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/2px 20px repeat-y,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top right/2px 20px repeat-y}
.overlay.edit-mode .stage{background:#f2ebe7}
.overlay.edit-mode .edit-step.active{grid-template-rows:auto minmax(190px,1fr) auto auto auto}
.overlay.edit-mode .stage-wrap{width:min(54vh,430px,84vw)}
@media(max-width:420px){.overlay.edit-mode .edit-step.active{grid-template-rows:auto minmax(160px,1fr) auto auto auto}.overlay.edit-mode .stage-wrap{width:min(44vh,82vw)}}
.overlay.edit-mode .cut-line{border:0;box-shadow:none;background:linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/20px 2px repeat-x,linear-gradient(90deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) bottom left/20px 2px repeat-x,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top left/2px 20px repeat-y,linear-gradient(180deg,rgba(255,255,255,.88) 0 10px,rgba(232,121,115,.86) 10px 20px) top right/2px 20px repeat-y;pointer-events:none}
.overlay.edit-mode .cut-line:before{content:"";position:absolute;inset:-7.01%;border:1.5px solid rgba(255,255,255,.86);box-shadow:0 0 0 1px rgba(45,37,33,.18),0 0 0 999px rgba(255,255,255,.42);pointer-events:none}
.overlay.edit-mode .cut-line:after{content:"";position:absolute;inset:0;background:linear-gradient(#fff 0 0) top left/16px 2px no-repeat,linear-gradient(#fff 0 0) top left/2px 16px no-repeat,linear-gradient(#fff 0 0) top right/16px 2px no-repeat,linear-gradient(#fff 0 0) top right/2px 16px no-repeat,linear-gradient(#fff 0 0) bottom left/16px 2px no-repeat,linear-gradient(#fff 0 0) bottom left/2px 16px no-repeat,linear-gradient(#fff 0 0) bottom right/16px 2px no-repeat,linear-gradient(#fff 0 0) bottom right/2px 16px no-repeat;pointer-events:none}
.overlay.edit-mode .resize-handle-layer{position:absolute;inset:0;z-index:20;pointer-events:none;overflow:visible}
.overlay.edit-mode .resize-handle{position:absolute;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.82);border:1px solid rgba(45,37,33,.24);box-shadow:0 2px 8px rgba(45,37,33,.16);pointer-events:auto;touch-action:none;z-index:10;transform:translate(-50%,-50%)}
.overlay.edit-mode .resize-handle:after{content:"";position:absolute;inset:9px;border-radius:50%;background:var(--accent)}
.overlay.edit-mode .resize-handle.nw,.overlay.edit-mode .resize-handle.se{cursor:nwse-resize}
.overlay.edit-mode .resize-handle.ne,.overlay.edit-mode .resize-handle.sw{cursor:nesw-resize}
.overlay.edit-mode .sheet-header{display:none}
.overlay.edit-mode .flow-sheet{grid-template-rows:1fr auto}
.overlay.edit-mode .flow-body{padding:8px 12px calc(8px + env(safe-area-inset-bottom));overflow:hidden}
.overlay.edit-mode .edit-step.active{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px;align-items:stretch}
.overlay.edit-mode .edit-top-row{min-height:18px;margin:0;grid-template-columns:1fr;place-items:center}
.overlay.edit-mode .edit-top-row span:first-child,.overlay.edit-mode .edit-top-row span:last-child{display:none}
.overlay.edit-mode .edit-top-row span{font-size:12px;line-height:1;color:rgba(120,109,103,.82)}
.overlay.edit-mode .stage-wrap{position:relative;width:100%;height:100%;min-height:0;max-width:none;align-self:stretch;justify-self:stretch;aspect-ratio:auto;margin:0;overflow:visible}
.overlay.edit-mode .stage-wrap{touch-action:none}
.overlay.edit-mode .stage{width:100%;height:100%;min-height:0;aspect-ratio:auto;border-radius:16px}
.overlay.edit-mode .adjust-value-badge{position:absolute;left:50%;bottom:6%;z-index:32;transform:translateX(-50%);padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.68);color:rgba(58,43,39,.72);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:11px;font-weight:400;letter-spacing:0;line-height:1;white-space:nowrap;pointer-events:none;box-shadow:none}
.overlay.edit-mode .adjust-value-badge[hidden]{display:none}
.overlay.edit-mode .review-magnifier{position:absolute;z-index:30;overflow:hidden;border:0;outline:0;border-radius:16px;background:transparent;box-shadow:none;pointer-events:none;transform:translateZ(0)}
.overlay.edit-mode .review-magnifier[hidden]{display:none}
.overlay.edit-mode .review-magnifier img{position:absolute;max-width:none;max-height:none;transform-origin:center center;user-select:none;pointer-events:none}
.overlay.edit-mode .review-magnifier img,.overlay.edit-mode .review-magnifier-transition img{backface-visibility:hidden}
.overlay.edit-mode .review-magnifier-transition{position:absolute;z-index:31;overflow:hidden;border:0;outline:0;border-radius:16px;background:transparent;box-shadow:none;pointer-events:none;transform:translateZ(0);transition:left .24s ease-out,top .24s ease-out,width .24s ease-out,height .24s ease-out,opacity .24s ease-out}
.overlay.edit-mode .review-magnifier-transition.exiting{transition-timing-function:ease-in-out}
.overlay.edit-mode .review-magnifier-transition img{position:absolute;max-width:none;max-height:none;transform-origin:center center;user-select:none;pointer-events:none;transition:left .24s ease-out,top .24s ease-out,transform .24s ease-out}
.overlay.edit-mode .review-magnifier-transition.exiting img{transition-timing-function:ease-in-out}
.filter-gradient-overlay{position:absolute;inset:-1px;display:none;pointer-events:none;border-radius:inherit;background:var(--filter-gradient-bg);mix-blend-mode:soft-light;opacity:var(--filter-gradient-opacity,.95)}
.filter-gradient-rio{--filter-gradient-bg:radial-gradient(circle at 18% 82%,rgba(255,35,120,.76),transparent 45%),linear-gradient(135deg,rgba(244,26,96,.74) 0%,rgba(255,166,45,.34) 42%,rgba(18,78,255,.82) 100%);--filter-gradient-opacity:1}
.filter-gradient-tokyo{--filter-gradient-bg:radial-gradient(circle at 76% 20%,rgba(255,68,174,.64),transparent 42%),linear-gradient(135deg,rgba(55,42,255,.68) 0%,rgba(151,60,255,.44) 48%,rgba(255,83,160,.58) 100%);--filter-gradient-opacity:.9}
.filter-gradient-malibu{--filter-gradient-bg:radial-gradient(circle at 24% 24%,rgba(72,210,255,.58),transparent 42%),linear-gradient(135deg,rgba(42,178,255,.58) 0%,rgba(255,213,84,.22) 48%,rgba(255,121,72,.58) 100%);--filter-gradient-opacity:.88}
.filter-gradient-seoul{--filter-gradient-bg:radial-gradient(circle at 30% 24%,rgba(214,151,255,.54),transparent 44%),linear-gradient(135deg,rgba(159,121,255,.46) 0%,rgba(255,169,202,.46) 48%,rgba(255,198,148,.38) 100%);--filter-gradient-opacity:.86}
.filter-gradient-xpro{--filter-gradient-bg:radial-gradient(circle at 50% 48%,rgba(255,236,190,.32) 0%,rgba(255,176,62,.18) 34%,rgba(31,18,43,.74) 86%);--filter-gradient-opacity:.92}
.filter-gradient-earlybird{--filter-gradient-bg:radial-gradient(circle at 50% 46%,rgba(255,232,184,.28) 0%,rgba(206,105,42,.24) 50%,rgba(70,42,55,.44) 100%);--filter-gradient-opacity:.82}
.filter-gradient-sutro{--filter-gradient-bg:linear-gradient(90deg,rgba(24,18,22,.58),transparent 18%,transparent 82%,rgba(24,18,22,.58)),linear-gradient(180deg,rgba(24,18,22,.48),transparent 18%,transparent 82%,rgba(24,18,22,.48));--filter-gradient-opacity:.86}
.filter-gradient-hefe{--filter-gradient-bg:radial-gradient(circle at 50% 48%,rgba(255,214,138,.28) 0%,rgba(241,117,45,.22) 46%,rgba(46,26,35,.66) 96%);--filter-gradient-opacity:.9}
.filter-gradient-rise{--filter-gradient-bg:radial-gradient(circle at 50% 46%,rgba(255,244,202,.42) 0%,rgba(255,196,120,.22) 48%,rgba(255,255,255,0) 84%);--filter-gradient-opacity:.7}
.filter-gradient-ginza{--filter-gradient-bg:linear-gradient(135deg,rgba(255,230,102,.36) 0%,rgba(255,255,255,0) 42%,rgba(53,96,180,.32) 100%);--filter-gradient-opacity:.78}
.filter-gradient-n1997{--filter-gradient-bg:linear-gradient(135deg,rgba(52,203,128,.46) 0%,rgba(255,255,255,0) 42%,rgba(255,64,160,.58) 100%);--filter-gradient-opacity:.86}
.filter-gradient-toaster{--filter-gradient-bg:radial-gradient(circle at 50% 50%,rgba(255,196,72,.56) 0%,rgba(213,91,34,.36) 52%,rgba(65,27,25,.52) 100%);--filter-gradient-opacity:.88}
.filter-gradient-kelvin{--filter-gradient-bg:linear-gradient(135deg,rgba(255,208,32,.62) 0%,rgba(255,162,21,.42) 52%,rgba(117,58,18,.34) 100%);--filter-gradient-opacity:.86}
.stage[class*="filter-gradient-"] .filter-gradient-overlay,.thumb[class*="filter-gradient-"] .filter-gradient-overlay{display:block}
.thumb .filter-gradient-overlay{z-index:1}
.overlay.edit-mode .stage.review-crop-mode .filter-gradient-overlay{display:none}
.overlay.edit-mode .review-magnifier[class*="filter-gradient-"]:after,.overlay.edit-mode .review-magnifier-transition[class*="filter-gradient-"]:after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:var(--filter-gradient-bg);mix-blend-mode:soft-light;opacity:var(--filter-gradient-opacity,.95)}
.overlay.edit-mode .stage.review-crop-mode > #editImg{opacity:0}
.overlay.edit-mode .stage.review-crop-mode .fold-mask{display:block;position:absolute;z-index:12;background:#f2ebe7;border:0;box-shadow:none;outline:0;pointer-events:none}
.overlay.edit-mode .stage.review-crop-mode .top-fold{left:0;top:0;width:100%;height:max(0px,calc(var(--review-top,0px) + 2px))}
.overlay.edit-mode .stage.review-crop-mode .bottom-fold{left:0;top:calc(var(--review-top,0px) + var(--review-size,100%) - 2px);bottom:auto;width:100%;height:calc(100% - var(--review-top,0px) - var(--review-size,100%) + 2px)}
.overlay.edit-mode .stage.review-crop-mode .left-fold{left:0;top:calc(var(--review-top,0px) - 1px);width:max(0px,calc(var(--review-left,0px) + 2px));height:calc(var(--review-size,100%) + 2px)}
.overlay.edit-mode .stage.review-crop-mode .right-fold{left:calc(var(--review-left,0px) + var(--review-size,100%) - 2px);right:auto;top:calc(var(--review-top,0px) - 1px);width:calc(100% - var(--review-left,0px) - var(--review-size,100%) + 2px);height:calc(var(--review-size,100%) + 2px)}
.overlay.edit-mode .stage.review-crop-mode .cut-line,.overlay.edit-mode .stage.review-crop-mode .safe-line,.overlay.edit-mode .stage.review-crop-mode .edge-label{display:none}
.overlay.edit-mode .stage-wrap.review-crop-mode .resize-handle-layer{display:none}
.overlay.edit-mode .canvas-note{display:none}
.overlay.edit-mode .tool-area{height:68px;min-height:0;padding-top:0;width:min(100%,620px);justify-self:center;align-self:end}
.overlay.edit-mode .main-tools{margin-bottom:6px;gap:6px}
.overlay.edit-mode .tool-tab{min-height:32px;font-size:12px}
.overlay.edit-mode .panel{height:58px}
.overlay.edit-mode .tool-btn,.overlay.edit-mode .filter-btn{height:38px;min-width:66px;border-radius:12px;font-size:12px}
.overlay.edit-mode .filter-btn{padding:0 12px;white-space:nowrap}
.overlay.edit-mode .tool-tab,.overlay.edit-mode .tool-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.overlay.edit-mode .tool-icon{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.overlay.edit-mode .tool-tab{min-width:46px;padding:0;border:1px solid transparent}
.overlay.edit-mode .tool-tab.active{border-color:rgba(45,37,33,.16);box-shadow:0 8px 18px rgba(45,37,33,.16)}
.overlay.edit-mode .tool-tab .tool-icon{width:20px;height:20px}
.overlay.edit-mode .tool-tab span{line-height:1;white-space:nowrap}
.overlay.edit-mode .icon-tool{min-width:54px;padding:0}
.overlay.edit-mode .icon-tool .tool-icon{width:21px;height:21px}
.overlay.edit-mode #cropPanel{justify-content:center;gap:10px}
.overlay.edit-mode #cropPanel.panel.active{align-items:flex-end;padding-top:8px}
.overlay.edit-mode .tool-area{display:grid;grid-template-rows:minmax(48px,1fr);gap:0;align-content:end}
.overlay.edit-mode .main-tools{margin:0;justify-self:center;width:min(210px,100%);grid-template-columns:repeat(3,1fr)}
.overlay.edit-mode .panel{min-height:0}
.overlay.edit-mode #adjustPanel{justify-content:center}
.overlay.edit-mode #adjustPanel.panel.active{transform:translateY(16px)}
.overlay.edit-mode.adjust-slider-active #adjustPanel.panel.active{width:100%;align-items:stretch}
.overlay.edit-mode .adjust-choice-list{display:flex;align-items:center;justify-content:safe center;gap:8px;width:100%;overflow-x:auto;padding:0 2px;scrollbar-width:none}
.overlay.edit-mode .adjust-choice-list::-webkit-scrollbar{display:none}
.overlay.edit-mode .adjust-choice-list[hidden],.overlay.edit-mode .adjust-slider-mode[hidden]{display:none}
.overlay.edit-mode .adjust-choice{height:38px;min-width:84px;flex:0 0 auto;border:0;border-radius:12px;background:#fff0e8;color:#9d514b;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 9px;white-space:nowrap}
.overlay.edit-mode .adjust-icon{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.overlay.edit-mode .adjust-choice span{line-height:1}
.overlay.edit-mode .adjust-choice.is-disabled{opacity:.48}
.overlay.edit-mode .adjust-slider-mode{display:grid;grid-template-columns:70px minmax(0,1fr) 70px;align-items:center;gap:10px;width:100%;min-width:0;position:relative}
.overlay.edit-mode.adjust-slider-active .tool-area{height:68px}
.overlay.edit-mode.adjust-slider-active .tool-area{width:min(100%,820px)}
.overlay.edit-mode.adjust-slider-active .panel{height:58px}
.overlay.edit-mode .adjust-commit{height:34px;border:0;border-radius:12px;background:#f7eee9;color:var(--muted);font-size:10px;font-weight:900;padding:0 6px}
.overlay.edit-mode #adjustPanel .adjust-slider-label{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;justify-self:stretch;width:100%;min-width:0;gap:8px;color:var(--muted);font-size:11px;font-weight:900}
.overlay.edit-mode .adjust-slider-label span,.overlay.edit-mode .adjust-slider-label output{display:none}
.overlay.edit-mode .adjust-slider-label input{display:block;width:100%;min-width:0;inline-size:100%;max-inline-size:100%;height:24px;-webkit-appearance:none;appearance:none;background:linear-gradient(90deg,#9d514b 0 var(--adjust-progress,50%),rgba(157,81,75,.22) var(--adjust-progress,50%) 100%) center/100% 4px no-repeat;cursor:pointer}
.overlay.edit-mode .adjust-slider-label input[hidden]{display:none}
.overlay.edit-mode .adjust-slider-label input::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:transparent}
.overlay.edit-mode .adjust-slider-label input::-webkit-slider-thumb{appearance:none;width:18px;height:18px;margin-top:-7px;border-radius:50%;background:white;border:2px solid #9d514b;box-shadow:0 2px 8px rgba(45,37,33,.18)}
.overlay.edit-mode .adjust-slider-label input::-moz-range-track{height:4px;border-radius:999px;background:transparent}
.overlay.edit-mode .adjust-slider-label input::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:white;border:2px solid #9d514b;box-shadow:0 2px 8px rgba(45,37,33,.18)}
.overlay.edit-mode .edit-action-row{align-self:end;margin:0;width:100%;display:grid;grid-template-columns:44px minmax(150px,1fr) 44px;align-items:center;gap:10px;padding:0 2px}
.overlay.edit-mode.adjust-slider-active .edit-action-row{visibility:hidden;pointer-events:none}
.overlay.edit-mode .edit-action-row .main-tools{grid-column:2;display:grid}
@media(max-width:420px){.overlay.edit-mode .flow-body{padding:6px 8px calc(6px + env(safe-area-inset-bottom))}.overlay.edit-mode .edit-step.active{gap:5px;grid-template-rows:auto minmax(0,1fr) auto auto}.overlay.edit-mode .edit-top-row{min-height:16px}.overlay.edit-mode .tool-area{height:54px}.overlay.edit-mode .panel{height:48px}.overlay.edit-mode .tool-tab{min-height:34px}.overlay.edit-mode .tool-btn,.overlay.edit-mode .filter-btn{height:34px;min-width:60px}.overlay.edit-mode .resize-handle{width:30px;height:30px}.overlay.edit-mode .resize-handle:after{inset:10px}.overlay.edit-mode .edit-action-row{grid-template-columns:40px minmax(132px,1fr) 40px;gap:8px}.overlay.edit-mode .edit-action,.overlay.edit-mode .edit-action.cancel,.overlay.edit-mode .edit-action.done{width:40px;min-width:40px;height:40px;min-height:40px;font-size:26px}}
@media(max-width:420px){.overlay.edit-mode #adjustPanel.panel.active{transform:translateY(12px)}.overlay.edit-mode .adjust-slider-mode{grid-template-columns:48px minmax(0,1fr) 48px;gap:6px}.overlay.edit-mode .adjust-slider-label{width:100%}.overlay.edit-mode .adjust-slider-label input{inline-size:100%;max-inline-size:100%}}
.overlay.edit-mode .tool-area:has(#adjustPanel.active),.overlay.edit-mode .tool-area:has(#filterPanel.active){height:94px}
.overlay.edit-mode #filterPanel{height:86px;align-items:center;gap:7px;overflow-x:auto;padding:2px 14px 6px 4px;scrollbar-width:thin;scrollbar-color:rgba(157,81,75,.42) transparent}
.overlay.edit-mode #filterPanel::-webkit-scrollbar{height:6px}
.overlay.edit-mode #filterPanel::-webkit-scrollbar-track{background:transparent}
.overlay.edit-mode #filterPanel::-webkit-scrollbar-thumb{background:rgba(157,81,75,.36);border-radius:999px}
.overlay.edit-mode #filterPanel .filter-btn{height:78px;min-width:68px;max-width:76px;padding:3px 4px 4px;display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;border:1px solid transparent;border-radius:14px;background:#fff0e8;color:#8b504a;box-shadow:none;white-space:normal}
.overlay.edit-mode #filterPanel .filter-btn.active{background:#fff;border-color:rgba(232,121,115,.82);color:var(--dark);box-shadow:0 6px 14px rgba(232,121,115,.14)}
.overlay.edit-mode .filter-thumb{position:relative;width:54px;height:46px;overflow:hidden;border-radius:10px;background:#f1e3dc;box-shadow:inset 0 0 0 1px rgba(45,37,33,.08);flex:0 0 auto}
.overlay.edit-mode .filter-thumb-img{position:relative;z-index:0;width:100%;height:100%;display:block;object-fit:cover}
.overlay.edit-mode .filter-thumb .filter-gradient-overlay{z-index:1}
.overlay.edit-mode .filter-thumb[class*="filter-gradient-"] .filter-gradient-overlay{display:block}
.overlay.edit-mode .filter-label{max-width:62px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;font-size:7.8px;line-height:1.05;font-weight:800;letter-spacing:0}
@media(min-width:821px){.overlay.edit-mode .tool-area:has(#filterPanel.active){width:min(100%,1040px)}.overlay.edit-mode #filterPanel{gap:10px;justify-content:flex-start;padding:2px 10px 8px}.overlay.edit-mode #filterPanel .filter-btn{height:82px;min-width:76px;max-width:86px;padding:4px 5px}.overlay.edit-mode .filter-thumb{width:62px;height:50px}.overlay.edit-mode .filter-label{max-width:76px;font-size:8px}}
@media(max-width:420px){.overlay.edit-mode .tool-area:has(#adjustPanel.active),.overlay.edit-mode .tool-area:has(#filterPanel.active){height:88px}.overlay.edit-mode #filterPanel{height:82px;gap:6px;padding:2px 12px 4px 2px}.overlay.edit-mode #filterPanel .filter-btn{height:74px;min-width:64px;max-width:70px;padding:3px 4px 4px;gap:3px}.overlay.edit-mode .filter-thumb{width:50px;height:42px}.overlay.edit-mode .filter-label{max-width:58px;font-size:7.5px}}
.mini-cart{display:inline-grid;place-items:center;width:42px;height:42px;padding:0}
.mini-cart{position:relative}
.mini-cart.has-items:after{content:attr(data-count);position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:var(--accent);color:white;border:2px solid var(--bg);font-size:10px;font-weight:900;line-height:1}
.mini-cart svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.site-header{position:fixed;top:0;left:0;right:0;z-index:40;background:rgba(255,248,244,.96);box-shadow:0 8px 24px rgba(70,42,32,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.product-page{padding-top:74px}
.mini-cart,.close-btn,.overlay.edit-mode .edit-action{display:flex;align-items:center;justify-content:center;line-height:1;padding:0}
.mini-cart svg,.close-btn svg,.overlay.edit-mode .edit-action svg{display:block}
.close-btn{width:40px;height:40px;min-width:40px;min-height:40px}
.overlay.edit-mode .edit-action,.overlay.edit-mode .edit-action.cancel,.overlay.edit-mode .edit-action.done{display:flex;align-items:center;justify-content:center;line-height:1;padding:0;text-align:center}
.production-auth-overlay{position:fixed;inset:0;z-index:78;display:none;place-items:center;padding:18px}
.production-auth-overlay.open{display:grid}
.production-auth-scrim{position:absolute;inset:0;background:rgba(45,37,33,.42)}
.production-auth-sheet{position:relative;z-index:1;width:min(420px,calc(100% - 32px));display:grid;gap:14px;padding:22px;background:var(--bg);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 60px rgba(0,0,0,.24)}
.production-auth-close{position:absolute;right:12px;top:12px}
.production-auth-header{padding-right:48px}
.production-auth-header p{margin:0 0 5px;color:#b95d58;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.production-auth-header h2{margin:0;font-size:24px;letter-spacing:0}
.production-auth-lead,.production-auth-status{margin:0;color:#665a54;font-size:13px;font-weight:800;line-height:1.6}
.production-auth-form{display:grid;gap:12px}
.production-auth-form label{display:grid;gap:6px;font-size:13px;font-weight:900;color:var(--ink)}
.production-auth-form input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d9bfb3;border-radius:12px;background:white;color:var(--ink);font-size:16px}
.production-auth-error{margin:0;padding:10px 12px;border-radius:12px;background:#fff1f0;color:#b73535;font-size:13px;font-weight:900;line-height:1.5}
.overlay.edit-mode .edit-step.active{grid-template-rows:auto minmax(0,1fr) auto auto}
.overlay.edit-mode .edit-step.active.has-validation-message{grid-template-rows:auto minmax(0,1fr) auto auto auto}
.overlay.edit-mode .cut-line:before{inset:-10.9137%;border-color:rgba(255,255,255,.9);box-shadow:0 0 0 1px rgba(45,37,33,.22),0 0 0 999px rgba(255,255,255,.32)}
.overlay.edit-mode .canvas-note{display:block;margin:0 auto;max-width:430px;color:#6d615b;font-size:11px;line-height:1.35;text-align:center}
.overlay.edit-mode .canvas-note[hidden]{display:none!important}
.overlay.edit-mode .canvas-note.is-error{color:#a8443f;font-weight:800}
.overlay.edit-mode .stage.print-bleed-not-ready{box-shadow:0 0 0 2px rgba(168,68,63,.42),var(--shadow)}
.overlay.edit-mode .edit-action.done:disabled{opacity:.38;cursor:not-allowed;transform:none}
@media(max-width:420px){.overlay.edit-mode .edit-step.active{grid-template-rows:auto minmax(0,1fr) auto auto}.overlay.edit-mode .edit-step.active.has-validation-message{grid-template-rows:auto minmax(0,1fr) auto auto auto}.overlay.edit-mode .canvas-note{font-size:10px}}
