*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--gum-pink); outline-offset: 2px; border-radius: 12px; }
ul { list-style: none; margin: 0; padding: 0; }
.icon { display: block; flex: none; }

/* ---------- כפתור אייקון ---------- */
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.icon-btn .dot {
  position: absolute; top: 9px; left: 11px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gum-pink); box-shadow: 0 0 0 2px var(--smoky-pink);
}

/* ---------- פס התקדמות ---------- */
.progress__track { height: 10px; border-radius: var(--radius-pill); background: var(--baby-pink); overflow: hidden; }
.progress__fill { height: 100%; border-radius: inherit; background: var(--smoky-pink); }
.progress__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-small); color: var(--text-muted); }
.progress__labels b { color: var(--smoky-pink-dark); }

/* ---------- כותרת אזור ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 700; }
.section-head__meta { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- תג ---------- */
.chip {
  display: inline-block; margin-top: 6px; padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--baby-pink); color: var(--smoky-pink-dark);
  font-size: var(--fs-tiny); font-weight: 600;
}

/* ---------- תורים ---------- */
.appt { display: flex; gap: 14px; align-items: flex-start; }
.appt__body { flex: 1; min-width: 0; }
.appt__body h3 { font-size: var(--fs-body); font-weight: 700; }
.appt__body p { font-size: var(--fs-small); color: var(--text-muted); }
.appt__time { font-weight: 700; font-size: var(--fs-body); color: var(--smoky-pink-dark); font-variant-numeric: tabular-nums; direction: ltr; }

/* ציר זמן (כיוון א׳) */
.appts--timeline { position: relative; display: grid; gap: 22px; }
.appts--timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; right: 6px;
  width: 2px; background: var(--baby-pink);
}
.appts--timeline .appt__dot {
  position: relative; z-index: 1; flex: none; margin-top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--smoky-pink); box-shadow: 0 0 0 4px var(--surface);
}

/* כרטיס (כיוון ב׳) */
.appts--card { display: grid; }
.appts--card .appt { padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.appts--card .appt:first-child { border-top: 0; padding-top: 0; }
.appts--card .appt:last-child { padding-bottom: 0; }
.appt__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.appt__icon--pink { background: var(--baby-pink); color: var(--smoky-pink-dark); }
.appt__icon--lilac { background: #EADCF7; color: #6B4596; }
.appt__icon--blue { background: #DCE8F7; color: #3D5F8F; }

/* ---------- פעולות מהירות ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick__btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: var(--fs-small); font-weight: 600; text-align: center; line-height: 1.25;
}
.quick__icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--baby-pink); color: var(--smoky-pink-dark);
  transition: transform .15s ease;
}
.quick__btn:active .quick__icon { transform: scale(.94); }

/* ---------- מצב רוח ---------- */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--fs-tiny); font-weight: 600; text-align: center; line-height: 1.2; }
.mood__face {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--gum-pink);
  border: 3px solid transparent;
  transition: transform .15s ease, border-color .15s ease;
}
.mood[aria-checked="true"] .mood__face { border-color: var(--smoky-pink-dark); transform: scale(1.06); }

/* ---------- ניווט תחתון ---------- */
.nav {
  position: fixed; z-index: 10;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 520px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px; border-radius: var(--radius-l);
  box-shadow: var(--shadow-nav);
}
.nav__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: var(--fs-tiny); font-weight: 600; }
.nav__icon { width: 46px; height: 32px; border-radius: var(--radius-pill); display: grid; place-items: center; }
.nav--dark { background: var(--plum); color: #F3DCE7; }
.nav--dark .is-active { color: #fff; }
.nav--dark .is-active .nav__icon { background: var(--smoky-pink); }
.nav--light { background: var(--surface); color: var(--text-muted); }
.nav--light .is-active { color: var(--smoky-pink-dark); }
.nav--light .is-active .nav__icon { background: var(--smoky-pink); color: #fff; }

/* ---------- הודעה ---------- */
.toast {
  position: fixed; z-index: 20; left: 50%; bottom: 110px;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--our-black); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: var(--fs-small); transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* מצב רוח – פרצופים תלת-ממדיים, בלי ריבוע */
.mood__face { background: transparent; border-radius: 50%; width: 60px; height: 60px; }
.mood[aria-checked="true"] .mood__face { border-color: var(--smoky-pink); background: var(--baby-pink); }

/* ---------- צילומים: טיפול אחיד כדי שישתלבו בשפה ---------- */
.ph { position: relative; display: block; overflow: hidden; background: var(--baby-pink); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(.98); }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(253,213,228,.12), rgba(181,84,114,.10)); mix-blend-mode: multiply; pointer-events: none; }

/* מונע גרירה הצידה של כל הדף (קרה במצב טלפון בדפדפן) */
html, body { overflow-x: hidden; overscroll-behavior-x: none; }
