:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --ink: #203c32;
  --quiet: #54665c;
  --line: #d9dfd3;
  --green: #254f40;
  --sage: #e6eddf;
  --peach: #f8c193;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a96337;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
svg.icon {
  width: 21px;
  height: 21px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
button svg {
  pointer-events: none;
}
.skip {
  position: fixed;
  z-index: 9;
  top: -100px;
  left: 12px;
  background: white;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 40px 19px 26px;
  background: var(--rail, #edf0e6);
  border-right: 1px solid var(--line, #dce2d5);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 29px/1 var(--serif);
  letter-spacing: -1.6px;
  min-height: 44px;
  padding: 0 12px;
  align-self: flex-start;
}
.brand-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-art svg {
  width: 35px;
  height: 35px;
}
.desktop-nav {
  display: grid;
  gap: 5px;
  margin-top: 58px;
}
.navbtn,
.side-help {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border-radius: 11px;
  padding: 13px 16px;
  font-weight: 550;
  color: var(--quiet, #4f6356);
}
.navbtn.active {
  background: var(--sage, #d7e2cf);
  color: var(--ink, #204337);
}
.navbtn:hover,
.side-help:hover {
  background: var(--sage, #dfe7d8);
}
.side-help {
  margin-top: auto;
  font-size: 14px;
}
.side-help span,
.mobile-info {
  display: flex;
}
.mobile-nav,
.mobile-bar {
  display: none;
}
main {
  margin-left: 232px;
  padding: 50px clamp(30px, 5.6vw, 90px) 65px;
  outline: none;
}
.page {
  max-width: 1100px;
  margin: auto;
}
.topline,
.section-heading,
.hero-meta,
.actions,
.rowline,
.meta,
.small-heading {
  display: flex;
  align-items: center;
}
.topline,
.section-heading,
.rowline {
  justify-content: space-between;
  gap: 15px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}
.dateline {
  color: var(--quiet);
}
.top-pause,
.chip,
.small-link,
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
}
.top-pause {
  border: 1px solid var(--line, #ccd5c6);
  border-radius: 100px;
  padding: 9px 15px;
  min-height: 42px;
}
.top-pause:hover,
.secondary:hover {
  background: var(--sage, #e8eddf);
}
.top-pause .icon {
  width: 18px;
  height: 18px;
}
.page-heading {
  margin: 13px 0 28px;
}
.page-heading h1 {
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.06;
}
.page-heading p {
  margin-top: 10px;
  color: var(--quiet);
  font-size: 16px;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #214c3a url("./assets/morning-lake.webp") center/cover;
  border-radius: 23px;
  min-height: 306px;
  color: #fffbed;
  padding: 38px clamp(26px, 3.1vw, 52px);
  display: flex;
  align-items: center;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(15, 48, 35, 0.94),
    rgba(21, 58, 42, 0.78) 34%,
    rgba(23, 58, 40, 0.19) 60%,
    transparent 83%
  );
}
.hero-body {
  max-width: 56%;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fad0a8;
}
.hero .eyebrow:before {
  content: "";
  display: block;
  width: 23px;
  height: 1px;
  background: currentColor;
}
.hero h2 {
  margin: 13px 0 9px;
  font-size: clamp(35px, 4vw, 57px);
  line-height: 1.03;
  max-width: 15ch;
}
.hero p {
  color: #f3f2e4;
  font-size: 16px;
  max-width: 36ch;
}
.hero-meta {
  gap: 15px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.duration .icon {
  width: 16px;
  height: 16px;
}
.primary,
.secondary,
.peach,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 650;
  padding: 11px 22px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: var(--green, #16382d);
}
.peach {
  background: var(--peach);
  color: #263b2e;
}
.peach:hover {
  background: #ffd3ae;
}
.secondary {
  border: 1px solid var(--line, #c7d1c2);
}
.danger {
  background: #923b32;
  color: white;
}
.primary .icon,
.peach .icon,
.small-link .icon {
  width: 17px;
  height: 17px;
}
.section {
  margin-top: 33px;
}
.section-heading {
  margin-bottom: 15px;
}
.section-heading h2,
.panel h2 {
  font-size: 29px;
}
.small-link {
  min-height: 44px;
  padding: 2px 0;
}
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-columns: 52px 1fr 17px;
  align-items: center;
  gap: 15px;
  padding: 24px;
  border-radius: 17px;
  min-height: 105px;
  border: 1px solid transparent;
}
.tool-card.sage {
  background: var(--sage, #e7eddf);
  border-color: var(--line, #dae3d2);
}
.tool-card.clay {
  background: var(--warm-panel, #f4e8dc);
  border-color: var(--line, #eadbcb);
}
.tool-card:hover {
  filter: brightness(0.978);
}
.medal {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--sage, #d5e2cd);
  color: var(--ink, #355c42);
}
.clay .medal {
  background: var(--warm-panel, #edd7bd);
  color: var(--warm-ink, #7f5235);
}
.medal .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.5;
}
.tool-copy {
  display: grid;
  gap: 4px;
}
.tool-copy strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.tool-copy small {
  font-size: 14px;
  color: var(--quiet, #4d6054);
  line-height: 1.4;
}
.tool-card > .icon {
  width: 17px;
}
.week {
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface, #fbfbf6);
}
.week p {
  font-size: 14px;
  color: var(--quiet);
  margin-top: 5px;
}
.week h3 {
  font-size: 23px;
}
.days {
  display: flex;
  align-items: center;
  gap: 12px;
}
.weekday {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--quiet);
  font-weight: 600;
}
.day-dot {
  width: 28px;
  height: 28px;
  border: 1px dashed var(--line, #bac6b6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 10px;
}
.weekday.current .day-dot {
  outline: 2px solid var(--green, #4d7052);
  outline-offset: 2px;
  border-color: transparent;
  background: var(--sage, #dbe7d2);
}
.weekday.done .day-dot {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.day-dot .icon {
  width: 15px;
  height: 15px;
}
.section-note {
  color: var(--quiet);
  font-size: 14px;
}
.detail {
  max-width: 720px;
}
.detail-wide {
  max-width: 870px;
}
.back {
  padding: 0 0 4px;
  min-height: 44px;
  color: var(--quiet);
}
.back .icon {
  width: 17px;
}
.intro {
  margin: 16px 0 25px;
}
.intro .eyebrow {
  color: var(--quiet);
  margin-bottom: 9px;
}
.intro h1 {
  font-size: clamp(37px, 4.3vw, 55px);
}
.intro p {
  margin-top: 9px;
  color: var(--quiet);
  max-width: 60ch;
}
.panel,
.list-card {
  background: var(--surface, #fffef9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.stack {
  display: grid;
  gap: 14px;
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--quiet);
  margin: 24px 0 10px;
}
.step-track {
  display: flex;
  gap: 6px;
  margin-bottom: 25px;
}
.step-track i {
  height: 5px;
  border-radius: 9px;
  background: var(--sage, #e0e5da);
  flex: 1;
}
.step-track i.filled {
  background: var(--green, #638164);
}
.panel p,
.prose p {
  line-height: 1.62;
}
.lesson-body {
  margin: 12px 0 22px;
}
.field {
  display: block;
  margin: 16px 0;
}
.field > span,
fieldset legend {
  display: block;
  font-weight: 650;
  margin-bottom: 7px;
}
.field textarea,
.field select,
.field input[type="text"] {
  width: 100%;
  border: 1px solid var(--line, #b9c6b6);
  border-radius: 10px;
  background: var(--surface, #fffefb);
  color: var(--ink);
  padding: 11px 13px;
}
.field textarea {
  resize: vertical;
  min-height: 97px;
  line-height: 1.45;
}
.field textarea::placeholder {
  color: var(--quiet, #68776b);
  opacity: 1;
}
.example {
  font-size: 14px;
  color: var(--quiet);
  background: var(--sage, #f0f3eb);
  border-left: 3px solid #a1b497;
  padding: 10px 14px;
  margin: 14px 0;
}
.actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions.spread {
  justify-content: space-between;
}
.quiet {
  font-size: 14px;
  color: var(--quiet);
}
.line-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 3px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.line-button:first-child {
  border-top: 0;
}
.line-button .row-copy {
  flex: 1;
  min-width: 0;
}
.row-copy strong {
  display: block;
  font-size: 17px;
}
.row-copy small {
  display: block;
  color: var(--quiet);
  font-size: 14px;
  margin-top: 2px;
}
.number {
  font-size: 14px;
  border-radius: 50%;
  background: var(--sage, #e9ede2);
  color: var(--quiet, #47604c);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.number.done {
  background: var(--green);
  color: white;
}
.number .icon {
  width: 16px;
}
.line-button > .icon {
  width: 17px;
}
.list-card {
  padding: 2px 21px;
}
.progress {
  height: 8px;
  border-radius: 10px;
  background: var(--sage, #e1e6db);
  overflow: hidden;
  margin-top: 12px;
}
.progress span,
.meter span {
  height: 100%;
  background: var(--green, #648865);
  display: block;
}
.progress progress {
  width: 100%;
}
.trail {
  margin: 15px 0 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage);
  color: var(--ink);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 650;
}
.entry-info {
  color: var(--quiet);
  font-size: 13px;
}
.entry-text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.journal-situation {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.range-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.range-row input {
  width: 100%;
  accent-color: var(--green);
  min-height: 38px;
}
.range-row output {
  font-weight: bold;
  min-width: 3.4em;
  font-variant-numeric: tabular-nums;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--quiet);
}
.field-note {
  font-size: 13px;
  color: var(--quiet);
  margin: 3px 0 8px;
}
.select-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.select-line select {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface, #fffef9);
  padding: 8px;
  font: inherit;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  background: var(--sage, #e7edde);
  padding: 18px;
  border-radius: 15px;
}
.stat b {
  display: block;
  font: 38px var(--serif);
}
.stat span {
  font-size: 14px;
  color: var(--quiet);
}
.barline {
  padding: 9px 0;
}
.meter {
  background: var(--sage, #e7ecdf);
  border-radius: 5px;
  height: 7px;
  margin-top: 6px;
  overflow: hidden;
}
.breath-wrap {
  text-align: center;
  padding: 30px 20px;
  background: var(--sage, #e7eddf);
  border: 1px solid var(--line, #d7e1ce);
  border-radius: 20px;
}
.breath-circle {
  --breath-fill: #a8c1ac;
  --breath-ink: #234b40;
  --breath-scale: 0.68;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 188px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border: 1px solid #99aca0;
  border-radius: 50%;
  background: var(--surface, #f2f4e9);
  color: var(--breath-ink);
}
.breath-circle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: inherit;
  transform: scale(var(--breath-scale));
  background: var(--breath-fill);
  box-shadow: inset 0 0 0 7px #ffffff24;
}
.breath-circle .icon {
  width: 33px;
  height: 33px;
}
.breath-wrap[data-phase="inhale"] .breath-circle {
  --breath-fill: #286e68;
  --breath-ink: #fffdf1;
}
.breath-wrap[data-phase="exhale"] .breath-circle {
  --breath-fill: #eda76b;
  --breath-ink: #422f24;
}
.breath-wrap[data-phase] .breath-circle .icon,
#breath-count:empty {
  display: none;
}
#breath-count {
  font: 38px/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.countdown {
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  min-height: 1.5em;
}
.prose h2 {
  margin: 22px 0 8px;
  font-size: 25px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose a {
  overflow-wrap: anywhere;
}
.answer {
  margin: 15px 0;
}
.answer dt {
  font-weight: 650;
}
.answer dd {
  margin: 3px 0;
  color: var(--quiet);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.danger-text {
  color: var(--error-ink, #883c30);
  font-size: 14px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 4px;
}
.empty-icon {
  margin-bottom: 10px;
  color: var(--quiet, #58765c);
}
.empty-icon .icon {
  width: 28px;
  height: 28px;
}
.notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  padding: 12px 22px;
  border-radius: 12px;
  background: #223e32;
  color: white;
  max-width: 90vw;
  box-shadow: 0 4px 20px #203e3422;
  font-size: 14px;
}
.notification:empty {
  display: none;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: min(90vw, 400px);
  background: var(--paper);
  padding: 24px;
}
dialog h2 {
  font-size: 28px;
}
dialog p {
  margin-top: 10px;
}
dialog::backdrop {
  background: #18312569;
}
@media (min-width: 1450px) {
  main {
    padding-top: 65px;
  }
  .hero {
    min-height: 335px;
  }
  .hero-body {
    max-width: 52%;
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 196px;
    padding-inline: 13px;
  }
  main {
    margin-left: 196px;
    padding-inline: 32px;
  }
  .tool-card {
    padding: 19px 15px;
    gap: 10px;
    grid-template-columns: 43px 1fr 14px;
  }
  .medal {
    width: 43px;
    height: 43px;
  }
  .days {
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .rail {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    z-index: 3;
    inset: auto 0 0;
    display: flex;
    justify-content: space-around;
    padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    background: var(--rail, #f8f8f1f5);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(15px);
  }
  .navbtn {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 8px;
    text-align: center;
    font-size: 11px;
    min-height: 48px;
  }
  .navbtn.active {
    color: var(--ink, #244f3d);
    background: transparent;
  }
  .navbtn.active .icon {
    stroke-width: 2.4;
  }
  .mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 18px;
  }
  .mobile-bar .brand {
    font-size: 26px;
    padding: 0;
    gap: 6px;
  }
  .mobile-bar .brand-art svg {
    width: 30px;
    height: 30px;
  }
  .mobile-info {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  .mobile-info .icon {
    width: 19px;
  }
  .page {
    max-width: 600px;
  }
  main {
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
      calc(88px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .topline {
    gap: 8px;
  }
  .top-pause {
    font-size: 12px;
    gap: 5px;
    min-height: 38px;
    padding: 7px 11px;
  }
  .page-heading {
    margin: 9px 0 18px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
  .page-heading p {
    margin-top: 6px;
    font-size: 15px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero {
    border-radius: 18px;
    min-height: 255px;
    padding: 24px 21px;
    align-items: flex-end;
    background-position: 90% center;
  }
  .hero:before {
    background:
      linear-gradient(90deg, rgba(14, 43, 32, 0.88), rgba(14, 43, 32, 0.64) 55%, rgba(14, 43, 32, 0.07)),
      linear-gradient(0deg, rgba(15, 43, 33, 0.56), transparent 60%);
  }
  .hero-body {
    max-width: 86%;
  }
  .hero h2 {
    font-size: 37px;
    max-width: 12ch;
    margin: 9px 0;
  }
  .hero p {
    font-size: 14px;
    max-width: 26ch;
  }
  .hero-meta {
    margin-top: 18px;
    gap: 12px;
  }
  .peach,
  .primary,
  .secondary,
  .danger {
    min-height: 44px;
    padding: 10px 17px;
  }
  .section {
    margin-top: 25px;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .section-heading h2,
  .panel h2 {
    font-size: 26px;
  }
  .tools {
    gap: 10px;
  }
  .tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 11px;
    min-height: 146px;
  }
  .tool-card > .icon {
    position: absolute;
    right: 12px;
    top: 17px;
    width: 14px;
  }
  .tool-copy strong {
    font-size: 21px;
  }
  .tool-copy small {
    font-size: 13px;
  }
  .medal {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }
  .medal .icon {
    width: 23px;
    height: 23px;
  }
  .week {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px 18px;
    gap: 15px;
  }
  .days {
    width: 100%;
    justify-content: space-between;
    gap: 3px;
  }
  .week h3 {
    font-size: 21px;
  }
  .intro {
    margin: 9px 0 22px;
  }
  .intro h1 {
    font-size: 38px;
  }
  .intro p {
    font-size: 15px;
  }
  .detail .mobile-bar,
  .detail-wide .mobile-bar {
    margin-bottom: 7px;
  }
  .panel {
    padding: 19px;
  }
  .list-card {
    padding-inline: 13px;
  }
  .stat {
    padding: 14px;
  }
  .notification {
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .section-heading .small-link {
    font-size: 13px;
  }
  .line-button {
    gap: 10px;
  }
  .tool-copy {
    gap: 3px;
  }
}
@media (max-width: 355px) {
  main {
    padding-inline: 14px;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero-meta {
    gap: 8px;
  }
  .tool-card {
    padding: 12px;
  }
  .page-heading h1 {
    font-size: 37px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .breath-circle::before {
    transform: scale(0.78);
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

summary {
  padding: 10px 0;
  font-weight: 650;
  cursor: pointer;
}
summary .quiet {
  font-weight: 400;
}

.rail .brand {
  font-size: 23px;
  line-height: 1.08;
  text-align: left;
}
.brand-art {
  flex-shrink: 0;
}
.mobile-bar .brand {
  font-size: clamp(20px, 6vw, 25px);
}

.checkin-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 14px 0 0;
  padding: 15px 20px;
  text-align: left;
  background: var(--surface, #fffef9);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.checkin-link:hover {
  background: var(--sage, #f0f3e9);
}
.checkin-link > .icon {
  width: 16px;
}
.factor-values {
  display: grid;
  gap: 0;
  margin: 12px 0;
  border-radius: 12px;
  padding: 4px 14px;
  background: var(--sage, #eff3e9);
}
.factor-values div {
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px;
}
.factor-values div + div {
  border-top: 1px solid var(--line);
}
.factor-values dt,
.factor-values dd {
  overflow-wrap: anywhere;
}
.factor-values dt {
  color: var(--quiet);
}
.factor-values dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  white-space: pre-wrap;
}
.factor-history-row {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.factor-history-row summary {
  min-height: 44px;
}
.factor-moments {
  display: grid;
  justify-items: start;
}
.factor-moments .small-link {
  text-align: left;
}
.factor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
  background: var(--rail, #edf1e6);
}
.factor-date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}
.factor-day-label,
.factor-card-head small {
  color: var(--quiet);
  font-size: 14px;
}
.factor-date input,
.factor-input {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line, #b9c6b6);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 46px;
  background: var(--surface, #fffefb);
}
.factor-input {
  width: 100%;
  min-width: 0;
}
.factor-list,
.factor-setup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.factor-card {
  padding: 16px 20px;
  min-width: 0;
}
.factor-card-head,
.factor-setup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.factor-card-head {
  margin-bottom: 8px;
}
.factor-card-head label,
.factor-setup-row span {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.factor-card-head small {
  flex-shrink: 0;
}
.factor-save {
  display: block;
  min-height: 1.4em;
  margin-top: 5px;
  color: var(--quiet);
  font-size: 13px;
}
.factor-save-error,
.factor-form-error {
  color: var(--error-ink, #863f2b);
}
.factor-empty p {
  margin: 8px 0 16px;
}
.factor-setup-list {
  margin-top: 16px;
}
.factor-setup-row {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--sage, #eff2e9);
}
.factor-setup-row button {
  min-height: 44px;
  flex-shrink: 0;
}
.factor-setup-row .secondary {
  padding: 6px 12px;
  font-size: 14px;
  background: var(--surface, #fffef9);
}
.factor-setup-section {
  margin-top: 14px;
}
.factor-form-error:not(:empty) {
  margin: 10px 0;
}
.factor-footer {
  justify-content: space-between;
}
.factor-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.factor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line, #c8d5c2);
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  background: var(--sage, #f2f5ec);
}
.factor-toggle .icon {
  width: 15px;
  height: 15px;
}
.factor-toggle[aria-pressed="true"] {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
@media (max-width: 560px) {
  .factor-list,
  .factor-setup-list {
    grid-template-columns: 1fr;
  }
  .factor-top {
    padding: 14px 18px;
  }
  .factor-card {
    padding: 14px 18px 10px;
  }
  .factor-setup-list {
    gap: 7px;
  }
  .factor-setup-row {
    padding: 4px 10px 4px 14px;
  }
}
.field input[type="number"],
.field input[type="date"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line, #b9c6b6);
  border-radius: 10px;
  background: var(--surface, #fffefb);
  color: var(--ink);
}
