@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════
   milk-brain Design System
   Material-tactile: soft pastels, depth, rounded forms
   ═══════════════════════════════════════════ */

:root {
  /* Category Colors — Soft, tactile pastels */
  --feed-coral: #C4918E;
  --feed-coral-light: #F5EDEC;
  --feed-coral-mid: #E5CCCB;
  --pump-purple: #A494BE;
  --pump-purple-light: #F0ECF5;
  --pump-purple-mid: #CFC6DA;
  --diaper-amber: #C4AD7A;
  --diaper-amber-light: #F5F0E6;
  --diaper-amber-mid: #DED5B8;
  --sleep-indigo: #82A8C4;
  --sleep-indigo-light: #ECF2F8;
  --sleep-indigo-mid: #BDD0DE;

  /* Core Palette — Sage green primary */
  --cream: #F5F1EB;
  --cream-dark: #E8E2D8;
  --teal: #5A8D6E;
  --teal-dark: #467A5A;
  --teal-light: #E8F0EB;
  --text-primary: #2A2622;
  --text-secondary: #6B6560;
  --text-muted: #A09890;
  --white: #FFFFFF;
  --border: #DDD6CC;
  --border-light: #E8E2D8;

  /* Shadows — Warm, layered for material depth */
  --shadow-sm: 0 1px 2px rgba(42,38,34,0.05);
  --shadow-md: 0 2px 8px rgba(42,38,34,0.07), 0 1px 2px rgba(42,38,34,0.04);
  --shadow-lg: 0 6px 20px rgba(42,38,34,0.09), 0 2px 6px rgba(42,38,34,0.05);
  --shadow-card: 0 1px 4px rgba(42,38,34,0.06), 0 0 0 1px rgba(42,38,34,0.03);
  --shadow-raised: 0 4px 12px rgba(42,38,34,0.1), 0 2px 4px rgba(42,38,34,0.06);
  --shadow-inset: inset 0 2px 4px rgba(42,38,34,0.08);

  /* Radii — Rounder, softer forms */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Font — Single geometric sans-serif */
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; width: 100%; }

body {
  font-family: var(--font-body);
  height: 100vh; overflow: hidden;
  background: var(--cream);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   Login Screen
   ═══════════════════════════════════════════ */

#login-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100vh; gap: 1.25rem;
  width: 100%; padding: 1.5rem;
  background: var(--cream);
  background-image: radial-gradient(circle at 30% 20%, rgba(196,145,142,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 70% 80%, rgba(130,168,196,0.08) 0%, transparent 50%);
}
#login-screen h1 {
  font-family: var(--font-body);
  font-size: 2.5rem; color: var(--teal-dark);
  font-weight: 400; letter-spacing: -0.02em;
}
#login-loading { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; }
.error { color: #DC2626; font-size: 0.9rem; font-weight: 500; }

/* ═══════════════════════════════════════════
   Welcome Screen
   ═══════════════════════════════════════════ */

#welcome-screen {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--cream); padding: 0 1rem;
  background-image: radial-gradient(circle at 20% 30%, rgba(196,145,142,0.07) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(164,148,190,0.07) 0%, transparent 40%),
                    radial-gradient(circle at 50% 90%, rgba(130,168,196,0.06) 0%, transparent 40%);
}
.welcome-container {
  max-width: 400px; width: 100%; padding: 2rem 1.5rem; text-align: center;
}
.welcome-title {
  font-family: var(--font-body);
  font-size: 2.25rem; color: var(--teal-dark);
  font-weight: 400; margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.welcome-sub {
  color: var(--text-secondary); font-size: 0.95rem;
  margin-bottom: 2rem; font-weight: 300;
}
.welcome-actions { display: flex; flex-direction: column; gap: 0.65rem; }
.welcome-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); cursor: pointer;
  text-align: left; transition: all 0.2s ease;
  font-family: inherit; box-shadow: var(--shadow-card);
}
.welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}
.welcome-card:active { transform: translateY(0); box-shadow: var(--shadow-card); }

/* Category-colored icon badges */
.welcome-card[data-action="feed"] .wc-icon,
.welcome-card[data-wizard-card="feed"] .wc-icon { background: var(--feed-coral-light); color: var(--feed-coral); }
.welcome-card[data-action="feed"]:hover,
.welcome-card[data-wizard-card="feed"]:hover { border-color: var(--feed-coral); }

.welcome-card[data-action="pump"] .wc-icon,
.welcome-card[data-wizard-card="pump"] .wc-icon { background: var(--pump-purple-light); color: var(--pump-purple); }
.welcome-card[data-action="pump"]:hover,
.welcome-card[data-wizard-card="pump"]:hover { border-color: var(--pump-purple); }

