:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #243b35;
  background: #f6f7f2;
  font-synthesis: none;
  --green: #173f38;
  --lime: #d8f38b;
  --muted: #6d7a73;
  --line: #e1e6dd;
  --paper: #fff;
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #88a44e;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -1.5px;
  font-weight: 650;
  margin-bottom: 12px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button.primary,
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 0;
  background: var(--green);
  color: white;
  padding: 15px 23px;
  border-radius: 12px;
  font-weight: 650;
  text-decoration: none;
  min-height: 48px;
}
button.primary:hover {
  background: #28564a;
}
.secondary {
  border: 1px solid #ccd5c6;
  padding: 12px 18px;
  border-radius: 12px;
  background: white;
  font-weight: 600;
  min-height: 44px;
}
.secondary:hover {
  background: #f0f4eb;
}
.link {
  color: var(--green);
  text-decoration: underline;
  padding: 8px;
}
.danger {
  color: #9a352d;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 750;
  color: #758274;
  margin-bottom: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 850;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--lime);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-style: italic;
  font-weight: 900;
}
.brand span:last-child {
  font-weight: 450;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 36px 25px 22px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  margin: 0 8px 53px;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  text-align: left;
  border-radius: 12px;
  color: #6e7a72;
  font-size: 14px;
  font-weight: 600;
}
.nav button.active {
  background: #ecf2e5;
  color: var(--green);
}
.nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.side-bottom {
  margin-top: auto;
}
.side-note {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 24px;
  background: #f9fbf5;
}
.side-note b {
  display: block;
  color: var(--green);
  margin-bottom: 7px;
}
.account {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9eddf;
  display: grid;
  place-items: center;
  font-weight: 650;
  flex-shrink: 0;
}
.account-name {
  font-size: 13px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account button {
  margin-left: auto;
  padding: 8px;
  color: var(--muted);
}
main {
  margin-left: 236px;
  padding: 34px 46px 60px;
  max-width: 1600px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 42px;
}
.status-dot {
  display: inline-block;
  background: #68996a;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.header-row p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.pill {
  border: 1px solid #d5dfcc;
  border-radius: 99px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  display: inline-block;
  background: #f2f6eb;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  border-radius: var(--radius);
  color: white;
  padding: 32px 34px;
  min-height: 358px;
}
.hero .eyebrow {
  color: #bdcbb4;
}
.hero h2 {
  font-size: 36px;
  letter-spacing: -1.1px;
  max-width: 400px;
  margin: 14px 0 19px;
  position: relative;
  z-index: 1;
  line-height: 1.16;
}
.hero p {
  color: #c4d3c6;
  font-size: 13px;
  max-width: 330px;
}
.hero .pill {
  background: #ffffff12;
  border-color: #ffffff25;
  color: #e3f4c5;
}
.hero button.primary {
  background: var(--lime);
  color: #1f3f33;
  min-width: 225px;
  position: relative;
  z-index: 1;
}
.hero button.primary:hover {
  background: #e6ffaf;
}
.hero-foot {
  display: flex;
  gap: 25px;
  margin: 26px 0 25px;
}
.hero-foot b {
  display: block;
  font-size: 20px;
  font-weight: 550;
}
.hero-foot small {
  color: #b3c8bc;
  font-size: 11px;
}
.track-art {
  position: absolute;
  width: 250px;
  height: 340px;
  right: -63px;
  top: 48px;
  transform: rotate(-27deg);
  opacity: 0.26;
  pointer-events: none;
}
.track-art i {
  position: absolute;
  border: 1px solid #d8f38b;
  border-radius: 130px;
  inset: 0;
}
.track-art i:nth-child(2) {
  inset: 18px;
}
.track-art i:nth-child(3) {
  inset: 36px;
}
.track-art i:nth-child(4) {
  inset: 54px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h2 {
  font-size: 19px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.card-title h2 {
  margin: 0;
}
.week-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 20px 0 11px;
}
.week-metric b {
  font-size: 22px;
  font-weight: 600;
}
.week-metric b small {
  font-size: 15px;
  font-weight: 400;
}
.progress-bar {
  height: 6px;
  background: #edf0e7;
  border-radius: 8px;
  overflow: hidden;
}
.progress-bar progress {
  appearance: none;
  width: 100%;
  height: 6px;
  display: block;
  border: 0;
}
.progress-bar progress::-webkit-progress-bar {
  background: #edf0e7;
}
.progress-bar progress::-webkit-progress-value {
  background: #9ebe70;
  border-radius: 8px;
}
.progress-bar progress::-moz-progress-bar {
  background: #9ebe70;
}
.days {
  display: flex;
  justify-content: space-between;
  margin: 28px 0 22px;
  gap: 6px;
}
.day {
  display: grid;
  gap: 9px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.day b {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: #f3f5ee;
  font-weight: 500;
}
.day.today b {
  outline: 1px solid var(--green);
}
.day.done b {
  background: var(--green);
  color: white;
}
.note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
}
.journey {
  margin-top: 24px;
}
.journey-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 8px;
  padding-top: 5px;
}
.journey-step {
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  position: relative;
}
.journey-step:before {
  content: "";
  position: absolute;
  left: 30px;
  right: 0;
  top: 14px;
  border-top: 1px solid #e0e6d8;
}
.journey-step:last-child:before {
  display: none;
}
.journey-node {
  width: 29px;
  height: 29px;
  border: 1px solid #dce3d3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  position: relative;
  margin-bottom: 12px;
  font-size: 11px;
}
.journey-step.current {
  font-weight: 650;
  color: var(--green);
}
.journey-step.current .journey-node {
  background: var(--lime);
  border-color: var(--lime);
}
.journey-step.done .journey-node {
  background: var(--green);
  color: white;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.soft {
  background: #edf2e6;
}
.soft .eyebrow {
  color: #5f7957;
}
.soft h3 {
  font-size: 20px;
  max-width: 290px;
  line-height: 1.35;
}
.soft p {
  font-size: 13px;
  color: #637361;
  margin-bottom: 10px;
}
.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chevron {
  font-size: 24px;
}
.empty {
  padding: 26px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.history-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history-item:last-child {
  border: 0;
}
.history-item h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.history-item p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.tag {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  display: inline-block;
  background: #edf3e6;
  color: #537041;
}
.tag.ALERT {
  background: #fbe9e3;
  color: #984b38;
}
.tag.REGRESS {
  background: #fff0d8;
  color: #846326;
}
.tag.MAINTAIN {
  background: #ecf0f6;
  color: #5b6c85;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--green);
  color: white;
  padding: 50px 65px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story .brand-mark {
  background: var(--lime);
  color: var(--green);
}
.auth-story h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.auth-story h1 em {
  color: var(--lime);
  font-style: normal;
}
.auth-story p {
  color: #c3d1c2;
  max-width: 360px;
  font-size: 15px;
}
.auth-story .track-art {
  width: 390px;
  height: 540px;
  top: 24%;
  right: -130px;
}
.auth-story footer {
  font-size: 12px;
  color: #b4c9b9;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
}
.auth-inner {
  width: 100%;
  max-width: 380px;
}
.auth-inner h2 {
  font-size: 30px;
}
.auth-inner > p {
  color: var(--muted);
  font-size: 14px;
}
.auth-inner .primary {
  width: 100%;
  margin-top: 10px;
}
.auth-switch {
  font-size: 13px;
  text-align: center;
  margin-top: 23px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5ddcf;
  border-radius: 10px;
  background: #fff;
  padding: 12px 13px;
  color: #243b35;
  min-height: 45px;
  font-weight: 400;
  font-size: 14px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field small {
  font-weight: 400;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}
legend {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.form-card {
  max-width: 850px;
  margin: auto;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.check input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.notice {
  border: 1px solid #e3d5b6;
  background: #fcf7e9;
  padding: 17px 20px;
  border-radius: 12px;
  color: #78603a;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.notice.alert {
  background: #fbeee9;
  border-color: #ebd0c3;
  color: #8c4630;
}
.notice.good {
  background: #edf5e6;
  border-color: #d4e4c5;
  color: #456139;
}
.symptoms {
  background: #f7f8f3;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
}
.symptoms summary {
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.symptom-row {
  display: grid;
  grid-template-columns: 1fr 85px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.symptom-row label {
  display: flex;
  gap: 8px;
  font-size: 12px;
  align-items: center;
}
.symptom-row input[type="number"] {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.workout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 24px;
}
.workout-section {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.workout-section:last-child {
  border: 0;
}
.workout-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.step {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  font-size: 14px;
}
.step strong {
  font-weight: 600;
}
.step-marker {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #edf2e5;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.repeat {
  border-left: 2px solid #a7c97b;
  margin: 12px 0;
  padding-left: 20px;
}
.repeat > b {
  font-size: 12px;
  color: #617e50;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 64px;
  letter-spacing: -3px;
  margin: 25px 0 8px;
  font-weight: 550;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stat {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stat b {
  display: block;
  font-size: 28px;
  margin: 9px 0;
  font-weight: 600;
}
.stat small {
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tabs button {
  padding: 11px 17px;
  border-radius: 10px;
  background: #eaf0e2;
  font-size: 13px;
}
.tabs button.active {
  background: var(--green);
  color: white;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  padding: 13px 12px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td button {
  padding: 7px;
  text-decoration: underline;
}
.section-gap {
  margin-top: 24px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
.edit-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  background: #fafbf7;
}
.edit-step .field {
  margin-bottom: 10px;
}
.edit-step .form-grid {
  grid-template-columns: 2fr 1fr 1fr;
}
.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.editor-toolbar button {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 35px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 80vh;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  border-radius: 12px;
  background: #173f38;
  color: white;
  box-shadow: 0 8px 40px #0002;
  z-index: 100;
  max-width: 90%;
  font-size: 14px;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #823c2b;
}
.mobile-brand {
  display: none;
}
.error-message {
  color: #9a352d;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.badge-achievement {
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--green);
  font-weight: 700;
  display: inline-block;
  margin: 0 10px 10px 0;
}
.footer-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 26px;
}
.screen-reader {
  position: absolute;
  left: -10000px;
}
.select-caption {
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  main {
    margin-right: auto;
    margin-left: 236px;
    padding-left: 65px;
    padding-right: 65px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 18px;
  }
  main {
    margin-left: 200px;
    padding: 28px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
  }
  .hero {
    padding: 27px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .card {
    padding: 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-story {
    padding: 45px 35px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 74px;
    padding: 8px 12px;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(10px);
  }
  .sidebar .brand,
  .side-bottom {
    display: none;
  }
  .nav {
    display: flex;
    justify-content: space-around;
    gap: 2px;
  }
  .nav button {
    flex: 1;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 7px 4px;
    font-size: 10px;
  }
  .nav svg {
    width: 19px;
    height: 19px;
  }
  main {
    margin-left: 0;
    padding: 23px 20px 100px;
  }
  .topbar {
    margin-bottom: 30px;
  }
  .mobile-brand {
    display: flex;
    font-size: 20px;
  }
  .mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .topbar > span:first-child {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 340px;
  }
  .header-row {
    gap: 10px;
  }
  .header-row > .pill {
    font-size: 10px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .journey-steps {
    overflow: auto;
    gap: 15px;
  }
  .journey-step {
    min-width: 88px;
  }
  .journey-step:before {
    right: -15px;
  }
  .workout-layout {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 28px;
    min-height: 320px;
    gap: 35px;
  }
  .auth-story h1 {
    font-size: 38px;
    margin-top: 5px;
    max-width: 450px;
  }
  .auth-story p {
    margin-bottom: 0;
    font-size: 13px;
  }
  .auth-story footer {
    display: none;
  }
  .auth-story .track-art {
    width: 240px;
    height: 300px;
    right: -100px;
    top: 40px;
  }
  .auth-form {
    padding: 35px 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .edit-step .form-grid {
    grid-template-columns: 1fr;
  }
  .header-row h1 {
    font-size: 29px;
  }
  .card {
    padding: 21px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat b {
    font-size: 25px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .topbar .date {
    font-size: 10px;
  }
  .timer {
    font-size: 54px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
  .card,
  .hero {
    animation: appear 0.3s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
