/* ── IronLog — Apple HIG compliant design system ────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────
   1. TYPOGRAPHY — SF Pro font stack + iOS type scale
   ───────────────────────────────────────────────────────────────────────── */
:root {
    --il-font:
        -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Inter", "Helvetica Neue", Arial, sans-serif;

    /* iOS type scale (pt → rem at 16px base) */
    --il-text-large-title: 2.125rem; /* 34pt — screen titles */
    --il-text-title1: 1.75rem; /* 28pt */
    --il-text-title2: 1.375rem; /* 22pt */
    --il-text-title3: 1.25rem; /* 20pt */
    --il-text-headline: 1.0625rem; /* 17pt semibold */
    --il-text-body: 1.0625rem; /* 17pt */
    --il-text-callout: 1rem; /* 16pt */
    --il-text-subhead: 0.9375rem; /* 15pt */
    --il-text-footnote: 0.8125rem; /* 13pt */
    --il-text-caption: 0.75rem; /* 12pt */

    /* Touch targets — HIG minimum 44×44pt */
    --il-touch-target: 44px;

    /* Standard margin — HIG 16pt */
    --il-margin: 1rem;

    /* ── Color palette ─────────────────────────────────────────────────────── */
    --il-bg: #000000; /* iOS primary background (dark) */
    --il-bg-secondary: #1c1c1e; /* iOS secondary grouped background */
    --il-bg-tertiary: #2c2c2e; /* iOS tertiary background */
    --il-surface: #1c1c1e;
    --il-surface-2: #2c2c2e;
    --il-separator: rgba(84, 84, 88, 0.65);

    --il-label: #ffffff; /* iOS primary label */
    --il-label-secondary: rgba(235, 235, 245, 0.6); /* iOS secondary label */
    --il-label-tertiary: rgba(235, 235, 245, 0.3);

    --il-accent: #c8f000; /* app accent — lime */
    --il-accent-dark: #a8cc00;

    /* Bootstrap overrides */
    --bs-body-bg: var(--il-bg);
    --bs-body-color: var(--il-label);
    --bs-card-bg: var(--il-surface);
    --bs-secondary-bg: var(--il-surface-2);
    --bs-border-color: var(--il-separator);
    --bs-primary: var(--il-accent);
    --bs-primary-rgb: 200, 240, 0;

    /* Border radius */
    --bs-border-radius: 0.75rem;
    --bs-border-radius-sm: 0.5rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-pill: 9999px;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. BASE
   ───────────────────────────────────────────────────────────────────────── */
body {
    font-family: var(--il-font) !important;
    background-color: var(--il-bg) !important;
    color: var(--il-label) !important;
    font-size: var(--il-text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS type scale helpers */
h1 {
    font-size: var(--il-text-large-title);
    font-weight: 700;
    letter-spacing: -0.5px;
}
h2 {
    font-size: var(--il-text-title1);
    font-weight: 700;
    letter-spacing: -0.3px;
}
h3 {
    font-size: var(--il-text-title2);
    font-weight: 600;
}
h4 {
    font-size: var(--il-text-title3);
    font-weight: 600;
}
h5 {
    font-size: var(--il-text-headline);
    font-weight: 600;
}
h6 {
    font-size: var(--il-text-callout);
    font-weight: 600;
}
small,
.small {
    font-size: var(--il-text-subhead);
}

/* ─────────────────────────────────────────────────────────────────────────
   3. TOUCH TARGETS + SPACING — HIG 8pt grid, minimum 44×44pt
   ───────────────────────────────────────────────────────────────────────── */

/* All interactive elements: 44pt minimum */
.btn,
a.nav-item,
.list-group-item-action,
.form-control,
.form-select {
    min-height: var(--il-touch-target);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem !important; /* 12pt */
    padding: 0.75rem 1.25rem; /* mismo vertical que inputs */
    font-size: var(--il-text-body);
    font-weight: 500;
    gap: 0.375rem; /* 6pt icon gap */
}
.btn-sm {
    min-height: 34px; /* compact control */
    border-radius: 0.5rem !important; /* 8pt */
    padding: 0.4rem 1rem; /* compact padding */
    font-size: var(--il-text-subhead);
}

/* CTA — full-width button (r1=2rem) */
.btn-block {
    display: flex !important;
    width: 100%;
    min-height: var(--il-touch-target); /* 44px safety net HIG */
    padding: 0.75rem 1.5rem; /* mismo vertical que inputs */
    border-radius: 2rem !important;
    font-size: var(--il-text-body);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────
   4. COLORS
   ───────────────────────────────────────────────────────────────────────── */
.btn-primary {
    background-color: var(--il-accent) !important;
    border-color: var(--il-accent) !important;
    color: #000 !important;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:active {
    background-color: var(--il-accent-dark) !important;
    border-color: var(--il-accent-dark) !important;
}
.btn-outline-primary {
    color: var(--il-accent) !important;
    border-color: var(--il-accent) !important;
    background-color: transparent !important;
    font-weight: 600;
}
.btn-outline-primary:hover,
.btn-outline-primary:active {
    background-color: var(--il-accent) !important;
    border-color: var(--il-accent) !important;
    color: #000 !important;
}
.text-secondary,
.text-muted {
    color: var(--il-label-secondary) !important;
}
.badge.bg-primary {
    background-color: var(--il-accent) !important;
    color: #000 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   5. CARDS — r2 = r1(2rem) + d(1.5rem px-4/pb-4) = 3.5rem
   ───────────────────────────────────────────────────────────────────────── */
.card {
    background-color: var(--il-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 1.5rem !important;
}
.alert {
    border-radius: 1rem !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   6. INPUTS — HIG: 44pt height, 16pt padding, clear labels
   ───────────────────────────────────────────────────────────────────────── */
.form-control,
.form-select {
    background-color: var(--il-surface-2) !important;
    border-color: var(--il-separator) !important;
    color: var(--il-label) !important;
    min-height: var(--il-touch-target); /* 44pt */
    padding: 0.75rem 1rem; /* 12pt 16pt */
    font-size: var(--il-text-body); /* 17pt */
    border-radius: 0.75rem !important; /* 12pt */
}
.form-control::placeholder {
    color: var(--il-label-tertiary);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--il-accent) !important;
    box-shadow: 0 0 0 3px rgba(200, 240, 0, 0.2) !important;
}
label,
.form-label {
    font-size: var(--il-text-footnote); /* 13pt */
    font-weight: 500;
    color: var(--il-label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem; /* 8pt */
}

/* ─────────────────────────────────────────────────────────────────────────
   7. LISTS — HIG: inset grouped, 44pt rows, 16pt horizontal padding
   ───────────────────────────────────────────────────────────────────────── */
.list-group-item {
    background-color: transparent;
    border-color: var(--il-separator);
    color: var(--il-label);
    min-height: var(--il-touch-target); /* 44pt */
    padding: 0.75rem 1rem; /* 12pt 16pt */
    display: flex;
    align-items: center;
}
.list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.il-list-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    min-height: var(--il-touch-target);
    color: var(--il-label);
    border-bottom: 1px solid var(--il-separator);
    transition: background 0.15s;
}
.il-list-row:last-child {
    border-bottom: none;
}
.card.il-list-row {
    border-bottom: none;
}
.il-list-row:active {
    background: rgba(255, 255, 255, 0.06);
}
.il-list-row--block {
    flex-direction: column;
    align-items: stretch;
    padding: 0.875rem 1rem;
}

/* Session hero card — variant with background image */
.il-session-hero-card {
    position: relative;
    overflow: hidden;
}
.il-session-hero-card > *:not(.il-session-hero-bg):not(.il-session-hero-fade) {
    position: relative;
    z-index: 1;
}
.il-session-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.75;
}
.il-session-hero-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    background: linear-gradient(
        to right,
        var(--il-surface) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* Muscle group badge */
.il-muscle-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    font-size: var(--il-text-caption);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    color: var(--il-label-secondary);
    border: 1px solid transparent;
}
/* Section headers — HIG: uppercase, secondary, footnote */
.section-header {
    font-size: var(--il-text-footnote);
    font-weight: 500;
    color: var(--il-label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 0 0.5rem; /* 16pt top, 8pt bottom */
}

/* ─────────────────────────────────────────────────────────────────────────
   8. BOTTOM TAB BAR — HIG: 49pt height, icon 25pt, label 10pt, 44pt tap
   ───────────────────────────────────────────────────────────────────────── */
.bottom-nav-pill {
    background-color: var(--il-bg-secondary) !important;
    border: 1px solid var(--il-separator) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.25rem; /* 4pt internal padding */
    gap: 0.25rem; /* 4pt between items */
}
.bottom-nav-pill .nav-item {
    min-height: var(--il-touch-target); /* 44pt */
    min-width: var(--il-touch-target); /* 44pt */
    padding: 0.5rem 0.75rem; /* 8pt 12pt */
    font-size: var(--il-text-caption); /* 10pt */
    gap: 0.25rem; /* 4pt icon-label gap */
}
.bottom-nav-pill .nav-item i {
    font-size: 1.375rem; /* ~22pt icon */
}
.bottom-nav-pill .nav-item.active {
    background-color: var(--il-accent) !important;
    color: #000 !important;
}
.bottom-nav-pill .nav-item.active i {
    color: #000 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   9. SEPARATORS
   ───────────────────────────────────────────────────────────────────────── */
hr,
.border-top,
.border-bottom {
    border-color: var(--il-separator) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   10. SPACING UTILITIES — 8pt grid
   ───────────────────────────────────────────────────────────────────────── */

/* Page container: 16pt horizontal, 24pt top */
.container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Inter-section vertical gap: 16pt */
.card + .card,
.card + h6,
.card + .section-header {
    margin-top: 1rem;
}

/* Card internal padding — standardized to 16pt */
.card-body {
    padding: 1rem !important;
}
.card-footer {
    padding: 0.75rem 1rem !important;
}
.card-header {
    padding: 0.75rem 1rem !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   11. SEGMENTED CONTROL — iOS UISegmentedControl style
   ───────────────────────────────────────────────────────────────────────── */
.il-segmented {
    display: flex;
    background-color: var(--il-bg-tertiary);
    border-radius: 0.75rem;
    padding: 0.25rem;
    gap: 0.25rem;
}
.il-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem; /* 36pt — iOS segmented height */
    padding: 0 1rem;
    border-radius: 0.5rem;
    font-size: var(--il-text-subhead); /* 15pt */
    font-weight: 500;
    color: var(--il-label-secondary);
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}
.il-segment.active {
    background-color: var(--il-surface);
    color: var(--il-label);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.il-segment:hover:not(.active) {
    color: var(--il-label);
}

/* ─────────────────────────────────────────────────────────────────────────
   12. FAB — Floating Action Button
   ───────────────────────────────────────────────────────────────────────── */
.il-fab {
    position: fixed;
    bottom: calc(5.5rem + env(safe-area-inset-bottom)); /* encima del nav */
    right: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--il-accent);
    color: #000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    z-index: 1030;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.il-fab:hover,
.il-fab:active {
    color: #000;
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────
   13. BACK BUTTON — iOS chevron navigation
   ───────────────────────────────────────────────────────────────────────── */
.il-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--il-accent) !important;
    font-size: var(--il-text-body);
    font-weight: 500;
    text-decoration: none !important;
    padding: 0;
    background: none;
    border: none;
    min-height: var(--il-touch-target);
    cursor: pointer;
}
.il-back-btn i {
    font-size: 1.1rem;
}
.il-back-btn:hover {
    color: var(--il-accent-dark) !important;
}

/* Summary hero card — image with overlaid stats */
.il-summary-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
}
.il-summary-hero-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.il-summary-hero-gradient {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}
.il-summary-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.75rem;
}
.il-summary-hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 0.25rem;
}
.il-summary-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
}
.il-summary-hero-stat i {
    font-size: 1.1rem;
}
.il-summary-hero-value {
    font-size: var(--il-text-body);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.il-summary-hero-label {
    font-size: var(--il-text-caption);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Section title — between h1 and h2, accent, uppercase */
.il-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--il-accent);
    margin-bottom: 0.75rem;
}

/* Empty state — centered vertically and horizontally in the viewport */
.il-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--il-label-secondary);
    /* account for top nav (~4rem) + bottom nav (~4rem) + safe areas */
    min-height: calc(
        100dvh - 4rem - 6rem - env(safe-area-inset-top) -
            env(safe-area-inset-bottom)
    );
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
.il-empty-state > i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}
.il-empty-state .btn {
    width: auto !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   14. SPLASH SCREEN
   ───────────────────────────────────────────────────────────────────────── */
#il-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}
#il-splash.il-splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#il-splash img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}
#il-splash .il-splash-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.il-splash-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: il-spin 0.8s linear infinite;
}
@keyframes il-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   15. SKELETON SHIMMER
   ───────────────────────────────────────────────────────────────────────── */
.il-skeleton {
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 200% 100%;
    animation: il-shimmer 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes il-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.il-skeleton-screen {
    display: block;
}
.il-skeleton-screen.il-skeleton-hidden {
    display: none;
}
.il-skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 7px;
}
.il-skeleton-line.lg {
    height: 22px;
    margin-bottom: 14px;
}
.il-skeleton-line.sm {
    height: 10px;
    margin-bottom: 8px;
}
.il-skeleton-card {
    border-radius: 14px;
    background: var(--bs-tertiary-bg, #2a2a2a);
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.il-skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   16. PAGE TRANSITIONS
   ───────────────────────────────────────────────────────────────────────── */
@keyframes il-page-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
main {
    animation: il-page-in 0.35s ease both;
}
main.il-page-out {
    transition: opacity 0.2s ease;
    opacity: 0 !important;
    animation: none !important;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   17. PROGRESS BAR
   ───────────────────────────────────────────────────────────────────────── */
#il-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--il-accent, #c8f000);
    z-index: 10000;
    transition:
        width 0.2s ease,
        opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
#il-progress-bar.il-progress-active {
    opacity: 1;
    width: 70%;
    transition:
        width 2.5s cubic-bezier(0.1, 0.05, 0, 1),
        opacity 0.15s ease;
}
#il-progress-bar.il-progress-done {
    width: 100%;
    opacity: 0;
    transition:
        width 0.15s ease,
        opacity 0.25s ease 0.1s;
}

/* ─────────────────────────────────────────────────────────────────────────
   18. BODY & NAV LAYOUT
   ───────────────────────────────────────────────────────────────────────── */
body {
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
}
.bottom-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.bottom-nav-pill {
    display: flex;
    align-items: center;
    bottom: 1.5rem;
    gap: 0.25rem;
    background: var(--bs-tertiary-bg);
    border-radius: 9999px;
    padding: 0.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}
.bottom-nav-pill .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition:
        background 0.15s,
        color 0.15s;
    line-height: 1;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
    background: transparent !important;
}
.bottom-nav-pill .nav-item i {
    font-size: 1.25rem;
}
.bottom-nav-pill .nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.75);
}
.bottom-nav-pill .nav-item.active {
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────
   19. NAV SLIDE INDICATOR
   ───────────────────────────────────────────────────────────────────────── */
.il-nav-slide {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--bs-primary);
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
    transition: none;
}
.il-nav-slide.il-nav-slide-ready {
    transition:
        transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
        width 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ─────────────────────────────────────────────────────────────────────────
   20. AUTH SCREENS (login + register)
   ───────────────────────────────────────────────────────────────────────── */
.il-login-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
    max-width: 400px;
    margin: 0 auto;
}
.il-register-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
    max-width: 400px;
    margin: 0 auto;
}

