:root {
  --bg: #f6f7f4;
  --paper: #fff;
  --ink: #242d28;
  --muted: #888e89;
  --line: #e8ebe5;
  --green: #344b3e;
  --sage: #95aa8e;
  --soft: #eff2ec;
  --radius: 17px;
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #668366;
  outline-offset: 4px;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 40px 26px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  font-size: 51px;
  font-weight: 650;
  letter-spacing: -4px;
  line-height: 1;
  display: block;
}
.brand span {
  font-size: 12px;
  letter-spacing: 0;
  vertical-align: top;
  margin: 7px 0 0 5px;
  display: inline-block;
}
.brand-caption {
  font-size: 11px;
  letter-spacing: 2px;
  margin: 15px 0 53px;
  color: var(--muted);
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #a5aaa5;
  margin: 0 0 17px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 7px 0;
  padding: 15px 14px;
  border-radius: 10px;
  color: #858b85;
  font-size: 14px;
  min-height: 64px;
}
.nav-item small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #989e98;
}
.nav-item.active {
  color: var(--green);
  background: var(--soft);
  font-weight: 600;
}
.nav-item.active small {
  color: #7b887a;
  font-weight: 400;
}
.nav-item i {
  margin-left: auto;
  background: var(--green);
  width: 5px;
  height: 5px;
  border-radius: 100%;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 13px 0;
}
.small-leaf {
  color: #8e9d89;
}
.sidebar-bottom p {
  font-size: 11px;
  line-height: 1.9;
  color: #949b92;
  margin-top: 15px;
}
.version {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #9b9f9a;
}
.version b {
  float: right;
  font-weight: 400;
}
.main-shell {
  margin-left: 232px;
}
.topbar {
  height: 89px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  font-size: 11px;
  color: #7b837a;
}
.breadcrumb span {
  margin: 0 15px;
  color: #bec3ba;
}
.topbar-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.topbar-right > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.topbar-right .icon {
  width: 15px;
}
.avatar {
  border: 1px solid #dce2d7;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  color: #657760;
  font-size: 16px;
  background: #edf1e8;
}
main {
  max-width: 1300px;
  margin: auto;
  padding: 38px 48px 35px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #879281;
  margin-bottom: 13px;
  font-weight: 550;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
h1 {
  font-size: 29px;
  font-weight: 560;
  letter-spacing: -0.7px;
  line-height: 1.4;
}
.sage {
  color: var(--sage);
}
.page-heading p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
  color: var(--muted);
}
.text-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #7c8776;
}
.text-link .icon {
  width: 17px;
}
.overview {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  margin-bottom: 36px;
}
.score-card {
  background: #293b31;
  color: #f9faf6;
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 269px;
  gap: 12px;
}
.overline {
  font-size: 9px;
  letter-spacing: 1.65px;
  font-weight: 500;
}
.score-card .overline {
  color: #adbca9;
}
.score-copy h2 {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 1px;
  margin: 11px 0 8px;
}
.score-number {
  font-size: 76px;
  font-weight: 450;
  letter-spacing: -4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.score-number > span {
  font-size: 18px;
  font-weight: 300;
  color: #9da99f;
  letter-spacing: 0;
  margin-left: 15px;
}
.score-caption {
  font-size: 10px;
  color: #d2dacd;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #a4b697;
  border-radius: 50%;
}
.score-note {
  font-size: 9px;
  color: #91a291;
  margin-top: 12px;
}
.score-ring {
  --value: 0;
  width: 158px;
  height: 158px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(#b8c7a5 calc(var(--value) * 1%), #4a5b4f 0);
  padding: 7px;
  transform: rotate(-40deg);
}
.score-ring > div {
  height: 100%;
  border-radius: 50%;
  background: #293b31;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(40deg);
}
.score-ring span {
  font-size: 32px;
  font-weight: 400;
}
.score-ring small {
  font-size: 14px;
  color: #9aab9b;
}
.score-ring p {
  font-size: 9px;
  color: #b2c0ad;
  margin-top: 7px;
  letter-spacing: 1px;
}
.score-ring .icon {
  width: 19px;
  color: #adbfa0;
  margin-top: 12px;
}
.consistency-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 23px 25px;
}
.section-label {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #646d62;
}
.section-label .icon {
  width: 17px;
  color: #9fa797;
}
.streak {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.streak strong {
  font-size: 43px;
  font-weight: 450;
  letter-spacing: -2px;
  line-height: 1.1;
}
.streak > span {
  font-size: 10px;
  line-height: 1.7;
}
.streak small {
  color: var(--muted);
  font-size: 9px;
}
.week-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}
.week-dots > div {
  text-align: center;
}
.week-dots span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f2ec;
}
.week-dots .filled {
  background: #788e70;
  color: white;
}
.week-dots .current {
  outline: 1px solid #889b7b;
  outline-offset: 3px;
}
.week-dots .icon {
  width: 12px;
}
.week-dots small {
  display: block;
  font-size: 9px;
  color: #9aa091;
  margin-top: 8px;
}
.averages {
  display: flex;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 15px;
  gap: 28px;
}
.averages > div {
  flex: 1;
}
.averages > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.averages span {
  display: block;
  font-size: 9px;
  color: #8a9186;
}
.averages strong {
  display: block;
  font-size: 23px;
  font-weight: 500;
  margin-top: 6px;
}
.averages small {
  font-size: 9px;
  font-weight: 400;
  color: #a0a599;
}
.dashboard-lower {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 17px;
  font-weight: 550;
}
.section-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.count {
  font-size: 10px;
  font-weight: 400;
  background: #eaece5;
  color: #929987;
  padding: 4px 8px;
  margin-left: 9px;
  border-radius: 5px;
}
.subtle-button {
  font-size: 10px;
  color: #8d9488;
  min-height: 44px;
}
.habit-tabs {
  display: flex;
  gap: 21px;
  border-bottom: 1px solid #dfe4db;
  margin-bottom: 6px;
}
.habit-tabs button {
  font-size: 11px;
  padding: 11px 0 14px;
  color: #8b9385;
  min-height: 44px;
  border-bottom: 2px solid transparent;
}
.habit-tabs button.active {
  color: #344b3e;
  border-color: #344b3e;
}
.habit-tabs span {
  font-size: 9px;
  margin-left: 5px;
  color: #969f8b;
}
.habit-group h3 {
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 1px;
  color: #8c9485;
  padding: 21px 0 11px;
}
.habit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  margin-bottom: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  min-height: 72px;
}
.habit-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.habit-row:has(input:focus-visible) {
  outline: 2px solid #668366;
  outline-offset: 2px;
}
.habit-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #8f9b83;
  background: #f4f6f0;
  border-radius: 8px;
}
.habit-icon .icon {
  width: 18px;
}
.habit-text {
  flex: 1;
}
.habit-text strong {
  display: block;
  font-size: 12px;
  font-weight: 450;
}
.habit-text small {
  display: block;
  font-size: 9px;
  color: #989f91;
  margin-top: 6px;
}
.points {
  font-size: 10px;
  color: #9da893;
  margin-right: 8px;
}
.checkbox {
  border: 1px solid #d5dbce;
  border-radius: 5px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.checkbox .icon {
  width: 13px;
  opacity: 0;
}
.completed {
  background: #f0f3ec;
}
.completed .checkbox {
  background: #758c68;
  border-color: #758c68;
  color: white;
}
.completed .checkbox .icon {
  opacity: 1;
}
.completed .points {
  color: #718366;
}
.right-column {
  padding-top: 2px;
}
.snapshot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.snapshot h2 {
  font-size: 14px;
}
.snapshot .section-heading > a {
  color: #96a18b;
}
.snapshot .section-heading .icon {
  width: 17px;
}
.snapshot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.soft-icon {
  background: #f2f4ee;
  color: #7f9075;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.soft-icon .icon {
  width: 20px;
}
.snapshot-row > div {
  flex: 1;
}
.snapshot-row > div > span {
  font-size: 10px;
  color: #929a89;
  display: block;
  margin-bottom: 6px;
}
.snapshot-row strong {
  font-size: 25px;
  font-weight: 450;
  letter-spacing: -0.5px;
}
.snapshot-row small {
  font-size: 10px;
  color: #919a87;
  letter-spacing: 0;
}
.snapshot-row b {
  font-size: 11px;
  font-weight: 450;
}
.snapshot-row > .icon {
  width: 12px;
  color: #a9b09f;
}
.principle {
  margin-top: 20px;
  border-radius: var(--radius);
  background: #e9eee3;
  padding: 27px;
  overflow: hidden;
  position: relative;
  min-height: 255px;
}
.principle .overline {
  font-size: 8px;
  color: #8a997c;
}
.principle h3 {
  font-size: 20px;
  font-weight: 450;
  line-height: 1.65;
  margin: 17px 0 12px;
  letter-spacing: 0.5px;
}
.principle p {
  font-size: 10px;
  color: #8b957f;
  line-height: 1.9;
}
.principle a {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: #68785a;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}
.principle a .icon {
  width: 15px;
}
.contour {
  position: absolute;
  right: -52px;
  bottom: -56px;
  width: 170px;
  height: 130px;
  border: 1px solid #d0dbc5;
  border-radius: 50%;
  transform: rotate(-40deg);
}
.contour:before,
.contour:after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #d0dbc5;
  border-radius: 50%;
}
.contour:after {
  inset: 24px;
}
.local-note {
  font-size: 9px;
  color: #a0a794;
  text-align: center;
  margin-top: 20px;
}
.fine-print {
  font-size: 10px;
  line-height: 1.8;
  color: #989f90;
  margin-top: 18px;
}
.page-footer {
  padding: 24px 48px 30px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a2a99a;
  letter-spacing: 1px;
  max-width: 1300px;
  margin: auto;
}
.mobile-brand,
.bottom-nav {
  display: none;
}
.empty {
  padding: 32px 20px;
  color: #959d8d;
  font-size: 12px;
  text-align: center;
  border: 1px dashed #dbe0d4;
  border-radius: 12px;
  margin: 16px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #293b31;
  color: #fff;
  font-size: 13px;
  padding: 13px 22px;
  border-radius: 10px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  max-width: 90%;
  box-shadow: 0 5px 30px #26352822;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  main {
    padding-top: 48px;
  }
  .overview,
  .dashboard-lower {
    grid-template-columns: 1.75fr 1fr;
  }
  .score-card {
    padding: 35px 40px;
  }
  .score-ring {
    width: 185px;
    height: 185px;
  }
  .score-number {
    font-size: 87px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 35px 18px;
  }
  .main-shell {
    margin-left: 195px;
  }
  main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .overview,
  .dashboard-lower {
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
  }
  .score-card {
    padding: 24px;
  }
  .score-ring {
    width: 120px;
    height: 120px;
  }
  .score-number {
    font-size: 65px;
  }
  .score-note {
    max-width: 160px;
    line-height: 1.6;
  }
  .consistency-card {
    padding: 22px 20px;
  }
  .desktop-link {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 175px;
    padding: 32px 14px;
  }
  .main-shell {
    margin-left: 175px;
  }
  main {
    padding: 28px 24px;
  }
  .overview {
    grid-template-columns: 1fr;
  }
  .consistency-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    column-gap: 30px;
  }
  .consistency-card .section-label {
    grid-column: 1;
  }
  .streak {
    grid-column: 1;
  }
  .week-dots {
    grid-column: 2;
    grid-row: 1/3;
  }
  .averages {
    grid-column: 1/3;
  }
  .score-ring {
    width: 150px;
    height: 150px;
  }
  .score-card {
    min-height: 250px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .principle {
    margin: 0;
  }
  .local-note {
    grid-column: 1/3;
  }
  .brand {
    font-size: 45px;
  }
  .nav-item {
    gap: 10px;
    padding: 13px 10px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 76px;
    padding: 0 22px;
    border-bottom: 0;
  }
  .mobile-brand {
    display: block;
    font-size: 38px;
    letter-spacing: -3px;
  }
  .brand span {
    font-size: 9px;
    margin-top: 4px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar-right {
    gap: 12px;
    font-size: 10px;
  }
  .topbar-right .icon {
    display: none;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    background: #ffffffef;
    backdrop-filter: blur(12px);
    border-top: 1px solid #e7eae2;
    justify-content: space-around;
  }
  .bottom-nav > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 55px;
    min-height: 44px;
    justify-content: center;
    color: #a0a698;
  }
  .bottom-nav span {
    font-size: 9px;
  }
  .bottom-nav .active {
    color: #344b3e;
  }
  .bottom-nav .active:before {
    content: "";
    position: absolute;
    top: 0;
    width: 22px;
    height: 2px;
    background: #344b3e;
  }
  main {
    padding: 22px 20px 15px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 11px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading p {
    font-size: 11px;
    margin-top: 9px;
  }
  .overview {
    gap: 14px;
    margin-bottom: 29px;
  }
  .score-card {
    padding: 24px 22px;
    min-height: 235px;
  }
  .score-number {
    font-size: 66px;
  }
  .score-number > span {
    font-size: 15px;
    margin-left: 10px;
  }
  .score-ring {
    width: 119px;
    height: 119px;
    padding: 6px;
  }
  .score-ring span {
    font-size: 27px;
  }
  .score-ring small {
    font-size: 12px;
  }
  .score-ring p {
    font-size: 8px;
  }
  .score-ring .icon {
    margin-top: 9px;
    width: 16px;
  }
  .score-note {
    font-size: 8px;
    max-width: 180px;
  }
  .score-caption {
    font-size: 9px;
  }
  .score-copy h2 {
    font-size: 13px;
  }
  .overline {
    font-size: 8px;
  }
  .consistency-card {
    padding: 20px;
    column-gap: 20px;
  }
  .section-label {
    font-size: 11px;
  }
  .section-label .icon {
    display: none;
  }
  .streak strong {
    font-size: 37px;
  }
  .week-dots {
    align-items: center;
    gap: 7px;
  }
  .week-dots span {
    width: 18px;
    height: 18px;
  }
  .week-dots small {
    font-size: 8px;
  }
  .averages {
    margin-top: 16px;
    padding-top: 14px;
  }
  .averages > div {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .averages span {
    font-size: 9px;
  }
  .averages strong {
    font-size: 22px;
    margin: 0;
    white-space: nowrap;
  }
  .averages small {
    display: none;
  }
  .averages > div + div {
    padding-left: 20px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .habit-row {
    padding: 15px 13px;
  }
  .habit-text strong {
    font-size: 12px;
  }
  .habit-text small {
    font-size: 9px;
  }
  .points {
    margin-right: 2px;
  }
  .right-column {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }
  .local-note {
    grid-column: auto;
  }
  .snapshot-row {
    padding: 15px 0;
  }
  .principle {
    min-height: 230px;
  }
  .page-footer {
    padding: 25px 20px 110px;
    font-size: 7px;
  }
  .page-footer > span:last-child {
    letter-spacing: 0;
  }
  #toast {
    bottom: 95px;
  }
  .count {
    margin-left: 5px;
  }
  .habit-tabs {
    gap: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.pill {
  font-size: 10px;
  background: #eaf0e5;
  color: #7e8e71;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.appearance-intro {
  background: #e9eee3;
  border: 1px solid #e2e8da;
  border-radius: 17px;
  padding: 30px;
  margin-bottom: 24px;
}
.appearance-intro .overline {
  color: #8a997c;
}
.appearance-intro h2 {
  font-weight: 450;
  font-size: 23px;
  margin: 15px 0 10px;
}
.appearance-intro p {
  font-size: 12px;
  color: #7f8b73;
  line-height: 1.9;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  border-color: #b9c7ae;
}
.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.module-index {
  font-size: 11px;
  color: #acb5a3;
}
.module-card h2 {
  font-size: 19px;
  font-weight: 500;
  margin-top: 22px;
}
.module-card p {
  font-size: 11px;
  color: #969e8d;
  line-height: 1.9;
  margin-top: 10px;
}
.module-status {
  font-size: 9px;
  color: #8e9a83;
  margin-top: 22px;
}
.latest-summary {
  font-size: 10px;
  color: #87937d;
  line-height: 1.7;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.module-link {
  font-size: 10px;
  color: #687d5b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
}
.module-link .icon {
  width: 17px;
}
.quiet-banner {
  border: 1px solid #dfe5d7;
  border-radius: 14px;
  padding: 25px;
  margin-top: 25px;
  background: #f0f3ec;
}
.quiet-banner > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiet-banner h3 {
  font-size: 15px;
  font-weight: 500;
}
.quiet-banner p {
  font-size: 11px;
  line-height: 1.9;
  color: #89957d;
  margin-top: 12px;
}
.quiet-banner .icon {
  color: #8ea17e;
}
.back-link {
  font-size: 11px;
  color: #87977b;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-bottom: 15px;
}
.large-module-icon {
  border: 1px solid #dce5d4;
  background: #edf2e7;
  border-radius: 18px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #7b906b;
}
.large-module-icon .icon {
  width: 30px;
  height: 30px;
}
.principles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: -5px 0 30px;
}
.principles-row > span {
  font-size: 10px;
  color: #87967b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.principles-row .icon {
  width: 13px;
}
.module-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}
.record-form,
.history-panel,
.guidance,
.settings-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
  background: #fff;
}
.record-form h2,
.history-panel h2 {
  font-size: 16px;
  font-weight: 500;
}
.form-hint {
  font-size: 9px;
  color: #96a18b;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.field > span {
  font-size: 11px;
  color: #697660;
}
.field small {
  font-size: 10px;
  color: #9ca791;
  margin-left: 5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #e2e7dd;
  border-radius: 8px;
  background: #fafbf8;
  color: #3c4a33;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b0b7a8;
  font-size: 11px;
}
.field select {
  appearance: auto;
}
.date-field {
  max-width: 220px;
  margin: 25px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}
.form-check {
  font-size: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4e9df;
  background: #f7f9f3;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  align-self: end;
}
.form-check input {
  accent-color: #6b835b;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.notes-field {
  margin-top: 25px;
}
.field textarea {
  resize: vertical;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
}
.form-actions > span {
  font-size: 9px;
  color: #9aa68e;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #344b3e;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.primary-button .icon,
.secondary-button .icon {
  width: 16px;
}
.secondary-button {
  background: #eef2e7;
  color: #647855;
  border: 1px solid #dde6d5;
}
.guidance {
  background: #eaf0e3;
  border-color: #e1e8d9;
  margin-bottom: 20px;
}
.guidance .overline {
  color: #8fa17e;
}
.guidance h3 {
  font-size: 18px;
  font-weight: 450;
  margin-top: 15px;
}
.guidance p {
  font-size: 11px;
  line-height: 2;
  color: #879879;
  margin-top: 14px;
}
.history-panel {
  padding: 22px;
}
.history-entry {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  border-top: 1px solid #e9ede3;
}
.history-entry strong {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-entry strong .icon {
  width: 15px;
  color: #9bac8b;
}
.history-entry p {
  font-size: 10px;
  color: #93a085;
  margin-top: 9px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.history-entry small {
  font-size: 9px;
  color: #758867;
  display: block;
  margin-top: 8px;
}
.history-panel > .text-link {
  margin-top: 20px;
}
.body-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px 0;
}
.body-metrics > div {
  padding: 0 26px;
}
.body-metrics > div + div {
  border-left: 1px solid var(--line);
}
.body-metrics span {
  font-size: 10px;
  color: #8f9d81;
}
.body-metrics strong {
  display: block;
  font-size: 35px;
  font-weight: 450;
  margin-top: 12px;
  letter-spacing: -1px;
}
.body-metrics small {
  font-size: 10px;
  font-weight: 400;
  color: #9caa8e;
  margin-left: 9px;
}
.metric-note {
  margin: 9px 0 20px;
}
.trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 28px;
}
.trend-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: white;
}
.trend-card h3 {
  font-size: 12px;
  font-weight: 500;
}
.trend-card h3 small {
  font-size: 10px;
  color: #9bac8c;
  margin-left: 5px;
}
.trend-card h3 b {
  float: right;
  font-size: 22px;
  font-weight: 450;
  color: #748a63;
}
.trend-card svg {
  display: block;
  width: 100%;
  height: 120px;
  margin-top: 12px;
}
.trend-card .empty {
  font-size: 10px;
  padding: 25px 8px;
  border: 0;
  margin-bottom: 0;
}
.trend-dates {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9aaa8b;
}
.record-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.record-filters .field {
  min-width: 180px;
}
.archive-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 12px;
}
.archive-date {
  font-size: 19px;
  flex-shrink: 0;
  color: #718362;
  font-variant-numeric: tabular-nums;
}
.archive-date small {
  display: block;
  font-size: 10px;
  color: #a1ad95;
  margin-top: 7px;
}
.archive-content {
  flex: 1;
  min-width: 0;
}
.archive-content h3 {
  font-size: 14px;
  font-weight: 500;
}
.archive-content p {
  font-size: 10px;
  color: #93a086;
  line-height: 1.8;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.archive-score {
  font-size: 27px;
  font-weight: 450;
  color: #6e845d;
  white-space: nowrap;
}
.archive-score small {
  font-size: 10px;
  color: #a1ad96;
}
.archive-count {
  font-size: 10px;
  color: #9aaa8b;
  margin: 15px 0;
}
.edit-record {
  font-size: 10px;
  color: #7a8c6c;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.edit-record .icon {
  width: 15px;
}
.spacious {
  padding: 65px 30px;
  line-height: 2;
}
.spacious .text-link {
  justify-content: center;
  margin-top: 20px;
}
.personal-card {
  background: #293b31;
  color: white;
  border-radius: 17px;
  padding: 35px;
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 28px;
}
.personal-card > .brand {
  font-size: 55px;
}
.personal-card .overline {
  color: #a9bb9c;
}
.personal-card h2 {
  font-weight: 400;
  font-size: 22px;
  line-height: 1.7;
  margin-top: 10px;
}
.personal-card p {
  color: #91a384;
  font-size: 10px;
  margin-top: 12px;
}
.personal-stat {
  margin-left: auto;
  text-align: center;
}
.personal-stat strong {
  font-size: 58px;
  font-weight: 400;
}
.personal-stat span {
  display: block;
  font-size: 10px;
  color: #a1b693;
  margin-top: 8px;
}
.compact-grid .module-card h2 {
  font-size: 16px;
}
.settings-card {
  margin-top: 25px;
}
.settings-card h2 {
  font-size: 16px;
  font-weight: 500;
}
.settings-card p {
  font-size: 12px;
  color: #8b9a7b;
  line-height: 2;
  margin: 16px 0;
}
.settings-card > .fine-print {
  margin-left: 12px;
}
.settings-card summary {
  cursor: pointer;
  font-size: 14px;
  min-height: 30px;
}
.score-weights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
  margin-top: 25px;
}
.score-weights span {
  font-size: 11px;
  color: #8e9d7e;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.score-weights b {
  font-weight: 500;
  color: #6f855d;
  white-space: nowrap;
}
.timeline {
  max-width: 800px;
  padding: 12px 0;
}
.timeline-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.timeline-age {
  font-size: 49px;
  font-weight: 400;
  letter-spacing: -2px;
  min-width: 100px;
  padding-top: 3px;
  color: #879b76;
}
.timeline-age small {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 7px;
  color: #9eb08e;
}
.timeline-item > div + div {
  position: relative;
  border-left: 1px solid #d5dfcc;
  padding: 14px 0 50px 35px;
}
.timeline-point {
  position: absolute;
  width: 9px;
  height: 9px;
  top: 21px;
  left: -5px;
  background: #93a580;
  border-radius: 50%;
  outline: 5px solid var(--bg);
}
.timeline-item h2 {
  font-size: 20px;
  font-weight: 450;
}
.timeline-item p {
  font-size: 12px;
  color: #8b9d7c;
  line-height: 1.9;
  margin-top: 12px;
}
.timeline-item:last-child > div + div {
  padding-bottom: 10px;
}
@media (max-width: 1150px) {
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
  .compact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .module-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
  }
  .record-form {
    padding: 22px;
  }
  .form-grid {
    gap: 18px 12px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-hint {
    display: none;
  }
  .body-metrics > div {
    padding: 0 20px;
  }
  .body-metrics strong {
    font-size: 30px;
  }
  .personal-card {
    gap: 24px;
    padding: 30px;
  }
  .personal-card h2 {
    font-size: 20px;
  }
}
@media (max-width: 900px) {
  .module-layout {
    grid-template-columns: 1fr;
  }
  .module-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .guidance {
    margin: 0;
  }
  .compact-grid {
    grid-template-columns: 1fr;
  }
  .personal-card > .brand {
    display: none;
  }
  .body-metrics > div {
    padding: 0 15px;
  }
  .body-metrics strong {
    font-size: 27px;
  }
  .body-metrics small {
    margin-left: 5px;
  }
  .trend-grid {
    gap: 15px;
  }
  .trend-card {
    padding: 18px;
  }
}
@media (max-width: 640px) {
  .appearance-intro {
    padding: 24px;
  }
  .appearance-intro h2 {
    font-size: 20px;
  }
  .appearance-intro p {
    font-size: 11px;
  }
  .page-heading > .pill {
    display: none;
  }
  .module-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .module-card {
    padding: 19px 16px;
  }
  .module-card h2 {
    font-size: 16px;
    margin-top: 18px;
  }
  .module-card p {
    font-size: 10px;
  }
  .module-status {
    font-size: 9px;
    margin-top: 17px;
  }
  .module-index {
    font-size: 10px;
  }
  .module-grid .soft-icon {
    width: 34px;
    height: 34px;
  }
  .quiet-banner {
    padding: 21px;
  }
  .quiet-banner h3 {
    font-size: 14px;
  }
  .quiet-banner > div {
    gap: 8px;
    flex-wrap: wrap;
  }
  .quiet-banner .pill {
    font-size: 9px;
  }
  .large-module-icon {
    display: none;
  }
  .back-link {
    margin-top: -15px;
    margin-bottom: 12px;
  }
  .principles-row {
    gap: 10px 14px;
    margin-bottom: 23px;
  }
  .principles-row > span {
    font-size: 9px;
  }
  .module-layout > aside {
    grid-template-columns: 1fr;
  }
  .record-form,
  .history-panel,
  .guidance,
  .settings-card {
    padding: 21px;
  }
  .form-grid {
    gap: 19px 14px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    padding: 11px 10px;
  }
  .field > span {
    font-size: 11px;
  }
  .field small {
    font-size: 9px;
    margin-left: 3px;
  }
  .form-check {
    font-size: 11px;
    gap: 8px;
    padding: 10px;
  }
  .form-check input {
    width: 17px;
    height: 17px;
  }
  .form-actions > span {
    font-size: 9px;
  }
  .form-actions {
    gap: 10px;
  }
  .primary-button {
    font-size: 12px;
    padding: 12px 15px;
  }
  .date-field {
    max-width: 100%;
  }
  .body-metrics {
    grid-template-columns: 1fr 1fr;
    padding: 7px 0;
  }
  .body-metrics > div {
    padding: 16px 22px;
  }
  .body-metrics > div:nth-child(3) {
    border-left: 0;
  }
  .body-metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .body-metrics strong {
    font-size: 33px;
    margin-top: 8px;
  }
  .trend-grid {
    grid-template-columns: 1fr;
  }
  .trend-card svg {
    height: 115px;
  }
  .record-filters .field {
    min-width: 0;
    flex: 1;
  }
  .archive-card {
    padding: 17px 15px;
    gap: 15px;
  }
  .archive-date {
    font-size: 16px;
  }
  .archive-content h3 {
    font-size: 12px;
  }
  .archive-score {
    font-size: 22px;
  }
  .archive-score small {
    display: block;
    font-size: 9px;
  }
  .archive-content p {
    font-size: 9px;
  }
  .edit-record {
    font-size: 9px;
    gap: 4px;
  }
  .edit-record .icon {
    width: 13px;
  }
  .personal-card {
    padding: 25px;
    gap: 18px;
  }
  .personal-card h2 {
    font-size: 17px;
  }
  .personal-card p {
    font-size: 9px;
  }
  .personal-stat strong {
    font-size: 44px;
  }
  .personal-stat span {
    font-size: 9px;
    white-space: nowrap;
  }
  .compact-grid {
    grid-template-columns: 1fr;
  }
  .compact-grid .module-card {
    padding: 23px;
  }
  .compact-grid .module-card h2 {
    font-size: 18px;
  }
  .settings-card > .fine-print {
    display: block;
    margin-left: 0;
    margin-top: 12px;
  }
  .score-weights {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .timeline-item {
    gap: 20px;
  }
  .timeline-age {
    font-size: 40px;
    min-width: 74px;
  }
  .timeline-item > div + div {
    padding-left: 23px;
    padding-bottom: 37px;
  }
  .timeline-item h2 {
    font-size: 17px;
  }
  .timeline-item p {
    font-size: 11px;
  }
  .timeline-age small {
    font-size: 10px;
  }
  .timeline {
    padding-top: 0;
  }
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: start;
}
.account-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.account-tabs button {
  font-size: 14px;
  min-height: 46px;
  color: #7c8874;
  border-bottom: 2px solid transparent;
}
.account-tabs button.active {
  color: var(--green);
  border-color: var(--green);
}
#auth-form .field {
  margin-bottom: 20px;
}
#auth-form .field > span {
  font-size: 14px;
}
#auth-form input {
  font-size: 16px;
}
.full-width {
  width: 100%;
}
.auth-error {
  color: #9d453e;
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0;
}
.account-fine {
  color: #7a8770;
  font-size: 12px;
  line-height: 1.9;
  margin-top: 18px;
}
.account-name {
  font-size: 26px !important;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.account-description {
  font-size: 14px;
  line-height: 1.9;
  color: #7a8770;
  margin: 20px 0;
}
.sync-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a8770;
  font-size: 13px;
  margin-top: 18px;
}
.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.migration-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.migration-box h3 {
  font-size: 16px;
  font-weight: 500;
}
.migration-box p {
  font-size: 13px;
  line-height: 1.9;
  color: #7a8770;
  margin: 14px 0;
}
.recovery-card {
  padding: 26px;
  border: 1px solid #b9c7a9;
  border-radius: 16px;
  background: #edf2e6;
  margin-bottom: 24px;
}
.recovery-card h2 {
  font-size: 20px;
  font-weight: 500;
}
.recovery-card p {
  font-size: 14px;
  color: #68785c;
  line-height: 1.9;
  margin: 15px 0;
}
.recovery-card code {
  display: block;
  padding: 16px;
  background: white;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.6;
  user-select: all;
}
.account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
  gap: 16px;
}
.account-banner strong {
  font-size: 14px;
  font-weight: 500;
}
.account-banner p {
  font-size: 12px;
  line-height: 1.8;
  color: #7a8770;
  margin-top: 6px;
}
.backup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.backup-actions input[type="file"] {
  display: none;
}
.save-location {
  font-size: 12px;
  color: #7a8770;
}
.form-actions .save-location {
  max-width: 50%;
  line-height: 1.6;
}
.account-layout .guidance p {
  font-size: 14px;
}
.account-layout .text-link {
  font-size: 13px;
  margin-top: 20px;
}
.account-layout .primary-button,
.account-layout .secondary-button {
  font-size: 14px;
}
.install-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #667560;
}
.install-shortcut .icon {
  width: 15px;
}
.install-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  margin: 22px 0;
  background: #293b31;
  color: #f8faf5;
  border-radius: var(--radius);
}
.install-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px #17221c55;
}
.install-card .overline {
  color: #aebda8;
}
.install-card h2 {
  font-size: 19px;
  font-weight: 520;
  margin: 8px 0 5px;
}
.install-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #c6d0c2;
}
.install-card .primary-button {
  background: #f7f8f4;
  color: #293b31;
  min-width: 124px;
}
.install-card .primary-button:disabled {
  opacity: 0.65;
  cursor: default;
}
.install-dialog {
  width: min(440px, calc(100% - 36px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px #13201933;
}
.install-dialog::backdrop {
  background: #14201999;
  backdrop-filter: blur(4px);
}
.install-dialog form {
  padding: 30px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 18px;
  top: 15px;
  width: 44px;
  height: 44px;
  color: #798176;
  font-size: 25px;
  border-radius: 50%;
}
.app-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #293b31;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 22px;
}
.app-mark span {
  color: #a9ba9c;
  font-size: 10px;
  align-self: start;
  margin: 8px 0 0 -6px;
}
.install-dialog h2 {
  font-size: 24px;
  font-weight: 540;
  margin: 10px 0 24px;
}
.install-steps {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.install-steps p {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
}
.install-steps b {
  font-weight: 560;
}
.install-steps span {
  color: #727b70;
}
@media (max-width: 800px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-banner {
    padding: 18px;
    align-items: flex-start;
  }
  .account-banner .secondary-button {
    padding: 10px 13px;
    font-size: 12px;
  }
  .recovery-card {
    padding: 22px;
  }
  .recovery-card h2 {
    font-size: 18px;
  }
  .account-tabs {
    gap: 24px;
  }
  .install-card {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }
  .install-card .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .topbar-right > span {
    display: none;
  }
  .install-shortcut {
    font-size: 11px;
  }
  .install-dialog form {
    padding: 26px 22px;
  }
  .install-steps p {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
