@font-face {
  font-family: "Bricolage";
  src: url("assets/bricolagegrotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrumentsans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --white: #fffefb;
  --ink: #27212e;
  --muted: #595460;
  --plum: #362744;
  --lilac: #ebe5f1;
  --line: #d9d3dc;
  --font-display: "Bricolage", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.5 var(--font-body);
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #795398; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4vw, 3.65rem); font-weight: 680; letter-spacing: -.055em; }
p { color: var(--muted); }
section[id], figure[id] { scroll-margin-top: 24px; }
.wrap { width: min(100% - 88px, 1296px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 9;
  background: var(--white);
  padding: 12px;
}

.masthead {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 730 1.29rem/1 var(--font-display);
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 3px 13px 3px 3px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px 4px 3px 6px;
  border: 1.5px solid currentColor;
  border-radius: 2px 8px 2px 2px;
}
.masthead nav { display: flex; gap: clamp(16px, 2.1vw, 32px); align-items: center; font-size: .94rem; }
.desktop-nav:hover, .site-footer a:not(.wordmark):hover { text-decoration: underline; text-underline-offset: .2em; }
.language-menu { position: relative; color: var(--muted); }
.language-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
  content: "";
  width: .42em;
  height: .42em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.13em) rotate(45deg);
}
.language-menu[open] summary::after { transform: translateY(.13em) rotate(225deg); }
.language-options {
  position: absolute;
  z-index: 4;
  inset: 100% 0 auto auto;
  min-width: 138px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.language-options a { display: block; padding: 10px; border-radius: 5px; }
.language-options a:hover, .language-options a[aria-current] { background: var(--lilac); color: var(--plum); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  padding: 12px 19px;
  border: 1px solid var(--plum);
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}
.button:hover { background: #503861; border-color: #503861; }
.button-small { min-height: 41px; padding: 9px 15px; }
.button-secondary { background: transparent; border-color: #c9c0cf; color: var(--plum); }
.button-secondary:hover { background: var(--lilac); color: var(--plum); border-color: #b9aac4; }
.button-light { background: var(--white); color: var(--plum); border-color: var(--line); }
.button-light:hover { background: #f6f1fa; border-color: #b8a9c3; }
.upload-icon { font: 650 1.28em/1 var(--font-body); }

.hero {
  padding-block: clamp(38px, 5.3vw, 80px) clamp(38px, 4.6vw, 65px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 4.3vw, 67px);
}
.hero-copy { padding-bottom: 43px; container-type: inline-size; }
.hero h1 {
  color: var(--plum);
  font-size: clamp(2.9rem, 17cqw, 5.6rem);
  font-weight: 680;
  letter-spacing: -.073em;
  line-height: .94;
}
html:is([lang="de"], [lang="es"]) .hero h1 { font-size: clamp(2.25rem, 13.65cqw, 5.5rem); letter-spacing: -.07em; }
.lead { margin-top: 24px; max-width: 34ch; font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero h1 span { display: block; }
.tool-note { font-size: .87rem; margin-top: 13px; }
.tool-note:empty { display: none; }
.tool-note a, .privacy-page p a { text-decoration: underline; text-underline-offset: .2em; }
.example { min-width: 0; }
.comparison {
  --split: 44%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #b3a58d;
}
.comparison .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-after { clip-path: inset(0 0 0 var(--split)); }
.image-label {
  position: absolute;
  top: 14px;
  border-radius: 5px;
  background: #221b24db;
  color: #fff;
  padding: 5px 9px;
  font-weight: 650;
  font-size: .8rem;
  pointer-events: none;
}
.label-before { left: 14px; }
.label-after { right: 14px; }
.divider {
  position: absolute;
  inset: 0 auto 0 var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: #fffdf6;
  pointer-events: none;
}
.handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fffdf6;
  box-shadow: 0 2px 14px #2a1e2a40;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.handle i {
  width: 7px;
  height: 7px;
  border: solid var(--plum);
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(45deg);
}
.handle i:last-child { transform: rotate(225deg); }
.comparison-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison:has(.comparison-range:focus-visible) { outline: 3px solid #795398; outline-offset: 4px; }
.caption { display: flex; justify-content: space-between; gap: 12px; margin-block: 11px 10px; font-size: .84rem; color: var(--muted); }
.caption span:first-child { font-weight: 660; color: var(--ink); }
.style-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.style-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 35px;
  padding: 5px 10px;
  font-size: .84rem;
  font-weight: 600;
}
.style-tabs button:hover { border-color: #a990b5; }
.style-tabs button[aria-pressed="true"] { background: var(--lilac); border-color: #b7a5c2; color: var(--plum); }

.studio-section {
  --studio-field: #f7f6f2;
  --studio-canvas: #eeebe5;
  --studio-border: #dcd7cf;
  --studio-accent: #43344f;
  --studio-selection: #f0eaf4;
  background: #f0eee9;
  border-block: 1px solid var(--studio-border);
}
.studio-wrap { padding-block: clamp(30px, 4.8vw, 64px); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: end; margin-bottom: 28px; }
.section-heading p { max-width: 44ch; }
.studio-section .section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(325px, 405px);
  gap: 0;
  border: 1px solid var(--studio-border);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}
.photo-pane { padding: clamp(15px, 2.6vw, 32px); display: grid; background: var(--studio-canvas); }
.drop-zone {
  min-height: 343px;
  padding: clamp(12px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 13px;
  border: 1px dashed #aaa39a;
  border-radius: 10px;
}
.drop-zone:has(.photo-preview:not([hidden])) { border-style: solid; border-color: transparent; }
.drop-zone.is-dragging { border-color: #674a80; background: var(--lilac); }
.drop-copy strong { display: block; margin-bottom: 3px; font-size: 1.15rem; }
.drop-copy p, .file-message, .file-details { font-size: .88rem; }
.drop-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 10px;
  border-radius: 9px;
  background: #e6dbea;
  color: var(--plum);
  font-size: 1.5rem;
}
.drop-actions { display: flex; gap: 10px 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.drop-actions label { cursor: pointer; }
.drop-actions input:focus-visible + label { outline: 3px solid #795398; outline-offset: 4px; }
.text-button {
  background: none;
  border: 0;
  color: var(--plum);
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: .21em;
  font-size: .9rem;
}
.photo-preview {
  width: min(100%, 660px);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e4dfd6;
}
.photo-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-preview.is-selecting { position: relative; width: 100%; aspect-ratio: auto; }
.photo-preview.is-selecting img { height: auto; }
.photo-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
.photo-preview:has(canvas:focus-visible) { outline: 3px solid #795398; outline-offset: 4px; }
.selection-tools { width: 100%; text-align: left; font-size: .9rem; }
.selection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.selection-actions .text-button:disabled { opacity: .55; cursor: not-allowed; }
.file-message:empty { display: none; }
.file-message, .tool-note.is-error { color: #8d2235; }
.file-details { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.file-details span { overflow-wrap: anywhere; }

.preferences { display: flex; flex-direction: column; align-items: stretch; padding: clamp(20px, 2.5vw, 30px); border-inline-start: 1px solid var(--studio-border); font-size: .94rem; }
.studio-grid[data-input="text"] { grid-template-columns: minmax(0, 1fr); }
.studio-grid[data-input="text"] .preferences { width: min(100%, 680px); border: 0; }
.input-mode { margin-bottom: 14px; }
.input-mode label, .design-settings > label { display: block; font-weight: 660; }
.design-settings { margin-bottom: 16px; }
.design-settings fieldset { margin-block: 12px 0; }
.element-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-example { align-self: flex-start; text-align: left; margin-top: 8px; font-size: .88rem; }
.preferences > label, .room-options > label, .style-field-label, .preferences legend { font-weight: 660; }
.room-options { margin-top: 16px; }
.preferences #edit-mode { margin-bottom: 2px; }
.style-field-label { display: block; margin-top: 16px; }
.custom-style { margin-top: 12px; }
.custom-style label { display: block; font-weight: 650; }
.custom-style input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid var(--studio-border); border-radius: 7px; }
.style-choice { width: 100%; min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 7px; margin-top: 6px; border: 1px solid var(--studio-border); border-radius: 9px; background: var(--studio-field); text-align: left; }
.style-choice:hover { border-color: var(--studio-accent); }
.style-choice img { width: 76px; height: 57px; border-radius: 5px; object-fit: cover; flex: none; }
.style-choice-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.style-choice-copy > span:first-child { font-weight: 680; }
.style-choice-copy > span:last-child { font-size: .85rem; color: var(--muted); }
.style-chevron { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-right: 3px; flex: none; }
.style-picker { position: fixed; inset: 0; margin: auto; width: min(980px, calc(100% - 28px)); max-height: min(88dvh, 920px); max-width: none; border: 1px solid var(--studio-border); border-radius: 14px; padding: 0; background: var(--white); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.style-picker::backdrop { background: #21172c99; }
.style-picker-header { position: sticky; top: 0; z-index: 1; display: grid; gap: 12px; padding: 16px 22px; background: var(--white); border-bottom: 1px solid var(--studio-border); }
.style-picker-title, .style-picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.style-picker-title h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.9rem); letter-spacing: -.025em; }
.style-picker-title .button { min-height: 40px; padding: 7px 13px; }
.style-picker-tools input { width: min(100%, 340px); min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid var(--studio-border); border-radius: 7px; background: var(--studio-field); }
.style-picker-tools .text-button { flex: none; }
.picker-empty { padding: 22px 22px 6px; }
.style-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 42%), 1fr)); gap: 12px; padding: 20px 22px; }
.style-picker-card { display: flex; flex-direction: column; min-width: 0; padding: 5px; border: 1px solid var(--studio-border); border-radius: 9px; color: var(--ink); background: var(--white); text-align: left; }
.style-picker-card:hover, .style-picker-card[aria-pressed="true"] { border-color: var(--studio-accent); background: var(--studio-selection); }
.style-picker-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.style-picker-card span { display: block; padding: 7px 4px 3px; font-size: .88rem; font-weight: 650; }
.preferences select, .preferences textarea {
  width: 100%;
  padding: 10px 11px;
  margin-top: 6px;
  background: var(--white);
  border: 1px solid var(--studio-border);
  border-radius: 7px;
}
.preferences select { min-height: 44px; }
.preferences textarea { resize: vertical; min-height: 68px; }
.preferences textarea::placeholder { color: #665c6b; opacity: 1; }
.local-pair-options { margin-top: 14px; }
.local-pair-options label { display: block; font-weight: 660; }
.local-pair-options .tool-note { margin-top: 5px; }
.preferences fieldset { border: 0; padding: 0; margin: 20px 0; }
.preferences legend { padding: 0; margin-bottom: 6px; }
.check { display: flex; gap: 9px; align-items: center; min-height: 31px; }
.check input { margin: 0; width: 17px; height: 17px; accent-color: var(--plum); }
.optional { color: var(--muted); font-weight: 400; }
.preferences > .button { align-self: flex-start; margin-top: 16px; }
.preferences .tool-note { max-width: 48ch; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.result-panel { margin-top: 34px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.result-grid:has(.result-card:only-child) { grid-template-columns: minmax(0, 790px); }
.option-heading { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.option-heading h3 { font-size: 1.18rem; }
.option-heading h3 { min-width: 0; overflow-wrap: anywhere; }
.option-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.result-panel .comparison { background: var(--white); }
.result-panel .scene { object-fit: contain; background: var(--white); }
.result-grid[data-view="designs"] .scene-after { clip-path: none; }
.result-grid[data-view="designs"] :is(.scene-before, .image-label, .divider, .comparison-range) { display: none; }
.result-grid[data-view="original"] :is(.scene-after, .image-label, .divider, .comparison-range) { display: none; }
.result-grid .text-concept .scene-after { display: block; clip-path: none; }
.result-grid .text-concept :is(.scene-before, .image-label, .divider, .comparison-range) { display: none; }
.result-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 16px; }
.result-view-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-heading button[aria-pressed="true"] { background: var(--lilac); }
.breadcrumbs { margin-top: 19px; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 9px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: .2em; }
.details-section, .style-section, .free-section, .room-links { padding-block: 38px; border-top: 1px solid var(--line); }
.details-section p, .privacy-page p { max-width: 68ch; margin-top: 12px; }
.details-section p a { color: var(--plum); text-decoration: underline; text-underline-offset: .2em; }
.visual-grid, .room-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 23px; }
.visual-grid img, .room-link-grid img { display: block; width: 100%; height: auto; border-radius: 9px; }
.visual-grid h3, .room-link-grid h3 { font-size: 1.42rem; margin-block: 11px 6px; }
.style-section .text-button { display: inline-block; margin-top: 5px; }
.reference-title { margin-top: 32px; font-size: 1.13rem; }
.reference-title + .visual-grid { margin-top: 14px; }
.visual-grid.style-reference-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 43%), 1fr)); }
.room-link-grid a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.directory-grid ul { padding-inline-start: 19px; }
.directory-grid li { margin-block: 8px; }
.directory-grid li p { margin-top: 2px; }
.guest-link { background: var(--lilac); padding: 22px; border-radius: 9px; }
.free-table { max-width: 710px; margin: 21px 0 0; }
.free-table div { display: grid; grid-template-columns: minmax(105px, .4fr) 1fr; gap: 14px; border-top: 1px solid var(--line); padding-block: 11px; }
.free-table dt { font-weight: 650; }
.free-table dd { margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.privacy-page { padding-block: 45px; }
.privacy-page h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.privacy-page h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 28px; }

.how-section { padding-block: clamp(45px, 6vw, 84px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { border-top: 1px solid #c9bece; padding-top: 14px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; color: var(--muted); margin-bottom: 12px; font-size: .83rem; }
.steps h3 { font-size: 1.48rem; letter-spacing: -.025em; }
.steps p { margin-top: 8px; max-width: 36ch; }
.faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: clamp(22px, 4vw, 60px); padding-block: 33px clamp(48px, 6vw, 85px); border-top: 1px solid var(--line); }
.faq h2 { font-size: clamp(2rem, 3.25vw, 3rem); }
.questions details { padding-block: 13px; border-bottom: 1px solid var(--line); }
.questions details:first-child { padding-top: 0; }
.questions summary { cursor: pointer; font-weight: 650; }
.questions p { padding: 9px 0 3px 17px; max-width: 58ch; }
.site-footer { border-top: 1px solid var(--line); min-height: 72px; display: flex; gap: 14px; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--muted); }
.site-footer .wordmark { color: var(--ink); }

@media (max-width: 1070px) {
  .wrap { width: min(100% - 60px, 1296px); }
  .hero { gap: 30px; }
  .hero-copy { padding-bottom: 30px; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 38px); }
  .masthead { min-height: 66px; gap: 10px; }
  .masthead nav { gap: 15px; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 39px 32px; }
  .hero-copy { padding-bottom: 0; }
  .lead { margin-top: 15px; }
  .hero-actions { margin-top: 19px; }
  .studio-grid, .section-heading, .faq { grid-template-columns: 1fr; }
  .preferences { border-inline-start: 0; border-top: 1px solid var(--studio-border); }
  .result-grid { grid-template-columns: minmax(0, 1fr); }
  .section-heading { gap: 10px; margin-bottom: 20px; }
  .drop-zone { min-height: 260px; }
  .steps { gap: 14px; }
  .visual-grid, .room-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .style-picker { inset: auto 0 0; width: 100%; max-height: 88dvh; margin: 0; border-radius: 16px 16px 0 0; }
  .style-picker-header, .style-picker-grid { padding-inline: 14px; }
  .style-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-picker-tools input, .custom-style input, .preferences textarea, .preferences select { font-size: 1rem; }
  .preferences > .button { align-self: stretch; }
  .header-action { display: none; }
  .steps { grid-template-columns: 1fr; }
  .visual-grid, .room-link-grid { grid-template-columns: 1fr; }
  .steps li { padding-top: 12px; }
  .steps li::before { margin-bottom: 5px; }
  .site-footer { flex-wrap: wrap; padding-block: 16px; }
  .site-footer span:not(.brand-mark) { order: 3; flex-basis: 100%; }
  .style-tabs button { min-height: 37px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.tool-shell { padding-block: 30px 54px; display:grid; grid-template-columns: minmax(0,1fr); gap:28px; }
.tool-shell:has(aside) { grid-template-columns: 196px minmax(0,1fr); }
.tool-shell aside { padding:12px 16px; border-inline-end:1px solid var(--line); align-self:start; position:sticky; top:12px; }
.tool-shell aside a { display:block; padding:6px 0; }
.tool-main h1 { font-size:clamp(2.1rem,5vw,3.8rem); }
.tool-intro { margin:12px 0 24px; max-width:64ch; }
.tool-heading { margin-bottom:24px; }
.tool-heading .tool-intro { margin-bottom:16px; }
.tool-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 18px; margin:0; padding:14px 0; border-block:1px solid var(--line); }
.tool-facts dt { color:var(--muted); font-size:.83rem; }
.tool-facts dd { margin:4px 0 0; font-weight:650; }
.hero-copy .tool-facts { margin-block:20px 0; }
.tool-shortcuts { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:14px; }
.tool-shortcuts a,.tool-answers a,.tool-result-heading a { color:var(--plum); text-decoration:underline; text-underline-offset:.2em; }
.tool-faq { padding-block:26px 32px; margin-top:26px; border-top:1px solid var(--line); scroll-margin-top:18px; }
.tool-faq h2 { font-size:clamp(1.4rem,2.5vw,1.9rem); margin-bottom:14px; }
.tool-answers { max-width:76ch; }
.tool-answers details { border-bottom:1px solid var(--line); padding-block:13px; }
.tool-answers summary,.tool-panel summary { font-weight:650; cursor:pointer; }
.tool-answers p { margin:8px 0 2px; max-width:68ch; }
.tool-panel + .tool-panel { border-top:1px solid var(--line); margin-top:16px; padding-top:14px; }
.tool-panel h2 { font-size:1.18rem; margin-bottom:8px; }
.tool-panel > .button { margin-block:14px 10px; }
.tool-panel input[type=file] { display:block; width:100%; color:var(--muted); }
.tool-panel input[type=file]::file-selector-button { font:inherit; font-weight:650; color:var(--plum); background:var(--lilac); border:1px solid var(--line); border-radius:6px; padding:6px 9px; margin-inline-end:8px; cursor:pointer; }
.field-hint { margin:6px 0; font-size:.9rem; color:var(--muted); }
.field-hint a { text-decoration:underline; text-underline-offset:.2em; }
.tool-result-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px 14px; flex-wrap:wrap; }
.tool-empty { display:grid; min-height:175px; padding:20px; place-items:center; text-align:center; border:1px dashed var(--line); border-radius:9px; background:var(--paper); color:var(--muted); margin-top:12px; }
:is([data-tool-results],#media-result):not(:empty) + .tool-empty { display:none; }
.tool-directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:10px 26px; }
.catalog-group { border-block-start:1px solid var(--line); padding:16px 0; }
.catalog-group h2 { font-size:1.35rem; }
.catalog-group ul { list-style:none; padding:0; }
.catalog-group li { padding:6px 0; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.catalog-group li small { color:var(--muted); }
.catalog-group[id] { scroll-margin-top: 20px; }
.catalog-group a:hover, .sitemap-tools a:hover { text-decoration:underline; text-underline-offset:.2em; }
.catalog-nav { display:flex; flex-wrap:wrap; gap:8px 16px; margin-block:0 20px; }
.catalog-nav a, .related-links a { color:var(--plum); text-decoration:underline; text-underline-offset:.2em; }
.related-links { border-top:1px solid var(--line); padding-block:24px 30px; }
.tool-main .related-links, .sitemap-tools { margin-top:28px; }
.related-links h2, .furniture-case h2 { font-size:clamp(1.35rem,2.5vw,1.9rem); }
.related-links ul { list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr)); gap:9px 24px; margin:14px 0 0; padding:0; }
.related-links a { display:inline-block; padding-block:5px; }
.furniture-case { margin-top:28px; }
.furniture-case p { margin:8px 0 16px; max-width:64ch; }
.furniture-case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.furniture-case figure { margin:0; }
.furniture-case img { display:block; width:100%; aspect-ratio:4/3; height:auto; object-fit:cover; border-radius:8px; }
.furniture-case figcaption { margin-top:6px; color:var(--muted); font-size:.9rem; }
.tool-workspace { display:grid; grid-template-columns:minmax(0,375px) minmax(0,1fr); border:1px solid var(--line); border-radius:14px; background:var(--white); }
.tool-workspace form,.tool-result { padding:clamp(14px,2.4vw,26px); min-width:0; }
.tool-result { align-self:start; }
.tool-workspace form { border-inline-end:1px solid var(--line); }
.tool-workspace label,.platform-form label { display:block; font-weight:650; margin-block:12px 4px; }
.tool-workspace select,.tool-workspace textarea,.platform-form input,.platform-form textarea,.platform-form select,.tool-finishes select { width:100%; padding:9px; border:1px solid var(--line); border-radius:7px; background:var(--white); color:inherit; }
.tool-workspace input[type=file] { max-width:100%; }
.tool-workspace form > .button { margin-block:14px; }
.tool-preview { position:relative; margin-top:12px; }
.tool-preview img { display:block; width:100%; height:auto; border-radius:8px; }
.tool-preview [data-tool-canvas] { position:absolute; inset:0; touch-action:none; }
.tool-result h2 { font-size:1.6rem; }
[data-tool-results] { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:16px; margin:12px 0 18px; }
[data-tool-results] article { min-width:0; }
[data-tool-results] img { width:100%; height:auto; border-radius:8px; display:block; margin-block:8px; }
[data-tool-results] a { margin-inline-start:10px; text-decoration:underline; }
.tool-style-picker { margin-block:9px 14px; }
.tool-style-picker summary { cursor:pointer; }
.tool-style-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:380px; overflow:auto; padding:4px; margin-top:6px; }
.tool-style-list button { display:grid; gap:5px; padding:5px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:inherit; text-align:start; cursor:pointer; }
.tool-style-list img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:4px; }
.tool-style-list button[aria-pressed=true] { outline:2px solid currentColor; }
.tool-workspace .tool-check { display:flex; align-items:center; gap:7px; }
[data-reference-preview] img { object-fit:cover; margin:5px 5px 0 0; border-radius:4px; }
.tool-finishes label { display:block; margin-top:6px; }
.platform-form { max-width:42rem; }
.platform-form .button { margin-top:14px; }
.floor-actions { display:flex; gap:8px; flex-wrap:wrap; margin-block:12px; }
.floor-actions button { padding:6px 10px; }
.floor-actions button[aria-pressed=true] { background:var(--plum); color:white; border-color:var(--plum); }
.floor-page { padding-block:20px 56px; }
.floor-page-heading { margin-bottom:16px; }
.floor-page-heading .tool-intro { margin:6px 0; }
.floor-template-picker { margin-block:0 16px; }
.floor-template-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; margin-bottom:8px; }
.floor-template-heading h2 { margin-right:auto; font-size:1.02rem; font-weight:650; }
.floor-start-empty { padding:2px 0; border:0; background:none; color:var(--plum); font:inherit; font-size:.85rem; text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
.floor-start-empty[aria-pressed=true] { font-weight:700; }
.floor-template-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.floor-template { display:grid; grid-template-columns:clamp(55px,8vw,106px) minmax(0,1fr); align-items:center; gap:10px; border:1px solid var(--line); border-radius:8px; padding:6px; text-align:start; background:var(--white); color:var(--ink); font:inherit; cursor:pointer; }
.floor-template:hover { border-color:var(--plum); }
.floor-template[aria-pressed=true] { background:#f3edf7; border-color:#765388; box-shadow:inset 0 0 0 1px #765388; }
.floor-template svg,.floor-library-card svg { display:block; width:100%; height:70px; padding:4px; border-radius:4px; background:#f6f3ed; }
.floor-library-card svg { height:130px; margin-bottom:12px; }
.floor-template span,.floor-template strong { display:block; }
.floor-template span { color:var(--muted); font-size:.8rem; line-height:1.28; }
.floor-template strong { margin-bottom:3px; color:var(--ink); font-size:.94rem; }
.floor-template .floor-template-note { margin-top:3px; }
.floor-workspace { grid-template-columns:minmax(0,1fr) minmax(230px,270px); }
.floor-editor { scroll-margin-top:12px; }
.floor-editor-heading,.floor-selection { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.floor-editor-heading { justify-content:space-between; }
.floor-selection { margin-top:8px; }
.floor-workspace .floor-selection label { margin:0; }
.floor-workspace .floor-selection select { width:auto; flex:1 1 10rem; max-width:100%; }
.floor-workspace :is(button,.floor-add summary) { font:inherit; }
.floor-workspace button:not(.button),.floor-add summary { cursor:pointer; padding:7px 11px; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:6px; }
.floor-workspace button:disabled { cursor:default; opacity:.48; }
.floor-workspace button[aria-pressed=true] { color:white; background:var(--plum); border-color:var(--plum); }
.floor-add { position:relative; }
.floor-add summary { list-style:none; }
.floor-add summary::after { content:" +"; font-weight:700; }
.floor-add div { position:absolute; z-index:2; top:calc(100% + 6px); inset-inline-start:0; display:grid; min-width:144px; gap:4px; padding:6px; background:var(--white); border:1px solid var(--line); border-radius:8px; box-shadow:0 5px 16px #2d25321a; }
.floor-add button { text-align:start; }
.floor-toolbar { margin-block:14px 8px; }
.floor-instruction { font-size:.9rem; color:var(--muted); margin:0; }
.floor-stages { display:flex; gap:6px; flex-wrap:wrap; margin-top:14px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.floor-workspace .floor-stages button[aria-pressed=false] { border-color:transparent; }
#plan-preview { margin-block:12px 0; }
.floor-import-review { margin-top:12px; border-inline-start:3px solid #ba8b51; padding:9px 12px; background:#f7f2e7; }
.floor-import-review h3 { margin:0; font-size:1rem; }
.floor-import-review .floor-actions { margin:8px 0 0; }
.floor-workspace .floor-import-review button[data-floor-join] { background:var(--plum); color:#fff; }
.floor-workspace [data-floor-import-status] { overflow-wrap:anywhere; }
.floor-preview-views { margin-block:0 8px; }
.floor-source-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; font-size:.84rem; }
.floor-workspace .floor-source-tools label { margin:0; white-space:nowrap; }
.floor-workspace .floor-source-tools button { padding:5px 8px; }
.floor-source-tools input { width:min(120px,32vw); accent-color:var(--plum); }
.floor-source-tools span { min-width:3.6ch; color:var(--muted); }
.floor-status { min-height:1.4em; }
.floor-sidebar { border-inline-start:1px solid var(--line); min-width:0; }
.floor-workspace .floor-sidebar form { border:0; padding:16px; }
.floor-sidebar .floor-download { margin:0; padding:16px; }
.floor-workspace .floor-download button[data-export=json] { background:var(--lilac); }
[data-floor-canvas], [data-floor-output] canvas { touch-action:none; }
.plan-inspector,.floor-outputs { margin-top:16px; padding:14px; border:1px solid var(--line); border-radius:8px; }
.tool-workspace .plan-inspector { border:1px solid var(--line); padding:14px; }
.plan-inspector [data-floor-fields] { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(115px,100%),1fr)); gap:10px; margin:8px 0 12px; }
.plan-inspector input[type=number] { max-width:100%; width:100%; display:block; }
.plan-inspector label { margin:0; }
.floor-outputs summary { font-weight:650; cursor:pointer; }
[data-floor-output] img, [data-floor-output] canvas { width:100%; display:block; margin-top:10px; border-radius:6px; }
[data-floor-canvas] { margin-top:12px; background:#f6f3ed; border-radius:8px; overflow:hidden; }
#media-result canvas,#media-result video { display:block; max-width:100%; margin-top:10px; }
@media (max-width:830px) {
  .tool-shell:has(aside),.tool-workspace { grid-template-columns:minmax(0,1fr); }
  .tool-shell aside { display:none; }
  .tool-workspace form { border-inline-end:0; border-block-end:1px solid var(--line); }
  .floor-sidebar { border-inline-start:0; border-top:1px solid var(--line); }
}
@media (max-width:540px) {
  .floor-template { grid-template-columns:1fr; align-content:start; gap:5px; }
  .floor-template svg { height:60px; }
  .floor-template strong { font-size:.78rem; }
  .floor-template span { font-size:.72rem; }
  .floor-template .floor-template-note { display:none; }
  .floor-workspace .floor-editor-heading button { font-size:.84rem; }
  .floor-workspace .floor-toolbar button,.floor-workspace .floor-add summary { font-size:.86rem; padding:7px 9px; }
  .tool-facts { grid-template-columns:1fr; }
  body:has(.tool-main) .masthead { flex-wrap:wrap; padding-block:12px; }
  body:has(.tool-main) .masthead nav { flex-wrap:wrap; }
}