/* Hero */
.il-login-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.il-register-screen .il-login-hero {
    margin-bottom: 2rem;
}

.il-login-appicon {
    border-radius: 22px;
    box-shadow: 0px 0px 68px 27px rgba(200, 240, 0, 0.18);
    margin-bottom: 1rem;
}
.il-login-appname {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
}
.il-login-tagline {
    font-size: 0.95rem;
    color: var(--il-label-secondary);
    margin: 0;
}

/* Form */
.il-login-form {
    width: 100%;
}
.il-register-form {
    width: 100%;
}

.il-login-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Grouped input iOS style */
.il-input-group {
    background: var(--il-surface);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.il-input-row {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 52px;
}
.il-input-icon {
    color: var(--il-label-secondary);
    font-size: 1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.il-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--bs-body-color);
    font-size: 1rem;
    height: 100%;
}
.il-input::placeholder {
    color: var(--il-label-secondary);
}
.il-input-date {
    color-scheme: dark;
}
.il-input-separator {
    height: 1px;
    background: rgb(116 116 120 / 0.3);
    margin-left: 3rem;
}
.il-pw-toggle {
    background: transparent;
    border: none;
    color: var(--il-label-secondary);
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Remember me toggle */
.il-login-remember {
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

/* iOS toggle switch */
.il-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.il-toggle-check {
    display: none;
}
.il-toggle-track {
    position: relative;
    width: 44px;
    height: 26px;
    background: rgb(116 116 120 / 0.4);
    border-radius: 13px;
    flex-shrink: 0;
    transition: background 0.2s;
    cursor: pointer;
}
.il-toggle-check:checked + .il-toggle-track,
.il-toggle-track.il-on {
    background: var(--il-accent);
}
.il-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.il-toggle-check:checked + .il-toggle-track .il-toggle-thumb,
.il-toggle-track.il-on .il-toggle-thumb {
    transform: translateX(18px);
}

/* CTA button */
.il-login-btn {
    width: 100%;
    height: 52px;
    background: var(--il-accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition:
        opacity 0.15s,
        transform 0.1s;
}
.il-register-screen .il-login-btn {
    margin-top: 1.5rem;
}
.il-login-btn:active {
    opacity: 0.85;
    transform: scale(0.98);
}

/* Footer */
.il-login-footer {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--il-label-secondary);
    text-align: center;
}
.il-login-footer a {
    color: var(--il-accent);
    text-decoration: none;
    font-weight: 500;
}

/* Register: section label */
.il-group-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--il-label-secondary);
    margin: 1.25rem 0 0.35rem 0.5rem;
    text-transform: uppercase;
}

