/* auth-stack.css — generated by scripts/bundle-auth-css.sh — do not edit */
/* --- auth-critical.css --- */
/* First-paint background for login/landing — in auth-stack (no inline style; CSP style-src 'self').
   TA-10: הצבעים כאן ליטרלים בכוונה (critical first-paint לפני שטוקנים נטענים) ולכן חייבים
   להישאר מסונכרנים ידנית עם tokens.css: #0d1117 == --bg-primary, #e6edf3 == --text-primary.
   אם --bg-primary/--text-primary משתנים ב-tokens.css — עדכן גם כאן. */
html {
    color-scheme: dark;
    background: #0d1117;
}

body.ds-login-layout {
    margin: 0;
    min-height: 100dvh;
    background: #0d1117;
    color: #e6edf3;
}

/* --- fonts.css --- */
/* Heebo — WOFF2 (61KB, committed) עם TTF fallback (ensure-heebo-font.sh); font-synthesis: none on body */
@font-face {
    font-family: 'Heebo';
    src:
        url('../fonts/Heebo-Regular.woff2') format('woff2'),
        url('../fonts/Heebo-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- tokens.css --- */
/* Design tokens (SSOT) — unlayered; linked from _Layout / _LoginLayout before cascade.css */
:root {
    color-scheme: dark;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    /* גובה סרגל-הניווט התחתון במובייל — 0 כברירת-מחדל; מקבל ערך אמיתי רק כשהסרגל מוצג
       (site.css @@supports selector(:popover-open)). אלמנטים המעוגנים לתחתית-ה-viewport
       (סרגל-שליחה, טוסטים, שורת-סיכום) מוסיפים אותו ל-bottom כדי לא להיחסם ע"י הסרגל. */
    --ds-bottom-nav-h: 0px;
    /* RTL: inline-start = צד ימין פיזי (Dynamic Island / notch ב-landscape) */
    --safe-inline-start: var(--safe-area-right);
    --safe-inline-end: var(--safe-area-left);
    --touch-target: 44px;
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: rgba(22, 27, 34, 0.85);
    --accent: #00d4ff;
    /* accent-derived material — single source of truth via color-mix (Baseline 2023).
       'in oklab' preserves wide-gamut so these auto-follow the P3 --accent below.
       Values are alpha-only mixes → visually identical to the prior rgba() literals. */
    --accent-dim: color-mix(in oklab, var(--accent) 25%, transparent);
    --accent-glow: color-mix(in oklab, var(--accent) 45%, transparent);
    --accent-strong: #79e8ff;
    --text-primary: #e6edf3;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --text-strong: #f0f6fc;
    --border: color-mix(in oklab, var(--accent) 20%, transparent);
    --danger: #f85149;
    --warning: #d29922;
    --success: #3fb950;
    /* צד טכנאי בדפי כניסה/נחיתה בלבד — לא תחליף ל---accent הכללי */
    --accent-tech: #6eb6ff;
    --accent-vacation: #7c3aed;
    /* פיקוח חופשות/חסימות — סמנטי (WCAG על רקע כהה) */
    --oversight-vacation-bg: rgba(124, 58, 237, 0.22);
    --oversight-vacation-border: rgba(167, 139, 250, 0.55);
    --oversight-vacation-fg: #ede9fe;
    --oversight-unavail-bg: color-mix(in oklab, var(--constraint) 48%, var(--bg-primary));
    --oversight-unavail-border: var(--constraint);
    --oversight-unavail-fg: #fff5f5;
    --oversight-both-bg: linear-gradient(135deg, color-mix(in oklab, var(--accent-vacation) 52%, var(--bg-primary)) 0%, color-mix(in oklab, var(--constraint) 56%, var(--bg-primary)) 100%);
    --oversight-both-border: color-mix(in oklab, var(--constraint) 70%, var(--accent-vacation));
    --oversight-both-fg: #f8fafc;
    --oversight-empty-fg: rgba(139, 148, 158, 0.55);
    /* לוח — צבעים סמנטיים מלאים: אילוץ (electric red, נפרד מ---danger) + חג/יום מיוחד (ענבר).
       גווני rgba שקופים (זוהר/צל) נשארים ליטרל — אפקט, לא צבע סמנטי. */
    --constraint: #ff2222;
    --holiday: #ffc107;
    --holiday-soft: #ffe08a;
    /* Subtle depth — soft elevation + surface sheen for a premium, non-flat feel */
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.18), 0 10px 30px rgba(0, 0, 0, 0.20);
    --shadow-card-hover: 0 16px 40px rgba(0, 212, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.22);
    --gradient-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 44%);
    --glow-primary: 0 0 26px rgba(0, 212, 255, 0.22);
    --content-max: 1200px;
    --content-wide: 1440px;
    --content-ultra: 1880px;
    --motion-press: 0.1s;
    --motion-fast: 0.16s;
    --motion-medium: 0.24s;
    --motion-reveal: 0.58s;
    --motion-hover: 0.38s;
    --motion-modal: 0.44s;
    --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-luxury-soft: cubic-bezier(0.33, 1, 0.68, 1);
    /* Open Props–aligned supplemental tokens (MIT naming, vendored — no npm) */
    /* radius scale — px (fixed; radii must NOT scale with the responsive html font-size) */
    --radius-1: 4px;
    --radius-2: 6px;
    --radius-3: 8px;
    --radius-4: 10px;
    --radius-5: 12px;
    --radius-6: 14px;
    --radius-7: 16px;
    --radius-8: 18px;
    --radius-round: 9999px;
    --size-3: 0.75rem;
    --size-4: 1rem;
    --size-5: 1.25rem;
    /* סקאלת מרווחים (SSOT) — rem, רוכבת על font-size הנזיל של :root כמו שאר ה-rem.
       מחליפה את פיזור הליטרלים (0.25rem→2.5rem). radii נשארים ב-px בכוונה (למעלה). */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --space-8: 2.5rem;
    /* סקאלת גדלי-טיפוגרפיה (SSOT) — יחס ~1.2. כותרות-display נשארות clamp (נזילות). */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 1.875rem;
    /* טוקני display (clamp) לכותרות-על — מאחדים את נוסחאות ה-clamp האד-הוק */
    --fs-display: clamp(1.75rem, 5vw, 2.55rem);
    --fs-title: clamp(1.45rem, 4vw, 2.15rem);
    --fs-subtitle: clamp(1.02rem, 1.6vw, 1.24rem);
    /* tracking-eyebrow — משטר ה-tracking הרחב לתוויות/eyebrows (0.08em) */
    --tracking-eyebrow: 0.08em;
    /* רצפות-track ל-auto-fit grids — כרטיסים גולשים באחידות. --metric-min = אריחי-מדד קטנים (tier נפרד). */
    --card-min: 220px;
    --metric-min: 135px;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.14);
    --page-min-height: 100vh;
    /* breakpoints — hardcoded px ב-@media (var() אסור בתנאי-מדיה); אין טוקני breakpoint. */
    --shell-pad: clamp(0.75rem, 2.5vw, 1.5rem);
}

/* WCAG — מערכת / משתמש מעדיף ניגודיות גבוהה (ללא מצב ידני נפרד) */
@media (prefers-contrast: more) {
    :root {
        --text-muted: #c9d1d9;
        --border: rgba(0, 212, 255, 0.42);
        --border-soft: rgba(255, 255, 255, 0.14);
        --accent-strong: #9ef0ff;
    }
}

/* ידני (אופציונלי): document.documentElement.dataset.contrast = 'high' */
html[data-contrast="high"] {
    --text-muted: #c9d1d9;
    --border: rgba(0, 212, 255, 0.42);
    --border-soft: rgba(255, 255, 255, 0.14);
    --accent-strong: #9ef0ff;
}

/* משתני :root ב-media — חייבים להישאר unlayered (MDN: layered לא גובר על unlayered) */
@supports (height: 100dvh) {
    :root {
        --page-min-height: 100dvh;
    }
}

@media (color-gamut: p3) {
    :root {
        --accent: color(display-p3 0.15 0.88 1);
        --accent-strong: color(display-p3 0.55 0.95 1);
        /* --accent-glow now derives from --accent via color-mix (base :root) → P3 auto-follows; no literal needed */
        --success: color(display-p3 0.35 0.82 0.45);
        --danger: color(display-p3 0.98 0.38 0.35);
    }
}

@media (min-width: 1920px) and (min-resolution: 1.5dppx) {
    :root {
        --content-max: min(var(--content-wide), calc(100vw - 6rem));
    }
}

@media (min-width: 1440px) {
    :root {
        --content-max: min(var(--content-wide), calc(100vw - 5rem));
    }
}

@media (min-width: 1800px) {
    :root {
        --content-wide: 1560px;
    }
}

@media (min-width: 2200px) {
    :root {
        --content-max: min(var(--content-ultra), calc(100vw - 8rem));
    }
}

@media (min-width: 3000px) {
    :root {
        --content-ultra: 2080px;
    }
}

@media (update: fast) and (prefers-reduced-motion: no-preference) {
    :root {
        --motion-fast: 0.12s;
        --motion-medium: 0.2s;
        --ease-snappy: cubic-bezier(0.16, 1, 0.28, 1);
    }
}

/* --- cascade.css --- */
/* Cascade layer order (SSOT) — first = lowest priority. MDN @layer / CSS-Tricks cascade layers.
   fonts.css + tokens.css נשארים unlayered כדי שמשתני :root יגברו על שכבות components. */
@layer layout, pages, components, utilities;

/* --- base.css --- */
@layer layout {
/* Foundation — reset, document, skip link (after tokens.css) */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a, button, label, select,
input[type="submit"], input[type="button"],
input[type="checkbox"], input[type="radio"],
.btn, .cal-cell--working,
.entry-card, .dashboard-card, [role="button"] {
    touch-action: manipulation;
}

.btn, .entry-card, .dashboard-card,
.cal-cell, nav a,
.admin-details > summary, .mobile-nav-picker__select {
    user-select: none;
    -webkit-user-select: none;
}

html {
    font-size: 16px;
    direction: rtl;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(5rem + var(--safe-area-top));
    scrollbar-gutter: stable;
    interpolate-size: allow-keywords;
    /* דק וממותג-ציאן במקום chrome אפור של ה-OS */
    scrollbar-width: thin;
    scrollbar-color: color-mix(in oklab, var(--accent) 34%, transparent) transparent;
}

/* בחירת-טקסט ממותגת (ציאן) — נגזרת מ---accent */
::selection {
    background: color-mix(in oklab, var(--accent) 30%, transparent);
    color: var(--text-strong);
    text-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    /* מעברי עמוד חלקים בין דפים (MPA View Transitions) — דפדפן ללא תמיכה: ניווט רגיל */
    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: var(--motion-medium);
        animation-timing-function: var(--ease-standard);
    }

    /* פתיחת disclosures חלקה (נשען על interpolate-size; דפדפן ישן: snap כמו היום) */
    :is(.admin-inline-details,
        .admin-workflow-advanced,
        .admin-details,
        .constraint-help,
        .swap-request-details,
        .swap-actions--disclosure,
        .tech-dashboard__details,
        .schedule-filter-collapsible,
        .admin-dashboard__settings)::details-content {
        block-size: 0;
        overflow-y: clip;
        transition:
            block-size var(--motion-medium) var(--ease-standard),
            content-visibility var(--motion-medium) allow-discrete;
    }

    :is(.admin-inline-details,
        .admin-workflow-advanced,
        .admin-details,
        .constraint-help,
        .swap-request-details,
        .swap-actions--disclosure,
        .tech-dashboard__details,
        .schedule-filter-collapsible,
        .admin-dashboard__settings)[open]::details-content {
        block-size: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: var(--page-min-height);
    font-family: 'Heebo', 'Segoe UI', 'Assistant', Tahoma, sans-serif;
    font-synthesis: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overscroll-behavior-x: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 100, 200, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e14 0%, #0d1117 50%, #0a0e14 100%);
    pointer-events: none;
    z-index: -2;
}

/* סקאלת כותרות בסיסית (@layer layout — הנמוכה בעדיפות, כך שכותרות-מחלקה
   בשכבת components גוברות: .landing-title / month-card h2 / .brand__name וכו').
   מתקן ~112 כותרות לא-מסווגות שנפלו ל-UA defaults עם line-height:1.6 יורש. */
h1, h2, h3 {
    line-height: 1.2;
    text-wrap: balance;
    margin-block: 0 0.5em;
}

h1 {
    font-size: var(--fs-2xl);
    font-weight: 700;
}

h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    line-height: 1.25;
}

h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    line-height: 1.3;
}

/* WCAG 2.4.11 — focus not hidden under sticky header */
:focus-visible {
    scroll-margin-block-start: calc(5rem + var(--safe-area-top));
    scroll-margin-block-end: 1.25rem;
}

.skip-link {
    position: fixed;
    top: max(0.5rem, var(--safe-area-top));
    inset-inline-end: max(0.5rem, var(--safe-area-right));
    transform: translateY(-150%);
    /* opacity+pointer-events בנוסף ל-transform: ב-iOS Safari אלמנט fixed שמוסתר רק ע״י
       transform "מציץ" בפינה בזמן גלילה/רברבנד. opacity:0 שומר אותו בלתי-נראה עד פוקוס. */
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-round);
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    text-decoration: none;
    transition:
        transform var(--motion-fast) var(--ease-standard),
        opacity var(--motion-fast) var(--ease-standard);
}

.skip-link:focus-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Google Chrome modern CSS — focus rings ב-forced-colors (box-shadow נזרק) */
@media (forced-colors: active) {
    :focus-visible {
        outline: 2px solid CanvasText;
        outline-offset: 2px;
        box-shadow: none;
    }

    .btn:focus-visible,
    .form-control:focus-visible,
    .app-header nav a:focus-visible,
    .nav-more__summary:focus-visible,
    .entry-card-frame:has(.entry-card:focus-visible) {
        outline: 2px solid Highlight;
        outline-offset: 2px;
        box-shadow: none;
    }
}

}

/* --- components-layout.css --- */
/* components-layout.css — Shell: footer, header, nav, forms, alerts */
@layer components {
.site-footer {
    position: fixed;
    bottom: max(10px, var(--safe-area-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: min(96vw, calc(100vw - var(--safe-area-left) - var(--safe-area-right) - 1.5rem));
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: var(--radius-round);
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 212, 255, 0.08), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0)),
        rgba(13, 17, 23, 0.42);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.16),
        0 0 28px rgba(0, 212, 255, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.67rem;
    pointer-events: none;
    z-index: 0;
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
}

.site-footer::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.08) 50%, transparent 72%);
    opacity: 0;
    transform: translateX(-120%);
}

.site-footer__credit {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: rgba(230, 237, 243, 0.66);
    white-space: nowrap;
    letter-spacing: 0.025em;
}

.site-footer__credit::before {
    content: '';
    width: 0.32rem;
    height: 0.32rem;
    border-radius: var(--radius-round);
    background: var(--accent);
    opacity: 0.55;
    box-shadow: 0 0 0 rgba(0, 212, 255, 0);
}

@media (prefers-reduced-motion: no-preference) {
    .site-footer::after {
        animation: footer-soft-sheen 9s ease-in-out infinite;
    }

    .site-footer__credit::before {
        animation: footer-credit-pulse 4.8s ease-in-out infinite;
    }
}

.site-footer__credit-label,
.site-footer__version {
    /* CC-2: היה rgba(139,148,158,0.72) ≈3.6:1 (נכשל AA); --text-muted במלוא-אלפא ≈4.7:1 + עוקב prefers-contrast */
    color: var(--text-muted);
}

.site-footer__credit-name {
    color: rgba(230, 237, 243, 0.86);
    font-weight: 700;
    letter-spacing: 0.035em;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}

@keyframes footer-credit-pulse {
    0%, 100% {
        opacity: 0.38;
        box-shadow: 0 0 0 rgba(0, 212, 255, 0);
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 12px rgba(0, 212, 255, 0.26);
        transform: scale(1.08);
    }
}

@keyframes footer-soft-sheen {
    0%, 58%, 100% {
        opacity: 0;
        transform: translateX(-120%);
    }
    68% {
        opacity: 1;
    }
    78% {
        opacity: 0;
        transform: translateX(120%);
    }
}

.brand-logo-frame {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand-logo-frame--landing {
    margin: 0 auto 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
}

.brand-logo--landing {
    max-height: 128px;
    max-width: min(320px, 90vw);
    border-radius: var(--radius-5);
    filter: drop-shadow(0 4px 24px rgba(0, 212, 255, 0.18)) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.4));
}

.landing-hero--with-logo {
    margin-bottom: var(--space-5);
}

.landing-hero--with-logo .landing-tagline {
    margin-top: 0.65rem;
    /* היה 0.85rem שטוח = ~13.6px גם בדסקטופ (המסך עם הכי הרבה מקום) — משפט-הערך הכי קשה לקריאה.
       clamp נותן קריאות בדסקטופ בלי להרעיש את המובייל; מקס < landing-org כדי לשמור היררכיה */
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
}

.landing-hero--with-logo + .landing-shift-badge {
    margin-top: 0;
}

.brand-logo-frame--header {
    line-height: 0;
}

.brand-logo--header {
    max-height: 40px;
    max-width: 140px;
    border-radius: var(--radius-2);
    /* מפריד את ה-PNG מהרקע הכהה בלי למלא מסגרת */
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

/* הדר כהה: הדגשה קלה לקצוות הגרפיקה (מתאים ללוגו עם שקיפות) */
.brand-logo--on-dark {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    text-decoration: none;
    min-width: 0;
}

.app-header .brand__text {
    display: grid;
    gap: 0.05rem;
    color: var(--text-primary);
    line-height: 1.05;
    min-width: 0;
}

.brand__name {
    font-size: clamp(1.02rem, 1.6vw, 1.24rem);
    font-weight: 800;
    letter-spacing: 0.015em;
    color: transparent;
    background: linear-gradient(110deg, #ffffff 0%, var(--accent-strong) 48%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand__subtitle {
    color: rgba(230, 237, 243, 0.72);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.app-header .brand--with-logo .brand__text {
    max-width: 12rem;
}

.app-header {
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 212, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(13, 17, 23, 0.97), rgba(13, 17, 23, 0.9));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: max(0.62rem, var(--safe-area-top)) max(1.5rem, var(--safe-area-right)) 0.62rem max(1.5rem, var(--safe-area-left));
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header .brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0;
}

.header-clock {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    min-width: 10.8rem;
    justify-content: center;
    padding: 0.26rem 0.72rem;
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(230, 237, 243, 0.76);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mobile-nav-picker {
    display: none;
}

.app-header .main-nav {
    display: flex;
    gap: var(--space-1);
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding: 0.28rem;
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: var(--radius-round);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(13, 17, 23, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-header nav a,
.nav-more__summary,
.nav-logout-form button,
.nav-more__form button {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.48rem 0.8rem;
    border-radius: var(--radius-round);
    white-space: nowrap;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition:
        color var(--motion-hover) var(--ease-luxury),
        background-color var(--motion-hover) var(--ease-luxury),
        box-shadow var(--motion-hover) var(--ease-luxury-soft),
        transform var(--motion-hover) var(--ease-luxury);
}

.app-header nav a:hover,
.app-header nav a.active,
.nav-more__summary:hover,
.nav-more__summary.active,
.nav-more__trigger[aria-expanded="true"],
.nav-logout-form button:hover,
.nav-more__form button:hover {
    color: var(--accent);
}

.app-header nav a.active,
.nav-more__summary.active,
.nav-more__trigger[aria-expanded="true"] {
    background: rgba(0, 212, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.18);
}

.app-header nav a:active,
.nav-more__summary:active,
.nav-logout-form button:active,
.nav-more__form button:active {
    transform: scale(0.98);
    transition-duration: var(--motion-press);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
}

.nav-link--with-badge {
    gap: 0.4rem;
}

.nav-attention-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-round);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    /* TA-05: --surface-elevated לא-מוגדר (fallback==--bg-primary) + #d4a017 סחוף (≠--warning) */
    color: var(--bg-primary);
    background: var(--warning);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.nav-attention-badge__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-more {
    position: relative;
}

.nav-more__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    list-style: none;
}

.nav-more__summary::-webkit-details-marker {
    display: none;
}

.nav-more__summary::after {
    /* chevron מצויר ב-CSS (לא תו unicode) */
    content: "";
    margin-inline-start: 0.35rem;
    width: 0;
    height: 0;
    border-inline: 0.3em solid transparent;
    border-top: 0.36em solid currentColor;
    transition: transform var(--motion-fast) var(--ease-standard);
}

.nav-more__trigger[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* תפריט «עוד» מנהל — מודל מרכזי (לא dropdown) עם גלילה + יציאה קבועה */
.nav-more-dialog.user-more-modal {
    width: min(26rem, calc(100vw - 1.5rem));
}

.nav-more-dialog__panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(88svh, 36rem);
    background:
        radial-gradient(125% 80% at 88% -8%, rgba(0, 212, 255, 0.08), transparent 58%),
        var(--gradient-surface),
        var(--bg-primary);
}

.nav-more-dialog__body {
    padding-bottom: var(--space-3);
}

/* Grouped cards in a single column: the dialog is only ~26rem wide, so a
   viewport-based 2-col split crammed the columns and left a void under the
   shorter group. One column of bordered group-cards reads cleaner and scales
   with the conditional (permission-gated) links. */
.nav-more-dialog__sections {
    display: grid;
    gap: 0.6rem;
}

.nav-more-dialog__section {
    display: grid;
    gap: 0.1rem;
    align-content: start;
    padding: 0.4rem 0.5rem 0.55rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-5);
    background:
        var(--gradient-surface),
        rgba(255, 255, 255, 0.018);
}

.nav-more-dialog__section .nav-more__label {
    padding: 0.15rem 0.4rem 0.35rem;
    margin: 0 0 0.2rem;
    border-bottom: 1px solid var(--border-soft);
}

.nav-more-dialog__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: 2.75rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-4);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    transition:
        background-color var(--motion-hover) var(--ease-luxury),
        color var(--motion-fast) var(--ease-standard);
}

