:root {
  --ttg36-ink: #17221b;
  --ttg36-muted: #637067;
  --ttg36-line: #d8dfda;
  --ttg36-paper: #ffffff;
  --ttg36-soft: #f2f5f3;
  --ttg36-map: #e8eeea;
  --ttg36-green: #1f7a4c;
  --ttg36-green-dark: #155c39;
  --ttg36-red: #d92d20;
  --ttg36-blue: #2470b8;
}

.ttg36-download-success-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(7, 10, 14, 0.74);
  opacity: 0;
  transition: opacity 180ms ease;
}

.ttg36-download-success-modal.is-open {
  opacity: 1;
}

.download-success-card {
  position: relative;
  width: min(460px, calc(100vw - 36px));
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #f4f6fb;
  text-align: center;
  background: #141a24;
  border: 1px solid rgba(130, 170, 230, 0.34);
  border-radius: 8px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.66);
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.ttg36-download-success-modal.is-open .download-success-card {
  transform: translateY(0) scale(1);
}

.download-success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #aeb7c8;
  font: 400 22px/1 sans-serif;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.download-success-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.download-success-close:focus-visible,
.download-success-image-link:focus-visible {
  outline: 3px solid #ffcc3d;
  outline-offset: 3px;
}

.download-success-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
}

.download-success-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.download-success-icon circle {
  fill: none;
  stroke: #28c76f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: ttg-success-circle-draw 720ms ease-out forwards;
}

.download-success-icon path {
  fill: none;
  stroke: #28c76f;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: ttg-success-check-draw 420ms 420ms cubic-bezier(.18, .89, .32, 1.28) forwards;
}

.download-success-title {
  margin: 0;
  color: #f7f8fc;
  font-size: 22px;
  letter-spacing: 0;
}

.download-success-body,
.download-success-support {
  margin: 0;
}

.download-success-body {
  max-width: 360px;
  color: #d6dde9;
  font-size: 14px;
  line-height: 1.65;
}

.download-success-support {
  color: #aeb7c8;
  font-size: 13px;
  line-height: 1.55;
}

.download-success-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  justify-items: center;
  gap: 12px;
}

.download-success-action-item {
  width: 100%;
  max-width: 148px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.download-success-or {
  margin-top: 39px;
  color: #ffcc3d;
  font-size: 12px;
  font-weight: 800;
}

.download-success-action-caption {
  min-height: 32px;
  color: #d6dde9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.download-success-image-link {
  width: 118px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  transition: transform 160ms ease;
}

.download-success-image-link:hover {
  transform: translateY(-2px);
}

.download-success-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
  transition: filter 160ms ease, transform 160ms ease;
}

.download-success-image-link:hover img {
  filter: drop-shadow(0 0 8px rgba(255, 204, 61, 0.62)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3));
  transform: scale(1.03);
}

@keyframes ttg-success-circle-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ttg-success-check-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 420px) {
  .download-success-card {
    padding: 26px 18px 22px;
  }

  .download-success-actions {
    gap: 8px;
  }

  .download-success-action-item {
    max-width: 126px;
  }

  .download-success-image-link {
    width: 104px;
    height: 74px;
  }

  .download-success-action-caption {
    font-size: 11px;
  }

  .download-success-or {
    margin-top: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttg36-download-success-modal,
  .download-success-card,
  .download-success-image-link,
  .download-success-image-link img {
    transition: none;
  }

  .download-success-icon circle,
  .download-success-icon path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

html.ttg-v37-booting body {
  margin: 0;
  overflow: hidden;
  background: #f2f5f3;
}

html.ttg-v37-booting body > *:not(#ttg-v377-boot-loader) {
  visibility: hidden !important;
}

#ttg-v377-boot-loader {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  background: #f2f5f3;
}

html.ttg-v37-booting #ttg-v377-boot-loader {
  display: flex;
}

#ttg-v377-boot-loader svg,
#ttg-v377-boot-loader img {
  width: 168px;
  height: 168px;
  filter: drop-shadow(0 12px 24px rgba(23, 34, 27, 0.12));
  animation: ttg377-boot-arrive 0.36s ease-out both;
}

