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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101317;
}

button {
  min-width: 132px;
  border: 1px solid #4d5967;
  border-radius: 6px;
  padding: 10px 14px;
  background: #e7eef7;
  color: #111820;
  font: inherit;
  font-weight: 650;
}

button:disabled {
  opacity: 0.45;
}

.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

button + button {
  margin-left: 0;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fb0c2;
  font-size: 14px;
}

select {
  border: 1px solid #4d5967;
  border-radius: 6px;
  padding: 9px 12px;
  background: #151a20;
  color: #eef2f6;
  font: inherit;
}

.app {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #303843;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  margin-bottom: 12px;
  font-size: 15px;
  color: #9fb0c2;
  text-transform: uppercase;
}

.pill {
  border: 1px solid #4d5967;
  border-radius: 999px;
  padding: 4px 10px;
  color: #c9d4df;
  font-size: 13px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.panel {
  border: 1px solid #303843;
  border-radius: 8px;
  padding: 16px;
  background: #151a20;
}

dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

dt {
  color: #9fb0c2;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.log-panel {
  margin-top: 16px;
}

#log {
  height: 260px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #cad5df;
  font-size: 13px;
  line-height: 1.45;
}

#xr-canvas {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .toolbar,
  .brand,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  button + button {
    margin-top: 8px;
    margin-left: 0;
  }
}
