@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── RESET & VARS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fdf8f4;
  --surface: #fff;
  --surface2: #fef6f0;
  --surface3: #f9f0e8;
  --border: #f0e0d4;
  --border2: #e8d0c0;
  --text: #3d2f2a;
  --text2: #7a6860;
  --text3: #a89890;
  --pink: #e8a0b0;
  --pink-light: #fce8ee;
  --pink-dark: #c07888;
  --lavender: #b8a0d8;
  --sage: #a8c8a0;
  --sage-light: #e8f4e6;
  --peach: #f0c0a0;
  --cream: #f8e8c8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(60,30,20,0.06);
  --shadow-lg: 0 6px 24px rgba(60,30,20,0.1);
  --tab-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── LAYOUT ── */
#content {
  flex: 1;
  padding: 16px 16px calc(var(--tab-h) + var(--safe-bottom) + 16px);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ── TAB BAR ── */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(60,30,20,0.04);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text3);
  transition: color 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.tab.active { color: var(--pink-dark); }
.tab-icon { font-size: 22px; line-height: 1; }
.tab-label { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }

/* ── TYPOGRAPHY ── */
h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--text);
}

/* ── HOME PAGE ── */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 8px 0;
}

.home-title {
  font-size: 32px;
}

.home-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.streak-flame { color: var(--peach); font-size: 16px; }
.streak-count { font-size: 16px; font-weight: 700; }

.streak-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 2px;
  font-size: 14px;
}
.streak-badge { opacity: 0.2; }
.streak-badge.earned { opacity: 1; color: var(--peach); }
.streak-best { margin-left: auto; font-size: 11px; color: var(--text3); }

.months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.month-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.month-card:active { transform: scale(0.96); }
.month-card.current { box-shadow: var(--shadow-lg), 0 0 0 2px var(--pink-dark); }
.month-card.past { opacity: 0.7; }

.month-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  pointer-events: none;
}

.month-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.month-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--surface);
  color: var(--pink-dark);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── CALENDAR PAGE ── */
.page-calendar {
  position: relative;
  padding-bottom: 60px;
}

.cal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}

.cal-nav-btn:active { background: var(--surface3); }

.cal-month-title {
  font-size: 24px;
  cursor: pointer;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.cal-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  padding: 4px 0;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s;
  position: relative;
}

.cal-day:active { transform: scale(0.93); }
.cal-day.empty { background: transparent; border: none; pointer-events: none; }
.cal-day.today { border-color: var(--pink-dark); box-shadow: 0 0 0 2px var(--pink-light); }
.cal-day.has-mood { border-color: transparent; color: #fff; }
.cal-day.has-mood .cal-day-num { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }

.cal-day-num { font-size: 13px; font-weight: 600; }

.cal-dots {
  display: flex;
  gap: 3px;
  position: absolute;
  bottom: 4px;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.event-dot { background: var(--lavender); }
.task-dot { background: var(--peach); }

/* Mood picker */
.mood-picker-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(60,30,20,0.18), 0 1px 6px rgba(60,30,20,0.10);
}

.mood-picker-label {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 10px;
  font-weight: 500;
}

.mood-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.mood-btn {
  padding: 10px 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: clamp(8px, 2.2vw, 10px);
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  word-break: break-word;
}

.mood-btn-sub {
  font-size: 1em;
  font-weight: 500;
  opacity: 0.9;
}

.mood-btn:active { transform: scale(0.95); }
.mood-btn.active { border-color: var(--text); box-shadow: var(--shadow-lg); }

.mood-legend {
  display: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text3);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ── MIGRATION PANEL ── */
.migration-panel {
  background: #ede8f8;
  border: 1px solid var(--lavender);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.migration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #7060a8;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.migration-count {
  background: var(--lavender);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
}

.migration-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #d8d0f0;
}

.migration-task:last-child { border-bottom: none; }

.migration-task-text {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}

.migration-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.migration-btn:active { opacity: 0.7; }

