@font-face {
  font-family: 'DS Izmir';
  src: url('/assets/fonts/ds-izmir-normal.ttf?v=20260727-mantra-settings') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --telegram-bg: #000;
  --bg: #000;
  --surface: #101826;
  --surface-raised: #162137;
  --surface-soft: rgba(255, 255, 255, .035);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .7);
  --subtle: rgba(255, 255, 255, .48);
  --accent: #4D7DFF;
  --accent-secondary: #7B61FF;
  --border: rgba(255, 255, 255, .05);
  --good: #37E08A;
  --excellent: #4D7DFF;
  --normal: #f1c75b;
  --bad: #ff6b72;
  --card-radius: 24px;
  --button-radius: 18px;
  --small-radius: 14px;
  --card-gap: 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(116px + env(safe-area-inset-bottom));
  color: var(--text);
  background: #000;
}
body.workout-home-view { background: #000; }
.workout-page[data-workout-focus]:focus-visible { outline: none; }
button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  overflow: hidden;
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 84px;
  padding: calc(8px + env(safe-area-inset-top)) 18px 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.profile-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(129, 166, 255, .42);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(77,125,255,.72), rgba(123,97,255,.64));
  box-shadow: 0 0 20px rgba(77,125,255,.20);
  font-size: 18px;
  font-weight: 760;
}
.profile-avatar.has-image { border-color: rgba(255,255,255,.18); background: var(--surface-raised); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar-copy { min-width: 0; text-align: center; }
h1 {
  margin: 0;
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.selected-date {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 19px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: 0 0 24px rgba(77, 125, 255, .13), inset 0 1px rgba(255,255,255,.08);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.icon-button:hover { transform: translateY(-1px); border-color: rgba(115, 148, 255, .32); }
.icon-button:active, .calendar-nav:active, .diary-section-tab:active { transform: scale(.96); }
.icon-button svg { width: 22px; height: 22px; }

main { width: 100%; max-width: 720px; margin: 0 auto; padding: 10px 16px 28px; }
.content-stage { opacity: 1; }
.content-stage.is-loading { opacity: .68; }
.content-stage.is-entering { animation: content-in 220ms cubic-bezier(.2,.8,.2,1); }
body:has(.mantra-modal-backdrop) .content-stage,
.diary-panel:has(.mantra-modal-backdrop),
.practice-detail-page:has(.mantra-modal-backdrop) { animation: none; opacity: 1; transform: none; }
.content-stage > .card { animation: card-in 220ms cubic-bezier(.2,.8,.2,1) both; }
.content-stage > .card:nth-child(2) { animation-delay: 35ms; }
.content-stage > .card:nth-child(3) { animation-delay: 70ms; }
.content-stage > .card:nth-child(4) { animation-delay: 105ms; }

.diary-section-menu {
  display: grid;
  grid-template-columns: 1fr .8fr 1fr 1.22fr .9fr .8fr;
  gap: 2px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: #111;
}
.diary-section-tab {
  display: grid;
  min-width: 0;
  min-height: 64px;
  grid-template-rows: 25px auto;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 6px 1px 5px;
  border: 0;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 640;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.diary-section-tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(77, 125, 255, .19);
}
.diary-section-tab:focus-visible { outline: 2px solid rgba(112, 159, 255, .88); outline-offset: -2px; }
.diary-section-icon { display: grid; width: 25px; height: 25px; place-items: center; color: #7f8ca1; }
.diary-section-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.diary-section-icon-asset::before { display: block; width: 24px; height: 24px; content: ''; background: currentColor; -webkit-mask: var(--diary-icon) center / contain no-repeat; mask: var(--diary-icon) center / contain no-repeat; }
.diary-section-icon-nutrition { --diary-icon: url('/assets/navigation/nutrition.webp?v=20260802-unified-style'); color: #66c88a; }
.diary-section-icon-sleep { --diary-icon: url('/assets/navigation/sleep.webp?v=20260802-unified-style'); }
.diary-section-icon-practices { --diary-icon: url('/assets/navigation/practices.webp?v=20260802-unified-style'); }
.diary-section-icon-training { --diary-icon: url('/assets/icons/library/hugeicons-workout-run.svg?v=20260804-training-running-icon-v1'); }
.diary-section-icon-ascetic { --diary-icon: url('/assets/navigation/ascetic.webp?v=20260802-unified-style'); }
.diary-section-tab-sleep .diary-section-icon { color: #8c79ef; }
.diary-section-tab-practices .diary-section-icon { color: #00a8ff; }
.diary-section-tab-training .diary-section-icon { color: #ff3b30; }
.diary-section-tab-ascetic .diary-section-icon { color: #f39a58; }
.diary-section-tab[aria-selected="true"] .diary-section-icon { color: #5f91ff; }
.diary-section-tab-nutrition[aria-selected="true"] .diary-section-icon { color: #66c88a; }
.diary-section-tab-sleep[aria-selected="true"] .diary-section-icon { color: #8c79ef; }
.diary-section-tab-practices[aria-selected="true"] .diary-section-icon { color: #00a8ff; }
.diary-section-tab-training[aria-selected="true"] .diary-section-icon { color: #ff3b30; }
.diary-section-tab-ascetic[aria-selected="true"] .diary-section-icon { color: #f39a58; }
.diary-section-label { display: block; max-width: 100%; white-space: nowrap; }

.diary-more-backdrop {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  background: rgba(1, 5, 15, .72);
  animation: diary-more-backdrop-in 180ms ease both;
}
.diary-more-sheet {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(111, 137, 190, .3);
  border-radius: 24px;
  color: var(--text);
  background: #0b1729;
  box-shadow: none;
  animation: diary-more-sheet-in 220ms cubic-bezier(.2, .8, .2, 1) both;
}
.diary-more-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.diary-more-heading h2 { margin: 0; font-size: 19px; line-height: 1.2; }
.diary-more-close { display: grid; width: 44px; height: 44px; margin: -8px -8px -8px 0; place-items: center; border: 0; border-radius: 14px; color: var(--muted); background: transparent; }
.diary-more-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.diary-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.diary-more-option { display: grid; min-width: 0; min-height: 64px; grid-template-columns: 32px minmax(0, 1fr) 12px; align-items: center; gap: 7px; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; color: var(--text); background: rgba(255,255,255,.025); text-align: left; }
.diary-more-option-icon { display: grid; width: 30px; height: 30px; padding-bottom: 2px; place-items: center; border-radius: 10px; font-size: 23px; font-weight: 500; line-height: 1; }
.diary-more-option-female .diary-more-option-icon { color: #ff8ac2; background: rgba(255, 90, 167, .1); }
.diary-more-option-male .diary-more-option-icon { color: #76baff; background: rgba(79, 159, 255, .1); text-indent: 1px; }
.diary-more-option-label { overflow: hidden; font-size: 14px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.diary-more-option-chevron { color: #74839a; font-size: 20px; text-align: right; }
.diary-more-option[aria-current="page"] { border-color: rgba(112, 159, 255, .38); background: rgba(77, 125, 255, .11); }
.diary-more-option:focus-visible, .diary-more-close:focus-visible { outline: 2px solid #72a4ff; outline-offset: 2px; }
.diary-extra-state { min-height: 190px; align-content: center; text-align: center; }
.diary-extra-symbol { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border-radius: 18px; font-size: 35px; line-height: 1; }
.diary-extra-symbol svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.diary-extra-state h2 { margin: 0 0 8px; font-size: 24px; }
.diary-extra-state p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.diary-extra-female .diary-extra-symbol { color: #ff8ac2; background: rgba(255, 90, 167, .09); }
.diary-extra-male .diary-extra-symbol { color: #76baff; background: rgba(79, 159, 255, .09); }
.diary-extra-ascetic .diary-extra-symbol { color: #f39a58; background: rgba(243, 154, 88, .09); }
body.diary-more-open { overflow: hidden; }

@keyframes diary-more-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes diary-more-sheet-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.diary-panel { animation: panel-in 190ms ease-out; }

.card {
  margin-bottom: var(--card-gap);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: rgba(16, 24, 38, .96);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.card h3 { margin: 0 0 18px; font-size: 24px; font-weight: 740; line-height: 1.15; letter-spacing: -.025em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-heading-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.section-heading-title h3 { margin: 0; }
.section-heading-icon { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; color: #83a6ff; }
.section-heading-icon svg { width: 25px; height: 25px; }
.section-action-pill {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(123, 97, 255, .20);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(123, 97, 255, .055);
  font-size: 13px;
  font-weight: 570;
}
.section-action-pill svg { width: 15px; height: 15px; }

.sleep-overview-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(145px, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 45%, rgba(77, 125, 255, .10), transparent 36%),
    rgba(16, 24, 38, .96);
}
.sleep-overview-card::after {
  position: absolute;
  top: -80px;
  left: 10%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(83, 129, 255, .08);
  filter: blur(44px);
  content: "";
  pointer-events: none;
}
.sleep-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.sleep-ring {
  position: relative;
  display: grid;
  width: min(100%, 176px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(93,116,176,.34) 0 82%, rgba(255,255,255,.055) 82% 100%);
  animation: ring-in 650ms cubic-bezier(.2,.8,.2,1) both;
}
.sleep-ring::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 50%;
  background: #0d1523;
  content: "";
}
.sleep-ring-copy { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.sleep-ring-copy span { color: var(--subtle); font-size: 12px; line-height: 1.25; }
.sleep-ring-copy strong { margin-top: 5px; font-size: clamp(22px, 6vw, 30px); line-height: 1; letter-spacing: -.04em; }
.sleep-ring-copy .sleep-ring-quality-label { margin-top: 14px; }
.sleep-ring-copy .sleep-ring-quality-value { margin-top: 3px; color: var(--subtle); font-size: 18px; font-weight: 650; }
.sleep-details { position: relative; z-index: 1; min-width: 0; }
.sleep-details h3 { margin-bottom: 22px; font-size: clamp(19px, 5vw, 24px); }
.sleep-metric { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 42px; }
.sleep-metric + .sleep-metric { margin-top: 5px; }
.sleep-metric-icon { display: grid; place-items: center; color: #7ba0ff; }
.sleep-metric-icon svg, .sleep-metric-icon .app-library-icon { width: 19px; height: 19px; }
.sleep-metric-label { min-width: 0; color: var(--muted); font-size: 15px; line-height: 1.3; }
.sleep-metric strong { color: rgba(255,255,255,.92); font-size: 15px; font-weight: 620; line-height: 1.3; text-align: right; white-space: nowrap; }

.day-summary-card { background: linear-gradient(155deg, rgba(16,24,38,.98), rgba(13,20,34,.98)); }
.diary-section + .diary-section { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--border); }
.section-label { margin: 0 0 9px; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.35; letter-spacing: .02em; }
.item-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.item { display: flex; gap: 12px; color: rgba(255,255,255,.89); font-size: 17px; line-height: 1.58; overflow-wrap: anywhere; }
.item::before { flex: 0 0 auto; color: var(--accent); font-size: 19px; font-weight: 800; line-height: 1.42; content: "•"; }
.day-item-list { gap: 17px; }

.nutrition-card { display: grid; gap: 12px; }
.nutrition-card > h3 { margin-bottom: 6px; }
.meal-block { min-width: 0; padding: 17px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--button-radius); background: var(--surface-soft); }
.meal-title { margin: 0 0 11px; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.35; }
.meal-subheading { margin: 15px 0 8px; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 700; line-height: 1.35; }
.meal-item-list { gap: 8px; }
.meal-breakfast { border-color: rgba(255, 184, 64, .19); background: rgba(255,184,64,.045); }
.meal-snack { border-color: rgba(64, 200, 224, .18); background: rgba(64,200,224,.04); }
.meal-lunch { border-color: rgba(76, 217, 100, .18); background: rgba(76,217,100,.04); }
.meal-dinner { border-color: rgba(191, 128, 255, .19); background: rgba(191,128,255,.045); }
.meal-neutral { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.025); }

.task-board { display: grid; gap: 8px; }
.task-filters { display: flex; gap: 6px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: none; }
.task-filters::-webkit-scrollbar { display: none; }
.task-filter { min-width: auto; min-height: 34px; flex: 0 0 auto; padding: 0 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 12px; font-weight: 650; }
.task-filter[aria-pressed="true"] { border-color: rgba(129,166,255,.42); color: #fff; background: rgba(77,125,255,.18); }
.task-add-form { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 7px; }
.task-add-input { width: 100%; min-height: 42px; border: 1px solid rgba(129,166,255,.18); border-radius: 14px; color: var(--text); background: rgba(255,255,255,.035); font: inherit; font-size: 16px; padding: 0 13px; outline: none; }
.task-add-input:focus { border-color: rgba(129,166,255,.68); box-shadow: 0 0 0 3px rgba(77,125,255,.12); }
.task-add-button { display: grid; width: 42px; min-width: 42px; min-height: 42px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--accent); }
.task-add-button svg { width: 18px; height: 18px; }
.task-add-button:disabled { opacity: .55; cursor: wait; }
.task-section-card { margin: 0; padding: 8px 11px; border-color: rgba(255,255,255,.065); border-radius: 19px; background: rgba(18,28,44,.96); box-shadow: none; }
.content-stage > .task-section-card { margin-bottom: var(--card-gap); }
.task-section-toggle { display: grid; width: 100%; min-height: 38px; grid-template-columns: 25px minmax(0, auto) 1fr 24px; align-items: center; gap: 7px; padding: 0 2px; border-radius: 11px; color: var(--text); background: transparent; text-align: left; }
.task-section-icon { display: grid; place-items: center; color: #83a6ff; }
.task-section-icon svg { width: 17px; height: 17px; }
.task-section-title { font-size: 14px; font-weight: 710; }
.task-section-count { justify-self: start; min-width: 22px; padding: 2px 7px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.06); font-size: 11px; font-weight: 680; text-align: center; }
.task-section-chevron { display: grid; place-items: center; color: var(--subtle); transition: transform 160ms ease; }
.task-section-chevron svg { width: 16px; height: 16px; }
.task-section-toggle[aria-expanded="false"] .task-section-chevron { transform: rotate(-90deg); }
.task-list { overflow: hidden; border-top: 1px solid rgba(255,255,255,.045); }
.today-collapsible-card { display: block; }
.today-section-toggle { min-height: 44px; }
.today-collapsible-body { display: grid; gap: 12px; overflow: hidden; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.045); }
.today-collapsible-body[hidden] { display: none; }
.today-collapsible-body > .training-note { margin-top: 0; }
.today-summary-groups, .today-summary-list { display: grid; gap: 10px; }
.today-summary-group { display: grid; gap: 6px; }
.today-summary-group + .today-summary-group { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.05); }
.today-summary-group h4 { margin: 0; color: var(--subtle); font-size: 11px; font-weight: 750; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.today-summary-row { display: grid; min-width: 0; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 9px; padding: 3px 0; }
.today-summary-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; color: #75d5a9; background: rgba(75,188,135,.10); }
.today-summary-icon svg { width: 15px; height: 15px; }
.today-summary-copy { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 10px; }
.today-summary-copy strong { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.today-summary-copy span { flex: 0 0 auto; color: var(--muted); font-size: 12px; line-height: 1.3; text-align: right; }
.today-summary-group .empty, .today-collapsible-body > .empty { margin: 0; padding: 3px 0; font-size: 12px; }
.task-empty { margin: 0; padding: 9px 4px 6px; color: var(--subtle); font-size: 12px; }
.task { display: grid; min-height: 58px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.055); touch-action: pan-y; transition: transform 150ms ease, opacity 150ms ease; }
.task:first-child { border-top: 0; }
.task-copy { min-width: 0; }
.task-title { display: -webkit-box; overflow: hidden; margin: 0; color: rgba(255,255,255,.94); font-size: 14px; font-weight: 650; line-height: 1.28; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-description { display: -webkit-box; overflow: hidden; margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.task-metadata { display: flex; min-width: 0; gap: 7px; overflow: hidden; margin-top: 4px; color: var(--subtle); white-space: nowrap; }
.task-metadata-item { display: inline-flex; min-width: 0; align-items: center; gap: 3px; font-size: 10px; line-height: 1; }
.task-metadata-item span { overflow: hidden; text-overflow: ellipsis; }
.task-metadata-item svg { width: 11px; height: 11px; flex: 0 0 auto; stroke-width: 1.8; }
.task-metadata-item.task-priority-high, .task-metadata-item.task-priority-urgent { color: #ff747c; }
.task-metadata-item.task-priority-normal, .task-metadata-item.task-priority-medium { color: #ffad5c; }
.task-metadata-item.task-priority-low { color: #f3d45b; }
.task.is-done { min-height: 49px; padding-top: 5px; padding-bottom: 5px; opacity: .8; }
.task.is-done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.task.is-done .task-description, .task.is-done .task-metadata { display: none; }
.task-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.task-edit-button, .task-status-button, .task-more-button { display: grid; width: 32px; min-width: 32px; height: 34px; min-height: 34px; place-items: center; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.task-edit-button svg, .task-status-button svg, .task-more-button svg { width: 15px; height: 15px; }
.task-edit-button:hover, .task-more-button:hover { color: #fff; background: rgba(255,255,255,.055); }
.task-status-button { color: #9ab3ff; background: rgba(77,125,255,.09); }
.task.is-done .task-status-button { color: #70dda0; background: rgba(55,224,138,.08); }
.task-checkbox { position: relative; display: grid; width: 38px; min-width: 38px; height: 38px; min-height: 38px; place-items: center; padding: 0; border: 0; color: transparent; background: transparent; }
.task-checkbox::before { width: 22px; height: 22px; border: 1.5px solid rgba(129,166,255,.48); border-radius: 50%; background: rgba(77,125,255,.045); content: ""; }
.task-checkbox svg { position: absolute; width: 13px; height: 13px; opacity: 0; }
.task-checkbox:focus-visible { outline: 2px solid rgba(129,166,255,.82); outline-offset: 0; border-radius: 12px; }
.task-checkbox.is-checked { color: #07130d; }
.task-checkbox.is-checked::before { border-color: #37e08a; background: #37e08a; }
.task-checkbox.is-checked svg { opacity: 1; }
.task-edit-form { display: grid; width: 100%; gap: 9px; }
.task-edit-title, .task-edit-description { width: 100%; border: 1px solid rgba(129,166,255,.25); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.045); font: inherit; font-size: 15px; padding: 11px 13px; outline: none; }
.task-edit-title:focus, .task-edit-description:focus { border-color: rgba(129,166,255,.72); box-shadow: 0 0 0 3px rgba(77,125,255,.12); }
.task-edit-description { min-height: 76px; resize: vertical; }
.task-edit-actions { display: flex; gap: 8px; }
.task-edit-save, .task-edit-cancel { min-height: 38px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 0 13px; }
.task-edit-save { color: #fff; background: var(--accent); }
.task-edit-cancel { color: var(--muted); background: rgba(255,255,255,.07); }
.task-context-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; align-items: end; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.48); backdrop-filter: blur(7px); }
.task-context-menu { position: fixed; z-index: 61; overflow-y: auto; overscroll-behavior: contain; margin: 0; }
.task-context-menu, .task-delete-dialog { width: min(100%, 430px); padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; color: var(--text); background: #121c2c; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.task-context-header { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 8px; margin-bottom: 10px; }
.task-context-header strong { overflow: hidden; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.task-context-close { display: grid; width: 34px; min-width: 34px; height: 34px; min-height: 34px; place-items: center; padding: 0; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.055); }
.task-context-close svg { width: 16px; height: 16px; }
.task-context-option.priority-high { color: #ff747c; }
.task-context-option.priority-normal { color: #ffad5c; }
.task-context-option.priority-low { color: #f3d45b; }
.task-context-option.priority-high[aria-current="true"] { border-color: rgba(255,116,124,.65); color: #ff747c; background: rgba(255,72,84,.14); }
.task-context-option.priority-normal[aria-current="true"] { border-color: rgba(255,173,92,.65); color: #ffad5c; background: rgba(255,143,44,.14); }
.task-context-option.priority-low[aria-current="true"] { border-color: rgba(243,212,91,.65); color: #f3d45b; background: rgba(243,212,91,.12); }
.task-context-label { display: block; margin: 9px 0 5px; color: var(--subtle); font-size: 10px; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; }
.task-deadline-label { display: block; margin: 12px 0 5px; color: var(--subtle); font-size: 10px; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; }
.task-deadline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; }
.task-deadline-hint { color: var(--muted); font-size: 11px; white-space: nowrap; }
.task-context-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.task-context-option { min-width: 0; min-height: 36px; padding: 0 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 11px; font-weight: 650; }
.task-context-option[aria-current="true"] { border-color: rgba(129,166,255,.42); color: #fff; background: rgba(77,125,255,.16); }
.task-reschedule-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.task-reschedule-input { min-width: 0; min-height: 38px; padding: 0 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: var(--text); color-scheme: dark; background: rgba(255,255,255,.035); font: inherit; font-size: 12px; }
.task-reschedule-button { min-width: auto; min-height: 38px; padding: 0 11px; border-radius: 10px; color: #dbe4ff; background: rgba(77,125,255,.16); font-size: 11px; font-weight: 680; }
.task-context-delete { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; border-radius: 11px; color: #ff8e93; background: rgba(255,107,114,.08); font-size: 12px; font-weight: 680; }
.task-context-delete svg { width: 15px; height: 15px; }
.task-confirm-backdrop { align-items: center; }
.task-delete-dialog { max-width: 340px; padding: 18px; text-align: center; }
.task-delete-dialog > strong { font-size: 17px; }
.task-delete-dialog > p { overflow: hidden; margin: 8px 0 16px; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.task-delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.task-delete-cancel, .task-delete-confirm { min-height: 40px; border-radius: 11px; font-size: 13px; font-weight: 680; }
.task-delete-cancel { color: var(--text); background: rgba(255,255,255,.07); }
.task-delete-confirm { color: #fff; background: #c9474f; }

.mantra-list { display: grid; gap: 9px; }
.mantra-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.mantra-summary strong { color: var(--text); font-size: 15px; }
.mantra-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.05); border-radius: var(--small-radius); background: rgba(255,255,255,.022); }
.mantra-row.is-done { border-color: rgba(55,224,138,.25); background: rgba(55,224,138,.06); }
.mantra-copy { min-width: 0; }
.mantra-copy strong { display: block; color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.35; }
.mantra-target-label { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.mantra-controls { display: flex; align-items: center; gap: 7px; }
.mantra-toggle { min-width: 64px; min-height: 38px; padding: 0 9px; border: 1px solid rgba(129,166,255,.3); border-radius: 10px; color: #b8caff; background: rgba(77,125,255,.1); cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.mantra-toggle.is-done { border-color: rgba(55,224,138,.55); color: #37e08a; background: rgba(55,224,138,.14); }
.mantra-settings-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.04); cursor: pointer; }
.mantra-settings-button svg { width: 17px; height: 17px; }
.mantra-settings-form { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.mantra-repetitions-input { width: 100px; min-height: 36px; padding: 0 10px; border: 1px solid rgba(129,166,255,.35); border-radius: 9px; color: var(--text); background: rgba(0,0,0,.2); font: inherit; }
.mantra-settings-save, .mantra-settings-cancel { min-height: 36px; padding: 0 11px; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.mantra-settings-save { color: var(--text); background: var(--accent); }
.mantra-settings-cancel { color: var(--muted); background: rgba(255,255,255,.08); }

.mantra-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.mantra-table th { padding: 8px 4px; color: var(--subtle); font-size: 10px; font-weight: 650; line-height: 1.2; text-align: left; }
.mantra-table td { padding: 11px 4px; border-top: 1px solid var(--border); color: rgba(255,255,255,.88); line-height: 1.35; vertical-align: middle; }
.mantra-table th:nth-child(1), .mantra-table td:nth-child(1) { width: 26px; padding-left: 0; text-align: center; }
.mantra-table th:nth-child(3), .mantra-table td:nth-child(3) { width: 54px; text-align: center; }
.mantra-table th:nth-child(4), .mantra-table td:nth-child(4) { width: 50px; padding-right: 0; text-align: center; }
.mantra-name { overflow-wrap: anywhere; word-break: normal; }
.practice-status {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.38);
  border-radius: 50%;
  color: var(--subtle);
}
.practice-status.done { border: 0; color: #37e08a; background: transparent; box-shadow: none; }
.practice-status.not_done { border-color: rgba(255,107,114,.48); color: #ff858b; }
.practice-status svg { width: 20px; height: 20px; }
.status-dash { font-size: 17px; line-height: 1; }
.other-practices-title { margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--border); }
.practice-list { display: grid; gap: 9px; }
.practice-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  gap: 13px;
  min-height: 72px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--small-radius);
  background: rgba(255,255,255,.022);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.practice-row:active { transform: scale(.985); background: rgba(255,255,255,.045); }
.practice-list:not(.overview-practice-list) .practice-row { grid-template-columns: minmax(0, 1fr) 34px; }
.practice-icon-tile { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #8eacff; background: rgba(77,125,255,.12); }
.practice-icon-tile svg { width: 22px; height: 22px; }
.practice-icon-sun { color: #ffc557; background: rgba(255,184,64,.11); }
.practice-icon-body { color: #9380ff; background: rgba(123,97,255,.13); }
.practice-icon-flame { color: #ff7d62; background: rgba(255,94,70,.11); }
.practice-icon-waves { color: #61a4ff; background: rgba(77,125,255,.12); }
.training-note { margin: -7px 0 17px; color: var(--muted); font-size: 14px; }
.training-press-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 11px 13px; border: 1px solid rgba(255,155,127,.22); border-radius: 13px; color: #ffc0ae; background: rgba(255,94,70,.07); font-size: 13px; }
.training-press-summary strong { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.training-list { display: grid; gap: 10px; }
.training-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  min-height: 72px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 18px;
  background: rgba(255,255,255,.022);
}
.training-row.has-image { grid-template-columns: 46px minmax(0, 1fr) auto; }
.training-image { grid-column: 1 / -1; display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #fff; }
.training-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #8eacff; background: rgba(77,125,255,.12); }
.training-icon svg { width: 23px; height: 23px; }
.training-row:nth-child(2) .training-icon { color: #7ee6aa; background: rgba(55,224,138,.11); }
.training-row:nth-child(3) .training-icon { color: #ff9b7f; background: rgba(255,94,70,.11); }
.training-copy { min-width: 0; }
.training-copy strong { display: block; font-size: 16px; font-weight: 690; }
.training-copy p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.training-copy .training-progress { color: #d4dcf0; font-size: 12px; font-variant-numeric: tabular-nums; }
.training-sets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.training-set { display: grid; min-height: 36px; place-items: center; border: 1px solid rgba(129,166,255,.20); border-radius: 9px; color: #b8caff; background: rgba(77,125,255,.09); cursor: pointer; font: inherit; font-size: 12px; font-weight: 720; padding: 0; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.training-set:hover { border-color: rgba(129,166,255,.42); background: rgba(77,125,255,.16); }
.training-set:active { transform: scale(.95); }
.training-set:focus-visible { outline: 2px solid rgba(129,166,255,.8); outline-offset: 2px; }
.training-set.is-done { border-color: rgba(55,224,138,.48); color: #8cf0b8; background: rgba(55,224,138,.14); }
.training-set.is-done::after { color: #37e08a; content: "✓"; }
.training-set::after { margin-left: 2px; color: var(--subtle); content: "×"; font-size: 10px; }
.training-badge { padding: 7px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 680; white-space: nowrap; }
.training-badge.is-done { border-color: rgba(55,224,138,.28); color: #8cf0b8; background: rgba(55,224,138,.09); }
.training-totals-title { margin: 17px 0 9px; color: var(--muted); font-size: 13px; font-weight: 650; }
.training-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.training-total { display: grid; min-width: 0; gap: 5px; padding: 10px 8px; border: 1px solid rgba(255,255,255,.055); border-radius: 12px; background: rgba(255,255,255,.022); text-align: center; }
.training-total span { color: var(--muted); font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; }
.training-total strong { color: var(--text); font-size: 18px; font-weight: 720; font-variant-numeric: tabular-nums; }
.practice-icon-wind { color: #42dcb3; background: rgba(55,224,138,.10); }
.practice-copy { min-width: 0; }
.practice-copy strong { display: block; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.practice-copy p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.practices-overview-card .section-heading-icon { color: #9d8cff; }

.related-records-card h3 { margin-bottom: 14px; }
.related-records-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-records-actions button {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
  color: var(--text);
  background: var(--surface-raised);
  font-size: 14px;
  font-weight: 650;
  transition: transform 170ms ease, background-color 170ms ease;
}
.related-records-actions button:active { transform: scale(.97); background: #1c2943; }
.related-records-actions svg { flex: 0 0 auto; width: 18px; height: 18px; color: #82a5ff; }
.related-records-actions span { min-width: 0; overflow-wrap: anywhere; }
.muted, .empty { color: var(--muted); }
.empty { margin: 0; font-size: 15px; line-height: 1.55; }
.state { display: grid; min-height: 55vh; place-content: center; justify-items: center; padding: 26px; color: var(--muted); text-align: center; }
.state h2 { margin: 5px 0 9px; color: var(--text); font-size: 22px; }
.state p { max-width: 310px; margin: 6px 0; line-height: 1.55; }
.state-kicker { color: #83a6ff; font-size: 13px; font-weight: 650; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--surface-raised); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

/* Learning */
.learning-page {
  display: grid;
  width: 100%;
  gap: 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.learning-page[data-learning-focus]:focus-visible { outline: none; }
.learning-card {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(236px, 62vw, 272px);
  min-height: 236px;
  margin: 0;
  padding: 21px;
  overflow: hidden;
  border: 1px solid rgba(132, 158, 211, .18);
  border-radius: 26px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(19, 31, 51, .98), rgba(9, 16, 29, .98)),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}
.learning-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 19, 33, .98) 0%, rgba(12, 21, 37, .92) 48%, rgba(12, 21, 37, .22) 73%, transparent 100%);
  content: "";
  pointer-events: none;
}
.learning-card:hover { border-color: rgba(100, 152, 255, .34); }
.learning-card:active { transform: scale(.985); border-color: rgba(105, 164, 255, .46); }
.learning-card:focus-visible { outline: 2px solid #78a5ff; outline-offset: 2px; }
.learning-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(64%, 390px);
  min-width: 0;
  align-content: start;
  justify-items: start;
}
.learning-card-icon, .learning-placeholder-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(121, 171, 255, .30);
  border-radius: 14px;
  color: #dbe8ff;
  background: #2868d7;
}
.learning-card-icon svg, .learning-placeholder-icon svg { width: 25px; height: 25px; }
.learning-card h2 {
  margin: 14px 0 7px;
  font-size: clamp(22px, 6vw, 27px);
  font-weight: 770;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.learning-card-copy p {
  max-width: 320px;
  margin: 0;
  color: rgba(225, 232, 244, .72);
  font-size: 13px;
  line-height: 1.45;
}
.learning-card-action {
  display: grid;
  min-width: 110px;
  min-height: 44px;
  place-items: center;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid rgba(79, 150, 255, .68);
  border-radius: 13px;
  color: #8fc5ff;
  background: rgba(7, 16, 29, .68);
  font-size: 14px;
  font-weight: 720;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.learning-card-action:hover { border-color: #67a9ff; color: #c6e2ff; background: rgba(32, 74, 132, .30); }
.learning-card-action:active { transform: scale(.96); }
.learning-card-visual {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 54%;
  height: 100%;
  overflow: hidden;
  background: #0d1829;
}
.learning-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .96;
  transition: opacity 220ms ease, transform 220ms ease;
}
.learning-card:hover .learning-illustration { transform: scale(1.015); }
.learning-card-library .learning-illustration { object-position: 50% 48%; }
.learning-card-video .learning-illustration { object-position: 72% 50%; }
.learning-card-audio .learning-illustration { object-position: 52% 50%; }
.learning-image-fallback {
  position: absolute;
  inset: 18px;
  display: none;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.learning-image-fallback.is-visible { display: grid; }
.learning-skeleton {
  background: linear-gradient(100deg, #0f1929 22%, #172842 42%, #0f1929 62%);
  background-size: 220% 100%;
  animation: learning-shimmer 1.25s linear infinite;
}
.learning-card-visual.learning-skeleton .learning-illustration { opacity: 0; }
.learning-card-skeleton { border-color: rgba(132, 158, 211, .10); cursor: default; }
.learning-card-skeleton::after { display: none; }
.learning-subpage { align-content: start; }
.learning-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(132, 158, 211, .20);
  border-radius: 14px;
  color: #d8e3f5;
  background: rgba(16, 24, 38, .96);
}
.learning-back svg { width: 21px; height: 21px; }
.learning-placeholder {
  display: grid;
  min-height: 320px;
  align-content: center;
  justify-items: center;
  margin: 0;
  text-align: center;
}
.learning-placeholder-kicker { margin: 17px 0 5px; color: #77abff; font-size: 13px; font-weight: 720; }
.learning-placeholder h2 { margin: 0; font-size: clamp(25px, 7vw, 32px); }
.learning-placeholder-title:focus { outline: none; }
.learning-placeholder-copy { max-width: 340px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@keyframes learning-shimmer { to { background-position: -220% 0; } }

@media (max-width: 360px) {
  .learning-page { gap: 14px; }
  .learning-card { height: 236px; padding: 18px 16px; border-radius: 24px; }
  .learning-card-copy { width: 66%; }
  .learning-card-icon { width: 44px; height: 44px; }
  .learning-card h2 { margin-top: 12px; font-size: 21px; }
  .learning-card-copy p { font-size: 12px; line-height: 1.42; }
  .learning-card-action { margin-top: 14px; }
  .learning-card-visual { width: 52%; }
}

.calendar-popover {
  position: fixed;
  z-index: 40;
  top: calc(112px + env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100vw - 16px), 430px);
  max-height: calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--card-radius);
  color: var(--text);
  background: rgba(16,24,38,.97);
  box-shadow: 0 18px 55px rgba(0,0,0,.34);
  opacity: 0;
  transform: translate(-50%, -10px) scale(.985);
  transition: opacity 180ms ease, transform 180ms ease;
  overscroll-behavior: contain;
  backdrop-filter: blur(24px);
}
.calendar-popover.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); }
.calendar-toolbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 9px; }
.calendar-toolbar h2 { margin: 0; font-size: 17px; font-weight: 700; text-align: center; }
.calendar-nav { display: grid; width: 44px; height: 44px; place-items: center; border-radius: var(--small-radius); color: var(--text); background: transparent; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); justify-content: center; }
.calendar-weekdays span { display: grid; height: 28px; place-items: center; color: var(--subtle); font-size: 10px; font-weight: 650; }
.calendar-grid { min-height: 288px; }
.calendar-day { position: relative; display: grid; width: 100%; height: 48px; place-items: center; padding: 3px 2px 10px; border-radius: var(--small-radius); color: var(--text); background: transparent; font-size: 13px; }
.calendar-day.sleep-calendar-day { min-width: 44px; min-height: 48px; padding: 0; }
.sleep-calendar-day .calendar-number { position: absolute; top: 4px; right: 0; left: 0; font-size: 11px; line-height: 1; text-align: center; }
.sleep-hours { position: absolute; right: 1px; bottom: 11px; left: 1px; overflow: hidden; color: rgba(255,255,255,.76); font-size: 8px; font-weight: 650; line-height: 10px; text-align: center; text-overflow: clip; white-space: nowrap; }
.sleep-calendar-day.selected .sleep-hours { color: #fff; }
.calendar-day.sleep-calendar-day .calendar-events { bottom: 2px; }
.calendar-day:focus-visible { outline: 1px solid rgba(255,255,255,.78); outline-offset: -3px; }
.calendar-day.adjacent { opacity: .34; }
.calendar-day.selected { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); }
.calendar-day.selected:not(.sleep-calendar-day) { padding-bottom: 3px; }
.calendar-day.today:not(.selected) { box-shadow: inset 0 0 0 1px var(--accent); }
.calendar-number { line-height: 1; }
.calendar-events { position: absolute; bottom: 4px; left: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 12px; transform: translateX(-50%); }
.calendar-event { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; }
.calendar-event.new-moon { border: 1px solid rgba(255,255,255,.78); background: transparent; }
.calendar-event.full-moon { background: rgba(255,255,255,.92); }
.calendar-event.ekadashi { width: 12px; height: 12px; border: 0; border-radius: 0; color: #54d997; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calendar-day.selected .calendar-event.new-moon { border-color: #fff; }
.calendar-loading, .calendar-error { grid-column: 1 / -1; align-self: center; margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.calendar-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 2px 0; padding-top: 15px; border-top: 1px solid var(--border); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.3; }
.calendar-legend .calendar-event { flex: 0 0 auto; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(calc(100vw - 12px), 720px);
  min-height: 88px;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,.07);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  background: rgba(0,0,0,.94);
  box-shadow: 0 -14px 42px rgba(0,0,0,.20);
  transform: translateX(-50%);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}
body.keyboard-entry-active .bottom-nav { display: none; }
.nav-item {
  display: grid;
  min-width: 0;
  min-height: 74px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border-radius: var(--button-radius);
  color: rgba(255,255,255,.44);
  background: transparent;
  transition: color 180ms ease, transform 180ms ease;
}
.nav-item:active { transform: scale(.95); }
.nav-icon-shell { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.nav-icon-shell svg { width: 24px; height: 24px; }
.nav-item small { color: inherit; font-size: 11px; font-weight: 620; line-height: 1; }
.nav-item.active { color: #74c7ff; }
.nav-item.active .nav-icon-shell { color: #fff; background: linear-gradient(145deg, #3479ff, #279fe8); box-shadow: 0 0 24px rgba(77,125,255,.40); transform: translateY(-2px); }

.ripple { position: absolute; z-index: 4; border-radius: 50%; background: rgba(255,255,255,.22); opacity: 0; pointer-events: none; transform: scale(0); animation: ripple-out 250ms ease-out; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-in { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ring-in { from { opacity: 0; transform: rotate(-12deg) scale(.94); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes ripple-out { 0% { opacity: .34; transform: scale(0); } 100% { opacity: 0; transform: scale(1); } }

@media (max-width: 500px) {
  .card { padding: 20px; }
  .task-section-card { padding: 8px 10px; }
  .sleep-overview-card { grid-template-columns: minmax(120px, .82fr) minmax(0, 1.18fr); gap: 18px; }
  .sleep-ring { width: min(100%, 148px); }
  .sleep-ring-copy strong { font-size: 23px; }
  .sleep-ring-copy .sleep-ring-quality-label { margin-top: 10px; font-size: 10px; }
  .sleep-ring-copy .sleep-ring-quality-value { margin-top: 2px; font-size: 15px; }
  .sleep-details h3 { margin-bottom: 14px; font-size: 19px; }
  .sleep-metric { grid-template-columns: 23px minmax(0, 1fr) auto; gap: 6px; min-height: 37px; }
  .sleep-metric-label, .sleep-metric strong { font-size: 13px; }
  .section-action-pill { min-height: 34px; padding: 7px 10px; font-size: 12px; }
}

@media (min-width: 361px) and (max-width: 410px) {
  .sleep-overview-card { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .sleep-details h3 { font-size: 16px; letter-spacing: -.03em; white-space: nowrap; }
  .sleep-metric { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; }
  .sleep-metric-icon svg, .sleep-metric-icon .app-library-icon { width: 18px; height: 18px; }
  .sleep-metric-label, .sleep-metric strong { font-size: 12px; }
}

@media (max-width: 360px) {
  main { padding-right: 10px; padding-left: 10px; }
  .topbar { padding-right: 10px; padding-left: 10px; }
  .card { padding: 18px; }
  .task-section-card { padding: 7px 8px; }
  .task { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 3px; }
  .task-edit-button, .task-status-button, .task-more-button { width: 29px; min-width: 29px; }
  .card h3 { font-size: 21px; }
  .sleep-overview-card { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 16px 14px; }
  .sleep-ring { width: 104px; }
  .sleep-ring::before { inset: 7px; }
  .sleep-ring-copy span { font-size: 10px; }
  .sleep-ring-copy strong { font-size: 20px; }
  .sleep-details h3 { margin-bottom: 9px; font-size: 16px; white-space: nowrap; }
  .sleep-session-overview.is-completed .sleep-details-heading { gap: 6px; }
  .sleep-session-overview.is-completed .sleep-details-heading h3 { font-size: 15px; line-height: 1.15; letter-spacing: -.04em; white-space: normal; }
  .sleep-session-overview.is-completed .sleep-overview-edit { flex-basis: 32px; width: 32px; min-height: 32px; border-radius: 10px; }
  .sleep-metric { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 4px; min-height: 31px; }
  .sleep-metric-icon svg, .sleep-metric-icon .app-library-icon { width: 16px; height: 16px; }
  .sleep-metric-label, .sleep-metric strong { font-size: 11px; }
  .section-heading { align-items: flex-start; }
  .section-action-pill { max-width: 112px; }
  .calendar-popover { width: 100vw; padding: 7px; border-right: 0; border-left: 0; border-radius: 22px; }
  .calendar-legend { margin-right: 8px; margin-left: 8px; }
  .diary-section-menu { grid-template-columns: 1fr 44px 1fr 62px .9fr 44px; gap: 0; padding: 3px; border-radius: 21px; }
  .diary-section-tab { min-height: 60px; gap: 4px; padding-right: 0; padding-left: 0; border-radius: 16px; font-size: 8.5px; letter-spacing: -.035em; }
  .diary-section-icon { width: 23px; height: 23px; }
  .diary-section-icon svg { width: 20px; height: 20px; }
  .diary-more-sheet { padding: 16px; border-radius: 22px; }
  .diary-more-grid { grid-template-columns: minmax(0, 1fr); }
  .diary-more-option { grid-template-columns: 30px minmax(0, 1fr) 14px; gap: 7px; padding: 9px; }
  .diary-more-option-icon { width: 30px; height: 30px; font-size: 22px; }
  .diary-more-option-label { font-size: 12px; }
  .related-records-actions button { gap: 6px; padding-right: 4px; padding-left: 4px; font-size: 12px; }
  .related-records-actions svg { width: 17px; height: 17px; }
  .nav-item small { font-size: 9px; }
  .nav-icon-shell { width: 42px; height: 42px; }
}

@media (min-width: 700px) {
  main { padding-top: 24px; }
  .topbar { padding-right: max(24px, calc((100vw - 720px) / 2)); padding-left: max(24px, calc((100vw - 720px) / 2)); }
}

/* Manual food diary */
.food-diary { display: grid; gap: 24px; min-width: 0; }

/* Water intake */
.water-card { display: grid; min-width: 0; gap: 20px; padding: 18px; overflow: hidden; border: 1px solid rgba(102, 156, 230, .2); border-radius: 24px; background: #0d192b; }
.water-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.water-card-identity { display: grid; min-width: 0; gap: 8px; }
.water-title-row, .water-target-row { display: flex; min-width: 0; align-items: center; gap: 9px; }
.water-title-row h3 { margin: 0; color: var(--text); font-size: 18px; line-height: 1.2; font-weight: 800; }
.water-drop-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: #4c9cff; }
.water-drop-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.water-target-row { padding-left: 37px; color: #8799b3; font-size: 13px; }
.water-target-edit { display: grid; width: 44px; height: 44px; margin: -7px; padding: 0; place-items: center; border: 0; border-radius: 12px; color: #4c9cff; background: transparent; }
.water-target-edit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.water-progress { display: grid; min-width: 96px; justify-items: end; gap: 4px; text-align: right; }
.water-progress strong { color: #f4f8ff; font-size: 27px; line-height: 1; font-weight: 800; white-space: nowrap; }
.water-progress > span { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: #7f92ad; font-size: 11px; line-height: 1.25; white-space: nowrap; }
.water-progress.reached > span { color: #61cfa0; font-weight: 700; }
.water-goal-check { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: #07131f; background: #61cfa0; }
.water-goal-check svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.water-confetti-layer { position: fixed; z-index: 1200; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.water-confetti-piece { position: absolute; top: -22px; left: var(--confetti-x); width: 9px; height: 16px; border-radius: 2px; background: var(--confetti-color); opacity: 0; animation: water-confetti-fall var(--confetti-duration) cubic-bezier(.2,.65,.32,1) var(--confetti-delay) forwards; will-change: transform, opacity; }
.water-confetti-shape-1 { width: 11px; height: 11px; border-radius: 50%; }
.water-confetti-shape-2 { width: 7px; height: 18px; border-radius: 999px; }
.water-cups { display: flex; min-width: 0; align-items: end; justify-content: flex-start; gap: 4px; flex-wrap: wrap; }
.water-cup { position: relative; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; color: #4c9cff; background: transparent; }
.water-glass { position: absolute; bottom: 0; left: 50%; width: 28px; height: 43px; overflow: hidden; border: 1.5px solid #526681; border-top-color: transparent; border-radius: 3px 3px 8px 8px; background: rgba(8, 17, 30, .42); clip-path: polygon(7% 0, 93% 0, 82% 100%, 18% 100%); transform: translateX(-50%); }
.water-glass::before { position: absolute; z-index: 2; top: 0; right: 1px; left: 1px; height: 1.5px; border-radius: 50%; background: #526681; content: ''; }
.water-cup[aria-disabled="true"], .water-add[aria-disabled="true"] { opacity: .64; }
.water-cup:focus-visible { outline: 2px solid #72afff; outline-offset: 1px; }
.water-cup-fill { position: absolute; right: 2px; bottom: 2px; left: 2px; height: calc(var(--water-fill, 0) * (100% - 4px)); border-radius: 1px 1px 5px 5px; background: #2788ee; transition: height 420ms cubic-bezier(.22,.8,.35,1); }
.water-cup-fill::before { position: absolute; top: -2px; right: -5px; left: -5px; height: 4px; border-radius: 50%; background: #66b8ff; content: ''; animation: water-surface 1.8s ease-in-out infinite alternate; }
.water-cup-rim { position: absolute; z-index: 3; inset: 0; border-radius: inherit; }
.water-add { display: grid; width: 44px; min-width: 44px; height: 44px; padding: 0; place-items: center; border: 1.5px dashed #4d78aa; border-radius: 10px; color: #4c9cff; background: rgba(25, 55, 91, .18); }
.water-add svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.water-card-skeleton { min-height: 98px; border-radius: 16px; background: linear-gradient(100deg, rgba(255,255,255,.025) 20%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.025) 80%); background-size: 220% 100%; animation: food-skeleton 1.2s linear infinite; }
.water-card-loading { padding: 14px; }
.water-error { color: var(--muted); font-size: 13px; }
.water-retry { justify-self: start; min-height: 40px; padding: 0 16px; border: 1px solid rgba(76,156,255,.35); border-radius: 13px; color: #77b3ff; background: transparent; font: inherit; font-weight: 700; }
@keyframes water-surface { from { transform: translateX(-1px) rotate(-1deg); } to { transform: translateX(1px) rotate(1deg); } }
@keyframes water-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -5vh, 0) rotate(0deg); }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--confetti-drift), 110dvh, 0) rotate(var(--confetti-spin)); }
}

.water-target-page { height: auto; max-height: min(86dvh, 640px); border-radius: 26px 26px 0 0; background: #0a1220; }
.water-target-panel { display: grid; width: min(100%, 480px); gap: 16px; margin: 0 auto; }
.water-target-panel h2 { margin: 2px 0 0; font-size: 23px; }
.water-target-panel > p { margin: -8px 0 2px; color: var(--muted); font-size: 14px; }
.water-target-field { display: grid; gap: 8px; color: #9badc5; font-size: 13px; font-weight: 700; }
.water-target-field input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: var(--text); background: #101c2e; font: inherit; font-size: 20px; font-weight: 800; }
.water-target-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.water-target-quick button { min-width: 0; min-height: 42px; padding: 0 4px; border: 1px solid rgba(76,156,255,.28); border-radius: 12px; color: #8fc0ff; background: #101d30; font: inherit; font-size: 12px; font-weight: 700; }
.water-target-error { min-height: 18px; color: #ff8f8f; font-size: 12px; }
.water-target-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.water-target-actions button { min-height: 50px; border-radius: 15px; font: inherit; font-weight: 800; }
.water-target-cancel { border: 1px solid rgba(255,255,255,.1); color: var(--text); background: #131d2c; }
.water-target-save { border: 0; color: #fff; background: #267de1; }
.water-target-save:disabled { opacity: .45; }

@media (max-width: 360px) {
  .water-card { gap: 17px; padding: 15px 13px; border-radius: 21px; }
  .water-card-header { gap: 8px; }
  .water-title-row h3 { font-size: 16px; }
  .water-target-row { padding-left: 35px; }
  .water-progress { min-width: 84px; }
  .water-progress strong { font-size: 23px; }
  .water-progress > span { white-space: normal; }
  .water-cups { justify-content: flex-start; gap: 8px 10px; }
  .water-target-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .water-cup-fill { transition-duration: 1ms; }
  .water-cup-fill::before { animation: none; }
  .water-confetti-layer { display: none; }
}

.food-meal { display: grid; gap: 11px; min-width: 0; }
.food-meal-heading { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; }
.food-meal-heading h3 { display: flex; min-width: 0; align-items: center; gap: 12px; margin: 0; font-size: 21px; }
.food-meal-icon { display: grid; width: 36px; height: 36px; place-items: center; }
.food-meal-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.food-meal-breakfast .food-meal-icon { color: #ff704c; }
.food-meal-lunch .food-meal-icon { color: #67d75b; }
.food-meal-snacks .food-meal-icon { color: #bd61ff; }
.food-meal-dinner .food-meal-icon { color: #4d8eff; }
.food-meal-supplements .food-meal-icon { color: #78a8ff; }
.food-add-round, .food-icon-button, .food-page-close, .food-add-product, .food-star, .food-edit-product {
  display: grid; width: 44px; min-width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; color: var(--text); background: #101a2a;
}
.food-add-round svg, .food-icon-button svg, .food-page-close svg, .food-add-product svg, .food-star svg, .food-edit-product svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.food-entry { display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; min-height: 82px; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 21px; background: #0e1828; }
.food-entry-copy, .food-product-row > div { display: grid; min-width: 0; gap: 5px; }
.food-entry-copy strong, .food-product-row strong { display: -webkit-box; overflow: hidden; color: rgba(255,255,255,.94); font-size: 16px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.food-entry-copy span, .food-product-row > div > span { color: var(--muted); font-size: 14px; }
.food-entry-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.food-entry-meta > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.food-image { position: relative; display: grid; width: 58px; height: 58px; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; color: #6b82ac; background: #152136; }
.food-image-small { width: 48px; height: 48px; }
.food-image svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.food-image img:not(.app-library-icon) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.food-image .app-library-icon { width: 28px; height: 28px; }
.app-library-icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--app-icon-url) center / contain no-repeat; mask: var(--app-icon-url) center / contain no-repeat; }
.app-library-icon.is-emoji { display: inline-grid; place-items: center; background: none; -webkit-mask: none; mask: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 22px; font-style: normal; line-height: 1; }
.food-empty-meal { display: grid; min-height: 116px; place-items: center; gap: 5px; padding: 16px; border: 1px dashed rgba(87,143,223,.55); border-radius: 20px; color: var(--text); background: rgba(14,24,40,.72); }
.food-empty-meal svg { width: 29px; height: 29px; fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.food-empty-meal strong { font-size: 15px; }
.food-empty-meal span { color: var(--muted); font-size: 13px; }
.food-primary-button, .food-secondary-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 16px; color: #fff; background: #1769f7; font: inherit; font-weight: 700; }
.food-primary-button:disabled { opacity: .42; }
.food-primary-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.food-secondary-button { color: var(--text); background: #152136; }
.food-create-product { margin-top: 2px; }
.food-skeleton { min-height: 128px; border: 1px solid rgba(255,255,255,.06); border-radius: 21px; background: linear-gradient(100deg, #0e1828 20%, #162239 40%, #0e1828 60%); background-size: 220% 100%; animation: food-skeleton 1.2s linear infinite; }
.food-skeleton.compact { min-height: 78px; }
.food-state, .food-picker-empty { display: grid; justify-items: center; gap: 12px; padding: 30px 18px; color: var(--muted); text-align: center; }
.food-picker-empty button { min-height: 44px; border: 0; color: #64a5ff; background: transparent; font: inherit; font-weight: 700; }
@keyframes food-skeleton { to { background-position: -220% 0; } }

.food-overlay-open { overflow: hidden; }
.food-overlay-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; align-items: end; overflow: hidden; background: rgba(0,0,0,.62); }
.food-page { width: min(100%, 720px); height: 100dvh; margin: 0 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); color: var(--text); background: #070b14; }
.food-page-header { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: start; gap: 10px; margin-bottom: 15px; text-align: center; }
.food-page-header h2 { margin: 2px 0 5px; font-size: 24px; line-height: 1.2; }
.food-page-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.food-page-close { width: 48px; height: 48px; }
.food-picker-target { width: fit-content; margin: 0 auto 14px; padding: 7px 12px; border-radius: 999px; color: #8bb9ff; background: #111f36; font-size: 13px; font-weight: 700; }
.food-search { display: grid; grid-template-columns: 25px minmax(0, 1fr); min-height: 54px; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; color: var(--muted); background: #101927; }
.food-search svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.food-search input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 16px; }
.food-picker-tabs, .food-category-tabs, .food-kind-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 14px 0; padding: 4px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: #0e1725; }
.food-picker-tabs button, .food-category-tabs button, .food-kind-tabs label { min-height: 44px; padding: 8px 6px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; font-weight: 650; }
.food-picker-tabs button.active, .food-category-tabs button.active, .food-kind-tabs input:checked + label, .food-favorite-filter.active { color: #fff; background: #193873; }
.food-category-tabs { gap: 6px; margin-bottom: 8px; padding: 5px; }
.food-category-tabs button { display: flex; min-width: 0; min-height: 62px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.food-category-icon { display: grid; width: 22px; height: 22px; place-items: center; }
.food-category-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.food-category-icon .app-library-icon { width: 20px; height: 20px; }
.food-category-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.food-guna-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.food-guna-filter { display: flex; min-width: 0; min-height: 48px; align-items: center; justify-content: center; gap: 7px; padding: 9px 8px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; color: var(--muted); background: #0e1725; font: inherit; font-size: 13px; font-weight: 700; }
.food-guna-filter svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.food-guna-filter.active { color: #fff; border-color: rgba(73,132,245,.54); background: #193873; }
.food-guna-info-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; box-sizing: border-box; align-items: start; padding: max(12px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom)); background: rgba(3,8,15,.78); }
.food-guna-info { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; box-sizing: border-box; width: min(100%, 620px); height: auto; max-height: min(820px, calc(100dvh - 24px)); margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; color: var(--text); background: #0b1421; }
.food-guna-info > h2 { margin: 0; padding: 20px 20px 8px; font-size: 22px; }
.food-guna-info-lead { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.food-guna-info-content { display: grid; gap: 18px; min-height: 0; padding: 0 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.food-guna-info-section { display: grid; gap: 8px; }
.food-guna-info-section h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.food-guna-info-section p { margin: 0; color: #d6deea; font-size: 14px; line-height: 1.5; }
.food-guna-info-section ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.food-guna-info-close { width: auto; min-height: 48px; margin: 12px 20px max(16px, env(safe-area-inset-bottom)); }
.food-guna-badge, .food-entry-guna { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.food-favorite-filter { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 9px; margin: 0 0 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; color: var(--muted); background: #0e1725; font: inherit; font-size: 14px; font-weight: 700; }
.food-favorite-filter svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }
.food-favorite-filter.active svg { fill: currentColor; }
.food-sort { display: flex; min-height: 44px; align-items: center; justify-content: flex-end; gap: 9px; color: var(--muted); font-size: 13px; }
.food-sort select { min-height: 44px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; color: var(--text); background: #111d2e; font: inherit; }
.food-product-list { overflow: hidden; margin: 18px 0; border: 1px solid rgba(255,255,255,.08); border-radius: 21px; background: #0e1828; }
.food-product-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px 44px 44px; min-height: 76px; align-items: center; gap: 9px; padding: 10px 12px; }
.food-product-row + .food-product-row { border-top: 1px solid rgba(255,255,255,.07); }
.food-action-placeholder { display: block; width: 44px; height: 44px; }
.food-guna-badge { width: fit-content; padding: 2px 7px; border: 1px solid rgba(117,161,225,.42); border-radius: 999px; color: #a9c9f5 !important; font-size: 12px !important; font-weight: 700; line-height: 1.35; }
.food-system-catalog { color: var(--subtle) !important; font-size: 11px !important; line-height: 1.2; }
.food-entry-copy .food-entry-guna { width: fit-content; min-width: 44px; min-height: 44px; margin-block: -14px; overflow: visible; flex: 0 0 auto; color: #a9c9f5; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.food-star { border-color: transparent; color: #7f8ba0; background: transparent; }
.food-star.active { color: #ffd05d; }
.food-star.active svg { fill: currentColor; }
.food-edit-product { border-color: transparent; color: #8da8cf; background: transparent; }
.food-add-product { border-color: #2682ff; color: #4d9aff; background: transparent; }
.food-add-product.added { color: #37e08a; border-color: #37e08a; }
.food-create-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; width: 100%; min-height: 88px; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; color: var(--text); text-align: left; background: #0e1828; }
.food-create-card > span:first-child { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--accent); background: #102148; }
.food-create-card svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.food-create-card > span:nth-child(2) { display: grid; min-width: 0; gap: 5px; }
.food-create-card strong { color: #64a5ff; font-size: 15px; }
.food-create-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.food-forward-icon { color: var(--muted); transform: rotate(180deg); }
.food-inline-error { color: #ff8b91; font-size: 13px; text-align: center; }
.food-toast { position: fixed; z-index: 190; right: max(16px,env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom)); left: max(16px,env(safe-area-inset-left)); display: flex; width: fit-content; max-width: min(520px,calc(100vw - 32px)); align-items: center; gap: 11px; margin: auto; padding: 13px 16px; border: 1px solid rgba(55,224,138,.48); border-radius: 16px; color: #e5fff1; background: #123126; font-weight: 700; line-height: 1.35; text-align: left; }
.food-toast-error { border-color: rgba(255,116,124,.52); color: #ffe8ea; background: #3a171d; }

.food-entry-sheet { width: min(calc(100% - 16px), 500px); max-height: calc(100dvh - 20px - env(safe-area-inset-bottom)); overflow-y: auto; margin: 0 auto calc(8px + env(safe-area-inset-bottom)); padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 23px; color: var(--text); background: #101a2a; }
.food-entry-sheet h3 { margin: 0 0 14px; font-size: 19px; }
.food-entry-sheet > button:not(.food-primary-button) { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 12px; padding: 10px 8px; border: 0; border-top: 1px solid rgba(255,255,255,.07); color: var(--text); background: transparent; font: inherit; text-align: left; }
.food-entry-sheet > button.danger { color: #ff8b91; }
.food-entry-sheet svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.food-entry-editor textarea { width: 100%; min-height: 80px; margin: 12px 0; resize: vertical; }
.food-guna-sheet { display: grid; gap: 12px; border-width: 1px; }
.food-guna-sheet h3, .food-guna-sheet p { margin: 0; }
.food-guna-base, .food-guna-live { color: var(--muted); font-size: 14px; line-height: 1.4; }
.food-guna-base strong, .food-guna-live { color: #c4daf8; }
.food-guna-modifiers { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }
.food-guna-modifiers legend { margin-bottom: 7px; padding: 0; color: var(--muted); font-size: 13px; }
.food-guna-modifier { display: grid; min-height: 44px; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: #0d1726; }
.food-guna-modifier input { width: 20px; height: 20px; margin: 0; accent-color: #4d8eff; }
.food-guna-modifier > span { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.food-guna-modifier strong { overflow: hidden; font-size: 14px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; }
.food-guna-modifier small { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.food-guna-rationale { border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.food-guna-rationale summary { display: flex; min-height: 44px; align-items: center; color: #bcd5f8; font-size: 13px; font-weight: 700; cursor: pointer; }
.food-guna-rationale p { padding: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.food-guna-sheet > .food-secondary-button { justify-content: center; padding: 10px 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; text-align: center; }

.food-product-form { display: grid; gap: 17px; }
.food-kind-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.food-kind-tabs input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.food-kind-tabs label { display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; }
.food-kind-tabs input:focus + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.food-kind-tabs label svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.food-form-group { display: grid; min-width: 0; gap: 9px; margin: 0; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; color: var(--text); background: #0e1828; }
.food-form-group > span, .food-form-group legend { padding: 0; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 650; }
.food-form-group input:not([type="file"]), .food-form-group textarea, .food-form-group select, .food-entry-editor input, .food-entry-editor select, .food-entry-editor textarea { min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; outline: 0; color: var(--text); background: #111d2e; font: inherit; font-size: 16px; }
.food-form-group textarea { min-height: 104px; resize: vertical; }
.food-product-guna-group > small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.food-product-guna-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.food-product-guna-choices input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.food-product-guna-choices label { display: grid; min-width: 0; min-height: 44px; place-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; color: var(--muted); background: #111d2e; font-size: 13px; font-weight: 700; text-align: center; }
.food-product-guna-choices input:checked + label { color: #fff; border-color: rgba(73,132,245,.54); background: #193873; }
.food-product-guna-choices input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Workout catalog */
.workout-page { display: grid; min-width: 0; gap: 16px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); outline: 0; }
.workout-back,
.section-back-button { display: grid; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.09); background: #101a2a; }
.workout-back { width: 44px; border-radius: 50%; color: #fff; }
.section-back-button { position: relative; width: 100%; grid-template-columns: 1fr; place-items: center; justify-self: stretch; padding: 0 44px; border-radius: 22px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 650; }
.workout-back svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.section-back-button svg { position: absolute; left: 12px; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.workout-home-cards { display: grid; min-width: 0; gap: 13px; }
.workout-category-card { display: block; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; transition: transform 150ms ease; }
.workout-category-card:active { transform: scale(.985); }
.workout-category-card img { display: block; width: 100%; height: auto; object-fit: contain; }
.workout-category-hero { position: relative; overflow: hidden; border-radius: 22px; }
.workout-category-hero img { display: block; width: 100%; height: auto; object-fit: contain; }
.workout-exercise-list { display: grid; min-width: 0; gap: 8px; }
.workout-list-heading { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; }
.workout-list-heading h2 { margin: 0; font-size: 20px; }
.workout-add, .workout-edit-link { display: flex; min-height: 44px; align-items: center; padding: 8px; color: #63a5ff; font-weight: 700; text-decoration: none; }
.workout-exercise-row { display: grid; grid-template-columns: 46px minmax(0,1fr) 36px; min-height: 74px; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid rgba(107,126,169,.22); border-radius: 18px; color: var(--text); text-decoration: none; background: rgba(16,24,38,.94); transition: transform 320ms cubic-bezier(.2,.8,.2,1), border-color 320ms ease; }
.workout-exercise-row.practice-category-card { grid-template-columns: 46px minmax(0,1fr) 36px; gap: 12px; padding: 10px 14px; transition: transform 320ms cubic-bezier(.2,.8,.2,1), border-color 320ms ease; }
.workout-exercise-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(107,136,211,.33); border-radius: 50%; background: rgba(37,70,129,.2); }
.workout-exercise-icon .workout-list-icon.practice-category-icon-image { width: 32px; height: 32px; }
.workout-exercise-copy { display: grid; min-width: 0; gap: 3px; }
.workout-exercise-copy strong { font-size: 16px; line-height: 1.2; }
.workout-exercise-copy small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.workout-chevron { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: #ff3b30; font-size: 20px; line-height: 1; }
.theme-blue .workout-chevron.is-complete { color: #34c759; background: rgba(52,199,89,.14); font-size: 18px; font-weight: 800; }
@media (hover: hover) {
  .practice-category-card:hover,
  .workout-exercise-row:hover { transform: translateY(-1px); }
}
.workout-exercise-row:active { transform: scale(.965); }
.workout-exercise-header { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(48,126,255,.25); border-radius: 22px; background: linear-gradient(145deg,#101e36,#0b1423); }
.workout-exercise-header h2, .workout-editor h2 { margin: 0; font-size: clamp(24px,7vw,32px); }
.workout-exercise-header p { margin: 0; color: var(--muted); line-height: 1.45; }
.workout-kicker { color: #65a5ff !important; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.workout-result-form, .workout-editor { display: grid; min-width: 0; gap: 14px; }
.workout-timer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 12px; padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: #0e1828; }
.workout-timer > span { color: var(--muted); font-size: 13px; }
.workout-timer strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.workout-timer .workout-primary { grid-column: 2; grid-row: 1 / span 2; min-width: 112px; }
.workout-primary, .workout-danger { min-height: 48px; padding: 11px 16px; border: 0; border-radius: 15px; color: #fff; background: #1673f9; font: inherit; font-weight: 750; }
.workout-primary:disabled { opacity: .55; }
.workout-danger { color: #ff8b91; background: #32171f; }
.workout-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.workout-field { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 13px; }
.workout-field input, .workout-field textarea, .workout-field select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; outline: 0; color: var(--text); background: #111d2e; font: inherit; font-size: 16px; }
.workout-field textarea { min-height: 92px; resize: vertical; }
.workout-notes { grid-column: 1 / -1; }
.workout-tracking-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
.workout-tracking-picker legend { padding: 0 6px; color: var(--text); font-weight: 700; }
.workout-tracking-picker label { display: flex; min-height: 44px; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.workout-tracking-picker input { width: 20px; height: 20px; }
.workout-history { display: grid; gap: 9px; }
.workout-history h3 { margin: 8px 0 0; font-size: 18px; }
.workout-history-row { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 15px; background: #0e1828; }
.workout-history-row strong { font-size: 14px; line-height: 1.45; }
.workout-history-row small, .workout-empty { color: var(--muted); }
.workout-history-actions { display: flex; gap: 8px; }
.workout-history-actions button { min-height: 44px; padding: 8px 10px; border: 0; color: #76acff; background: transparent; font: inherit; font-weight: 700; }
.workout-history-actions .workout-history-delete { color: #ff8b91; }
.workout-state, .workout-error { padding: 24px 16px; border-radius: 18px; color: var(--muted); text-align: center; background: #0e1828; }
.workout-error { color: #ff9298; }
@media (max-width: 350px) {
  .workout-page { gap: 12px; }
  .workout-field-grid, .workout-tracking-picker { grid-template-columns: minmax(0,1fr); }
  .workout-timer { grid-template-columns: minmax(0,1fr); }
  .workout-timer .workout-primary { grid-column: 1; grid-row: auto; width: 100%; }
}

/* Compact strength exercise result and calendar */
.workout-exercise-header { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.workout-exercise-header-copy { display: grid; min-width: 0; gap: 8px; }
.workout-exercise-header-icon { display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(48,126,255,.28); border-radius: 50%; color: #65a5ff; background: rgba(31,83,160,.12); }
.workout-exercise-header-icon .workout-header-icon-image { width: 39px; height: 39px; }
.workout-strength-detail { --workout-accent: #ff3b30; --workout-accent-soft: rgba(255,59,48,.13); --workout-accent-line: rgba(255,59,48,.54); --workout-success: #34c759; --workout-success-soft: rgba(52,199,89,.13); --workout-success-line: rgba(52,199,89,.54); }
.workout-strength-detail .workout-back { color: #fff; }
.workout-strength-detail .workout-exercise-header { border-color: var(--workout-accent-line); background: #0d1826; }
.workout-strength-detail .workout-kicker { color: var(--workout-accent) !important; }
.workout-strength-detail .workout-exercise-header-icon { border-color: var(--workout-accent-line); color: var(--workout-accent); background: var(--workout-accent-soft); }
.workout-strength-detail .workout-primary { background: var(--workout-accent); }
.workout-strength-form { gap: 14px; }
.workout-counter-card,
.workout-calendar,
.workout-stats { min-width: 0; padding: 16px; border: 1px solid rgba(124,142,176,.22); border-radius: 21px; background: #0d1826; }
.workout-counter-card { position: relative; overflow: hidden; isolation: isolate; }
.workout-counter-card::after { position: absolute; z-index: 0; inset: 0; content: ''; pointer-events: none; opacity: 0; transform: translateX(-115%); background: linear-gradient(100deg, transparent 8%, rgba(52,199,89,.04) 35%, rgba(52,199,89,.22) 50%, rgba(52,199,89,.05) 68%, transparent 92%); }
.workout-counter-card > * { position: relative; z-index: 1; }
.workout-counter-card.is-goal-animating::after { animation: workout-goal-wave 900ms cubic-bezier(.22,.8,.28,1) both; }
.workout-counter-label { margin: 0 0 7px; color: #aeb8cb; font-size: 12px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.workout-counter-controls { display: grid; grid-template-columns: 68px minmax(82px,1fr) 68px; align-items: center; gap: 12px; max-width: 320px; margin: 0 auto; }
.workout-counter-step { display: grid; width: 68px; height: 68px; place-items: center; padding: 0; border: 1px solid rgba(133,150,181,.28); border-radius: 50%; color: #eef3fa; background: transparent; font: inherit; font-size: 23px; font-weight: 720; touch-action: manipulation; }
.workout-counter-step.is-plus { border-color: var(--workout-accent-line); }
.workout-counter-step:active { background: var(--workout-accent-soft); transform: scale(.96); }
.workout-counter-value { display: grid; justify-items: center; gap: 0; }
.workout-counter-value output { color: #fff; font-size: clamp(48px,15vw,64px); font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.workout-counter-value span { margin-top: 3px; color: var(--workout-accent); font-size: 11px; text-transform: uppercase; }
.workout-counter-goal { width: max-content; max-width: 100%; margin: 12px auto 0; padding: 5px 11px; border: 1px solid rgba(139,153,180,.2); border-radius: 999px; color: #b7c0cf; background: #101c2b; font-size: 12px; }
.workout-counter-goal span { color: var(--workout-accent); }
.workout-counter-card.is-goal-complete { border-color: var(--workout-success-line); }
.workout-counter-card.is-goal-complete .workout-counter-value output,
.workout-counter-card.is-goal-complete .workout-counter-value span { color: var(--workout-success); }
.workout-counter-card.is-goal-complete .workout-counter-goal { border-color: var(--workout-success-line); color: var(--workout-success); background: var(--workout-success-soft); }
.workout-counter-card.is-goal-complete .workout-counter-goal span { color: var(--workout-success); }

.workout-calendar { padding: 14px 12px 11px; }
.workout-calendar-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; margin-bottom: 9px; }
.workout-calendar-month { display: grid; min-width: 0; grid-template-columns: 32px minmax(0,1fr) 32px; align-items: center; }
.workout-calendar-month h3 { margin: 0; overflow: hidden; color: #c3cad7; font-size: 14px; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.workout-calendar-nav { display: grid; width: 32px; height: 44px; place-items: center; padding: 0; border: 0; color: #9ba7ba; background: transparent; font: inherit; font-size: 24px; }
.workout-calendar-edit { display: flex; min-height: 44px; align-items: center; gap: 5px; padding: 0 3px; border: 0; color: var(--workout-accent); background: transparent; font: inherit; font-size: 11px; font-weight: 650; white-space: nowrap; }
.workout-calendar-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workout-calendar-weekdays,
.workout-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.workout-calendar-weekdays { padding-bottom: 5px; border-bottom: 1px solid rgba(125,140,168,.16); color: #8490a5; font-size: 9px; text-align: center; }
.workout-calendar-grid { padding-top: 5px; row-gap: 1px; }
.workout-calendar-day { position: relative; display: grid; width: min(100%,44px); min-width: 0; min-height: 0; aspect-ratio: 1; place-items: center; align-content: center; justify-self: center; gap: 0; padding: 0; border: 0; border-radius: 50%; color: #dbe0e9; background: transparent; font: inherit; font-size: 13px; line-height: 1; touch-action: manipulation; }
.workout-calendar-day.is-outside { color: #596375; }
.workout-calendar-day.is-selected { outline: 1px solid var(--workout-accent-line); outline-offset: -4px; }
.workout-calendar-day.is-today:not(.is-goal-complete) { outline: 1px solid rgba(255,255,255,.3); outline-offset: -4px; }
.workout-calendar-day.is-goal-complete { color: #fff; background: transparent; box-shadow: none; outline: 1px solid var(--workout-success); outline-offset: -4px; }
.workout-calendar-day small { min-height: 9px; margin-top: 2px; color: var(--workout-accent); font-size: 8px; font-variant-numeric: tabular-nums; }
.workout-calendar-day.is-goal-complete small { color: var(--workout-success); }
.workout-calendar-legend { margin: 6px 0 0; color: #737f92; font-size: 9px; text-align: center; }
.workout-calendar-legend span { color: var(--workout-accent); }
.workout-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 11px 8px; }
.workout-stats > div { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 7px; padding: 3px 10px; }
.workout-stats > div + div { border-left: 1px solid rgba(255,255,255,.07); }
.workout-stats-icon-image { width: 29px; height: 29px; color: var(--workout-accent); }
.workout-stats p { display: grid; min-width: 0; gap: 3px; margin: 0; }
.workout-stats p span { color: #8993a3; font-size: 10px; }
.workout-stats p strong { color: var(--workout-accent); font-size: 14px; }
.workout-strength-form .workout-save { width: 100%; }
@keyframes workout-goal-wave {
  0% { opacity: 0; transform: translateX(-115%); }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(115%); }
}
@media (prefers-reduced-motion: reduce) {
  .workout-counter-card.is-goal-animating::after { animation: none; }
}
.workout-daily-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; align-items: end; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); background: rgba(2,6,13,.76); }
.workout-daily-editor { display: grid; width: min(100%,520px); max-height: 82dvh; gap: 14px; margin: 0 auto; padding: 18px; overflow-y: auto; border: 1px solid var(--workout-accent-line); border-radius: 22px; background: #0d1826; }
.workout-daily-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workout-daily-editor-heading h3 { margin: 0; font-size: 20px; }
.workout-daily-close { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #bac3d2; background: rgba(255,255,255,.05); font: inherit; font-size: 26px; }
.workout-daily-date { margin: -9px 0 0; color: #8e9aaf; font-size: 12px; }
.workout-counter-step:focus-visible,
.workout-calendar-nav:focus-visible,
.workout-calendar-edit:focus-visible,
.workout-calendar-day:focus-visible,
.workout-daily-close:focus-visible { outline: 2px solid var(--workout-accent); outline-offset: 2px; }
@media (max-width: 350px) {
  .workout-exercise-header { padding: 15px; }
  .workout-exercise-header-icon { width: 62px; height: 62px; }
  .workout-counter-card { padding: 14px 12px; }
  .workout-counter-controls { grid-template-columns: 60px minmax(76px,1fr) 60px; gap: 8px; }
  .workout-counter-step { width: 60px; height: 60px; }
  .workout-calendar { padding-right: 8px; padding-left: 8px; }
  .workout-calendar-edit span { display: none; }
  .workout-stats > div { grid-template-columns: 30px minmax(0,1fr); padding: 3px 6px; }
  .workout-stats-icon-image { width: 24px; height: 24px; }
}
.food-portion-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .55fr); gap: 8px; }
.food-image-upload { display: grid; grid-template-columns: 48px minmax(0, 1fr) 72px; min-height: 90px; align-items: center; gap: 12px; cursor: pointer; }
.food-image-upload > span:first-child { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #17263b; }
.food-image-upload svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.food-image-upload > span:nth-child(2) { display: grid; gap: 6px; }
.food-image-upload small { color: var(--muted); line-height: 1.4; }
.food-image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.food-image-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.food-remove-image { min-height: 44px; border: 0; color: #ff8b91; background: transparent; font: inherit; }
.food-delete-product { min-height: 48px; border: 1px solid rgba(255,116,124,.28); border-radius: 14px; color: #ff8b91; background: transparent; font: inherit; font-weight: 700; }
.food-tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.food-tag-chip { display: flex; min-height: 44px; align-items: center; gap: 7px; padding: 7px 11px; border: 0; border-radius: 999px; color: var(--text); background: #18263a; }
.food-tag-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.food-tag-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.food-tag-add button { min-height: 46px; padding: 8px 13px; border: 1px dashed #3973bc; border-radius: 12px; color: #77aefe; background: transparent; font: inherit; }
.food-tag-suggestions, .food-choice-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.food-suggestion-pill, .food-choice-pill { min-height: 44px; padding: 8px 13px; border: 1px solid rgba(119,174,254,.28); border-radius: 999px; color: #a9c9ff; background: transparent; font: inherit; font-size: 14px; }
.food-choice-pill.active { border-color: #4d8eff; color: #fff; background: #193873; }

/* Shared visual picker for products, practices, sections and future creation forms. */
.app-icon-picker { display: grid; min-width: 0; gap: 11px; margin: 0; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; color: var(--text); background: #0e1828; }
.app-icon-picker legend { padding: 0; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 650; }
.app-icon-selected { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.app-icon-selected > span:first-child { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(93,145,239,.36); border-radius: 14px; color: #72a6ff; background: #13213a; }
.app-icon-selected > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.app-icon-selected strong { font-size: 14px; }
.app-icon-selected small { color: var(--muted); font-size: 12px; }
.app-icon-selected .app-library-icon { width: 27px; height: 27px; }
.app-icon-clear { min-height: 36px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #aab8ce; background: #111d2e; font: inherit; font-size: 12px; }
.app-icon-clear:focus-visible { border-color: #5f8be3; outline: 2px solid rgba(95,139,227,.18); outline-offset: 1px; }
.app-icon-recommendations { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.app-icon-group-filter { width: 100%; min-width: 0; min-height: 44px; padding: 9px 34px 9px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; outline: 0; color: var(--text); background: #111d2e; font: inherit; font-size: 14px; }
.app-icon-group-filter:focus { border-color: #5f8be3; outline: 2px solid rgba(95,139,227,.18); outline-offset: 1px; }
.app-icon-search { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; outline: 0; color: var(--text); background: #111d2e; font: inherit; font-size: 16px; }
.app-icon-search:focus { border-color: #5f8be3; outline: 2px solid rgba(95,139,227,.18); outline-offset: 1px; }
.app-icon-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; max-height: 272px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #365681 transparent; }
.app-icon-choice { display: grid; min-width: 0; min-height: 82px; place-items: center; gap: 5px; padding: 7px 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; color: #92baff; background: #101b2c; font: inherit; }
.app-icon-choice.is-compact { min-height: 46px; padding: 0; }
.app-icon-choice .app-library-icon { width: 24px; height: 24px; pointer-events: none; }
.app-icon-choice span:not(.app-library-icon) { display: -webkit-box; width: 100%; overflow: hidden; color: #aab8ce; font-size: 10px; line-height: 1.18; overflow-wrap: anywhere; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.app-icon-choice.is-selected { border-color: #4e8cf2; color: #d8e8ff; background: #193873; }
.app-icon-empty { grid-column: 1 / -1; margin: 18px 6px; color: var(--muted); font-size: 13px; text-align: center; }
.practice-form .app-icon-picker { border-color: rgba(113,132,174,.34); border-radius: 15px; background: #0a1220; }
.theme-orange .app-icon-choice.is-selected { border-color: #d9873c; background: #6f3b19; }
.practice-definition-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.practice-definition-title .app-library-icon { width: 25px; height: 25px; flex: 0 0 auto; }
.practice-category-icon .app-library-icon, .practice-detail-icon .app-library-icon { width: 30px; height: 30px; }

@media (max-width: 360px) {
  .app-icon-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .app-icon-recommendations { gap: 5px; }
}
.food-add-product:disabled { cursor: not-allowed; opacity: .35; }
.food-tip { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; gap: 8px; padding: 15px 12px 15px 17px; border: 1px solid rgba(77,125,255,.25); border-radius: 17px; color: var(--muted); background: #0e192a; }
.food-tip-copy { min-width: 0; }
.food-tip strong { color: #70a7ff; }
.food-tip p { margin: 7px 0 0; line-height: 1.5; }
.food-tip-close { display: grid; min-width: 44px; min-height: 44px; margin: -7px -4px 0 0; padding: 0; place-items: center; border: 0; border-radius: 13px; color: #7892b8; background: transparent; }
.food-tip-close:active { color: #b9cced; background: rgba(112,167,255,.1); }
.food-tip-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.food-tip-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.food-success-page { display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; }
.food-success-page h2, .food-success-page p { margin: 0; }
.food-success-page p { color: var(--muted); }
.food-success-icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; color: #37e08a; background: #123126; }
.food-success-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2; }
.food-meal-choice-page { display: grid; align-content: start; }
.food-meal-choice { display: grid; width: min(100%, 460px); gap: 10px; margin: 20px auto 0; }
.food-meal-choice-button { display: flex; width: 100%; min-height: 64px; align-items: center; gap: 14px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; color: var(--text); background: #0e1828; font: inherit; font-size: 16px; font-weight: 700; text-align: left; }

@media (max-width: 360px) {
  .food-page { padding-right: 10px; padding-left: 10px; }
  .food-page-header { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 5px; }
  .food-page-header h2 { font-size: 20px; }
  .food-product-row { grid-template-columns: 44px minmax(0, 1fr) 44px 44px 44px; gap: 5px; padding-right: 7px; padding-left: 7px; }
  .food-image-small { width: 44px; height: 44px; }
  .food-picker-tabs button, .food-category-tabs button, .food-kind-tabs label { font-size: 11px; }
  .food-guna-filter { gap: 5px; padding-right: 5px; padding-left: 5px; font-size: 12px; }
  .food-guna-info { max-height: calc(100dvh - 24px); border-radius: 18px; }
  .food-guna-info > h2 { padding: 16px 16px 7px; font-size: 20px; }
  .food-guna-info-lead { padding: 0 16px 13px; }
  .food-guna-info-content { padding: 0 16px 16px; }
  .food-guna-info-close { margin: 10px 16px max(12px, env(safe-area-inset-bottom)); }
  .food-entry { grid-template-columns: 52px minmax(0, 1fr) 44px; padding-right: 8px; padding-left: 8px; }
  .food-image { width: 52px; height: 52px; }
  .food-guna-sheet { width: calc(100% - 12px); padding: 14px; }
  .food-guna-badge { padding-right: 6px; padding-left: 6px; font-size: 11px !important; }
  .food-guna-modifier { padding-right: 8px; padding-left: 8px; }
  .food-guna-modifier strong { white-space: normal; }
}

/* Food pause */
.fasting-card { --fasting-accent: #9b5de5; display: grid; gap: 16px; padding: 18px; border: 1px solid rgba(155,93,229,.3); border-radius: 22px; background: #0e1828; }
.fasting-header { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.fasting-header h3 { display: flex; min-width: 0; align-items: center; gap: 10px; margin: 0; font-size: 19px; line-height: 1.2; }
.fasting-title-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(155,93,229,.65); border-radius: 50%; color: var(--fasting-accent); }
.fasting-title-icon svg { width: 22px; height: 22px; }
.fasting-edit { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #d9e2ef; background: transparent; }
.fasting-edit:disabled { opacity: .38; }
.fasting-edit svg { width: 21px; height: 21px; }
.fasting-card svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fasting-body { display: grid; grid-template-columns: 122px minmax(0, 1fr); align-items: center; gap: 16px; }
.fasting-ring { --fasting-progress: 0deg; position: relative; display: grid; width: 122px; height: 122px; place-items: center; border-radius: 50%; background: conic-gradient(var(--fasting-accent) var(--fasting-progress), #29243a 0); transition: background .5s ease; }
.fasting-ring::before { position: absolute; content: ''; width: 104px; height: 104px; border-radius: 50%; background: #0e1828; }
.fasting-ring-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; }
.fasting-elapsed { font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fasting-target { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fasting-info { min-width: 0; }
.fasting-info > strong { display: block; margin-bottom: 6px; font-size: 15px; }
.fasting-range { margin: 0; color: #bbc6d5; font-size: 13px; line-height: 1.45; }
.fasting-remaining, .fasting-complete { display: inline-flex; min-height: 29px; align-items: center; margin-top: 11px; padding: 4px 10px; border: 1px solid rgba(155,93,229,.5); border-radius: 999px; color: #c58bff; background: rgba(155,93,229,.08); font-size: 12px; font-variant-numeric: tabular-nums; transition: color .25s ease; }
.fasting-complete { color: #b9c3d0; border-color: rgba(255,255,255,.1); background: transparent; }
.fasting-stats { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); color: #b7c1cf; font-size: 13px; }
.fasting-stats svg { width: 20px; height: 20px; }
.fasting-stats strong { color: #c58bff; font-size: 14px; }
.fasting-action { width: 100%; min-height: 50px; padding: 11px 16px; border: 1px solid rgba(197,139,255,.26); border-radius: 15px; color: #fff; background: #7138a7; font: inherit; font-size: 15px; font-weight: 750; transition: background .2s ease, opacity .2s ease; }
.fasting-action:active { background: #613092; }
.fasting-action:disabled { opacity: .55; }
.fasting-empty, .fasting-error { margin: 2px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.fasting-skeleton { min-height: 180px; background: linear-gradient(100deg, #0e1828 20%, #162239 40%, #0e1828 60%); background-size: 220% 100%; animation: food-skeleton 1.2s linear infinite; }
.fasting-picker-backdrop { position: fixed; z-index: 120; inset: 0; display: grid; align-items: end; padding: 12px; background: rgba(0,0,0,.66); }
.fasting-picker { display: grid; gap: 16px; width: min(100%, 480px); margin: 0 auto max(0px, env(safe-area-inset-bottom)); padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: #101927; }
.fasting-picker h3 { margin: 0 4px 2px; font-size: 21px; line-height: 1.3; }
.fasting-picker-field { display: grid; grid-template-columns: 70px minmax(0, 1fr); min-height: 54px; align-items: center; gap: 12px; padding: 6px 10px 6px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; color: var(--muted); background: #0d1624; font-size: 14px; }
.fasting-picker-field input { width: 100%; min-width: 0; min-height: 42px; padding: 6px 8px; border: 0; outline: 0; color: #fff; background: transparent; color-scheme: dark; font: inherit; font-size: 16px; text-align: right; }
.fasting-picker-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.fasting-picker-actions button { min-height: 48px; border-radius: 14px; font: inherit; font-weight: 700; }
.fasting-picker-cancel { border: 1px solid rgba(255,255,255,.1); color: #c4cedb; background: transparent; }
.fasting-picker-save { border: 1px solid rgba(197,139,255,.22); color: #fff; background: #7138a7; }

/* Ekadashi banner */
.ekadashi-banner {
  --ekadashi-accent: #9b5de5;
  position: relative;
  display: grid;
  gap: 17px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(155,93,229,.46);
  border-radius: 26px;
  background: linear-gradient(145deg, #111a32 0%, #171633 54%, #101729 100%);
  isolation: isolate;
}
.ekadashi-banner::before { position: absolute; z-index: -1; content: ''; width: 180px; height: 180px; right: -66px; top: -40px; border-radius: 50%; background: rgba(106,62,167,.13); }
.ekadashi-banner svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ekadashi-close, .ekadashi-sheet-close { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: #c7cce0; background: rgba(12,17,32,.72); }
.ekadashi-close { position: absolute; z-index: 4; top: 14px; right: 14px; }
.ekadashi-close svg, .ekadashi-sheet-close svg { width: 18px; height: 18px; }
.ekadashi-intro { position: relative; z-index: 2; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 13px; padding-right: 102px; }
.ekadashi-lotus-mark, .ekadashi-community-mark { display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(181,119,242,.65); border-radius: 50%; color: #b875ef; background: rgba(24,17,47,.65); }
.ekadashi-lotus-mark { width: 46px; height: 46px; }
.ekadashi-lotus-mark svg { width: 26px; height: 26px; }
.ekadashi-heading { min-width: 0; }
.ekadashi-heading h2 { margin: 0 0 4px; font-size: clamp(20px, 5.2vw, 25px); line-height: 1.12; letter-spacing: -.02em; }
.ekadashi-accent { margin: 0; color: #be78ef; font-size: 13px; font-weight: 750; line-height: 1.35; }
.ekadashi-copy { position: relative; z-index: 2; max-width: 500px; margin: 0; padding-right: 72px; color: #c1c8d9; font-size: 14px; line-height: 1.58; }
.ekadashi-illustration { position: absolute; z-index: 1; width: 118px; height: 158px; top: 37px; right: -4px; color: rgba(182,109,238,.34); pointer-events: none; }
.ekadashi-moon { position: absolute; display: block; width: 106px; height: 106px; top: 2px; right: -2px; }
.ekadashi-moon svg { width: 100%; height: 100%; stroke-width: 1.2; }
.ekadashi-art-lotus { position: absolute; display: block; width: 72px; height: 72px; right: 16px; bottom: 2px; color: rgba(182,109,238,.42); }
.ekadashi-art-lotus svg { width: 100%; height: 100%; stroke-width: 1.15; }
.ekadashi-actions, .ekadashi-community-actions { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 9px; }
.ekadashi-primary, .ekadashi-secondary, .ekadashi-sheet-action { min-height: 48px; padding: 10px 14px; border-radius: 15px; font: inherit; font-size: 14px; font-weight: 750; line-height: 1.2; }
.ekadashi-primary, .ekadashi-sheet-action { border: 1px solid rgba(204,152,255,.23); color: #fff; background: #7138a7; }
.ekadashi-secondary { border: 1px solid rgba(178,112,239,.28); color: #c992f5; background: rgba(38,26,65,.52); }
.ekadashi-primary:disabled, .ekadashi-secondary:disabled, .ekadashi-sheet-action:disabled { opacity: .58; }
.ekadashi-community { position: relative; z-index: 2; display: grid; gap: 15px; padding: 15px; border: 1px solid rgba(155,93,229,.34); border-radius: 20px; background: rgba(8,13,27,.7); }
.ekadashi-community-header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 11px; }
.ekadashi-community-mark { width: 42px; height: 42px; }
.ekadashi-community-mark svg { width: 22px; height: 22px; }
.ekadashi-community-copy { min-width: 0; }
.ekadashi-community-copy h3 { margin: 1px 0 5px; font-size: 16px; line-height: 1.25; }
.ekadashi-community-copy p { margin: 0; color: #aeb7ca; font-size: 12px; line-height: 1.45; }
.ekadashi-price { display: inline-flex; min-width: 46px; min-height: 31px; align-items: center; justify-content: center; padding: 4px 9px; border: 1px solid rgba(183,115,241,.5); border-radius: 999px; color: #d5a4fb; background: rgba(71,36,102,.4); font-size: 14px; font-weight: 800; }
.ekadashi-skeleton { min-height: 260px; border-color: rgba(155,93,229,.22); background: linear-gradient(100deg, #111a2b 20%, #1a2340 40%, #111a2b 60%); background-size: 220% 100%; animation: food-skeleton 1.2s linear infinite; }
.ekadashi-sheet-backdrop { position: fixed; z-index: 135; inset: 0; display: grid; align-items: end; padding: 12px; background: rgba(0,0,0,.7); }
.ekadashi-sheet { position: relative; display: grid; gap: 17px; width: min(100%, 500px); max-height: calc(100dvh - 24px); margin: 0 auto max(0px, env(safe-area-inset-bottom)); padding: 23px 20px 20px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(155,93,229,.35); border-radius: 26px; color: var(--text); background: #101629; }
.ekadashi-sheet h2 { margin: 0; padding-right: 48px; font-size: 22px; line-height: 1.25; }
.ekadashi-sheet-close { position: absolute; top: 16px; right: 16px; }
.ekadashi-sheet-content { display: grid; gap: 13px; }
.ekadashi-learn-more-image { display: block; width: 100%; height: clamp(180px, 28dvh, 230px); object-fit: cover; object-position: 50% 50%; border: 1px solid rgba(155,93,229,.3); border-radius: 17px; }
.ekadashi-sheet-content p { margin: 0; color: #c1c8d8; font-size: 14px; line-height: 1.55; }
.ekadashi-sheet-content .ekadashi-confirmation { color: #f2edf7; font-size: 15px; }
.ekadashi-sheet-content .ekadashi-sheet-note { padding: 11px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; color: #9fa9bb; background: #0c1322; font-size: 12px; }
.ekadashi-detail-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ekadashi-detail-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 9px; color: #cbd2df; font-size: 13px; line-height: 1.45; }
.ekadashi-detail-list span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(155,93,229,.5); border-radius: 50%; color: #bd7af0; }
.ekadashi-detail-list svg { width: 13px; height: 13px; }
.ekadashi-sheet-action { width: 100%; }

@media (max-width: 430px) {
  .ekadashi-banner { padding: 18px 16px; border-radius: 23px; }
  .ekadashi-intro { grid-template-columns: 42px minmax(0, 1fr); padding-right: 68px; }
  .ekadashi-lotus-mark { width: 42px; height: 42px; }
  .ekadashi-copy { padding-right: 40px; font-size: 13px; }
  .ekadashi-illustration { right: -25px; opacity: .8; }
  .ekadashi-actions, .ekadashi-community-actions { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .fasting-card { padding: 15px; }
  .fasting-body { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .fasting-ring { width: 108px; height: 108px; }
  .fasting-ring::before { width: 92px; height: 92px; }
  .fasting-elapsed { font-size: 22px; }
  .fasting-range { font-size: 12px; }
  .fasting-remaining, .fasting-complete { padding-right: 7px; padding-left: 7px; font-size: 11px; }
  .ekadashi-banner { padding: 16px 13px; }
  .ekadashi-intro { gap: 9px; padding-right: 54px; }
  .ekadashi-heading h2 { font-size: 19px; }
  .ekadashi-copy { padding-right: 15px; }
  .ekadashi-community { padding: 13px; }
  .ekadashi-community-header { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; }
  .ekadashi-community-mark { width: 38px; height: 38px; }
}

/* Server-authoritative sleep tracker */
.diary-panel:has(.sleep-dream-stack) { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.diary-panel:has(.sleep-dream-stack) > .sleep-action-shell,
.diary-panel:has(.sleep-dream-stack) > .sleep-action-error,
.diary-panel:has(.sleep-dream-stack) > .sleep-action-skeleton { margin-bottom: 16px; }
.sleep-action-shell { position: relative; width: 100%; margin: 0 0 var(--card-gap); overflow: hidden; border: 2px solid rgba(153,126,255,.72); border-radius: 22px; background: linear-gradient(135deg, rgba(63,35,118,.98), rgba(32,38,91,.98)); }
.sleep-action-shell.is-active { border-color: rgba(112,145,255,.76); background: linear-gradient(135deg, rgba(56,35,112,.98), rgba(29,54,120,.98)); }
.sleep-action-card { position: relative; display: grid; grid-template-columns: 50px minmax(0,1fr) 24px; align-items: center; gap: 13px; width: 100%; min-height: 96px; padding: 17px 18px; overflow: hidden; border: 0; border-radius: inherit; color: var(--text); text-align: left; background: transparent; cursor: pointer; transition: transform .14s ease, filter .14s ease; touch-action: manipulation; }
.sleep-action-card:active { transform: scale(.985); filter: brightness(.92); }
.sleep-action-card:disabled { cursor: wait; opacity: .68; }
.sleep-action-card:focus-visible, .sleep-more-button:focus-visible, .sleep-inline-button:focus-visible, .sleep-result-edit:focus-visible, .sleep-overview-edit:focus-visible, .dream-promo-action:focus-visible, .dream-promo-voice:focus-visible, .dream-voice-button:focus-visible, .dream-benefits-close:focus-visible, .dream-see-all:focus-visible, .dream-recent-row:focus-visible, .sleep-sheet button:focus-visible, .sleep-sheet input:focus-visible, .sleep-sheet textarea:focus-visible { outline: 2px solid #8ea4ff; outline-offset: 2px; }
.sleep-action-icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(191,174,255,.48); border-radius: 16px; color: #d3c9ff; background: rgba(137,95,255,.21); }
.sleep-action-shell:not(.is-active) .sleep-action-icon::after { position: absolute; top: 4px; right: 4px; content: 'Zz'; color: #eee9ff; font-size: 8px; font-weight: 800; letter-spacing: -.5px; }
.is-active .sleep-action-icon { color: #c5d0ff; background: rgba(74,112,255,.22); }
.sleep-action-icon svg { width: 28px; height: 28px; }
.sleep-action-copy { display: grid; min-width: 0; gap: 5px; text-align: center; }
.sleep-action-copy strong { font-size: 19px; line-height: 1.2; }
.sleep-action-subtitle { overflow: hidden; color: #b8bad0; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sleep-live-timer { color: #d0d7ff; font-variant-numeric: tabular-nums; }
.sleep-action-chevron { display: grid; place-items: center; color: #d0c8f2; }
.sleep-action-chevron svg { width: 21px; height: 21px; }
.sleep-more-button { position: absolute; z-index: 2; top: 2px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; color: #bbb7d2; background: transparent; }
.is-active .sleep-action-card { padding-right: 48px; }
.sleep-more-button svg { width: 22px; height: 22px; }
.sleep-action-skeleton { width: 100%; min-height: 88px; margin-bottom: var(--card-gap); border: 1px solid rgba(128,137,164,.18); border-radius: 20px; background: linear-gradient(100deg, rgba(23,28,44,.96) 28%, rgba(35,42,65,.96) 42%, rgba(23,28,44,.96) 58%); background-size: 220% 100%; animation: sleep-skeleton 1.35s linear infinite; }
@keyframes sleep-skeleton { to { background-position: -220% 0; } }
.sleep-action-error { margin-bottom: var(--card-gap); padding: 18px; border: 1px solid rgba(255,125,145,.35); border-radius: 20px; background: rgba(65,28,45,.45); }
.sleep-action-error p { margin: 6px 0 14px; color: var(--muted); }
.sleep-last-result { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; padding: 0 18px 16px; color: #aaa7be; font-size: 12px; }
.sleep-last-result strong { grid-column: 1; color: #dedcf0; font-size: 14px; font-variant-numeric: tabular-nums; }
.sleep-result-edit, .sleep-overview-edit, .sleep-inline-button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(139,112,255,.32); border-radius: 14px; color: #c9c2ff; background: rgba(92,68,161,.14); }
.sleep-result-edit { grid-row: 1 / 3; grid-column: 2; }

.sleep-average-card { width: 100%; min-height: 136px; margin: 0 0 16px; padding: 14px 18px 16px; box-sizing: border-box; overflow: hidden; border: 1px solid rgba(124,135,170,.28); border-radius: 22px; background: linear-gradient(145deg, rgba(15,23,38,.98), rgba(12,18,32,.98)); }
.sleep-average-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 40px; }
.sleep-average-heading { display: flex; min-width: 0; align-items: center; gap: 2px; }
.sleep-average-heading h3 { min-width: 0; margin: 0; color: #d8dbe7; font-size: 14px; font-weight: 520; line-height: 1.25; }
.sleep-average-info { display: grid; width: 44px; height: 44px; flex: 0 0 44px; align-self: flex-end; place-items: center; padding: 0; border: 0; color: #8791aa; background: transparent; font: 500 17px/1 system-ui, sans-serif; }
.sleep-average-period { min-width: 98px; min-height: 44px; padding: 0 28px 0 12px; border: 1px solid rgba(126,137,170,.22); border-radius: 14px; color: #d7d9e5; background-color: rgba(23,31,48,.88); font: 500 16px/1.2 inherit; }
.sleep-average-period:disabled { opacity: .62; }
.sleep-average-body { display: grid; grid-template-columns: minmax(0,.92fr) minmax(132px,1.08fr); align-items: end; gap: 16px; min-height: 72px; }
.sleep-average-copy { min-width: 0; align-self: center; }
.sleep-average-value { display: block; color: #8d69ff; font-size: clamp(26px,7vw,34px); font-weight: 780; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; animation: sleep-value-in .34s ease-out both; }
.sleep-average-value-skeleton { color: rgba(141,105,255,.24); }
.sleep-average-comparison { min-height: 30px; margin: 8px 0 0; color: #929bad; font-size: 11px; line-height: 1.35; }
.sleep-average-comparison.is-more { color: #61c99a; }
.sleep-average-comparison.is-less { color: #f27c8a; }
.sleep-average-empty-title { display: block; color: #d9dce7; font-size: 13px; line-height: 1.3; }
.sleep-average-empty-copy { margin: 5px 0 0; color: #8993a8; font-size: 11px; line-height: 1.35; }
.sleep-average-state { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; color: #a5adbe; font-size: 12px; }
.sleep-average-state p { margin: 0; }
.sleep-average-chart { display: grid; grid-template-columns: repeat(var(--sleep-point-count), minmax(0,1fr)); gap: 5px; align-items: end; height: 70px; min-width: 0; }
.sleep-average-chart.is-dense { gap: 1px; }
.sleep-average-bar-item { display: grid; grid-template-rows: 54px 14px; align-items: end; justify-items: center; min-width: 0; }
.sleep-average-bar { display: block; width: min(100%,14px); height: var(--sleep-bar-height); min-height: 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(121,96,207,.86), rgba(58,64,118,.62)); transform-origin: bottom; animation: sleep-bar-rise .52s cubic-bezier(.2,.8,.2,1) both; }
.sleep-average-bar-item:nth-child(2n) .sleep-average-bar { animation-delay: 35ms; }
.sleep-average-bar-item:nth-child(3n) .sleep-average-bar { animation-delay: 70ms; }
.sleep-average-bar-item.is-latest .sleep-average-bar { background: linear-gradient(180deg, #9b63ff, #6548ef); }
.sleep-average-bar-item.is-placeholder .sleep-average-bar { background: rgba(112,120,151,.15); }
.sleep-average-chart.is-dense .sleep-average-bar { border-radius: 3px 3px 1px 1px; }
.sleep-average-day { max-width: 100%; overflow: hidden; color: #8992a5; font-size: 9px; line-height: 14px; text-align: center; text-overflow: clip; white-space: nowrap; }
@keyframes sleep-bar-rise { from { transform: scaleY(.05); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }
@keyframes sleep-value-in { from { transform: translateY(3px); opacity: .45; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sleep-average-bar, .sleep-average-value { animation: none; }
}
@media (max-width: 360px) {
  .sleep-average-card { padding-right: 14px; padding-left: 14px; }
  .sleep-average-header { gap: 4px; }
  .sleep-average-heading { gap: 0; }
  .sleep-average-heading h3 { font-size: 12px; }

  .sleep-average-period { min-width: 94px; padding-right: 24px; padding-left: 9px; }
  .sleep-average-body { grid-template-columns: minmax(0,.9fr) minmax(122px,1.1fr); gap: 9px; }
  .sleep-average-value { font-size: 22px; white-space: nowrap; }
}

.sleep-dream-stack { display: grid; gap: 16px; }
.sleep-dream-stack > .card { margin: 0; }
.dream-promo-card { position: relative; min-height: 222px; padding: 0; overflow: hidden; border-color: rgba(135,118,216,.34); background: #161a3a; isolation: isolate; }
.dream-promo-illustration { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 72%; height: 100%; object-fit: cover; object-position: center; }
.dream-promo-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(14,17,43,.99) 0%, rgba(18,19,49,.92) 43%, rgba(18,18,48,.34) 72%, rgba(18,18,48,.10) 100%); }
.dream-promo-copy { display: grid; align-content: center; justify-items: start; width: min(66%, 365px); min-height: 222px; padding: 22px; }

.dream-promo-title { max-width: 100%; margin: 0; overflow: hidden; font-size: clamp(17px, 4.9vw, 21px); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.dream-promo-text { max-width: 320px; margin: 8px 0 16px; color: #aeb4cb; font-size: 13px; line-height: 1.45; }
.dream-promo-actions { display: flex; align-items: center; gap: 8px; }
.dream-promo-action { min-width: 164px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(170,150,255,.22); border-radius: 14px; color: #fff; background: linear-gradient(135deg, #7559dc, #586ee0); font-size: 14px; font-weight: 740; white-space: nowrap; }
.dream-promo-voice { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid rgba(177,160,255,.48); border-radius: 14px; color: #ebe6ff; background: rgba(103,78,181,.54); }
.dream-promo-voice svg { width: 21px; height: 21px; }

.dream-benefits-card, .dream-recent-card { padding: 20px; border-color: rgba(121,132,165,.20); background: rgba(16,24,38,.96); }
.dream-benefits-header, .dream-recent-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dream-benefits-header h3, .dream-recent-header h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.dream-benefits-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 0; color: #aeb7c9; background: transparent; font-size: 28px; font-weight: 300; line-height: 1; }
.dream-benefit-list { display: grid; margin-top: 18px; }
.dream-benefit-item { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: start; padding: 15px 0; }
.dream-benefit-item:first-child { padding-top: 0; }
.dream-benefit-item:last-child { padding-bottom: 0; }
.dream-benefit-item + .dream-benefit-item { border-top: 1px solid rgba(121,132,165,.16); }
.dream-benefit-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(151,128,255,.24); border-radius: 50%; color: #aa98ff; background: rgba(103,78,188,.18); }
.dream-benefit-icon svg { width: 21px; height: 21px; }
.dream-benefit-copy h4 { margin: 1px 0 5px; color: #f2f3f8; font-size: 15px; line-height: 1.3; }
.dream-benefit-copy p { margin: 0; color: #979fb5; font-size: 13px; line-height: 1.48; }

.dream-recent-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.dream-see-all { min-width: 64px; min-height: 44px; padding: 0 4px; border: 0; color: #65a9ff; background: transparent; font-size: 13px; font-weight: 680; }
.dream-recent-list { margin: 0 -4px; }
.dream-recent-row { display: grid; grid-template-columns: minmax(0,1fr) auto 20px; gap: 10px; align-items: center; width: 100%; min-height: 64px; padding: 10px 4px; border: 0; color: inherit; text-align: left; background: transparent; }
.dream-recent-row + .dream-recent-row { border-top: 1px solid rgba(121,132,165,.16); }
.dream-recent-title { min-width: 0; overflow: hidden; color: #eef0f7; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dream-recent-meta { min-width: 0; }
.dream-recent-date { color: #8f98af; font-size: 11px; line-height: 1.3; white-space: nowrap; }

.dream-recent-chevron { display: grid; place-items: center; color: #737d93; }
.dream-recent-chevron svg { width: 18px; height: 18px; }
.dream-recent-empty { margin: 14px 0 2px; color: var(--muted); font-size: 13px; }

/* Full dream archive */
.diary-panel:has(.dream-archive-page) { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.dream-archive-page { display: grid; gap: 16px; width: 100%; }
.dream-archive-header { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 12px; }
.dream-archive-back { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(121,132,165,.22); border-radius: 14px; color: #c9cedb; background: rgba(16,24,38,.96); }
.dream-archive-back svg { width: 20px; height: 20px; transform: rotate(180deg); }
.dream-archive-heading { min-width: 0; }
.dream-archive-heading h2 { margin: 0 0 3px; font-size: 24px; line-height: 1.2; }
.dream-archive-heading p { margin: 0; overflow: hidden; color: #9099ae; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dream-search { position: relative; }
.dream-search-icon { position: absolute; top: 50%; left: 14px; display: grid; place-items: center; color: #78849b; transform: translateY(-50%); pointer-events: none; }
.dream-search-icon svg { width: 18px; height: 18px; }
.dream-search-input { width: 100%; min-height: 50px; padding: 0 42px; box-sizing: border-box; border: 1px solid rgba(121,132,165,.24); border-radius: 15px; color: var(--text); background: #101826; font: inherit; font-size: 16px; }
.dream-search-input::placeholder { color: #737e94; }
.dream-archive-list { display: grid; overflow: hidden; border: 1px solid rgba(121,132,165,.20); border-radius: 18px; background: rgba(16,24,38,.96); }
.dream-archive-item { display: grid; grid-template-columns: 82px minmax(0,1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 86px; padding: 14px 16px; border: 0; color: inherit; text-align: left; background: transparent; }
.dream-archive-item + .dream-archive-item { border-top: 1px solid rgba(121,132,165,.16); }
.dream-archive-date { color: #8792a8; font-size: 11px; line-height: 1.35; }
.dream-archive-body { display: grid; min-width: 0; gap: 5px; }
.dream-archive-item-title { overflow: hidden; color: #eef0f7; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dream-archive-excerpt { display: -webkit-box; overflow: hidden; color: #939db2; font-size: 12px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dream-archive-chevron { display: grid; place-items: center; color: #737d93; }
.dream-archive-chevron svg { width: 18px; height: 18px; }
.dream-archive-state { margin: 0; padding: 28px 18px; border: 1px solid rgba(121,132,165,.20); border-radius: 18px; color: #9ca5b8; text-align: center; background: rgba(16,24,38,.96); }
.dream-archive-state p { margin: 0 0 12px; }
.dream-archive-retry, .dream-page-button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(139,112,255,.32); border-radius: 13px; color: #c9c2ff; background: rgba(92,68,161,.14); font-weight: 650; }
.dream-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.dream-page-button:last-child { justify-self: end; }
.dream-page-button:disabled { opacity: .45; }
.dream-page-status { color: #9aa3b7; font-size: 13px; font-variant-numeric: tabular-nums; }
.dream-archive-back:focus-visible, .dream-search-input:focus-visible, .dream-archive-item:focus-visible, .dream-archive-retry:focus-visible, .dream-page-button:focus-visible { outline: 2px solid #8ea4ff; outline-offset: 2px; }

.sleep-session-overview:not(.is-completed) { display: block; overflow: hidden; }
.sleep-session-overview:not(.is-completed)::after { display: none; }
.sleep-session-overview:not(.is-completed) .section-heading { margin-bottom: 18px; }
.sleep-overview-edit { display: inline-flex; align-items: center; gap: 7px; }
.sleep-overview-edit svg { width: 16px; height: 16px; }
.sleep-session-overview.is-completed .sleep-details-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sleep-session-overview.is-completed .sleep-details-heading h3 { min-width: 0; margin: 0; }
.sleep-session-overview.is-completed .sleep-overview-edit { flex: 0 0 36px; width: 36px; min-height: 36px; justify-content: center; padding: 0; border-radius: 12px; }
.sleep-overview-status { margin: 0 0 8px; color: #b8b4c9; }
.sleep-overview-duration { display: block; color: #cbd4ff; font-size: clamp(25px,8vw,34px); font-variant-numeric: tabular-nums; }
.sleep-overview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.sleep-overview-value { display: grid; gap: 7px; min-width: 0; padding: 14px; border: 1px solid rgba(117,129,167,.2); border-radius: 14px; background: rgba(11,18,31,.55); }
.sleep-overview-value span { color: var(--muted); font-size: 12px; }
.sleep-overview-value strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.sleep-sheet-backdrop { position: fixed; z-index: 160; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); background: rgba(3,5,12,.72); }
.sleep-sheet { box-sizing: border-box; width: min(100%,520px); min-width: 0; max-width: 100%; max-height: min(82dvh,720px); padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; border: 1px solid rgba(124,134,170,.28); border-radius: 24px 24px 20px 20px; background: #111827; }
.sleep-sheet-handle { width: 42px; height: 4px; margin: 0 auto 18px; border-radius: 4px; background: #485268; }
.sleep-sheet h2 { margin: 0 0 10px; font-size: 24px; }
.sleep-sheet-copy { margin: 0 0 20px; color: #c5c2d2; line-height: 1.6; white-space: normal; }
.sleep-sheet-actions { display: grid; gap: 10px; margin-top: 20px; }
.sleep-sheet-primary, .sleep-sheet-secondary, .sleep-sheet-danger { width: 100%; min-height: 50px; border-radius: 15px; font-weight: 650; }
.sleep-sheet-primary { border: 1px solid #7567df; color: white; background: linear-gradient(135deg,#6656d8,#455fce); }
.sleep-sheet-secondary { border: 1px solid rgba(131,141,172,.28); color: #c4c3d1; background: rgba(25,32,49,.8); }
.sleep-sheet-danger { border: 1px solid rgba(255,126,145,.34); color: #ff9ba5; background: rgba(105,35,49,.24); }
.sleep-form { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; min-width: 0; max-width: 100%; gap: 15px; overflow: hidden; }
.sleep-form-meta { margin: 0; color: var(--muted); }
.dream-voice-controls { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(137,119,213,.28); border-radius: 16px; background: rgba(33,28,64,.42); }
.dream-voice-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; border: 1px solid rgba(151,128,246,.52); border-radius: 14px; color: #eeeaff; background: rgba(99,74,183,.34); font-weight: 700; }
.dream-voice-button.is-recording { border-color: rgba(255,122,151,.65); color: #ffe8ee; background: rgba(133,39,70,.4); }
.dream-voice-button:disabled { opacity: .55; }
.dream-voice-button svg { width: 21px; height: 21px; }
.dream-voice-status { min-height: 18px; margin: 0; color: #aeb4ca; font-size: 12px; line-height: 1.45; text-align: center; }
.sleep-field { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; min-width: 0; max-width: 100%; gap: 7px; overflow: hidden; color: #c8c5d2; font-size: 13px; }
.sleep-input, .sleep-textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 12px 14px; box-sizing: border-box; border: 1px solid rgba(130,141,177,.32); border-radius: 14px; color: var(--text); background: #0c1422; font: inherit; }
.sleep-input[type="date"], .sleep-input[type="datetime-local"] { appearance: none; -webkit-appearance: none; }
.sleep-input[type="datetime-local"] { inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
.sleep-input[type="datetime-local"]::-webkit-date-and-time-value { min-width: 0; }
.sleep-textarea { min-height: 150px; resize: vertical; }
.sleep-sheet .sleep-textarea:focus { outline: none; border: 2px solid rgba(160,170,195,.65); }
.sleep-toast { position: fixed; z-index: 190; right: max(16px,env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom)); left: max(16px,env(safe-area-inset-left)); display: flex; align-items: center; justify-content: flex-start; gap: 11px; max-width: 520px; margin: auto; padding: 13px 16px; border: 1px solid rgba(55,224,138,.48); border-radius: 16px; color: #e5fff1; background: #123126; font-weight: 700; line-height: 1.35; }
.sleep-toast.is-error { border-color: rgba(255,116,124,.52); color: #ffe8ea; background: #3a171d; }
.app-toast-icon { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #0c2618; background: #48e494; }
.food-toast-error .app-toast-icon, .sleep-toast.is-error .app-toast-icon { color: #351015; background: #ff747c; }
.app-toast-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.app-toast-message { min-width: 0; }
.sleep-toast button { min-height: 44px; border: 0; color: #c8c4ff; background: transparent; font-weight: 650; }
@media (max-width: 430px) {
  .sleep-action-card { grid-template-columns: 44px minmax(0,1fr) 20px; gap: 11px; padding: 15px 14px; }
  .sleep-action-icon { width: 44px; height: 44px; }
  .dream-promo-card, .dream-promo-copy { min-height: 218px; }
  .dream-promo-copy { width: 82%; padding: 18px; }
  .dream-promo-shade { background: linear-gradient(90deg, rgba(14,17,43,.99) 0%, rgba(18,19,49,.94) 50%, rgba(18,18,48,.32) 80%, rgba(18,18,48,.08) 100%); }
  .dream-promo-text { max-width: 205px; }
  .dream-benefits-card, .dream-recent-card { padding: 18px; }
  .dream-benefits-header h3, .dream-recent-header h3 { font-size: 19px; }
  .dream-benefit-item { grid-template-columns: 40px minmax(0,1fr); gap: 12px; }
  .dream-benefit-icon { width: 40px; height: 40px; }
  .dream-recent-row { grid-template-columns: minmax(0,1fr) auto 18px; gap: 7px 9px; padding: 10px 2px; }
  .dream-recent-title { grid-column: 1 / 3; grid-row: 1; }
  .dream-recent-meta { grid-column: 1; grid-row: 2; }

  .dream-recent-chevron { grid-column: 3; grid-row: 1 / 3; }
  .sleep-overview-grid { grid-template-columns: 1fr; }
  .sleep-overview-value { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 350px) {
  .dream-promo-copy { width: 88%; }
  .dream-promo-title { font-size: 16px; }
}
@media (max-width: 340px) {
  .dream-promo-title { max-width: none; overflow: visible; font-size: 15px; text-overflow: clip; }
  .dream-benefits-header h3 { font-size: 17px; }
  .dream-recent-title { font-size: 13px; }

}

/* Expandable practices catalog */
.diary-panel:has(.practice-home),
.diary-panel:has(.practice-section-page),
.diary-panel:has(.practice-detail-page),
.diary-panel:has(.practice-form-page) { outline: none; }
.practice-home,
.practice-section-page,
.practice-detail-page,
.practice-form-page { width: 100%; animation: practice-page-in 380ms cubic-bezier(.2,.8,.2,1); }
.practice-home-title { margin: 18px 0 16px; text-align: center; font-size: clamp(18px, 5vw, 22px); font-weight: 600; letter-spacing: -.025em; }
.practice-direction-stage { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px,12vw,58px); align-content: start; align-items: stretch; min-height: 442px; padding: 0; overflow: hidden; }
.practice-home-artwork { position: absolute; z-index: 0; inset: 0; display: grid; place-items: center; overflow: hidden; background: #000; pointer-events: none; }
.practice-artwork-image { width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: 50% 50%; mix-blend-mode: screen; filter: saturate(.96) contrast(1.03); -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 52%, rgba(0,0,0,.92) 68%, transparent 100%); mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 52%, rgba(0,0,0,.92) 68%, transparent 100%); }
.practice-direction-card { position: relative; z-index: 2; display: flex; min-width: 0; min-height: 132px; flex-direction: column; padding: 14px; border: 1px solid rgba(108,140,220,.28); border-radius: 20px; color: #fff; text-decoration: none; background: rgba(12,19,33,.9); transition: transform 360ms cubic-bezier(.2,.8,.2,1), border-color 360ms ease, background-color 360ms ease; }
.practice-direction-card.theme-blue { border-color: rgba(51,115,227,.5); background: linear-gradient(165deg,rgba(24,49,91,.78),rgba(10,19,35,.96)); }
.practice-direction-card.theme-orange { border-color: rgba(218,135,45,.52); background: linear-gradient(165deg,rgba(92,54,22,.78),rgba(31,21,13,.96)); }
.practice-direction-card h3 { margin: 0 0 8px; font-size: clamp(17px,4.5vw,21px); line-height: 1.08; }
.practice-direction-card p { margin: 0 0 10px; color: rgba(239,244,255,.72); font-size: clamp(10px,2.7vw,12px); line-height: 1.4; }
.practice-direction-card .practice-arrow { margin-top: auto; }
.practice-direction-card:active,
.practice-category-card:active,
.practice-primary-button:active { transform: scale(.965); }
.practice-arrow { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 20px; line-height: 1; }
.theme-blue .practice-arrow { color: #62a0ff; background: rgba(41,95,187,.22); }
.theme-orange .practice-arrow { color: #ffad55; background: rgba(178,96,27,.22); }

.practice-page-header { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; min-height: 62px; margin: -18px -16px 0; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; border-bottom: 1px solid rgba(115,130,169,.18); background: rgba(7,11,20,.9); }
.practice-back { min-width: 0; color: #fff; font-size: 13px; text-decoration: none; white-space: nowrap; }
.practice-brand { display: flex; align-items: baseline; gap: 5px; color: #edf2ff; font-size: 14px; }
.practice-brand span { color: #8994ac; font-size: 12px; }
.practice-menu { justify-self: end; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 14px; color: #aab4cb; background: transparent; letter-spacing: 2px; }
.practice-category-list { display: grid; gap: 8px; padding: 12px 0 calc(128px + env(safe-area-inset-bottom)); }
.practice-list-heading { display: flex; min-height: 58px; align-items: center; padding: 8px 14px; }
.practice-list-heading h2 { margin: 0; font-size: 20px; }
.theme-blue .section-back-button,
.theme-orange .section-back-button { color: #fff; }
.practice-category-card { display: grid; grid-template-columns: minmax(0,1fr) 40px; align-items: center; gap: 8px; min-height: 74px; padding: 10px 10px 10px 14px; border: 1px solid rgba(107,126,169,.22); border-radius: 18px; color: #eef3ff; background: rgba(16,24,38,.94); transition: opacity 240ms ease, transform 240ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease; }
.practice-category-main { display: grid; min-width: 0; min-height: 52px; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.practice-category-main:focus-visible,
.practice-category-menu:focus-visible,
.practice-hidden-toggle:focus-visible,
.practice-sheet button:focus-visible { outline: 2px solid #75a6ff; outline-offset: 2px; }
.practice-category-menu { display: grid; width: 40px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 13px; color: #9ca9bf; background: transparent; font: inherit; font-size: 17px; letter-spacing: 1px; }
.practice-category-menu:active { background: rgba(255,255,255,.05); }
.practice-category-card.is-hidden { opacity: .84; }
.practice-category-card.is-leaving { animation: practice-card-leave 230ms ease forwards; pointer-events: none; }
.practice-category-card.is-entering { animation: practice-card-enter 260ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes practice-card-leave { to { opacity: 0; transform: translateX(18px) scale(.98); } }
@keyframes practice-card-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.practice-category-card.theme-blue { border-color: rgba(72,126,216,.28); }
.practice-category-card.theme-orange { border-color: rgba(211,132,55,.28); }
.practice-category-icon,
.practice-detail-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(107,136,211,.33); border-radius: 50%; color: #72a6ff; background: rgba(37,70,129,.2); font-size: 22px; }
.practice-category-icon.is-neon-artwork,
.practice-detail-icon.is-neon-artwork { overflow: visible; border-color: transparent; border-radius: 0; background: transparent; }
.practice-category-icon.is-neon-artwork { width: 44px; height: 44px; }
.practice-category-icon-image { display: block; width: 32px; max-width: none; height: 32px; margin: 0; object-fit: contain; object-position: center; filter: drop-shadow(0 0 3px rgba(75,139,255,.34)); pointer-events: none; }
.theme-orange .practice-category-icon-image { filter: drop-shadow(0 0 3px rgba(255,151,66,.3)); }
.practice-detail-icon.is-neon-artwork { width: 68px; height: 68px; }
.practice-detail-icon .practice-category-icon-image { width: 48px; height: 48px; }
.theme-orange .practice-category-icon,
.theme-orange .practice-detail-icon { border-color: rgba(219,143,69,.34); color: #ffad58; background: rgba(126,72,25,.22); }
.theme-orange .practice-category-icon.is-neon-artwork,
.theme-orange .practice-detail-icon.is-neon-artwork { border-color: transparent; border-radius: 0; background: transparent; }
.practice-category-copy { display: grid; min-width: 0; gap: 3px; }
.practice-category-copy strong { font-size: 16px; line-height: 1.2; }
.practice-category-copy small { color: #8e9ab1; font-size: 11px; line-height: 1.35; }
.practice-category-card .practice-arrow { width: 36px; height: 36px; }
.practice-add-card { min-height: 78px; grid-template-columns: 46px minmax(0,1fr) 36px; gap: 12px; padding-right: 14px; border-style: dashed; text-decoration: none; }
.practice-add-card > strong { font-size: 16px; }
.practice-hidden-block { display: grid; gap: 0; margin-top: 2px; border: 1px solid rgba(106,124,159,.2); border-radius: 16px; background: rgba(12,19,31,.72); overflow: hidden; }
.practice-hidden-toggle { display: grid; width: 100%; min-height: 58px; grid-template-columns: 34px minmax(0,1fr) 28px; align-items: center; gap: 8px; padding: 8px 12px; border: 0; color: #dce4f3; background: transparent; text-align: left; font: inherit; }
.practice-hidden-eye { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(126,145,179,.25); border-radius: 50%; }
.practice-hidden-eye-icon { display: block; width: 18px; height: 18px; }
.practice-hidden-copy { display: grid; gap: 2px; }
.practice-hidden-copy strong { font-size: 13px; line-height: 1.2; }
.practice-hidden-copy small { color: #7f8da5; font-size: 10px; }
.practice-hidden-chevron { color: #8391aa; font-size: 18px; text-align: center; transition: transform 240ms ease; }
.practice-hidden-block.is-open .practice-hidden-chevron { transform: rotate(180deg); }
.practice-hidden-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 250ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease; }
.practice-hidden-block.is-open .practice-hidden-reveal { grid-template-rows: 1fr; opacity: 1; }
.practice-hidden-list { display: grid; min-height: 0; gap: 8px; overflow: hidden; padding: 0 8px; transition: padding 250ms ease; }
.practice-hidden-block.is-open .practice-hidden-list { padding: 2px 8px 8px; }
body:has(.practice-sheet-backdrop) .content-stage,
.diary-panel:has(.practice-sheet-backdrop),
.practice-section-page:has(.practice-sheet-backdrop) { animation: none; transform: none; }
.practice-sheet-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; align-items: end; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); background: rgba(1,5,15,.74); animation: practice-backdrop-in 220ms ease both; }
.practice-sheet { width: min(100%,520px); margin: 0 auto; padding: 20px; border: 1px solid rgba(107,132,184,.34); border-radius: 22px; color: #edf2ff; background: #091529; animation: practice-sheet-in 260ms cubic-bezier(.2,.8,.2,1) both; }
.practice-sheet h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.practice-sheet p { margin: 0 0 18px; color: #aebbd1; font-size: 13px; line-height: 1.55; }
.practice-sheet-primary { width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid rgba(85,136,231,.5); border-radius: 15px; color: #f4f7ff; background: #294f9b; font: inherit; font-weight: 750; }
.practice-actions-sheet { display: grid; gap: 6px; padding: 14px; }
.practice-actions-sheet h2 { margin: 2px 8px 8px; color: #a9b6cc; font-size: 13px; font-weight: 650; }
.practice-sheet-action { width: 100%; min-height: 50px; padding: 11px 12px; border: 0; border-radius: 14px; color: #eef3ff; background: rgba(255,255,255,.045); font: inherit; font-size: 15px; text-align: left; }
.practice-sheet-action:active { background: rgba(83,127,205,.18); }
.practice-toast { position: fixed; z-index: 1300; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(83,162,119,.34); border-radius: 14px; color: #eef8f2; background: rgba(13,37,27,.96); font-size: 13px; transform: translateX(-50%); animation: practice-toast-in 240ms ease both; white-space: nowrap; }
.practice-toast.is-error { border-color: rgba(242,116,116,.42); color: #fff1f1; background: rgba(55,18,23,.97); }
@keyframes practice-backdrop-in { from { opacity: 0; } }
@keyframes practice-sheet-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes practice-toast-in { from { opacity: 0; transform: translate(-50%,10px); } }

.practice-detail-heading { display: grid; justify-items: center; gap: 12px; padding: 30px 12px 24px; text-align: center; }
.practice-detail-heading h1 { font-size: clamp(32px,9vw,46px); }
.practice-detail-heading p { max-width: 440px; margin: 0; color: #929eb5; font-size: 14px; line-height: 1.55; }
.practice-definition-list { display: grid; gap: 12px; margin-bottom: 18px; }
.practice-definition-card { min-height: 82px; padding: 17px; border: 1px solid rgba(107,126,169,.23); border-radius: 19px; background: rgba(16,24,38,.94); }
.practice-definition-card strong { font-size: 16px; }
.practice-definition-card p { margin: 7px 0 0; color: #909bb1; font-size: 13px; line-height: 1.45; }
.practice-definition-goals { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.practice-definition-goals span { color: #b8c6e3; font-variant-numeric: tabular-nums; }
.practice-empty { margin: 0; padding: 24px; border: 1px dashed rgba(107,126,169,.26); border-radius: 19px; color: #929db3; text-align: center; }
.practice-legacy-mantras { margin-bottom: 18px; }
.practice-legacy-mantras .mantra-summary { border-color: rgba(72,126,216,.25); }
.diary-panel:has(.mantra-page) { background: #030b1e; }
.mantra-page { min-width: 0; padding-bottom: 12px; background: #030b1e; }
.mantra-page .practice-page-header { background: #030b1e; }
.mantra-hero { display: grid; min-height: 92px; grid-template-columns: 76px minmax(0,1fr) 44px; align-items: center; gap: 12px; padding: 8px 10px 12px; }
.mantra-hero-art { width: 68px; height: 68px; justify-self: center; color: #72a6ff; opacity: .98; pointer-events: none; }
.mantra-hero-copy { min-width: 0; }
.mantra-hero-copy h1 { margin: 0; color: #f4f7ff; font-size: clamp(24px,7vw,32px); line-height: 1.08; letter-spacing: -.035em; }
.mantra-hero-info { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(132,150,184,.34); border-radius: 50%; color: #d6deed; background: rgba(255,255,255,.04); font: inherit; font-size: 18px; font-weight: 650; }
.mantra-total { margin: 0 2px 12px; color: #aeb9d0; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; transition: opacity 180ms ease; }
.mantra-practice-list { display: grid; min-width: 0; gap: 7px; margin-bottom: 10px; }
.mantra-practice-card { position: relative; width: 100%; min-width: 0; padding: 10px 11px 9px; border: 1px solid rgba(99,132,184,.3); border-radius: 16px; background: rgba(13,26,42,.94); transition: transform 150ms ease, border-color 180ms ease; }
.mantra-practice-card:active { transform: scale(.994); border-color: rgba(74,128,222,.46); }
.mantra-practice-heading { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: start; }
.mantra-practice-copy { min-width: 0; }
.mantra-title-row { display: flex; min-width: 0; gap: 6px; align-items: center; }
.mantra-practice-copy h2 { min-width: 0; margin: 0; color: #f3f6fc; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.mantra-daily-check { display: inline-grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; border: 1px solid rgba(76,210,128,.72); border-radius: 50%; color: #61dc91; background: rgba(32,112,65,.22); font-size: 11px; font-weight: 800; }
.mantra-practice-description { margin: 3px 0 0; color: #a9b5c9; font-size: 10px; line-height: 1.3; }
.mantra-practice-text { margin: 3px 0 0; color: #c8d1df; font-family: 'DS Izmir', Georgia, serif; font-size: 15px; line-height: 1.35; white-space: pre-wrap; }
.mantra-practice-controls { display: flex; gap: 6px; align-items: center; }
.mantra-undo-button,
.mantra-round-button,
.mantra-card-settings { display: grid; min-height: 36px; place-items: center; border: 1px solid rgba(64,112,217,.7); border-radius: 10px; color: #b7ceff; background: rgba(25,56,111,.3); font: inherit; text-decoration: none; touch-action: manipulation; }
.mantra-undo-button { width: 36px; padding: 0; border-color: rgba(132,150,184,.34); color: #d7deea; background: rgba(255,255,255,.022); font-size: 21px; line-height: 1; transition: transform 150ms ease, opacity 180ms ease; }
.mantra-round-button { min-width: 54px; padding: 0 8px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform 150ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease, background-color 180ms ease; }
.mantra-undo-button:active,
.mantra-round-button:active,
.mantra-round-button.is-pressing { transform: scale(.94); background: rgba(42,87,166,.44); }
.mantra-undo-button:disabled,
.mantra-round-button:disabled { cursor: default; opacity: .46; }
.mantra-card-settings { width: 36px; border-color: rgba(132,150,184,.34); color: #d1d8e5; background: rgba(255,255,255,.022); font-size: 15px; }
.mantra-practice-goals { display: flex; flex-wrap: wrap; gap: 2px 7px; margin: 4px 0 7px; color: #bbc5d6; font-size: 9px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.mantra-goal-separator { color: #64718a; }
.mantra-levels { display: grid; gap: 4px; }
.mantra-level { --circle-color: #d7deea; display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 5px; align-items: center; }
.mantra-level-green { --circle-color: #50cf82; }
.mantra-level-blue { --circle-color: #4f91ff; }
.mantra-level-violet { --circle-color: #a272ff; }
.mantra-level-yellow { --circle-color: #f3c94f; }
.mantra-level-label { color: #78869d; font-size: 8px; line-height: 1; font-variant-numeric: tabular-nums; }
.mantra-circle-grid { display: grid; grid-template-columns: repeat(16,9px); justify-content: start; gap: 4px 5px; }
.mantra-progress-circle { width: 9px; height: 9px; border: 1px solid #7e8ca2; border-radius: 50%; background: transparent; transition: border-color 220ms ease, background-color 280ms ease, transform 280ms cubic-bezier(.2,.8,.2,1); }
.mantra-progress-circle.is-complete { border-color: var(--circle-color); background: var(--circle-color); }
.mantra-progress-circle.is-new { animation: mantra-circle-fill 420ms cubic-bezier(.2,.8,.2,1) both; }
.mantra-circle-progress { margin: 5px 0 0; color: #adb8ca; font-size: 10px; font-variant-numeric: tabular-nums; }
.mantra-textarea { min-height: 120px; }
.practice-faq-button { border: 1px solid rgba(132,150,184,.34); border-radius: 50%; color: #d6deed; font-size: 18px; font-weight: 650; letter-spacing: 0; }
.mantra-modal-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; box-sizing: border-box; align-items: start; padding: calc(20px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); background: rgba(1,5,15,.78); }
.mantra-info-dialog,
.mantra-delete-dialog { position: relative; box-sizing: border-box; width: min(100%, 520px); max-height: calc(100vh - 40px); margin: 0 auto; padding: 24px 20px 20px; overflow-y: auto; border: 1px solid rgba(107,132,184,.38); border-radius: 22px; color: #edf2ff; background: #091529; }
.mantra-info-dialog h2,
.mantra-delete-dialog h2 { margin: 0 42px 16px 0; font-size: 22px; line-height: 1.2; }
.mantra-info-dialog h3 { margin: 22px 0 8px; color: #dce7ff; font-size: 17px; }
.mantra-info-dialog p,
.mantra-info-dialog li,
.mantra-delete-dialog p { color: #b8c4db; font-size: 14px; line-height: 1.55; }
.mantra-info-dialog ul { margin: 8px 0 0; padding-left: 22px; }
.mantra-faq-om { display: block; margin: 10px 0; color: #f1d27a; font-family: 'DS Izmir', Georgia, serif; font-size: 21px; }
.mantra-faq-learning { margin-bottom: 0; padding-top: 12px; border-top: 1px solid rgba(112,136,183,.24); }
.mantra-youtube-link { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 10px; padding: 10px 14px; border: 1px solid rgba(255,74,74,.42); border-radius: 14px; color: #fff; background: #b62626; font-weight: 700; text-align: center; text-decoration: none; }
.mantra-youtube-link svg { width: 26px; height: 26px; fill: #fff; stroke: none; }
.mantra-dialog-understood { width: 100%; min-height: 48px; border: 1px solid rgba(92,139,235,.5); border-radius: 14px; color: #eef4ff; background: #294f9b; font: inherit; font-weight: 720; }
.mantra-create-button { display: grid; grid-template-columns: 26px auto; justify-content: center; gap: 9px; }
.mantra-create-button .mantra-create-icon { width: 24px; height: 24px; }
.mantra-modal-close { position: absolute; top: 12px; right: 12px; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #d8e0ef; background: rgba(255,255,255,.06); font-size: 25px; }
.mantra-delete-warning { margin-bottom: 12px; }
.mantra-delete-phrase { display: block; margin: 0 0 14px; padding: 12px; overflow-wrap: anywhere; border: 1px solid rgba(117,139,185,.28); border-radius: 13px; color: #e7dba8; background: #050d1b; white-space: pre-wrap; }
.mantra-delete-dialog .practice-input { margin-bottom: 4px; }
.mantra-delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mantra-delete-cancel,
.mantra-delete-confirm,
.mantra-delete-button { min-height: 48px; padding: 10px 14px; border-radius: 14px; font: inherit; }
.mantra-delete-cancel { border: 1px solid rgba(117,139,185,.34); color: #d7e0f0; background: rgba(255,255,255,.04); }
.mantra-delete-confirm,
.mantra-delete-button { border: 1px solid rgba(221,82,96,.5); color: #ffd8dc; background: rgba(139,35,48,.42); }
.mantra-danger-zone { display: grid; gap: 8px; margin-top: 20px; padding: 18px; border: 1px solid rgba(210,77,91,.25); border-radius: 20px; background: rgba(89,27,37,.12); }
.mantra-danger-zone h2 { margin: 0; color: #ffc7cd; font-size: 17px; }
.mantra-danger-zone p { margin: 0 0 4px; color: #bca4aa; font-size: 13px; line-height: 1.45; }
@keyframes mantra-circle-fill { 0% { transform: scale(.45); background: transparent; } 62% { transform: scale(1.24); } 100% { transform: scale(1); background: var(--circle-color); } }
.mantra-confetti { position: absolute; z-index: 3; top: 22px; right: 74px; width: 1px; height: 1px; pointer-events: none; }
.mantra-confetti i { position: absolute; width: 4px; height: 7px; border-radius: 1px; background: var(--confetti-color); animation: mantra-confetti-burst 1.1s cubic-bezier(.12,.72,.22,1) var(--confetti-delay) both; }
@keyframes mantra-confetti-burst { 0% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.5); } 14% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--confetti-x),var(--confetti-y)) rotate(300deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .mantra-confetti { display: none; } .mantra-progress-circle.is-new { animation: none; } }
@media (max-width: 359px) {
  .mantra-hero { grid-template-columns: 64px minmax(0,1fr) 44px; gap: 8px; padding-right: 6px; padding-left: 6px; }
  .mantra-hero-art { width: 64px; height: 64px; }
  .mantra-hero-copy h1 { font-size: 23px; }
  .mantra-practice-heading { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .mantra-practice-controls { justify-content: flex-end; }
  .mantra-level { grid-template-columns: 40px minmax(0,1fr); gap: 4px; }
  .mantra-circle-grid { grid-template-columns: repeat(16,8px); gap: 4px; }
  .mantra-progress-circle { width: 8px; height: 8px; }
}
.practice-primary-button { display: grid; width: 100%; min-height: 52px; place-items: center; padding: 12px 18px; border: 1px solid rgba(92,139,235,.5); border-radius: 17px; color: #eef4ff; text-decoration: none; background: #294f9b; font-weight: 720; transition: transform 300ms cubic-bezier(.2,.8,.2,1), background-color 300ms ease; }
.theme-orange .practice-primary-button { border-color: rgba(222,144,63,.52); background: #874a1f; }

.practice-form-heading { padding: 30px 2px 20px; }
.practice-form-heading h1 { margin-bottom: 10px; font-size: clamp(31px,9vw,44px); }
.practice-form-heading p { margin: 0; color: #939fb6; line-height: 1.5; }
.practice-form { display: grid; gap: 16px; padding: 20px; border: 1px solid rgba(107,126,169,.22); border-radius: 23px; background: rgba(16,24,38,.94); }
.practice-field { display: grid; min-width: 0; gap: 8px; color: #b8c1d3; font-size: 13px; }
.practice-input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(113,132,174,.34); border-radius: 15px; color: #f4f6fb; background: #0a1220; font: inherit; font-size: 16px; }
.practice-textarea { min-height: 108px; resize: vertical; }
.practice-input:focus { border-color: #5f8be3; outline: 2px solid rgba(95,139,227,.18); outline-offset: 1px; }
.practice-form-error { min-height: 18px; margin: 0; color: #ff8f98; font-size: 13px; }
.practice-state { min-height: 220px; }

@media (max-width: 430px) {
  .practice-direction-stage { min-height: 450px; }
  .practice-direction-card { min-height: 132px; padding: 14px 12px; border-radius: 18px; }
  .practice-direction-card p { margin-bottom: 10px; }
  .practice-arrow { width: 34px; height: 34px; }
  .practice-category-card { grid-template-columns: minmax(0,1fr) 40px; gap: 6px; min-height: 74px; padding: 10px 8px 10px 12px; }
  .workout-exercise-row.practice-category-card { grid-template-columns: 44px minmax(0,1fr) 34px; gap: 10px; padding: 10px 12px; }
  .practice-category-main { grid-template-columns: 44px minmax(0,1fr); gap: 10px; }
  .practice-add-card { grid-template-columns: 44px minmax(0,1fr) 34px; gap: 10px; padding-right: 12px; }
  .practice-category-icon { width: 42px; height: 42px; font-size: 21px; }
}
@media (max-width: 355px) {
  .practice-direction-stage { gap: 34px; }
  .practice-direction-card { min-height: 138px; padding: 12px 10px; }
  .practice-direction-card h3 { font-size: 17px; }
  .practice-direction-card p { font-size: 9px; }
}
@keyframes practice-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Charging screen */
.diary-panel:has(.charging-page) { outline: none; background: #06101e; }
.charging-page { width: 100%; min-width: 0; padding-bottom: calc(112px + env(safe-area-inset-bottom)); background: #06101e; animation: practice-page-in 380ms cubic-bezier(.2,.8,.2,1); }
.charging-page .practice-page-header { background: #06101e; }
.charging-practice-list { display: grid; gap: 9px; margin-top: 12px; }
.charging-practice-card { display: grid; min-width: 0; min-height: 88px; grid-template-columns: 52px minmax(0,1fr) 40px; align-items: center; gap: 11px; padding: 12px 9px 12px 13px; border: 1px solid rgba(210,119,40,.34); border-radius: 18px; color: #f3f5fa; background: #0b1a2c; text-decoration: none; }
.charging-practice-card.is-hidden { opacity: .65; }
.charging-practice-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; color: #ffad55; background: rgba(179,91,24,.16); }
.charging-practice-icon.is-neon-artwork { background: rgba(179,91,24,.12); }
.charging-practice-icon .practice-category-icon-image { width: 29px; height: 29px; filter: sepia(1) saturate(4.7) hue-rotate(343deg) brightness(1.18); }
.charging-practice-icon .app-library-icon { width: 27px; height: 27px; color: #ffad55; }
.charging-practice-copy { display: grid; min-width: 0; gap: 5px; }
.charging-practice-copy h2 { margin: 0; color: #f2f5fb; font-size: 16px; line-height: 1.18; font-weight: 720; }
.charging-practice-copy p { margin: 0; color: #8f9bad; font-size: 10px; line-height: 1.35; }
.charging-practice-menu { width: 40px; min-height: 44px; padding: 0; border: 0; border-radius: 12px; color: #8592a7; background: transparent; font: inherit; letter-spacing: 1px; }
.charging-add-card { border-style: dashed; border-color: rgba(117,137,169,.38); background: rgba(9,24,41,.66); }
.charging-add-card .practice-arrow { width: 36px; height: 36px; color: #ffad55; background: rgba(179,91,24,.17); }
.charging-add-icon { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(141,155,179,.34); border-radius: 50%; color: #a9b4c6; font-size: 29px; font-weight: 300; }
.charging-hidden-block { margin-top: 12px; }
.charging-hidden-block .charging-practice-list { padding-top: 9px; }
@media (max-width: 360px) {
  .charging-practice-card { min-height: 82px; grid-template-columns: 46px minmax(0,1fr) 38px; gap: 9px; padding-left: 11px; }
  .charging-practice-icon, .charging-add-icon { width: 46px; height: 46px; }
  .charging-practice-copy h2 { font-size: 15px; }
}

/* Daily supplement plan */
.supplement-plan { display: grid; min-width: 0; gap: 8px; padding: 10px; overflow: hidden; border: 1px solid rgba(132,111,225,.25); border-radius: 20px; background: #0d192b; }
.supplement-plan-header { display: grid; min-width: 0; min-height: 50px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.supplement-plan-identity { display: grid; min-width: 0; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 7px; }
.supplement-heading-copy { display: grid; min-width: 0; gap: 2px; }
.supplement-title-row { display: flex; min-width: 0; align-items: center; gap: 3px; }
.supplement-title-row h3 { margin: 0; overflow: hidden; color: #aa8dff; font-size: 18px; line-height: 1.15; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.supplement-icon { display: inline-grid; place-items: center; flex: 0 0 auto; }
.supplement-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.supplement-header-icon { display: block; width: 30px; height: 30px; color: #ac8cff; background: currentColor; -webkit-mask: url('/assets/supplements/dietary-supplement-researching-324603.svg?v=20260730-supplement-card-polish') center / contain no-repeat; mask: url('/assets/supplements/dietary-supplement-researching-324603.svg?v=20260730-supplement-card-polish') center / contain no-repeat; }
.supplement-info { display: grid; width: 24px; min-width: 24px; height: 24px; min-height: 24px; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #9689bd; background: transparent; }
.supplement-info .supplement-icon svg { width: 18px; height: 18px; stroke-width: 1.7; }
.supplement-subtitle { overflow: hidden; color: #8f9db4; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.supplement-header-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 5px; }
.supplement-total { display: inline-flex; height: 28px; min-height: 28px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid rgba(69,137,231,.42); border-radius: 999px; color: #8abaff; background: transparent; font-size: 10.5px; line-height: 1; text-align: center; white-space: nowrap; }
.supplement-total-label { display: block; line-height: 1; }
.supplement-total.complete { border-color: rgba(62,190,117,.5); color: #66db98; background: transparent; }
.supplement-collapse { display: grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; color: #92a3be; background: rgba(255,255,255,.025); }
.supplement-collapse .supplement-icon { transition: transform .2s ease; }
.supplement-collapse .supplement-icon svg { width: 17px; height: 17px; }
.supplement-plan.collapsed .supplement-collapse .supplement-icon { transform: rotate(-90deg); }
.supplement-info-note { margin: 0; padding: 8px 10px; border: 1px solid rgba(160,136,221,.16); border-radius: 12px; color: #aab5c8; background: rgba(77,58,128,.08); font-size: 11px; line-height: 1.4; }
.supplement-list { display: grid; min-width: 0; gap: 7px; }
.supplement-card { display: grid; min-width: 0; min-height: 84px; grid-template-columns: 48px minmax(0,1fr) max-content 46px; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(103,143,204,.18); border-radius: 18px; background: #111f34; cursor: pointer; }
.supplement-card.complete { border-color: rgba(57,180,109,.4); }
.supplement-card .supplement-card-image { display: grid; width: 48px; min-width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 50%; color: #88aaf4; background: rgba(65,104,166,.16); }
.supplement-card .supplement-card-image .app-library-icon { width: 24px; height: 24px; }
.supplement-card .supplement-card-image img { border-radius: 50%; object-fit: cover; }
.supplement-card .supplement-card-image-omega { color: #e7ba46; background: rgba(211,161,45,.13); }
.supplement-card .supplement-card-image-sun { color: #ffc75f; background: rgba(220,157,40,.13); }
.supplement-card .supplement-card-image-magnesium { color: #91b8ff; background: rgba(67,119,201,.16); }
.supplement-card .supplement-card-image-mushroom { color: #c19bff; background: rgba(126,87,189,.15); }
.supplement-semantic-icon { display: grid; width: 30px; height: 30px; place-items: center; font-size: 15px; font-weight: 820; letter-spacing: -.5px; }
.supplement-semantic-icon svg { width: 30px; height: 30px; overflow: visible; }
.supplement-semantic-icon-omega svg { fill: currentColor; stroke: rgba(255,255,255,.35); stroke-width: 1; }
.supplement-semantic-icon-sun svg, .supplement-semantic-icon-mushroom svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.supplement-card-editor { min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 6px; color: inherit; background: transparent; text-align: left; }
.supplement-card-editor:focus-visible { outline: 2px solid rgba(157,126,239,.65); outline-offset: 2px; }
.supplement-card-copy { display: grid; min-width: 0; gap: 3px; }
.supplement-name { display: -webkit-box; overflow: hidden; color: #f1f5fc; font-size: 14px; line-height: 1.2; font-weight: 720; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.supplement-meta { overflow: hidden; color: #92a0b6; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.supplement-card-progress { display: grid; min-width: 0; justify-items: center; gap: 2px; }
.supplement-dots { display: flex; min-width: 0; align-items: center; gap: 0; }
.supplement-dot { position: relative; width: 24px; min-width: 24px; height: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.supplement-dot::before { position: absolute; width: 16px; height: 16px; inset: 50% auto auto 50%; border: 1.5px solid #41658f; border-radius: 50%; content: ''; transform: translate(-50%,-50%); }
.supplement-dot.filled::before { border-color: #4b9bff; background: #347ed9; }
.supplement-dot.complete::before { border-color: #49ca82; background: #2fa965; }
.supplement-dot:disabled { opacity: 1; }
.supplement-count { color: #96a9c4; font-size: 10.5px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.supplement-card.complete .supplement-count { color: #5bd58f; }
.supplement-action { display: grid; width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid rgba(78,151,246,.65); border-radius: 50%; color: #f4f8ff; background: rgba(52,126,217,.75); }
.supplement-action.complete { border-color: #269c5b; color: #f1fff7; background: #269c5b; }
.supplement-action:disabled { opacity: 1; }
.supplement-action .supplement-icon svg { width: 21px; height: 21px; }
.supplement-card-as-needed { grid-template-columns: 48px minmax(0,1fr) 64px; grid-template-rows: auto auto; }
.supplement-card-as-needed .supplement-card-image { grid-column: 1; grid-row: 1 / 3; }
.supplement-card-as-needed .supplement-card-editor { min-height: 44px; grid-column: 2; grid-row: 1; align-self: end; }
.supplement-as-needed-status { display: flex; min-width: 0; grid-column: 2; grid-row: 2; align-self: start; align-items: center; gap: 5px; overflow: hidden; color: #8fa0b8; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.supplement-as-needed-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.supplement-take-button, .supplement-add-empty, .supplement-empty button { min-height: 44px; padding: 7px 12px; border: 1px solid rgba(73,143,236,.48); border-radius: 13px; color: #eaf3ff; background: rgba(40,95,165,.82); font: inherit; font-size: 11px; font-weight: 750; }
.supplement-take-button { position: relative; width: 64px; height: 44px; min-height: 44px; grid-column: 3; grid-row: 1 / 3; padding: 0; border: 0; border-radius: 0; background: transparent; }
.supplement-take-button::before { position: absolute; height: 34px; inset: 50% 0 auto; border: 1px solid rgba(73,143,236,.48); border-radius: 999px; background: rgba(40,95,165,.82); content: ''; transform: translateY(-50%); }
.supplement-take-label { position: relative; z-index: 1; }
.supplement-undo { min-height: 24px; padding: 2px 0; border: 0; color: #7f97ba; background: transparent; font: inherit; font-size: 9.5px; line-height: 1.1; }
.supplement-show-all { justify-self: end; min-height: 40px; padding: 6px 4px; border: 0; border-radius: 8px; color: #8facd4; background: transparent; font: inherit; font-size: 11px; font-weight: 700; }
.supplement-empty { display: grid; min-height: 90px; place-items: center; gap: 8px; padding: 12px; border: 1px dashed rgba(110,143,193,.25); border-radius: 16px; color: #9aa8bd; text-align: center; }
.supplement-empty strong { color: #dce5f4; }
.supplement-plan-skeleton { min-height: 82px; border-radius: 16px; background: linear-gradient(100deg,rgba(255,255,255,.025) 20%,rgba(255,255,255,.07) 50%,rgba(255,255,255,.025) 80%); background-size: 220% 100%; animation: food-skeleton 1.2s linear infinite; }
.supplement-frequency-group,
.supplement-schedule-group,
.supplement-switches-group,
.supplement-note-group { padding: 16px; border-color: rgba(103,143,204,.16); border-radius: 18px; background: #0d1828; }
.supplement-frequency-group { gap: 10px; }
.supplement-frequency-group > .supplement-frequency-control { position: relative; display: grid; min-width: 0; height: 52px; grid-template-columns: 34px minmax(0,1fr) 24px; align-items: center; gap: 4px; padding: 0 10px 0 8px; border: 1px solid rgba(112,143,193,.24); border-radius: 14px; background: #101d30; }
.supplement-frequency-control select { width: 100%; min-height: 50px; padding: 0; border: 0; appearance: none; color: #edf3fd; background: transparent; font-size: 16px; }
.supplement-control-icon { display: grid; width: 30px; height: 30px; place-items: center; color: #8e6dff; }
.supplement-control-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.supplement-select-arrow { color: #aebad0; font-size: 24px; line-height: 1; transform: translateY(-3px); pointer-events: none; }
.supplement-schedule-section { display: grid; min-width: 0; gap: 9px; }
.supplement-schedule-section > h3 { margin: 0 2px; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 650; }
.supplement-schedule-group { gap: 0; padding-bottom: 14px; }
.supplement-times-row { display: flex; min-width: 0; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; }
.supplement-times-label { display: flex; min-width: 0; align-items: center; gap: 8px; color: #e6edf8; font-size: 14px; }
.supplement-stepper { display: grid; flex: 0 0 auto; grid-template-columns: 44px 42px 44px; align-items: center; gap: 2px; }
.supplement-stepper-button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(114,143,194,.17); border-radius: 12px; color: #8e72ff; background: #152238; font: inherit; font-size: 22px; line-height: 1; }
.supplement-stepper-button:last-child { color: #4d9cff; }
.supplement-stepper-button:active { background: #1a2d49; transform: scale(.96); }
.supplement-stepper input[type="number"] { width: 42px; min-width: 42px; min-height: 42px; padding: 0; border: 0; color: #f3f6fb; background: transparent; font-size: 18px; font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; }
.supplement-stepper input::-webkit-inner-spin-button,
.supplement-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.supplement-form-row { display: grid; min-width: 0; gap: 7px; color: #aab5c8; font-size: 12px; }
.supplement-date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(114,143,194,.16); }
.supplement-date-card { position: relative; display: grid; min-width: 0; min-height: 74px; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 7px; padding: 10px 10px 6px 0; cursor: pointer; }
.supplement-date-card + .supplement-date-card { padding-left: 12px; border-left: 1px solid rgba(114,143,194,.16); }
.supplement-date-copy { display: grid; min-width: 0; gap: 3px; }
.supplement-date-copy small { overflow: hidden; color: #8f9cb1; font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.supplement-date-copy strong { overflow: hidden; color: #edf3fc; font-size: 13px; line-height: 1.25; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.supplement-date-card input[type="date"] { position: absolute; width: 100%; height: 100%; min-height: 0; inset: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.supplement-date-card:focus-within { outline: 2px solid rgba(93,139,227,.65); outline-offset: 2px; }
.supplement-switches-group { gap: 0; }
.supplement-switch-row { position: relative; display: grid; min-height: 52px; grid-template-columns: minmax(0,1fr) 50px; align-items: center; gap: 12px; cursor: pointer; }
.supplement-switch-row + .supplement-switch-row { border-top: 1px solid rgba(114,143,194,.14); }
.supplement-switch-label { color: #e7edf7; font-size: 14px; }
.supplement-switch-row input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.supplement-switch-track { position: relative; display: block; width: 50px; height: 30px; border-radius: 999px; background: #3a4658; transition: background-color .18s ease; }
.supplement-switch-track::after { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #cad2df; content: ''; transition: transform .18s ease, background-color .18s ease; }
.supplement-switch-row input:checked + .supplement-switch-track { background: #1769f7; }
.supplement-switch-row input:checked + .supplement-switch-track::after { background: #fff; transform: translateX(20px); }
.supplement-switch-row input:focus-visible + .supplement-switch-track { outline: 2px solid #7aa5f5; outline-offset: 3px; }
.supplement-note-group { gap: 9px; }
.supplement-note-group textarea { min-height: 80px; height: 80px; padding: 12px 13px; resize: none; }
.supplement-custom-schedule { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.supplement-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.supplement-weekdays label { display: grid; min-width: 0; }
.supplement-weekdays input { position: absolute; opacity: 0; pointer-events: none; }
.supplement-weekdays span { display: grid; min-height: 44px; place-items: center; border: 1px solid rgba(102,130,177,.28); border-radius: 10px; color: #9ba9bc; font-size: 10px; }
.supplement-weekdays input:checked + span { border-color: #7b64ca; color: #efeaff; background: #59469b; }
.supplement-weekdays input:focus-visible + span { outline: 2px solid #aa8dff; outline-offset: 2px; }
@media (max-width: 420px) {
  .supplement-plan { gap: 7px; padding: 8px; border-radius: 18px; }
  .supplement-plan-header { min-height: 48px; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .supplement-plan-identity { grid-template-columns: 28px minmax(0,1fr); gap: 5px; }
  .supplement-header-icon { width: 28px; height: 28px; }
  .supplement-title-row h3 { font-size: 17px; }
  .supplement-info { width: 22px; min-width: 22px; height: 22px; min-height: 22px; }
  .supplement-header-actions { gap: 4px; }
  .supplement-total { padding-inline: 7px; font-size: 10px; }
  .supplement-collapse { width: 30px; min-width: 30px; height: 30px; min-height: 30px; }
  .supplement-card { min-height: 80px; grid-template-columns: 44px minmax(0,1fr) max-content 44px; gap: 6px; padding: 9px 10px; border-radius: 17px; }
  .supplement-card .supplement-card-image { width: 44px; min-width: 44px; height: 44px; }
  .supplement-dots { gap: 0; }
  .supplement-dot { width: 24px; min-width: 24px; height: 24px; }
  .supplement-dot::before { width: 16px; height: 16px; }
  .supplement-action { width: 44px; height: 44px; }
  .supplement-card-as-needed { grid-template-columns: 44px minmax(0,1fr) 64px; }
  .supplement-take-button { width: 64px; }
  .supplement-date-card { grid-template-columns: 27px minmax(0,1fr); padding-right: 6px; }
  .supplement-date-card + .supplement-date-card { padding-left: 8px; }
  .supplement-date-copy strong { font-size: 12px; }
  .supplement-times-row { gap: 6px; }
  .supplement-stepper { grid-template-columns: 44px 34px 44px; }
  .supplement-stepper-button { width: 44px; }
  .supplement-stepper input[type="number"] { width: 34px; min-width: 34px; }
}
@media (max-width: 340px) {
  .supplement-times-label .supplement-control-icon { display: none; }
  .supplement-plan-identity { grid-template-columns: 25px minmax(0,1fr); gap: 4px; }
  .supplement-header-icon { width: 25px; height: 25px; }
  .supplement-title-row h3 { font-size: 16px; }
  .supplement-subtitle, .supplement-meta { font-size: 10px; }
  .supplement-total { padding-inline: 6px; font-size: 9.5px; }
  .supplement-card { grid-template-columns: 44px minmax(0,1fr) max-content 44px; gap: 5px; padding-inline: 8px; }
  .supplement-card .supplement-card-image { width: 44px; min-width: 44px; height: 44px; }
  .supplement-action { width: 44px; height: 44px; }
  .supplement-card-as-needed { grid-template-columns: 44px minmax(0,1fr) 64px; }
  .supplement-take-button { width: 64px; }
  .supplement-as-needed-status { font-size: 9px; }
}

/* Unified black page canvas. Cards and controls retain their semantic surfaces. */
main,
.content-stage,
.diary-panel,
.learning-page,
.workout-page,
.practice-home,
.practice-section-page,
.practice-detail-page,
.practice-form-page,
.mantra-page,
.charging-page { background: #000; }
.practice-page-header,
.mantra-page .practice-page-header,
.charging-page .practice-page-header { background: rgba(0, 0, 0, .94); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
