:root {
  --red: #e4322f;
  --red-dark: #bd2422;
  --ink: #161819;
  --muted: #6d7377;
  --line: #dfe2e3;
  --panel: #f3f4f4;
  --white: #fff;
  --shadow: 0 18px 55px rgba(13, 17, 19, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #e9ebec; font-size: 16px; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar { height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--ink); }
.brand img { width: 154px; height: auto; display: block; }
.brand span { font: 700 18px/1 Barlow Condensed, sans-serif; letter-spacing: .09em; padding-left: 15px; border-left: 1px solid #c8ccce; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-picker { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.language-picker span { color: #747a7d; font: 700 10px/1 Barlow Condensed, sans-serif; letter-spacing: .08em; }
.language-picker select { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.demo-badge, .eyebrow { font: 700 13px/1 Barlow Condensed, sans-serif; letter-spacing: .12em; }
.demo-badge { color: #696f72; margin-right: 8px; }
.icon-button, .tool-button, .close-button { display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--ink); }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; }
.icon-button:disabled { opacity: .35; cursor: not-allowed; }
.save-design-button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.save-design-button svg { width: 18px; height: 18px; }
.save-design-button:disabled { opacity: .45; cursor: not-allowed; }
.primary, .secondary { min-height: 46px; border-radius: 3px; padding: 0 22px; font-weight: 700; border: 1px solid transparent; }
.primary { color: #fff; background: var(--red); box-shadow: 0 7px 18px rgba(228,50,47,.22); }
.primary:hover { background: var(--red-dark); }
.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.primary.compact { min-height: 44px; }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.secondary.compact { min-height: 40px; padding: 0 13px; font-size: 12px; }
.new-design-button { white-space: nowrap; }
.app-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.control-panel { background: #fff; border-right: 1px solid var(--line); height: calc(100vh - 72px); overflow-y: auto; position: sticky; top: 72px; display: flex; flex-direction: column; z-index: 12; }
.panel-section { padding: 22px 25px; border-bottom: 1px solid var(--line); }
.panel-section.first { padding-top: 24px; }
.panel-section.step-current { box-shadow: inset 4px 0 0 var(--red); }
.panel-section.step-complete .step { color: #fff; background: var(--ink); }
.step-continue { width: 100%; min-height: 42px; margin-top: 12px; border: 0; border-radius: 3px; color: #fff; background: var(--red); font-size: 13px; font-weight: 700; box-shadow: 0 5px 13px rgba(228,50,47,.18); }
.step-continue:hover { background: var(--red-dark); }
.section-heading { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; margin-bottom: 17px; }
.step-toggle { display: none; align-self: center; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #5f6568; font-size: 10px; font-weight: 700; }
.step { width: 30px; height: 30px; display: grid; place-items: center; color: var(--red); background: #fff0ef; font: 700 14px/1 Barlow Condensed, sans-serif; border-radius: 50%; }
.section-heading h2 { font: 700 21px/1 Barlow Condensed, sans-serif; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 5px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.measure-grid label { color: var(--muted); font-size: 13px; font-weight: 600; }
.measure-grid label span { display: flex; align-items: center; gap: 6px; margin-top: 7px; border: 1px solid #cdd1d3; border-radius: 3px; padding: 0 10px; background: #fff; color: var(--muted); }
.measure-grid input { width: 100%; height: 42px; min-width: 0; border: 0; outline: 0; color: var(--ink); font-weight: 700; background: transparent; }
.measure-grid label span:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,50,47,.1); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.presets button { min-height: 34px; padding: 5px 6px; border: 1px solid var(--line); color: #5f6468; background: #fff; font-size: 12px; font-weight: 600; border-radius: 3px; }
.presets button.active { border-color: var(--red); color: var(--red); background: #fff8f7; }
.product-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.product-tab { min-width: 0; display: grid; grid-template-columns: 58px 1fr; align-items: center; text-align: left; gap: 8px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.product-tab img { width: 58px; height: 58px; display: block; object-fit: contain; border-radius: 2px; }
.product-tab strong { font-size: 12px; line-height: 1.15; }
.product-tab.active { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); background: #fff9f8; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; outline: 1px solid #bfc4c7; position: relative; background: var(--swatch-color); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 1px 2px rgba(17,20,22,.12); }
.swatch.active { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch.active::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.selected-color-name { margin: 9px 0 0; color: #747a7d; font-size: 12px; }
.selected-color-name strong { color: var(--ink); }
.paint-tools { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 17px; }
.paint-tools button { min-height: 58px; padding: 7px 4px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 3px; font-size: 11px; font-weight: 600; color: #555b5e; }
.paint-tools button.active { color: var(--red); border-color: var(--red); background: #fff7f6; }
.paint-tools .wide-tool { grid-column: 1 / -1; min-height: 44px; grid-auto-flow: column; }
.live-choice-note { margin: 9px 0 12px; color: #666c6f; font-size: 12px; line-height: 1.4; }
.manual-editor { margin-top: 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.manual-editor-first { margin-top: 0; border-color: #c9cdcf; box-shadow: 0 4px 12px rgba(15,19,20,.05); }
.manual-editor-first summary { min-height: 48px; font-size: 13px; }
.choice-divider { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.manual-editor summary { min-height: 43px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 700; list-style: none; }
.manual-editor summary::-webkit-details-marker { display: none; }
.manual-editor summary::after { content: '+'; color: var(--red); font-size: 19px; font-weight: 500; }
.manual-editor[open] summary::after { content: '−'; }
.manual-editor summary span { padding: 3px 6px; border-radius: 10px; color: #666c6f; background: #eef0f1; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.manual-editor-content { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.manual-floor-instruction { margin: 12px 0 0; color: #656c70; font-size: 13px; line-height: 1.45; }
.manual-floor-cta { display: none; }
.sub-label { display: block; margin: 18px 0 9px; color: #7a8083; font: 700 11px/1 Barlow Condensed, sans-serif; letter-spacing: .11em; }
.pattern-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 9px; }
.pattern-colors.single-color { grid-template-columns: 1fr; }
.pattern-colors label { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.pattern-colors label span { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; color: #747a7d; font-size: 10px; font-weight: 650; }
.pattern-colors label span b { font: inherit; }
.pattern-colors label > span i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); border: 1px solid rgba(0,0,0,.16); }
.pattern-colors select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 650; }
.motif-color-picker { position: relative; }
.motif-color-picker summary { min-height: 28px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--ink); }
.motif-color-picker summary::-webkit-details-marker { display: none; }
.motif-color-picker summary::after { content: '⌄'; margin-left: auto; color: #61676a; font-size: 15px; }
.motif-color-picker[open] summary::after { content: '⌃'; }
.motif-color-picker summary i, .motif-color-menu button i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: var(--choice-color); border: 1px solid rgba(0,0,0,.2); box-shadow: inset 0 1px 1px rgba(255,255,255,.25); }
.motif-color-picker summary strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.motif-color-menu { position: absolute; top: calc(100% + 6px); left: -9px; right: -9px; z-index: 45; max-height: 248px; overflow-y: auto; padding: 5px; border: 1px solid #bfc4c7; border-radius: 3px; background: #fff; box-shadow: 0 14px 34px rgba(15,19,20,.2); }
.motif-color-menu button { width: 100%; min-height: 34px; padding: 5px 7px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 2px; background: #fff; color: var(--ink); text-align: left; font-size: 12px; }
.motif-color-menu button:hover, .motif-color-menu button.active { background: #eef0f1; }
.motif-color-menu button.active { font-weight: 700; box-shadow: inset 3px 0 0 var(--red); }
.pattern-select { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pattern-select button { min-width: 0; padding: 5px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #61676a; font-size: 10px; font-weight: 600; }
.pattern-select button.active { border-color: var(--red); color: var(--red); background: #fff8f7; }
.pattern-preview { height: 29px; display: block; margin-bottom: 5px; border: 1px solid rgba(0,0,0,.13); background-size: 12px 12px; }
.pattern-preview.plain { background: var(--p1, #287eb5); }
.pattern-preview.frame { background: linear-gradient(var(--p2, #c43b31) 0 5px, transparent 5px calc(100% - 5px), var(--p2, #c43b31) calc(100% - 5px)), linear-gradient(90deg,var(--p2, #c43b31) 0 5px,var(--p1, #287eb5) 5px calc(100% - 5px),var(--p2, #c43b31) calc(100% - 5px)); }
.pattern-preview.checker { background-color: var(--p1, #287eb5); background-image: linear-gradient(45deg,var(--p2, #c43b31) 25%,transparent 25%,transparent 75%,var(--p2, #c43b31) 75%),linear-gradient(45deg,var(--p2, #c43b31) 25%,transparent 25%,transparent 75%,var(--p2, #c43b31) 75%); background-position: 0 0,6px 6px; background-size:12px 12px; }
.pattern-preview.frame-outside { background: linear-gradient(to bottom,transparent 0 calc(100% - 5px),var(--p2, #c43b31) calc(100% - 5px)),linear-gradient(90deg,var(--p2, #c43b31) 0 5px,var(--p1, #287eb5) 5px calc(100% - 5px),var(--p2, #c43b31) calc(100% - 5px)); }
.pattern-preview.frame-inside { background: linear-gradient(var(--p2, #c43b31),var(--p2, #c43b31)) left 5px bottom 5px/calc(100% - 10px) 5px no-repeat,linear-gradient(var(--p2, #c43b31),var(--p2, #c43b31)) left 5px top/5px calc(100% - 5px) no-repeat,linear-gradient(var(--p2, #c43b31),var(--p2, #c43b31)) right 5px top/5px calc(100% - 5px) no-repeat,var(--p1, #287eb5); }
.pattern-preview.racing { background: repeating-linear-gradient(135deg,var(--p1, #287eb5) 0 8px,var(--p2, #c43b31) 8px 12px,var(--p1, #287eb5) 12px 20px); }
.finish-section { background: #fafafa; }
.panel-section.is-disabled { opacity: .48; pointer-events: none; }
.finish-pattern { display: grid; grid-template-columns: 1fr 1.45fr; gap: 6px; margin-bottom: 8px; }
.finish-pattern button { min-height: 34px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #5e6467; font-size: 10px; font-weight: 650; }
.finish-pattern button.active { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.finish-colors { margin-top: 7px; }
.finish-colors.single-color { grid-template-columns: 1fr 1fr; }
.finish-color-step[hidden] { display: none; }
.finish-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.finish-mode button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #5e6467; font-size: 11px; font-weight: 650; }
.finish-mode button.active { border-color: var(--red); color: var(--red); background: #fff8f7; }
.finish-mode svg { width: 16px; height: 16px; }
.finish-manual { margin-top: 12px; }
.finish-manual .manual-editor-content > .sub-label:first-child { margin-top: 14px; }
.manual-finish-colors { grid-template-columns: 1fr; margin-bottom: 8px; }
.manual-color-note { margin: 0 0 9px; color: #747a7d; font-size: 11px; line-height: 1.4; }
.edge-picker { width: 164px; margin: 0 auto 14px; display: grid; grid-template-columns: 34px 88px 34px; grid-template-rows: 26px 52px 26px; gap: 4px; align-items: stretch; }
.edge-picker button { border: 1px solid #cfd3d5; border-radius: 3px; background: #fff; color: #666c6f; font-size: 10px; font-weight: 700; padding: 0; }
.edge-picker button.active { color: #fff; border-color: rgba(0,0,0,.38); background: var(--edge-choice, var(--red)); box-shadow: 0 3px 9px rgba(0,0,0,.18); text-shadow: 0 1px 3px rgba(0,0,0,.72); }
.edge-top-choice { grid-column: 2; grid-row: 1; }
.edge-left-choice { grid-column: 1; grid-row: 2; }
.edge-right-choice { grid-column: 3; grid-row: 2; }
.edge-bottom-choice { grid-column: 2; grid-row: 3; }
.edge-floor-icon { grid-column: 2; grid-row: 2; display: grid; place-items: center; background: #5f6568; color: #fff; font: 700 11px/1 Barlow Condensed, sans-serif; letter-spacing: .08em; box-shadow: inset 0 0 0 3px #4d5255; }
.edge-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.edge-actions button { min-width: 0; min-height: 72px; padding: 7px 4px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #555b5e; font-size: 10px; }
.edge-actions button strong { font-size: 10px; }
.edge-actions button small { min-height: 18px; font-size: 8px; line-height: 1.15; }
.edge-actions button.active { border-color: var(--red); color: var(--red); background: #fff8f7; }
.edge-action-preview { width: 44px; height: 28px; display: block; background: #666c6f; }
.edge-preview-three { border-right: 4px solid var(--finish-primary, var(--red)); border-bottom: 4px solid var(--finish-primary, var(--red)); border-left: 4px solid var(--finish-primary, var(--red)); }
.edge-preview-all { border: 4px solid var(--finish-primary, var(--red)); }
.edge-preview-none { border: 1px dashed #aeb3b5; background: #666c6f; }
.edge-preview-bottom { border-bottom: 4px solid var(--finish-primary, var(--red)); }
.mobile-live-preview { display: none; }
.mobile-edit-toggle { display: none; }
.mobile-editor-close { display: none; }
.corner-note { margin: 11px 0 0; color: #777d80; font-size: 11px; line-height: 1.4; }
.corner-note span { color: var(--red); font-size: 16px; font-weight: 700; }
.panel-footer { margin-top: auto; padding: 16px 25px; display: flex; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; font-size: 12px; }
.panel-footer strong { color: #fff; }
.workspace { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #e9ebec; }
.workspace-head { min-height: 87px; padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { color: var(--red); }
.workspace-head h1 { margin: 5px 0 0; font: 700 25px/1.1 Barlow Condensed, sans-serif; letter-spacing: .02em; }
.workspace-actions { display: flex; align-items: center; gap: 4px; color: #505659; }
.workspace-actions .divider { width: 1px; height: 24px; background: #c9cdcf; margin: 0 8px; }
.workspace-actions > span:not(.divider) { width: 44px; text-align: center; font-size: 12px; font-weight: 600; }
.tool-button { width: 38px; height: 38px; border-radius: 3px; }
.tool-button:hover { background: #fff; }
.tool-button:disabled { opacity: .3; cursor: default; }
.canvas-stage { min-height: 410px; margin: 0 30px; background-color: #d5d8da; background-image: radial-gradient(#b8bdc0 1px, transparent 1px); background-size: 20px 20px; border: 1px solid #c8ccce; position: relative; overflow: auto; display: grid; place-items: center; padding: 54px 62px 62px 74px; }
.product-prompt { position: absolute; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 24px; text-align: center; background: rgba(229,232,233,.9); backdrop-filter: blur(2px); color: #52585b; }
.product-prompt strong { color: var(--ink); font: 700 26px/1 Barlow Condensed, sans-serif; text-transform: uppercase; }
.product-prompt span { font-size: 13px; }
.product-prompt.hidden { display: none; }
.floor-wrap { transform-origin: center; transition: transform .18s ease; box-shadow: var(--shadow); background: #333; line-height: 0; touch-action: none; position: relative; }
.floor-grid { display: grid; user-select: none; -webkit-user-select: none; touch-action: none; }
.edge-run { --edge-depth: max(2px, calc(var(--cell) * .165)); display: none; position: absolute; z-index: 4; }
.edge-run.active { display: grid; }
.edge-run button { display: block; padding: 0; position: relative; overflow: hidden; background: linear-gradient(90deg,color-mix(in srgb,var(--finish-color) 75%,white),var(--finish-color)); border: 1px solid color-mix(in srgb,var(--finish-color) 65%,black); box-shadow: inset 0 2px 2px rgba(255,255,255,.22); cursor: pointer; }
.finish-texture { width: var(--cell); height: var(--cell); display: block; position: absolute; background-image: var(--finish-image); background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.edge-run button.edge-empty { opacity: .24; background: transparent; border-style: dashed; border-color: #5f6568; box-shadow: none; }
.edge-run button.edge-empty .finish-texture { display: none; }
.edge-top, .edge-bottom { left: 0; width: 100%; grid-template-columns: repeat(var(--edge-count), var(--cell)); }
.edge-top { top: calc(0px - var(--edge-depth) - 1px); }
.edge-bottom { bottom: calc(0px - var(--edge-depth) - 1px); }
.edge-top button, .edge-bottom button { width: var(--cell); height: var(--edge-depth); }
.edge-top button { border-radius: 3px 3px 0 0; }
.edge-bottom button { border-radius: 0 0 3px 3px; }
.edge-top .finish-texture { left: 0; top: 0; }
.edge-bottom .finish-texture { left: 0; bottom: 0; transform: rotate(180deg); }
.edge-left, .edge-right { top: 0; height: 100%; grid-template-rows: repeat(var(--edge-count), var(--cell)); }
.edge-left { left: calc(0px - var(--edge-depth) - 1px); }
.edge-right { right: calc(0px - var(--edge-depth) - 1px); }
.edge-left button, .edge-right button { width: var(--edge-depth); height: var(--cell); }
.edge-left button { border-radius: 3px 0 0 3px; }
.edge-right button { border-radius: 0 3px 3px 0; }
.edge-left .finish-texture { left: 0; top: 0; transform: rotate(-90deg); }
.edge-right .finish-texture { right: 0; top: 0; transform: rotate(90deg); }
.corner-piece { --edge-depth: max(2px, calc(var(--cell) * .165)); display: none; position: absolute; z-index: 6; width: var(--edge-depth); height: var(--edge-depth); padding: 0; overflow: hidden; background: var(--finish-color, var(--red)); border: 1px solid color-mix(in srgb,var(--finish-color, var(--red)) 65%,black); box-shadow: inset 0 2px 2px rgba(255,255,255,.25); cursor: pointer; }
.corner-piece::before { content: ''; width: var(--cell); height: var(--cell); position: absolute; background-image: var(--finish-image); background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.corner-piece.active { display: block; }
.corner-tl { left: calc(0px - var(--edge-depth) - 1px); top: calc(0px - var(--edge-depth) - 1px); border-radius: 5px 1px 1px 1px; }
.corner-tr { right: calc(0px - var(--edge-depth) - 1px); top: calc(0px - var(--edge-depth) - 1px); border-radius: 1px 5px 1px 1px; }
.corner-br { right: calc(0px - var(--edge-depth) - 1px); bottom: calc(0px - var(--edge-depth) - 1px); border-radius: 1px 1px 5px 1px; }
.corner-bl { left: calc(0px - var(--edge-depth) - 1px); bottom: calc(0px - var(--edge-depth) - 1px); border-radius: 1px 1px 1px 5px; }
.corner-tl::before { left: 0; top: 0; transform: rotate(-90deg); }
.corner-tr::before { right: 0; top: 0; }
.corner-br::before { right: 0; bottom: 0; transform: rotate(90deg); }
.corner-bl::before { left: 0; bottom: 0; transform: rotate(180deg); }
.tile { width: var(--cell, 24px); height: var(--cell, 24px); padding: 0; margin: 0; border: 0; border-radius: 0; background-color: var(--tile-color); background-image: var(--tile-image); background-size: 118% 118%; background-position: center; background-repeat: no-repeat; position: relative; box-shadow: inset -1px -1px rgba(0,0,0,.08); }
.tile::before { content: ''; display: none; position: absolute; inset: 2px; opacity: .25; }
.floor-grid.floordeck .tile::before { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85) 0 1px, transparent 1.4px), radial-gradient(circle at 70% 70%, rgba(0,0,0,.75) 0 1px, transparent 1.4px); background-size: 7px 7px; }
.floor-grid.diamonddeck .tile::before { opacity: .36; background: linear-gradient(45deg, transparent 42%, rgba(255,255,255,.8) 44% 49%, rgba(0,0,0,.55) 51% 56%, transparent 58%); background-size: 7px 7px; }
.floor-grid.coindeck .tile::before { opacity: .34; background: radial-gradient(circle, rgba(255,255,255,.85) 0 24%, rgba(0,0,0,.5) 29% 36%, transparent 38%); background-size: 7px 7px; }
.floor-grid.ribdeckclassic .tile::before { inset: 1px; opacity: .42; background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 4px, rgba(0,0,0,.5) 4px 5px); }
.floor-grid.ribdeckinfinity .tile::before { inset: 1px; opacity: .38; background: linear-gradient(90deg,rgba(255,255,255,.55) 1px,transparent 1px),linear-gradient(rgba(0,0,0,.5) 1px,transparent 1px); background-size:5px 5px; }
.floor-grid.sportdeck .tile::before { inset: 2px; opacity: .32; background: repeating-linear-gradient(45deg, rgba(255,255,255,.65) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(0,0,0,.45) 0 1px, transparent 1px 5px); }
.tile.empty { background: #f5f6f6; background-image: none; }
.tile.empty::before { display: none; }
.dimension { position: absolute; color: #6c7275; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.dimension::before, .dimension::after { content: ''; position: absolute; background: #8f9598; }
.dimension-top { top: 21px; left: 50%; transform: translateX(-50%); min-width: 155px; text-align: center; }
.dimension-top::before { height: 1px; width: 42px; top: 7px; left: -48px; box-shadow: 203px 0 0 #8f9598; }
.dimension-left { left: 12px; top: 50%; transform: translateY(-50%) rotate(-90deg); min-width: 155px; text-align: center; }
.dimension-left::before { height: 1px; width: 42px; top: 7px; left: -48px; box-shadow: 203px 0 0 #8f9598; }
.canvas-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #666c6f; white-space: nowrap; font-size: 12px; }
.canvas-hint span { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--red); margin-right: 5px; }
.live-summary { min-height: 86px; margin: 0 30px 20px; padding: 12px 15px 12px 22px; display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)) auto; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 7px 22px rgba(15,19,20,.07); }
.live-summary > div { border-right: 1px solid var(--line); }
.live-summary small, .spec-grid small { display: block; color: #7a8083; font: 700 11px/1.2 Barlow Condensed, sans-serif; letter-spacing: .1em; margin-bottom: 5px; }
.live-summary strong { font: 700 19px/1 Barlow Condensed, sans-serif; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 12px 18px; color: #fff; background: #1f2325; box-shadow: var(--shadow); border-radius: 3px; opacity: 0; visibility: hidden; transition: .2s; z-index: 100; font-size: 14px; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 80; opacity: 0; visibility: hidden; transition: .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(10,12,13,.62); backdrop-filter: blur(4px); }
.summary-sheet, .request-sheet, .quote-sheet { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; position: relative; background: #fff; box-shadow: 0 28px 100px rgba(0,0,0,.35); border-radius: 5px; transform: translateY(18px); transition: .22s; }
.modal.open .summary-sheet, .modal.open .request-sheet, .modal.open .quote-sheet { transform: translateY(0); }
.summary-sheet { padding: 25px 28px 28px; }
.summary-sheet header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.summary-sheet h2, .request-sheet h2, .quote-sheet h2 { font: 700 30px/1 Barlow Condensed, sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 0; }
.close-button { width: 40px; height: 40px; font-size: 30px; font-weight: 300; }
.mini-plan { height: 110px; display: grid; place-items: center; overflow: hidden; background: #e4e6e7; margin-bottom: 18px; border: 1px solid #d5d8da; }
.mini-grid { display: grid; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.mini-tile { width: 5px; height: 5px; background: var(--c); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 12px; }
.spec-grid strong { font-size: 13px; }
.summary-sheet h3 { margin: 22px 0 9px; font: 700 18px/1 Barlow Condensed, sans-serif; text-transform: uppercase; }
.material-row { min-height: 39px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid #eceeef; font-size: 14px; }
.material-label { display: flex; align-items: center; gap: 9px; }
.material-values { display: grid; justify-items: end; gap: 2px; padding: 7px 0 7px 14px; }
.material-values small { color: #73797c; font-size: 11px; }
.material-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.12); }
.material-dot.finish-dot { border-radius: 2px; background: linear-gradient(90deg,color-mix(in srgb,var(--c) 72%,white),var(--c)); }
.material-dot.corner-dot { border-radius: 7px 2px 2px 2px; background: var(--c); }
.estimate { margin-top: 18px; padding: 14px 17px; background: #f3f4f4; }
.estimate > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.estimate .total { padding-top: 12px; margin-top: 7px; border-top: 1px solid #ccd0d2; font-size: 17px; }
.estimate .total strong { color: var(--red); }
.disclaimer { color: #7b8184; font-size: 12px; line-height: 1.45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.webshop-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.request-sheet { max-width: 470px; text-align: center; padding: 38px 35px; }
.request-sheet .close-button { position: absolute; top: 8px; right: 8px; }
.request-sheet p { color: var(--muted); line-height: 1.55; margin: 13px 0 24px; }
.handoff-preview { margin: 0 0 20px; padding: 10px 14px; background: #f3f4f4; border: 1px solid var(--line); text-align: left; }
.handoff-preview div { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #dfe2e3; font-size: 12px; }
.handoff-preview div:last-child { border-bottom: 0; }
.handoff-preview span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.quote-sheet { padding: 25px 28px 28px; }
.quote-sheet header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.quote-intro { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.quote-grid label { display: grid; gap: 6px; color: #505659; font-size: 12px; font-weight: 700; }
.quote-grid input, .quote-grid textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #cfd3d5; border-radius: 3px; background: #fff; color: var(--ink); font: 14px/1.35 Inter, sans-serif; }
.quote-grid textarea { min-height: 82px; resize: vertical; }
.quote-grid input:focus, .quote-grid textarea:focus { outline: 2px solid rgba(228,50,47,.2); border-color: var(--red); }
.quote-wide { grid-column: 1 / -1; }
.privacy-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; color: #555b5e; font-size: 12px; line-height: 1.45; }
.privacy-check input { flex: 0 0 auto; margin-top: 2px; }
.quote-mail-note { margin: 12px 0 0; padding: 10px 12px; background: #f3f4f4; color: #686e71; font-size: 11px; line-height: 1.45; }
.success-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 17px; border-radius: 50%; color: #fff; background: var(--red); font-size: 28px; font-weight: 800; }
.save-design-sheet { max-width: 560px; }
.share-link-field { display: grid; gap: 6px; margin-top: 12px; text-align: left; }
.share-link-field span { color: #6d7377; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.share-link-field strong, .share-link-field input { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border: 1px solid #cfd3d5; border-radius: 3px; background: #f7f8f8; color: var(--ink); font: 600 13px/1.3 Inter, sans-serif; }
.share-link-field input { width: 100%; }
.save-link-actions { justify-content: stretch; }
.save-link-actions > * { flex: 1; }
.icon-button.is-loading, .save-design-button.is-loading { color: var(--red); animation: save-pulse .8s ease-in-out infinite alternate; }
@keyframes save-pulse { to { opacity: .45; } }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 310px minmax(0, 1fr); }
  .control-panel { width: 310px; }
  .panel-section { padding-left: 19px; padding-right: 19px; }
  .canvas-stage, .live-summary { margin-left: 18px; margin-right: 18px; }
  .live-summary { grid-template-columns: repeat(3, 1fr); }
  .live-summary .primary { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar { height: 62px; padding: 0 12px; }
  .brand img { width: 92px; }
  .brand span, .demo-badge { display: none; }
  .language-picker { height: 36px; padding: 0 6px; }
  .language-picker span { display: none; }
  .new-design-button { display: none; }
  .header-actions { gap: 6px; }
  .save-design-button { min-width: 80px; padding: 0 9px; gap: 5px; font-size: 11px; }
  .save-design-button svg { width: 16px; height: 16px; }
  .icon-button { width: 38px; height: 38px; }
  .primary.compact { min-height: 40px; padding: 0 13px; font-size: 13px; }
  .app-shell { display: flex; flex-direction: column; min-height: calc(100vh - 62px); }
  .control-panel { width: 100%; height: auto; position: static; display: block; border-right: 0; overflow: visible; }
  .panel-section { padding: 16px; }
  .panel-section.step-complete .step-toggle { display: inline-flex; align-items: center; }
  .panel-section.mobile-collapsed > :not(.section-heading) { display: none !important; }
  .panel-section.mobile-collapsed .section-heading { margin-bottom: 0; }
  #dimensionSection, #productSection, #designSection, #finishSection { scroll-margin-top: 150px; }
  .section-heading { margin-bottom: 12px; }
  .product-tabs { grid-template-columns: repeat(3, 1fr); }
  .product-tab { display: block; padding: 7px; text-align: center; }
  .product-tab img { width: 100%; max-width: 54px; height: auto; aspect-ratio: 1; margin: 0 auto 5px; }
  .product-tab strong { display: block; font-size: 11px; }
  .mobile-live-preview { position: sticky; top: 62px; z-index: 18; display: grid; justify-items: center; gap: 5px; padding: 9px 14px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid #c9cdcf; background: rgba(255,255,255,.96); box-shadow: 0 6px 16px rgba(15,19,20,.1); backdrop-filter: blur(8px); }
  .mobile-live-preview > span { color: var(--red); font: 700 10px/1 Barlow Condensed, sans-serif; letter-spacing: .12em; }
  .mobile-live-preview > strong { color: #555b5e; font-size: 11px; }
  .mobile-mini-wrap { position: relative; width: min(230px, calc(100vw - 84px)); }
  .mobile-mini-grid { width: 100%; display: grid; overflow: hidden; background: #d6d9da; box-shadow: 0 3px 9px rgba(0,0,0,.16); }
  .mobile-mini-grid i { min-width: 0; min-height: 0; background-color: var(--mini-color); background-image: var(--mini-image); background-position: center; background-repeat: no-repeat; background-size: 118% 118%; }
  .mobile-mini-edge { display: none; position: absolute; z-index: 2; }
  .mobile-mini-edge.active { display: block; }
  .mobile-mini-top, .mobile-mini-bottom { left: 0; width: 100%; height: 4px; }
  .mobile-mini-left, .mobile-mini-right { top: 0; width: 4px; height: 100%; }
  .mobile-mini-top { top: -4px; }
  .mobile-mini-bottom { bottom: -4px; }
  .mobile-mini-left { left: -4px; }
  .mobile-mini-right { right: -4px; }
  .mobile-mini-corner { display: none; position: absolute; z-index: 2; width: 4px; height: 4px; background: var(--corner-color, var(--red)); border: 0; box-shadow: none; }
  .mobile-mini-corner.active { display: block; }
  .mobile-mini-corner-tl { left: -4px; top: -4px; }
  .mobile-mini-corner-tr { right: -4px; top: -4px; }
  .mobile-mini-corner-br { right: -4px; bottom: -4px; }
  .mobile-mini-corner-bl { left: -4px; bottom: -4px; }
  .color-section { position: static; background: #fff; }
  .paint-tools { margin-top: 14px; }
  .paint-tools button { min-height: 48px; }
  .paint-tools svg { width: 17px; height: 17px; }
  .manual-floor-cta { width: 100%; min-height: 48px; margin-top: 10px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 3px; color: #fff; background: var(--red); font-size: 14px; font-weight: 700; box-shadow: 0 7px 18px rgba(228,50,47,.22); }
  .manual-floor-cta svg { width: 19px; height: 19px; }
  .panel-footer { display: none; }
  .workspace { min-height: 0; }
  .workspace-head { min-height: 72px; padding: 13px 16px; flex-wrap: wrap; }
  .workspace-head h1 { font-size: 21px; }
  .workspace-actions .divider, .workspace-actions #zoomLabel { display: none; }
  .tool-button { width: 34px; height: 34px; }
  .mobile-edit-toggle { order: 3; width: 100%; min-height: 48px; padding: 7px 9px 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #cdd1d3; border-radius: 4px; background: #fff; cursor: pointer; box-shadow: 0 3px 10px rgba(15,19,20,.06); }
  .mobile-edit-copy { min-width: 0; display: grid; gap: 2px; }
  .mobile-edit-copy strong { font-size: 14px; line-height: 1.2; }
  .mobile-edit-copy small { color: #697074; font-size: 12px; line-height: 1.2; }
  .mobile-edit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
  .mobile-switch-track { flex: 0 0 auto; width: 46px; height: 26px; padding: 3px; display: block; border-radius: 99px; background: #aeb4b7; transition: background .18s ease; }
  .mobile-switch-track::after { content: ''; width: 20px; height: 20px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: transform .18s ease; }
  .mobile-edit-toggle input:checked + .mobile-switch-track { background: var(--red); }
  .mobile-edit-toggle input:checked + .mobile-switch-track::after { transform: translateX(20px); }
  .mobile-edit-toggle input:focus-visible + .mobile-switch-track { outline: 3px solid rgba(228,50,47,.25); outline-offset: 2px; }
  .floor-wrap:not(.mobile-edit-enabled), .floor-wrap:not(.mobile-edit-enabled) .floor-grid, .floor-wrap:not(.mobile-edit-enabled) .tile { touch-action: pan-y; }
  .floor-wrap:not(.mobile-edit-enabled) .tile, .floor-wrap:not(.mobile-edit-enabled) .edge-piece, .floor-wrap:not(.mobile-edit-enabled) .corner-piece { cursor: default; }
  .canvas-stage { min-height: 0; margin: 0; border-left: 0; border-right: 0; padding: 18px 12px; overflow: auto; }
  .dimension, .canvas-hint { display: none; }
  .live-summary { margin: 12px; grid-template-columns: repeat(3, 1fr); padding: 12px; }
  .live-summary > div { text-align: center; }
  .live-summary small { font-size: 9px; }
  .live-summary strong { font-size: 16px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  body.mobile-editor-open { overflow: hidden; }
  body.mobile-editor-open .workspace { position: fixed; inset: 62px 0 0; z-index: 29; min-height: 0; overflow-y: auto; background: #e9ebec; box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
  body.mobile-editor-open .mobile-editor-close { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 0; border-radius: 3px; color: #fff; background: var(--red); font-size: 13px; font-weight: 700; }
  body.mobile-editor-open .canvas-stage { min-height: 45vh; }
}
@media (max-width: 430px) {
  .swatches { gap: 7px; }
  .paint-tools button { font-size: 10px; }
  .summary-sheet { padding: 21px 18px; }
  .modal-actions { display: grid; grid-template-columns: 1fr; }
  .modal-actions button { width: 100%; }
  .modal-actions .webshop-button { width: 100%; }
  .material-row { align-items: start; }
  .material-label { padding-top: 9px; }
  .quote-sheet { padding: 21px 18px; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