.migration-btn-migrate {
  background: var(--sage-light);
  color: #507048;
}

.migration-btn-cancel {
  background: #fce8e8;
  color: #a06060;
}

/* ── TRANSFERRED TASKS BLOCK ── */
.transferred-group {
  background: #f5f2fc;
  border: 1px solid var(--lavender);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  margin-bottom: 16px;
}

.transferred-label {
  color: #7060a8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 0 8px;
  margin-bottom: 0;
}

.task-migrate-count {
  font-size: 11px;
  font-weight: 700;
  color: #7060a8;
  background: #e0d8f8;
  border-radius: 10px;
  padding: 1px 6px;
  flex-shrink: 0;
  margin-right: 2px;
}

/* ── TASKS PAGE ── */
.tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.tasks-header-center {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tasks-header h2 { font-size: 28px; }

.tasks-count {
  font-size: 14px;
  color: var(--text3);
  font-weight: 500;
}

.task-add {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.task-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.task-input:focus { border-color: var(--pink); }

/* Date label wrapper — shows calendar icon, updates to date chip after selection */
.task-date-label {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden; /* clip input to label bounds on iOS */
}

.task-date-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  /* no z-index: date input must not paint above sibling elements */
}

.task-date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text3);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}

.task-date-display.has-date {
  color: var(--pink-dark);
  border-color: var(--pink);
  font-weight: 600;
  background: color-mix(in srgb, var(--pink) 10%, var(--surface));
}

.task-add-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--pink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
  position: relative; /* iOS: ensure button is above date input in stacking */
  z-index: 5;
  touch-action: manipulation; /* iOS: prevent double-tap zoom delay */
}

.task-add-btn:active { background: var(--pink-dark); }

.task-group { margin-bottom: 20px; }

.task-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 8px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s;
}

.task-row.done { opacity: 0.5; }
.task-row.done .task-text { text-decoration: line-through; }

.task-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border2);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: inherit;
}

.task-check.checked {
  background: var(--sage);
  border-color: var(--sage);
}

.task-text { flex: 1; font-size: 14px; }

.task-date {
  font-size: 11px;
  color: var(--text3);
  background: var(--surface3);
  padding: 2px 8px;
  border-radius: 6px;
}

.task-delete {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.4;
  transition: opacity 0.15s;
  font-family: inherit;
}

.task-delete:hover { opacity: 1; color: #d08080; }

.task-edit {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.4;
  transition: opacity 0.15s;
  font-family: inherit;
}

.task-edit:hover { opacity: 1; color: var(--pink-dark); }

.event-editable { cursor: pointer; }
.event-editable:hover { color: var(--pink-dark); }

/* ── TYPE CHOICE MODAL ── */
.type-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(61,47,42,0.4);
  display: none;
  align-items: flex-end;
}

.type-choice-overlay.active { display: flex; }

.type-choice-sheet {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.type-choice-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 16px;
}

.type-choice-buttons {
  display: flex;
  gap: 12px;
}

.type-choice-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.type-choice-btn:active { background: var(--surface3); }

.type-choice-btn-event {
  border-color: var(--pink);
  color: var(--pink-dark);
}

.type-choice-icon {
  font-size: 22px;
  line-height: 1;
}

/* ── EVENT MODAL ── */
.event-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(61,47,42,0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.event-modal-overlay.active { display: flex; }

.event-modal {
  width: 100%;
  max-width: 480px;
  /* На iOS клавиатура сдвигает viewport — оставляем запас */
  max-height: 80vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0 0 calc(env(safe-area-inset-bottom, 16px) + 16px);
}

.event-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}

.event-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.event-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  font-family: inherit;
}

.event-modal-form {
  padding: 20px;
}

/* ── COSMETICS PAGE ── */
.cosm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cosm-header h2 { font-size: 28px; }

.cosm-add-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.cosm-add-btn:active { background: var(--pink-dark); }

.cosm-group { margin-bottom: 20px; }