/* Register: field error */
.il-field-error {
    font-size: 0.78rem;
    color: #f87171;
    margin: 0.35rem 0 0 0.5rem;
}

/* Register: password requirements */
.il-pw-reqs {
    list-style: none;
    padding: 0.5rem 0.5rem 0;
    margin: 0 0 0.5rem;
}
.il-pw-req {
    font-size: 0.78rem;
    color: var(--il-label-secondary);
    transition: color 0.2s;
    padding: 0.1rem 0;
}
.il-pw-req.ok {
    color: var(--il-accent);
}
.il-pw-req.ok i::before {
    content: "\F26B";
}
.il-pw-match {
    font-size: 0.78rem;
    padding: 0 0.5rem 0.5rem;
}

/* Login: toggle label font */
.il-login-remember .il-toggle-label {
    font-size: 0.875rem;
    color: var(--il-label-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────
   21. PROFILE — Card, stats, info rows, toggles, settings
   ───────────────────────────────────────────────────────────────────────── */

/* Profile card wrapper */
#il-profile-card-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 1.25rem;
}

.il-profile-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition:
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.il-profile-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s;
}

.il-profile-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(200, 240, 0, 0.72) 75%,
        rgba(200, 240, 0, 0.95) 100%
    );
    transition: background 0.35s;
}