/* "Go to" chevron — last flex item, so it sits on the inline-end (physical-left in RTL)
   edge and reveals on hover/focus/active to signal the row is navigable. (RTL-2) */
.nav-more-dialog__link::after {
    content: '';
    flex: none;
    width: 0.42rem;
    height: 0.42rem;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0;
    transition:
        opacity var(--motion-hover) var(--ease-luxury),
        transform var(--motion-hover) var(--ease-luxury);
}

.nav-more-dialog__link:hover {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
        rgba(0, 212, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-more-dialog__link:hover::after,
.nav-more-dialog__link:focus-visible::after {
    opacity: 0.6;
    transform: translateX(-2px) rotate(-45deg);
}

.nav-more-dialog__link.active {
    background: rgba(0, 212, 255, 0.14);
    color: var(--accent);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
}

.nav-more-dialog__link.active::after {
    opacity: 0.85;
    transform: translateX(-2px) rotate(-45deg);
}

.nav-more-dialog__footer {
    padding: 0.65rem 0.9rem max(0.85rem, var(--safe-area-bottom));
    border-top: 1px solid rgba(0, 212, 255, 0.14);
    background: var(--bg-primary);
}

.nav-more-dialog__footer .nav-more__form {
    margin: 0;
}

.nav-more-dialog__logout {
    width: 100%;
    justify-content: center;
}

.nav-more__label {
    padding: 0.42rem 0.75rem 0.18rem;
    /* CC-3: היה rgba(139,148,158,0.78) ≈3.9:1; --text-muted מלא ≈4.7:1 + prefers-contrast */
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
}

.nav-more__form button {
    width: 100%;
    justify-content: flex-start;
    text-align: right;
    border-radius: var(--radius-4);
    padding: 0.6rem 0.75rem;
}

.nav-more__form button:hover {
    background: rgba(0, 212, 255, 0.09);
}

.nav-more__form {
    margin: 0;
}

.nav-logout-form {
    margin: 0;
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.header-brand-area {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
    flex-wrap: wrap;
}

.user-greeting {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-muted);
}

/* Compact laptop header: keep desktop navigation visible but less crowded. */
@media (max-width: 1180px) and (min-width: 921px) {
    .header-inner {
        gap: 0.7rem;
    }

    .header-brand-area {
        gap: 0.65rem;
    }

    .app-header .brand--with-logo .brand__text {
        max-width: 8.5rem;
        font-size: 0.84rem;
    }

    .app-header nav {
        gap: 0.45rem;
    }

    .app-header .main-nav {
        gap: 0.18rem;
        padding: 0.22rem;
    }

    .app-header nav a,
    .nav-more__summary,
    .nav-logout-form button {
        font-size: 0.84rem;
        padding: 0.42rem 0.58rem;
    }

}

@media (max-width: 640px) {
    .app-header nav {
        width: 100%;
        align-items: stretch;
    }

    .page-intro {
        flex-direction: column;
        padding: var(--space-4);
    }

    .page-intro__main {
        width: 100%;
    }

    .page-intro .btn {
        width: 100%;
    }

    .page-actions {
        width: 100%;
        justify-content: stretch;
    }

    .page-actions .btn,
    .page-actions .inline-form {
        width: 100%;
    }

    .header-brand-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .user-greeting {
        font-size: 0.85rem;
    }
}

.user-greeting__phrase {
    margin-inline-end: 0.35rem;
}

.user-greeting__name {
    color: var(--text);
    font-weight: 600;
}

/* שובל-ניווט (breadcrumb) — רצועת-אבות דקה מעל ה-page-intro, כפופה בכוונה לנאב-הגלובלי (NN/g). */
.breadcrumbs {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.3;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    min-width: 0;
}

/* מפריד מצויר ב-CSS כדי שקוראי-מסך לא יכריזו אותו (ניטרלי ל-RTL) */
.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    margin-inline: 0.3rem 0.15rem;
    color: var(--border);
    -webkit-user-select: none;
    user-select: none;
}

.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-2);
    padding: 0.2rem 0.25rem;
    transition: color var(--motion-fast) var(--ease-standard);
}

.breadcrumbs__link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumbs__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.breadcrumbs__item--current {
    color: var(--text-primary);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* פרימיטיב disclosure יחיד (P2-4) — reset-marker + chevron אחד (caret) + target 44px + focus-ring,
   במקום ה-marker-reset+chevron המשוכפלים בכל משפחת <details>. הגירה הדרגתית: מוסיפים .disclosure ל-<details>
   ומסירים את ה-CSS הפרטי של המשפחה; מודיפייארים דקים לריווח/צבע נשארים לכל הקשר. */
.disclosure > summary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--touch-target);
    list-style: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.disclosure > summary::-webkit-details-marker {
    display: none;
}

.disclosure > summary::after {
    content: "";
    flex: 0 0 auto;
    margin-inline-start: auto;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform var(--motion-fast) var(--ease-standard);
}

.disclosure[open] > summary::after {
    transform: rotate(-135deg);
}

.disclosure > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ניווט מקומי בתת-עץ החודש (P3-3) — רצועת-אחים, כפופה בכוונה לנאב-הגלובלי. */
.month-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: var(--space-4);
    padding: 0.3rem;
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: var(--radius-round);
    background: rgba(22, 27, 34, 0.55);
}

.month-subnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-round);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}

.month-subnav__link:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.08);
}

.month-subnav__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.month-subnav__link.is-active {
    color: var(--accent-strong);
    background: rgba(0, 212, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.28);
}

.page-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: var(--radius-3);
    background:
        radial-gradient(circle at 90% 15%, rgba(0, 212, 255, 0.10), transparent 30%),
        rgba(22, 27, 34, 0.62);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
}

.page-intro h1 {
    margin: 0 0 var(--space-1);
    text-wrap: balance;
}

.page-intro p {
    margin: 0;
    color: var(--text-muted);
    max-width: 48rem;
}

.page-intro__main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.page-intro__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0.15rem;
    border-radius: var(--radius-3);
    /* טבעת-אייקון עקבית עם אריחי-הניווט/הנחיתה — מאחדת את שפת-האייקונים ומעלה כל כותרת-עמוד */
    background: radial-gradient(circle at 50% 30%,
        color-mix(in oklab, var(--accent) 18%, transparent),
        color-mix(in oklab, var(--accent) 4%, transparent));
    border: 1px solid color-mix(in oklab, var(--accent) 34%, transparent);
    box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 13%, transparent);
    color: var(--accent-strong);
}

.page-intro__icon .lucide-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.account-page-intro .page-intro__icon {
    color: var(--accent-tech);
    background: radial-gradient(circle at 50% 30%,
        color-mix(in oklab, var(--accent-tech) 18%, transparent),
        color-mix(in oklab, var(--accent-tech) 4%, transparent));
    border-color: color-mix(in oklab, var(--accent-tech) 34%, transparent);
    box-shadow: 0 0 18px color-mix(in oklab, var(--accent-tech) 13%, transparent);
}

.btn-back-with-chevron {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.back-chevron {
    flex-shrink: 0;
    transition: transform var(--motion-hover) var(--ease-luxury);
}

/* Chevrons drift in their reading direction on hover/focus — same micro-motion as the entry cards */
.btn-with-chevron:hover .cta-chevron,
.btn-with-chevron:focus-visible .cta-chevron,
.text-accent--with-chevron:hover .cta-chevron,
.text-accent--with-chevron:focus-visible .cta-chevron {
    transform: translateX(-3px);
}

.btn-back-with-chevron:hover .back-chevron,
.btn-back-with-chevron:focus-visible .back-chevron {
    transform: translateX(3px);
}

.eyebrow {
    margin: 0 0 var(--space-1) !important;
    color: var(--accent) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
}

.info-card {
    border-color: rgba(0, 212, 255, 0.28);
    background:
        linear-gradient(145deg, rgba(0, 212, 255, 0.06), transparent 42%),
        var(--bg-card);
}

.account-card {
    width: min(100%, 520px);
    margin-inline: auto;
    /* עומק-זכוכית מרומז (במקום כרטיס-שטוח) — מקביל למתכון של .info-card + הילה-פינה קלה */
    border-color: rgba(0, 212, 255, 0.22);
    background:
        radial-gradient(120% 78% at 50% 0%, rgba(0, 212, 255, 0.07), transparent 55%),
        linear-gradient(145deg, rgba(0, 212, 255, 0.05), transparent 42%),
        var(--bg-card);
}

.account-page-intro {
    max-width: 760px;
    margin-inline: auto;
}

.twofa-qr-wrap {
    display: inline-flex;
    padding: var(--space-3);
    border-radius: var(--radius-6);
    background: #fff;
    border: 1px solid rgba(0, 212, 255, 0.28);
}

.twofa-qr-wrap img {
    display: block;
    border-radius: var(--radius-3);
}

.twofa-key code {
    display: inline-block;
    margin-top: var(--space-1);
    padding: 0.25rem 0.45rem;
    border-radius: var(--radius-2);
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.recovery-codes code {
    display: block;
    padding: 0.6rem;
    border-radius: var(--radius-4);
    /* היה rgba(15,23,42,0.08) — ghost light-theme: כמעט-שקוף על כרטיס כהה = קודים בלתי-נראים.
       משטח כהה מוגדר + גבול, מקביל ל-.twofa-key code. */
    background: rgba(13, 17, 23, 0.55);
    border: 1px solid var(--border);
    color: var(--text-strong);
    text-align: center;
    letter-spacing: 0.08em;
}

.backup-status {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
    margin: var(--space-4) 0;
}

.backup-status dt {
    font-weight: 700;
    color: var(--text-strong);
}

.backup-status dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

main.container-main {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1.5rem max(1.5rem, var(--safe-area-right)) calc(4.75rem + var(--safe-area-bottom)) max(1.5rem, var(--safe-area-left));
    position: relative;
    z-index: 1;
    scroll-margin-top: calc(5rem + var(--safe-area-top));
}

.card {
    background:
        var(--gradient-surface),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-5);
    padding: var(--space-6);
    /* iOS Safari שלח backdrop-filter לא-מקושר רק מ-18.0 — הקידומת נדרשת לגרסאות קודמות
       (נפוצות בטלפונים חלשים שהאפליקציה מכוונת אליהם); בלעדיה הזכוכית פשוט נופלת */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    /* specular top-rim — קצה עליון מואר עדין (זכוכית מוארת מלמעלה): מוסיף עומק בלי לשנות צבע/פריסה */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-card);
    margin-bottom: var(--space-6);
}

.card h2, .card h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    /* WCAG 2.5.5 — מינימום 44px לאזור לחיצה נוח בטאף */
    min-height: var(--touch-target);
    border-radius: var(--radius-3);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    /* בלי רקע ברירת-מחדל של הדפדפן (ButtonFace אפור) — וריאנטים מגדירים רקע משלהם */
    background: transparent;
    text-decoration: none;
    transition:
        background-color var(--motion-hover) var(--ease-luxury),
        border-color var(--motion-hover) var(--ease-luxury),
        box-shadow var(--motion-hover) var(--ease-luxury),
        color var(--motion-fast) var(--ease-standard),
        transform var(--motion-hover) var(--ease-luxury);
    font-family: inherit;
}

.btn:active:not([disabled]):not([aria-disabled="true"]) {
    transform: scale(0.985);
    transition-duration: 0.1s;
    transition-timing-function: var(--ease-standard);
}

/* במגע אין hover — לחיצת ה-:active היא אישור המגע היחיד. 0.985 כמעט בלתי-מורגש בטלפון;
   מעמיקים ל-0.97 (כמו האריחים) כדי שהמשתמש ירגיש שההקשה נקלטה. */
@media (hover: none) {
    .btn:active:not([disabled]):not([aria-disabled="true"]) {
        transform: scale(0.97);
    }

    .btn-primary:active:not([disabled]):not([aria-disabled="true"]) {
        transform: scale(0.97) translateY(0);
    }
}

.btn-primary {
    background: linear-gradient(135deg, #0099cc, #00d4ff);
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.38) 48%, transparent 62%);
    transform: translateX(120%);
    transition: transform 0.62s var(--ease-luxury);
    pointer-events: none;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.38), 0 8px 24px rgba(0, 212, 255, 0.12);
    transform: translateY(-2px);
}

.btn-primary:active:not([disabled]):not([aria-disabled="true"]) {
    transform: scale(0.985) translateY(0);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.28);
}

.btn-primary:hover::before {
    transform: translateX(-120%);
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.72;
    pointer-events: none;
}

.btn-schedule-indicator {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 0.82rem;
    margin-inline-start: 0.4rem;
    border: 2px solid rgba(13, 17, 23, 0.72);
    border-radius: 0.18rem;
    vertical-align: -0.14em;
}

.btn-schedule-indicator::before,
.btn-schedule-indicator::after {
    content: '';
    position: absolute;
    inset-inline-start: 0.18rem;
    inset-inline-end: 0.18rem;
    height: 2px;
    border-radius: var(--radius-round);
    background: rgba(13, 17, 23, 0.72);
}

.btn-schedule-indicator::before {
    top: 0.22rem;
    box-shadow: 0 0.22rem 0 rgba(13, 17, 23, 0.72);
}

.btn-schedule-indicator::after {
    bottom: -0.18rem;
    inset-inline-start: 0.08rem;
    width: 0.5rem;
    background: var(--accent-strong);
}

@keyframes schedule-check-sweep {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.55;
    }
    50% {
        transform: translateX(0.28rem);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .btn-schedule-indicator::after {
        animation: schedule-check-sweep 1.15s ease-in-out infinite;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-dim);
}

/* קישור-כפתור שקט — פעולה משנית בלי משקל ויזואלי */
.btn-link {
    color: var(--accent-strong);
    font-weight: 600;
    padding-inline: var(--space-3);
}

.btn-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 1px;
}

/* קישור-כפתור שעומד לבד בזרימת block — ממורכז עצמאית */
.btn-link--center {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: rgba(248, 81, 73, 0.15);
}

/* CC-3: וריאנט-outline ירוק — משלים את משפחת .btn-secondary/.btn-danger
   (במקום מימוש-inline של הכפתור "קח משמרת" מעל .btn-primary) */
.btn-success {
    background: transparent;
    color: var(--success);
    border: 1px solid var(--success);
}

.btn-success:hover {
    background: color-mix(in srgb, var(--success) 15%, transparent);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-primary) !important;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    /* סימטריה: שדה זהה בגובהו ל-.btn (44px) — לא יושב נמוך יותר ליד כפתור (box-sizing: border-box) */
    min-height: var(--touch-target);
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    color: var(--text-primary);
    /* מינימום 16px למניעת זום דפדפן אגרסיבי ב-Safari (אייפון) בשדות טקסט */
    font-size: max(16px, 0.95rem);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input.form-control::-webkit-date-and-time-value {
    text-align: inherit;
}

.form-control:focus:not(:focus-visible) {
    outline: none;
}

.form-control:focus-visible {
    /* outline שקוף — הופך נראה ב-forced-colors (base.css); הטבעת הרכה היא הפוקוס הוויזואלי */
    outline: 2px solid transparent;
    outline-offset: 1px;
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px var(--accent-dim),
        0 0 18px rgba(0, 212, 255, 0.14);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    direction: rtl;
}

table.data-table th,
table.data-table td {
    padding: 0.65rem 0.85rem;
    text-align: right;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

table.data-table th {
    color: var(--accent);
    font-weight: 600;
    background: rgba(0, 212, 255, 0.05);
    white-space: nowrap;
}

table.data-table td code {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

table.data-table .badge {
    vertical-align: middle;
}

/* פס-זברה עדין לסריקת שורות + hover ברור יותר (עדיין מרוסן). שתי השורות באותה specificity → hover גובר לפי סדר */
table.data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.018);
}

table.data-table tbody tr:hover td {
    background: rgba(0, 212, 255, 0.06);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-1);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.badge-warning {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
    box-shadow: inset 0 0 0 1px rgba(210, 153, 34, 0.4);
}

.badge-success {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
    box-shadow: inset 0 0 0 1px rgba(63, 185, 80, 0.4);
}

.badge-danger {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
    box-shadow: inset 0 0 0 1px rgba(248, 81, 73, 0.4);
}

.badge-info {
    background: rgba(0, 212, 255, 0.16);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.38);
}

.badge-primary {
    background: linear-gradient(135deg, #0099cc, #00d4ff);
    color: var(--bg-primary);
}

.badge-secondary {
    background: rgba(139, 148, 158, 0.18);
    color: #c9d1d9;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-3);
    margin-bottom: var(--space-4);
    font-size: 0.9rem;
}

/* Variant alerts carry a thicker accent stripe on the inline-start edge
   (right side in RTL) for clearer hierarchy at a glance. */
.alert-success {
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid var(--success);
    border-inline-start-width: 4px;
    color: var(--success);
}

.alert-danger {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid var(--danger);
    border-inline-start-width: 4px;
    color: var(--danger);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.15);
    border: 1px solid var(--warning);
    border-inline-start-width: 4px;
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid var(--accent);
    border-inline-start-width: 4px;
    color: var(--accent-strong);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-small {
    font-size: 0.85rem;
}

.is-hidden {
    display: none !important;
}

.gap-sm {
    gap: var(--space-3);
}

.flex-wrap {
    flex-wrap: wrap;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.narrow-centered-card {
    max-width: 480px;
    margin: 2rem auto;
}

.error-card {
    max-width: 560px;
    margin: 2rem auto;
}

.text-accent {
    color: var(--accent);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.checkbox-item input {
    accent-color: var(--accent);
}
}

/* --- pages-auth.css --- */
/* pages-auth.css — @layer pages */
@layer pages {
/* Login / landing — גלילה על המסמך (לא בתוך .login-page) — תיקון נייד */
html:has(.login-page),
html:has(.landing-page),
body.ds-login-layout,
body:has(.login-page),
body:has(.landing-page) {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100%;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

body.ds-login-layout #main-content,
body:has(.login-page) #main-content,
body:has(.landing-page) #main-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

/* Login page — glassmorphism (scroll-safe: fits short viewports + fixed footer) */
.login-page {
    --login-card-max: 440px;
    --login-card-pad-y: 1.35rem;
    --login-card-pad-x: 1.25rem;
    --login-control-height: var(--touch-target);
    flex: 1 1 auto;
    width: 100%;
    min-height: min(100dvh, 100%);
    min-height: min(100svh, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        max(1rem, var(--safe-area-top))
        max(1rem, var(--safe-area-right))
        max(2.75rem, calc(2.25rem + var(--safe-area-bottom)))
        max(1rem, var(--safe-area-left));
    position: relative;
    overflow: visible;
    touch-action: pan-y;
    gap: 0.65rem;
}

@supports (justify-content: safe center) {
    .login-page {
        justify-content: safe center;
    }
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, #050608 0%, #0d1117 40%, #0a1628 100%);
}

.login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.login-bg-blur {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.login-bg-blur--cyan {
    top: -80px;
    right: -60px;
    background: var(--accent);
}

.login-bg-blur--blue {
    bottom: -100px;
    left: -80px;
    background: #0066cc;
}

.login-card-frame {
    width: 100%;
    max-width: var(--login-card-max);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-7);
    animation: entry-border-angle-spin 5.5s linear infinite;
}

.login-card {
    width: 100%;
    padding: var(--login-card-pad-y) var(--login-card-pad-x);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none;
    border-radius: var(--radius-5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

/* ביצועים במובייל: בלי blur כבד / backdrop — מסגרת מסתובבת כמו בדף הבית נשארת */
@media (max-width: 920px), (hover: none) and (pointer: coarse) {
    .login-bg-blur {
        display: none;
    }

    .login-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(22, 27, 34, 0.96);
    }
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.login-home-link {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--touch-target);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-round);
    border: 1px solid rgba(0, 212, 255, 0.3);
    background:
        linear-gradient(180deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.04));
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.24);
    transition:
        color var(--motion-hover) var(--ease-luxury),
        border-color var(--motion-hover) var(--ease-luxury),
        background-color var(--motion-hover) var(--ease-luxury),
        transform var(--motion-hover) var(--ease-luxury),
        box-shadow var(--motion-hover) var(--ease-luxury-soft);
}

.login-home-link__icon {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.92;
}

.login-home-link:hover {
    color: var(--accent-strong);
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.14);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 28px rgba(0, 212, 255, 0.14);
}

.login-home-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.login-brand__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.login-brand h1 {
    font-size: clamp(1.22rem, 3.6vw, 1.48rem);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
}

.login-brand p {
    max-width: 20rem;
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* אייקון mode — המשכיות ויזואלית מכרטיסי הנחיתה (טכנאי כחול / מנהל תכלת) */
.login-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-5);
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--accent);
}