.cosm-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.expired-label { background: #f8e0e0; color: #a06060; }
.soon-label { background: #f8ecd8; color: #907040; }
.ok-label { background: var(--sage-light); color: #507048; }

.cosm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}

.cosm-row:active { transform: scale(0.98); }

.cosm-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cosm-row.ok .cosm-indicator { background: var(--sage); }
.cosm-row.soon .cosm-indicator { background: #d8a840; }
.cosm-row.expired .cosm-indicator { background: #c07070; }

.cosm-info { flex: 1; }
.cosm-name { font-size: 14px; font-weight: 600; }
.cosm-brand { font-size: 11px; color: var(--text3); }
.cosm-status { font-size: 12px; color: var(--text2); white-space: nowrap; }

/* Cosmetic detail */
.cosm-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 0;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.cosm-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.cosm-detail-row:last-child { border-bottom: none; }
.cosm-detail-row.expired { color: #a06060; }
.cosm-detail-row.soon { color: #907040; }
.cosm-detail-row.ok { color: #507048; }

.cosm-detail-label {
  color: var(--text2);
  font-weight: 500;
}

.cosm-delete-btn {
  width: 100%;
  padding: 14px;
  background: none;
  border: 2px solid #d8a0a0;
  border-radius: var(--radius-sm);
  color: #a06060;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.cosm-delete-btn:active { background: #f8e0e0; }

/* ── SCANNER ── */
.cosm-scan-btn {
  width: 100%;
  padding: 14px;
  background: var(--lavender);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
}
.cosm-scan-btn:active { opacity: 0.85; }
.scanner-container {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
#scanner-view { width: 100%; }
.scanner-close-btn {
  width: 100%;
  padding: 10px;
  background: var(--surface3);
  border: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--text2);
  cursor: pointer;
}
.scanner-status {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.scanner-status.loading { background: var(--cream); color: var(--text); }
.scanner-status.success { background: var(--sage-light); color: #3a6a3a; }
.scanner-status.warning { background: #fef3cd; color: #856404; }
.scanner-status.error { background: #f8e0e0; color: #a06060; }

/* ── FORMS ── */
.form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.form-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  resize: none;
  box-sizing: border-box;
}

.form-input:focus { border-color: var(--pink); }

/* Убираем красную iOS-валидацию */
.form-input:required { box-shadow: none; -webkit-box-shadow: none; }
.form-input:invalid { box-shadow: none; -webkit-box-shadow: none; }

.form-expire-preview {
  font-size: 13px;
  color: var(--text2);
  padding: 12px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.form-submit:active { background: var(--pink-dark); }

.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text2);
  padding: 4px 8px;
  font-family: inherit;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
  font-size: 14px;
  font-style: italic;
}

/* ── DAY PAGE ── */
.page-day { padding-bottom: 16px; }

.day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.day-header h2 {
  font-size: 26px;
  line-height: 1.1;
}

.day-header-info { flex: 1; }

.day-weekday {
  font-size: 13px;
  color: var(--text3);
  margin-top: 2px;
}

.day-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.day-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.day-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.day-section-header .day-section-title { margin-bottom: 0; }

.day-add-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--pink);
  color: #fff;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.day-add-btn:active { background: var(--pink-dark); }

.day-event-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.day-event-row:last-child { border-bottom: none; }

.day-event-color {
  width: 6px;
  border-radius: 3px;
  min-height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
}

.day-event-info { flex: 1; }
.day-event-title { font-size: 14px; font-weight: 600; }
.day-event-time { font-size: 12px; color: var(--text3); margin-top: 2px; }
.day-event-desc { font-size: 12px; color: var(--text2); margin-top: 4px; }

.day-empty {
  text-align: center;
  padding: 16px;
  color: var(--text3);
  font-size: 13px;
  font-style: italic;
}
.day-tasks-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.day-tasks-undated-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 0 6px;
}

/* Color picker */
.color-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-option {
  position: relative;
  cursor: pointer;
}

.color-option input { position: absolute; opacity: 0; pointer-events: none; }

.color-dot {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.color-option input:checked + .color-dot {
  border-color: var(--text);
  transform: scale(1.15);
}

/* ── YEAR IN PIXELS ── */
.page-pixels { padding-bottom: 16px; }

.pixels-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pixels-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
}

.pixels-stat.total {
  margin-left: auto;
  background: var(--surface2);
  font-weight: 600;
}

.pixels-stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pixels-stat-label { color: var(--text2); }
.pixels-stat-count { font-weight: 700; }

.pixels-grid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.pixels-header-row, .pixels-row {
  display: flex;
  gap: 2px;
}

.pixels-corner {
  width: 24px;
  flex-shrink: 0;
}

.pixels-month-label {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text3);
  padding: 2px 0;
}

.pixels-day-label {
  width: 24px;
  flex-shrink: 0;
  text-align: right;
  font-size: 9px;
  color: var(--text3);
  padding-right: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pixel {
  width: 28px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: transform 0.1s;
}

.pixel:not(.empty):hover { transform: scale(1.3); z-index: 1; }
.pixel.empty { background: transparent !important; }

.pixel-today {
  outline: 2px solid var(--pink-dark);
  outline-offset: 1px;
}

/* Pixels link on home page */
.home-pixels-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.15s;
  text-decoration: none;
}

.home-pixels-link:active { transform: scale(0.98); background: var(--surface2); }

/* ── COLLECTIONS ── */
.page-collections { padding-bottom: 40px; }

.coll-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.coll-header h2 { font-size: 28px; }

.coll-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.coll-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.coll-icon { font-size: 18px; }

.coll-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  flex: 1;
}

.coll-done-count {
  font-size: 12px;
  color: var(--text3);
  background: var(--surface3);
  border-radius: 10px;
  padding: 2px 8px;
}

.coll-items { list-style: none; margin-bottom: 10px; }

.coll-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.coll-item:last-child { border-bottom: none; }

.coll-item.done .coll-item-text {
  text-decoration: line-through;
  color: var(--text3);
}

.coll-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage);
  transition: all 0.15s;
}

.coll-check.checked {
  background: var(--sage-light);
  border-color: var(--sage);
}

.coll-item-text { flex: 1; font-size: 14px; }

.coll-done-label {
  font-size: 10px;
  color: var(--sage);
  font-weight: 600;
  white-space: nowrap;
}

.coll-empty {
  font-size: 13px;
  color: var(--text3);
  padding: 4px 0;
  font-style: italic;
}

.coll-delete {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.5;
  flex-shrink: 0;
}

.coll-delete:hover { opacity: 1; color: #d08080; }

.coll-add {
  display: flex;
  gap: 8px;
}

.coll-input {
  flex: 1;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface2);
  color: var(--text);
  outline: none;
}

.coll-input:focus { border-color: var(--pink); }

.coll-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── FUTURE LOG ── */
.page-future { padding-bottom: 40px; }

.future-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.future-header h2 { font-size: 28px; }

.future-back {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text2);
  cursor: pointer;
  padding: 0 4px;
}

.future-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.future-month-current {
  border-color: var(--pink);
  box-shadow: var(--shadow), 0 0 0 1px var(--pink-light);
}

.future-month-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.future-month-now {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  background: var(--pink-light);
  color: var(--pink-dark);
  border-radius: 10px;
  padding: 2px 8px;
  font-weight: 600;
}

.future-items {
  list-style: none;
  margin-bottom: 12px;
}

.future-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.future-item:last-child { border-bottom: none; }

.future-item-dot {
  color: var(--peach);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.future-item-text { flex: 1; font-size: 14px; }

.future-empty {
  font-size: 13px;
  color: var(--text3);
  padding: 4px 0;
  font-style: italic;
}

.future-delete {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.6;
  flex-shrink: 0;
}

.future-delete:hover { opacity: 1; color: #d08080; }

.future-add {
  display: flex;
  gap: 8px;
}

.future-input {
  flex: 1;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface2);
  color: var(--text);
  outline: none;
}

.future-input:focus { border-color: var(--pink); }

.future-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── HOME NAV SECTION ── */
.home-nav-section { margin-top: 20px; }

.home-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.home-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.15s;
  text-align: center;
}

.home-nav-item:active { transform: scale(0.97); background: var(--surface2); }

.home-nav-icon { font-size: 20px; color: var(--pink-dark); }

.home-sync-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-sync-btn {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.home-version {
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
  opacity: 0.6;
}

.home-sync-btn:active { background: var(--surface2); }
.home-sync-btn.secondary { color: var(--text3); font-size: 12px; }

/* Month card cover change button */
.month-cover-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.month-card:hover .month-cover-btn,
.month-card:active .month-cover-btn { opacity: 1; }

/* Make month-card-name clickable without the cover btn intercepting */
.month-card { position: relative; }
.month-card-name { cursor: pointer; }

/* ── COVER PICKER ── */
.page-cover-picker { padding-bottom: 40px; }

.cover-picker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cover-picker-header h2 { font-size: 24px; }

.cover-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cover-option {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  aspect-ratio: 3/4;
}

.cover-option.selected { border-color: var(--pink-dark); }
.cover-option:active { transform: scale(0.97); }

.cover-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-option-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.cover-option-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-dark);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── HABIT TRACKER ── */
.page-habits { padding-bottom: 40px; }

.habits-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.habits-header h2 { font-size: 22px; flex: 1; text-align: center; }

.habits-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.habits-scroll-inner {
  width: max-content;
}

.habit-day-labels {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.habit-name-col-empty {
  width: 120px;
  flex-shrink: 0;
}

.habits-list {
  margin-bottom: 0;
}

.habit-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.habit-name-col {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

.habit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.habit-name {
  flex: 1;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.habit-delete {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  flex-shrink: 0;
}

.habit-cells {
  display: flex;
  gap: 3px;
}

.habit-day-num {
  width: 20px;
  text-align: center;
  font-size: 9px;
  color: var(--text3);
  font-weight: 600;
  flex-shrink: 0;
}

.habit-cell {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.habit-cell.done { border-color: transparent; }
.habit-cell:active { transform: scale(0.85); }

.habits-empty {
  font-size: 13px;
  color: var(--text3);
  font-style: italic;
  padding: 16px 0;
  text-align: center;
}

.habit-add-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.habit-add-input {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface2);
  color: var(--text);
  outline: none;
  margin-bottom: 12px;
}

.habit-add-input:focus { border-color: var(--pink); }

.habit-color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.habit-color-opt {
  position: relative;
  cursor: pointer;
}

.habit-color-opt input { position: absolute; opacity: 0; pointer-events: none; }

.habit-color-dot {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.habit-color-opt input:checked + .habit-color-dot {
  border-color: var(--text);
  transform: scale(1.2);
}

.habit-add-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.habit-add-btn:active { background: var(--pink-dark); }

/* ── DAY NOTES (multi-entry) ── */
.day-notes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.day-note-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.day-note-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.day-note-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.day-note-time { font-size: 11px; color: var(--text3); }

.day-note-delete {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text3);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.day-note-delete:hover { color: var(--pink-dark); }

.day-note-add-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.day-note-add-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-note-add-btn:active { background: var(--pink-dark); }

.day-notes-textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface2);
  color: var(--text);
  outline: none;
  resize: vertical;
  line-height: 1.6;
}

.day-notes-textarea:focus { border-color: var(--pink); }

/* ── 6-MINUTE DIARY ── */
.diary-section {
  padding-bottom: 20px;
}

.diary-half {
  padding: 12px 0 8px;
}

.diary-half-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diary-morning-title { color: #c08840; }
.diary-morning-title::before { content: '\2600'; font-size: 14px; }

.diary-evening-title { color: #8070a8; }
.diary-evening-title::before { content: '\263E'; font-size: 14px; }

.diary-prompt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin: 10px 0 6px;
}

.diary-prompt:first-of-type { margin-top: 0; }

.diary-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.diary-input:focus { border-color: var(--pink); }

.diary-input::placeholder { color: var(--text3); font-style: italic; }

.diary-list-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.diary-list-num {
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
  padding-top: 8px;
  flex-shrink: 0;
  min-width: 24px;
  text-align: right;
}

.diary-list-textarea {
  resize: none;
  overflow: hidden;
  min-height: 34px;
  line-height: 1.4;
}

.diary-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
  background-image: repeating-linear-gradient(
    90deg, var(--border2), var(--border2) 6px, transparent 6px, transparent 12px
  );
  background-color: transparent;
}

/* ── MONTHLY SUMMARY CARDS ── */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

/* Mood summary */
.summary-avg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text2);
}

.summary-avg-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.summary-avg-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text3);
}

.summary-bars { display: flex; flex-direction: column; gap: 8px; }

.summary-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-bar-label {
  width: 90px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  text-align: right;
}

.summary-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface3);
  border-radius: 4px;
  overflow: hidden;
}