/* Info — card mode */
.il-profile-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    color: #000;
}

.il-profile-card-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.il-profile-card-name {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.15rem;
    transition: font-size 0.35s;
}

.il-profile-card-nickname {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    margin: 0;
}

.il-profile-card-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.il-profile-card-metric {
    display: flex;
    flex-direction: column;
}

.il-profile-card-metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.il-profile-card-metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Edit button on card */
.il-profile-card-edit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s,
        top 0.35s,
        right 0.35s;
}

/* Banner metrics (weight + height) */
.il-profile-card-banner-metrics {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.il-profile-card-banner-metric {
    font-size: 0.82rem;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.il-profile-card-banner-metric .il-banner-metric-label {
    font-weight: 500;
    opacity: 0.6;
    margin-left: 0.2rem;
    font-size: 0.7rem;
}

/* iOS grouped container */
.il-ios-group {
    background: var(--il-surface);
    border-radius: 14px;
    overflow: hidden;
}

/* Section label */
.il-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--il-label-secondary);
    margin: 0 0 0.35rem 0.5rem;
}

/* Stats row */
.il-stats-row {
    display: flex;
    align-items: stretch;
}

.il-stat-ios {
    flex: 1;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.il-stat-ios-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--il-accent);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.il-stat-ios-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--il-label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.il-stats-sep {
    width: 1px;
    background: var(--il-separator);
    margin: 0.75rem 0;
}

