/* ================================================================
   DELTA — מערכת עיצוב
   טורקיז רגוע (#2f8b86) על לבן ואפור־מנטה. שני עקרונות מבניים:
   רשימות מופרדות בקו שיער ולא בכרטיס לכל שורה, ומספרים עומדים
   בפני עצמם בלי אריח מסביב. זה מה שמוריד את הרעש מהמסך.
   כל שמות המחלקות נשמרו כדי שכל המסכים יתהפכו יחד.
   ================================================================ */
:root {
    --bg:        #f2f7f6;
    --bg-soft:   #f8fbfa;
    --card:      #ffffff;
    --card-2:    #eef4f3;
    --line:      #dfe8e6;
    --text:      #12211f;
    --muted:     #4f625f;
    --dim:       #5b6b68;

    --accent:      #2f8b86;   /* טורקיז — כפתורים ומצב פעיל */
    --accent-ink:  #1f6b67;   /* אותו גוון, כהה מספיק לטקסט קטן */
    --accent-2:    #4fc4be;
    --accent-deep: #12403d;
    --ink:         #12211f;
    --sky:         #7fb8b4;
    --lime:      #146c49;
    --orange:    #96521f;   /* כהה מספיק לטקסט על הרקעים הרכים */
    --pink:      #b8557f;
    --purple:    #5a5aa8;
    --green:     #146c49;
    --red:       #c53a30;
    --amber:     #916006;

    --accent-soft: #e2f0ee;
    --sky-soft:    #eaf4f3;
    --lime-soft:   #e3f1ea;
    --orange-soft: #f8ede4;
    --purple-soft: #ecebf6;

    --grad: linear-gradient(135deg, #26807b 0%, #1a625e 100%);   /* לבן עליו עובר AA */
    --grad-warm: linear-gradient(135deg, #4fc4be 0%, #2f8b86 55%, #12403d 100%);
    --grad-cool: linear-gradient(135deg, #1f6b67 0%, #2f8b86 100%);

    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 1px 3px rgba(18, 33, 31, .05);
    --shadow-lg: 0 8px 24px rgba(18, 33, 31, .09);
    --nav-h: 66px;
    --safe-b: env(safe-area-inset-bottom, 0px);

    /* משטחים חצי-שקופים ודמות האנטומיה — טוקנים כדי שהמצב הכהה יחליף אותם */
    --topbar-bg: rgba(255, 255, 255, .92);
    --nav-bg:    rgba(255, 255, 255, .97);
    --seg-on:    #ffffff;
    --bm-skin:   #d6e3ec;
    --bm-edge:   #bccfdd;
    --chart-label: #8ba09b;

    /* חמש רמות מפת הגוף — דיו ורקע רך לכל רמה */
    --lv1-ink: #177d55;  --lv1-soft: #e0f0e8;
    --lv2-ink: #35753f;  --lv2-soft: #e4f0e2;
    --lv3-ink: #7c5f0c;  --lv3-soft: #f4ecd6;
    --lv4-ink: #8f4d18;  --lv4-soft: #f6e8da;
    --lv5-ink: #a4231b;  --lv5-soft: #f9e4e2;
}

/* ================================================================
   מצב כהה — עוקב אחרי הגדרת המכשיר. אותם שמות טוקנים, ערכים אחרים:
   ירוק-פחם עמוק במקום לבן, טורקיז בהיר יותר כי על רקע כהה הצבע
   הבהיר הוא שקריא. אין media query אחר בקובץ — הכל נשען על הטוקנים.
   ================================================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:        #0f1514;
        --bg-soft:   #121918;
        --card:      #1a2321;
        --card-2:    #222e2b;
        --line:      #2c3a37;
        --text:      #e8f0ee;
        --muted:     #aebfbb;
        --dim:       #8ba39e;

        --accent:      #3aa39d;
        --accent-ink:  #6fd3cd;   /* טקסט קטן על כהה חייב להיות בהיר */
        --accent-2:    #4fc4be;
        --accent-deep: #dff4f2;
        --ink:         #0b1110;
        --sky:         #7fb8b4;
        --lime:      #5ec99a;
        --orange:    #e5a163;
        --pink:      #e392b6;
        --purple:    #a9a9e4;
        --green:     #5ec99a;
        --red:       #f28b84;
        --amber:     #e6bb56;

        --accent-soft: #17322f;
        --sky-soft:    #16302e;
        --lime-soft:   #163126;
        --orange-soft: #322717;
        --purple-soft: #232338;

        --grad: linear-gradient(135deg, #2f8b86 0%, #1f6b67 100%);
        --grad-warm: linear-gradient(135deg, #3aa39d 0%, #26807b 55%, #123734 100%);

        --shadow: 0 1px 3px rgba(0, 0, 0, .3);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, .45);

        --topbar-bg: rgba(18, 25, 24, .92);
        --nav-bg:    rgba(18, 25, 24, .97);
        --seg-on:    #2c3a37;
        --bm-skin:   #2a3835;
        --bm-edge:   #3a4a46;
        --chart-label: #7a918c;

        --lv1-ink: #6fd3a4;  --lv1-soft: #15302a;
        --lv2-ink: #97d3a0;  --lv2-soft: #1b2f22;
        --lv3-ink: #e0c05f;  --lv3-soft: #322c15;
        --lv4-ink: #e8a568;  --lv4-soft: #332617;
        --lv5-ink: #f2938c;  --lv5-soft: #34201d;
    }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Rubik", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    /* clip ולא hidden: hidden הופך את body למיכל גלילה ושובר כל position:sticky בעמוד */
    overflow-x: clip;
}
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

body { min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
body.no-nav { padding-bottom: 0; }

a { color: var(--accent-ink); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 700; line-height: 1.28; letter-spacing: -.2px; }
h1 { font-size: 21px; }
h2 { font-size: 18px; }
h3 { font-size: 15.5px; }
p  { margin: 0 0 10px; line-height: 1.65; color: var(--muted); }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.topbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--topbar-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
}
.topbar-inner {
    max-width: 780px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
}
.topbar-wide .topbar-inner { max-width: 1240px; }
.topbar h1 { font-size: 19px; margin: 0; flex: 1; }
.topbar .sub { font-size: 12px; color: var(--dim); margin: 2px 0 0; }

.brand { display: flex; align-items: center; gap: 9px; }
/* אריח בהיר — בדיוק כמו האייקון בטלפון: משולש כחול על רקע נקי */
.brand-mark, .brand-tile {
    width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft);
    display: grid; place-items: center; flex-shrink: 0;
}
.brand-tile svg { width: 60%; height: 60%; }
/* הכיתוב הוא SVG מצויר, לא טקסט — כאן רק המרווח מתחתיו */
.brand svg[role="img"] { display: block; }
.brand .sub { margin-top: 3px; }

.icon-btn {
    width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--card); color: var(--muted); display: grid; place-items: center;
    font-size: 17px; cursor: pointer; position: relative; flex-shrink: 0;
}
.icon-btn:active { transform: scale(.94); }
.badge-dot {
    position: absolute; top: -4px; left: -4px; min-width: 18px; height: 18px;
    border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px;
    display: grid; place-items: center; padding: 0 5px; font-weight: 700;
}

