:root {
  --ats-bg: #070604;
  --ats-panel: rgba(20, 15, 10, 0.94);
  --ats-panel-2: rgba(32, 24, 15, 0.94);
  --ats-line: rgba(214, 170, 91, 0.24);
  --ats-line-strong: rgba(240, 190, 99, 0.48);
  --ats-gold: #d9aa55;
  --ats-gold-2: #f1d08a;
  --ats-amber: #ffcf75;
  --ats-cyan: #6ec5d8;
  --ats-text: #f4ead6;
  --ats-muted: #b7a486;
  --ats-danger: #c5644d;
  --ats-green: #7fb069;
  --ats-shadow: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  color: var(--ats-text);
  background:
    radial-gradient(circle at top, rgba(107, 74, 32, 0.28), transparent 34%),
    linear-gradient(140deg, #050403, #120c07 55%, #050403);
  font-family: Georgia, "Times New Roman", serif;
}
button, input, select { font: inherit; }

.ats-root {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(217, 170, 85, 0.18);
}

.ats-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(17, 12, 8, 0.98), rgba(42, 29, 15, 0.94), rgba(12, 8, 5, 0.98));
  border-bottom: 1px solid var(--ats-line);
  box-shadow: 0 4px 22px var(--ats-shadow);
  z-index: 4;
}

.ats-topbar h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ats-gold-2);
  text-shadow: 0 0 18px rgba(217, 170, 85, 0.25);
}
.ats-topbar h1 span { color: var(--ats-muted); font-size: 13px; letter-spacing: 0.08em; }
.ats-topbar p { margin: 3px 0 0; font-size: 12px; color: var(--ats-muted); }
.ats-top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ats-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(280px, 1fr) 320px;
  gap: 0;
}

.ats-panel {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  background: var(--ats-panel);
  border-color: var(--ats-line);
  scrollbar-color: rgba(217, 170, 85, 0.42) rgba(0, 0, 0, 0.2);
}
.ats-left-panel { border-right: 1px solid var(--ats-line); }
.ats-right-panel { border-left: 1px solid var(--ats-line); }

.ats-section {
  padding: 12px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(40, 28, 16, 0.9), rgba(12, 8, 5, 0.88));
  border: 1px solid var(--ats-line);
  border-radius: 14px;
  box-shadow: inset 0 0 24px rgba(255, 209, 128, 0.025), 0 10px 18px rgba(0,0,0,0.18);
}

.ats-section h2 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ats-gold-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

label {
  display: block;
  margin: 9px 0;
  font-size: 12px;
  color: var(--ats-muted);
}

input, select {
  width: 100%;
  margin-top: 5px;
  color: var(--ats-text);
  background: rgba(5, 4, 3, 0.88);
  border: 1px solid rgba(217, 170, 85, 0.28);
  border-radius: 9px;
  padding: 8px 9px;
  outline: none;
}
input:focus, select:focus { border-color: var(--ats-line-strong); box-shadow: 0 0 0 2px rgba(217,170,85,0.12); }
input[type="range"] { padding: 0; accent-color: var(--ats-gold); }

.ats-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: end; }
.ats-range-row { display: grid; grid-template-columns: 1fr 72px; gap: 7px; align-items: center; }
.ats-range-row input[type="number"] { padding: 7px 6px; }
.ats-check { display: flex; align-items: center; gap: 8px; }
.ats-check input { width: auto; margin: 0; }