.welcome-card[data-action="diaper"] .wc-icon,
.welcome-card[data-wizard-card="diaper"] .wc-icon { background: var(--diaper-amber-light); color: var(--diaper-amber); }
.welcome-card[data-action="diaper"]:hover,
.welcome-card[data-wizard-card="diaper"]:hover { border-color: var(--diaper-amber); }

.welcome-card[data-action="sleep"] .wc-icon,
.welcome-card[data-wizard-card="sleep"] .wc-icon { background: var(--sleep-indigo-light); color: var(--sleep-indigo); }
.welcome-card[data-action="sleep"]:hover,
.welcome-card[data-wizard-card="sleep"]:hover { border-color: var(--sleep-indigo); }

.welcome-card[data-action="chat"] .wc-icon,
.welcome-card[data-wizard-card="quick"] .wc-icon,
.welcome-card[data-wizard-card="manual"] .wc-icon { background: var(--teal-light); color: var(--teal); }
.welcome-card[data-action="chat"]:hover,
.welcome-card[data-wizard-card="quick"]:hover,
.welcome-card[data-wizard-card="manual"]:hover { border-color: var(--teal); }

/* Wizard card types */
.welcome-card[data-wizard-card="bottle"] .wc-icon { background: var(--feed-coral-light); color: var(--feed-coral); }
.welcome-card[data-wizard-card="bottle"]:hover { border-color: var(--feed-coral); }
.welcome-card[data-wizard-card="breast"] .wc-icon { background: var(--feed-coral-light); color: var(--feed-coral); }
.welcome-card[data-wizard-card="breast"]:hover { border-color: var(--feed-coral); }
.welcome-card[data-wizard-card="pee"] .wc-icon { background: var(--diaper-amber-light); color: var(--diaper-amber); }
.welcome-card[data-wizard-card="pee"]:hover { border-color: var(--diaper-amber); }
.welcome-card[data-wizard-card="poop"] .wc-icon { background: var(--diaper-amber-light); color: var(--diaper-amber); }
.welcome-card[data-wizard-card="poop"]:hover { border-color: var(--diaper-amber); }
.welcome-card[data-wizard-card="both"] .wc-icon { background: var(--diaper-amber-light); color: var(--diaper-amber); }
.welcome-card[data-wizard-card="both"]:hover { border-color: var(--diaper-amber); }

.wc-icon,
.welcome-card > svg {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  transition: transform 0.15s;
}
.welcome-card:hover .wc-icon,
.welcome-card:hover > svg { transform: scale(1.05); }
.wc-icon svg { color: inherit; }

/* Color badges for welcome cards with direct SVG children */
.welcome-card[data-action="feed"] > svg { background: var(--feed-coral-light); color: var(--feed-coral); padding: 8px; border-radius: var(--radius-md); }
.welcome-card[data-action="pump"] > svg { background: var(--pump-purple-light); color: var(--pump-purple); padding: 8px; border-radius: var(--radius-md); }
.welcome-card[data-action="diaper"] > svg { background: var(--diaper-amber-light); color: var(--diaper-amber); padding: 8px; border-radius: var(--radius-md); }
.welcome-card[data-action="sleep"] > svg { background: var(--sleep-indigo-light); color: var(--sleep-indigo); padding: 8px; border-radius: var(--radius-md); }
.welcome-card[data-action="chat"] > svg { background: var(--teal-light); color: var(--teal); padding: 8px; border-radius: var(--radius-md); }
.welcome-card[data-action="skip"] > svg { background: var(--cream-dark); color: var(--text-muted); padding: 8px; border-radius: var(--radius-md); }
.wc-label { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); display: block; }
.wc-desc { font-size: 0.78rem; color: var(--text-secondary); display: block; font-weight: 300; margin-top: 1px; }

.welcome-skip {
  display: block; margin: 1.5rem auto 0; background: none; border: none;
  color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 400;
  transition: color 0.15s;
}
.welcome-skip:hover { color: var(--text-secondary); }
.welcome-toggle {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1rem; font-size: 0.75rem; color: var(--text-muted); cursor: pointer;
}
.welcome-toggle input { width: 14px; height: 14px; accent-color: var(--teal); }

/* ═══════════════════════════════════════════
   Chat Screen Layout
   ═══════════════════════════════════════════ */

#chat-screen {
  display: flex; height: 100vh; position: relative; overflow: hidden;
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

