:root {
  --bg: #f5f8f0;
  --bg-grad-a: #f7faf3;
  --bg-grad-b: #e9efe0;
  --card: #fffdf8;
  --ink: #34392d;
  --muted: #8b9a80;
  --primary: #6fb868;
  --primary-2: #4c9a4e;
  --primary-ink: #ffffff;
  --secondary: #edf2e6;
  --border: #dde6d2;
  --danger: #e0685f;
  --radius: 22px;
  --radius-lg: 28px;
  --shadow: 0 10px 24px rgba(76, 154, 78, 0.18);
  --shadow-soft: 0 4px 14px rgba(76, 154, 78, 0.13);

  --quickstart-a: #f9dcc0;
  --quickstart-b: #e9b48a;
  --quickstart-ink: #6b4226;

  --pink-a: #fdf1ec;
  --pink-b: #f8ded3;
  --pink-card: #fffaf8;
  --pink-ink: #4a322c;
  --pink-muted: #a9847a;
  --pink-secondary: #f6ded3;
  --pink-border: #f0cabd;

  --poo-a: #f7efe6;
  --poo-b: #e9d7bf;
  --poo-card: #fffaf3;
  --poo-ink: #4a3826;
  --poo-muted: #a3907d;
  --poo-secondary: #ece0cc;
  --poo-border: #ddc7a8;
  --poo-accent: #a9784f;
  --poo-accent-2: #8f6239;

  --peach-a: #fdf3ea;
  --peach-b: #f6e0c8;
  --peach-card: #fffaf5;
  --peach-ink: #6b4226;
  --peach-muted: #b3987c;
  --peach-secondary: #f8e8d5;
  --peach-border: #edd3b4;
  --peach-accent: #e9b48a;
  --peach-accent-2: #d99b6c;

  --lav-a: #f3f0fc;
  --lav-b: #e2daf5;
  --lav-card: #fbfaff;
  --lav-ink: #392e52;
  --lav-muted: #8d80ad;
  --lav-secondary: #e9e2f7;
  --lav-border: #d6c9ee;
  --lav-accent: #9c86cf;
  --lav-accent-2: #8570bb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b13;
    --bg-grad-a: #1a1f16;
    --bg-grad-b: #1f2419;
    --card: #232819;
    --ink: #ece7da;
    --muted: #a6af99;
    --primary: #86c67a;
    --primary-2: #67aa5e;
    --primary-ink: #10160b;
    --secondary: #2b3121;
    --border: #3a4230;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.3);

    --quickstart-a: #d9a878;
    --quickstart-b: #c48957;
    --quickstart-ink: #2e1a0f;

    --pink-a: #241715;
    --pink-b: #2c1917;
    --pink-card: #2a1a17;
    --pink-ink: #f3e2dc;
    --pink-muted: #c9a599;
    --pink-secondary: #33201c;
    --pink-border: #402620;

    --poo-a: #201a13;
    --poo-b: #241d15;
    --poo-card: #241d16;
    --poo-ink: #f0e6da;
    --poo-muted: #b8a58e;
    --poo-secondary: #3a2f22;
    --poo-border: #4a3c2a;
    --poo-accent: #c99a6c;
    --poo-accent-2: #b98352;

    --peach-a: #221710;
    --peach-b: #2a1c12;
    --peach-card: #271a12;
    --peach-ink: #f5e4d3;
    --peach-muted: #c9a17a;
    --peach-secondary: #3a2718;
    --peach-border: #4a331e;
    --peach-accent: #d9a878;
    --peach-accent-2: #c48957;

    --lav-a: #1c1830;
    --lav-b: #221c3a;
    --lav-card: #201a37;
    --lav-ink: #e9e4f7;
    --lav-muted: #ac9fd0;
    --lav-secondary: #2c2549;
    --lav-border: #382f57;
    --lav-accent: #b09fe0;
    --lav-accent-2: #9c86cf;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-grad-a), var(--bg-grad-b));
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.screen[hidden] { display: none !important; }

.home-screen {
  --bg: var(--pink-a);
  --card: var(--pink-card);
  --ink: var(--pink-ink);
  --muted: var(--pink-muted);
  --secondary: var(--pink-secondary);
  --border: var(--pink-border);
  background: linear-gradient(180deg, var(--pink-a), var(--pink-b));
  min-height: 100vh;
  color: var(--ink);
}

.poo-screen {
  --bg: var(--poo-a);
  --card: var(--poo-card);
  --ink: var(--poo-ink);
  --muted: var(--poo-muted);
  --secondary: var(--poo-secondary);
  --border: var(--poo-border);
  --primary: var(--poo-accent);
  --primary-2: var(--poo-accent-2);
  --shadow: 0 10px 24px rgba(169, 120, 79, 0.18);
  --shadow-soft: 0 4px 14px rgba(169, 120, 79, 0.14);
  background: linear-gradient(180deg, var(--poo-a), var(--poo-b));
  min-height: 100vh;
  color: var(--ink);
}

.trends-screen {
  --bg: var(--peach-a);
  --card: var(--peach-card);
  --ink: var(--peach-ink);
  --muted: var(--peach-muted);
  --secondary: var(--peach-secondary);
  --border: var(--peach-border);
  --primary: var(--peach-accent);
  --primary-2: var(--peach-accent-2);
  --shadow: 0 10px 24px rgba(217, 155, 108, 0.16);
  --shadow-soft: 0 4px 14px rgba(217, 155, 108, 0.12);
  background: linear-gradient(180deg, var(--peach-a), var(--peach-b));
  min-height: 100vh;
  color: var(--ink);
}

.milestones-screen {
  --bg: var(--lav-a);
  --card: var(--lav-card);
  --ink: var(--lav-ink);
  --muted: var(--lav-muted);
  --secondary: var(--lav-secondary);
  --border: var(--lav-border);
  --primary: var(--lav-accent);
  --primary-2: var(--lav-accent-2);
  --shadow: 0 10px 24px rgba(156, 134, 207, 0.18);
  --shadow-soft: 0 4px 14px rgba(156, 134, 207, 0.14);
  background: linear-gradient(180deg, var(--lav-a), var(--lav-b));
  min-height: 100vh;
  color: var(--ink);
}

.sub-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 18px 6px;
}

