/* © 2026 Yossi Ozan. All rights reserved. Proprietary and confidential. Unauthorized copying, reverse engineering or reuse is prohibited. */
/* Heebo (OFL), מתארח באפליקציה עצמה: בלי בקשות לגוגל */
@font-face { font-family: "Heebo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/heebo-hebrew-wght-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/heebo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* © 2026 Yossi Ozan. All rights reserved. כל הזכויות שמורות. */
:root {
  --ground: #F7F6FB;
  --surface: #FFFFFF;
  --ink: #1B2B2A;
  --muted: #3E4A55;
  --line: #CDD3CC;
  --accent: #A8525E;          /* זהב ורוד עמוק: טקסט ומסגרות */
  --accent-deep: #134A7A;     /* כחול פנינה עמוק: טקסט חזק */
  --accent-soft: #FCEBF2;     /* רקע עדין משולב */
  /* שילוב צבעי הדמויות: זהב ורוד של האישה + כחול פנינה של הגבר */
  --blend: linear-gradient(120deg, #F57FA0 0%, #FFB3C7 22%, #F0D2F0 48%, #8FD0FF 74%, #45A8F5 100%);
  --blend-deep: linear-gradient(120deg, #E8336F 0%, #D9447F 28%, #8A5FD6 52%, #2D8CF0 76%, #0866D9 100%);
  --green: #0E8A62;           /* ירוק: התקדמות ומשקל */
  --green-soft: #E2F5EC;
  --sky: #1F6FD1;             /* כחול: תזכורות וגיבוי */
  --sky-soft: #E6F0FC;
  --coral: #E8572E;           /* קורל: מוטיבציה וטיפים */
  --warm-soft: #FFEDE6;
  --warm-ink: #8A2E10;
  --error: #B42318;
  --radius: 20px;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: calc(env(safe-area-inset-top) + 32px) 20px calc(env(safe-area-inset-bottom) + 24px);
}

h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; }
h2 { margin: 0; font-size: 17px; font-weight: 700; }
p { margin: 0; }

.muted { color: var(--muted); }
.small-text { font-size: 14px; }
.accent { color: var(--accent); }
.stack-xs { display: flex; flex-direction: column; gap: 2px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.spacer { flex: 1; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* טפסים */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.field legend { padding: 0; margin-bottom: 8px; }

.field input,
.field select {
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  width: 100%;
}

.field input:focus-visible,
.field select:focus-visible,
.btn:focus-visible,
.choice input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-grid { display: grid; gap: 8px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 400;
}
.choice input:checked + span {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

.error { color: var(--error); font-weight: 500; }

/* כפתורים */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 16px;
  border: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 20px;
}
.btn.primary { background: var(--accent); color: #FFFFFF; min-height: 56px; }
.btn.light { background: #FFFFFF; color: var(--accent-deep); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.small { min-height: 44px; font-size: 14px; padding: 0 14px; }
.btn:active { transform: scale(0.98); }

/* מסך בית */
.home-top { display: flex; justify-content: space-between; align-items: center; }
.wordmark { color: var(--accent); font-size: 26px; letter-spacing: 0.3px; }

.card {
  background: var(--card-bg, var(--surface));
  border: 1px solid var(--card-line, transparent);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.next-shot { background: var(--accent); color: #FFFFFF; gap: 12px; }
.label-light { font-size: 15px; opacity: 0.92; }
.countdown { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 700; }
.countdown strong { font-size: 56px; font-weight: 800; line-height: 1; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  text-align: center;
}
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-size: 24px; font-weight: 800; }

.progress { height: 10px; border-radius: 5px; background: #E4E8E2; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 5px; transition: width 400ms ease; }

.note {
  background: var(--warm-soft);
  color: var(--warm-ink);
  border-radius: 20px;
  padding: 16px 18px;
  font-size: 15px;
}

.toast {
  position: fixed;
  z-index: 70;
  inset-inline: 20px;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  max-width: 440px;
  margin: 0 auto;
  background: var(--accent-deep);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 500;
  text-align: center;
}

.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice.suggested span::after { content: " ★"; color: var(--accent); }

.card-legend { padding: 0; margin-bottom: 4px; float: right; width: 100%; }
.card-legend + * { clear: both; }
.big-line { font-size: 22px; font-weight: 800; }
.small-link { font-size: 14px; font-weight: 700; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn.outline { background: var(--surface); color: var(--accent-deep); border: 2px solid var(--accent); }
.link-btn {
  background: none; border: 0; font: inherit; font-size: 14px; color: var(--muted);
  text-decoration: underline; min-height: 44px; cursor: pointer; align-self: center;
}
a.btn { text-decoration: none; }

.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history li { display: flex; justify-content: space-between; font-size: 15px; border-bottom: 1px solid #E4E8E2; padding-bottom: 8px; }
.history li:last-child { border-bottom: 0; padding-bottom: 0; }

.last-shot {
  color: #FFFFFF;
  font-size: 15px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shot-list li {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.shot-list .when { display: flex; flex-direction: column; }
.shot-list .when strong { font-size: 17px; }
.shot-list .when span, .shot-list .site { font-size: 14px; color: var(--muted); }
.shot-list .dose { font-weight: 800; font-size: 17px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
  .btn:active { transform: none; }
}

/* הגדרות וגיבוי (S15) */
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.danger-zone { border: 1px solid #F1C9C5; }
.btn.danger { background: var(--surface); color: var(--error); border: 2px solid var(--error); }
.backup-nudge {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 2px dashed var(--accent);
  border-radius: 20px; padding: 14px 18px; color: var(--ink); text-decoration: none; font-size: 15px;
}
.backup-nudge strong { color: var(--accent-deep); }
.backup-nudge span { color: var(--muted); font-size: 14px; }

/* מסך פתיחה מונפש: צלליות שמתעדנות בתוך טבעת המותג */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(70% 45% at 50% 38%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, #E8336F 0%, #D44A86 30%, #6E6BDB 62%, #1E7FEA 85%, #0B63D1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  animation: splash-out 600ms ease 4100ms forwards;
}
.splash-stage { position: relative; width: 260px; height: 260px; }
.splash-art { position: absolute; inset: 0; }
.fig3d {
  position: absolute;
  top: 24px;
  opacity: 0;
  transform-origin: 50% 90%;
  animation:
    figs-in 450ms ease 50ms forwards,
    turn3d 3.4s ease-in-out 0s infinite alternate;
}
.fig3d.woman { left: 40px; }
.fig3d.man { left: 133px; animation-delay: 170ms, -1.7s; }
.fig-svg { display: block; overflow: visible; animation: breathe 2.6s ease-in-out infinite; }
.man .fig-svg { animation-delay: -1.3s; }
@keyframes turn3d {
  from { transform: perspective(520px) rotateY(-20deg); }
  to   { transform: perspective(520px) rotateY(20deg); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50%      { transform: translateY(-4px) scaleY(1.012); }
}
.splash-ring {
  stroke-dasharray: 867;
  stroke-dashoffset: 867;
  opacity: .9;
  animation: ring-draw 1300ms cubic-bezier(.65, 0, .35, 1) 400ms forwards;
}
.splash-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.splash-word {
  direction: ltr;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(8px);
  animation:
    rise-in 450ms ease 1500ms forwards,
    word-slim 1000ms cubic-bezier(.65, 0, .35, 1) 1850ms forwards;
}
.splash-tag {
  color: rgba(255, 255, 255, .85);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  animation: rise-in 500ms ease 1800ms forwards;
}
@keyframes figs-in { to { opacity: 1; } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@keyframes word-slim { from { font-weight: 900; letter-spacing: 0; } to { font-weight: 300; letter-spacing: 3px; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

/* שם המותג במסך הפתיחה: זהב ורוד שמתמזג לפנינה */
.splash-word, .splash-word .wm-b {
  background: linear-gradient(90deg, #FFFFFF 0%, #FFE0EA 25%, #FFC2D4 45%, #E6F5FF 70%, #B5E0FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* "הסר אנימציות" בטלפון: המסך מוצג במלואו ובאותו אורך, רק בלי סיבוב ונשימה מתמשכים */
@media (prefers-reduced-motion: reduce) {
  .fig3d { animation: figs-in 450ms ease 50ms forwards; }
  .fig3d.man { animation-delay: 170ms; }
  .fig-svg { animation: none; }
}

/* שילוב צבעים: לכל אזור באפליקציה צבע משלו */
.wordmark .wm-b { color: var(--coral); }
.stats .accent { color: var(--green); }
.progress-fill { background: var(--green); }
.card.progress-card { border-top: 5px solid var(--green); }
.reminder { background: var(--sky-soft); }
.reminder h2 { color: var(--sky); }
.reminder .btn.outline { border-color: var(--sky); color: var(--sky); }
.backup-nudge { border-color: var(--sky); }
.backup-nudge strong { color: var(--sky); }
.note { border-inline-start: 5px solid var(--coral); }
.next-shot { background: var(--blend-deep); box-shadow: 0 10px 24px -14px rgba(138, 95, 214, .7); }
.choice.suggested span::after { color: var(--coral); }

/* התאמה לגילאי 40–60: טקסט גדול יותר, כפתורים גדולים, ניגודיות חזקה */
h1 { font-size: 30px; }
h2 { font-size: 19px; }
.small-text { font-size: 16px; }
.field { font-size: 17px; }
.field input, .field select { height: 56px; font-size: 19px; }
.choice span { height: 56px; font-size: 18px; }
.btn { min-height: 56px; font-size: 18px; }
.btn.primary { min-height: 60px; font-size: 19px; }
.btn.small { min-height: 48px; font-size: 16px; }
.stats dt { font-size: 15px; }
.stats dd { font-size: 27px; }
.label-light { font-size: 17px; }
.note { font-size: 17px; }
.last-shot { font-size: 16px; }
.toast { font-size: 17px; padding: 16px 18px; }
.shot-list .when strong { font-size: 18px; }
.shot-list .when span, .shot-list .site { font-size: 16px; }
.history li { font-size: 17px; }
.link-btn { font-size: 16px; }
.backup-nudge { font-size: 17px; }
.backup-nudge span { font-size: 16px; }

/* אפשרות "טקסט גדול" בהגדרות */

.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* שקילה וגרף (S5, S6) */
.btn.green { background: var(--green); color: #FFFFFF; text-decoration: none; }
.btn.big { min-height: 62px; font-size: 20px; }
.stepper { display: grid; grid-template-columns: 68px minmax(0, 1fr) 68px; gap: 10px; align-items: center; }
.step-btn {
  height: 72px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface);
  font: inherit; font-size: 38px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.step-btn:active { background: var(--green-soft); border-color: var(--green); }
.step-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.weight-input { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }
.weight-input input {
  width: 100%; border: 0; padding: 0; background: transparent; text-align: center;
  font: inherit; font-size: 44px; font-weight: 800; color: var(--ink); direction: ltr; line-height: 1.1;
  -moz-appearance: textfield;
}
.weight-input input::-webkit-outer-spin-button, .weight-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.weight-input input:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 12px; }
.weight-input span { font-size: 17px; color: var(--muted); }
.lost-badge { background: var(--green-soft); color: var(--green); font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 16px; }
.chart svg { display: block; width: 100%; height: auto; direction: ltr; }
.pace { background: var(--green-soft); color: #0A5A40; border-radius: 16px; padding: 14px 16px; font-size: 17px; }
.history li button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; min-height: 44px; cursor: pointer; }

/* משוב על שינוי במשקל */
.feedback {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 20px; padding: 16px 18px; font-size: 17px; line-height: 1.45;
}
.feedback strong { font-size: 19px; }
.feedback.down { background: var(--green-soft); color: #0A5A40; border: 2px solid #9ED9C1; }
.feedback.up { background: #FFF1E6; color: #8A3A0C; border: 2px solid #F7C39E; }
.feedback.same { background: var(--sky-soft); color: #134C8F; border: 2px solid #B8D3F3; }
.feedback-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.feedback.down .feedback-icon { background: var(--green); }
.feedback.up .feedback-icon { background: #E07A2E; }
.feedback.same .feedback-icon { background: var(--sky); }
.feedback-icon svg { width: 24px; height: 24px; }
.feedback.celebrate { animation: fb-pop 600ms cubic-bezier(.34, 1.56, .64, 1); position: relative; overflow: visible; }
.feedback.celebrate .feedback-icon { animation: fb-spin 700ms ease; }
@keyframes fb-pop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fb-spin { 0% { transform: scale(.4) rotate(-90deg); } 70% { transform: scale(1.15) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; animation: spark 900ms ease-out forwards; }
@keyframes spark { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.feedback.warn-in { animation: fb-pop 450ms ease; }
@media (prefers-reduced-motion: reduce) {
  .feedback.celebrate, .feedback.celebrate .feedback-icon, .feedback.warn-in, .spark { animation: none; }
  .spark { display: none; }
}

/* אזהרה בצבע לפי מגדר */
.feedback.up.g-female { background: linear-gradient(115deg, #FDE3E7, #F7C4C8 60%, #F2B8BE); color: #5E2531; border-color: #EDA8AE; }
.feedback.up.g-female .feedback-icon { background: linear-gradient(135deg, #C46F7B, #A8525E); }
.feedback.up.g-male { background: linear-gradient(115deg, #EAF7FE, #A9D8F0 60%, #7DC0E8); color: #0F2E4A; border-color: #7DC0E8; }
.feedback.up.g-male .feedback-icon { background: linear-gradient(135deg, #4FA3DA, #1F6FAE); }

/* ערכת צבעים לפי מגדר: אישה = זהב ורוד, גבר = פנינה */
html.theme-female {
  --accent: #C23A5A;          /* זהב ורוד חי ועמוק לטקסט ומסגרות */
  --accent-deep: #7A1A33;
  --accent-soft: #FDE2E8;
  --blend-deep: linear-gradient(120deg, #EC5F7C 0%, #D9405F 50%, #B42A4C 100%);
}
/* הכרטיס הראשי בזהב ורוד בהיר ומבריק, לפי דוגמת הצבע */
html.theme-female .next-shot::after,
html.theme-male .next-shot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 45%, transparent 60%);
}
html.theme-female .feedback.up.g-female { background: linear-gradient(115deg, #FDE3E7, #F7C4C8 60%, #F2B8BE); color: #5E2531; border-color: #EDA8AE; }
html.theme-female .feedback.up.g-female .feedback-icon { background: linear-gradient(135deg, #C46F7B, #A8525E); }

html.theme-male {
  --accent: #0B6BD6;          /* כחול פנינה חי ועמוק לטקסט ומסגרות */
  --accent-deep: #0A3F80;
  --accent-soft: #E0EFFF;
  --blend-deep: linear-gradient(120deg, #3D9EF5 0%, #1A7FE8 50%, #0860CC 100%);
}
/* הכרטיס הראשי בכחול פנינה מבריק, לפי דוגמת הפנינים */
.version { text-align: center; }

.weigh-nudge {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--green-soft); border: 2px solid var(--green);
  border-radius: 20px; padding: 14px 18px; color: var(--ink); text-decoration: none; font-size: 17px;
}
.weigh-nudge strong { color: var(--green); font-size: 18px; }
.weigh-nudge span { color: #1F4D3C; font-size: 16px; }

/* גרף משקל: אנימציה עדינה */
.wchart { overflow: visible; }
.chart-seg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: seg-draw 520ms cubic-bezier(.65, 0, .35, 1) forwards; }
.chart-area { opacity: 0; animation: fade-in 700ms ease 250ms forwards; }
.chart-dot { opacity: 0; transform: scale(.3); animation: dot-pop 380ms cubic-bezier(.34, 1.56, .64, 1) forwards; }
.chart-halo { transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-in-out 1.2s infinite; }
.chart-bubble { opacity: 0; animation: bubble-in 420ms ease forwards; }
.goal-tag { opacity: 0; animation: fade-in 500ms ease 100ms forwards; }
@keyframes seg-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes dot-pop { to { opacity: 1; transform: scale(1); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .18; } 50% { transform: scale(1.5); opacity: .05; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .chart-seg { animation: none; stroke-dashoffset: 0; }
  .chart-area, .chart-dot, .chart-bubble, .goal-tag { animation: none; opacity: 1; transform: none; }
  .chart-halo { animation: none; }
}

/* ---------- הרשמה ---------- */
.register-head { text-align: center; padding-top: 8px; }
.register-head .wordmark { font-size: 44px; margin: 0; }
.register-head h2 { margin: 4px 0 0; font-size: 26px; }
.register .field input[type="email"] { text-align: left; }
.register-note { text-align: center; }
.account .field input[type="email"] { text-align: left; }

/* ---------- שילוב צבעי הדמויות (לפני בחירת מגדר: הרשמה ומסך הטיפול) ---------- */
.btn.primary { background: var(--blend-deep); box-shadow: 0 10px 22px -14px rgba(45, 140, 240, .75); }
.toast { background: var(--blend-deep); }
html body {
  background: linear-gradient(170deg, #FFEAF1 0%, #F6EEFB 45%, #E6F3FF 100%) fixed;
}
html .wordmark,
html .wordmark .wm-b {
  background: linear-gradient(90deg, #E8336F 0%, #E0508A 28%, #8A5FD6 55%, #1E7FEA 80%, #0866D9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
html .choice input:checked + span {
  border-color: transparent;
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box, var(--blend-deep) border-box;
}
html .field input:focus-visible,
html .field select:focus-visible { outline-color: #6F6E9E; }

/* הכרטיס הראשי: זהב ורוד ופנינה כחולה מבריקים, לכולם */
.next-shot {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg,
    #F57FA0 0%, #FFA9C0 14%, #FFE3EC 25%, #FFB8CD 37%,
    #D9C6F5 50%, #A8D9FF 62%, #E8F6FF 72%, #86C9FF 84%, #3D9EF2 100%);
  color: #1A1F3D;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 16px 30px -14px rgba(232, 51, 111, .45), 0 10px 24px -16px rgba(30, 127, 234, .55);
}
.next-shot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 45%, transparent 60%);
}
.next-shot .label-light { opacity: 1; color: #3B2554; font-weight: 600; }
.next-shot .btn.light { background: var(--blend-deep); color: #FFFFFF; }
.next-shot .last-shot { color: #241F45; }
.progress-fill { background: var(--blend-deep); }
.card.progress-card { border-top: 5px solid transparent; background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, var(--blend-deep) border-box; }

/* ---------- אחרי בחירת מגדר: כל האפליקציה בצבע המגדר, חי וחד ---------- */
/* אישה: זהב ורוד */
html.theme-female body { background: linear-gradient(170deg, #FFF0F3 0%, #FFE6EC 100%) fixed; }
html.theme-female .next-shot {
  background: linear-gradient(115deg,
    #E8798B 0%, #F7A8B4 14%, #FFDCE2 26%, #F49AAA 40%,
    #FCC6CF 54%, #FFE6EA 64%, #F28C9E 80%, #E0607A 100%);
  color: #4A0F22;
  box-shadow: 0 16px 30px -14px rgba(217, 64, 95, .55);
}
html.theme-female .next-shot .label-light { color: #7A1A33; }
html.theme-female .next-shot .last-shot { color: #5C1428; }
html.theme-female .wordmark,
html.theme-female .wordmark .wm-b {
  background: linear-gradient(90deg, #B42A4C 0%, #E0506E 55%, #F28C9E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* גבר: כחול פנינה */
html.theme-male body { background: linear-gradient(170deg, #EEF7FF 0%, #E0EFFF 100%) fixed; }
html.theme-male .next-shot {
  background: linear-gradient(115deg,
    #3D9EF2 0%, #86C9FF 16%, #E8F6FF 27%, #7CC2FF 39%,
    #4FAAF7 52%, #CDEAFF 64%, #6BB9FB 78%, #1E84E8 100%);
  color: #06264D;
  box-shadow: 0 16px 30px -14px rgba(26, 127, 232, .6);
}
html.theme-male .next-shot .label-light { color: #0A3F80; }
html.theme-male .next-shot .last-shot { color: #062B57; }
html.theme-male .wordmark,
html.theme-male .wordmark .wm-b {
  background: linear-gradient(90deg, #0860CC 0%, #1A7FE8 55%, #5DB3FA 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- בטיחות ותמיכה ---------- */
.safety-link {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 2px solid var(--accent-soft); font-size: 18px; line-height: 1.4;
}
.safety-ico { font-size: 30px; }
.emergency-bar {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: #C8102E; color: #FFFFFF; border-radius: 18px; padding: 14px 18px;
  box-shadow: 0 10px 20px -12px rgba(200, 16, 46, .8);
}
.emergency-bar strong { font-size: 22px; }
.emergency-bar span { font-size: 16px; opacity: .92; }
.symptoms { display: grid; gap: 8px; margin: 10px 0; }
.sym-group { margin: 10px 0 2px; font-weight: 800; font-size: 17px; color: var(--accent-deep); }
.sym { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-soft); font-size: 18px; line-height: 1.45; cursor: pointer; }
.sym input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.sym:has(input:checked) { outline: 2px solid var(--accent); background: var(--surface); }
.advice { border-radius: 16px; padding: 16px; margin: 12px 0; display: grid; gap: 8px; }
.advice p { margin: 0; font-size: 18px; line-height: 1.5; }
.advice strong { font-size: 20px; }
.advice.urgent { background: #FDE7EA; border: 2px solid #C8102E; color: #6B0A19; }
.advice.doctor { background: #FFF4E0; border: 2px solid #E08A00; color: #5A3600; }
.advice.mood { background: #E8F5EE; border: 2px solid #0E8A62; color: #0B4A35; }
.btn.danger { background: #C8102E; color: #FFFFFF; }
.rules-list { margin: 8px 0 0; padding-inline-start: 24px; display: grid; gap: 10px; font-size: 18px; line-height: 1.5; }
.field textarea { width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 14px;
  border: 2px solid #D9D6E6; background: var(--surface); resize: vertical; box-sizing: border-box; }
.field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

/* ---------- יומן אישי ---------- */
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mood input, .chip input, .q-item input { position: absolute; opacity: 0; pointer-events: none; }
.mood span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px;
  border-radius: 16px; border: 2px solid transparent; background: var(--accent-soft); font-size: 14px;
  font-weight: 600; text-align: center; cursor: pointer; line-height: 1.2; }
.mood b { font-size: 32px; line-height: 1; }
.mood input:checked + span { border-color: var(--accent); background: var(--surface); box-shadow: 0 6px 14px -10px var(--accent); }
.mood input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-block; padding: 10px 14px; border-radius: 999px; background: var(--surface);
  border: 2px solid #DAD6E8; font-size: 17px; cursor: pointer; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.chip.none input:checked + span { background: #0E8A62; border-color: #0E8A62; }
.journal h3 { margin: 8px 0 0; font-size: 19px; }
.q-list, .entry-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.q-item { display: flex; gap: 12px; align-items: center; font-size: 18px; cursor: pointer; position: relative; }
.q-item span::before { content: ""; display: inline-block; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--accent); margin-inline-end: 10px; vertical-align: -5px; }
.q-list li.done { opacity: .4; text-decoration: line-through; transition: opacity .4s; }
.entry-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--accent-soft); }
.e-emoji { font-size: 30px; line-height: 1; }
.entry-list p { margin: 2px 0 0; }
.e-note { font-size: 17px; }
.journal-card .quick-moods { display: flex; justify-content: space-between; gap: 6px; margin: 6px 0; }
.quick-moods a { font-size: 36px; text-decoration: none; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); border: 2px solid transparent; }
.quick-moods a.on { border-color: var(--accent); background: var(--surface); }
.small-link { font-size: 17px; font-weight: 700; color: var(--accent); }

/* ---------- מד הרגשה (במקום אימוג'י) ---------- */
.meter { --c1: #D93A4A; --c2: #F07B3F; --c3: #E8A82E; --c4: #5FB85A; --c5: #159A6E; }
.moods.meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.moods.meter .mood span {
  background: transparent; border: 0; padding: 6px 2px 4px; gap: 8px; justify-content: flex-end; min-height: 108px;
}
.meter .bar { display: block; width: 100%; max-width: 46px; border-radius: 10px 10px 6px 6px;
  background: var(--c); opacity: .28; transition: opacity .2s, transform .2s, box-shadow .2s; }
.meter .m1 { --c: var(--c1); } .meter .m2 { --c: var(--c2); } .meter .m3 { --c: var(--c3); }
.meter .m4 { --c: var(--c4); } .meter .m5 { --c: var(--c5); }
.meter .m1 .bar { height: 24px; } .meter .m2 .bar { height: 38px; } .meter .m3 .bar { height: 52px; }
.meter .m4 .bar { height: 66px; } .meter .m5 .bar { height: 80px; }
.meter em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted, #6B6880); white-space: nowrap; }
.moods.meter .mood input:checked + span { box-shadow: none; background: transparent; }
.moods.meter .mood input:checked + span .bar { opacity: 1; transform: scaleY(1.06); box-shadow: 0 8px 16px -8px var(--c); }
.moods.meter .mood input:checked + span em { color: var(--c); font-weight: 800; }
.moods.meter:has(input:checked) .mood input:not(:checked) + span .bar { opacity: .18; }
.quick-moods.meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; margin: 8px 0; }
.quick-moods.meter a { width: auto; height: auto; border-radius: 0; background: transparent; border: 0; font-size: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.quick-moods.meter .m1 .bar { height: 18px; } .quick-moods.meter .m2 .bar { height: 28px; } .quick-moods.meter .m3 .bar { height: 38px; }
.quick-moods.meter .m4 .bar { height: 48px; } .quick-moods.meter .m5 .bar { height: 58px; }
.quick-moods.meter em { font-size: 13px; }
.quick-moods.meter a.on .bar { opacity: 1; box-shadow: 0 8px 16px -8px var(--c); }
.quick-moods.meter a.on em { color: var(--c); font-weight: 800; }
.quick-moods.meter:has(a.on) a:not(.on) .bar { opacity: .18; }
.mini-meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; padding-top: 2px; }
.mini-meter i { display: block; width: 6px; border-radius: 3px; background: #DAD7E5; }
.e-meter { flex: none; padding-top: 2px; }
.mood-trend { margin: 6px 0 4px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid #ECE9F4; }

/* ---------- סיכום תקופה ---------- */
.catchup-card { display: grid; gap: 6px; padding: 18px 20px; border-radius: 22px; text-decoration: none;
  background: linear-gradient(125deg, #D9F5E8 0%, #EEFBF4 55%, #FFFFFF 100%); border: 2px solid #3DBE8B;
  color: #0B5A3F; font-size: 17px; box-shadow: 0 12px 24px -16px rgba(21, 154, 110, .55); }
.catchup-card strong { font-size: 20px; line-height: 1.35; color: #064A33; }
.catchup-card span { font-weight: 600; color: #159A6E; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--surface);
  border: 2px solid #DAD6E8; font-size: 16px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.missed-row { border: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--accent-soft); display: grid; gap: 8px; }
.missed-row legend { float: right; width: 100%; font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 8px; }
.missed-list, .freq-list { display: grid; gap: 10px; }
.freq-row { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); }
.freq-row strong { font-size: 17px; }
.entry-list li.period { background: var(--surface); border: 2px dashed #D5D1E3; }

/* ---------- משפט מוטיבציה: בתוך כרטיס ההתקדמות, נקי ועדין ---------- */
.motivation { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 2px; padding: 12px 14px;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); font-size: 17px; font-weight: 600; line-height: 1.45; }
.motivation::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.first-hint { margin: 2px 0 0; font-size: 17px; line-height: 1.45; font-weight: 600; opacity: .9; }
.next-shot > * { position: relative; z-index: 1; }

/* ---------- 4 שלבים ---------- */
.stages-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.seg-s { height: 12px; border-radius: 6px; background: #E6E3EF; overflow: hidden; }
.seg-s i { display: block; height: 100%; width: 0; background: var(--blend-deep); border-radius: 6px; transition: width .6s ease; }
.seg-s.now { box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 3px var(--accent); }
.stage-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.stage-line strong { font-size: 18px; }
.stage-go { flex: none; font-weight: 700; color: var(--accent); font-size: 16px; }
.journey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stage-card { display: flex; gap: 14px; padding: 18px 16px; border-radius: 22px; background: var(--surface); border: 2px solid #ECE9F4; }
.stage-card.now { border-color: var(--accent); box-shadow: 0 14px 28px -18px var(--accent); }
.stage-card.next { opacity: .7; }
.stage-num { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; font-weight: 800; background: #ECE9F4; color: #6B6880; }
.stage-card.now .stage-num { background: var(--blend-deep); color: #FFFFFF; }
.stage-card.done .stage-num { background: #159A6E; color: #FFFFFF; }
.stage-body { flex: 1; min-width: 0; }
.stage-body h2 { margin: 0; font-size: 20px; }
.stage-badge { font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #ECE9F4; color: #6B6880; white-space: nowrap; }
.stage-card.now .stage-badge { background: var(--accent); color: #FFFFFF; }
.stage-card.done .stage-badge { background: #DDF3EA; color: #0B6B4C; }
.stage-range { margin: 4px 0 2px; font-weight: 700; font-size: 17px; direction: rtl; }
.stage-focus { margin: 0 0 8px; font-size: 16px; }
.stage-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.goal { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.4; cursor: pointer; }
.goal input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: #159A6E; }
.goal input:checked + span { color: #0B6B4C; }
.journey-goal h2 { margin: 0 0 6px; }

.stage-expect { margin: 0 0 10px; font-size: 16px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.stage-card.next .stage-expect { background: #F4F3F8; }
.journey-src { margin: 14px 4px 0; }

.field .hint { display: block; font-size: 15px; font-weight: 400; color: var(--muted, #6B6880); margin-top: 2px; }

.goal-auto { cursor: default; align-items: center; }
.goal-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px dashed #C9C4DA; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #FFFFFF; }
.goal-auto.done .goal-mark { background: #159A6E; border: 2px solid #159A6E; }
.goal-text { flex: 1; }
.goal-auto.done .goal-text { color: #0B6B4C; }
.goal-count { flex: none; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); white-space: nowrap; }
.goal-auto.done .goal-count { background: #DDF3EA; color: #0B6B4C; }

/* בדיקת סבירות למשקל */
.weight-check { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #FFF7E6; border: 2px solid #F2B33D; color: #4A2E00; }
.weight-check strong { font-size: 20px; }
.weight-check p { margin: 0; font-size: 18px; line-height: 1.5; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* אייקונים בקו דק (במקום אימוג'י) */
.safety-ico { width: 34px; height: 34px; flex: none; color: var(--accent); }
.ico-inline { width: 22px; height: 22px; flex: none; }
.ico-title { display: inline-flex; align-items: center; gap: 8px; }
.ico-line { display: flex; align-items: center; gap: 8px; }
.weight-check .ico-inline { color: #B07A10; }
.journey-goal .ico-inline { color: var(--accent); width: 26px; height: 26px; }

.no-splash #splash { display: none !important; }

/* מידע משפטי והסכמה */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; padding: 12px 14px;
  border-radius: 14px; background: var(--surface); border: 2px solid #E3E0EC; }
.consent input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.consent a { color: var(--accent); font-weight: 700; }
.legal-doc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.legal-doc summary::-webkit-details-marker { display: none; }
.legal-doc summary::after { content: "+"; font-size: 26px; font-weight: 700; color: var(--accent); }
.legal-doc[open] summary::after { content: "−"; }
.legal-doc summary h2 { margin: 0; }
.legal-body h3 { margin: 16px 0 4px; font-size: 18px; }
.legal-body p { margin: 0 0 8px; font-size: 17px; line-height: 1.6; }

/* היסטוריית עדכונים */
.act-filter { margin: 4px 0 6px; }
.act-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.act-day { margin: 14px 2px 2px; font-weight: 800; font-size: 16px; color: var(--accent-deep); }
.act-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid #ECE9F4; }
.act-item strong { font-size: 17px; }
.act-item p { margin: 2px 0 0; }
.act-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.act-weight .act-ico { background: #E2F4EC; color: #159A6E; }
.act-weight.up .act-ico { background: #FFF1E3; color: #C46A12; }
.act-journal .act-ico, .act-question .act-ico { background: #F1ECFB; color: #6F55C8; }
.act-dose .act-ico { background: #FFF6DB; color: #A07800; }

/* ---------- סרגל ניווט תחתון ---------- */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px); background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #E6E3EF;
  box-shadow: 0 -8px 24px -18px rgba(30, 20, 80, .35); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 14px;
  text-decoration: none; color: #6B6880; font-size: 14px; font-weight: 700; min-height: 56px; justify-content: center; }
.tab svg { transition: transform .2s; }
.tab.on { color: var(--accent); background: var(--accent-soft); }
.tab.on svg { transform: translateY(-1px) scale(1.06); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
body.has-tabbar .screen { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
body.has-tabbar .toast { bottom: calc(env(safe-area-inset-bottom) + 88px); }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-links .safety-link { padding: 14px 12px; gap: 10px; font-size: 16px; line-height: 1.3; }
.quick-links .safety-ico { width: 28px; height: 28px; }

.reg-restore { display: grid; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid #E6E3EF; text-align: center; }
.reg-restore p { margin: 0; }

/* רישום מהיר ותובנות */
.quick-moods.meter button { background: transparent; border: 0; padding: 0; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.quick-moods.meter button.on .bar { opacity: 1; box-shadow: 0 8px 16px -8px var(--c); }
.quick-moods.meter button.on em { color: var(--c); font-weight: 800; }
.quick-moods.meter:has(button.on) button:not(.on) .bar { opacity: .18; }
.quick-moods.meter button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.quick-follow { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--accent-soft); }
.qf-title { margin: 0; font-weight: 700; font-size: 17px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { font: inherit; font-size: 16px; padding: 8px 14px; border-radius: 999px; border: 2px solid #DAD6E8; background: var(--surface); cursor: pointer; }
.qchip.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.qchip.none.on { background: #159A6E; border-color: #159A6E; }
.insight { margin: 0; padding: 12px 14px; border-radius: 14px; background: #E8F6EF; color: #0B5A3F; font-weight: 600; font-size: 17px; line-height: 1.45; }
.streak-pill { font-size: 14px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: #FFF4DE; color: #8A5A00; white-space: nowrap; }

/* טיפים מיידיים */
.effect-tip, .journal-tips { display: grid; gap: 8px; }
.tip-item { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid #E3E0EC; display: grid; gap: 4px; }
.tip-item strong { font-size: 17px; color: var(--accent-deep); }
.tip-item p { margin: 0; font-size: 16px; line-height: 1.5; }
.tip-item .tip-doc { color: #5A3600; }
.tip-item.urgent { border: 2px solid #E08A00; background: #FFF8EC; }
/* שיעור השבוע */
.lesson-card { display: grid; gap: 4px; text-decoration: none; color: var(--ink); border: 2px solid var(--accent-soft); }
.lesson-kicker { font-size: 14px; font-weight: 800; color: var(--accent); }
.lesson-card strong { font-size: 20px; }
.lesson-go { font-weight: 700; color: var(--accent); margin-top: 4px; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson { background: var(--surface); border-radius: 18px; border: 1px solid #ECE9F4; }
.lesson.locked { opacity: .55; }
.lesson-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.lesson-head::-webkit-details-marker { display: none; }
.lesson-head div { display: grid; gap: 2px; }
.lesson-head strong { font-size: 18px; }
.lesson-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.lesson.read .lesson-num { background: #159A6E; color: #FFFFFF; }
.lesson-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.lesson-lead { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.5; }
.lesson-body ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 17px; line-height: 1.55; }

/* ---------- מסך משקל ---------- */
.page-head h1 { margin: 0; }
.page-head p { margin: 2px 0 0; }
.weight-hero { background: var(--blend-deep); color: #FFFFFF; border: 0; box-shadow: 0 16px 30px -18px var(--accent); }
.wh-stats { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: end; text-align: center; gap: 6px; }
.wh-stats span { display: block; font-size: 15px; opacity: .85; }
.wh-stats strong { font-size: 24px; font-weight: 800; }
.wh-now strong { font-size: 44px; line-height: 1.05; }
.wh-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .28); overflow: hidden; margin-top: 12px; }
.wh-bar i { display: block; height: 100%; width: 0; background: #FFFFFF; border-radius: 6px; transition: width .8s ease; }
.wh-foot { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-top: 6px; opacity: .95; }
.weigh-card .stepper { margin: 6px 0 2px; }
.weigh-card .step-btn { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); border-radius: 50%; }
.weigh-tip { text-align: center; margin: 0; }
.chart-range { grid-auto-columns: auto; gap: 4px; }
.chart-range span { padding: 6px 10px; font-size: 14px; }
.chart-card .chart { margin-top: 8px; position: relative; }
.chart-hint { text-align: center; margin: 4px 0 0; }
.chart-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 6px; }
.cstat { background: var(--accent-soft); border-radius: 14px; padding: 10px 8px; text-align: center; }
.cstat span { display: block; font-size: 13px; color: #6B6880; }
.cstat strong { font-size: 19px; color: var(--accent-deep); }
.cstat.good strong { color: #0E8A62; }
.cstat.up strong { color: #C46A12; }
.chart-up { animation: fadeIn .5s ease 1.2s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- אבני דרך (v64) ---------- */
.ms { position: relative; height: 66px; margin: 26px 24px 0; }
.ms-track { position: absolute; top: 9px; right: 0; left: 0; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .28); }
.ms-fill { position: absolute; top: 0; right: 0; bottom: 0; width: 0; background: #FFFFFF; border-radius: 5px; transition: width .9s ease; }
.ms-nodes { position: absolute; inset: 0; }
.ms-node { position: absolute; top: 0; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ms-node i { width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; border: 2.5px solid #FFFFFF; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.ms-node.done i { background: #FFFFFF; }
.ms-node.start i { width: 16px; height: 16px; margin-top: 5px; }
.ms-node.goal i { width: 30px; height: 30px; margin-top: -2px; }
.ms-node svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ms-node span { font-size: 14px; font-weight: 700; white-space: nowrap; opacity: .95; }
.ms-here { position: absolute; top: -26px; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ms-here b { font-size: 13px; font-weight: 800; background: #FFFFFF; color: var(--accent); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.ms-here i { width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.ms-next { margin: 4px 0 0; font-size: 15px; font-weight: 600; opacity: .95; }

/* ---------- גרף המגמה החדש (v65): כרטיס כהה, קו זוהר, צפי ליעד, מגע ---------- */
:root { --chart-bg: linear-gradient(165deg, #241A47 0%, #3B1F5E 100%); --chart-l1: #FF8FB8; --chart-l2: #9CCBFF; --chart-acc: #FF8FB8; }
html.theme-male { --chart-bg: linear-gradient(165deg, #0A1A38 0%, #0B3A7A 100%); --chart-l1: #4FB2FF; --chart-l2: #D6EEFF; --chart-acc: #7CC8FF; }
html.theme-female { --chart-bg: linear-gradient(165deg, #33091A 0%, #7A1E3F 100%); --chart-l1: #FF7FA6; --chart-l2: #FFD9E4; --chart-acc: #FF9DBA; }
.chart-card { background: var(--chart-bg); color: #FFFFFF; border: 0; box-shadow: 0 18px 34px -20px rgba(10, 20, 50, .7); }
.chart-card h2 { color: #FFFFFF; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cc-sub { margin: 2px 0 0; font-size: 15px; color: rgba(255, 255, 255, .7); }
.cc-big { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.5px; white-space: nowrap; }
.cc-big.down { color: var(--chart-acc); }
.chart-card .chart-range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 14px; background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 4px; }
.chart-card .chart-range label { margin: 0; }
.chart-card .chart-range span { display: block; text-align: center; border: 0; background: transparent; color: rgba(255, 255, 255, .75); border-radius: 10px; padding: 8px 4px; font-size: 15px; font-weight: 700; }
.chart-card .chart-range input:checked + span { background: #FFFFFF; color: #14213A; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.chart-card .chart { margin: 10px -6px 0; }
.wchart { touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.chart-pt { opacity: 0; animation: fade-in 400ms ease 500ms forwards; }
.chart-proj { opacity: 0; animation: fade-in 600ms ease 750ms forwards; }
.chart-cursor { opacity: 0; animation: fade-in 400ms ease 600ms forwards; }
.chart-cursor line { opacity: 0; transition: opacity .2s; }
.wchart.scrubbing .chart-cursor line { opacity: 1; }
.cc-hint { margin: 2px 0 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); }
.cc-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.cc-chip { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 8px; text-align: center; }
.cc-chip span { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); }
.cc-chip strong { display: block; font-size: 18px; font-weight: 800; margin-top: 2px; }
.chart-card .pace { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .9); font-size: 15px; margin-top: 10px; }
.chart-card .chart-hint { color: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .chart-pt, .chart-proj, .chart-cursor { animation: none; opacity: 1; } }

/* ---------- צבעים לפי מגדר בכל האפליקציה (v66): במקום ירוק ובמקום צבעי מצב רוח ---------- */
html.theme-male { --green: #0B6BD6; --green-soft: #E3F0FF; --green-ink: #0A3F80; --green-line: #A9CFF7;
  --c1: #B9D9F7; --c2: #8DC0F2; --c3: #5AA2EA; --c4: #2E84DE; --c5: #0B5FC0; }
html.theme-female { --green: #C23A5A; --green-soft: #FCE6EC; --green-ink: #7A1E3A; --green-line: #F2B3C3;
  --c1: #F8C9D5; --c2: #F2A1B6; --c3: #E57592; --c4: #D24E72; --c5: #A82A4E; }
html.theme-male .meter, html.theme-female .meter { --c1: inherit; }
html.theme-male .meter { --c1: #B9D9F7; --c2: #8DC0F2; --c3: #5AA2EA; --c4: #2E84DE; --c5: #0B5FC0; }
html.theme-female .meter { --c1: #F8C9D5; --c2: #F2A1B6; --c3: #E57592; --c4: #D24E72; --c5: #A82A4E; }
html.theme-male .pace, html.theme-female .pace { color: var(--green-ink); }
html.theme-male .chart-card .pace, html.theme-female .chart-card .pace { color: rgba(255, 255, 255, .9); }
html.theme-male .feedback.down, html.theme-female .feedback.down { color: var(--green-ink); border-color: var(--green-line); }
html.theme-male .advice.mood, html.theme-female .advice.mood { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
html.theme-male .chip.none input:checked + span, html.theme-female .chip.none input:checked + span { background: var(--green); border-color: var(--green); }
html.theme-male .meter .bar, html.theme-female .meter .bar { opacity: .6; }
html.theme-male .meter:has(.on) .bar, html.theme-female .meter:has(.on) .bar { opacity: .18; }
html.theme-male .meter .on .bar, html.theme-female .meter .on .bar { opacity: 1; }

/* עמודות מצב רוח חדות ובולטות (v67) */
html.theme-male .meter { --c1: #8EC2F4; --c2: #5DA6EE; --c3: #2F88E3; --c4: #136DD3; --c5: #0A4FA6; }
html.theme-female .meter { --c1: #F4A3B9; --c2: #EC7896; --c3: #DE5178; --c4: #C6355F; --c5: #9C1F46; }
html.theme-male .meter .bar, html.theme-female .meter .bar { opacity: 1; box-shadow: 0 6px 14px -8px var(--c); }
html.theme-male .meter:has(.on) .bar, html.theme-female .meter:has(.on) .bar { opacity: .3; box-shadow: none; }
html.theme-male .meter .on .bar, html.theme-female .meter .on .bar { opacity: 1; transform: scale(1.08); box-shadow: 0 10px 20px -8px var(--c); outline: 3px solid #FFFFFF; outline-offset: -3px; }
html.theme-male .meter em, html.theme-female .meter em { color: var(--ink, #1B2B2A); font-weight: 600; }
html.theme-male .meter .on em, html.theme-female .meter .on em { color: var(--c); font-weight: 800; }

/* עמודות מצב רוח בסגנון כרטיס הטיפול הבא: הדרגה מבריקה (v68) */
html.theme-male .meter .bar, html.theme-female .meter .bar { position: relative; overflow: hidden; outline: 0; }
html.theme-male .meter .bar {
  background: linear-gradient(115deg, #3D9EF2 0%, #86C9FF 22%, #E8F6FF 38%, #7CC2FF 55%, #4FAAF7 75%, #1E84E8 100%);
  box-shadow: 0 8px 16px -10px rgba(26, 127, 232, .7); }
html.theme-female .meter .bar {
  background: linear-gradient(115deg, #E8798B 0%, #F7A8B4 22%, #FFDCE2 38%, #F49AAA 55%, #FCC6CF 75%, #E0607A 100%);
  box-shadow: 0 8px 16px -10px rgba(217, 64, 95, .65); }
html.theme-male .meter .bar::after, html.theme-female .meter .bar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%); }
html.theme-male .meter:has(.on) .bar, html.theme-female .meter:has(.on) .bar { opacity: .35; box-shadow: none; }
html.theme-male .meter .on .bar, html.theme-female .meter .on .bar { opacity: 1; transform: scale(1.08); outline: 0; }
html.theme-male .meter .on .bar { box-shadow: 0 12px 22px -10px rgba(26, 127, 232, .8); }
html.theme-female .meter .on .bar { box-shadow: 0 12px 22px -10px rgba(217, 64, 95, .75); }
html.theme-male .meter .on em { color: #0B6BD6; }
html.theme-female .meter .on em { color: #C23A5A; }

/* עמודות מצב רוח: הדרגה מבריקה בגוונים שמתכהים מ'קשה מאוד' ל'טוב מאוד' (v69) */
html.theme-male .meter .m1 .bar { background: linear-gradient(115deg, #BFE1FF 0%, #E9F5FF 40%, #BFE1FF 62%, #9FD0FF 100%); }
html.theme-male .meter .m2 .bar { background: linear-gradient(115deg, #8CC8FF 0%, #D6ECFF 40%, #8CC8FF 62%, #6DB6FB 100%); }
html.theme-male .meter .m3 .bar { background: linear-gradient(115deg, #5AAEF7 0%, #BFE2FF 40%, #5AAEF7 62%, #3D98EE 100%); }
html.theme-male .meter .m4 .bar { background: linear-gradient(115deg, #2F8EEA 0%, #9FD2FF 40%, #2F8EEA 62%, #1774D8 100%); }
html.theme-male .meter .m5 .bar { background: linear-gradient(115deg, #0F6AD0 0%, #6FB6F5 40%, #0F6AD0 62%, #0A4FA6 100%); }
html.theme-female .meter .m1 .bar { background: linear-gradient(115deg, #FFD3DC 0%, #FFF0F3 40%, #FFD3DC 62%, #F9B9C6 100%); }
html.theme-female .meter .m2 .bar { background: linear-gradient(115deg, #F8AABB 0%, #FFE0E7 40%, #F8AABB 62%, #F28FA4 100%); }
html.theme-female .meter .m3 .bar { background: linear-gradient(115deg, #EE8098 0%, #FFCAD5 40%, #EE8098 62%, #E2647F 100%); }
html.theme-female .meter .m4 .bar { background: linear-gradient(115deg, #DC5674 0%, #F8A9BA 40%, #DC5674 62%, #C63A5C 100%); }
html.theme-female .meter .m5 .bar { background: linear-gradient(115deg, #BC3355 0%, #EC8AA0 40%, #BC3355 62%, #951F40 100%); }

/* הוראת נטילה לכדור והתראת פספוס (v70) */
.next-shot .pill-tip { font-size: 15px; font-weight: 600; background: rgba(255, 255, 255, .55); border-radius: 12px; padding: 8px 12px; margin: 8px 0 4px; line-height: 1.45; }
.missed-card { background: var(--green-soft, #FFF6E5); border: 2px solid var(--accent, #F2C46B); }
.missed-card h2 { color: var(--accent, #7A4B00); margin: 0 0 4px; }
.missed-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }

/* משוב (v71) */
.feedback-prompt { background: var(--green-soft, #EEF4FF); border: 2px solid var(--accent); }
.feedback-prompt h2 { margin: 0 0 4px; color: var(--accent); }
.feedback-prompt p { margin: 0 0 12px; font-size: 16px; }
.row-gap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fb-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; direction: ltr; }
.fb-scale input { position: absolute; opacity: 0; pointer-events: none; }
.fb-scale span { display: grid; place-items: center; height: 56px; border-radius: 14px; font-size: 22px; font-weight: 800;
  background: var(--surface); border: 2px solid var(--border, #D9DEE8); color: var(--accent); transition: transform .15s; }
.fb-scale input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: scale(1.06); }
.fb-scale input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.fb-scale-ends { display: flex; justify-content: space-between; flex-direction: row-reverse; font-size: 14px; color: var(--muted, #6B7280); margin-top: 6px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; }
.consent-row input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent-row strong { display: block; }
.feedback-screen textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; border-radius: 14px; border: 2px solid var(--border, #D9DEE8); padding: 12px; margin-top: 8px; }
.center { text-align: center; }
.card.consent-row { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; }

/* הבהרה רפואית קבועה (v72) */
.med-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted, #5B6478); line-height: 1.45; }
.med-note svg { flex: none; color: var(--accent); }
.med-note.boxed { align-items: flex-start; background: var(--green-soft, #EEF4FF); border-radius: 14px; padding: 12px 14px; font-weight: 500; font-size: 15px; color: inherit; }
.med-note.boxed svg { margin-top: 3px; }
.med-note.boxed strong { color: var(--accent); }
.lesson-card .med-note { margin-top: 8px; }
.top-actions { display: flex; gap: 8px; align-items: center; }

/* גודל טקסט: כפתורי הגדלה והקטנה (v75) */
.text-stepper { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 10px; margin-top: 10px; }
.ts-btn { height: 64px; border-radius: 18px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 2px; font-weight: 800; cursor: pointer; font-family: inherit; line-height: 1; }
.ts-btn:active { transform: scale(.96); }
.ts-btn:disabled { opacity: .35; cursor: default; }
.ts-a.small { font-size: 20px; }
.ts-a.big { font-size: 30px; }
.ts-sign { font-size: 22px; }
.ts-mid { text-align: center; display: grid; gap: 6px; justify-items: center; }
.ts-mid strong { font-size: 20px; }
.ts-dots { display: flex; gap: 6px; direction: rtl; }
.ts-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border, #D9DEE8); }
.ts-dots i.on { background: var(--accent); }

/* גודל טקסט: פס גרירה כמו ווליום (v76) */
.text-slider { display: flex; align-items: center; gap: 14px; margin-top: 14px; direction: ltr; }
.text-slider .ts-a { color: var(--accent); font-weight: 800; line-height: 1; flex: none; }
.text-slider .ts-a.small { font-size: 18px; }
.text-slider .ts-a.big { font-size: 34px; }
.text-slider input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; margin: 0; cursor: pointer; --fill: 25%; }
.text-slider input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 6px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--border, #D9DEE8) var(--fill)); }
.text-slider input[type=range]::-moz-range-track { height: 10px; border-radius: 6px; background: var(--border, #D9DEE8); }
.text-slider input[type=range]::-moz-range-progress { height: 10px; border-radius: 6px; background: var(--accent); }
.text-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%;
  background: #FFFFFF; border: 4px solid var(--accent); box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.text-slider input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--accent); }
.text-slider input[type=range]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.ts-now { text-align: center; margin: 4px 0 0; font-size: 18px; }

/* כפתור גודל טקסט במסך הבית (v77) */
.ts-toggle { display: inline-flex; align-items: baseline; gap: 1px; padding-inline: 12px; font-weight: 800; color: var(--accent); }
.ts-toggle .ts-a.small { font-size: 15px; }
.ts-toggle .ts-a.big { font-size: 22px; }
.ts-toggle.on { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.ts-panel { margin-top: 4px; border: 2px solid var(--accent); }
.ts-panel h2 { margin: 0; }
.home-top { flex-wrap: wrap; gap: 8px; }

/* פאנל גודל טקסט צף, מחוץ לאזור המוגדל (v78) */
body > .ts-panel { position: fixed; right: 12px; left: 12px; bottom: calc(env(safe-area-inset-bottom) + 92px); z-index: 60;
  max-width: 520px; margin: 0 auto; background: var(--surface); border-radius: 22px; padding: 16px 18px 12px;
  box-shadow: 0 18px 40px -12px rgba(10, 20, 50, .45); font-size: 18px; }
body > .ts-panel h2 { font-size: 20px; }
body > .ts-panel .text-slider input[type=range] { height: 52px; touch-action: none; }

/* תוכן בסיסי לדף הכניסה, נראה רק בלי JavaScript (v79) */
.seo-shell { max-width: 640px; margin: 0 auto; padding: 28px 20px 120px; font-size: 18px; line-height: 1.7; }
.seo-shell h1 { font-size: 28px; margin: 0 0 12px; }
.seo-shell ul { padding-inline-start: 22px; }

/* דוח לרופא (v79) */
.rep-range { margin: 10px 0 12px; }
.report-screen .chart-range span { border: 2px solid var(--border, #D9DEE8); background: var(--surface); }
.report-screen .chart-range input:checked + span { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.rep-actions { display: grid; gap: 10px; }
.report { background: #FFFFFF; color: #1B2233; border-radius: 18px; padding: 18px 16px; margin-top: 14px; font-size: 15px; line-height: 1.55;
  box-shadow: 0 6px 20px -14px rgba(20, 30, 60, .35); }
.rep-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 3px solid #1B2B4A; padding-bottom: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.rep-head h2 { margin: 0; font-size: 20px; }
.rep-head p { margin: 2px 0 0; }
.rep-meta { display: grid; font-size: 13px; color: #5B6478; text-align: end; }
.rep-meta strong { color: #1B2B4A; font-size: 16px; }
.report section { margin-top: 14px; }
.report h3 { break-after: avoid; }
.rep-kv, .rep-chart { break-inside: avoid; }
.rep-num { unicode-bidi: isolate; }
.report h3 { font-size: 17px; margin: 0 0 6px; padding: 4px 10px; background: #EEF1F7; border-radius: 8px; }
.rep-kv, .rep-list { width: 100%; border-collapse: collapse; }
.rep-kv th { text-align: start; font-weight: 600; color: #5B6478; width: 42%; padding: 4px 6px; vertical-align: top; }
.rep-kv td, .rep-list td { padding: 4px 6px; }
.rep-list tr:nth-child(odd) td { background: #F6F7FB; }
.rep-label { font-weight: 700; margin: 10px 0 4px; }
.rep-sub { color: #5B6478; font-size: 13px; }
.rep-chart { width: 100%; height: auto; margin-top: 8px; }
.rep-notes, .rep-q ol { margin: 4px 0; padding-inline-start: 20px; }
.rep-foot { margin-top: 16px; padding-top: 8px; border-top: 1px solid #D9DEE8; font-size: 12px; color: #5B6478; }

@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #FFFFFF !important; }
  body * { visibility: hidden; }
  .report, .report * { visibility: visible; }
  .report { position: absolute; inset: 0 auto auto 0; width: 100%; box-shadow: none; border-radius: 0; padding: 0; margin: 0; font-size: 11pt; }
  .rep-chart { max-height: 55mm; }
  .rep-list td { padding: 2px 6px; }
  #app { zoom: 1 !important; }
  #splash, #tabbar, .no-print, .ts-panel { display: none !important; }
}

/* רקע קוביות בגווני האפליקציה במקום לבן (v80) */
:root { --card-bg: linear-gradient(160deg, #FFFFFF 0%, #FFF1F6 55%, #EAF4FF 100%); --card-line: #F0DDEA; }
html.theme-male { --card-bg: linear-gradient(160deg, #FFFFFF 0%, #EEF6FF 50%, #DDEBFF 100%); --card-line: #CFE3FA; }
html.theme-female { --card-bg: linear-gradient(160deg, #FFFFFF 0%, #FFF0F4 50%, #FFE1E9 100%); --card-line: #F6CBD7; }
.card.progress-card { background: var(--card-bg) padding-box, var(--blend-deep) border-box; border-width: 5px 0 0; }
.stage-card { background: var(--card-bg); border-color: var(--card-line); }
/* קוביות שיש להן צבע משלהן נשארות כמו שהן */
.card.next-shot, .card.weight-hero, .card.chart-card { border: 0; }
.report { background: #FFFFFF; }
body > .ts-panel { background: var(--card-bg); }

/* כל הרקעים הלבנים בגווני האפליקציה (v81) */
:root { --surface: #FBF5FA; }
html.theme-male { --surface: #F2F8FF; }
html.theme-female { --surface: #FFF3F6; }
.tabbar { background: var(--surface); }
html.theme-male .reminder, html.theme-female .reminder { background: var(--green-soft); border-color: var(--green-line); }
html.theme-male .reminder h2, html.theme-female .reminder h2 { color: var(--accent); }
html.theme-male .reminder .btn.outline, html.theme-female .reminder .btn.outline { border-color: var(--accent); color: var(--accent); }

/* מעבר בהחלקה בין דפי הסרגל (v82) */
@keyframes slide-from-left { from { transform: translateX(-28%); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes slide-from-right { from { transform: translateX(28%); opacity: .3; } to { transform: none; opacity: 1; } }
#app[data-slide="from-left"] > * { animation: slide-from-left .28s ease-out; }
#app[data-slide="from-right"] > * { animation: slide-from-right .28s ease-out; }
@media (prefers-reduced-motion: reduce) { #app[data-slide] > * { animation: none; } }
html, body { overscroll-behavior-x: none; }

/* עריכת שורה (v83) */
.edit-btn { font: inherit; font-size: 15px; font-weight: 700; color: var(--accent); background: transparent; border: 1.5px solid var(--accent); border-radius: 999px; padding: 4px 12px; cursor: pointer; flex: none; }
li.editing { display: block !important; }
.inline-edit { display: grid; gap: 10px; width: 100%; }
.inline-edit .field { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.inline-edit input, .inline-edit select { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font: inherit; font-size: 17px; }
.edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.edit-actions .btn { flex: 1; min-width: 90px; }
.more-row { justify-content: center !important; }
.show-all { font-size: 16px; }
.history li { align-items: center; gap: 10px; }

/* רישום בלחיצה אחת (v83) */
.quick-log { display: grid; gap: 2px; justify-items: center; padding-block: 12px; }
.quick-log small { font-size: 14px; font-weight: 600; opacity: .85; }
.next-shot .details-link { text-align: center; font-size: 15px; font-weight: 600; color: inherit; opacity: .85; }
.toast.with-action { display: flex; align-items: center; gap: 14px; }
.toast.with-action button { font: inherit; font-weight: 800; color: #FFFFFF; background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 4px 14px; cursor: pointer; }

/* חומרה ותופעה מותאמת (v83) */
.custom-effect { display: flex; gap: 8px; margin-top: 8px; }
.custom-effect input { flex: 1; height: 46px; border-radius: 999px; border: 1.5px dashed var(--line); background: var(--surface); padding: 0 16px; font: inherit; font-size: 16px; min-width: 0; }
.severity { display: grid; gap: 8px; margin-top: 6px; padding: 12px; border-radius: 16px; background: var(--green-soft, #EEF4FF); }
.sev-title { margin: 0; font-weight: 700; }
.sev-row { display: grid; grid-template-columns: minmax(80px, auto) 1fr; gap: 8px; align-items: center; }
.sev-name { font-weight: 600; }
.sev-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sev-opts input { position: absolute; opacity: 0; pointer-events: none; }
.sev-opts span { display: block; text-align: center; padding: 8px 2px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; }
.sev-opts input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.sev-opts label:nth-child(3) input:checked + span { background: var(--accent-deep, #8A1F3D); border-color: var(--accent-deep, #8A1F3D); }
.sev-opts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* BMI (v83) */
.bmi-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: 16px; }
.bmi-line b { font-weight: 800; }
.bmi-add, .bmi-edit-btn { font: inherit; font-size: 15px; font-weight: 700; color: inherit; background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.bmi-edit { display: flex; gap: 8px; width: 100%; }
.bmi-edit input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 0; padding: 0 12px; font: inherit; font-size: 17px; color: #1B2233; }
.bmi-edit button { font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 0 16px; background: #FFFFFF; color: var(--accent); cursor: pointer; }

.segmented.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===================== מצב כהה (v83) ===================== */
html.dark {
  color-scheme: dark;
  --ground: #15121C;
  --surface: #221C2C;
  --ink: #F2EEF6;
  --muted: #BDB5C8;
  --line: #4A4157;
  --accent: #FF8FB0;
  --accent-deep: #9FCBFF;
  --accent-soft: #3A2436;
  --card-bg: linear-gradient(160deg, #241D2E 0%, #2A1F2F 55%, #1D2433 100%);
  --card-line: #3A3046;
  --green-soft: #2A2035;
  --green-line: #4A3B58;
  --green-ink: #F2EEF6;
  --sky-soft: #1D2A3D;
  --warm-soft: #3A2620;
  --warm-ink: #FFD2C2;
  --error: #FF8A80;
}
html.dark.theme-male {
  --surface: #172338; --accent: #6FB6FF; --accent-deep: #B5D8FF; --accent-soft: #1B2D47;
  --card-bg: linear-gradient(160deg, #182640 0%, #142139 50%, #101B30 100%); --card-line: #2A3D5C;
  --green: #6FB6FF; --green-soft: #18304F; --green-line: #2E4D75; --green-ink: #DCEBFF;
}
html.dark.theme-female {
  --surface: #2E1A22; --accent: #FF8FAE; --accent-deep: #FFC3D2; --accent-soft: #3C1F2A;
  --card-bg: linear-gradient(160deg, #331C26 0%, #2B1720 50%, #241219 100%); --card-line: #4D2A37;
  --green: #FF8FAE; --green-soft: #44222F; --green-line: #6A3446; --green-ink: #FFE3EA;
}
html.dark body { background: linear-gradient(170deg, #1A1422 0%, #16141F 50%, #111826 100%) fixed; color: var(--ink); }
html.dark.theme-male body { background: linear-gradient(170deg, #0E1626 0%, #0B1220 100%) fixed; }
html.dark.theme-female body { background: linear-gradient(170deg, #1E0F15 0%, #170B11 100%) fixed; }
html.dark h1, html.dark h2, html.dark h3, html.dark strong { color: inherit; }
html.dark .muted, html.dark .small-text { color: var(--muted); }
html.dark input, html.dark select, html.dark textarea { color: var(--ink); background: var(--surface); border-color: var(--line); }
html.dark input::placeholder, html.dark textarea::placeholder { color: #8F86A0; }
html.dark .tabbar { background: var(--surface); border-top-color: var(--line); }
html.dark .tab { color: var(--muted); }
html.dark .btn.ghost { color: var(--ink); border-color: var(--line); background: transparent; }
html.dark .toast { background: #3A3150; color: #FFFFFF; }
html.dark .report { background: #FFFFFF; color: #1B2233; }
html.dark body > .ts-panel { background: var(--surface); color: var(--ink); }
html.dark .safety-link { background: var(--card-bg); border-color: var(--card-line); color: var(--ink); }
html.dark .chip span, html.dark .qchip, html.dark .seg span, html.dark .choice span, html.dark .sev-opts span { color: var(--ink); border-color: var(--line); }
html.dark .history li { border-bottom-color: var(--line); }
html.dark .stage-card { color: var(--ink); }
html.dark .stage-card.next .stage-expect { background: rgba(255, 255, 255, .06); }
html.dark .stage-expect { color: var(--ink); }

/* תופעות לוואי מול מינון (v84) */
.effdose { width: 100%; height: auto; color: var(--ink); direction: ltr; }
.effdose .s1 { fill: color-mix(in srgb, var(--accent) 35%, transparent); }
.effdose .s2 { fill: color-mix(in srgb, var(--accent) 70%, transparent); }
.effdose .s3 { fill: var(--accent-deep, #7A1A33); }
html.dark .effdose .s3 { fill: #FFFFFF; }
.lg-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.lg-row i.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.sw.s1 { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.sw.s2 { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.sw.s3 { background: var(--accent-deep, #7A1A33); }
html.dark .sw.s3 { background: #FFFFFF; }
.sw.dose { height: 3px !important; vertical-align: 3px !important; background: var(--accent); }
.insight-line { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--green-soft, #EEF4FF); font-size: 16px; line-height: 1.5; }

/* לוח חודשי (v84) */
.cal-nav { display: flex; justify-content: space-between; align-items: center; }
.cal-nav h2 { margin: 0; font-size: 21px; }
.cal-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--accent); font-size: 28px; line-height: 1; cursor: pointer; }
.cal-arrow:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.cal-day { aspect-ratio: 1 / 1.1; border-radius: 12px; border: 1px solid transparent; background: var(--surface); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 2px; cursor: pointer; }
.cal-day .dn { font-size: 16px; font-weight: 600; line-height: 1; }
.cal-day .mks { display: flex; gap: 3px; min-height: 8px; }
.cal-day.today { border-color: var(--accent); }
.cal-day.today .dn { color: var(--accent); font-weight: 800; }
.cal-day.sel { background: var(--accent); color: #FFFFFF; }
.cal-day.sel .cal-mk { background: #FFFFFF !important; }
.cal-day:disabled { opacity: .35; cursor: default; }
.cal-mk { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.cal-mk.shot { background: var(--accent); }
.cal-mk.wt { background: var(--accent-deep, #134A7A); border-radius: 2px; }
.cal-mk.mood { background: #E8A82E; }
.cal-legend .cal-mk { margin-inline-end: 5px; vertical-align: 1px; }
.cal-day-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 17px; }

/* מים וחלבון (v84) */
.intake-card h2 { margin: 0; }
.intake-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info btns" "bar bar"; gap: 6px 10px; align-items: center; }
.intake-info { grid-area: info; display: grid; }
.intake-info strong { font-size: 18px; }
.intake-info span { font-size: 15px; color: var(--muted); }
.intake-bar { grid-area: bar; height: 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.intake-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .35s ease; }
.intake-btns { grid-area: btns; display: flex; gap: 6px; }
.ib { font: inherit; font-weight: 800; font-size: 17px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; }
.ib.plus { background: var(--accent); color: #FFFFFF; }
.ib:active { transform: scale(.95); }
.intake-goals { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.intake-goals input { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font: inherit; color: var(--ink); }

/* מה חדש (v84) */
.wn-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 25, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; animation: fade-in .2s ease; }
.wn-sheet { width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; background: var(--card-bg, #FFFFFF); background-color: var(--surface); color: var(--ink); border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .5); }
.wn-kicker { margin: 0; font-size: 14px; font-weight: 800; color: var(--accent); }
.wn-sheet h2 { margin: 2px 0 12px; font-size: 24px; }
.wn-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.wn-list li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--card-line, #E5E1EE); }
.wn-list strong { color: var(--accent); }
.wn-list span { font-size: 16px; }
.wn-sheet .btn { width: 100%; }

/* תמונת התקדמות (v84) */
.share-progress { width: 100%; }
.share-sheet { display: grid; gap: 12px; }
.share-sheet h2 { margin: 0; }
.share-preview img { width: 100%; border-radius: 18px; display: block; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }

/* טיימר צום לכדור (v84) */
.fast-card { flex-direction: row !important; align-items: center; gap: 16px !important; border: 2px solid var(--accent) !important; }
.fast-card h2 { margin: 0; font-size: 19px; }
.fast-card p { margin: 2px 0 0; }
.fast-time { font-size: 26px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.fast-ring { width: 74px; height: 74px; flex: none; }
.fast-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fr-bg { fill: none; stroke: var(--line); stroke-width: 5; }
.fr-fg { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.fast-card.done .fast-time { font-size: 20px; }
.wn-sheet .row-between .btn { width: auto; flex: none; }
.cal-arrow { display: grid; place-items: center; }

/* מסך הבית: "היום שלך" והתראה אחת (v85) */
.alert-slot { display: contents; }
.today-card { gap: 12px; }
.today-head h2 { margin: 0; }
.today-count { font-weight: 800; color: var(--accent); font-size: 16px; }
.today-bar { height: 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-top: -4px; }
.today-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .4s ease; }
.today-card.all-done .today-count::before { content: "✓ "; }
.today-block { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line, var(--line)); }
.today-block h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.today-block.journal-card > .row-between { align-items: center; }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; font-style: normal; }
.done > .tick, .tick.done, [data-today].done .tick { background: var(--accent); border-color: var(--accent); }
.done > .tick::after, .tick.done::after, [data-today].done .tick::after { content: ""; width: 9px; height: 5px; border: solid #FFFFFF; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.intake-info strong { display: flex; align-items: center; gap: 8px; }
.today-block.lesson-card { text-decoration: none; color: inherit; }
.today-block.lesson-card .lesson-kicker { display: flex; align-items: center; gap: 8px; }
.today-block.lesson-card [data-lesson-lead] { display: none; }
.today-block.lesson-card .med-note { margin-top: 0; }
/* קישורים משניים בשורה אחת קטנה */
.quick-links.compact { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.quick-links.compact .safety-link { flex: 1 1 0; min-width: 96px; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 6px; font-size: 14px; }
.quick-links.compact .safety-link strong { font-size: 14px; font-weight: 700; }
.quick-links.compact .safety-ico { width: 22px; height: 22px; }

/* תיקוני צבע לפי מגדר ולמצב כהה (v85) */
html.theme-male .insight, html.theme-female .insight { background: var(--green-soft); color: var(--green-ink); }
html.theme-male .streak-pill, html.theme-female .streak-pill { background: var(--green-soft); color: var(--accent); border: 1px solid var(--green-line); }
html.dark .weigh-nudge, html.dark .backup-nudge { background: var(--green-soft); color: var(--ink); }
html.dark .weigh-nudge span, html.dark .backup-nudge span { color: var(--ink); }
html.dark .insight { background: var(--green-soft); color: var(--green-ink); }

/* מפת גוף לבחירת אזור (v86) */
.body-map { position: relative; width: min(100%, 300px); aspect-ratio: 2 / 3; margin: 4px auto 0; }
.bm-figure { position: absolute; inset: 0; width: 100%; height: 100%; }
.bm-figure circle, .bm-figure path { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: .45; stroke-width: 2.5; stroke-linejoin: round; }
.bm-side { position: absolute; top: 2%; font-size: 14px; font-weight: 700; color: var(--muted); }
.bm-side.r { left: 4%; }
.bm-side.l { right: 4%; }
.bm-zone { position: absolute; transform: translate(-50%, -50%); cursor: pointer; }
.bm-zone input { position: absolute; opacity: 0; pointer-events: none; }
.bm-zone span { display: grid; place-items: center; min-width: 58px; height: 46px; padding: 0 8px; border-radius: 14px; font-size: 15px; font-weight: 800;
  background: var(--surface); color: var(--accent); border: 2px solid var(--accent); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .35); transition: transform .15s; }
.bm-zone.last span { background: #E3E6EE; border-color: #B9BFCC; color: #5B6478; }
html.dark .bm-zone.last span { background: #3A3F4C; border-color: #5A6070; color: #C9CED9; }
.bm-zone.suggested span::before { content: "★ "; }
.bm-zone input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: scale(1.08); }
.bm-zone input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.bm-zone.suggested input:not(:checked) + span { animation: bm-pulse 1.6s ease-in-out infinite; }
@keyframes bm-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); } }
.bm-picked { text-align: center; font-weight: 700; margin: 4px 0 0; min-height: 1.4em; }
.dose-chart { width: 100%; height: auto; direction: ltr; color: var(--ink); }
.dose-chart-card h2 { margin: 0; }

/* מצב שמירה (v86) */
.mt-badge { display: inline-block; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: #FFFFFF; color: var(--accent); margin-inline-end: 8px; }
.mt-badge.above, .mt-badge.below { background: rgba(255, 255, 255, .25); color: #FFFFFF; border: 1.5px solid #FFFFFF; }
.weight-hero.maint .ms-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.mt-tip, .mt-offer p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; opacity: .95; }
.mt-offer { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .35); display: grid; gap: 10px; }
.maint-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.maint-form .btn { grid-column: 1 / -1; }
.maint-form input { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font: inherit; color: var(--ink); width: 100%; }
.bm-zone span { display: flex; align-items: center; justify-content: center; white-space: nowrap; gap: 2px; min-width: 60px; }
.bm-zone.suggested span::before { content: "★"; margin-inline-end: 2px; }
.wh-range { font-size: .62em; white-space: nowrap; }

/* "מתי לפנות לרופא" בולט וקריא (v87) */
.tip-item .tip-doc { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  background: var(--green-soft, #FFF1E0); border-inline-start: 6px solid var(--accent); color: var(--ink); }
.tip-item .tip-doc svg { flex: none; color: var(--accent); margin-top: 2px; }
.tip-item .tip-doc b { display: block; font-size: 17px; font-weight: 800; color: var(--accent); margin-bottom: 2px; }
.tip-item .tip-doc p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.tip-item.urgent .tip-doc { background: var(--accent); border-inline-start-color: var(--accent-deep, #7A1A33); }
.tip-item.urgent .tip-doc, .tip-item.urgent .tip-doc b, .tip-item.urgent .tip-doc p, .tip-item.urgent .tip-doc svg { color: #FFFFFF; }
html.theme-male .tip-item.urgent, html.theme-female .tip-item.urgent { border-color: var(--accent); background: var(--surface); }
html.dark .tip-item { border-color: var(--line); }

/* v88: כניסה עם Google בהרשמה */
.g-signin { display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px; border-radius:16px; background:linear-gradient(135deg,#FBE3EE,#E2ECFC); border:1px solid #DCCFEA; }
html.dark .g-signin { background:linear-gradient(135deg,#3A2433,#1F2A40); border-color:#4A3D5A; }
.g-signin .g-btn { width:100%; display:flex; justify-content:center; min-height:44px; }
.g-signin p { margin:0; text-align:center; }
.or-line { display:flex; align-items:center; gap:10px; width:100%; color:var(--muted); font-size:15px; margin-top:4px; }
.or-line::before, .or-line::after { content:""; flex:1; height:1px; background:#CDBFE0; }

/* v89: התקנה למסך הבית + ימים שלא סומנו */
.install-card { border-inline-start:6px solid var(--accent); background:var(--green-soft) !important; border-color:var(--green-line); }
.install-card h2 { color:var(--accent-deep, var(--accent)); }
.ios-share { display:inline-flex; vertical-align:-4px; color:var(--accent); padding:0 2px; }
.review .missed-row legend { font-weight:700; margin-bottom:6px; }
.review [data-action="review-all"] { align-self:flex-start; }

/* v91: יעד חלבון אוטומטי */
.intake-goals .protein-auto { margin:0; padding:10px 12px; border-radius:12px; background:var(--green-soft); border-inline-start:4px solid var(--accent); color:var(--ink); line-height:1.5; }
.intake-goals .protein-auto:empty { display:none; }

/* v92: נגישות (בדיקת axe): ניגודיות 4.5:1 */
html.theme-male .streak-pill, html.theme-female .streak-pill { color: var(--accent-deep); }
.stage-card.next { opacity: 1; }
.stage-card.next .stage-body > *:not(.row-between) { opacity: .8; }
.stage-card.next .stage-badge { background: #ECE9F4; color: #4E4B63; }
.goal-auto.done .goal-count { background: #DDF3EA; color: #075A3F; }
.lesson.locked { opacity: 1; }
.lesson.locked .lesson-head > :not(.lesson-num) { opacity: .7; }
.lesson.locked .lesson-num { background: var(--surface, #F1EEF5); color: var(--muted); }
html.dark .stage-card.next .stage-badge { background: rgba(255,255,255,.1); color: #D9D6E6; }
.med-note.boxed strong { color: var(--accent-deep); }
.goal-auto.done .goal-count { color: #05472F; }
.goal-auto.done, .goal.done { opacity: 1; }
.lesson.locked .lesson-head > :not(.lesson-num) { opacity: 1; }
.lesson.locked .muted { color: #5E636B; }
html.dark .lesson.locked .muted { color: #B9BDC6; }

/* v92: מצב כהה: הצבע המודגש בהיר, ולכן טקסט כהה מעליו (ניגודיות 4.5:1) */
html.dark { --on-accent: #2B0D18; }
html.dark.theme-male { --on-accent: #06213F; }
html.dark .chip input:checked + span, html.dark .seg input:checked + span, html.dark .stage-card.now .stage-badge,
html.dark .qchip.on, html.dark .fb-scale input:checked + span, html.dark .ts-toggle.on,
html.dark .report-screen .chart-range input:checked + span, html.dark .sev-opts input:checked + span, html.dark .cal-day.sel,
html.dark .ib.plus, html.dark .bm-zone input:checked + span, html.dark .bm-zone.suggested span, html.dark .btn.green,
html.dark.theme-male .chip.none input:checked + span, html.dark.theme-female .chip.none input:checked + span,
html.dark .tip-item.urgent .tip-doc, html.dark .tip-item.urgent .tip-doc b, html.dark .tip-item.urgent .tip-doc p, html.dark .tip-item.urgent .tip-doc svg { color: var(--on-accent); }
html.dark .ms-here b { color: var(--on-accent); background: var(--accent); }
html.dark.theme-male .meter .on em, html.dark.theme-female .meter .on em { color: var(--accent); }
html.dark .report .muted { color: #4A4458; }

/* v93: התאמות לפי מגדר (מחקר) */
.nausea-card { background: var(--green-soft) !important; border-inline-start: 6px solid var(--accent); }
.nausea-card h2 { color: var(--accent-deep, var(--accent)); }
.nausea-card .nz-tip { margin: 6px 0; line-height: 1.55; }
.nausea-card .tip-doc { display:flex; gap:10px; align-items:flex-start; margin:8px 0; padding:12px 14px; border-radius:12px; background:var(--surface); border-inline-start:6px solid var(--accent); color:var(--ink); }
.nausea-card .tip-doc svg { color: var(--accent); flex: none; margin-top: 2px; }
.nausea-card .tip-doc b { display:block; font-size:17px; font-weight:800; color:var(--accent-deep, var(--accent)); }
.nausea-card .tip-doc p { margin:0; font-size:17px; font-weight:600; line-height:1.55; }
.sex-note { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); border-inline-start: 4px solid var(--accent); }
.sex-note b { display: block; color: var(--accent-deep, var(--accent)); margin-bottom: 4px; }
.sex-note p { margin: 0; line-height: 1.55; color: var(--ink); }
html.dark .nausea-card .tip-doc b, html.dark .nausea-card h2, html.dark .sex-note b { color: var(--accent); }

/* v94: מדידה אנונימית */
.toggle-row { align-items: center; gap: 12px; font-weight: 600; padding: 4px 0; }
.toggle-row input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; }

/* v95: מלווה יומי + חגיגת הישגים */
.daily-msg { position: relative; background: var(--green-soft) !important; border: 1px solid var(--green-line); border-inline-start: 6px solid var(--accent); padding: 16px 18px 16px; }
.daily-msg .daily-kicker { font-size: 13px; font-weight: 800; color: var(--accent-deep, var(--accent)); letter-spacing: .3px; }
.daily-msg h2 { margin: 2px 0 6px; font-size: 20px; }
.daily-msg p { margin: 0 0 12px; line-height: 1.55; color: var(--ink); }
.daily-msg .btn { width: auto; }
.daily-close { position: absolute; inset-inline-start: auto; inset-inline-end: 10px; top: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.daily-close:hover { background: var(--surface); }
html.dark .daily-msg .daily-kicker { color: var(--accent); }
.celebrate { text-align: center; padding-top: 28px; }
.celebrate .cel-badge { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep, var(--accent))); box-shadow: 0 12px 28px -10px var(--accent); animation: cel-pop .45s cubic-bezier(.2,1.4,.4,1); }
.celebrate h2 { font-size: 26px; margin: 0 0 8px; }
.celebrate .cel-text { font-size: 17px; line-height: 1.6; margin: 0 0 18px; }
@keyframes cel-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .celebrate .cel-badge { animation: none; } }

/* v96: סרטון הדגמה */
.demo-btn { display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid #DCCFEA; background: linear-gradient(135deg, #FBE3EE, #E2ECFC); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.demo-btn > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.demo-play { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #D63C6A, #5A6CF0); box-shadow: 0 8px 20px -8px rgba(90,60,140,.6); }
.demo-play svg { margin-left: 3px; }
html.dark .demo-btn { background: linear-gradient(135deg, #3A2433, #1F2A40); border-color: #4A3D5A; }
.demo-overlay { align-items: center; }
.demo-box { position: relative; width: 100%; max-width: 900px; }
.demo-box video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; display: block; box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); }
.demo-x { display: block; width: auto !important; margin: 0 0 10px auto; background: rgba(255,255,255,.92) !important; color: #222 !important; }

/* v98: demo at the top of settings */
.demo-top { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 4px; }
.demo-top .demo-btn { margin: 0; }
.demo-top [data-demo-share] { align-self: flex-start; }

/* v102: app lock + encryption */
.lock-screen { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lock-box { width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.lock-ico { width: 72px; height: 72px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); }
.lock-box h1 { margin: 0; }
.lock-box form { display: flex; flex-direction: column; gap: 10px; }
.lock-box input { font-size: 1.4rem; text-align: center; letter-spacing: 0.3em; }
.lock-forgot { text-align: start; }
.lock-setup { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.lock-setup label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.note-warn { background: color-mix(in srgb, var(--error) 10%, transparent); border-inline-start: 4px solid var(--error); padding: 8px 10px; border-radius: 8px; }
.lock-box input::placeholder { letter-spacing: normal; }
.lock-setup input { font-size: 1.15rem; padding: 10px 12px; min-height: 48px; border-radius: 12px; }

/* v104: push notifications */
.push-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.push-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.push-row .push-name { grid-column: 1 / -1; }
.push-row select, .push-row input[type="time"] { width: 100%; min-width: 0; }
.push-row:last-child { border-bottom: 0; }
.push-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.push-name input { width: 22px; height: 22px; }
.push-row select, .push-row input[type="time"] { min-height: 40px; border-radius: 10px; padding: 4px 6px; font-size: 0.95rem; }

/* v107: bell on the home screen */
.bell-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding-inline: 10px; }
.bell-btn.on { color: var(--accent); }
.bell-dot { position: absolute; top: 6px; inset-inline-end: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg, #fff); }
.push-card.flash { animation: pushFlash 1.6s ease-out; }
@keyframes pushFlash { 0%, 40% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .push-card.flash { animation: none; outline: 3px solid var(--accent); } }
.top-actions { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }

/* v108: time wheel picker */
.time-btn { min-height: 40px; width: 100%; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); background: var(--surface); color: inherit; font: inherit; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; cursor: pointer; }
.time-btn:disabled { opacity: .55; cursor: default; }
.tw-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20, 10, 20, .45); display: flex; align-items: flex-end; justify-content: center; }
.tw-sheet { width: 100%; max-width: 480px; background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.18); animation: twUp .22s ease-out; }
@keyframes twUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tw-sheet { animation: none; } }
.tw-grab { width: 44px; height: 5px; border-radius: 3px; background: color-mix(in srgb, currentColor 25%, transparent); margin: 0 auto 8px; }
.tw-title { text-align: center; margin: 0 0 10px; font-size: 1.15rem; }
.tw-wheels { position: relative; display: flex; justify-content: center; align-items: center; gap: 4px; height: 220px; background: var(--accent-soft); border-radius: 18px; overflow: hidden; }
.tw-band { position: absolute; left: 14px; right: 14px; top: 88px; height: 44px; border-radius: 12px; border: 2px solid var(--accent); pointer-events: none; }
.tw-wheel { width: 90px; height: 220px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); outline: none; border-radius: 12px; }
.tw-wheel:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.tw-wheel::-webkit-scrollbar { display: none; }
.tw-opt, .tw-pad { height: 44px; display: grid; place-items: center; font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; scroll-snap-align: center; cursor: pointer; }
.tw-pad { scroll-snap-align: none; cursor: default; }
.tw-wheels::before { content: ''; } /* keeps band layering */
.tw-colon { font-size: 1.75rem; font-weight: 800; }
.tw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* v110: separate notifications screen + link card in settings */
.nav-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.nav-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.nav-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-txt b { font-size: 1.1rem; }
.nav-arrow { font-size: 1.8rem; line-height: 1; color: var(--muted); }

/* v114: invite friends (QR) */
.invite-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.invite-lead { margin: 0; font-size: 1.05rem; }
.qr-box { background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 10px 28px rgba(80, 30, 60, .14); width: min(78vw, 300px); }
.qr-svg { display: block; width: 100%; height: auto; }
.invite-url { margin: 0; font-weight: 800; font-size: 1.2rem; color: var(--accent-deep); }
.invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.invite-how { width: 100%; text-align: start; background: var(--accent-soft); border-radius: 14px; padding: 10px 14px; }
.invite-how summary { font-weight: 700; cursor: pointer; }
.invite-how ol { margin: 8px 0; padding-inline-start: 22px; }

/* קביעת מועד לטיפול הבא (v116) */
.plan-box { margin-top: 6px; }
.plan-open { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.plan-state { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; font-size: .92rem; font-weight: 600; }
.plan-btns { display: inline-flex; gap: 12px; }
.plan-form { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.14); }
.plan-form input[type=date] { min-height: 44px; font: inherit; border-radius: 10px; border: 1px solid rgba(0,0,0,.15); padding: 6px 10px; background: var(--surface); color: var(--text); }
.plan-note { margin: 0; font-size: .85rem; opacity: .9; }
.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-box .link-btn { color: inherit; font-size: 15px; min-height: 44px; }
/* טיפול מתוכנן בהיסטוריה (v117) */
.planned-card { gap: 10px; }
.planned-card .row-between { flex-wrap: wrap; gap: 8px; }
.planned-card h2 { margin: 0; font-size: 1.1rem; }
.planned-item .when span { color: var(--accent); font-weight: 700; }
/* v121: דמו לרוחב ובמסך מלא – הסרטון ממלא את גובה המסך */
@media (orientation: landscape) and (max-height: 600px) {
  .demo-overlay { padding: 6px; }
  .demo-box { max-width: none; width: 100%; height: 100%; display: flex; flex-direction: column; }
  .demo-box video { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 10px; }
  .demo-x { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; padding: 6px 12px; }
}

/* ---------- דף נחיתה למבקר חדש (v131) ---------- */
#app.wide { max-width: 1040px; }
.lp { display: flex; flex-direction: column; gap: 56px; padding: 28px 22px 48px; }
.lp h2 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 18px; color: var(--ink); }
.lp h3 { font-size: 19px; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.lp p { margin: 0; }
.lp-hero { display: grid; gap: 8px; }
.lp-mark { margin: 0 0 18px; font-size: 30px; font-weight: 800; }
.lp-title { font-size: clamp(40px, 11vw, 68px); font-weight: 900; line-height: 1.04; letter-spacing: -0.5px; margin: 0 0 16px;
  background: var(--blend-deep); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
.lp-sub { font-size: 19px; color: var(--muted); max-width: 30em; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lp-ctas .btn { flex: 1 1 200px; text-align: center; text-decoration: none; }
.lp-fine { font-size: 15px; color: var(--muted); margin-top: 12px; }
.lp-path { width: 100%; max-width: 440px; height: auto; justify-self: center; margin-top: 18px; overflow: visible; }
.lp-track { fill: none; stroke: #E4DDEE; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1 16; }
.lp-line { fill: none; stroke: url(#lpg); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.lp-stop circle { fill: #fff; stroke-width: 5; }
.lp-stop.s1 circle { stroke: #E8336F; }
.lp-stop.s2 circle { stroke: #8A5FD6; }
.lp-stop.s3 circle { fill: #0866D9; stroke: #0866D9; }
.lp-flag { fill: #0866D9; stroke: #0866D9; stroke-width: 2; stroke-linejoin: round; }
.lp-stop text { font-family: var(--font); font-size: 15px; font-weight: 700; fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .lp-line { animation: lp-draw 1.8s cubic-bezier(.45,.05,.3,1) .25s both; }
  .lp-stop { animation: lp-pop .4s ease-out both; }
  .lp-stop.s1 { animation-delay: .2s; } .lp-stop.s2 { animation-delay: 1.05s; } .lp-stop.s3 { animation-delay: 1.9s; }
}
@keyframes lp-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes lp-pop { from { opacity: 0; } to { opacity: 1; } }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.lp-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.lp-list p { color: var(--muted); font-size: 17px; }
.lp-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.lp-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-ic-pink { background: #FCE4EC; color: #B8285A; }
.lp-ic-purple { background: #EEE6FA; color: #6A3FBF; }
.lp-ic-blue { background: #E3EEFC; color: #0B5BC0; }
.lp-founder { border-right: 6px solid; border-image: var(--blend-deep) 1; padding: 6px 20px 6px 0; }
.lp-quote { font-size: 24px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.lp-who { margin-top: 10px !important; font-size: 16px; color: var(--muted); font-weight: 600; }
.lp-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-facts li { position: relative; padding-right: 34px; font-size: 18px; color: var(--ink); }
.lp-facts li::before { content: ""; position: absolute; right: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E8A62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.lp-desk { display: none; }
.lp-qr { width: 150px; height: 150px; flex: none; border-radius: 12px; }
.lp-end { display: grid; gap: 14px; justify-items: center; text-align: center; }
.lp-end .lp-go { width: 100%; max-width: 420px; text-align: center; text-decoration: none; }
.lp-restore { color: var(--accent-deep); font-weight: 600; font-size: 16px; }
.lp-legal { display: flex; gap: 18px; font-size: 14px; }
.lp-legal a { color: var(--muted); }
@media (min-width: 900px) {
  .lp { padding: 56px 48px 64px; gap: 72px; }
  .lp-hero { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .lp-path { margin-top: 0; max-width: 460px; }
  .lp-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .lp-list li { grid-template-columns: 1fr; }
  .lp-founder { max-width: 760px; }
  .lp-quote { font-size: 32px; }
}
@media (min-width: 900px) and (hover: hover) {
  .lp-desk { display: flex; gap: 28px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 24px 28px; max-width: 640px; }
  .lp-desk h2 { margin-bottom: 6px; }
  .lp-desk p { color: var(--muted); }
}

/* תמונות התקדמות (v136) */
.photos-screen .file-btn { display: inline-flex; margin: 8px 0 4px; cursor: pointer; }
.photos-screen .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photos-screen .file-btn { position: relative; overflow: hidden; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-pair figure, .photo-tile { margin: 0; }
.photo-pair img, .photo-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: #E3E6EE; display: block; }
.photo-pair figcaption, .photo-tile figcaption { font-size: 14px; text-align: center; margin-top: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.photo-tile button { width: 100%; font-size: 13px; margin-top: 4px; }
.photo-tile .photo-del { margin-top: 10px; }
.photo-tile .photo-open { margin-top: 0; }

/* אתרי הזרקה (v137) */
button.bm-stat { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.bm-stat span small { display: block; font-size: 12px; font-weight: 600; opacity: .8; }
.bm-stat.off span { opacity: .4; border-style: dashed; }
.site-list { list-style: none; margin: 8px 0 0; padding: 0; }
.site-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.check-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 16px; }

.photo-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; }
.photo-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10, 12, 25, .92); display: flex; align-items: center; justify-content: center; padding: 6px; overflow: auto; }
.photo-big { width: 100%; max-width: 760px; background: var(--surface, #fff); color: var(--ink); border-radius: 18px; padding: 8px 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.photo-big img { width: 100%; max-height: calc(100dvh - 250px); min-height: 52vh; object-fit: contain; border-radius: 14px; background: #E3E6EE; }
.safety-link small { display: block; font-weight: 500; font-size: 13px; }

.photo-preview { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.photo-preview .photo-pair img { aspect-ratio: 3 / 4; max-height: 180px; }
.date-trio { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; margin-top: 4px; }
.date-trio select { min-height: 46px; font-size: 16px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--card-line, #cfd4e2); background: var(--surface, #fff); color: var(--ink); }
.photo-label { text-align: center; font-size: 16px; }

.howit-note { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #FFF4D6; color: #6B4E00; font-size: 14px; }
.howit-chart { margin-top: 8px; color: var(--ink); }
.howit-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.howit-cap { text-align: center; margin: 2px 0 0; }
.howit-source { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, currentColor 6%, transparent); font-size: 14px; line-height: 1.5; }
.howit-source b { font-weight: 700; }
.howit-card summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.howit-card summary::-webkit-details-marker { display: none; }
.howit-card[open] summary { margin-bottom: 8px; }
.howit-card h3 { margin: 14px 0 4px; font-size: 16px; }
.howit-slider { display: grid; gap: 4px; margin-top: 10px; font-size: 14px; }
.howit-slider input { width: 100%; accent-color: #D9447F; height: 32px; }
.howit-out { margin: 2px 0 0; font-weight: 700; min-height: 2.6em; }
.howit-pick { display: grid; gap: 4px; margin: 6px 0 4px; font-size: 14px; font-weight: 700; }
.howit-pick select { width: 100%; padding: 10px; border-radius: 12px; font-size: 16px; }
.med-preview { display: grid; gap: 4px; padding: 12px; margin: -4px 0 10px; border-radius: 14px; background: color-mix(in srgb, currentColor 5%, transparent); }
.med-preview[hidden] { display: none; }
.howit-all { margin-top: 8px; color: var(--ink); }
.howit-legend { display: grid; gap: 6px; margin-top: 6px; font-size: 14px; }
.howit-legend .hl { display: flex; align-items: center; gap: 8px; opacity: .75; }
.howit-legend .hl.on { opacity: 1; font-weight: 700; }
.howit-legend i { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.howit-links { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.howit-links a { color: inherit; text-decoration: underline; word-break: break-word; }