.page { padding: 12px 0 20px; }

/* ---------------------------------------------------------------- cards */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 13px 14px;
    margin-bottom: 10px;
}
.card.tight { padding: 10px 11px; }
/* המסלול המומלץ — המסגרת היחידה בעובי 2 במערכת, בכוונה */
.card-featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 9px;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-sub { font-size: 12.5px; color: var(--dim); }

/* ההירו הוא הפוקוס: גוון מנטה רך, פינות גדולות יותר והרמה חזקה מכרטיס רגיל */
.hero {
    background: var(--accent-soft); border: none; color: var(--text);
    border-radius: 20px; padding: 16px;
    position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero::after { display: none; }
.hero::before { display: none; }
.hero h1, .hero h2, .hero h3 { color: var(--text); position: relative; }
.hero p { color: var(--muted); position: relative; }
.hero .small, .hero .dim { color: var(--dim) !important; }

/* ---------------------------------------------------------------- stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid.g2 { grid-template-columns: repeat(2, 1fr); }
/* מספר עם תווית מתחתיו, בלי אריח מסביב */
.stat {
    background: transparent; border: none; box-shadow: none;
    border-radius: 0; padding: 2px 0; text-align: start;
    min-width: 0; overflow: hidden;
}
.stat-grid {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 13px 14px; gap: 6px 18px; margin-bottom: 10px;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
}
.stat-value {
    font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-label {
    font-size: 11.5px; color: var(--dim); margin-top: 3px;
    white-space: normal; line-height: 1.3; overflow-wrap: anywhere;
}
.stat.link {
    cursor: pointer; font-family: inherit; text-align: start; position: relative;
    text-decoration: none; color: inherit;
}
.stat.link::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: -2px;
    width: 14px; height: 2px; border-radius: 2px; background: var(--line);
}
.stat.link:active { opacity: .6; }
.stat-detail { animation: statin .18s ease-out; }
@keyframes statin { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 12px; }
.quick-item {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    background: var(--card-2); border: none; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text);
    text-decoration: none; cursor: pointer; text-align: start;
}
.quick-item:active { opacity: .7; }
.quick-links { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px 2px 2px; }
.quick-links a { font-size: 13px; color: var(--accent-ink); }
.stat-sub { font-size: 11px; margin-top: 2px; white-space: normal; line-height: 1.3; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px; border: none;
    background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
    cursor: pointer; font-family: inherit; transition: transform .12s, opacity .12s;
    text-decoration: none; box-shadow: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost {
    background: var(--card); color: var(--text); border: 1px solid var(--line);
    box-shadow: none;
}
.btn-outline { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--accent); box-shadow: none; }
.btn-danger { background: var(--red); color: #fff; box-shadow: none; }
.btn-warm { background: var(--grad-warm); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; box-shadow: none; }
.btn-lg { padding: 12px 18px; font-size: 15.5px; border-radius: 13px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 120px; }

/* ---------------------------------------------------------------- chips */
.chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px;
    border-radius: 999px; background: var(--card); border: 1px solid var(--line);
    font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 600;
}
.chip.on { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
/* בלי זה השבבים נדחסים ומתפצלים לשתי שורות במקום לגלול */
.chip-row > .chip { flex: 0 0 auto; white-space: nowrap; }
.chip-row.wrap { flex-wrap: wrap; overflow-x: visible; }

.pill {
    display: inline-block; padding: 4px 11px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
}
.pill.green { background: var(--lime-soft); color: var(--green); }
.pill.red   { background: var(--accent-soft); color: var(--accent-ink); }
.pill.amber { background: var(--orange-soft); color: var(--orange); }
.pill.cyan  { background: var(--accent-soft); color: var(--accent-ink); }
.pill.gray  { background: var(--card-2); color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form-group { margin-bottom: 14px; min-width: 0; }
.form-group > input, .form-group > select, .form-group > textarea { min-width: 0; max-width: 100%; }
.form-group label {
    display: block; font-size: 13px; color: var(--muted);
    margin-bottom: 6px; font-weight: 600;
}
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=email], input[type=tel], input[type=time], input[type=search],
select, textarea {
    width: 100%; padding: 13px 14px; border-radius: 13px;
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
    font-size: 16px; font-family: inherit; outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent); background: var(--card);
    box-shadow: 0 0 0 3px rgba(47, 139, 134, .2);
}
::placeholder { color: var(--dim); opacity: .55; font-weight: 400; }
input[type=date], input[type=time] { text-align: right; min-height: 46px; }
input[type=date]::-webkit-date-and-time-value { text-align: right; }
input:required:invalid { border-color: rgba(245, 165, 36, .6); }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > * { min-width: 0; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-row-3 > * { min-width: 0; }
.form-row-3 .form-group:has(input[type=date]),
.form-row .form-group:has(input[type=date]) { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--dim); margin-top: 4px; }

