:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #101620;
  color: #ecf1f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 900px;
  margin: auto;
  padding: 36px 20px 60px;
}
.eyebrow {
  letter-spacing: 0.16em;
  color: #8cd2c2;
  font-size: 12px;
  font-weight: 700;
}
h1 {
  font-size: clamp(27px, 5vw, 44px);
  line-height: 1.15;
  margin: 16px 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
.intro,
.note {
  color: #adbbce;
  line-height: 1.6;
}
.panel {
  background: #192230;
  border: 1px solid #304055;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}
form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #bac8da;
}
input,
select,
button {
  font: inherit;
  padding: 14px;
  border-radius: 9px;
  min-height: 48px;
}
input,
select {
  width: 100%;
  border: 1px solid #4a5d77;
  background: #101620;
  color: #ecf1f8;
}
button {
  border: 1px solid #76d8bc;
  background: #76d8bc;
  color: #102820;
  cursor: pointer;
  font-weight: 650;
  touch-action: manipulation;
}
button.secondary {
  background: transparent;
  color: #cad8e9;
  border-color: #4a5d77;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.buttons button {
  flex: 1;
}
#status {
  line-height: 1.5;
  margin-bottom: 0;
  color: #8cd2c2;
  overflow-wrap: anywhere;
}
.stage {
  text-align: center;
}
.stage > span {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #adbbce;
}
output {
  display: block;
  font-size: 88px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
progress {
  width: 100%;
  height: 24px;
  accent-color: #76d8bc;
}
#auto {
  margin-top: 14px;
  width: 100%;
}
dl {
  margin: 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #304055;
}
dt {
  color: #adbbce;
}
dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.note {
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
#trace {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.tv-link {
  display: block;
  padding: 18px;
  margin-bottom: 24px;
  border: 2px solid #64d8ca;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  font-size: 24px;
  text-decoration: none;
}
[hidden] { display: none !important; }
.tv-link:focus-visible { outline: 5px solid #fff; }
@media (max-width: 540px) {
  main {
    padding: 22px 12px;
  }
  .panel {
    padding: 18px;
  }
  dl > div {
    display: block;
  }
  dd {
    text-align: left;
    margin-top: 6px;
  }
}
