        :root {
            --bg-base: #090d16;
            --bg-surface: #0f172a;
            --bg-elevated: #1e293b;
            --bg-card: rgba(30, 41, 59, 0.7);
            --border: rgba(255, 255, 255, 0.1);
            --border-hover: rgba(245, 158, 11, 0.4);
            --gold: #f59e0b;
            --gold-light: #fde68a;
            --gold-glow: rgba(245, 158, 11, 0.25);
            --cyan: #38bdf8;
            --cyan-glow: rgba(56, 189, 248, 0.25);
            --red-alert: #e11d48;
            --green-success: #10b981;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --radius-lg: 16px;
            --radius-md: 12px;
            --radius-sm: 8px;
        }

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

        body {
            background-color: var(--bg-base);
            background-image: 
                radial-gradient(circle at 50% 0%, #1e293b 0%, transparent 60%),
                radial-gradient(circle at 100% 100%, #172554 0%, transparent 50%);
            background-attachment: fixed;
            color: var(--text-primary);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.5;
            min-height: 100vh;
            padding-bottom: 90px;
        }

        /* ==================== LOGIN SCREEN ==================== */
        #loginScreen {
            display: none;
            min-height: 100vh;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: radial-gradient(circle at top center, #1e293b 0%, #090d16 80%);
        }
        #loginScreen.active {
            display: flex;
        }
        .login-card {
            background: rgba(19, 28, 46, 0.95);
            border: 1px solid var(--gold);
            border-radius: 20px;
            padding: 32px 24px;
            max-width: 420px;
            width: 100%;
            box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--gold-glow);
            backdrop-filter: blur(16px);
            text-align: center;
        }
        .login-logo {
            font-size: 44px;
            margin-bottom: 8px;
            display: inline-block;
        }
        .login-title {
            font-size: 22px;
            font-weight: 800;
            color: #fff;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .login-subtitle {
            font-size: 13px;
            color: var(--gold-light);
            margin-bottom: 22px;
        }
        .login-error {
            background: rgba(225, 29, 72, 0.15);
            border-left: 4px solid var(--red-alert);
            color: #fecdd3;
            padding: 10px 12px;
            border-radius: 6px;
            font-size: 12px;
            margin-bottom: 16px;
            text-align: left;
            display: none;
        }
        .login-field {
            margin-bottom: 16px;
            text-align: left;
        }
        .login-label {
            display: block;
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .login-input {
            width: 100%;
            background: #090d16;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 13px 14px;
            color: #fff;
            font-size: 14px;
            outline: none;
            box-sizing: border-box;
            transition: all 0.2s;
        }
        .login-input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 10px var(--gold-glow);
        }
        .login-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--gold) 0%, #b45309 100%);
            border: none;
            color: #090d16;
            font-size: 15px;
            font-weight: 800;
            padding: 14px;
            border-radius: 10px;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
            margin-top: 8px;
            transition: all 0.2s;
        }
        .login-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
        }
        .login-hint {
            margin-top: 18px;
            font-size: 11px;
            color: var(--text-secondary);
            background: rgba(0,0,0,0.3);
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        /* ==================== APP CONTAINER & HEADER ==================== */
        .app-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 16px;
        }

        /* AUTH TOP BAR */
        .auth-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(19, 28, 46, 0.95);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 10px 14px;
            margin-bottom: 16px;
            backdrop-filter: blur(10px);
        }
        .auth-user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }
        .auth-avatar {
            font-size: 26px;
            background: var(--bg-elevated);
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1.5px solid var(--gold);
        }
        .auth-name-title {
            font-size: 14px;
            font-weight: 800;
            color: #fff;
        }
        .auth-role-tag {
            font-size: 9.5px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            text-transform: uppercase;
            margin-left: 4px;
        }
        .role-admin {
            background: rgba(245, 158, 11, 0.2);
            color: var(--gold);
            border: 1px solid var(--gold);
        }
        .role-athlete {
            background: rgba(56, 189, 248, 0.2);
            color: #38bdf8;
            border: 1px solid #0284c7;
        }
        .cloud-sync-badge {
            font-size: 9.5px;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.4);
            color: #6ee7b7;
            letter-spacing: 0.3px;
            transition: all 0.3s ease;
        }
        .cloud-sync-badge.syncing {
            background: rgba(245, 158, 11, 0.15);
            border-color: rgba(245, 158, 11, 0.4);
            color: #fde68a;
        }
        .cloud-sync-badge.offline {
            background: rgba(148, 163, 184, 0.15);
            border-color: rgba(148, 163, 184, 0.3);
            color: #cbd5e1;
        }
        .auth-actions {
            display: flex;
            gap: 6px;
        }
        .btn-auth-action {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: var(--gold-light);
            font-size: 11.5px;
            font-weight: 700;
            padding: 6px 10px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s;
        }
        .btn-auth-action:hover {
            border-color: var(--gold);
        }
        .btn-logout {
            color: #f87171 !important;
            border-color: rgba(239, 68, 68, 0.4) !important;
        }
        .btn-logout:hover {
            border-color: #ef4444 !important;
            background: rgba(239, 68, 68, 0.15) !important;
        }

        /* HERO BRANDING */
        .hero-banner {
            text-align: center;
            padding: 16px 12px 20px;
        }
        .badge-brand {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 800;
            color: var(--gold);
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid var(--gold);
            padding: 4px 10px;
            border-radius: 20px;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            text-transform: uppercase;
        }
        .hero-title {
            font-size: 24px;
            font-weight: 900;
            color: #fff;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
            margin-bottom: 6px;
        }
        .hero-subtitle {
            font-size: 13px;
            color: var(--text-secondary);
            max-width: 520px;
            margin: 0 auto;
        }

        /* NAVIGATION TABS */
        .tab-nav {
            display: flex;
            gap: 6px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid var(--border);
            padding: 6px;
            border-radius: var(--radius-lg);
            margin-bottom: 20px;
            overflow-x: auto;
            scrollbar-width: none;
            backdrop-filter: blur(12px);
        }
        .tab-nav::-webkit-scrollbar {
            display: none;
        }
        .tab-btn {
            flex: 1;
            min-width: 100px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 700;
            padding: 10px 8px;
            border-radius: var(--radius-md);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .tab-btn.active {
            background: var(--gold);
            color: #090d16;
            font-weight: 800;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
        }

        /* ==================== MODERN COMPACT APP BAR ==================== */
        .modern-app-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 14px;
            background: rgba(15, 23, 42, 0.92);
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(14px);
            position: sticky;
            top: 0;
            z-index: 100;
            margin: -16px -16px 14px -16px;
        }
        .modern-brand {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        .modern-brand-logo {
            font-size: 20px;
        }
        .modern-brand-title {
            font-size: 14px;
            font-weight: 900;
            letter-spacing: 0.5px;
            color: #fff;
        }
        .app-version-badge {
            font-size: 10px;
            font-weight: 900;
            color: var(--gold);
            background: rgba(245, 158, 11, 0.16);
            border: 1px solid rgba(245, 158, 11, 0.45);
            padding: 2px 7px;
            border-radius: 10px;
            letter-spacing: 0.5px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
        }
        .modern-bar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .modern-user-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--bg-elevated);
            padding: 4px 10px 4px 6px;
            border-radius: 20px;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
        }
        .modern-user-badge:hover {
            border-color: var(--gold);
        }
        .modern-user-avatar {
            font-size: 18px;
            width: 28px;
            height: 28px;
            background: var(--bg-base);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--gold);
        }
        .modern-user-name {
            font-size: 12px;
            font-weight: 700;
            color: #fff;
        }
        @media (max-width: 768px) {
            .desktop-only-action {
                display: none !important;
            }
        }

        /* ==================== HIDEABLE BOTTOM NAVIGATION ==================== */
        .bottom-nav-wrapper {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 150;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: transform;
        }
        .bottom-nav-wrapper.hidden {
            transform: translateY(calc(100% - 14px));
        }
        .bottom-pull-handle {
            width: 56px;
            height: 14px;
            background: rgba(30, 41, 59, 0.95);
            border: 1px solid var(--border);
            border-bottom: none;
            margin: 0 auto;
            border-radius: 8px 8px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
            transition: background 0.2s;
        }
        .bottom-pull-handle::after {
            content: '';
            width: 22px;
            height: 3px;
            background: var(--gold);
            border-radius: 2px;
        }
        .bottom-pull-handle:hover {
            background: var(--gold);
        }
        .bottom-pull-handle:hover::after {
            background: #090d16;
        }
        .bottom-nav-bar {
            display: flex;
            justify-content: space-around;
            align-items: center;
            background: rgba(15, 23, 42, 0.97);
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 8px));
            backdrop-filter: blur(18px);
            box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
            max-width: 800px;
            margin: 0 auto;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            color: var(--text-secondary);
            font-size: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
            padding: 4px 0;
            border-radius: 8px;
            position: relative;
        }
        .bottom-nav-item .nav-icon {
            font-size: 19px;
            transition: transform 0.2s;
        }
        .bottom-nav-item:hover {
            color: #fff;
        }
        .bottom-nav-item.active {
            color: var(--gold);
        }
        .bottom-nav-item.active .nav-icon {
            transform: scale(1.15) translateY(-2px);
        }
        .bottom-nav-item.active::after {
            content: '';
            width: 4px;
            height: 4px;
            background: var(--gold);
            border-radius: 50%;
            position: absolute;
            bottom: 0px;
        }

        /* FLOATING RESTORE PILL (WHEN BOTTOM BAR IS HIDDEN) */
        .floating-restore-pill {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--gold);
            color: #090d16;
            font-size: 11.5px;
            font-weight: 900;
            padding: 8px 14px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
            z-index: 140;
            opacity: 0;
            transform: scale(0.85);
            pointer-events: none;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .floating-restore-pill.visible {
            opacity: 1;
            transform: scale(1);
            pointer-events: auto;
        }

        /* ==================== MORE SHEET (BOTTOM DRAWER) ==================== */
        .more-sheet-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.65);
            backdrop-filter: blur(4px);
            z-index: 200;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        .more-sheet-overlay.open {
            opacity: 1;
            pointer-events: auto;
        }
        .more-sheet {
            position: fixed;
            left: 0; right: 0; bottom: -450px;
            background: #0f172a;
            border-top: 1px solid rgba(255,255,255,0.18);
            border-radius: 20px 20px 0 0;
            padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 12px));
            z-index: 201;
            transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 -15px 40px rgba(0,0,0,0.8);
            max-width: 600px;
            margin: 0 auto;
        }
        .more-sheet.open {
            bottom: 0;
        }
        .more-sheet-handle {
            width: 36px;
            height: 4px;
            background: rgba(255,255,255,0.25);
            border-radius: 2px;
            margin: 0 auto 14px;
        }
        .more-sheet-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }
        .more-sheet-title {
            font-size: 14px;
            font-weight: 800;
            color: var(--gold);
        }
        .more-sheet-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 12px;
        }
        .more-sheet-btn {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            padding: 12px 10px;
            border-radius: 12px;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .more-sheet-btn:hover {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.1);
        }
        .more-sheet-btn.logout {
            grid-column: span 2;
            background: rgba(225, 29, 72, 0.15);
            border-color: rgba(225, 29, 72, 0.3);
            color: #fca5a5;
            justify-content: center;
        }

        /* ==================== WORKOUT FOCUS VISUAL & COLLAPSIBLE TOOLS ==================== */
        .exercise-visual-card {
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 10px 12px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            backdrop-filter: blur(8px);
        }
        .visual-illustration {
            width: 100px;
            min-height: 80px;
            background: #090d16;
            border: 1px solid rgba(56, 189, 248, 0.3);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 4px;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
            overflow: hidden;
        }
        .visual-illustration svg {
            max-width: 100%;
            height: auto;
            max-height: 80px;
        }
        .visual-cue-info {
            flex: 1;
        }
        .visual-cue-title {
            font-size: 11px;
            font-weight: 800;
            color: var(--cyan);
            text-transform: uppercase;
            margin-bottom: 3px;
        }
        .visual-cue-text {
            font-size: 11px;
            color: #cbd5e1;
            line-height: 1.35;
        }

        /* INPUT DUO GRID */
        /* INPUT DUO GRID */
        .input-duo-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-bottom: 12px;
        }
        @media (min-width: 680px) {
            .input-duo-grid {
                grid-template-columns: 1.25fr 1fr;
            }
        }
        .input-duo-cell {
            background: #090d16;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 10px 12px;
            text-align: center;
        }
        .input-duo-label {
            font-size: 11px;
            font-weight: 800;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-bottom: 6px;
            letter-spacing: 0.5px;
        }
        .input-stepper-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        .btn-step-mini {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #fff;
            width: 44px;
            height: 38px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s;
            user-select: none;
        }
        .btn-step-mini:hover {
            border-color: var(--gold);
            color: var(--gold);
        }
        .btn-step-mini:active {
            transform: scale(0.92);
        }
        .input-huge-val {
            width: 75px;
            background: transparent;
            border: none;
            color: #fff;
            font-size: 24px;
            font-weight: 900;
            text-align: center;
            outline: none;
        }

        /* COLLAPSIBLE TOOLS */
        .tools-collapsible {
            background: rgba(15, 23, 42, 0.8);
            border: 1px dashed rgba(245, 158, 11, 0.4);
            border-radius: 10px;
            margin-bottom: 12px;
            overflow: hidden;
            transition: all 0.25s;
        }
        .tools-header-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            cursor: pointer;
            user-select: none;
            background: rgba(245, 158, 11, 0.05);
        }
        .tools-header-toggle:hover {
            background: rgba(245, 158, 11, 0.12);
        }
        .tools-title {
            font-size: 11px;
            font-weight: 800;
            color: var(--gold);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .tools-badge-count {
            font-size: 9px;
            background: rgba(245, 158, 11, 0.2);
            color: var(--gold-light);
            padding: 1px 5px;
            border-radius: 4px;
        }
        .tools-body {
            padding: 10px;
            border-top: 1px dashed rgba(255,255,255,0.08);
            background: #090d16;
        }
        .fine-steppers-row {
            display: flex;
            gap: 4px;
            margin-bottom: 8px;
        }
        .btn-fine-step {
            flex: 1;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #cbd5e1;
            padding: 6px 2px;
            border-radius: 6px;
            font-size: 10.5px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-fine-step:hover {
            border-color: var(--cyan);
            color: var(--cyan);
        }

        /* RESPONSIVE TOGGLES: Desktop tabs vs Mobile Bottom Nav */
        @media (max-width: 768px) {
            .tab-nav {
                display: none !important;
            }
            .hero-banner {
                display: none !important;
            }
            .auth-bar {
                display: none !important;
            }
            body {
                padding-bottom: 90px !important;
            }
        }
        @media (min-width: 769px) {
            .bottom-nav-wrapper {
                display: none !important;
            }
            .floating-restore-pill {
                display: none !important;
            }
        }

        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
            animation: fadeIn 0.25s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .analytics-subtab-btn.active {
            background: var(--gold) !important;
            color: #090d16 !important;
            font-weight: 800 !important;
            border-color: var(--gold) !important;
        }
        .analytics-kpi-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 12px;
            text-align: center;
        }
        .analytics-bar-bg {
            background: rgba(255, 255, 255, 0.07);
            height: 9px;
            border-radius: 6px;
            overflow: hidden;
            margin-top: 4px;
        }
        
        /* ==================== WORKOUT STUDIO & MUSCLE RADAR ==================== */
        .studio-mode-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 11.5px;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .studio-mode-btn.active {
            background: var(--gold);
            color: #090d16;
            font-weight: 800;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
        }
        .muscle-tile {
            background: var(--bg-card);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 9px 10px;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .muscle-tile.covered {
            border-color: rgba(16, 185, 129, 0.7);
            background: rgba(16, 185, 129, 0.08);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
        }
        .muscle-tile.missing {
            border-color: rgba(245, 158, 11, 0.4);
            background: rgba(245, 158, 11, 0.03);
        }
        .muscle-tile.warning {
            border-color: rgba(239, 68, 68, 0.7);
            background: rgba(239, 68, 68, 0.08);
            box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
        }
        .studio-ex-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.2s;
        }
        .studio-ex-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-2px);
        }
        .library-subnav {
            display: flex;
            gap: 8px;
            margin-bottom: 18px;
            background: rgba(255, 255, 255, 0.04);
            padding: 5px;
            border-radius: 12px;
            border: 1px solid var(--border);
        }
        .lib-subtab-btn {
            flex: 1;
            padding: 10px 14px;
            font-size: 13px;
            font-weight: 800;
            color: var(--text-secondary);
            background: transparent;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .lib-subtab-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.06);
        }
        .lib-subtab-btn.active {
            background: var(--gold);
            color: #000;
            box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
        }
        .lib-ex-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 12px;
        }
        @media (max-width: 640px) {
            .lib-ex-grid {
                grid-template-columns: 1fr;
            }
        }
        .lib-ex-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.2s ease;
        }
        .lib-ex-card:hover {
            border-color: var(--gold);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        }
        .ex-chip-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }
        .ex-chip-badge.equip {
            background: rgba(245, 158, 11, 0.15);
            color: var(--gold);
            border: 1px solid rgba(245, 158, 11, 0.3);
        }
        .ex-chip-badge.muscle {
            background: rgba(56, 189, 248, 0.12);
            color: var(--cyan);
            border: 1px solid rgba(56, 189, 248, 0.25);
        }
        .ex-chip-badge.mechanic {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }
        .add-to-prog-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .add-to-prog-card:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: var(--gold);
            transform: translateY(-1px);
        }
        .add-to-prog-card.active-workout-highlight {
            border-color: rgba(245, 158, 11, 0.5);
            background: rgba(245, 158, 11, 0.08);
        }
        .add-to-prog-card.active-workout-highlight:hover {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.14);
        }
        .custom-routine-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 10px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            transition: all 0.2s;
        }
        .custom-routine-item:hover {
            border-color: rgba(245, 158, 11, 0.3);
        }
        .ex-thumb-wrap {
            width: 52px;
            height: 52px;
            border-radius: 8px;
            overflow: hidden;
            background: #000;
            border: 1px solid var(--border);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ex-thumb-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .analytics-bar-fill {
            height: 100%;
            border-radius: 6px;
            transition: width 0.4s ease;
        }

        /* ==================== WORKOUT GENERATOR UI ==================== */
        .generator-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px 14px;
            margin-bottom: 16px;
            backdrop-filter: blur(10px);
        }
        .gen-step-title {
            font-size: 14px;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        .gen-step-badge {
            background: var(--gold);
            color: #090d16;
            font-size: 11px;
            font-weight: 900;
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* ==================== AI HYBRID BLUEPRINT & DOCTRINE ARCHITECT ==================== */
        /* ==================== AI HYBRID BLUEPRINT & DOCTRINE ARCHITECT ==================== */
        .ai-hybrid-hero-banner {
            background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
            border: 1px solid rgba(168, 85, 247, 0.35);
            border-radius: var(--radius-md, 10px);
            padding: 8px 12px;
            margin-bottom: 10px;
            box-shadow: 0 4px 16px rgba(147, 51, 234, 0.12);
            position: relative;
            overflow: hidden;
        }
        .ai-hybrid-hero-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(to bottom, #c084fc, var(--gold));
        }
        .ai-hero-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            gap: 6px;
        }
        .ai-hero-title-group {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
            flex-wrap: nowrap;
        }
        .ai-hero-tag {
            background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(245,158,11,0.25));
            color: #e9d5ff;
            border: 1px solid rgba(168,85,247,0.5);
            font-size: 9.5px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 5px;
            letter-spacing: 0.3px;
            flex-shrink: 0;
        }
        .ai-hero-doc-badge {
            font-size: 10px;
            font-weight: 800;
            color: var(--gold);
            background: rgba(245,158,11,0.12);
            padding: 2px 7px;
            border-radius: 10px;
            border: 1px solid rgba(245,158,11,0.3);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex-shrink: 1;
        }
        .ai-hero-title {
            font-size: 12px;
            font-weight: 800;
            color: #fff;
            margin: 0;
            letter-spacing: -0.2px;
            white-space: nowrap;
        }
        .ai-hero-info-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: #f1f5f9;
            font-size: 10px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 0;
            line-height: 1;
            flex-shrink: 0;
        }
        .ai-hero-info-btn:hover, .ai-hero-info-btn.active {
            background: rgba(168, 85, 247, 0.3);
            border-color: rgba(168, 85, 247, 0.7);
            color: #fff;
            transform: scale(1.08);
        }
        .ai-hero-action-btn {
            padding: 4px 10px;
            font-size: 10.5px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 0 10px rgba(245,158,11,0.25);
            white-space: nowrap;
            border-radius: 6px;
            flex-shrink: 0;
        }
        .ai-hero-stats-wrap {
            display: flex;
            gap: 6px;
            align-items: center;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            margin-top: 6px;
            padding-top: 5px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
        .ai-hero-stats-wrap:empty {
            display: none !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
        }
        .ai-hero-stats-wrap::-webkit-scrollbar {
            display: none;
        }
        .ai-hero-stats-wrap .telemetry-pill {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            gap: 4px;
            padding: 2px 7px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 6px;
            font-size: 10.5px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .ai-hero-stats-wrap .telemetry-pill-label {
            font-size: 9px;
            color: var(--text-secondary);
            font-weight: 700;
        }
        .ai-hero-stats-wrap .telemetry-pill-val {
            font-size: 10.5px;
            font-weight: 800;
        }
        .ai-hero-info-drawer {
            margin-top: 6px;
            padding: 8px 10px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(168, 85, 247, 0.25);
            border-radius: 6px;
            font-size: 11.5px;
            color: var(--text-secondary);
            line-height: 1.4;
            animation: fadeInSlide 0.2s ease;
        }
        @keyframes fadeInSlide {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @media (max-width: 768px) {
            .ai-hybrid-hero-banner {
                padding: 6px 10px;
                margin-bottom: 6px;
            }
            .ai-hero-title {
                display: none;
            }
            .ai-hero-stats-wrap {
                margin-top: 4px;
                padding-top: 4px;
                gap: 4px;
            }
            .ai-hero-stats-wrap .telemetry-pill {
                padding: 2px 6px;
                font-size: 9.5px;
            }
            .ai-hero-action-btn {
                padding: 3px 8px;
                font-size: 10px;
            }
        }
        .doctrine-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 10px;
            margin: 12px 0;
        }
        .doctrine-card {
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 12px 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            gap: 5px;
            position: relative;
        }
        .doctrine-card:hover {
            border-color: rgba(168, 85, 247, 0.5);
            background: rgba(30, 27, 75, 0.5);
            transform: translateY(-1px);
        }
        .doctrine-card.selected {
            border-color: var(--gold);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(168, 85, 247, 0.16));
            box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
        }
        .doctrine-card.ai-recommended {
            border-color: rgba(168, 85, 247, 0.75);
        }
        .doctrine-ai-badge {
            display: inline-block;
            background: linear-gradient(135deg, #9333ea, #f59e0b);
            color: #fff;
            font-size: 9px;
            font-weight: 900;
            padding: 2px 7px;
            border-radius: 6px;
            letter-spacing: 0.5px;
            align-self: flex-start;
        }
        .telemetry-pill {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 6px 10px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .telemetry-pill-label {
            font-size: 10px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
        }
        .telemetry-pill-val {
            font-size: 13.5px;
            font-weight: 900;
            color: #fff;
        }

        /* COLLAPSIBLE NOTIFICATION / DIRECTIVE / NEXT-WEEK BANNER (UNIFIED DESIGN) */
        .collapsible-panel {
            background: rgba(18, 24, 38, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            margin-bottom: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
            overflow: hidden;
            transition: border-color 0.2s ease;
        }
        .collapsible-panel:hover {
            border-color: rgba(245, 158, 11, 0.35);
        }
        .collapsible-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            cursor: pointer;
            user-select: none;
            background: rgba(255, 255, 255, 0.02);
            transition: background 0.15s ease;
        }
        .collapsible-panel-header:active {
            background: rgba(255, 255, 255, 0.06);
        }
        .collapsible-panel-title {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .collapsible-panel-title .icon {
            font-size: 16px;
            line-height: 1;
            flex-shrink: 0;
        }
        .collapsible-panel-title .text {
            font-size: 12px;
            font-weight: 800;
            color: #fff;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .collapsible-panel-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .collapsible-panel-badge {
            font-size: 10px;
            font-weight: 800;
            color: var(--gold);
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 6px;
            padding: 2px 7px;
            letter-spacing: 0.3px;
        }
        .collapsible-panel-arrow {
            font-size: 11px;
            color: var(--text-muted);
            transition: transform 0.2s ease;
            display: inline-block;
        }
        .collapsible-panel.open .collapsible-panel-arrow {
            transform: rotate(180deg);
        }
        .collapsible-panel-body {
            display: none;
            padding: 12px 14px 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(0, 0, 0, 0.2);
            animation: fadeInPanel 0.2s ease;
        }
        .collapsible-panel.open .collapsible-panel-body {
            display: block;
        }
        @keyframes fadeInPanel {
            from { opacity: 0; transform: translateY(-3px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ==================== MOBILE COMPACT GENERATOR PICKER BARS & ACCORDIONS ==================== */
        .gen-mobile-picker-bar {
            display: none;
            align-items: center;
            justify-content: space-between;
            background: rgba(18, 24, 38, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            padding: 9px 12px;
            margin-bottom: 8px;
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
        }
        .gen-mobile-picker-bar:hover {
            border-color: rgba(245, 158, 11, 0.5);
            background: rgba(24, 32, 50, 0.95);
        }
        .picker-label-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
        }
        .picker-step-title {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.4px;
            white-space: nowrap;
        }
        .picker-selected-val {
            font-size: 12.5px;
            font-weight: 800;
            color: var(--gold);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .picker-arrow {
            font-size: 11px;
            color: var(--text-secondary);
            transition: transform 0.25s ease;
            margin-left: 8px;
            flex-shrink: 0;
        }
        .picker-arrow.arrow-up {
            transform: rotate(180deg);
            color: var(--gold);
        }

        @media (max-width: 768px) {
            .gen-mobile-picker-bar {
                display: flex;
            }
            .desktop-only-title {
                display: none !important;
            }
            .gen-collapsible-section {
                display: none;
                margin-bottom: 10px;
                padding: 8px 10px;
                background: rgba(10, 14, 24, 0.7);
                border: 1px solid rgba(255, 255, 255, 0.08);
                border-radius: 10px;
                animation: fadeInGenSection 0.2s ease;
            }
            .gen-collapsible-section.mobile-open {
                display: block;
            }
            .split-grid {
                margin-bottom: 0 !important;
            }
            .equip-chips-wrap {
                margin-bottom: 8px !important;
            }
            .equip-quick-actions {
                margin-bottom: 0 !important;
            }
            .param-grid {
                margin-bottom: 0 !important;
            }
        }

        @keyframes fadeInGenSection {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* SPLIT SELECTION LIST (MODERN COMPACT ROWS) */
        .split-grid {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 14px;
        }
        .split-card {
            background: rgba(18, 24, 38, 0.65);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 9px 12px;
            cursor: pointer;
            transition: all 0.18s ease;
            text-align: left;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-height: 38px;
        }
        .split-card:hover {
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.04);
        }
        .split-card.selected {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.12);
            box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
        }
        .split-card-content {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1;
        }
        .split-icon {
            font-size: 16px;
            line-height: 1;
            margin-bottom: 0;
            flex-shrink: 0;
        }
        .split-name {
            font-size: 13px;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .split-radio {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1.5px solid rgba(255, 255, 255, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: transparent;
            flex-shrink: 0;
            transition: all 0.18s ease;
        }
        .split-card.selected .split-radio {
            border-color: var(--gold);
            background: var(--gold);
            color: #090d16;
            font-weight: 900;
        }

        /* EQUIPMENT CHIPS (MULTI-SELECT - UNIFIED GOLD/SLATE ACCENT) */
        .equip-chips-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        .equip-chip {
            background: rgba(18, 24, 38, 0.65);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 7px 12px;
            font-size: 12px;
            font-weight: 700;
            color: #cbd5e1;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
            user-select: none;
        }
        .equip-chip:hover {
            border-color: rgba(245, 158, 11, 0.4);
            color: #fff;
        }
        .equip-chip.selected {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.14);
            color: #fff;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
        }
        .equip-quick-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .btn-quick-equip {
            background: transparent;
            border: 1px dashed var(--border);
            color: var(--text-secondary);
            font-size: 11px;
            padding: 4px 10px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-quick-equip:hover {
            border-color: var(--gold);
            color: var(--gold);
        }

        /* PARAMETERS ROW */
        .param-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .param-group label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-bottom: 6px;
            letter-spacing: 0.5px;
        }
        .param-select {
            width: 100%;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: #fff;
            padding: 10px 12px;
            font-size: 13px;
            outline: none;
            cursor: pointer;
        }
        .param-select:focus {
            border-color: var(--gold);
        }

        /* GENERATE CTA BUTTON */
        .btn-generate-cta {
            width: auto;
            min-width: 200px;
            max-width: 280px;
            margin: 10px auto 0 auto;
            background: linear-gradient(135deg, var(--gold) 0%, #b45309 100%);
            border: none;
            color: #090d16;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.3px;
            padding: 9px 20px;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .btn-generate-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
        }
        @media (max-width: 768px) {
            .btn-generate-cta {
                width: 100%;
                max-width: 260px;
                padding: 8px 16px;
                font-size: 12.5px;
                margin-top: 8px;
            }
        }

        /* ==================== GENERATED WORKOUT VIEW ==================== */
        #generatedWorkoutOutput {
            margin-top: 24px;
        }
        .workout-header-card {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
            border: 1.5px solid var(--gold);
            border-radius: var(--radius-lg);
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px var(--gold-glow);
        }
        .workout-title-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .workout-main-title {
            font-size: 20px;
            font-weight: 900;
            color: #fff;
        }
        .workout-meta-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .meta-pill {
            font-size: 11px;
            font-weight: 800;
            padding: 4px 8px;
            border-radius: 6px;
            background: rgba(255,255,255,0.06);
            border: 1px solid var(--border);
            color: var(--gold-light);
        }

        /* WORKOUT ACTION BUTTONS */
        .workout-actions-bar {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr;
            gap: 8px;
            margin-top: 16px;
        }
        @media (max-width: 600px) {
            .workout-actions-bar {
                grid-template-columns: 1fr;
            }
        }
        .btn-start-workout {
            background: linear-gradient(135deg, var(--green-success) 0%, #047857 100%);
            border: none;
            color: #fff;
            font-size: 14px;
            font-weight: 800;
            padding: 12px;
            border-radius: 10px;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .btn-action-secondary {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: var(--text-primary);
            font-size: 12.5px;
            font-weight: 700;
            padding: 12px;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .btn-action-secondary:hover {
            border-color: var(--gold);
            color: var(--gold);
        }

        /* EXERCISE CARDS */
        .block-header {
            font-size: 14px;
            font-weight: 800;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 20px 0 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .block-header::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(to right, var(--gold), transparent);
        }
        .ex-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            margin-bottom: 12px;
            transition: all 0.2s;
        }
        .ex-card:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }
        .ex-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            flex-wrap: wrap;
            gap: 6px;
        }
        .ex-name {
            font-size: 15px;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .ex-tag-group {
            display: flex;
            gap: 6px;
        }
        .ex-badge {
            font-size: 10px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            text-transform: uppercase;
        }
        .badge-equip {
            background: rgba(56, 189, 248, 0.15);
            color: var(--cyan);
            border: 1px solid rgba(56, 189, 248, 0.3);
        }
        .badge-muscle {
            background: rgba(245, 158, 11, 0.15);
            color: var(--gold);
            border: 1px solid rgba(245, 158, 11, 0.3);
        }
        .badge-target-weight {
            background: rgba(16, 185, 129, 0.15);
            color: var(--green-success);
            border: 1px solid var(--green-success);
            font-size: 10.5px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
        }
        .ex-meta-row {
            display: flex;
            gap: 16px;
            font-size: 12px;
            color: var(--gold-light);
            font-weight: 700;
            margin-bottom: 8px;
        }
        .ex-cue-box {
            background: rgba(0, 0, 0, 0.3);
            border-left: 3px solid var(--gold);
            border-radius: 0 6px 6px 0;
            padding: 8px 10px;
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 10px;
            line-height: 1.4;
        }
        .btn-swap-ex {
            background: transparent;
            border: 1px dashed var(--border);
            color: var(--cyan);
            font-size: 11px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s;
        }
        .btn-swap-ex:hover {
            border-color: var(--cyan);
            background: rgba(56, 189, 248, 0.1);
        }

        /* ==================== EXERCISE POSITIONS & BIOMECHANICAL FLOW ==================== */
        .pos-guide-wrapper {
            background: rgba(15, 23, 42, 0.65);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            margin: 10px 0 12px 0;
            overflow: hidden;
            transition: all 0.2s ease;
        }
        .pos-guide-wrapper:hover {
            border-color: rgba(245, 158, 11, 0.25);
        }
        .pos-guide-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            cursor: pointer;
            user-select: none;
            gap: 6px;
            flex-wrap: wrap;
        }
        .pos-guide-header:hover {
            background: rgba(255, 255, 255, 0.06);
        }
        .pos-type-badge {
            font-size: 10.5px;
            font-weight: 800;
            padding: 2.5px 8px;
            border-radius: 4px;
            letter-spacing: 0.3px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .pos-badge-complex {
            background: rgba(244, 63, 94, 0.18);
            color: #fb7185;
            border: 1px solid rgba(244, 63, 94, 0.38);
            box-shadow: 0 0 10px rgba(244, 63, 94, 0.12);
        }
        .pos-badge-standard {
            background: rgba(56, 189, 248, 0.15);
            color: #38bdf8;
            border: 1px solid rgba(56, 189, 248, 0.32);
        }
        .pos-guide-hint {
            font-size: 11px;
            color: var(--text-secondary);
        }
        @media (max-width: 480px) {
            .pos-guide-hint {
                display: none;
            }
        }
        .btn-toggle-guide {
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.25);
            color: var(--gold-light);
            font-size: 10.5px;
            font-weight: 700;
            cursor: pointer;
            padding: 3px 8px;
            border-radius: 4px;
            transition: all 0.2s;
        }
        .btn-toggle-guide:hover {
            background: rgba(245, 158, 11, 0.2);
            border-color: var(--gold);
        }
        .pos-guide-content {
            padding: 10px 12px;
            display: block;
        }
        .pos-guide-content.collapsed {
            display: none;
        }
        .guide-toggle-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 10px;
            background: rgba(0, 0, 0, 0.4);
            padding: 4px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .btn-guide-tab {
            flex: 1;
            background: transparent;
            border: 1px solid transparent;
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 700;
            padding: 6px 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }
        .btn-guide-tab:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }
        .btn-guide-tab.active {
            background: rgba(245, 158, 11, 0.2);
            color: var(--gold-light);
            border-color: rgba(245, 158, 11, 0.4);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
        }
        .guide-tab-panel {
            display: none;
        }
        .guide-tab-panel.active {
            display: block;
        }
        .pos-diagram-wrap {
            margin-bottom: 10px;
            text-align: center;
            background: #060911;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 6px 6px 4px 6px;
            position: relative;
            overflow: hidden;
            transition: all 0.2s ease;
        }
        .pos-diagram-toolbar {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            padding: 2px 2px 6px 2px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            margin-bottom: 6px;
        }
        .btn-diagram-tool {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 9px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.15s ease;
            user-select: none;
        }
        .btn-diagram-tool:hover {
            background: rgba(245, 158, 11, 0.18);
            border-color: rgba(245, 158, 11, 0.5);
            color: #fbbf24;
        }
        .btn-diagram-tool.scroll-active {
            background: rgba(245, 158, 11, 0.28);
            border-color: #f59e0b;
            color: #fde68a;
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
        }
        .pos-diagram-img-box {
            position: relative;
            display: block;
            border-radius: 6px;
            overflow: hidden;
            cursor: zoom-in;
            background: #020408;
            transition: transform 0.15s ease;
        }
        .pos-diagram-img-box:hover .pos-diagram-zoom-hint {
            opacity: 1;
        }
        .pos-diagram-zoom-hint {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: rgba(0, 0, 0, 0.82);
            border: 1px solid rgba(245, 158, 11, 0.4);
            color: #fbbf24;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 7px;
            border-radius: 5px;
            backdrop-filter: blur(4px);
            opacity: 0.9;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }
        .pos-diagram-img {
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            display: block;
            margin: 0 auto;
        }
        .pos-diagram-wrap svg {
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            display: block;
            margin: 0 auto;
        }
        .pos-diagram-scroll-indicator {
            display: none;
            padding: 6px 8px;
            font-size: 11px;
            font-weight: 700;
            color: #fbbf24;
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.25);
            border-radius: 5px;
            margin-top: 6px;
            text-align: center;
        }
        /* ENLARGED SWIPEABLE HORIZONTAL SCROLL MODE */
        .pos-diagram-wrap.enlarged {
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            padding: 6px 4px;
            border-color: rgba(245, 158, 11, 0.45);
            box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.6);
        }
        .pos-diagram-wrap.enlarged .pos-diagram-img-box {
            min-width: 680px;
            width: 185%;
            cursor: grab;
        }
        .pos-diagram-wrap.enlarged .pos-diagram-img-box:active {
            cursor: grabbing;
        }
        .pos-diagram-wrap.enlarged .pos-diagram-img {
            max-width: none;
            width: 100%;
        }
        .pos-diagram-wrap.enlarged .pos-diagram-scroll-indicator {
            display: block;
            position: sticky;
            left: 0;
            right: 0;
            width: 100%;
        }

        /* GİZLENEBİLİR FORM VE KAS BİLGİLENDİRME PANELİ */
        .pos-extra-info-container {
            margin-top: 6px;
        }
        .btn-toggle-pos-info {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(15, 23, 42, 0.75);
            border: 1px dashed rgba(245, 158, 11, 0.35);
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 700;
            padding: 6px 10px;
            border-radius: 7px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .btn-toggle-pos-info:hover, .btn-toggle-pos-info:active {
            background: rgba(245, 158, 11, 0.12);
            border-color: var(--gold);
            color: #fff;
        }
        .pos-info-arrow {
            font-size: 10.5px;
            font-weight: 800;
            color: var(--gold);
        }

        @media (max-width: 600px) {
            .pos-guide-content {
                padding: 8px 4px;
            }
            .pos-diagram-wrap {
                padding: 4px 3px;
                border-radius: 6px;
            }
            .pos-diagram-toolbar {
                padding: 2px 2px 5px 2px;
            }
            .btn-diagram-tool {
                font-size: 10px;
                padding: 3px 7px;
            }
        }

        /* FULLSCREEN HD LIGHTBOX MODAL */
        .image-lightbox-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(3, 6, 12, 0.95);
            backdrop-filter: blur(14px);
            z-index: 100000;
            align-items: center;
            justify-content: center;
            padding: 10px;
            box-sizing: border-box;
        }
        .image-lightbox-modal.active {
            display: flex;
            animation: fadeInLightbox 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes fadeInLightbox {
            from { opacity: 0; transform: scale(0.97); }
            to { opacity: 1; transform: scale(1); }
        }
        .lightbox-content-box {
            background: #090e1a;
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: 14px;
            width: 100%;
            max-width: 1150px;
            max-height: 94vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.15);
        }
        .lightbox-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            background: rgba(15, 23, 42, 0.95);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            gap: 10px;
        }
        .lightbox-title-area {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow: hidden;
        }
        .lightbox-badge {
            font-size: 9.5px;
            font-weight: 800;
            letter-spacing: 0.5px;
            padding: 3px 7px;
            border-radius: 5px;
            background: rgba(245, 158, 11, 0.16);
            color: #fbbf24;
            border: 1px solid rgba(245, 158, 11, 0.35);
            white-space: nowrap;
        }
        .lightbox-title {
            margin: 0;
            font-size: 13.5px;
            font-weight: 700;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .lightbox-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .btn-lightbox-action {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: #f1f5f9;
            font-size: 11px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 7px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.15s ease;
        }
        .btn-lightbox-action:hover, .btn-lightbox-action:active {
            background: rgba(245, 158, 11, 0.22);
            border-color: rgba(245, 158, 11, 0.6);
            color: #fbbf24;
        }
        .btn-lightbox-close {
            background: rgba(239, 68, 68, 0.18);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #fca5a5;
            font-size: 14px;
            font-weight: 800;
            width: 32px;
            height: 32px;
            border-radius: 7px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }
        .btn-lightbox-close:hover {
            background: rgba(239, 68, 68, 0.45);
            color: #fff;
        }
        .lightbox-body {
            position: relative;
            flex: 1;
            overflow: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #020408;
            padding: 10px;
            touch-action: pan-x pan-y pinch-zoom;
            -webkit-overflow-scrolling: touch;
        }
        .lightbox-img {
            max-width: 100%;
            max-height: 74vh;
            object-fit: contain;
            border-radius: 6px;
            transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.2s ease;
            cursor: zoom-in;
            user-select: none;
            -webkit-user-drag: none;
        }
        .lightbox-img.zoomed {
            max-width: none;
            max-height: none;
            width: 180%;
            min-width: 700px;
            cursor: zoom-out;
        }
        .lightbox-footer {
            padding: 8px 14px;
            background: rgba(10, 15, 26, 0.96);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 11px;
            color: #94a3b8;
            text-align: center;
        }
        .pos-steps-grid {
            display: grid;
            gap: 8px;
            grid-template-columns: 1fr;
        }
        @media (min-width: 680px) {
            .pos-steps-grid.cols-3 {
                grid-template-columns: repeat(3, 1fr);
            }
            .pos-steps-grid.cols-4 {
                grid-template-columns: repeat(4, 1fr);
            }
            .pos-steps-grid.cols-5 {
                grid-template-columns: repeat(5, 1fr);
            }
        }
        .pos-step-card {
            background: rgba(0, 0, 0, 0.28);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .pos-step-header {
            font-size: 10.5px;
            font-weight: 800;
            padding: 3px 7px;
            border-radius: 4px;
            border-width: 1px;
            border-style: solid;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            width: fit-content;
        }
        .pos-step-desc {
            font-size: 11.5px;
            color: #cbd5e1;
            line-height: 1.4;
        }

        /* ==================== WEEKLY SCHEDULE & PLANNER (STREAMLINED) ==================== */
        .weekly-planner-section {
            background: rgba(18, 24, 38, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 12px 14px;
            margin-bottom: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
        }
        .planner-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            gap: 8px;
        }
        .planner-title-wrap {
            display: flex;
            align-items: center;
            gap: 7px;
        }
        .planner-title {
            font-size: 13px;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.2px;
        }
        /* MINI COMPACT WEEK SWITCHER */
        .mini-week-segmented {
            display: inline-flex;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 2px;
            gap: 2px;
        }
        .mini-week-btn {
            background: transparent;
            border: none;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 9px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.18s ease;
            white-space: nowrap;
        }
        .mini-week-btn.active {
            background: var(--gold);
            color: #090d16;
            font-weight: 900;
            box-shadow: 0 1px 6px rgba(245, 158, 11, 0.3);
        }

        /* 7-DAY CALENDAR STRIP: PERFECT MOBILE 7-COLUMN GRID (NO SCROLL REQUIRED) */
        .weekly-strip {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 8px;
        }
        .weekly-day-pill {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 8px;
            padding: 7px 2px 6px 2px;
            text-align: center;
            cursor: pointer;
            transition: all 0.15s ease;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            min-width: 0;
            user-select: none;
        }
        .weekly-day-pill:hover {
            background: rgba(245, 158, 11, 0.08);
            border-color: rgba(245, 158, 11, 0.3);
        }
        .weekly-day-pill.active-today {
            background: rgba(245, 158, 11, 0.14);
            border: 1.5px solid var(--gold);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
        }
        .weekly-day-pill.active-today::before {
            content: '';
            position: absolute;
            top: 2px;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--gold);
        }
        .weekly-day-name {
            font-size: 10px;
            font-weight: 800;
            color: #e2e8f0;
            text-transform: uppercase;
            letter-spacing: 0.2px;
        }
        .weekly-day-icon {
            font-size: 14px;
            line-height: 1.1;
            margin: 1px 0;
        }
        .weekly-day-status {
            font-size: 9px;
            font-weight: 700;
            color: #94a3b8;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            line-height: 1.1;
        }
        .weekly-day-pill.active-today .weekly-day-status {
            color: var(--gold);
        }
        .weekly-day-time-tag {
            font-size: 8.5px;
            font-weight: 800;
            color: var(--cyan);
            background: rgba(56, 189, 248, 0.12);
            border-radius: 4px;
            padding: 1px 3px;
            display: inline-flex;
            align-items: center;
            gap: 2px;
            margin-top: 1px;
            line-height: 1.1;
        }
        .weekly-day-sync-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #10b981;
            display: inline-block;
            box-shadow: 0 0 4px #10b981;
        }
        .calendar-live-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 6px 10px;
            margin-bottom: 8px;
            gap: 8px;
            flex-wrap: wrap;
        }
        .calendar-live-info {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11.5px;
            color: #cbd5e1;
            font-weight: 700;
            min-width: 0;
        }
        .calendar-live-actions {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-shrink: 0;
        }

        /* PLANNER QUICK TEMPLATE FOOTER */
        .planner-template-bar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 6px;
            padding-top: 6px;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
        }
        .planner-template-lbl {
            font-size: 10px;
            color: #64748b;
            font-weight: 600;
        }
        .planner-template-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .planner-template-btn:hover {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.25);
        }

        /* ==================== DEDICATED CALENDAR SCREEN STYLES ==================== */
        #calendarTab .generator-card {
            padding: 12px 14px;
        }
        @media (max-width: 768px) {
            #calendarTab .generator-card {
                padding: 8px 10px;
            }
        }
        .calendar-screen-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 6px;
        }
        .calendar-screen-header .cal-header-title-box h2 {
            font-size: 15px;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            letter-spacing: -0.2px;
        }
        .calendar-screen-header .cal-header-title-box p {
            font-size: 11px;
            color: var(--text-secondary);
            margin: 2px 0 0 0;
            line-height: 1.25;
        }
        @media (max-width: 768px) {
            .calendar-screen-header {
                gap: 6px;
                margin-bottom: 4px;
            }
            .calendar-screen-header .cal-header-title-box h2 {
                font-size: 13.5px;
            }
            .calendar-screen-header .cal-header-title-box p {
                display: none;
            }
        }
        .calendar-screen-nav-bar {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-wrap: wrap;
        }
        .cal-view-pills {
            display: inline-flex;
            background: rgba(0, 0, 0, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 6px;
            padding: 2px;
            gap: 2px;
        }
        .cal-pill-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .cal-pill-btn.active {
            background: var(--gold);
            color: #000;
            box-shadow: 0 1px 6px rgba(245, 158, 11, 0.35);
        }
        .cal-nav-btn {
            font-size: 10.5px;
            padding: 3px 7px;
            line-height: 1.2;
        }
        .calendar-screen-period-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            flex-wrap: wrap;
            gap: 6px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .cal-period-title {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--gold);
            letter-spacing: -0.2px;
        }
        .cal-actions-wrap {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            align-items: center;
        }
        .cal-action-btn {
            font-size: 10.5px;
            padding: 4px 8px;
            font-weight: 700;
            line-height: 1.2;
        }
        @media (max-width: 768px) {
            .calendar-screen-period-bar {
                margin-bottom: 6px;
                padding-bottom: 5px;
                gap: 5px;
            }
            .cal-period-title {
                font-size: 12.5px;
            }
            .cal-actions-wrap {
                gap: 4px;
            }
            .cal-action-btn {
                padding: 3px 6px;
                font-size: 10px;
            }
        }
        /* WEEKLY DETAILED GRID */
        .cal-week-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
            width: 100%;
            box-sizing: border-box;
        }
        @media (max-width: 1100px) {
            .cal-week-grid {
                grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
                gap: 10px;
            }
        }
        @media (max-width: 640px) {
            .cal-week-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }
        .cal-week-card {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 10px 8px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 175px;
            min-width: 0;
            overflow: hidden;
            box-sizing: border-box;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }
        .cal-week-card:hover {
            border-color: rgba(245, 158, 11, 0.45);
            background: rgba(30, 41, 59, 0.9);
            transform: translateY(-2px);
        }
        .cal-week-card.is-today {
            border: 1.5px solid var(--gold);
            background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.95));
            box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
        }
        .cal-week-card-header {
            display: flex;
            flex-direction: column;
            gap: 5px;
            margin-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding-bottom: 6px;
        }
        .cal-week-card-top-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 4px;
        }
        .cal-week-card-day {
            font-size: 13px;
            font-weight: 900;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .cal-week-card.is-today .cal-week-card-day {
            color: var(--gold);
        }
        .cal-week-card-date {
            font-size: 11px;
            color: var(--text-secondary);
            font-weight: 700;
            white-space: nowrap;
        }
        .cal-week-card-badge-row {
            display: flex;
            align-items: center;
            width: 100%;
        }
        .cal-week-badge-pill {
            display: block;
            width: 100%;
            text-align: center;
            font-size: 10px;
            font-weight: 800;
            padding: 3px 4px;
            border-radius: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.25;
            box-sizing: border-box;
        }
        .cal-week-badge-pill.completed {
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.4);
        }
        .cal-week-badge-pill.today {
            background: var(--gold);
            color: #000;
            font-weight: 900;
        }
        .cal-week-badge-pill.uncompleted {
            background: rgba(239, 68, 68, 0.18);
            color: #fca5a5;
            border: 1px solid rgba(239, 68, 68, 0.4);
        }
        .cal-week-badge-pill.rest {
            background: rgba(255, 255, 255, 0.05);
            color: #94a3b8;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .cal-week-badge-pill.planned {
            background: rgba(245, 158, 11, 0.16);
            color: #fde68a;
            border: 1px solid rgba(245, 158, 11, 0.35);
        }
        /* MONTHLY FULL GRID */
        .cal-month-table {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .cal-month-header-row {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            text-align: center;
            font-size: 11px;
            font-weight: 900;
            color: var(--text-secondary);
            text-transform: uppercase;
            padding-bottom: 4px;
        }
        .cal-month-days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }
        .cal-month-cell {
            background: rgba(15, 23, 42, 0.65);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            min-height: 85px;
            padding: 6px;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            transition: all 0.15s ease;
            position: relative;
        }
        .cal-month-cell:hover {
            border-color: rgba(245, 158, 11, 0.45);
            background: rgba(30, 41, 59, 0.9);
        }
        .cal-month-cell.is-other-month {
            opacity: 0.3;
        }
        .cal-month-cell.is-today {
            border: 1.5px solid var(--gold);
            background: rgba(245, 158, 11, 0.08);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
        }
        .cal-month-cell-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
            font-weight: 800;
            color: #cbd5e1;
            margin-bottom: 4px;
        }
        .cal-month-cell.is-today .cal-month-cell-header {
            color: var(--gold);
        }
        .cal-tag-pill {
            font-size: 9.5px;
            font-weight: 800;
            padding: 2px 4px;
            border-radius: 4px;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.2;
            display: block;
        }
        .cal-tag-pill.completed {
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.35);
        }
        .cal-tag-pill.scheduled,
        .cal-tag-pill.planned {
            background: rgba(56, 189, 248, 0.18);
            color: #7dd3fc;
            border: 1px solid rgba(56, 189, 248, 0.35);
        }
        .cal-tag-pill.uncompleted {
            background: rgba(239, 68, 68, 0.15);
            color: #fca5a5;
            border: 1px solid rgba(239, 68, 68, 0.35);
        }
        .cal-tag-pill.rest {
            background: rgba(255, 255, 255, 0.03);
            color: #64748b;
        }

        /* ==================== TODAY WORKOUT / REST STATUS BARS ==================== */
        .today-rest-bar {
            background: rgba(18, 24, 38, 0.65);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 10px 14px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        .today-rest-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .today-rest-title {
            font-size: 12.5px;
            font-weight: 700;
            color: #f1f5f9;
        }
        .today-rest-badge {
            font-size: 10px;
            font-weight: 800;
            color: #94a3b8;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2px 7px;
            border-radius: 5px;
        }

        .today-workout-hero {
            background: rgba(18, 24, 38, 0.8);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: 14px;
            padding: 12px 14px;
            margin-bottom: 12px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }
        .today-workout-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }
        .today-workout-badge {
            font-size: 10px;
            font-weight: 900;
            color: var(--gold);
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 5px;
            padding: 2px 7px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        .today-workout-title {
            font-size: 14.5px;
            font-weight: 800;
            color: #fff;
            margin: 0 0 10px 0;
            line-height: 1.25;
        }
        .today-workout-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }
            align-items: center;
        }

        /* ==================== LIVE WORKOUT TRACKER ==================== */
        .live-tracker-bar {
            position: sticky;
            top: 10px;
            z-index: 100;
            background: rgba(15, 23, 42, 0.95);
            border: 1.5px solid var(--gold);
            border-radius: var(--radius-md);
            padding: 10px 14px;
            margin-bottom: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 15px var(--gold-glow);
            backdrop-filter: blur(12px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .tracker-timer-box {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .tracker-timer-label {
            font-size: 10px;
            font-weight: 800;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .timer-display-workout {
            font-family: monospace;
            font-size: 24px;
            font-weight: 900;
            color: var(--cyan);
            letter-spacing: 1px;
            line-height: 1;
        }
        .timer-display {
            font-family: monospace;
            font-size: 24px;
            font-weight: 900;
            color: var(--gold);
            letter-spacing: 1px;
            line-height: 1;
        }
        .timer-controls {
            display: flex;
            gap: 4px;
            align-items: center;
            flex-wrap: wrap;
        }
        .btn-timer {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            padding: 5px 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-timer:hover {
            border-color: var(--gold);
        }
        .btn-timer-sub {
            background: rgba(255,255,255,0.06);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            font-size: 10.5px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 2px;
            width: fit-content;
            transition: all 0.2s;
        }
        .btn-timer-sub:hover {
            border-color: var(--cyan);
            color: var(--cyan);
        }

        /* ==================== WORKOUT STICKY HUD (GİZLENEBİLİR & SABİT PENCERE) ==================== */
        .workout-sticky-hud {
            position: sticky;
            top: 6px;
            z-index: 120;
            background: rgba(11, 17, 32, 0.94);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            padding: 8px 12px;
            margin-bottom: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.65), 0 0 15px rgba(245, 158, 11, 0.12);
            backdrop-filter: blur(14px);
            transition: all 0.25s ease-in-out;
        }
        .workout-sticky-hud.collapsed {
            padding: 6px 10px;
            background: rgba(11, 17, 32, 0.98);
            border-color: rgba(245, 158, 11, 0.35);
        }
        .workout-sticky-hud.collapsed .hud-collapsible-part {
            display: none !important;
        }
        .hud-main-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .hud-timer-col {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 80px;
        }
        .hud-label {
            font-size: 9.5px;
            font-weight: 800;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .hud-time-val {
            font-family: monospace;
            font-size: 20px;
            font-weight: 900;
            color: var(--cyan);
            letter-spacing: 0.8px;
            line-height: 1.1;
        }
        .hud-rest-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: 8px;
            padding: 4px 10px;
            min-width: 140px;
        }
        .hud-rest-header {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .hud-rest-tag {
            font-size: 9px;
            padding: 1px 5px;
            border-radius: 4px;
            background: rgba(245, 158, 11, 0.2);
            color: var(--gold);
            font-weight: 800;
        }
        .hud-rest-val {
            font-family: monospace;
            font-size: 22px;
            font-weight: 900;
            color: var(--gold);
            letter-spacing: 1px;
            line-height: 1.1;
        }
        .hud-rest-btns {
            display: flex;
            gap: 3px;
            align-items: center;
            margin-top: 2px;
        }
        .btn-hud-tiny {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 6px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-hud-tiny:hover {
            border-color: var(--gold);
            color: var(--gold);
        }
        .hud-meta-col {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-hud-collapse {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 900;
            width: 30px;
            height: 30px;
            border-radius: 7px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-hud-collapse:hover {
            color: #fff;
            border-color: var(--gold);
        }
        .hud-progress-row {
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
        .hud-progress-track {
            height: 5px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 3px;
            overflow: hidden;
        }
        .hud-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--gold), var(--cyan));
            transition: width 0.3s ease;
        }
        .hud-progress-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 10.5px;
            color: var(--text-secondary);
            margin-top: 4px;
            font-weight: 600;
        }

        /* ==================== WORKOUT FLOATING BOTTOM DOCK ==================== */
        .workout-floating-dock {
            position: fixed;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 20px);
            max-width: 580px;
            z-index: 140;
            background: rgba(15, 23, 42, 0.96);
            border: 1.5px solid rgba(245, 158, 11, 0.5);
            border-radius: 14px;
            padding: 8px 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.25);
            backdrop-filter: blur(16px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            animation: dockSlideUp 0.3s ease-out;
        }
        @media (max-width: 768px) {
            .workout-floating-dock {
                bottom: calc(66px + env(safe-area-inset-bottom, 6px));
                z-index: 160;
            }
            #activeWorkoutContainer {
                padding-bottom: 95px;
            }
        }
        @keyframes dockSlideUp {
            from { transform: translate(-50%, 40px); opacity: 0; }
            to { transform: translate(-50%, 0); opacity: 1; }
        }
        .btn-dock-nav {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #fff;
            padding: 9px 13px;
            border-radius: 9px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.15s;
        }
        .btn-dock-nav.next {
            background: var(--gold);
            color: #090d16;
            border-color: var(--gold);
            box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
        }
        .btn-dock-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            box-shadow: none;
        }
        .dock-ex-title {
            text-align: center;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            flex: 1;
            min-width: 0;
            padding: 0 4px;
        }
        .dock-ex-counter {
            font-size: 9.5px;
            font-weight: 900;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .dock-ex-name {
            font-size: 13px;
            font-weight: 800;
            color: #fff;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        .btn-dock-add {
            background: rgba(56, 189, 248, 0.15);
            border: 1px solid var(--cyan);
            color: var(--cyan);
            padding: 9px 11px;
            border-radius: 9px;
            font-size: 11.5px;
            font-weight: 800;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.15s;
        }
        .btn-dock-add:hover {
            background: rgba(56, 189, 248, 0.25);
        }

        /* ==================== HERO NEXT EXERCISE & REPORT BUTTONS ==================== */
        .btn-hero-next-ex {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 15px;
            margin-top: 10px;
            border-radius: 12px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #090d16;
            font-size: 15px;
            font-weight: 900;
            border: none;
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-hero-next-ex:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(245, 158, 11, 0.65);
        }
        .btn-report-mini {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.4);
            color: #fca5a5;
            font-size: 11px;
            font-weight: 700;
            padding: 5px 9px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.15s;
        }
        .btn-report-mini:hover {
            background: rgba(239, 68, 68, 0.25);
            color: #fff;
            border-color: #ef4444;
        }
        .btn-diagram-tool.btn-report-bug {
            border-color: rgba(239, 68, 68, 0.45);
            color: #fca5a5;
            background: rgba(239, 68, 68, 0.12);
        }
        .btn-diagram-tool.btn-report-bug:hover {
            background: rgba(239, 68, 68, 0.25);
            color: #fff;
        }

        /* ==================== BUG REPORT & FINISHER MODAL STYLES ==================== */
        .bug-cat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }
        .bug-cat-chip {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            padding: 9px 10px;
            border-radius: 8px;
            color: var(--text-secondary);
            font-size: 11.5px;
            font-weight: 700;
            cursor: pointer;
            text-align: left;
            transition: all 0.15s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .bug-cat-chip.selected {
            border-color: #ef4444;
            background: rgba(239, 68, 68, 0.18);
            color: #fff;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
        }
        .finisher-preset-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px 14px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            transition: all 0.2s;
        }
        .finisher-preset-card:hover {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.04);
        }
        .finisher-badge {
            font-size: 10px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(56, 189, 248, 0.15);
            color: var(--cyan);
            display: inline-block;
            margin-top: 3px;
        }
        .bug-pool-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 10px;
        }
        .bug-pool-card.pending {
            border-left: 3px solid #f59e0b;
        }
        .bug-pool-card.processed {
            border-left: 3px solid #38bdf8;
        }
        .bug-pool-card.resolved {
            border-left: 3px solid #22c55e;
            opacity: 0.8;
        }

        /* SETS MANAGEMENT WRAP & ROWS */
        .sets-management-wrap {
            background: #090d16;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 8px 10px;
            margin-top: 10px;
        }
        .sets-header-row {
            display: grid;
            grid-template-columns: 42px 65px 1fr 1fr 100px;
            gap: 6px;
            font-size: 10px;
            font-weight: 800;
            color: var(--text-secondary);
            text-transform: uppercase;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            text-align: center;
        }
        .set-row {
            display: grid;
            grid-template-columns: 42px 65px 1fr 1fr 100px;
            gap: 6px;
            align-items: center;
            padding: 6px 2px;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            border-radius: 6px;
            transition: all 0.2s;
        }
        .set-row:last-child {
            border-bottom: none;
        }
        .set-row.set-completed {
            background: rgba(34, 197, 94, 0.12);
            border: 1px solid rgba(34, 197, 94, 0.35);
        }
        .set-row.set-active-target {
            border: 1px solid var(--gold);
            background: rgba(245, 158, 11, 0.08);
        }
        .set-badge {
            background: #1e293b;
            color: #fff;
            border-radius: 6px;
            padding: 4px 6px;
            font-size: 11px;
            font-weight: 800;
            text-align: center;
            display: inline-block;
        }
        .set-row.set-completed .set-badge {
            background: #16a34a;
            color: #fff;
        }
        .set-col-target {
            font-size: 11.5px;
            color: var(--text-secondary);
            text-align: center;
            font-weight: 600;
        }
        .set-col-input {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .set-input-weight, .set-input-reps {
            background: #0f172a;
            border: 1px solid var(--border);
            border-radius: 6px;
            color: #fff;
            font-weight: 800;
            font-size: 13px;
            text-align: center;
            padding: 5px 2px;
            width: 100%;
            outline: none;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }
        .set-input-weight:focus, .set-input-reps:focus {
            border-color: var(--gold);
        }
        .set-row.set-completed .set-input-weight, .set-row.set-completed .set-input-reps {
            background: rgba(34, 197, 94, 0.08);
            border-color: rgba(34, 197, 94, 0.3);
            color: #86efac;
        }
        .btn-set-status {
            width: 100%;
            padding: 6px 4px;
            font-size: 11px;
            font-weight: 800;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        .btn-set-status.start {
            background: var(--gold);
            color: #090d16;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }
        .btn-set-status.start:hover {
            background: #fbbf24;
            transform: translateY(-1px);
        }
        .btn-set-status.done {
            background: #16a34a;
            color: #fff;
            box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
        }
        .btn-set-status.pending {
            background: rgba(255,255,255,0.06);
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }
        .sets-footer-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
            padding-top: 6px;
            border-top: 1px dashed rgba(255,255,255,0.08);
        }
        .btn-set-mini {
            background: transparent;
            border: 1px dashed var(--border);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-set-mini:hover {
            border-color: var(--cyan);
            color: var(--cyan);
        }

        /* WAKE LOCK PILL */
        .wake-lock-pill {
            background: rgba(34, 197, 94, 0.15);
            border: 1px solid rgba(34, 197, 94, 0.4);
            color: #86efac;
            font-size: 10px;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }
        .wake-lock-pill:hover {
            border-color: #86efac;
        }
        .wake-lock-pill.disabled {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.15);
            color: var(--text-secondary);
        }

        /* VIEW MODE TOGGLE GROUP */
        .view-mode-toggle-group {
            display: inline-flex;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 2px;
            gap: 2px;
        }
        .btn-mode-toggle {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-mode-toggle.active {
            background: var(--gold);
            color: #090d16;
            font-weight: 900;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }

        /* LIVE PROGRESS BAR */
        .live-progress-container {
            width: 100%;
            margin-top: 8px;
            padding-top: 6px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }
        .live-progress-track {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        .live-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--gold), var(--cyan));
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        /* STEPPER CONTROLS */
        .stepper-wrap {
            display: flex;
            align-items: center;
            gap: 2px;
            width: 100%;
        }
        .stepper-btn {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #fff;
            font-size: 11px;
            font-weight: 800;
            width: 20px;
            height: 28px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            transition: all 0.15s;
            flex-shrink: 0;
            padding: 0;
        }
        .stepper-btn:hover {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.15);
        }
        .stepper-btn:active {
            transform: scale(0.92);
        }

        /* ==================== HEVY / STRONG STYLE MOBILE WORKOUT UI ==================== */
        .hevy-workout-wrapper {
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-width: 600px;
            margin: 0 auto;
        }

        /* 1. EXERCISE NAVIGATION STEPPER */
        .hevy-exercise-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            background: rgba(15, 23, 42, 0.75);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 8px 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }
        .hevy-nav-arrow {
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s ease;
            flex-shrink: 0;
            user-select: none;
        }
        .hevy-nav-arrow:hover:not(:disabled) {
            border-color: var(--gold);
            color: var(--gold);
            background: rgba(245, 158, 11, 0.12);
        }
        .hevy-nav-arrow:disabled {
            opacity: 0.25;
            cursor: not-allowed;
        }
        .hevy-nav-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            flex: 1;
            min-width: 0;
        }
        .hevy-nav-counter {
            font-size: 11px;
            font-weight: 900;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 0.6px;
        }
        .hevy-nav-pills {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            max-width: 100%;
            overflow-x: auto;
            padding: 2px 4px;
            scrollbar-width: none;
        }
        .hevy-nav-pills::-webkit-scrollbar {
            display: none;
        }
        .hevy-pill-dot {
            min-width: 28px;
            height: 26px;
            padding: 0 6px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
        }
        .hevy-pill-dot.active {
            background: rgba(245, 158, 11, 0.22);
            border-color: var(--gold);
            color: var(--gold);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
        }
        .hevy-pill-dot.done {
            background: rgba(34, 197, 94, 0.2);
            border-color: #22c55e;
            color: #86efac;
            font-weight: 900;
        }

        /* 2. EXERCISE CARD & HEADER */
        .hevy-exercise-card {
            background: var(--bg-card);
            border: 1.5px solid var(--border);
            border-radius: 14px;
            padding: 14px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
            position: relative;
        }
        .hevy-exercise-header {
            margin-bottom: 10px;
        }
        .hevy-title-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
        }
        .hevy-exercise-title {
            font-size: 18px;
            font-weight: 900;
            color: #fff;
            margin: 0;
            line-height: 1.25;
        }
        .hevy-equip-badge {
            background: rgba(56, 189, 248, 0.12);
            border: 1px solid rgba(56, 189, 248, 0.35);
            color: var(--cyan);
            font-size: 10.5px;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 6px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .hevy-meta-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 5px;
        }
        .hevy-meta-item strong {
            color: var(--gold);
        }

        /* 3. COLLAPSIBLE FORM GUIDE */
        .hevy-form-collapsible {
            margin: 8px 0 12px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px dashed rgba(255, 255, 255, 0.14);
            overflow: hidden;
        }
        .btn-hevy-form-toggle {
            width: 100%;
            padding: 8px 12px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 11.5px;
            font-weight: 700;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-hevy-form-toggle:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }
        .hevy-form-guide-body {
            padding: 8px 10px 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        /* 4. GHOST PERFORMANCE BAR */
        .hevy-ghost-bar {
            background: rgba(56, 189, 248, 0.08);
            border: 1px dashed rgba(56, 189, 248, 0.35);
            border-radius: 8px;
            padding: 7px 10px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            font-size: 11.5px;
            color: #bae6fd;
        }
        .hevy-ghost-info {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-hevy-ghost-apply {
            background: var(--cyan);
            color: #090d16;
            border: none;
            border-radius: 5px;
            font-size: 10px;
            font-weight: 800;
            padding: 4px 8px;
            cursor: pointer;
            white-space: nowrap;
            transition: transform 0.15s;
        }
        .btn-hevy-ghost-apply:active {
            transform: scale(0.95);
        }

        /* 5. HEVY SETS TABLE */
        .hevy-sets-card {
            background: rgba(11, 17, 32, 0.85);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 12px;
        }
        .hevy-sets-table {
            display: flex;
            flex-direction: column;
        }
        .hevy-th-row {
            display: grid;
            grid-template-columns: 36px 58px 1fr 1fr 48px;
            gap: 4px;
            padding: 7px 8px;
            background: rgba(0, 0, 0, 0.4);
            border-bottom: 1px solid var(--border);
            font-size: 10px;
            font-weight: 900;
            color: var(--text-secondary);
            letter-spacing: 0.5px;
            text-align: center;
            align-items: center;
        }
        .hevy-th {
            user-select: none;
        }
        .hevy-tr-row {
            display: grid;
            grid-template-columns: 36px 58px 1fr 1fr 48px;
            gap: 4px;
            padding: 7px 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            align-items: center;
            transition: background 0.15s;
        }
        .hevy-tr-row:last-child {
            border-bottom: none;
        }
        .hevy-tr-row.active-target {
            background: rgba(245, 158, 11, 0.08);
            border-left: 3px solid var(--gold);
        }
        .hevy-tr-row.done {
            background: rgba(34, 197, 94, 0.06);
        }
        .hevy-td {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .hevy-set-pill {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
            color: #cbd5e1;
            font-size: 12px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .hevy-set-pill.target {
            border-color: var(--gold);
            color: var(--gold);
            background: rgba(245, 158, 11, 0.18);
        }
        .hevy-set-pill.done {
            background: #16a34a;
            border-color: #22c55e;
            color: #fff;
        }
        .hevy-prev-text {
            font-size: 11px;
            color: var(--text-secondary);
            font-weight: 700;
            text-align: center;
            line-height: 1.2;
        }
        .hevy-prev-text.clickable {
            cursor: pointer;
            color: #7dd3fc;
            text-decoration: underline dotted;
        }
        .hevy-prev-text.clickable:hover {
            color: var(--gold);
        }
        /* LISTBOX PICKER CELL BUTTON (NO + -) */
        .hevy-listbox-btn {
            width: 100%;
            height: 36px;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            font-size: 13.5px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.15s;
            user-select: none;
            padding: 0 4px;
        }
        .hevy-listbox-btn:hover {
            border-color: var(--gold);
            color: var(--gold);
            background: rgba(245, 158, 11, 0.08);
        }
        .hevy-listbox-btn:active {
            transform: scale(0.95);
        }
        .hevy-tr-row.active-target .hevy-listbox-btn {
            border-color: rgba(245, 158, 11, 0.5);
        }
        .hevy-tr-row.done .hevy-listbox-btn {
            color: #86efac;
            border-color: rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.06);
        }
        .listbox-btn-arrow {
            font-size: 10px;
            color: var(--gold);
            opacity: 0.8;
        }

        /* QUICK LISTBOX PICKER MODAL (BOTTOM SHEET) */
        .quick-listbox-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 10000;
            align-items: flex-end;
            justify-content: center;
            animation: fadeInListboxOverlay 0.2s ease-out;
        }
        .quick-listbox-overlay.active {
            display: flex;
        }
        @keyframes fadeInListboxOverlay {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .quick-listbox-sheet {
            width: 100%;
            max-width: 500px;
            max-height: 75vh;
            background: #0c1220;
            border: 1px solid var(--border-highlight);
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.15);
            animation: slideUpListboxSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
        }
        @keyframes slideUpListboxSheet {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        .quick-listbox-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px 14px 20px;
            border-bottom: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.02);
        }
        .quick-listbox-title {
            font-size: 16px;
            font-weight: 900;
            color: #fff;
        }
        .quick-listbox-sub {
            font-size: 11.5px;
            color: var(--text-secondary);
            margin-top: 2px;
        }
        .btn-listbox-close {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: none;
            color: #fff;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .btn-listbox-close:hover {
            background: rgba(255, 255, 255, 0.18);
        }
        .quick-listbox-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 8px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }
        .listbox-option-item {
            padding: 13px 18px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 15px;
            font-weight: 800;
            color: #e2e8f0;
            cursor: pointer;
            transition: all 0.12s;
        }
        .listbox-option-item:active {
            transform: scale(0.98);
        }
        .listbox-option-item.selected {
            background: rgba(245, 158, 11, 0.15);
            border-color: var(--gold);
            color: var(--gold);
            box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
        }
        .listbox-option-check {
            font-size: 16px;
            font-weight: 900;
            color: var(--gold);
        }
        .quick-listbox-custom-row {
            padding: 12px 16px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 8px;
            background: rgba(0, 0, 0, 0.3);
        }
        .listbox-custom-input {
            flex: 1;
            background: #090d16;
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            padding: 10px 14px;
            font-size: 14px;
            font-weight: 800;
            outline: none;
        }
        .listbox-custom-input:focus {
            border-color: var(--gold);
        }
        .btn-listbox-apply {
            background: var(--gold);
            color: #000;
            border: none;
            border-radius: 8px;
            padding: 0 18px;
            font-size: 13px;
            font-weight: 900;
            cursor: pointer;
        }
        .btn-listbox-apply:active {
            transform: scale(0.96);
        }
        .btn-hevy-check {
            width: 38px;
            height: 34px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease-in-out;
            user-select: none;
        }
        .btn-hevy-check:active {
            transform: scale(0.92);
        }
        .btn-hevy-check.target {
            border: 2px solid var(--gold);
            background: rgba(245, 158, 11, 0.18);
            color: var(--gold);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
            animation: targetPulse 1.8s infinite ease-in-out;
        }
        @keyframes targetPulse {
            0%, 100% { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 8px rgba(245, 158, 11, 0.25); }
            50% { border-color: rgba(245, 158, 11, 1); box-shadow: 0 0 16px rgba(245, 158, 11, 0.55); }
        }
        .btn-hevy-check.checked {
            background: linear-gradient(135deg, #16a34a, #15803d);
            border: 1.5px solid #22c55e;
            color: #fff;
            font-weight: 900;
            box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
        }
        .hevy-table-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.25);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }
        .btn-hevy-add-set {
            background: transparent;
            border: 1px dashed var(--gold);
            color: var(--gold);
            border-radius: 6px;
            font-size: 11px;
            font-weight: 800;
            padding: 5px 12px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-hevy-add-set:hover {
            background: rgba(245, 158, 11, 0.12);
        }
        .btn-hevy-del-set {
            background: transparent;
            border: 1px dashed rgba(239, 68, 68, 0.4);
            color: #f87171;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            padding: 5px 10px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-hevy-del-set:hover {
            background: rgba(239, 68, 68, 0.15);
        }

        /* 6. EXERCISE COMPLETION & PROGRESSION BANNER */
        .hevy-exercise-done-banner {
            background: rgba(34, 197, 94, 0.12);
            border: 1.5px solid #22c55e;
            border-radius: 12px;
            padding: 14px;
            text-align: center;
            margin: 12px 0;
            animation: fadeInScale 0.25s ease-out;
        }
        .hevy-done-title {
            font-size: 15px;
            font-weight: 900;
            color: #86efac;
        }
        .hevy-done-sub {
            font-size: 11.5px;
            color: #cbd5e1;
            margin-top: 3px;
        }
        .btn-hevy-next-cta {
            width: 100%;
            margin-top: 10px;
            padding: 12px;
            background: linear-gradient(135deg, var(--gold), #b45309);
            border: none;
            border-radius: 10px;
            color: #090d16;
            font-size: 13.5px;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
            transition: transform 0.15s;
        }
        .btn-hevy-next-cta:active {
            transform: scale(0.98);
        }
        .btn-hevy-finish-cta {
            width: 100%;
            margin-top: 10px;
            padding: 13px;
            background: linear-gradient(135deg, #10b981, #047857);
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 14px;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        }

        /* 7. MORE ACTIONS & BOTTOM NAV */
        .hevy-more-wrapper {
            margin-top: 12px;
            border-top: 1px dashed rgba(255, 255, 255, 0.08);
            padding-top: 10px;
        }
        .btn-hevy-more-toggle {
            width: 100%;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-secondary);
            font-size: 11.5px;
            font-weight: 700;
            padding: 8px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }
        .hevy-more-drawer {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            background: rgba(9, 13, 22, 0.95);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
            margin-top: 8px;
        }
        .btn-hevy-action {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
            padding: 8px;
            cursor: pointer;
            text-align: left;
            transition: all 0.15s;
        }
        .btn-hevy-action:hover {
            border-color: var(--gold);
            color: #fff;
        }
        .btn-hevy-action.danger {
            color: #f87171;
            border-color: rgba(239, 68, 68, 0.3);
        }

        /* 8. FOOTER CONTROLS */
        .hevy-footer-nav {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            margin-top: 14px;
        }
        .btn-hevy-nav {
            flex: 1;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            padding: 10px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-hevy-nav:hover:not(:disabled) {
            border-color: var(--gold);
            color: var(--gold);
        }
        .btn-hevy-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .hevy-workout-finish-bar {
            display: flex;
            gap: 8px;
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px dashed var(--border);
        }
        .btn-hevy-workout-cancel {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #fca5a5;
            font-size: 11.5px;
            font-weight: 700;
            border-radius: 8px;
            padding: 11px 14px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .btn-hevy-workout-finish {
            flex: 1;
            background: linear-gradient(135deg, var(--gold), #b45309);
            border: none;
            border-radius: 8px;
            color: #090d16;
            font-size: 13px;
            font-weight: 900;
            padding: 11px;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
        }

        /* REST TIMER PULSE EFFECT IN STICKY HUD */
        .hud-rest-col.resting {
            background: rgba(245, 158, 11, 0.22) !important;
            border: 1.5px solid var(--gold) !important;
            box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
            animation: hudRestPulse 1.8s infinite ease-in-out;
        }
        @keyframes hudRestPulse {
            0%, 100% { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
            50% { border-color: rgba(245, 158, 11, 1); box-shadow: 0 0 20px rgba(245, 158, 11, 0.65); }
        }

        /* FOCUS MODE CARDS & CONTROLS */
        .focus-workout-card {
            background: var(--bg-card);
            border: 1.5px solid var(--border);
            border-radius: 14px;
            padding: 16px;
            margin-bottom: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            position: relative;
        }
        .focus-nav-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            gap: 8px;
        }
        .btn-focus-nav {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #fff;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 11.5px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .btn-focus-nav:hover:not(:disabled) {
            border-color: var(--gold);
            color: var(--gold);
        }
        .btn-focus-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        .focus-set-hero {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.95));
            border: 2px solid var(--gold);
            border-radius: 12px;
            padding: 16px;
            margin: 12px 0;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
        }
        .focus-breadcrumbs {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            padding-bottom: 4px;
            margin: 10px 0;
        }
        .focus-crumb {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 6px 12px;
            font-size: 11.5px;
            font-weight: 800;
            color: var(--text-secondary);
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s;
        }
        .focus-crumb.active {
            background: rgba(245, 158, 11, 0.18);
            border-color: var(--gold);
            color: var(--gold);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
        }
        .focus-crumb.done {
            background: rgba(34, 197, 94, 0.15);
            border-color: #22c55e;
            color: #86efac;
        }
        .history-ghost-badge {
            background: rgba(56, 189, 248, 0.1);
            border: 1px dashed rgba(56, 189, 248, 0.4);
            border-radius: 8px;
            padding: 7px 10px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            font-size: 11.5px;
            color: #bae6fd;
        }
        .btn-ghost-copy {
            background: var(--cyan);
            color: #090d16;
            border: none;
            border-radius: 5px;
            font-size: 10.5px;
            font-weight: 800;
            padding: 3px 8px;
            cursor: pointer;
            transition: transform 0.15s;
            white-space: nowrap;
        }
        .btn-ghost-copy:hover {
            transform: scale(1.05);
        }
        .focus-input-large {
            font-size: 18px !important;
            font-weight: 900 !important;
            padding: 6px 4px !important;
            height: 40px;
        }
        .focus-weight-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin: 8px 0 12px;
        }
        .weight-chip {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: #e2e8f0;
            font-size: 11px;
            font-weight: 700;
            padding: 5px 9px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .weight-chip:hover {
            border-color: var(--gold);
            color: var(--gold);
        }
        .weight-chip.selected {
            background: var(--gold);
            color: #090d16;
            font-weight: 900;
        }
        .gym-flow-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px dashed rgba(255, 255, 255, 0.08);
        }
        .btn-gym-action {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 700;
            padding: 6px 10px;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .btn-gym-action:hover {
            border-color: var(--cyan);
            color: #fff;
        }
        .btn-gym-action.warn {
            color: #f59e0b;
            border-color: rgba(245, 158, 11, 0.35);
        }
        .btn-gym-action.warn:hover {
            background: rgba(245, 158, 11, 0.15);
        }
        .btn-gym-action.danger {
            color: #f87171;
            border-color: rgba(239, 68, 68, 0.3);
        }
        .btn-gym-action.danger:hover {
            background: rgba(239, 68, 68, 0.15);
        }

        /* EXTENDED STEPPERS & PHONE UI ENHANCEMENTS */
        .stepper-extended {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .btn-step-delta {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: #fff;
            min-width: 44px;
            height: 38px;
            padding: 0 6px;
            border-radius: 8px;
            font-size: 12.5px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s;
            user-select: none;
        }
        .btn-step-delta:active {
            transform: scale(0.94);
        }
        .btn-step-delta.pos {
            color: var(--gold);
            border-color: rgba(245, 158, 11, 0.4);
        }
        .btn-step-delta.pos:hover {
            background: rgba(245, 158, 11, 0.2);
        }
        .btn-step-delta.neg {
            color: #94a3b8;
        }
        .btn-step-delta.neg:hover {
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.4);
            background: rgba(239, 68, 68, 0.1);
        }

        /* SET STEPPER CONTROL BAR */
        .set-stepper-control-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 7px 10px;
            margin: 8px 0 10px;
            flex-wrap: wrap;
            gap: 6px;
        }
        .set-control-title {
            font-size: 11px;
            font-weight: 800;
            color: var(--text-secondary);
        }
        .set-delta-buttons {
            display: flex;
            gap: 5px;
            align-items: center;
        }
        .btn-set-step-delta {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 11px;
            font-weight: 800;
            padding: 5px 9px;
            cursor: pointer;
            transition: all 0.15s;
            color: #e2e8f0;
            user-select: none;
        }
        .btn-set-step-delta:active {
            transform: scale(0.94);
        }
        .btn-set-step-delta.pos {
            color: var(--gold);
            border-color: rgba(245, 158, 11, 0.4);
            background: rgba(245, 158, 11, 0.08);
        }
        .btn-set-step-delta.pos:hover {
            background: rgba(245, 158, 11, 0.2);
        }
        .btn-set-step-delta.neg {
            color: #94a3b8;
        }
        .btn-set-step-delta.neg:hover {
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.4);
            background: rgba(239, 68, 68, 0.1);
        }

        /* WORKOUT MORE ACTIONS DRAWER & TOGGLE */
        .workout-more-actions-wrapper {
            margin-top: 14px;
            border-top: 1px dashed rgba(255, 255, 255, 0.1);
            padding-top: 10px;
        }
        .btn-workout-more-toggle {
            width: 100%;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 700;
            padding: 10px 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-workout-more-toggle:hover {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.08);
        }
        .more-toggle-icon {
            font-size: 14px;
            letter-spacing: 2px;
            font-weight: 900;
            color: var(--gold);
        }
        .workout-more-actions-drawer {
            background: rgba(9, 13, 22, 0.95);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px;
            margin-top: 8px;
        }
        .more-drawer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 8px;
        }
        .btn-drawer-action {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #cbd5e1;
            font-size: 11.5px;
            font-weight: 700;
            padding: 9px 10px;
            cursor: pointer;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.15s;
        }
        .btn-drawer-action:hover {
            border-color: var(--gold);
            color: #fff;
            background: rgba(245, 158, 11, 0.1);
        }
        .btn-drawer-action.warn {
            color: #f59e0b;
            border-color: rgba(245, 158, 11, 0.35);
        }
        .btn-drawer-action.danger {
            color: #f87171;
            border-color: rgba(239, 68, 68, 0.35);
        }
        .btn-drawer-action.danger:hover {
            background: rgba(239, 68, 68, 0.15);
        }

        .pr-celebration-banner {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(234, 179, 8, 0.06));
            border: 1.5px solid var(--gold);
            border-radius: 10px;
            padding: 12px 14px;
            margin-bottom: 14px;
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
        }
        .pr-badge-item {
            font-size: 12px;
            color: #fef08a;
            margin-top: 6px;
            line-height: 1.4;
        }

        /* LOG STATS & RICH HISTORY */
        .log-stats-bar {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 8px 10px;
            margin: 10px 0;
            text-align: center;
        }
        .log-stat-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .log-stat-label {
            font-size: 9.5px;
            color: var(--text-secondary);
            font-weight: 800;
            text-transform: uppercase;
        }
        .log-stat-val {
            font-size: 13.5px;
            font-weight: 900;
            color: var(--gold);
        }
        .muscle-tag {
            background: rgba(56, 189, 248, 0.12);
            border: 1px solid rgba(56, 189, 248, 0.3);
            color: var(--cyan);
            border-radius: 6px;
            font-size: 10.5px;
            padding: 2px 7px;
            font-weight: 700;
            display: inline-block;
        }
        .log-exercises-list {
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .log-exercise-item {
            background: rgba(0, 0, 0, 0.25);
            border-radius: 6px;
            padding: 8px 10px;
            border-left: 3px solid var(--gold);
        }
        .log-sets-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 4px;
        }
        .log-set-pill {
            background: #0f172a;
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 2px 6px;
            font-size: 11px;
            color: var(--text-secondary);
        }
        .log-set-pill.completed {
            border-color: rgba(34, 197, 94, 0.5);
            color: #86efac;
            background: rgba(34, 197, 94, 0.08);
        }
        .log-notes-box {
            font-size: 11.5px;
            color: var(--text-secondary);
            background: rgba(0,0,0,0.3);
            padding: 6px 10px;
            border-radius: 6px;
            margin-top: 8px;
            border-left: 3px solid var(--border);
        }

        /* ==================== FORMS & BUTTONS ==================== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-weight: 800;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }
        .btn-gold {
            background: linear-gradient(135deg, var(--gold) 0%, #b45309 100%);
            border: none;
            color: #090d16;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
        }
        .btn-gold:hover {
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
            transform: translateY(-1px);
        }
        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-primary);
        }
        .btn-outline:hover {
            border-color: var(--gold);
            color: var(--gold);
        }
        .btn-danger-soft {
            background: rgba(239, 68, 68, 0.14);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #fca5a5;
        }
        .btn-danger-soft:hover {
            background: rgba(239, 68, 68, 0.28);
            border-color: rgba(239, 68, 68, 0.6);
            color: #fff;
        }

        /* MODALS */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .modal-overlay.active {
            display: flex;
        }
        #exercisePickerModal {
            z-index: 1050;
        }
        #exerciseDetailModal {
            z-index: 99999 !important;
        }
        #exerciseBugReportModal {
            z-index: 100001 !important;
        }
        .modal-box {
            background: #0f172a;
            border: 1px solid var(--gold);
            border-radius: var(--radius-lg);
            padding: 24px;
            max-width: 480px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--gold-glow);
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .modal-title {
            font-size: 16px;
            font-weight: 800;
            color: #fff;
        }
        .modal-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 20px;
            cursor: pointer;
        }

        .form-group {
            margin-bottom: 14px;
        }
        .form-label {
            display: block;
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 6px;
            text-transform: uppercase;
        }
        .form-input, .form-select {
            width: 100%;
            background: #090d16;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px 12px;
            color: #fff;
            font-size: 13.5px;
            outline: none;
            box-sizing: border-box;
        }
        .form-input:focus, .form-select:focus {
            border-color: var(--gold);
        }

        /* AVATAR & THEME PICKERS */
        .avatar-picker-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }
        .avatar-choice {
            background: var(--bg-surface);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 24px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .avatar-choice.selected {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.2);
            transform: scale(1.05);
        }

        .theme-picker-grid {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .theme-pill {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 800;
            color: #fff;
            cursor: pointer;
            border: 2px solid transparent;
        }
        .theme-pill.selected {
            border-color: #fff;
            box-shadow: 0 0 10px rgba(255,255,255,0.5);
        }

        /* LOG HISTORY CARDS */
        .log-history-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 12px 14px;
            margin-bottom: 10px;
        }
        .log-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        .log-date {
            font-size: 12.5px;
            font-weight: 800;
            color: #fff;
        }
        .btn-delete-log {
            background: transparent;
            border: none;
            color: #ef4444;
            font-size: 14px;
            cursor: pointer;
            padding: 2px 6px;
        }

        /* ADMIN CARDS */
        .admin-user-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px 12px;
            margin-bottom: 8px;
        }

        /* UNIQUE HEALTH & BODY COMPOSITION STYLES */
        .scale-pdf-dropzone {
            background: rgba(15, 23, 42, 0.7);
            border: 2px dashed rgba(245, 158, 11, 0.45);
            border-radius: 12px;
            padding: 16px 14px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            margin-bottom: 12px;
            position: relative;
            display: block;
            overflow: hidden;
            -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2);
        }
        .scale-pdf-dropzone:hover, .scale-pdf-dropzone.dragover {
            background: rgba(245, 158, 11, 0.08);
            border-color: var(--gold);
            transform: translateY(-1px);
        }
        .scale-segmental-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
            gap: 8px;
            margin-top: 8px;
        }
        .scale-segmental-card {
            background: rgba(0, 0, 0, 0.28);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px;
            font-size: 11.5px;
        }
        .scale-comp-bar-wrap {
            background: rgba(255, 255, 255, 0.07);
            border-radius: 6px;
            height: 7px;
            overflow: hidden;
            margin-top: 5px;
            position: relative;
        }
        .scale-comp-bar-fill {
            height: 100%;
            border-radius: 6px;
            transition: width 0.4s ease;
        }