/* Sidebar */
#sidebar {
  width: 260px; background: var(--white); padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  overflow-y: auto; border-right: 1px solid var(--border);
}
#sidebar #new-chat {
  padding: 0.7rem; cursor: pointer; background: var(--teal);
  color: white; border: none; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.9rem; font-family: var(--font-body);
  transition: all 0.15s;
  box-shadow: 0 2px 0 var(--teal-dark), var(--shadow-sm);
}
#sidebar #new-chat:hover { background: var(--teal-dark); transform: translateY(-1px); }
#sidebar #new-chat:active { transform: translateY(1px); box-shadow: none; }
#sidebar #logout-btn {
  margin-top: auto; padding: 0.55rem; cursor: pointer;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.82rem;
  color: var(--text-muted); font-family: var(--font-body);
  transition: all 0.15s;
}
#sidebar #logout-btn:hover { background: var(--cream); color: var(--text-secondary); }
.conv-item {
  padding: 0.6rem 0.75rem; cursor: pointer; border-radius: var(--radius-sm);
  font-size: 0.88rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; color: var(--text-secondary);
  transition: all 0.1s; font-weight: 400;
}
.conv-item:hover { background: var(--cream); color: var(--text-primary); }
.conv-item.active {
  background: var(--teal-light); color: var(--teal-dark);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   Tab System
   ═══════════════════════════════════════════ */

.tab-content { flex: 1; display: none; flex-direction: column; overflow-y: auto; }
.tab-content.active { display: flex; }

#chat-area { flex: 1; display: none; flex-direction: column; min-height: 0; min-width: 0; }
#chat-area.active { display: flex; }

/* Messages */
#messages { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; min-height: 0; }
.msg {
  padding: 0.85rem 1.1rem; margin: 0.5rem 0;
  border-radius: var(--radius-lg); max-width: 82%;
  line-height: 1.55; font-size: 0.92rem;
}
.msg.user {
  background: var(--teal); color: white; margin-left: auto;
  border-bottom-right-radius: 6px;
  box-shadow: 0 1px 0 var(--teal-dark), var(--shadow-sm);
}
.msg.model {
  background: var(--white); border: 1.5px solid var(--border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-card);
}
.msg.model p { margin: 0.4em 0; }
.msg.model p:first-child { margin-top: 0; }
.msg.model p:last-child { margin-bottom: 0; }
.msg.model ul, .msg.model ol { margin: 0.4em 0 0.4em 1.2em; }
.msg.model li { margin: 0.2em 0; }
.msg.model strong { color: var(--teal-dark); }
.msg.thinking {
  color: var(--text-muted); font-style: italic; background: transparent;
  border: none; box-shadow: none; animation: pulse-thinking 1.5s ease-in-out infinite;
}
@keyframes pulse-thinking {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Chat Input */
#chat-form {
  display: flex; gap: 0.6rem; padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-light); flex-shrink: 0;
  background: var(--white); align-items: flex-end;
}
#chat-input {
  flex: 1; min-width: 0; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.92rem; resize: none;
  font-family: var(--font-body); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--cream);
}
#chat-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(90,141,110,0.12);
  background: var(--white);
}
#chat-form button {
  padding: 0.75rem 1.35rem; background: var(--teal); color: white;
  border: none; border-radius: var(--radius-md); cursor: pointer;
  font-weight: 600; font-family: var(--font-body); font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
  box-shadow: var(--shadow-sm); flex-shrink: 0; white-space: nowrap;
}
#chat-form button:hover { background: var(--teal-dark); }
#chat-form button:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════
   Bottom Tab Bar
   ═══════════════════════════════════════════ */

#tab-bar {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px; background: var(--white);
  border-top: 1px solid var(--border-light);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(42,38,34,0.05);
}
#tab-bar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; border: none; background: none;
  color: var(--text-muted); font-size: 0.62rem; cursor: pointer;
  padding: 6px 0; transition: color 0.15s;
  font-family: var(--font-body); font-weight: 500;
}
#tab-bar .tab.active { color: var(--teal); }
#tab-bar .tab svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════
   Tab Header
   ═══════════════════════════════════════════ */

.tab-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
}
.tab-header h2 {
  font-family: var(--font-body); font-size: 1.35rem;
  font-weight: 600; color: var(--text-primary);
}
.tab-header-actions { display: flex; gap: 0.5rem; }
.import-btn {
  padding: 0.4rem 0.8rem; margin: 0; width: auto; font-size: 0.78rem;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════
   Form Controls
   ═══════════════════════════════════════════ */

/* Mode toggle */
.mode-toggle { display: flex; padding: 0.75rem 1rem; gap: 0; }
.mode-btn {
  flex: 1; padding: 0.55rem; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-size: 0.88rem;
  color: var(--text-secondary); font-family: var(--font-body); font-weight: 500;
  transition: all 0.15s;
}
.mode-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.mode-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.mode-btn.active { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal); font-weight: 600; }