.ats-btn {
  color: var(--ats-text);
  background: linear-gradient(180deg, rgba(72, 50, 28, 0.95), rgba(31, 21, 12, 0.96));
  border: 1px solid rgba(217, 170, 85, 0.42);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.08s ease, background 0.08s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.ats-btn:hover { border-color: rgba(241, 208, 138, 0.78); transform: translateY(-1px); filter: brightness(1.08); }
.ats-btn:active { transform: translateY(0); }
.ats-btn-primary {
  width: 100%;
  color: #1b1207;
  background: linear-gradient(180deg, #f0cd80, #ba8332);
  border-color: rgba(255, 228, 160, 0.85);
  font-weight: bold;
}
.ats-btn-ghost { background: rgba(0,0,0,0.18); }
.ats-btn-small { padding: 7px 9px; }
.ats-danger { border-color: rgba(197, 100, 77, 0.65); color: #ffcabd; }
.ats-grid-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ats-grid-buttons .ats-btn-primary { width: auto; }

.ats-viewport-wrap {
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #020201;
  overflow: hidden;
}
#terrainCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.ats-hud {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 10px 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(8, 6, 4, 0.78);
  border: 1px solid var(--ats-line);
  color: var(--ats-muted);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.ats-hud strong { color: var(--ats-gold-2); font-size: 13px; }
.ats-hud span { font-size: 12px; }
#hudHint { color: rgba(241, 208, 138, 0.82); }

.ats-brush-cursor {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(241, 208, 138, 0.86);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 22px rgba(217, 170, 85, 0.28), inset 0 0 18px rgba(217, 170, 85, 0.14);
  display: none;
  transition: width 0.06s linear, height 0.06s linear, border-color 0.08s ease, box-shadow 0.08s ease;
}
.ats-brush-cursor::before,
.ats-brush-cursor::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 1px;
  background: rgba(241, 208, 138, 0.72);
  transform: translate(-50%, -50%);
}
.ats-brush-cursor::after {
  width: 1px;
  height: 10px;
}
.ats-brush-cursor[data-label]::before {
  content: attr(data-label);
  inset: auto auto calc(100% + 7px) 50%;
  width: auto;
  height: auto;
  min-width: 64px;
  padding: 3px 7px;
  border: 1px solid rgba(217, 170, 85, 0.28);
  border-radius: 999px;
  background: rgba(8, 6, 4, 0.82);
  color: var(--ats-gold-2);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.ats-brush-cursor[data-label]::after {
  inset: 50% auto auto 50%;
  width: 1px;
  height: 10px;
}
.ats-brush-cursor.stamp-cursor {
  border-style: dashed;
  border-color: rgba(255, 207, 117, 0.96);
  box-shadow: 0 0 28px rgba(255, 207, 117, 0.34), inset 0 0 20px rgba(255, 207, 117, 0.16);
}
.ats-brush-cursor.painting-cursor {
  border-color: rgba(110, 197, 216, 0.95);
  box-shadow: 0 0 26px rgba(110, 197, 216, 0.3), inset 0 0 18px rgba(110, 197, 216, 0.12);
}

.ats-help {
  position: absolute;
  right: 18px;
  top: 18px;
  max-width: 360px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(14, 10, 6, 0.92);
  border: 1px solid var(--ats-line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 5;
}
.ats-help h2 { margin: 0 0 10px; color: var(--ats-gold-2); }
.ats-help p { color: var(--ats-muted); font-size: 13px; line-height: 1.45; }
.hidden { display: none !important; }

.ats-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  color: var(--ats-muted);
  font-size: 12px;
  background: rgba(10, 7, 4, 0.96);
  border-top: 1px solid var(--ats-line);
}

@media (max-width: 1040px) {
  .ats-layout { grid-template-columns: 240px minmax(220px, 1fr) 260px; }
  .ats-topbar { align-items: flex-start; }
}

@media (max-width: 820px) {
  html, body { overflow: auto; }
  .ats-root { min-height: 100vh; height: auto; grid-template-rows: auto auto auto; }
  .ats-topbar { position: sticky; top: 0; flex-direction: column; align-items: stretch; }
  .ats-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 68vh auto;
  }
  .ats-left-panel, .ats-right-panel { border: 0; max-height: none; overflow: visible; }
  .ats-left-panel { order: 2; }
  .ats-viewport-wrap { order: 1; min-height: 68vh; }
  .ats-right-panel { order: 3; }
  .ats-panel { padding: 10px; }
  .ats-hud { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: flex-start; gap: 3px; }
  #hudHint { display: none; }
}

/* Vumi V1.3a layer/detail UI */
.ats-layer-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.ats-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(217, 170, 85, 0.22);
  border-radius: 9px;
  color: var(--ats-muted);
  background: rgba(5, 4, 3, 0.58);
  cursor: pointer;
  text-align: left;
}
.ats-layer-row:hover {
  border-color: rgba(241, 208, 138, 0.55);
  color: var(--ats-text);
}
.ats-layer-row.active {
  color: var(--ats-gold-2);
  border-color: rgba(241, 208, 138, 0.78);
  background: linear-gradient(180deg, rgba(83, 58, 29, 0.56), rgba(24, 15, 8, 0.72));
  box-shadow: inset 0 0 16px rgba(255, 207, 117, 0.08);
}
.ats-layer-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.ats-layer-row b {
  flex: none;
  font-size: 10px;
  color: rgba(241, 208, 138, 0.78);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Vumi V1.3 spline/profile UI */
.ats-mini-log {
  min-height: 84px;
  max-height: 180px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 9px;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(244, 234, 214, 0.86);
  background: rgba(5, 4, 3, 0.72);
  border: 1px solid rgba(217, 170, 85, 0.22);
  border-radius: 10px;
}
.ats-brush-cursor.spline-cursor {
  border-color: rgba(110, 197, 216, 0.96);
  border-style: solid;
  box-shadow: 0 0 30px rgba(110, 197, 216, 0.34), inset 0 0 20px rgba(110, 197, 216, 0.16);
}

/* Vumi V1.4 visible spline overlay */
.ats-spline-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.ats-note {
  margin: 8px 0 0;
  color: rgba(241, 208, 138, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

/* Vumi V1.4.1 compact sharp editor UI */
:root {
  --ats-radius: 0;
  --ats-panel: rgba(14, 11, 8, 0.96);
  --ats-panel-2: rgba(22, 16, 10, 0.96);
  --ats-line: rgba(214, 170, 91, 0.30);
}
.ats-root { border-radius: 0; }
.ats-topbar {
  padding: 4px 8px;
  gap: 8px;
  min-height: 46px;
  align-items: stretch;
  box-shadow: none;
}
.ats-topbar h1 { font-size: 17px; line-height: 1.05; }
.ats-topbar h1 span { font-size: 11px; }
.ats-topbar p { font-size: 10px; margin-top: 1px; }
.ats-menu-bar {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: wrap;
  margin-left: auto;
}
.ats-menu { position: relative; }
.ats-menu summary,
.ats-menu-btn {
  list-style: none;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  color: var(--ats-text);
  background: rgba(5,4,3,0.72);
  border: 1px solid rgba(217,170,85,0.35);
  border-left: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}
.ats-menu:first-child summary { border-left: 1px solid rgba(217,170,85,0.35); }
.ats-menu summary::-webkit-details-marker { display: none; }
.ats-menu[open] summary,
.ats-menu summary:hover,
.ats-menu-btn:hover {
  color: #171006;
  background: linear-gradient(180deg, #f0cd80, #b98538);
}
.ats-menu-body {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  width: 300px;
  max-height: calc(100vh - 76px);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(217,170,85,0.45);
  background: rgba(10,7,5,0.98);
  z-index: 20;
  box-shadow: 0 18px 34px rgba(0,0,0,0.54);
}
#menuGenerate .ats-menu-body { width: 310px; }
#menuProject .ats-menu-body { width: 330px; }
#menuRealism .ats-menu-body { width: 310px; }
.ats-layout { grid-template-columns: 256px minmax(280px, 1fr) 286px; }
.ats-panel { padding: 0; }
.ats-section {
  margin: 0;
  padding: 8px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(30,21,13,0.92), rgba(10,7,5,0.92));
}
.ats-menu-body .ats-section { border: 0; }
.ats-section h2 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.10em;
}
label {
  margin: 4px 0;
  font-size: 11px;
  line-height: 1.2;
}
input, select {
  margin-top: 2px;
  padding: 4px 6px;
  border-radius: 0;
  min-height: 26px;
}
input[type="range"] { min-height: 20px; }
.ats-row { gap: 0; }
.ats-range-row { grid-template-columns: 1fr 64px; gap: 0; }
.ats-range-row input[type="number"] { padding: 4px; }
.ats-check { gap: 4px; margin: 4px 0; }
.ats-btn {
  border-radius: 0;
  padding: 6px 7px;
  box-shadow: none;
  transform: none !important;
}
.ats-btn:hover { transform: none !important; }
.ats-btn-primary { width: 100%; }
.ats-grid-buttons {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 6px;
}
.ats-grid-tight { margin: 0 0 5px; }
.ats-grid-buttons .ats-btn { margin: -1px 0 0 -1px; }
.ats-hud {
  left: 8px;
  bottom: 8px;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 0;
  box-shadow: none;
}
.ats-hud strong { font-size: 12px; }
.ats-hud span { font-size: 11px; }
.ats-help,
.ats-mini-log,
.ats-brush-cursor[data-label]::before { border-radius: 0; }
.ats-brush-cursor { border-radius: 999px; }
.ats-footer {
  padding: 4px 8px;
  font-size: 11px;
}
.ats-layer-list { gap: 0; margin-top: 6px; }
.ats-layer-row {
  display: grid;
  grid-template-columns: 24px 1fr 24px 24px;
  gap: 0;
  padding: 0;
  border-radius: 0;
  border-color: rgba(217,170,85,0.26);
  background: rgba(4,3,2,0.76);
  margin-top: -1px;
}
.ats-layer-main,
.ats-layer-tool {
  min-width: 0;
  min-height: 27px;
  border: 0;
  border-left: 1px solid rgba(217,170,85,0.16);
  border-radius: 0;
  color: var(--ats-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.ats-layer-tool:first-child { border-left: 0; }
.ats-layer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 6px;
  text-align: left;
}
.ats-layer-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.ats-layer-main b {
  flex: none;
  font-size: 10px;
  color: rgba(241,208,138,0.78);
  font-weight: normal;
}
.ats-layer-tool { font-size: 10px; }
.ats-layer-row.active .ats-layer-main,
.ats-layer-row.active .ats-layer-tool {
  color: var(--ats-gold-2);
  background: rgba(83,58,29,0.48);
}
.ats-layer-row.solo { outline: 1px solid rgba(110,197,216,0.75); outline-offset: -1px; }
.ats-layer-row.locked .ats-layer-main { opacity: 0.72; }
.ats-note { font-size: 10px; margin: 5px 0 0; }
@media (max-width: 1040px) {
  .ats-layout { grid-template-columns: 230px minmax(220px, 1fr) 250px; }
  .ats-topbar { align-items: stretch; }
}
@media (max-width: 820px) {
  .ats-menu-bar { justify-content: flex-start; }
  .ats-menu-body { left: 0; right: auto; width: min(94vw, 330px); }
  .ats-section { padding: 7px; }
}

/* Vumi V1.4.2 workflow/UI correction */
:root {
  --ats-left-width: 278px;
  --ats-right-width: 338px;
}
.ats-layout {
  grid-template-columns: var(--ats-left-width) 6px minmax(260px, 1fr) 6px var(--ats-right-width);
}
.ats-panel {
  overflow: hidden;
  min-width: 210px;
  max-width: 520px;
}
.ats-resize-handle {
  min-width: 6px;
  background: rgba(217,170,85,0.08);
  border-left: 1px solid rgba(217,170,85,0.18);
  border-right: 1px solid rgba(0,0,0,0.45);
  cursor: col-resize;
  z-index: 3;
}
.ats-resize-handle:hover,
.ats-resize-handle:active { background: rgba(241,208,138,0.28); }
.ats-dock {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(8,6,4,0.96);
}
.ats-dock-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 28px;
  border-bottom: 1px solid rgba(217,170,85,0.34);
  background: rgba(5,4,3,0.92);
  overflow-x: auto;
  scrollbar-width: thin;
}
.ats-dock-tab {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid rgba(217,170,85,0.24);
  border-radius: 0;
  color: var(--ats-muted);
  background: rgba(9,7,5,0.95);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}
.ats-dock-tab:hover { color: var(--ats-text); background: rgba(36,26,15,0.95); }
.ats-dock-tab.active {
  color: #151007;
  background: linear-gradient(180deg, #f0cd80, #b98538);
  font-weight: 700;
}
.ats-tab-page {
  min-height: 0;
  display: none;
  overflow: auto;
  scrollbar-color: rgba(217,170,85,0.42) rgba(0,0,0,0.24);
}
.ats-tab-page.active { display: block; }
.ats-tab-page .ats-section { border-bottom: 0; }
.ats-left-panel .ats-section,
.ats-right-panel .ats-section { height: auto; }
.ats-layer-list {
  max-height: min(42vh, 360px);
  overflow: auto;
  border-top: 1px solid rgba(217,170,85,0.22);
  border-bottom: 1px solid rgba(217,170,85,0.22);
}
.ats-layer-row { min-height: 28px; }
.ats-layer-row:hover .ats-layer-main,
.ats-layer-row:hover .ats-layer-tool { background: rgba(54,38,21,0.52); color: var(--ats-text); }
.ats-layer-row.active .ats-layer-main,
.ats-layer-row.active .ats-layer-tool {
  color: #1a1208;
  background: linear-gradient(180deg, #f0cd80, #b98538);
  font-weight: 700;
}
.ats-layer-row.locked .ats-lock { color: #ffc6b8; }
.ats-layer-row.solo .ats-solo { color: #061216; background: rgba(110,197,216,0.95); }
.ats-eye,
.ats-solo,
.ats-lock { font-family: Consolas, "Courier New", monospace; }
.ats-menu-body .ats-section { padding: 8px; }
.ats-menu-body { width: 330px; }
.ats-brush-cursor.stamp-cursor {
  outline: 1px dashed rgba(255,207,117,0.58);
  outline-offset: 5px;
}
.ats-brush-cursor.stamp-cursor::before {
  color: #171006;
  background: rgba(241,208,138,0.96);
  border-color: rgba(255,228,160,0.95);
}
#sectionSplines .ats-note,
.ats-layer-hint { color: rgba(241,208,138,0.82); }
#sectionSplines label:has(#splineWidth)::after,
#sectionSplines label:has(#splineFeather)::after {
  content: " smaller values = safer roads";
  display: block;
  color: rgba(183,164,134,0.75);
  font-size: 10px;
  margin-top: 1px;
}
@media (max-width: 1040px) {
  :root { --ats-left-width: 238px; --ats-right-width: 282px; }
  .ats-layout { grid-template-columns: var(--ats-left-width) 5px minmax(220px,1fr) 5px var(--ats-right-width); }
}
@media (max-width: 820px) {
  .ats-layout { grid-template-columns: 1fr; grid-template-rows: auto auto 68vh auto auto; }
  .ats-resize-handle { display: none; }
  .ats-left-panel, .ats-right-panel { max-width: none; overflow: visible; }
  .ats-dock { height: auto; }
  .ats-tab-page { max-height: none; overflow: visible; }
}

/* Vumi V1.4.3 professional split-dock layout */
:root {
  --ats-left-width: 300px;
  --ats-right-width: 360px;
  --ats-left-top-height: 46%;
  --ats-right-top-height: 34%;
}
.ats-topbar { padding: 6px 8px; gap: 8px; }
.ats-topbar h1 { font-size: 17px; }
.ats-topbar p { font-size: 11px; margin-top: 1px; }
.ats-menu-bar { gap: 0 !important; }
.ats-panel { padding: 0 !important; overflow: hidden !important; }
.ats-dock-split {
  height: 100%;
  min-height: 0;
  display: grid;
  background: rgba(6,5,3,0.98);
}
.ats-dock-split-left { grid-template-rows: var(--ats-left-top-height) 6px minmax(120px,1fr); }
.ats-dock-split-right { grid-template-rows: var(--ats-right-top-height) 6px minmax(160px,1fr); }
.ats-resize-y {
  min-height: 6px;
  cursor: row-resize;
  background: rgba(217,170,85,0.10);
  border-top: 1px solid rgba(217,170,85,0.22);
  border-bottom: 1px solid rgba(0,0,0,0.65);
  z-index: 3;
}
.ats-resize-y:hover,
.ats-resize-y:active { background: rgba(241,208,138,0.30); }
.ats-dock {
  min-height: 0;
  height: 100%;
  border: 0;
  border-bottom: 1px solid rgba(217,170,85,0.22);
  background: rgba(7,6,4,0.97);
}
.ats-dock-tabs {
  min-height: 25px;
  height: 25px;
  overflow: hidden;
}
.ats-dock-tab {
  min-height: 25px;
  padding: 0 7px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ats-tab-page { overflow: auto; padding: 0; }
.ats-section {
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, rgba(24,17,10,0.92), rgba(8,6,4,0.94)) !important;
}
.ats-section h2 { font-size: 12px; margin: 0 0 5px; letter-spacing: .10em; }
label { margin: 5px 0; font-size: 11px; }
input, select { margin-top: 2px; padding: 4px 5px; border-radius: 0 !important; min-height: 25px; }
.ats-range-row { grid-template-columns: 1fr 58px; gap: 2px; }
.ats-row { gap: 2px; }
.ats-grid-buttons { gap: 0 !important; margin-top: 5px; }
.ats-btn,
.ats-menu-btn {
  border-radius: 0 !important;
  padding: 5px 6px !important;
  box-shadow: none !important;
  transform: none !important;
}
.ats-btn:hover,
.ats-menu-btn:hover { transform: none !important; }
.ats-layer-list { max-height: none; height: min(34vh, 250px); }
.ats-layer-row { display: grid; grid-template-columns: 24px 1fr 24px 24px; min-height: 25px; border-bottom: 1px solid rgba(217,170,85,.14); }
.ats-layer-main,
.ats-layer-tool { min-height: 25px; border-radius: 0 !important; }
.ats-layer-hint { margin: 3px 0 !important; font-size: 10px; }
.ats-scale-note { margin: 3px 0; font-size: 10px; color: rgba(241,208,138,.75); }
.ats-mini-log { max-height: 105px; overflow: auto; font-size: 10.5px; }
.ats-hud { border-radius: 0 !important; left: 8px; bottom: 8px; padding: 5px 7px; gap: 5px 7px; }
.ats-help { border-radius: 0 !important; }
@media (max-width: 900px) {
  .ats-dock-split-left,
  .ats-dock-split-right { grid-template-rows: auto 0 auto; }
  .ats-resize-y { display: none; }
}