.icon-btn.icon-btn-round {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.home-main {
  padding: 24px 20px 40px;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.home-title { font-size: 1.5rem; font-weight: 900; margin: 20px 0 30px; }

.home-grid { display: flex; flex-direction: column; gap: 24px; align-items: center; margin-bottom: 34px; }
.home-tile {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  transition: transform 0.12s ease;
}
.home-tile:active { transform: scale(0.96); }
.home-tile-label { font-weight: 800; font-size: 0.95rem; color: var(--ink); }

.home-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: var(--shadow-soft);
}
.home-circle-green { background: linear-gradient(135deg, #6fb868, #4c9a4e); }
.home-circle-lavender { background: linear-gradient(135deg, #b9a6e0, #9c86cf); }
.home-circle-peach { background: linear-gradient(135deg, #f5b98a, #f0985f); }
.home-circle-gold { background: linear-gradient(135deg, #f0cf8a, #e0ab5f); }

.home-circle-small {
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
}
.home-tile-small { margin-top: 4px; }

.home-share-btn { max-width: 280px; }

.placeholder-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 60px;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.trends-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 50px;
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
}
.muted.trends-summary { font-weight: 600; color: var(--ink); font-size: 0.88rem; line-height: 1.45; margin: 10px 0 0; }
.card.trends-card { width: 100%; margin: 14px 0 0; padding: 18px 14px; box-sizing: border-box; text-align: left; }
.trends-chart-title { margin: 0 0 6px; font-size: 0.95rem; text-align: center; }
.trends-section-heading { width: 100%; text-align: center; font-size: 1.05rem; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.trends-svg { width: 100%; height: auto; display: block; }
.trends-legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.legend-swatch { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.legend-swatch-ref { background: var(--muted); }
.legend-swatch-baby { background: var(--primary); }
.trends-hint { margin-top: 10px; }
.muted.trends-disclaimer { font-size: 0.76rem; margin-top: 16px; line-height: 1.4; }

.text-link-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  padding: 4px;
}
.milestone-delete-btn { color: var(--danger); margin-top: 12px; }

.milestones-main { padding: 20px 16px 50px; max-width: 480px; margin: 0 auto; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav h2 { margin: 0; font-size: 1.05rem; }
.cal-nav .icon-btn-round { font-size: 1.1rem; }
.cal-nav .icon-btn-round:disabled { opacity: 0.3; cursor: default; }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  background: none;
  background-size: cover;
  background-position: center;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cal-day.out-of-range { visibility: hidden; pointer-events: none; }
.cal-day.has-entry { background-color: var(--secondary); }
.cal-day.has-photo { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.cal-day.today-marker { box-shadow: 0 0 0 2px var(--primary) inset; }
.cal-day.birthday::after {
  content: '🎂';
  position: absolute;
  top: -5px;
  right: -3px;
  font-size: 0.85rem;
  line-height: 1;
}

.milestone-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.milestone-photo-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; }
.milestone-textarea { resize: vertical; font-family: inherit; }
.placeholder-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 8px;
  box-shadow: var(--shadow-soft);
}

.profile-main {
  align-items: stretch;
  text-align: left;
  width: 100%;
}
.profile-main .placeholder-icon { align-self: center; margin-bottom: 4px; }
.profile-main h2 { text-align: center; }
.profile-age { margin-top: 8px; font-weight: 700; }

.tone-chip {
  background: var(--secondary);
  border: 2px solid transparent;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.tone-chip.selected { border-color: var(--primary); background: var(--card); }

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}
.field-input {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 2px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 16px;
  box-shadow: var(--shadow);
}

h1 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 900; }
h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 800; }
.muted { color: var(--muted); font-size: 0.9rem; }

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--primary-ink); box-shadow: var(--shadow-soft); }
.btn-secondary { background: var(--secondary); color: var(--ink); }

.setup-choice { margin-top: 20px; }
.or-divider { text-align: center; color: var(--muted); margin: 16px 0; font-size: 0.85rem; font-weight: 700; }
#join-form label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 700; }
#join-form input {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 2px solid var(--border);
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  text-transform: uppercase;
}
.error { color: var(--danger); font-size: 0.9rem; font-weight: 700; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 6px;
}
.header-left { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.header-right { display: flex; align-items: center; gap: 8px; }
.baby-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.icon-btn {
  background: var(--secondary);
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}

main { padding: 4px 16px 32px; max-width: 480px; margin: 0 auto; }

.hero-card {
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  color: var(--primary-ink);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.hero-label { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.hero-time { font-size: 3rem; font-weight: 900; margin: 4px 0; line-height: 1.1; }
.hero-detail { font-size: 0.95rem; font-weight: 700; opacity: 0.9; }

.hero-card.hero-pending {
  background: linear-gradient(160deg, var(--quickstart-a), var(--quickstart-b));
  color: var(--quickstart-ink);
  cursor: pointer;
}

.next-feed-pill {
  background: var(--card);
  border-radius: 999px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}
.next-feed-icon { font-size: 1.4rem; }
.next-feed-text { display: flex; flex-direction: column; text-align: left; }
.next-feed-label { font-size: 0.75rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.next-feed-value { font-size: 1rem; font-weight: 800; }

.bottle-pill {
  width: 100%;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.next-feed-pill.bottle-expired { background: linear-gradient(135deg, var(--danger), #c94f47); }
.next-feed-pill.bottle-expired .next-feed-label,
.next-feed-pill.bottle-expired .next-feed-value { color: #fff; }

.log-feed-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--primary-ink);
  border: none;
  border-radius: var(--radius-lg);
  padding: 24px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.log-feed-btn:active { transform: scale(0.97); }
.log-emoji { font-size: 2.1rem; }

.quickstart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--quickstart-a), var(--quickstart-b));
  color: var(--quickstart-ink);
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(217, 155, 108, 0.28);
  transition: transform 0.12s ease;
}
.quickstart-btn:active { transform: scale(0.97); }
.quickstart-btn .log-emoji { font-size: 1.2rem; }

.history-header { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.history-header h2 { margin: 0; }

.segmented {
  display: inline-flex;
  background: var(--secondary);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.segment {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.segment.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-soft); }

.history-table-wrap {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.history-table-head, #history-list li {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr 28px;
  align-items: center;
  gap: 10px;
}
.history-table-head {
  padding: 12px 16px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.history-table-head span:nth-child(2),
.history-table-head span:nth-child(3) { text-align: right; }

#history-list { list-style: none; margin: 0; padding: 0 0 4px; }
#history-list li {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}
#history-list li:first-child { border-top: none; }

#history-list li.day-group-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--secondary);
  padding: 8px 16px;
}
.day-group-label { color: var(--muted); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.day-group-total { color: var(--ink); font-weight: 800; font-size: 0.85rem; }

.poo-table-head, #poo-history-list li {
  display: grid;
  grid-template-columns: 1.3fr 1fr 28px;
  align-items: center;
  gap: 10px;
}
.poo-table-head {
  padding: 12px 16px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.poo-table-head span:nth-child(2) { text-align: right; }

#poo-history-list { list-style: none; margin: 0; padding: 0 0 4px; }
#poo-history-list li {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}
#poo-history-list li:first-child { border-top: none; }
.poo-note-row {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}
.history-time-val { font-weight: 800; font-size: 1.05rem; }
.history-amount-val { text-align: right; font-weight: 700; color: var(--ink); }
.history-gap-val { text-align: right; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.history-delete {
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  justify-self: end;
}

.add-amount-btn {
  justify-self: end;
  background: var(--secondary);
  color: var(--primary-2);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 20, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10;
}
.modal[hidden] { display: none !important; }
.modal-card {
  background: var(--card);
  border-radius: 28px 28px 0 0;
  padding: 26px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-section { margin-bottom: 22px; }
.modal-section label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auto-tag {
  background: var(--secondary);
  color: var(--primary-2);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  background: var(--secondary);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
}
.chip.selected { border-color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--primary-ink); }

.datetime-row { display: flex; gap: 8px; }

.date-field {
  position: relative;
  width: 84px;
  flex-shrink: 0;
}
.date-field-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px 4px;
  border-radius: 14px;
  border: 2px solid var(--border);
  font-size: 1rem;
  font-weight: 800;
  background: var(--bg);
  color: var(--ink);
  pointer-events: none;
}
#feed-date {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0;
}

#feed-time {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  border-radius: 14px;
  border: 2px solid var(--border);
  font-size: 1.1rem;
  font-weight: 800;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}

.wheel-picker {
  position: relative;
  height: 150px;
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}
.wheel-highlight {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 40px;
  transform: translateY(-50%);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  pointer-events: none;
  border-radius: 10px;
}
.wheel-track {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  padding: 55px 0;
  -webkit-overflow-scrolling: touch;
}
.wheel-item {
  height: 40px;
  line-height: 40px;
  text-align: center;
  scroll-snap-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}
.wheel-item.active {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.log-start-btn { margin-bottom: 22px; }

.modal-actions { display: flex; gap: 10px; margin-top: 4px; }
.modal-actions .btn { flex: 1; }

.share-code {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-align: center;
  background: var(--secondary);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 20;
  box-shadow: var(--shadow);
}
.toast[hidden] { display: none !important; }
