* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.16);
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.96);
}
[hidden] {
  display: none !important;
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon.small {
  width: 16px;
  height: 16px;
}
.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;
}
::selection {
  background: #2a2a2d;
}
.studio-shell {
  max-width: 1600px;
  margin: auto;
  padding: 29px 42px 18px;
}
.studio-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 20px;
}

.breadcrumb > span:last-child {
  color: #c9c9cc;
}
.studio-heading h1 {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -1.2px;
  line-height: 1.35;
  margin: 0;
  font-weight: 750;
}
.studio-heading p {
  font-size: 13px;
  color: #a6a6ab;
  margin: 7px 0 0;
}
.project-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  flex-shrink: 0;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 41px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s;
}
.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151517;
  color: #c9c9cc;
}
.button-primary {
  background: #202023;
  color: #ededeb;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
}
.button-primary:hover {
  background: #244b3e;
  filter: none;
}
.button-primary .icon {
  width: 17px;
  height: 17px;
}
.button-primary .small {
  width: 14px;
  height: 14px;
  margin-left: 5px;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 23px;
  align-items: start;
}
.preview-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: #151517;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.preview-toolbar {
  height: 53px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 14px;
  background: #151517;
  border-bottom: 1px solid var(--line);
}
.view-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #a6a6ab;
}
.view-tab .icon {
  width: 17px;
  height: 17px;
}
.view-tab.active {
  color: #ededeb;
  background: #1b1b1e;
  font-weight: 600;
}
.live-indicator {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-left: auto;
  font-size: 10px;
  color: #a6a6ab;
  white-space: nowrap;
}
.live-indicator > span:first-child {
  height: 5px;
  width: 5px;
  background: #3a3a3e;
  border-radius: 50%;
}
.icon-button {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #a6a6ab;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.scene {
  position: relative;
  height: 472px;
  isolation: isolate;
  background-color: var(--scene);
  background-image: radial-gradient(circle, color-mix(in srgb, #2a2a2d 33%, transparent) 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  overflow: hidden;
}
.scene:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 55% 44%, color-mix(in srgb, #151517 31%, transparent), transparent 70%);
}
#terrain-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  touch-action: none;
}
#terrain-canvas canvas {
  display: block;
  height: 100%;
  width: 100%;
  outline: 0;
}
.map-container {
  position: absolute;
  left: 21px;
  top: 22px;
  width: 192px;
  height: 142px;
  background: #2a2a2d;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.19);
  z-index: 3;
  overflow: hidden;
}
#map {
  position: absolute;
  inset: 0 0 30px;
}
.map-place {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #151517;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 550;
  cursor: pointer;
}
.map-place > .icon:first-child {
  width: 12px;
  height: 12px;
  color: #c9c9cc;
}
.map-place > .icon:last-child {
  margin-left: auto;
  width: 11px;
}
.map-place > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-expand {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 23px;
  height: 23px;
  border-radius: 4px;
  background: color-mix(in srgb, #151517 96%, transparent);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.17);
  color: #c9c9cc;
}
.map-expand .icon {
  width: 13px;
  height: 13px;
}
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
  display: none;
}
.scene-badge {
  position: absolute;
  z-index: 3;
  right: 21px;
  top: 23px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, #151517 85%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 7px 11px;
  font-size: 10px;
  color: #a6a6ab;
}
.scene-badge .icon {
  width: 13px;
  height: 13px;
}
.scene-tools {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 22px;
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: color-mix(in srgb, #151517 93%, transparent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}
.tool-divider {
  width: 1px;
  height: 15px;
  background: #2a2a2d;
  margin: 0 2px;
}
.scene-hint {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #a6a6ab;
  white-space: nowrap;
  pointer-events: none;
}
.scene-hint span {
  margin: 0 4px;
  color: #8d8d92;
}
.scene-hint .icon {
  width: 13px;
  height: 13px;
}
.north-compass {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 3;
  width: 38px;
  height: 51px;
  padding: 0;
  color: #a6a6ab;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.north-compass span {
  font-size: 8px;
  font-weight: 700;
}
.north-compass svg {
  width: 29px;
  height: 33px;
  transform: rotate(25deg);
}
.dimension-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.dimension-overlay line {
  stroke: #8d8d92;
  stroke-width: 0.8;
  stroke-dasharray: 3 3;
}
.dimension-overlay text {
  fill: #a6a6ab;
  font-size: 10px;
  font-family: var(--body);
}
.scene-loading {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: color-mix(in srgb, #1b1b1e 85%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #a6a6ab;
  font-size: 12px;
  pointer-events: none;
  backdrop-filter: blur(2px);
}
.loading-ring {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.material-bar {
  height: 55px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 19px;
  white-space: nowrap;
}
.material-bar-label {
  font-size: 10px;
  color: #a6a6ab;
}
.quick-materials {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.material-pick {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #a6a6ab;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.material-pick.selected {
  border-color: rgba(255, 255, 255, 0.08);
  color: #c9c9cc;
  background: #1b1b1e;
  font-weight: 600;
}
.material-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #0000000f;
}
.birch {
  background-color: #d9c3a1;
  background-image:
    repeating-linear-gradient(
      12deg,
      transparent 0 4px,
      #b191651c 5px,
      #e7d6b250 6px,
      transparent 8px
    ),
    linear-gradient(110deg, #e7d5b7, #caae88);
}
.walnut {
  background-color: #785542;
  background-image:
    repeating-linear-gradient(
      8deg,
      transparent 0 4px,
      #3f28251f 5px,
      #95746250 6px,
      transparent 8px
    ),
    linear-gradient(110deg, #967256, #614530);
}
.resin {
  background: linear-gradient(125deg, #fff, #eeefed 55%, #d6dbd9);
}
.aluminum {
  background: repeating-linear-gradient(
    0deg,
    #a7afb2 0 1px,
    #b9bfc1 2px,
    #aab2b5 3px
  );
}
.more-materials {
  display: grid;
  place-items: center;
  margin-left: auto;
  color: #a6a6ab;
  padding: 5px;
}
.more-materials .icon {
  width: 15px;
}
.terrain-stats {
  height: 73px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 0.95fr;
  align-items: center;
  padding: 0 21px;
}
.terrain-stats > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 17px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.terrain-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.terrain-stats span {
  font-size: 9px;
  color: #a6a6ab;
}
.terrain-stats strong {
  font-weight: 550;
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.settings-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151517;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.settings-tabs {
  display: flex;
  justify-content: space-between;
  height: 53px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.settings-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a6a6ab;
  font-size: 11px;
  position: relative;
  padding: 0 8px;
}
.settings-tab.active {
  font-weight: 600;
  color: #c9c9cc;
}
.settings-tab.active:after {
  content: "";
  height: 2px;
  background: #3a3a3e;
  position: absolute;
  bottom: -1px;
  left: 8px;
  right: 8px;
}
.settings-tab .icon {
  width: 15px;
  height: 15px;
}
.settings-content {
  height: 547px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d9e2dc transparent;
}
.settings-page {
  padding: 22px 20px 16px;
}
.control-group {
  padding-bottom: 19px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.control-group:last-child {
  border: 0;
  margin-bottom: 0;
}
.control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 12px;
}
.control-heading h2,
.control-heading > label {
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.control-heading output {
  font-size: 10px;
  font-weight: 550;
  color: #c9c9cc;
  background: #1b1b1e;
  padding: 4px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.text-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a6a6ab;
  font-size: 9px;
  font-weight: 500;
}
.text-button .icon {
  width: 11px;
  height: 11px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  height: 36px;
  padding: 0 10px;
  background: #151517;
}
.search-field > .icon {
  width: 15px;
  height: 15px;
  color: #a6a6ab;
}
.search-field input {
  min-width: 0;
  width: 100%;
  background: none;
  border: 0;
  font-size: 10px;
  color: var(--ink);
  outline: none;
}
.search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}
.search-field input::placeholder {
  color: #a6a6ab;
}
.search-field button {
  padding: 0;
  color: #8d8d92;
  display: grid;
  place-items: center;
}
.search-field kbd {
  font-family: inherit;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.selected-place {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}
.place-icon {
  height: 33px;
  width: 33px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1b1b1e;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #c9c9cc;
}
.place-icon .icon {
  width: 19px;
}
.selected-place > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.selected-place strong {
  font-size: 11px;
  font-weight: 600;
}
.selected-place > div > span {
  font-size: 9px;
  color: #a6a6ab;
}
.place-check {
  margin-left: auto;
  color: #a6a6ab;
}
.place-check .icon {
  width: 12px;
  height: 12px;
}
.search-results {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-top: 7px;
  max-height: 160px;
  overflow-y: auto;
  background: #151517;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.search-results button {
  width: 100%;
  display: flex;
  text-align: left;
  padding: 9px 10px;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  line-height: 1.5;
}
.search-results button:hover {
  background: #1b1b1e;
}
.search-results > p {
  font-size: 10px;
  padding: 8px 11px;
  line-height: 1.6;
  color: #a6a6ab;
  margin: 0;
}
.search-results .icon {
  width: 13px;
  height: 13px;
  color: #a6a6ab;
  margin-top: 2px;
}
.range {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #3a3a3e 0 var(--range-progress, 35%),
    #1b1b1e var(--range-progress, 35%) 100%
  );
  appearance: none;
  outline: none;
  margin: 14px 0 11px;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #151517;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.range::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: #151517;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #8d8d92;
  margin-top: 7px;
}
.unit-switch {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px;
}
.unit-switch button {
  font-size: 9px;
  min-width: 25px;
  padding: 2px 5px;
  border-radius: 2px;
  color: #8d8d92;
}
.unit-switch .selected {
  color: #c9c9cc;
  background: #1b1b1e;
}
.dimension-inputs {
  display: flex;
  gap: 9px;
  align-items: center;
}
.dimension-inputs > label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  color: #a6a6ab;
}
.dimension-inputs label > div {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  color: var(--ink);
}
.dimension-inputs input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 11px;
  font-weight: 500;
  padding: 0;
  background: none;
  appearance: textfield;
  -moz-appearance: textfield;
}
.dimension-inputs input::-webkit-inner-spin-button {
  appearance: none;
}
.unit-label {
  font-size: 9px;
  color: #a6a6ab;
}
.dimension-times {
  font-size: 13px;
  color: #8d8d92;
  padding-top: 17px;
}
.size-presets {
  display: flex;
  margin-top: 9px;
  gap: 5px;
}
.size-presets button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a6a6ab;
  border-radius: 4px;
  font-size: 9px;
  padding: 5px;
}
.size-presets .selected {
  border-color: rgba(255, 255, 255, 0.08);
  background: #1b1b1e;
  color: #c9c9cc;
  font-weight: 550;
}
.terrain-controls {
  padding-bottom: 18px;
}
.sub-control {
  margin-top: 22px;
  margin-bottom: 10px;
}
.info-dot {
  font-family: Georgia, serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 12px;
  width: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 8px;
  font-style: italic;
  color: #a6a6ab;
  padding: 0;
}
.advanced-settings {
  font-size: 10px;
  margin-top: 3px;
}
.advanced-settings summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a6a6ab;
  font-weight: 500;
  padding: 0 0 9px;
}
.advanced-settings summary::-webkit-details-marker {
  display: none;
}
.advanced-settings[open] summary {
  margin-bottom: 10px;
}
.advanced-settings[open] summary .icon {
  transform: rotate(180deg);
}
.base-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 17px;
}
.base-input > div {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 8px;
  border-radius: 4px;
  color: #a6a6ab;
  gap: 7px;
}
.base-input input {
  width: 35px;
  border: 0;
  color: var(--ink);
  font-size: 10px;
  background: none;
}
.settings-footer {
  height: 53px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 19px;
  background: #151517;
}
.footer-icon {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  background: #1b1b1e;
  display: grid;
  place-items: center;
  color: #a6a6ab;
}
.footer-icon .icon {
  width: 16px;
  height: 16px;
}
.settings-footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-footer strong {
  font-size: 10px;
  font-weight: 550;
  color: #c9c9cc;
}
.settings-footer > div > span {
  font-size: 8px;
  color: #a6a6ab;
}
.settings-footer > .icon {
  margin-left: auto;
  color: #a6a6ab;
  width: 13px;
  height: 13px;
}
.panel-intro h2 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 0 7px;
}
.panel-intro > p {
  font-size: 11px;
  color: #a6a6ab;
  line-height: 1.65;
  margin: 0 0 22px;
}
.feature-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.feature-toggle > .icon {
  color: #a6a6ab;
  width: 18px;
  height: 18px;
}
.feature-toggle > span:nth-child(2) {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-toggle small {
  font-size: 9px;
  color: #8d8d92;
}
.feature-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch {
  margin-left: auto;
  flex-shrink: 0;
  width: 27px;
  height: 16px;
  background: #2a2a2d;
  border-radius: 10px;
  position: relative;
  transition: background 0.15s;
}
.switch:after {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #151517;
  left: 2px;
  top: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17);
  transition: transform 0.15s;
}
.feature-toggle input:checked + .switch {
  background: #3a3a3e;
}
.feature-toggle input:checked + .switch:after {
  transform: translateX(11px);
}
.feature-toggle input:focus-visible + .switch {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.label-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  font-size: 10px;
  font-weight: 500;
}
.label-field input {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 9px;
  font-size: 11px;
  color: var(--ink);
}
.label-field > span {
  font-size: 8px;
  font-weight: 400;
  color: #8d8d92;
}
.gpx-heading {
  margin-top: 25px;
}
.gpx-heading h3 {
  font-size: 11px;
  margin: 0 0 7px;
  font-weight: 600;
}
.gpx-heading p {
  font-size: 9px;
  color: #a6a6ab;
  margin: 0 0 13px;
}
.gpx-upload {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: #151517;
  cursor: pointer;
  color: #a6a6ab;
  padding: 10px;
}
.gpx-upload .icon {
  width: 21px;
  height: 21px;
  margin-bottom: 1px;
}
.gpx-upload strong {
  font-size: 10px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: center;
}
.gpx-upload > span {
  font-size: 8px;
  color: #a6a6ab;
  text-align: center;
}
.gpx-upload.dragover {
  background: #1b1b1e;
  border-color: rgba(255, 255, 255, 0.5);
}
.gpx-upload:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
#remove-route {
  margin-top: 10px;
}
.alltrails-guide {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.import-hike {
  margin-top: 12px;
}
.alltrails-guide summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
}
.alltrails-guide ol {
  padding-left: 20px;
}
.alltrails-guide li + li {
  margin-top: 7px;
}
.alltrails-guide a {
  color: var(--green);
  text-underline-offset: 3px;
}
.alltrails-guide summary:focus-visible,
.alltrails-guide a:focus-visible,
.trail-options input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.label-error {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: hsl(11 56% 72%);
}
.details-method-note,
.route-privacy,
.trail-options p {
  font-size: 11px;
  line-height: 1.6;
  color: #c9c9cc;
}
.trail-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
.trail-options input {
  accent-color: var(--green);
}
.detail-status {
  font-size: 9px;
  color: #a6a6ab;
  line-height: 1.6;
}
.small-heading {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 11px;
}
.method-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 12px;
}
.method-card > .icon {
  width: 22px;
  height: 22px;
  color: #a6a6ab;
}
.method-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.method-card strong {
  font-size: 11px;
  font-weight: 550;
}
.method-card small {
  font-size: 9px;
  color: #a6a6ab;
}
.method-card.selected {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1b1b1e;
}
.radio-mark {
  height: 13px;
  width: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  margin-left: auto;
  position: relative;
}
.selected .radio-mark {
  border-color: rgba(255, 255, 255, 0.5);
}
.selected .radio-mark:after {
  content: "";
  width: 7px;
  height: 7px;
  background: #3a3a3e;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
}
.material-heading {
  margin-top: 25px;
}
.material-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.material-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px;
  border-radius: 7px;
  gap: 5px;
}
.material-card.selected {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1b1b1e;
}
.material-sample {
  height: 52px;
  width: 100%;
  display: block;
  border-radius: 4px;
  margin-bottom: 3px;
}
.material-card strong {
  font-size: 9px;
  font-weight: 550;
  padding-left: 2px;
}
.material-card small {
  font-size: 8px;
  color: #a6a6ab;
  padding: 0 2px 3px;
}
.finish-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 21px;
  padding: 13px;
  background: #1b1b1e;
  border-radius: 6px;
  color: #a6a6ab;
}
.finish-note .icon {
  width: 17px;
  height: 17px;
}
.finish-note p {
  font-size: 9px;
  line-height: 1.7;
  margin: 0;
  color: #a6a6ab;
}
.inspiration-section {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 23px;
}
.inspiration-intro {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  width: 225px;
}
.inspiration-intro > .icon {
  width: 24px;
  height: 24px;
  color: #a6a6ab;
}
.inspiration-intro h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 7px;
}
.inspiration-intro p {
  font-size: 9px;
  color: #a6a6ab;
  margin: 0;
}
.place-presets {
  display: flex;
  gap: 13px;
  flex: 1;
}
.place-preset {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #151517;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-width: 0;
  flex: 1;
  padding: 8px;
  text-align: left;
}
.topo-thumb {
  height: 43px;
  width: 49px;
  border-radius: 5px;
  background: #1b1b1e;
  fill: none;
  stroke: #8d8d92;
  stroke-width: 1;
  flex-shrink: 0;
}
.topo-thumb.fuji {
  background: #1b1b1e;
  stroke: #8d8d92;
}
.topo-thumb.yosemite {
  background: #1b1b1e;
  stroke: #8d8d92;
}
.place-preset > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.place-preset strong {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.place-preset small {
  font-size: 8px;
  color: #a6a6ab;
}
.place-preset > .icon {
  width: 13px;
  height: 13px;
  margin-right: 3px;
  color: #a6a6ab;
}
.place-preset:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #151517;
  filter: none;
}
.studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 8px;
  color: #8d8d92;
  padding-top: 21px;
  line-height: 1.7;
}
.studio-footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-footer a:hover {
  text-decoration: underline;
}
.data-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a3a3e;
}
.map-mode #terrain-canvas,
.map-mode .dimension-overlay,
.map-mode .scene-badge,
.map-mode .north-compass,
.map-mode .scene-hint {
  display: none;
}
.map-mode .map-container {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.map-mode #map {
  inset: 0;
}
.map-mode .map-place,
.map-mode .map-expand {
  display: none;
}
.map-mode .scene-tools {
  z-index: 5;
}
.map-instructions {
  position: absolute;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: #151517;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.17);
  padding: 11px 17px;
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  max-width: 340px;
  width: max-content;
}
.map-instructions .icon {
  width: 16px;
  height: 16px;
  color: #a6a6ab;
}
.map-instructions span {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 9px;
  color: #a6a6ab;
}
.scene.is-expanded {
  height: min(80vh, 900px);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #202023;
  color: #ededeb;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.36);
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 12px;
  max-width: calc(100vw - 30px);
}
.toast.error {
  background: #3a3a3e;
}
.toast .icon {
  width: 17px;
  height: 17px;
}
.modal {
  padding: 26px 30px 25px;
  width: min(460px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: #151517;
  color: var(--ink);
  box-shadow: 0 20px 90px rgba(0, 0, 0, 0.36);
}
.modal::backdrop {
  background: color-mix(in srgb, #202023 33%, transparent);
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1b1b1e;
  border-radius: 10px;
  color: #a6a6ab;
}
.modal-icon .icon {
  width: 22px;
  height: 22px;
}
.modal h2 {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.9px;
  font-weight: 750;
  margin: 0 0 9px;
}
.modal > p {
  color: #a6a6ab;
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 21px;
}
.export-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.export-option {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  cursor: pointer;
}
.export-option:has(input:checked) {
  background: #1b1b1e;
  border-color: rgba(255, 255, 255, 0.16);
}
.export-option input {
  accent-color: #3a3a3e;
}
.export-option > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.export-option strong {
  font-size: 11px;
  font-weight: 550;
}
.export-option small {
  font-size: 9px;
  color: #a6a6ab;
}
.export-option b {
  font-size: 8px;
  font-weight: 500;
  margin-left: auto;
  color: #8d8d92;
}
.export-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 11px;
  font-size: 10px;
}
.modal .export-note {
  font-size: 9px;
  color: #8d8d92;
  margin-bottom: 17px;
}
.export-download {
  width: 100%;
}
.modal .modal-status {
  margin: 10px 0 0;
  font-size: 10px;
}
.help-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.help-steps li {
  display: flex;
  gap: 13px;
  margin: 0 0 19px;
}
.help-steps li > span {
  flex-shrink: 0;
  height: 26px;
  width: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1b1b1e;
  color: #a6a6ab;
  font-size: 11px;
  font-weight: 600;
}
.help-steps strong {
  font-size: 12px;
  font-weight: 550;
}
.help-steps p {
  font-size: 10px;
  color: #a6a6ab;
  line-height: 1.7;
  margin: 6px 0 0;
}
.help-data {
  padding: 15px;
  background: #1b1b1e;
  border-radius: 6px;
  margin-bottom: 20px;
}
.help-data strong {
  font-size: 10px;
  font-weight: 600;
}
.help-data p {
  font-size: 9px;
  color: #a6a6ab;
  line-height: 1.8;
  margin: 7px 0 0;
}
.help-modal > .button {
  width: 100%;
}
.saved-project {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.saved-project > button:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  flex: 1;
  padding: 0;
}
.saved-project strong {
  font-size: 12px;
  font-weight: 600;
}
.saved-project small {
  font-size: 9px;
  color: #a6a6ab;
}
.saved-project > .icon-button {
  font-size: 12px;
  color: #a6a6ab;
}
.empty-projects {
  padding: 30px 0;
  text-align: center;
  color: #a6a6ab;
}
.empty-projects .icon {
  height: 33px;
  width: 33px;
  margin-bottom: 11px;
}
.empty-projects p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
@media (min-width: 1500px) {
  .scene {
    height: 533px;
  }
  .settings-content {
    height: 608px;
  }
  .settings-page {
    padding: 25px 24px;
  }
  .control-group {
    margin-bottom: 21px;
    padding-bottom: 21px;
  }
  .control-heading h2,
  .control-heading > label {
    font-size: 12px;
  }
  .search-field input,
  .selected-place strong {
    font-size: 11px;
  }
  .terrain-stats strong {
    font-size: 12px;
  }
  .map-container {
    width: 225px;
    height: 164px;
  }
  .inspiration-intro {
    width: 260px;
  }
  .studio-heading h1 {
    font-size: 34px;
  }
}
@media (max-width: 1180px) {
  .studio-shell {
    padding: 24px 26px 16px;
  }

  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
  }

  .material-bar {
    padding: 0 13px;
    gap: 6px;
  }
  .material-bar-label {
    display: none;
  }
  .material-pick {
    padding: 7px 8px;
  }
  .terrain-stats {
    padding: 0 14px;
  }
  .terrain-stats > div {
    padding-left: 10px;
  }
  .terrain-stats strong {
    font-size: 10px;
  }
  .terrain-stats span {
    font-size: 8px;
  }
  .inspiration-section {
    gap: 18px;
  }
  .inspiration-intro {
    width: 180px;
  }
  .place-presets {
    gap: 10px;
  }
  .place-preset {
    gap: 8px;
  }
  .topo-thumb {
    width: 38px;
    height: 40px;
  }
  .inspiration-intro p {
    font-size: 8px;
  }
  .scene-hint {
    font-size: 9px;
    bottom: 21px;
  }
  .scene-tools {
    bottom: 41px;
  }
  .scene-badge {
    top: 20px;
    right: 15px;
    font-size: 9px;
  }
  .map-container {
    left: 16px;
    top: 20px;
    width: 170px;
    height: 130px;
  }
  .studio-heading h1 {
    font-size: 27px;
  }
  .project-actions .button {
    padding: 0 12px;
    font-size: 11px;
  }
}
@media (max-width: 950px) {
  .studio-shell {
    padding: 23px 20px 15px;
  }

  .main-nav > a,

  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 15px;
  }
  .settings-page {
    padding: 20px 17px;
  }
  .settings-tabs {
    padding: 0 10px;
  }
  .preview-toolbar {
    padding: 0 10px;
    gap: 6px;
  }
  .view-tab {
    padding: 8px 8px;
    font-size: 11px;
  }
  .live-indicator {
    font-size: 8px;
    gap: 4px;
  }
  .scene-badge {
    display: none;
  }
  .scene {
    height: 472px;
  }
  .map-container {
    width: 154px;
    height: 118px;
  }
  .scene-tools {
    left: 14px;
  }
  .scene-hint {
    bottom: 18px;
  }
  .north-compass {
    right: 16px;
  }
  .material-pick {
    font-size: 8px;
    gap: 4px;
    padding: 7px 5px;
  }
  .quick-materials {
    gap: 1px;
  }
  .material-dot {
    width: 11px;
    height: 11px;
  }
  .terrain-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 13px;
    height: 88px;
    padding: 14px 18px;
  }
  .terrain-stats > div {
    gap: 5px;
  }
  .terrain-stats > div:nth-child(3) {
    border: 0;
    padding-left: 0;
  }
  .terrain-stats strong {
    font-size: 10px;
  }
  .studio-heading h1 {
    font-size: 25px;
  }
  .studio-heading p {
    font-size: 11px;
  }
  .project-actions .button-secondary span {
    display: none;
  }
  .project-actions .button-secondary {
    width: 36px;
    padding: 0;
  }
  .inspiration-section {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
  .inspiration-intro {
    width: auto;
  }
  .inspiration-intro h2 {
    margin: 0;
    font-size: 11px;
  }
  .inspiration-intro p {
    display: none;
  }
  .inspiration-intro > .icon {
    width: 17px;
    height: 17px;
  }
  .inspiration-section {
    padding-top: 20px;
  }
  .place-preset {
    gap: 10px;
  }
  .place-preset strong {
    font-size: 10px;
  }
  .place-preset small {
    font-size: 8px;
  }
}
@media (max-width: 760px) {

  .main-nav > button:last-child {
    display: none;
  }

  .studio-shell {
    padding: 22px 16px 15px;
  }
  .studio-heading {
    display: block;
    margin-bottom: 20px;
  }
  .studio-heading h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .studio-heading p {
    font-size: 12px;
  }

  .project-actions {
    padding-top: 17px;
    justify-content: flex-start;
  }
  .project-actions .button-secondary {
    width: auto;
    padding: 0 13px;
  }
  .project-actions .button-secondary span {
    display: inline;
  }
  .project-actions .button {
    height: 37px;
    min-height: 37px;
    font-size: 11px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .scene {
    height: 420px;
  }
  .map-container {
    width: 175px;
    height: 130px;
    left: 18px;
    top: 20px;
  }
  .scene-badge {
    display: flex;
    font-size: 9px;
    right: 15px;
  }
  .preview-toolbar {
    padding: 0 14px;
  }
  .view-tab {
    font-size: 11px;
    padding: 8px 9px;
  }
  .live-indicator {
    font-size: 9px;
  }
  .material-bar-label {
    display: block;
    font-size: 9px;
  }
  .material-pick {
    font-size: 9px;
    padding: 7px 6px;
  }
  .material-bar {
    padding: 0 15px;
    gap: 8px;
  }
  .material-dot {
    width: 13px;
    height: 13px;
  }
  .terrain-stats {
    grid-template-columns: repeat(4, 1fr);
    height: 73px;
    row-gap: 0;
    padding: 0 15px;
  }
  .terrain-stats > div:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 10px;
  }
  .terrain-stats strong {
    font-size: 10px;
  }
  .terrain-stats span {
    font-size: 8px;
  }
  .settings-content {
    height: auto;
    max-height: 610px;
  }
  .settings-page {
    padding: 23px;
  }
  .settings-tabs {
    height: 51px;
    justify-content: space-around;
    padding: 0 20px;
  }
  .settings-tab {
    font-size: 12px;
    padding: 0 10px;
  }
  .settings-tab.active:after {
    left: 0;
    right: 0;
  }
  .control-heading h2,
  .control-heading > label {
    font-size: 12px;
  }
  .search-field {
    height: 40px;
  }
  .search-field input {
    font-size: 12px;
  }
  .selected-place strong {
    font-size: 12px;
  }
  .selected-place > div > span {
    font-size: 10px;
  }
  .control-heading output {
    font-size: 11px;
  }
  .text-button {
    font-size: 10px;
  }
  .control-group {
    padding-bottom: 21px;
    margin-bottom: 21px;
  }
  .range {
    margin: 18px 0 13px;
    height: 5px;
  }
  .range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }
  .range-labels {
    font-size: 9px;
  }
  .dimension-inputs label > div {
    height: 39px;
  }
  .dimension-inputs > label {
    font-size: 10px;
  }
  .dimension-inputs input {
    font-size: 13px;
  }
  .size-presets button {
    padding: 7px;
    font-size: 10px;
  }
  .feature-toggle {
    padding: 15px 0;
  }
  .feature-toggle > span:nth-child(2) {
    font-size: 12px;
  }
  .feature-toggle small {
    font-size: 10px;
  }
  .switch {
    width: 32px;
    height: 19px;
  }
  .switch:after {
    height: 15px;
    width: 15px;
  }
  .feature-toggle input:checked + .switch:after {
    transform: translateX(13px);
  }
  .panel-intro > p {
    font-size: 12px;
  }
  .material-sample {
    height: 80px;
  }
  .material-card strong {
    font-size: 11px;
  }
  .material-card small {
    font-size: 10px;
  }
  .settings-footer strong {
    font-size: 11px;
  }
  .settings-footer > div > span {
    font-size: 9px;
  }
  .inspiration-section {
    padding-top: 24px;
  }
  .place-preset {
    gap: 8px;
  }
  .place-preset strong {
    font-size: 9px;
  }
  .topo-thumb {
    width: 36px;
    height: 39px;
  }
  .place-preset > .icon {
    display: none;
  }
  .studio-footer {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    padding-top: 22px;
  }
}
@media (max-width: 440px) {

  .scene {
    height: 365px;
  }
  .map-container {
    width: 151px;
    height: 117px;
    left: 15px;
    top: 17px;
  }
  .scene-badge {
    font-size: 8px;
    padding: 6px 8px;
    right: 12px;
    top: 19px;
  }
  .scene-badge .icon {
    width: 11px;
  }
  .scene-hint {
    font-size: 8px;
    bottom: 15px;
    gap: 4px;
  }
  .scene-tools {
    bottom: 35px;
    left: 14px;
  }
  .north-compass {
    bottom: 32px;
    right: 15px;
  }
  .material-bar {
    height: auto;
    min-height: 58px;
    gap: 4px;
    flex-wrap: wrap;
    padding: 9px 12px;
  }
  .material-bar-label {
    font-size: 8px;
    width: 100%;
    margin-bottom: 2px;
  }
  .material-pick {
    font-size: 8px;
    gap: 4px;
    padding: 5px 6px;
  }
  .material-dot {
    width: 12px;
    height: 12px;
  }
  .more-materials {
    margin-top: -17px;
  }
  .terrain-stats {
    height: 90px;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    padding: 13px 19px;
  }
  .terrain-stats > div {
    padding-left: 19px;
  }
  .terrain-stats > div:nth-child(3) {
    border: 0;
    padding-left: 0;
  }
  .terrain-stats strong {
    font-size: 11px;
  }
  .terrain-stats span {
    font-size: 8px;
  }
  .place-presets {
    gap: 7px;
  }
  .place-preset {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 7px;
  }
  .topo-thumb {
    width: 100%;
    height: 46px;
  }
  .place-preset strong {
    font-size: 8px;
  }
  .place-preset small {
    font-size: 7px;
  }
  .place-preset > span {
    gap: 4px;
  }
  .map-instructions {
    font-size: 9px;
    max-width: 240px;
    bottom: 17px;
    padding: 9px 11px;
  }
  .map-mode .scene-tools {
    bottom: 85px;
  }
  .modal {
    padding: 22px;
  }
  .modal h2 {
    font-size: 21px;
  }
  .export-option {
    padding: 11px;
    gap: 8px;
  }
  .export-option strong {
    font-size: 10px;
  }
  .export-option small {
    font-size: 8px;
  }
}
.dimension-inputs label > div:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.scale-input input {
  width: 66px;
}
.breadcrumb,
.studio-heading p,
.help-button,
.live-indicator,
.material-bar-label,
.material-pick,
.terrain-stats span,
.text-button,
.selected-place > div > span,
.range-labels,
.dimension-inputs > label,
.unit-label,
.size-presets button,
.advanced-settings summary,
.feature-toggle small,
.label-field > span,
.gpx-heading p,
.gpx-upload > span,
.detail-status,
.panel-intro > p,
.method-card small,
.material-card small,
.inspiration-intro p,
.place-preset small,
.studio-footer {
  color: #a6a6ab;
}
.search-field input::placeholder {
  color: #a6a6ab;
}
.settings-footer > div > span {
  color: #a6a6ab;
}
.size-presets .selected,
.material-pick.selected {
  color: #c9c9cc;
}
@media (min-width: 761px) and (max-width: 1499px) {
  #panel-terrain {
    padding-top: 18px;
  }
  #panel-terrain .control-group {
    margin-bottom: 13px;
    padding-bottom: 14px;
  }
  #panel-terrain .control-heading {
    margin-bottom: 9px;
  }
  #panel-terrain .selected-place {
    margin-top: 10px;
  }
  #panel-terrain .range {
    margin-top: 11px;
    margin-bottom: 9px;
  }
  #panel-terrain .sub-control {
    margin-top: 15px;
  }
  #panel-terrain .dimension-inputs label > div {
    height: 31px;
  }
  #panel-terrain .size-presets button {
    padding: 4px;
  }
  #panel-terrain .terrain-controls {
    padding-bottom: 11px;
  }
  #panel-terrain .advanced-settings {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Dark workshop layout: the landscape preview on the left, settings on the right.
   Material swatches and the 3D terrain keep their real colors. */
