/* SceneVoice web player: what styles.css does not already cover.
   Colour tokens, focus rings, buttons, the panel and the status line come from
   ../styles.css, so the contrast check there covers this page too. */

label {
  display: block;
  font-weight: 700;
  margin-top: 1rem;
}

input[type="text"],
input[type="password"],
select {
  display: block;
  width: 100%;
  max-width: 40rem;
  min-height: 44px;
  margin-top: 0.3rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

fieldset {
  margin: 1rem 0;
  padding: 0.5rem 1rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
}

legend {
  font-weight: 700;
  padding: 0 0.3rem;
}

/* A radio or checkbox with its label on one line and its hint under them. */
.choice {
  margin-top: 0.75rem;
}

.choice input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 0.5rem 0 0;
  vertical-align: middle;
}

.choice label {
  display: inline;
  margin: 0;
}

.choice .hint {
  margin: 0.25rem 0 0 1.9rem;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
}

form .button {
  margin-top: 1rem;
}

/* The player region: a bordered block, with its own thick ring when it has focus. */
#player-region {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 6px;
}

#player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel);
}

#player-frame iframe,
#player-frame #player-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#player-controls {
  margin: 1rem 0 0.5rem;
}

#description:empty {
  min-height: 3.5rem;
}

.again .hint {
  display: block;
  margin-top: 0.5rem;
}

/* Settings two by two when there is room; one column on a phone. */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.5rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