.login-card--tech .login-mode-icon {
    color: var(--accent-tech);
    background: rgba(0, 150, 255, 0.06);
}

.login-card--tech .login-brand h1 {
    background: linear-gradient(135deg, #fff 0%, var(--accent-tech) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.login-card--admin .login-mode-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-4);
}

.login-card--admin .login-mode-icon .lucide-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.brand-logo-frame--login {
    width: 100%;
    max-width: min(20rem, 100%);
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-8);
    border: 1px solid rgba(0, 212, 255, 0.22);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.14), transparent 58%),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 32px rgba(0, 0, 0, 0.28);
}

.brand-logo--login {
    max-height: clamp(4.25rem, 14vw, 6.5rem);
    max-width: min(17.5rem, 88vw);
    width: auto;
    height: auto;
    border-radius: var(--radius-4);
    filter:
        drop-shadow(0 4px 22px rgba(0, 212, 255, 0.16))
        drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.login-brand:has(.brand-logo--login) p {
    display: none;
}

.login-brand:has(.brand-logo--login) h1 {
    margin-top: 0.1rem;
}

.login-card form {
    display: grid;
    gap: 0.7rem;
}

.login-card .form-group {
    margin-bottom: 0;
}

.login-card .form-control {
    min-height: var(--login-control-height);
    padding-block: 0.55rem;
    text-align: right;
}

.login-card .btn {
    width: 100%;
    min-height: var(--login-control-height);
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

/* קישורי-כפתור בכרטיס — לא נמתחים לרוחב מלא (פעולה משנית שקטה) */
.login-card .btn-link {
    width: fit-content;
    margin-inline: auto;
}

/* JS מסתיר את הטופס כשפאנל השחזור פתוח — display:grid לא יגבר על [hidden] */
.login-card form[hidden] {
    display: none;
}

/* "זכור אותי" — צ'קבוקס בשפת העיצוב במקום נייטיב זעיר */
.login-card .form-group input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.login-card .form-hint {
    margin: 0;
    text-align: center;
    line-height: 1.7;
}

.login-card .form-group:has([type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.login-card .form-group:has([type="checkbox"]) label {
    margin: 0;
    font-size: 0.88rem;
}

.login-forgot-link-wrap {
    margin-top: 0.35rem;
    text-align: center;
}

.login-forgot-link-wrap .btn-link {
    color: var(--accent-strong);
    font-size: 0.9rem;
}

.login-forgot-panel {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.login-forgot-panel .btn-block {
    width: 100%;
    margin-top: var(--space-2);
}

/* כניסת מנהל — קומפקטי ב-svh/dvh (MDN: safe center, בלי גלילה מיותרת) */
.login-page:has(.login-card--admin) {
    --login-card-max: min(400px, calc(100vw - 2rem));
    --login-card-pad-y: 0.95rem;
    --login-card-pad-x: 1rem;
    min-height: min(100vh, 100%);
    min-height: min(100dvh, 100%);
    min-height: min(100svh, 100%);
    padding-block:
        max(0.5rem, var(--safe-area-top))
        max(1rem, calc(0.75rem + var(--safe-area-bottom)));
    gap: 0.4rem;
}

.login-card--admin .login-brand {
    gap: 0.55rem;
    margin-bottom: var(--space-3);
}

.login-card--admin .login-home-link {
    min-height: var(--touch-target);
    padding: 0.4rem 0.85rem;
    font-size: 0.84rem;
}

.login-card--admin .login-brand__hero {
    gap: 0.35rem;
}

.login-card--admin .brand-logo-frame--login {
    padding: 0.45rem 0.65rem;
}

.login-card--admin .brand-logo--login {
    max-height: clamp(2.5rem, 8svh, 3.25rem);
}

.login-card--admin .login-brand h1 {
    font-size: clamp(1.05rem, 2.8vw, 1.22rem);
}

.login-card--admin .login-brand p {
    font-size: 0.8rem;
    line-height: 1.45;
}

.login-card--admin .form-group {
    margin-bottom: 0.6rem;
}

.login-card--admin .form-group label {
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
}

.login-card--admin .btn-primary {
    margin-top: 0.15rem;
}

.login-passkey-details {
    margin-top: 0.65rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 0.55rem;
}

/* layout/marker/chevron/focus מגיעים מפרימיטיב .disclosure (components-layout.css); כאן רק סגנון-משפחה. */
.login-passkey-details__summary {
    padding: 0.35rem 0.15rem;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: var(--radius-3);
}

.login-passkey-details[open] .login-passkey-details__summary {
    color: var(--text-primary);
}

.login-passkey-details__body {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.login-passkey-details__body .form-hint {
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-height: 44rem) {
    .login-page:has(.login-card--admin) {
        --login-card-pad-y: 0.75rem;
        justify-content: flex-start;
        padding-top: max(0.35rem, var(--safe-area-top));
    }

    .login-card--admin .login-brand {
        margin-bottom: var(--space-2);
    }

    .login-card--admin .brand-logo--login {
        max-height: 2.35rem;
    }
}

/* reduced-motion — כיבוי מלא: טבעות מסתובבות, sheen וכניסות (לא רק admin) */
@media (prefers-reduced-motion: reduce) {
    .login-card-frame,
    .entry-card-frame,
    .landing-title,
    .landing-site-title,
    .landing-shift-badge {
        animation: none;
    }
}

.validation-summary-errors {
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: var(--space-4);
    list-style: none;
    padding: 0;
}

.field-validation-error {
    color: var(--danger);
    font-size: 0.8rem;
    display: block;
    margin-top: var(--space-1);
}

/* Landing */
.landing-page {
    flex: 1 1 auto;
    width: 100%;
    min-height: var(--page-min-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        max(1rem, var(--safe-area-top))
        max(1.5rem, var(--safe-area-right))
        max(2.75rem, calc(2.25rem + var(--safe-area-bottom)))
        max(1.5rem, var(--safe-area-left));
    position: relative;
    gap: var(--space-3);
}

@supports (justify-content: safe center) {
    .landing-page {
        justify-content: safe center;
    }
}

.landing-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 50% 8%, rgba(0, 212, 255, 0.09), transparent 70%),
        radial-gradient(circle at 15% 85%, rgba(0, 100, 200, 0.05), transparent 45%),
        /* וינייטה עדינה — מכהה את הפינות וממקד את העין בשני השערים במרכז */
        radial-gradient(ellipse 90% 80% at 50% 45%, transparent 60%, rgba(0, 0, 0, 0.25));
    pointer-events: none;
    z-index: 0;
}

.landing-page > *:not(.login-bg) {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(900px, 100%);
}

@keyframes premium-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.988);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes premium-title-sheen {
    0%, 100% {
        background-position: 0% 50%;
        text-shadow: 0 0 18px rgba(0, 212, 255, 0.22);
    }
    50% {
        background-position: 100% 50%;
        text-shadow: 0 0 28px rgba(0, 212, 255, 0.38);
    }
}

@keyframes premium-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(0, 212, 255, 0);
    }
    50% {
        box-shadow: 0 0 26px rgba(0, 212, 255, 0.16);
    }
}

@keyframes premium-card-enter {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ריווח אותיות מתכנס — reveal בלי שינוי opacity (axe-safe).
   ה-`to` חייב להיות זהה ל-letter-spacing במנוחה (0.24em) — אחרת הטקסט "קופץ" בסיום. */
@keyframes premium-tracking-settle {
    from {
        letter-spacing: 0.34em;
    }
    to {
        letter-spacing: 0.24em;
    }
}

/* פס אור חולף פעם אחת על הלוגו (ימין→שמאל, כיוון הקריאה) */
@keyframes premium-logo-sweep {
    from {
        opacity: 1;
        background-position: 0% 0;
    }
    to {
        opacity: 1;
        background-position: 100% 0;
    }
}

/* נשימה איטית של כתמי האור ברקע */
@keyframes premium-orb-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-34px, 26px, 0) scale(1.07);
    }
}

.landing-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    opacity: 1;
}

/* קווי-לוואי עדינים משני צדי ה-eyebrow (בהשראת המוקאפ) */
.landing-welcome::before,
.landing-welcome::after {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.landing-page:has(.brand-logo--landing) .landing-welcome {
    margin-bottom: 0.7rem;
}

.landing-hero {
    text-align: center;
    margin: 0 auto 1.5rem;
    max-width: 720px;
    position: relative;
    z-index: 1;
    opacity: 1;
}

.landing-title {
    font-size: var(--fs-display); /* TY-4: clamp(1.75rem,5vw,2.55rem) — טוקן-display משותף */
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.5rem;
    /* צבע ציאן-forward + זוהר חזק יותר (בהשראת המוקאפ) */
    background: linear-gradient(180deg, #ffffff 6%, #7ce9ff 60%, var(--accent) 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.28);
    animation: premium-title-sheen 6s ease-in-out 3;
}

.landing-org {
    font-size: clamp(1.2rem, 3.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: 0;
    /* טיפול ה-wordmark (בהשראת המוקאפ): gradient ציאן-forward + זוהר — בקשת בעלים */
    color: transparent;
    background: linear-gradient(180deg, #ffffff 6%, #7ce9ff 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.35rem 0 0.5rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.28);
}

.landing-site-title {
    font-size: clamp(1.2rem, 3.6vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0;
    color: transparent;
    background: linear-gradient(180deg, #ffffff 6%, #7ce9ff 60%, var(--accent) 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0.85rem auto 0.25rem;
    line-height: 1.3;
    max-width: 30rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.28);
    animation: premium-title-sheen 6s ease-in-out 3;
}

.landing-hero--with-logo .landing-org {
    margin-top: var(--space-2);
    margin-bottom: 0;
}

.landing-tagline {
    margin: 0;
    font-size: clamp(0.98rem, 2.5vw, 1.12rem);
    color: var(--text-muted);
    max-width: 30rem;
    margin-inline: auto;
    line-height: 1.6;
    text-wrap: balance;
}

.landing-shift-badge {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.9rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: 0.6rem 1.2rem;
    /* פס-תורנות באותו גוון glass כהה-שקוף כמו החלוניות (עקבי עם הכרטיסים) */
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 58%),
        rgba(17, 24, 34, 0.62);
    border: 1px solid var(--border-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 34px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-round);
    font-size: 0.85rem;
    color: var(--text);
    position: relative;
    z-index: 1;
    opacity: 1;
}

.landing-shift-badge__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.landing-shift-badge__item .lucide-icon {
    color: var(--accent-strong);
}

.landing-shift-badge__item .lucide-icon svg {
    width: 1em;
    height: 1em;
}

.landing-shift-badge__divider {
    opacity: 0.4;
    user-select: none;
}

/* שכבת ה-sweep על הלוגו — clip מעוגל בלי לחתוך את ה-drop-shadow של התמונה */
.brand-logo-frame--landing picture {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.brand-logo-frame--landing picture::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-5);
    background: linear-gradient(
        118deg,
        transparent 0% 38%,
        rgba(255, 255, 255, 0.12) 46%,
        rgba(0, 212, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.08) 54%,
        transparent 62% 100%
    );
    background-size: 300% 100%;
    background-position: 0% 0;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
}

.landing-shift-badge--above-cards {
    margin-bottom: 2.25rem;
}

/* רקע נחיתה (בהשראת המוקאפ): כתמי-אור מעט גדולים+רכים יותר + סריג-תורנויות חי.
   ממוקד לנחיתה בלבד (.landing-page) — דף ההתחברות לא מושפע. */
.landing-page .login-bg-blur {
    width: min(42vmax, 520px);
    height: min(42vmax, 520px);
    filter: blur(92px);
    opacity: 0.4;
}

/* סריג-תורנויות — תאים דקורטיביים שנדלקים ברצף (לוח שמתמלא) */
.landing-cell {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.32), rgba(0, 212, 255, 0) 68%);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-cell:nth-child(3) { top: 24%; left: 13%; }
.landing-cell:nth-child(4) { top: 62%; left: 20%; background: radial-gradient(circle at 50% 50%, rgba(110, 182, 255, 0.30), rgba(110, 182, 255, 0) 68%); }
.landing-cell:nth-child(5) { top: 18%; right: 17%; }
.landing-cell:nth-child(6) { top: 70%; right: 14%; background: radial-gradient(circle at 50% 50%, rgba(110, 182, 255, 0.28), rgba(110, 182, 255, 0) 68%); }
.landing-cell:nth-child(7) { top: 46%; right: 8%; }
.landing-cell:nth-child(8) { top: 50%; left: 7%; }

@keyframes landing-cell-pulse {
    0%, 100% { opacity: 0; transform: scale(0.7); }
    8% { opacity: 1; transform: scale(1); }
    26% { opacity: 0.12; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
    .landing-cell { animation: landing-cell-pulse 7.5s ease-in-out infinite; }
    .landing-cell:nth-child(3) { animation-delay: 0s; }
    .landing-cell:nth-child(4) { animation-delay: 1.1s; }
    .landing-cell:nth-child(5) { animation-delay: 2s; }
    .landing-cell:nth-child(6) { animation-delay: 3.1s; }
    .landing-cell:nth-child(7) { animation-delay: 4.2s; }
    .landing-cell:nth-child(8) { animation-delay: 5s; }
}

@property --entry-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: true;
}

@keyframes entry-border-angle-spin {
    to {
        --entry-border-angle: 360deg;
    }
}

.entry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.entry-card-frame,
.login-card-frame {
    --entry-border-angle: 0deg;
    --entry-ring-beam: rgba(0, 212, 255, 0.92);
    --entry-ring-beam-soft: rgba(0, 212, 255, 0.35);
    --entry-ring-track: rgba(0, 212, 255, 0.1);
    --entry-ring-glow: rgba(0, 212, 255, 0.55);
    --entry-ring-glow-soft: rgba(0, 212, 255, 0.18);
    position: relative;
    border: 2px solid transparent;
    isolation: isolate;
    overflow: visible;
    /* מילוי-פאנל glass בלבד. טבעת ה-comet עברה ל-::after (ring ממוסך ברוחב הגבול) —
       כדי שהגרדיאנט הקוני לא "יבצבץ" דרך הפאנל השקוף כפרוסת-פאי מסתובבת (אפקט "סונאר").
       הצרה של הפס לבדה לא פותרת את זה — מקור הבעיה הוא הבצבוץ דרך השקיפות. */
    background: linear-gradient(var(--frame-panel, var(--bg-secondary)), var(--frame-panel, var(--bg-secondary))) padding-box;
}

.entry-card-frame {
    border-radius: var(--radius-7);
    opacity: 1;
    transform: none;
    animation: entry-border-angle-spin 5.5s linear infinite;
    transition:
        transform var(--motion-hover) var(--ease-luxury),
        box-shadow var(--motion-hover) var(--ease-luxury-soft);
}

@media (prefers-reduced-motion: no-preference) {
    /* landing-welcome: בלי opacity:0 — axe color-contrast; ריווח אותיות מתכנס במקום (axe-safe) */
    .landing-welcome {
        animation: premium-tracking-settle 0.95s var(--ease-luxury);
    }

    /* כוריאוגרפיה: לוגו → שם → טאגליין (במקום בלוק אחד) */
    .landing-hero > * {
        opacity: 0;
        animation: premium-fade-up calc(var(--motion-reveal) + 0.08s) var(--ease-luxury) 0.1s forwards;
    }

    .landing-hero > *:nth-child(2) {
        animation-delay: 0.2s;
    }

    .landing-hero > *:nth-child(3) {
        animation-delay: 0.28s;
    }

    /* landing-title (וריאנט בלי לוגו) — משלב reveal עם ה-sheen הקיים */
    .landing-hero > .landing-title {
        animation:
            premium-fade-up calc(var(--motion-reveal) + 0.08s) var(--ease-luxury) 0.1s forwards,
            premium-title-sheen 6s ease-in-out 0.7s 3;
    }

    /* sweep חד-פעמי על הלוגו אחרי שהכניסות נחות */
    .brand-logo-frame--landing picture::after {
        animation: premium-logo-sweep 1.15s var(--ease-luxury-soft) 0.95s;
    }

    /* נשימה איטית לכתמי האור — transform בלבד (compositor); קיים רק בדסקטופ */
    .login-bg-blur--cyan {
        animation: premium-orb-drift 52s ease-in-out infinite alternate;
    }

    .login-bg-blur--blue {
        animation: premium-orb-drift 64s ease-in-out -32s infinite alternate-reverse;
    }

    .landing-shift-badge {
        opacity: 0;
        animation:
            premium-fade-up 0.65s var(--ease-luxury) 0.34s forwards,
            premium-glow-pulse 4.5s ease-in-out 1.2s 3;
    }

    .entry-card-frame {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
        animation:
            premium-card-enter calc(var(--motion-reveal) + 0.1s) var(--ease-luxury) forwards,
            entry-border-angle-spin 5.5s linear infinite;
    }

    /* כניסה לדף ההתחברות — אותה שפת reveal כמו דף הנחיתה */
    .login-card-frame {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
        animation:
            premium-card-enter calc(var(--motion-reveal) + 0.1s) var(--ease-luxury) 0.06s forwards,
            entry-border-angle-spin 5.5s linear infinite;
    }
}

/* טבעת ה-comet — קוני ממוסך לרוחב הגבול בלבד (2px), עצמאי משקיפות הפאנל.
   כך ה-comet מופיע רק על המסגרת ולא כפרוסה מסתובבת דרך הזכוכית השקופה (סונאר). */
.entry-card-frame::after,
.login-card-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--entry-border-angle),
        transparent 0deg 46deg,
        var(--entry-ring-beam-soft) 84deg,
        var(--entry-ring-beam) 104deg,
        var(--accent-strong) 112deg,
        transparent 120deg 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* זוהר עדין מאחור — אותה זווית כמו המסגרת, בלי סיבוב שכבה */
.entry-card-frame::before,
.login-card-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--entry-border-angle),
        transparent 0deg 64deg,
        var(--entry-ring-glow-soft) 92deg,
        var(--entry-ring-glow) 108deg,
        var(--accent-strong) 114deg,
        var(--entry-ring-glow-soft) 124deg,
        transparent 142deg 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    filter: blur(14px);
    opacity: 0.38;
    z-index: 0;
    pointer-events: none;
}

.entry-card-frame:nth-child(1) {
    animation-delay: 0.44s, 0s;
}

.entry-card-frame:nth-child(2) {
    animation-delay: 0.54s, -2.75s;
}

