html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: 'Alegreya Sans', sans-serif;
}
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#canvas-wrap {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}
canvas {
  display: block;
}
#keyboard {
  flex: 0 0 120px;
  border-top: 1px solid #000;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}
#transcript {
  flex: 1;
  font-size: 18px;
  min-height: 1.4em;
  text-transform: lowercase;
}
#mic-btn {
  padding: 10px 18px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 14px;
}
#mic-btn.listening {
  background: #000;
  color: #fff;
}
.placeholder {
  color: #aaa;
}
.cursor {
  animation: blink 1s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

#intro-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
}

/* top-right toggles: mode ("go broad | go deep") and view ("dynamic | fixed") */
#mode-indicator,
#view-indicator {
  position: absolute;
  right: 20px;
  font-size: 14px;
  color: #aaa;
}
#mode-indicator {
  top: 16px;
}
#view-indicator {
  top: 44px;
}
#mode-indicator span:not(.indicator-label),
#view-indicator span:not(.indicator-label) {
  cursor: pointer;
}
#mode-indicator .active,
#view-indicator .active {
  color: #000;
}
.indicator-label {
  margin-right: 4px;
}

/* top-left: app title, with the command reference stacked below it */
#title {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  pointer-events: none;
}

#command-list {
  position: absolute;
  top: 46px;
  left: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
  pointer-events: none;
}
#command-list .command-phrase {
  color: #666;
}