/* Info rows */
.il-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    min-height: 44px;
}
.il-info-row + .il-info-row {
    border-top: 1px solid var(--il-separator);
}
.il-info-label {
    font-size: var(--il-text-subhead);
    color: var(--il-label-secondary);
    flex-shrink: 0;
    margin-right: 1rem;
}
.il-info-value {
    font-size: var(--il-text-subhead);
    font-weight: 500;
    text-align: right;
    color: var(--bs-body-color);
}

/* Toggle row */
.il-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    min-height: 52px;
}

/* Time input iOS style */
.il-time-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--il-text-subhead);
    color: var(--il-accent);
    font-weight: 500;
    text-align: right;
    color-scheme: dark;
    padding: 0;
}

/* Select iOS style */
.il-select {
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--il-text-subhead);
    color: var(--il-accent);
    font-weight: 500;
    text-align: right;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

/* Text button (subtle) */
.il-text-btn {
    background: none;
    border: none;
    color: var(--il-accent);
    font-size: var(--il-text-body);
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* CTA button (generic) */
.il-cta-btn {
    width: 100%;
    height: 48px;
    background: var(--il-accent);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.il-cta-btn:active {
    opacity: 0.8;
}

/* Destructive row (cerrar sesión) */
.il-destructive-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem;
    min-height: 52px;
    color: #ef4444;
    font-size: var(--il-text-body);
    font-weight: 600;
    text-decoration: none;
}
.il-destructive-row:hover {
    color: #dc2626;
}

/* ─────────────────────────────────────────────────────────────────────────
   22. PROFILE EDIT — Nav, avatar, form inputs, navigation rows
   ───────────────────────────────────────────────────────────────────────── */

/* Screen layout */
.il-edit-screen {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem calc(3rem + env(safe-area-inset-bottom));
}

/* Avatar */
.il-edit-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    cursor: pointer;
}

