html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f3f4f6;
  color: #edf2f7;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

#app-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

#viewer {
  position: absolute;
  inset: 0;
}

#viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#status-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(149, 163, 184, 0.24);
  background: rgba(9, 14, 24, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  line-height: 1.45;
  pointer-events: none;
}

.status-title {
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

#load-status,
#mesh-status {
  color: #cbd5e1;
  font-size: 12px;
}

#load-status.ok {
  color: #86efac;
}

#load-status.error {
  color: #fca5a5;
}

#control-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}

#control-panel .lil-gui {
  --background-color: rgba(10, 15, 25, 0.88);
  --widget-color: rgba(30, 41, 59, 0.96);
  --hover-color: rgba(51, 65, 85, 0.98);
  --focus-color: #38bdf8;
  --number-color: #f8fafc;
  --string-color: #d8b4fe;
  --font-size: 12px;
  --input-font-size: 12px;
  --padding: 6px;
  border: 1px solid rgba(149, 163, 184, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

@media (max-width: 760px) {
  #status-panel {
    right: 14px;
    max-width: none;
  }

  #control-panel {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-height: 45vh;
  }

  #control-panel .lil-gui {
    width: 100%;
  }
}