.mode-content { display: none; padding: 1rem; flex-direction: column; gap: 1rem; }
.mode-content.active { display: flex; }

/* Segment control */
.segment-control { display: flex; gap: 0; }
.segment-btn {
  flex: 1; padding: 0.65rem; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-size: 0.92rem;
  text-align: center; font-family: var(--font-body); font-weight: 500;
  transition: all 0.15s; color: var(--text-secondary);
}
.segment-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.segment-btn:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.segment-btn.active { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal); font-weight: 600; }

/* Chips */
.chip-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  padding: 0.45rem 1rem; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; font-size: 0.82rem; color: var(--text-secondary);
  font-family: var(--font-body); font-weight: 500;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--teal); }
.chip.active { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal); }

/* Field rows */
.field-row { display: flex; align-items: center; gap: 0.75rem; }
.field-row label { font-size: 0.88rem; color: var(--text-secondary); min-width: 80px; font-weight: 500; }
.field-row input[type="datetime-local"] {
  flex: 1; padding: 0.55rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.88rem;
  font-family: var(--font-body); background: var(--cream);
}

/* Stepper */
.stepper { display: flex; align-items: center; gap: 0.6rem; }
.step-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--white);
  cursor: pointer; font-size: 1.2rem; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.15s; color: var(--text-secondary);
  box-shadow: 0 2px 0 var(--border-light), var(--shadow-sm);
}
.step-btn:hover { border-color: var(--teal); color: var(--teal); box-shadow: 0 2px 0 var(--teal-light), var(--shadow-sm); }
.step-btn:active { transform: translateY(1px); box-shadow: none; }
.stepper input {
  width: 65px; text-align: center; padding: 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1.15rem; font-weight: 600; font-family: var(--font-body);
  background: var(--cream);
}

/* Duration row */
.duration-row { display: flex; gap: 1rem; }
.duration-col { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.duration-col label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }
.duration-col input {
  width: 60px; text-align: center; padding: 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; font-family: var(--font-body);
  background: var(--cream);
}
.duration-col span { font-size: 0.82rem; color: var(--text-muted); }

/* Section labels */
.section-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }

/* Total & Duration display */
.total-display { font-size: 1.1rem; color: var(--pump-purple); padding: 0.5rem 0; font-weight: 600; }
.duration-display { font-size: 1.1rem; color: var(--sleep-indigo); padding: 0.5rem 0; font-weight: 600; text-align: center; }

/* Note section */
.note-section textarea {
  display: none; width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; resize: none; font-family: var(--font-body);
  background: var(--cream); transition: border-color 0.15s;
}
.note-section textarea:focus { border-color: var(--teal); outline: none; background: var(--white); }
.note-section.expanded textarea { display: block; }
.note-toggle { background: none; border: none; color: var(--teal); cursor: pointer; font-size: 0.88rem; padding: 0; font-family: var(--font-body); font-weight: 500; }

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */

.primary-btn {
  padding: 0.85rem; background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius-md); font-size: 0.95rem; cursor: pointer;
  font-weight: 600; font-family: var(--font-body);
  transition: all 0.2s ease;
  box-shadow: 0 2px 0 var(--teal-dark), var(--shadow-sm);
}
.primary-btn:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 3px 0 #3A5E44, var(--shadow-md); }
.primary-btn:active { transform: translateY(1px); box-shadow: none; }

.secondary-btn {
  padding: 0.65rem; background: var(--white); color: var(--teal);
  border: 1px solid var(--teal); border-radius: var(--radius-full);
  font-size: 0.85rem; cursor: pointer; font-family: var(--font-body);
  font-weight: 500; transition: all 0.15s; width: auto;
}
.secondary-btn:hover { background: var(--teal-light); }

/* ═══════════════════════════════════════════
   Quick Entry
   ═══════════════════════════════════════════ */

.recent-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-bottom: 0.5rem; }
.recent-chip {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; font-size: 0.82rem; font-weight: 500;
  box-shadow: var(--shadow-sm); transition: all 0.15s;
}
.recent-chip:hover { border-color: var(--teal); transform: translateY(-1px); }

