/* Life pages: body trends and personal ledger */
.life-page {
  --life-green: #1d604b;
  --life-green-2: #327e63;
  --life-mint: #e7f1e9;
  --life-ink: #243b32;
  --life-muted: #728077;
  --life-line: #dfe6df;
  min-width: 0;
  color: var(--life-ink);
}

.life-page *,
.life-page *::before,
.life-page *::after {
  box-sizing: border-box;
}

.life-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 19px;
}

.life-eyebrow,
.life-panel-head p,
.ledger-monthbar p {
  margin: 0 0 5px;
  color: #8b998f;
  font: 650 10px/1.4 Inter, "Segoe UI", sans-serif;
  letter-spacing: .17em;
}

.life-page-head h1 {
  margin: 0;
  font: 600 clamp(31px, 3.2vw, 43px)/1.18 "LXGW WenKai Lite", "Songti SC", serif;
  letter-spacing: .045em;
}

.life-page-head > div > p:last-child {
  margin: 7px 0 0;
  color: var(--life-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.life-soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  padding: 8px 12px;
  border: 1px solid #d8e3da;
  border-radius: 9px;
  background: #fbfdfa;
  color: #416554;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

.life-soft-button:hover {
  border-color: #bfd2c3;
  background: #f2f7f2;
}

.life-soft-button svg {
  width: 15px;
  height: 15px;
}

.life-age-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(255px, .75fr);
  gap: 28px;
  min-height: 225px;
  padding: 30px 32px;
  overflow: hidden;
  border-radius: 19px;
  background:
    radial-gradient(circle at 75% 25%, rgba(165, 205, 171, .24), transparent 28%),
    linear-gradient(125deg, #143f35, #235d49 63%, #4f7964);
  color: #f7fbf7;
  box-shadow: 0 20px 46px #173b2e1f;
}

.life-age-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  right: -125px;
  top: -195px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, .035),
    0 0 0 76px rgba(255, 255, 255, .025);
}

.life-age-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 50%;
  opacity: .16;
  background:
    linear-gradient(160deg, transparent 45%, #d2e5d4 46%, transparent 47%) 0 0 / 46px 46px;
  mask-image: linear-gradient(transparent, #000);
}

.life-age-main {
  min-width: 0;
  align-self: center;
}

.life-card-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #bcd2c2;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
}

.life-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9dd6a7;
  box-shadow: 0 0 0 5px #9dd6a71c;
  animation: life-live-pulse 2s ease-out infinite;
}

.life-age-main > strong {
  display: block;
  font: 500 clamp(26px, 3.2vw, 42px)/1.3 "LXGW WenKai Lite", "Songti SC", serif;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.life-age-clock-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 5px;
  color: #bcd2c2;
}

.life-age-clock-row span {
  font-size: 12px;
}

.life-age-clock-row b {
  color: #e7f8e9;
  font: 500 clamp(20px, 2.3vw, 29px)/1.2 "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.life-birthday-line {
  margin: 14px 0 0;
  color: #c9ddce;
  font-size: 11.5px;
}

.life-birthday-line span {
  color: #f1f8f1;
  font-variant-numeric: tabular-nums;
}

.life-birth-form {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
}

.life-calendar-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(6, 37, 27, .2);
}

.life-calendar-switch button {
  min-height: 34px;
  border-radius: 7px;
  color: #c8dbce;
  font-size: 12px;
  font-weight: 650;
}

.life-calendar-switch button[aria-pressed="true"] {
  background: #f7fbf7;
  color: #28533f;
  box-shadow: 0 2px 8px rgba(5, 30, 21, .18);
}

.life-birth-panel[hidden] {
  display: none;
}

.life-birth-panel-title {
  margin: 0 0 7px;
  color: #d8e7db;
  font-size: 11px;
  font-weight: 650;
}

.life-birth-form label {
  margin-bottom: 7px;
  color: #d8e7db;
  font-size: 11px;
  font-weight: 650;
}

.life-birth-form input,
.life-birth-form select {
  width: 100%;
  min-width: 0;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: #f8fbf7;
  color: #29483a;
  font-size: 12px;
}

.life-lunar-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
}

.life-lunar-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  color: #c9dbce;
  font-size: 9px;
}

.life-lunar-fields select {
  margin-bottom: 0;
  padding-inline: 7px;
}

.life-leap-toggle {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  min-height: 34px;
  margin: 7px 0 0 !important;
  padding: 0 2px;
  cursor: pointer;
}

.life-leap-toggle input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #f4faf4;
}

.life-leap-toggle span {
  color: #d5e4d8;
  font-size: 10.5px;
  font-weight: 550;
}

.life-lunar-preview {
  min-height: 17px;
  margin: 3px 0 9px;
  color: #c9ddce;
  font-size: 10px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.life-lunar-preview.is-error {
  color: #ffd6c9;
}

.life-birth-form .primary {
  width: 100%;
  min-height: 37px;
  background: #f5faf5;
  color: #25533f;
}

.life-birth-form small {
  margin-top: 9px;
  color: #c6d8ca;
  font-size: 10px;
  line-height: 1.5;
}

.life-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.life-metric-card {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--life-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px #203e2e08;
}

.life-metric-card.is-primary {
  background: linear-gradient(135deg, #f7fbf7, #eef5ef);
}

.life-metric-card > span {
  display: block;
  color: var(--life-muted);
  font-size: 11px;
}

.life-metric-card > strong {
  display: block;
  margin-top: 8px;
  color: #29483a;
  font: 650 27px/1.15 Inter, "Segoe UI", sans-serif;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.life-metric-card > strong small {
  color: #6c7d72;
  font-size: 12px;
  letter-spacing: 0;
}

.life-metric-card > em {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: #89958d;
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.5;
}

.life-delta {
  font-weight: 600;
}

.life-delta.is-up {
  color: #ae5d49;
}

.life-delta.is-down {
  color: #2d8062;
}

.life-delta.is-neutral {
  color: #7d8b82;
  font-weight: 500;
}

.life-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, .72fr);
  gap: 14px;
  margin-bottom: 14px;
}

.life-panel {
  min-width: 0;
  border: 1px solid var(--life-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 18px #233f3008;
}

.life-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 13px;
}

.life-panel-head h2 {
  margin: 0;
  font: 650 17px/1.35 "LXGW WenKai Lite", "Songti SC", serif;
  letter-spacing: .03em;
}

.life-panel-head p {
  margin-bottom: 2px;
  font-size: 9px;
}

.life-range-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #f2f5f1;
}

.life-range-tabs button {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #7a887f;
  font-size: 10.5px;
  white-space: nowrap;
}

.life-range-tabs button[aria-pressed="true"] {
  background: #fff;
  color: #315f4b;
  box-shadow: 0 1px 5px #1839261a;
  font-weight: 650;
}

.life-chart-panel {
  display: flex;
  flex-direction: column;
  min-height: 328px;
}

