/* פרופיל "הישות היא האדם" (מכון יופי, רפואה משלימה): מסתיר שדות של כלב ומודולים שכבויים. מופעל רק כש-body.profile-person, כלומר אף לקוח קיים לא מושפע.
   מתג מודול: body.off-<שם> (reports, training, diagnosis, boarding). */
body.profile-person .pp-hide { display: none !important; }
body.profile-person.reg-new .kv .v { white-space: pre-line; }
body.profile-person .tabbar [data-s="reports"],
body.off-reports .tabbar [data-s="reports"] { display: none !important; }
body.off-training .tabbar [data-s="training"],
body.off-training .tabbar [data-s="trainings"],
body.off-training .qa-main { display: none !important; }
body.off-reports .kpi[onclick*="reports"] { display: none !important; }
body.off-training .kpis { grid-template-columns: repeat(2, 1fr); }

/* תמונות לפני / אחרי בכרטיס הלקוח/ה */
body.profile-person .cph .cph-add { display: flex; gap: 14px; }
body.profile-person .cph .cph-add a { cursor: pointer; }
body.profile-person .cph .cph-day { margin: 8px 0 12px; }
body.profile-person .cph .cph-day > small { display: block; color: #6b7280; margin-bottom: 6px; }
body.profile-person .cph .cph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
body.profile-person .cph figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #f3f4f6; }
body.profile-person .cph figure img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; }
body.profile-person .cph figcaption { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; font-size: 13px; }
body.profile-person .cph figcaption button { border: 0; background: transparent; font-size: 20px; line-height: 1; color: #9ca3af; cursor: pointer; padding: 4px 6px; }
body.profile-person .cph .cph-before { color: #8a4b6b; }
body.profile-person .cph .cph-after { color: #0f766e; }

/* תמונות אנשים כבויות (config.peoplePhotos=false): בלי העלאה, החלפה או הסרה בכרטיס ובטופס הרישום הפנימי */
body.no-people-photos [onclick*="changeProfilePhoto"],
body.no-people-photos [onclick*="removeProfilePhoto"],
body.no-people-photos .photo-up { display: none !important; }
/* חיפוש לקוחה חוזרת: הירוק הבהיר נקבע inline ב-index.html, ולכן כאן !important */
body.profile-person #screen-register > .card:first-child { background: #fff !important; border-color: var(--line) !important; }
/* מסך בית של קליניקה: שלושה מדדים בשורה אחת */
body.profile-person .kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); }
body.profile-person .kpis.kpis-3 .kpi span { font-size: 12px; }
/* בית הקליניקה: שלוש קוביות ומתחת לכל אחת כפתור הפעולה שלה */
body.profile-person .kpi-acts.kpi-acts-3 { grid-template-columns: repeat(3, 1fr); }
body.profile-person .kpi-acts-3 .qa { padding: 10px 4px; font-size: 13px; gap: 4px; }
body.profile-person .kpis-3 .kpi small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
/* כרטיס לקוח/ה: אחרי שאבחון ואימון מוסתרים נשאר כפתור "טפסים" אחד, והוא במרכז ולא בחצי הימני של השורה */
body.profile-person .dg-pair { display: flex; justify-content: center; }
body.profile-person .dg-pair > .btn-s:not(.pp-hide) { flex: 0 1 min(100%, 420px); }
/* חלון ההגדרות בצבעי הפרופיל (25.11.2026): בלי המסגרות והרקעים הירוקים של Woofpen. הסגנונות כתובים inline ב-index.html ובקוד, ולכן כאן !important */
body.profile-person #settings-ov [style*="#C8E6B0"],
body.profile-person #settings-ov [style*="#E0EFD3"],
body.profile-person #settings-ov [style*="#c8e6b0"] { border-color: var(--line, #DEDCD5) !important; }
body.profile-person #settings-ov [style*="#F7FBF3"],
body.profile-person #settings-ov [style*="#EEF5E4"],
body.profile-person #settings-ov [style*="#F0FAF0"] { background: var(--primary-soft, #F4EEF2) !important; }
body.profile-person #settings-ov [style*="#2F5314"],
body.profile-person #settings-ov [style*="#2E7D32"] { color: var(--primary-d) !important; }
body.profile-person #settings-ov input:focus,
body.profile-person #settings-ov select:focus { border-color: var(--primary) !important; }
/* רשימת הלקוחות כטבלה במחשב (25.11.2026, אפשרות א׳): מ-900px הטבלה במקום הרשימה; בטלפון ובטאבלט צר הרשימה הרגילה נשארת */
body.profile-person .cl-tbl { display: none; }
@media (min-width: 900px) {
  body.profile-person #dogs-list:has(.cl-tbl) .tr-dogs.list { display: none; }   /* שלב 6: רק כשהטבלה קיימת (clinicClientTable, שלב 5ב). בלי זה במחשב הרשימה הייתה ריקה */
  body.profile-person .cl-tbl { display: block; margin-top: 4px; }
}
body.profile-person .cl-r { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.7fr) minmax(0, 1.5fr) minmax(0, 1.3fr) 120px; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line, #e6e0dc); cursor: pointer; }
body.profile-person .cl-r:not(.cl-h):hover { background: var(--primary-soft, #f7f1f4); }
body.profile-person .cl-h { font-size: 13.5px; font-weight: 700; color: #6f6871; padding: 4px 0 8px; border-bottom: 1.5px solid var(--ink, #1d1b20); cursor: default; }
body.profile-person .cl-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
body.profile-person .cl-who .av { width: 44px; height: 44px; font-size: 18px; flex: none; }
body.profile-person .cl-nm { font-size: 17px; font-weight: 700; color: var(--ink, #1d1b20); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.profile-person .cl-sub { font-size: 14.5px; color: #58525a; overflow-wrap: anywhere; }
body.profile-person .cl-mut { color: #8d868f; }
body.profile-person .cl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
body.profile-person .cl-tag { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 11px; background: #fbefe2; color: #8a5200; white-space: nowrap; }
body.profile-person .cl-act { text-align: end; }
body.profile-person .cl-book { border: 1px solid var(--line, #d9cdd3); color: var(--primary-d); border-radius: 8px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 14px; background: #fff; cursor: pointer; white-space: nowrap; }
body.profile-person .cl-book:hover { border-color: var(--primary); }
/* מסך הבית בשני טורים (25.11.2026, אפשרות 2). בטלפון טור אחד: כפתורים, היום ביומן, ממתין לך */
body.profile-person .ch-btns { display: flex; gap: 10px; margin: 6px 0 18px; flex-wrap: wrap; }
body.profile-person .ch-main { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 0; border-radius: 14px; background: var(--b, var(--primary)); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
body.profile-person .ch-sec { flex: 1 1 100%; min-height: 52px; border: 1.5px solid var(--b, var(--primary)); border-radius: 14px; background: #fff; color: var(--primary-d); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
body.profile-person .ch-cols { display: grid; grid-template-columns: 1fr; gap: 6px 32px; }
body.profile-person .ch-col .list-h { margin-top: 4px; }
body.profile-person .cw-list { display: flex; flex-direction: column; gap: 10px; }
body.profile-person .cw-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 14px 16px; border: 1px solid var(--line, #e2dcd8); border-radius: 12px; background: #fff; font: inherit; color: var(--ink, #1d1b20); cursor: pointer; }
body.profile-person .cw-item > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.profile-person .cw-item b { font-size: 15.5px; font-weight: 700; }
body.profile-person .cw-item small { font-size: 14px; color: #58525a; }
body.profile-person .cw-item.warn { border-color: #E7C27A; background: #FFF8E6; }
body.profile-person .cw-item.warn small { color: #7A5200; }
body.profile-person .cw-item:hover { border-color: var(--primary); }
@media (min-width: 900px) {
  body.profile-person .ch-btns { flex-wrap: nowrap; justify-content: flex-start; }
  body.profile-person .ch-main { flex: 0 1 320px; }
  body.profile-person .ch-sec { flex: 0 1 200px; }
  body.profile-person .ch-cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}
/* תזכורות: עיגול קטן לסוג הפריט (לא אליפסה שנמתחת), וההודעה הארוכה מקופלת מאחורי "הצגת ההודעה" */
body.profile-person .rem-h > span.ev-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft, #f4ecf0); color: var(--primary-d); }
body.profile-person .rem-det { margin: 8px 0; }
body.profile-person .rem-det > summary { cursor: pointer; color: var(--primary-d); font-size: 14px; font-weight: 700; text-decoration: underline; list-style: none; width: fit-content; }
body.profile-person .rem-det > summary::-webkit-details-marker { display: none; }
body.profile-person .rem-det[open] > summary { margin-bottom: 4px; }
/* "הצגת ההודעה" בצד שמאל, מתחת לכפתור (בקשת הבעלים 28.11). "שליחה שוב" ו"ביטול הסימון" באותה שורה בצד ימין;
   כשההודעה פתוחה היא תופסת שורה מלאה, והקישורים יורדים מתחתיה */
body.profile-person .rem[data-rem] .rem-foot .rem-det { order: 2; margin-inline-start: auto; }
body.profile-person .rem[data-rem] .rem-foot .rem-det > summary { display: flex; align-items: center; justify-content: center; min-width: 96px; min-height: 28px; margin-block: 0; margin-inline-start: auto; }   /* ברוחב הכפתור, ממורכז מתחתיו */
body.profile-person .rem[data-rem] .rem-foot:has(.rem-more) .rem-det > summary { min-height: 40px; }   /* באותו גובה כמו הקישורים שלידו */
body.profile-person .rem[data-rem] .rem-foot .rem-more { margin-inline: 0; }
body.profile-person .rem[data-rem] .rem-foot:has(.rem-det[open]) .rem-more { order: 3; }
body.profile-person .ch-col .tr-empty { text-align: start; padding: 10px 0; }
/* "היום ביומן" בטלפון (25.11.2026): הפרטים בשורה אחת ברוחב מלא בלי חיתוך (שם, טיפול, טלפון), וכל הפעולות בשורה אחת מתחתם,
   מיושרות מתחת לפרטים. אותן פעולות בדיוק, רק סידור. במחשב (900px ומעלה) וביומן עצמו אין שינוי */
@media (max-width: 899px) {
  body.profile-person #trainer-home .ss { flex-wrap: wrap; row-gap: 8px; column-gap: 12px; align-items: flex-start; }
  body.profile-person #trainer-home .ss .ss-m { flex: 1 1 calc(100% - 106px); min-width: 0; padding-top: 2px; }
  body.profile-person #trainer-home .ss .ss-m small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  body.profile-person #trainer-home .ss .ss-m + * { margin-inline-start: 94px; }
  body.profile-person #trainer-home .ss .ss-act, body.profile-person #trainer-home .ss .ss-rep { flex: none; }
}

/* שלב 6 באיחוד (1.12.2026): עיצוב 27.11-28.11 של הביוטי כמו בענף clinic. כל כלל כאן תלוי ב-body.profile-person או ב-body.bd-help-bar
   (ש-beauty-design.js מוסיף רק בפרופיל של אנשים), ולכן אצל המאלפים לא חל. מסך הבית של כלבנות טיפולית (body.mode-entity) נכנס בשלב 9. */
/* ===================== עיצוב 27.11 (ביוטי): מה שאושר למאלפים, מותאם לפרופיל אדם. הקוד ב-beauty-design.js ===================== */
/* b1: שם ופרטים ארוכים לא נקטעים, ביומן ובבית, בטלפון ובמחשב. הכפתורים נשארים במקומם */
body.profile-person #screen-schedule .ss .ss-m b, body.profile-person #trainer-home .ss .ss-m b { white-space: normal; overflow-wrap: anywhere; }
body.profile-person #screen-schedule .ss .ss-m small, body.profile-person #trainer-home .ss .ss-m small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* b2: יומן בטלפון: שורה אחת לכל תור, והכפתורים נפתחים מתחתיה במשולש. במחשב אין שינוי (הכפתורים בשורה כמו קודם) */
body.profile-person .bd-tog { display: none; }
body.profile-person .bd-acts { display: contents; }
@media (max-width: 767px) {
  body.profile-person #screen-schedule .ss[data-bd] { flex-wrap: wrap; align-items: center; row-gap: 10px; }
  body.profile-person #screen-schedule .ss[data-bd] .ss-m { flex: 1 1 0; }
  body.profile-person .bd-tog { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-2, #efeee9); color: var(--text, #1c1d20); cursor: pointer; }
  body.profile-person .bd-tog::before { content: ""; border-inline: 7px solid transparent; border-top: 9px solid currentColor; }
  body.profile-person .ss.bd-open .bd-tog { background: var(--b, var(--primary)); color: #fff; }
  body.profile-person .ss.bd-open .bd-tog::before { border-top: 0; border-bottom: 9px solid currentColor; }
  body.profile-person .bd-acts { display: none; }
  body.profile-person .ss.bd-open .bd-acts { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 8px; padding-inline-start: 2px; }
}

/* b3: כפתור "עזרה" בסרגל: בטלפון ריבוע בקצה הסרגל וכל הלשוניות בריבועים בקו דק, במחשב בתחתית תפריט הצד */
body.bd-help-bar #help-fab.bd-bar { position: static; box-shadow: none; z-index: auto; display: flex !important; }
body.bd-help-bar[data-screen="register"] #help-fab.bd-bar { display: none !important; }
body.bd-help-bar #help-fab.bd-bar .hf-ic { display: inline-grid; place-items: center; font-size: 0; }
@media (max-width: 767px) {
  body.bd-help-bar.mode-trainer .tabbar { gap: 6px; padding-inline: 8px; align-items: stretch; }
  body.bd-help-bar.mode-trainer .tabbar > button { border: 1px solid var(--line, #e3e0d8); border-radius: 12px; padding: 8px 2px; justify-content: center; }
  body.bd-help-bar.mode-trainer .tabbar > button .tl { min-height: 0; }   /* 28.11: סמל ותווית במרכז הריבוע, בלי מקום שמור לשורה שנייה */
  body.bd-help-bar.mode-trainer .tabbar > button.on { background: var(--b, var(--primary)); border-color: var(--b, var(--primary)); color: #fff; }
  /* 28.11 (בחירת הבעלים): "עזרה" במסגרת בלבד, כדי שרק המסך שבו נמצאים מלא */
  body.bd-help-bar #help-fab.bd-bar { flex-direction: column; justify-content: center; align-items: center; gap: 4px; height: auto; min-height: 0; padding: 8px 2px; border: 1.5px solid var(--b, var(--primary)); border-radius: 12px; background: var(--surface, #fff); color: var(--b-ink, var(--primary-d)); font-size: 12.5px; font-weight: 700; }
  body.bd-help-bar #help-fab.bd-bar .tr-ic { width: 27px; height: 27px; }
}
@media (min-width: 768px) {
  body.bd-help-bar.mode-trainer .tabbar { display: flex; flex-direction: column; }
  body.bd-help-bar #help-fab.bd-bar { margin-top: auto; width: 100%; height: 48px; padding: 0 16px; justify-content: center; gap: 8px; border-radius: var(--r, 12px); }
}

/* b4: "שיחה חדשה" בראש חלון העזרה, ליד הסגירה */
body.profile-person .tr-sh-h .bd-help-new { margin-inline-start: auto; margin-inline-end: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line, #e3e0d8); border-radius: 99px; background: none; color: var(--text, #1c1d20); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* כרטיס הלקוח/ה (b5 + החלטות 27.11): "עריכת פרטים" ליד השם, ריבועים, כפתורי פעולה, בלי מקטעים ריקים */
body.profile-person .bd-empty { display: none !important; }
body.profile-person .bd-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
body.profile-person .bd-title h2 { margin: 0; }
body.profile-person .bd-edit { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1.5px solid var(--b, var(--primary)); border-radius: 99px; background: var(--surface, #fff); color: var(--b-ink, var(--primary-d)); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
body.profile-person .bd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
body.profile-person .bd-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 10px 6px; border: 1px solid var(--line, #e3e0d8); border-radius: 14px; background: var(--surface, #fff); text-align: center; }
body.profile-person .bd-tile[role="button"] { cursor: pointer; }
body.profile-person .bd-tile small { font-size: 12.5px; color: var(--muted); }
body.profile-person .bd-tile b { font-size: 16px; font-weight: 800; color: var(--text); }
body.profile-person .bd-tile span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
body.profile-person .bd-tile .bd-none { color: var(--muted); font-weight: 600; }
body.profile-person .bd-tile .bd-plus { font-size: 30px; line-height: 1; color: var(--b-ink, var(--primary-d)); }
body.profile-person .bd-tile.bd-add { border-style: dashed; border-color: var(--b, var(--primary)); }
body.profile-person .dg-links.bd-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
body.profile-person .dg-links.bd-links > button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 14px; font-size: 15px; font-weight: 700; border: 1.5px solid var(--line, #e3e0d8); background: var(--surface, #fff); color: var(--text); }
body.profile-person .dg-links.bd-links > button.bd-danger { background: #FFF0F0; border-color: #F5C6C6; color: #B3261E; }

/* כרטיס: אפשרות א (בחירת הבעלים 28.11): כרטיס ראש אחד, ריבועים ושורת כפתורים, הכל באותו רוחב ובאותו מרווח */
body.profile-person #screen-dog.bd-card .bd-head { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; }
body.profile-person #screen-dog.bd-card .dg-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ph title edit" "ph own edit"; align-items: center; column-gap: 18px; row-gap: 2px; box-sizing: border-box; width: 100%; padding: 18px 20px; text-align: start; border: 1px solid var(--line, #e3e0d8); border-radius: 16px; background: var(--surface, #fff); }
body.profile-person #screen-dog.bd-card .dg-hero > .dg-photo { grid-area: ph; width: 76px; height: 76px; }
body.profile-person #screen-dog.bd-card .dg-hero .dg-ini { font-size: 32px; }
/* כפתורי התמונה (בעסק עם תמונות) קטנים ובפינות, כדי לא לכסות את העיגול הקטן */
body.profile-person #screen-dog.bd-card .dg-photo > button { width: 28px; height: 28px; bottom: -4px; }
body.profile-person #screen-dog.bd-card .dg-photo > button:not(.dg-rm) { left: -4px; }
body.profile-person #screen-dog.bd-card .dg-photo > button.dg-rm { right: -4px; }
body.profile-person #screen-dog.bd-card .bd-title { display: contents; }
body.profile-person #screen-dog.bd-card .dg-hero h2 { grid-area: title; align-self: end; margin: 0; font-size: 30px; overflow-wrap: anywhere; }
body.profile-person #screen-dog.bd-card .bd-edit { grid-area: edit; }
body.profile-person #screen-dog.bd-card .dg-hero > .dg-own { grid-area: own; justify-self: start; align-self: start; margin: 0 !important; }
/* תגית "רישום עצמי", שדות נוספים וכל תוספת אחרת: שורה מלאה מתחת */
body.profile-person #screen-dog.bd-card .dg-hero > :not(.dg-photo):not(.bd-title):not(h2):not(.dg-own) { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
body.profile-person #screen-dog.bd-card .dg-hero > .dg-custom, body.profile-person #screen-dog.bd-card .dg-hero > .dg-tags { justify-content: flex-start !important; }
body.profile-person #screen-dog.bd-card .bd-head .bd-tiles { margin: 0; gap: 12px; }
body.profile-person #screen-dog.bd-card .dg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 12px 0 8px; }
body.profile-person #screen-dog.bd-card .dg-actions > .dg-pair { display: contents; }
body.profile-person #screen-dog.bd-card .dg-actions > .dg-links.bd-links { display: contents; }
body.profile-person #screen-dog.bd-card .dg-actions > .btn-p, body.profile-person #screen-dog.bd-card .dg-actions > .btn-s { flex: 1 1 100%; margin: 0; }
body.profile-person #screen-dog.bd-card .dg-actions .dg-pair > .btn-s, body.profile-person #screen-dog.bd-card .dg-actions .dg-links.bd-links > button { flex: 1 1 150px; display: flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: 48px; margin: 0; padding: 0 8px; border-radius: 14px; font-size: 15px; font-weight: 700; }
@media (max-width: 767px) {
  body.profile-person #screen-dog.bd-card { padding-top: 14px; }
  /* "עריכת פרטים" ליד השם גם בטלפון (בקשת הבעלים 28.11, "כפתור ליד המלל"): אותה פריסה כמו במחשב, בגדלים קטנים */
  body.profile-person #screen-dog.bd-card .dg-hero { column-gap: 10px; padding: 14px 12px; }
  body.profile-person #screen-dog.bd-card .dg-hero > .dg-photo { width: 56px; height: 56px; }
  body.profile-person #screen-dog.bd-card .dg-hero > .dg-photo:has(> button):not(body.no-people-photos *) { width: 64px; height: 64px; }   /* עסק עם תמונות: מקום לשני כפתורי התמונה */
  body.profile-person #screen-dog.bd-card .dg-hero .dg-ini { font-size: 26px; }
  body.profile-person #screen-dog.bd-card .dg-hero h2 { font-size: 22px; line-height: 1.25; }
  /* שני מספרים בשדה הטלפון יורדים לשתי שורות ולא נכנסים מתחת לכפתור */
  body.profile-person #screen-dog.bd-card .dg-hero > .dg-own { min-width: 0; max-width: 100%; }
  body.profile-person #screen-dog.bd-card .dg-hero > .dg-own a { min-width: 0; overflow-wrap: anywhere; text-align: right; }
  body.profile-person #screen-dog.bd-card .bd-edit { height: 40px; gap: 4px; padding: 0 10px; font-size: 13px; }
  body.profile-person #screen-dog.bd-card .bd-head, body.profile-person #screen-dog.bd-card .bd-head .bd-tiles { gap: 10px; }
  body.profile-person #screen-dog.bd-card .dg-actions { gap: 10px; padding-top: 10px; }
  body.profile-person #screen-dog.bd-card .dg-actions .dg-pair > .btn-s { flex: 1 1 100%; }
  body.profile-person #screen-dog.bd-card .dg-actions .dg-links.bd-links > button { flex: 1 1 calc(50% - 5px); }
}
@media (max-width: 380px) {
  /* בטלפון צר הסמל שבכפתור העריכה לא מוצג, כדי שלשם יישאר רוחב */
  body.profile-person #screen-dog.bd-card .bd-edit svg { display: none; }
  body.profile-person #screen-dog.bd-card .bd-head .bd-tiles { gap: 8px; }
  body.profile-person #screen-dog.bd-card .bd-tile { padding: 10px 2px; }
  body.profile-person #screen-dog.bd-card .bd-tile b:not(.bd-plus) { font-size: 14px; white-space: nowrap; }
}

/* b6n: בטופס הצוות הכותרת "לקוח/ה חדש/ה" (או "עריכת כרטיס") כבר בסרגל העליון, בטלפון ובמחשב, ולכן הכותרת השנייה בתוך הטופס לא מוצגת */
body.profile-person #reg-title { display: none; }

/* n1: הודעת ניסיון שקטה (beauty-design.js): בטלפון שורה מתחת לשם העסק, במחשב כרטיס בתחתית תפריט הצד */
body.profile-person .bd-bizcol { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.2; }
body.profile-person .bd-trial { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: #8a5a00; white-space: nowrap; }
body.profile-person .bd-trial-card { display: none; }
@media (min-width: 768px) {
  body.profile-person .bd-trial { display: none; }
  body.profile-person .bd-trial-card { display: flex; flex-direction: column; gap: 2px; margin: auto 0 10px; padding: 10px 12px; border: 1px solid #f0d9a8; border-radius: 12px; background: #fff8e8; color: #7a4a00; font-size: 13px; }
  body.profile-person .bd-trial-card b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
  body.profile-person .bd-trial-card + #help-fab.bd-bar { margin-top: 0; }
  /* כשהסרגל העליון כן מוצג (יומיים אחרונים / אחרי הסוף): שורה משלו בראש המסך, ולא מתחת לתחתית הדף */
  body.profile-person .device:has(> #trial-bar) { grid-template-rows: auto 64px 1fr; grid-template-areas: "bar bar" "topbar sidebar" "content sidebar"; }
  body.profile-person .device > #trial-bar { grid-area: bar; }
  body.profile-person .device:has(> #trial-bar) > .tabbar { height: calc(100vh - 32px); }   /* תפריט הצד מתחת לסרגל: "עזרה" נשאר בתוך המסך */
}

/* תיקוני סקירה 27.11: הריבועים הם כפתורים אמיתיים (מקלדת וקורא מסך); המספרים הישנים (מפגש אחרון) לא מוצגים ליד הריבועים;
   כפתור "יש לי הערה" יורד למקום שבו היה כפתור העזרה הצף */
body.profile-person button.bd-tile { width: 100%; font: inherit; color: inherit; cursor: pointer; }
body.profile-person button.bd-tile:focus-visible { outline: 2px solid var(--b, var(--primary)); outline-offset: 2px; }
body.profile-person.off-reports .bd-card .kpis.dg-k { display: none !important; }
/* אותה עוצמת בורר כמו בערכת המאלפים (body:has(#help-fab)), אחרת הכלל לא חל. במחשב הכפתור עובר לצד התוכן, מחוץ לתפריט */
body.bd-help-bar:has(#help-fab) #remark-fab { bottom: calc(env(safe-area-inset-bottom) + 88px); }
@media (min-width: 768px) { body.bd-help-bar:has(#help-fab) #remark-fab { left: auto; right: 24px; bottom: 24px; } }

/* ===================== תיקוני פריסה 28.11 (הערות הבעלים על העיצוב של 27.11) ===================== */
/* טופס הצוות: "תור לקרוב משפחה" היא תיבת סימון קטנה ולא פס ארוך */
body.profile-person .field .rc-names > label { min-height: 44px; font-size: 15px; cursor: pointer; }
body.profile-person .field .rc-names input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; flex: none; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--b, var(--primary)); }
/* טופס הצוות: בחיפוש לקוח/ה חוזר/ת שדה הטלפון הוא העיקרי ו"נקה" כפתור קטן; רווח מתחת לכותרת; בלי קו מתחת לשורה האחרונה בריבוע */
body.profile-person #screen-register { padding-top: 14px; }
body.profile-person #screen-register #ret-phone { flex: 1 1 0; min-width: 0; height: 48px; box-sizing: border-box; padding: 0 14px; border: 1.5px solid var(--line, #e3e0d8); border-radius: 12px; background: var(--surface, #fff); color: var(--text); font: inherit; font-size: 16px; text-align: right; }
body.profile-person #screen-register > .card:first-child .btn { width: auto; flex: none; height: 48px; border: 1.5px solid var(--line, #e3e0d8); border-radius: 12px; background: var(--surface, #fff); color: var(--b-ink, var(--primary-d)); box-shadow: none; }
body.profile-person #screen-register .q-card > .q-row:not(:has(~ .q-row:not(.pp-hide))) { border-bottom: 0; }
/* "היום ביומן" ויומן: השעה לא נדבקת לפס הצבע */
body.profile-person #trainer-home .ss.ev[style*="--tc"] { padding-inline-start: 10px; }
body.profile-person #screen-schedule .ss.ev[style*="--tc"] { padding-inline-start: 10px; }
@media (max-width: 767px) { body.profile-person #screen-schedule .ss[data-bd] { column-gap: 8px; } }   /* הרווח מהפס לא בא על חשבון הטקסט: אחרת מספר טלפון נשבר לשתי שורות */
/* שם ארוך בבית במחשב לא נשבר בגלל הרווח מהפס; ומספר טלפון נשאר בשורה אחת */
@media (min-width: 900px) { body.profile-person #trainer-home .ss { column-gap: 8px; } }
body.profile-person .bd-nw { white-space: nowrap; }
/* טלפון צר (375): בראש "הלקוחות" הכפתורים בשורה משלהם, וטווח התאריכים של השבוע בשורה אחת */
body.profile-person #screen-schedule .wk-nav { flex-wrap: wrap; }
body.profile-person #screen-schedule .wk-nav b { white-space: nowrap; }
@media (max-width: 389px) {
  body.profile-person #screen-schedule .wk-nav .wk-jump { width: 100%; margin: 0; }
  body.profile-person #screen-dogs .pg-h { flex-wrap: wrap; row-gap: 10px; }
  body.profile-person #screen-dogs .pg-h .pg-btns { display: flex; width: 100%; gap: 8px; }
  body.profile-person #screen-dogs .pg-h .pg-btns .btn-sm { flex: 1 1 0; justify-content: center; white-space: nowrap; }
}
/* "היום ביומן" בטלפון: הכפתורים מתחת לטקסט, מיושרים אליו, ו"בוצע" נמתח עד קצה השורה (106 = שעה 48 + עיגול 34 + שני רווחים) */
@media (max-width: 899px) {
  body.profile-person #trainer-home .ss .ss-m + * { margin-inline-start: 106px; }
  body.profile-person #trainer-home .ss .ss-m + .ss-rep { flex: 1 1 0; justify-content: center; }
}
/* שורת הבית בטלפון (28.11, בחירת הבעלים): רק "✓ בוצע" קטן ומשולש קטן, בשורה אחת עם השם; הפרטים מתחת; שאר הפעולות נפתחות מתחת למשולש. אותה שורה גם ביומן (רשימה) */
@media (max-width: 767px) {
  body.profile-person #trainer-home .ss.bd-home, body.profile-person #screen-schedule .ss.bd-home { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "time icon name main tri" "time icon det det det"; align-items: center; column-gap: 8px; row-gap: 2px; }
  body.profile-person #trainer-home .ss.bd-home .ss-t, body.profile-person #screen-schedule .ss.bd-home .ss-t { grid-area: time; align-self: start; padding-top: 5px; }
  body.profile-person #trainer-home .ss.bd-home .ev-ic, body.profile-person #screen-schedule .ss.bd-home .ev-ic, body.profile-person #screen-schedule .ss.bd-home > .av { grid-area: icon; align-self: start; }
  body.profile-person #trainer-home .ss.bd-home .ss-m, body.profile-person #screen-schedule .ss.bd-home .ss-m { display: contents; }
  body.profile-person #trainer-home .ss.bd-home .ss-m b, body.profile-person #screen-schedule .ss.bd-home .ss-m b { grid-area: name; min-width: 0; }
  body.profile-person #trainer-home .ss.bd-home .ss-m small, body.profile-person #screen-schedule .ss.bd-home .ss-m small { grid-area: det; min-width: 0; }
  body.profile-person #trainer-home .ss.bd-home .ss-m ~ .ss-rep, body.profile-person #screen-schedule .ss.bd-home .ss-m ~ .ss-rep, body.profile-person #trainer-home .ss.bd-home .ss-m ~ .ss-ok, body.profile-person #screen-schedule .ss.bd-home .ss-m ~ .ss-ok { grid-area: main; display: inline-flex; align-items: center; justify-content: center; height: 34px; margin: 0; padding: 0 10px; font-size: 13px; white-space: nowrap; }
  body.profile-person #trainer-home .ss.bd-home .bd-tog, body.profile-person #screen-schedule .ss.bd-home .bd-tog { grid-area: tri; width: 36px; height: 34px; margin: 0; border-radius: 10px; }
  body.profile-person #trainer-home .ss.bd-home.bd-open .bd-acts, body.profile-person #screen-schedule .ss.bd-home.bd-open .bd-acts { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; padding: 0; }
}
/* כרטיס: בהיסטוריה שם הטיפול והתיעוד בשתי שורות ("הסרת שיער בלייזראין תיעוד") */
body.profile-person #screen-dog .ss .ss-who { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; gap: 2px; line-height: 1.35; }
/* היסטוריה מכווצת (28.11): הטיפולים הישנים מוסתרים עד ללחיצה על "הצגת כל ההיסטוריה" */
body.profile-person #screen-dog .bd-hist:not(.bd-open) .bd-older { display: none; }
body.profile-person #screen-dog .bd-hist-more { display: block; width: 100%; height: 46px; margin-top: 10px; border: 1.5px solid var(--line, #e3e0d8); border-radius: 14px; background: var(--surface, #fff); color: var(--b-ink, var(--primary-d)); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
/* טבלת הלקוחות: שם ארוך נשבר בתוך העמודה שלו ולא עולה על העמודה שלידו */
body.profile-person .cl-who > div { min-width: 0; }
body.profile-person .cl-nm { white-space: normal; overflow-wrap: anywhere; }
/* תזכורות: התווית "טופס לא נחתם" בתוך גוש הפרטים, בגודל הטקסט שלה ולא נמתחת */
body.profile-person .rem-who > span.tt-chip { align-self: flex-start; display: inline-block; margin-top: 4px; }
/* חלונות: בלי פס צבע ריק כשאין הודעה; בארכיון ה-X בשורת הכותרת */
body.profile-person .tr-sh-note:empty { display: none; }
body.profile-person #stat-modal-ov > div > div:first-child { float: left; margin: -4px 0 0 !important; }

/* הסרגל התחתון: טור לכל כפתור שמוצג. ערכת המאלפים מחלקת ל-6, ובביוטי יש 5, ולכן נשאר מקום ריק בקצה */
@media (max-width: 767px) {
  body.bd-help-bar.mode-trainer .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  body.bd-help-bar.mode-trainer .tabbar.bd-many { gap: 2px; padding-inline: 3px; }
  body.bd-help-bar.mode-trainer .tabbar.bd-many > button, body.bd-help-bar .tabbar.bd-many > #help-fab.bd-bar { min-width: 0; padding: 6px 0; }
  body.bd-help-bar.mode-trainer .tabbar.bd-many > button .tl, body.bd-help-bar .tabbar.bd-many > #help-fab.bd-bar span:not(.hf-ic) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 10px; line-height: 1.15; text-align: center; }
}

/* אתגר הכוכבים כמו אצל המאלפים: כרטיס אחד עם הניסיון. במחשב כרטיס בתחתית תפריט הצד, בטלפון פס אחד בבית */
body.profile-person .bd-fs-nav { display: none; }
@media (max-width: 767px) {
  body.profile-person:has(#screen-home.active .fs-bar.fs-trial) .bd-trial { display: none; }
}
@media (min-width: 768px) {
  body.profile-person #trainer-home .fs-bar { display: none; }
  body.profile-person .tabbar .bd-fs-nav { display: flex; flex: none; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; box-sizing: border-box; width: 100%; min-height: 56px; margin: auto 0 10px; padding: 8px 12px; border: 1px solid #F3D28A; border-radius: 12px; background: #FFF6DC; color: #5B4300; font-family: inherit; text-align: start; cursor: pointer; }
  body.profile-person .tabbar .bd-fs-nav > i { flex: none; font-style: normal; font-size: 24px; line-height: 1; color: #F2B01E; }
  body.profile-person .tabbar .bd-fs-nav > i::before { content: "★"; }   /* אותו כוכב כמו בפס האתגר */
  body.profile-person .tabbar .bd-fs-nav > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  body.profile-person .tabbar .bd-fs-nav b { font-size: 15px; font-weight: 800; }
  body.profile-person .tabbar .bd-fs-nav small { font-size: 12px; font-weight: 600; }
  body.profile-person .bd-fs-nav + #help-fab.bd-bar { margin-top: 0; }
  body.profile-person .tabbar:has(> .bd-fs-nav.fs-trial) > .bd-trial-card { display: none; }
}
/* החלון של האתגר, כמו אצל המאלפים (fs-v2): "הצעד הבא" בריבוע, ולידו רשימה קצרה */
body.profile-person .first-step.fs-v2 { gap: 9px; padding: 14px; }
body.profile-person .first-step.fs-v2 .fs-head > b { font-size: 17px; white-space: nowrap; }
body.profile-person .first-step.fs-v2 .fs-stars i { font-size: 19px; }
body.profile-person .first-step.fs-v2 .fs-gift { padding: 8px 10px; font-size: 13.5px; }
body.profile-person .first-step.fs-v2 .fs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; align-items: start; }
body.profile-person .first-step.fs-v2 .fs-now { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r, 12px); background: var(--b, var(--primary)); }
body.profile-person .first-step.fs-v2 .fs-now > small { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.82); }
body.profile-person .first-step.fs-v2 .fs-now > b { font-size: 17px; font-weight: 800; line-height: 1.25; color: #fff; }
body.profile-person .first-step.fs-v2 .fs-now > span { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.9); }
body.profile-person .first-step.fs-v2 .fs-now .fs-main { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 11px 8px; background: #fff; color: var(--b-ink, var(--primary-d)); font-size: 14.5px; line-height: 1.25; }
body.profile-person .first-step.fs-v2 .fs-now .fs-arr { flex: none; font-size: 17px; line-height: 1; }
body.profile-person .first-step.fs-v2 .fs-side { gap: 0; padding-top: 2px; background: none; box-shadow: none; }
body.profile-person .first-step.fs-v2 .fs-side li { gap: 6px; padding: 5px 2px; border: 0; }
body.profile-person .first-step.fs-v2 .fs-side li > i { font-size: 15px; }
body.profile-person .first-step.fs-v2 .fs-side li b { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--muted); }
body.profile-person .first-step.fs-v2 .fs-side li.next b { font-weight: 800; color: var(--b-ink, var(--primary-d)); }
body.profile-person .first-step.fs-v2 .fs-side li.next > i { color: var(--b, var(--primary)); }
body.profile-person .first-step.fs-v2 .fs-hide { margin-top: -2px; }

/* שלב 6: סימן קו בהודעה קופצת במקום אימוג'י (אזהרה, הצלחה), כמו ב-clinic styles.css; person-ui.js מסמן את data-kind */
/* סימן קו בהודעה במקום אימוג'י: אזהרה/שגיאה ו"הצליח" */
body.profile-person .toast[data-kind]::before{content:"";flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:var(--toast-ic) center/contain no-repeat;mask:var(--toast-ic) center/contain no-repeat}
body.profile-person .toast[data-kind="warn"]{--toast-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.8 19.5h18.4L12 3.5z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.1'/%3E%3C/svg%3E")}
body.profile-person .toast[data-kind="ok"],body.profile-person .toast[data-kind="ok-long"]{--toast-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.3 2.8 2.8L16 9.5'/%3E%3C/svg%3E")}
/* 29.11: הודעה ארוכה נשברת לשורות, אחרת בטלפון היא יוצאת מהמסך. מעל חלון ההגדרות (300), שממנו מחליפים סיסמה */
body.profile-person .toast[data-kind="ok-long"]{box-sizing:border-box;width:max-content;max-width:calc(100% - 32px);white-space:normal;text-align:center;z-index:9600}
/* בטלפון: צמודה לתחתית המסך הגלוי, מעל סרגל הלשוניות, ולא לתחתית העמוד הארוך */
@media (max-width:767px){body.profile-person .toast[data-kind="ok-long"]{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 96px)}}

/* שלב 6: רוחב תוכן במחשב כמו ב-clinic (trainer-theme.css שם, 25.11 מ-desktop-wide-clinic 09bee63): הבית, הרשימות והיומן ב-1040px,
   כרטיס הלקוח/ה והטפסים בעמודה של 760px. אצל המאלפים הרוחב נשאר 760px. */
@media (min-width:768px){
  body.profile-person.mode-trainer .screen{max-width:1040px;padding-inline:24px;box-sizing:border-box}
  body.profile-person.mode-trainer #screen-dog,body.profile-person.mode-trainer #screen-register,body.profile-person.mode-trainer #screen-training{max-width:760px;padding-inline:0}
}

/* שלב 6: ההגדרות בחלון אחד (person-ui.js), ולכן בלי החץ של תת-התפריט החדש ליד "הגדרות" בתפריט הצד */
body.profile-person .tabbar>button[data-s="settings"]::after{content:none;display:none}

/* שלב 5ב באיחוד (מ-clinic): היסטוריית הטיפולים בכרטיס (clinic-extras.js) */
/* היסטוריה מכווצת (28.11): הטיפולים הישנים מוסתרים עד ללחיצה על "הצגת כל ההיסטוריה" */
body.profile-person #screen-dog .bd-hist:not(.bd-open) .bd-older { display: none; }
body.profile-person #screen-dog .bd-hist-more { display: block; width: 100%; height: 46px; margin-top: 10px; border: 1.5px solid var(--line, #e3e0d8); border-radius: 14px; background: var(--surface, #fff); color: var(--b-ink, var(--primary-d)); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
/* שלב 5ב באיחוד (מ-clinic trainer-theme.css ו-profile-person.css): היומן של הקליניקה (תצוגת יום וחודש, סוגי טיפול בצבע, אזורים, בקשות מועד).
   במקור תחת .mode-trainer; כאן תחת body.profile-person, כדי שאצל המאלפים שום כלל לא יחול */
body.profile-person #trainer-home .ss.ev[style*="--tc"] { padding-inline-start: 10px; }
body.profile-person #screen-schedule .ss.ev[style*="--tc"] { padding-inline-start: 10px; }
body.profile-person .ss.ev[style*="--tc"]{border-inline-start:4px solid var(--tc)}
body.profile-person .ss.ev[style*="--tc"] .ev-ic{background:color-mix(in oklab,var(--tc) 14%,white);color:var(--tc)}
body.profile-person .ss.ev.tent,body.profile-person .wk-i.tent{outline:1.5px dashed var(--tc,#B26A00);outline-offset:-2px;opacity:.78}
body.profile-person .clinic-card{margin:0 0 12px;padding:12px 14px}
body.profile-person .ev-kinds .ev-brk{flex-basis:100%;height:0}
body.profile-person .ev-kinds{flex-wrap:wrap;gap:5px}
body.profile-person .ev-kinds .ev-kh{flex-basis:100%;margin:8px 0 0;font-size:12.5px;font-weight:700;color:var(--muted)}
body.profile-person .ev-kinds .ev-kh:first-child{margin-top:0}
body.profile-person .ev-kinds button{height:34px;padding:0 11px;font-size:14px;border-inline-start:5px solid var(--kc)}
body.profile-person .ev-kinds button.on{background:var(--kc);border-color:var(--kc);color:#fff}
body.profile-person .ss-t .ss-end{display:block;font-family:inherit;font-size:11px;font-weight:500;color:var(--muted);margin-top:1px;white-space:nowrap}
body.profile-person .dv{position:relative;border:1px solid var(--line);border-radius:var(--r2);background:var(--surface);overflow:hidden;margin-bottom:16px}
body.profile-person .dv-h{position:absolute;inset-inline:0;border-top:1px solid var(--line-2);height:0;pointer-events:none}
body.profile-person .dv-h:first-child{border-top:0}
body.profile-person .dv-h span{position:absolute;inset-inline-start:8px;top:-9px;font-size:12px;color:var(--muted);background:var(--surface);padding:0 4px;font-variant-numeric:tabular-nums}
body.profile-person .dv-slot{position:absolute;inset-inline-start:56px;inset-inline-end:0;border:0;background:none;cursor:pointer;padding:0}
body.profile-person .dv-slot:hover{background:var(--b-soft)}
body.profile-person .dv-lane{position:absolute;top:0;bottom:0;inset-inline-start:56px;inset-inline-end:4px;pointer-events:none}
body.profile-person .dv-i{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:4px 7px;border:0;border-radius:8px;background:color-mix(in srgb,var(--tc) 16%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tc) 45%,#fff);border-inline-start:5px solid var(--tc);font:inherit;text-align:start;cursor:pointer;overflow:hidden;color:var(--ink,#222)}
body.profile-person .dv-i b{font-size:12.5px;font-variant-numeric:tabular-nums}
body.profile-person .dv-i span{font-size:13.5px;font-weight:700;line-height:1.2}
body.profile-person .dv-i small{font-size:11.5px;color:var(--muted)}
body.profile-person .dv-i.done{opacity:.7}
body.profile-person .dv-i.tent{outline:1.5px dashed var(--tc);outline-offset:-2px}
body.profile-person .dv-now{position:absolute;inset-inline:0;height:0;border-top:2px solid #D32F2F}
body.profile-person .mv{border:1px solid var(--line);border-radius:var(--r2);background:var(--surface);overflow:hidden;margin-bottom:16px}
body.profile-person .mv-wd,body.profile-person .mv-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
body.profile-person .mv-wd span{text-align:center;font-size:13px;font-weight:700;padding:8px 0;border-bottom:1px solid var(--line-2);color:var(--muted)}
body.profile-person .mv-c{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:68px;padding:6px 2px;border:0;border-bottom:1px solid var(--line-2);border-inline-start:1px solid var(--line-2);background:none;font:inherit;cursor:pointer}
body.profile-person .mv-c.empty{cursor:default}
body.profile-person .mv-c b{font-size:15px;font-weight:600;width:28px;height:28px;display:grid;place-items:center;border-radius:50%}
body.profile-person .mv-c.today b{background:var(--b);color:#fff}
body.profile-person .mv-c.past{opacity:.6}
body.profile-person .mv-c:not(.empty):hover{background:var(--b-soft)}
body.profile-person .mv-d{display:flex;gap:3px;flex-wrap:wrap;justify-content:center;min-height:8px}
body.profile-person .mv-d i{width:8px;height:8px;border-radius:50%;display:block}
body.profile-person .mv-d em{font-size:10px;font-style:normal;color:var(--muted)}
body.profile-person .mv-c small{font-size:11px;color:var(--muted)}
body.profile-person .cal-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:68px;margin:6px 0 14px;border:0;border-radius:18px;background:var(--b);color:#fff;font:inherit;font-size:21px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px color-mix(in srgb,var(--b) 35%,transparent)}
body.profile-person .cal-cta:active{transform:scale(.99)}
body.profile-person .ev-ag{margin:6px 0 10px}
body.profile-person .ev-ag b{display:block;font-size:13.5px;margin-bottom:4px}
body.profile-person .ev-area.on,body.profile-person .ev-fm.on,body.profile-person .es-fm.on{background:var(--b);border-color:var(--b);color:#fff}

/* שלב 6: כפתורי תצוגת היומן (רשימה / יום / שבוע / חודש) גדולים, כמו ב-clinic (trainer-theme.css שם, 823-825) */
body.profile-person .sv-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;border-bottom:0;margin:12px 0 4px}
body.profile-person .sv-tabs button{margin:0;padding:0 8px;min-height:52px;font-size:18px;font-weight:700;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text)}
body.profile-person .sv-tabs button.on{background:var(--b);border-color:var(--b);color:#fff}

/* שלב 6: שבוע ביומן בטלפון: יום מתחת ליום, כמו ב-clinic (trainer-theme.css שם, 782-791). המאלפים נשארים בטורים */
body.profile-person.mode-trainer .wk-nav .wk-jump{margin-inline-start:auto;height:34px;border:1px solid var(--line);border-radius:10px;padding:0 8px;background:var(--surface);font:inherit;font-size:13.5px}
@media (max-width:767px){
  body.profile-person.mode-trainer .wk{grid-template-columns:1fr}
  body.profile-person.mode-trainer .wk-d{min-height:0;border-inline-start:0;border-top:1px solid var(--line-2);flex-direction:column}
  body.profile-person.mode-trainer .wk-d:first-child{border-top:0}
  body.profile-person.mode-trainer .wk-h{flex-direction:row;gap:8px;justify-content:flex-start;border-bottom:0;padding-bottom:2px}
  body.profile-person.mode-trainer .wk-h b{font-size:15px}
  body.profile-person.mode-trainer .wk-h span{font-size:13px}
  body.profile-person.mode-trainer .wk-i{flex-direction:row;gap:8px;align-items:center}
}

/* שלב 6: בחלון ההגדרות הקודם (person-ui.js) תגית ההרשאה לא מקבלת את גובה השורה של ההגדרות החדשות (settings-nav.css), כמו ב-clinic */
body.profile-person #settings-ov #my-role{line-height:normal}

/* שלב 6: ברשימת הצעדים של אתגר הקליניקה הטקסט נשבר לשורות, כמו ב-clinic (אצל המאלפים שורה אחת, trainer-theme.css 865) */
body.profile-person .first-step.fs-v2 .fs-side li b{white-space:normal}
