* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); font-family: var(--body); background: var(--wash); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; height: 100vh; display: flex; flex-direction: column; }
.view-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--laser); margin-right: 6px; }

.app-layout { display: grid; grid-template-columns: 326px minmax(0, 1fr); min-height: 0; flex: 1; }
.controls { background: #151517; border-right: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; }
.controls-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-color: #c2cfd1 transparent; padding: 12px 27px 16px; }
.export-area { flex: none; padding: 0 27px 16px; }
.eyebrow { font: 600 10px/1.2 var(--mono); letter-spacing: .14em; color: var(--muted); }
.control-section { padding-top: 15px; padding-bottom: 17px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 12px; }
.step-index { font: 500 10px/1 var(--mono); color: var(--laser); letter-spacing: .03em; }
.section-heading h2 { font: 600 18px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.search-form { display: flex; height: 42px; border: 1px solid rgba(255, 255, 255, 0.16); background: #151517; transition: border-color .2s; }
.search-form:focus-within { border-color: var(--ink); }
.search-form input { width: 100%; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.search-form input::placeholder { color: #8d8d92; }
.search-form button { width: 45px; flex: none; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: #151517; display: grid; place-items: center; }
.search-form button:hover { background: #1b1b1e; }
.search-form svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-results { margin-top: 7px; border: 1px solid var(--line); background: #151517; max-height: 230px; overflow-y: auto; box-shadow: 0 12px 25px rgba(0, 0, 0, 0.21); }
.search-results button { display: block; width: 100%; padding: 10px 12px; text-align: left; background: #151517; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--ink); }
.search-results button:hover, .search-results button:focus-visible { background: #1b1b1e; }
.search-results button strong { display: block; font-size: 13px; font-weight: 600; }
.search-results button small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .result-message { font-size: 12px; padding: 12px; color: var(--muted); }
.city-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.city-pick { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; min-width: 0; border: 1px solid var(--line); background: #151517; color: var(--ink); font-size: 12px; text-align: left; }
.city-pick:hover { border-color: rgba(255, 255, 255, 0.16); }
.city-pick.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.city-pick small { color: #8d8d92; font: 500 10px var(--mono); margin-left: 4px; }
.setting-label { margin: 0 0 7px; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.segmented { display: flex; gap: 5px; margin-bottom: 14px; }
.segmented button { flex: 1; min-width: 0; height: 37px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #151517; color: var(--muted); font-size: 11px; }
.segmented button:hover { border-color: rgba(255, 255, 255, 0.16); color: var(--ink); }
.segmented button.is-selected { border-color: var(--ink); background: #1b1b1e; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 600; }
.shape-icon { width: 16px; height: 12px; border: 1.5px solid currentColor; }
.shape-round { width: 13px; height: 13px; border-radius: 50%; }
.size-inputs { display: flex; align-items: flex-end; gap: 7px; }
.size-inputs.is-round .size-cross, .size-inputs.is-round #board-height-label { display: none; }
.size-inputs label { flex: 1; min-width: 0; font: 500 10px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.number-input { display: flex; align-items: center; height: 43px; margin-top: 7px; padding-right: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: #151517; color: var(--muted); }
.number-input:focus-within { border-color: var(--ink); }
.number-input input { width: 100%; min-width: 0; height: 100%; padding-left: 11px; border: 0; background: transparent; color: var(--ink); font: 500 17px var(--mono); outline: 0; }
.number-input span { font: 500 10px var(--mono); }
.size-cross { padding: 0 2px 11px; font-size: 17px; color: #a6a6ab; }
.size-presets { display: flex; gap: 5px; margin-top: 8px; }
.size-presets button { flex: 1; border: 1px solid var(--line); background: #151517; padding: 7px 4px; color: var(--muted); font: 500 9px var(--mono); white-space: nowrap; }
.size-presets button:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.16); }
.size-presets button.is-selected { background: var(--ink); border-color: var(--ink); color: var(--on-fill); }
.linework-section { padding-bottom: 12px; }
.artwork-setting { margin-bottom: 14px; }
.artwork-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.artwork-style { min-width: 0; padding: 9px 12px 10px; border: 1px solid var(--line); background: #151517; color: var(--ink); text-align: left; }
.artwork-style svg { display: block; width: 100%; height: 70px; margin-bottom: 6px; background: #f1e3c8; color: #574029; }
.artwork-style path { fill: none; stroke: currentColor; stroke-linejoin: round; }
.artwork-style .sample-frame { stroke-width: .6; }
.artwork-style .sample-water { stroke-width: .4; opacity: .6; }
.artwork-style .sample-streets { stroke-width: .5; }
.artwork-style .sample-major { stroke-width: 1.2; }
.artwork-style .classic-major { stroke-width: .7; }
.artwork-style span { font-size: 12px; font-weight: 600; }
.artwork-style:hover { border-color: rgba(255, 255, 255, 0.16); }
.artwork-style.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #1b1b1e; }
.artwork-setting p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.map-detail-setting { margin-bottom: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.map-detail-setting p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.line-sample.detail-line { border-top: 3px double var(--ink); }
.line-toggle { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; cursor: pointer; font-size: 12px; }
.line-toggle > span:nth-child(2) { flex: 1; }
.line-sample { width: 19px; flex: none; height: 0; border-top: 2px solid var(--ink); }
.line-sample.local-line { border-top-width: 1px; }
.line-sample.path-line { border-color: rgba(255, 255, 255, 0.16); border-top-width: 1px; }
.line-sample.building-line { width: 13px; height: 9px; border: 1px solid rgba(255, 255, 255, 0.16); }
.line-sample.waterway-line { border-color: rgba(255, 255, 255, 0.5); }
.line-sample.lake-line, .line-sample.ocean-line { height: 10px; border: 1px solid hsl(30 32% 62%); background: repeating-linear-gradient(to bottom, #8c6a48 0 1px, transparent 1px 3px); }
.line-sample.ocean-line { background: repeating-linear-gradient(to bottom, #8c6a48 0 1px, transparent 1px 5px); }
.line-toggle small { margin-left: 4px; color: #8d8d92; font: 500 9px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.line-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle { width: 27px; height: 16px; flex: none; border-radius: 12px; background: #2a2a2d; position: relative; transition: background .18s; }
.toggle::before { content: ''; position: absolute; top: 3px; left: 3px; height: 10px; width: 10px; border-radius: 50%; background: #151517; transition: transform .18s; }
.line-toggle input:checked + .toggle { background: var(--ink); }
.line-toggle input:checked + .toggle::before { transform: translateX(11px); }
.line-toggle input:focus-visible + .toggle { outline: 2px solid var(--laser); outline-offset: 3px; }
.finish-section { padding-bottom: 10px; }
.rotation-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 10px; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.rotation-head output { color: var(--ink); font-size: 12px; }
.rotation-row { display: flex; align-items: center; gap: 11px; }
.rotation-row input { width: 100%; margin: 0; accent-color: var(--laser); cursor: pointer; }
.rotation-row button { width: 28px; height: 28px; flex: none; border: 1px solid var(--line); background: #151517; color: var(--ink); font-size: 19px; line-height: 1; }
.rotation-row button:hover { border-color: var(--ink); }
.rotation-ends { display: flex; justify-content: space-between; padding-right: 39px; margin-top: 5px; color: #8d8d92; font: 500 9px var(--mono); }
.label-controls { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.label-toggle { justify-content: space-between; font-weight: 600; }
.label-fields { border: 0; padding: 0; margin: 9px 0 0; min-width: 0; }
.label-fields label { display: block; font-size: 11px; margin: 12px 0 5px; color: var(--ink); }
.label-fields label:first-child { margin-top: 0; }
.label-fields label span { color: var(--muted); margin-left: 4px; font-weight: 400; }
.label-fields input { width: 100%; min-width: 0; height: 37px; border: 1px solid rgba(255, 255, 255, 0.16); padding: 0 9px; background: #151517; color: var(--ink); font-size: 12px; }
#label-name { font: 600 20px var(--display); letter-spacing: .08em; }
#label-coordinates { font: 400 10px var(--mono); }
.label-fields input[aria-invalid="true"] { border-color: hsl(11 58% 62%); }
.label-fields:disabled { opacity: .5; }
.reset-label { margin-top: 10px; border: 0; padding: 3px 0; color: var(--ink); background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.label-help, .label-error { font-size: 11px; line-height: 1.5; margin: 10px 0 0; color: var(--muted); }
.label-error { color: hsl(11 58% 72%); }
.export-panel { padding: 16px; background: var(--ink-dark); color: var(--on-fill); }
.export-title { display: flex; align-items: center; gap: 12px; font: 500 10px var(--mono); letter-spacing: .11em; }
.export-title .step-index { color: hsl(13 75% 75%); }
.export-panel p { color: #8d8d92; margin: 8px 0 12px; font-size: 12px; line-height: 1.4; }
.export-panel button { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; color: var(--on-fill); background: var(--laser); font: 600 13px var(--body); transition: background .2s, transform .2s; }
.export-panel button:not(:disabled):hover { background: #da5330; transform: translateY(-1px); }
.export-panel button:disabled { opacity: .48; }
.export-panel button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.export-format { color: #a6a6ab; margin-top: 9px; font: 500 9px var(--mono); letter-spacing: .07em; }
.export-format span { margin: 0 6px; }
.app-status { margin: 12px 0 0; color: var(--muted); font-size: 11px; min-height: 1em; }
.app-status.is-error { color: hsl(11 58% 72%); }

.workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.mobile-preview { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.workspace-header { height: 107px; padding: 20px 34px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex: none; }
.place-title > div { display: flex; align-items: baseline; gap: 13px; margin-top: 5px; }
.place-title h1 { font: 700 42px/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.place-title div span { color: var(--muted); font-size: 13px; }
.view-indicator { padding-bottom: 4px; font: 500 10px var(--mono); letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.view-dot { background: var(--laser); width: 7px; height: 7px; margin-right: 6px; }
.stage { flex: 1; min-height: 0; position: relative; overflow: hidden; display: grid; place-items: center; margin: 0 23px; background-color: #1b1b1e; background-image: linear-gradient(color-mix(in srgb, #2a2a2d 20%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, #2a2a2d 20%, transparent) 1px, transparent 1px); background-size: 22px 22px; border: 1px solid rgba(255, 255, 255, 0.08); }
.stage::before, .stage::after { content: ''; position: absolute; width: 11px; height: 11px; border-color: rgba(255, 255, 255, 0.16); z-index: 2; pointer-events: none; }
.stage::before { top: 15px; right: 15px; border-top: 1px solid; border-right: 1px solid; }
.stage::after { bottom: 15px; left: 15px; border-bottom: 1px solid; border-left: 1px solid; }
.stage-axis { position: absolute; color: #8d8d92; font: 500 10px var(--mono); letter-spacing: .1em; z-index: 2; }
.stage-axis span { color: var(--laser); }
.stage-axis-top { top: 18px; left: 22px; }
.stage-axis-left { top: 42px; left: 22px; }
.board-shell { position: relative; flex: none; }
.board-surface { position: absolute; inset: 0; background: #f1e3c8; box-shadow: 0 2px 2px #8e795b55, 0 16px 35px #1d414026; overflow: hidden; }
.map { position: absolute; left: var(--map-inset-x, 4.5%); right: var(--map-inset-x, 4.5%); top: var(--map-inset-y, 4.5%); bottom: var(--map-inset-y, 4.5%); background: #f1e3c8; clip-path: inset(0 0 var(--map-crop-bottom, 0%) 0); }
.map .maplibregl-canvas { outline: 0; }
.water-preview { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.water-preview[hidden] { display: none; }
.water-preview path { fill: none; stroke-linecap: round; }
.ocean-preview-path { stroke: #775638; }
.lake-preview-path { stroke: #65472f; }
.label-preview { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.label-preview[hidden] { display: none; }
.label-preview path { fill: #3f3327; }
.label-preview #preview-label-divider { fill: none; stroke: #65472f; }
.engrave-frame { position: absolute; left: var(--frame-inset-x, 2.3%); right: var(--frame-inset-x, 2.3%); top: var(--frame-inset-y, 2.3%); bottom: var(--frame-inset-y, 2.3%); border: var(--engrave-line, 1px) solid #51402c; pointer-events: none; }
.engrave-frame-inner { display: none; left: var(--frame-inner-inset-x, 3.4%); right: var(--frame-inner-inset-x, 3.4%); top: var(--frame-inner-inset-y, 3.4%); bottom: var(--frame-inner-inset-y, 3.4%); }
.board-shell.is-double .engrave-frame-inner { display: block; }
.board-shell.is-round .board-surface, .board-shell.is-round .map, .board-shell.is-round .engrave-frame { border-radius: 50%; }
.board-shell.is-round .map { overflow: hidden; }
.board-shell.is-round .dimension-height { display: none; }
.dimension-width, .dimension-height { position: absolute; color: #a6a6ab; font: 500 10px var(--mono); letter-spacing: .1em; white-space: nowrap; }
.dimension-width { left: 50%; bottom: -25px; transform: translateX(-50%); }
.dimension-height { top: 50%; right: -37px; transform: translateY(-50%) rotate(90deg); }
.map-controls { position: absolute; right: 18px; bottom: 50px; display: flex; flex-direction: column; z-index: 4; border: 1px solid #bacbd0; background: #fff; box-shadow: 0 3px 12px #233f4817; }
.map-controls button { height: 34px; width: 34px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font: 22px/1 var(--body); }
.map-controls button:last-child { border-bottom: 0; }
.map-controls button:hover { background: #eef3f4; }
.map-controls svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.stage-hint { position: absolute; left: 22px; bottom: 19px; color: #a6a6ab; font: 500 9px var(--mono); letter-spacing: .1em; }
.stage-hint span { margin: 0 7px; color: var(--laser); }
.workspace-footer { min-height: 47px; padding: 0 34px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font: 500 10px var(--mono); }
.map-readout { display: flex; gap: 12px; align-items: center; min-width: 0; }
.readout-divider { color: #8d8d92; }
.workspace-footer a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.workspace-footer a:hover { text-decoration: underline; }

@media (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .app-shell { height: auto; min-height: 100vh; }
  .app-layout { display: flex; flex-direction: column; }
  .controls { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .controls-scroll { flex: none; overflow: visible; padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .control-section { padding: 18px 0; }
  .export-area { padding: 0 20px 20px; }
  .workspace { order: 1; min-height: 680px; }
  .stage { min-height: 540px; }
}

@media (max-width: 600px) {
  .controls-scroll { display: block; padding: 18px; }
  .control-section { padding: 18px 0; }
  .export-area { padding: 0 18px 20px; }
  .workspace { min-height: 560px; }
  .workspace-header { height: 86px; padding: 14px 18px 10px; }
  .place-title h1 { font-size: 34px; }
  .place-title div span { font-size: 11px; }
  .view-indicator { font-size: 8px; }
  .stage { min-height: 410px; margin: 0 9px; }
  .stage-hint { left: 12px; bottom: 11px; font-size: 8px; }
  .stage-axis { display: none; }
  .map-controls { right: 9px; bottom: 38px; }
  .map-controls button { width: 30px; height: 30px; }
  .workspace-footer { padding: 8px 18px 14px; flex-wrap: wrap; align-content: center; font-size: 9px; }
}

/* Flatten the workspace so the canvas can stick throughout the controls. */
@media screen and (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .workspace { display: contents; }
  .mobile-preview { position: sticky; top: 0; z-index: 20; order: 1; flex: none; width: 100%; padding-bottom: 8px; background: var(--wash); border-bottom: 1px solid var(--line); }
  .workspace-header { height: 52px; padding: 8px 18px; align-items: center; }
  .place-title { min-width: 0; }
  .place-title > div { min-width: 0; margin-top: 0; }
  .place-title h1 { font-size: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .place-title div span { flex: none; }
  .place-title > .eyebrow, .view-indicator { display: none; }
  .stage { flex: none; height: min(34svh, 320px); min-height: 0; }
  .stage-axis, .stage-hint, .dimension-width, .dimension-height,
  .stage::before, .stage::after { display: none; }
  .board-shell { margin-right: 44px; }
  .map-controls { top: 8px; right: 8px; bottom: auto; }
  .map-controls button { width: 44px; height: 44px; }
  .workspace-footer { order: 1; }
}

@media screen and (max-width: 960px) and (max-height: 500px) {
  .mobile-preview { position: static; }
  .stage { height: 240px; }
}

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

/* Dark workshop layout: the board preview sits on the left, settings on the right.
   The board, map, water, label and engraved frame keep their real material colors. */
.city-page .app-shell { height: calc(100dvh - 24px); min-height: 560px; }
.city-page .app-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; }
.city-page .controls, .city-page .workspace { border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
.city-page .controls { order: 2; }
.city-page .controls-scroll { padding: 2px 18px 8px; }
.city-page .control-section { padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.city-page .control-section:last-child { border-bottom: 0; }
.city-page .section-heading { gap: 10px; align-items: center; }
.city-page .section-heading h2 { font: 600 15px/1.2 var(--body); letter-spacing: 0; }
.city-page .step-index { font: 500 11px var(--mono); }
.city-page .search-form { height: 38px; border-color: rgba(255, 255, 255, .08); border-radius: var(--radius-control); background: var(--field); overflow: hidden; }
.city-page .search-form button { border-left-color: var(--line); background: var(--raised); }
.city-page .search-results { border-radius: 12px; background: #1b1b1e; }
.city-page .search-results button { background: transparent; }
.city-page .city-picks { gap: 8px; }
.city-page .city-pick { height: 44px; padding: 0 14px; border-color: rgba(255, 255, 255, .06); border-radius: 12px; background: #1b1b1e; font-size: 13px; font-weight: 500; }
.city-page .city-pick.is-selected { border-color: var(--lime-line); background: var(--lime-wash); box-shadow: none; }
.city-page .city-pick small { color: var(--faint); }
.city-page .segmented { gap: 4px; padding: 4px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: var(--field); }
.city-page .segmented button { height: 32px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 500; }
.city-page .segmented button.is-selected { font-weight: 500; }
.city-page :is(.size-inputs label, .rotation-head) { color: var(--muted); font: 400 12px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.city-page .rotation-head label { color: var(--ink); font-size: 13px; }
.city-page .number-input { height: 38px; }
.city-page .number-input input { font-size: 13px; }
.city-page .size-presets { gap: 6px; }
.city-page .size-presets button { height: 32px; padding: 0 4px; border-color: rgba(255, 255, 255, .07); border-radius: 999px; background: #1c1c1f; color: #a6a6ab; font: 500 12px var(--mono); }
.city-page .artwork-style { border-color: rgba(255, 255, 255, .06); border-radius: 12px; background: #1b1b1e; }
.city-page .artwork-style.is-selected { border-color: var(--lime-line); background: var(--lime-wash); box-shadow: none; }
.city-page .artwork-style svg { border-radius: 8px; }
.city-page .line-toggle { height: 38px; font-size: 13px; }
.city-page .line-sample { border-top-color: #e8d3b4; }
.city-page .line-sample.local-line { border-top-color: #c4ae92; }
.city-page .line-sample.path-line { border-top-color: #8f8270; }
.city-page .line-sample.building-line { border-color: #a8957c; }
.city-page .line-sample.waterway-line { border-top-color: #6aa3c7; }
.city-page .line-sample.lake-line, .city-page .line-sample.ocean-line { border-color: #6aa3c7; background: repeating-linear-gradient(to bottom, #6aa3c7 0 1px, transparent 1px 3px); }
.city-page .line-sample.ocean-line { background: repeating-linear-gradient(to bottom, #6aa3c7 0 1px, transparent 1px 5px); }
.city-page .line-sample.detail-line { border-top-color: #e8d3b4; }
.city-page .toggle { width: 34px; height: 20px; background: var(--selected); }
.city-page .toggle::before { top: 2px; left: 2px; width: 16px; height: 16px; background: var(--faint); }
.city-page .line-toggle input:checked + .toggle { background: var(--lime); }
.city-page .line-toggle input:checked + .toggle::before { background: var(--on-fill); transform: translateX(14px); }
.city-page .rotation-head output { color: var(--lime); font-family: var(--mono); }
.city-page .rotation-row button { width: 30px; height: 30px; border-color: rgba(255, 255, 255, .07); border-radius: 999px; background: var(--raised); font-size: 16px; }
.city-page .label-fields label { color: var(--muted); font-size: 12px; }
.city-page .label-fields input { height: 38px; border-color: rgba(255, 255, 255, .08); border-radius: var(--radius-control); background: var(--field); font-size: 13px; }
.city-page #label-name { font: 600 20px var(--engrave); letter-spacing: .08em; }
.city-page #label-coordinates { font: 400 12px var(--mono); }
.city-page .reset-label { height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; }
.city-page .label-error, .city-page .app-status.is-error { color: var(--danger); }
.city-page .export-area { padding: 14px; border-top: 1px solid var(--line); }
.city-page .export-panel { padding: 14px; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-inner); background: var(--field); color: var(--ink); }
.city-page .export-title { color: var(--muted); }
.city-page .export-title .step-index { color: var(--lime); }
.city-page .export-panel p { color: var(--muted); }
.city-page .export-panel button { justify-content: center; gap: 8px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--on-fill); }
.city-page .export-panel button:not(:disabled):hover { background: var(--lime-hover); }
.city-page .export-format { color: var(--faint); }
.city-page .app-status { color: var(--faint); }
.city-page .workspace-header { height: auto; padding: 14px 18px; align-items: center; }
.city-page .place-title .eyebrow { display: none; }
.city-page .place-title > div { margin-top: 0; gap: 10px; }
.city-page .place-title h1 { font: 600 15px/1.2 var(--body); letter-spacing: 0; text-transform: none; }
.city-page .place-title div span { color: var(--faint); font-size: 12px; }
.city-page .view-indicator { padding: 0; color: var(--faint); font: 500 11px var(--mono); }
.city-page .stage { margin: 0 10px; border: 0; border-radius: var(--radius-inner); background-color: #0e0e10; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 18px 18px; }
.city-page .stage::before, .city-page .stage::after { display: none; }
.city-page .stage-axis { color: var(--faint); }
.city-page .stage-axis span, .city-page .stage-hint span { color: var(--lime); }
.city-page .board-surface { box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.city-page :is(.dimension-width, .dimension-height, .stage-hint) { color: var(--faint); }
.city-page .map-controls { top: 50%; right: 14px; bottom: auto; gap: 8px; border: 0; background: none; box-shadow: none; transform: translateY(-50%); }
.city-page .map-controls button { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: rgba(32, 32, 35, .9); color: var(--ink); font-size: 18px; }
.city-page .map-controls button:last-child { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.city-page .map-controls button:hover { background: var(--selected); }
.city-page .workspace-footer { min-height: 42px; padding: 0 18px; color: var(--faint); font: 500 11px var(--mono); }
.city-page .workspace-footer a { color: var(--faint); }

@media (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .city-page .app-shell { height: auto; min-height: 0; }
  .city-page .app-layout { gap: 8px; }
  .city-page .workspace { display: contents; }
  .city-page .mobile-preview { border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
  .city-page .stage { margin: 0 8px; }
  .city-page .map-controls { top: 8px; right: 8px; transform: none; }
  .city-page .map-controls button { width: 44px; height: 44px; }
  .city-page .workspace-footer { order: 1; border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; background: var(--surface); }
}
