body.widget-mode{min-width:0;background:#f4f5f6;color:#171a1f}
body.widget-mode .mobile-bottom-nav,
body.widget-mode #mobileQuickActionBtn,
body.widget-mode #mobileQuickActionMenu,
body.widget-mode #commandPalette{display:none!important}
body.widget-mode .app{width:100%;max-width:1180px;min-width:0;margin:0 auto;padding:16px;background:transparent}
body.widget-mode .top,
body.widget-mode .tabs,
body.widget-mode .workspace-utility-bar,
body.widget-mode #roleWorkspacePanel,
body.widget-mode #accessGate,
body.widget-mode #dashboardView,
body.widget-mode .calc-planning-section,
body.widget-mode #postpressCalcSection,
body.widget-mode #layoutVisualizationSection,
body.widget-mode #crmPayloadSection,
body.widget-mode #formula,
body.widget-mode #layoutAdvice,
body.widget-mode #qualityWarnings,
body.widget-mode #crmModeBanner,
body.widget-mode .term-field,
body.widget-mode .layout-field,
body.widget-mode .admin-only,
body.widget-mode .quick-order-title span,
body.widget-mode #quickDraftBtn,
body.widget-mode #sendCrmEstimateBtn,
body.widget-mode #crmAfterSendActions,
body.widget-mode .quick-order-card{display:none!important}
body.widget-mode #calcView{display:block!important;width:100%;min-width:0;margin:0;padding:0}
body.widget-mode #calcView>.section:first-child{display:grid!important;grid-template-columns:minmax(0,1fr);gap:18px;width:100%;min-width:0;margin:0;padding:22px;border:1px solid #dde1e5;border-radius:8px;background:#fff;box-shadow:0 16px 48px rgba(20,24,30,.08)}
body.widget-mode #calcView>.section:first-child>.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0!important}
body.widget-mode #calcView>.section:first-child>.primary-options-grid{order:1}
body.widget-mode #calcView>.section:first-child>.finish-options-grid{order:2}
body.widget-mode #bookletOptionsSection,
body.widget-mode #photoOptionsSection{order:3;margin:0}
body.widget-mode #photoOptionsSection .split-head .muted{display:none!important}
body.widget-mode #priceMatrixPanel{order:4;margin:2px 0 0;padding:18px;border:1px solid #dce2e7;border-radius:7px;background:#fafbfc;min-width:0}
body.widget-mode .calc-summary-rail{display:block!important;position:static!important;order:5;width:100%;min-width:0;margin:0;padding:0;background:transparent;border:0;box-shadow:none}
body.widget-mode .calc-summary-rail .metrics{display:grid!important;grid-template-columns:1fr;margin:0}
body.widget-mode .calc-summary-rail .metric{display:none!important}
body.widget-mode .calc-summary-rail .metric.tone-primary{display:flex!important;min-height:84px;padding:16px 20px;border:1px solid #1c2025;border-radius:7px;background:#171a1f;color:#fff;align-items:center;justify-content:space-between}
body.widget-mode .calc-summary-rail .metric.tone-primary span{color:#c6cbd1;font-size:12px;text-transform:uppercase;font-weight:800}
body.widget-mode .calc-summary-rail .metric.tone-primary b{font-size:clamp(30px,6vw,44px);line-height:1;color:#fff}
body.widget-mode .quick-order-card{margin:0;padding:18px;border:1px solid #dce2e7;border-radius:7px;background:#f7f9fa}
body.widget-mode .quick-order-title{display:flex;margin-bottom:14px;align-items:center;justify-content:space-between}
body.widget-mode .quick-order-title b{font-size:18px;color:#171a1f}
body.widget-mode .order-panel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0!important;border:0!important;background:transparent!important}
body.widget-mode .order-panel>div{min-width:0}
body.widget-mode .order-panel .comment-field,
body.widget-mode .order-panel .quick-order-actions{grid-column:1/-1}
body.widget-mode .quick-order-actions{display:grid!important;grid-template-columns:1fr}
body.widget-mode #createOrderBtn{width:100%;min-height:52px;background:#171a1f;color:#fff;border-color:#171a1f;font-weight:900}
body.widget-mode #createOrderBtn:hover{background:#148fa3;border-color:#148fa3}
body.widget-mode .design-asset-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;padding-top:14px;border-top:1px solid #dce2e7}
body.widget-mode label{display:block;margin:0 0 6px;color:#616973;font-size:11px;font-weight:900;text-transform:uppercase}
body.widget-mode input,
body.widget-mode select,
body.widget-mode textarea{width:100%;min-width:0;height:46px;border:1px solid #cdd3d9;border-radius:6px;background:#fff;color:#171a1f;padding:0 12px;font:inherit}
body.widget-mode input:focus,
body.widget-mode select:focus,
body.widget-mode textarea:focus{outline:0;border-color:#1598ad;box-shadow:0 0 0 3px rgba(21,152,173,.12)}
body.widget-mode #productSelect:disabled{opacity:1;color:#171a1f;background:#f0f2f4;cursor:default}
body.widget-mode #priceMatrixPanel .split-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:12px}
body.widget-mode #priceMatrixPanel h2{margin:0;font-size:20px;color:#171a1f}
body.widget-mode #matrixCaption{color:#737b84;font-size:12px;text-align:right}
body.widget-mode #priceMatrixPanel .table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid #d9dee3;border-radius:6px;background:#fff;-webkit-overflow-scrolling:touch}
body.widget-mode #matrixTable{width:100%;min-width:680px;border-collapse:collapse;color:#171a1f}
body.widget-mode #matrixTable th{background:#eef1f3;color:#4f5862;font-size:10px;text-transform:uppercase}
body.widget-mode #matrixTable th,
body.widget-mode #matrixTable td{padding:10px 8px;border:0;border-bottom:1px solid #e3e6e9;text-align:center}
body.widget-mode #matrixTable tr:last-child td{border-bottom:0}
body.widget-mode .price-cell{min-width:82px;border-radius:5px;cursor:pointer}
body.widget-mode .price-cell .total{display:block;color:#171a1f;font-size:14px;font-weight:900}
body.widget-mode .price-cell .unit{display:block;margin-top:3px;color:#717982;font-size:10px}
body.widget-mode .price-cell.selected{background:#dff4f7;box-shadow:inset 0 0 0 2px #1598ad}
body.widget-mode .notice{color:#29313a;background:#eef8fa;border-color:#b9dfe5}
body.widget-mode .muted{color:#717982}
body.widget-mode #requestNotice{margin-top:12px}
body.widget-mode .booklet-options{border:1px solid #dce2e7;border-radius:7px;background:#fafbfc;padding:16px}
@media(max-width:820px){body.widget-mode .app{padding:10px}body.widget-mode #calcView>.section:first-child{padding:16px;gap:14px}body.widget-mode #calcView>.section:first-child>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.widget-mode .design-asset-panel{grid-template-columns:1fr}}
@media(max-width:520px){body.widget-mode .app{padding:0}body.widget-mode #calcView>.section:first-child{padding:14px;border-left:0;border-right:0;border-radius:0;box-shadow:none}body.widget-mode #calcView>.section:first-child>.grid{grid-template-columns:1fr}body.widget-mode .order-panel{grid-template-columns:1fr}body.widget-mode .order-panel .comment-field,body.widget-mode .order-panel .quick-order-actions{grid-column:auto}body.widget-mode #priceMatrixPanel,body.widget-mode .quick-order-card{padding:14px}body.widget-mode #priceMatrixPanel .split-head{display:block}body.widget-mode #matrixCaption{text-align:left;margin-top:4px}body.widget-mode .calc-summary-rail .metric.tone-primary{min-height:72px}body.widget-mode .calc-summary-rail .metric.tone-primary b{font-size:32px}}
