:root {
  --paper: #faf9f5;
  --panel: #efede7;
  --panel-2: #f5f3ee;
  --ink: #293129;
  --muted: #7e8578;
  --line: #d9ddd1;
  --olive: #5f7055;
  --olive-dark: #4b5e43;
  --white: #fffefa;
  --serif: "Iowan Old Style", "Baskerville", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, outline-color .18s ease; }
button:not(:disabled):hover { outline: 2px solid rgba(95,112,85,.45); outline-offset: 2px; border-color: var(--olive) !important; }
.primary-button:not(:disabled):hover { background: var(--olive-dark); color: #fff; outline-color: rgba(75,94,67,.34); }
img { display: block; max-width: 100%; }

.site-header {
  min-height: 118px; padding: 22px max(32px, calc((100vw - 1180px)/2));
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.brand { color: inherit; text-decoration: none; }
.brand img { width: 188px; height: auto; }
.brand span { display: block; margin-top: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.projects-button { display: flex; gap: 14px; align-items: center; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-align: left; }
.projects-button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.login-button { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--olive); border-radius: 999px; background: transparent; color: var(--olive-dark); font-size: 13px; font-weight: 500; white-space: nowrap; }
.login-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.login-button:not(:disabled):hover { background: var(--olive); color: #fff; outline-color: rgba(75,94,67,.28); }

main { max-width: 1180px; margin: 0 auto; padding: 62px 32px 0; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.hero { max-width: 860px; }
.hero h1, .ai-intro h2 { max-width: 780px; margin: 16px 0 0; font: 400 clamp(56px, 7vw, 100px)/.94 var(--serif); letter-spacing: -.04em; }
.hero h1 { max-width: none; white-space: nowrap; }
.hero h1.long-product-name { font-size: clamp(36px, 5vw, 72px); }
.ai-intro h2.long-product-name { font-size: clamp(28px, 4.4vw, 64px); }
.hero p { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.mode-tabs { width: min(100%, 640px); margin: 48px 0 32px; padding: 7px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; background: var(--panel); border-radius: 24px; }
.mode-tab { min-height: 62px; padding: 8px 14px; border: 0; border-radius: 18px; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.15; white-space: nowrap; }
.mode-tab span { margin-left: 5px; color: var(--olive); font-size: 11px; letter-spacing: .09em; }
.mode-tab.active { background: var(--white); box-shadow: 0 1px 5px rgba(39,47,39,.05); }
.mode-panel[hidden] { display: none; }

.configuration-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 64px; align-items: start; }
.product-card { position: sticky; top: 28px; min-height: 690px; padding: 30px; display: flex; flex-direction: column; border-radius: 34px; background: var(--panel); overflow: hidden; }
.product-chip, .selection-chip { align-self: flex-start; padding: 11px 18px; border-radius: 999px; background: var(--white); font-size: 13px; }
.expand-button { position: absolute; top: 34px; right: 34px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; }
.expand-button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.product-visual { position: relative; flex: 1; min-height: 480px; display: grid; place-items: center; background: var(--panel); }
.product-visual > img { width: min(88%, 620px); max-height: 470px; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 22px 17px rgba(35,31,26,.16)); transform: translateY(-7%) scaleX(var(--product-scale, 1)); transition: opacity .25s, transform .32s ease; }
.product-visual.zoomed > img { width: min(100%, 720px); max-height: 540px; }
.product-visual.zoomed .product-tint { width: min(100%, 720px); }
.product-visual > img.scene { width: calc(100% + 60px); height: calc(100% + 30px); max-height: none; margin: 0 -30px -30px; object-fit: cover; filter: none; transform: none; }
.product-visual > img.technical { width: min(94%, 680px); max-height: 440px; object-fit: contain; filter: none; transform: none; }
img[src*="assets/axis-avela/"], img[src*="assets/axis-eloa/"], img[src*="assets/arc-eloa/"] { mix-blend-mode: multiply; }
.product-visual > img[src*="assets/axis-avela/"], .product-visual > img[src*="assets/axis-eloa/"], .product-visual > img[src*="assets/arc-eloa/"] { filter: none; }
.product-tint { position: absolute; z-index: 3; width: min(88%, 620px); aspect-ratio: 2048 / 1320; opacity: 0; pointer-events: none; background-position: center; background-size: 140px; background-blend-mode: color; mix-blend-mode: color; transform: translateY(-7%) scaleX(var(--product-scale, 1)); transition: opacity .25s, transform .32s ease; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.selection-stack { display: flex; align-items: flex-start; flex-direction: column; gap: 18px; }
.pocket-badge { position: relative; max-width: 260px; padding: 11px 18px; border-radius: 999px; background: #3d302a; color: #c8bba3; font-size: 13px; }
.pocket-badge[hidden] { display: none; }
.pocket-badge > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pocket-badge > b { position: absolute; left: 14px; top: -15px; color: var(--olive-dark); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.pocket-badge.right > b { left: auto; right: 14px; }
.gallery-arrows { display: flex; gap: 12px; }
.gallery-arrows[hidden] { display: none; }
.gallery-arrows button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font: 300 28px/1 var(--sans); }

.configuration-form { padding: 28px 0 0; }
.form-heading { margin-bottom: 32px; }
.form-heading h2 { margin: 10px 0 0; font: 400 clamp(40px, 4vw, 60px)/1 var(--serif); letter-spacing: -.03em; }
.select-row { position: relative; min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.select-row select { max-width: 66%; height: 76px; padding: 0 32px 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); text-align: right; text-align-last: right; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg,var(--ink) 50%,transparent 50%); background-position: calc(100% - 12px) 48%, calc(100% - 6px) 48%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.fabric-row { border-bottom: 0; }
.swatch-wrap { padding: 0 0 23px; border-bottom: 1px solid var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 13px; }
.swatch { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background-color: var(--swatch); background-image: var(--texture); background-position: center; background-size: 130px; background-blend-mode: var(--swatch-blend, color); box-shadow: inset 0 0 0 6px var(--white); }
.swatch.active { outline: 2px solid var(--olive); outline-offset: 2px; }
.swatch-wrap p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.swatch-wrap p strong { font-weight: 500; }
.detail-links { padding: 24px 0 44px; display: flex; flex-wrap: wrap; gap: 23px; }
.detail-links button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.detail-links button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.primary-button { width: 100%; min-height: 60px; padding: 0 28px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 999px; background: var(--olive); color: #fff; font-size: 16px; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--olive-dark); }
.primary-button:active { transform: scale(.99); }
.primary-button span { font-size: 18px; }
.form-hint { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.price-summary { margin-top: 34px; padding: 30px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 64px; align-items: center; border-radius: 28px; background: #f0f2ea; }
.price-info { min-height: 68px; position: relative; display: grid; place-items: center; }
.price-meta { position: absolute; left: 0; top: 50%; display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.price-meta button { padding: 0; border: 0; background: transparent; color: var(--olive); font-size: 11px; text-align: left; }
.price-meta b { display: inline-block; margin-left: 9px; font-size: 15px; font-weight: 400; transition: transform .2s; }
.price-meta button[aria-expanded="true"] b { transform: rotate(180deg); }
.configuration-price { font-size: clamp(35px, 4vw, 52px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.price-save { min-height: 66px; }
.price-breakdown { margin-top: 8px; padding: 22px 30px; border-radius: 20px; background: var(--panel-2); }
.price-breakdown[hidden] { display: none; }
.price-breakdown-row { min-height: 36px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.price-breakdown-row:last-child { border-bottom: 0; color: var(--ink); font-weight: 600; }
.price-breakdown-row span:last-child { text-align: right; }
.price-summary-notes { padding: 14px 30px 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 64px; color: var(--muted); font-size: 11px; }
.price-summary-notes .form-hint { margin: 0; }
.select-row[hidden], .pocket-personalisation[hidden] { display: none; }
.pocket-personalisation { padding: 17px 0 23px; border-bottom: 1px solid var(--line); }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.toggle-line > span { display: flex; flex-direction: column; gap: 4px; }
.toggle-line strong { font-size: 13px; font-weight: 500; }
.toggle-line small { color: var(--muted); font-size: 10px; }
.toggle-line input { width: 42px; height: 23px; appearance: none; border-radius: 99px; background: #cdd1c8; position: relative; transition: .2s; }
.toggle-line input::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle-line input:checked { background: var(--olive); }
.toggle-line input:checked::after { transform: translateX(19px); }
.embroidery-field { display: block; margin-top: 15px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.embroidery-field > span { height: 45px; margin-top: 7px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.embroidery-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; text-transform: none; letter-spacing: normal; }
.embroidery-field output { color: var(--muted); font-size: 9px; letter-spacing: 0; }
.embroidery-field.disabled { opacity: .45; pointer-events: none; }

.ai-intro { max-width: 800px; padding: 25px 0 42px; }
.ai-intro h2 { max-width: none; margin-top: 13px; font-size: clamp(38px, 5.4vw, 68px); white-space: nowrap; }
.ai-intro p { max-width: 600px; margin: 22px 0 0; color: var(--muted); line-height: 1.6; }
.room-tool, .layout-tool { display: grid; grid-template-columns: 360px minmax(0,1fr); border: 1px solid var(--line); border-radius: 32px; background: var(--white); overflow: hidden; }
.room-controls, .layout-controls { padding: 30px; border-right: 1px solid var(--line); }
.step-number { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--olive); font-size: 9px; }
.room-controls h3, .layout-controls h3 { display: inline-block; margin: 0 0 16px 9px; font: 400 24px var(--serif); vertical-align: middle; }
.upload-control { min-height: 82px; margin: 0 0 26px; padding: 13px; display: flex; align-items: center; gap: 13px; border: 1px dashed #aeb4a6; border-radius: 18px; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, outline-color .18s ease; }
.upload-control:hover { border-color: var(--olive); outline: 2px solid rgba(95,112,85,.45); outline-offset: 2px; background: #f5f7f1; box-shadow: 0 8px 22px rgba(75,94,67,.09); }
.upload-control:hover > span { background: var(--olive); color: #fff; }
.upload-control input, .surface-uploads input { display: none; }
.upload-control > span, .surface-uploads label > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--panel); color: var(--olive); font-size: 18px; transition: background-color .18s ease, color .18s ease; }
.upload-control div, .surface-uploads div, .chosen-product div { display: flex; flex-direction: column; gap: 3px; }
.upload-control strong { font-size: 12px; }
.upload-control small { color: var(--muted); font-size: 10px; }
.chosen-product { width: 100%; padding: 11px; display: grid; grid-template-columns: 76px 1fr 24px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); text-align: left; }
.chosen-product:hover { border-color: var(--olive); background: #f5f7f1; box-shadow: 0 8px 22px rgba(75,94,67,.09); }
.chosen-product img { width: 76px; height: 58px; object-fit: contain; background: var(--panel); border-radius: 10px; }
.chosen-product strong { font: 400 20px var(--serif); }
.chosen-product span, .chosen-product small { color: var(--muted); font-size: 9px; }
.chosen-product i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--olive); color: #fff; font-size: 11px; font-style: normal; }
.room-prompt { position: relative; display: block; margin: 24px 0 0; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.room-prompt > span { display: flex; align-items: center; justify-content: space-between; }
.room-prompt > span small { color: #a1a79b; font-size: 8px; font-weight: 500; letter-spacing: .08em; }
.room-prompt textarea { width: 100%; height: 92px; margin-top: 9px; padding: 13px 14px 28px; resize: vertical; border: 1px solid var(--line); border-radius: 15px; outline: 0; background: var(--paper); color: var(--ink); font-size: 11px; line-height: 1.5; letter-spacing: normal; text-transform: none; transition: border-color .18s, box-shadow .18s; }
.room-prompt textarea::placeholder { color: #9da397; }
.room-prompt textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(95,112,85,.1); }
.room-prompt output { position: absolute; right: 12px; bottom: 10px; color: #9da397; font-size: 8px; font-weight: 500; letter-spacing: 0; }
.room-upload-heading { display: block !important; margin: 27px 0 16px !important; }
.scale-control, .text-control { display: block; margin-top: 23px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.scale-control output { float: right; color: var(--ink); }
.scale-control input { width: 100%; margin-top: 12px; accent-color: var(--olive); }
.tool-note { color: var(--muted); font-size: 10px; line-height: 1.45; }
.text-control textarea { width: 100%; height: 80px; margin-top: 9px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 11px; line-height: 1.45; text-transform: none; letter-spacing: normal; }
.layout-controls .primary-button { min-height: 52px; margin-top: 20px; font-size: 12px; }
.room-empty-state { min-height: 678px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: var(--panel); color: var(--muted); text-align: center; }
.room-empty-state > span { margin-bottom: 13px; color: var(--olive); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.room-empty-state > strong { color: var(--ink); font: 400 31px var(--serif); }
.room-empty-state > p { max-width: 340px; margin: 10px 0 0; font-size: 10px; line-height: 1.55; }
.room-empty-state[hidden], .room-workspace[hidden] { display: none; }
.room-workspace, .plan-workspace { min-width: 0; position: relative; display: flex; flex-direction: column; }
.workspace-bar { height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-bar button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 9px; }
.workspace-bar > div { display: flex; gap: 8px; align-items: center; }
.room-canvas { position: relative; min-height: 570px; flex: 1; overflow: hidden; background: var(--panel); cursor: crosshair; }
.room-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-demo-button { margin-top: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--olive-dark); font-size: 12px; }
.room-demo-button:hover { background: var(--olive); color: #fff; }
.room-light-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.room-light-toolbar .room-demo-button { margin: 0; min-height: 36px; }
.room-time-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.room-time-toggle button { padding: 7px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.room-time-toggle button[aria-pressed="true"] { background: var(--olive-dark); color: #fff; }
.room-time-toggle button:hover { background: var(--olive); color: #fff; }
.room-light-temperature { flex: 1 1 145px; min-width: 125px; display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.room-light-temperature > span, .room-light-temperature small { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.room-light-temperature output { color: var(--olive-dark); font-weight: 600; white-space: nowrap; }
.room-light-temperature input { appearance: none; width: 100%; height: 6px; margin: 3px 0; border-radius: 999px; background: linear-gradient(90deg, #d7a653, #e7d5a9 35%, #e7e6df 62%, #a5bdd4); cursor: pointer; }
.room-light-temperature input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border: 3px solid var(--white); border-radius: 50%; background: var(--olive-dark); box-shadow: 0 0 0 1px var(--olive); }
.room-light-temperature input::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--white); border-radius: 50%; background: var(--olive-dark); box-shadow: 0 0 0 1px var(--olive); }
.room-light-temperature input:focus-visible { outline: 2px solid var(--olive); outline-offset: 5px; }
.room-light-temperature small { font-size: 10px; }
.room-start-hint { position: absolute; z-index: 5; left: 50%; top: 55%; transform: translate(-50%,-50%); display: flex; align-items: center; flex-direction: column; gap: 12px; width: min(310px, 86%); padding: 22px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(250,249,245,.88); backdrop-filter: blur(10px); box-shadow: 0 8px 28px rgba(30,36,30,.14); color: var(--ink); text-align: center; }
.room-start-hint .room-start-plus { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--olive-dark); color: #fff; font-size: 36px; font-weight: 300; line-height: 1; }
.room-start-hint strong { font-size: 17px; font-weight: 500; }
.room-start-hint small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.room-start-hint:hover { background: rgba(250,249,245,.97); }
.room-start-hint:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
.placed-sofa { position: absolute; z-index: 2; width: 45%; left: 50%; top: 68%; transform: translate(-50%,-50%); filter: drop-shadow(0 20px 13px rgba(28,24,20,.32)); cursor: grab; touch-action: none; user-select: none; }
.placed-sofa[hidden], .placement-point-menu[hidden] { display: none; }
.placed-sofa:active { cursor: grabbing; }
.placement-point-menu { position: absolute; z-index: 7; width: 0; height: 0; left: 50%; top: 69%; }
.point-marker, .point-action { position: absolute; display: grid; place-items: center; border-radius: 50%; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.point-marker { z-index: 3; width: 62px; height: 62px; left: -31px; top: -31px; border: 5px solid rgba(255,255,255,.9); background: var(--olive-dark); box-shadow: 0 6px 18px rgba(39,52,34,.32); }
.point-marker span, .point-marker::before { content: ""; position: absolute; width: 25px; height: 2px; border-radius: 2px; background: #fff; }
.point-marker span { transform: rotate(90deg); }
.point-marker:hover, .point-marker:focus-visible { transform: scale(1.04); background: var(--olive); outline: 0; }
.point-orbit { position: absolute; z-index: 0; width: 196px; height: 110px; left: -98px; top: -106px; border: 1px solid rgba(255,255,255,.92); border-bottom: 0; border-radius: 98px 98px 0 0; pointer-events: none; }
.point-action { z-index: 2; width: 54px; height: 54px; border: 2px solid rgba(98,88,78,.22); background: rgba(255,253,249,.96); color: #302822; box-shadow: 0 5px 18px rgba(31,24,20,.2); }
.point-action svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.point-action-add { left: -105px; top: -101px; }
.point-action-replace { left: 51px; top: -101px; }
.point-action:hover, .point-action:focus-visible { transform: translateY(-2px); border-color: var(--olive-dark); box-shadow: 0 7px 20px rgba(39,52,34,.25); outline: 0; }
.point-action.active { border-color: var(--olive-dark); background: var(--olive-dark); color: #fff; }
.point-action::after { content: attr(data-label); position: absolute; top: calc(100% + 7px); left: 50%; padding: 5px 8px; border-radius: 999px; background: rgba(36,31,27,.9); color: #fff; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translate(-50%,-3px); transition: opacity .14s ease, transform .14s ease; pointer-events: none; }
.point-action:hover::after, .point-action:focus-visible::after { opacity: 1; transform: translate(-50%,0); }
.processing { position: absolute; z-index: 10; inset: 0; display: none; place-content: center; justify-items: center; background: rgba(41,49,41,.84); color: #fff; text-align: center; }
.processing.show { display: grid; }
.processing i { width: 48px; height: 48px; margin-bottom: 15px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .9s linear infinite; }
.processing strong { font: 400 27px var(--serif); }
.processing span { margin-top: 5px; color: #d4d8d0; font-size: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-label { position: absolute; z-index: 5; left: 18px; bottom: 18px; display: none; padding: 9px 13px; border-radius: 999px; background: rgba(250,249,245,.9); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.result-label.show { display: block; }
.workspace-caption { min-height: 49px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.workspace-caption strong { color: var(--ink); }
.room-render-bar { padding: 16px 19px 19px; border-top: 1px solid var(--line); background: var(--white); }
.room-render-bar .primary-button { width: 100%; min-height: 58px; margin: 0; font-size: 12px; }
.room-render-bar .primary-button:disabled { background: #b9beb4; color: rgba(255,255,255,.78); cursor: not-allowed; }
.render-history { padding: 20px 19px 24px; border-top: 1px solid var(--line); background: var(--white); }
.render-history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.render-history-head span { color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.render-history-head h3 { margin: 4px 0 0; font: 400 24px var(--serif); }
.render-history-head small { color: var(--muted); font-size: 9px; }
.render-history-empty { margin-top: 14px; padding: 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 10px; text-align: center; }
.render-history-empty[hidden] { display: none; }
.render-history-list { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.render-history-list:empty { display: none; }
.render-history-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.render-history-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; display: block; overflow: hidden; border: 0; background: var(--panel); }
.render-history-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.render-history-thumb::after { content: "↗"; position: absolute; right: 8px; top: 8px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,254,250,.92); color: var(--olive-dark); font-size: 12px; opacity: 0; transform: translateY(3px); transition: opacity .18s, transform .18s; }
.render-history-thumb:hover img { transform: scale(1.025); }
.render-history-thumb:hover::after, .render-history-thumb:focus-visible::after { opacity: 1; transform: translateY(0); }
.render-history-card-foot { padding: 9px 10px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.render-history-card-foot time { flex: 0 0 auto; color: var(--muted); font-size: 8px; white-space: nowrap; }
.render-history-card-foot div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.render-history-card-foot strong { overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.render-history-card-foot span { color: var(--muted); font-size: 8px; }
.render-history-card-foot a, .render-history-card-foot button { padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--olive-dark); font-size: 8px; line-height: 1.2; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, color .18s ease, outline-color .18s ease; }
.render-history-card-foot a:hover, .render-history-card-foot button:hover { border-color: var(--olive); outline: 2px solid rgba(95,112,85,.45); outline-offset: 2px; background: #f5f7f1; color: var(--olive-dark); }
.render-history-card-foot .render-history-actions { display: flex; align-items: center; gap: 5px; }
.render-history .render-history-card-foot, .plan-render-history .render-history-card-foot { align-items: stretch; flex-direction: column; gap: 8px; }
.render-history .render-history-card-foot .render-history-actions, .plan-render-history .render-history-card-foot .render-history-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.render-history .render-history-actions a, .render-history .render-history-actions button, .plan-render-history .render-history-actions a, .plan-render-history .render-history-actions button { padding: 6px 4px; text-align: center; }
.render-lightbox[hidden] { display: none; }
.render-lightbox { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 32px; }
.render-lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(22,27,22,.88); backdrop-filter: blur(8px); }
.render-lightbox-panel { position: relative; z-index: 1; width: min(1180px, 94vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.render-lightbox-bar { min-height: 70px; padding: 12px 18px 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.render-lightbox-bar > div { display: flex; align-items: center; gap: 10px; }
.render-lightbox-bar > div:first-child { align-items: flex-start; flex-direction: column; gap: 3px; }
.render-lightbox-bar span { color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.render-lightbox-bar strong { font: 400 20px var(--serif); }
.render-lightbox-bar a, .render-lightbox-bar button { min-height: 36px; padding: 0 14px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 10px; text-decoration: none; }
.render-lightbox-bar button { width: 36px; padding: 0; font-size: 19px; }
.render-lightbox-panel > img { width: 100%; max-height: calc(92vh - 70px); object-fit: contain; background: #202520; }

.dimension-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.room-size-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; align-items: baseline; }
.layout-controls .room-size-heading h3 { margin-left: 0; }
.room-size-heading strong { padding-right: 2px; color: var(--olive-dark); font-size: 11px; font-weight: 600; text-align: center; }
.dimension-fields label { position: relative; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.dimension-fields input { width: 100%; height: 43px; margin-top: 5px; padding: 0 32px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.dimension-fields label span { position: absolute; right: 9px; bottom: 14px; font-size: 8px; }
.layout-controls .dimension-fields + h3 { margin-top: 27px; }
.add-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-items button { min-height: 58px; padding: 8px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--white); font-size: 9px; text-align: left; }
.add-items i { width: 30px; height: 21px; display: block; border: 1.5px solid var(--olive); background: #e4e8df; }
.add-items .shape-sofa { border-radius: 7px; box-shadow: inset 5px 0 #b9c4b2, inset -5px 0 #b9c4b2; }
.add-items .shape-chair { width: 23px; border-radius: 7px; }
.add-items .shape-table { width: 24px; height: 24px; border-radius: 50%; }
.add-items .shape-rug { border-style: dashed; border-radius: 50%; }
.selected-item { margin-top: 14px; padding: 13px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 14px; }
.selected-item > span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.selected-item-preview { margin-top: 8px; display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 12px; align-items: center; }
.selected-item-preview > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.selected-item-preview strong { overflow: hidden; font: 400 17px var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.selected-item-preview small { color: var(--muted); font-size: 9px; }
.selected-item-media { width: 84px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: var(--panel); }
.selected-item-media img { width: 100%; height: 100%; object-fit: contain; }
.selected-item-media img[hidden], .selected-item-media i[hidden] { display: none; }
.selected-item-media i { width: 50px; height: 32px; display: block; border: 2px solid var(--olive); background: #dce3d7; }
.selected-item-media i.chair, .selected-item-media i.ottoman, .selected-item-media i.plant { width: 36px; height: 36px; border-radius: 50%; }
.selected-item-media i.table, .selected-item-media i.rug { border-radius: 50%; }
.selected-item-media i.sofa { border-radius: 7px; box-shadow: inset 7px 0 #b8c4b2, inset -7px 0 #b8c4b2; }
.surface-uploads { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.surface-uploads label { min-height: 58px; padding: 8px; display: flex; gap: 8px; align-items: center; border: 1px dashed #aeb4a6; border-radius: 13px; }
.surface-uploads label > span { width: 30px; height: 30px; font-size: 13px; }
.surface-uploads small { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.surface-uploads b { max-width: 80px; overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.plan-viewport { min-height: 570px; flex: 1; padding: 60px; display: grid; place-items: center; overflow: auto; background: var(--panel); }
.plan-board { position: relative; width: min(100%, 780px); aspect-ratio: 4/3; transform: scale(var(--zoom, 1)); transform-origin: center; border: 3px solid var(--ink); background-color: #fbfaf6; background-image: linear-gradient(#e5e8df 1px, transparent 1px), linear-gradient(90deg,#e5e8df 1px,transparent 1px); background-size: 26px 26px; transition: transform .2s; }
.measure { position: absolute; z-index: 4; padding: 6px 10px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 9px; }
.measure.width { left: 50%; top: -31px; transform: translateX(-50%); }
.measure.depth { right: -55px; top: 50%; transform: rotate(90deg) translateY(-50%); }
.plan-item { position: absolute; z-index: 2; display: grid; place-items: center; border: 2px solid #687661; background: #dce3d7; color: var(--ink); font-size: 8px; font-weight: 700; text-align: center; cursor: grab; user-select: none; touch-action: none; transform-origin: center; }
.plan-item.arc { border-radius: 12px; box-shadow: inset 9px 0 #b8c4b2, inset -9px 0 #b8c4b2; }
.plan-item.chair { border-radius: 9px; }
.plan-item.table, .plan-item.rug { border-radius: 50%; }
.plan-item.rug { z-index: 1; border-style: dashed; background: #ecefe9; }
.plan-item.selected { outline: 3px solid var(--olive); outline-offset: 3px; }
.interior-result { position: absolute; z-index: 8; inset: 58px 0 49px; display: none; background: var(--panel); }
.interior-result.show { display: block; }
.interior-result img { width: 100%; height: 100%; object-fit: cover; }
.interior-result div { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; border-radius: 16px; background: rgba(250,249,245,.92); }
.interior-result small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.interior-result strong { font: 400 21px var(--serif); }
.interior-result button { grid-column: 2; grid-row: 1/3; padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; background: transparent; }

/* Technical planogram — aligned with the Room Design workflow */
.plan-template-grid { padding-right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; overflow: visible; }
.plan-template-grid button { min-height: 52px; padding: 8px 9px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 8px; text-align: left; }
.plan-template-grid button:hover { border-color: var(--olive); }
.plan-template-grid i { width: 28px; height: 20px; flex: 0 0 auto; display: block; border: 1.5px solid var(--olive); background: #e4e8df; }
.plan-template-grid .shape-sofa { border-radius: 6px; box-shadow: inset 5px 0 #b9c4b2, inset -5px 0 #b9c4b2; }
.plan-template-grid .shape-chair { width: 22px; border-radius: 7px; }
.plan-template-grid .shape-table, .plan-template-grid .shape-plant { width: 22px; height: 22px; border-radius: 50%; }
.plan-template-grid .shape-rug { border-style: dashed; border-radius: 7px; }
.plan-template-grid .shape-bed { border-radius: 3px; box-shadow: inset 0 6px #b9c4b2; }
.plan-template-grid .shape-cabinet { width: 25px; height: 13px; }
.selected-item[hidden], .plan-select-note[hidden] { display: none; }
.plan-select-note { margin: 14px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.plan-brief { display: block; margin-top: 20px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.plan-brief > span { display: flex; justify-content: space-between; }
.plan-brief small { font-size: 7px; font-weight: 500; }
.plan-brief textarea { width: 100%; height: 72px; margin-top: 7px; padding: 10px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--paper); font-size: 9px; line-height: 1.45; letter-spacing: normal; text-transform: none; }
.plan-brief textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(95,112,85,.1); }
.plan-viewport { position: relative; }
.plan-board { min-width: 520px; transition: transform .2s, aspect-ratio .2s; }
.plan-items-layer { position: absolute; inset: 0; pointer-events: none; }
.plan-items-layer .plan-item { pointer-events: auto; }
.plan-item { overflow: visible; cursor: grab; touch-action: none; }
.plan-item > i { position: absolute; inset: 6px; border: 1px solid rgba(95,112,85,.38); border-radius: inherit; pointer-events: none; }
.plan-item > span { position: relative; z-index: 2; max-width: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.plan-item > small { position: absolute; z-index: 2; left: 50%; top: calc(100% + 7px); padding: 4px 6px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 7px; white-space: nowrap; transform: translateX(-50%); }
.plan-item.ottoman, .plan-item.chair, .plan-item.plant { border-radius: 50%; }
.plan-item.table { border-radius: 8px; }
.plan-item.bed { border-radius: 5px; box-shadow: inset 0 11px #b8c4b2; }
.plan-item.cabinet { border-radius: 3px; }
.plan-item.editing { outline: 2px solid var(--olive-dark); outline-offset: 5px; }
.plan-resize-handle { position: absolute; z-index: 8; width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--olive-dark); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.plan-resize-handle.nw { left: -6px; top: -6px; cursor: nwse-resize; }.plan-resize-handle.n { left: 50%; top: -6px; transform: translateX(-50%); cursor: ns-resize; }.plan-resize-handle.ne { right: -6px; top: -6px; cursor: nesw-resize; }.plan-resize-handle.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }.plan-resize-handle.se { right: -6px; bottom: -6px; cursor: nwse-resize; }.plan-resize-handle.s { left: 50%; bottom: -6px; transform: translateX(-50%); cursor: ns-resize; }.plan-resize-handle.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }.plan-resize-handle.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.plan-rotate-handle { position: absolute; z-index: 8; left: 50%; top: -38px; width: 27px; height: 27px; padding: 0; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--olive-dark); color: #fff; font-size: 13px; transform: translateX(-50%); cursor: grab; }
.plan-reference-badge { position: absolute; z-index: 5; right: -7px; top: -7px; width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--olive-dark); color: #fff; font-size: 8px; }
.room-resize-handle { position: absolute; z-index: 9; padding: 0; border: 0; background: var(--olive-dark); }
.room-resize-width { right: -8px; top: 50%; width: 15px; height: 48px; border-radius: 9px; transform: translateY(-50%); cursor: ew-resize; }
.room-resize-depth { left: 50%; bottom: -8px; width: 48px; height: 15px; border-radius: 9px; transform: translateX(-50%); cursor: ns-resize; }
.plan-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; color: var(--muted); text-align: center; pointer-events: none; }
.plan-empty[hidden] { display: none; }
.plan-empty strong { color: var(--ink); font: 400 21px var(--serif); }
.plan-empty span { font-size: 9px; }
.distance-guides { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.distance-guides .distance-line { position: absolute; display: block; opacity: .9; }
.distance-guides .distance-line.horizontal { height: 0; border-top: 1.5px dashed #72804f; }
.distance-guides .distance-line.vertical { width: 0; border-left: 1.5px dashed #72804f; }
.distance-guides .distance-line.furniture { border-color: #9a6d3e; border-width: 2px; }
.distance-guides span { position: absolute; padding: 3px 5px; border-radius: 4px; background: rgba(41,49,41,.9); color: #fff; font-size: 6px; white-space: nowrap; transform: translate(-50%,-50%); }
.distance-guides .distance-nearest { background: var(--olive-dark); }
.plan-snap-guides { position: absolute; z-index: 6; inset: 0; overflow: visible; pointer-events: none; }
.plan-snap-guide { position: absolute; display: block; filter: drop-shadow(0 0 1px #fff); }
.plan-snap-guide.vertical { top: -16px; bottom: -16px; width: 0; border-left: 2px dashed #6f7c43; }
.plan-snap-guide.horizontal { left: -16px; right: -16px; height: 0; border-top: 2px dashed #6f7c43; }
.plan-snap-guide b { position: absolute; padding: 3px 5px; border-radius: 4px; background: #616c2f; color: #fff; font-size: 6px; font-weight: 600; white-space: nowrap; }
.plan-snap-guide.vertical b { left: 5px; top: 7px; }
.plan-snap-guide.horizontal b { left: 7px; top: 5px; }
.plan-context-menu { position: absolute; z-index: 30; min-width: 154px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(250,249,245,.98); box-shadow: 0 12px 32px rgba(31,38,30,.18); }
.plan-context-menu[hidden] { display: none; }
.plan-context-menu button { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 9px; text-align: left; }
.plan-context-menu button:hover { background: var(--panel); color: var(--olive-dark); }
.plan-item[class*="arc-"] { border-color: transparent; background: transparent; box-shadow: none; }
.plan-item[class*="arc-"] > i { inset: 0; border: 2px solid #687661; border-radius: 10px; background: #dce3d7; box-shadow: inset 8px 0 #b8c4b2, inset -8px 0 #b8c4b2; }
.plan-item.arc-chaise-left > i { clip-path: polygon(0 0,100% 0,100% 58%,54% 58%,54% 100%,0 100%); }
.plan-item.arc-chaise-right > i { clip-path: polygon(0 0,100% 0,100% 100%,46% 100%,46% 58%,0 58%); }
.plan-item.arc-corner > i { clip-path: polygon(0 0,100% 0,100% 100%,62% 100%,62% 44%,0 44%); }
.plan-item.arc-corner-left > i { clip-path: polygon(0 0,100% 0,100% 100%,68% 100%,68% 48%,0 48%); }
.plan-item.arc-corner-right > i { clip-path: polygon(0 0,100% 0,100% 48%,32% 48%,32% 100%,0 100%); }
.plan-item.arc-ottoman > i, .plan-item.arc-cushion > i { border-radius: 28%; box-shadow: inset 0 0 0 5px #b8c4b2; }
.plan-camera { position: absolute; z-index: 7; width: 28px; height: 22px; padding: 0; border: 3px solid #fff; border-radius: 5px; background: #8a5d32; box-shadow: 0 2px 7px rgba(0,0,0,.3); cursor: move; }
.plan-camera i { position: absolute; left: 22px; top: 4px; width: 65px; height: 12px; background: linear-gradient(90deg,rgba(138,93,50,.32),transparent); clip-path: polygon(0 45%,100% 0,100% 100%); }
.plan-camera span { position: absolute; left: 7px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.plan-processing { z-index: 20; }
.plan-final-actions { padding: 15px 18px 18px; display: grid; grid-template-columns: 1fr 1fr minmax(210px, 1.25fr); gap: 9px; border-top: 1px solid var(--line); background: var(--white); }
.plan-render-status { min-height: 0; margin: 0; padding: 0 20px; overflow: hidden; background: var(--white); color: var(--muted); font-size: 8px; line-height: 1.45; transition: min-height .18s ease, padding .18s ease; }
.plan-render-status.active, .plan-render-status.success, .plan-render-status.error { min-height: 28px; padding-bottom: 14px; }
.plan-render-status.success { color: var(--olive-dark); }
.plan-render-status.error { color: #8f4138; }
.plan-surface-reference { min-height: 54px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px dashed #aeb4a6; border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, outline-color .18s ease; }
.plan-surface-reference:hover { border-color: var(--olive); outline: 2px solid rgba(95,112,85,.35); outline-offset: 2px; background: #f5f7f1; }
.plan-surface-reference:hover > span { background: var(--olive); color: #fff; }
.plan-surface-reference input { display: none; }
.plan-surface-reference > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--panel); color: var(--olive); transition: background-color .18s ease, color .18s ease; }
.plan-surface-reference div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plan-surface-reference small { color: var(--muted); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.plan-surface-reference b { overflow: hidden; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.plan-surface-reference.has-reference { border-style: solid; border-color: var(--olive); }
.plan-create-render { min-height: 54px; font-size: 11px; }
.plan-create-render:disabled { background: #b9beb4; cursor: not-allowed; }
.interior-result { position: relative; inset: auto; display: none; margin: 0; padding: 18px; background: var(--panel); }
.interior-result.show { display: block; }
.interior-result img { width: 100%; height: auto; max-height: 620px; border-radius: 16px; object-fit: contain; background: #202520; }
.interior-result div { left: 36px; right: 36px; bottom: 36px; }
.interior-result div > span { grid-column: 2; grid-row: 1/3; display: flex; gap: 7px; }
.interior-result div > span a, .interior-result div > span button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); font-size: 9px; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, color .18s ease, outline-color .18s ease; }
.interior-result div > span a:hover, .interior-result div > span button:hover { border-color: var(--olive); outline: 2px solid rgba(95,112,85,.45); outline-offset: 2px; background: #f5f7f1; color: var(--olive-dark); }
.plan-render-history { padding: 20px 19px 24px; border-top: 1px solid var(--line); background: var(--white); }

.plan-catalog { position: fixed; z-index: 130; inset: 0; }
.plan-catalog[hidden] { display: none; }
.plan-catalog-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(31,38,30,.42); backdrop-filter: blur(4px); }
.plan-catalog-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(470px,94vw); padding: 30px 32px; overflow: auto; background: var(--paper); box-shadow: -20px 0 50px rgba(30,35,29,.2); }
.plan-catalog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.plan-catalog-head span { color: var(--muted); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.plan-catalog-head h2 { margin: 8px 0 0; font: 400 35px/1 var(--serif); }
.plan-catalog-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 22px; }
.plan-catalog-preview { position: relative; min-height: 255px; margin: 26px 0 18px; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: var(--panel); }
.plan-catalog-preview img { width: 88%; height: 215px; object-fit: contain; }
.plan-catalog-preview span { position: absolute; left: 16px; bottom: 14px; padding: 8px 11px; border-radius: 99px; background: rgba(255,255,255,.92); font-size: 9px; }
.plan-catalog-field { min-height: 62px; display: grid; grid-template-columns: 1fr minmax(180px,auto); align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.plan-catalog-field[hidden] { display: none; }
.plan-catalog-field select { height: 60px; padding: 0 25px 0 8px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; text-align: right; }
.plan-catalog-colours { padding: 18px 0; border-bottom: 1px solid var(--line); }
.plan-catalog-colours > span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
#planCatalogColours { display: flex; flex-wrap: wrap; gap: 9px; }
.plan-catalog-swatch { width: 39px; height: 39px; padding: 0; border: 2px solid transparent; border-radius: 50%; background-color: var(--swatch); background-image: var(--texture); background-blend-mode: multiply; background-size: cover; box-shadow: inset 0 0 0 5px var(--paper); }
.plan-catalog-swatch.active { border-color: var(--olive-dark); }
.plan-catalog-summary { margin: 18px 0; padding: 14px 15px; display: flex; justify-content: space-between; gap: 20px; border-radius: 13px; background: var(--panel); }
.plan-catalog-summary span { color: var(--muted); font-size: 9px; }
.plan-catalog-summary strong { font-size: 10px; }
.plan-catalog-panel > .primary-button { width: 100%; }

/* Plan object language: the page layout stays unchanged; only furniture symbols change. */
.plan-symbol { width: 100%; height: 100%; display: block; overflow: visible; }
.plan-template-grid .plan-symbol-slot {
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.plan-item {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.plan-item > .plan-object-symbol {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.plan-item > span { display: none; }
.plan-item.selected,
.plan-item.editing { outline: 0; }
.plan-item.selected::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: -6px;
  border: 2px dashed #a92b3b;
  border-radius: 13px;
  pointer-events: none;
}
.plan-item.selected::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: 50%;
  top: -14px;
  width: 12px;
  height: 12px;
  border: 3px solid #a92b3b;
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
  pointer-events: none;
}
.selected-item-media .selected-plan-symbol {
  width: 58px;
  height: 48px;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.closing-copy { margin: 76px -32px 0; padding: 40px 32px 54px; border-top: 1px solid var(--line); }
.closing-copy p { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.closing-copy button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.closing-copy button span { margin-left: 12px; font-size: 18px; }

.drawer, .projects-drawer { position: fixed; z-index: 100; inset: 0; display: none; }
.drawer.open, .projects-drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(35,40,34,.36); backdrop-filter: blur(3px); }
.drawer-sheet, .projects-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 92vw); padding: 52px 40px; overflow: auto; background: var(--paper); box-shadow: -20px 0 50px rgba(30,35,29,.15); }
.drawer-close { position: absolute; right: 24px; top: 19px; border: 0; background: transparent; font-size: 28px; }
.drawer-sheet h2, .projects-sheet h2 { margin: 12px 0 25px; font: 400 46px/1 var(--serif); }
.drawer-sheet p, .drawer-sheet li { color: var(--muted); font-size: 13px; line-height: 1.6; }
.drawer-sheet img { width: 100%; margin-bottom: 24px; border-radius: 22px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-list div { padding: 15px; background: var(--paper); }
.spec-list small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.spec-list strong { display: block; margin-top: 6px; font: 400 18px var(--serif); }
.projects-sheet > div:first-child { position: relative; }
.projects-sheet > div:first-child > button { position: absolute; right: 0; top: -18px; border: 0; background: transparent; font-size: 28px; }
.projects-list { display: grid; gap: 12px; }
.project-card { padding: 17px; border: 1px solid var(--line); border-radius: 17px; }
.project-card span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.project-card strong { display: block; margin: 7px 0; font: 400 22px var(--serif); }
.project-card small { color: var(--muted); }
.empty-projects { padding: 26px; border: 1px dashed #aeb4a6; border-radius: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 26px; padding: 12px 17px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 860px) {
  main { padding-left: 22px; padding-right: 22px; }
  .configuration-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 28px; }
  .price-summary, .price-summary-notes { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 28px; }
  .price-summary { padding: 22px; }
  .price-meta { font-size: 10px; }
  .configuration-price { font-size: 34px; }
  .room-tool, .layout-tool { grid-template-columns: 1fr; }
  .room-controls, .layout-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .closing-copy { margin-left: -22px; margin-right: -22px; }
}

@media (max-width: 560px) {
  .configuration-layout { grid-template-columns: 1fr; gap: 42px; }
  .product-card { position: relative; top: 0; min-height: 600px; }
  .price-summary, .price-summary-notes { grid-template-columns: 1fr; gap: 18px; }
  .price-info { min-height: 84px; }
  .price-summary-notes { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 112px; padding: 17px 24px 14px; }
  .brand img { width: 162px; }
  .brand span { max-width: 220px; margin-top: 12px; font-size: 10px; line-height: 1.7; letter-spacing: .12em; }
  .header-actions { gap: 10px; }
  .projects-button { gap: 0; padding: 8px; font-size: 12px; }
  .projects-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .projects-button svg { width: 21px; }
  .login-button { min-height: 40px; padding: 0 14px; gap: 7px; font-size: 12px; }
  .login-button svg { width: 17px; }
  main { padding: 34px 24px 0; }
  .hero h1 { margin-top: 14px; font-size: clamp(28px, 8vw, 48px); line-height: 1.02; }
  .hero h1.long-product-name { font-size: clamp(20px, 5.5vw, 34px); }
  .hero p { display: none; }
  .eyebrow { font-size: 10px; }
  .mode-tabs { width: 100%; margin: 35px 0 28px; border-radius: 23px; }
  .mode-tab { min-height: 61px; padding: 7px 6px; border-radius: 18px; font-size: 12px; }
  .mode-tab span { font-size: 9px; }
  .configuration-layout { gap: 36px; }
  .product-card { min-height: 512px; padding: 25px; border-radius: 27px; }
  .product-chip, .selection-chip { padding: 10px 15px; font-size: 11px; }
  .expand-button { top: 27px; right: 27px; }
  .product-visual { min-height: 350px; }
  .product-visual > img { width: 90%; }
  .gallery-arrows { gap: 8px; }
  .gallery-arrows button { width: 43px; height: 43px; }
  .configuration-form { padding-top: 0; }
  .form-heading { margin-bottom: 27px; }
  .form-heading h2 { font-size: 39px; }
  .select-row { min-height: 72px; font-size: 14px; }
  .select-row select { height: 72px; }
  .swatch { width: 41px; height: 41px; box-shadow: inset 0 0 0 5px var(--white); }
  .detail-links { gap: 22px 19px; padding-bottom: 40px; }
  .detail-links button { font-size: 11px; }
  .primary-button { min-height: 58px; font-size: 15px; }
  .form-hint { margin-bottom: 10px; }
  .ai-intro { padding: 8px 0 30px; }
  .ai-intro h2 { font-size: clamp(22px, 6.4vw, 34px); letter-spacing: -.045em; white-space: nowrap; }
  .ai-intro h2.long-product-name { font-size: clamp(18px, 4.8vw, 28px); }
  .room-tool, .layout-tool { margin: 0 -8px; border-radius: 26px; }
  .room-controls, .layout-controls { padding: 23px; }
  .room-canvas { min-height: 430px; }
  .placed-sofa { width: 64%; }
  .render-history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .render-lightbox { padding: 10px; }
  .render-lightbox-panel { width: 100%; max-height: 96vh; border-radius: 17px; }
  .render-lightbox-bar { min-height: 64px; padding: 10px 12px 10px 16px; }
  .render-lightbox-bar strong { font-size: 16px; }
  .render-lightbox-panel > img { max-height: calc(96vh - 64px); }
  .workspace-caption { gap: 12px; }
  .workspace-caption strong { text-align: right; }
  .plan-viewport { min-height: 430px; padding: 53px 36px; }
  .plan-final-actions { grid-template-columns: 1fr; }
  .interior-result { padding: 10px; }
  .interior-result div { position: static; margin-top: 9px; grid-template-columns: 1fr; }
  .interior-result div > span { grid-column: 1; grid-row: auto; }
  .measure.depth { right: -50px; }
  .plan-catalog-panel { padding: 24px; }
  .closing-copy { margin: 50px -24px 0; padding: 34px 24px 48px; }
  .drawer-sheet, .projects-sheet { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