.entry-card-frame--tech,
.login-card-frame--tech {
    --entry-ring-beam: rgba(0, 212, 255, 0.9);
    --entry-ring-beam-soft: rgba(0, 212, 255, 0.24);
    --entry-ring-track: rgba(0, 212, 255, 0.08);
    --entry-ring-glow: rgba(0, 212, 255, 0.52);
    --entry-ring-glow-soft: rgba(0, 212, 255, 0.18);
}

.entry-card-frame--admin,
.login-card-frame--admin {
    --entry-ring-beam: rgba(0, 212, 255, 0.9);
    --entry-ring-beam-soft: rgba(0, 212, 255, 0.24);
    --entry-ring-track: rgba(0, 212, 255, 0.08);
    --entry-ring-glow: rgba(0, 212, 255, 0.52);
    --entry-ring-glow-soft: rgba(0, 212, 255, 0.18);
}

/* גוון החלוניות כמו במוקאפ — מילוי-פאנל glass כהה-שקוף (במקום אטום),
   כדי שהאורורה מבצבצת דרכו. נחיתה בלבד — דף ההתחברות לא מושפע. */
.landing-page .entry-card-frame {
    --frame-panel: rgba(17, 24, 34, 0.62);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.entry-card-frame:has(.entry-card:hover),
.entry-card-frame:has(.entry-card:focus-visible) {
    transform: translate3d(0, -6px, 0) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2), 0 10px 28px rgba(0, 0, 0, 0.26);
    animation-duration: calc(var(--motion-reveal) + 0.1s), 6s;
}

.entry-card-frame:has(.entry-card:hover)::before,
.entry-card-frame:has(.entry-card:focus-visible)::before {
    opacity: 0.5;
    filter: blur(18px);
}

.entry-card-frame--admin:has(.entry-card:hover),
.entry-card-frame--admin:has(.entry-card:focus-visible) {
    box-shadow: 0 22px 54px rgba(0, 212, 255, 0.26), 0 12px 32px rgba(0, 0, 0, 0.28);
}

.entry-card-frame--tech:has(.entry-card:hover),
.entry-card-frame--tech:has(.entry-card:focus-visible) {
    box-shadow: 0 22px 54px rgba(0, 212, 255, 0.26), 0 12px 32px rgba(0, 0, 0, 0.28);
}

.entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    min-height: 13.5rem;
    margin: 0;
    padding: 2.25rem 1.75rem;
    /* גוון glass-frost עשיר יותר (בהשראת המוקאפ): sheen + specular rim עליון */
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 46%),
        rgba(255, 255, 255, 0.012);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: none;
    border: none;
    border-radius: var(--radius-7);
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition:
        box-shadow var(--motion-hover) var(--ease-luxury-soft),
        background-color var(--motion-hover) var(--ease-luxury);
}

/* פוקוס מקלדת גלוי על שני שערי הכניסה — היה רק זוהר דמוי-hover (לא נגיש).
   outline עוקב אחרי הפינות המעוגלות ולא נחתך ע״י overflow:hidden של הכרטיס. */
.entry-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.entry-card::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(
        118deg,
        transparent 0% 36%,
        rgba(255, 255, 255, 0.04) 44%,
        rgba(0, 212, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 56%,
        transparent 68% 100%
    );
    filter: blur(10px);
    opacity: 0.85;
    transform: translateX(115%);
    transition: transform 0.85s var(--ease-luxury);
    pointer-events: none;
}

.entry-card::after {
    content: '';
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    width: min(11rem, 72%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.65), transparent);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity var(--motion-hover) var(--ease-luxury-soft);
}

.entry-card:hover::before {
    transform: translateX(-115%);
}

.entry-card:hover::after {
    opacity: 1;
}

.entry-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0 1.15rem;
    border-radius: var(--radius-5);
    /* טבעת אייקון זוהרת (בהשראת כרטיס-הטכנאי במוקאפ) — על שני הכרטיסים */
    background: radial-gradient(circle at 50% 32%, rgba(0, 212, 255, 0.22), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.42);
    color: var(--accent-strong);
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.22), inset 0 0 0 1px rgba(0, 212, 255, 0.1);
    position: relative;
    transition:
        transform var(--motion-hover) var(--ease-luxury),
        box-shadow var(--motion-hover) var(--ease-luxury-soft),
        background-color var(--motion-hover) var(--ease-luxury);
}

.entry-card:hover .entry-card__icon {
    transform: translateY(-3px) scale(1.04);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.18);
}

.entry-card__icon svg,
.lucide-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lucide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.login-home-link__icon .lucide-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.cta-chevron {
    flex-shrink: 0;
    transition: transform var(--motion-hover) var(--ease-luxury);
}

/* החץ נע בכיוון הקריאה יחד עם ה-lift של הכרטיס */
.entry-card:hover .cta-chevron,
.entry-card:focus-visible .cta-chevron {
    transform: translateX(-3px);
}

.cta-chevron svg {
    width: 1em;
    height: 1em;
}

.text-accent--with-chevron,
.tech-dashboard__hero-cta,
.entry-card__cta,
.btn-with-chevron,
.btn-back-with-chevron {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-card__icon,
.tech-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-3);
    background: rgba(0, 212, 255, 0.06);
    color: var(--accent);
}

.dashboard-card__icon .lucide-icon svg,
.tech-tile__icon .lucide-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.tech-tile__icon {
    color: var(--accent-tech);
    background: rgba(0, 150, 255, 0.06);
}

.badge-vacation {
    background: var(--accent-vacation);
    color: #fff;
}

.login-timeout-alert--success {
    /* SUX-1: הודעת-הצלחה חייבת רקע ירוק — אחרת יורשת את הרקע הענבר של האזהרה (סיגנל מעורב) */
    background: color-mix(in oklab, var(--success) 18%, transparent);
    border-color: var(--success);
    color: var(--text-primary);
}

.entry-card h2 {
    margin: 0 0 0.55rem;
    width: 100%;
    color: var(--accent-strong);
    font-size: clamp(1.2rem, 2.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.entry-card p {
    margin: 0 0 1.2rem;
    max-width: 17rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.entry-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* משוב מגע לשערי הכניסה — במגע אין hover, אז ה-:active הוא אישור ההקשה היחיד.
   ה-accent-flash שואב את גוון הטבעת של הכרטיס עצמו (--entry-ring-glow-soft: טכנאי כחול / מנהל תכלת). */
@media (hover: none) and (pointer: coarse) {
    .entry-card {
        transition:
            box-shadow var(--motion-fast) var(--ease-standard),
            background-color var(--motion-fast) var(--ease-standard),
            transform var(--motion-fast) var(--ease-standard);
    }

    .entry-card:active {
        transform: scale(0.97);
        background: rgba(255, 255, 255, 0.05);
    }

    .entry-card:active .entry-card__icon {
        background: var(--entry-ring-glow-soft);
        box-shadow: 0 0 20px var(--entry-ring-glow-soft);
    }
}


.login-card-frame--admin {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.login-card-frame--tech {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.login-timeout-alert {
    width: 100%;
    max-width: var(--login-card-max, 400px);
    flex-shrink: 0;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.65rem;
    background: rgba(210, 153, 34, 0.18);
    border: 1px solid var(--warning, #d29922);
    border-radius: var(--radius-4);
    color: var(--warning, #d29922);
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    z-index: 1;
}


/* ─── רפרנס פיקסל-ארט במסך ההתחברות (מדען "CUDA") ────────────────────────────
   מעל שדה שם-המשתמש, בקצה השמאלי של שורת-התווית.

   מובייל בלבד: ברירת-המחדל היא הסתרה, והוא נדלק רק על מכשיר-מגע אמיתי.
   ⚠️ בכוונה לא `max-width` — חלון דסקטופ מוקטן הוא ממשק דסקטופ, לא מובייל.
   בדסקטופ שורת-הכותרת מתנהגת בדיוק כמו התווית שהייתה כאן קודם.               */
.login-field-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
}

.login-field-head label {
    margin-bottom: 0;   /* המרווח לפני ה-input נשמר ע"י שורת-הכותרת עצמה */
}

.login-mascot {
    display: none;
}

@media print {
    .login-mascot { display: none !important; }
}

@media (hover: none) and (pointer: coarse) {
    .login-field-head {
        margin-bottom: 0.35rem;   /* אותו מרווח שהתווית נתנה קודם */
    }

    .login-mascot {
        display: block;
        width: 68px;
        flex: 0 0 auto;
        pointer-events: none;
    }

    .login-mascot img {
        display: block;
        width: 100%;
        height: auto;               /* יחס-גובה-רוחב נשמר; בלי CLS (width/height על התגית) */
        image-rendering: pixelated; /* פיקסל-ארט — קצוות חדים במקום טשטוש בהקטנה */
    }
}

}

/* --- components-enhancements.css --- */
/* components-enhancements.css — Luxury motion, dvh/P3/contrast, passkey blocks */
@layer components {
/* ═══════════════════════════════════════════════════════════════════════════
   Luxury motion — page reveals, modals, micro-interactions
   ═══════════════════════════════════════════════════════════════════════════ */

/* compositor-only (opacity+transform) — blur על כרטיסים גדולים גרם paint יקר במובייל */
@keyframes lux-reveal {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes lux-dialog-in {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(0.965);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes lux-constraint-pop {
    0% {
        transform: scale(0.94);
        box-shadow: 0 0 0 rgba(255, 34, 34, 0);
    }
    55% {
        transform: scale(1.035);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lux-header-in {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .app-header {
        animation: lux-header-in calc(var(--motion-reveal) + 0.1s) var(--ease-luxury) both;
    }

    .page-intro {
        animation: lux-reveal var(--motion-reveal) var(--ease-luxury) 0.06s both;
    }

    .guide-layout > .card,
    main.container-main > .card,
    main.container-main > form.card,
    .dashboard-grid > .dashboard-card,
    .onboarding-card,
    .admin-dashboard > .admin-dashboard__section,
    .admin-dashboard > .admin-dashboard__settings,
    .tech-dashboard > .tech-dashboard__attention,
    .tech-dashboard > .tech-dashboard__hero-card,
    .tech-dashboard > .tech-dashboard__tiles,
    .tech-dashboard > .tech-dashboard__panel,
    .admin-months > .card,
    .admin-months > .admin-details,
    .blocking-oversight > .card,
    .smtp-settings-page > .card,
    .settings-grid > .settings-card,
    .schedule-tab-panel > .card {
        animation: lux-reveal var(--motion-reveal) var(--ease-luxury) both;
    }

    .guide-layout > .card:nth-child(1) { animation-delay: 0.08s; }
    .guide-layout > .card:nth-child(2) { animation-delay: 0.12s; }
    .guide-layout > .card:nth-child(3) { animation-delay: 0.16s; }
    .guide-layout > .card:nth-child(4) { animation-delay: 0.20s; }
    .guide-layout > .card:nth-child(5) { animation-delay: 0.24s; }
    .guide-layout > .card:nth-child(6) { animation-delay: 0.28s; }
    .guide-layout > .card:nth-child(7) { animation-delay: 0.32s; }
    .guide-layout > .card:nth-child(8) { animation-delay: 0.36s; }
    /* תקרה: כרטיסים 9+ נחשפים אחרי 1–8, לא לפניהם (היה delay 0 → סדר הפוך) */
    .guide-layout > .card:nth-child(n+9) { animation-delay: 0.40s; }

    main.container-main > .card:nth-child(2),
    main.container-main > form.card:nth-child(2) { animation-delay: 0.10s; }
    main.container-main > .card:nth-child(3),
    main.container-main > form.card:nth-child(3) { animation-delay: 0.14s; }
    main.container-main > .card:nth-child(4),
    main.container-main > form.card:nth-child(4) { animation-delay: 0.18s; }
    main.container-main > .card:nth-child(5),
    main.container-main > form.card:nth-child(5) { animation-delay: 0.22s; }
    main.container-main > .card:nth-child(n+6),
    main.container-main > form.card:nth-child(n+6) { animation-delay: 0.26s; }

    .dashboard-grid > .dashboard-card:nth-child(1) { animation-delay: 0.06s; }
    .dashboard-grid > .dashboard-card:nth-child(2) { animation-delay: 0.10s; }
    .dashboard-grid > .dashboard-card:nth-child(3) { animation-delay: 0.14s; }
    .dashboard-grid > .dashboard-card:nth-child(4) { animation-delay: 0.18s; }
    .dashboard-grid > .dashboard-card:nth-child(5) { animation-delay: 0.22s; }
    .dashboard-grid > .dashboard-card:nth-child(6) { animation-delay: 0.26s; }

    /* דשבורדים/חודשים/פיקוח/הגדרות — אותו ריווח חשיפה כמו דפי main ישירים */
    .admin-dashboard > :nth-child(1),
    .tech-dashboard > :nth-child(2),
    .admin-months > :nth-child(1),
    .blocking-oversight > :nth-child(1),
    .smtp-settings-page > :nth-child(2),
    .settings-grid > :nth-child(1),
    .schedule-tab-panel > .card:nth-child(1) { animation-delay: 0.10s; }

    .admin-dashboard > :nth-child(2),
    .tech-dashboard > :nth-child(3),
    .admin-months > :nth-child(2),
    .blocking-oversight > :nth-child(2),
    .smtp-settings-page > :nth-child(3),
    .settings-grid > :nth-child(2),
    .schedule-tab-panel > .card:nth-child(2) { animation-delay: 0.14s; }

    .tech-dashboard > :nth-child(4),
    .admin-months > :nth-child(3),
    .blocking-oversight > :nth-child(3),
    .smtp-settings-page > :nth-child(4),
    .schedule-tab-panel > .card:nth-child(3) { animation-delay: 0.18s; }

    .tech-dashboard > :nth-child(n+5),
    .admin-months > :nth-child(n+4),
    .blocking-oversight > :nth-child(n+4),
    .smtp-settings-page > :nth-child(n+5),
    .schedule-tab-panel > .card:nth-child(n+4) { animation-delay: 0.22s; }

    .cal-cell--pulse {
        animation: lux-constraint-pop 0.44s var(--ease-luxury) both;
    }

    .login-card {
        animation: lux-dialog-in calc(var(--motion-reveal) + 0.12s) var(--ease-luxury) 0.1s both;
    }

    /* M1 — published shift cards (mobile board): staggered reveal, the surface a
       technician opens daily on their phone. Capped so card 9+ never reveals before 1–8. */
    .shift-cards > .shift-card {
        animation: lux-reveal var(--motion-reveal) var(--ease-luxury) both;
    }

    .shift-cards > .shift-card:nth-child(1) { animation-delay: 0.04s; }
    .shift-cards > .shift-card:nth-child(2) { animation-delay: 0.08s; }
    .shift-cards > .shift-card:nth-child(3) { animation-delay: 0.12s; }
    .shift-cards > .shift-card:nth-child(4) { animation-delay: 0.16s; }
    .shift-cards > .shift-card:nth-child(5) { animation-delay: 0.20s; }
    .shift-cards > .shift-card:nth-child(6) { animation-delay: 0.24s; }
    .shift-cards > .shift-card:nth-child(7) { animation-delay: 0.28s; }
    .shift-cards > .shift-card:nth-child(8) { animation-delay: 0.32s; }
    .shift-cards > .shift-card:nth-child(n+9) { animation-delay: 0.36s; }

    /* M2 — the technician's own shift: a one-time wayfinding glow that fades into the
       static green border. On an ::after overlay so it never fights the reveal animation. */
    .shift-card--mine::after {
        animation: mine-pulse 2s var(--ease-luxury-soft) 0.7s 1 forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cal-cell--pulse {
        animation: none;
    }
}

/* M2 primitive — my-shift wayfinding glow (animation gated above; base is still). */
@keyframes mine-pulse {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.shift-card--mine {
    position: relative;
}

.shift-card--mine::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow:
        0 0 0 1px rgba(63, 185, 80, 0.55),
        0 0 18px rgba(63, 185, 80, 0.4);
    opacity: 0;
    pointer-events: none;
}

/* M4 primitive — primary CTA sheen on tap (class toggled by site.js, one-shot). */
@keyframes btn-primary-sheen {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(-120%);
    }
}

.btn-primary.is-sheening::before {
    animation: btn-primary-sheen 0.6s var(--ease-luxury);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Modern displays · dynamic viewport · wide gamut · foldables · a11y
   ═══════════════════════════════════════════════════════════════════════════ */

@supports (height: 100dvh) {
    .landing-page {
        min-height: 100dvh;
    }
}

@supports (justify-content: safe center) {
    .login-page,
    .landing-page {
        justify-content: safe center;
    }
}

h1, h2, h3,
.guide-hero-card h2,
.login-brand h1 {
    text-wrap: balance;
}

p, li, .guide-note {
    text-wrap: pretty;
}

main.container-main {
    container-type: inline-size;
    container-name: page;
}

/* 900 ולא 640: בטאבלט שורת פעולות עמוסה (לוח תורנויות למנהל — 5 כפתורים)
   גלשה מחוץ למסך כששורת הכותרת נשארה אופקית */
@container page (max-width: 900px) {
    .page-intro {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        justify-content: stretch;
    }

    .page-actions .btn {
        flex: 1 1 auto;
    }
}

@container guide (min-width: 720px) {
    .guide-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (color-gamut: p3) {
    .btn-primary {
        background: linear-gradient(135deg, color(display-p3 0.05 0.68 0.88), color(display-p3 0.15 0.88 1));
    }
}

@media (dynamic-range: high) {
    .guide-hero-card,
    .page-intro,
    .dashboard-card:hover {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.06);
    }
}

@media (prefers-contrast: more) {
    .card,
    .dashboard-card,
    .form-control {
        border-width: 1.5px;
    }

    .btn:focus-visible {
        box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 5px var(--accent-strong);
    }

    .app-header nav a:focus-visible,
    .nav-more__summary:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-strong);
    }

    .form-control:focus-visible {
        box-shadow: 0 0 0 4px var(--accent);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .app-header,
    .card,
    .login-card,
    .site-footer,
    .dashboard-card:hover,
    a.tech-tile:hover,
    a.admin-nav-tile:hover,
    .tech-dashboard__hero-card:hover,
    .user-more-modal::backdrop,
    .nav-more-dialog.user-more-modal::backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-height: 32rem) and (orientation: landscape) {
    .app-header {
        position: sticky;
        top: 0;
        padding:
            max(0.35rem, var(--safe-area-top))
            max(0.85rem, var(--safe-area-right))
            0.35rem
            max(0.85rem, var(--safe-area-left));
    }

    .header-clock,
    .user-greeting {
        display: none;
    }

    main.container-main {
        padding-top: 0.85rem;
    }

    .login-page {
        --login-card-pad-y: 1rem;
        --login-card-pad-x: 1rem;
        padding-top: max(0.5rem, var(--safe-area-top));
        padding-bottom: max(1.25rem, var(--safe-area-bottom));
        justify-content: flex-start;
    }

    .login-brand {
        margin-bottom: 0.85rem;
    }

    .login-brand h1 {
        font-size: 1.05rem;
    }

    .brand-logo--login {
        max-height: clamp(3rem, 10vh, 4rem);
    }

    .brand-logo-frame--login {
        padding: 0.65rem 0.85rem;
    }

    .login-home-link {
        padding: 0.45rem 0.9rem;
        font-size: 0.86rem;
    }

    .login-passkey-block .form-hint {
        font-size: 0.74rem;
    }
}

@media (horizontal-viewport-segments: 2) {
    main.container-main,
    .header-inner {
        max-width: min(var(--content-max), env(viewport-segment-width 0 0, 100vw));
    }
}

@media (min-resolution: 2dppx) {
    .brand-logo,
    .brand-logo-frame img {
        image-rendering: -webkit-optimize-contrast;
    }

    .header-clock,
    .stats-bar-fill,
    table.data-table {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

.placement-hints {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.placement-hints__list {
    margin: 0.25rem 0 0;
    padding-inline-start: 1.1rem;
}

.placement-hints__lead {
    margin: 0.35rem 0 0.15rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.login-passkey-block {
    margin-top: 0.85rem;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-soft);
}

.login-passkey-divider {
    text-align: center;
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
}

.login-passkey-block .form-hint {
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: start;
}

.passkey-admin-card {
    margin-top: var(--space-6);
}

.passkey-admin-card--setup {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-soft);
}

.passkey-list {
    margin: 0.75rem 0 1rem;
    padding: 0;
    list-style: none;
}

.passkey-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    padding: 0.5rem 0;
    border-block-end: 1px solid var(--border-soft);
}

.passkey-list__item:last-child {
    border-block-end: 0;
}

.passkey-list__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}

.passkey-delete-form__auth {
    max-width: 22rem;
}

.admin-partial-regen-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-inline-start: 0.35rem;
}

.admin-partial-regen-form select {
    min-width: 8.5rem;
    max-width: 11rem;
}

.dashboard-card--calendar .calendar-feed-copy {
    display: block;
    margin: 0.5rem 0;
    min-width: min(100%, 18rem);
}

.dashboard-card--calendar .calendar-feed-copy input {
    margin-top: var(--space-1);
}
}

/* --- site.css --- */
/* stack: … · layout · months · site (misc) · utilities · mobile */

@layer components {

/* extracted — components-layout.css, components-months.css */

/* מודלים — dialogs.css */

.fixed-days-form {
    display: grid;
    gap: 0.55rem;
    min-width: 220px;
    padding-top: 0.35rem;
}

.fixed-days-form__fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-5);
    padding: 0.55rem;
}

.fixed-days-form__fieldset legend {
    padding: 0 0.35rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.fixed-days-form__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
}

.fixed-days-form__option {
    font-size: 0.85rem;
}

.users-promote-hint,
.users-session-hint {
    margin: 0 0 var(--space-4);
    font-size: 0.88rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.32);
    transform: translateY(-1px);
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.action-bar--compact {
    margin-top: var(--space-3);
}

.action-bar--spaced {
    margin-top: 1.1rem;
}

/* extracted — components-layout.css, components-months.css */

/* ניהול משתמשים — מודל «עוד»: <dialog> + grid לגלילה אמינה (desktop + mobile) */
.user-more-modal {
    border: none;
    padding: 0;
    margin: auto;
    width: min(22rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    background: transparent;
    color: inherit;
    overflow: visible;
}

.user-more-modal::backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.user-more-modal__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    max-height: min(85vh, 32rem);
    max-height: min(85svh, 32rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-6);
    /* glass: קורת-אור עליונה (gradient מקופל ברקע, לא ::before — כדי ש-::before פנוי לרמז-הגרירה) */
    background:
        linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, transparent), transparent 42%),
        var(--bg-card);
    box-shadow:
        var(--shadow-card-hover),
        0 20px 56px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
    direction: rtl;
    overflow: hidden;
}

.user-more-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: 0.75rem 0.9rem 0.65rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.14);
    /* שקוף — לא לנקב פס אטום דרך פאנל ה-glass (מוחזר למוצק ב-reduced-transparency) */
    background: transparent;
}

.user-more-modal__header .eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
}

.user-more-modal__header h2 {
    margin: 0;
    font-size: var(--fs-base);
    line-height: 1.35;
}

.user-more-modal__body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.65rem 0.9rem 1.25rem;
}

.user-more-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
}

