.mattress-runtime-v291{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;background:#dbe4ee;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.mattress-runtime-v291 *{box-sizing:border-box}.mattress-runtime-v291{width:100%;min-width:1180px;height:100%;margin:0;overflow:hidden}.mattress-runtime-v291 button{cursor:pointer}.mattress-runtime-v291 button:disabled{cursor:not-allowed;opacity:.55}.mattress-runtime-v291 .app-shell{flex-direction:column;height:100%;display:flex}.mattress-runtime-v291 .app-header{color:#f8fafc;background:radial-gradient(circle at 82% 18%,#3b82f657,#0000 32%),#0f172a;border-bottom:1px solid #94a3b82e;justify-content:space-between;align-items:center;gap:24px;min-height:72px;padding:12px 20px;display:flex}.mattress-runtime-v291 .app-header h1{letter-spacing:-.02em;margin:2px 0 0;font-size:19px}.mattress-runtime-v291 .app-eyebrow,.mattress-runtime-v291 .section-kicker{letter-spacing:.14em;font-size:10px;font-weight:760}.mattress-runtime-v291 .app-eyebrow{color:#93c5fd}.mattress-runtime-v291 .header-state{flex-direction:column;align-items:flex-end;min-width:280px;display:flex}.mattress-runtime-v291 .header-state strong{font-size:14px}.mattress-runtime-v291 .header-state span{color:#94a3b8;margin-top:3px;font-size:12px}.mattress-runtime-v291 .message-banner{border-bottom:1px solid;padding:8px 18px;font-size:12px}.mattress-runtime-v291 .warning-banner{color:#92400e;background:#fffbeb;border-color:#fde68a}.mattress-runtime-v291 .error-banner{color:#991b1b;background:#fee2e2;border-color:#fecaca}.mattress-runtime-v291 .workspace{flex:1;grid-template-columns:330px minmax(0,1fr) 380px;min-height:0;display:grid}.mattress-runtime-v291 .scroll-column{background:#f8fafc;min-height:0;padding:12px;overflow-y:auto}.mattress-runtime-v291 .left-column{border-right:1px solid #cbd5e1}.mattress-runtime-v291 .right-column{border-left:1px solid #cbd5e1}.mattress-runtime-v291 .panel-card{background:#fff;border:1px solid #e2e8f0;border-radius:11px;margin-bottom:11px;padding:13px;box-shadow:0 1px 2px #0f172a09}.mattress-runtime-v291 .section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px;display:flex}.mattress-runtime-v291 .section-heading.compact{margin-bottom:9px}.mattress-runtime-v291 .section-heading h2{margin:2px 0 0;font-size:14px}.mattress-runtime-v291 .section-kicker{color:#64748b}.mattress-runtime-v291 .section-note{color:#64748b;margin:0 0 10px;font-size:10px;line-height:1.55}.mattress-runtime-v291 .status-dot{background:#cbd5e1;border-radius:50%;width:9px;height:9px}.mattress-runtime-v291 .status-dot.active{background:#22c55e;box-shadow:0 0 0 4px #22c55e1f}.mattress-runtime-v291 .model-source-card{background:#f8fafc;border-radius:8px;flex-direction:column;justify-content:center;gap:3px;min-height:48px;margin-bottom:9px;padding:9px 11px;display:flex}.mattress-runtime-v291 .model-source-card strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.mattress-runtime-v291 .warning-text{color:#b45309;font-size:10px}.mattress-runtime-v291 .button-grid{grid-template-columns:1fr 1fr;gap:7px;display:grid}.mattress-runtime-v291 .full-span{grid-column:1/-1}.mattress-runtime-v291 .button{border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;min-height:35px;padding:7px 10px;font-size:11px;font-weight:650;display:inline-flex}.mattress-runtime-v291 .button.primary{color:#fff;background:#2563eb;border-color:#2563eb}.mattress-runtime-v291 .button.secondary{color:#1e293b;background:#fff;border-color:#cbd5e1}.mattress-runtime-v291 .button.ghost{color:#475569;background:#f1f5f9;border-color:#e2e8f0}.mattress-runtime-v291 .danger-button{color:#991b1b;background:#fff;border-color:#fecaca}.mattress-runtime-v291 .full-width{width:100%;margin-top:10px}.mattress-runtime-v291 .file-button{position:relative;overflow:hidden}.mattress-runtime-v291 .file-button input{opacity:0;width:1px;height:1px;position:absolute}.mattress-runtime-v291 .field-group-title{color:#64748b;margin:10px 0 6px;font-size:10px;font-weight:680}.mattress-runtime-v291 .three-column-fields{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.mattress-runtime-v291 .two-column-fields{grid-template-columns:1fr 1fr;gap:7px;display:grid}.mattress-runtime-v291 .field{flex-direction:column;gap:4px;min-width:0;display:flex}.mattress-runtime-v291 .field.full{margin-bottom:8px}.mattress-runtime-v291 .field span{color:#475569;font-size:10px}.mattress-runtime-v291 .field input,.mattress-runtime-v291 .field select{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:7px;outline:none;width:100%;height:33px;padding:0 7px;font-size:11px}.mattress-runtime-v291 .field input:focus,.mattress-runtime-v291 .field select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa1f}.mattress-runtime-v291 .scale-summary{grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px;display:grid}.mattress-runtime-v291 .scale-summary div{background:#eff6ff;border-radius:7px;flex-direction:column;padding:6px;display:flex}.mattress-runtime-v291 .scale-summary span{color:#64748b;font-size:9px}.mattress-runtime-v291 .scale-summary strong{color:#1d4ed8;font-size:11px}.mattress-runtime-v291 .switch-stack{margin-top:8px}.mattress-runtime-v291 .switch-stack.compact-switches{grid-template-columns:1fr 1fr;gap:0 10px;display:grid}.mattress-runtime-v291 .switch-row{color:#334155;cursor:pointer;align-items:flex-start;gap:8px;padding:6px 0;display:flex}.mattress-runtime-v291 .switch-row+.switch-row{border-top:1px solid #f1f5f9}.mattress-runtime-v291 .switch-row input{accent-color:#2563eb;margin-top:2px}.mattress-runtime-v291 .switch-row span{flex-direction:column;min-width:0;display:flex}.mattress-runtime-v291 .switch-row strong{font-size:11px;font-weight:620}.mattress-runtime-v291 .switch-row small{color:#94a3b8;margin-top:2px;font-size:9px;line-height:1.4}.mattress-runtime-v291 .switch-row.standalone{margin-top:4px}.mattress-runtime-v291 .measurement-card{color:#334155;background:#f8fafc;border-radius:7px;flex-direction:column;margin-top:9px;padding:8px;display:flex}.mattress-runtime-v291 .measurement-card span{color:#64748b;font-size:9px}.mattress-runtime-v291 .measurement-card strong{margin-top:3px;font-size:10px;line-height:1.45}.mattress-runtime-v291 .viewer-column{background:#dbe4ee;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;display:grid}.mattress-runtime-v291 .viewer-host{min-width:0;min-height:0;position:relative;overflow:hidden}.mattress-runtime-v291 .viewer-host canvas{width:100%;height:100%;display:block}.mattress-runtime-v291 .css2d-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.mattress-runtime-v291 .viewer-hint{z-index:3;color:#475569;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:none;background:#ffffffd6;border:1px solid #cbd5e1db;border-radius:8px;padding:6px 9px;font-size:10px;position:absolute;bottom:13px;right:13px}.mattress-runtime-v291 .dimension-label{color:#1e3a8a;white-space:nowrap;background:#eff6fff0;border:1px solid #93c5fd;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:700;box-shadow:0 1px 4px #0f172a1f}.mattress-runtime-v291 .part-list-card{padding-bottom:9px}.mattress-runtime-v291 .part-list{flex-direction:column;gap:5px;display:flex}.mattress-runtime-v291 .part-item{color:#334155;text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:8px 9px;display:flex}.mattress-runtime-v291 .part-item.selected{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.mattress-runtime-v291 .part-item>span:first-child{flex-direction:column;display:flex}.mattress-runtime-v291 .part-item strong{font-size:11px}.mattress-runtime-v291 .part-item small{color:#94a3b8;margin-top:1px;font-size:9px}.mattress-runtime-v291 .part-state{color:#475569;background:#e2e8f0;border-radius:999px;padding:2px 5px;font-size:8px}.mattress-runtime-v291 .part-state.repeat{color:#166534;background:#dcfce7}.mattress-runtime-v291 .part-state.missing{color:#991b1b;background:#fee2e2}.mattress-runtime-v291 .part-key-badge{color:#475569;background:#f1f5f9;border-radius:999px;padding:3px 6px;font:9px Cascadia Code,Consolas,monospace}.mattress-runtime-v291 .info-callout{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:7px;margin-bottom:9px;padding:7px 8px;font-size:9px;line-height:1.5}.mattress-runtime-v291 .texture-stack{flex-direction:column;gap:7px;display:flex}.mattress-runtime-v291 .texture-upload{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px;display:grid}.mattress-runtime-v291 .texture-preview{color:#94a3b8;background:#e2e8f0;border-radius:6px;justify-content:center;align-items:center;width:50px;height:50px;font-size:8px;display:flex;overflow:hidden}.mattress-runtime-v291 .texture-preview img{object-fit:cover;width:100%;height:100%}.mattress-runtime-v291 .texture-info{flex-direction:column;min-width:0;display:flex}.mattress-runtime-v291 .texture-info strong{font-size:10px}.mattress-runtime-v291 .texture-info small{color:#64748b;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:8px;overflow:hidden}.mattress-runtime-v291 .texture-actions{flex-direction:column;gap:4px;display:flex}.mattress-runtime-v291 .mini-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;justify-content:center;align-items:center;min-height:23px;padding:3px 6px;font-size:8px;display:inline-flex;position:relative}.mattress-runtime-v291 .mini-button input{opacity:0;width:1px;height:1px;position:absolute}.mattress-runtime-v291 .mini-button.danger{color:#991b1b;border-color:#fecaca}.mattress-runtime-v291 .repeat-panel{background:#f8fafc;border:1px solid #dbeafe;border-radius:8px;margin-top:10px;padding:9px}.mattress-runtime-v291 .repeat-summary{background:#ecfdf5;border-radius:7px;flex-direction:column;margin-bottom:8px;padding:7px;display:flex}.mattress-runtime-v291 .repeat-summary span{color:#047857;font-size:8px}.mattress-runtime-v291 .repeat-summary strong{color:#065f46;margin-top:2px;font-size:10px}.mattress-runtime-v291 .advanced-box{margin-top:8px}.mattress-runtime-v291 .advanced-box summary{color:#475569;cursor:pointer;font-size:10px}.mattress-runtime-v291 .advanced-fields{margin-top:8px}.mattress-runtime-v291 .material-actions{margin-top:10px}.mattress-runtime-v291 .debug-panel{background:#fff;border-top:1px solid #cbd5e1}.mattress-runtime-v291 .debug-toggle{color:#0f172a;text-align:left;background:#fff;border:0;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:8px 14px;display:flex}.mattress-runtime-v291 .debug-toggle span:first-child{flex-direction:column;display:flex}.mattress-runtime-v291 .debug-toggle strong{font-size:11px}.mattress-runtime-v291 .debug-toggle small{color:#64748b;margin-top:2px;font-size:9px}.mattress-runtime-v291 .debug-content{max-height:310px;padding:0 12px 12px;overflow:auto}.mattress-runtime-v291 .debug-json-grid{grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:8px;display:grid}.mattress-runtime-v291 .debug-json-grid h3{margin:0 0 4px;font-size:9px}.mattress-runtime-v291 pre{color:#dbeafe;background:#0f172a;border-radius:7px;margin:0;padding:8px;font:9px/1.45 Cascadia Code,Consolas,monospace;overflow:auto}.mattress-runtime-v291 .mesh-table-wrap{border:1px solid #e2e8f0;border-radius:7px;overflow:auto}.mattress-runtime-v291 .mesh-table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:9px}.mattress-runtime-v291 .mesh-table th,.mattress-runtime-v291 .mesh-table td{text-align:left;border-bottom:1px solid #e2e8f0;padding:6px 8px}.mattress-runtime-v291 .mesh-table th{color:#475569;background:#f8fafc;position:sticky;top:0}@media (width<=1450px){.mattress-runtime-v291{min-width:1180px}.mattress-runtime-v291 .workspace{grid-template-columns:300px minmax(0,1fr) 350px}}.mattress-runtime-v291 .runtime-source-card{background:#f8fafc;border:1px solid #dbeafe;border-radius:8px;gap:6px;margin:8px 0 10px;padding:9px;display:grid}.mattress-runtime-v291 .runtime-source-card>div{justify-content:space-between;align-items:center;gap:8px;display:flex}.mattress-runtime-v291 .runtime-source-card span{color:#64748b;font-size:9px}.mattress-runtime-v291 .runtime-source-card strong{color:#1e3a8a;text-overflow:ellipsis;white-space:nowrap;max-width:190px;font-size:9px;overflow:hidden}.mattress-runtime-v291 .texture-risk{border-radius:5px;margin-top:4px;padding:4px 6px;font-size:8px;line-height:1.45}.mattress-runtime-v291 .texture-risk.danger{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.mattress-runtime-v291 .texture-risk.warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.mattress-runtime-v291 .repeat-summary small{color:#64748b;margin-top:3px;font-size:8px;display:block}.mattress-runtime-v291 .cad-dimension-label{font-variant-numeric:tabular-nums;background:#f8fafcfa;border-color:#60a5fa;border-radius:3px;padding:3px 8px;box-shadow:0 0 0 2px #f8fafcc7}.dimension-label.cad-dimension-label{color:#1e3a8a;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;background:#f8fafcfa;border:1px solid #60a5fa;border-radius:3px;padding:3px 8px;font-size:10px;font-weight:700;box-shadow:0 0 0 2px #f8fafcc7}.mattress-runtime-v291 .direct-fill-panel{background:#f8fafc;border:1px solid #dbeafe;border-radius:9px;margin-top:10px;padding:10px}.mattress-runtime-v291 .crop-mode-tabs{grid-template-columns:1fr 1fr;gap:6px;margin-bottom:8px;display:grid}.mattress-runtime-v291 .crop-mode-tabs button,.mattress-runtime-v291 .crop-anchor-buttons button{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:7px;min-height:30px;padding:5px 8px;font-size:9px}.mattress-runtime-v291 .crop-mode-tabs button.active{color:#1d4ed8;background:#eff6ff;border-color:#60a5fa}.mattress-runtime-v291 .crop-mode-tabs button:disabled{opacity:.45;cursor:not-allowed}.mattress-runtime-v291 .auto-crop-box>span{color:#64748b;margin-bottom:5px;font-size:9px;display:block}.mattress-runtime-v291 .crop-anchor-buttons{grid-template-columns:repeat(5,1fr);gap:5px;display:grid}.mattress-runtime-v291 .crop-anchor-buttons.compact button{min-height:26px;padding:3px 5px}.mattress-runtime-v291 .crop-summary-card{background:#fff;border:1px solid #e2e8f0;border-radius:7px;gap:5px;margin-top:8px;padding:8px;display:grid}.mattress-runtime-v291 .crop-summary-card>div{justify-content:space-between;gap:8px;display:flex}.mattress-runtime-v291 .crop-summary-card span{color:#64748b;font-size:8px}.mattress-runtime-v291 .crop-summary-card strong{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;max-width:230px;font-size:8px;overflow:hidden}.mattress-runtime-v291 .field-help{color:#64748b;margin:7px 0 0;font-size:8px;line-height:1.5}.mattress-runtime-v291 .reuse-box{margin-top:10px}.mattress-runtime-v291 .reuse-part-list{grid-template-columns:1fr 1fr;gap:5px;margin:8px 0;display:grid}.mattress-runtime-v291 .reuse-part-item{background:#fff;border:1px solid #e2e8f0;border-radius:6px;align-items:center;gap:6px;padding:5px 7px;font-size:9px;display:flex}.mattress-runtime-v291 .full-width{width:100%}.mattress-runtime-crop-modal-overlay .crop-modal-backdrop{z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172ab8;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.mattress-runtime-crop-modal-overlay .crop-modal-header{justify-content:space-between;align-items:center;display:flex}.mattress-runtime-crop-modal-overlay .crop-modal-header h2{margin:2px 0 0;font-size:17px}.mattress-runtime-v291 .icon-button{color:#475569;cursor:pointer;background:#f1f5f9;border:0;border-radius:50%;width:34px;height:34px;font-size:22px}.mattress-runtime-v291 .crop-help{color:#64748b;margin:10px 0 12px;font-size:12px;line-height:1.55}.mattress-runtime-v291 .crop-workspace{background:#111827;border-radius:10px;justify-content:center;align-items:center;min-height:280px;padding:14px;display:flex;overflow:auto}.mattress-runtime-v291 .crop-stage{-webkit-user-select:none;user-select:none;line-height:0;display:inline-block;position:relative;overflow:hidden}.mattress-runtime-v291 .crop-stage>img{pointer-events:none;width:auto;max-width:min(78vw,820px);height:auto;max-height:55vh;display:block}.mattress-runtime-v291 .crop-selection{z-index:3;cursor:move;touch-action:none;border:2px solid #60a5fa;position:absolute;overflow:hidden;box-shadow:0 0 0 9999px #00000085}.mattress-runtime-v291 .crop-grid-line{pointer-events:none;background:#ffffff8c;position:absolute}.mattress-runtime-v291 .crop-grid-line.vertical{width:1px;top:0;bottom:0}.mattress-runtime-v291 .crop-grid-line.horizontal{height:1px;left:0;right:0}.mattress-runtime-v291 .crop-grid-line.vertical.one{left:33.333%}.mattress-runtime-v291 .crop-grid-line.vertical.two{left:66.666%}.mattress-runtime-v291 .crop-grid-line.horizontal.one{top:33.333%}.mattress-runtime-v291 .crop-grid-line.horizontal.two{top:66.666%}.mattress-runtime-v291 .crop-drag-label{color:#fff;pointer-events:none;background:#0f172aad;border-radius:5px;padding:5px 8px;font-size:10px;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.mattress-runtime-v291 .crop-controls{grid-template-columns:minmax(240px,1fr) minmax(360px,1.5fr);align-items:center;gap:16px;margin-top:12px;display:grid}.mattress-runtime-v291 .crop-zoom{color:#475569;flex-direction:column;gap:6px;font-size:11px;display:flex}.mattress-runtime-v291 .crop-zoom input{width:100%}@media (width<=760px){.mattress-runtime-v291 .crop-controls{grid-template-columns:1fr}.mattress-runtime-v291 .crop-anchor-buttons{grid-template-columns:repeat(3,1fr)}}.mattress-runtime-v291 .rotation-field{margin-top:8px}.mattress-runtime-v291 .rotation-control-row{grid-template-columns:minmax(0,1fr) 82px;align-items:center;gap:8px;display:grid}.mattress-runtime-v291 .rotation-control-row input[type=range],.mattress-runtime-v291 .rotation-number{width:100%}.mattress-runtime-v291 .crop-controls-single{grid-template-columns:1fr}.mattress-runtime-v291 .fixed-crop-workspace{background:#111827;border-radius:10px;justify-content:center;align-items:center;min-height:320px;padding:18px;display:flex;overflow:auto}.mattress-runtime-v291 .fixed-crop-frame{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:#020617;border:2px solid #60a5fa;border-radius:4px;width:min(820px,78vw);max-height:55vh;position:relative;overflow:hidden;box-shadow:0 0 0 1px #ffffff47,0 12px 32px #02061752}.mattress-runtime-v291 .fixed-crop-frame.dragging{cursor:grabbing}.mattress-runtime-v291 .fixed-crop-image{object-fit:fill;pointer-events:none;-webkit-user-select:none;user-select:none;will-change:left, top, width, height, transform;max-width:none;max-height:none;position:absolute}.mattress-runtime-v291 .fixed-crop-frame .crop-grid-line{z-index:3}.mattress-runtime-v291 .fixed-crop-hint{z-index:4;color:#fff;pointer-events:none;background:#0f172aad;border-radius:5px;padding:6px 9px;font-size:10px;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.mattress-runtime-v291 .texture-upload-v28{grid-template-columns:50px minmax(0,1fr) 72px}.mattress-runtime-v291 .texture-actions-v28{min-width:68px}.mattress-runtime-v291 .crop-selection{transform-origin:50%}.mattress-runtime-v291 .crop-selection.dragging{cursor:grabbing}.mattress-runtime-v291 .crop-stage>img{min-width:220px}.mattress-runtime-v291 .crop-editor-stage{background:#020617;min-width:320px;min-height:240px;overflow:hidden}.mattress-runtime-v291 .crop-editor-stage>img{transform-origin:50%;will-change:transform;transition:none}.mattress-runtime-v291 .crop-resize-handle{z-index:6;touch-action:none;background:#fff;border:2px solid #2563eb;border-radius:50%;width:14px;height:14px;padding:0;position:absolute;box-shadow:0 1px 5px #0f172a73}.mattress-runtime-v291 .crop-resize-handle.handle-nw{cursor:nwse-resize;top:-8px;left:-8px}.mattress-runtime-v291 .crop-resize-handle.handle-n{cursor:ns-resize;top:-8px;left:50%;transform:translate(-50%)}.mattress-runtime-v291 .crop-resize-handle.handle-ne{cursor:nesw-resize;top:-8px;right:-8px}.mattress-runtime-v291 .crop-resize-handle.handle-e{cursor:ew-resize;top:50%;right:-8px;transform:translateY(-50%)}.mattress-runtime-v291 .crop-resize-handle.handle-se{cursor:nwse-resize;bottom:-8px;right:-8px}.mattress-runtime-v291 .crop-resize-handle.handle-s{cursor:ns-resize;bottom:-8px;left:50%;transform:translate(-50%)}.mattress-runtime-v291 .crop-resize-handle.handle-sw{cursor:nesw-resize;bottom:-8px;left:-8px}.mattress-runtime-v291 .crop-resize-handle.handle-w{cursor:ew-resize;top:50%;left:-8px;transform:translateY(-50%)}.mattress-runtime-v291{width:100%;min-width:0;height:100dvh;min-height:640px;overflow:hidden}.mattress-runtime-v291 *,.mattress-runtime-v291 :before,.mattress-runtime-v291 :after{box-sizing:border-box}.mattress-runtime-v291 button,.mattress-runtime-v291 input,.mattress-runtime-v291 select,.mattress-runtime-v291 textarea{font:inherit}.mattress-runtime-v291 input[type=checkbox],.mattress-runtime-v291 input[type=radio]{appearance:auto;accent-color:#2563eb;width:14px;min-width:14px;height:14px;min-height:14px;margin:2px 0 0;padding:0}.mattress-runtime-v291 input[type=file]{width:1px;height:1px;padding:0}.mattress-runtime-v291 .workspace,.mattress-runtime-v291 .viewer-column{min-height:0;overflow:hidden}.mattress-runtime-crop-modal-overlay{z-index:2147483000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172ab8;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0;overflow:auto}.mattress-runtime-crop-modal-overlay .crop-modal{background:#fff;border:1px solid #fff3;border-radius:14px;flex-direction:column;width:min(920px,94vw);max-height:calc(100dvh - 48px);padding:16px;display:flex;overflow:auto;box-shadow:0 24px 80px #0f172a59}.mattress-runtime-crop-modal-overlay .section-kicker{letter-spacing:.14em;color:#64748b;font-size:10px;font-weight:760}.mattress-runtime-crop-modal-overlay .icon-button{color:#475569;cursor:pointer;background:#f1f5f9;border:0;border-radius:50%;width:34px;height:34px;font-size:22px}.mattress-runtime-crop-modal-overlay .crop-help{color:#64748b;margin:10px 0 12px;font-size:12px;line-height:1.55}.mattress-runtime-crop-modal-overlay .crop-workspace{background:#111827;border-radius:10px;justify-content:center;align-items:center;min-height:280px;padding:14px;display:flex;overflow:auto}.mattress-runtime-crop-modal-overlay .crop-stage{-webkit-user-select:none;user-select:none;line-height:0;display:inline-block;position:relative;overflow:hidden}.mattress-runtime-crop-modal-overlay .crop-stage>img{pointer-events:none;width:auto;max-width:min(78vw,820px);height:auto;max-height:55vh;display:block}.mattress-runtime-crop-modal-overlay .crop-editor-stage{background:#020617;min-width:320px;min-height:240px;overflow:hidden}.mattress-runtime-crop-modal-overlay .crop-selection{z-index:3;cursor:move;touch-action:none;border:2px solid #60a5fa;position:absolute;overflow:hidden;box-shadow:0 0 0 9999px #00000085}.mattress-runtime-crop-modal-overlay .crop-grid-line{pointer-events:none;background:#ffffff8c;position:absolute}.mattress-runtime-crop-modal-overlay .crop-grid-line.vertical{width:1px;top:0;bottom:0}.mattress-runtime-crop-modal-overlay .crop-grid-line.horizontal{height:1px;left:0;right:0}.mattress-runtime-crop-modal-overlay .crop-grid-line.vertical.one{left:33.333%}.mattress-runtime-crop-modal-overlay .crop-grid-line.vertical.two{left:66.666%}.mattress-runtime-crop-modal-overlay .crop-grid-line.horizontal.one{top:33.333%}.mattress-runtime-crop-modal-overlay .crop-grid-line.horizontal.two{top:66.666%}.mattress-runtime-crop-modal-overlay .crop-drag-label{color:#fff;pointer-events:none;background:#0f172aad;border-radius:5px;padding:5px 8px;font-size:10px;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.mattress-runtime-crop-modal-overlay .crop-controls{align-items:center;gap:16px;margin-top:12px;display:grid}.mattress-runtime-crop-modal-overlay .crop-zoom{color:#475569;flex-direction:column;gap:6px;font-size:11px;display:flex}.mattress-runtime-crop-modal-overlay .crop-zoom input{width:100%;min-height:20px}.mattress-runtime-crop-modal-overlay .rotation-control-row{grid-template-columns:minmax(0,1fr) 82px;align-items:center;gap:8px;display:grid}.mattress-runtime-crop-modal-overlay .crop-modal-actions{justify-content:flex-end;gap:8px;margin-top:14px;display:flex}.mattress-runtime-crop-modal-overlay .button{cursor:pointer;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;min-height:35px;padding:7px 10px;font-size:11px;font-weight:650;display:inline-flex}.mattress-runtime-crop-modal-overlay .button.primary{color:#fff;background:#2563eb;border-color:#2563eb}.mattress-runtime-crop-modal-overlay .button.secondary{color:#1e293b;background:#fff;border-color:#cbd5e1}.mattress-runtime-crop-handle{z-index:6;appearance:none;touch-action:none;background:#fff;border:2px solid #2563eb;border-radius:50%;width:14px;min-width:0;height:14px;min-height:0;margin:0;padding:0;font-size:0;line-height:0;position:absolute;box-shadow:0 1px 5px #0f172a73}.mattress-runtime-crop-handle--nw{cursor:nwse-resize;top:-8px;left:-8px}.mattress-runtime-crop-handle--n{cursor:ns-resize;top:-8px;left:50%;transform:translate(-50%)}.mattress-runtime-crop-handle--ne{cursor:nesw-resize;top:-8px;right:-8px}.mattress-runtime-crop-handle--e{cursor:ew-resize;top:50%;right:-8px;transform:translateY(-50%)}.mattress-runtime-crop-handle--se{cursor:nwse-resize;bottom:-8px;right:-8px}.mattress-runtime-crop-handle--s{cursor:ns-resize;bottom:-8px;left:50%;transform:translate(-50%)}.mattress-runtime-crop-handle--sw{cursor:nesw-resize;bottom:-8px;left:-8px}.mattress-runtime-crop-handle--w{cursor:ew-resize;top:50%;left:-8px;transform:translateY(-50%)}.mattress-runtime-crop-modal-overlay .crop-modal,.mattress-runtime-crop-modal-overlay .crop-workspace{overflow:hidden}.mattress-runtime-crop-modal-overlay .crop-modal--compact{padding:14px 18px}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-modal-header{padding:4px 6px 0}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-help{margin:6px 6px 10px}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-workspace{min-height:240px;padding:10px}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-editor-stage{min-height:220px}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-controls{grid-template-columns:1fr;gap:10px;margin-top:10px}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-zoom{grid-template-columns:80px minmax(0,1fr) 68px;align-items:center;gap:10px;display:grid}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-zoom>span,.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-zoom output{white-space:nowrap}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-zoom output{color:#475569;font-variant-numeric:tabular-nums;text-align:left}.mattress-runtime-crop-modal-overlay .crop-modal--compact .rotation-control-row{grid-column:2/-1;grid-template-columns:minmax(0,1fr) 68px}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-modal-actions{margin-top:10px;padding:0 6px 2px}@media (height<=800px){.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-workspace{min-height:210px}.mattress-runtime-crop-modal-overlay .crop-modal--compact .crop-editor-stage{min-height:200px}}
