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

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}

button {
  background: #17202c;
  border: 1px solid #344257;
  border-radius: 6px;
  color: #eef2f6;
  cursor: pointer;
  font: inherit;
  min-height: 30px;
  padding: 0 11px;
}

button:hover {
  background: #223043;
}

.viewport-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
}

.topbar {
  align-items: center;
  background: #0d1118;
  border-bottom: 1px solid #263142;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 46px;
  padding: 7px 10px 7px 14px;
}

.viewport-description {
  color: #c7d3e1;
  font-size: 13px;
  line-height: 1.25;
  margin: 0;
}

.view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}

.view-switch button[aria-pressed="true"] {
  background: #24476c;
  border-color: #6aa9e6;
  color: #fff;
}

.stage {
  min-height: 0;
  overflow: hidden;
  position: relative;
}

#viewport-canvas {
  background: #0b0f16;
  display: block;
  height: 100%;
  min-width: 0;
  width: 100%;
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
    padding-left: 10px;
  }

  .viewport-description {
    font-size: 12px;
  }
}