.user-more-panel .form-hint {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.user-more-panel .btn,
.user-more-panel .inline-form,
.user-more-panel .inline-form .btn {
    width: 100%;
}

/* אזור-סכנה: מפריד את "הסר" מכפתורי הפעולה הרגילים בגיליון — מפחית מיס-טאפ במובייל */
.user-more-panel form[data-confirm-delete] {
    margin-block-start: var(--space-3);
    padding-block-start: var(--space-3);
    border-block-start: 1px solid rgba(248, 81, 73, 0.25);
}

.user-more-panel .fixed-days-form,
.user-more-panel .allowed-duty-days-form {
    width: 100%;
    min-width: 0;
}

.user-more-panel .vacation-admin-block__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
}

.user-more-panel .vacation-admin-block__form label {
    display: grid;
    gap: var(--space-1);
}

.user-more-panel fieldset {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: var(--radius-4);
}

.user-more-panel legend {
    padding: 0 var(--space-1);
    font-weight: 700;
    font-size: 0.92rem;
}

.allowed-duty-days-form__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin: 0 0 var(--space-2);
}

.allowed-duty-days-form__status-days {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.automation-event-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.automation-event-list li {
    display: grid;
    grid-template-columns: minmax(104px, auto) 1fr;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(0, 212, 255, 0.12);
    line-height: 1.45;
}

.automation-event-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.automation-event-list time {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.form-control-sm {
    padding: 0.4rem 0.6rem;
    /* max(16px,…) מונע zoom-jump ב-iOS Safari על שדות טופס קטנים (בורר עריכת שיבוץ, מייל משתמש) */
    font-size: max(16px, 0.85rem);
    min-width: 140px;
    /* סימטריה: כל .btn הוא 44 (--touch-target) — פקד קטן לידו לא יושב נמוך יותר */
    min-height: var(--touch-target);
}

/* שורות סינון (שנה/חודש/הצג) — גובה אחיד מדויק לפקדים ולכפתור, בלי ריצוד 44/46/48 */
.filter-form select.form-control,
.filter-form input.form-control {
    height: var(--touch-target);
    padding-block: 0;
}

.inline-shift-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.card, .form-control, .dashboard-card {
    transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: flex-end;
}

.filter-form .form-group {
    margin-bottom: 0;
}

.form-control-short {
    width: 9rem;
    max-width: 100%;
}

.form-control-medium {
    max-width: 280px;
}

.form-hint-compact {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}


/* Stats chart */
/* טבלה סמנטית שמרונדרת כרשימת-פסים: <table> block, ה-<tbody> נושא את פריסת-העמודות */
.stats-chart {
    display: block;
    margin-top: var(--space-4);
}

.stats-chart tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.stats-row {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    align-items: center;
    gap: var(--space-3);
}

.stats-name {
    padding: 0;
    /* <th> — לאפס bold ברירת-המחדל של תא-כותרת */
    font-size: 0.9rem;
    font-weight: 400;
    text-align: right;
    /* SUX-3app: שם ארוך נחתך ב-… במקום לגלוש מטור ה-100px */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-bar-cell {
    padding: 0;
    min-width: 0;
}

.stats-bar-track {
    height: 22px;
    background: rgba(13, 17, 23, 0.8);
    border-radius: var(--radius-2);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

/* קו-ממוצע (reference line) — מסמן היכן עובר הממוצע כדי לזהות מי מעל/מתחת במבט אחד.
   המיקום (%) נקבע ב-site.js מ-data-stat-mean (אין inline style). */
.stats-bar-mean {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: 2px;
    background: repeating-linear-gradient(180deg,
        rgba(240, 246, 252, 0.72) 0 3px, transparent 3px 6px);
    z-index: 2;
}

.stats-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0066aa, var(--accent));
    border-radius: var(--radius-2);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width var(--motion-reveal) var(--ease-luxury-soft);
}

.stats-bar-fill--muted {
    background: linear-gradient(90deg, rgba(139, 148, 158, 0.35), rgba(139, 148, 158, 0.65));
    box-shadow: none;
}

.stats-value {
    padding: 0;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
}

/* User onboarding welcome */
.onboarding-page {
    display: flex;
    justify-content: center;
    padding:
        max(1.5rem, var(--safe-area-top))
        max(1.5rem, var(--safe-area-right))
        max(3rem, calc(3rem + var(--safe-area-bottom)))
        max(1.5rem, var(--safe-area-left));
}

.onboarding-card {
    width: 100%;
    max-width: 520px;
    padding: 2rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.onboarding-card--admin {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.12);
}

.onboarding-card--tech {
    border-color: rgba(63, 185, 80, 0.35);
    box-shadow: 0 0 28px rgba(63, 185, 80, 0.08);
}

.onboarding-card__badge {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-round);
    margin-bottom: var(--space-3);
}

.onboarding-card--tech .onboarding-card__badge {
    color: var(--success);
    background: rgba(63, 185, 80, 0.15);
}

.onboarding-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-card__subtitle {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-base);
    color: var(--accent);
    font-weight: 500;
}

.onboarding-card__body {
    margin: 0 0 var(--space-5);
    color: var(--text-muted);
    line-height: 1.65;
}

.onboarding-steps {
    margin: 0 0 var(--space-6);
    padding-inline-start: var(--space-5);
    color: var(--text-primary);
}

.onboarding-steps li {
    margin-bottom: 0.45rem;
}

.onboarding-credentials {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-5);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
}

.onboarding-credentials h2 {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-base);
    font-weight: 600;
}

.onboarding-credentials__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.onboarding-credentials__label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.onboarding-credentials code {
    font-size: 1.05rem;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-2);
}

.onboarding-credentials__note {
    margin: var(--space-3) 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.onboarding-credentials__url {
    word-break: break-all;
    font-size: 0.8rem;
}

.onboarding-message-source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: pre-wrap;
    border: 0;
}

.onboarding-copy-feedback {
    margin: var(--space-3) 0 0;
    min-height: 1.25rem;
    font-size: 0.85rem;
    color: var(--success);
    text-align: center;
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Touch targets & keyboard focus.
   Visible focus ring for keyboard users (WCAG 2.4.7). The transparent
   outline is invisible in normal mode but is promoted to a system colour
   under Windows High Contrast / forced-colors, where box-shadow rings are
   dropped (MDN forced-colors guidance). */
.btn:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
}

.app-header nav a:focus-visible,
.nav-more__summary:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--accent);
}

.entry-card:focus-visible {
    outline: none;
}

