:root {
  --bg: #fbfbf9;
  --fg: #1d1d1b;
  --muted: #6b6b66;
  --err: #b3261e;
  --input: #1f4e9c;
  --rule: #deded8;
  --button: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --fg: #e6e6e1;
    --muted: #9a9a93;
    --err: #ff8a80;
    --input: #8ab4f8;
    --rule: #33332f;
    --button: #22221f;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
header {
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 8px 16px;
}
h1 { font-size: 16px; margin: 0; }
#status { color: var(--muted); flex: 1; min-width: 12em; }
.actions { display: flex; gap: 8px; }
button {
  background: var(--button);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--fg);
  font: inherit;
  padding: 2px 10px;
}
button:disabled { color: var(--muted); }
/* The circled i that shows and hides the note about Quest and the browsers
 * the page runs in */
#info {
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: bold;
  height: 1.6em;
  line-height: 1;
  padding: 0;
  width: 1.6em;
}
#info[aria-expanded="true"] { background: var(--rule); }
/* One scrolling transcript, as at a terminal: what has been said, and the
 * prompt's line at its end */
#console {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}
#transcript {
  white-space: pre-wrap;
  word-break: break-word;
}
#transcript .err { color: var(--err); }
#transcript .input { color: var(--input); }
#transcript .note { color: var(--muted); font-style: italic; }
#transcript .display { display: block; margin: 4px 0; white-space: normal; }
#transcript .display img { max-width: 100%; }
#transcript .display iframe { border: 1px solid var(--rule); width: 100%; }
#line { display: flex; }
#prompt { color: var(--input); white-space: pre; }
#input {
  background: transparent;
  border: none;
  color: var(--fg);
  flex: 1;
  font: inherit;
  outline: none;
  padding: 0;
}

#support { color: var(--muted); font-size: 0.85em; margin: 0 0 8px; }
#support a { color: var(--input); }