.summary-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 0;
}

.summary-bar-count {
  width: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-align: right;
}

/* Task summary */
.summary-tasks-ring {
  display: flex;
  align-items: center;
  gap: 20px;
}

.summary-ring-visual {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.summary-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.summary-ring-bg {
  fill: none;
  stroke: var(--surface3);
  stroke-width: 3;
}

.summary-ring-fill {
  fill: none;
  stroke: var(--sage);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.summary-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.summary-tasks-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-task-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}

.summary-task-stat strong {
  margin-left: auto;
  color: var(--text);
}

.summary-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.summary-stat-dot.done { background: var(--sage); }
.summary-stat-dot.pending { background: var(--peach); }
.summary-stat-dot.migrated { background: var(--lavender); }
.summary-stat-dot.cancelled { background: var(--text3); }

/* ── STICKER SYSTEM ── */

/* Floating action button */
.sticker-fab {
  position: fixed;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 16px);
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,120,136,0.35);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sticker-fab:active { transform: scale(0.9); }

/* Picker overlay (bottom sheet) */
.sticker-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.2s;
}
.sticker-picker-overlay.hidden { display: none; }

.sticker-picker-sheet {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}

.picker-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
}

.picker-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface3);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
}

.picker-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.picker-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
}
.picker-tab.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 16px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.picker-sticker {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, box-shadow 0.1s;
}
.picker-sticker:active {
  transform: scale(0.92);
  box-shadow: var(--shadow-lg);
}
.picker-sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Placed stickers on page */
.placed-sticker {
  position: absolute;
  z-index: 10;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.15s;
}
.placed-sticker:active { cursor: grabbing; }
.placed-sticker.selected {
  outline: 2px dashed var(--pink);
  outline-offset: 4px;
  border-radius: 4px;
}
.placed-sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Sticker controls (shown when selected) */
.sticker-controls {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.sticker-ctrl {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--text2);
  font-family: inherit;
  transition: all 0.1s;
}
.sticker-ctrl:active { transform: scale(0.9); }
.sticker-ctrl.delete { color: #d06060; }
.sticker-ctrl.delete:active { background: #fde8e8; }

/* ── LIFE WHEEL ── */
.lw-calendar-btn {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 14px;
  background: var(--surface);
  border: 2px dashed var(--border2);
  border-radius: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.lw-calendar-btn:active { background: var(--surface2); }

.page-lifewheel {
  padding: 0 16px 16px;
  max-width: 480px;
  margin: 0 auto;
}

.lw-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
}

.lw-dynamics-btn {
  padding: 6px 16px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
}
.lw-dynamics-btn:active { opacity: 0.8; }

.lw-list { display: flex; flex-direction: column; gap: 10px; }

.lw-row {
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.lw-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.lw-area-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.lw-delta {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.lw-up { color: #2e7d32; background: #e8f5e9; }
.lw-down { color: #c62828; background: #ffebee; }
.lw-same { color: #7a6860; background: #f5f0ec; }

.lw-buttons {
  display: flex;
  gap: 4px;
}

.lw-btn {
  flex: 1;
  height: 32px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  padding: 0;
}
.lw-btn:active { transform: scale(0.92); }
.lw-btn.active {
  border-color: transparent;
  font-weight: 700;
}

.lw-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.lw-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.lw-bottom-pad { height: 80px; }

/* ── DYNAMICS ── */
.dyn-list { display: flex; flex-direction: column; gap: 6px; }

.dyn-area {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.dyn-area-name {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.dyn-area-name::-webkit-details-marker { display: none; }
.dyn-area-name::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--text2);
  border-bottom: 2px solid var(--text2);
  transform: rotate(-45deg);
  margin-right: 10px;
  transition: transform 0.2s;
}
.dyn-area[open] > .dyn-area-name::before {
  transform: rotate(45deg);
}

.dyn-bars { padding: 0 14px 12px; }

.dyn-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
}

.dyn-month {
  width: 52px;
  font-size: 12px;
  color: var(--text2);
  flex-shrink: 0;
  text-align: right;
}

.dyn-bar-track {
  flex: 1;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.dyn-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.dyn-bar-val {
  width: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.dyn-no-data {
  color: var(--text3);
  font-size: 12px;
}

/* ── UTILS ── */
button { -webkit-tap-highlight-color: transparent; }
input, select, textarea { -webkit-tap-highlight-color: transparent; }

/* ── DIARY PAGE ── */
.page-diary { padding-bottom: 40px; }

.diary-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.diary-page-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  flex: 1;
}

.diary-add-entry-btn { margin-left: auto; }

.diary-entries { display: flex; flex-direction: column; gap: 12px; }

.diary-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.15s;
}

.diary-entry:active { transform: scale(0.98); background: var(--surface2); }

.diary-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.diary-entry-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.diary-entry-time {
  font-size: 11px;
  color: var(--text3);
}

.diary-entry-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.diary-empty {
  text-align: center;
  color: var(--text3);
  font-size: 14px;
  padding: 40px 0;
}

/* ── Login Screen ── */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.login-card {
  background: var(--card);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.login-logo {
  font-size: 48px;
  margin-bottom: 12px;
}

.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--text);
  margin: 0 0 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text3);
  margin: 0 0 28px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid #e0d8d0;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-google:hover {
  background: #f5f0eb;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text3);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0d8d0;
}

.login-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0d8d0;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
  outline: none;
}

.login-input:focus {
  border-color: var(--pink);
}

.btn-magic {
  width: 100%;
  padding: 12px 20px;
  background: var(--pink);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-magic:hover { opacity: 0.88; }
.btn-magic:disabled { opacity: 0.5; cursor: default; }

.login-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text3);
}

.login-toggle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text3);
  text-align: center;
}