.weight-chart {
  display: block;
  width: calc(100% - 24px);
  min-height: 205px;
  margin: 0 12px;
  overflow: visible;
}

.weight-grid line {
  stroke: #e7ede7;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.weight-grid text,
.weight-dates text {
  fill: #8b968e;
  font: 9px Inter, sans-serif;
}

.weight-area {
  fill: url("#weight-area");
}

.weight-line {
  fill: none;
  stroke: #2e8062;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weight-dot {
  fill: #fff;
  stroke: #2e8062;
  stroke-width: 2.2;
}

.weight-dot:hover {
  fill: #2e8062;
  stroke-width: 3;
}

.life-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 7px 18px 13px;
  color: #919c94;
  font-size: 9.5px;
}

.life-empty-chart {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 220px;
  padding: 20px;
  text-align: center;
}

.life-empty-chart > span,
.ledger-empty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 9px;
  border-radius: 13px;
  background: #edf4ee;
  color: #51806a;
}

.life-empty-chart svg,
.ledger-empty svg {
  width: 21px;
  height: 21px;
}

.life-empty-chart b,
.ledger-empty b {
  font-size: 13px;
}

.life-empty-chart p,
.ledger-empty p {
  margin: 5px 0 0;
  color: #869188;
  font-size: 11px;
}

.life-weight-form {
  padding-bottom: 16px;
}

.life-weight-form .life-panel-head {
  padding-bottom: 8px;
}

.life-form-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e8f1e9;
  color: #3f765e;
}

.life-form-icon svg {
  width: 16px;
  height: 16px;
}

.life-weight-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.life-unit-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #f0f4f0;
}

.life-unit-switch button {
  min-width: 44px;
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #77867c;
  font-size: 10.5px;
  white-space: nowrap;
}

.life-unit-switch button[aria-pressed="true"] {
  background: #fff;
  color: #2d664d;
  box-shadow: 0 1px 5px #1839261a;
  font-weight: 700;
}

.life-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0 16px 11px;
  color: #596c61;
  font-size: 11px;
  font-weight: 600;
}

.life-field > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.life-field small {
  color: #929d95;
  font-size: 9.5px;
  font-weight: 450;
}

.life-field input,
.life-field select,
.life-field textarea,
.ledger-filters input,
.ledger-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fbfcfa;
  color: #30473c;
  font-size: 12px;
}

.life-field input,
.life-field select {
  height: 37px;
  padding: 7px 9px;
}

.life-field textarea {
  padding: 9px;
  line-height: 1.6;
  resize: vertical;
}

.life-number-field {
  position: relative;
}

.life-number-field input {
  padding-right: 35px;
  font-variant-numeric: tabular-nums;
}

.life-number-field b {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #829088;
  font-size: 10px;
  font-weight: 500;
}

.life-wide-button {
  width: calc(100% - 32px);
  min-height: 39px;
  margin: 2px 16px 0;
}

.life-weight-storage-note {
  margin: 8px 16px 0;
  color: #8b978f;
  font-size: 9px;
  line-height: 1.5;
}

.life-history-panel {
  overflow: hidden;
}

.life-history-panel .life-panel-head {
  padding-bottom: 10px;
}

.life-history-more {
  display: block;
  width: calc(100% - 34px);
  margin: 12px 17px 15px;
}

.life-history-more span {
  margin-left: 6px;
  color: #7b8b81;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.life-count-badge {
  padding: 4px 8px;
  border-radius: 99px;
  background: #eef4ee;
  color: #667b6e;
  font-size: 10px;
}

.life-weight-list {
  border-top: 1px solid #edf1ed;
}

.life-weight-row {
  display: grid;
  grid-template-columns: 150px 90px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 9px 17px;
  border-bottom: 1px solid #edf1ed;
}

.life-weight-row:last-child {
  border-bottom: 0;
}

.life-weight-row time {
  color: #7d8981;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.life-weight-row > strong {
  color: #315e4a;
  font: 650 16px/1.3 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}

.life-weight-row > strong small {
  color: #7d8a82;
  font-size: 9px;
}

.life-weight-row > p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #7b887f;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #88948c;
}

.life-icon-button:hover {
  background: #f8ece8;
  color: #a95b48;
}

.life-icon-button svg {
  width: 14px;
  height: 14px;
}

.life-empty-row {
  padding: 27px 18px;
  color: #89958d;
  font-size: 12px;
  text-align: center;
}

/* Body & time: people, milestones and cycle forecast */
.wellness-page {
  display: grid;
  gap: 14px;
}

.wellness-page > .life-page-head {
  margin-bottom: 0;
}

.wellness-jump-nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid #e0e7e1;
  border-radius: 12px;
  background: #f8faf7;
  scrollbar-width: none;
}

.wellness-jump-nav::-webkit-scrollbar {
  display: none;
}

.wellness-jump-nav button {
  flex: 1 0 auto;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 8px;
  color: #66796c;
  font-size: 11.5px;
  font-weight: 650;
}

.wellness-jump-nav button:hover,
.wellness-jump-nav button:focus-visible {
  background: #eaf2ec;
  color: var(--life-green);
}

.wellness-reminder-panel,
.wellness-people-panel,
.wellness-period-panel {
  overflow: hidden;
}

.wellness-reminder-note,
.wellness-section-intro {
  margin: -3px 18px 14px;
  color: #7e8c83;
  font-size: 11px;
  line-height: 1.65;
}

.wellness-reminder-list {
  border-top: 1px solid #edf1ed;
}

.wellness-reminder-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 66px;
  padding: 10px 17px;
  border-bottom: 1px solid #edf1ed;
  text-align: left;
}

.wellness-reminder-row:last-child {
  border-bottom: 0;
}

.wellness-reminder-row:hover {
  background: #f8fbf8;
}

.wellness-reminder-row.is-due {
  background: linear-gradient(90deg, #fff9ea, #fffdf8 72%);
}

.wellness-reminder-row.is-overdue {
  background: linear-gradient(90deg, #fff0eb, #fffafa 72%);
}

.wellness-reminder-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #eaf2eb;
  color: #397058;
}

.wellness-reminder-row.is-due .wellness-reminder-mark {
  background: #f4e6bd;
  color: #866820;
}

.wellness-reminder-row.is-overdue .wellness-reminder-mark {
  background: #f1d9d0;
  color: #98513e;
}

.wellness-reminder-mark svg {
  width: 17px;
  height: 17px;
}

.wellness-reminder-copy {
  min-width: 0;
}

.wellness-reminder-copy b,
.wellness-reminder-copy small {
  display: block;
}

.wellness-reminder-copy b {
  color: #304d3f;
  font-size: 12.5px;
}

.wellness-reminder-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #839087;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wellness-reminder-count {
  color: #4f6e5e;
  font-size: 11px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

.wellness-reminder-count small {
  display: block;
  margin-top: 3px;
  color: #929c95;
  font-size: 8.5px;
  font-weight: 450;
}

.wellness-reminder-row > svg {
  width: 15px;
  height: 15px;
  color: #9ca79f;
}

.wellness-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 145px;
  padding: 22px;
  color: #829087;
  text-align: center;
}