/* סרגל מקטעים — רקע אפור בהיר, הפעיל לבן עם צל */
.seg { display: flex; gap: 4px; flex-wrap: wrap; background: var(--card-2);
       padding: 4px; border-radius: 14px; }
.seg input { display: none; }
.seg label {
    flex: 1; min-width: 80px; text-align: center; padding: 10px 8px; margin: 0;
    border-radius: 11px; border: none; background: transparent;
    color: var(--muted); font-size: 13.5px; cursor: pointer; font-weight: 600;
}
.seg input:checked + label {
    background: var(--seg-on); color: var(--text); box-shadow: 0 1px 4px rgba(22, 23, 27, .1);
}

/* ---------------------------------------------------------------- lists */
/* שורות מופרדות בקו דק. כרטיס לכל שורה יצר קיר של קופסאות. */
.list { display: flex; flex-direction: column; background: var(--card);
        border-radius: var(--radius); overflow: hidden; }
.list-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    background: transparent; border: none; box-shadow: none; border-radius: 0;
    border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
/* בתוך כרטיס הרקע כבר לבן — הרשימה לא צריכה רקע משלה */
.card > .list, .card .list { background: transparent; border-radius: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: 15px; }
.list-item .meta { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.list-item.link:active { background: var(--card-2); }

.avatar {
    width: 42px; height: 42px; border-radius: 14px; background: var(--grad);
    display: grid; place-items: center; font-weight: 800; color: #fff;
    font-size: 16px; flex-shrink: 0;
}
.avatar.sm { width: 34px; height: 34px; font-size: 13px; border-radius: 11px; }

/* ---------------------------------------------------------------- progress */
.bar { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.bar.thin { height: 6px; }

/* ---------------------------------------------------------------- nav */
.bottomnav {
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 60;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-b);
}
.bottomnav-inner {
    max-width: 780px; margin: 0 auto; height: var(--nav-h);
    display: grid; grid-template-columns: repeat(5, 1fr);
}
.navitem {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--dim); font-size: 10.5px; text-decoration: none; font-weight: 600;
    position: relative;
}
.navitem .ico { font-size: 20px; line-height: 1; }
.navitem.on { color: var(--accent-ink); }
.navitem.on::after {
    content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.navitem.center .ico {
    width: 46px; height: 46px; border-radius: 50%; background: var(--accent);
    display: grid; place-items: center; color: #fff; margin-top: -16px;
    box-shadow: 0 4px 14px rgba(47, 139, 134, .35); font-size: 22px;
}
.navitem.center::after { display: none; }

/* ---------------------------------------------------------------- flash */
.flash {
    padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; font-size: 14px;
    border: none; display: flex; gap: 9px; align-items: flex-start; font-weight: 600;
}
.flash.success { background: var(--lime-soft); color: var(--green); }
.flash.error   { background: var(--orange-soft); color: var(--red); }
.flash.warn    { background: var(--orange-soft); color: var(--orange); }
.flash.info    { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------------------------------------------------------------- empty */
.empty { text-align: center; padding: 36px 20px; color: var(--dim); }
.empty .ico { font-size: 44px; margin-bottom: 10px; opacity: .45; }

/* ---------------------------------------------------------------- icons */
.icn { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.icn-box {
    width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft);
    display: grid; place-items: center; color: var(--accent); flex-shrink: 0;
    border: none;
}
.icn-box.sm { width: 32px; height: 32px; border-radius: 10px; }
.icn-box.lg { width: 46px; height: 46px; border-radius: 15px; }
.icn-box.accent { background: var(--accent-soft); color: var(--accent); }
.icn-box.lime { background: var(--lime-soft); color: #1f9d5f; }
.icn-box.orange { background: var(--orange-soft); color: var(--orange); }
.icn-box.purple { background: var(--purple-soft); color: #6552d6; }
.icn-box.red { background: var(--accent-soft); color: var(--accent); }
.hero .icn-box { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------------------------------------------------------------- צילום ארוחה */
.cam-card {
    background: var(--card); box-shadow: var(--shadow);
    border: 1px dashed rgba(47, 139, 134, .45);
    border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.cam-result {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
}
.cam-preview { width: 100%; height: 170px; object-fit: cover; display: block; }
.cam-loading { padding: 14px; text-align: center; }
.cam-loading .typing { justify-content: center; }
.meal-thumb {
    width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
    flex-shrink: 0;
}

/* תמונת תרגיל ממוזערת — ברשימות ובבחירת תרגיל */
.ex-thumb {
    width: 46px; height: 46px; border-radius: 13px; object-fit: cover;
    flex-shrink: 0; background: var(--card-2);
}
.ex-thumb.lg { width: 58px; height: 58px; border-radius: 15px; }

/* ---------------------------------------------------------------- הדגמה */
.demo-photo {
    position: relative; aspect-ratio: 4 / 3;
    height: auto; max-height: 300px; min-height: var(--demo-h, 165px);
    border-radius: var(--radius); overflow: hidden; background: var(--card-2);
}
/* contain ולא cover: cover חתך לתרגילים חצי דמות. עדיף שוליים מאשר
   הדגמה שהראש או המשקולת שלה מחוץ למסגרת. */
.demo-photo img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; animation: demoflip 2.6s ease-in-out infinite;
}
.demo-photo img:nth-of-type(2) { animation-delay: 1.3s; }
@keyframes demoflip {
    0%, 42% { opacity: 1; }
    50%, 92% { opacity: 0; }
    100% { opacity: 1; }
}
/* אנימציה אמיתית — יושבת בדיוק באותה מסגרת של התצלומים */
/* קליפ האנימציה מגיע ריבועי — מסגרת ריבועית מבטלת פסים בצדדים */
.demo-photo.clip {
    /* width:100% ולא margin:auto — התוכן הוא absolute, ולכן בלי רוחב
       מפורש התיבה מתכווצת לאפס בתוך גריד. */
    aspect-ratio: 1 / 1; width: 100%; max-width: 300px; max-height: 300px;
    justify-self: center; min-height: 0;
    /* הקליפים מצולמים על רקע כהה (rgb 17,23,26) — המסגרת באותו צבע כדי
       שגם במצב בהיר הם ייראו כחלון מעוצב ולא כמלבן שחור מודבק */
    background: #11171a; border-radius: var(--radius-sm); overflow: hidden;
}
.demo-photo video.demo-clip {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; display: block; background: #11171a;
}
.demo-tag {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    background: rgba(12, 18, 32, .62); backdrop-filter: blur(4px);
    color: #fff; font-size: 10.5px; padding: 4px 10px; border-radius: 99px;
}
@media (prefers-reduced-motion: reduce) {
    .demo-photo img { animation: none; }
    .demo-photo img:nth-of-type(2) { opacity: 0; }
    /* הווידאו נשאר גלוי ומוקפא על פריים אחד — להסתיר אותו זה להשאיר
       את המשתמש בלי הדגמה בכלל. ההשהיה נעשית ב-JS. */
}

.demo {
    background: var(--card-2);
    border-radius: var(--radius); padding: 6px; overflow: hidden; position: relative;
}
.demo-label {
    position: absolute; top: 10px; right: 12px; font-size: 11px;
    color: var(--dim); z-index: 2;
}
.figure-svg { display: block; margin: 0 auto; }

/* דמות אנטומית — הדגמה שהשרירים העובדים נצבעים בה תוך כדי התנועה */
.demo-anat { cursor: pointer; display: flex; flex-direction: column; }
.demo-anat > [data-anatomy] { flex: 1; min-height: 0; display: flex; align-items: center; }
.demo-anat .anat-svg { max-height: 100%; }
.demo-anat .is-paused .anat-svg { opacity: .82; }
.anat-legend {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    font-size: 11px; color: var(--dim); padding: 2px 0 4px;
}
.anat-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 5px; }

.demo-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 560px) { .demo-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- מפת שרירים */
.bodymap {
    background: var(--card-2); border: none;
    border-radius: var(--radius); padding: 10px 6px 6px;
}
.bodymap-views { display: flex; justify-content: center; gap: 4px; }
.bodysvg { max-width: 50%; height: auto; }
.bodymap-views.single .bodysvg { max-width: 66%; }
/* מפת השרירים כתמונה — אותה דמות שבהדגמות, מלפנים ומאחור */
.bodyimg {
    max-width: 50%; height: auto; width: auto; object-fit: contain;
    background: transparent;
}
.bodymap-legend .dim { color: var(--dim); }
.bodymap-legend {
    display: flex; justify-content: center; gap: 14px; font-size: 11px;
    color: var(--dim); padding: 6px 0 2px;
}
.bodymap-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 5px; }
.muscle-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------------------------------------------------------------- workout */
.ex-card { background: var(--card); box-shadow: var(--shadow); border: none;
           border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.ex-card.done { box-shadow: 0 0 0 1.5px rgba(47, 163, 107, .5), var(--shadow); }
.ex-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ex-num {
    width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft);
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
    color: var(--accent); flex-shrink: 0;
}
.ex-title { font-weight: 700; font-size: 16px; }
.ex-meta { font-size: 12.5px; color: var(--dim); margin-top: 3px; }

/* ---------- כרטיס תרגיל מתקפל ---------- */
.ex-card.collapsed .ex-body { display: none; }
.ex-card.collapsed { padding: 10px 12px; }
.ex-card.finished {
    background: var(--lime-soft);
    box-shadow: 0 0 0 1.5px rgba(47, 163, 107, .35);
}
.ex-card.finished .ex-title { color: var(--green); }
.ex-toggle {
    display: flex; align-items: center; gap: 11px; width: 100%; cursor: pointer;
    background: none; border: none; padding: 0; font-family: inherit; text-align: right;
    color: inherit;
}
.ex-toggle .chev { color: var(--dim); transition: transform .2s; flex-shrink: 0; }
.ex-card:not(.collapsed) .ex-toggle .chev { transform: rotate(180deg); }
.ex-progress {
    font-size: 11.5px; font-weight: 700; color: var(--accent-ink);
    background: var(--accent-soft); border-radius: 99px; padding: 3px 9px; flex-shrink: 0;
}
.ex-card.finished .ex-progress { background: rgba(47, 163, 107, .18); color: var(--green); }
.ex-body { margin-top: 12px; }

/* ---------- שורת סט עם כפתורי הגדלה/הקטנה ---------- */
.set-row {
    display: grid; grid-template-columns: 20px 1fr 1fr 40px; gap: 6px;
    align-items: center; margin-bottom: 8px;
}
.set-row .idx { text-align: center; font-size: 12.5px; color: var(--dim); font-weight: 700; }
.step {
    display: grid; grid-template-columns: 26px 1fr 26px; align-items: center;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; min-width: 0;
}
.step button {
    height: 40px; border: none; background: none; color: var(--muted);
    font-size: 17px; font-weight: 700; cursor: pointer; padding: 0; line-height: 1;
}
.step button:active { background: var(--card-2); }
.step input {
    border: none; background: none; text-align: center; padding: 9px 0;
    font-size: 16px; font-weight: 700; min-width: 0; border-radius: 0;
}
.step input:focus { box-shadow: none; background: none; }
.set-row .ok {
    height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--card-2); color: var(--dim); font-size: 16px; cursor: pointer;
    display: grid; place-items: center;
}
.set-row.done .ok { background: var(--green); border-color: transparent; color: var(--card); }
.set-row.done .step { background: var(--lime-soft); border-color: transparent; }
.set-row.done .step input { color: var(--green); }
.set-head {
    display: grid; grid-template-columns: 20px 1fr 1fr 40px; gap: 6px;
    font-size: 11px; color: var(--dim); text-align: center; margin-bottom: 6px;
}
/* העתקה לסט הבא */
.copy-next {
    grid-column: 2 / 4; justify-self: start; margin: -4px 0 8px;
    background: none; border: none; color: var(--accent-ink); font-size: 12px;
    font-weight: 700; cursor: pointer; padding: 2px 0; font-family: inherit;
    display: none;
}
.set-row.done + .copy-next { display: block; }
/* מחשבון הפלטות — מופיע כשנוגעים בשדה משקל של תרגיל מוט */
.plate-hint {
    font-size: 12px; font-weight: 700; color: var(--accent-ink);
    background: var(--accent-soft); border-radius: 10px; padding: 7px 10px;
    margin-bottom: 8px;
}

/* שורת ההיסטוריה — מה עשית בפעם הקודמת */
.prev-line {
    font-size: 12px; color: var(--dim); background: var(--card-2);
    border-radius: 10px; padding: 7px 10px; margin-bottom: 10px;
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.prev-line b { color: var(--muted); font-weight: 700; }

.rest-timer {
    position: fixed; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); right: 16px; left: 16px;
    max-width: 748px; margin: 0 auto; z-index: 70;
    background: var(--grad); color: #fff; border-radius: 16px; padding: 12px 16px;
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: var(--shadow-lg); font-weight: 700;
}
.rest-timer.on { display: flex; }
.rest-timer .t { font-size: 24px; font-variant-numeric: tabular-nums; }
.rest-timer .track {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: rgba(255, 255, 255, .25); border-radius: 0 0 16px 16px; overflow: hidden;
}
.rest-timer .track > span { display: block; height: 100%; background: #fff; width: 0; transition: width .25s linear; }

/* ---------------------------------------------------------------- מסך המאמן */
/* ---------------------------------------------------------------- chat */
.chat {
    display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px;
    max-width: 100%; overflow-x: clip;
}
.bubble {
    max-width: min(86%, 520px); padding: 13px 15px; border-radius: 18px; font-size: 15px;
    line-height: 1.6; white-space: pre-wrap;
    /* טקסט ארוך או קישור בלי רווחים חייב להישבר, אחרת הבועה בורחת מהמסך */
    overflow-wrap: anywhere; word-break: break-word; min-width: 0;
}
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble.me { align-self: flex-start; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-end; background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.bubble.ai p { color: var(--text); }
.chat-input {
    position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 6px);
    display: flex; gap: 8px; padding: 10px 0;
    background: linear-gradient(to top, var(--bg) 74%, transparent);
}
.chat-input input { min-width: 0; flex: 1 1 auto; }
.chat-input .btn { flex-shrink: 0; white-space: nowrap; }
.typing { display: flex; gap: 4px; padding: 14px; align-self: flex-end; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--dim); font-weight: 600; white-space: nowrap; }
td { white-space: nowrap; }
tbody tr:hover { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------- charts */
.chart { width: 100%; height: 180px; display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); margin-top: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 5px; }

/* ---------------------------------------------------------------- misc */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.right { text-align: left; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; }
.mb0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.wrap-anywhere { overflow-wrap: anywhere; }
.grow { flex: 1; min-width: 0; }

details.acc { border: none; box-shadow: var(--shadow); border-radius: var(--radius-sm);
              background: var(--card); margin-bottom: 10px; }
details.acc summary {
    padding: 14px; cursor: pointer; font-weight: 600; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc[open] summary { border-bottom: 1px solid var(--line); }
details.acc .acc-body { padding: 14px; }

.modal-bg {
    position: fixed; inset: 0; background: rgba(22, 23, 27, .45); z-index: 100;
    display: none; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .2s ease;
}
.modal-bg.on { display: flex; }
.modal-bg.in { opacity: 1; }
.modal {
    background: var(--card); border: none;
    border-radius: 20px 20px 0 0; padding: 16px 14px calc(16px + var(--safe-b));
    width: 100%; max-width: 780px; max-height: 88vh; overflow-y: auto;
    transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .7, .4, 1);
}
.modal-bg.in .modal { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .modal-bg, .modal { transition: none; }
}

/* ---------------------------------------------------------------- תנועה
   כניסה רכה למסך ולכרטיסים — אפליקציה שמרגישה חיה, לא מסמך שקופץ.
   הכל מאחורי prefers-reduced-motion, וחד-פעמי בעליית העמוד. */
@media (prefers-reduced-motion: no-preference) {
    body { animation: pageIn .22s ease-out both; }
    @keyframes pageIn { from { opacity: 0 } to { opacity: 1 } }

    main.page > .hero,
    main.page > .card:not(.stat-detail),
    main.page > .stat-grid,
    main.page > .grid-2,
    main.page > a.card {
        animation: riseIn .34s ease-out both;
    }
    @keyframes riseIn {
        from { opacity: 0; transform: translateY(10px) }
        to   { opacity: 1; transform: none }
    }

    /* גרפים נמתחים במקום להופיע גמורים. מצב ההסתרה ההתחלתי חי רק כאן —
       כך שבמצב reduced-motion הגרף פשוט מצויר מלא ותקין. */
    .chart-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: drawLine .7s ease-out forwards; }
    @keyframes drawLine { to { stroke-dashoffset: 0 } }
    .chart-bar { transform-box: fill-box; transform-origin: bottom; animation: growBar .45s ease-out both; }
    @keyframes growBar { from { transform: scaleY(0) } to { transform: scaleY(1) } }
}
.modal-handle { width: 44px; height: 4px; border-radius: 99px; background: var(--line);
                margin: -8px auto 14px; }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 900px) {
    .stat-grid { gap: 14px; }
    .page { padding: 22px 0 32px; }
    .bottomnav-inner { max-width: 620px; }
    .bottomnav { right: 50%; left: auto; transform: translateX(50%);
                 max-width: 660px; border-radius: 22px 22px 0 0;
                 border: 1px solid var(--line); border-bottom: none;
                 box-shadow: 0 -4px 24px rgba(22, 23, 27, .07); }
    .admin-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
}