.entry-card-frame:has(.entry-card:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (min-width: 1440px) {
    main.container-main {
        padding-inline: max(2rem, var(--safe-area-right)) max(2rem, var(--safe-area-left));
    }

    .card {
        border-radius: var(--radius-6);
    }

    table.data-table {
        font-size: 0.93rem;
    }
}

@media (min-width: 2200px) {
    html {
        font-size: 17px;
    }

    .header-inner {
        max-width: min(var(--content-ultra), calc(100vw - 8rem));
    }

    main.container-main {
        padding-top: var(--space-7);
        padding-inline: max(3rem, var(--safe-area-right)) max(3rem, var(--safe-area-left));
    }

    .dashboard-grid,
    .entry-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .entry-cards {
        max-width: min(1160px, 100%);
    }

    .card,
    .dashboard-card {
        padding: 1.65rem;
    }

    .page-intro {
        padding: 1.35rem 1.55rem;
    }
}

@media (min-width: 3000px) {
    html {
        font-size: 18px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    }

    .entry-cards {
        max-width: min(1280px, 100%);
    }

    table.data-table {
        font-size: 0.96rem;
    }
}

@media (update: fast) and (prefers-reduced-motion: no-preference) {
    .btn,
    .card,
    .form-control,
    .dashboard-card,
    .entry-card,
    .toast,
    .app-header nav a {
        transition-timing-function: var(--ease-snappy);
    }
}

.btn,
.card,
.form-control,
.dashboard-card,
.entry-card,
.toast,
.guide-card,
.guide-hero-card {
    transition-timing-function: var(--ease-luxury);
    transition-duration: var(--motion-hover);
}

/* מיקרו-אינטראקציות (כפתורים/שדות) מהירות מקומפוננטות גדולות — 0.38s מרגיש איטי בלחיצה */
.btn,
.form-control {
    transition-duration: var(--motion-fast);
}

.stats-bar-fill {
    transition-duration: var(--motion-reveal);
    transition-timing-function: var(--ease-luxury-soft);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .landing-welcome,
    .landing-hero,
    .landing-shift-badge,
    .entry-card-frame {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .entry-card:hover,
    .entry-card-frame:has(.entry-card:hover),
    .entry-card-frame:has(.entry-card:focus-visible),
    .dashboard-card:hover,
    .btn-primary:hover,
    .btn-danger:hover {
        transform: none;
    }

    .entry-card-frame {
        animation: premium-card-enter calc(var(--motion-reveal) + 0.1s) var(--ease-luxury) forwards;
        border-color: var(--border);
        background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box;
    }

    .entry-card-frame::before,
    .login-card-frame::before {
        display: none;
    }

    .login-card-frame {
        animation: none;
        border-color: var(--border);
        background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box;
    }
}

@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .entry-card-frame {
        border: 1px solid var(--border);
        background: var(--bg-secondary);
        animation: premium-card-enter calc(var(--motion-reveal) + 0.1s) var(--ease-luxury) forwards;
    }

    .login-card-frame {
        border: 1px solid var(--border);
        background: var(--bg-secondary);
        animation: none;
    }
}

/* ── מסכי מגע: ביטול hover-transforms שמקפיצים אחרי tap ── */
/* @media (hover: none) אמין יותר מ-pointer:coarse לזיהוי מסכי מגע */
@media (hover: none) {
    .entry-card-frame:has(.entry-card:hover),
    .entry-card-frame:has(.entry-card:focus-visible) {
        transform: none;
        box-shadow: none;
    }

    .entry-card:hover::before,
    .entry-card:hover::after {
        opacity: 0;
        transform: translateX(-115%);
    }

    .entry-card:hover .entry-card__icon {
        transform: none;
        box-shadow: none;
        background: rgba(0, 212, 255, 0.06);
    }

    /* רק שכבות דקורטיב (::before/::after) — לא את שטח הלחיצה (opacity:0 גרם ל"היעלמות" אחרי tap) */
    .dashboard-card:hover::before {
        opacity: 0;
        transform: scale(0.94);
    }

    .dashboard-card:hover::after,
    a.tech-tile:hover::after,
    a.admin-nav-tile:hover::after,
    .tech-dashboard__hero-card:hover::after {
        opacity: 0;
    }

    .dashboard-card:hover,
    a.tech-tile:hover,
    a.admin-nav-tile:hover,
    a.admin-month-quick__link:hover,
    .tech-dashboard__hero-card:hover,
    .btn-primary:hover,
    .btn-whatsapp:hover,
    .btn-secondary:hover,
    .btn-danger:hover {
        transform: none;
        opacity: 1;
    }

    /* blur יקר שנתקע אחרי tap — אין לו ערך במגע */
    .dashboard-card:hover,
    a.tech-tile:hover,
    a.admin-nav-tile:hover,
    .tech-dashboard__hero-card:hover {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ── מסכי מגע: אזורי לחיצה גדולים יותר בכפתורים קטנים ── */
@media (pointer: coarse) {
    .btn-sm {
        min-height: 40px;
        padding: 0.42rem 0.85rem;
    }

    /* תאי לוח שנה — קצת יותר גבוהים להקלת לחיצה */
    .cal-cell {
        min-height: 64px;
    }

    /* פקדי ניווט בתפריט מגע */
    .mobile-nav-picker__select {
        min-height: var(--touch-target);
    }
}

/* Tablets & small laptops */
@media (max-width: 1024px) {
    .header-inner {
        gap: 0.85rem;
    }

    .app-header nav {
        gap: 0.65rem 0.85rem;
    }

    .entry-cards {
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Phones & narrow tablets — layout stacks, readable tables, comfy tap zones */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    main.container-main {
        padding-top: var(--space-4);
        padding-inline-start: max(0.85rem, var(--safe-area-right));
        padding-inline-end: max(0.85rem, var(--safe-area-left));
    }

    .card {
        padding: 1.15rem;
        margin-bottom: 1.1rem;
    }

    h1 {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem);
        line-height: 1.25;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form {
        align-items: stretch;
    }

    .admin-month-picker,
    .admin-month-picker__actions,
    .admin-month-select-form,
    .admin-current-month-card__header,
    .admin-current-month-card__primary {
        width: 100%;
        align-items: stretch;
    }

    .admin-current-month-card__primary,
    .admin-current-month-card__primary .inline-form,
    .admin-current-month-card__primary .btn {
        width: 100%;
    }
    .admin-month-workflow {
        grid-template-columns: 1fr;
    }

    .admin-workflow-step {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .admin-workflow-step:not(.admin-workflow-step--active) .admin-workflow-step__header p {
        display: block;
    }

    .admin-workflow-step__number {
        width: 1.7rem;
        height: 1.7rem;
    }

    .admin-workflow-step__actions,
    .admin-workflow-step__actions .inline-form,
    .admin-workflow-step__actions .btn {
        width: 100%;
    }

    .admin-inline-details,
    .admin-inline-details > summary,
    .admin-inline-details__panel,
    .admin-inline-details__panel--menu {
        width: 100%;
    }

    .admin-inline-details__panel--menu {
        position: static;
    }

    .filter-form .form-group,
    .filter-form .btn,
    .form-control-short {
        width: 100%;
    }

    .action-bar .btn,
    .action-bar .inline-form,
    .action-bar form.inline-form {
        flex: 1 1 auto;
        width: 100%;
        min-height: var(--touch-target);
    }

    .action-bar form.inline-form .btn {
        width: 100%;
    }

    .table-wrap {
        margin-inline: -0.25rem;
        padding-inline: var(--space-1);
        scrollbar-width: thin;
    }

    table.data-table {
        font-size: 0.82rem;
    }

    table.data-table th,
    table.data-table td {
        padding: 0.52rem 0.48rem;
    }

    .btn-sm {
        min-height: 40px;
        padding: 0.42rem 0.75rem;
    }

    .user-actions-cell {
        white-space: normal;
        text-align: end; /* RTL-1: עקבי עם ה-base הלוגי (end), לא 'right' פיזי */
    }

    .users-table,
    .mobile-card-table {
        border-collapse: separate;
        border-spacing: 0 0.85rem;
    }

    .users-table thead,
    .mobile-card-table thead {
        display: none;
    }

    .users-table,
    .users-table tbody,
    .users-table tr,
    .users-table td,
    .mobile-card-table,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .users-table tr,
    .mobile-card-table tr {
        padding: 0.85rem;
        border: 1px solid rgba(0, 212, 255, 0.16);
        border-radius: var(--radius-6);
        background:
            radial-gradient(circle at 100% 0%, rgba(0, 212, 255, 0.07), transparent 32%),
            rgba(22, 27, 34, 0.72);
    }

    .users-table td,
    .mobile-card-table td {
        display: grid;
        grid-template-columns: minmax(5.5rem, 0.34fr) minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.08);
    }

    .users-table td:last-child,
    .mobile-card-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .users-table td::before,
    .mobile-card-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.78rem;
        font-weight: 700;
    }

    .users-table td[colspan]:not([data-label]),
    .mobile-card-table td[colspan]:not([data-label]) {
        display: block;
        padding-block: 0.6rem;
        border-bottom: 0;
        text-align: start;
    }

    .users-table td[colspan]:not([data-label])::before,
    .mobile-card-table td[colspan]:not([data-label])::before {
        content: none;
    }

    .users-table td[data-label="משתמש"] {
        display: block;
        padding-top: 0;
    }

    .users-table td[data-label="משתמש"]::before {
        display: none;
    }

    .users-table td[data-label="פעולות"] {
        display: block;
    }

    .users-table td[data-label="פעולות"]::before {
        display: block;
        margin-bottom: var(--space-2);
    }

    .users-table td[data-label="מייל"] .inline-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
        margin: 0;
    }

    .users-table td[data-label="מייל"] .form-control-sm {
        min-width: 0;
        width: 100%;
    }

    /* משתמשים: עמודה אחת, כל פעולה ברוחב מלא. td.user-actions-cell (0,2,1) גובר על
       td[data-label="פעולות"]{display:block}. flex-column ולא grid — 3 פריטים מעורבים
       (inline-form / כפתור חשוף / div) ב-grid 2-עמודות יצרו זיגזג ו"עוד" ברוחב תוכן (39px). */
    .users-table td.user-actions-cell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    /* חודשים: 2 פריטים בלבד (נהל | עוד) — גריד 2-עמודות זה-לצד-זה */
    .mobile-card-table td.user-actions-cell {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .users-table .user-actions-cell > *,
    .users-table .user-actions-cell .inline-form,
    .users-table .user-actions-cell .btn,
    .users-table .user-actions-cell .admin-inline-details,
    .users-table .user-actions-cell .user-more-actions,
    .users-table .user-actions-cell .user-more-trigger,
    .mobile-card-table .user-actions-cell .inline-form,
    .mobile-card-table .user-actions-cell .btn,
    .mobile-card-table .user-actions-cell .admin-inline-details {
        width: 100%;
        margin: 0;
    }

    .users-table .user-actions-cell .inline-form .btn,
    .users-table .user-actions-cell .user-more-actions .user-more-trigger,
    .mobile-card-table .user-actions-cell .inline-form .btn {
        width: 100%;
    }

    .mobile-card-table .user-actions-cell .admin-inline-details__panel--menu {
        grid-column: 1 / -1;
    }

    /* כרטיסי חודשים — "עוד" (summary) זהה לחלוטין לכפתור "נהל" שלידו */
    .mobile-card-table .user-actions-cell::before {
        grid-column: 1 / -1;
        margin-bottom: 0.1rem;
    }

    .mobile-card-table .user-actions-cell .admin-inline-details--row {
        margin-inline-start: 0;
    }

    .mobile-card-table .user-actions-cell .admin-inline-details--row > summary {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: var(--touch-target);
    }

    .mobile-card-table .user-actions-cell > .text-muted {
        grid-column: 1 / -1;
        align-self: center;
    }

    /* SUX-2app: שם וערך באותה שורה (שם ימין / ערך שמאל), הפס נפרש מתחת —
       שומר את צימוד שם↔ערך במקום 3 שורות מנותקות. */
    .stats-row {
        grid-template-columns: 1fr auto;
        gap: 0.3rem 0.5rem;
        align-items: center;
    }

    .stats-name {
        grid-column: 1;
        grid-row: 1;
        text-align: start;
    }

    .stats-value {
        grid-column: 2;
        grid-row: 1;
        text-align: end;
    }

    .stats-bar-cell {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .landing-page {
        padding-inline-start: max(1rem, var(--safe-area-right));
        padding-inline-end: max(1rem, var(--safe-area-left));
        padding-bottom: max(2.75rem, calc(2.25rem + var(--safe-area-bottom)));
    }

    .entry-cards {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        max-width: 100%;
    }

    .entry-card {
        padding: 1.65rem 1.2rem;
    }

    .login-page {
        --login-card-pad-y: 1.25rem;
        --login-card-pad-x: 1.1rem;
        padding-inline-start: max(0.85rem, var(--safe-area-right));
        padding-inline-end: max(0.85rem, var(--safe-area-left));
    }

    .brand-logo--login {
        max-height: clamp(3.75rem, 12vw, 5.25rem);
    }

    .brand-logo-frame--login {
        padding: 0.85rem 1rem;
    }

    .login-home-link {
        width: 100%;
        max-width: 18rem;
    }

    .onboarding-page {
        padding-inline-start: max(1rem, var(--safe-area-right));
        padding-inline-end: max(1rem, var(--safe-area-left));
    }

    .onboarding-card {
        padding: 1.5rem 1.15rem;
    }

    .form-control-sm {
        min-width: 0;
        width: 100%;
    }

    .inline-shift-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .app-header .brand__text {
        font-size: 0.82rem;
        max-width: 100%;
    }

    .brand-logo--header {
        max-height: 30px;
        max-width: 104px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .users-table td,
    .mobile-card-table td {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }

    .users-table td[data-label="מייל"] .inline-form,
    .users-table .user-actions-cell {
        grid-template-columns: 1fr;
    }

}

/* גיליון תחתון ל"עוד"/ניווט — ב-≤767px כמו preview/confirm (dialogs.css), כדי שכל
   הדיאלוגים באותו דף יציגו את אותו דפוס (לא מרכזי מול תחתון) בטווח 481–767. */
@media (max-width: 767px) {
    .user-more-modal,
    .nav-more-dialog.user-more-modal {
        width: 100%;
        max-width: 100%;
        margin-block: auto 0;
        margin-inline: auto;
        padding-bottom: max(0px, var(--safe-area-bottom));
    }

    .user-more-modal__panel,
    .nav-more-dialog__panel {
        position: relative;
        max-height: min(88svh, calc(100svh - var(--safe-area-top) - 0.75rem));
        border-radius: var(--radius-7) var(--radius-7) 0 0;
    }

    /* רמז-גרירה דקורטיבי לגיליון-תחתון — כל הפאנלים נושאים .user-more-modal__panel
       (עוד/ניווט/אישור/תצוגת-מייל/מוכנות-חודש). aria-hidden אינהרנטי; כפתור-הסגירה נשאר. */
    .user-more-modal__panel::before {
        content: "";
        position: absolute;
        inset-block-start: var(--space-2);
        inset-inline: 0;
        margin-inline: auto;
        width: 2.25rem;
        height: 0.25rem;
        border-radius: 999px;
        background: var(--border);
        pointer-events: none;
    }

    .user-more-modal__header {
        align-items: center;
    }
}

/* P4-a: סרגל-ניווט תחתון (thumb-zone) — מוסתר כברירת-מחדל; מופעל רק במובייל+Popover בבלוק ה-@@media למטה.
   בלי כלל גלובלי זה, ב-<nav> אין display והוא היה נראה בדסקטופ. */
.ds-bottom-nav {
    display: none;
}

/* Mobile navigation redesign: one premium dropdown, no crowded top menu.
   כולל טלפונים בלנדסקייפ רחב (Plus/Pro Max ~926-932px) דרך (hover:none)+(pointer:coarse) —
   דסקטופ (hover:hover/pointer:fine) לא מותאם לכן הניווט הרחב נשאר לו (תואם pages-auth.css). */
@media (max-width: 920px), (hover: none) and (pointer: coarse) {
    .app-header {
        position: sticky;
        top: 0;
        padding: max(0.5rem, var(--safe-area-top)) max(0.85rem, var(--safe-area-right)) 0.55rem max(0.85rem, var(--safe-area-left));
        background:
            linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.88)),
            radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.12), transparent 34%);
        /* השכבה האטומה כבר מכסה — blur יקר לקומפוזיציה בכל פריים גלילה בטלפונים חלשים */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, auto) minmax(9.5rem, 1fr);
        align-items: center;
        gap: 0.65rem;
    }

    .header-brand-area {
        min-width: 0;
        overflow: hidden;
        /* שורה אחת — מבטל שאריות column מכלל טרום-רדיזיין (components-layout ≤640) שהגביה את ההדר */
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.45rem;
    }

    .user-greeting,
    .app-header .brand__text,
    .app-header .brand--with-logo .brand__text,
    .app-header .main-nav {
        display: none !important;
    }

    .brand-logo--header {
        max-height: 34px;
        max-width: 112px;
    }

    .mobile-nav-picker {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 0.55rem;
        min-width: 0;
        padding: 0.38rem 0.45rem;
        border: 1px solid rgba(0, 212, 255, 0.24);
        border-radius: var(--radius-round);
        background:
            linear-gradient(135deg, rgba(0, 212, 255, 0.11), rgba(255, 255, 255, 0.035)),
            rgba(22, 27, 34, 0.78);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .mobile-nav-picker__label {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        color: rgba(139, 148, 158, 0.9);
        font-size: 0.72rem;
        font-weight: 700;
        white-space: nowrap;
        padding-inline-start: 0.15rem;
    }

    /* פעמון-התראה במצב מקופל (טכנאי): נותן רמז ספירה גם כשהבורר סגור */
    .mobile-nav-picker__badge {
        min-width: 1.1rem;
        height: 1.1rem;
        padding-inline: 0.28rem;
        font-size: 0.68rem;
    }

    .mobile-nav-picker__select {
        width: 100%;
        min-width: 0;
        /* 44px חסין-רוחב — בורר הניווט הראשי במובייל; לא להסתמך רק על pointer:coarse */
        min-height: var(--touch-target);
        padding: 0.35rem 0.65rem;
        border: 0;
        border-radius: var(--radius-round);
        background: rgba(13, 17, 23, 0.92);
        color: var(--text-primary);
        font: inherit;
        /* max(16px,…) — בורר הניווט הראשי; מתחת ל-16px iOS מבצע zoom-jump בכל פתיחה */
        font-size: max(16px, 0.9rem);
        font-weight: 700;
        box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.12);
    }

    .mobile-nav-picker__select:focus:not(:focus-visible) {
        outline: none;
    }

    .mobile-nav-picker__select:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        box-shadow: 0 0 0 3px var(--accent-dim), inset 0 0 0 1px rgba(0, 212, 255, 0.45);
    }

    .mobile-nav-picker__select option,
    .mobile-nav-picker__select optgroup {
        background: #0d1117;
        color: var(--text-primary);
    }

    .mobile-nav-picker__logout {
        display: none;
    }

    /* ── P4-2: תפריט-מובייל on-brand דרך Popover API (מוזן ממקור-הניווט היחיד; ה-<select> = fallback) ──
       זיהוי-תמיכה דרך selector(:popover-open) — `popover` הוא attribute של HTML, לא CSS property,
       ולכן @supports (popover: auto) תמיד false. */
    @supports selector(:popover-open) {
        /* P4-a: הסרגל התחתון מחליף את בורר-הניווט העליון כשה-Popover נתמך.
           הבורר-select העליון מוסתר יחד עם כל ה-picker; תא "עוד" בסרגל פותח את אותו Popover. */
        .mobile-nav-picker { display: none; }
        .ds-bottom-nav { display: flex; }
        /* מפרסם את גובה הסרגל כך שכל אלמנט מעוגן-תחתית ירים עצמו מעליו (submit-bar/toast/totals) */
        body.ds-app {
            --ds-bottom-nav-h: calc(3.9rem + var(--safe-area-bottom));
            padding-block-end: var(--ds-bottom-nav-h);
        }
        /* הפוטר מוסתר רק באפליקציה המחוברת (body.ds-app) שבה יש סרגל תחתון — בנחיתה ובדפי
           ההתחברות (body.ds-login-layout, אותו bundle) הפוטר «Developed By… Version» נשאר גלוי. */
        body.ds-app .site-footer { display: none; }
    }

    @supports not selector(:popover-open) {
        /* בלי Popover: הסרגל התחתון + ה-Popover מוסתרים; ה-<select> העליון נשאר הניווט המלא (fallback). */
        .mobile-nav-popover,
        .ds-bottom-nav { display: none !important; }
    }

    .mobile-nav-popover {
        margin: 0;
        inset: auto 0 0 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        overflow: visible;
    }

    .mobile-nav-popover::backdrop {
        background: rgba(0, 0, 0, 0.55);
    }

    .mobile-nav-popover__panel {
        display: flex;
        flex-direction: column;
        max-height: min(85svh, 40rem);
        padding: 0 0.9rem max(1rem, var(--safe-area-bottom));
        border: 1px solid var(--border);
        border-block-end: 0;
        border-radius: var(--radius-7) var(--radius-7) 0 0;
        background:
            linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, transparent), transparent 42%),
            var(--bg-card);
        box-shadow: var(--shadow-card-hover), 0 -20px 56px rgba(0, 0, 0, 0.5);
        direction: rtl;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-nav-popover__panel::before {
        content: "";
        align-self: center;
        width: 2.25rem;
        height: 0.25rem;
        margin: 0.5rem 0 0.35rem;
        border-radius: 999px;
        background: var(--border);
    }

    .mobile-nav-popover__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-3);
        padding-block: 0.15rem 0.5rem;
    }

    .mobile-nav-popover__title {
        font-size: var(--fs-xs);
        font-weight: 700;
        letter-spacing: 0.02em;
        color: var(--accent);
    }

    .mobile-nav-popover__section {
        padding-block: 0.3rem;
    }

    .mobile-nav-popover__section + .mobile-nav-popover__section {
        border-block-start: 1px solid rgba(0, 212, 255, 0.1);
    }

    .mobile-nav-popover__label {
        margin: 0.25rem 0 0.15rem;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-muted);
    }

    .mobile-nav-popover__logout-form {
        margin: 0;
    }

    .mobile-nav-popover__link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: var(--touch-target);
        padding: 0.5rem 0.6rem;
        border: 0;
        border-radius: var(--radius-5);
        background: transparent;
        color: var(--text-primary);
        text-decoration: none;
        font: inherit;
        font-weight: 600;
        text-align: start;
        cursor: pointer;
    }

    .mobile-nav-popover__link[aria-current="page"] {
        background: rgba(0, 212, 255, 0.14);
        color: var(--accent-strong);
        box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.28);
    }

    .mobile-nav-popover__link:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -2px;
    }

    .mobile-nav-popover__logout {
        color: var(--danger);
    }

    body:has(.mobile-nav-popover:popover-open) {
        overflow: hidden;
    }

    @media (prefers-reduced-motion: no-preference) {
        .mobile-nav-popover {
            transform: translateY(100%);
            transition:
                transform var(--motion-modal) var(--ease-luxury),
                display var(--motion-modal) allow-discrete,
                overlay var(--motion-modal) allow-discrete;
        }

        .mobile-nav-popover:popover-open {
            transform: translateY(0);
        }

        @starting-style {
            .mobile-nav-popover:popover-open {
                transform: translateY(100%);
            }
        }
    }

    main.container-main {
        padding-top: 0.85rem;
    }

    /* ── P4-a: סרגל-ניווט תחתון (thumb-zone) — היעדים הראשיים ב-reach-אגודל ── */
    .ds-bottom-nav {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 90;
        /* display:flex נקבע בבלוק @@supports selector(:popover-open) למעלה */
        justify-content: space-around;
        align-items: stretch;
        gap: 0.12rem;
        padding: 0.28rem 0.35rem max(0.28rem, var(--safe-area-bottom));
        border-block-start: 1px solid var(--border);
        background:
            linear-gradient(180deg, color-mix(in oklab, var(--accent) 6%, transparent), transparent 62%),
            rgba(13, 17, 23, 0.95);
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.4);
    }

    @supports (backdrop-filter: blur(1px)) {
        .ds-bottom-nav {
            background:
                linear-gradient(180deg, color-mix(in oklab, var(--accent) 9%, transparent), transparent 62%),
                color-mix(in srgb, var(--bg-primary) 80%, transparent);
            backdrop-filter: blur(14px) saturate(1.25);
        }
    }

    @media (prefers-reduced-transparency: reduce) {
        .ds-bottom-nav {
            background: var(--bg-primary);
            backdrop-filter: none;
        }
    }

    .ds-bottom-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.14rem;
        flex: 1 1 0;
        min-width: 0;
        min-height: var(--touch-target);
        padding: 0.28rem 0.1rem;
        border: 0;
        border-radius: var(--radius-4);
        background: transparent;
        color: var(--text-muted);
        font: inherit;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .ds-bottom-nav__icon {
        position: relative;
        display: inline-flex;
        line-height: 0;
    }

    .ds-bottom-nav__label {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 100%;
        /* רצפת 10px — אחרת ב-≤480px (root=14px) התווית יורדת ל-~8.7px ולא קריאה */
        font-size: max(10px, 0.62rem);
        line-height: 1.12;
    }

    .ds-bottom-nav__link.active,
    .ds-bottom-nav__link[aria-current="page"],
    .ds-bottom-nav__link[aria-current="true"] {
        color: var(--accent-strong);
    }

    /* מחוון "אתה כאן" — פס-ציאן קטן מעל האייקון */
    .ds-bottom-nav__link.active .ds-bottom-nav__icon::after,
    .ds-bottom-nav__link[aria-current="page"] .ds-bottom-nav__icon::after,
    .ds-bottom-nav__link[aria-current="true"] .ds-bottom-nav__icon::after {
        content: "";
        position: absolute;
        inset-block-start: -0.34rem;
        left: 50%;
        transform: translateX(-50%);
        width: 1.15rem;
        height: 0.17rem;
        border-radius: 999px;
        background: var(--accent);
        box-shadow: 0 0 10px var(--accent);
    }

    .ds-bottom-nav__link:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -3px;
    }

    .ds-bottom-nav__badge {
        position: absolute;
        inset-block-start: -0.42rem;
        inset-inline-end: -0.55rem;
        min-width: 1rem;
        height: 1rem;
        padding-inline: 0.2rem;
        font-size: 0.58rem;
    }
}

@media (max-width: 420px) {
    .header-inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.48rem;
    }

    .brand-logo--header {
        max-height: 30px;
        max-width: 78px;
    }

    .mobile-nav-picker {
        gap: 0.35rem;
        padding: 0.32rem 0.36rem;
    }

    .header-clock {
        display: none;
    }

    .mobile-nav-picker__label {
        font-size: 0.68rem;
    }

    .mobile-nav-picker__select {
        /* שומר ≥16px (אנטי-zoom); מצמצם רק ריפוד במסכים צרים */
        font-size: max(16px, 0.84rem);
        padding-inline: 0.45rem;
    }
}

/* —— דף הגדרות SMTP (ניהול) ——————————————————————————————————— */
.smtp-settings-page .smtp-flow-card__title {
    font-size: 1.08rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}

.smtp-settings-page .validation-summary-valid {
    display: none;
}

.smtp-bullet-list {
    margin: 0;
    padding-inline-start: var(--space-5);
    line-height: 1.55;
}

.smtp-bullet-list li + li {
    margin-top: 0.35rem;
}

.smtp-save-form .smtp-step {
    margin-bottom: 0;
}

.smtp-step__title {
    font-size: var(--fs-base);
    font-weight: 600;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.smtp-step__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.22), rgba(0, 150, 199, 0.35));
    color: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
}

.smtp-help {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
    max-width: 40rem;
    line-height: 1.48;
}

.smtp-field {
    display: block;
    margin-top: 0.65rem;
}

.smtp-field:first-of-type {
    margin-top: 0;
}

.smtp-field.smtp-field--grow {
    flex: 1 1 220px;
    margin-top: 0;
}

.smtp-field--port {
    flex: 0 0 7.5rem;
    min-width: 6rem;
}

.smtp-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.smtp-check--spaced {
    margin-top: var(--space-3);
}

.checkbox-input-top {
    margin-top: 0.2rem;
}

.smtp-help--tight {
    margin-top: -0.15rem;
}

.smtp-sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.05rem 0;
}

/* ── Fallback לדפדפנים ללא backdrop-filter (Android Chrome ישן, Firefox < 103) ── */
@supports not (backdrop-filter: blur(1px)) {
    .app-header {
        background: rgba(13, 17, 23, 0.98);
    }

    .card {
        background: rgba(22, 27, 34, 0.96);
    }

    .login-card {
        background: rgba(22, 27, 34, 0.95);
    }

    .nav-more-dialog.user-more-modal::backdrop {
        background: rgba(0, 0, 0, 0.72);
    }

    .app-header .main-nav {
        background: rgba(13, 17, 23, 0.97);
    }
}

/* ── מודלים: backdrop — dialogs.css ── */

/* ── שיפור הצגת modals כ-sheet תחתון בטלפונים קטנים מאוד ── */
@media (max-width: 360px) {
    .cal-cell {
        min-height: 52px;
        padding: 0.25rem 0.1rem;
    }

    .cal-cell__day {
        font-size: 0.78rem;
    }
}

@media print {
    .app-header,
    .watermark-footer,
    .onboarding-actions {
        display: none !important;
    }

    .onboarding-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* HCM / forced-colors — כותרות חתוכות-גרדיאנט (text-fill: transparent) נעלמות ב-High Contrast Mode.
   מחזיר צבע-מערכת נראה. שכבת components (מאוחר בסדר) גוברת על הכותרות ב-@layer pages. (QW-12) */
@media (forced-colors: active) {
    .landing-title,
    .landing-org,
    .landing-site-title,
    .login-brand h1,
    .brand__name,
    .onboarding-card__title {
        -webkit-text-fill-color: CanvasText;
        color: CanvasText;
        text-shadow: none;
    }
}

} /* end @layer components */

/* --- utilities.css --- */
/* utilities.css — @layer utilities */
@layer utilities {
/* ── חבוי-חזותית, נגיש לקורא מסך ── (היה בשימוש ב-cshtml בלי הגדרה → תוויות הודלפו כטקסט) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Toast notifications ── */
#toast-container {
    position: fixed;
    /* מעל סרגל-הניווט התחתון במובייל (var=0 בדסקטופ) — אחרת טוסטים מכסים את הניווט */
    bottom: calc(max(1.5rem, var(--safe-area-bottom)) + var(--ds-bottom-nav-h));
    inset-inline-start: max(1.5rem, var(--safe-inline-start));
    z-index: 9000;
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-2);
    pointer-events: none;
    max-width: min(380px, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-3);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    line-height: 1.45;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    pointer-events: all;
    animation: toast-in var(--motion-modal) var(--ease-luxury) forwards;
    word-break: break-word;
}

.toast--success { border-color: var(--success); }
.toast--success .toast__icon { color: var(--success); }

/* '--danger' = הסמנטיקה הקנונית (alert-danger/badge-danger/btn-danger); '--error' נשמר כ-alias לאחור-תאימות */
.toast--error, .toast--danger { border-color: var(--danger); }
.toast--error .toast__icon, .toast--danger .toast__icon { color: var(--danger); }

.toast--info { border-color: var(--accent); }
.toast--info .toast__icon { color: var(--accent-strong); }

.toast--warning { border-color: var(--warning); }
.toast--warning .toast__icon { color: var(--warning); }

.toast__icon {
    flex-shrink: 0;
    font-size: var(--fs-base);
    margin-top: 0.1em;
    font-style: normal;
}