.wellness-empty-state > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  color: #5c836f;
}

.wellness-empty-state b {
  color: #385846;
  font-size: 13px;
}

.wellness-empty-state p {
  max-width: 490px;
  margin: 5px 0 0;
  font-size: 10.5px;
  line-height: 1.65;
}

.wellness-empty-state > button {
  margin-top: 12px;
}

.wellness-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 0 15px 15px;
}

.wellness-person-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dfe7df;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, #eaf2e9 0, transparent 115px),
    linear-gradient(145deg, #fff, #fbfcf9);
  outline: none;
}

.wellness-person-card:focus-visible {
  border-color: #6a9a80;
  box-shadow: 0 0 0 3px #5f8e7424;
}

.wellness-person-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.wellness-person-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 45% 55%;
  background: #245e49;
  color: #f4faf5;
  font: 500 20px/1 "LXGW WenKai Lite", "Songti SC", serif;
  box-shadow: inset 0 0 0 1px #ffffff24;
}

.wellness-person-card > header p,
.wellness-person-card > header h3 {
  margin: 0;
}

.wellness-person-card > header p {
  color: #8a978f;
  font-size: 9px;
  letter-spacing: .08em;
}

.wellness-person-card > header h3 {
  margin-top: 2px;
  color: #2d4b3c;
  font: 650 18px/1.3 "LXGW WenKai Lite", "Songti SC", serif;
}

.wellness-card-actions {
  display: flex;
  gap: 2px;
}

.wellness-card-actions button,
.wellness-anniversary-row button,
.wellness-period-row button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #87938b;
}

.wellness-card-actions button:hover,
.wellness-anniversary-row button:hover,
.wellness-period-row button:hover {
  background: #eef4ef;
  color: #315f49;
}

.wellness-card-actions svg,
.wellness-anniversary-row button svg,
.wellness-period-row button svg {
  width: 14px;
  height: 14px;
}

.wellness-person-age {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e7ece7;
}

.wellness-person-age strong {
  color: #315f49;
  font: 650 16px/1.3 Inter, "Segoe UI", sans-serif;
}

.wellness-person-age span {
  color: #829087;
  font-size: 9.5px;
  text-align: right;
}

.wellness-next-birthday {
  display: grid;
  gap: 2px;
  margin: 10px 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f0f5f0;
}

.wellness-next-birthday b {
  color: #456653;
  font-size: 10.5px;
}

.wellness-next-birthday span,
.wellness-next-birthday small {
  color: #78877e;
  font-size: 9px;
  line-height: 1.5;
}

.wellness-person-note {
  margin: 8px 0 0;
  color: #75847b;
  font-size: 10px;
  line-height: 1.6;
}

.wellness-anniversaries {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #dfe6df;
}

.wellness-anniversary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wellness-anniversary-head > b {
  color: #566a5e;
  font-size: 10px;
}

.wellness-anniversary-head > button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 4px 7px;
  border-radius: 7px;
  color: #47705a;
  font-size: 9.5px;
}

.wellness-anniversary-head svg {
  width: 12px;
  height: 12px;
}

.wellness-anniversary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px 30px;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 7px;
  border-radius: 8px;
  background: #f9fbf8;
}

.wellness-anniversary-row > span:first-child {
  min-width: 0;
}

.wellness-anniversary-row b,
.wellness-anniversary-row small {
  display: block;
}

.wellness-anniversary-row b {
  color: #4d6256;
  font-size: 10px;
}

.wellness-anniversary-row small,
.wellness-anniversary-row > span:nth-child(2) {
  margin-top: 2px;
  color: #8a978f;
  font-size: 8.5px;
  line-height: 1.45;
}

.wellness-anniversary-row > span:nth-child(2) {
  margin: 0;
  white-space: nowrap;
}

.wellness-no-anniversary {
  margin: 7px 0 0;
  color: #97a099;
  font-size: 9.5px;
}

.wellness-period-panel {
  padding-bottom: 14px;
}

.wellness-period-panel:focus-visible {
  outline: 3px solid #78a68d55;
  outline-offset: 2px;
}

.wellness-period-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 15px 13px;
}

.wellness-period-summary article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e0e7e1;
  border-radius: 10px;
  background: #fbfcfa;
}

.wellness-period-summary article.is-next {
  border-color: #d4e1d7;
  background: #eef5ef;
}

.wellness-period-summary span,
.wellness-period-summary strong,
.wellness-period-summary small {
  display: block;
}

.wellness-period-summary span {
  color: #8a968e;
  font-size: 9px;
}

.wellness-period-summary strong {
  margin-top: 5px;
  color: #325744;
  font: 650 15px/1.35 Inter, "Segoe UI", sans-serif;
}

.wellness-period-summary small {
  margin-top: 4px;
  color: #829087;
  font-size: 8.5px;
  line-height: 1.5;
}

.wellness-period-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, .65fr);
  gap: 12px;
  padding: 0 15px 13px;
}

.wellness-period-calendar {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e7e1;
  border-radius: 11px;
  background: #fff;
}

.wellness-period-calendar > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px auto;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.wellness-period-calendar > header > button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #61766a;
}

.wellness-period-calendar > header > button:hover {
  background: #eef4ef;
}

.wellness-period-calendar > header svg {
  width: 14px;
  height: 14px;
}

.wellness-period-calendar > header b {
  color: #385747;
  font: 650 13px/1.4 "LXGW WenKai Lite", "Songti SC", serif;
  text-align: center;
}

.wellness-period-calendar > header .wellness-calendar-today {
  width: auto;
  padding-inline: 8px;
  color: #54705f;
  font-size: 9.5px;
}

.wellness-calendar-weekdays,
.wellness-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.wellness-calendar-weekdays span {
  padding: 4px 0;
  color: #95a099;
  font-size: 8px;
  text-align: center;
}

.wellness-calendar-grid {
  gap: 2px;
}

.wellness-calendar-blank {
  aspect-ratio: 1;
}

.wellness-calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 7px;
  color: #66776d;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.wellness-calendar-day i {
  position: absolute;
  right: 2px;
  bottom: 1px;
  color: #fff;
  font-size: 6px;
  font-style: normal;
  line-height: 1;
}

.wellness-calendar-day.is-period {
  background: #e9a49d;
  color: #713e39;
  font-weight: 650;
}

.wellness-calendar-day.is-period.is-heavy {
  background: #dc8278;
  color: #fff;
}

.wellness-calendar-day.is-period.is-light {
  background: #f3c2bc;
}

.wellness-calendar-day.is-start {
  box-shadow: inset 0 0 0 1.5px #a7564e;
}

.wellness-calendar-day.is-predicted {
  outline: 1px dashed #a66d65;
  outline-offset: -2px;
  background: #fff4f1;
  color: #8c5f59;
}

.wellness-calendar-day.is-predicted::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  top: 4px;
  right: 4px;
  border-radius: 50%;
  background: #b7776d;
}

