/* אזורים (יומן ובהמשך שאר האזורים) */
.area { padding-top: calc(12px + env(safe-area-inset-top)); }
.area__head { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--margin) 0; max-width: 980px; margin: 0 auto; }
.area__head h1 { font-size: 30px; font-weight: 800; }
.area__add { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--smoky-pink); color: #fff; box-shadow: 0 6px 16px rgba(181,84,114,.35); }
.area .sheet { padding-top: 14px; }
@media (min-width: 700px) { .area .sheet { max-width: 980px; margin: 0 auto; } }

/* לוח שנה */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head h2 { font-size: var(--fs-h2); font-weight: 700; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--background); color: var(--smoky-pink-dark); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__week { margin-bottom: 6px; font-size: var(--fs-tiny); font-weight: 700; color: var(--text-muted); }
.cal__day { position: relative; aspect-ratio: 1; max-height: 52px; border-radius: 14px; font-weight: 600; font-size: var(--fs-small); display: grid; place-items: center; }
.cal__day:hover { background: var(--background); }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--gum-pink); color: var(--smoky-pink-dark); }
.cal__day.is-selected { background: var(--smoky-pink); color: #fff; box-shadow: none; }
.cal__dot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--smoky-pink); }
.cal__day.is-selected .cal__dot { background: #fff; }

/* מצב ריק */
.empty { text-align: center; padding: 8px 0 4px; color: var(--text-muted); }
.empty .btn { margin-top: 12px; }
.btn--soft { background: var(--baby-pink); color: var(--smoky-pink-dark); min-height: 44px; width: auto; margin-inline: auto; }
.btn--sm { min-height: 46px; margin-top: 14px; }

/* רשומה יומית */
.entry-moods { margin-bottom: 16px; }
.field__area { min-height: 90px; padding: 12px 16px; resize: vertical; line-height: 1.5; }

/* טופס תור */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- סנכרון יומן ---------- */
.sync { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start; margin-bottom: 14px; }
.sync__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--baby-pink); color: var(--smoky-pink-dark); }
.sync__text h2 { font-size: var(--fs-body); font-weight: 700; }
.sync__text p { font-size: var(--fs-small); color: var(--text-muted); margin-top: 2px; }
.sync .btn { grid-column: 1 / -1; margin-top: 0; }
.sync--on { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; font-size: var(--fs-small); color: var(--text-muted); }
.sync--on .icon { color: var(--smoky-pink); }
.sync--on span { flex: 1; }
.sync--on .link { padding: 4px; }

.cal__dots { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.cal__dots .cal__dot { position: static; transform: none; }
.cal__dot--phone { background: #9A8C94 !important; }
.cal__day.is-selected .cal__dot--phone { background: #fff !important; opacity: .6; }
.cal__legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: var(--fs-tiny); color: var(--text-muted); }
.cal__legend span { display: flex; align-items: center; gap: 6px; }
.cal__legend .cal__dot { position: static; transform: none; display: inline-block; }

.phone-events { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.phone-events h3 { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.phone-events li { display: flex; gap: 12px; padding: 8px 12px; border-radius: 12px; background: #F5F1F3; margin-top: 6px; font-size: var(--fs-small); }
.phone-events time { color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 48px; }

/* חלון תחתון */
.sheet-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(58, 29, 44, .35); }
.bottom-sheet { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  background: var(--surface); border-radius: 28px 28px 0 0; padding: 12px var(--margin) calc(28px + env(safe-area-inset-bottom));
  animation: up .25s ease both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bottom-sheet__grip { display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 16px; }
.bottom-sheet h2 { font-size: var(--fs-h2); font-weight: 800; }
.providers { display: grid; gap: 10px; margin-top: 18px; }
.provider { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); font-weight: 600; text-align: start; }
.provider span { flex: 1; }
.provider .icon { color: var(--smoky-pink); }
.provider b { font-size: var(--fs-tiny); color: var(--smoky-pink-dark); background: var(--baby-pink); padding: 2px 10px; border-radius: 99px; }
.provider.is-on { border-color: var(--smoky-pink); }

/* ---------- תזכורת בטופס ---------- */
.remind { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch-row__text { display: flex; gap: 10px; align-items: flex-start; }
.switch-row__text .icon { color: var(--smoky-pink); margin-top: 2px; }
.switch-row b { display: block; font-size: var(--fs-body); }
.switch-row small { display: block; font-size: var(--fs-tiny); color: var(--text-muted); }
.switch { appearance: none; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch:checked { background: var(--smoky-pink); }
.switch:checked::after { transform: translateX(-20px); }
.switch:focus-visible { outline: 3px solid var(--gum-pink); outline-offset: 2px; }
.remind__when { display: grid; gap: 8px; }
.remind__when[hidden] { display: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--background); border-radius: 99px; padding: 4px; }
.segmented .pill span { border: 0; background: none; text-align: center; padding: 9px 0; }
.segmented .pill input:checked + span { background: var(--smoky-pink); color: #fff; }
.sync-note { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-muted); }

/* פעמון ליד התור ברשימה */
.appt__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.appt__bell { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-muted); }