.toast__body { flex: 1; }

.toast__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--fs-base);
    line-height: 1;
    padding: 0.35rem;
    transition: color var(--motion-fast);
}

/* אזור-נגיעה מלא 44px במסכי מגע בלי לשנות מראה — margin שלילי מקזז את התפיסה */
@media (hover: none) {
    .toast__close {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
        margin: calc((var(--touch-target) - 1.6rem) / -2);
    }
}

.toast__close:hover { color: var(--text-primary); }

.toast--out {
    animation: toast-out var(--motion-fast) var(--ease-luxury-soft) forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate3d(0, 1rem, 0) scale(0.96);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        max-height: 120px;
        margin-bottom: 0;
    }
    to {
        opacity: 0;
        transform: translate3d(0, 0.65rem, 0) scale(0.97);
        max-height: 0;
        margin-bottom: -0.5rem;
    }
}

/* ── Inline button spinner (used by global form-submit interceptor) ── */
.btn-spinner {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
    vertical-align: -0.12em;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ה-reset הגלובלי של reduced-motion (0.01ms + iteration-count:1) מקפיא את הספינר לטבעת
   שבורה שלא מסתובבת. זהו אינדיקטור-מצב פונקציונלי (לא קישוט) — משאירים אותו מסתובב
   (החריג המקובל ל-WCAG 2.3.3), רק מעט איטי יותר לתחושה רגועה. */
@media (prefers-reduced-motion: reduce) {
    .btn-spinner {
        animation-duration: 0.9s !important;
        animation-iteration-count: infinite !important;
    }
}

@media print {
    #toast-container { display: none; }
}

/* רמז גלילה לטבלאות רחבות — מוצג רק במובייל (דפוס זהה למטריצת הפיקוח) */
.table-scroll-hint {
    display: none;
}

@media (max-width: 640px) {
    .table-scroll-hint {
        display: block;
        margin: 0 0 0.5rem;
    }
}
}

/* --- mobile-ui.css --- */
@layer utilities {
/* Mobile-first UI layer — breakpoints ב-tokens.css (unlayered) */

.ds-app {
    min-width: 320px;
}

/* מטרות-מגע: תיבות-סימון (ימים מועדפים/מותרים, "זכור אותי") הן ~22px גובה — נמוך מ-44.
   רק במכשירי מגע מרחיבים את שורת ה-label לגובה טאץ' מלא; דסקטופ נשאר צפוף. */
@media (pointer: coarse) {
    .checkbox-label {
        min-height: var(--touch-target);
    }
}

.ds-shell {
    width: 100%;
    max-width: min(var(--content-ultra), 100%);
    margin-inline: auto;
    padding-inline: var(--shell-pad);
}

.app-header .header-inner.ds-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    max-width: min(var(--content-ultra), 100%);
    margin-inline: auto;
    padding-inline: var(--shell-pad);
}

main.container-main.ds-main {
    width: 100%;
    max-width: min(var(--content-ultra), 100%);
    padding-inline: max(var(--shell-pad), var(--safe-area-right)) max(var(--shell-pad), var(--safe-area-left));
}

@media (min-width: 1200px) {
    main.container-main.ds-main {
        padding-inline: max(var(--shell-pad), calc((100vw - var(--content-max)) / 2));
    }
}

/* Month lifecycle badges (admin) */
.month-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.month-status {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-round);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.month-status--draft {
    background: rgba(139, 148, 158, 0.18);
    color: var(--text-muted);
    border-color: rgba(139, 148, 158, 0.35);
}

.month-status--locked {
    background: rgba(210, 153, 34, 0.18);
    color: var(--warning);
    border-color: rgba(210, 153, 34, 0.45);
}

.month-status--published {
    background: rgba(63, 185, 80, 0.18);
    color: var(--success);
    border-color: rgba(63, 185, 80, 0.45);
}

/* Segmented controls (constraints) */
.segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: var(--space-2);
}

.segmented-control__btn {
    flex: 1 1 auto;
    min-width: 3.25rem;
    min-height: var(--touch-target);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-4);
    border: 2px solid rgba(0, 212, 255, 0.22);
    background: rgba(13, 17, 23, 0.65);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color var(--motion-fast) var(--ease-standard),
        background-color var(--motion-fast) var(--ease-standard),
        color var(--motion-fast) var(--ease-standard),
        box-shadow var(--motion-fast) var(--ease-standard);
}

.segmented-control__btn:hover {
    border-color: rgba(0, 212, 255, 0.45);
    color: var(--text-primary);
}

/* משוב מגע: tap-highlight מבוטל גלובלית (base.css), אז :active נותן היזון לפעולה במגע */
.segmented-control__btn:active {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.12);
}

/* מנטרל hover "תקוע" אחרי נגיעה במסכי מגע (אין mouseleave) */
@media (hover: none) {
    .segmented-control__btn:hover {
        border-color: var(--border);
        color: var(--text-muted);
    }
}

.segmented-control__btn.is-selected {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.16);
    color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.constraint-actions__buttons .btn {
    flex: 0 1 auto;
    width: auto;
    min-height: 2.35rem;
}

@media (hover: none) {
    .constraint-actions__buttons .btn {
        min-height: var(--touch-target);
    }
}

.btn-lg-touch {
    min-height: var(--touch-target);
}

/* Constraint calendar — touch targets (desktop defaults; phones below) */
.constraint-calendar-card .cal-cell--working-in-bundle,
.constraint-calendar-card .cal-cell__vacation-btn,
.constraint-calendar-card .cal-cell__remove {
    min-height: var(--touch-target);
}

.constraint-calendar-card .cal-cell__vacation-btn {
    width: 100%;
    font-size: 0.82rem;
    font-weight: 700;
}

/* לוח אילוצים/חופשות — טלפון: כפתורים ותאים מעט גדולים יותר (לא משנה דסקטופ) */
@media (max-width: 768px) {
    .constraint-calendar-card .cal-cell--day-bundle {
        min-height: 5.25rem;
    }

    .constraint-calendar-card .cal-cell {
        min-height: 4.5rem;
    }

    .constraint-calendar-card .cal-cell--working-in-bundle {
        min-height: 4.5rem;
    }

    .constraint-calendar-card .cal-cell__vacation-btn {
        min-height: 3rem;
        padding: 0.5rem 0.45rem;
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .constraint-calendar-card .cal-cell__vacation-btn--remove {
        min-height: 2.75rem;
        font-size: 0.76rem;
    }

    .constraint-calendar-card .cal-cell__remove {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
        font-size: var(--fs-base);
        border-radius: var(--radius-3);
    }

    .constraint-calendar-card .cal-cell__constraint-mark {
        min-height: 2.5rem;
        padding: 0.4rem 0.35rem;
        font-size: 0.72rem;
    }

    .constraint-calendar-card .cal-cell__constraint-area {
        min-height: 3.5rem;
    }

    .constraint-actions__buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .constraint-actions__buttons .btn {
        width: 100%;
        min-height: 3rem;
        padding: 0.55rem 1rem;
        font-size: 0.95rem;
    }

    /* לוח אילוצים בטלפון: ה׳–ש׳ (תמיד חסומים) כפסים צרים — הימים הפעילים מקבלים את רוב הרוחב.
       DOM order: ראשון..שבת → שלוש העמודות האחרונות הן ה׳–ש׳

       minmax(0, …) חובה — אל תחזיר ל-`1fr` סתם: כל שורת-שבוע היא grid נפרד,
       ו-`1fr` = `minmax(auto, 1fr)`, כלומר המסלול לא יורד מתחת ל-min-content שלו.
       שורה עם תאריך בן 4 תווים (למשל "30/4", יום מחודש שכן) הרחיבה את העמודה
       הצרה מ-20px ל-24px, גנבה רוחב מהעמודות הפעילות (58 במקום 62), וכל שורה
       חישבה רוחב משלה ⇒ שלוש תבניות עמודות שונות באותו לוח, בלי יישור לכותרת. */
    .constraint-calendar-card .cal-header-row,
    .constraint-calendar-card .cal-week-row {
        grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(3, minmax(0, 0.32fr));
    }

    /* חמישי פעיל (מצב א׳–ה׳, DORMANT): המחלקה constraint-calendar-card--thu נפלטת רק כש-IsWorkingDay(Thursday)=true.
       עמודה 5 (חמישי) הופכת ל-1fr; רק ו׳–ש׳ נשארות צרות. תחת ברירת-המחדל המחלקה נעדרת ⇒ הכלל אינרטי, אפס שינוי.
       חייב להישאר אחרי כלל-הבסיס שמעליו (סלקטיביות זהה 0,2,0 ⇒ מנצח לפי סדר-מקור בלבד כשהמחלקה קיימת). */
    .constraint-calendar-card--thu .cal-header-row,
    .constraint-calendar-card--thu .cal-week-row {
        grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, 0.32fr));
    }

    .constraint-calendar-card .cal-cell--blocked .cal-cell__date-he,
    .constraint-calendar-card .cal-cell--other-month .cal-cell__date-he {
        font-size: 0.62rem;
    }

    /* בעמודות הצרות "חמישי/שישי/שבת" גולש — עוברים לאות מקוצרת */
    .cal-col-header.cal-blocked .cal-col-header__full {
        display: none;
    }

    .cal-col-header.cal-blocked .cal-col-header__short {
        display: inline;
    }

    /* פס שליחת אילוצים — דביק לתחתית בטלפון: «שלח אילוצים» והסטטוס תמיד בעין */
    .constraint-submit-bar {
        position: sticky;
        /* מתרומם מעל סרגל-הניווט התחתון (var=0 כשאין סרגל) — אחרת «שלח אילוצים» נחסם */
        bottom: calc(0.5rem + var(--ds-bottom-nav-h));
        z-index: 40;
        padding: 0.65rem 0.75rem calc(0.65rem + var(--safe-area-bottom));
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-5);
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 360px) {
    .constraint-calendar-card .cal-cell {
        min-height: 4.25rem;
    }

    .constraint-calendar-card .cal-cell__vacation-btn {
        min-height: 2.85rem;
        font-size: 0.76rem;
    }
}

/* Schedule page tabs */
.schedule-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* snap עדין + הסתרת פס גלילה — הטאב "בקשות אליי" האחרון לא נחתך בלי אינדיקציה */
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-bottom: var(--space-4);
    padding: 0.35rem;
    border-radius: var(--radius-5);
    border: 1px solid rgba(0, 212, 255, 0.14);
    background: rgba(22, 27, 34, 0.65);
}

.schedule-tabs::-webkit-scrollbar {
    display: none;
}

.schedule-tabs__btn {
    scroll-snap-align: start;
}

.schedule-tabs__btn {
    flex: 0 0 auto;
    min-height: var(--touch-target);
    padding: var(--space-2) var(--space-4);
    border: 0;
    border-radius: var(--radius-round);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.schedule-tabs__btn:hover {
    color: var(--text-primary);
}

.schedule-tabs__btn:active {
    background: rgba(0, 212, 255, 0.10);
    color: var(--accent-strong);
}

@media (hover: none) {
    .schedule-tabs__btn:hover {
        color: var(--text-muted);
    }
}

.schedule-tabs__btn.is-active,
.schedule-tabs__btn[aria-selected="true"] {
    background: rgba(0, 212, 255, 0.16);
    color: var(--accent-strong);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.28);
}

.schedule-tab-panel[hidden] {
    display: none !important;
}

.schedule-tab-panel.is-active {
    display: block;
}

.shift-cards-toolbar {
    margin-bottom: var(--space-3);
}

.shift-cards-filter .segmented-control__btn {
    flex: 1 1 8rem;
}

.shift-card[data-shift-hidden="true"] {
    display: none !important;
}

.form-control-touch,
.swap-request-details--touch .form-control-touch {
    min-height: var(--touch-target);
    width: 100%;
}

.swap-request-details--touch summary {
    list-style: none;
    cursor: pointer;
}

.swap-request-details__body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.segmented-control__btn:focus-visible,
.schedule-tabs__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Published schedule: desktop table / mobile cards */
.schedule-published__mobile {
    display: none;
}

.shift-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.shift-card {
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: var(--radius-3);
    padding: 0.9rem 1rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 212, 255, 0.06), transparent 40%),
        rgba(22, 27, 34, 0.88);
}

.shift-card--mine {
    border-color: rgba(63, 185, 80, 0.35);
    box-shadow: inset 0 0 0 1px rgba(63, 185, 80, 0.12);
}

.shift-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.35rem 0.55rem;
    margin-bottom: 0.65rem;
}

.shift-card__date {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-strong);
}

.shift-card__dow {
    /* יום לפני תאריך (קצה ימין) — קריאה טבעית "שני 1.6", מקובץ ולא מפוזר */
    order: -1;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.shift-card__slot {
    /* נערם אנכית RTL: תווית תפקיד → שם → הסברים, הכל מיושר לימין (לא grid מפוזר) */
    display: block;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(0, 212, 255, 0.08);
    text-align: right;
}

.shift-card__slot:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.shift-card__role {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
}

.shift-card__value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
}

.shift-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-round);
    font-size: 0.72rem;
    font-weight: 700;
}

/* טבעת-inset מקבילה לניב ה-.badge (CO-4) — מאחדת את שפת התגים בין דסקטופ למובייל */
.shift-badge--assigned {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
    box-shadow: inset 0 0 0 1px rgba(63, 185, 80, 0.4);
}

.shift-badge--pending {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
    box-shadow: inset 0 0 0 1px rgba(210, 153, 34, 0.4);
}

.shift-badge--open {
    background: rgba(0, 212, 255, 0.16);
    color: var(--accent-strong);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.38);
}

.shift-badge--empty {
    background: rgba(139, 148, 158, 0.14);
    color: var(--text-muted);
    box-shadow: inset 0 0 0 1px rgba(139, 148, 158, 0.3);
}

.shift-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.shift-card__actions .btn {
    width: 100%;
}

/* Admin matrix — sticky axes */
.admin-matrix-wrap {
    overflow: auto;
    max-height: min(72vh, 52rem);
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: var(--radius-5);
}

.admin-matrix-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
}

.admin-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bg-secondary);
    box-shadow: 0 1px 0 rgba(0, 212, 255, 0.2);
}

.admin-matrix-table .admin-matrix-sticky-col {
    position: sticky;
    z-index: 2;
    background: var(--bg-secondary);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.12);
}

.admin-matrix-table .admin-matrix-sticky-col--day {
    inset-inline-start: 6.75rem;
    min-width: 4.25rem;
}

.admin-matrix-table .admin-matrix-sticky-col--date {
    inset-inline-start: 0;
    min-width: 6.75rem;
}

.admin-matrix-table thead .admin-matrix-sticky-col {
    z-index: 4;
    top: 0;
}

.admin-matrix-table thead .admin-matrix-sticky-col--day {
    inset-inline-start: 6.75rem;
}

.admin-matrix-table thead .admin-matrix-sticky-col--date {
    inset-inline-start: 0;
}

.admin-matrix-table .form-control-sm {
    min-height: var(--touch-target);
    min-width: 11rem;
}

.schedule-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-inline-start: 0.35rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-round);
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(63, 185, 80, 0.28);
    color: var(--success);
}

.schedule-tabs__badge--warn {
    background: rgba(248, 81, 73, 0.28);
    color: var(--danger);
}

.schedule-jump-shifts {
    margin: 0.65rem 0 0;
}

.swap-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.swap-actions__hint {
    margin: 0;
}

.swap-actions__direct summary {
    width: 100%;
}

/* טכנאי — לוח בקרה (מרווח; לא משתמש ב-dashboard-grid--compact) */
@media (max-width: 768px) {
    .tech-dashboard__intro {
        flex-direction: column;
        align-items: stretch;
    }

    .tech-dashboard__intro-actions {
        width: 100%;
    }

    .tech-dashboard__intro-actions .btn {
        flex: 1 1 auto;
    }

    .tech-dashboard__tiles {
        grid-template-columns: 1fr;
    }

    .tech-dashboard__panel-actions .btn {
        width: 100%;
    }

    .tech-dashboard__empty .btn {
        width: 100%;
    }
}

.dashboard-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.55rem;
    align-items: start;
    margin-bottom: var(--space-4);
}

.dashboard-grid--compact .dashboard-card {
    padding: 0.65rem 0.75rem;
    min-height: 0;
}

.dashboard-grid--compact .dashboard-card h3 {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.dashboard-grid--compact .dashboard-card p {
    font-size: 0.78rem;
    line-height: 1.35;
}

.dashboard-grid--compact .dashboard-card--static {
    cursor: default;
}

.dashboard-grid--compact .dashboard-card--static:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.dashboard-card__mono {
    margin: 0;
    font-size: 0.82rem;
}

.dashboard-card--wide {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
}

.dashboard-card--calendar__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.dashboard-card--calendar__text h3 {
    margin-bottom: 0.15rem;
}

.dashboard-card--calendar__text p {
    margin: 0;
    font-size: 0.78rem;
}

.dashboard-card--wide .dashboard-card__actions {
    margin-top: 0;
    flex: 0 0 auto;
}

.dashboard-card--wide .dashboard-card__more {
    flex: 1 1 100%;
    margin-top: 0;
}

.dashboard-card--wide .dashboard-card__more summary {
    width: auto;
    display: inline-flex;
}

.dashboard-card__more {
    margin-top: var(--space-2);
}

.dashboard-card__more summary {
    width: 100%;
    list-style: none;
}

.dashboard-card__more summary::-webkit-details-marker {
    display: none;
}

.dashboard-card__more-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

@media (max-width: 360px) {
    .header-clock {
        font-size: 0.72rem;
    }

    .brand__subtitle {
        display: none;
    }

    .mobile-nav-picker__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

/* טלפון בלנדסקייפ רחב (≤932px, pointer גס) מקבל גם הוא כרטיסי-משמרת ולא טבלת דסקטופ */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    .schedule-published__desktop {
        display: none;
    }

    .schedule-published__mobile {
        display: block;
    }

    .btn-sm {
        min-height: var(--touch-target);
    }
}

/* דסקטופ בלבד (עכבר מדויק) — טלפון-לנדסקייפ לא נתפס כאן בזכות תנאי ה-hover/pointer */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
    .schedule-published__desktop {
        display: block;
    }

    .schedule-published__mobile {
        display: none;
    }
}

@media (max-width: 640px) {
    .page-intro {
        flex-direction: column;
        align-items: stretch;
    }

    .page-intro__main {
        width: 100%;
    }

    .page-intro__icon {
        margin-top: 0;
    }

    .page-actions {
        justify-content: stretch;
        width: 100%;
    }

    .page-actions .btn,
    .page-actions .btn-with-chevron,
    .page-actions .btn-back-with-chevron {
        flex: 1 1 auto;
        width: 100%;
        justify-content: center;
    }

    .dashboard-header.page-intro .page-actions {
        width: 100%;
    }

    .dashboard-header.page-intro .page-actions .btn {
        width: 100%;
    }

    .login-timeout-alert {
        width: 100%;
        max-width: var(--login-card-max, 440px);
        margin-inline: auto;
    }

    .login-home-link {
        width: 100%;
        max-width: none;
    }

    .login-brand__hero {
        text-align: center;
    }

    .login-brand__hero .brand-logo-frame {
        margin-inline: auto;
    }
}

/* Auth shells — יישור אנכי במובייל (login + landing) */
@media (max-width: 768px) {
    .login-page,
    .landing-page {
        padding-block:
            max(1rem, var(--safe-area-top))
            max(2.75rem, calc(2.25rem + var(--safe-area-bottom)));
    }

    /* כניסת מנהל — קומפקטי, safe-area, בלי גלילה מיותרת (iOS/Android) */
    .login-page:has(.login-card--admin) {
        --login-card-max: min(100%, calc(100vw - 1.5rem));
        --login-card-pad-y: 0.85rem;
        --login-card-pad-x: 0.95rem;
        padding-block:
            max(0.5rem, var(--safe-area-top))
            max(1rem, calc(0.75rem + var(--safe-area-bottom)));
        gap: 0.35rem;
    }

    .login-card--admin .login-home-link {
        width: 100%;
    }

    .login-passkey-details {
        margin-top: var(--space-2);
        padding-top: 0.45rem;
    }

    .login-passkey-details__summary {
        padding-inline: 0.2rem;
    }

    .login-passkey-details__body .btn {
        min-height: var(--touch-target);
    }

    .landing-welcome {
        margin-bottom: 0.35rem;
    }

    .landing-hero {
        margin-bottom: var(--space-3);
    }

    .landing-shift-badge {
        margin-bottom: 0.85rem;
    }

    /* לוגו קטן יותר בטלפון — מפנה גובה כדי ששני שערי הכניסה יהיו מעל הקיפול */
    .brand-logo--landing {
        max-height: 104px;
    }

    /* בטלפון צר ה-badge נשבר לשתי שורות; מסתירים את המפרידים "|" כדי שלא יתלו בקצה שורה */
    .landing-shift-badge__divider {
        display: none;
    }

    .entry-card__icon {
        width: 3rem;
        height: 3rem;
    }

    /* כרטיסי הכניסה נמוכים יותר וצפופים בטלפון — התוכן (אייקון+כותרת+שורה+CTA) נכנס בנוחות
       ב-11.5rem, וכך שני השערים + קישור הפרטיות עולים מעל הקיפול ב-360-390px (בלי CLS). */
    .entry-card {
        min-height: 11.5rem;
        padding: 1.75rem 1.5rem;
    }
}