.il-edit-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 0px 32px 8px rgba(200, 240, 0, 0.15);
}

.il-edit-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--il-accent);
    color: #000;
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 32px 8px rgba(200, 240, 0, 0.15);
}

.il-edit-avatar-label {
    margin-top: 0.6rem;
    font-size: 0.875rem;
    color: var(--il-accent);
    font-weight: 500;
}

/* Edit form — input row overrides */
.il-edit-screen .il-ios-group {
    margin-bottom: 1.5rem;
}

.il-edit-screen .il-input-row {
    min-height: 52px;
    height: auto;
    gap: 0.75rem;
}

.il-edit-screen .il-input-row + .il-input-row {
    border-top: 1px solid var(--il-separator);
}

.il-input-row-label {
    font-size: 0.95rem;
    color: var(--bs-body-color);
    flex-shrink: 0;
    min-width: 90px;
}

.il-edit-screen .il-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--bs-body-color);
    font-size: 0.95rem;
    text-align: right;
    padding: 0;
    height: auto;
    color-scheme: dark;
}

.il-edit-screen .il-input-row input::placeholder {
    color: var(--il-label-secondary);
}

.il-edit-screen .il-input-row textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--bs-body-color);
    font-size: 0.95rem;
    padding: 0.75rem 0;
    resize: none;
    line-height: 1.5;
    text-align: left;
}

.il-edit-screen .il-input-row textarea::placeholder {
    color: var(--il-label-secondary);
}

/* Navigation row (→ otra pantalla) */
.il-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    min-height: 52px;
    text-decoration: none;
    color: var(--bs-body-color);
    font-size: 0.95rem;
}

.il-nav-row + .il-nav-row {
    border-top: 1px solid var(--il-separator);
}

.il-nav-row i.bi-chevron-right {
    color: var(--il-label-secondary);
    font-size: 0.8rem;
}

/* CTA button — edit form override */
.il-edit-screen .il-cta-btn {
    height: 52px;
    font-size: 1rem;
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

/* Cancel button */
.il-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    background: var(--il-surface);
    color: var(--bs-body-color);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}
.il-cancel-btn:active {
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────────────
   23. SESSION DETAIL — Timer, rest banner, swipe, topbar, search
   ───────────────────────────────────────────────────────────────────────── */

/* Session elapsed timer pill */
.il-session-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: var(--il-surface-2);
    font-size: var(--il-text-subhead);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.il-session-timer i {
    color: var(--il-accent);
}

/* Rest timer banner — sticky below topbar */
.il-rest-banner {
    position: fixed;
    top: var(--il-topbar-height, calc(env(safe-area-inset-top) + 3.25rem));
    left: 0;
    right: 0;
    z-index: 199;
    border: none !important;
    border-bottom: 2px solid var(--il-accent) !important;
    border-radius: 0 !important;
    transition:
        border-color 0.3s,
        opacity 0.3s;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(18, 18, 20, 0.75) !important;
}
@supports not (backdrop-filter: blur(1px)) {
    .il-rest-banner {
        background: rgba(18, 18, 20, 0.96) !important;
    }
}
.il-rest-count {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--il-accent);
}