@media (max-width: 420px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 20px; }
    h1 { font-size: 22px; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
}

/* מסך התחברות/הרשמה */
.auth-wrap {
    max-width: 440px; margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 26px) 18px 40px;
}
.no-topbar { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
.auth-logo {
    width: 66px; height: 66px; border-radius: 22px; background: var(--accent-soft);
    display: grid; place-items: center; margin: 0 auto 16px;
    box-shadow: 0 6px 18px rgba(47, 139, 134, .18);
}
.auth-logo svg { width: 58%; height: 58%; }
.step-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.step-dots i { width: 26px; height: 4px; border-radius: 99px; background: var(--line); }
.step-dots i.on { background: var(--accent); }

@media print {
    .topbar, .bottomnav, .btn, .rest-timer { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}


/* ---------------------------------------------------------------- צפיפות למסך טלפון
   על מסך של 6 אינץ' המכולות הגדולות אכלו חצי מסך. כאן מקטינים אותן
   בלבד — כרטיסי הסטטיסטיקה, השבבים והכפתורים הקטנים נשארים כמו שהם,
   וכל שטח מגע נשאר מעל 44 פיקסל. */
@media (max-width: 480px) {
    .page { padding: 10px 0 18px; }
    .card { padding: 12px 13px; margin-bottom: 9px; }
    .hero { padding: 13px 14px; }
    .hero h2 { font-size: 17.5px; margin: 4px 0 3px; }
    .hero p { font-size: 13.5px; margin-bottom: 9px; }
    h1 { font-size: 20px; }
    .btn-lg { padding: 11px 16px; font-size: 15px; }
    .grid-2, .grid-3 { gap: 9px; }
    .list-item { padding: 10px 11px; }
    .demo-photo { --demo-h: 145px; }
    .ex-card { padding: 12px; }
    .ex-card.collapsed { padding: 9px 11px; }
}

/* ---------------------------------------------------------------- הסכמה לתקנון */
.agree {
    display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px;
    background: var(--card-2); border-radius: var(--radius-sm); padding: 11px 12px;
    cursor: pointer;
}
.agree input { width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--accent); }
.agree a { text-decoration: underline; }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
               margin: 18px 0 4px; font-size: 12px; }