/* טלפון צר מאוד — כיווץ לוגו נוסף כדי לשמור את שני השערים בקיפול */
@media (max-width: 400px) {
    .brand-logo--landing {
        max-height: 92px;
    }
}

@media (max-width: 768px) and (max-height: 36rem) {
    .login-page,
    .landing-page {
        justify-content: flex-start;
        padding-top: max(0.65rem, var(--safe-area-top));
    }

    .login-page:has(.login-card--admin) {
        --login-card-pad-y: 0.65rem;
        padding-top: max(0.35rem, var(--safe-area-top));
    }

    .login-card--admin .brand-logo--login {
        max-height: 2.25rem;
    }

    /* מסך נמוך/לנדסקייפ בדף הנחיתה: לוגו זעיר, ריווח צפוף, כרטיסים נמוכים — כדי שהשערים
       יגיעו קרוב למסך אחד במקום גלילה ארוכה דרך שני כרטיסים ענקיים */
    .landing-page {
        gap: 0.4rem;
    }

    /* לנדסקייפ רחב-ונמוך: שני השערים זה-לצד-זה (גובר על single-column של ≤768) —
       מנצל את הרוחב, ומראה את שתי הכניסות יחד בלי גלילה ארוכה */
    .entry-cards {
        grid-template-columns: 1fr 1fr;
    }

    .brand-logo--landing {
        max-height: clamp(2.75rem, 9vh, 3.25rem);
    }

    .landing-hero {
        margin-bottom: var(--space-2);
    }

    .landing-shift-badge {
        margin-bottom: 0.6rem;
    }

    .entry-card {
        min-height: 8rem;
        padding: 1.15rem 1.25rem;
    }

    .entry-card__icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.6rem;
    }
}

/* מנהל — לוח בקרה מובייל: אריחים גדולים (48px+), תיאור גלוי, hero בולט */
@media (max-width: 640px) {
    /* כללי — שורת lede קומפקטית בכל page-intro (לא רק דשבורד/חודשים) */
    .page-intro .page-intro__lede {
        display: block;
        font-size: 0.88rem;
        margin-top: 0.2rem;
    }

    .page-intro--admin-dashboard {
        margin-bottom: 0.85rem;
        padding: 0.85rem 1rem;
        gap: 0.65rem;
    }

    .page-intro--admin-dashboard .eyebrow {
        font-size: 0.72rem;
    }

    .page-intro--admin-dashboard .page-intro__lede {
        display: block;
        font-size: 0.88rem;
        margin-top: 0.2rem;
    }

    .page-intro--admin-months {
        margin-bottom: 0.85rem;
        padding: 0.85rem 1rem;
        gap: 0.65rem;
    }

    .page-intro--admin-months .eyebrow {
        font-size: 0.72rem;
    }

    .page-intro--admin-months .page-intro__lede {
        display: block;
        font-size: 0.88rem;
        margin-top: 0.2rem;
    }

    .page-intro--admin-months h1 {
        font-size: 1.35rem;
        margin: 0;
    }

    .page-intro--admin-months .page-intro__icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .page-intro--admin-months .page-actions .btn {
        width: 100%;
        min-height: var(--touch-target);
    }

    .page-intro--admin-dashboard h1 {
        font-size: 1.35rem;
        margin: 0;
    }

    .page-intro--admin-dashboard .page-intro__icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .page-actions--compact-mobile {
        width: 100%;
    }

    .page-actions--compact-mobile .btn {
        width: 100%;
        min-height: var(--touch-target);
        padding-inline: var(--space-4);
        font-size: 0.95rem;
    }

    .admin-dashboard {
        gap: var(--space-4);
    }

    .admin-dashboard__section-title {
        font-size: 0.72rem;
    }

    .admin-dashboard__tiles {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .admin-nav-tile {
        min-height: 4.85rem;
        padding: 1.1rem 1.15rem;
        column-gap: var(--space-4);
        transform: none;
        box-shadow: var(--shadow-1);
    }

    .admin-nav-tile::after {
        display: none;
    }

    /* משוב לחיצה במגע מטופל ב-@media (hover: none) ב-components-dashboard.css (בלי sticky-hover) */

    .admin-nav-tile__icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: var(--radius-5);
    }

    .admin-nav-tile__title {
        font-size: 1.08rem;
    }

    .admin-nav-tile__desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .admin-dashboard__settings {
        margin-top: 0.15rem;
        border-radius: var(--radius-6);
    }

    .admin-dashboard__settings-summary {
        padding: 1rem 1.1rem;
        font-size: 0.98rem;
    }

    .admin-dashboard__tiles--nested {
        padding: 0.5rem 0.65rem 0.75rem;
        gap: 0.6rem;
    }

    /* ניהול חודשים — מובייל: היררכיה, מגע 48px+, גילוי הדרגתי */
    .admin-months {
        gap: 0.85rem;
    }

    .admin-months > .card {
        padding: 1rem 1.05rem;
        border-radius: var(--radius-6);
    }

    .admin-month-picker {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .admin-month-picker h2 {
        font-size: 1.08rem;
        margin: 0 0 0.15rem;
    }

    .admin-month-picker .form-hint {
        font-size: 0.86rem;
        line-height: 1.45;
        margin: 0;
    }

    .admin-month-picker__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .admin-month-select-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .admin-month-select-form select,
    .admin-month-select-form .btn {
        width: 100%;
        min-height: var(--touch-target);
        /* ≥16px — בורר החודש הראשי; מתחת לזה iOS מבצע zoom כשהמנהל בוחר חודש בטלפון */
        font-size: max(16px, 0.95rem);
    }

    .admin-inline-details {
        width: 100%;
    }

    .admin-inline-details > summary {
        width: 100%;
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .admin-inline-details__panel {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        margin-top: var(--space-2);
    }

    .admin-inline-details__panel .form-control,
    .admin-inline-details__panel .btn {
        width: 100%;
        min-height: var(--touch-target);
    }

    .admin-current-month-card {
        padding: 1rem 1.05rem;
        border-radius: var(--radius-6);
    }

    .admin-current-month-card__header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .admin-current-month-card__header h2 {
        font-size: 1.45rem;
        margin: 0 0 0.5rem;
        color: var(--text-strong);
    }

    .admin-current-month-card__meta {
        font-size: 0.88rem;
        gap: 0.4rem 0.55rem;
    }

    .admin-current-month-card__meta .badge {
        font-size: 0.78rem;
        padding: 0.2rem 0.5rem;
    }

    .admin-current-month-card__primary {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .admin-current-month-card__primary .btn,
    .admin-current-month-card__primary .inline-form,
    .admin-current-month-card__primary .inline-form .btn {
        width: 100%;
        min-height: var(--touch-target);
        min-width: 0;
        font-size: 0.95rem;
    }

    .admin-submission-block-banner,
    .admin-fallback-banner {
        margin-top: 0.65rem;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        line-height: 1.5;
        border-radius: var(--radius-5);
    }

    .admin-months .month-readiness--compact {
        margin-top: 0.65rem;
    }

    .admin-months .month-readiness__open {
        width: 100%;
        min-height: var(--touch-target);
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.55rem 0.85rem;
    }

    .admin-month-command-bar {
        margin-top: 0.65rem;
        padding: 0.85rem;
        gap: 0.55rem;
    }

    .admin-month-command-bar__body {
        gap: 0.65rem;
    }

    .admin-month-command-bar__text {
        font-size: 0.98rem;
        line-height: 1.5;
        text-wrap: balance;
    }

    .admin-month-command-bar .admin-month-quick {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        margin-top: 0;
    }

    .admin-month-quick__link {
        width: 100%;
        min-height: var(--touch-target);
        padding: var(--space-3) var(--space-4);
        font-size: 0.95rem;
        justify-content: flex-start;
        text-align: start;
    }

    .admin-month-quick__link:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        box-shadow: 0 0 0 3px var(--accent-dim);
    }

    .admin-month-quick__link:active {
        border-color: var(--accent);
        background: rgba(0, 212, 255, 0.1);
    }

    .admin-month-workflow {
        gap: 0.55rem;
        margin-top: var(--space-3);
    }

    .admin-workflow-step {
        padding: 1rem 1.05rem;
        gap: 0.65rem;
        border-radius: var(--radius-6);
    }

    .admin-workflow-step__number {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .admin-workflow-step__header h3 {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .admin-workflow-step--active .admin-workflow-step__header p {
        font-size: 0.88rem;
        line-height: 1.5;
        margin: 0.35rem 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .admin-workflow-step:not(.admin-workflow-step--active) {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        align-items: center;
        padding: 0.85rem 1rem;
        opacity: 0.88;
    }

    .admin-workflow-step:not(.admin-workflow-step--active) .admin-workflow-step__body > :not(.admin-workflow-step__header) {
        display: none;
    }

    .admin-workflow-step:not(.admin-workflow-step--active) .admin-workflow-step__header p {
        display: none;
    }

    .admin-workflow-step:not(.admin-workflow-step--active) .admin-workflow-step__header h3 {
        margin: 0;
        font-size: 0.98rem;
        font-weight: 600;
    }

    .admin-workflow-step__actions,
    .admin-workflow-toolbar__primary {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        width: 100%;
    }

    .admin-workflow-step__actions .inline-form,
    .admin-workflow-toolbar__primary .inline-form {
        width: 100%;
    }

    .admin-months .admin-workflow-step .btn,
    .admin-months .admin-workflow-toolbar .btn,
    .admin-months .admin-workflow-advanced .btn {
        width: 100%;
        min-height: var(--touch-target);
        min-width: 0;
        font-size: 0.92rem;
    }

    .admin-workflow-step__actions {
        margin-top: 0.65rem;
    }

    .admin-workflow-step__metric {
        font-size: 0.9rem;
        text-align: center;
        padding-top: var(--space-1);
    }

    .admin-workflow-toolbar {
        margin-top: 0.65rem;
    }

    .admin-month-downloads {
        padding: 0.85rem 1rem;
        border-radius: var(--radius-5);
    }

    .admin-month-downloads__link {
        min-height: var(--touch-target);
        align-items: center;
        font-size: 0.95rem;
    }

    .admin-workflow-advanced {
        margin-top: 0.65rem;
        border-radius: var(--radius-5);
    }

    .admin-workflow-advanced > summary {
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
        padding: var(--space-3) var(--space-4);
        font-size: 0.92rem;
    }

    .admin-workflow-advanced__body {
        padding: 0 0.85rem 0.85rem;
    }

    .admin-workflow-advanced__group {
        /* nowrap חובה: column+wrap שובר פריטים ל"עמודה שנייה" שגולשת מחוץ למסך */
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .admin-workflow-advanced__group .inline-form,
    .admin-workflow-advanced__group .btn,
    .admin-workflow-advanced__group .form-control {
        width: 100%;
    }

    /* טופס "שמור אחרים": שורה אופקית + select min-width ניפחו את הקבוצה מעבר ל-viewport
       (הכפתורים נחתכו ב-10–15px בקצה). עמודה מלאה + איפוס margin-inline. */
    .admin-workflow-advanced__group .inline-form,
    .admin-workflow-advanced__group .admin-partial-regen-form {
        margin-inline: 0;
    }

    .admin-workflow-advanced__group .admin-partial-regen-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-workflow-advanced__group .admin-partial-regen-form select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: var(--touch-target);
    }

    /* תובנות שיבוץ (מנהל בלוח) — summary בגובה אצבע */
    details.placement-hints > summary {
        display: flex;
        align-items: center;
        min-height: var(--touch-target);
    }

    /* קישורי טקסט עם חץ ("צפה בגרף מלא", "ללוח המלא") — אזור הקשה מלא */
    .text-accent--with-chevron {
        display: inline-flex;
        align-items: center;
        min-height: var(--touch-target);
    }

    /* "אפשרויות נוספות" ביומן האישי של הטכנאי */
    .tech-dashboard__details > summary {
        display: flex;
        align-items: center;
        min-height: var(--touch-target);
    }

    /* קישורי תוכן העניינים במדריכים — צ'יפים בגובה אצבע */
    .guide-toc__list a {
        display: inline-flex;
        align-items: center;
        min-height: var(--touch-target);
    }

    /* עריכה ידנית — select של בחירת טכנאי בגובה אצבע */
    .inline-shift-form select {
        min-height: var(--touch-target);
    }

    /* עריכה ידנית — במובייל כל יום = כרטיס נערם RTL (במקום טבלת 4 עמודות דחוסה) */
    .data-table--schedule thead {
        display: none;
    }

    .data-table--schedule,
    .data-table--schedule tbody {
        display: block;
    }

    .data-table--schedule tr {
        display: block;
        margin-bottom: var(--space-3);
        padding: 0.7rem 0.85rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-5);
        background: var(--bg-card);
        /* עוגן #day-N אחרי שמירה: הכרטיס לא מוסתר מתחת להדר הדביק */
        scroll-margin-top: calc(5rem + var(--safe-area-top));
    }

    .data-table--schedule td {
        display: block;
        padding: 0;
        border-bottom: none;
        text-align: right;
    }

    /* יום + תאריך = כותרת הכרטיס, בשורה אחת */
    .data-table--schedule td:not([data-label]) {
        display: inline-block;
        color: var(--accent-strong);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .data-table--schedule td:not([data-label]):first-child::after {
        content: "\00B7";
        margin-inline: 0.4rem;
        opacity: 0.55;
    }

    /* תורן ראשי / גיבוי — בלוק מתויג מתחת לכותרת */
    .data-table--schedule td[data-label] {
        margin-top: 0.6rem;
    }

    .data-table--schedule td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        color: var(--accent);
        font-weight: 600;
        font-size: 0.8rem;
    }

    .data-table--schedule td[data-label] .inline-shift-form {
        width: 100%;
    }

    .admin-months .admin-details > summary {
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.4rem;
        font-size: 0.95rem;
        padding: 0.65rem 0;
    }

    .admin-months .admin-card-header h2 {
        font-size: 1.08rem;
    }

    .admin-months .admin-card-header .form-hint {
        font-size: 0.86rem;
    }

    .card {
        padding: var(--space-3);
    }

    .blocking-oversight-panel__head {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-3);
    }

    .blocking-oversight-legend__list {
        flex-direction: column;
        gap: var(--space-2);
    }

    /* חוקי מטריצת-הפיקוח למובייל — עותק יחיד ב-@media (max-width: 768px)/(touch) בהמשך הקובץ; אין לשכפל. */

    .blocking-oversight-toolbar__form .btn {
        width: 100%;
    }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .blocking-oversight-wrap {
        display: none;
    }

    .blocking-oversight-mobile-grid {
        --blocking-oversight-name-width: 6.75rem;
        --blocking-oversight-head-height: 3.6rem;
        --blocking-oversight-row-height: 4.35rem;
        --blocking-oversight-total-height: 4.8rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--blocking-oversight-name-width);
        /* בכוונה אין כאן max-height/overflow-y: גלילה אנכית אחת של העמוד. גלילה מקוננת יצרה
           ב-iOS מלכודת-מגע, ו-sticky פנימי הצמיד את «סה״כ ביום» לשורת נתונים לא-נכונה. */
        border-top: 1px solid var(--accent-dim);
        direction: ltr;
    }

    .blocking-oversight-mobile-grid__names {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        z-index: 6;
        direction: rtl;
        box-shadow: -8px 0 18px rgba(0, 0, 0, 0.45);
    }

    .blocking-oversight-mobile-grid__scroll {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        direction: rtl;
        background:
            linear-gradient(to left, rgba(13, 17, 23, 0.92), transparent 1.25rem),
            linear-gradient(to right, transparent, rgba(13, 17, 23, 0.92) 1.25rem);
        background-attachment: local, local;
    }

    .blocking-oversight-mobile-grid__name {
        display: flex;
        min-width: 0;
        height: var(--blocking-oversight-row-height);
        flex-direction: column;
        justify-content: center;
        padding-inline: 0.55rem;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--accent-dim);
        color: var(--text-strong);
        text-align: start;
    }

    .blocking-oversight-mobile-grid__name--head {
        height: var(--blocking-oversight-head-height);
        background: var(--bg-primary);
        border-bottom: 2px solid var(--accent-dim);
        color: var(--accent-strong);
        font-weight: 800;
    }

    .blocking-oversight-mobile-grid__name--total {
        height: var(--blocking-oversight-total-height);
        background: rgba(13, 17, 23, 0.98);
        border-top: 2px solid var(--accent-dim);
        border-bottom: 0;
        font-size: 0.76rem;
        font-weight: 800;
    }

    .blocking-oversight-mobile-grid__tech {
        overflow: hidden;
        color: var(--text-strong);
        font-weight: 800;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .blocking-oversight-mobile-grid__user {
        overflow: hidden;
        margin-top: 0.14rem;
        color: var(--text-muted);
        font-size: 0.64rem;
        font-weight: 600;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .blocking-oversight-matrix--mobile {
        min-width: 31rem;
    }

    .blocking-oversight-matrix {
        direction: rtl;
        font-size: 0.76rem;
        min-width: 38rem;
    }

    .blocking-oversight-matrix__submission {
        min-width: 3.4rem;
        max-width: 3.75rem;
        padding-inline: 0.25rem;
        text-align: center;
    }

    .blocking-oversight-matrix__tech,
    .blocking-oversight-matrix__user,
    .blocking-oversight-mobile-grid__name,
    .blocking-oversight-mobile-grid__tech,
    .blocking-oversight-mobile-grid__user,
    .blocking-oversight-matrix__wd,
    .blocking-oversight-matrix__dt,
    .blocking-oversight-cell__label,
    .blocking-oversight-status,
    .blocking-oversight-total-pill,
    .blocking-oversight-matrix__totals th {
        direction: rtl;
        unicode-bidi: isolate;
    }

    .blocking-oversight-matrix__day {
        min-width: 2rem;
        padding: 0.25rem 0.15rem;
    }

    .blocking-oversight-matrix--mobile thead th {
        height: var(--blocking-oversight-head-height);
    }

    .blocking-oversight-matrix--mobile tbody td {
        height: var(--blocking-oversight-row-height);
        border-bottom: 1px solid var(--accent-dim);
        vertical-align: middle;
    }

    .blocking-oversight-matrix--mobile tfoot td {
        height: var(--blocking-oversight-total-height);
        vertical-align: middle;
    }

    .blocking-oversight-cell__label {
        display: none;
    }

    .blocking-oversight-cell__glyph {
        font-size: var(--fs-base);
    }
}

/* Schedule — סינון חודש: פתוח בדסקטופ-עכבר, מקופל במובייל/מגע */
.schedule-filter-collapsible {
    margin-bottom: var(--space-6);
}

.schedule-filter-collapsible__summary {
    display: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--accent-strong);
    min-height: var(--touch-target);
    align-items: center;
}

.schedule-filter-collapsible__summary::marker {
    color: var(--accent);
}

.schedule-filter-collapsible__form {
    margin: 0;
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    html.mobile-filter-precollapse .schedule-filter-collapsible[open]:not(:focus-within) .schedule-filter-collapsible__form {
        display: none;
    }

    .schedule-filter-collapsible__summary {
        display: flex;
        padding: 0.35rem 0;
    }

    .schedule-filter-collapsible:not([open]) .schedule-filter-collapsible__form {
        display: none;
    }

    .schedule-filter-collapsible[open] .schedule-filter-collapsible__form {
        margin-top: var(--space-3);
    }
}

}