@keyframes ttg377-boot-arrive {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

body.ttg-v36-active {
  margin: 0;
  overflow: hidden;
  background: var(--ttg36-soft);
  color: var(--ttg36-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ttg-v36-active > .app-layout {
  display: none !important;
}

#ttg-v36-app,
#ttg-v36-app * {
  box-sizing: border-box;
}

#ttg-v36-app {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 194px;
  min-width: 320px;
  background: var(--ttg36-soft);
}

.ttg36-header {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(420px, 2fr) minmax(180px, 0.8fr);
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ttg36-line);
  background: var(--ttg36-paper);
}

.ttg36-brand {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ttg36-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttg36-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(64px, 1fr));
  gap: 4px;
  min-width: 0;
}

.ttg36-step-button {
  position: relative;
  min-width: 0;
  height: 40px;
  padding: 3px 8px 5px;
  border: 0;
  background: transparent;
  color: #7c8780;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttg36-step-button::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.ttg36-step-button.is-active {
  color: var(--ttg36-ink);
}

.ttg36-step-button.is-active::after,
.ttg36-step-button.is-complete::after {
  background: var(--ttg36-green);
}

.ttg36-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.ttg36-language {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--ttg36-line);
  border-radius: 6px;
  background: #f7f9f7;
}

.ttg36-language button {
  height: 28px;
  min-width: 34px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #67736b;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.ttg36-language button.is-active {
  background: var(--ttg36-paper);
  color: var(--ttg36-ink);
  box-shadow: 0 1px 4px rgba(25, 45, 32, 0.12);
}

.ttg36-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  background: var(--ttg36-map);
}

.ttg36-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.ttg36-model-pane {
  border-right: 1px solid rgba(23, 34, 27, 0.17);
  isolation: isolate;
  background: #24332c;
}

.ttg36-model-pane::before,
.ttg36-model-pane::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.ttg36-model-pane::before {
  inset: -12px;
  background-image: url("terrain_outdoor_blur_v3710.webp?v=V37_10_OUTDOOR_PREVIEW_LOADING_VISIBILITY_20260712");
  background-position: center;
  background-size: cover;
  filter: saturate(0.92) contrast(1.08) brightness(0.78);
  transform: scale(1.025);
}

.ttg36-model-pane::after {
  background: rgba(18, 28, 23, 0.12);
}

#ttg-v36-model {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.ttg36-final-viewer {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  background: transparent;
  --poster-color: transparent;
  transition: opacity 480ms ease;
}

.ttg36-final-viewer.is-active {
  visibility: visible;
  pointer-events: auto;
}

.ttg36-final-viewer.is-active.is-painted {
  opacity: 1;
}

#glb-preview-card {
  display: none !important;
}

#ttg-v36-model.is-dragging {
  cursor: grabbing;
}

.ttg36-render-loader {
  position: absolute;
  z-index: 540;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(27, 34, 30, 0.86);
  backdrop-filter: blur(8px);
  color: #f8f6ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  opacity: 1;
  transition: opacity 380ms ease;
}

.ttg36-render-loader.is-active {
  display: flex;
}

.ttg36-render-loader.is-leaving {
  opacity: 0;
}

.ttg36-render-loader svg {
  width: 154px;
  height: 154px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.24));
}

.ttg36-render-loader .ttg36-render-hex {
  transform-box: fill-box;
  transform-origin: center;
  animation: ttg36-render-swing 2.6s cubic-bezier(.2,.8,.2,1) infinite;
}

.ttg36-render-loader .ttg36-render-route {
  stroke-dasharray: 12 88;
  animation: ttg36-render-route 0.78s linear infinite;
}

@keyframes ttg36-render-swing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(20deg); }
  42% { transform: rotate(-14deg); }
  64% { transform: rotate(7deg); }
  82% { transform: rotate(-3deg); }
}

@keyframes ttg36-render-route {
  to { stroke-dashoffset: -100; }
}