.legal-links a { color: var(--dim); }

/* ---------------------------------------------------------------- מפת הגוף */
.bm-skel { fill: var(--bm-skin); stroke: var(--bm-edge); }
.bm-lines { stroke: var(--bm-skin); }
.bm-cap { fill: var(--chart-label); }
.bodymap.status { background: transparent; padding: 0; }
.bodymap.status .bodysvg { max-width: 50%; }
.body-legend {
    display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
    margin-top: 10px; font-size: 11.5px; color: var(--dim);
}
.body-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block;
                 margin-inline-end: 5px; vertical-align: -1px; }
.score-dot {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.lv1-ink { color: var(--lv1-ink); } .lv2-ink { color: var(--lv2-ink); }
.lv3-ink { color: var(--lv3-ink); } .lv4-ink { color: var(--lv4-ink); }
.lv5-ink { color: var(--lv5-ink); }
.score-dot.lv1 { background: var(--lv1-soft); color: var(--lv1-ink); }
.score-dot.lv2 { background: var(--lv2-soft); color: var(--lv2-ink); }
.score-dot.lv3 { background: var(--lv3-soft); color: var(--lv3-ink); }
.score-dot.lv4 { background: var(--lv4-soft); color: var(--lv4-ink); }
.score-dot.lv5 { background: var(--lv5-soft); color: var(--lv5-ink); }
.muscle-card { padding: 11px 12px; }
.muscle-card.open { box-shadow: 0 0 0 1.5px var(--line); }
.mgshape { transition: opacity .15s; }
.mgshape:active { opacity: .6; }

/* ===== מוכנות יומית (מסך הבית) — readiness.brief ===== */
.today-brief .tb-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.tb-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--accent-ink); }
.tb-eyebrow.tb-rest { color: var(--amber); }
.tb-eyebrow.tb-done_today { color: var(--green); }
.tb-title { margin: 4px 0 3px; font-size: 20px; line-height: 1.25; }
.tb-ring { flex-shrink: 0; }
.tb-ring .trk { fill: none; stroke: var(--line); stroke-width: 6; }
.tb-ring .val { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.tb-ring.lv-high .val { stroke: var(--green); }
.tb-ring.lv-mid .val { stroke: var(--amber); }
.tb-ring.lv-low .val { stroke: var(--red); }
.tb-ring .num { font-size: 19px; font-weight: 800; fill: var(--text); font-variant-numeric: tabular-nums; }
.tb-ring .lbl { font-size: 8.5px; fill: var(--dim); }
.tb-reason { display: flex; gap: 8px; align-items: flex-start; background: var(--card);
    border-radius: 11px; padding: 9px 11px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.tb-week { display: flex; gap: 4px; align-items: stretch; background: var(--card);
    border-radius: 11px; padding: 8px 8px; margin-bottom: 10px; }
.tb-dayc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 3px 0; border-radius: 8px; min-width: 0; }
.tb-dayc.is-today { background: var(--accent-soft); }
.tb-dayc .dw { font-size: 11px; color: var(--dim); }
.tb-dayc .dn { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-dayc .dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); }
.tb-dayc .dot.on { background: var(--accent); border-color: var(--accent); }
.tb-dayc .dot.act { border-color: var(--accent); border-style: dashed; }
.tb-weeksum { display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding-inline-start: 8px; margin-inline-start: 2px; border-inline-start: 1px solid var(--line); min-width: 48px; }
.tb-weeksum b { font-size: 18px; }
.tb-muscles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px;
    background: var(--card); border-radius: 11px; padding: 10px 12px; margin-bottom: 10px; }
