/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --cream:     #EDE8DF;
  --cream-dark:#D8D2C8;
  --navy:      #2D3A5C;
  --navy-light:#3D4F7C;
  --terra:     #E8654A;
  --terra-dark:#C94F36;
  --stone:     #C4BEB4;
  --stone-dark:#9A9488;
  --ink:       #1A1A2E;
  --white:     #FDFCFA;

  --text-primary:   #1A1A2E;
  --text-secondary: #5A5650;
  --text-muted:     #9A9488;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(26,26,46,.08);
  --shadow:    0 4px 16px rgba(26,26,46,.10);
  --shadow-lg: 0 8px 32px rgba(26,26,46,.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-height: 68px;
  --header-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* ─── VIEWS ──────────────────────────────────────── */
.view {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(0);
}
.view.active { display: flex; }
.view.slide-in { animation: slideIn .28s cubic-bezier(.4,0,.2,1) forwards; }
.view.slide-out { animation: slideOut .28s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes slideIn  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOut { from { transform: translateX(0); }   to { transform: translateX(-30%); opacity: .5; } }

/* ─── SPLASH ─────────────────────────────────────── */
.splash-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px calc(48px + var(--safe-bottom));
  gap: 0;
}
.logo-mark {
  margin-bottom: 16px;
  animation: logoIn .6s cubic-bezier(.34,1.56,.64,1) both;
}
.logo-mark.small { margin-bottom: 12px; }
@keyframes logoIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.logo-text {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 4px;
}
.logo-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.splash-copy { text-align: center; margin-bottom: 48px; }
.headline {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.subline {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary {
  width: 100%;
  background: var(--terra);
  color: white;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: 50px;
  transition: background .15s, transform .1s;
  letter-spacing: -.1px;
}
.btn-primary:hover  { background: var(--terra-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled {
  background: var(--stone);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--cream-dark);
  transition: border-color .15s;
  margin-top: 10px;
}
.btn-secondary:hover { border-color: var(--stone-dark); }

.btn-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--navy);
  transition: background .15s;
}
.btn-back:hover { background: rgba(45,58,92,.08); }

.btn-edit {
  font-size: 14px;
  color: var(--terra);
  font-weight: 500;
  padding: 8px 12px;
}

/* ─── LOGIN ──────────────────────────────────────── */
.login-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px calc(48px + var(--safe-bottom));
  text-align: center;
  gap: 0;
}
.login-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}
.login-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.input-group { width: 100%; margin-bottom: 14px; }
.email-input {
  width: 100%;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s;
}
.email-input:focus { border-color: var(--navy); }
.email-input::placeholder { color: var(--stone-dark); }

.login-feedback {
  font-size: 14px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.login-feedback.error { background: rgba(232,101,74,.1); color: var(--terra-dark); }
.login-feedback.success { background: rgba(45,58,92,.08); color: var(--navy); }
.login-feedback.hidden { display: none; }

.login-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.sent-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

/* ─── APP HEADER ─────────────────────────────────── */
.app-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(196,190,180,.4);
  flex-shrink: 0;
  background: var(--cream);
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
}
.header-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.3px;
}

/* ─── HOME MAIN ──────────────────────────────────── */
.home-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px 20px calc(var(--nav-height) + var(--safe-bottom) + 80px);
}

.greeting {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}
.greeting-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ─── EMPTY STATE ────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-illustration { margin: 8px 0 20px; opacity: .7; }
.empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.empty-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ─── ASK BAR ────────────────────────────────────── */
.ask-bar { margin-bottom: 28px; }
.ask-btn {
  width: 100%;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .15s, transform .1s;
}
.ask-btn:hover  { background: var(--navy-light); }
.ask-btn:active { transform: scale(.98); }
.ask-mic {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ask-mic svg path, .ask-mic svg rect, .ask-mic svg line { fill: white; stroke: white; }
.ask-placeholder {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  font-family: var(--font-display);
  font-style: italic;
}

/* ─── OBJECTS LIST ───────────────────────────────── */
.objects-state {}
.objects-list { display: flex; flex-direction: column; gap: 12px; }
.object-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
  border: 1px solid rgba(196,190,180,.3);
}
.object-card:hover  { box-shadow: var(--shadow); }
.object-card:active { transform: scale(.99); }
.object-thumb {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.object-thumb img { width: 100%; height: 100%; object-fit: cover; }
.object-info { flex: 1; min-width: 0; }
.object-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.object-meta { font-size: 13px; color: var(--text-muted); }
.object-arrow { color: var(--stone); font-size: 18px; flex-shrink: 0; }

/* ─── FAB ────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  right: 20px;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--terra);
  box-shadow: 0 4px 20px rgba(232,101,74,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.fab:hover  { background: var(--terra-dark); box-shadow: 0 6px 24px rgba(232,101,74,.5); }
.fab:active { transform: scale(.94); }

/* ─── BOTTOM NAV ─────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--white);
  border-top: 1px solid rgba(196,190,180,.5);
  display: flex;
  align-items: center;
  z-index: 99;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--stone-dark);
  font-size: 11px;
  font-weight: 400;
  transition: color .15s;
}
.nav-item.active { color: var(--navy); font-weight: 500; }
.nav-item span { line-height: 1; }

/* ─── FLOW HEADER ────────────────────────────────── */
.flow-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.flow-step-label {
  font-size: 13px;
  color: var(--text-muted);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ─── ADD FLOW ───────────────────────────────────── */
.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.flow-step.hidden { display: none; }

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 24px calc(32px + var(--safe-bottom));
  overflow-y: auto;
}
.step-content.centered { align-items: center; justify-content: center; text-align: center; }

.step-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}
.step-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}
.mt-auto { margin-top: auto; }