.ttg36-pane-label,
.ttg36-live-status,
.ttg36-map-mode {
  position: absolute;
  z-index: 510;
  top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(23, 34, 27, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ttg36-ink);
  box-shadow: 0 3px 12px rgba(24, 39, 30, 0.12);
  backdrop-filter: blur(8px);
}

.ttg36-pane-label {
  left: 14px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.ttg36-live-status {
  right: 14px;
  max-width: min(54%, 300px);
  padding: 0 10px;
  color: var(--ttg36-muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttg36-live-status[data-state="loading"]::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ttg36-blue);
  animation: ttg36-pulse 1s ease-in-out infinite;
}

.ttg36-live-status[data-state="ready"]::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ttg36-green);
}

.ttg36-live-status[data-state="error"] {
  color: #9f2d24;
}

@keyframes ttg36-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.ttg36-model-tools {
  position: absolute;
  z-index: 510;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 7px;
}

.ttg36-model-tools .ttg36-button {
  min-height: 34px;
}

.ttg36-model-tools .ttg36-download-button {
  min-width: 116px;
  min-height: 34px;
}

.ttg36-map-pane {
  background: #dce4df;
}

#ttg-v36-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#ttg-v36-map .maplibregl-ctrl-attrib {
  max-width: calc(100% - 12px);
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.85);
  color: #4f5c53;
  font-size: 9px;
  white-space: normal;
}

#ttg-v36-map .maplibregl-canvas {
  outline: 0;
}

#ttg-v36-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(23, 34, 27, 0.2);
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(24, 39, 30, 0.12);
}

#ttg-v36-map .maplibregl-ctrl button {
  width: 32px;
  height: 32px;
}

#ttg-v36-map .maplibregl-ctrl-compass .maplibregl-ctrl-icon {
  transition: none;
}

.ttg36-map-search {
  position: absolute;
  z-index: 520;
  top: 14px;
  left: 50%;
  width: min(520px, calc(100% - 132px));
  transform: translateX(-50%);
}

.ttg36-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(23, 34, 27, 0.22);
  border-radius: 7px;
  background: var(--ttg36-paper);
  box-shadow: 0 6px 18px rgba(26, 43, 32, 0.15);
}

.ttg36-search-row input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ttg36-ink);
  font: inherit;
  font-size: 13px;
}

.ttg36-search-row button {
  min-width: 72px;
  border: 0;
  border-left: 1px solid var(--ttg36-line);
  background: #f4f7f5;
  color: var(--ttg36-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ttg36-search-row button:disabled {
  cursor: wait;
  color: #728078;
}

.ttg36-search-row button.is-loading::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border: 2px solid #b8c3bc;
  border-top-color: var(--ttg36-green);
  border-radius: 50%;
  vertical-align: -2px;
  animation: ttg36-search-spin 0.7s linear infinite;
}

@keyframes ttg36-search-spin {
  to { transform: rotate(360deg); }
}

.ttg36-search-results {
  display: none;
  max-height: 210px;
  margin-top: 5px;
  overflow: auto;
  border: 1px solid rgba(23, 34, 27, 0.18);
  border-radius: 7px;
  background: var(--ttg36-paper);
  box-shadow: 0 8px 24px rgba(26, 43, 32, 0.16);
}

.ttg36-search-results.is-open {
  display: block;
}

.ttg36-search-result {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e7ebe8;
  background: transparent;
  color: var(--ttg36-ink);
  text-align: left;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.ttg36-search-result:last-child {
  border-bottom: 0;
}

.ttg36-search-result:hover,
.ttg36-search-result:focus-visible {
  background: #eef4f0;
}

.ttg36-search-retry {
  color: var(--ttg36-green-dark);
  text-align: center;
  font-weight: 850;
}

.ttg36-search-source {
  padding: 7px 10px;
  border-top: 1px solid #e7ebe8;
  color: #748078;
  font-size: 9px;
  line-height: 1.35;
}

.ttg36-map-mode {
  right: 14px;
  padding: 2px;
}

.ttg36-map-mode button {
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #667169;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.ttg36-map-mode button.is-active {
  background: #e6eee9;
  color: var(--ttg36-green-dark);
}

#ttg-v36-selection-frame {
  position: absolute;
  z-index: 500;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 58%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(10, 16, 12, 0.92);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), 0 3px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

#ttg-v36-selection-frame[data-shape="circle"] {
  border-radius: 50%;
}