/* ==================== AI STUDIO LUXURY COMPONENTS (TIMER & STATS) ==================== */
            width: 5px;
            height: 5px;
            background: var(--green);
            border-radius: 50%;
            animation: pulse-ring 1.5s infinite;
        }
        @keyframes pulse-ring {
            0% { transform: scale(0.9); opacity: 0.8; }
            50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--green); }
            100% { transform: scale(0.9); opacity: 0.8; }
        }

        /* WORKOUT STATS BAR (HEVY / APPLE FITNESS SUMMARY - COMPACT) */
        .session-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-bottom: 8px;
        }
        .stat-metric-card {
            background: rgba(16, 24, 39, 0.5);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-sm);
            padding: 5px 8px;
            backdrop-filter: blur(14px);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .stat-metric-label {
            font-size: 8px;
            font-weight: 700;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .stat-metric-value {
            font-family: var(--font-display);
            font-size: 11px;
            font-weight: 800;
            color: #fff;
            font-variant-numeric: tabular-nums;
        }
        .stat-metric-value span {
            font-size: 8.5px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-left: 2px;
        }

        /* 2. DAY NAVIGATOR (HORIZONTAL PILLS WITH STATUS - COMPACT) */
        .day-nav {
            display: flex;
            gap: 5px;
            overflow-x: auto;
            padding-bottom: 3px;
            margin-bottom: 8px;
            scrollbar-width: none;
        }
        .day-nav::-webkit-scrollbar { display: none; }
        .day-pill {
            flex: 1;
            min-width: 46px;
            background: rgba(16, 24, 39, 0.6);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-sm);
            padding: 4px 3px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            backdrop-filter: blur(12px);
        }
        .day-pill:hover {
            border-color: rgba(255, 255, 255, 0.18);
            transform: translateY(-1px);
        }
        .day-pill.active {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
            border-color: var(--gold);
            box-shadow: 0 2px 10px var(--gold-glow);
        }
        .day-pill.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            right: 20%;
            height: 1.5px;
            background: var(--gold);
            border-radius: 4px;
            box-shadow: 0 0 6px var(--gold);
        }
        .day-pill .day-title {
            font-family: var(--font-display);
            font-size: 9.5px;
            font-weight: 800;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
            line-height: 1.1;
        }
        .day-pill.active .day-title {
            color: var(--gold-light);
        }
        .day-pill .day-sub {
            font-size: 7.5px;
            color: var(--text-tertiary);
            font-weight: 500;
            white-space: nowrap;
            line-height: 1;
        }
        .day-pill.active .day-sub {
            color: #ffffff;
            font-weight: 700;
        }

        /* 3. LUXURY REST TIMER WITH CIRCULAR PROGRESS BAR */
        .rest-timer-luxury {
            background: linear-gradient(145deg, rgba(19, 29, 48, 0.85) 0%, rgba(10, 16, 28, 0.92) 100%);
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: var(--radius-lg);
            padding: 8px 12px;
            margin-bottom: 12px;
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
            position: relative;
            overflow: hidden;
        }
        .rest-timer-luxury::before {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .timer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }
        .timer-badge-tag {
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--gold);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .timer-presets {
            display: flex;
            gap: 4px;
        }
        .btn-preset {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-glass);
            border-radius: 5px;
            color: var(--text-secondary);
            font-size: 9px;
            font-weight: 700;
            padding: 2px 5px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-preset:hover, .btn-preset.active {
            background: rgba(245, 158, 11, 0.2);
            color: var(--gold-light);
            border-color: rgba(245, 158, 11, 0.4);
        }
        
        .timer-main-body {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        /* CIRCULAR PROGRESS RING SVG */
        .ring-container {
            position: relative;
            width: 46px;
            height: 46px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ring-svg {
            transform: rotate(-90deg);
            width: 100%;
            height: 100%;
        }
        .ring-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.08);
            stroke-width: 6;
        }
        .ring-progress {
            fill: none;
            stroke: url(#goldGrad);
            stroke-width: 6;
            stroke-linecap: round;
            stroke-dasharray: 226; /* 2 * PI * 36 */
            stroke-dashoffset: 0;
            transition: stroke-dashoffset 0.8s ease, stroke 0.3s;
            filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
        }
        .ring-inner-content {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        .ring-time-val {
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: -0.5px;
        }
        .ring-sub-label {
            font-size: 6.5px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--gold);
            margin-top: 1px;
        }

        .timer-control-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .timer-status-row {
            display: none;
        }

        .timer-action-buttons {
            display: grid;
            grid-template-columns: auto auto 1fr auto;
            gap: 4px;
        }
        .btn-adjust {
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid var(--border-glass);
            border-radius: 6px;
            color: #ffffff;
            font-size: 10px;
            font-weight: 800;
            padding: 4px 6px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 26px;
            height: 26px;
        }
        .btn-adjust:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .btn-adjust:active {
            transform: scale(0.96);
