@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap";

/* src/styles.css */
:root {
  --brand: #AE7839;
  --brand-hover: #C38C4D;
  --brand-active: #B98344;
  --page-bg: #F8F6F2;
  --surface: #FFFFFF;
  --text: #171717;
  --ink: var(--text);
  --muted: #6D665E;
  --paper: var(--surface);
  --cream: var(--page-bg);
  --line: #E3DED7;
  --accent: var(--brand);
  --accent-deep: var(--brand);
  --focus: #7A4B1D;
  --surface-tint: #FCF8F2;
  --warning: #d4a24c;
  --danger: #9D4D45;
  color: var(--text);
  background: var(--page-bg);
  font-family:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
[role=button]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.app-shell {
  min-height: 100vh;
  overflow: hidden;
}
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.topbar {
  width: min(1276px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(23, 23, 23, .14);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: clamp(72px, 8vw, 92px);
  height: auto;
  flex: 0 0 auto;
}
.brand-context strong,
.brand-context small {
  display: block;
}
.brand-context strong {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-context small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.dashboard-link {
  padding: 8px 11px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.dashboard-link:hover {
  background: var(--surface-tint);
}
.topbar-meta,
.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 11px "DM Mono", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(174, 120, 57, .18);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding: 62px 0 50px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font: 11px "DM Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 700px;
  margin-bottom: 23px;
  font-size: clamp(50px, 7.4vw, 96px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 500;
}
h1 em {
  color: var(--accent-deep);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: -.055em;
}
.hero-lead {
  max-width: 445px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 284px;
  padding: 20px 0 17px 19px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid rgba(23, 23, 23, .18);
}
.hero-note-number,
.step-index,
.how-steps span {
  color: var(--accent-deep);
  font: 12px "DM Mono", monospace;
}
.hero-note strong,
.hero-note span {
  display: block;
}
.hero-note strong {
  margin-bottom: 5px;
  font-size: 14px;
}
.hero-note span {
  color: var(--muted);
  font-size: 12px;
}
.hero-note svg {
  margin-left: auto;
  color: var(--accent-deep);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  gap: clamp(45px, 8vw, 110px);
  padding-bottom: 105px;
}
.section-intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}
.section-intro .eyebrow {
  margin-bottom: 5px;
}
h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: -.03em;
  font-weight: 600;
}
.section-intro--result {
  align-items: center;
}
.section-intro--result .result-pill {
  margin-left: auto;
  color: var(--accent-deep);
}
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 214px;
  padding: 22px;
  border: 1px dashed #B9A58E;
  border-radius: 5px;
  background: rgba(255, 255, 255, .65);
  color: var(--muted);
  text-align: center;
  transition:
    border-color .2s,
    background .2s,
    transform .2s;
}
.dropzone:hover,
.dropzone--active {
  border-color: var(--brand);
  background: rgba(174, 120, 57, .09);
  transform: translateY(-1px);
}
.dropzone--ready {
  padding: 7px;
  border-style: solid;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: #F1E5D6;
  color: var(--brand-active);
}
.upload-icon svg {
  width: 19px;
}
.dropzone strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}
.dropzone > span:not(.upload-icon) {
  font-size: 13px;
}
.dropzone small {
  margin-top: 15px;
  font: 10px "DM Mono", monospace;
  letter-spacing: .02em;
}
.upload-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
  border-radius: 3px;
  background: #E9E4DC;
}
.upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}
.selection-stage {
  touch-action: none;
}
.selection-stage--active {
  cursor: crosshair;
  border: 1px solid var(--brand);
}
.selection-stage > img {
  min-height: 0;
  object-fit: contain;
}
.selection-stage-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  pointer-events: none;
}
.protected-region {
  position: absolute;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 5px;
  border: 2px solid var(--brand);
  background: rgba(174, 120, 57, .16);
  color: var(--ink);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  pointer-events: none;
}
.protected-region--removal {
  background: rgba(174, 120, 57, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}
.protected-region--draft {
  border-style: dashed;
  background: rgba(174, 120, 57, .1);
}
.protected-region button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--brand);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 14px/14px Arial, sans-serif;
  pointer-events: auto;
}
.upload-preview-overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-active);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  pointer-events: none;
}
.upload-preview-overlay svg {
  width: 13px;
}
.file-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 27px;
  color: var(--muted);
  font: 11px "DM Mono", monospace;
}
.file-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-line small {
  flex: 0 0 auto;
}
.file-line button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 11px;
}
.form-block {
  margin-top: 27px;
}
.form-block > label,
.label-row label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.label-row span {
  color: var(--muted);
  font-size: 11px;
}
.protected-regions-panel {
  margin-top: 20px;
  padding: 13px 14px;
  border-left: 2px solid var(--brand);
  background: var(--surface);
  color: var(--ink);
}
.protected-regions-panel strong {
  font-size: 12px;
}
.protected-regions-panel p {
  margin: 8px 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.protected-regions-panel small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.selection-purpose-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.selection-purpose-toggle button {
  flex: 1;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
}
.selection-purpose-toggle button:hover,
.selection-purpose-toggle button.is-selected {
  border-color: var(--brand);
  background: var(--surface-tint);
  box-shadow: 0 0 0 2px rgba(174, 120, 57, .18);
}
.enhancement-intro {
  max-width: 360px;
  line-height: 1.5;
}
.enhancement-controls {
  display: grid;
  gap: 17px;
  margin-top: 17px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.enhancement-control .label-row {
  margin-bottom: 8px;
}
.enhancement-control label,
.enhancement-control output {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.enhancement-control output {
  color: var(--brand);
  font: 12px "DM Mono", monospace;
}
.enhancement-control input[type=range] {
  display: block;
  width: 100%;
  accent-color: var(--brand);
}
.slider-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
}
.enhancement-reset {
  margin-top: 10px;
}
textarea {
  display: block;
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(174, 120, 57, .2);
}
.text-examples {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.text-examples > span {
  color: var(--muted);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.text-examples button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  text-align: left;
  line-height: 1.35;
}
.text-examples button:hover {
  border-color: var(--brand);
  background: var(--surface-tint);
}
.text-source-block {
  margin-top: 18px;
  padding: 13px 14px;
  border-left: 2px solid var(--brand);
  background: var(--surface);
}
.text-source-block > .label-row strong {
  font-size: 12px;
}
.text-source-grid {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.text-source-choice {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.text-source-choice:hover:not(:disabled),
.text-source-choice.is-selected {
  border-color: var(--brand);
  background: var(--surface-tint);
  box-shadow: 0 0 0 2px rgba(174, 120, 57, .18);
}
.text-source-choice strong,
.text-source-choice small {
  display: block;
}
.text-source-choice strong {
  margin-bottom: 3px;
  font-size: 12px;
}
.text-source-choice small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-source-block > .field-hint {
  margin-top: 10px;
  line-height: 1.45;
}
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(174, 120, 57, .2);
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mode-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 72px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition:
    border .2s,
    box-shadow .2s,
    background .2s;
}
.mode-choice:hover:not(:disabled),
.mode-choice.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(174, 120, 57, .22);
}
.mode-choice.is-selected {
  background: var(--surface-tint);
}
.mode-choice > svg {
  flex: 0 0 auto;
  width: 17px;
  margin-top: 1px;
  color: var(--brand);
}
.mode-choice strong,
.mode-choice small {
  display: block;
}
.mode-choice strong {
  margin-bottom: 4px;
  font-size: 12px;
}
.mode-choice small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.style-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
  min-height: 96px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  font-size: 11px;
  transition: border .2s, box-shadow .2s;
}
.style-choice:hover,
.style-choice.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(174, 120, 57, .22);
}
.style-choice.is-selected {
  background: var(--surface-tint);
}
.style-choice > svg {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 13px;
  color: var(--brand);
}
.style-swatch {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 45px;
  overflow: hidden;
  padding: 7px;
  border-radius: 2px;
  background: #E9E2D9;
}
.style-swatch i {
  display: block;
  border-radius: 1px 1px 0 0;
  background: #AE7839;
}
.style-swatch i:nth-child(1) {
  width: 20%;
  height: 40%;
}
.style-swatch i:nth-child(2) {
  width: 42%;
  height: 78%;
}
.style-swatch i:nth-child(3) {
  width: 20%;
  height: 55%;
}
.style-choice--modern .style-swatch {
  background: #E7E6E2;
}
.style-choice--modern .style-swatch i {
  background: #6F6A62;
}
.style-choice--skandinavisch .style-swatch {
  background: #F0E5D6;
}
.style-choice--skandinavisch .style-swatch i {
  background: #B58C61;
}
.style-choice--luxuri\f6s .style-swatch {
  background: #D9D0C5;
}
.style-choice--luxuri\f6s .style-swatch i {
  background: #554B42;
}
.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 13px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.5;
}
.notice p {
  margin: 0;
}
.notice strong {
  display: block;
  margin-bottom: 3px;
}
.notice code {
  padding: 1px 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .06);
  font: 11px "DM Mono", monospace;
}
.notice--warning {
  border: 1px solid #e0c388;
  background: #fbf5e6;
  color: #715426;
}
.notice--error {
  border: 1px solid #e1b5b0;
  background: #fdf0ee;
  color: #864b48;
}
.notice--info {
  border: 1px solid #D8B98F;
  background: #FCF5EB;
  color: var(--ink);
}
.notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  font-weight: 700;
}
.notice--info .notice-icon {
  background: transparent;
  color: var(--brand);
}
.notice--info .notice-icon svg {
  width: 18px;
}
.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border-radius: 3px;
  font-size: 13px;
  transition: transform .2s, background .2s;
}
.primary-button {
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--ink);
  font-weight: 600;
}
.primary-button:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
}
.primary-button:active:not(:disabled) {
  background: var(--brand-active);
}
.primary-button svg:last-child {
  width: 16px;
  margin-left: auto;
}
.primary-button svg:first-child {
  width: 16px;
}
.secondary-button {
  padding: 13px 16px;
  border: 1px solid var(--brand);
  background: var(--paper);
  color: var(--ink);
}
.secondary-button:hover:not(:disabled) {
  background: #FCF5EB;
}
.secondary-button:active:not(:disabled) {
  background: #F1E5D6;
}
.secondary-button svg {
  width: 16px;
}
.result-card .secondary-button + .secondary-button {
  margin-top: 8px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(23, 23, 23, .25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.privacy-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.result-column {
  min-width: 0;
}
.empty-result {
  min-height: 532px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 29px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.empty-result-art {
  position: relative;
  height: 314px;
  margin: -29px -29px 30px;
  overflow: hidden;
  background:
    linear-gradient(
      146deg,
      #F3EEE7 0%,
      #EDE8E0 100%);
}
.empty-window {
  position: absolute;
  top: 48px;
  right: 68px;
  width: 27%;
  height: 47%;
  border: 8px solid rgba(255, 255, 255, .78);
  background:
    linear-gradient(
      135deg,
      rgba(209, 196, 178, .34),
      rgba(239, 232, 220, .8));
  box-shadow: inset 0 0 0 1px rgba(122, 75, 29, .14);
}
.empty-floor {
  position: absolute;
  right: -10%;
  bottom: -29%;
  width: 116%;
  height: 55%;
  background:
    repeating-linear-gradient(
      169deg,
      rgba(122, 75, 29, .13) 0 2px,
      transparent 2px 25px);
  transform: skewY(-16deg);
}
.empty-line {
  position: absolute;
  height: 1px;
  background: rgba(122, 75, 29, .24);
}
.empty-line--one {
  right: 8%;
  bottom: 36%;
  width: 39%;
}
.empty-line--two {
  left: 8%;
  bottom: 27%;
  width: 57%;
}
.empty-result h3 {
  margin-bottom: 10px;
  font-size: 26px;
  letter-spacing: -.04em;
  font-weight: 500;
}
.empty-result > p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.empty-result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
}
.empty-result-foot svg {
  width: 15px;
  color: var(--accent-deep);
}
.latest-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-active);
  font: inherit;
  text-transform: uppercase;
}
.latest-download:hover {
  color: var(--ink);
}
.result-card {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.compare-shell {
  position: relative;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 300px;
  max-height: 760px;
  overflow: hidden;
  background: #F3F1ED;
}
.compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.compare-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.compare-shell--side-by-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.compare-pane {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #F3F1ED;
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(23, 23, 23, .16);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(23, 23, 23, .78);
  transform: translate(-50%, -50%);
}
.compare-divider span::before,
.compare-divider span::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 7px;
  height: 1px;
  background: #fff;
}
.compare-divider span::before {
  left: 6px;
  transform: rotate(45deg);
}
.compare-divider span::after {
  right: 6px;
  transform: rotate(-45deg);
}
.compare-label {
  position: absolute;
  top: 12px;
  padding: 5px 7px;
  background: rgba(251, 250, 246, .88);
  color: var(--ink);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.compare-label--before {
  left: 12px;
}
.compare-label--after {
  right: 12px;
}
.compare-control {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 2px 8px;
  color: var(--muted);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
}
.compare-control input {
  flex: 1;
  accent-color: var(--accent-deep);
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}
.geometry-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 3px 0 17px;
  padding: 10px;
  border-left: 2px solid var(--brand);
  background: #FCF5EB;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}
.geometry-note svg {
  flex: 0 0 auto;
  width: 15px;
  margin-top: 1px;
}
.result-disclaimer {
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.how-it-works {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  padding: 55px 0 60px;
  border-top: 1px solid var(--line);
}
.how-copy h2 {
  max-width: 390px;
  margin-bottom: 17px;
  font-size: 31px;
  line-height: 1.12;
}
.how-copy > p:last-child {
  max-width: 470px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-self: center;
}
.how-steps > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--ink);
}
.how-steps strong {
  font-size: 14px;
}
.how-steps small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.area-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 35px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}
.area-nav button {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.area-nav button:hover,
.area-nav button.is-selected {
  border-color: var(--brand);
  background: var(--surface-tint);
  box-shadow: 0 0 0 2px rgba(174, 120, 57, .18);
}
.area-heading {
  padding: 25px 0 28px;
}
.area-heading h2 {
  margin-bottom: 10px;
  font-size: 32px;
}
.area-heading > p:last-child,
.section-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.batch-area {
  padding-bottom: 100px;
}
.batch-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
  min-width: 0;
}
.batch-controls,
.batch-results {
  min-width: 0;
}
.batch-dropzone {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 150px;
  padding: 22px;
  border: 1px dashed var(--brand);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.batch-dropzone:hover,
.batch-dropzone.is-dragging {
  background: var(--surface-tint);
  box-shadow: 0 0 0 3px rgba(174, 120, 57, .16);
}
.batch-dropzone strong {
  font-size: 14px;
}
.batch-dropzone span,
.batch-dropzone small {
  color: var(--muted);
  font-size: 11px;
}
.batch-upload-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.batch-upload-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 145px 28px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.batch-upload-row.is-invalid {
  border-color: #e1b5b0;
  background: #fdf0ee;
}
.batch-upload-row img,
.batch-invalid-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  object-fit: cover;
  background: var(--surface-tint);
  color: var(--danger);
  font-weight: 700;
}
.batch-upload-meta {
  min-width: 0;
}
.batch-upload-meta strong,
.batch-upload-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-upload-meta strong {
  font-size: 11px;
}
.batch-upload-meta small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  white-space: normal;
}
.batch-upload-row select {
  min-width: 0;
  padding: 8px;
  font-size: 10px;
}
.icon-button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--danger);
  font-size: 18px;
  line-height: 1;
}
.batch-style-block {
  margin-top: 22px;
}
.batch-cost-note {
  margin-top: 17px;
  padding: 11px 12px;
  border-left: 2px solid var(--brand);
  background: var(--surface-tint);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}