#ttg-v36-selection-frame[data-shape="hexagon"] {
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.32));
}

#ttg-v36-selection-frame[data-shape="hexagon"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='25,2 75,2 98,50 75,98 25,98 2,50' fill='none' stroke='%23ffffff' stroke-opacity='.86' stroke-width='5' vector-effect='non-scaling-stroke'/%3E%3Cpolygon points='25,2 75,2 98,50 75,98 25,98 2,50' fill='none' stroke='%23101812' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.ttg36-map-hint {
  position: absolute;
  z-index: 510;
  left: 50%;
  bottom: 12px;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(20, 30, 23, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.ttg36-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--ttg36-line);
  background: var(--ttg36-paper);
}

.ttg36-panel-wrap {
  min-width: 0;
  overflow: auto;
}

.ttg36-panel {
  display: none;
  min-width: 0;
  height: 100%;
}

.ttg36-panel.is-active {
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(0, 2.7fr);
  gap: 18px;
  align-items: start;
}

.ttg36-panel-copy h2 {
  margin: 0 0 5px;
  color: var(--ttg36-ink);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.ttg36-panel-copy p {
  margin: 0;
  color: var(--ttg36-muted);
  font-size: 11px;
  line-height: 1.45;
}

.ttg36-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.ttg36-field {
  display: flex;
  flex: 1 1 132px;
  min-width: 118px;
  max-width: 220px;
  flex-direction: column;
  gap: 5px;
}

.ttg36-field.is-wide {
  flex-basis: 240px;
  max-width: 340px;
}

.ttg36-field > span,
.ttg36-field > label {
  color: #505d54;
  font-size: 10px;
  font-weight: 800;
}

.ttg36-field input[type="number"],
.ttg36-field select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd4ce;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ttg36-ink);
  font: inherit;
  font-size: 12px;
}

.ttg36-field input[type="number"]:focus,
.ttg36-field select:focus {
  border-color: var(--ttg36-green);
  box-shadow: 0 0 0 2px rgba(31, 122, 76, 0.12);
}

.ttg36-range {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 48px;
  align-items: center;
  gap: 8px;
  height: 38px;
}

.ttg36-range input[type="range"] {
  width: 100%;
  accent-color: var(--ttg36-green);
}

.ttg36-range output {
  color: var(--ttg36-ink);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.ttg36-shapes {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 6px;
  flex: 1 1 310px;
  max-width: 390px;
}

.ttg36-shape-button {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cbd4ce;
  border-radius: 7px;
  background: #fff;
  color: #556159;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ttg36-shape-button.is-active {
  border-color: var(--ttg36-green);
  background: #eaf3ed;
  color: var(--ttg36-green-dark);
}

.ttg36-shape-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
}

.ttg36-shape-icon.is-circle {
  border-radius: 50%;
}

.ttg36-shape-icon.is-hexagon {
  border: 0;
  background: currentColor;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  position: relative;
}

.ttg36-shape-icon.is-hexagon::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fff;
  clip-path: inherit;
}

.ttg36-shape-button.is-active .ttg36-shape-icon.is-hexagon::after {
  background: #eaf3ed;
}

.ttg36-file-row {
  display: flex;
  flex: 1 1 360px;
  min-width: 260px;
  align-items: center;
  gap: 8px;
}

