:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202642;
  background: #f2f4fb;
  line-height: 1.55;
  --indigo: #40328f;
  --teal: #076b62;
  --muted: #535d76;
  --border: #d6daea;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.container { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.hero {
  background: radial-gradient(ellipse at top right, #236065, transparent 65%), #292250;
  color: #fff;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-bottom: 5px solid #87e0cb;
}
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.75rem, 7vw, 5rem); letter-spacing: -.07em; }
h1 span { color: #9cebd9; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; }
h3 { font-size: 1.1rem; }
p { margin: .65rem 0 0; }
.hero p { color: #e6e4f7; max-width: 38rem; font-size: 1.1rem; }
main { padding-block: 1.5rem; display: grid; gap: 1rem; }
.card {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 5px 18px #2922500b;
}
.setup h2 { margin-bottom: 1.2rem; }
label, summary { font-weight: 650; }
label { display: block; margin-bottom: .35rem; }
input, textarea, select, button { font: inherit; }
textarea, input:not([type="checkbox"]), select {
  width: 100%;
  border: 1px solid #a8afc7;
  border-radius: .65rem;
  padding: .65rem .8rem;
  color: inherit;
  background: #fafaff;
}
textarea { display: block; resize: vertical; min-height: 9rem; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .85rem; margin-top: 1rem; }
.actions, .live-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.actions { justify-content: space-between; margin-top: 1.4rem; }
button {
  border: 1px solid #b4add8;
  border-radius: .65rem;
  background: #f5f2ff;
  color: var(--indigo);
  font-weight: 700;
  padding: .65rem 1rem;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #e9e2ff; }
button.primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
button.primary:hover:not(:disabled) { background: #302570; }
button:disabled { cursor: default; }
.actions button:disabled { opacity: .65; }
:focus-visible { outline: 3px solid #087e73; outline-offset: 3px; }
summary { cursor: pointer; color: var(--indigo); }
.api, .responsible { padding-block: 1rem; }
.responsible h2 { font-size: 1.15rem; }
.responsible, .api p, footer, .meta { color: var(--muted); }
a { color: var(--indigo); text-underline-offset: .17em; overflow-wrap: anywhere; }
#error { color: #9c243a; font-weight: 650; }
#status:empty, #error:empty { margin: 0; }
.results { display: grid; gap: .85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .85rem; }
.day, .question { padding: 1.15rem; }
.day.done { border-color: #82bfb0; }
.chips { list-style: none; margin: .75rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-block; background: #e5f5f2; color: #105b53; padding: .18rem .6rem; border-radius: .65rem; font-size: .875rem; font-weight: 650; }
.day-number { color: var(--indigo); font-weight: 750; margin: 0 0 .45rem; }
.tasks { list-style: none; padding: 0; }
.tasks label { display: flex; gap: .55rem; font-weight: 450; cursor: pointer; }
.tasks input { flex: none; width: 1.1rem; height: 1.1rem; margin: .23rem 0 0; accent-color: var(--teal); }
.day .meta { font-size: .875rem; }
.demo-note { background: #eee9ff; color: var(--indigo); border-radius: .65rem; padding: .45rem .7rem; font-size: .875rem; }
.progress-label { margin-top: .85rem; font-weight: 700; }
progress { display: block; width: 100%; height: .9rem; accent-color: var(--teal); margin-top: .35rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .5rem; margin-top: .7rem; }
.choices button { text-align: left; overflow-wrap: anywhere; }
.choices .correct { background: #e2f6e9; border-color: #45825d; color: #215b39; }
.choices .incorrect { background: #ffebee; border-color: #ba6273; color: #8d253b; }
.question h3 { margin-top: .65rem; }
.completion button { margin-top: .65rem; }
footer { padding-bottom: 1.5rem; font-size: .875rem; }
.day-number { display: block; font-size: .95rem; }
.question p:empty { margin: 0; }
