/* App screens, dark theme. build.py fills double-braced token roles with BeMomsy4 token colours. */
@font-face {
  font-family: 'BeMomsy Inter';
  src: url(/fonts/inter.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* A phone is drawn at the device's own 402×874 pt and scaled to --pw CSS pixels wide. */
.phone {
  --pw: 290;
  --scale: calc(var(--pw) / 402);
  position: relative; flex: none;
  width: calc(var(--pw) * 1px + 2 * var(--bezel, 7px));
  height: calc(var(--pw) * 874px / 402 + 2 * var(--bezel, 7px));
  padding: var(--bezel, 7px); border-radius: calc(var(--pw) * 55px / 402 + var(--bezel, 7px));
  background: #1b1d21;
  box-shadow: inset 0 0 0 1.5px #4a525a, 0 0 0 1px rgba(125, 140, 150, .55), 0 30px 60px rgba(21, 69, 101, .24);
}
.app {
  position: relative; width: 402px; height: 874px; overflow: hidden;
  transform: scale(var(--scale)); transform-origin: 0 0;
  border-radius: 55px; background: #18171c; color: #f6f7fa;
  font-family: 'BeMomsy Inter', Inter, -apple-system, system-ui, sans-serif;
  font-feature-settings: 'cv05' 1, 'ss01' 0; font-synthesis: none;
  letter-spacing: 0; text-align: left; line-height: 1.2;
  -webkit-font-smoothing: antialiased; user-select: none;
}
.app * { box-sizing: border-box; }
.app p { margin: 0; line-height: inherit; }

.ios-status {
  position: absolute; inset: 0 0 auto; z-index: 30; height: 54px; pointer-events: none;
  color: #fff; font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.ios-time { position: absolute; left: 0; width: 140px; top: 19px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.ios-island { position: absolute; left: 138px; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000; }
.ios-icons { position: absolute; right: 0; width: 140px; top: 21px; display: flex; justify-content: center; align-items: center; gap: 7px; }
.ios-icons svg { height: 12px; width: auto; fill: currentColor; }
.ios-icons svg:last-child { height: 13px; }
.ios-home-indicator {
  position: absolute; z-index: 30; left: 134px; bottom: 8px; width: 134px; height: 5px;
  border-radius: 3px; background: rgba(255, 255, 255, .92); pointer-events: none;
}

/* Widgets (BeMomsyWidgets.swift): Inter, tabular digits, surfaces drawn inline per event. */
.w, .w *, .island, .island *, .lock, .lock * { box-sizing: border-box; }
.w, .island, .lock { font-family: 'BeMomsy Inter', Inter, -apple-system, system-ui, sans-serif; color: #fff; text-align: left; }
.w p, .lock p { margin: 0; line-height: 1.21; }
.w { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(16, 33, 52, .22); }
.w-small { width: 162px; height: 162px; padding: 15px; display: flex; flex-direction: column; }
.w-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; margin-bottom: auto; }
.w-head img { width: 44px; height: 44px; }
.w-child, .w-caption { font-size: 13px; font-weight: 500; color: rgba(235, 235, 245, .6); }
.w-title { font-size: 13px; font-weight: 500; white-space: nowrap; }
.w-value { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-medium { width: 344px; height: 162px; padding: 7px 17px; background: #1c1c1e; }
.w-medium-head { height: 36px; display: flex; align-items: baseline; justify-content: space-between; padding-top: 9px; }
.w-medium-head span:first-child { font-size: 17px; font-weight: 600; }
.w-medium-head span:last-child { font-size: 13px; font-weight: 500; color: rgba(235, 235, 245, .6); }
.w-halves { display: flex; gap: 8px; height: 104px; }
.w-half { flex: 1; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.w-half img { width: 34px; height: 34px; margin-bottom: auto; }
.w-half-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.island {
  display: inline-flex; align-items: center; height: 37px; padding: 0 14px 0 9px; border-radius: 19px;
  background: #000; box-shadow: 0 12px 30px rgba(16, 33, 52, .28);
}
.island img { width: 20px; height: 20px; }
.island-gap { width: 126px; }
.island-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #8cc6ff; }

/* Lock Screen. The wallpaper is ours; everything on it follows the widget and Live Activity code. */
.lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 72px 11px 0;
  background: radial-gradient(120% 70% at 50% 0%, #2c4a86 0%, #172a52 45%, #0d1328 100%);
}
.lock-date { font: 600 19px/1 -apple-system, 'SF Pro Display', system-ui, sans-serif; color: rgba(255, 255, 255, .86); }
.lock-clock {
  font: 700 104px/1 -apple-system, 'SF Pro Rounded', ui-rounded, system-ui, sans-serif; letter-spacing: -2px;
  color: rgba(255, 255, 255, .92); margin-top: 2px;
}
.lock-widgets { display: flex; gap: 10px; margin-top: 12px; }
.lock-widgets img { filter: grayscale(1) brightness(1.35) contrast(.9); }
.acc-circle {
  position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.acc-ring { position: absolute; inset: 0; width: 72px; height: 72px; transform: rotate(-90deg); }
.acc-ring circle { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 5; }
.acc-ring .acc-fill { stroke: #fff; stroke-linecap: round; }
.acc-rect {
  width: 160px; height: 72px; padding: 8px 10px; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.acc-rect p { display: flex; align-items: center; gap: 5px; min-height: 19px; }
.lock-stack { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.notif {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 24px; font-size: 15px;
  background: rgba(30, 36, 52, .62); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif > div { flex: 1; min-width: 0; }
.notif p { line-height: 1.3; color: rgba(255, 255, 255, .92); }
.notif-title { font-weight: 600; display: flex; justify-content: space-between; }
.notif-title span, .notif-sub { font-weight: 400; color: rgba(255, 255, 255, .6) !important; font-size: 13px; }
.live { padding: 14px 17px; border-radius: 24px; background: linear-gradient(180deg, #152c55, #274b7b); }
.live-row { display: flex; align-items: center; gap: 12px; }
.live-row img { width: 42px; height: 42px; }
.live-text { flex: 1; min-width: 0; }
.live-text p { font-size: 14px; font-weight: 500; }
.live-text .live-title { font-size: 18px; font-weight: 600; white-space: nowrap; }
.live-time { font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-stop {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  border-radius: 22px; background: #8cc6ff; color: #1c1c1e; font-size: 15px; font-weight: 600;
}
.live-stop svg { width: 12px; height: 12px; fill: currentColor; }
.lock-buttons { position: absolute; left: 46px; right: 46px; bottom: 42px; display: flex; justify-content: space-between; }
.lock-buttons span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.lock-buttons svg { width: 22px; height: 22px; fill: #fff; }
.lock-stack { margin-bottom: 110px; }

/* Tab bar (AppShellView: iOS 26 TabView tinted with Акцент/Навигация) and the child header. */
.dock { position: absolute; z-index: 20; left: 21px; right: 22px; top: 792px; height: 60px; display: flex; gap: 10px; }
.dock-tabs, .dock-plus {
  height: 60px; border-radius: 30px; background: rgba(36, 36, 42, .72);
  box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .16), 0 8px 24px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
.dock-tabs { flex: 1; display: flex; padding: 3px 4px; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px;
  font: 500 10px/1.15 -apple-system, 'SF Pro Text', system-ui, sans-serif; color: #f6f7fa; letter-spacing: .1px;
}
.tab i, .dock-plus i { display: block; width: 25px; height: 25px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.tab.is-on { color: #0485f7; background: rgba(255, 255, 255, .1); }
.dock-plus { width: 60px; display: grid; place-items: center; color: #f6f7fa; }
.dock-plus i { width: 20px; height: 20px; }
.child-head { position: absolute; z-index: 10; left: 0; right: 0; top: 62px; height: 46px; padding: 0 16px; display: flex; align-items: center; gap: 11px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #24333d; display: grid; place-items: center; flex: none; }
.avatar img { width: 22px; height: 22px; }
.child-title { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.child-title b { font-size: 16px; font-weight: 600; }
.child-title small { font-size: 12px; color: #a1a1aa; }

/* Assistant (AssistantView, AssistantChatComponents, AssistantDraftCard). */
.screen-assistant {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(56, 55, 101, .46) 0, rgba(29, 58, 99, .14) 200px, rgba(24, 23, 28, 0) 400px) no-repeat, #18171c;
}
.a-new {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(246, 247, 250, .07); display: grid; place-items: center;
  margin-right: 4px; opacity: 0; transform: scale(.85); transition: opacity .35s, transform .35s;
}
.a-new svg { width: 19px; height: 19px; color: #f6f7fa; }
.a-scroll { position: absolute; left: 0; right: 0; top: 108px; bottom: 142px; overflow: hidden; }
.a-list { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 22px; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.a-welcome {
  height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: opacity .3s;
}
.a-welcome h4 { margin: 0 0 10px; font-size: 32px; font-weight: 700; color: #f6f7fa; letter-spacing: 0; }
.a-welcome > p { font-size: 16px; color: #a1a1aa; }
.a-suggests { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.a-suggest { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 22px; font-size: 15px; font-weight: 500; transition: transform .12s; }
.a-suggest.is-pressed { transform: scale(.97); opacity: .78; }
.a-disclaimer { margin-top: 24px !important; max-width: 300px; font-size: 12px; line-height: 1.3 !important; color: rgba(161, 161, 170, .85); }
.a-turn { display: none; flex-direction: column; gap: 14px; }
.a-turn.is-shown { display: flex; animation: a-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.a-q1, .a-q2 { align-items: flex-end; }
.a-bubble { max-width: 314px; padding: 12px 16px; border-radius: 24px; background: rgba(4, 133, 247, .11); font-size: 16px; line-height: 21px; color: #f6f7fa; }
.a-typing {
  font-size: 16px; font-weight: 500; padding: 6px 0; color: #a1a1aa;
  background: linear-gradient(90deg, #a1a1aa 0 35%, rgba(246, 247, 250, .95) 50%, #a1a1aa 65% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: a-shimmer 1.6s linear infinite;
}
.a-text { display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 23.6px; color: #f6f7fa; }
.a-text ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.a-text li { display: flex; gap: 8px; }
.a-text li::before { content: '•'; min-width: 14px; color: #a1a1aa; }
.a-text b { font-weight: 600; }
.a-facts { border-radius: 24px; background: #1d3a63; }
.a-facts-title { padding: 14px 16px 6px; font-size: 16px; font-weight: 600; color: #6cc4ff; }
.a-fact { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; font-size: 16px; }
.a-fact::after, .a-facts-open::after { content: ''; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: rgba(246, 247, 250, .08); }
.a-fact:first-of-type::after { display: none; }
.a-fact > span:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.a-fact b { font-weight: 600; font-variant-numeric: tabular-nums; }
.a-fact small { font-size: 12px; color: #a1a1aa; }
.a-facts-open {
  position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px;
  font-size: 16px; font-weight: 500; color: #6cc4ff;
}
.a-facts-open svg { width: 14px; height: 14px; color: #a1a1aa; }
.a-draft {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 24px;
  background: linear-gradient(180deg, #383765, rgba(56,55,101,0.550));
}
.a-draft-head { display: flex; align-items: center; gap: 8px; }
.a-draft-head img { width: 26px; height: 26px; margin: 2px; }
.a-draft-head b { font-size: 20px; font-weight: 600; color: #c7a3fa; }
.a-draft-head span { padding: 3px 9px; border-radius: 12px; background: rgba(41, 42, 49, .9); font-size: 12px; font-weight: 500; color: #c7a3fa; }
.a-fields { padding: 0 12px; border-radius: 18px; background: #292a31; }
.a-fields p { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; }
.a-fields p + p::before { content: ''; position: absolute; left: 40px; right: 0; top: 0; height: 1px; background: rgba(199, 163, 250, .14); }
.a-fields svg:first-child { width: 17px; height: 17px; flex: none; margin: 0 5.5px; color: #c7a3fa; }
.a-fields span { flex: 1; font-size: 15px; color: #a1a1aa; }
.a-fields b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a-fields svg:last-child { width: 12px; height: 12px; color: #7d7d86; }
.a-add {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 26px; color: #fff;
  background: linear-gradient(180deg, #b65cff, #683db3);
  font-size: 17px; font-weight: 600; transition: transform .12s;
}
.a-add > span { display: inline-flex; align-items: center; gap: 8px; }
.a-add svg { width: 17px; height: 17px; }
.a-add-busy { display: none !important; font-size: 17px; }
.a-draft.is-busy .a-add-idle { display: none; }
.a-draft.is-busy .a-add-busy { display: inline-flex !important; }
.a-draft.is-busy .a-secondary { visibility: hidden; }
.a-add.is-pressed { transform: scale(.97); opacity: .85; }
.a-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: a-spin .8s linear infinite; }
.a-secondary { display: flex; justify-content: space-between; padding: 0 4px; font-size: 15px; font-weight: 500; }
.a-secondary span:first-child { color: #c7a3fa; }
.a-secondary span:last-child { color: #a1a1aa; }
.a-saved { display: none; flex-direction: column; gap: 8px; }
.a-answer2.is-saved .a-draft { display: none; }
.a-answer2.is-saved .a-saved { display: flex; animation: a-in .4s cubic-bezier(.22, 1, .36, 1) both; }
.a-row { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 12px; border-radius: 10px; background: #383765; }
.a-row img { width: 30px; height: 30px; }
.a-row span { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 12px; font-weight: 500; }
.a-row small { font-size: 12px; color: #c7a3fa; }
.a-row time { font-size: 10px; font-weight: 500; color: #a1a1aa; }
.a-saved-line { display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 13px; font-weight: 500; color: #a1a1aa; }
.a-saved-line > svg { width: 16px; height: 16px; color: #78c994; }
.a-saved-line span { flex: 1; }
.a-saved-line em { font-style: normal; display: inline-flex; align-items: center; gap: 2px; color: #0485f7; }
.a-saved-line em svg { width: 11px; height: 11px; }
.a-composer {
  position: absolute; z-index: 20; left: 16px; right: 16px; top: 732px; min-height: 52px; padding: 2px 4px 2px 14px;
  display: flex; align-items: center; gap: 2px; border-radius: 26px;
  background: rgba(25, 25, 28, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.a-field { flex: 1; min-width: 0; padding: 12px 4px; font-size: 16px; white-space: nowrap; overflow: hidden; }
.a-placeholder { color: rgba(235, 235, 245, .3); }
.a-listening, .a-typed { display: none; }
.a-listening { color: #a1a1aa; font-size: 14px; align-items: center; gap: 8px; }
.a-listening i { width: 8px; height: 8px; border-radius: 50%; background: #ff7a6e; animation: a-pulse .72s ease-in-out infinite alternate; }
.a-mic { width: 48px; height: 48px; display: grid; place-items: center; color: #f6f7fa; transition: color .2s; }
.a-mic svg { width: 22px; height: 22px; }
.a-send { width: 44px; height: 44px; display: none; place-items: center; }
.a-send svg { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: #0485f7; color: #fff; }
.screen-assistant.is-listening .a-placeholder, .screen-assistant.is-typed .a-placeholder { display: none; }
.screen-assistant.is-listening .a-listening { display: inline-flex; }
.screen-assistant.is-listening .a-mic svg { color: #fff; background: #0485f7; border-radius: 50%; width: 44px; height: 44px; padding: 11px; }
.screen-assistant.is-typed .a-typed { display: inline; }
.screen-assistant.is-typed .a-listening { display: none; }
.screen-assistant.is-ready .a-send { display: grid; animation: a-pop .3s cubic-bezier(.22, 1, .36, 1) both; }
.screen-assistant.is-ready .a-mic { color: #a1a1aa; }
.screen-assistant.is-chatting .a-new { opacity: 1; transform: none; }
.screen-assistant.is-chatting .a-welcome { display: none; }
@keyframes a-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes a-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes a-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-pulse { from { opacity: .3; } }

/* Shared: template images tinted by currentColor; the round header button. */
.tpl { display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; font-style: normal; }
.head-btn { width: 36px; height: 36px; margin-right: 4px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 247, 250, .07); }
.head-btn svg { width: 20px; height: 20px; color: #f6f7fa; }

/* Home (HomeView, BeMomsy4NowBlock, BeMomsy4PrimaryCards, BeMomsy4QuickActionTile). */
.screen-home { position: absolute; inset: 0; background: #18171c; }
.now {
  position: absolute; left: 16px; top: 117px; width: 370px; height: 262.5px; padding: 14px; border-radius: 28px; overflow: hidden; color: #fff;
  background: radial-gradient(circle 191.6px at 296.1px 148px, #1453a9 0%, #1d3a67 100%);
}
.sky-sprite { position: absolute; top: -262.5px; background: var(--img) center / 100% 100% no-repeat; transform-origin: 50% 0; }
.sky-sun { animation: sway 4.2s ease-in-out infinite alternate; }
.sky-bank { position: absolute; left: -11px; top: -9px; width: 385.85px; max-width: none; pointer-events: none; }
.now-tabs {
  position: relative; z-index: 2; display: flex; height: 40px; padding: 4px; border-radius: 20px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  font: 500 14px/1 -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.now-tabs span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 16px; }
.now-tabs .tpl { width: 17px; height: 17px; }
.now-tabs .is-on { color: #a8d6ff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); }
.now-summary { position: relative; z-index: 2; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.now-title { display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 600; }
.now-title img { width: 20px; height: 20px; }
.now-value { letter-spacing: -.6px; font-variant-numeric: tabular-nums; line-height: 1; }
.now-value b { font-size: 34px; font-weight: 600; }
.now-value i { font-style: normal; font-size: 16px; font-weight: 500; }
.now-rows { display: flex; flex-direction: column; gap: 4px; max-width: 228px; color: rgba(255, 255, 255, .94); font-size: 12px; }
.now-rows p { display: flex; align-items: center; gap: 8px; }
.now-rows .tpl { width: 16px; height: 16px; }
.now-counts { display: inline-flex; align-items: center; gap: 3px; margin-left: -3px; }
.now-counts .tpl { width: 11px; height: 11px; margin-left: 2px; }
.now-button {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; height: 44px; border-radius: 22px;
  display: grid; place-items: center; background: #517bbb; font-size: 16px; font-weight: 500;
}
.p-cards { position: absolute; left: 16px; top: 388.5px; display: flex; gap: 8px; }
.p-card { position: relative; width: 181px; height: 176px; border-radius: 24px; overflow: hidden; }
.p-sleep { background: linear-gradient(180deg, #12284a 0%, #1b375f 43%, rgba(39, 75, 123, 0) 100%), url(/assets/app/sleep-tile.webp) center / cover; }
.p-bottle { background: linear-gradient(180deg, #23284d 0%, rgba(44, 47, 87, 0) 100%), url(/assets/app/bottle-tile.webp) center / cover; }
.p-body { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; }
.p-title { display: flex; align-items: flex-start; gap: 2px; font-size: 16px; font-weight: 600; }
.p-title img { width: 20px; height: 20px; }
.p-elapsed { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.p-elapsed b { font-size: 20px; font-weight: 600; }
.p-elapsed i { font-style: normal; font-size: 13px; font-weight: 500; margin-right: 2px; }
.p-elapsed small { font-size: 12px; margin-left: 4px; }
.p-detail { display: flex; gap: 4px; font-size: 12px; line-height: 1.21; }
.p-detail .tpl { width: 14px; height: 14px; margin-top: 1px; }
.p-add, .q-add { position: absolute; border-radius: 50%; display: grid; place-items: center; color: #fcfcfc; }
.p-add { right: 14px; bottom: 14px; width: 44px; height: 44px; box-shadow: 0 5px 16px rgba(0, 0, 0, .25); }
.p-add .tpl { width: 20px; height: 20px; }
.q-row { position: absolute; left: 16px; top: 573.5px; display: flex; gap: 8px; }
.q-tile { position: relative; width: 106px; height: 92px; border-radius: 24px; overflow: hidden; flex: none; }
.q-tile > img { position: absolute; left: 7px; top: 9px; width: 53px; height: 53px; }
.q-add { right: 14px; top: 14px; width: 34px; height: 34px; }
.q-add .tpl { width: 14px; height: 14px; }
.q-tile p { position: absolute; left: 10px; bottom: 12px; display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.q-tile p .tpl { width: 12px; height: 12px; }
.q-fade { position: absolute; right: 0; top: 573.5px; width: 44px; height: 92px; background: linear-gradient(270deg, #18171c, rgba(24, 23, 28, 0)); }
.q-dots { position: absolute; left: 0; right: 0; top: 673.5px; display: flex; justify-content: center; gap: 8px; }
.q-dots i { width: 8px; height: 8px; border-radius: 50%; background: #52525b; }
.q-dots .is-on { background: #82c2ff; }
.j-head { position: absolute; left: 16px; right: 16px; top: 698.5px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.j-head b { font-size: 18px; font-weight: 600; }
.j-head span { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: #0485f7; }
.j-head svg { width: 12px; height: 12px; }

/* Journal rows (JournalTimelineList, BeMomsy4JournalRowSurface): lane 12, tile from x 36. */
.j-list { position: absolute; left: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; }
.j-home { top: 751.5px; }
.j-line { position: absolute; left: 5px; width: 2px; top: 27px; bottom: 27px; background: #51545e; }
.j-row { position: relative; display: flex; align-items: center; gap: 8px; }
.j-dot { width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; flex: none; }
.j-tile { flex: 1; min-width: 0; height: 54px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 8px; }
.j-tile img { width: 30px; height: 30px; flex: none; }
.j-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.j-text b { font-weight: 500; }
.j-text em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.j-tile time { min-width: 60px; text-align: right; font-size: 10px; font-weight: 500; color: #a1a1aa; white-space: nowrap; }
.j-day { display: flex; flex-direction: column; padding-left: 20px; }
.j-day b { font-size: 16px; font-weight: 600; }
.j-day small { font-size: 12px; color: #a1a1aa; }
.j-day-next { margin-top: 8px; }

/* Journal tab (JournalHeaderView). */
.screen-journal { position: absolute; inset: 0; background: #18171c; }
.jh { position: absolute; left: 16px; right: 0; top: 70px; display: flex; flex-direction: column; }
.jh-title { display: flex; align-items: center; justify-content: space-between; padding-right: 16px; height: 44px; }
.jh-title b { font-size: 30px; font-weight: 600; letter-spacing: -.6px; }
.jh-search { width: 36px; height: 36px; margin-right: 4px; border-radius: 50%; display: grid; place-items: center; background: rgba(41, 42, 49, .85); box-shadow: inset 0 0 0 1px rgba(246, 247, 250, .06); }
.jh-search svg { width: 19px; height: 19px; }
.jh-count { margin-top: 2px !important; height: 22px; font-size: 15px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.jh-chips { margin-top: 12px; display: flex; gap: 8px; padding: 3px 1px; overflow: hidden; }
.j-period { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; box-shadow: inset 0 0 0 1px #4b4d56; font-size: 15px; font-weight: 500; flex: none; }
.j-period svg { width: 17px; height: 17px; }
.j-chip { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.j-chip img { width: 30px; height: 30px; }
.j-page { top: 212px; }
.j-page .j-line { top: 61px; }

/* Statistics overview (AnalyticsOverviewView). */
.screen-stats { position: absolute; inset: 0; background: #18171c; }
.st-head { position: absolute; left: 20px; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.st-head b { font-size: 30px; font-weight: 600; letter-spacing: -.6px; line-height: 1.21; }
.st-head span { display: flex; align-items: center; gap: 4px; min-height: 28px; font-size: 15px; color: #a1a1aa; }
.st-head svg { width: 13px; height: 13px; }
.st-card { position: absolute; left: 16px; width: 370px; border-radius: 24px; background: #292a31; }
.st-card svg { width: 14px; height: 14px; color: rgba(161, 161, 170, .6); flex: none; }
.st-rhythm { top: 154px; padding: 16px; }
.st-card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px !important; }
.st-card-title b { font-size: 17px; font-weight: 700; }
.r-chart { position: relative; padding-left: 34px; display: flex; flex-direction: column; gap: 6px; }
.r-chart > p { position: relative; height: 10px; }
.r-chart > p:not(.r-axis) > span:first-child { position: absolute; left: -34px; top: -2px; font-size: 11px; font-weight: 500; color: #a1a1aa; }
.r-chart > p.is-today > span:first-child { font-weight: 600; color: #f6f7fa; }
.r-track { position: absolute; inset: 0; border-radius: 5px; background: #393b48; }
.is-today .r-track { background: rgba(57, 59, 72, .45); }
.r-progress { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #393b48; }
.r-track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; min-width: 3px; }
.r-night { background: #3d94f7; }
.r-day { background: #6c8fb4; }
.r-now { position: absolute; z-index: 2; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #292a31; box-shadow: 0 0 0 2px #f6f7fa; }
.r-grid { position: absolute; left: 34px; right: 0; top: 0; height: 106px; pointer-events: none; }
.r-grid i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #4b4d56; }
.r-grid i:nth-child(1) { left: 25%; } .r-grid i:nth-child(2) { left: 50%; } .r-grid i:nth-child(3) { left: 75%; }
.r-axis { height: 12px !important; display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; color: #a1a1aa; margin-top: 1px !important; }
.st-stage { top: 353px; padding: 14px; display: flex; align-items: center; gap: 14px; }
.st-stage img { width: 56px; height: 56px; }
.st-stage > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.st-stage b { font-size: 16px; font-weight: 600; line-height: 1.21; }
.st-stage small { font-size: 13px; color: #a1a1aa; }
.st-grid { position: absolute; left: 16px; width: 370px; top: 449px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-tile { min-height: 156px; padding: 14px; border-radius: 22px; background: #292a31; display: flex; flex-direction: column; gap: 4px; }
.t-label { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.t-label svg { width: 12px; height: 12px; color: rgba(161, 161, 170, .6); }
.t-value { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.21; }
.t-caption { font-size: 12px; color: #a1a1aa; line-height: 1.21; }
.t-bars { margin-top: auto; height: 34px; display: flex; align-items: flex-end; gap: 7.8px; }
.t-bars i { flex: 1; border-radius: 4px 4px 1.5px 1.5px; opacity: .45; }
.t-bars i:last-child { opacity: 1; }
.t-dots { position: relative; margin-top: auto; height: 16px; }
.t-dots::before { content: ''; position: absolute; left: 0; right: 0; top: 6.5px; height: 3px; border-radius: 2px; background: #393b48; }
.t-dots i { position: absolute; top: 4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #292a31; box-shadow: inset 0 0 0 2px var(--c); }
.t-dots .is-last { top: 2px; width: 12px; height: 12px; margin-left: -6px; background: var(--c); }
@keyframes sway { from { transform: rotate(-.8deg); } to { transform: rotate(.8deg); } }

/* Measurement cards 5.0 and the bottle sheet (MeasurementCardView, BottleVolumeSheet), dark. */
.screen-measure { position: absolute; inset: 0; background: #18171c; overflow: hidden; }
.m-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 57.5%, var(--m-glow), #18171c); }
.m-sky { position: absolute; left: 0; top: -8px; width: 402px; max-width: none; }
.m-room { position: absolute; opacity: .5; -webkit-mask: radial-gradient(closest-side, #000 50%, transparent); mask: radial-gradient(closest-side, #000 50%, transparent); }
.m-hero { position: absolute; }
.m-cloud { position: absolute; left: calc(50% - 286.5px); width: 573px; height: 560px; background: var(--m-surface); -webkit-mask: var(--cloud) center / 100% 100% no-repeat; mask: var(--cloud) center / 100% 100% no-repeat; }
.m-cloud-fill { position: absolute; left: calc(50% - 256.5px); width: 513px; bottom: 0; background: var(--m-surface); }
.m-nav { position: absolute; z-index: 3; left: 10px; right: 10px; top: 62px; height: 48px; display: flex; align-items: center; justify-content: space-between; }
.m-nav b { font-size: 16px; font-weight: 600; }
.m-round { width: 44px; height: 44px; display: grid; place-items: center; }
.m-round .tpl { width: 32px; height: 32px; border-radius: 50%; background: #27272a; -webkit-mask: none; mask: none; position: relative; }
.m-round .tpl::after { content: ''; position: absolute; inset: 8px; background: #f6f7fa; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.m-plate {
  position: absolute; z-index: 3; left: 16px; right: 16px; top: 117px; min-height: 52px; padding: 10px 12px; border-radius: 16px;
  display: flex; align-items: center; gap: 8px; background: var(--m-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.m-plate img { width: 32px; height: 32px; }
.m-plate span { display: flex; flex-direction: column; gap: 2px; }
.m-plate b { font-size: 12px; font-weight: 500; color: var(--m-accent); }
.m-plate small { font-size: 10px; font-weight: 500; color: var(--m-accent2); }
.m-question { position: absolute; z-index: 2; left: 36px; right: 36px; text-align: center; font-size: 24px; font-weight: 600; color: #f6f7fa; }
.m-body { position: absolute; z-index: 2; left: 16px; right: 16px; }
.m-field-block { padding: 0 14px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.m-label { padding: 0 6px; font-size: 14px; font-weight: 500; color: var(--m-accent); }
.m-field {
  height: 54px; padding: 0 16px 0 18px; border-radius: 16px; display: flex; align-items: center; gap: 12px;
  background: var(--m-surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--m-accent) 28%, transparent);
}
.m-caret { width: 2.5px; height: 26px; border-radius: 2px; background: var(--m-accent); animation: caret .6s ease-in-out infinite alternate; }
.m-text { flex: 1; font-size: 20px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.m-text.is-set { color: #f6f7fa; }
.m-kbd { width: 20px; height: 20px; color: #a1a1aa; }
.m-instrument { position: relative; outline: none; touch-action: none; cursor: grab; }
.m-instrument:active { cursor: grabbing; }
.m-instrument:focus-visible { box-shadow: 0 0 0 3px rgba(4, 133, 247, .55); border-radius: 18px; }
.m-draw { display: block; overflow: visible; }
.m-baby { position: absolute; bottom: 0; pointer-events: none; }
.m-footer { position: relative; z-index: 1; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-weight + .m-footer { margin-top: -26px; }
.m-length + .m-footer, .m-bottle + .m-footer { margin-top: 6px; }
.m-last { padding-left: 8px; display: flex; flex-direction: column; gap: 2px; color: #a9a9b3; }
.m-last b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-last small { font-size: 13px; opacity: .85; }
.m-chip {
  min-width: 116px; min-height: 52px; padding: 0 14px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #8a8a94; background: var(--m-soft); transition: background-color .25s, color .25s;
}
.m-chip b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-chip small { font-size: 12px; font-weight: 500; }
.m-chip.is-set { color: #7bd596; background: #1f3a28; }
.m-rows { position: absolute; z-index: 2; left: 16px; right: 16px; top: 643px; display: flex; flex-direction: column; gap: 12px; }
.m-row { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 12px; border-radius: 20px; background: var(--m-form); font-size: 14px; font-weight: 500; }
.m-row span { flex: 1; }
.m-row .tpl { width: 16px; height: 16px; }
.m-row-icon { color: var(--m-accent2); }
.m-row em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 20px; background: var(--m-soft); color: var(--m-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.m-row em .tpl { width: 12px; height: 12px; }
.m-note { border-radius: 16px; padding: 6px 15px 6px 12px; }
.m-note span { font-weight: 600; }
.m-note-icon { color: var(--m-note); }
.m-plus { color: #71717a; }
.m-save { display: grid; place-items: center; min-height: 52px; border-radius: 24px; background: var(--m-primary); color: var(--m-on-primary); font-size: 16px; font-weight: 500; }
.b-illustration { position: absolute; left: 36px; top: 96px; width: 330px; height: 356px; }
.b-tabs { position: absolute; z-index: 2; left: 16px; right: 16px; top: 363px; display: flex; gap: 2px; padding: 4px; border-radius: 22px; background: #25233a; }
.b-tabs span { flex: 1; min-height: 36px; display: grid; place-items: center; border-radius: 18px; font-size: 15px; font-weight: 500; color: #c7a3fa; }
.b-tabs .is-on { background: #383765; box-shadow: 0 2px 4px rgba(0, 0, 0, .06); }
.b-dim { position: absolute; z-index: 4; inset: 0; background: rgba(0, 0, 0, .45); }
.b-sheet { position: absolute; z-index: 5; left: 8px; right: 8px; top: 330px; bottom: 8px; padding: 0 16px; border-radius: 34px; background: #18171c; display: flex; flex-direction: column; }
.b-grabber { align-self: center; width: 36px; height: 5px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.b-head { display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 7px 0 10px; }
.b-head b { font-size: 18px; font-weight: 600; }
.b-sheet .m-field-block { padding: 0; }
.b-apply { margin-top: 9px; }
@keyframes caret { from { opacity: 1; } to { opacity: .15; } }
.m-draw text { font-variant-numeric: tabular-nums; }
.m-draw .t11 { font-size: 11px; font-weight: 600; } .m-draw .t12 { font-size: 12px; }
.m-draw .t13 { font-size: 13px; font-weight: 500; } .m-draw .t13r { font-size: 13px; }
.m-draw .t14 { font-size: 14px; font-weight: 500; } .m-draw .t16 { font-size: 16px; font-weight: 500; }
.m-draw .t22 { font-size: 22px; font-weight: 700; }
.m-reading {
  position: absolute; z-index: 2; height: var(--h); padding: 0 14px; border-radius: calc(var(--h) / 2); display: flex; align-items: center;
  background: var(--fill); color: #fff; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 calc(4px * var(--glow)) color-mix(in srgb, var(--fill) 30%, transparent); pointer-events: none;
}
.m-arrow { position: absolute; left: 50%; width: 17px; height: 9px; margin-left: -8.5px; opacity: var(--glow); background: var(--fill);
  clip-path: polygon(0 100%, 50% 15%, 100% 100%, 86% 100%, 50% 40%, 14% 100%); }
.m-arrow.up { top: -15px; }
.m-arrow.down { bottom: -15px; transform: rotate(180deg); }

/* Reminders on the Now card (CareTaskAgenda): week strip, compact rows, «Новое напоминание». */
.now-reminders { height: auto; background: linear-gradient(180deg, #1d3a67, #274a7a); display: flex; flex-direction: column; gap: 8px; }
.now-reminders .now-tabs { margin-bottom: 2px; }
.wk { padding: 6px 6px 4px; border-radius: 20px; background: #292a31; display: flex; flex-direction: column; gap: 6px; color: #f6f7fa; }
.wk-head { display: flex; align-items: center; height: 44px; padding-left: 8px; }
.wk-head b { font-size: 15px; font-weight: 600; }
.wk-head em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; margin-left: 2px; font-size: 14px; font-weight: 500; color: #0485f7; }
.wk-head em svg { width: 11px; height: 11px; }
.wk-head > span { margin-left: auto; display: flex; color: #0485f7; }
.wk-head > span svg { width: 44px; height: 16px; }
.wk-days { display: flex; }
.wk-day { flex: 1; min-height: 68px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wk-day small { font-size: 12px; font-weight: 500; color: #a1a1aa; }
.wk-day b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 400; }
.wk-day i { width: 5px; height: 5px; border-radius: 50%; }
.wk-day.is-today small { color: #0485f7; }
.wk-day.is-today b { background: #0485f7; color: #fff; font-weight: 600; }
.rm-rows { display: flex; flex-direction: column; gap: 6px; }
.rm-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 18px; background: #292a31; color: #f6f7fa; }
.rm-check { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.rm-check::before { content: ''; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(161, 161, 170, .75); }
.rm-text { flex: 1; padding: 9px 0; display: flex; flex-direction: column; gap: 2px; }
.rm-text b { font-size: 15px; font-weight: 600; }
.rm-text small { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #a1a1aa; }
.rm-text small svg { width: 11px; height: 11px; margin-left: 4px; }
.rm-row img { width: 28px; height: 28px; }
.rm-new { margin-top: 4px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: #0485f7; font-size: 16px; font-weight: 500; }

/* A Settings page with its hero (SettingsPage, SettingsHeroHeader) and the role tiles of an invitation. */
.screen-settings { position: absolute; inset: 0; background: #18171c; }
.set-back { position: absolute; left: 16px; top: 66px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(41, 42, 49, .85); box-shadow: inset 0 0 0 1px rgba(246, 247, 250, .06); }
.set-back svg { width: 17px; height: 17px; }
.set-hero { position: absolute; left: 16px; right: 16px; top: 118px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.set-hero img { width: 96px; height: 96px; animation: float 2.6s ease-in-out infinite alternate; }
.set-hero b { font-size: 26px; font-weight: 600; letter-spacing: -.4px; margin-bottom: -10px; }
.set-hero p { padding: 0 12px; font-size: 15px; line-height: 1.3; color: #a1a1aa; }
.set-content { position: absolute; left: 16px; right: 16px; top: 352px; display: flex; flex-direction: column; gap: 10px; }
.set-family { padding: 0 4px; font-size: 16px; font-weight: 500; margin-bottom: 14px !important; }
.set-section { font-size: 18px; font-weight: 600; }
.roles { display: flex; flex-direction: column; gap: 10px; }
.role {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 0; border-radius: 20px; text-align: left; cursor: pointer;
  font: inherit; color: #f6f7fa; background: #292a31; box-shadow: inset 0 0 0 2px transparent; transition: background-color .25s, box-shadow .25s;
}
.role img { width: 34px; height: 34px; margin: 3px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.role span { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.role b { font-size: 16px; font-weight: 600; }
.role small { font-size: 13px; line-height: 1.25; color: #a1a1aa; }
.role svg { width: 18px; height: 18px; color: #0485f7; opacity: 0; transform: scale(.5); transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.role.is-on { background: #263d56; box-shadow: inset 0 0 0 2px #0485f7; }
.role.is-on img { transform: scale(1.08); }
.role.is-on svg { opacity: 1; transform: none; }
.set-primary { margin-top: 14px; min-height: 52px; border-radius: 26px; display: grid; place-items: center; background: #f6f7fa; color: #18171c; font-size: 16px; font-weight: 600; }
@keyframes float { from { transform: translateY(4px); } to { transform: translateY(-4px); } }