.ttg36-file-name {
  min-width: 0;
  color: var(--ttg36-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttg36-mode-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: #edf2ef;
  color: #536158;
  font-size: 10px;
  font-weight: 800;
}

.ttg36-mode-badge.has-track {
  background: #fcebea;
  color: #a72d25;
}

.ttg36-switch {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  color: var(--ttg36-ink);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ttg36-switch input {
  width: 34px;
  height: 19px;
  accent-color: var(--ttg36-green);
}

.ttg36-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #c8d2cb;
  border-radius: 6px;
  background: #fff;
  color: var(--ttg36-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ttg36-button:hover {
  border-color: #99aa9e;
  background: #f6f8f6;
}

.ttg36-button.is-primary {
  border-color: var(--ttg36-green);
  background: var(--ttg36-green);
  color: #fff;
}

.ttg36-button.is-primary:hover {
  border-color: var(--ttg36-green-dark);
  background: var(--ttg36-green-dark);
}

.ttg36-button.is-danger {
  color: #a72d25;
}

.ttg36-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 196px;
}

.ttg36-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  flex: 1 1 520px;
  gap: 6px;
  min-width: 0;
}

.ttg36-summary-item {
  min-width: 0;
  padding: 8px 10px;
  border-left: 2px solid var(--ttg36-line);
}

.ttg36-summary-item span {
  display: block;
  color: var(--ttg36-muted);
  font-size: 9px;
  font-weight: 800;
}

.ttg36-summary-item strong {
  display: block;
  margin-top: 3px;
  color: var(--ttg36-ink);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttg36-generation {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 420px;
  min-width: 280px;
  align-items: center;
  gap: 10px;
}

.ttg36-generation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ttg36-generate-button {
  min-width: 176px;
  min-height: 42px;
}

.ttg36-download-button {
  min-width: 132px;
  min-height: 42px;
  border-color: #d5ad42;
  background: #f4c95d;
  color: #2f2918;
  font-weight: 850;
}

.ttg36-download-button:hover {
  border-color: #c69b2f;
  background: #e9b941;
}

.ttg36-progress-wrap {
  display: grid;
  flex: 1;
  min-width: 130px;
  gap: 5px;
}

.ttg36-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4e9e6;
}

.ttg36-progress > div {
  width: 0;
  height: 100%;
  background: var(--ttg36-green);
  transition: width 160ms ease;
}

.ttg36-generation-status {
  color: var(--ttg36-muted);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttg36-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  #ttg-v36-app {
    grid-template-rows: 58px minmax(0, 1fr) 218px;
  }

  .ttg36-header {
    grid-template-columns: minmax(150px, 0.65fr) minmax(360px, 2fr) auto;
    gap: 10px;
    padding: 0 12px;
  }

  .ttg36-step-button {
    padding-left: 3px;
    padding-right: 3px;
    font-size: 9px;
  }

  .ttg36-controls {
    padding: 12px;
  }

  .ttg36-panel.is-active {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 720px) {
  body.ttg-v36-active {
    overflow: auto;
  }

  #ttg-v36-app {
    position: relative;
    min-height: 100vh;
    grid-template-rows: auto 58vh auto;
  }

  .ttg36-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 46px 42px;
    padding: 0 10px;
  }

  .ttg36-brand {
    font-size: 13px;
  }

  .ttg36-header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .ttg36-steps {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
  }

  .ttg36-step-button {
    height: 38px;
    font-size: 9px;
  }

  .ttg36-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .ttg36-model-pane {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 34, 27, 0.17);
  }

  .ttg36-pane-label,
  .ttg36-live-status,
  .ttg36-map-mode {
    top: 8px;
    min-height: 26px;
  }

  .ttg36-pane-label {
    left: 8px;
  }

  .ttg36-live-status,
  .ttg36-map-mode {
    right: 8px;
  }

  .ttg36-model-tools {
    left: 8px;
    bottom: 8px;
  }

  .ttg36-map-search {
    top: 8px;
    width: calc(100% - 104px);
  }

  .ttg36-search-row input {
    height: 36px;
    font-size: 11px;
  }

  .ttg36-search-row button {
    min-width: 56px;
    font-size: 10px;
  }

  .ttg36-map-hint {
    bottom: 30px;
    max-width: calc(100% - 104px);
    padding: 5px 8px;
    font-size: 9px;
  }

  .ttg36-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 10px 16px;
  }

  .ttg36-panel-wrap {
    overflow: visible;
  }

  .ttg36-panel.is-active {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ttg36-panel-copy h2 {
    font-size: 14px;
  }

  .ttg36-panel-copy p {
    font-size: 10px;
  }

  .ttg36-fields {
    gap: 8px;
  }

  .ttg36-field {
    min-width: 106px;
  }

  .ttg36-shapes {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    flex-basis: 100%;
    max-width: none;
  }

  .ttg36-shape-button {
    height: 42px;
    font-size: 10px;
  }

  .ttg36-file-row {
    min-width: 0;
    flex-basis: 100%;
  }

  .ttg36-summary {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    flex-basis: 100%;
  }

  .ttg36-generation {
    min-width: 0;
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .ttg36-generate-button {
    width: 100%;
  }

  .ttg36-nav {
    width: 100%;
    min-width: 0;
  }

  .ttg36-nav .ttg36-button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttg36-live-status[data-state="loading"]::before {
    animation: none;
  }

  .ttg36-progress > div {
    transition: none;
  }
}

/* V37.11: clean designer shell, readable controls, and touch-safe layout. */
#ttg-v36-app {
  grid-template-rows: 66px minmax(0, 1fr) 190px 34px;
}

