        /* ═══════════════════════════════════════════════════════════════
           DASHBOARD — "Precision Command Center"
           Premium SaaS · Linear / Vercel / Stripe aesthetic
           Dark-default · Light via [data-theme="light"]
           ═══════════════════════════════════════════════════════════════ */

        /* ─── EXTENDED DESIGN TOKENS ─────────────────────────────────── */
        :root {
            --bg-surface:          rgba(12, 12, 16, 0.80);
            --bg-surface-hover:    rgba(20, 20, 26, 0.92);
            --bg-elevated:         rgba(22, 22, 30, 0.82);
            --bg-inset:            rgba(0, 0, 0, 0.28);
            --border-subtle:       rgba(255, 255, 255, 0.04);
            --border-default:      rgba(255, 255, 255, 0.07);
            --border-interactive:  rgba(255, 255, 255, 0.11);
            --border-focus:        rgba(var(--primary-rgb), 0.45);
            --shadow-sm:           0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-subtle);
            --shadow-md:           0 4px 16px rgba(0, 0, 0, 0.30), 0 0 0 1px var(--border-subtle);
            --shadow-lg:           0 10px 32px rgba(0, 0, 0, 0.40), 0 0 0 1px var(--border-subtle);
            --shadow-glow-primary: 0 0 24px rgba(var(--primary-rgb), 0.10);
            --ease-out:            cubic-bezier(0.16, 1, 0.3, 1);
            --ease-spring:         cubic-bezier(0.34, 1.56, 0.64, 1);
            --dur-fast:            140ms;
            --dur-normal:          240ms;
            --dur-slow:            380ms;
        }
        [data-theme="light"] {
            --bg-surface:          rgba(255, 255, 255, 0.92);
            --bg-surface-hover:    rgba(255, 255, 255, 0.98);
            --bg-elevated:         rgba(248, 250, 252, 0.96);
            --bg-inset:            rgba(0, 0, 0, 0.04);
            --border-subtle:       rgba(0, 0, 0, 0.05);
            --border-default:      rgba(0, 0, 0, 0.08);
            --border-interactive:  rgba(0, 0, 0, 0.13);
            --shadow-sm:           0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border-subtle);
            --shadow-md:           0 4px 16px rgba(0, 0, 0, 0.07), 0 0 0 1px var(--border-subtle);
            --shadow-lg:           0 10px 32px rgba(0, 0, 0, 0.09), 0 0 0 1px var(--border-subtle);
            --shadow-glow-primary: 0 0 24px rgba(var(--primary-rgb), 0.06);
        }


        /* ─── DASHBOARD GRID LAYOUT ──────────────────────────────────── */
        .main { position: relative; z-index: 1; }

        .dashboard-grid {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .dashboard-item {
            animation: fadeInUp var(--dur-slow) var(--ease-out) both;
        }
        .dashboard-item:nth-child(1) { animation-delay: 0ms; }
        .dashboard-item:nth-child(2) { animation-delay: 55ms; }
        .dashboard-item:nth-child(3) { animation-delay: 110ms; }
        .dashboard-item:nth-child(4) { animation-delay: 165ms; }
        .dashboard-item:nth-child(5) { animation-delay: 220ms; }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Edit mode */
        .dashboard-grid.edit-mode {
            outline: 2px dashed rgba(var(--primary-rgb), 0.25);
            padding: 1rem;
            border-radius: 18px;
        }
        .dashboard-grid.edit-mode .dashboard-item {
            cursor: grab;
            border: 1px dashed rgba(var(--primary-rgb), 0.35);
            padding: 0.5rem;
            border-radius: 16px;
            position: relative;
            transition: background var(--dur-fast) var(--ease-out);
        }
        .dashboard-grid.edit-mode .dashboard-item::before {
            content: '\2261';
            position: absolute;
            top: 8px;
            left: 10px;
            opacity: 0.3;
            font-size: 1rem;
            pointer-events: none;
            color: var(--text-muted);
            z-index: 2;
        }
        .dashboard-grid.edit-mode .dashboard-item.dragging {
            opacity: 0.45;
            background: rgba(var(--primary-rgb), 0.06);
            box-shadow: var(--shadow-lg);
        }


        /* ─── SHARED CARD FOUNDATION ─────────────────────────────────── */
        .kpi-card,
        .chart-card,
        .activities-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-default);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
            transition:
                background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
        }
        .kpi-card:hover,
        .chart-card:hover,
        .activities-card:hover {
            background: var(--bg-surface-hover);
            border-color: var(--border-interactive);
            box-shadow: var(--shadow-md);
        }


        /* ─── KPI GRID ───────────────────────────────────────────────── */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
            margin-bottom: 0;
        }
        .kpi-grid.edit-mode .kpi-card { cursor: grab; }
        .kpi-grid.edit-mode .kpi-card.dragging {
            opacity: 0.45;
            background: rgba(var(--primary-rgb), 0.08);
        }


        /* ─── RING CARDS (Woche / Monat) ─────────────────────────────── */
        .kpi-card--ring {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 16px;
        }

        .kpi-card__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 14px;
        }
        .kpi-card__tag {
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: var(--text-muted);
            padding: 3px 7px;
            background: var(--bg-inset);
            border: 1px solid var(--border-default);
            border-radius: 5px;
        }
        .kpi-card__tag--accent {
            background: rgba(var(--primary-rgb), 0.08);
            border-color: rgba(var(--primary-rgb), 0.18);
            color: var(--primary);
        }
        .kpi-card__indicator {
            display: none !important;
        }
        @keyframes indicatorPulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
            50%       { opacity: 0.55; box-shadow: 0 0 3px rgba(16, 185, 129, 0.2); }
        }


        /* ─── SVG RINGS ──────────────────────────────────────────────── */
        .progress-ring {
            position: relative;
            width: 110px;
            height: 110px;
        }
        .progress-ring circle {
            fill: transparent;
            stroke-width: 4;
            stroke-linecap: round;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        .ring-bg {
            stroke: rgba(255, 255, 255, 0.03);
        }
        [data-theme="light"] .ring-bg {
            stroke: rgba(0, 0, 0, 0.06);
        }
        .ring-val {
            stroke: var(--primary);
            transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .ring-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        .ring-num {
            font-size: 1.45rem;
            font-weight: 700;
            color: var(--text-main);
            font-family: var(--font-mono);
            letter-spacing: -0.03em;
            line-height: 1;
        }
        .ring-lbl {
            font-size: 0.58rem;
            color: var(--text-muted);
            text-transform: uppercase;
            margin-top: 3px;
            letter-spacing: 0.07em;
            font-weight: 600;
        }


        /* ═══ GLEITZEIT CARD V2 — MODERN REDESIGN ═══ */
        .card.gz-card-v2 {
            position: relative !important;
            background: linear-gradient(135deg,
                rgba(var(--primary-rgb), 0.08) 0%,
                rgba(var(--primary-rgb), 0.04) 50%,
                rgba(var(--primary-rgb), 0.02) 100%) !important;
            border: 1px solid rgba(var(--primary-rgb), 0.12) !important;
            border-radius: 16px !important;
            overflow: hidden !important;
            padding: 1.25rem !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 0.6rem !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            box-shadow: none !important;
            margin-bottom: 0 !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            min-height: auto !important;
            container-type: inline-size;
            container-name: gz-card;
        }

        .card.gz-card-v2:hover {
            border-color: rgba(var(--primary-rgb), 0.25) !important;
            background: linear-gradient(135deg,
                rgba(var(--primary-rgb), 0.12) 0%,
                rgba(var(--primary-rgb), 0.06) 50%,
                rgba(var(--primary-rgb), 0.03) 100%) !important;
            box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.08) !important;
        }

        .gz-container {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            min-width: 0;
        }

        .gz-header-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .gz-label {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
            text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
        }

        .gz-adjust-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            padding: 0;
            border-radius: 8px;
            background: rgba(var(--primary-rgb), 0.08);
            border: 1px solid rgba(var(--primary-rgb), 0.18);
            color: var(--primary);
            cursor: pointer;
            transition: all 0.18s ease;
        }
        .gz-adjust-btn svg { width: 14px; height: 14px; }
        .gz-adjust-btn:hover {
            background: rgba(var(--primary-rgb), 0.16);
            transform: translateY(-1px);
        }
        .gz-adjust-btn:active { transform: translateY(0); }

        .gz-main-section {
            display: grid;
            grid-template-columns: clamp(64px, 22cqi, 100px) minmax(0, 1fr);
            gap: clamp(0.75rem, 3cqi, 1.5rem);
            align-items: center;
            padding: clamp(0.9rem, 3.5cqi, 1.25rem);
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(var(--primary-rgb), 0.08);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            min-width: 0;
        }

        .gz-main-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg,
                transparent 0%,
                rgba(var(--primary-rgb), 0.05) 100%);
            pointer-events: none;
        }

        .gz-balance-visual {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            color: var(--primary);
        }

        .gz-scale-icon {
            width: 100%;
            max-width: 80px;
            height: auto;
            aspect-ratio: 100 / 60;
            opacity: 0.8;
            filter: drop-shadow(0 4px 8px rgba(var(--primary-rgb), 0.15));
            animation: gz-scale-tilt 3s ease-in-out infinite;
        }

        @keyframes gz-scale-tilt {
            0%, 100% { transform: rotate(-5deg); }
            50% { transform: rotate(5deg); }
        }

        .gz-value-wrapper {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            min-width: 0;
        }

        .gz-value-label {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-muted);
            letter-spacing: 0.02em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gz-value-display {
            font-size: clamp(1.4rem, 8.5cqi, 2.2rem);
            font-weight: 800;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg,
                var(--primary) 0%,
                rgba(var(--primary-rgb), 0.7) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'JetBrains Mono', monospace;
            text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
            white-space: nowrap;
            line-height: 1.1;
        }

        .gz-divider-modern {
            height: 0.5px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(var(--primary-rgb), 0.15) 50%,
                transparent 100%);
            margin: 0.4rem 0;
        }

        .gz-forecast-section {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            padding: 0.75rem;
            background: rgba(var(--primary-rgb), 0.03);
            border: 1px solid rgba(var(--primary-rgb), 0.06);
            border-radius: 10px;
            position: relative;
        }

        .gz-forecast-section::after {
            content: '';
            position: absolute;
            top: -1px;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(var(--primary-rgb), 0.3) 50%,
                transparent 100%);
        }

        .gz-forecast-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            min-width: 0;
        }

        .gz-forecast-icon {
            font-size: 0.95rem;
            flex-shrink: 0;
        }

        .gz-forecast-label {
            font-weight: 600;
            color: var(--text-main);
            flex: 1;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gz-forecast-timeframe {
            font-size: 0.65rem;
            font-weight: 700;
            background: rgba(var(--primary-rgb), 0.12);
            color: var(--primary);
            padding: 2px 6px;
            border-radius: 4px;
            letter-spacing: 0.05em;
            flex-shrink: 0;
        }

        .gz-forecast-value {
            font-size: clamp(1rem, 5cqi, 1.2rem);
            font-weight: 700;
            color: var(--primary);
            font-family: 'JetBrains Mono', monospace;
            white-space: nowrap;
        }

        .gz-forecast-bar {
            height: 4px;
            background: rgba(var(--primary-rgb), 0.08);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .gz-forecast-fill {
            height: 100%;
            background: linear-gradient(90deg,
                var(--primary) 0%,
                rgba(var(--primary-rgb), 0.6) 100%);
            border-radius: 2px;
            animation: gz-fill-grow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
        }

        @keyframes gz-fill-grow {
            from { width: 0%; }
        }

        .gz-streak-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            min-width: 0;
        }

        .gz-streak-item {
            padding: 0.7rem;
            border-radius: 10px;
            border: 1px solid rgba(var(--primary-rgb), 0.1);
            background: rgba(var(--primary-rgb), 0.02);
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            min-width: 0;
        }

        .gz-streak-item::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(var(--primary-rgb), 0.2) 50%,
                transparent 100%);
        }

        .gz-streak-item:hover {
            border-color: rgba(var(--primary-rgb), 0.2);
            background: rgba(var(--primary-rgb), 0.06);
            transform: translateY(-2px);
        }

        .gz-streak-label {
            font-size: 0.65rem;
            font-weight: 600;
            color: var(--text-muted);
            letter-spacing: 0.02em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gz-streak-value {
            font-size: clamp(1.05rem, 5.5cqi, 1.4rem);
            font-weight: 900;
            font-family: 'JetBrains Mono', monospace;
            background: linear-gradient(135deg,
                var(--primary) 0%,
                rgba(var(--primary-rgb), 0.8) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }

        .gz-streak-subtext {
            font-size: 0.6rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* ─── Container-basiert: passt sich der KARTEN-Breite an,
              nicht der Viewport-Breite. Greift z.B. bei 1080p + Sidebar,
              wenn die Karte ~310px wird und Texte sonst überlappen. ─── */
        @container gz-card (max-width: 340px) {
            .gz-main-section {
                grid-template-columns: 1fr;
                padding: 1rem;
                gap: 0.75rem;
            }
            .gz-balance-visual {
                order: -1;
            }
            .gz-scale-icon {
                max-width: 64px;
            }
            .gz-value-wrapper {
                align-items: flex-start;
            }
        }

        @container gz-card (max-width: 260px) {
            .gz-streak-section {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }
            .gz-streak-item {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                grid-template-rows: auto auto;
                column-gap: 0.6rem;
                row-gap: 0;
                text-align: left;
                padding: 0.55rem 0.75rem;
                align-items: center;
            }
            .gz-streak-label {
                grid-column: 1;
                grid-row: 1 / span 2;
                align-self: center;
            }
            .gz-streak-value {
                grid-column: 2;
                grid-row: 1;
                text-align: right;
            }
            .gz-streak-subtext {
                grid-column: 2;
                grid-row: 2;
                text-align: right;
            }
        }

        /* ─── Mobile (Viewport-Fallback für sehr alte Browser ohne CQ) ─── */
        @media (max-width: 640px) {
            .gz-card-v2 {
                padding: 1.25rem;
                min-height: auto;
            }

            .gz-main-section {
                grid-template-columns: 1fr;
                padding: 1rem;
                gap: 1rem;
            }

            .gz-balance-visual {
                order: -1;
            }

            .gz-forecast-bar {
                height: 5px;
            }

            .gz-streak-section {
                grid-template-columns: 1fr;
            }
        }

        /* ─── Accessibility ─── */
        @media (prefers-reduced-motion: reduce) {
            .gz-card-v2:hover {
                box-shadow: none;
            }

            .gz-scale-tilt,
            .gz-fill-grow {
                animation: none !important;
            }
        }


        /* ─── STATS CARD (Avg + Vacation) ────────────────────────────── */
        .kpi-card--stats {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 20px 18px !important;
            cursor: default;
        }
        .kpi-stats__value {
            font-size: 2rem;
            font-weight: 800;
            color: var(--text-main);
            font-family: var(--font-mono);
            letter-spacing: -0.03em;
            line-height: 1;
            margin: 4px 0;
        }
        .kpi-stats__label {
            font-size: 0.62rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.07em;
            font-weight: 600;
        }
        .kpi-stats__divider {
            width: 100%;
            height: 1px;
            background: var(--border-subtle);
            margin: 13px 0;
        }
        .kpi-stats__vacation { width: 100%; }
        .kpi-stats__vacation-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 7px;
        }
        .kpi-stats__vacation-label {
            font-size: 0.6rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.07em;
            font-weight: 600;
        }
        .kpi-stats__vacation-count {
            font-family: var(--font-mono);
            font-weight: 700;
            font-size: 0.72rem;
            color: var(--text-main);
        }
        .kpi-stats__vacation-track {
            height: 5px;
            background: var(--bg-inset);
            border-radius: 3px;
            overflow: hidden;
        }
        .kpi-stats__vacation-fill {
            width: 0%;
            background: var(--success);
            height: 100%;
            border-radius: 3px;
            transition: width 0.9s var(--ease-out), background 0.5s;
        }


        /* ─── WEEK DOTS ──────────────────────────────────────────────── */
        .week-dots {
            display: flex;
            gap: 5px;
            align-items: center;
            margin-top: 10px;
        }
        .week-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border-default);
            transition: all var(--dur-normal) var(--ease-out);
            position: relative;
        }
        .week-dot.filled {
            background: var(--success);
            box-shadow: 0 0 6px rgba(16, 185, 129, 0.30);
        }
        .week-dot.today {
            border: 1.5px solid var(--primary);
            background: transparent;
            box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.25);
        }
        .week-dot-label {
            font-size: 0.48rem;
            color: var(--text-muted);
            text-align: center;
            margin-top: 1px;
            font-family: var(--font-mono);
            opacity: 0.6;
        }


        /* ─── KPI VALUE GLOW ─────────────────────────────────────────── */
        .kpi-value-positive {
            text-shadow: 0 0 18px rgba(16, 185, 129, 0.30), 0 0 36px rgba(16, 185, 129, 0.08);
        }
        .kpi-value-negative {
            text-shadow: 0 0 18px rgba(239, 68, 68, 0.30), 0 0 36px rgba(239, 68, 68, 0.08);
        }
        .kpi-value-accent {
            text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.22), 0 0 36px rgba(var(--primary-rgb), 0.07);
        }


        /* ─── PROJECTION BADGE ───────────────────────────────────────── */
        .projection-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 9px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-family: var(--font-mono);
            font-weight: 700;
            background: rgba(var(--primary-rgb), 0.07);
            border: 1px solid rgba(var(--primary-rgb), 0.12);
            color: var(--primary);
        }
        .projection-badge.positive {
            background: rgba(16, 185, 129, 0.07);
            border-color: rgba(16, 185, 129, 0.14);
            color: var(--success);
        }
        .projection-badge.negative {
            background: rgba(239, 68, 68, 0.07);
            border-color: rgba(239, 68, 68, 0.14);
            color: var(--danger);
        }


        /* ─── STREAK ─────────────────────────────────────────────────── */
        @keyframes streakPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50%       { transform: scale(1.10); opacity: 0.75; }
        }
        .streak-active {
            animation: streakPulse 3s ease-in-out infinite;
            display: inline-block;
            font-size: 1rem;
        }


        /* ─── COMMAND BAR ────────────────────────────────────────────── */
        .quick-actions {
            display: flex;
            align-items: center;
            gap: 1px;
            padding: 3px;
            background: var(--bg-elevated);
            border: 1px solid var(--border-default);
            border-radius: 12px;
            margin-bottom: 0;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: none;
            box-shadow: var(--shadow-sm);
        }
        .quick-actions::-webkit-scrollbar { display: none; }

        .quick-actions button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 11px;
            background: transparent;
            color: var(--text-muted);
            border: none;
            border-radius: 9px;
            font-size: 0.75rem;
            font-weight: 500;
            white-space: nowrap;
            cursor: pointer;
            letter-spacing: -0.01em;
            transition:
                background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
        }
        .quick-actions button:hover:not([disabled]) {
            background: rgba(var(--primary-rgb), 0.07);
            color: var(--text-main);
        }
        .quick-actions button:active:not([disabled]) {
            transform: scale(0.97);
            background: rgba(var(--primary-rgb), 0.10);
        }
        .quick-actions button[disabled] {
            opacity: 0.28;
            cursor: not-allowed;
        }
        .quick-actions button[disabled] .cmd-label {
            text-decoration: line-through;
        }
        .quick-actions button .cmd-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.04);
            transition: background var(--dur-fast) var(--ease-out);
            flex-shrink: 0;
        }
        [data-theme="light"] .quick-actions button .cmd-icon {
            background: rgba(0, 0, 0, 0.04);
        }
        .quick-actions button .cmd-icon svg {
            width: 12px;
            height: 12px;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }
        .quick-actions button:hover:not([disabled]) .cmd-icon {
            background: rgba(var(--primary-rgb), 0.12);
        }
        .cmd-sep {
            width: 1px;
            height: 16px;
            background: var(--border-default);
            flex-shrink: 0;
            margin: 0 3px;
        }
        .cmd-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 17px;
            height: 17px;
            padding: 0 5px;
            background: rgba(var(--primary-rgb), 0.12);
            color: var(--primary);
            border-radius: 10px;
            font-size: 0.6rem;
            font-weight: 700;
            font-family: var(--font-mono);
            animation: badgePop 0.3s var(--ease-spring);
            letter-spacing: 0;
        }
        .cmd-kbd {
            font-size: 0.56rem;
            font-family: var(--font-mono);
            color: rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.03);
            padding: 2px 4px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            font-weight: 600;
            margin-left: 2px;
        }
        .quick-actions button:hover .cmd-kbd {
            color: rgba(var(--primary-rgb), 0.45);
            border-color: rgba(var(--primary-rgb), 0.12);
        }
        .cmd-label { font-size: inherit; }


        /* ─── CHARTS ROW ─────────────────────────────────────────────── */
        .charts-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1rem;
            margin-bottom: 0;
        }

        .chart-card {
            overflow: visible;
            transform-style: flat !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            padding: 20px;
        }
        .chart-card:hover {
            border-color: var(--border-interactive);
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 14px;
            gap: 8px;
        }
        .donut-redesign .chart-header {
            position: relative;
            padding-top: 0;
        }
        .chart-header-top {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .chart-header-top .chart-title {
            margin: 0;
        }
        .chart-title {
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }
        .chart-sub {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 2px;
            font-weight: 400;
        }

        .chart-config-btn {
            padding: 4px !important;
            border: none !important;
            border-radius: 50% !important;
            background: transparent !important;
            color: var(--text-muted) !important;
            cursor: pointer !important;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--dur-fast) var(--ease-out) !important;
            flex-shrink: 0;
            position: relative;
            width: 32px;
            height: 32px;
            min-width: 32px;
        }
        .chart-config-btn:hover {
            color: var(--primary) !important;
            transform: scale(1.08);
            text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35);
        }
        .chart-config-btn:active {
            transform: scale(0.96);
        }

        .donut-redesign .donut-settings-btn {
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            width: 16px !important;
            height: 16px !important;
            min-width: 16px !important;
            padding: 0 !important;
            margin: 0 !important;
            background: none !important;
            border: none !important;
            display: block !important;
            align-items: unset !important;
            justify-content: unset !important;
            flex-direction: unset !important;
        }
        .donut-redesign .donut-settings-btn svg {
            width: 16px !important;
            height: 16px !important;
            display: block !important;
        }

        @media (max-width: 640px) {
            .chart-config-btn {
                width: 36px;
                height: 36px;
                min-width: 36px;
            }
        }


        /* ─── TREND CHART ────────────────────────────────────────────── */
        .trend-period-selector {
            display: flex;
            gap: 6px;
            background: transparent;
            border-radius: 0;
            padding: 0;
            border: none;
        }
        .trend-period-btn {
            padding: 8px 12px;
            min-height: 36px;
            min-width: 36px;
            font-size: 0.7rem;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: 8px;
            transition: all 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
            font-weight: 600;
            font-family: var(--font-mono);
            letter-spacing: 0.02em;
            position: relative;
            text-transform: uppercase;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .trend-period-btn:hover {
            color: var(--text-main);
            background: rgba(var(--primary-rgb), 0.06);
            transform: translateY(-1px);
        }
        [data-theme="light"] .trend-period-btn:hover {
            background: rgba(var(--primary-rgb), 0.08);
        }
        .trend-period-btn.active {
            color: var(--primary);
            background: rgba(var(--primary-rgb), 0.12);
            box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.2);
            font-weight: 700;
        }
        .trend-period-btn.active::before {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background: var(--primary);
            border-radius: 1px;
            box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.4);
        }

        @media (max-width: 640px) {
            .trend-period-selector {
                gap: 6px;
            }
            .trend-period-btn {
                padding: 10px 10px;
                min-height: 40px;
                min-width: 40px;
                font-size: 0.7rem;
            }
        }

        .trend-stats-bar {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 4px;
            padding: 10px 0 8px;
            margin-bottom: 10px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .trend-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
        }
        .trend-stat-label {
            font-size: 0.55rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
        }
        .trend-stat-value {
            font-size: 0.78rem;
            font-weight: 700;
            font-family: var(--font-mono);
            color: var(--text-main);
        }
        .trend-stat-positive { color: var(--success) !important; }
        .trend-stat-negative { color: var(--danger) !important; }

        .trend-container-wrapper {
            display: flex;
            gap: 0;
            position: relative;
        }
        .trend-container-wrapper .trend-container {
            flex: 1;
            min-width: 0;
        }
        .trend-container {
            height: 220px;
            width: 100%;
            position: relative;
            overflow: visible;
            isolation: isolate;
        }
        .trend-container svg,
        .donut-container svg {
            overflow: visible;
            will-change: filter;
        }
        .trend-y-axis {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-end;
            padding: 0 6px 0 0;
            width: 44px;
            min-width: 44px;
            font-size: 0.54rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
            pointer-events: none;
            opacity: 0.75;
        }
        .trend-x-axis {
            display: flex;
            justify-content: space-between;
            padding: 4px 0 0 50px;
            font-size: 0.52rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
            opacity: 0.75;
        }

        .trend-line {
            fill: none;
            stroke: var(--primary);
            stroke-width: 2;
            stroke-linecap: round;
            filter: drop-shadow(0 0 4px rgba(var(--primary-rgb), 0.22));
        }
        .trend-area {
            fill: var(--primary);
            opacity: 0.04;
        }
        .trend-grid {
            stroke: rgba(255, 255, 255, 0.02);
            stroke-width: 1;
        }
        [data-theme="light"] .trend-grid {
            stroke: rgba(0, 0, 0, 0.04);
        }
        .trend-crosshair {
            stroke: rgba(255, 255, 255, 0.10);
            stroke-width: 1;
            stroke-dasharray: 3 4;
            pointer-events: none;
        }
        [data-theme="light"] .trend-crosshair {
            stroke: rgba(0, 0, 0, 0.12);
        }
        .trend-zero-line {
            stroke: rgba(255, 255, 255, 0.08);
            stroke-width: 1;
            stroke-dasharray: 4 5;
        }
        [data-theme="light"] .trend-zero-line {
            stroke: rgba(0, 0, 0, 0.10);
        }
        .trend-dot-hover {
            transition: r 0.15s ease, opacity 0.15s ease;
            cursor: pointer;
        }

        .trend-tooltip {
            position: absolute;
            left: 0;
            top: 0;
            will-change: transform;
            pointer-events: none;
            z-index: 100;
            background: rgba(8, 8, 12, 0.97);
            border: 1px solid var(--border-interactive);
            border-radius: 10px;
            padding: 10px 13px;
            min-width: 165px;
            box-shadow: var(--shadow-lg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            font-size: 0.74rem;
            line-height: 1.55;
            color: var(--text-main);
            transition: opacity var(--dur-fast), transform var(--dur-fast);
        }
        [data-theme="light"] .trend-tooltip {
            background: rgba(255, 255, 255, 0.98);
            border-color: var(--border-interactive);
        }
        .trend-tooltip .tt-date {
            font-weight: 700;
            color: var(--text-main);
            font-size: 0.80rem;
            margin-bottom: 5px;
            font-family: var(--font-mono);
        }
        .trend-tooltip .tt-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }
        .trend-tooltip .tt-label { color: var(--text-muted); }
        .trend-tooltip .tt-val {
            font-weight: 600;
            font-family: var(--font-mono);
        }
        .trend-tooltip .tt-positive { color: var(--success); }
        .trend-tooltip .tt-negative { color: var(--danger); }
        .trend-tooltip .tt-type-badge {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 0.6rem;
            background: rgba(var(--primary-rgb), 0.10);
            color: var(--primary);
            font-weight: 600;
            margin-top: 5px;
            border: 1px solid rgba(var(--primary-rgb), 0.15);
        }


        /* ─── MODERN DONUT CHART REDESIGN ────────────────────────────── */
        .donut-redesign {
            display: flex;
            flex-direction: column;
            gap: 0;
            padding-bottom: 0;
        }

        .donut-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 150px;
            margin: 0.5rem 0;
            cursor: pointer;
        }

        .donut-svg {
            width: 140px !important;
            height: 140px !important;
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.20));
            transition: all var(--dur-normal) var(--ease-out);
        }

        .donut-svg:hover {
            filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
        }

        .donut-center-info {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
            z-index: 2;
        }

        .center-value {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
            font-family: var(--font-mono);
            letter-spacing: -0.05em;
            line-height: 1;
            text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.12);
        }

        .center-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 600;
            margin-top: 4px;
        }

        .center-unit {
            font-size: 0.6rem;
            color: var(--text-muted);
            opacity: 0.65;
            margin-top: 2px;
        }

        /* Modern Legend Cards Grid */
        .donut-legend-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border-subtle);
        }

        .legend-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            transition: all var(--dur-normal) var(--ease-out);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        .legend-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
            opacity: 0;
            transition: opacity var(--dur-normal);
        }

        .legend-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--border-interactive);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .legend-card:hover::before {
            opacity: 1;
        }

        [data-theme="light"] .legend-card {
            background: rgba(0, 0, 0, 0.02);
            border-color: var(--border-subtle);
        }

        [data-theme="light"] .legend-card:hover {
            background: rgba(0, 0, 0, 0.06);
            border-color: var(--border-interactive);
        }

        .legend-card__accent {
            width: 3px;
            height: 20px;
            border-radius: 2px;
            flex-shrink: 0;
            transition: all var(--dur-normal) var(--ease-out);
        }

        .legend-card:hover .legend-card__accent {
            height: 24px;
            box-shadow: 0 0 8px currentColor;
        }

        .legend-card__content {
            position: relative;
            z-index: 1;
            width: 100%;
        }

        .legend-card__label {
            font-size: 0.65rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .legend-card__value {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-main);
            font-family: var(--font-mono);
            letter-spacing: -0.02em;
            line-height: 1;
        }

        .legend-card__percent {
            font-size: 0.58rem;
            color: var(--text-muted);
            margin-top: 1px;
            font-family: var(--font-mono);
        }

        /* Donut Tooltip */
        .donut-tooltip {
            position: absolute;
            background: rgba(8, 8, 12, 0.96);
            border: 1px solid var(--border-interactive);
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 0.75rem;
            color: var(--text-main);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
            pointer-events: none;
            z-index: 100;
            white-space: nowrap;
            transition: all var(--dur-fast) var(--ease-out);
        }

        [data-theme="light"] .donut-tooltip {
            background: rgba(255, 255, 255, 0.98);
        }

        .donut-tooltip.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .donut-tooltip.hidden {
            opacity: 0;
            transform: translateY(6px);
            pointer-events: none;
        }

        /* Responsive - Stack legend on mobile */
        @media (max-width: 768px) {
            .donut-wrapper {
                height: 130px;
            }

            .donut-svg {
                width: 120px !important;
                height: 120px !important;
            }

            .center-value {
                font-size: 1.5rem;
            }

            .donut-legend-grid {
                grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
                gap: 6px;
            }

            .legend-card {
                padding: 8px;
            }
        }

        @media (max-width: 500px) {
            .donut-legend-grid {
                grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
            }
        }

        /* OLD STYLES - Keep for backwards compatibility */
        .donut-container {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 160px;
            position: relative;
            overflow: visible;
            isolation: isolate;
        }
        .donut-legend {
            margin-top: 14px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 5px;
            font-size: 0.72rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            color: var(--text-muted);
            gap: 7px;
            padding: 4px 5px;
            border-radius: 6px;
            transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
            cursor: default;
        }
        .legend-item:hover {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-main);
            transform: translateX(2px);
        }
        [data-theme="light"] .legend-item:hover {
            background: rgba(0, 0, 0, 0.04);
        }
        .dot {
            width: 8px;
            height: 8px;
            border-radius: 3px;
            flex-shrink: 0;
        }


        /* ─── SETUP HINT BANNER ─────────────────────────────────────── */
        .setup-hint-banner {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 13px 14px;
            background: linear-gradient(135deg, rgba(168,85,247,0.13) 0%, rgba(99,102,241,0.1) 100%);
            border: 1px solid rgba(168,85,247,0.32);
            border-radius: 14px;
            position: relative;
            animation: setupHintIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
        }
        @keyframes setupHintIn {
            from { opacity: 0; transform: translateY(-6px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes setupHintOut {
            to { opacity: 0; transform: translateY(-6px); max-height: 0; padding: 0; margin: 0; }
        }
        .setup-hint-banner.dismissing {
            animation: setupHintOut 0.28s ease forwards;
            overflow: hidden;
        }
        .setup-hint-icon {
            font-size: 1.35rem;
            flex-shrink: 0;
            margin-top: 1px;
            filter: drop-shadow(0 0 6px rgba(168,85,247,0.5));
        }
        .setup-hint-content {
            flex: 1;
            min-width: 0;
        }
        .setup-hint-title {
            font-size: 0.82rem;
            font-weight: 700;
            color: #d8b4fe;
            margin-bottom: 4px;
            letter-spacing: -0.01em;
        }
        .setup-hint-text {
            font-size: 0.76rem;
            color: var(--text-muted, #94a3b8);
            line-height: 1.55;
            margin-bottom: 10px;
        }
        .setup-hint-text strong {
            color: #c4b5fd;
            font-weight: 600;
        }
        .setup-hint-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 13px;
            background: rgba(168,85,247,0.22);
            border: 1px solid rgba(168,85,247,0.42);
            border-radius: 8px;
            color: #d8b4fe;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.18s, border-color 0.18s, transform 0.15s;
            letter-spacing: 0.01em;
        }
        .setup-hint-btn:hover {
            background: rgba(168,85,247,0.38);
            border-color: rgba(168,85,247,0.58);
            transform: translateX(2px);
        }
        .setup-hint-close {
            position: absolute;
            top: 7px;
            right: 9px;
            background: none;
            border: none;
            color: var(--text-muted, #64748b);
            font-size: 1rem;
            cursor: pointer;
            padding: 3px 6px;
            border-radius: 5px;
            transition: color 0.15s, background 0.15s;
            line-height: 1;
            font-weight: 400;
        }
        .setup-hint-close:hover {
            color: #e2e8f0;
            background: rgba(255,255,255,0.07);
        }

        /* ─── ENTRY FORM ─────────────────────────────────────────────── */
        .entry-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .entry-form__header {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .entry-form__title {
            font-size: 0.92rem;
            font-weight: 600;
            margin: 0;
            letter-spacing: -0.02em;
            color: var(--text-main);
        }
        .entry-form__row {
            display: flex;
            gap: 10px;
        }
        .entry-form__time-row {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .entry-form__time-group {
            display: flex;
            gap: 6px;
            align-items: center;
            flex: 1;
        }
        .entry-form__now-btn {
            padding: 8px 10px !important;
            font-size: 0.7rem !important;
            font-weight: 600 !important;
            letter-spacing: 0.01em !important;
            flex-shrink: 0;
        }
        @keyframes time-set-glow {
            0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0), border-color: var(--border); }
            15%  { box-shadow: 0 0 0 4px rgba(74,222,128,0.45), 0 0 18px 4px rgba(74,222,128,0.3); border-color: #4ade80; }
            55%  { box-shadow: 0 0 0 3px rgba(74,222,128,0.25), 0 0 12px 2px rgba(74,222,128,0.2); border-color: #4ade80; }
            100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); border-color: var(--border); }
        }
        @keyframes time-set-flash {
            0%   { background: var(--bg-inset); color: var(--text); }
            20%  { background: rgba(74,222,128,0.18); color: #4ade80; }
            100% { background: var(--bg-inset); color: var(--text); }
        }
        .glass-input--time-set {
            animation: time-set-glow 1.1s cubic-bezier(0.22,1,0.36,1) forwards,
                       time-set-flash 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
            border-color: #4ade80 !important;
        }
        .entry-form__actions {
            display: flex;
            gap: 8px;
            margin-top: auto;
        }
        /* ── Voice Button ── */
        .entry-form__voice-btn {
            position: relative;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px 14px;
            background: rgba(var(--primary-rgb), 0.06);
            border: 1px solid rgba(var(--primary-rgb), 0.18);
            border-radius: 10px;
            color: rgba(var(--primary-rgb), 1);
            color: var(--primary);
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            overflow: visible;
            transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
            z-index: 0;
        }
        .entry-form__voice-btn:hover {
            background: rgba(var(--primary-rgb), 0.12);
            border-color: rgba(var(--primary-rgb), 0.35);
            box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.15);
        }

        /* sonar rings – hidden by default */
        .vbtn-ring {
            position: absolute;
            inset: 0;
            border-radius: 10px;
            border: 1.5px solid rgba(var(--primary-rgb), 0.6);
            opacity: 0;
            pointer-events: none;
        }

        /* active: button glows + rings pulse outward */
        .entry-form__voice-btn.voice-active {
            background: rgba(var(--primary-rgb), 0.18) !important;
            border-color: var(--primary) !important;
            box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35), inset 0 0 12px rgba(var(--primary-rgb), 0.08) !important;
            color: #fff !important;
        }
        .entry-form__voice-btn.voice-active .vbtn-ring.r1 { animation: sonar 2s ease-out infinite; }
        .entry-form__voice-btn.voice-active .vbtn-ring.r2 { animation: sonar 2s ease-out 0.55s infinite; }
        .entry-form__voice-btn.voice-active .vbtn-ring.r3 { animation: sonar 2s ease-out 1.1s infinite; }
        .entry-form__voice-btn.voice-active .vbtn-icon svg {
            animation: mic-bounce 0.5s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
        }
        @keyframes sonar {
            0%   { transform: scale(1);    opacity: 0.7; }
            100% { transform: scale(1.9);  opacity: 0; }
        }
        @keyframes mic-bounce {
            from { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(var(--primary-rgb),0.5)); }
            to   { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(var(--primary-rgb),0.9)); }
        }

        /* ── Voice Feedback Card ── */
        .voice-feedback-card {
            margin-top: 10px;
            padding: 0;
            border-radius: 12px;
            overflow: hidden;
            background: rgba(10, 8, 18, 0.7);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.07);
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
            animation: vfc-in 0.25s cubic-bezier(0.34,1.4,0.64,1) both;
        }
        @keyframes vfc-in {
            from { opacity: 0; transform: translateY(-6px) scale(0.98); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* top accent bar */
        .vfc-bar {
            height: 2px;
            width: 100%;
        }
        .vfc-bar--info    { background: linear-gradient(90deg, var(--primary), #818cf8, transparent); }
        .vfc-bar--success { background: linear-gradient(90deg, #10b981, #34d399, transparent); }
        .vfc-bar--warning { background: linear-gradient(90deg, #f59e0b, #fbbf24, transparent); }
        .vfc-bar--error   { background: linear-gradient(90deg, #ef4444, #f87171, transparent); }

        .vfc-body {
            padding: 11px 14px 13px;
        }

        /* listening state: waveform bars + live text */
        .vfc-wave {
            display: flex;
            align-items: center;
            gap: 3px;
            margin-bottom: 7px;
        }
        .vfc-wave span {
            display: block;
            width: 3px;
            border-radius: 2px;
            background: var(--primary);
            animation: wave-bar 1s ease-in-out infinite;
        }
        .vfc-wave span:nth-child(1) { height: 8px;  animation-delay: 0s; }
        .vfc-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
        .vfc-wave span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
        .vfc-wave span:nth-child(4) { height: 14px; animation-delay: 0.3s; }
        .vfc-wave span:nth-child(5) { height: 8px;  animation-delay: 0.4s; }
        .vfc-wave span:nth-child(6) { height: 18px; animation-delay: 0.15s; }
        .vfc-wave span:nth-child(7) { height: 10px; animation-delay: 0.35s; }
        @keyframes wave-bar {
            0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
            50%       { transform: scaleY(1);   opacity: 1; }
        }
        .vfc-live-text {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-style: italic;
            line-height: 1.4;
            min-height: 1.2em;
        }

        /* parsed result chips */
        .vfc-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 2px;
        }
        .vfc-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.76rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            white-space: nowrap;
        }
        .vfc-chip--time    { background: rgba(99,179,237,0.12); border: 1px solid rgba(99,179,237,0.25); color: #63b3ed; }
        .vfc-chip--project { background: rgba(var(--primary-rgb),0.12); border: 1px solid rgba(var(--primary-rgb),0.25); color: var(--primary); }
        .vfc-chip--note    { background: rgba(251,191,36,0.10); border: 1px solid rgba(251,191,36,0.22); color: #fbbf24; }
        .vfc-chip--date    { background: rgba(52,211,153,0.10); border: 1px solid rgba(52,211,153,0.22); color: #34d399; }

        /* simple message row for warning/error */
        .vfc-msg {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            color: var(--text-main);
        }
        .entry-form__submit {
            flex: 1;
            font-size: 0.85rem !important;
            font-weight: 600 !important;
        }
        .entry-form__cancel {
            background: var(--bg-inset);
            border: 1px solid var(--border-default);
            display: none;
            flex: 0 0 auto;
            color: var(--text-muted);
            font-size: 0.82rem !important;
            padding: 10px 14px !important;
            border-radius: 9px !important;
            transition: all var(--dur-fast) var(--ease-out) !important;
        }
        .entry-form__cancel:hover {
            background: rgba(239, 68, 68, 0.07) !important;
            border-color: rgba(239, 68, 68, 0.18) !important;
            color: var(--danger) !important;
        }


        /* ─── TIMER BOX ──────────────────────────────────────────────── */
        .timer-box {
            background: var(--bg-inset);
            border: 1px solid var(--border-default);
            border-radius: 14px;
            padding: 20px 18px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .timer-box__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .timer-box__label {
            color: var(--text-muted);
            font-size: 0.64rem;
            text-transform: uppercase;
            letter-spacing: 0.10em;
            font-weight: 700;
            font-family: var(--font-mono);
        }
        .timer-display {
            font-size: 2.2rem;
            font-weight: 700;
            font-family: var(--font-mono);
            color: var(--text-main);
            letter-spacing: -0.02em;
            line-height: 1;
            transition: color var(--dur-normal), text-shadow var(--dur-normal);
        }
        .timer-active .timer-display {
            color: var(--primary);
            text-shadow: 0 0 16px rgba(var(--primary-rgb), 0.28);
        }
        .timer-log {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .timer-log-status {
            font-size: 0.62rem;
            text-transform: uppercase;
            letter-spacing: 0.10em;
            color: var(--text-muted);
            font-weight: 700;
            font-family: var(--font-mono);
            flex-shrink: 0;
        }
        .timer-log-bar {
            display: flex;
            gap: 2px;
            flex: 1;
        }
        .btn-icon-row {
            display: flex;
            gap: 6px;
        }
        .timer-btn--start { color: var(--success) !important; }
        .timer-btn--pause { color: #f59e0b !important; }
        .timer-btn--stop  { color: var(--danger)  !important; }
        .timer-btn {
            flex: 1;
            font-size: 0.78rem !important;
            font-weight: 600 !important;
            padding: 8px 10px !important;
            border-radius: 8px !important;
            border: 1px solid var(--border-default) !important;
        }
        .timer-btn:hover {
            background: rgba(255, 255, 255, 0.05) !important;
            border-color: var(--border-interactive) !important;
        }


        /* ─── ACTIVITIES: MODERNE TIMELINE NEU ────────────────────────── */
        .activities-card-new {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 24px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: all var(--dur-normal) var(--ease-out);
        }
        .activities-card-new:hover {
            border-color: rgba(var(--primary-rgb), 0.2);
            background: var(--card-bg);
        }

        .activities-header-new {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
        }

        .activities-header-content {
            flex: 1;
        }

        .activities-title-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .activities-icon {
            width: 24px;
            height: 24px;
            color: var(--primary);
            flex-shrink: 0;
            animation: slideInDown 0.6s ease-out 0.1s both;
        }

        .activities-title-new {
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text-main);
            letter-spacing: -0.005em;
            margin: 0;
            animation: slideInDown 0.6s ease-out 0.15s both;
        }

        .activities-meta {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin: 3px 0 0 0;
            animation: slideInDown 0.6s ease-out 0.2s both;
        }

        /* Day Tabs Navigation */
        .day-tabs-container {
            position: relative;
            width: 100%;
            padding: 0;
            margin: 0;
        }
        .day-tabs {
            display: flex;
            gap: 6px;
            width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            padding: 0;
            scrollbar-width: thin;
            scrollbar-color: rgba(var(--primary-rgb), 0.15) transparent;
            -webkit-overflow-scrolling: touch;
            cursor: grab;
        }
        .day-tabs.grabbing {
            cursor: grabbing;
        }
        .day-tabs::-webkit-scrollbar {
            height: 3px;
        }
        .day-tabs::-webkit-scrollbar-track {
            background: transparent;
        }
        .day-tabs::-webkit-scrollbar-thumb {
            background: rgba(var(--primary-rgb), 0.15);
            border-radius: 2px;
        }
        .day-tabs::-webkit-scrollbar-thumb:hover {
            background: rgba(var(--primary-rgb), 0.35);
        }

        .day-tab {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 65px;
            padding: 10px 14px;
            background: rgba(var(--primary-rgb), 0.03);
            border: 1px solid rgba(var(--primary-rgb), 0.08);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.25s var(--ease-out);
            font-size: 0.72rem;
            color: var(--text-muted);
            white-space: nowrap;
            flex-shrink: 0;
        }
        .day-tab:hover {
            background: rgba(var(--primary-rgb), 0.12);
            border-color: rgba(var(--primary-rgb), 0.2);
            transform: translateY(-2px);
            box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.1);
        }
        .day-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
            box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
            font-weight: 600;
        }
        .day-tab-label {
            font-size: 0.65rem;
            font-weight: 600;
            margin-bottom: 3px;
            text-transform: uppercase;
            letter-spacing: 0.015em;
            opacity: 0.8;
        }
        .day-tab-date {
            font-size: 0.75rem;
            font-weight: 700;
            font-family: var(--font-mono);
        }

        /* Activities Timeline */
        .activities-timeline {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 500px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 6px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            cursor: grab;
        }
        .activities-timeline.grabbing {
            cursor: grabbing;
        }
        .activities-timeline::-webkit-scrollbar {
            width: 5px;
        }
        .activities-timeline::-webkit-scrollbar-track {
            background: rgba(var(--primary-rgb), 0.02);
            border-radius: 3px;
        }
        .activities-timeline::-webkit-scrollbar-thumb {
            background: rgba(var(--primary-rgb), 0.12);
            border-radius: 3px;
        }
        .activities-timeline::-webkit-scrollbar-thumb:hover {
            background: rgba(var(--primary-rgb), 0.25);
        }

        /* Activity Item New */
        .activity-item {
            position: relative;
            padding: 12px 14px;
            background: rgba(var(--primary-rgb), 0.02);
            border: 1px solid rgba(var(--primary-rgb), 0.08);
            border-radius: 10px;
            transition: all 0.2s var(--ease-out);
            animation: slideInUp 0.35s ease-out;
        }
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .activity-item:hover {
            border-color: rgba(var(--primary-rgb), 0.2);
            background: rgba(var(--primary-rgb), 0.08);
            transform: translateX(3px);
            box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.1);
        }

        .activity-item.type-school {
            border-color: rgba(59, 130, 246, 0.15);
            background: rgba(59, 130, 246, 0.05);
        }
        .activity-item.type-vacation {
            border-color: rgba(16, 185, 129, 0.15);
            background: rgba(16, 185, 129, 0.05);
        }
        .activity-item.type-sick {
            border-color: rgba(239, 68, 68, 0.15);
            background: rgba(239, 68, 68, 0.05);
        }
        .activity-item.type-gleittag {
            border-color: rgba(245, 158, 11, 0.15);
            background: rgba(245, 158, 11, 0.05);
        }

        .activity-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .activity-icon {
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(var(--primary-rgb), 0.1);
            border-radius: 10px;
        }
        .activity-header-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
        }
        .activity-type-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: rgba(var(--primary-rgb), 0.12);
            border: 1px solid rgba(var(--primary-rgb), 0.2);
            border-radius: 6px;
            font-size: 0.65rem;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            width: fit-content;
        }
        .activity-time {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-weight: 600;
        }

        .activity-content {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .activity-main {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.3;
        }
        .activity-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 0.9rem;
        }
        .activity-hours {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-mono);
            font-weight: 700;
            font-size: 0.95rem;
            padding: 6px 12px;
            background: rgba(var(--primary-rgb), 0.1);
            border-radius: 8px;
            border: 1px solid rgba(var(--primary-rgb), 0.2);
            width: fit-content;
            color: var(--primary);
        }
        .activity-project {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(var(--primary-rgb), 0.06);
            border-radius: 8px;
            border: 1px solid rgba(var(--primary-rgb), 0.12);
            font-size: 0.85rem;
            color: var(--text-main);
            width: fit-content;
            max-width: 100%;
            white-space: normal;
            overflow-wrap: break-word;
            font-weight: 500;
        }
        .activity-note {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-style: italic;
            padding: 10px 12px;
            background: rgba(var(--primary-rgb), 0.05);
            border-left: 3px solid rgba(var(--primary-rgb), 0.2);
            border-radius: 6px;
            line-height: 1.4;
        }

        /* Empty State */
        .activities-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
        }
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding: 40px 20px;
        }
        .empty-icon-svg {
            width: 56px;
            height: 56px;
            color: rgba(var(--primary-rgb), 0.3);
            opacity: 0.6;
        }
        .empty-text {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-muted);
            margin: 0;
        }
        .empty-subtext {
            font-size: 0.8rem;
            color: rgba(var(--text-muted), 0.7);
            margin: 0;
        }

        /* ─── RESPONSIVE: TABLET ─────────────────────────────────────── */
        @media (max-width: 768px) {
            .activities-card-new {
                padding: 18px;
                gap: 14px;
            }
            .activities-header-new {
                padding-bottom: 10px;
            }
            .activities-icon {
                width: 22px;
                height: 22px;
            }
            .activities-title-new {
                font-size: 1.05rem;
                font-weight: 600;
            }
            .activities-meta {
                font-size: 0.75rem;
            }
            .day-tab {
                min-width: 60px;
                padding: 9px 12px;
                font-size: 0.68rem;
            }
            .activities-timeline {
                max-height: 450px;
                gap: 8px;
            }
            .activity-item {
                padding: 11px 12px;
            }
        }

        /* ─── RESPONSIVE: MOBILE ─────────────────────────────────────── */
        @media (max-width: 480px) {
            .activities-card-new {
                padding: 14px;
                gap: 12px;
                border-radius: 14px;
            }
            .activities-header-new {
                padding-bottom: 10px;
            }
            .activities-title-container {
                gap: 10px;
            }
            .activities-icon {
                width: 20px;
                height: 20px;
            }
            .activities-title-new {
                font-size: 0.98rem;
                font-weight: 600;
            }
            .activities-meta {
                font-size: 0.72rem;
                margin-top: 2px;
            }
            .day-tabs-container {
                margin: 0 -8px;
                padding: 0 8px;
            }
            .day-tab {
                min-width: 60px;
                padding: 10px 12px;
                font-size: 0.65rem;
            }
            .activities-timeline {
                max-height: 450px;
                gap: 8px;
                padding-right: 4px;
            }
            .activity-item {
                padding: 10px 12px;
                border-radius: 10px;
                font-size: 0.68rem;
            }
            .carousel-wrapper {
                margin-bottom: 10px;
                border-radius: 10px;
            }
            .activity-card-header {
                gap: 10px;
            }
            .activity-icon {
                font-size: 1.6rem;
            }
            .activity-type-label {
                padding: 3px 8px;
                font-size: 0.65rem;
            }
            .activity-time {
                font-size: 0.7rem;
            }
            .activity-main {
                font-size: 1.3rem;
                font-weight: 700;
            }
            .activity-details {
                gap: 10px;
                font-size: 0.9rem;
            }
            .activity-hours {
                font-size: 1rem;
                padding: 5px 10px;
                gap: 6px;
            }
            .activity-project {
                font-size: 0.85rem;
                padding: 5px 10px;
            }
            .activity-note {
                font-size: 0.85rem;
                padding: 8px 10px;
            }
            .carousel-dots {
                gap: 5px;
            }
            .carousel-dot {
                width: 5px;
                height: 5px;
            }
            .carousel-dot.active {
                width: 18px;
            }
        }


        /* ─── MOOD SYSTEM ────────────────────────────────────────────── */
        .mood-btn {
            background: var(--bg-inset);
            border: 1px solid var(--border-default);
            border-radius: 50%;
            width: 46px;
            height: 46px;
            font-size: 21px;
            cursor: pointer;
            transition: all var(--dur-fast) var(--ease-out);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .mood-btn:hover {
            background: rgba(var(--primary-rgb), 0.08);
            border-color: rgba(var(--primary-rgb), 0.25);
            transform: scale(1.10);
        }
        .mood-display {
            font-size: 1.05em;
            margin-left: 6px;
            opacity: 0.82;
        }
        .mood-display[title*="glücklich"],
        .mood-display[title*="zufrieden"] { color: var(--success); }
        .mood-display[title*="neutral"]   { color: var(--text-muted); }
        .mood-display[title*="unzufrieden"],
        .mood-display[title*="traurig"],
        .mood-display[title*="wütend"]    { color: var(--danger); }
        .mood-display[title*="krank"],
        .mood-display[title*="müde"],
        .mood-display[title*="überwältigt"] { color: #f59e0b; }


        /* ─── GREETING ───────────────────────────────────────────────── */
        .greeting-enhanced {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .greeting-emoji {
            font-size: 1.25rem;
            display: inline-block;
            animation: greetWave 2.5s ease-in-out 1;
            transform-origin: 70% 70%;
        }
        @keyframes greetWave {
            0%, 100% { transform: rotate(0deg); }
            10%       { transform: rotate(14deg); }
            20%       { transform: rotate(-8deg); }
            30%       { transform: rotate(14deg); }
            40%       { transform: rotate(-4deg); }
            50%       { transform: rotate(10deg); }
            60%, 100% { transform: rotate(0deg); }
        }


        /* ─── WEATHER WIDGET ─────────────────────────────────────────── */
        .weather-trigger {
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            background: var(--bg-inset);
            border: 1px solid var(--border-subtle);
            transition: all var(--dur-fast) var(--ease-out);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .weather-trigger:hover {
            background: var(--bg-surface-hover);
            border-color: rgba(var(--primary-rgb), 0.18);
            transform: translateY(-1px);
        }
        .weather-icon { font-size: 1.35rem; line-height: 1; }
        .weather-temp {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-main);
            font-family: var(--font-mono);
        }
        /* (Legacy weather-modal/header/details/forecast styles removed.
           New living-weather experience now lives entirely in weather-live.css.) */
        @keyframes spin { to { transform: rotate(360deg); } }


        /* ─── MINI CALENDAR ──────────────────────────────────────────── */
        .mini-cal-header {
            font-size: 0.56rem;
            color: var(--text-muted);
            font-weight: 700;
            text-transform: uppercase;
            padding: 4px 0;
            font-family: var(--font-mono);
            letter-spacing: 0.04em;
        }
        .mini-cal-day {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-family: var(--font-mono);
            font-weight: 500;
            color: var(--text-muted);
            background: rgba(255, 255, 255, 0.012);
            cursor: pointer;
            transition: all var(--dur-fast);
            position: relative;
            border: 1px solid transparent;
        }
        [data-theme="light"] .mini-cal-day {
            background: rgba(0, 0, 0, 0.025);
        }
        .mini-cal-day:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: scale(1.07);
            z-index: 2;
        }
        [data-theme="light"] .mini-cal-day:hover {
            background: rgba(0, 0, 0, 0.05);
        }
        .mini-cal-day.has-entry { color: #fff; font-weight: 700; }
        [data-theme="light"] .mini-cal-day.has-entry { color: var(--text-main); }
        .mini-cal-day.type-work    { background: rgba(var(--primary-rgb), 0.18); border-color: rgba(var(--primary-rgb), 0.22); }
        .mini-cal-day.type-school  { background: rgba(59, 130, 246, 0.18);       border-color: rgba(59, 130, 246, 0.22); }
        .mini-cal-day.type-vacation{ background: rgba(16, 185, 129, 0.18);       border-color: rgba(16, 185, 129, 0.22); }
        .mini-cal-day.type-sick    { background: rgba(239, 68, 68, 0.18);        border-color: rgba(239, 68, 68, 0.22); }
        .mini-cal-day.type-holiday { background: rgba(245, 158, 11, 0.18);       border-color: rgba(245, 158, 11, 0.22); }
        .mini-cal-day.type-gleittag{ background: rgba(245, 158, 11, 0.14);       border-color: rgba(245, 158, 11, 0.25); }
        .mini-cal-day.is-today {
            border: 2px solid var(--primary) !important;
            box-shadow: 0 0 7px rgba(var(--primary-rgb), 0.22);
        }
        .mini-cal-day.is-weekend { opacity: 0.32; }
        .mini-cal-day.empty {
            background: transparent;
            cursor: default;
        }


        /* ─── WEEK COMPARISON ────────────────────────────────────────── */
        .week-cmp-block {
            text-align: center;
            padding: 12px;
            border-radius: 10px;
            background: var(--bg-inset);
            border: 1px solid var(--border-subtle);
        }
        .week-cmp-label {
            font-size: 0.62rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 6px;
            font-weight: 600;
        }
        .week-cmp-hours {
            font-size: 1.75rem;
            font-weight: 800;
            font-family: var(--font-mono);
            color: var(--text-main);
        }
        .week-cmp-days {
            font-size: 0.65rem;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .week-cmp-delta {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        .week-cmp-arrow { font-size: 1.75rem; line-height: 1; }
        .week-cmp-pct {
            font-size: 0.78rem;
            font-weight: 700;
            font-family: var(--font-mono);
            padding: 3px 10px;
            border-radius: 6px;
        }


        /* ─── ANIMATIONS ─────────────────────────────────────────────── */
        @keyframes heroAccentSlide {
            0%, 100% { background-position: -100% 0; }
            50%       { background-position: 200% 0; }
        }
        @keyframes indicatorPulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
            50%       { opacity: 0.55; box-shadow: 0 0 3px rgba(16, 185, 129, 0.2); }
        }
        @keyframes streakPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50%       { transform: scale(1.10); opacity: 0.75; }
        }
        @keyframes greetWave {
            0%, 100% { transform: rotate(0deg); }
            10%       { transform: rotate(14deg); }
            20%       { transform: rotate(-8deg); }
            30%       { transform: rotate(14deg); }
            40%       { transform: rotate(-4deg); }
            50%       { transform: rotate(10deg); }
            60%, 100% { transform: rotate(0deg); }
        }
        @keyframes badgePop {
            0%   { transform: scale(0); opacity: 0; }
            50%  { transform: scale(1.18); }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        @keyframes fadeOut {
            from { opacity: 1; transform: translateY(0); }
            to   { opacity: 0; transform: translateY(-10px); }
        }
        @keyframes slideUp {
            from { transform: translateY(28px); opacity: 0; }
            to   { transform: translateY(0); opacity: 1; }
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50%       { opacity: 0.6; }
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        @keyframes trendPulse {
            0%, 100% { r: 5; opacity: 0.9; }
            50%       { r: 8; opacity: 1; }
        }
        /* Moderner Live-Marker: einzelner, auslaufender Radar-Ping */
        @keyframes trendPing {
            0%   { r: 3.5; opacity: 0.55; }
            70%  { opacity: 0; }
            100% { r: 15;  opacity: 0; }
        }
        .trend-marker-ping {
            animation: trendPing 2.6s cubic-bezier(0, 0.2, 0.7, 1) infinite;
        }
        @media (prefers-reduced-motion: reduce) {
            .trend-marker-ping { animation: none; opacity: 0.4; }
        }
        @keyframes drawLine {
            from { stroke-dasharray: 9999; stroke-dashoffset: 9999; }
            to   { stroke-dasharray: 9999; stroke-dashoffset: 0; }
        }
        @keyframes donutFill {
            from { stroke-dasharray: 0 251; }
            to   { stroke-dasharray: var(--dash-value, 251) 251; }
        }
        @keyframes barGrow {
            from { transform: scaleY(0); opacity: 0; }
            to   { transform: scaleY(1); opacity: 0.85; }
        }
        @keyframes blink {
            0%, 49%  { border-right-color: var(--primary); }
            50%, 100%{ border-right-color: transparent; }
        }
        @keyframes thinkingPulse {
            0%, 100% { opacity: 0.5; transform: scale(1); }
            50%       { opacity: 1; transform: scale(1.1); }
        }
        @keyframes thinkingDots {
            0%, 20%  { opacity: 0.3; }
            50%       { opacity: 1; }
            100%      { opacity: 0.3; }
        }
        @keyframes thinkingFloat {
            0%, 100% { transform: translateY(0px); }
            50%       { transform: translateY(-4px); }
        }
        @keyframes particleFloat {
            0%   { transform: translateY(0) translateX(0); opacity: 1; }
            100% { transform: translateY(-100px) translateX(var(--tx)); opacity: 0; }
        }
        @keyframes dotDance {
            0%, 100% { cy: var(--original-y); }
            50%       { cy: calc(var(--original-y) - 8px); }
        }
        @keyframes rainbowShift {
            0%   { filter: hue-rotate(0deg); }
            100% { filter: hue-rotate(360deg); }
        }
        @keyframes shake {
            0%, 100%             { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
            20%, 40%, 60%, 80%   { transform: translateX(3px); }
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50%       { transform: translateY(-8px); }
        }
        @keyframes glitch {
            0%   { clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 0% 50%); }
            50%  { clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%); }
            100% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
        }
        @keyframes floatUp {
            0%   { transform: translateY(0) rotateZ(0deg); opacity: 1; }
            100% { transform: translateY(-60px) rotateZ(8deg); opacity: 0; }
        }
        @keyframes expandPulse {
            0%   { r: 2; opacity: 1; }
            100% { r: 20; opacity: 0; }
        }
        @keyframes zigzag {
            0%   { transform: translateX(0); }
            25%  { transform: translateX(4px); }
            50%  { transform: translateX(-4px); }
            75%  { transform: translateX(4px); }
            100% { transform: translateX(0); }
        }

        /* Modern Bar Chart Animations */
        @keyframes barSegmentFill {
            from { flex-basis: 0% !important; opacity: 0.7; }
            to { opacity: 1; }
        }

        @keyframes barGlowPulse {
            0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
            50% { filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
        }

        @keyframes barSegmentSlide {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes labelFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

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

        /* Stacked Bar Segments - Smooth entrance with flex transition */
        #donutWork { animation: barSegmentSlide 1.1s ease-out 0ms forwards; }
        #donutSchool { animation: barSegmentSlide 1.1s ease-out 100ms forwards; }
        #donutVac { animation: barSegmentSlide 1.1s ease-out 200ms forwards; }
        #donutSick { animation: barSegmentSlide 1.1s ease-out 300ms forwards; }
        #donutHoliday { animation: barSegmentSlide 1.1s ease-out 400ms forwards; }

        .donut-segment {
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .donut-segment:hover {
            filter: brightness(1.2) drop-shadow(0 4px 14px rgba(0,0,0,0.25));
            transform: scaleY(1.2);
            z-index: 10;
        }

        .segment-label {
            animation: labelFadeIn 0.6s ease-out 400ms forwards;
            opacity: 0;
            transition: all 0.2s ease;
            font-weight: 700;
            /* Dunkles Pill-Backdrop, damit weißer Text auf jedem Segment
               (Purple/Grün/Orange/Rot) die WCAG-AA-Kontrastschwelle reißt. */
            background: rgba(0, 0, 0, 0.55);
            color: #ffffff !important;
            padding: 2px 6px;
            border-radius: 4px;
            -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
        }

        .donut-segment:hover .segment-label {
            opacity: 1;
            font-size: 0.7rem;
            background: rgba(0, 0, 0, 0.7);
        }

        /* Legend Cards - Staggered entrance */
        .legend-card {
            animation: cardSlideUp var(--dur-normal) var(--ease-out);
            transition: all 0.3s var(--ease-out);
        }

        .legend-card:nth-child(1) { animation-delay: 480ms; }
        .legend-card:nth-child(2) { animation-delay: 520ms; }
        .legend-card:nth-child(3) { animation-delay: 560ms; }
        .legend-card:nth-child(4) { animation-delay: 600ms; }
        .legend-card:nth-child(5) { animation-delay: 640ms; }

        .legend-card:hover {
            transform: translateY(-3px);
            background: rgba(var(--primary-rgb), 0.12);
            border-color: rgba(var(--primary-rgb), 0.3);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

        /* Center Info Animation */
        .donut-center-info {
            animation: fadeInScale 0.6s var(--ease-out) 0ms forwards;
        }

        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .center-value {
            animation: counterUp 0.8s var(--ease-out) 200ms forwards;
            opacity: 0;
        }

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

        /* Effect utility classes */
        .effect-shake         { animation: shake 0.4s ease-in-out; }
        .effect-bounce        { animation: bounce 0.6s ease-in-out; }
        .effect-glow          { filter: drop-shadow(0 0 8px var(--primary)) drop-shadow(0 0 16px rgba(var(--primary-rgb), 0.45)); }
        .effect-rainbow       { animation: rainbowShift 3s linear infinite; }
        .effect-pulse-intense { animation: pulse 0.6s ease-in-out infinite; }
        .particle-container   { position: fixed; pointer-events: none; z-index: 999; }


        /* ─── ACCESSIBILITY ──────────────────────────────────────────── */
        @media (prefers-reduced-motion: reduce) {
            .dashboard-item { animation: none !important; }
            .kpi-card__indicator { animation: none !important; }
            .streak-active { animation: none !important; }
            .greeting-emoji { animation: none !important; }
            * {
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
            }
            .ring-val { transition: stroke-dashoffset 0.01ms !important; }
            .kpi-stats__vacation-fill { transition: width 0.01ms !important; }
        }

        /* Light theme adjustments */
        [data-theme="light"] .ambient-orb { opacity: 0.45; filter: blur(100px); }


        /* ─── RESPONSIVE ─────────────────────────────────────────────── */
        @media (max-width: 768px) {
            .kpi-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }
            .charts-row {
                grid-template-columns: 1fr;
            }
            .trend-stats-bar {
                grid-template-columns: repeat(3, 1fr);
                gap: 3px;
            }
            .entry-form__row,
            .entry-form__actions {
                flex-direction: column;
            }
            .entry-form__time-group { flex: 1; }
            .quick-actions {
                border-radius: 10px;
                padding: 2px;
            }
            .quick-actions button {
                padding: 6px 9px;
                font-size: 0.72rem;
            }
            .dashboard-grid { gap: 1rem; }
        }

        @media (max-width: 480px) {
            .kpi-grid {
                grid-template-columns: 1fr;
            }
            .gleitzeit-hero-value {
                font-size: 2.4rem;
            }
            .trend-stats-bar {
                grid-template-columns: repeat(2, 1fr);
            }
            .trend-container {
                height: 180px;
            }
            .donut-container {
                height: 140px;
            }
        }

        /* ═══ GLEITZEIT CARD V2 — FINAL NUCLEAR OVERRIDE ═══ */
        .card.gz-card-v2,
        div.card.gz-card-v2,
        .kpi-grid .card.gz-card-v2 {
            position: relative !important;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.04) 50%, rgba(var(--primary-rgb), 0.02) 100%) !important;
            border: 1px solid rgba(var(--primary-rgb), 0.12) !important;
            border-radius: 16px !important;
            overflow: hidden !important;
            padding: 1.25rem !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 0.6rem !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            box-shadow: none !important;
            margin-bottom: 0 !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            min-height: auto !important;
            container-type: inline-size;
            container-name: gz-card;
        }

        .card.gz-card-v2:hover,
        div.card.gz-card-v2:hover,
        .kpi-grid .card.gz-card-v2:hover {
            border-color: rgba(var(--primary-rgb), 0.25) !important;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.06) 50%, rgba(var(--primary-rgb), 0.03) 100%) !important;
            box-shadow: 0 12px 48px rgba(var(--primary-rgb), 0.12) !important;
        }
