:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #253d35;
  background: #f6f4ee;
  font-synthesis: none;
  --green: #254f3f;
  --muted: #6a776e;
  --line: #dedfd5;
  --paper: #fffef9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #cb8b37;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  padding: 10px 15px;
  color: inherit;
  font-weight: 600;
}
button:hover {
  border-color: #768d7d;
  background: #f1f3e9;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #34654f;
  color: white;
}
.quiet {
  background: transparent;
}
.danger {
  color: #9c3b36;
}
.small {
  padding: 7px 10px;
  font-size: 13px;
}
.shell {
  max-width: 1100px;
  margin: auto;
  padding: 0 32px 64px;
}
header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 750;
  font-size: 23px;
  letter-spacing: -1px;
}
.brandmark {
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 11px;
  width: 35px;
  height: 35px;
  font-size: 23px;
}
.private {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
nav button {
  background: transparent;
  border-color: transparent;
  font-weight: 500;
}
nav button.active {
  background: #e7ebdf;
  color: #214735;
  font-weight: 700;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 42px 0 27px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--muted);
  margin: 0 0 10px;
}
h1 {
  font-family: Georgia, serif;
  font-size: 46px;
  letter-spacing: -1.7px;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.12;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0;
}
h3 {
  margin: 0 0 9px;
  font-size: 19px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.intro p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
}
.hero {
  background: #e8eddd;
  border: 1px solid #d4ddc6;
  padding: 29px;
  border-radius: 17px;
  margin-bottom: 30px;
  position: relative;
}
.hero h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  margin: 16px 0 8px;
  letter-spacing: -0.8px;
}
.hero .eyebrow {
  color: #4e6743;
}
.hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  font-size: 12px;
  background: #f8faef;
  border: 1px solid #d3ddc3;
  padding: 6px 10px;
  border-radius: 30px;
  white-space: nowrap;
}
.notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.levels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.level {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 5px;
  min-width: 90px;
  background: #f9faf2;
  border-color: #cdd7c1;
  font-weight: 500;
  font-size: 13px;
}
.level strong {
  font-size: 16px;
}
.level.selected {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.text-button {
  border: none;
  background: transparent;
  padding: 5px;
  font-size: 12px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 16px;
}
.count {
  font-size: 12px;
  color: var(--muted);
}
.task {
  background: var(--paper);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.task h3 {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.task .levels {
  margin: 12px 0;
}
.task .level {
  min-width: 70px;
  padding: 8px 11px;
  font-size: 12px;
}
.task .level strong {
  font-size: 13px;
}
.task .notes {
  margin-bottom: 8px;
}
.done {
  opacity: 0.75;
}
.side-card {
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 14px;
  background: #eeeee5;
  margin-bottom: 18px;
}
.score {
  font-family: Georgia, serif;
  font-size: 66px;
  line-height: 1.2;
  letter-spacing: -3px;
  margin: 14px 0 4px;
}
.score span {
  font-family: inherit;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 7px;
  accent-color: var(--green);
  margin: 16px 0;
}
.stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px solid #d9ddcf;
}
.side-card .muted {
  font-size: 12px;
}
.bundle-short {
  width: 100%;
  text-align: left;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.empty {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed #cbd3c3;
  border-radius: 14px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.library-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.library-card .actions {
  margin-top: 20px;
}
.library-card h3 {
  overflow-wrap: anywhere;
}
.tag {
  font-size: 11px;
  background: #eaf0e3;
  padding: 4px 7px;
  border-radius: 5px;
  margin: 3px 3px 3px 0;
  display: inline-block;
}
.library-section {
  margin: 30px 0;
}
.history-row {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--paper);
}
summary {
  cursor: pointer;
  font-weight: 600;
}
summary span {
  float: right;
}
details .history-items {
  margin-top: 20px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.settings {
  max-width: 550px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 17px 0 7px;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid #c9d0c4;
  background: #fffefb;
  padding: 11px 12px;
  border-radius: 8px;
  color: inherit;
}
textarea {
  resize: vertical;
  min-height: 75px;
}
input:focus,
textarea:focus {
  outline: 2px solid #8caa78;
  outline-offset: 1px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 7px 0 16px;
}
.login {
  max-width: 410px;
  margin: 12vh auto;
  padding: 30px;
}
.login h1 {
  font-size: 42px;
  margin-top: 45px;
}
.login button[type="submit"] {
  width: 100%;
  margin-top: 22px;
}
.error {
  color: #a33e35;
  font-size: 13px;
  min-height: 20px;
}
.loading {
  text-align: center;
  margin: 20vh 0;
  color: var(--muted);
}
dialog {
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(570px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 28px;
  box-shadow: 0 30px 100px #15241c33;
}
dialog::backdrop {
  background: #17281e66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
dialog h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}
.level-row {
  display: grid;
  grid-template-columns: 1fr 100px 38px;
  gap: 8px;
  margin: 8px 0;
}
.level-row button {
  padding: 5px;
}
.level-labels {
  display: grid;
  grid-template-columns: 1fr 146px;
  color: var(--muted);
  font-size: 11px;
}
.weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.weekdays label,
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
  margin: 7px 0;
  background: #f0f2e9;
  padding: 8px;
  border-radius: 7px;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  gap: 12px;
}
.dialog-actions .actions {
  justify-content: flex-end;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.closed-heading {
  margin-top: 30px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #253d35;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 25px #0002;
  max-width: 90%;
  z-index: 10;
  display: none;
}
#toast.visible {
  display: block;
}
.full {
  width: 100%;
}
button {
  transition: background 0.15s;
}
@media (max-width: 760px) {
  .shell {
    padding: 0 18px 40px;
  }
  header {
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    padding: 20px 0 12px;
    gap: 14px;
  }
  .private {
    display: none;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  nav button {
    font-size: 13px;
    padding: 9px 10px;
  }
  .intro {
    margin: 29px 0 23px;
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 38px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 23px;
    margin-bottom: 25px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .side-card {
    margin-bottom: 0;
  }
  .sidebar .side-card + .side-card {
    margin-top: 15px;
  }
  .score {
    font-size: 48px;
  }
  .task-footer {
    flex-wrap: wrap;
  }
  .level {
    min-width: 75px;
  }
  .task-head .pill {
    font-size: 11px;
  }
  dialog {
    padding: 22px;
  }
  .login {
    margin: 7vh auto;
  }
  .level-row {
    grid-template-columns: 1fr 75px 35px;
  }
  .level-labels {
    grid-template-columns: 1fr 118px;
  }
}