.ttg36-header {
  grid-template-columns: minmax(220px, .9fr) minmax(500px, 2.3fr) minmax(230px, .9fr);
}

.ttg36-brand {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.ttg36-step-button {
  min-height: 44px;
  font-size: 13px;
}

.ttg36-language button {
  min-width: 44px;
  height: 36px;
  font-size: 12px;
}

.ttg36-info-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ttg36-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ttg36-ink);
  font: 800 15px/1 inherit;
  cursor: pointer;
}

.ttg36-model-pane::before {
  filter: saturate(1.02) contrast(1.05) brightness(.92);
}

.ttg36-model-pane::after {
  background: rgba(18, 28, 23, .06);
}

.ttg36-pane-label,
.ttg36-live-status,
.ttg36-map-mode button,
.ttg36-map-hint,
.ttg36-search-source,
.ttg36-generation-status {
  font-size: 12px;
}

.ttg36-render-loader {
  font-size: 14px;
}

.ttg36-panel-copy h2 {
  font-size: 18px;
}

.ttg36-panel-copy p,
.ttg36-field > span,
.ttg36-field > label,
.ttg36-file-name,
.ttg36-mode-badge,
.ttg36-switch,
.ttg36-summary-item strong,
.ttg36-button,
.ttg36-shape-button {
  font-size: 13px;
}

.ttg36-summary-item span {
  font-size: 11px;
}

.ttg36-field input[type="number"],
.ttg36-field select {
  height: 42px;
  font-size: 14px;
}

.ttg36-button,
.ttg36-model-tools .ttg36-button {
  min-height: 40px;
}

.ttg36-search-result {
  min-height: 44px;
  font-size: 14px;
}

#ttg-v36-map .maplibregl-ctrl button {
  width: 38px;
  height: 38px;
}

#ttg-v36-selection-frame {
  border: 3px solid rgba(255, 255, 255, .96);
  background: rgba(255, 255, 255, .025);
  box-shadow: 0 0 0 2px rgba(7, 13, 9, .92), inset 0 0 0 1px rgba(7, 13, 9, .45), 0 4px 18px rgba(0, 0, 0, .28);
}

#ttg-v36-selection-frame[data-shape="hexagon"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='25,2 75,2 98,50 75,98 25,98 2,50' fill='none' stroke='%23070d09' stroke-width='7' vector-effect='non-scaling-stroke'/%3E%3Cpolygon points='25,2 75,2 98,50 75,98 25,98 2,50' fill='none' stroke='%23ffffff' stroke-opacity='.98' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

.ttg36-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid var(--ttg36-line);
  background: #f7f9f7;
  color: #68756d;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}

