/* Tempered wellness pivot — replaces the visible RPG skin with a calm lifestyle identity. */
body::before {
  background-image: none;
  background-position: center center !important;
  background-size: cover !important;
  opacity: .58 !important;
  filter: none;
  transform: scale(1.01) !important;
  transition: background-image 180ms ease-out, opacity 180ms ease-out;
}
body:has(.screen--today)::before {
  background-image: none;
}
body:has(.screen--train)::before,
body:has(.screen--session)::before,
body:has(.screen--summary)::before {
  background-image: none;
}
body:has(.screen--history)::before {
  background-image: none;
}

/* RPG bookkeeping still exists underneath old backups, but it is no longer a product surface. */
.today-summary__xp,
.today-earned,
[data-section='xp'],
[data-section='levels'],
[data-section='directive'] { display: none !important; }

/* Health Shortcut bridge */
.health-launch {
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: var(--surface-1);
  color: var(--text-2);
}
.health-launch__scene {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 420px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(env(safe-area-inset-top) + 26px) 24px calc(env(safe-area-inset-bottom) + 26px);
  background: var(--surface-1);
  overflow-y: auto;
}
.health-launch__brand {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: none;
}
.health-launch__brand span { font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--text-2); }
.health-launch__center { align-self: center; max-width: 590px; }
.health-launch__symbol { font-size: 42px; color: var(--text-2); text-shadow: none; }
.health-launch__eyebrow { color: var(--text-2); font-size: 12px; font-weight: 850; letter-spacing: 0; }
.health-launch__center h2 {
  margin: 12px 0;
  max-width: 11ch;
  font-size: clamp(46px, 13vw, 90px);
  line-height: .95;
  letter-spacing: 0;
  text-shadow: none;
}
.health-launch__line { font-size: clamp(17px, 4.4vw, 23px); color: var(--text-2); text-shadow: none; }
.health-launch__bottom { display: grid; gap: 12px; max-width: 620px; width: 100%; margin-inline: auto; }
.health-launch__hint { margin: 0; text-align: center; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.health-launch__status { min-height: 1.5em; margin: 0; text-align: center; color: var(--text-2); font-size: 12px; }
.health-launch__ready {
  min-height: 66px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  background: var(--surface-1);
  color: var(--text-2);
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: none;
}
.health-launch__ready span { font-size: 27px; }
.health-launch__ready:disabled { opacity: .75; }
.health-launch__options { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.health-launch__options a,
.health-launch__options button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-height: 570px) {
  .health-launch__scene { padding-top: calc(env(safe-area-inset-top) + 12px); padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
  .health-launch__center h2 { font-size: 42px; }
  .health-launch__symbol { font-size: 28px; }
  .health-launch__ready { min-height: 54px; }
}
.health-bridge__today {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 0;
  border-top: 1px solid var(--hairline);
}
.health-bridge__today > span { color: var(--text-2); font-size: 12px; }
.health-bridge__today-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 7px; }
.health-bridge__run,
.health-bridge__import,
.health-bridge__setup {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  padding: 0 12px;
  text-decoration: none;
}
.health-bridge__import { padding-inline: 9px; border-color: var(--text-2); background: var(--surface-1); color: var(--text-2); }
.health-bridge__setup { padding-inline: 10px; border-color: var(--text-2); background: var(--surface-1); color: var(--text-2); }
.health-bridge__settings { order: -1; }
.health-bridge__settings-open { width: 100%; margin-top: 12px; border-radius: 13px; }
.health-bridge__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.health-bridge__actions .button { min-width: 0; font-size: 12px; }
.health-setup-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--surface-1);
}
.health-setup-screen {
  width: min(100%, 620px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}
.health-setup-header { display: flex; align-items: center; gap: 13px; min-height: 54px; }
.health-setup-header__back {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 14px;
  background: var(--surface-1);
  color: var(--text-2);
  font: inherit;
  font-size: 31px;
}
.health-setup-header span,
.health-setup-hero__eyebrow { color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.health-setup-header h2 { margin: 2px 0 0; font-size: 27px; line-height: 1; }
.health-setup-hero,
.health-setup-section {
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: var(--surface-1);
}
.health-setup-hero { border-color: var(--text-2); }
.health-setup-hero h3 { margin: 0; font-size: 21px; line-height: 1.16; }
.health-setup-hero p,
.health-setup-section p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.48; }
.health-setup-section h3 { margin: 0; font-size: 13px; letter-spacing: 0; }
.health-setup__primary { min-height: 50px; border-color: var(--text-2); background: var(--surface-1); color: var(--text-2); text-decoration: none; }
.health-setup__warning { padding: 12px; border-radius: 14px; background: var(--surface-1); color: var(--text-2); }
.health-setup-steps { display: grid; gap: 9px; margin: 0; padding-left: 21px; color: var(--text-2); font-size: 12px; line-height: 1.43; }
.health-setup-steps strong { color: var(--text-2); }
.health-setup-steps code { color: var(--text-2); }
.health-setup__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.health-setup__actions .button { min-width: 0; min-height: 48px; padding-inline: 9px; text-align: center; text-decoration: none; }
.health-setup__note { font-size: 10px !important; }
.health-setup-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.health-setup-metrics span { padding: 9px 10px; border-radius: 11px; background: var(--surface-1); color: var(--text-2); font-size: 12px; }
.health-setup-details { display: grid; gap: 11px; }
.health-setup-details summary { min-height: 44px; display: flex; align-items: center; color: var(--text-2); font-size: 12px; font-weight: 780; cursor: pointer; }
.health-manual-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.health-manual-form label { display: grid; gap: 5px; color: var(--text-2); font-size: 12px; }
.health-manual-form input {
  min-width: 0;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-2);
  font: inherit;
  font-size: 16px;
}
.health-manual-form .button { grid-column: 1 / -1; }
.health-setup-status { position: sticky; bottom: 0; margin: 0; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface-1); color: var(--text-2); font-size: 12px; text-align: center; }
.health-import-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--surface-1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.health-import-sheet {
  width: min(100%, 520px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 0;
  border-radius: 28px;
  background: var(--surface-1);
  box-shadow: none;
}
.health-import-sheet__eyebrow { color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.health-import-sheet__title { margin: 0; font-size: 24px; line-height: 1.05; letter-spacing: 0; }
.health-import-sheet__copy,
.health-import-sheet__status { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.45; }
.health-import-sheet__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 14px;
  border: 0;
  border-radius: 17px;
  outline: none;
  background: var(--surface-1);
  color: var(--text-2);
  font: 500 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.health-import-sheet__input:focus { border-color: var(--text-2); box-shadow: none; }
.health-import-sheet__input::placeholder { color: var(--text-2); }
.health-import-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.health-import-sheet__actions .button { min-height: 48px; }
.health-import-sheet__submit { border-color: var(--text-2); background: var(--surface-1); color: var(--text-2); }
.health-import-sheet__submit:disabled { opacity: .55; }

@media (max-width: 390px) {
  .health-bridge__actions,
  .health-setup__actions { grid-template-columns: 1fr; }
  .health-bridge__today { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { body::before { transition: none; } }

/* ChatGPT Health paste bridge: intentionally compact and recap-only. */
.health-paste-entry {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 13px 2px 1px;
  border-top: 1px solid var(--hairline);
}
.health-paste-entry > div { min-width: 0; display: grid; gap: 3px; }
.health-paste-entry strong { color: var(--text-2); font-size: 12px; letter-spacing: 0; }
.health-paste-entry span { color: var(--text-2); font-size: 12px; line-height: 1.35; }
.health-paste-entry .button { flex: none; min-height: 42px; padding-inline: 14px; font-size: 12px; }
.health-paste-overlay {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: block;
  align-items: end;
  justify-items: center;
  overflow-y: auto;
  padding: 0;
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  overflow: hidden;

  bottom: auto;

  height: 100dvh;
}
.health-paste-sheet {
  width: min(100%, 640px);
  max-height: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;

  box-sizing: border-box;

  height: 100%;

  margin: 0 auto;

  align-content: start;
}
.health-paste-sheet__head { display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  position: sticky;

  top: 0;

  z-index: 2;

  margin-inline: -16px;

  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;

  background: var(--bg);
}
.health-paste-sheet__head > div { display: grid; gap: 3px; }
.health-paste-sheet__head span,
.health-paste-sheet__label { color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.health-paste-sheet__head h2 { margin: 0; color: var(--text-1); font-size: 22px; line-height: 28px; }
.health-paste-sheet__head button {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--recovery-ink);
  font: inherit;
  font-size: 34px;
}
.health-paste-sheet__intro,
.health-paste-sheet__status { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.health-paste-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.health-paste-sheet__actions .button { min-width: 0; padding-inline: 8px; font-size: 12px; text-decoration: none; }
.health-paste-sheet__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding: 13px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text-1);
  font: 400 16px/20px ui-monospace, SFMono-Regular, Menlo, monospace;

  height: clamp(100px, 20dvh, 190px);
}
.health-paste-preview { display: grid; gap: 10px; padding: 12px; border: 0; border-radius: 16px; background: var(--surface-2); }
.health-paste-preview__head { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 12px; }
.health-paste-preview__head strong { color: var(--recovery-ink); }
.health-paste-preview__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.health-paste-preview__metrics > div { min-width: 0; display: grid; gap: 2px; padding: 9px; border-radius: 11px; background: var(--surface-1); }
.health-paste-preview__metrics span { color: var(--text-2); font-size: 12px; }
.health-paste-preview__metrics strong { overflow: hidden; color: var(--recovery-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.health-paste-preview > p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.45; }
.health-paste-sheet__import { width: 100%; border-color: var(--text-2); background: var(--surface-1); color: var(--text-2); }
.health-paste-sheet__import:disabled { opacity: .45; }
body[data-health-paste-open='true'] { overflow: hidden; }
@media (max-width: 390px) {
  .health-paste-entry { align-items: flex-start; flex-direction: column; }
  .health-paste-entry .button { width: 100%; }
  .health-paste-sheet__actions { grid-template-columns: 1fr; }
}

.health-paste-step { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface-1); }

.health-paste-step h3 { margin: 0; font: 600 17px/22px var(--font-ui); }

.health-paste-step h3 span { color: var(--recovery-ink); margin-right: 8px; }

.health-paste-step .button { border: 0; background: var(--surface-2); color: var(--recovery-ink); min-height: 44px; text-decoration: none; text-align: center; white-space: normal; }

.health-paste-sheet__input:focus-visible { outline: 2px solid var(--recovery-ink); outline-offset: 2px; }

.health-paste-sheet__footer .health-paste-sheet__import { background: var(--recovery); color: var(--on-accent); }

.health-paste-preview[hidden] { display: none; }

.health-paste-sheet__content { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 16px; scroll-padding-block: 8px; }
.health-paste-sheet__footer { flex: none; padding-bottom: 4px; }
.health-paste-sheet__head { flex: none; }