/* ─── PHOTO GRID ─────────────────────────────────── */
.photo-grid { margin-bottom: 24px; }
.photo-slot.primary {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background: white;
  border: 2px dashed var(--cream-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 10px;
}
.photo-slot.primary:hover { border-color: var(--navy); background: rgba(45,58,92,.03); }
.photo-slot-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--stone-dark);
}
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid transparent;
}

/* ─── VOICE ──────────────────────────────────────── */
.voice-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.voice-vis {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.voice-vis.small { height: 48px; }
.voice-bars { display: flex; align-items: center; gap: 5px; }
.vbar {
  width: 4px;
  height: 8px;
  background: var(--navy);
  border-radius: 2px;
  opacity: .2;
  transition: height .1s, opacity .1s;
}
.recording .vbar {
  opacity: .7;
  animation: barPulse 1.2s ease-in-out infinite;
}
.recording .vbar:nth-child(1) { animation-delay: 0s; }
.recording .vbar:nth-child(2) { animation-delay: .1s; }
.recording .vbar:nth-child(3) { animation-delay: .2s; }
.recording .vbar:nth-child(4) { animation-delay: .3s; }
.recording .vbar:nth-child(5) { animation-delay: .4s; }
.recording .vbar:nth-child(6) { animation-delay: .5s; }
.recording .vbar:nth-child(7) { animation-delay: .6s; }
@keyframes barPulse {
  0%, 100% { height: 8px; }
  50% { height: 36px; }
}

.transcript-box {
  width: 100%;
  min-height: 100px;
  background: white;
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1.5px solid var(--cream-dark);
}
.transcript-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
}
.transcript-text.placeholder { color: var(--stone-dark); font-style: italic; }

.mic-button {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(45,58,92,.3);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.mic-button:hover  { background: var(--navy-light); }
.mic-button:active { transform: scale(.95); }
.mic-button.recording {
  background: var(--terra);
  box-shadow: 0 4px 20px rgba(232,101,74,.4);
  animation: micPulse 1.5s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232,101,74,.4); }
  50%       { box-shadow: 0 4px 28px rgba(232,101,74,.7); }
}
.mic-hint { font-size: 13px; color: var(--text-muted); }

/* ─── SAVING / DONE ──────────────────────────────── */
.saving-animation {
  width: 72px; height: 72px;
  margin-bottom: 24px;
}
.saving-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--navy);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done-mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(45,58,92,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ─── ASK VIEW ───────────────────────────────────── */
.ask-view-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 24px calc(32px + var(--safe-bottom));
  overflow-y: auto;
}
.ask-view-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  line-height: 1.2;
}
.ask-voice-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.answer-area { display: flex; flex-direction: column; gap: 16px; }
.answer-area.hidden { display: none; }
.answer-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid rgba(196,190,180,.4);
  box-shadow: var(--shadow-sm);
}
.answer-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}
.answer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.thumb-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all .15s;
}
.thumb-btn:hover { border-color: var(--navy); color: var(--navy); }
.thumb-btn.thumb-up:hover  { border-color: #4CAF50; color: #4CAF50; }
.thumb-btn.thumb-down:hover { border-color: var(--terra); color: var(--terra); }

.answer-more-btn {
  flex: 1;
  background: rgba(45,58,92,.06);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 50px;
  transition: background .15s;
  max-width: 160px;
}
.answer-more-btn:hover { background: rgba(45,58,92,.12); }

/* ─── OBJECT DETAIL ──────────────────────────────── */
.object-detail {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px calc(32px + var(--safe-bottom));
}
.detail-photos {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -20px 24px;
  padding: 0 20px;
  scrollbar-width: none;
}
.detail-photos::-webkit-scrollbar { display: none; }
.detail-photo {
  height: 220px;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
  width: calc(100vw - 48px);
}
.detail-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.detail-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.detail-description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
}