.quick-input-row { display: flex; gap: 0.5rem; }
.quick-input-row input {
  flex: 1; padding: 0.7rem 0.85rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.9rem;
  font-family: var(--font-body); background: var(--cream);
}
.quick-input-row input:focus { border-color: var(--teal); outline: none; background: var(--white); }
.quick-input-row button {
  padding: 0.7rem 1.3rem; background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius-md); cursor: pointer; font-weight: 600;
  font-family: var(--font-body);
}

/* Confirm card */
.confirm-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem; background: var(--teal-light); margin-top: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.confirm-card .confirm-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.confirm-card .confirm-actions button {
  padding: 0.55rem 1.1rem; border-radius: var(--radius-sm);
  cursor: pointer; border: none; font-size: 0.88rem;
  font-family: var(--font-body); font-weight: 500;
}
.confirm-card .confirm-actions .btn-save { background: var(--teal); color: #fff; }
.confirm-card .confirm-actions .btn-edit { background: var(--white); border: 1px solid var(--border); color: var(--text-secondary); }

/* ═══════════════════════════════════════════
   History Timeline
   ═══════════════════════════════════════════ */

#history-area { padding-bottom: 0; background: var(--cream); }
#history-list { padding: 0 1rem 1rem; }
.history-day-header {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 1.25rem 0 0.5rem; margin-top: 0;
}
.history-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.75rem; border-radius: var(--radius-lg);
  cursor: pointer; transition: all 0.15s;
  background: var(--white); margin-bottom: 0.6rem;
  box-shadow: var(--shadow-card);
  border-left: 3px solid transparent;
}
.history-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.history-item:active { transform: translateY(0); }
.history-item .hi-time {
  font-size: 0.92rem; color: var(--text-primary); min-width: 58px;
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.history-item .hi-icon {
  min-width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.history-item .hi-detail { flex: 1; font-size: 0.88rem; color: var(--text-primary); font-weight: 400; }

/* Category-colored history items */
.history-item.feed-item,
.history-item:not(.pump-item):not(.diaper-item):not(.sleep-item) { border-left-color: var(--feed-coral); }
.history-item:not(.pump-item):not(.diaper-item):not(.sleep-item) .hi-icon { background: var(--feed-coral-light); color: var(--feed-coral); }
.history-item.pump-item { border-left-color: var(--pump-purple); }
.history-item.pump-item .hi-icon { background: var(--pump-purple-light); color: var(--pump-purple); }
.history-item.diaper-item { border-left-color: var(--diaper-amber); }
.history-item.diaper-item .hi-icon { background: var(--diaper-amber-light); color: var(--diaper-amber); }
.history-item.sleep-item { border-left-color: var(--sleep-indigo); }
.history-item.sleep-item .hi-icon { background: var(--sleep-indigo-light); color: var(--sleep-indigo); }

/* History expanded */
.history-expanded {
  padding: 0.5rem 0.65rem 0.5rem 4.5rem; font-size: 0.82rem;
  color: var(--text-secondary); display: flex; gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.history-expanded .history-edit-btn {
  padding: 0.35rem 0.85rem; font-size: 0.78rem;
  border: 1px solid var(--teal); color: var(--teal);
  background: var(--white); border-radius: var(--radius-full);
  cursor: pointer; font-weight: 500; transition: all 0.15s;
}
.history-expanded .history-edit-btn:hover { background: var(--teal-light); }
.history-expanded .history-delete-btn {
  padding: 0.35rem 0.85rem; font-size: 0.78rem;
  border: 1px solid #FCA5A5; color: #DC2626;
  background: var(--white); border-radius: var(--radius-full);
  cursor: pointer; font-weight: 500; transition: all 0.15s;
}
.history-expanded .history-delete-btn:hover { background: #FEF2F2; }

/* Filter chips */
.filter-chips { padding: 0.75rem 1.25rem; background: var(--white); }
.filter-chips .chip { font-size: 0.78rem; padding: 0.4rem 0.85rem; }

/* Category-colored filter chips when active */
.filter-chips .chip[data-filter="feed"].active { background: var(--feed-coral-light); border-color: var(--feed-coral); color: var(--feed-coral); }
.filter-chips .chip[data-filter="pump"].active { background: var(--pump-purple-light); border-color: var(--pump-purple); color: var(--pump-purple); }
.filter-chips .chip[data-filter="diaper"].active { background: var(--diaper-amber-light); border-color: var(--diaper-amber); color: var(--diaper-amber); }
.filter-chips .chip[data-filter="sleep"].active { background: var(--sleep-indigo-light); border-color: var(--sleep-indigo); color: var(--sleep-indigo); }

/* Method pills (feed form toggle) */
.method-pills { justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.method-pills .chip { flex: 1; text-align: center; font-weight: 600; }

/* Settings panel (history tab) */
.settings-panel {
  padding: 0.75rem 1.25rem; background: var(--white);
  border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem;
}
.settings-panel-row { display: flex; align-items: center; gap: 0.75rem; }
.settings-panel-row label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); min-width: 40px; }
.settings-panel-row select { flex: 1; padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.82rem; }
.settings-panel .danger-btn { color: #DC2626; border-color: #FCA5A5; }
.settings-panel .danger-btn:hover { background: #FEF2F2; }
.icon-btn { background: none; border: none; cursor: pointer; padding: 0.35rem; border-radius: var(--radius-sm); color: var(--text-secondary); transition: all 0.15s; }
.icon-btn:hover { background: var(--cream); color: var(--text-primary); }

.setup-sign-out { margin-top: 2rem; background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; text-decoration: underline; }
.setup-sign-out:hover { color: var(--text-secondary); }

/* Settings tab */
#settings-area { padding: 0 1rem 2rem; }
.settings-section { margin-top: 1.25rem; }
.settings-section h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.5rem; }
.settings-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.settings-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); min-width: 80px; }
.settings-row select { flex: 1; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; background: var(--white); }
.settings-email { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
#settings-area .secondary-btn { width: 100%; }
#settings-area .danger-btn { color: #DC2626; border-color: #FCA5A5; }
#settings-area .danger-btn:hover { background: #FEF2F2; }

/* ═══════════════════════════════════════════
   Wizard
   ═══════════════════════════════════════════ */

.welcome-card.preselected { border-color: var(--teal); background: var(--teal-light); }
.wizard-next-btn { margin-top: 1.25rem; width: 100%; }

#wizard-container {
  flex: 1; display: flex; flex-direction: column;
  background: var(--cream); overflow-y: auto;
}
.wizard-back {
  display: flex; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: pointer;
  color: var(--teal); font-size: 0.88rem; padding: 1rem 1.25rem 0;
  font-family: var(--font-body); font-weight: 500;
  transition: color 0.15s;
}
.wizard-back:hover { color: var(--teal-dark); }
.wizard-back svg { color: var(--teal); }
.wizard-screen {
  max-width: 400px; width: 100%; margin: 0 auto;
  padding: 2rem 1.5rem; text-align: center;
}
.wizard-title { margin-bottom: 0.35rem; }
.wizard-form { text-align: left; }
.wizard-form .welcome-title {
  text-align: center; margin-bottom: 1.5rem;
  font-family: var(--font-body);
}
.wizard-form-fields {
  display: flex; flex-direction: column; gap: 1.1rem;
}

/* ═══════════════════════════════════════════
   Example Chips
   ═══════════════════════════════════════════ */

#example-chips {
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 2rem 1.25rem; align-items: center;
  justify-content: center; flex: 1;
}
#example-chips:empty { display: none; }
.example-chip {
  padding: 0.9rem 1.2rem; border-radius: var(--radius-xl);
  background: var(--white); cursor: pointer; text-align: center;
  max-width: 300px; width: 100%; border: 1.5px solid var(--border);
  transition: all 0.2s; box-shadow: var(--shadow-card);
}
.example-chip:hover {
  border-color: var(--teal); transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.example-chip .chip-text { font-size: 0.92rem; color: var(--text-primary); font-weight: 500; }
.example-chip .chip-sub { font-size: 0.72rem; color: var(--teal); margin-top: 3px; font-weight: 500; }

/* ═══════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════ */

.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: #fff;
  padding: 0.7rem 1.5rem; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500; font-family: var(--font-body);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  z-index: 200; box-shadow: var(--shadow-lg);
}
.toast.visible { opacity: 1; }

/* ═══════════════════════════════════════════
   Baby Setup Screen
   ═══════════════════════════════════════════ */

#baby-setup-screen {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--cream); padding: 0 1rem;
  background-image: radial-gradient(circle at 20% 30%, rgba(196,145,142,0.07) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(164,148,190,0.07) 0%, transparent 40%),
                    radial-gradient(circle at 50% 90%, rgba(130,168,196,0.06) 0%, transparent 40%);
}
.baby-setup-fields {
  display: flex; flex-direction: column; gap: 0.85rem;
  margin-top: 1.5rem; text-align: left;
}
.setup-join-section {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border-light); text-align: center;
}
.setup-join-text {
  color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 0.75rem;
}
.setup-join-section .join-baby-row {
  display: flex; gap: 0.5rem;
}
.setup-join-section .join-baby-row input {
  flex: 1; padding: 0.65rem 0.85rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.92rem;
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: 0.1em;
}
.baby-setup-fields input[type="text"],
.baby-setup-fields input[type="date"] {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.92rem; font-family: var(--font-body);
  background: var(--white); transition: border-color 0.15s;
}
.field-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: -0.4rem; padding-left: 0.25rem;
}
.baby-setup-fields input:focus {
  border-color: var(--teal); outline: none;
  box-shadow: 0 0 0 3px rgba(90,141,110,0.12);
}