.wellness-calendar-day.is-predicted i {
  color: #8c5f59;
}

.wellness-calendar-day.is-today {
  box-shadow: inset 0 0 0 1.5px #2f6c51;
}

.wellness-period-calendar > footer {
  display: flex;
  gap: 13px;
  margin-top: 8px;
  color: #8b978f;
  font-size: 8.5px;
}

.wellness-period-calendar > footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wellness-period-calendar > footer i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.wellness-period-calendar > footer .is-actual {
  background: #e9a49d;
}

.wellness-period-calendar > footer .is-estimate {
  border: 1px dashed #a66d65;
  background: #fff4f1;
}

.wellness-period-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wellness-period-tools .life-field {
  margin: 0;
}

.wellness-period-method {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 9px;
  background: #f3f7f2;
}

.wellness-period-method > svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #54775f;
}

.wellness-period-method p {
  margin: 0;
}

.wellness-period-method b,
.wellness-period-method span {
  display: block;
}

.wellness-period-method b {
  color: #4b6355;
  font-size: 10px;
}

.wellness-period-method span {
  margin-top: 4px;
  color: #7d8a82;
  font-size: 9px;
  line-height: 1.55;
}

.wellness-period-history {
  margin: 0 15px;
  overflow: hidden;
  border: 1px solid #e0e7e1;
  border-radius: 11px;
}

.wellness-period-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8faf7;
}

.wellness-period-history > header b {
  color: #4d6557;
  font-size: 11px;
}

.wellness-period-history > header span {
  color: #8d9991;
  font-size: 9px;
}

.wellness-period-row {
  display: grid;
  grid-template-columns: 190px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 9px 12px;
  border-top: 1px solid #edf1ed;
}

.wellness-period-row time b,
.wellness-period-row time small {
  display: block;
}

.wellness-period-row time b {
  color: #4b6254;
  font-size: 10.5px;
}

.wellness-period-row time small {
  margin-top: 3px;
  color: #87948b;
  font-size: 8.5px;
}

.wellness-period-flow {
  padding: 4px 6px;
  border-radius: 99px;
  background: #f5d9d5;
  color: #8c524b;
  font-size: 8.5px;
  text-align: center;
}

.wellness-period-flow.is-light {
  background: #f8e5e2;
}

.wellness-period-flow.is-heavy {
  background: #dfa9a2;
  color: #603632;
}

.wellness-period-row > p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #78867d;
  font-size: 9.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wellness-period-row > div {
  display: flex;
  gap: 2px;
}

.wellness-dialog {
  width: min(620px, calc(100% - 28px));
  max-width: none;
  max-height: min(90dvh, 860px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--life-ink);
}

.wellness-dialog::backdrop {
  background: #112a20a8;
  backdrop-filter: blur(3px);
}

.wellness-dialog-card {
  display: flex;
  max-height: min(90dvh, 860px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fbfdfa;
  box-shadow: 0 28px 80px #0c24193d;
}

.wellness-dialog-card > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 19px 13px;
  border-bottom: 1px solid #e4ebe5;
  background: #fbfdfaf5;
  backdrop-filter: blur(12px);
}

.wellness-dialog-card > header p,
.wellness-dialog-card > header h2 {
  margin: 0;
}

.wellness-dialog-card > header p {
  color: #8c9990;
  font: 650 8.5px/1.4 Inter, "Segoe UI", sans-serif;
  letter-spacing: .14em;
}

.wellness-dialog-card > header h2 {
  margin-top: 2px;
  color: #2e4d3d;
  font: 650 20px/1.35 "LXGW WenKai Lite", "Songti SC", serif;
}

.wellness-dialog-close {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #75847b;
}

.wellness-dialog-close:hover {
  background: #edf3ee;
}

.wellness-dialog-close svg {
  width: 17px;
  height: 17px;
}

.wellness-dialog-body {
  min-height: 0;
  padding: 16px 19px 19px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wellness-editor-form {
  display: grid;
  gap: 13px;
}

.wellness-editor-form .life-field {
  margin: 0;
}

.wellness-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.wellness-fieldset {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid #dfe7e0;
  border-radius: 11px;
  background: #f7faf7;
}

.wellness-fieldset legend {
  padding: 0 5px;
  color: #4b6556;
  font-size: 11px;
  font-weight: 650;
}

.wellness-fieldset legend small {
  color: #8b978f;
  font-size: 9px;
  font-weight: 450;
}

.wellness-calendar-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 9px;
  background: #e8efe9;
}

.wellness-calendar-tabs button {
  min-height: 38px;
  border-radius: 7px;
  color: #728177;
  font-size: 11px;
  font-weight: 650;
}

.wellness-calendar-tabs button[aria-pressed="true"] {
  background: #fff;
  color: #2c6249;
  box-shadow: 0 1px 6px #1c3d2b1a;
}

[data-calendar-panel][hidden] {
  display: none;
}

.wellness-lunar-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wellness-lunar-fields label {
  color: #63756a;
}

.wellness-lunar-fields select {
  min-height: 39px;
  border: 1px solid #d9e2da;
  background: #fff;
  color: #314b3d;
}

.wellness-leap-toggle {
  color: #596d61 !important;
}

.wellness-leap-toggle span {
  color: #596d61;
  font-size: 10.5px;
}

.wellness-calendar-preview {
  min-height: 16px;
  margin: 8px 0 0;
  color: #55705f;
  font-size: 9.5px;
  line-height: 1.5;
}

.wellness-calendar-preview.is-error {
  color: #a34e3d;
}

.wellness-symptom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wellness-symptom-grid label {
  position: relative;
  display: inline-flex;
}

.wellness-symptom-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wellness-symptom-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d8e1d9;
  border-radius: 99px;
  background: #fff;
  color: #64766b;
  font-size: 10px;
}

.wellness-symptom-grid input:checked + span {
  border-color: #5f8e74;
  background: #e8f1e9;
  color: #2e654c;
  font-weight: 650;
}

.wellness-symptom-grid input:focus-visible + span {
  outline: 3px solid #76a48b55;
  outline-offset: 1px;
}

.wellness-dialog-actions {
  position: sticky;
  bottom: -19px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 2px -19px -19px;
  padding: 13px 19px 15px;
  border-top: 1px solid #e4ebe5;
  background: #fbfdfaf5;
  backdrop-filter: blur(12px);
}

.wellness-dialog-actions button {
  min-height: 40px;
  padding-inline: 15px;
}

/* Ledger */
.ledger-page-head {
  margin-bottom: 14px;
}

.ledger-head-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ledger-monthbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 11px;
}

.ledger-monthbar > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dce5de;
  border-radius: 9px;
  background: #fbfdfa;
  color: #60746a;
}

.ledger-monthbar > button:hover {
  background: #eef5ef;
}

.ledger-monthbar svg {
  width: 15px;
  height: 15px;
}

.ledger-monthbar > div {
  min-width: 132px;
  text-align: center;
}