.ttg36-footer span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttg36-footer button,
.ttg36-footer a {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ttg36-green-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ttg36-info-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 21, 16, .58);
  backdrop-filter: blur(6px);
}

.ttg36-info-modal[hidden] {
  display: none;
}

.ttg36-info-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--ttg36-ink);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .25);
}

.ttg36-info-card h2 {
  margin: 0 42px 20px 0;
  font-size: 22px;
}

.ttg36-info-card h3 {
  margin: 18px 0 6px;
  font-size: 15px;
}

.ttg36-info-card p {
  margin: 0;
  color: #556159;
  font-size: 14px;
  line-height: 1.65;
}

.ttg36-info-card a {
  color: var(--ttg36-green-dark);
}

.ttg36-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px !important;
}

.ttg36-info-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ttg36-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ttg36-ink);
  font-size: 18px;
  cursor: pointer;
}

.ttg36-modal-open {
  overflow: hidden !important;
}

#ttg-v36-app button:focus-visible,
#ttg-v36-app input:focus-visible,
#ttg-v36-app select:focus-visible,
#ttg-v36-app a:focus-visible {
  outline: 3px solid rgba(31, 122, 76, .32);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  #ttg-v36-app {
    grid-template-rows: 66px minmax(0, 1fr) 210px 34px;
  }

  .ttg36-header {
    grid-template-columns: minmax(170px, .6fr) minmax(430px, 2fr) auto;
  }

  .ttg36-step-button {
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  html,
  body,
  body.ttg-v36-active {
    max-width: 100%;
    overflow-x: hidden;
  }

  #ttg-v36-app {
    width: 100%;
    min-width: 0;
    grid-template-rows: auto 62vh auto auto;
  }

  .ttg36-header {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 54px 50px;
    gap: 0 8px;
    padding: 0 8px;
  }

  .ttg36-header-actions {
    width: auto;
    min-width: 0;
  }

  .ttg36-brand {
    font-size: 16px;
  }

  .ttg36-info-button,
  .ttg36-language button {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }

  .ttg36-language {
    padding: 0;
  }

  .ttg36-steps {
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .ttg36-steps::-webkit-scrollbar {
    display: none;
  }

  .ttg36-step-button {
    flex: 0 0 auto;
    min-width: 88px;
    height: 46px;
    padding: 4px 10px 7px;
    overflow: visible;
    font-size: 13px;
    text-overflow: clip;
    scroll-snap-align: center;
  }

  .ttg36-workspace,
  .ttg36-pane,
  .ttg36-controls,
  .ttg36-panel-wrap,
  .ttg36-panel {
    width: 100%;
    min-width: 0;
  }

  .ttg36-model-tools {
    right: 8px;
    width: auto;
    max-width: none;
  }

  .ttg36-model-tools .ttg36-button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 5px;
    white-space: normal;
    line-height: 1.2;
  }

  .ttg36-search-row input {
    height: 44px;
    font-size: 16px;
  }

  .ttg36-search-row button {
    min-width: 68px;
    min-height: 44px;
    font-size: 14px;
  }

  .ttg36-map-search {
    width: calc(100% - 92px);
  }

  .ttg36-map-hint {
    max-width: calc(100% - 24px);
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  .ttg36-panel-copy h2 {
    font-size: 18px;
  }

  .ttg36-panel-copy p,
  .ttg36-field > span,
  .ttg36-field > label,
  .ttg36-file-name,
  .ttg36-mode-badge,
  .ttg36-switch,
  .ttg36-summary-item strong,
  .ttg36-generation-status {
    font-size: 14px;
  }

  .ttg36-summary-item span {
    font-size: 12px;
  }

  .ttg36-field input[type="number"],
  .ttg36-field select,
  .ttg36-button,
  .ttg36-shape-button,
  .ttg36-switch {
    min-height: 44px;
    font-size: 14px;
  }

  .ttg36-footer {
    min-height: 56px;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  .ttg36-footer span {
    flex-basis: 100%;
  }

  .ttg36-info-modal {
    padding: 10px;
  }

  .ttg36-info-card {
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
  }
}
