/* Inquisitive on a phone. The type and tokens are shared/ui's (base.css);
   this is layout and what is particular to a phone in a lecture hall: big
   targets, one column, nothing that needs a second hand. */

[hidden] { display: none !important; }

/* Inquisitive is set in Helvetica (the instructor's choice), headings too:
   the shared look's Plex and italic Spectral are for the lab's own tools. */
:root[data-app="inquisitive"] {
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.title, h1.title, .top .brand { font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -0.01em; }

html, body { margin: 0; background: var(--desk); color: var(--ink); }
body {
  font: 16px/1.5 var(--sans);
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.top {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}
.top .brand { font-size: 22px; }
.top .course { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.countdown {
  position: sticky; top: 0; z-index: 5;
  background: var(--warn); color: #1b1305;
  font: 600 18px/1 var(--sans); text-align: center;
  padding: 12px;
}

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px; box-sizing: border-box; }
main h1.title { font-size: 26px; margin: 6px 0 10px; line-height: 1.2; }
main p { margin: 8px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hint { color: var(--ink-2); font-size: 14px; }
.ok { color: var(--good); font-weight: 600; }
.msg { background: var(--card); border-left: 3px solid var(--warn); padding: 10px 12px; border-radius: var(--r-sm); }

.stack { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.stack label { display: flex; flex-direction: column; gap: 4px; }
input[type=email], input[type=text], input:not([type]) , input[inputmode] {
  font: 18px var(--sans); padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--sheet); color: var(--ink);
}
button.big { font-size: 18px; padding: 14px 18px; width: 100%; border-radius: var(--r-md); }
button.link { background: none; border: 0; color: var(--accent); padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

.questions { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 14px; }
.q { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px; position: relative; }
.q .prompt { margin: 0 0 12px; font-weight: 500; }
.q .n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px;
  border-radius: 50%; background: var(--accent); color: var(--sheet); font: 600 13px var(--sans);
}
.q .saved { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: var(--good); }

.choices { display: flex; flex-direction: column; gap: 8px; }
.choice {
  text-align: left; font: 16px/1.35 var(--sans); padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); cursor: pointer;
}
.choice.on { border-color: var(--accent); background: var(--accent); color: var(--sheet); font-weight: 600; }

.slider { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; }
.slider output { font: 600 22px var(--sans); text-align: center; }
.slider input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent;
  --fill: 50%;
}
.slider input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--rule) var(--fill));
}
.slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px;
  border-radius: 50%; background: var(--sheet); border: 3px solid var(--accent);
}
.slider input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--rule); }
.slider input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--accent); }
.slider input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--accent); }
.slider input[data-untouched]::-webkit-slider-thumb { border-style: dashed; }
.slider input[data-untouched] + output { color: var(--muted); font-weight: 400; font-size: 15px; }

.entry { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; }
.entry input { flex: 1; min-width: 0; }
.entry .unit { color: var(--ink-2); }

.foot { text-align: center; font-size: 13px; padding: 12px 18px 22px; }