.ledger-monthbar p {
  margin-bottom: 1px;
  font-size: 8px;
}

.ledger-monthbar strong {
  font: 620 18px/1.35 "LXGW WenKai Lite", "Songti SC", serif;
}

.ledger-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}

.ledger-summary-grid article {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--life-line);
  border-radius: 13px;
  background: #fff;
}

.ledger-summary-grid article.is-balance {
  border-color: #cbded1;
  background: linear-gradient(135deg, #f5faf6, #edf5ee);
}

.ledger-summary-icon {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e5efe7;
  color: #3c755b;
}

.ledger-summary-icon.is-income {
  background: #e1f0e7;
  color: #2d7a59;
}

.ledger-summary-icon.is-expense {
  background: #f7e9e4;
  color: #ac604c;
}

.ledger-summary-icon.is-count {
  background: #ecedeb;
  color: #6c7a71;
}

.ledger-summary-icon svg {
  width: 16px;
  height: 16px;
}

.ledger-summary-grid article > div {
  min-width: 0;
}

.ledger-summary-grid small {
  display: block;
  margin-bottom: 5px;
  color: #7d8a82;
  font-size: 9.5px;
}

.ledger-summary-grid strong {
  display: block;
  overflow: hidden;
  color: #2d4d3e;
  font: 650 clamp(14px, 1.4vw, 19px)/1.2 Inter, sans-serif;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ledger-summary-grid strong.is-negative {
  color: #ac5b47;
}

.ledger-summary-grid strong em {
  color: #829087;
  font-size: 9px;
  font-style: normal;
}

.ledger-workgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(245px, .7fr);
  gap: 13px;
  margin-bottom: 13px;
}

.ledger-form {
  padding-bottom: 15px;
}

.ledger-form .life-panel-head {
  padding-bottom: 8px;
}

.ledger-form.is-editing {
  border-color: #accab5;
  box-shadow: 0 0 0 3px #dceade57, 0 8px 24px #213e2d0a;
}

.ledger-cancel-edit {
  padding: 5px 8px;
  border-radius: 6px;
  color: #9a624f;
  background: #fbefeb;
  font-size: 10px;
}

.ledger-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 16px 11px;
  padding: 3px;
  border-radius: 9px;
  background: #f1f4f0;
}

.ledger-type-toggle button {
  min-height: 31px;
  border-radius: 7px;
  color: #7a877f;
  font-size: 11.5px;
}

.ledger-type-toggle button[aria-pressed="true"] {
  background: #fff;
  color: #315f4a;
  box-shadow: 0 1px 6px #1e3b2a18;
  font-weight: 650;
}

.ledger-amount-field {
  display: grid;
  gap: 5px;
  margin: 0 16px 11px;
}

.ledger-amount-field > span {
  color: #596c61;
  font-size: 11px;
  font-weight: 600;
}

.ledger-amount-field > div {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 0 11px;
  border: 1px solid #ceded3;
  border-radius: 10px;
  background: #f8fbf8;
}

.ledger-amount-field b {
  color: #678073;
  font: 500 20px Georgia, serif;
}

.ledger-amount-field input {
  width: 100%;
  min-width: 0;
  height: 47px;
  padding: 4px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #244a38;
  font: 650 25px/1 Inter, sans-serif;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.ledger-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 8px;
}

.ledger-form-grid .life-field {
  margin-right: 8px;
}

.ledger-form-grid .life-field:nth-child(2n) {
  margin-right: 16px;
  margin-left: 0;
}

.ledger-insight-panel {
  padding-bottom: 15px;
}

.ledger-insight-panel .life-panel-head {
  padding-bottom: 9px;
}

.ledger-categories {
  display: grid;
  gap: 13px;
  padding: 3px 17px 2px;
}

.ledger-category-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 5px 7px;
  align-items: center;
}

.ledger-category-row > div:first-child {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #62746a;
  font-size: 10.5px;
}

.ledger-category-row > div:first-child b {
  color: #466153;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.ledger-category-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1ed;
}

.ledger-category-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #70a88a, #2d7459);
  transition: width .35s ease;
}

.ledger-category-row small {
  color: #909b94;
  font-size: 8.5px;
  text-align: right;
}

.ledger-category-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  color: #929d96;
  font-size: 11px;
  text-align: center;
}

.ledger-list-panel {
  overflow: hidden;
}

.ledger-list-head {
  align-items: flex-end;
  padding-bottom: 11px;
}

.ledger-list-head h2 span {
  margin-left: 5px;
  color: #909c94;
  font: 500 9px Inter, sans-serif;
}

.ledger-filters {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.ledger-filters label {
  position: relative;
  min-width: 0;
}

.ledger-filters input {
  width: 190px;
  height: 32px;
  padding: 6px 28px 6px 9px;
  font-size: 10.5px;
}

.ledger-filters label svg {
  position: absolute;
  right: 8px;
  top: 9px;
  width: 13px;
  height: 13px;
  color: #8b978f;
  pointer-events: none;
}

.ledger-filters select {
  width: 94px;
  height: 32px;
  padding: 5px 7px;
  font-size: 10.5px;
}

#ledger-rows {
  border-top: 1px solid #edf1ed;
}

.ledger-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 62px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf1ed;
  transition: background-color .15s;
}

.ledger-streaming {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px 16px;
  color: #7a8b80;
  font-size: 11px;
  text-align: center;
}

.ledger-streaming button {
  padding: 5px 9px;
  border: 1px solid #d6e2d9;
  border-radius: 999px;
  background: #f5f9f5;
  color: #496b5a;
  font-size: 11px;
}

.ledger-panel-loading {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 24px 16px;
  color: #7a8b80;
  font-size: 12px;
  text-align: center;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row:hover {
  background: #fbfdfb;
}

.ledger-date {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 45px;
  padding: 4px;
  border-radius: 9px;
  background: #f3f6f2;
}

.ledger-date strong {
  color: #385648;
  font: 650 16px/1.1 Inter, sans-serif;
}

.ledger-date span {
  color: #8a968e;
  font-size: 8px;
}

.ledger-main {
  min-width: 0;
}

.ledger-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ledger-type-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.ledger-type-dot.is-income {
  background: #3a8a68;
}

.ledger-type-dot.is-expense {
  background: #b36b56;
}

.ledger-title-line > b {
  overflow: hidden;
  color: #304a3d;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-category,
.ledger-tag {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef3ee;
  color: #718077;
  font-size: 8.5px;
}

.ledger-tag {
  background: #f5f0e7;
  color: #8f7958;
}

.ledger-main > p {
  margin: 4px 0 2px;
  overflow: hidden;
  color: #7a877f;
  font-size: 10.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-main > small {
  color: #9aa49d;
  font-size: 8.5px;
}

.ledger-amount {
  min-width: 95px;
  font: 650 14px/1.3 Inter, sans-serif;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ledger-amount.is-income {
  color: #2d7c5c;
}

.ledger-amount.is-expense {
  color: #a65c49;
}

.ledger-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.ledger-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #8b968f;
}

.ledger-actions button:hover {
  background: #eef4ef;
  color: #426b57;
}

.ledger-actions button:last-child:hover {
  background: #faeeea;
  color: #aa5b46;
}

.ledger-actions svg {
  width: 13px;
  height: 13px;
}

.ledger-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 25px;
  text-align: center;
}

/* Quick ledger: configuration in the ledger and one-tap use on the dashboard */
.ledger-quick-panel {
  margin-bottom: 13px;
  overflow: hidden;
}

.ledger-quick-head {
  padding-bottom: 10px;
}

.ledger-quick-head h2 span {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #edf4ee;
  color: #75877c;
  font: 600 9.5px/1.4 Inter, "Segoe UI", sans-serif;
  vertical-align: middle;
}

.ledger-quick-grid,
.home-ledger-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 9px;
}

.ledger-quick-grid {
  padding: 0 16px 16px;
}

.ledger-quick-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7de;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #fbfdfa, #f2f7f2);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ledger-quick-item:hover {
  border-color: #bcd2c1;
  box-shadow: 0 7px 18px #264b3512;
  transform: translateY(-1px);
}