/* ═══════════════════════════════════════════
   Baby Selector
   ═══════════════════════════════════════════ */

#baby-selector {
  margin-left: auto; padding: 0.3rem 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.82rem; font-family: var(--font-body);
  background: var(--cream); color: var(--text-primary);
  cursor: pointer; outline: none;
}
#baby-selector:focus { border-color: var(--teal); }

/* ═══════════════════════════════════════════
   Baby Management
   ═══════════════════════════════════════════ */

#sidebar #manage-babies-btn {
  padding: 0.55rem; cursor: pointer;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.82rem;
  color: var(--text-secondary); font-family: var(--font-body);
  transition: all 0.15s;
}
#sidebar #manage-babies-btn:hover { background: var(--cream); color: var(--text-primary); }

#babies-area { background: var(--cream); }
#babies-list { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }

.baby-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.85rem 1rem;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 0.5rem;
}
.baby-card-info {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.baby-card-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.baby-card-dob { font-size: 0.78rem; color: var(--text-muted); }

.baby-role-badge {
  padding: 0.15rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em;
}
.baby-role-badge.role-owner { background: var(--teal-light); color: var(--teal-dark); }
.baby-role-badge.role-caregiver { background: var(--pump-purple-light); color: var(--pump-purple); }

.baby-invite-btn { align-self: flex-start; font-size: 0.78rem; padding: 0.35rem 0.75rem; }

.invite-code-display {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0;
}
.invite-code-text {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 1.5rem; font-weight: 700; color: var(--teal-dark);
  letter-spacing: 0.15em;
}
.invite-copy-btn {
  padding: 0.35rem 0.75rem; border: 1px solid var(--teal);
  border-radius: var(--radius-full); background: var(--white);
  color: var(--teal); font-size: 0.78rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 500;
  transition: all 0.15s;
}
.invite-copy-btn:hover { background: var(--teal-light); }

.babies-actions {
  padding: 0 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.babies-actions hr {
  border: none; border-top: 1px solid var(--border); margin: 0.5rem 0;
}
.babies-actions h3 {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text-primary); font-weight: 600;
}

#add-baby-form {
  display: flex; flex-direction: column; gap: 0.65rem;
}
#add-baby-form input[type="text"],
#add-baby-form input[type="date"] {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; font-family: var(--font-body);
  background: var(--cream);
}
#add-baby-form input:focus { border-color: var(--teal); outline: none; }