.tb-m { display: grid; grid-template-columns: 62px minmax(0, 1fr) 36px; gap: 8px; align-items: center; font-size: 12px; }
.tb-m .nm { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-m.focus .nm { color: var(--text); font-weight: 700; }
.tb-m .pc { text-align: end; color: var(--dim); font-size: 11px; }
.tb-m .bar > span.lv-high, .tb-opt .r.lv-high { background: var(--green); }
.tb-m .bar > span.lv-mid { background: var(--amber); }
.tb-m .bar > span.lv-low { background: var(--red); }
.tb-list { background: var(--card); border-radius: 11px; padding: 9px 11px; margin-bottom: 10px; }
.tb-alt-h { margin: 12px 0 6px; }
.tb-alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 7px; }
.tb-alt form { margin: 0; }
.tb-opt { width: 100%; text-align: start; background: var(--card); border: 1px solid var(--line);
    border-radius: 11px; padding: 8px 10px; cursor: pointer; color: var(--text); font: inherit;
    display: flex; flex-direction: column; gap: 2px; }
.tb-opt:hover { border-color: var(--accent); }
.tb-opt .t { font-weight: 700; font-size: 13px; }
.tb-opt .s { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-opt .r { font-size: 11px; font-weight: 700; margin-top: 2px; background: none !important; }
.tb-opt .r.lv-high { color: var(--green); } .tb-opt .r.lv-mid { color: var(--amber); } .tb-opt .r.lv-low { color: var(--red); }
.tb-pace { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; line-height: 1.5; }
@media (max-width: 360px) { .tb-muscles { grid-template-columns: 1fr; } }

/* ===== חתימה על ההסכם ושאלון כשירות ===== */
.consent-card .agree { margin-bottom: 10px; }
.parq-q { display: flex; gap: 12px; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid var(--line); }
.parq-q:last-of-type { border-bottom: 0; }
.parq-t { font-size: 13.5px; line-height: 1.5; flex: 1; min-width: 0; }
.parq-seg { flex-shrink: 0; width: 116px; flex-wrap: nowrap; }
.parq-seg label { min-width: 0; padding: 8px 6px; }
.parq-warn { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--orange-soft); color: var(--text); font-size: 13px; line-height: 1.55; }
.sign-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sign-box input { font-size: 17px; font-style: italic; letter-spacing: .3px; }