.ledger-quick-run {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  color: #29473a;
  text-align: left;
}

.ledger-quick-item:not(.is-home) .ledger-quick-run {
  padding-right: 64px;
}

.ledger-quick-run:disabled {
  cursor: wait;
  opacity: .62;
}

.ledger-quick-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #f8e9e4;
  color: #aa604d;
}

.ledger-quick-icon.is-income {
  background: #e3f1e8;
  color: #2f7959;
}

.ledger-quick-icon svg {
  width: 17px;
  height: 17px;
}

.ledger-quick-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ledger-quick-copy b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-quick-copy small {
  overflow: hidden;
  color: #849187;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-quick-run > strong {
  color: #a95e4a;
  font: 680 13px/1.2 Inter, "Segoe UI", sans-serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ledger-quick-run > strong.is-income {
  color: #2f7959;
}

.ledger-quick-run > em {
  grid-column: 2 / -1;
  color: #98a29b;
  font-size: 8.5px;
  font-style: normal;
  line-height: 1;
}

.ledger-quick-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  display: flex;
  gap: 2px;
  padding-left: 6px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #f8fbf7 16%);
}

.ledger-quick-actions button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 27px;
  border-radius: 7px;
  color: #7b8d81;
}

.ledger-quick-actions button:hover {
  background: #e7f0e8;
  color: #315f49;
}

.ledger-quick-actions button:last-child:hover {
  background: #f8e9e5;
  color: #a25744;
}

.ledger-quick-actions svg {
  width: 13px;
  height: 13px;
}

.ledger-quick-empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 15px;
  border: 1px dashed #ceddd1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbf7, #f2f7f2);
}

.ledger-quick-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e6f0e7;
  color: #47755e;
}

.ledger-quick-empty > span svg {
  width: 19px;
  height: 19px;
}

.ledger-quick-empty b {
  color: #365746;
  font-size: 12.5px;
}

.ledger-quick-empty p {
  margin: 4px 0 0;
  color: #829087;
  font-size: 10.5px;
  line-height: 1.55;
}

.ledger-quick-empty > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cadcce;
  border-radius: 8px;
  background: #fff;
  color: #37634f;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.ledger-quick-empty > button svg {
  width: 13px;
  height: 13px;
}

.quick-ledger-form {
  margin-top: 1px;
  padding: 15px 16px 16px;
  border-top: 1px solid #e4ebe5;
  background: #f7faf7;
}

.quick-ledger-form[hidden] {
  display: none;
}

.quick-ledger-form > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quick-ledger-form header p {
  margin: 0 0 3px;
  color: #8a988f;
  font: 650 8.5px/1.4 Inter, "Segoe UI", sans-serif;
  letter-spacing: .14em;
}

.quick-ledger-form header h3 {
  margin: 0;
  color: #2b4d3d;
  font: 650 16px/1.4 "LXGW WenKai Lite", "Songti SC", serif;
}

.quick-ledger-form > header > button {
  color: #78887e;
  font-size: 10.5px;
}

.quick-ledger-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.quick-ledger-form-grid .life-field {
  margin: 0;
}

.quick-ledger-form-grid .life-field.is-wide {
  grid-column: 1 / -1;
}

.quick-ledger-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 37px;
  padding: 3px;
  border-radius: 8px;
  background: #e9efea;
}

.quick-ledger-type button {
  border-radius: 6px;
  color: #75847b;
  font-size: 11px;
}

.quick-ledger-type button[aria-pressed="true"] {
  background: #fff;
  color: #315f49;
  box-shadow: 0 1px 5px #1839261a;
  font-weight: 650;
}

.quick-ledger-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
}

.quick-ledger-form-actions .primary,
.quick-ledger-form-actions .secondary {
  min-height: 36px;
  font-size: 11px;
}

.home-ledger-quick {
  margin: 2px 17px 17px;
  padding-top: 13px;
  border-top: 1px solid #e7ece7;
}

.home-ledger-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.home-ledger-quick-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-ledger-quick-head > div > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #e5efe7;
  color: #3b7459;
}

.home-ledger-quick-head svg {
  width: 14px;
  height: 14px;
}

.home-ledger-quick-head b {
  color: #365345;
  font-size: 12.5px;
}

.home-ledger-quick-head > button {
  color: #5f7f6d;
  font-size: 10px;
}

.home-ledger-quick-grid {
  grid-template-columns: 1fr;
  gap: 7px;
}

.ledger-quick-item.is-home {
  background: #f7faf6;
}

.ledger-quick-item.is-home .ledger-quick-run {
  min-height: 62px;
  padding: 8px 10px;
}

.ledger-quick-item.is-home .ledger-quick-icon {
  width: 31px;
  height: 31px;
}

.ledger-quick-item.is-home .ledger-quick-run > em {
  display: none;
}

.home-ledger-quick-foot {
  margin: 7px 0 0;
  color: #97a099;
  font-size: 8.5px;
  text-align: center;
}

.home-ledger-quick-empty {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px dashed #d6e0d7;
  border-radius: 9px;
  background: #f9fbf8;
  text-align: center;
}

.home-ledger-quick-empty p {
  margin: 0;
  color: #76857c;
  font-size: 10.5px;
  line-height: 1.55;
}

.home-ledger-quick-empty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid #cfdfd3;
  border-radius: 7px;
  background: #fff;
  color: #3a654f;
  font-size: 10px;
  font-weight: 650;
}

.home-ledger-quick-empty button svg {
  width: 12px;
  height: 12px;
}

@keyframes life-live-pulse {
  0% {
    box-shadow: 0 0 0 0 #9dd6a755;
  }
  70% {
    box-shadow: 0 0 0 8px #9dd6a700;
  }
  100% {
    box-shadow: 0 0 0 0 #9dd6a700;
  }
}

