:root {
  --white: #ffffff;
  --ink: #0a0b0d;
  --muted: #596170;
  --soft: #f4f5f7;
  --line: #e4e7ec;
  --blue: #2457ff;
  --blue-pressed: #153ed1;
  --orange: #ff7300;
  --yellow: #ffd84d;
  --green: #00a94f;
  --red: #d92d20;
  --violet: #6d3bff;
  --shadow-card: 0 10px 30px rgba(10, 11, 13, 0.1);
  --shadow-modal: 0 24px 64px rgba(10, 11, 13, 0.18);
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.material-symbols-rounded {
  font-variation-settings:
    "FILL" 0,
    "wght" 450,
    "GRAD" 0,
    "opsz" 24;
  line-height: 1;
}

.app-canvas {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
}

.status-bar {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 126px 1fr;
  align-items: center;
  width: 100%;
  height: 54px;
  padding: 7px 20px 0;
  color: currentColor;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.dynamic-island {
  justify-self: center;
  width: 122px;
  height: 34px;
  border-radius: 999px;
  background: #000000;
}

.status-icons {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 6px;
}

.signal-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  width: 18px;
  height: 13px;
}

.signal-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}

.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 7px; }
.signal-bars i:nth-child(3) { height: 10px; }
.signal-bars i:nth-child(4) { height: 13px; }

.status-icons .wifi {
  font-size: 18px;
}

.battery {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 25px;
  height: 12px;
  padding: 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.battery::after {
  position: absolute;
  right: -3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  content: "";
}

.battery i {
  display: block;
  width: 16px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

#screenRoot {
  width: 100%;
  height: 100%;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 66px 20px 36px;
  background: var(--white);
  animation: screen-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen--blue {
  background: var(--blue);
  color: var(--white);
}

.screen--ink {
  background: var(--ink);
  color: var(--white);
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.eyebrow--muted {
  color: var(--muted);
}

.screen-title {
  margin: 12px 0 10px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 34px;
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 38px;
}

.screen-copy {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -0.008em;
  line-height: 23px;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  transition:
    transform 100ms ease,
    background 180ms ease;
}

.icon-button:active {
  transform: translateY(2px) scale(0.98);
  background: var(--soft);
}

.icon-button--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-label {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.015em;
  transition:
    transform 100ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.primary-button {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(36, 87, 255, 0.24);
}

.primary-button:hover {
  background: var(--blue-pressed);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(2px) scale(0.985);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.primary-button--light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.primary-button--light:hover {
  background: var(--soft);
}

.primary-button--orange {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(255, 115, 0, 0.24);
}

.primary-button--orange:hover {
  background: #ec6800;
}

.secondary-button {
  min-height: 48px;
  background: transparent;
  color: var(--ink);
}

.secondary-button--light {
  color: var(--white);
}

.button-icon {
  margin-left: 8px;
  font-size: 22px;
}

.bottom-actions {
  position: sticky;
  z-index: 5;
  bottom: -36px;
  margin: 24px -20px -36px;
  padding: 16px 20px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--white) 18%);
}

.bottom-actions .secondary-button {
  margin-top: 4px;
}

.toast {
  position: absolute;
  z-index: 100;
  right: 20px;
  bottom: 30px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-modal);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-indicator {
  position: absolute;
  z-index: 80;
  bottom: 8px;
  left: 50%;
  width: 138px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
  pointer-events: none;
  transform: translateX(-50%);
}

/* Welcome */

.welcome-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 28px;
}

.welcome-screen::before {
  position: absolute;
  top: -122px;
  right: 18px;
  width: 224px;
  height: 224px;
  border: 36px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.welcome-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.wordmark {
  font-family: "Inter Tight", sans-serif;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.privacy-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.privacy-chip .material-symbols-rounded {
  font-size: 17px;
}

.mascot-stage {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  min-height: 300px;
  margin: 10px 0 0;
}

.mascot-disc {
  position: absolute;
  width: 248px;
  height: 248px;
  border-radius: 50%;
  background: var(--yellow);
}

.mascot-disc::before,
.mascot-disc::after {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.mascot-disc::before {
  top: -6px;
  right: 16px;
  width: 28px;
  height: 28px;
}

.mascot-disc::after {
  bottom: 28px;
  left: -8px;
  width: 18px;
  height: 18px;
}

.mascot {
  position: relative;
  z-index: 1;
  width: 226px;
  height: 226px;
  object-fit: contain;
  animation: wobble 2.8s ease-in-out infinite;
  filter: none;
}

@keyframes wobble {
  0%,
  78%,
  100% { transform: rotate(0deg) translateY(0); }
  84% { transform: rotate(-3deg) translateY(-2px); }
  92% { transform: rotate(3deg) translateY(0); }
}

.welcome-content {
  position: relative;
  z-index: 2;
}

.welcome-title {
  max-width: 340px;
  margin: 0 0 12px;
  font-family: "Inter Tight", sans-serif;
  font-size: 44px;
  font-weight: 740;
  letter-spacing: -0.05em;
  line-height: 45px;
}

.welcome-copy {
  max-width: 335px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 430;
  letter-spacing: -0.01em;
  line-height: 23px;
}

.trust-line {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
}

.trust-line .material-symbols-rounded {
  color: var(--yellow);
  font-size: 21px;
}

.no-account {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-align: center;
}

/* Profile */

.profile-screen {
  padding-bottom: 28px;
}

.profile-hero {
  margin-top: 26px;
}

.photo-picker {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 24px auto 26px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background:
    radial-gradient(circle at 55% 35%, #ffffff 0 8%, transparent 9%),
    linear-gradient(145deg, var(--yellow), var(--orange));
  box-shadow: 0 9px 24px rgba(36, 87, 255, 0.14);
  color: var(--ink);
}

.photo-picker .avatar-initial {
  font-family: "Inter Tight", sans-serif;
  font-size: 36px;
  font-weight: 760;
}

.photo-picker .camera-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.photo-picker .camera-badge .material-symbols-rounded {
  font-size: 17px;
}

.photo-picker.is-ready::after {
  position: absolute;
  bottom: -24px;
  color: var(--green);
  content: "Photo ready";
  font-size: 11px;
  font-weight: 700;
}

.field-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.field-control {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  transition:
    border 180ms ease,
    box-shadow 180ms ease;
}

.field-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 87, 255, 0.1);
}

.field-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 560;
}

.field-control .material-symbols-rounded {
  margin-right: 10px;
  color: var(--blue);
  font-size: 21px;
}

.field-control .trailing {
  margin-right: 0;
  margin-left: auto;
  color: var(--muted);
}

.field-help {
  margin: 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

/* Choices */

.choice-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 98px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition:
    border 180ms ease,
    background 180ms ease,
    transform 100ms ease;
}

.choice-card:active {
  transform: translateY(2px) scale(0.99);
}

.choice-card.is-selected {
  border: 2px solid var(--blue);
  background: #f7f9ff;
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--ink);
}

.choice-card[data-choice="sleep"] .choice-icon {
  background: var(--blue);
  color: var(--white);
}

.choice-card[data-choice="feed"] .choice-icon {
  background: var(--yellow);
}

.choice-card[data-choice="diaper"] .choice-icon {
  background: var(--orange);
}

.choice-icon .material-symbols-rounded {
  font-size: 26px;
}

.choice-title {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.choice-copy {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 430;
  line-height: 18px;
}

.choice-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid #c9ced7;
  border-radius: 999px;
  color: transparent;
}

.is-selected .choice-check {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.choice-check .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings:
    "FILL" 1,
    "wght" 600,
    "GRAD" 0,
    "opsz" 20;
}

/* Paywall */

.paywall-screen {
  padding: 0 0 24px;
  background: var(--white);
}

.paywall-screen ~ .home-indicator {
  color: var(--ink);
}

.paywall-hero {
  position: relative;
  min-height: 265px;
  overflow: hidden;
  padding: 68px 20px 30px;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 216, 77, 0.96) 0 70px, transparent 71px),
    linear-gradient(145deg, var(--blue) 0 52%, var(--violet) 100%);
  color: var(--white);
}