/* Swipe to delete */
.il-swipe-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #ff3b30;
}
.il-swipe-card {
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
    will-change: transform;
    border-radius: 0 !important;
}
.il-swipe-card.swiped {
    transform: translateX(-80px);
}
.il-swipe-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff3b30;
    border-radius: 0;
    z-index: 0;
}
.il-swipe-delete {
    background: none;
    border: none;
    color: #fff;
    font-size: var(--il-text-subhead);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    cursor: pointer;
    min-height: auto;
}
.il-swipe-delete i {
    font-size: 1.25rem;
}

/* Exercise timer card states */
.il-exercise-timer-card {
    border-color: var(--il-separator) !important;
}

/* Active session — exercise done (dimmed) */
.il-exercise-timer-card--done {
    opacity: 0.7;
    background: var(--il-surface-2) !important;
}
.il-exercise-timer-card--done .il-rest-count,
.il-exercise-timer-card--done i {
    color: rgba(168, 204, 0, 0.45) !important;
}

/* Completed session — full accent, full opacity */
.il-exercise-timer-card--session-done {
    opacity: 1;
    background: var(--il-surface-2) !important;
}
.il-exercise-timer-card--session-done .il-rest-count,
.il-exercise-timer-card--session-done i {
    color: var(--il-accent) !important;
}
.il-exercise-section-done .il-swipe-wrapper {
    background: var(--il-surface-2);
}
/* Active session: dim completed set cards */
.il-exercise-section-done .il-swipe-card {
    opacity: 0.5;
}
/* Completed session: full opacity + accent border on set cards */
.il-session-completed .il-exercise-section-done .il-swipe-card {
    opacity: 1 !important;
}
.il-session-completed .border-accent {
    border-color: var(--il-accent) !important;
}

/* Sticky frosted topbar */
.il-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top) + 0.625rem) 1.25rem 0.625rem;
    margin-top: calc(-1 * env(safe-area-inset-top));
    margin-inline: -0.75rem;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
@supports not (backdrop-filter: blur(1px)) {
    .il-topbar {
        background: rgba(0, 0, 0, 0.88);
    }
}

.il-topbar-profile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top) + 0.625rem) 1.25rem 0.625rem;
    background: var(--il-accent);
    color: var(--il-bg);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.il-topbar-profile.il-topbar--visible {
    opacity: 1;
    pointer-events: auto;
}
@supports not (backdrop-filter: blur(1px)) {
    .il-topbar-profile {
        background: rgba(0, 0, 0, 0.88);
    }
}

/* Topbar title */
.il-topbar-profile-title {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--il-bg) !important;
    font-size: var(--il-text-body);
    font-weight: 500;
    text-decoration: none !important;
    padding: 0;
    background: none;
    border: none;
    min-height: var(--il-touch-target);
    cursor: pointer;
}

/* Topbar metrics (right side) */
.il-topbar-profile-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}
.il-topbar-profile-metrics span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--il-bg);
}

/* Topbar title */
.il-topbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--il-text-body);
    font-weight: 500;
    text-decoration: none !important;
    padding: 0;
    background: none;
    border: none;
    min-height: var(--il-touch-target);
    cursor: pointer;
}

/* Generic topbar — hidden by default, fades in when title scrolls out */
.il-topbar-generic {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-top) + 0.625rem) 1.25rem 0.625rem;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.il-topbar-generic.il-topbar--visible {
    opacity: 1;
    pointer-events: auto;
}
@supports not (backdrop-filter: blur(1px)) {
    .il-topbar-generic {
        background: rgba(0, 0, 0, 0.88);
    }
}

/* Generic content area below topbar-generic */
.il-content {
    padding-top: 1.5rem;
}

/* Session-specific: accounts for rest banner */
.il-session-content {
    padding-top: calc(1.5rem + var(--il-rest-banner-height, 0px));
}