/* ─── UTILITY ────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── PROFILE ────────────────────────────────────── */
.profile-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px calc(var(--nav-height) + var(--safe-bottom) + 24px);
  display: flex;
  flex-direction: column;
}

.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  gap: 8px;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.profile-name-display {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.profile-email-display {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-section-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 4px;
}

.profile-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(196,190,180,.3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.profile-field {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 12px;
}
.profile-label {
  font-size: 13px;
  color: var(--text-muted);
  width: 56px;
  flex-shrink: 0;
}
.profile-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font-body);
  text-align: right;
}
.profile-input::placeholder { color: var(--stone); }
.profile-input:disabled { color: var(--text-muted); }

.profile-divider {
  height: 1px;
  background: rgba(196,190,180,.3);
  margin: 0 18px;
}

.profile-save-btn { margin-top: 4px; }

.profile-feedback {
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  color: var(--navy);
  padding: 8px;
}
.profile-feedback.hidden { display: none; }

.profile-signout-btn {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--terra);
  font-family: var(--font-body);
  transition: background .15s;
}
.profile-signout-btn:hover { background: rgba(232,101,74,.05); }

.profile-version {
  text-align: center;
  font-size: 12px;
  color: var(--stone);
  margin-top: 32px;
  font-style: italic;
}

/* ─── NAV CENTER ITEM ────────────────────────────── */
.nav-item-center svg { width: 28px; height: 28px; }
.nav-item-center span { font-size: 12px; font-weight: 600; }

/* ─── OTP INPUT ──────────────────────────────────── */
.otp-input {
  text-align: center;
  font-size: 32px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--navy);
  padding: 16px 18px;
}
.otp-input::placeholder {
  letter-spacing: 8px;
  font-size: 24px;
  color: var(--stone);
}

/* ─── PROFILE FIXES ──────────────────────────────── */
.profile-signout-btn {
  min-height: 56px;
  padding: 16px 18px;
}

.otp-input {
  font-size: 28px;
  letter-spacing: .25em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}

.profile-card:last-of-type {
  margin-bottom: 8px;
  overflow: visible;
}

/* Ensure profile main scrolls fully past nav */
.profile-main {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 48px);
}

/* ─── MOTHER VELGER ──────────────────────────────── */
.context-bar {
  padding: 12px 20px 0;
  flex-shrink: 0;
}
.context-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 50px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .15s;
  max-width: 100%;
}
.context-picker:hover { border-color: var(--navy); }
.context-picker-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.context-picker-chevron { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }

/* CONTEXT SHEET */
.context-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,46,.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
}
.context-sheet-overlay.visible { display: flex; animation: fadeIn .2s ease; }
.context-sheet {
  width: 100%;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 12px 0 calc(32px + var(--safe-bottom));
  max-height: 70vh;
  overflow-y: auto;
}
.context-sheet-handle {
  width: 36px; height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.context-sheet-title {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 20px 12px;
}
.context-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background .15s;
}
.context-option:hover { background: rgba(45,58,92,.04); }
.context-option.active { background: rgba(45,58,92,.06); }
.context-option-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.context-option-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.context-option-count { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.context-option-check { margin-left: auto; color: var(--terra); font-size: 18px; }
.context-add-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  color: var(--terra);
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid var(--cream-dark);
  margin-top: 8px;
  transition: background .15s;
}
.context-add-btn:hover { background: rgba(232,101,74,.04); }

/* ─── DINE TING ──────────────────────────────────── */
.things-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px calc(var(--nav-height) + var(--safe-bottom) + 80px);
}
.things-section-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: 24px;
  padding-left: 2px;
}
.things-section-label:first-child { margin-top: 0; }

.mother-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(196,190,180,.3);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
}
.mother-card:hover { box-shadow: var(--shadow); }
.mother-card:active { transform: scale(.99); }
.mother-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.mother-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  overflow: hidden;
}
.mother-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mother-info { flex: 1; min-width: 0; }
.mother-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.mother-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mother-chevron { color: var(--stone); font-size: 16px; }

.mother-objects-preview {
  padding: 0 16px 14px 74px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.object-chip {
  background: var(--cream);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ─── ADD MOTHER FLOW ────────────────────────────── */
.mother-name-input {
  width: 100%;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  outline: none;
  transition: border-color .2s;
  margin-bottom: 16px;
}
.mother-name-input:focus { border-color: var(--navy); }
.mother-name-input::placeholder { color: var(--stone); font-weight: 400; }

.emoji-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.emoji-option {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: white;
  border: 1.5px solid var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all .15s;
}
.emoji-option.selected {
  border-color: var(--navy);
  background: rgba(45,58,92,.06);
}

/* ─── WIZARD IMPROVEMENTS ────────────────────────── */
.photo-count-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}
.voice-per-photo {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mother-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: border-color .15s;
}
.mother-select-row:hover { border-color: var(--navy); }
.mother-select-label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.mother-select-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