.paywall-hero::after {
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  border: 32px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.paywall-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.pro-pill .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 20;
}

.paywall-title {
  max-width: 300px;
  margin: 25px 0 8px;
  font-family: "Inter Tight", sans-serif;
  font-size: 35px;
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 38px;
}

.paywall-subtitle {
  max-width: 285px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 20px;
}

.paywall-mascot {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: -2px;
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.paywall-body {
  padding: 20px;
  color: var(--ink);
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.benefit {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.benefit .material-symbols-rounded {
  color: var(--blue);
  font-size: 22px;
  font-variation-settings:
    "FILL" 1,
    "wght" 450,
    "GRAD" 0,
    "opsz" 24;
}

.benefit span:last-child {
  font-size: 12px;
  font-weight: 590;
  line-height: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-card {
  position: relative;
  min-height: 114px;
  padding: 16px 14px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.plan-card.is-selected {
  border: 2px solid var(--blue);
  background: #f7f9ff;
}

.plan-name {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.plan-price {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.plan-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.save-chip {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.trial-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.legal-links button {
  min-height: 28px;
  padding: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.legal-links button:hover,
.legal-links button:focus-visible {
  border-bottom-color: currentColor;
}

/* Home */

.home-screen {
  padding: 66px 16px 102px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.home-identity {
  display: grid;
  gap: 4px;
}

.home-brand {
  font-family: "Inter Tight", sans-serif;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.child-age {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.child-age code {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.home-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--yellow), var(--orange));
  box-shadow: 0 0 0 2px var(--blue);
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 20px 0 16px;
}

.day {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.day i {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.day.is-complete i {
  background: var(--blue);
  color: var(--white);
}

.day.is-complete i::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.day.is-today {
  color: var(--ink);
}

.day.is-today i {
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
}

.today-card {
  position: relative;
  min-height: 222px;
  overflow: hidden;
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 20%, var(--yellow) 0 52px, transparent 53px),
    linear-gradient(145deg, var(--blue), #3c6cff);
  color: var(--white);
}

.today-card::before {
  position: absolute;
  right: -45px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.today-card .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.today-title {
  max-width: 230px;
  margin: 10px 0 8px;
  font-family: "Inter Tight", sans-serif;
  font-size: 27px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 30px;
}

.today-copy {
  max-width: 235px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 18px;
}

.photo-action {
  position: absolute;
  bottom: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  box-shadow: var(--shadow-card);
}

.photo-action.is-saved {
  background: var(--yellow);
}

.photo-action .material-symbols-rounded {
  font-size: 20px;
}

.mini-mascot {
  position: absolute;
  right: 8px;
  bottom: -3px;
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 4px 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-heading span {
  color: var(--muted);
  font-size: 11px;
}

.quick-logs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-log {
  min-width: 0;
  min-height: 100px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.quick-log .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 11px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 19px;
}

.quick-log[data-log="sleep"] .material-symbols-rounded {
  background: var(--blue);
  color: var(--white);
}

.quick-log[data-log="feed"] .material-symbols-rounded {
  background: var(--yellow);
}

.quick-log[data-log="diaper"] .material-symbols-rounded {
  background: var(--orange);
}

.quick-log strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-log small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.week-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--yellow);
  color: var(--ink);
}

.week-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 680;
}

.week-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.log-first {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
}

.tab-bar {
  position: absolute;
  z-index: 40;
  right: 10px;
  bottom: 18px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 68px;
  padding: 7px 5px 10px;
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 42px rgba(10, 11, 13, 0.15);
  backdrop-filter: blur(18px);
}

.tab {
  display: grid;
  gap: 3px;
  place-items: center;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 580;
}

.tab .material-symbols-rounded {
  font-size: 22px;
}

.tab.is-active {
  color: var(--blue);
}

.tab.is-active .material-symbols-rounded {
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.capture-tab .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -20px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(36, 87, 255, 0.3);
}

/* First / share */

.share-screen {
  padding-bottom: 38px;
}

.share-screen .top-row {
  position: relative;
  z-index: 4;
}

.saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 11px;
  font-weight: 650;
}

.saved-chip .material-symbols-rounded {
  color: var(--green);
  font-size: 17px;
  font-variation-settings:
    "FILL" 1,
    "wght" 600,
    "GRAD" 0,
    "opsz" 20;
}

.share-heading {
  margin: 20px 0 16px;
  font-family: "Inter Tight", sans-serif;
  font-size: 33px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 36px;
}

.share-preview {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 76% 16%, var(--yellow) 0 54px, transparent 55px),
    linear-gradient(155deg, var(--blue) 0 58%, var(--violet) 58% 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  transition:
    min-height 240ms ease,
    border-radius 240ms ease;
}

.share-preview[data-format="feed"] {
  min-height: 340px;
  border-radius: 24px;
}

.confetti-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(30deg);
}

.confetti-dot:nth-child(1) { top: 48px; left: 32px; }
.confetti-dot:nth-child(2) { top: 100px; right: 30px; background: var(--white); transform: rotate(-18deg); }
.confetti-dot:nth-child(3) { bottom: 118px; left: 42px; background: var(--yellow); transform: rotate(48deg); }
.confetti-dot:nth-child(4) { bottom: 78px; right: 46px; background: var(--orange); transform: rotate(8deg); }

.preview-content {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: 24px;
  left: 24px;
  color: var(--white);
}

.preview-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-title {
  max-width: 250px;
  margin: 12px 0 6px;
  font-family: "Inter Tight", sans-serif;
  font-size: 39px;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 39px;
}

.preview-age {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
}

.end-card {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 108px;
  padding: 12px;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
}

.end-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.end-card strong {
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.end-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.format-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.format-button {
  min-height: 42px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
}

.format-button.is-selected {
  background: var(--white);
  color: var(--ink);
}

.share-actions {
  display: grid;
  gap: 5px;
}

.render-progress {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.render-progress.is-visible {
  display: flex;
}

.progress-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transition: width 1.8s linear;
}

.render-progress.is-running .progress-track i {
  width: 100%;
}

.render-progress code {
  min-width: 34px;
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

@media (max-width: 379px) {
  .screen {
    padding-right: 16px;
    padding-left: 16px;
  }

  .welcome-title {
    font-size: 40px;
    line-height: 42px;
  }

  .bottom-actions {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .quick-log {
    padding-right: 8px;
    padding-left: 8px;
  }
}

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

  .mascot {
    animation: none;
  }
}