/* ─────────────────────────────────────────────────────────────────────────
   24. CALENDAR — Grid, day cells, headers, nav buttons
   ───────────────────────────────────────────────────────────────────────── */

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 2.1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--il-label);
    font-size: var(--il-text-subhead);
    font-weight: 500;
    transition: background 0.12s;
    position: relative;
}
.cal-day:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--il-label);
}
.cal-day.today {
    background: var(--il-accent);
    color: #000;
    font-weight: 700;
}
.cal-day.selected:not(.today) {
    background: rgba(200, 240, 0, 0.15);
    color: var(--il-accent);
    font-weight: 700;
}
.cal-day.has-session::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--il-accent);
    position: absolute;
    bottom: 4px;
}
.cal-day.today.has-session::after {
    background: #000;
}
.cal-day-header {
    font-size: var(--il-text-caption);
    font-weight: 600;
    color: var(--il-label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

/* Month nav chevron buttons */
.cal-nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--il-surface-2);
    border: none;
    color: var(--il-label);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.12s;
}
.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--il-label);
}
.cal-nav-btn:disabled,
.cal-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   25. EXERCISE LIST & PICKER — Search, filters, thumbnails, tags, pick rows
   ───────────────────────────────────────────────────────────────────────── */

/* Search bar iOS style */
.il-search-wrap {
    position: relative;
}
.il-search-wrap .bi-search {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--il-label-secondary);
    font-size: 1rem;
    pointer-events: none;
}
.il-search-wrap input {
    padding-left: 2.5rem !important;
    background: var(--il-surface-2) !important;
    border: none !important;
    border-radius: 0.75rem !important;
}
.il-search-wrap input:focus {
    background: var(--il-surface-2) !important;
}

/* Filter selects */
.il-filter-row select {
    background: var(--il-surface-2) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-size: var(--il-text-subhead) !important;
}

/* Exercise thumbnail placeholder */
.ex-thumb {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--il-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--il-label-secondary);
}
.ex-thumb img {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    object-fit: cover;
}

/* Muscle/type tags */
.il-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    font-size: var(--il-text-caption);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    color: var(--il-label-secondary);
}

/* Picker rows */
.il-pick-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--il-separator);
    cursor: pointer;
    transition: background 0.12s;
}
.il-pick-row:last-child {
    border-bottom: none;
}
.il-pick-row:hover {
    background: rgba(255, 255, 255, 0.05);
}
.il-pick-thumb {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    background: var(--il-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--il-label-secondary);
    font-size: 1.25rem;
}
.il-pick-thumb img {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────────────────
   26. HOME — Quick access cards
   ───────────────────────────────────────────────────────────────────────── */

.il-quick-card .card-body {
    padding: 1.25rem 1rem !important;
}
.il-quick-card i {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
}
.il-quick-card p {
    font-size: var(--il-text-subhead);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────
   27. SESSION FORM — Routine picker rows
   ───────────────────────────────────────────────────────────────────────── */

.il-routine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--il-separator);
    text-decoration: none;
    color: var(--il-label);
    min-height: var(--il-touch-target);
    transition: background 0.12s;
}
.il-routine-row:last-child {
    border-bottom: none;
}
.il-routine-row:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--il-label);
}
.il-routine-row .il-routine-name {
    font-size: var(--il-text-body);
    font-weight: 500;
}
.il-routine-row .il-routine-meta {
    font-size: var(--il-text-subhead);
    color: var(--il-label-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────
   BOTTOM SHEET (generic)
   ───────────────────────────────────────────────────────────────────────── */
.il-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.il-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2001;
    background: var(--il-surface);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem 1.25rem max(calc(1.5rem + env(safe-area-inset-bottom)), 2.5rem);
    transition: transform 0.3s ease;
}

.il-sheet-handle {
    width: 2.5rem;
    height: 4px;
    border-radius: 2px;
    background: var(--il-separator);
    margin: 0 auto 1.25rem;
}

.il-sheet-title {
    font-size: var(--il-text-headline);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.il-sheet-subtitle {
    font-size: var(--il-text-subhead);
    color: var(--il-label-secondary);
    margin-bottom: 1.5rem;
}

.il-sheet-duration {
    color: var(--il-accent);
}

.il-sheet .il-safe-area-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-bottom);
    background: var(--il-surface);
}

/* List card — reduce default card margin for dense lists */
.il-list-card {
    margin-top: 0.25rem !important;
}

/* ── Notification / settings rows helpers ──────────────────────────────── */
.il-row-sep {
    border-top: 1px solid var(--il-separator);
}
.il-row-label {
    font-size: var(--il-text-body);
}
.il-caption-secondary {
    font-size: var(--il-text-caption);
    color: var(--il-label-secondary);
}
.il-row-action {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--il-separator);
}

