:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #11171c;
  color: #edf2f5;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #11171c; }
button, input { font: inherit; }

.fu-construction-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 100vh;
}

.fu-stage-wrap { position: relative; min-height: 640px; background: #c8d0d5; }
.fu-stage { position: absolute; inset: 0; min-height: 480px; }
.fu-stage canvas { display: block; width: 100%; height: 100%; }

.fu-stage-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  padding: 0.45rem 0.65rem;
  border-radius: 0.45rem;
  background: rgb(18 25 31 / 82%);
  color: #fff;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.fu-panel {
  padding: 1rem;
  overflow: auto;
  border-left: 1px solid #303a42;
  background: #172027;
}

.fu-panel h1 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.fu-panel p { margin: 0 0 1rem; color: #b9c4ca; line-height: 1.45; }
.fu-status { min-height: 1.4rem; color: #cdd7dc; font-size: 0.85rem; }

.fu-asset-card {
  margin: 0.85rem 0;
  padding: 0.85rem;
  border: 1px solid #34424c;
  border-radius: 0.65rem;
  background: #1c2830;
}

.fu-asset-card h2 { margin: 0 0 0.65rem; font-size: 1rem; }
.fu-joint { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.6rem; margin: 0.7rem 0; }
.fu-joint label { font-size: 0.82rem; color: #d7e0e5; }
.fu-joint output { min-width: 4rem; text-align: right; font-variant-numeric: tabular-nums; color: #c4d7e2; }
.fu-joint input[type="range"] { grid-column: 1 / -1; width: 100%; }

.fu-help {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #34424c;
  color: #b7c3ca;
  font-size: 0.8rem;
  line-height: 1.55;
}
.fu-help code { color: #f2f5f7; }
.fu-error { color: #ffb5b5; }

@media (max-width: 900px) {
  .fu-construction-shell { grid-template-columns: 1fr; }
  .fu-stage-wrap { min-height: 60vh; }
  .fu-panel { border-left: 0; border-top: 1px solid #303a42; }
}
