/* =========================================================
   体重 / 档案 / 财务 / 生活 / 设置 / 问管家
   与药箱同一套暖黄语言
   ========================================================= */

.app-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px 16px;
  margin: 18px 0 12px;
}

.app-hero__title {
  margin: 0;
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.04em;
  color: #151515;
}

.app-hero__desc {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.35;
  opacity: .72;
}

.app-hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.app-hero__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.app-hero__count strong {
  font-size: clamp(42px, 11vw, 56px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.04em;
}

.app-hero__count span {
  margin-top: 6px;
  font-size: 16px;
  opacity: .72;
}

.app-add,
body.is-warm .fin-add,
body.is-warm .life-collection__head button,
body.is-warm .life-empty-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(70, 55, 10, .06);
  color: #151515;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.app-add .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.app-who {
  margin: 0 0 12px;
}

body.is-warm .person-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

body.is-warm .person-switch__item {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: none;
  color: rgba(21, 21, 21, .62);
  font-size: 14px;
  font-weight: 550;
}

body.is-warm .person-switch__item.is-active {
  background: #151515;
  color: #fff;
}

.app-subnav--scroll {
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-subnav--scroll::-webkit-scrollbar { display: none; }

.app-subnav--scroll .health-subnav__item {
  flex: 0 0 auto;
}

.app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: -8px 0 18px;
}

.app-split div {
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
}

.app-split em {
  display: block;
  font-size: 13px;
  font-style: normal;
  opacity: .52;
}

.app-split b {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.app-split .is-in { color: #557F39; }
.app-split .is-out { color: #C95448; }

/* ---------- 通用卡片 / 记录 ---------- */

body.is-warm .card,
body.is-warm .weight-board,
body.is-warm .weight-fold,
body.is-warm .card--chart,
body.is-warm .fin-sheet,
body.is-warm .life-space,
body.is-warm .life-item-card,
body.is-warm .life-empty-card,
body.is-warm .life-collection__head,
body.is-warm .settings-hero,
body.is-warm .record {
  background: rgba(255, 255, 255, .92);
  border: 0;
  box-shadow: 0 8px 18px rgba(70, 55, 10, .04);
  backdrop-filter: none;
}

body.is-warm .card,
body.is-warm .weight-board,
body.is-warm .card--chart,
body.is-warm .fin-sheet,
body.is-warm .life-collection__head,
body.is-warm .settings-hero {
  border-radius: 24px;
}

body.is-warm .section-title h2,
body.is-warm .life-spaces__head h2,
body.is-warm .fin-sheet__head span,
body.is-warm .life-collection__head strong {
  font-size: 22px;
  font-weight: 700;
  color: #151515;
}

body.is-warm .section-title {
  margin: 24px 0 12px;
}

body.is-warm .chip,
body.is-warm .weight-fold > summary {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: rgba(20, 20, 20, .62);
  box-shadow: none;
  font-weight: 550;
}

body.is-warm .chip.is-on,
body.is-warm .cabinet-chip.is-on {
  background: var(--cabinet-yellow, var(--home-bg));
  box-shadow:
    inset 0 0 0 1px rgba(170, 120, 10, .25),
    0 4px 12px rgba(130, 90, 10, .08);
  color: #151515;
}

body.is-warm .btn-primary {
  background: #151515;
  color: #fff;
  border: 0;
}

body.is-warm .btn-secondary,
body.is-warm .linkish {
  background: rgba(255, 255, 255, .92);
  color: #151515;
  border: 0;
}

body.is-warm .record {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin-bottom: 8px;
  padding: 14px;
  border-radius: 20px;
}

body.is-warm .record-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #E4EED8;
}

/* ---------- 体重 ---------- */

body.is-warm .weight-board {
  padding: 18px;
}

body.is-warm .weight-board__now {
  display: none;
}

body.is-warm .weight-board__head {
  align-items: center;
}

body.is-warm .weight-fold {
  margin-top: 10px;
  padding: 4px 14px 10px;
  border-radius: 24px;
}

/* ---------- 财务 / 生活 ---------- */

body.is-warm .fin-page { gap: 0; }

body.is-warm .fin-toolbar {
  margin: 0 0 8px;
}

body.is-warm .fin-toolbar .app-add {
  height: 40px;
  padding: 0 14px;
  font-size: 15px;
}

body.is-warm .fin-month strong {
  min-width: 108px;
  font-size: 17px;
  color: #151515;
}

body.is-warm .fin-month__nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
}

body.is-warm .fin-tabs { display: none; }

body.is-warm .fin-hero,
body.is-warm .fin-hero--life,
body.is-warm .fin-hero--budget {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.is-warm .fin-hero__lead strong,
body.is-warm .fin-hero__top strong {
  font-size: clamp(42px, 11vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.is-warm .fin-actions {
  margin: 0 0 18px;
}

body.is-warm .fin-actions button {
  min-height: 64px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px rgba(70, 55, 10, .04);
}

body.is-warm .fin-actions span {
  background: #151515;
  color: #fff;
}

body.is-warm .fin-sheet { margin-bottom: 12px; }

body.is-warm .fin-sheet__head {
  padding: 16px 16px 8px;
}

body.is-warm .fin-sheet__head button,
body.is-warm .fin-line__btn,
body.is-warm .fin-bill__ops button,
body.is-warm .life-item-card__actions button,
body.is-warm .life-item-card__footer button {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 21, 21, .06);
  color: #151515;
  font-weight: 600;
}

body.is-warm .life-space {
  border-radius: 24px;
}

body.is-warm .life-space__icon {
  background: #F3E6C4;
  color: #151515;
}

body.is-warm .life-item-card {
  min-height: 0;
  padding: 16px;
  border-radius: 24px;
}

body.is-warm .life-item-card::before { display: none; }

body.is-warm .life-collection__head {
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 16px;
}

body.is-warm .period-card {
  background: linear-gradient(120deg, #F6C2CB, #F3B7C0);
}

/* ---------- 设置 ---------- */

body.is-warm .settings-hero {
  display: none;
}

body.is-warm .settings-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.is-warm .settings-nav::-webkit-scrollbar { display: none; }

body.is-warm .settings-nav .chip {
  flex: 0 0 auto;
  background: none;
  box-shadow: none;
  opacity: .48;
}

body.is-warm .settings-nav .chip.is-on {
  position: relative;
  background: none;
  box-shadow: none;
  opacity: 1;
  font-weight: 650;
}

body.is-warm .settings-nav .chip.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #151515;
  transform: translateX(-50%);
}

body.is-warm #settingsBody .card {
  padding: 16px;
}

/* ---------- 问管家 ---------- */

body.is-butler .topbar-profile { display: block; }
body.is-butler .profile { pointer-events: none; }
body.is-butler .avatar {
  width: 46px;
  height: 46px;
  font-size: 26px;
}

body.is-butler .butler-page__hello h1 {
  font-size: clamp(36px, 10vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.is-butler .quick-reply {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #151515;
}

body.is-butler .butler-page__send {
  background: #151515;
  color: #fff;
}

@media (max-width: 349px) {
  .app-hero__count strong { font-size: 42px; }
  .app-add { height: 44px; padding: 0 14px; font-size: 15px; }
}