.login-link {
  color: var(--pink);
  text-decoration: none;
  margin-left: 4px;
}

.login-link:hover {
  text-decoration: underline;
}

/* ── Onboarding ── */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 248, 244, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.onboarding-card {
  background: var(--card);
  border-radius: 24px;
  padding: 40px 28px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(160,120,100,0.12);
  animation: onboarding-in 0.25s ease;
}

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

.onboarding-icon {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1;
}

.onboarding-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.onboarding-text {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0 0 28px;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0d0c8;
  transition: background 0.2s;
}

.onboarding-dot.active {
  background: var(--pink);
}

.onboarding-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--pink);
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-bottom: 10px;
}

.onboarding-btn:hover { opacity: 0.88; }

.onboarding-skip {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}

.onboarding-skip:hover { color: var(--text2); }

.onboarding-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text3);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.onboarding-close:hover { color: var(--text2); }
.onboarding-card { position: relative; }

/* ── PWA Install Banner ── */
.install-banner {
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(160,120,100,0.28);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  z-index: 8000;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.install-banner-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.install-banner-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.install-banner-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text3);
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

/* iOS install hint */
.install-banner-ios {
  position: relative;
  width: 100%;
}

.install-banner-ios .install-banner-close {
  position: absolute;
  top: -4px;
  right: -4px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text3);
  cursor: pointer;
  line-height: 1;
}