.join-baby-row {
  display: flex; gap: 0.5rem;
}
.join-baby-row input {
  flex: 1; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; font-family: var(--font-body);
  background: var(--cream); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
}
.join-baby-row input:focus { border-color: var(--teal); outline: none; }
.join-baby-row .primary-btn { padding: 0.65rem 1.1rem; font-size: 0.88rem; }

/* Reset data button */
.reset-data-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.72rem; cursor: pointer; font-family: var(--font-body);
}
.reset-data-btn:hover { color: #DC2626; }

/* ═══════════════════════════════════════════
   Mobile Responsive
   ═══════════════════════════════════════════ */

#mobile-header { display: none; }
#sidebar-overlay { display: none; }

@media (max-width: 768px) {
  #sidebar {
    position: fixed; left: -270px; top: 0; bottom: 0; z-index: 50;
    width: 260px; transition: left 0.25s ease;
    box-shadow: none;
  }
  #sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,0.08); }
  #sidebar-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.25); z-index: 49;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
    backdrop-filter: blur(2px);
  }
  #sidebar-overlay.visible { opacity: 1; pointer-events: auto; }
  #mobile-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light);
    background: var(--white);
  }
  #menu-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-secondary); padding: 0.2rem;
    display: flex; align-items: center;
  }
  #mobile-title {
    font-family: var(--font-body); font-size: 1.1rem;
    color: var(--teal-dark); font-weight: 400;
  }

  .tab-content { padding-bottom: 0; }
  #chat-area #messages { padding-bottom: 0; }
  #chat-form { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 390px) {
  .mode-toggle { padding: 0.5rem; }
  .mode-content { padding: 0.75rem; }
  .duration-col input { width: 50px; }
  .stepper input { width: 55px; }
  .msg { max-width: 90%; }
  .tab-header { padding: 0.75rem 1rem; }
  .tab-header h2 { font-size: 1.15rem; }
  #tab-bar .tab span { font-size: 0.58rem; }
  .welcome-title { font-size: 1.85rem; }
  .timer-split { flex-direction: row; }
  .timer-side { min-width: 0; }
}

