* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: #0a0d13; color: #dbe3ee;
  font: 14px/1.45 ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
}
#app { display: flex; height: 100vh; }
#stage-wrap { flex: 1; min-width: 0; }
#scene { width: 100%; height: 100%; display: block; }

#panel {
  width: 300px; flex: none; overflow-y: auto;
  background: #10151d; border-left: 1px solid #1f2733;
  padding: 18px 18px 30px;
}
h1 { font-size: 19px; margin-bottom: 14px; }
h1 .sub { color: #6d7887; font-weight: 500; font-size: 13px; margin-left: 6px; }
section { margin-bottom: 18px; }
h2 {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #7d8898; margin-bottom: 8px;
}
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; }
button {
  background: #1a2230; color: #c6d0de; border: 1px solid #2b3648;
  border-radius: 8px; padding: 7px 12px; font: inherit; cursor: pointer;
}
button:hover { border-color: #4a86d8; }
button.active { background: #24466e; border-color: #4a86d8; color: #fff; }
input[type=range] { width: 100%; accent-color: #4a86d8; }
.row-between { display: flex; justify-content: space-between; }
.meta { color: #aab5c4; }
.dim { color: #6d7887; font-size: 12px; }
.legend { list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #aab5c4; font-size: 13px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.foot { margin-top: 16px; }
@media (max-width: 760px) {
  #app { flex-direction: column; }
  #panel { width: 100%; height: 45vh; border-left: none; border-top: 1px solid #1f2733; }
}