.install-banner-ios-text {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  text-align: center;
  padding-right: 16px;
}

.install-banner-ios-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--card);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 4px rgba(160,120,100,0.15));
}

/* ── Lock Screen ── */
.lock-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.lock-card {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.lock-logo {
  font-size: 48px;
  margin-bottom: 12px;
}

.lock-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.lock-sub {
  font-size: 13px;
  color: var(--text3);
  margin: 0 0 28px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: transparent;
  transition: background 0.15s;
}

.pin-dot.filled {
  background: var(--pink);
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.pin-key {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: var(--card);
  font-size: 22px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
  box-shadow: 0 2px 8px rgba(160,120,100,0.08);
}

.pin-key:active { background: #e8d8d0; }
.pin-back { font-size: 18px; }

.lock-bio-btn {
  width: 100%;
  padding: 12px;
  background: none;
  border: 1.5px solid var(--pink);
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--pink);
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.15s;
}

.lock-bio-btn:active { background: #f8e8ec; }

.lock-skip {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
  padding: 6px;
  font-family: inherit;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* ── WISHLIST ── */
.page-wishlist { padding-bottom: 40px; }

.wish-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.wish-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  flex: 1;
}

.wish-add-fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wish-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.wish-filter-btn {
  flex: 1;
  padding: 7px 4px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.wish-filter-btn.active {
  background: var(--pink-light);
  border-color: var(--pink);
  color: var(--pink-dark);
  font-weight: 600;
}

.wish-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.wish-total-item {
  font-size: 13px;
  color: var(--text2);
  background: var(--surface3);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

.wish-total-item.bought {
  background: var(--sage-light);
  color: var(--sage);
}

.wish-total-item b { color: var(--text); }

.wish-list { display: flex; flex-direction: column; gap: 10px; }

.wish-empty {
  text-align: center;
  color: var(--text3);
  font-style: italic;
  font-size: 14px;
  padding: 32px 0;
}

.wish-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s;
}

.wish-card.done { opacity: 0.55; }

.wish-card.done .wish-card-name {
  text-decoration: line-through;
  color: var(--text3);
}

.wish-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.wish-cat-icon { font-size: 22px; flex-shrink: 0; }

.wish-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wish-card-name {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wish-card-price {
  font-size: 13px;
  color: var(--text2);
}

.wish-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wish-link-btn {
  color: var(--lavender);
  font-size: 16px;
  text-decoration: none;
  padding: 2px;
}

.wish-check-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  transition: all 0.15s;
}

.wish-check-btn.checked {
  background: var(--sage-light);
  border-color: var(--sage);
}

.wish-delete-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.5;
}

.wish-delete-btn:hover { opacity: 1; color: #d08080; }

.wish-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 47, 42, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
}

.wish-modal {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  width: 100%;
  max-width: 480px;
}

.wish-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 18px;
}

.wish-field { margin-bottom: 14px; }

.wish-label {
  display: block;
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.wish-input {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface2);
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
}

.wish-input:focus { border-color: var(--pink); }

.wish-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.wish-modal-cancel {
  flex: 1;
  padding: 11px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text2);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.wish-modal-submit {
  flex: 2;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wish-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.wish-photo-btn {
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.wish-photo-btn:hover { opacity: 1; }

.wish-photo-pick { cursor: pointer; display: block; }

.wish-img-preview {
  width: 100%;
  height: 120px;
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 14px;
  background: var(--surface2);
  overflow: hidden;
}

.wish-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.wish-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
}