.batch-progress {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.batch-progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-tint);
}
.batch-progress-track span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width .25s ease;
}
.batch-progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
}
.batch-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.batch-result-actions .secondary-button {
  width: auto;
  flex: 1 1 190px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 11px;
  text-decoration: none;
}
.secondary-button.is-disabled {
  pointer-events: none;
  opacity: .45;
}
.batch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.batch-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.batch-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-bottom: 9px;
}
.batch-card-heading > div {
  min-width: 0;
}
.batch-card-heading strong,
.batch-card-heading small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-card-heading strong {
  font-size: 12px;
}
.batch-card-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.batch-status {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 2px;
  background: var(--surface-tint);
  color: var(--muted);
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
}
.batch-status--succeeded {
  color: #416448;
  background: #edf5ed;
}
.batch-status--failed {
  color: #864b48;
  background: #fdf0ee;
}
.batch-status--running,
.batch-status--queued {
  color: var(--brand-active);
}
.batch-card-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.batch-card-compare figure,
.batch-modal-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f3f1ed;
}
.batch-card-compare img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.batch-card-compare figcaption,
.batch-modal-grid figcaption {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 3px 5px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
}
.batch-card-placeholder {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.batch-item-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.4;
}
.batch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.batch-card-actions .secondary-button {
  width: auto;
  flex: 1 1 100px;
  padding: 7px 8px;
  font-size: 10px;
  text-decoration: none;
}
.batch-retry-check {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
}
.batch-retry-check input {
  accent-color: var(--brand);
}
.batch-empty {
  min-height: 380px;
}
.batch-modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  background: rgba(23, 23, 23, .62);
}
.batch-modal {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 50px);
  overflow: auto;
  padding: 18px;
  background: var(--surface);
}
.batch-modal-close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
}
.batch-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.batch-modal-grid img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
.photo-workspace {
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  gap: clamp(35px, 7vw, 90px);
  padding-bottom: 100px;
}
.panel-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.photo-dropzone {
  min-height: 210px;
  cursor: pointer;
}
.photo-dropzone img {
  display: block;
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}
.photo-selection {
  min-height: 260px;
  margin-bottom: 18px;
  background: #e9e4dc;
}
.photo-selection > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.area-mark-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}
.area-mark-list > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: var(--surface-tint);
  color: var(--ink);
  font: 10px "DM Mono", monospace;
}
.area-mark-list button {
  border: 0;
  background: transparent;
  color: var(--danger);
}
.renovation-options {
  display: grid;
  gap: 8px;
}
.renovation-options input,
.renovation-options textarea,
.scale-box input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.renovation-options textarea {
  min-height: 82px;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
}
.checkbox-line input {
  width: auto;
  accent-color: var(--brand);
}
.small-empty {
  min-height: 300px;
}
.plan-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
  padding-bottom: 100px;
}
.plan-toolbar,
.plan-summary {
  display: grid;
  gap: 12px;
}
.plan-toolbar .section-intro {
  margin-bottom: 0;
}
.plan-actions {
  display: grid;
  gap: 8px;
}
.plan-actions .secondary-button {
  width: 100%;
}
.plan-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.plan-tool-grid button {
  padding: 9px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  text-align: left;
}
.plan-tool-grid button:hover,
.plan-tool-grid button.is-selected {
  border-color: var(--brand);
  background: var(--surface-tint);
}
.plan-form-row {
  display: grid;
  gap: 10px;
}
.plan-form-row label:not(.checkbox-line),
.three-d-controls label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
}
.plan-form-row select,
.scale-box input {
  padding: 8px;
  font-size: 11px;
}
.scale-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-left: 2px solid var(--brand);
  background: var(--surface-tint);
}
.scale-box .primary-button {
  margin-top: 0;
  padding: 10px;
}
.scale-box small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.text-danger-button {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 11px;
  text-align: left;
}
.plan-canvas {
  grid-column: 2;
  padding: 10px;
}
.floorplan-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 400px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.plan-grid line {
  stroke: #E3DED7;
  stroke-width: 1;
}
.plan-element {
  cursor: grab;
}
.plan-element.is-selected polygon,
.plan-element.is-selected line {
  filter: drop-shadow(0 0 4px rgba(174, 120, 57, .9));
}
.plan-element polygon {
  fill: rgba(174, 120, 57, .1);
  stroke: var(--brand);
  stroke-width: 3;
}
.plan-element text {
  fill: var(--ink);
  font: 18px "DM Sans", sans-serif;
  pointer-events: none;
}
.plan-element line {
  stroke: var(--ink);
  stroke-width: 8;
  stroke-linecap: round;
}
.plan-element .plan-door {
  stroke: var(--brand);
  stroke-width: 5;
}
.plan-element .plan-window {
  stroke: #3e7180;
  stroke-width: 5;
  stroke-dasharray: 14 8;
}
.plan-draft {
  stroke: var(--brand);
  stroke-width: 4;
  stroke-dasharray: 10 6;
}
.plan-help {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.plan-summary {
  grid-column: 1 / -1;
}
.plan-summary h3 {
  margin: 0;
  font-size: 18px;
}
.plan-summary > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.area-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.area-row strong,
.area-row span {
  font-size: 12px;
}
.area-row span {
  color: var(--brand-active);
  font-family: "DM Mono", monospace;
}
.area-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.plan-3d-view {
  grid-column: 2;
}
.plan-3d-view img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--page-bg);
}
.three-d-controls {
  display: grid;
  gap: 10px;
}
.three-d-controls input[type=range] {
  width: 100%;
  accent-color: var(--brand);
}
.three-d-controls output {
  color: var(--brand);
  font: 10px "DM Mono", monospace;
}
.floorplan-area {
  padding-bottom: 100px;
}
.floorplan-area .area-heading {
  margin-bottom: 16px;
}
.floorplan-area.has-file .area-heading {
  padding: 8px 0 10px;
  margin-bottom: 10px;
}
.floorplan-area.has-file .area-heading > p:not(.eyebrow) {
  display: none;
}
.floorplan-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
  min-width: 0;
}
.floorplan-layout > *,
.floorplan-controls,
.floorplan-result,
.floorplan-result-image,
.compare-shell,
.floorplan-label-stage,
.floorplan-preview-tabs {
  min-width: 0;
  max-width: 100%;
}
.floorplan-controls,
.floorplan-result {
  display: grid;
  gap: 14px;
}
.floorplan-dropzone {
  min-height: 210px;
  padding: 8px;
}
.floorplan-dropzone > img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}
.floorplan-source-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}
.floorplan-source-stage--selecting {
  cursor: crosshair;
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  touch-action: none;
}
.floorplan-source-stage > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
.floorplan-crop-region {
  position: absolute;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5px;
  border: 2px solid var(--brand);
  background: rgba(174, 120, 57, .14);
  color: var(--ink);
  font: 9px "DM Mono", monospace;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: none;
}
.floorplan-crop-region--draft {
  border-style: dashed;
  background: rgba(174, 120, 57, .08);
}
.floorplan-crop-controls {
  margin-top: 3px;
  padding: 12px;
  border-left: 2px solid var(--brand);
  background: var(--surface-tint);
}
.floorplan-crop-controls .field-hint {
  line-height: 1.45;
}
.floorplan-surface-options {
  padding: 12px;
  border-left: 2px solid var(--brand);
  background: var(--surface-tint);
}
.floorplan-surface-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.floorplan-surface-choice {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.floorplan-surface-choice:hover,
.floorplan-surface-choice.is-selected {
  border-color: var(--brand);
  background: var(--surface-tint);
  box-shadow: 0 0 0 2px rgba(174, 120, 57, .18);
}
.floorplan-surface-choice strong,
.floorplan-surface-choice small {
  display: block;
}
.floorplan-surface-choice strong {
  font-size: 12px;
  font-weight: 600;
}
.floorplan-surface-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.plan-actions--inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-actions--inline .secondary-button {
  flex: 1;
  width: auto;
}
.floorplan-result-image,
.plan-source-preview {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.floorplan-result-image img,
.plan-source-preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.floorplan-distortion-check {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.floorplan-distortion-check summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 600;
}
.floorplan-distortion-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
  gap: 14px;
  padding: 0 12px 12px;
  align-items: start;
}
.floorplan-distortion-content img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #F3F1ED;
  border: 1px solid var(--line);
}
.floorplan-distortion-content p {
  margin: 8px 0 0;
}
.floorplan-full-original-link {
  width: auto;
}
.floorplan-preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
}
.floorplan-preview-tabs button {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.floorplan-preview-tabs button:hover:not(:disabled),
.floorplan-preview-tabs button.is-selected {
  border-color: var(--brand);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(174, 120, 57, .14);
}
.floorplan-preview-tabs button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.floorplan-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.floorplan-preview-toolbar > span {
  min-width: 48px;
  color: var(--muted);
  font: 10px "DM Mono", monospace;
  text-align: center;
}
.floorplan-preview-toolbar .secondary-button {
  width: auto;
  min-width: 42px;
  padding: 8px 10px;
}
.floorplan-label-stage {
  position: relative;
  height: min(72vh, 760px);
  min-height: 300px;
  max-height: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #F3F1ED;
  line-height: 0;
  cursor: grab;
  touch-action: none;
}
.floorplan-label-stage.is-zoomed {
  cursor: grab;
}
.floorplan-label-stage.is-panning {
  cursor: grabbing;
}
.floorplan-label-stage--compare {
  cursor: default;
}
.floorplan-compare-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  height: 100%;
  background: var(--line);
}
.floorplan-compare-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #F3F1ED;
}
.floorplan-compare-pane img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.floorplan-compare-pane span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 7px;
  background: rgba(251, 250, 246, .9);
  color: var(--ink);
  font: 10px "DM Mono", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.floorplan-image-content {
  position: absolute;
  transform-origin: center center;
  will-change: transform;
}
.floorplan-image-content > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.floorplan-label {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  min-width: 44px;
  padding: 4px 8px;
  border: 1px solid rgba(174, 120, 57, .65);
  border-radius: 2px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-family:
    "DM Sans",
    Arial,
    sans-serif;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: grab;
}
.floorplan-label:active {
  cursor: grabbing;
}
.floorplan-label-name {
  display: block;
  font-weight: inherit;
}
.floorplan-label small {
  display: block;
  margin-top: 2px;
  color: #666;
  font-size: .78em;
  font-weight: 400;
  line-height: 1.15;
}
.floorplan-label--draft {
  z-index: 0;
  pointer-events: none;
  cursor: default;
}
.label-stage-help {
  color: var(--muted);
  font: 10px "DM Mono", monospace;
  line-height: 1.4;
}
.label-settings {
  display: grid;
  gap: 9px;
}
.label-settings label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  color: var(--ink);
  font-size: 11px;
}
.label-settings label input[type=range] {
  grid-column: 1 / -1;
}
.label-settings label output {
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}
.label-settings select {
  width: auto;
  min-width: 130px;
  padding: 6px 8px;
  font-size: 11px;
}
.label-settings input[type=range] {
  flex: 1;
  accent-color: var(--brand);
}
.label-settings input[type=color] {
  width: 42px;
  height: 26px;
  padding: 1px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.floorplan-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, .8fr) auto;
  gap: 7px;
}
.floorplan-label-row input,
.label-editor input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}
.floorplan-controls .file-line {
  min-width: 0;
  align-items: flex-start;
}
.floorplan-controls .file-line span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.floorplan-label-row button {
  width: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--danger);
}
.floorplan-label-rotation {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.floorplan-label-rotation output {
  min-width: 42px;
  color: var(--brand);
  font: 10px "DM Mono", monospace;
  text-align: right;
}
.floorplan-label-rotation input[type=range] {
  width: 100%;
  accent-color: var(--brand);
}
.label-editor {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-left: 2px solid var(--brand);
  background: var(--surface-tint);
}
.label-editor label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
}
.label-editor .plan-actions {
  margin-top: 4px;
}
.dashboard-page {
  padding: 42px 0 88px;
}
.dashboard-intro {
  max-width: 720px;
}
.dashboard-page h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.dashboard-intro > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.dashboard-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.dashboard-tool-card {
  display: flex;
  min-width: 0;
  min-height: 218px;
  flex-direction: column;
  padding: 23px 22px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 23, 23, .04);
  transition:
    border-color .2s,
    box-shadow .2s,
    transform .2s,
    background .2s;
}
.dashboard-tool-card:hover {
  border-color: var(--brand);
  background: var(--surface-tint);
  box-shadow: 0 14px 32px rgba(23, 23, 23, .09);
  transform: translateY(-2px);
}
.dashboard-tool-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.dashboard-tool-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  border-radius: 50%;
  background: #F1E5D6;
  color: var(--brand);
  font-size: 18px;
}
.dashboard-tool-category {
  margin-bottom: 8px;
  color: var(--brand);
  font: 10px "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dashboard-tool-card h2 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.dashboard-tool-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.dashboard-tool-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.dashboard-tool-card:hover .dashboard-tool-open {
  color: var(--ink);
}
.dashboard-radar-preview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 23px 24px;
  border: 1px solid var(--brand);
  background: var(--surface-tint);
}
.dashboard-radar-copy {
  min-width: 0;
}
.dashboard-radar-copy .dashboard-tool-category {
  margin-bottom: 6px;
}
.dashboard-radar-preview h2 {
  margin-bottom: 7px;
  font-size: 24px;
}
.dashboard-radar-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.dashboard-radar-highlights {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}
.dashboard-radar-highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.dashboard-radar-highlights p::before {
  content: "\b7";
  margin-right: 8px;
  color: var(--brand);
  font-weight: 700;
}
.dashboard-radar-preview small,
.dashboard-radar-empty {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-radar-link {
  flex: 0 0 auto;
  width: auto;
  min-width: 205px;
  margin-top: 0;
  text-decoration: none;
}
.radar-page {
  padding: 42px 0 88px;
}
.radar-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.radar-page h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}
.radar-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.radar-back-link {
  width: auto;
  flex: 0 0 auto;
  text-decoration: none;
}
.radar-briefing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}
.radar-briefing-head h2 {
  margin-bottom: 10px;
  font-size: 28px;
}
.radar-meta,
.radar-dates {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.radar-dates {
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
  text-align: right;
  font-family: "DM Mono", monospace;
}
.radar-section {
  margin-top: 42px;
}
.radar-section-heading {
  margin-bottom: 15px;
}
.radar-section-heading .eyebrow {
  margin-bottom: 6px;
}
.radar-section-heading h2 {
  font-size: 24px;
}
.radar-highlight-grid,
.radar-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.radar-highlight,
.radar-metric,
.radar-content-card,
.radar-source {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.radar-highlight > span {
  color: var(--brand);
  font: 11px "DM Mono", monospace;
}
.radar-highlight p {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.radar-metric {
  display: grid;
  gap: 7px;
}
.radar-metric span,
.radar-metric small {
  color: var(--muted);
  font-size: 11px;
}
.radar-metric strong {
  font-size: 22px;
  font-weight: 500;
}
.radar-content-grid {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: 25px;
}
.radar-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.radar-content-card {
  border-top: 3px solid var(--brand);
}
.radar-content-card--assessment {
  border-top-color: #8f7d68;
}
.radar-content-card--recommendation {
  border-top-color: #5f7465;
}
.radar-kind {
  color: var(--brand);
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
}
.radar-content-card h3 {
  margin: 9px 0;
  font-size: 17px;
}
.radar-content-card p,
.radar-content-card li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.radar-content-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}
.radar-source-list {
  display: grid;
  gap: 8px;
}
.radar-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}
.radar-source strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.radar-source span {
  color: var(--muted);
  font-size: 10px;
}
.radar-source a {
  color: var(--brand-active);
  font-size: 11px;
  font-weight: 600;
}
.auth-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--page-bg);
}
.auth-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(23, 23, 23, .07);
}
.auth-card--wide {
  width: min(620px, 100%);
}
.auth-logo {
  display: block;
  width: 72px;
  height: auto;
  margin-bottom: 25px;
}
.auth-card h1 {
  margin-bottom: 14px;
  font-size: 48px;
}
.auth-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.auth-card input,
.admin-create-form input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.auth-card .primary-button {
  margin-top: 5px;
}
.two-factor-setup {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  text-align: center;
}
.two-factor-qr {
  width: 196px;
  height: 196px;
  image-rendering: crisp-edges;
}
.two-factor-setup code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 12px "DM Mono", monospace;
  letter-spacing: .04em;
}
.two-factor-uri {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  font-size: 10px !important;
}
.recovery-code {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font: 12px "DM Mono", monospace;
  letter-spacing: .05em;
}
.auth-link-button {
  display: block;
  margin-top: 24px;
  text-align: center;
  text-decoration: none;
}
.setup-box {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-tint, #FCF5EB);
}
.setup-box summary {
  cursor: pointer;
  color: var(--brand-active);
  font-size: 12px;
  font-weight: 700;
}
.setup-box .field-hint {
  margin: 12px 0 0;
}
.setup-box form {
  margin-top: 14px;
}
.setup-box .secondary-button {
  margin-top: 5px;
  padding: 12px 13px;
}
.setup-box a {
  overflow-wrap: anywhere;
}
.session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1276px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}
.session-bar > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.job-status {
  color: var(--muted);
}
.job-status--running,
.job-status--queued {
  color: var(--brand-active);
}
.job-status--failed {
  color: var(--danger);
}
.admin-tools {
  position: relative;
  color: var(--ink);
}
.admin-tools summary {
  cursor: pointer;
  color: var(--brand-active);
}
.admin-panel {
  position: absolute;
  z-index: 10;
  top: 27px;
  right: 0;
  width: min(780px, calc(100vw - 30px));
  max-height: min(78vh, 760px);
  overflow: auto;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(23, 23, 23, .12);
  color: var(--ink);
}
.admin-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.admin-section h3 {
  margin-bottom: 5px;
  font-size: 15px;
}
.admin-security-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.admin-security-form > label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.admin-security-form input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}
.admin-security-form .secondary-button {
  margin-top: 2px;
}
.admin-invite-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.admin-invite-form > label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.admin-invite-form input[type=email],
.admin-invite-form input:not([type]),
.admin-invite-form input[type=text] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}
.admin-tool-options,
.admin-tool-editor {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
}
.admin-tool-options {
  margin: 2px 0 3px;
}
.admin-tool-options legend {
  padding: 0 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.admin-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
}
.admin-check input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--brand);
}
.admin-check small {
  color: var(--muted);
  font-size: 10px;
}
.admin-invitation-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.admin-invitation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  padding: 9px;
  border-top: 1px solid var(--line);
}
.admin-invitation-row strong,
.admin-invitation-row small {
  display: block;
}
.admin-invitation-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.admin-link-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.admin-link-field label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}
.admin-link-input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  color: var(--ink);
  font: 10px "DM Mono", monospace;
}
.admin-link-input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(174, 120, 57, .2);
  outline-offset: 1px;
}
.admin-link-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-open-link {
  color: var(--brand-active);
  font-size: 11px;
  font-weight: 600;
}
.admin-link-actions button {
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
}
.admin-create-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 12px 0;
}
.admin-create-form input:nth-child(3),
.admin-create-form button {
  grid-column: 1 / -1;
}
.admin-create-form button {
  width: 100%;
}
.admin-user-list {
  display: grid;
  gap: 7px;
}
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.admin-user-main {
  min-width: 0;
}
.admin-user-row strong,
.admin-user-row small {
  display: block;
}
.admin-user-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.admin-user-actions button {
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
}
.admin-user-actions button:hover {
  border-color: var(--brand);
}
.admin-danger-button {
  color: var(--danger) !important;
}
.admin-status {
  font-weight: 600;
}
.admin-status--aktiv {
  color: var(--brand);
}
.admin-status--gesperrt {
  color: #9b6b20;
}
.admin-status--deaktiviert {
  color: var(--danger);
}
.admin-tool-editor {
  grid-column: 1 / -1;
}
.admin-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.admin-editor-actions .secondary-button {
  width: auto;
  padding: 8px 10px;
  font-size: 11px;
}
@media (max-width: 800px) {
  .hero {
    display: block;
    padding: 52px 0 42px;
  }
  .hero-note {
    margin-top: 38px;
  }
  .workspace,
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .how-it-works {
    gap: 35px;
  }
  .result-column {
    order: -1;
  }
  .photo-workspace,
  .plan-workspace,
  .floorplan-layout,
  .batch-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .plan-canvas,
  .plan-3d-view {
    grid-column: 1;
  }
  .dashboard-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-radar-preview,
  .radar-page-header,
  .radar-briefing-head {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-radar-link,
  .radar-back-link {
    width: 100%;
  }
  .radar-dates {
    text-align: left;
  }
  .radar-content-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .radar-source {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .session-bar {
    width: min(100% - 30px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-panel {
    left: 0;
    right: auto;
  }
  .admin-user-row,
  .admin-invitation-row {
    grid-template-columns: 1fr;
  }
  .admin-user-actions {
    justify-content: flex-start;
  }
  .compare-shell,
  .floorplan-label-stage {
    height: min(58vh, 520px);
    min-height: 230px;
  }
  .floorplan-distortion-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .wrap,
  .topbar {
    width: min(100% - 30px, 1180px);
  }
  .topbar-meta {
    font-size: 9px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .dashboard-link {
    padding: 7px 9px;
    font-size: 11px;
  }
  .brand strong {
    font-size: 11px;
  }
  .dashboard-page {
    padding-top: 30px;
  }
  .dashboard-tool-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 25px;
  }
  .dashboard-tool-card {
    min-height: 188px;
    padding: 19px 18px 17px;
  }
  .dashboard-radar-preview {
    margin-top: 25px;
    padding: 18px;
  }
  .radar-page {
    padding-top: 30px;
  }
  .radar-highlight-grid,
  .radar-metric-grid,
  .radar-sections {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 55px;
  }
  .style-grid {
    grid-template-columns: 1fr;
  }
  .style-choice {
    min-height: 70px;
    flex-direction: row;
    align-items: center;
  }
  .style-swatch {
    width: 79px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .empty-result {
    min-height: 450px;
  }
  .empty-result-art {
    height: 230px;
  }
  .how-steps {
    grid-template-columns: 1fr;
  }
  .batch-upload-row {
    grid-template-columns: 42px minmax(0, 1fr) 28px;
  }
  .batch-upload-row img,
  .batch-invalid-icon {
    width: 42px;
    height: 38px;
  }
  .batch-upload-row select {
    grid-column: 2 / -1;
    width: 100%;
  }
  .batch-modal-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    display: block;
  }
  .footer span {
    display: block;
    margin-top: 7px;
  }
}
/*# sourceMappingURL=app.css.map */
