:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  color: #20241f;
  background: #f5f6f3;
  font-synthesis: none;
  --muted: #51594e;
  --border: #dce0d7;
  --green: #315039;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(100% - 48px, 780px); margin: 0 auto; padding-bottom: 48px; }
.masthead {
  min-height: 76px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; }
.mark {
  width: 20px; height: 20px; background: var(--green); border-radius: 5px;
  display: inline-grid; place-items: center;
}
.mark::after { content: ""; width: 9px; height: 7px; border: 1px solid #dfefcf; border-inline-width: 0; transform: rotate(-40deg); }
.connection {
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9b9e96; }
.connection[data-online="true"]::before { background: #4a7753; }
.intro, .locked { padding: 54px 0 36px; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 700; margin: 0 0 12px; }
h1 {
  margin: 0; font-size: clamp(32px, 6vw, 61px); line-height: 1.09;
  letter-spacing: -.052em; overflow-wrap: anywhere; font-weight: 720;
}
.subtitle, .locked p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.panel { margin-bottom: 12px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.panel-head, .track > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
h2 { font-size: 17px; margin: 0; letter-spacing: -.02em; }
.mono, code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.panel-head .mono, .track .mono { color: var(--muted); }
.reading { margin: 24px 0 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reading .label { display: block; margin-bottom: 5px; }
.label, .track > div { color: var(--muted); font-size: 12px; }
.reading strong { font-size: clamp(22px, 4vw, 32px); font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
progress { display: block; appearance: none; width: 100%; height: 7px; margin-top: 9px; border: 0; border-radius: 8px; overflow: hidden; background: #e9ede6; }
progress::-webkit-progress-bar { background: #e9ede6; }
progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 8px; }
.unlock-bar { height: 5px; margin-top: 13px; }
.unlock-bar::-webkit-progress-value { background: #78926e; }
.unlock-bar::-moz-progress-bar { background: #78926e; }
.actions, .answer-row { display: flex; flex-wrap: wrap; gap: 8px; }
.actions { margin-top: 19px; }
.actions:empty { display: none; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  min-height: 42px; text-decoration: none; font: inherit; font-size: 13px; font-weight: 650;
  cursor: pointer; padding: 0 13px; background: #f7f8f5; color: #242b22;
  border: 1px solid var(--border); border-radius: 8px;
}
button:not(:disabled):hover, .button:hover { background: #edf0e8; }
.primary { background: #243a29; border-color: #243a29; color: #fff; }
button.primary:not(:disabled):hover, .primary:hover { background: #37513e; }
button:disabled { opacity: .52; cursor: default; }
:focus-visible { outline: 3px solid #527b4e; outline-offset: 3px; }
.note { color: var(--muted); margin: 12px 0 0; font-size: 13px; line-height: 1.55; }
.note:empty { display: none; }
form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
form label { display: block; margin-bottom: 9px; font-size: 14px; }
input {
  flex: 1 1 160px; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #b9c2b6;
  border-radius: 8px; font: inherit; background: #fff; color: inherit;
}
footer { padding: 11px 0 0; display: flex; align-items: center; gap: 10px; }
footer code { flex: 1; overflow-wrap: anywhere; color: #394336; line-height: 1.6; }
footer button { flex: 0 0 auto; min-height: 33px; background: transparent; }
@media (max-width: 500px) {
  .shell { width: calc(100% - 32px); padding-bottom: 28px; }
  .masthead { min-height: 62px; }
  .intro, .locked { padding: 40px 0 25px; }
  .panel { padding: 17px; }
  .reading { margin-top: 18px; }
  footer { flex-wrap: wrap; }
  footer code { flex-basis: 75%; }
}