@media (max-width: 1120px) {
  .life-age-card {
    grid-template-columns: minmax(0, 1.3fr) minmax(235px, .8fr);
    padding: 26px;
  }

  .life-content-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(235px, .8fr);
  }

  .ledger-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-workgrid {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, .75fr);
  }

  .ledger-row {
    grid-template-columns: 45px minmax(0, 1fr) auto 34px;
  }
}

@media (max-width: 820px) {
  .life-age-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .life-birth-form {
    display: flex;
    gap: 8px 10px;
  }

  .life-birth-form label {
    margin-bottom: 0;
  }

  .life-birth-form input,
  .life-birth-form select {
    min-height: 44px;
    margin-bottom: 0;
  }

  .life-calendar-switch button,
  .life-leap-toggle {
    min-height: 44px;
  }

  .life-unit-switch button {
    min-height: 40px;
    padding-inline: 10px;
  }

  .life-birth-form small {
    margin-top: 0;
  }

  .life-content-grid,
  .ledger-workgrid {
    grid-template-columns: 1fr;
  }

  .wellness-period-layout {
    grid-template-columns: 1fr;
  }

  .wellness-period-tools {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(210px, 1.3fr);
    align-items: stretch;
  }

  .ledger-insight-panel {
    min-height: 0;
  }

  .ledger-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
  }

  .ledger-category-empty {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .life-page-head {
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 13px;
  }

  .life-page-head h1 {
    font-size: 29px;
  }

  .life-page-head > div > p:last-child {
    font-size: 11px;
    line-height: 1.5;
  }

  .life-page-head > .life-soft-button {
    margin-top: 18px;
  }

  .wellness-jump-nav {
    margin-top: -2px;
    padding: 4px;
  }

  .wellness-jump-nav button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .wellness-reminder-note,
  .wellness-section-intro {
    margin-right: 13px;
    margin-left: 13px;
    font-size: 10px;
  }

  .wellness-reminder-row {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 5px 10px;
    min-height: 76px;
    padding: 10px 13px;
  }

  .wellness-reminder-mark {
    grid-row: 1 / 3;
  }

  .wellness-reminder-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .wellness-reminder-copy small {
    white-space: normal;
  }

  .wellness-reminder-count {
    grid-column: 2;
    grid-row: 2;
    color: #63786a;
    font-size: 9.5px;
    text-align: left;
  }

  .wellness-reminder-count small {
    display: inline;
    margin-left: 7px;
    font-size: 8px;
  }

  .wellness-reminder-row > svg {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .wellness-people-grid {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .wellness-person-card {
    padding: 13px;
  }

  .wellness-person-card > header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .wellness-person-avatar {
    width: 40px;
    height: 40px;
  }

  .wellness-card-actions button,
  .wellness-anniversary-row button,
  .wellness-period-row button {
    width: 44px;
    height: 44px;
  }

  .wellness-person-age {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .wellness-person-age span {
    text-align: left;
  }

  .wellness-anniversary-head > button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .wellness-anniversary-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 3px;
  }

  .wellness-anniversary-row > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .wellness-anniversary-row > button:nth-last-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .wellness-anniversary-row > button:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .wellness-period-panel {
    padding-bottom: 12px;
  }

  .wellness-period-panel > .life-panel-head {
    align-items: flex-start;
  }

  .wellness-period-panel > .life-panel-head .life-soft-button,
  .wellness-people-panel > .life-panel-head .life-soft-button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .wellness-period-summary {
    grid-template-columns: 1fr;
    padding: 0 12px 11px;
  }

  .wellness-period-summary article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 11px;
  }

  .wellness-period-summary strong {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    text-align: right;
  }

  .wellness-period-summary small {
    grid-column: 1;
    grid-row: 2;
  }

  .wellness-period-layout {
    gap: 10px;
    padding: 0 12px 11px;
  }

  .wellness-period-tools {
    display: flex;
  }

  .wellness-period-calendar > header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .wellness-period-calendar > header > button {
    width: 44px;
    height: 44px;
  }

  .wellness-period-calendar > header .wellness-calendar-today {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 36px;
    margin-top: -4px;
  }

  .wellness-calendar-day {
    border-radius: 6px;
    font-size: 10px;
  }

  .wellness-period-history {
    margin-inline: 12px;
  }

  .wellness-period-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    padding: 10px;
  }

  .wellness-period-row time {
    grid-column: 1;
    grid-row: 1;
  }

  .wellness-period-flow {
    grid-column: 2;
    grid-row: 1;
  }

  .wellness-period-row > p {
    grid-column: 1;
    grid-row: 2;
    white-space: normal;
  }

  .wellness-period-row > div {
    grid-column: 2;
    grid-row: 2;
  }

  .wellness-symptom-grid span {
    min-height: 44px;
    padding-inline: 13px;
  }

  .wellness-dialog {
    width: calc(100% - 12px);
    max-height: 94dvh;
    border-radius: 15px;
  }

  .wellness-dialog-card {
    max-height: 94dvh;
    border-radius: 15px;
  }

  .wellness-dialog-card > header {
    padding: 13px 14px 11px;
  }

  .wellness-dialog-card > header h2 {
    font-size: 18px;
  }

  .wellness-dialog-close {
    width: 44px;
    height: 44px;
  }

  .wellness-dialog-body {
    padding: 13px 14px 16px;
  }

  .wellness-form-grid {
    grid-template-columns: 1fr;
  }

  .wellness-calendar-tabs button {
    min-height: 44px;
  }

  .wellness-lunar-fields select {
    min-height: 44px;
    font-size: 16px;
  }

  .wellness-dialog-actions {
    bottom: -16px;
    margin: 2px -14px -16px;
    padding: 11px 14px 13px;
  }

  .wellness-dialog-actions button {
    min-height: 44px;
  }

  .life-age-card {
    min-height: 0;
    padding: 21px 18px;
    border-radius: 15px;
  }

  .life-age-main > strong {
    font-size: clamp(23px, 7.2vw, 31px);
  }

  .life-age-clock-row b {
    font-size: 21px;
  }

  .life-birthday-line {
    display: grid;
    gap: 2px;
    margin-top: 11px;
  }

  .life-birth-form {
    display: flex;
    padding: 13px;
  }

  .life-birth-form label {
    margin-bottom: 0;
  }

  .life-birth-form input,
  .life-birth-form select {
    margin-bottom: 2px;
    font-size: 16px;
  }

  .life-calendar-switch {
    margin-bottom: 5px;
  }

  .life-calendar-switch button {
    min-height: 44px;
  }

  .life-lunar-fields {
    gap: 5px;
  }

  .life-lunar-fields select {
    padding-inline: 4px;
  }

  .life-leap-toggle {
    min-height: 44px;
    margin-top: 4px !important;
  }

  .life-lunar-preview {
    margin-bottom: 5px;
  }

  .life-birth-form .primary {
    min-height: 44px;
  }

  .life-birth-form small {
    margin-top: 1px;
  }

  .life-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 9px 0;
  }

  .life-metric-card {
    padding: 11px 9px;
    border-radius: 10px;
  }

  .life-metric-card > span {
    font-size: 9px;
  }

  .life-metric-card > strong {
    margin-top: 6px;
    font-size: 18px;
  }

  .life-metric-card > strong small {
    font-size: 8px;
  }

  .life-metric-card > em {
    max-height: 28px;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.35;
  }

  .life-panel {
    border-radius: 12px;
  }

  .life-panel-head {
    padding: 14px 13px 10px;
  }

  .life-panel-head h2 {
    font-size: 15px;
  }

  .life-chart-panel {
    min-height: 292px;
  }

  .life-range-tabs button {
    padding: 4px 6px;
    font-size: 9px;
  }

  .weight-chart {
    min-height: 174px;
  }

  .life-chart-foot {
    padding: 6px 13px 12px;
    font-size: 8.5px;
  }

  .life-field {
    margin-right: 13px;
    margin-left: 13px;
  }

  .life-field input,
  .life-field select {
    height: 40px;
    font-size: 16px;
  }

  .life-field textarea {
    font-size: 16px;
  }

  .life-weight-head-actions {
    gap: 5px;
  }

  .life-unit-switch button {
    min-height: 44px;
    padding-inline: 8px;
  }

  .life-wide-button {
    width: calc(100% - 26px);
    margin-right: 13px;
    margin-left: 13px;
  }

  .life-weight-row {
    grid-template-columns: minmax(0, 1fr) auto 30px;
    gap: 4px 9px;
    min-height: 66px;
    padding: 9px 13px;
  }

  .life-weight-row time {
    grid-column: 1;
    font-size: 9.5px;
  }

  .life-weight-row > strong {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .life-weight-row > p {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .life-weight-row > button {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .ledger-page-head {
    display: grid;
    gap: 9px;
  }

  .ledger-head-actions {
    justify-content: flex-start;
  }

  .ledger-head-actions .life-soft-button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10.5px;
  }

  .ledger-monthbar {
    gap: 16px;
    margin-bottom: 8px;
  }

  .ledger-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
  }

  .ledger-summary-grid article {
    min-height: 65px;
    padding: 10px;
    gap: 8px;
  }

  .ledger-summary-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }

  .ledger-summary-grid small {
    margin-bottom: 3px;
    font-size: 8.5px;
  }

  .ledger-summary-grid strong {
    font-size: 14px;
  }

  .ledger-form-grid {
    grid-template-columns: 1fr;
  }

  .ledger-form-grid .life-field,
  .ledger-form-grid .life-field:nth-child(2n) {
    margin-right: 13px;
    margin-left: 13px;
  }

  .ledger-type-toggle,
  .ledger-amount-field {
    margin-right: 13px;
    margin-left: 13px;
  }

  .ledger-amount-field input {
    font-size: 22px;
  }

  .ledger-categories {
    grid-template-columns: 1fr;
    padding-right: 13px;
    padding-left: 13px;
  }

  .ledger-list-head {
    align-items: stretch;
    display: grid;
    gap: 9px;
  }

  .ledger-filters {
    width: 100%;
  }

  .ledger-filters label {
    flex: 1;
  }

  .ledger-filters input {
    width: 100%;
    height: 36px;
    font-size: 16px;
  }

  .ledger-filters select {
    width: 96px;
    height: 36px;
    font-size: 11px;
  }

  .ledger-row {
    position: relative;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 82px;
    padding: 10px 13px;
  }

  .ledger-date {
    width: 36px;
    min-height: 42px;
  }

  .ledger-date strong {
    font-size: 14px;
  }

  .ledger-amount {
    grid-column: 3;
    align-self: start;
    min-width: 0;
    padding-top: 2px;
    font-size: 12px;
  }

  .ledger-main {
    padding-bottom: 20px;
  }

  .ledger-title-line {
    flex-wrap: wrap;
  }

  .ledger-category,
  .ledger-tag {
    font-size: 8px;
  }

  .ledger-actions {
    position: absolute;
    left: 58px;
    bottom: 7px;
  }

  .ledger-actions button {
    width: 27px;
    height: 22px;
  }

  .life-weight-storage-note {
    margin-right: 13px;
    margin-left: 13px;
  }
}

