:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #111512;
  background: #f2efe6;
  color-scheme: light;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  min-height: 42px;
  border: 1px solid #c1c5bd;
  border-radius: 4px;
  padding: 9px 12px;
  background: #fbf9f2;
  color: #111512;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button:hover,
button[aria-pressed="true"],
button.active {
  background: #17201b;
  color: #fbf9f2;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #dc1e35;
  outline-offset: 2px;
}
button.primary {
  background: #17201b;
  color: #fbf9f2;
  width: 100%;
}
.app-header {
  height: 70px;
  background: #0a0e0c;
  color: #fbf9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 18px;
}
.app-header p {
  font-size: 12px;
  color: #aeb6ae;
}
.brand {
  color: inherit;
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand span {
  font-size: 12px;
  font-weight: 400;
  margin-left: 18px;
  letter-spacing: 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  height: calc(100dvh - 70px);
}
main {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
#stage {
  position: absolute;
  inset: 0;
  touch-action: none;
}
#stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
aside {
  overflow: auto;
  border-left: 1px solid #b9c0b6;
  padding: 20px;
  background: #f2efe6;
  overscroll-behavior: contain;
}
h1 {
  font-size: 25px;
  margin: 8px 0;
  letter-spacing: -0.7px;
}
p {
  line-height: 1.5;
  margin: 8px 0 14px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #59625c;
}
.room-choices,
#views {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.room-choices button {
  flex: 1;
  font-size: 13px;
}
#views {
  margin-top: 12px;
}
#views button {
  background: transparent;
  font-size: 12px;
}
details {
  border-top: 1px solid #b9c0b6;
  margin-top: 18px;
  padding-top: 14px;
}
summary {
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin: 12px 0;
}
select,
input[type="number"] {
  width: 100%;
  padding: 10px;
  background: #fbf9f2;
  border: 1px solid #bbc1b7;
  border-radius: 4px;
  font-size: 14px;
  min-height: 42px;
}
.toggle {
  flex-direction: row;
  align-items: center;
  min-height: 32px;
  gap: 10px;
}
.toggle input {
  width: 18px;
  height: 18px;
  accent-color: #17201b;
}
.paired {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.paired button {
  flex: 1;
  font-size: 12px;
}
#reference-presets {
  display: grid;
  gap: 6px;
}
#staging-feedback {
  font-size: 12px;
  color: #59625c;
}
.error {
  color: #b1172c !important;
}
.mode-controls {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 6px;
}
.mode-controls button {
  background: #fbf9f2e8;
}
.mode-controls button.active {
  background: #17201b;
}
.view-card {
  position: absolute;
  left: 22px;
  bottom: 25px;
  width: min(360px, 45%);
  pointer-events: none;
}
.view-card strong {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.view-card p {
  font-size: 12px;
  color: #46524a;
}
.view-card small {
  font-size: 10px;
  letter-spacing: 0.6px;
}
.zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 5px;
}
.walk-pad {
  display: none;
  position: absolute;
  right: 20px;
  bottom: 76px;
  grid-template-columns: repeat(3, 42px);
  gap: 5px;
}
.walk-pad button {
  font-size: 20px;
  padding: 6px;
}
#forward {
  grid-column: 2;
}
#left {
  grid-column: 1;
}
.inside .walk-pad {
  display: grid;
}
.inside #views {
  display: none;
}
.inside .view-card {
  bottom: 22px;
  background: #f2efe6e8;
  padding: 12px;
  border-radius: 4px;
}
.inside .view-card p {
  display: none;
}
#hint {
  position: absolute;
  top: 69px;
  left: 20px;
  font-size: 11px;
  color: #46524a;
  pointer-events: none;
}
#selection-tools {
  position: absolute;
  bottom: 75px;
  left: 20px;
  right: 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
  background: #f2efe6ef;
  padding: 7px;
  border-radius: 5px;
  box-shadow: 0 4px 16px #0001;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.inside #selection-tools {
  bottom: 185px;
}
#selection-label:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #f2efe6;
  z-index: 10;
  padding: 30px;
  text-align: center;
}
#loading h1 {
  font-size: 36px;
}
#navigation-help {
  position: absolute;
  left: 20px;
  top: 95px;
  padding: 14px;
  background: #f2efe6;
  font-size: 12px;
}
#cutaway-note {
  font-size: 11px;
  color: #59625c;
}
details > button {
  margin: 5px 3px 5px 0;
  font-size: 12px;
}
input[type="range"] {
  accent-color: #17201b;
  width: 100%;
}
@media (max-width: 720px) {
  .app-header {
    height: 62px;
    padding: 12px 16px;
  }
  .brand {
    font-size: 21px;
  }
  .brand span {
    display: block;
    margin: 3px 0 0;
    font-size: 11px;
  }
  .app-header p {
    font-size: 10px;
    max-width: 120px;
    text-align: right;
  }
  .workspace {
    height: calc(100dvh - 62px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 1fr) minmax(120px, 34dvh);
  }
  aside {
    border-left: 0;
    border-top: 1px solid #b9c0b6;
    padding: 14px 16px;
  }
  .mode-controls {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .mode-controls button {
    font-size: 12px;
    flex: 1;
    padding: 8px;
  }
  .view-card {
    display: none;
  }
  #hint {
    font-size: 10px;
    top: 59px;
    left: 14px;
  }
  .zoom-controls {
    bottom: 12px;
    right: 12px;
  }
  .zoom-controls button {
    font-size: 11px;
    padding: 6px 10px;
  }
  .walk-pad {
    right: 12px;
    bottom: 62px;
  }
  #selection-tools {
    bottom: 64px;
    left: 12px;
    font-size: 11px;
  }
  .inside #selection-tools {
    bottom: 165px;
  }
  .eyebrow {
    margin: 0;
  }
  h1 {
    font-size: 21px;
  }
  aside section > p:not(.eyebrow) {
    font-size: 12px;
  }
  details {
    margin-top: 14px;
  }
  #reference-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#views button.active {
  background: #17201b;
  color: #fbf9f2;
}
aside select {
  margin: 6px 0 12px;
}
@media (max-width: 720px) {
  .inside .view-card {
    display: block;
    width: 46%;
    left: 12px;
    bottom: 12px;
    padding: 8px;
  }
  .inside .view-card strong {
    font-size: 14px;
  }
  .inside .view-card small {
    display: none;
  }
}