/* ═══════════════════════════════════════════
   Timer Screens
   ═══════════════════════════════════════════ */

.timer-screen {
  max-width: 430px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh;
  padding: 2rem 1rem;
}

.timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.timer-single { text-align: center; }

.timer-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-value {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1;
}

.timer-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.timer-sep {
  font-family: var(--font-body);
  font-size: 2.5rem;
  color: var(--text-secondary);
  line-height: 1;
  padding-bottom: 1rem;
}

.timer-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.timer-toggle-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px dashed var(--teal);
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 0 var(--border), var(--shadow-card);
}

.timer-toggle-btn:hover { background: var(--teal-light); }

.timer-toggle-btn.running {
  border-color: #e74c3c;
  color: #e74c3c;
  border-style: solid;
  background: #fef0ef;
}

.timer-toggle-btn.running:hover { background: #fde8e6; }

/* Split timer (L/R) */
.timer-split {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.timer-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--white);
  min-width: 0;
}

.timer-side.active {
  border-color: var(--teal);
  background: var(--teal-light);
}

.timer-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.timer-side-display {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.timer-side-btn {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 2px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.timer-side-btn:hover { background: var(--teal-light); }

.timer-side-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.timer-side-ml {
  margin-top: 0.25rem;
  width: 100%;
}

.timer-side-ml .stepper {
  justify-content: center;
  gap: 0.25rem;
}

.timer-side-ml .stepper input {
  width: 60px;
  text-align: center;
}

/* Active Timer Pill */
.timer-pill {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--sleep-indigo-light);
  border-bottom: 1.5px solid var(--sleep-indigo);
  cursor: pointer;
  font-family: var(--font-body);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.timer-pill.visible {
  display: flex;
}

body.timer-pill-active .tab-content,
body.timer-pill-active #welcome-screen,
body.timer-pill-active #chat-screen {
  padding-top: 2.25rem;
}

.timer-pill-icon {
  font-size: 1.1rem;
}

.timer-pill-text {
  flex: 1;
  color: var(--sleep-indigo);
  font-weight: 600;
  font-size: 0.85rem;
}

.timer-pill-discard {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--text-muted);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Color variants for pump/breast timers */
.timer-pill.pump-active {
  background: var(--pump-purple-light);
  border-bottom-color: var(--pump-purple);
}
.timer-pill.pump-active .timer-pill-text {
  color: var(--pump-purple);
}

.timer-pill.breast-active {
  background: var(--feed-coral-light);
  border-bottom-color: var(--feed-coral);
}
.timer-pill.breast-active .timer-pill-text {
  color: var(--feed-coral);
}

/* ═══════════════════════════════════════════
   Last Side Hint (breast feed)
   ═══════════════════════════════════════════ */

.last-side-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0.35rem 0 0.75rem;
  font-weight: 300;
}

.last-side-hint strong {
  font-weight: 500;
  color: var(--text-secondary);
}

.last-side-hint .hint-highlight {
  color: var(--feed-coral);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   Dashboard Summary Cards
   ═══════════════════════════════════════════ */

.dashboard-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0.5rem 1rem 0.25rem;
  font-family: var(--font-body);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
}

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  min-height: 3.2rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-card);
}

.dashboard-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.dashboard-card:active {
  transform: translateY(0);
}

.dc-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.dashboard-feed .dc-icon { background: var(--feed-coral-light); color: var(--feed-coral); }
.dashboard-pump .dc-icon { background: var(--pump-purple-light); color: var(--pump-purple); }
.dashboard-diaper .dc-icon { background: var(--diaper-amber-light); color: var(--diaper-amber); }
.dashboard-sleep .dc-icon { background: var(--sleep-indigo-light); color: var(--sleep-indigo); }

.dashboard-feed:hover { border-color: var(--feed-coral); }
.dashboard-pump:hover { border-color: var(--pump-purple); }
.dashboard-diaper:hover { border-color: var(--diaper-amber); }
.dashboard-sleep:hover { border-color: var(--sleep-indigo); }

.dc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dc-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dc-value {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-ago {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
  white-space: nowrap;
  flex-shrink: 0;
}