@media (max-width: 390px) {
  .life-page-head > .life-soft-button {
    padding: 7px 8px;
    font-size: 10px;
  }

  .life-metric-card > em {
    display: none;
  }

  .life-range-tabs {
    gap: 0;
  }

  .life-range-tabs button {
    padding: 4px;
  }

  .life-form-icon {
    display: none;
  }

  .life-unit-switch button {
    padding-inline: 7px;
  }

  .ledger-summary-grid article {
    gap: 6px;
    padding: 8px;
  }

  .ledger-summary-icon {
    display: none;
  }

  .ledger-summary-grid strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .life-live-pulse {
    animation: none;
  }

  .ledger-category-bar i {
    transition: none;
  }
}
.ledger-category-field > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ledger-project-trigger {
  min-height: 30px;
  margin-block: -5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--life-mint);
  color: var(--life-green);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

#ledger-project-picker {
  width: min(540px, calc(100% - 24px));
  max-height: 85dvh;
  padding: 18px;
}

#ledger-project-picker .dialog-head {
  margin-bottom: 12px;
}

#ledger-project-picker .dialog-head button {
  flex: none;
  width: 44px;
  height: 44px;
}

.ledger-project-types {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.ledger-project-types button {
  min-height: 40px;
  min-width: 68px;
  border: 1px solid var(--life-line);
  border-radius: 8px;
}

.ledger-project-types button[aria-pressed="true"] {
  border-color: var(--life-green);
  background: var(--life-green);
  color: #fff;
}

.ledger-project-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ledger-project-controls input,
.ledger-project-controls select {
  min-width: 0;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--life-line);
  border-radius: 8px;
  background: #fff;
  color: var(--life-ink);
  font-size: 16px;
}

#ledger-project-results {
  max-height: 48dvh;
  margin-top: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}

#ledger-project-results > p {
  color: var(--life-muted);
  font-size: 14px;
}

.ledger-project-group {
  padding: 10px 3px 12px;
  border-top: 1px solid var(--life-line);
}

.ledger-project-group h3 {
  margin: 0 0 7px;
  color: var(--life-green);
  font: 650 16px/1.4 "LXGW WenKai Lite", "Songti SC", serif;
}

.ledger-project-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ledger-project-group button {
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid var(--life-line);
  border-radius: 8px;
  background: #f8fbf7;
  color: var(--life-ink);
  font-size: 14px;
}

.ledger-project-group button:hover {
  background: var(--life-mint);
}

@media (max-width: 640px) {
  .ledger-filters {
    flex-wrap: wrap;
  }

  .ledger-filters label {
    flex: 1 0 100%;
    min-width: 0;
  }

  .ledger-filters select {
    flex: 1 1 0;
    min-width: 0;
  }
}
