* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
input, select { min-width: 0; color: var(--ink); }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid hsl(227 70% 68%); outline-offset: 3px; }
input[aria-invalid="true"] { outline: 2px solid hsl(357 48% 62%); outline-offset: -2px; }
::selection { background: hsl(224 45% 14%); }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.studio { height: 100dvh; min-height: 650px; display: flex; flex-direction: column; }
.workflow { display: flex; align-items: center; gap: 11px; margin: 0 auto; padding: 0 24px; }
.workflow-step { display: flex; align-items: center; gap: 9px; white-space: nowrap; height: 44px; padding: 0; background: transparent; color: #a6a6ab; font-size: 12px; }
.workflow-step > span { display: grid; place-items: center; width: 25px; height: 25px; background: #1b1b1e; border: 1px solid rgba(255, 255, 255, 0.08); color: #a6a6ab; border-radius: 50%; font-size: 11px; }
.workflow-step.is-current { color: var(--ink); font-weight: 500; }
.workflow-step.is-current > span { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.workflow-step.is-complete > span { color: var(--blue); border-color: hsl(226 58% 32%); background: var(--blue-wash); }
.workflow-line { width: 24px; height: 1px; background: var(--line); }

.icon-button { width: 44px; height: 44px; display: grid; place-items: center; background: #151517; border: 1px solid var(--line); border-radius: 8px; color: #c9c9cc; flex: 0 0 auto; transition: color .15s, background .15s; }
.icon-button:hover { background: #151517; color: var(--blue); }
.icon-button.is-active { color: var(--blue); background: var(--blue-wash); border-color: hsl(223 55% 32%); }
.workspace-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); flex: 1; min-height: 0; }
.mobile-preview { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sidebar { min-height: 0; display: flex; flex-direction: column; background: #151517; border-right: 1px solid var(--line); }
.controls-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #d9e1e7 transparent; flex: 1; scroll-behavior: smooth; scroll-padding-top: 22px; }
.control-section { margin: 0 25px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: 9px; align-items: center; margin-bottom: 20px; }
.section-number { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; background: #1b1b1e; color: #c9c9cc; font-size: 11px; font-weight: 500; }
.section-heading h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; letter-spacing: -.4px; }
.field-label { display: block; font-size: 11px; font-weight: 500; margin-bottom: 8px; color: #c9c9cc; }
.search-input { display: flex; height: 43px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: #151517; }
.search-input:focus-within { border-color: hsl(227 54% 32%); }
.search-input input { flex: 1; width: 100%; border: 0; background: transparent; padding: 0 0 0 13px; border-radius: 8px; font-size: 13px; }
input::placeholder { color: #a6a6ab; opacity: 1; }
.search-input button { width: 42px; flex: 0 0 42px; background: transparent; color: #a6a6ab; border-radius: 0 8px 8px 0; }
.search-input button:hover { color: var(--blue); }
.search-input .icon { width: 17px; height: 17px; }
.search-results { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.search-results button { display: block; width: 100%; padding: 11px 12px; background: #151517; text-align: left; font-size: 12px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.search-results button:last-child { border-bottom: 0; }
.search-results button:hover { color: var(--blue); background: var(--blue-wash); }
.search-results p { font-size: 12px; padding: 0 12px; line-height: 1.5; }
.place-presets { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 7px; margin: 14px 0 20px; }
.place-preset { min-height: 73px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 7px 2px; gap: 6px; border: 1px solid var(--line); border-radius: 7px; background: #151517; color: #a6a6ab; font-size: 10px; }
.place-preset svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.place-preset span { color: #c9c9cc; white-space: nowrap; }
.place-preset.is-selected { color: var(--blue); border-color: hsl(224 55% 32%); background: hsl(223 45% 14%); }
.place-preset.is-selected span { color: var(--blue-dark); }
.place-preset:hover { border-color: hsl(225 55% 32%); }
.area-tools { display: flex; gap: 8px; }
.secondary-button { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 7px; background: #151517; font-size: 12px; color: #c9c9cc; }
.secondary-button:hover { color: var(--blue); border-color: hsl(224 56% 32%); }
.secondary-button.is-active { color: var(--blue); background: var(--blue-wash); border-color: hsl(225 53% 32%); }
.secondary-button .icon { width: 17px; height: 17px; }
.area-tools .icon-button { width: 40px; height: 40px; border-radius: 7px; }
.field-hint { color: #a6a6ab; font-size: 11px; line-height: 1.55; margin: 9px 0 0; }
.dimension-row { display: grid; grid-template-columns: minmax(0, 1fr) 19px minmax(0, 1fr); gap: 7px; align-items: end; }
.area-dimensions { margin-top: 18px; }
.dimension-cross { color: #8d8d92; text-align: center; padding-bottom: 11px; font-size: 15px; }
.unit-input { display: flex; height: 39px; align-items: center; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 7px; background: #151517; overflow: hidden; }
.unit-input:focus-within { border-color: hsl(227 53% 32%); }
.unit-input input { padding: 0 0 0 12px; height: 100%; flex: 1; width: 100%; font-size: 14px; font-weight: 500; border: 0; background: transparent; font-variant-numeric: tabular-nums; appearance: textfield; }
.unit-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.unit-input > span { font-size: 11px; color: #a6a6ab; padding-right: 11px; }
.range-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin: 18px 0 10px; color: #c9c9cc; }
.range-label output { font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); background: #1b1b1e; padding: 3px 7px; border-radius: 4px; }
.range-row { display: flex; gap: 11px; align-items: center; }
input[type="range"] { width: 100%; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.icon-button.small { width: 27px; height: 27px; border: 0; color: #a6a6ab; }
.icon-button.small .icon { width: 15px; height: 15px; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 47px; padding: 0 14px; background: var(--blue); color: var(--on-fill); border-radius: 8px; font-size: 12px; font-weight: 500; transition: background .15s; }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled { background: #1b1b1e; color: #8d8d92; }
.primary-button .icon { width: 18px; height: 18px; }
.generate-button { margin-top: 21px; justify-content: flex-start; }
.button-end { margin-left: auto; }
.source-hint { margin: 10px 0 0; font-size: 10px; color: #a6a6ab; text-align: center; }
.generation-progress { margin-top: 12px; }
.progress-track, .loading-track { height: 4px; border-radius: 4px; background: #1b1b1e; overflow: hidden; }
.progress-track > div, .loading-track > span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.generation-progress > div:last-child { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; font-size: 11px; line-height: 1.4; color: #a6a6ab; }
.generation-progress button { margin-left: auto; background: transparent; color: var(--blue); font-size: 11px; padding: 0; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
.setting-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #c9c9cc; margin: -4px 0 12px; }
.text-icon-button { display: flex; align-items: center; gap: 5px; background: transparent; color: #a6a6ab; font-size: 10px; padding: 0; min-height: 28px; }
.text-icon-button .icon { width: 14px; height: 14px; }
.text-icon-button.is-active { color: var(--blue); }
.size-presets { display: flex; gap: 7px; margin-top: 9px; }
.size-presets button { background: #1b1b1e; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 5px; flex: 1; font-size: 10px; padding: 6px 0; color: #a6a6ab; }
.size-presets button:hover, .size-presets button.is-selected { color: var(--blue); background: hsl(223 45% 14%); border-color: hsl(221 53% 32%); }
.setting-space { margin-top: 18px; }
.segmented { display: flex; border: 1px solid var(--line); background: #151517; padding: 3px; border-radius: 7px; gap: 2px; }
.segmented button { background: transparent; flex: 1; color: #a6a6ab; border-radius: 4px; padding: 8px 0; font-size: 11px; white-space: nowrap; }
.segmented button.is-selected { color: var(--blue-dark); background: #151517; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.feature-list { margin: 15px 0 17px; }
.feature-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 36px; position: relative; cursor: pointer; font-size: 12px; }
.feature-toggle small { margin-left: 5px; color: #a6a6ab; font-size: 10px; }
.feature-toggle input { position: absolute; right: 0; opacity: 0; width: 36px; height: 24px; margin: 0; }
.switch { width: 30px; height: 17px; background: #2a2a2d; border-radius: 10px; padding: 3px; position: relative; pointer-events: none; transition: background .15s; }
.switch::before { content: ''; width: 11px; height: 11px; background: #151517; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); display: block; border-radius: 50%; transition: transform .15s; }
.feature-toggle input:checked + .switch { background: var(--blue); }
.feature-toggle input:checked + .switch::before { transform: translateX(13px); }
.feature-toggle input:focus-visible + .switch { outline: 3px solid hsl(227 55% 32%); outline-offset: 3px; }
.feature-toggle:has(input:disabled) { opacity: .5; cursor: default; }
.elevation-toggle { font-weight: 500; }
.elevation-toggle small { font-weight: 400; }
.elevation-toggle + .field-hint { margin-top: 2px; }
.elevation-options { margin-top: 10px; padding: 10px; border-left: 2px solid hsl(221 35% 32%); background: #151517; border-radius: 0 6px 6px 0; }
.elevation-options .range-label { margin-top: 13px; }
.elevation-summary { margin: 9px 0 0; color: #c9c9cc; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.extra-details { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.details-master { font-weight: 500; }
.details-master small { font-weight: 400; }
.detail-options { margin: 5px 0 3px; padding: 5px 10px 9px; border-left: 2px solid rgba(255, 255, 255, 0.16); background: #1b1b1e; border-radius: 0 6px 6px 0; }
.detail-options .feature-toggle { gap: 8px; min-height: 44px; }
.detail-options .feature-toggle > span:first-child { min-width: 0; }
.detail-options .switch { flex-shrink: 0; }
.detail-count { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: #2a2a2d; color: #c9c9cc; font-size: 10px; font-variant-numeric: tabular-nums; }
.detail-options .field-hint { margin: 5px 0; font-size: 10px; }
.detail-summary { margin: 9px 0 0; color: #c9c9cc; font-size: 10px; line-height: 1.5; }
.detailed-buildings-option { margin: 0 0 10px 12px; }
.detailed-buildings-option:has(input:disabled) { opacity: .55; }
.detailed-structure-summary { margin: 7px 0 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
.detailed-structure-marker-icon { background: transparent; border: 0; pointer-events: auto; }
.detailed-structure-marker { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--ink); border-radius: 50%; background: #151517; color: var(--ink); }
.detailed-structure-marker .icon { width: 12px; height: 12px; }
.appearance { padding-top: 15px; border-top: 1px solid var(--line); }
.appearance summary { display: flex; align-items: center; justify-content: space-between; list-style: none; font-size: 12px; color: #c9c9cc; }
.appearance summary::-webkit-details-marker { display: none; }
.chevron { width: 14px; height: 14px; fill: none; stroke: #a6a6ab; stroke-width: 1.4; }
.appearance[open] .chevron { transform: rotate(180deg); }
.palettes { display: flex; gap: 8px; margin: 13px 0 12px; }
.palette { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; background: #151517; padding: 8px 6px; color: #a6a6ab; font-size: 10px; }
.palette.is-selected { border-color: hsl(225 57% 32%); color: var(--blue); background: hsl(227 45% 14%); }
.palette-sample { width: 19px; height: 19px; border-radius: 50%; border: 1px solid #263b4512; background: var(--color); }
.color-inputs { display: flex; gap: 22px; }
.color-inputs label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #a6a6ab; cursor: pointer; }
.color-inputs input { width: 22px; height: 22px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 5px; overflow: hidden; background: transparent; cursor: pointer; }
.color-inputs input::-webkit-color-swatch-wrapper { padding: 2px; }
.color-inputs input::-webkit-color-swatch { border: 0; border-radius: 2px; }
.title-label { display: block; margin-top: 20px; }
.optional { color: #a6a6ab; font-weight: 400; margin-left: 3px; }
.title-label > input { width: 100%; height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: #151517; font-size: 11px; }
.print-section { border-bottom: 0; padding-bottom: 25px; }
select { width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 7px; background: #151517; font-size: 11px; padding: 0 9px; }
.custom-printer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 13px 0; }
.custom-printer label { font-size: 10px; color: #a6a6ab; }
.custom-printer .unit-input { margin-top: 6px; }
.custom-printer input { padding-left: 7px; font-size: 12px; }
.custom-printer .unit-input > span { padding-right: 6px; font-size: 10px; }
.fit-notice { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0; padding: 12px; border-radius: 7px; background: #1b1b1e; color: #a6a6ab; }
.fit-notice .icon { width: 17px; height: 17px; margin-top: 1px; }
.fit-notice strong { font-size: 11px; font-weight: 500; }
.fit-notice p { font-size: 10px; line-height: 1.55; margin: 4px 0 0; }
.fit-notice.is-warning { background: var(--warning-wash); color: var(--warning); }
.fit-notice.is-success { background: #1b1b1e; color: var(--success); }
.split-option { display: flex; gap: 7px; align-items: center; font-size: 11px; margin: 0 0 17px; }
.split-option input { accent-color: var(--blue); }
.detail-notice { font-size: 11px; line-height: 1.6; color: hsl(38 50% 72%); padding: 10px 12px; border: 1px solid hsl(39 30% 32%); border-radius: 6px; margin-bottom: 14px; }
.detail-notice p { margin: 0; }
.data-notices { margin-top: 15px; padding: 10px 12px; border-radius: 6px; font-size: 11px; background: #1b1b1e; color: hsl(37 50% 72%); line-height: 1.6; }
.data-notices p { margin: 0 0 7px; }
.data-notices p:last-child { margin-bottom: 0; }
.export-footer { flex: 0 0 auto; padding: 15px 25px 12px; background: #151517; border-top: 1px solid var(--line); box-shadow: 0 -7px 18px rgba(0, 0, 0, 0.16); }
.export-summary { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 11px; font-size: 11px; color: #a6a6ab; font-variant-numeric: tabular-nums; }
.export-summary span:last-child { color: #a6a6ab; font-size: 10px; }
.export-footer > p:not(.app-status) { text-align: center; font-size: 10px; margin: 8px 0 0; color: #a6a6ab; }
.app-status { margin: 7px 0 0; font-size: 11px; line-height: 1.45; color: #a6a6ab; }
.app-status:empty { display: none; }
.app-status.is-error { color: hsl(2 43% 72%); }
.workspace { padding: 29px 32px 0; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; gap: 20px; }
.place-context { font-size: 11px; color: #a6a6ab; margin-bottom: 6px; }
.workspace-heading h1 { font-family: var(--display); font-size: clamp(25px, 2.5vw, 33px); font-weight: 500; letter-spacing: -1.3px; line-height: 1.15; margin: 0; }
.view-tabs { display: flex; align-items: center; padding: 4px; background: #1b1b1e; border-radius: 9px; flex-shrink: 0; }
.view-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: #a6a6ab; height: 35px; padding: 0 13px; font-size: 11px; border-radius: 6px; }
.view-tabs button.is-selected { background: #151517; color: hsl(206 33% 72%); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); }
.view-tabs button:disabled { opacity: .45; }
.view-tabs .icon { width: 16px; height: 16px; }
.stage { position: relative; min-height: 360px; flex: 1; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; overflow: hidden; background: #1b1b1e; }
.map-view, .model-view, #map, #model-canvas { position: absolute; inset: 0; }
#map { z-index: 0; }
.model-view { background: #1b1b1e; }
#model-canvas > canvas { display: block; }
.map-top-note, .model-top-note { position: absolute; display: flex; align-items: center; gap: 8px; top: 19px; left: 20px; z-index: 3; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 7px; background: color-mix(in srgb, #151517 93%, transparent); color: #c9c9cc; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07); font-size: 11px; pointer-events: none; }
.selection-dot, .model-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--blue); border-radius: 50%; }
.model-dot { background: #3a3a3e; }
.model-top-note #geometry-label { padding-left: 10px; margin-left: 3px; border-left: 1px solid rgba(255, 255, 255, 0.08); color: #a6a6ab; font-size: 10px; }
.map-navigation { position: absolute; display: flex; flex-direction: column; z-index: 3; top: 18px; right: 18px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 2px; background: #151517; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1); }
.map-navigation .icon-button { width: 35px; height: 35px; border: 0; border-radius: 5px; font-size: 21px; font-weight: 400; }
.map-navigation .icon { width: 17px; height: 17px; }
.map-navigation > span { height: 1px; background: var(--line); margin: 2px 5px; }
.north-marker { position: absolute; right: 25px; bottom: 71px; display: flex; flex-direction: column; align-items: center; z-index: 3; pointer-events: none; }
.north-marker > span { font-size: 10px; color: #a6a6ab; }
.north-marker svg { width: 19px; height: 26px; fill: color-mix(in srgb, #ededeb 87%, transparent); stroke: #a6a6ab; stroke-width: 1; margin-top: 3px; }
.map-bottom-note { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 7px; background: color-mix(in srgb, #151517 95%, transparent); box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07); z-index: 3; font-size: 11px; color: #c9c9cc; pointer-events: none; font-variant-numeric: tabular-nums; }
.map-bottom-note .icon { width: 15px; height: 15px; color: var(--blue); }
.note-divider { width: 1px; height: 13px; background: #2a2a2d; margin: 0 2px; }
#area-coordinates { color: #a6a6ab; font-size: 10px; }
.leaflet-control-attribution { font: 10px var(--body) !important; background: color-mix(in srgb, #151517 86%, transparent) !important; }
.leaflet-control-attribution a { color: #c9c9cc; }
.leaflet-container { font-family: var(--body); }
.leaflet-tile-pane { filter: saturate(0.7); }
.selection-corner { background: transparent; border: 0; }
.selection-measure { pointer-events: none; }
.selection-measure-width .selection-label { display: inline-block; transform: translate(-50%, calc(-100% - 14px)); }
.selection-measure-depth .selection-label { display: inline-block; transform: translate(calc(-100% - 14px), -50%); }
.selection-handle { width: 44px; height: 44px; background: transparent; cursor: nwse-resize; display: grid; place-items: center; border: 0; }
.selection-handle::after { content: ''; display: block; width: 11px; height: 11px; background: #151517; border: 2px solid var(--blue); border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.31); }
.selection-handle:focus-visible { outline: 2px solid var(--blue); border-radius: 5px; }
.selection-label { font: 500 10px var(--body); color: var(--blue-dark); background: color-mix(in srgb, #151517 93%, transparent); border: 1px solid hsl(224 55% 32%); border-radius: 5px; padding: 5px 8px; pointer-events: none; white-space: nowrap; }
.map-error { position: absolute; left: 20px; right: 20px; top: 70px; padding: 12px; background: #151517; border: 1px solid hsl(26 33% 32%); border-radius: 8px; color: hsl(38 48% 72%); font-size: 12px; z-index: 3; }
.model-actions { position: absolute; top: 20px; right: 20px; display: flex; gap: 5px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: color-mix(in srgb, #151517 87%, transparent); z-index: 3; }
.model-actions .icon-button { border: 0; width: 32px; height: 32px; border-radius: 5px; background: transparent; }
.model-actions .icon-button.is-active { background: var(--blue-wash); color: var(--blue); }
.model-actions .icon { width: 17px; height: 17px; }
.model-dimension { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; color: #a6a6ab; font-size: 11px; pointer-events: none; font-variant-numeric: tabular-nums; }
.model-dimension strong { font-weight: 400; }
.model-dimension > span { width: 57px; height: 1px; background: #2a2a2d; position: relative; }
.model-dimension > span::after { content: ''; position: absolute; width: 1px; height: 5px; background: #2a2a2d; top: -2px; }
.model-dimension > span:first-child::after { left: 0; }
.model-dimension > span:last-child::after { right: 0; }
.model-dimension-width { left: 50%; bottom: 88px; transform: translateX(-50%); }
.model-dimension-depth { left: 36px; top: 50%; transform: translate(-25%, -50%) rotate(-90deg); }
.model-help { position: absolute; bottom: 20px; left: 20px; display: flex; gap: 14px; font-size: 10px; color: #a6a6ab; pointer-events: none; }
.model-help span:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.08); padding-right: 14px; }
.model-scale-note { position: absolute; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 6px; color: #a6a6ab; font-size: 10px; pointer-events: none; }
.model-scale-note .icon { width: 13px; height: 13px; }
.stale-notice { position: absolute; z-index: 5; bottom: 52px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 40px); width: max-content; padding: 11px 15px; border: 1px solid hsl(36 26% 32%); border-radius: 8px; background: hsl(39 35% 14%); color: hsl(37 47% 72%); font-size: 12px; text-align: center; }
.stage-loading { position: absolute; inset: 0; background: color-mix(in srgb, #1b1b1e 66%, transparent); z-index: 6; display: grid; place-items: center; backdrop-filter: blur(4px); }
.loading-card { max-width: calc(100% - 48px); width: 320px; padding: 32px 27px 28px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.08); background: color-mix(in srgb, #151517 98%, transparent); box-shadow: 0 12px 60px rgba(0, 0, 0, 0.2); text-align: center; }
.loading-cube { display: block; width: 42px; height: 42px; fill: hsl(225 75% 97%); stroke: var(--blue); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 18px; }
.loading-card strong { font: 500 16px var(--display); letter-spacing: -.3px; }
.loading-card p { margin: 10px 0 20px; color: #a6a6ab; font-size: 12px; line-height: 1.5; }
.workspace-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 74px; flex: 0 0 auto; gap: 18px; }
.workspace-tip { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #a6a6ab; }
.workspace-tip .icon { width: 15px; height: 15px; }
.data-credit { font-size: 10px; color: #a6a6ab; display: flex; align-items: center; gap: 5px; text-decoration: none; }
.data-credit:hover { color: var(--blue); }
.data-credit svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.model-stats { display: flex; align-items: center; gap: 30px; }
.model-stats > div { display: flex; align-items: baseline; gap: 7px; }
.model-stats strong { font-size: 15px; color: #c9c9cc; font-weight: 500; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.model-stats span { font-size: 10px; color: #a6a6ab; }
.field-hint, .source-hint, .optional, .color-inputs label, .feature-toggle small,
.export-summary, .export-summary span:last-child, .export-footer > p:not(.app-status),
.place-context, .workspace-tip, .data-credit, .model-stats span, .model-help,
.model-scale-note, #area-coordinates, .model-top-note #geometry-label { color: #c9c9cc; }
input::placeholder { color: #a6a6ab; }
dialog { color: var(--ink); font-family: var(--body); width: min(530px, calc(100vw - 36px)); max-height: calc(100dvh - 50px); padding: 26px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; box-shadow: 0 20px 100px rgba(0, 0, 0, 0.37); }
dialog::backdrop { background: #263e5359; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dialog-heading h2 { font: 500 24px var(--display); letter-spacing: -.7px; margin: 0; }
.dialog-heading .icon-button { border: 0; }
dialog p { font-size: 13px; line-height: 1.7; color: #a6a6ab; }
dialog h3 { font-size: 14px; font-weight: 500; margin: 24px 0 6px; }
dialog a { color: var(--blue); }
.dialog-note { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 0; font-size: 11px; }
.noscript { position: fixed; top: 85px; left: 10px; right: 10px; background: #151517; padding: 20px; z-index: 100; }
@media (min-width: 1650px) { .workspace-layout { grid-template-columns: 365px minmax(0, 1fr); } .workspace { padding: 36px 44px 0; } .control-section { margin: 0 30px; } .export-footer { padding-left: 30px; padding-right: 30px; } .stage { max-width: 1600px; } }
@media (max-width: 1150px) { .workflow { gap: 8px; padding: 0 10px; } .workflow-step { font-size: 10px; gap: 6px; } .workflow-line { width: 15px; }  .workspace { padding: 27px 23px 0; } .model-scale-note { display: none; } .model-stats { gap: 18px; } .data-credit { max-width: 110px; line-height: 1.5; } }
@media (max-width: 950px) { .workflow-step { font-size: 0; gap: 0; } .workflow-step > span { font-size: 11px; } .workflow { gap: 10px; } .workspace-layout { grid-template-columns: 310px minmax(0, 1fr); } .control-section { margin: 0 20px; } .export-footer { padding-left: 20px; padding-right: 20px; } .workspace { padding: 23px 18px 0; } .workspace-heading { gap: 12px; } .workspace-heading h1 { font-size: 26px; } .view-tabs button { font-size: 0; padding: 0 10px; gap: 0; } .model-top-note #geometry-label { display: none; } .map-top-note, .model-top-note { left: 14px; top: 14px; } .map-navigation { right: 14px; top: 14px; } .model-actions { top: 14px; right: 14px; } .map-bottom-note { left: 12px; bottom: 20px; gap: 6px; padding: 8px 10px; } #area-coordinates, .note-divider { display: none; } .model-stats > div { display: flex; flex-direction: column; gap: 3px; } .workspace-tip { line-height: 1.5; } .model-help { left: 14px; gap: 7px; font-size: 9px; } .model-help span:not(:last-child) { padding-right: 7px; } .model-dimension-depth { left: 14px; } .model-dimension > span { width: 32px; } }
@media (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) { .studio { height: auto; min-height: 100dvh; }      .workflow { display: none; }  .workspace-layout { display: flex; flex-direction: column; } .workspace { order: 0; min-height: 530px; padding: 23px 16px 0; } .workspace-heading { margin-bottom: 17px; } .workspace-heading h1 { font-size: 27px; } .view-tabs button { font-size: 10px; gap: 6px; padding: 0 10px; } .stage { min-height: 390px; } .workspace-bottom { min-height: 65px; } .data-credit { font-size: 9px; max-width: 125px; } .workspace-tip { max-width: 205px; font-size: 10px; } .sidebar { order: 1; border-right: 0; border-top: 1px solid var(--line); display: block; } .controls-scroll { overflow: visible; display: grid; grid-template-columns: 1fr 1fr; } .control-section { margin: 0; padding: 26px 20px; border-bottom: 1px solid var(--line); } #customize-section { border-left: 1px solid var(--line); } .print-section { grid-column: 1 / -1; border-bottom: 0; } .export-footer { position: sticky; bottom: 0; z-index: 10; padding: 13px 20px max(12px, env(safe-area-inset-bottom)); } .place-presets { grid-template-columns: 1fr; gap: 5px; } .place-preset { flex-direction: row; min-height: 40px; justify-content: flex-start; padding: 6px 12px; gap: 9px; } .place-preset svg { width: 24px; height: 24px; } .place-preset span { font-size: 11px; } .palettes { flex-direction: column; gap: 6px; } .palette { justify-content: flex-start; padding-left: 15px; } .color-inputs { flex-direction: column; gap: 9px; } .area-tools { gap: 5px; } .area-tools .secondary-button { font-size: 10px; gap: 5px; } .area-tools .icon-button { width: 34px; } .segmented { flex-wrap: wrap; } .segmented button { min-width: 42px; font-size: 10px; } .model-dimension-width { bottom: 66px; } }
@media (max-width: 480px) { .workspace { min-height: 488px; } .stage { min-height: 346px; } .workspace-heading h1 { font-size: 24px; letter-spacing: -.9px; } .place-context { font-size: 10px; } .view-tabs button { font-size: 0; gap: 0; padding: 0 11px; height: 33px; } .view-tabs .icon { width: 17px; height: 17px; } .controls-scroll { display: block; } .control-section { padding: 27px 23px; } #customize-section { border-left: 0; } .place-presets { grid-template-columns: 1.15fr .85fr 1fr; gap: 7px; } .place-preset { flex-direction: column; justify-content: center; padding: 8px 2px; min-height: 74px; gap: 6px; } .place-preset span { font-size: 10px; } .palettes { flex-direction: row; } .palette { justify-content: center; padding: 8px 6px; } .color-inputs { flex-direction: row; gap: 25px; } .segmented { flex-wrap: nowrap; } .area-tools .secondary-button { font-size: 12px; } .area-tools .icon-button { width: 40px; } .export-footer { padding: 13px 23px max(13px, env(safe-area-inset-bottom)); } .export-summary { font-size: 11px; } .workspace-tip { max-width: 160px; font-size: 10px; } .workspace-bottom { gap: 10px; } .model-actions { padding: 2px; } .model-actions .icon-button { width: 28px; height: 30px; } .model-top-note { font-size: 10px; padding: 8px 10px; } .model-help { font-size: 8px; } .model-help span:last-child { display: none; } .model-help span:nth-child(2) { border: 0; } .model-stats { gap: 14px; } .model-stats strong { font-size: 13px; } .model-stats span { font-size: 9px; } .stale-notice { bottom: 45px; font-size: 11px; padding: 9px 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .map-navigation .icon-button, .model-actions .icon-button, .area-tools .icon-button,
  .icon-button.small { min-width: 44px; min-height: 44px; }
  .unit-input, .title-label > input, select { height: 44px; }
  .size-presets button, .segmented button, .palette, .text-icon-button,
  .appearance summary, .feature-toggle, .secondary-button, .view-tabs button { min-height: 44px; }
  .search-input { height: 46px; }
  .search-input button { min-width: 44px; }
  input[type="range"] { height: 44px; }
  .model-help { font-size: 10px; }
  .color-inputs label { min-height: 44px; }
  .color-inputs input { width: 32px; height: 32px; }
}

/* Dark workshop layout: map and model on the left, settings on the right.
   The 3D model keeps its real resin color; only the stage around it is dark. */
.helsinki-page .studio { height: calc(100dvh - 24px); min-height: 626px; }
.helsinki-page .workspace-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; }
.helsinki-page :is(.sidebar, .workspace) { border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
.helsinki-page .sidebar { order: 2; }
.helsinki-page #size-hint { color: var(--muted); font-size: 12px; }
.helsinki-page .workflow { display: flex; margin: 14px 14px 4px; padding: 4px; gap: 4px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: var(--field); }
.helsinki-page .workflow-step { flex: 1; justify-content: center; height: 32px; gap: 7px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 500; }
.helsinki-page .workflow-step:hover { color: var(--ink); }
.helsinki-page .workflow-step.is-current { background: var(--selected); color: #f4f4f2; }
.helsinki-page .workflow-step > span { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: inherit; font: 500 10px var(--mono); }
.helsinki-page .workflow-step.is-current > span { border-color: var(--lime); background: var(--lime); color: var(--on-fill); }
.helsinki-page .workflow-step.is-complete > span { border-color: var(--lime-line); background: var(--lime-wash); color: var(--lime); }
.helsinki-page .workflow-line { display: none; }
.helsinki-page .control-section { margin-inline: 18px; padding-block: 18px; }
.helsinki-page .section-heading { margin-bottom: 14px; gap: 10px; }
.helsinki-page .section-heading h2 { font: 600 15px/1.25 var(--body); letter-spacing: 0; }
.helsinki-page .section-number { width: auto; height: auto; flex-basis: auto; padding: 0; background: none; color: var(--lime); font: 500 11px var(--mono); }
.helsinki-page :is(.field-label, .range-label, .setting-title, .appearance summary) { color: var(--muted); font-size: 12px; }
.helsinki-page :is(.search-input, .unit-input, .title-label > input, select) { height: 38px; border-color: rgba(255, 255, 255, .08); border-radius: var(--radius-control); background: var(--field); }
.helsinki-page .search-input:focus-within, .helsinki-page .unit-input:focus-within { border-color: var(--lime-line); }
.helsinki-page .search-input button { border-radius: 0 var(--radius-control) var(--radius-control) 0; background: var(--raised); color: var(--ink); }
.helsinki-page .search-results { border-radius: 12px; background: #1b1b1e; }
.helsinki-page .search-results button { background: transparent; }
.helsinki-page :is(.place-preset, .palette) { border-color: rgba(255, 255, 255, .06); background: #1b1b1e; color: var(--muted); }
.helsinki-page .place-preset { border-radius: 12px; }
.helsinki-page .place-preset span { color: var(--ink); }
.helsinki-page :is(.place-preset, .palette).is-selected { border-color: var(--lime-line); background: var(--lime-wash); color: var(--lime); }
.helsinki-page .place-preset.is-selected span { color: var(--ink); }
.helsinki-page .palette { height: 36px; border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 500; }
.helsinki-page .secondary-button { height: 36px; border-radius: var(--radius-control); font-size: 13px; font-weight: 500; }
.helsinki-page .secondary-button.is-active { border-color: var(--lime-line); background: var(--lime-wash); color: var(--lime); }
.helsinki-page .icon-button { border-color: rgba(255, 255, 255, .07); border-radius: var(--radius-control); background: var(--raised); color: var(--ink); }
.helsinki-page .icon-button:hover { background: var(--selected); color: var(--ink); }
.helsinki-page .icon-button.is-active { border-color: var(--lime-line); background: var(--lime-wash); color: var(--lime); }
.helsinki-page .icon-button.small { border: 0; border-radius: 999px; }
.helsinki-page .range-label output { padding: 0; background: none; color: var(--lime); font: 500 12px var(--mono); }
.helsinki-page .primary-button { height: 44px; border-radius: 12px; font-size: 14px; }
.helsinki-page .size-presets button { height: 32px; padding: 0; border-color: rgba(255, 255, 255, .07); border-radius: 999px; background: #1c1c1f; color: #a6a6ab; font: 500 12px var(--mono); }
.helsinki-page .segmented { padding: 4px; gap: 4px; border-color: rgba(255, 255, 255, .06); border-radius: 12px; background: var(--field); }
.helsinki-page .segmented button { border-radius: 9px; font-size: 12px; font-weight: 500; }
.helsinki-page .feature-toggle { min-height: 38px; font-size: 13px; }
.helsinki-page .switch { width: 34px; height: 20px; padding: 2px; background: var(--selected); }
.helsinki-page .switch::before { width: 16px; height: 16px; background: var(--faint); box-shadow: none; }
.helsinki-page .feature-toggle input:checked + .switch { background: var(--lime); }
.helsinki-page .feature-toggle input:checked + .switch::before { background: var(--on-fill); transform: translateX(14px); }
.helsinki-page :is(.elevation-options, .detail-options) { border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: var(--field); }
.helsinki-page .detail-count { border-radius: 999px; background: var(--raised); color: var(--ink); }
.helsinki-page :is(.elevation-summary, .detail-summary) { color: var(--muted); }
.helsinki-page .fit-notice { border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: var(--raised); color: var(--muted); }
.helsinki-page .fit-notice.is-success { border-color: rgba(124, 209, 124, .3); background: rgba(124, 209, 124, .08); color: var(--success); }
.helsinki-page .fit-notice.is-warning { border-color: rgba(217, 164, 65, .35); background: rgba(217, 164, 65, .08); color: var(--warning); }
.helsinki-page :is(.detail-notice, .data-notices) { border-radius: 12px; }
.helsinki-page .export-footer { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.helsinki-page .export-footer :is(.export-summary, p, .export-summary span:last-child) { color: var(--muted); }
.helsinki-page .export-footer .app-status.is-error { color: var(--danger); }
.helsinki-page .workspace { padding: 0; }
.helsinki-page .workspace-heading { margin: 0; padding: 14px 18px; }
.helsinki-page .workspace-heading > div:first-child { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.helsinki-page .workspace-heading h1 { order: -1; font: 600 15px/1.2 var(--body); letter-spacing: 0; text-transform: none; }
.helsinki-page .place-context { margin: 0; color: var(--faint); font-size: 12px; }
.helsinki-page .view-tabs { gap: 3px; padding: 3px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: var(--field); }
.helsinki-page .view-tabs button { height: 30px; min-height: 0; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500; }
.helsinki-page .view-tabs button.is-selected { background: var(--selected); color: #f4f4f2; box-shadow: none; }
.helsinki-page .stage { margin: 0 10px; border: 0; border-radius: var(--radius-inner); background: var(--scene); }
.helsinki-page .model-view { background: var(--scene); }
.helsinki-page :is(.map-top-note, .model-top-note, .map-bottom-note, .map-navigation, .model-actions, .selection-label, .map-error) { border: 1px solid rgba(255, 255, 255, .08); background: rgba(20, 20, 22, .82); color: #c9c9cc; box-shadow: none; backdrop-filter: blur(8px); }
.helsinki-page :is(.map-top-note, .model-top-note, .map-bottom-note) { border-radius: 999px; }
.helsinki-page :is(.map-navigation, .model-actions) { border-radius: 12px; }
.helsinki-page :is(.map-navigation, .model-actions) .icon-button { border: 0; background: transparent; }
.helsinki-page .selection-label { border-radius: 6px; font-family: var(--mono); }
.helsinki-page .selection-dot { background: var(--lime); }
.helsinki-page .stale-notice { border-color: rgba(217, 164, 65, .4); border-radius: 999px; background: rgba(40, 32, 14, .92); color: #f3d48a; }
.helsinki-page .stage-loading { background: rgba(10, 10, 11, .7); }
.helsinki-page .loading-card { border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: #18181b; box-shadow: none; }
.helsinki-page .workspace-bottom { min-height: 48px; padding: 0 18px; }
.helsinki-page dialog { border-radius: 22px; background: #18181b; font-family: var(--body); }
.helsinki-page dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.helsinki-page .dialog-heading h2 { font: 600 18px var(--body); letter-spacing: 0; }
.helsinki-page .dialog-heading .icon-button { border-radius: 999px; }
@media (max-width: 950px) and (min-width: 861px) {
  .helsinki-page .workspace-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .helsinki-page .studio { height: auto; min-height: 0; }
  .helsinki-page .workspace-layout { display: flex; gap: 8px; }
  .helsinki-page .workflow { display: flex; }
  .helsinki-page .workflow-step { min-height: 44px; }
  .helsinki-page .control-section { margin: 0; }
  .helsinki-page .export-footer { margin: 0; padding: 18px 23px; }
}

/* Keep the map/model above the settings while the page scrolls. */
@media screen and (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .helsinki-page .workspace { display: contents; }
  .helsinki-page .mobile-preview { position: sticky; top: 0; z-index: 20; flex: none; width: 100%; padding: 0 0 8px; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-panel); background: var(--surface); }
  .helsinki-page .workspace-heading { padding: 10px 12px; }
  .helsinki-page .stage { margin: 0 8px; }
  .helsinki-page .workspace-heading { gap: 8px; }
  .helsinki-page .workspace-heading > div:first-child { min-width: 0; }
  .helsinki-page .workspace-heading h1 { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .helsinki-page .place-context { display: none; }
  .helsinki-page .view-tabs button { height: 38px; min-width: 44px; padding-inline: 10px; font-size: 12px; gap: 5px; }
  .helsinki-page .stage { flex: none; height: min(34svh, 320px); min-height: 0; }
  .helsinki-page .map-navigation { flex-direction: row; top: 8px; right: 8px; padding: 0; }
  .helsinki-page .map-navigation > span { display: none; }
  .helsinki-page .model-actions { top: 8px; right: 8px; padding: 0; gap: 0; }
  .helsinki-page :is(.map-navigation, .model-actions) .icon-button { width: 44px; height: 44px; }
  .helsinki-page :is(.map-top-note, .map-bottom-note, .north-marker, .selection-measure,
    .model-top-note, .model-dimension, .model-help, .model-scale-note) { display: none; }
  .helsinki-page .workspace-layout:has(#draw-button[aria-pressed="true"]) .map-top-note { display: flex; top: 60px; left: 8px; max-width: calc(100% - 16px); padding: 8px; }
  .helsinki-page .stale-notice { bottom: 8px; max-width: calc(100% - 16px); padding: 8px; }
  .helsinki-page .loading-card { max-height: calc(100% - 16px); padding: 12px; overflow-y: auto; }
  .helsinki-page .workspace-bottom { padding-inline: 16px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; background: var(--surface); }
  .helsinki-page .export-footer { position: static; }
  .helsinki-page .control-section { scroll-margin-top: calc(min(34svh, 320px) + 100px); }
}

@media screen and (max-width: 360px) {
  .helsinki-page .view-tabs button { font-size: 0; gap: 0; padding-inline: 12px; }
}

@media screen and (max-width: 960px) and (max-height: 500px) {
  .helsinki-page .mobile-preview { position: static; }
  .helsinki-page .stage { height: 240px; }
  .helsinki-page .control-section { scroll-margin-top: 16px; }
}