.terrain-page .studio-shell { max-width: none; padding: 0; }
.terrain-page .studio-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.terrain-page :is(.settings-panel, .preview-panel) { border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-panel); background: var(--surface); box-shadow: none; overflow: hidden; }
.terrain-page .settings-panel { grid-column: 2; grid-row: 1; }
.terrain-page .preview-panel { grid-column: 1; grid-row: 1; padding: 10px; }
.terrain-page .button { min-height: 0; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; }
.terrain-page .preview-toolbar { position: absolute; z-index: 5; top: 14px; left: 14px; right: 14px; height: auto; padding: 0; gap: 8px; border: 0; background: none; pointer-events: none; }
.terrain-page .preview-toolbar > * { pointer-events: auto; }
.terrain-page .mobile-preview { position: relative; }
.terrain-page .view-tabs { gap: 3px; padding: 3px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: rgba(20, 20, 22, .82); backdrop-filter: blur(8px); }
.terrain-page .view-tab { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--muted); font-weight: 500; }
.terrain-page .view-tab.active { background: var(--selected); color: #f4f4f2; font-weight: 500; }
.terrain-page .live-indicator { height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: rgba(20, 20, 22, .82); color: var(--ink); font-size: 12px; backdrop-filter: blur(8px); }
.terrain-page .live-indicator > span:first-child { width: 6px; height: 6px; background: var(--success); }
.terrain-page .preview-toolbar > .icon-button { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: rgba(20, 20, 22, .82); color: var(--ink); }
.terrain-page .scene { height: clamp(390px, calc(100dvh - 250px), 680px); margin: 0; border: 0; border-radius: var(--radius-inner); background-color: var(--scene); background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 18px 18px; }
.terrain-page .scene::before { background: none; }
.terrain-page :is(.scene-tools, .map-container, .scene-badge, .map-expand) { border-color: rgba(255, 255, 255, .08); background: rgba(20, 20, 22, .82); color: var(--ink); backdrop-filter: blur(8px); }
.terrain-page .map-container { top: 62px; border-radius: 14px; }
.terrain-page .scene-badge { top: 62px; border-radius: 999px; }
.terrain-page .scene-tools { border-radius: 999px; }
.terrain-page .scene-tools .icon-button { border-radius: 999px; color: var(--ink); }
.terrain-page .map-expand { border-radius: 8px; }
.terrain-page :is(.scene-hint, .north-compass) { color: #a6a6ab; }
.terrain-page .dimension-overlay text { fill: #a6a6ab; font-family: var(--mono); }
.terrain-page .dimension-overlay line { stroke: #77777c; }
.terrain-page .material-bar { height: auto; margin: 10px 0 0; padding: 4px 6px; border: 0; background: none; }
.terrain-page .material-pick { height: 30px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500; }
.terrain-page .material-pick.selected { background: var(--selected); color: #f4f4f2; }
.terrain-page .material-dot { border-color: rgba(0, 0, 0, .25); }
.terrain-page .terrain-stats { height: auto; margin: 4px 0 0; padding: 8px 6px 4px; border: 0; border-top: 1px solid var(--line); background: none; }
.terrain-page .terrain-stats > div { border-color: var(--line); }
.terrain-page .terrain-stats strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.terrain-page .settings-tabs { margin: 14px 14px 4px; height: auto; padding: 4px; gap: 4px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: var(--field); }
.terrain-page .settings-tab { flex: 1; min-width: 0; height: 32px; justify-content: center; gap: 7px; padding: 0 5px; border-radius: 9px; color: var(--muted); font: 500 13px var(--body); letter-spacing: 0; text-transform: none; }
.terrain-page .settings-tab .icon { flex: none; }
.terrain-page .settings-tab.active { background: var(--selected); color: #f4f4f2; }
.terrain-page .settings-tab.active::after { display: none; }
.terrain-page .settings-content { height: clamp(500px, calc(100dvh - 230px), 820px); }
.terrain-page .settings-page { padding: 8px 18px 18px; }
.terrain-page .control-group { border-color: var(--line); }
.terrain-page .control-heading h2, .terrain-page .control-heading > label { color: var(--ink); font: 500 13px/1.3 var(--body); letter-spacing: 0; text-transform: none; }
.terrain-page .control-heading output { padding: 0; background: none; color: var(--lime); font: 500 12px var(--mono); }
.terrain-page .panel-intro h2 { font: 600 15px var(--body); letter-spacing: 0; }
.terrain-page .search-field { height: 38px; border-color: rgba(255, 255, 255, .08); border-radius: var(--radius-control); background: var(--field); }
.terrain-page .search-field input { color: var(--ink); font-size: 13px; }
.terrain-page .search-field:focus-within { border-color: var(--lime-line); box-shadow: none; }
.terrain-page .search-field button { min-width: 30px; min-height: 36px; color: var(--ink); }
.terrain-page .search-field kbd, .terrain-page .search-field input::placeholder { color: var(--faint); }
.terrain-page .selected-place strong { font-size: 13px; }
.terrain-page .dimension-inputs label > div { height: 38px; border-color: rgba(255, 255, 255, .08); border-radius: var(--radius-control); background: var(--field); }
.terrain-page .dimension-inputs input { color: var(--ink); font: 500 13px var(--mono); }
.terrain-page .dimension-inputs label > div:focus-within { outline-color: var(--lime); }
.terrain-page .range { height: 44px; margin-block: 0; background: linear-gradient(to right, var(--lime) 0 var(--range-progress, 35%), var(--selected) var(--range-progress, 35%) 100%) center / 100% 4px no-repeat; touch-action: pan-y; }
.terrain-page .range::-webkit-slider-thumb { width: 16px; height: 16px; border: 0; background: var(--lime); box-shadow: 0 0 0 3px rgba(21, 21, 23, .9); }
.terrain-page .range::-moz-range-thumb { width: 16px; height: 16px; border: 0; background: var(--lime); }
.terrain-page .range-labels { font-size: 11px; }
.terrain-page .unit-switch { padding: 2px; border-color: rgba(255, 255, 255, .06); border-radius: 999px; background: var(--field); }
.terrain-page .unit-switch button { height: 22px; padding: 0 10px; border-radius: 999px; font: 500 11px var(--mono); }
.terrain-page .unit-switch .selected { background: var(--selected); color: #f4f4f2; }
.terrain-page .size-presets button { height: 32px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 999px; background: #1c1c1f; color: #a6a6ab; font-size: 12px; font-weight: 500; }
.terrain-page .size-presets .selected { border-color: var(--lime-line); background: var(--lime-wash); color: var(--lime); }
.terrain-page :is(.method-card, .material-card, .export-option) { border-color: rgba(255, 255, 255, .06); border-radius: 12px; background: #1b1b1e; }
.terrain-page :is(.method-card.selected, .material-card.selected, .export-option:has(input:checked)) { border-color: var(--lime-line); background: var(--lime-wash); color: var(--ink); }
.terrain-page .label-field input { height: 38px; border-color: rgba(255, 255, 255, .08); border-radius: var(--radius-control); background: var(--field); color: var(--ink); }
.terrain-page :is(.view-tab, .material-pick, .text-button, .selected-place > div > span, .range-labels, .dimension-inputs > label, .unit-label, .advanced-settings summary, .feature-toggle small, .label-field > span, .gpx-heading p, .gpx-upload > span, .detail-status, .panel-intro > p, .method-card small, .material-card small, .studio-footer, .settings-footer > div > span, .material-bar-label, .terrain-stats span) { color: var(--muted); }
.terrain-page :is(.view-tab.active, .material-pick.selected) { color: #f4f4f2; }
.terrain-page .text-button { color: var(--lime); font-size: 12px; }
.terrain-page :is(.place-icon, .modal-icon, .help-steps li > span) { border-color: var(--line); border-radius: 10px; background: var(--raised); color: var(--lime); }
.terrain-page :is(.method-card > .icon, .place-check, .search-field > .icon, .radio-mark, .selected .radio-mark) { color: var(--ink); border-color: var(--line-strong); }
.terrain-page .selected .radio-mark { border-color: var(--lime); }
.terrain-page .selected .radio-mark::after { background: var(--lime); }
.terrain-page .feature-toggle > span:nth-child(2) { font-size: 13px; }
.terrain-page .feature-toggle small { font-size: 11px; }
.terrain-page .feature-toggle > .icon { color: var(--muted); }
.terrain-page .switch { width: 34px; height: 20px; background: var(--selected); }
.terrain-page .switch::after { top: 2px; left: 2px; width: 16px; height: 16px; background: var(--faint); box-shadow: none; }
.terrain-page .feature-toggle input:checked + .switch { background: var(--lime); }
.terrain-page .feature-toggle input:checked + .switch::after { background: var(--on-fill); transform: translateX(14px); }
.terrain-page .gpx-upload { border: 1.5px dashed rgba(255, 255, 255, .14); border-radius: 14px; background: var(--field); color: var(--ink); }
.terrain-page .gpx-upload.dragover { border-color: var(--lime-line); background: var(--lime-wash); }
.terrain-page :is(.finish-note, .help-data) { border-radius: 12px; background: var(--raised); color: var(--ink); }
.terrain-page :is(.finish-note p, .help-data p, .help-steps p, .modal > p, .export-option small, .export-option b, .modal .export-note, .saved-project small, .empty-projects) { color: var(--muted); }
.terrain-page .settings-footer { margin: 0; border-color: var(--line); background: var(--surface); color: var(--ink); }
.terrain-page .settings-footer strong { color: var(--ink); font-size: 12px; }
.terrain-page .settings-footer > div > span { font-size: 11px; }
.terrain-page .settings-footer .footer-icon { border-radius: 10px; background: var(--raised); color: var(--lime); }
.terrain-page .toast { border-radius: 999px; background: var(--ink); color: var(--on-fill); }
.terrain-page .modal { border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; background: #18181b; }
.terrain-page .modal h2 { font: 600 18px/1.25 var(--body); letter-spacing: 0; }
.terrain-page .inspiration-section { padding: 28px 4px 0; }
.terrain-page .inspiration-intro h2 { font: 600 20px var(--body); letter-spacing: -.01em; text-transform: none; }
.terrain-page .inspiration-intro p, .terrain-page .place-preset small { color: var(--muted); }
.terrain-page .place-preset { border-color: rgba(255, 255, 255, .06); border-radius: 14px; background: var(--surface); }
.terrain-page .studio-footer { padding: 20px 4px; }
@media (max-width: 1180px) {
  .terrain-page .studio-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .terrain-page .studio-grid { display: flex; flex-direction: column; gap: 8px; }
  .terrain-page .settings-panel { order: 2; width: 100%; }
  .terrain-page .settings-content { height: auto; max-height: none; overflow: visible; }
  .terrain-page .settings-page { padding: 16px 18px; }
  .terrain-page .scene { height: 460px; }
}
@media (max-width: 600px) {
  .terrain-page .view-tab { padding-inline: 10px; white-space: nowrap; font-size: 11px; }
  .terrain-page .live-indicator { display: none; }
  .terrain-page .scene { height: 390px; }
  .terrain-page .terrain-stats { padding: 12px 6px; grid-template-columns: 1fr 1fr; gap: 14px; height: auto; }
  .terrain-page .terrain-stats > div { border: 0; padding: 0; }
  .terrain-page .settings-tab, .terrain-page .view-tab, .terrain-page .size-presets button { min-height: 44px; }
  .terrain-page .material-bar { flex-wrap: wrap; gap: 8px; }
  .terrain-page .material-pick { min-height: 36px; }
  .terrain-page .inspiration-section { padding-inline: 4px; }
}

/* Keep the mobile canvas clear; location and dimensions are in the settings. */
@media screen and (max-width: 860px), screen and (max-width: 960px) and (max-height: 500px) {
  .terrain-page .preview-panel { display: contents; }
  .terrain-page .mobile-preview { position: sticky; top: 0; z-index: 20; width: 100%; padding: 8px; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-panel); background: var(--surface); }
  .terrain-page .scene { height: min(34svh, 320px); }
  .terrain-page .scene.is-expanded { height: min(75svh, 900px); }
  .terrain-page .preview-toolbar { justify-content: space-between; gap: 8px; }
  .terrain-page .view-tab { min-height: 44px; }
  .terrain-page .preview-toolbar .live-indicator { display: none; }
  .terrain-page .preview-toolbar > .icon-button { width: 44px; height: 44px; flex: none; }
  .terrain-page .scene:not(.map-mode) .map-container,
  .terrain-page :is(.scene-badge, .dimension-overlay, .scene-hint) { display: none; }
  .terrain-page .scene-tools { left: 8px; bottom: 8px; padding: 0; gap: 0; }
  .terrain-page .scene-tools .icon-button { width: 44px; height: 44px; }
  .terrain-page .north-compass { right: 8px; bottom: 8px; width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); background: #151517; }
  .terrain-page .north-compass > span { display: none; }
  .terrain-page .map-instructions { left: 8px; right: 8px; bottom: 62px; width: auto; max-width: none; transform: none; padding: 8px; }
  .terrain-page .map-instructions > span { display: none; }
  .terrain-page .material-bar, .terrain-page .terrain-stats { flex: none; }
}

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