        /* ═══ PERFORMANCE MODULE — Clean SaaS (SAP / Linear / Vercel Vibe) ═══ */

        /* ─── Page Hero Strip ─────────────────────────────────────────── */
        .perf-hero {
            display: grid;
            grid-template-columns: 44px 1fr auto;
            align-items: center;
            gap: 14px;
            padding: 16px 20px;
            margin-bottom: 1.25rem;
            background:
                linear-gradient(135deg,
                    rgba(var(--primary-rgb), 0.07) 0%,
                    rgba(var(--primary-rgb), 0.015) 55%,
                    rgba(255, 255, 255, 0) 100%);
            border: 1px solid var(--border);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
        }
        .perf-hero::after {
            content: '';
            position: absolute;
            top: -60px; right: -40px;
            width: 180px; height: 180px;
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.10), transparent 65%);
            pointer-events: none;
        }
        .perf-hero__icon {
            width: 44px; height: 44px;
            display: inline-flex; align-items: center; justify-content: center;
            border-radius: 12px;
            background: rgba(var(--primary-rgb), 0.12);
            border: 1px solid rgba(var(--primary-rgb), 0.20);
            color: var(--primary);
            position: relative;
            z-index: 1;
        }
        .perf-hero__icon svg { width: 22px; height: 22px; }
        .perf-hero__text { min-width: 0; position: relative; z-index: 1; }
        .perf-hero__title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.015em;
            line-height: 1.2;
            margin: 0 0 2px 0;
        }
        .perf-hero__sub {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin: 0;
            font-weight: 400;
            line-height: 1.35;
        }
        .perf-hero__scope {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border);
            font-size: 0.72rem;
            font-weight: 500;
            color: var(--text-muted);
            white-space: nowrap;
            position: relative; z-index: 1;
        }
        .perf-hero__scope-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--success);
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
        }


        /* ─── KPI Stat Tiles ──────────────────────────────────────────── */
        .perf-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 1.25rem;
        }
        .perf-stat {
            background: rgba(17, 17, 24, 0.55);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 16px 18px;
            transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        }
        .perf-stat:hover {
            border-color: rgba(255, 255, 255, 0.10);
            transform: translateY(-1px);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
        }
        .perf-stat__head {
            display: flex; align-items: center; gap: 9px;
            margin-bottom: 12px;
        }
        .perf-stat__icon {
            width: 28px; height: 28px;
            border-radius: 8px;
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(var(--primary-rgb), 0.12);
            color: var(--primary);
            flex-shrink: 0;
        }
        .perf-stat__icon svg { width: 14px; height: 14px; }
        .perf-stat[data-accent="cyan"] .perf-stat__icon {
            background: rgba(6, 182, 212, 0.12);
            color: #06b6d4;
        }
        .perf-stat[data-accent="amber"] .perf-stat__icon {
            background: rgba(245, 158, 11, 0.12);
            color: #f59e0b;
        }
        .perf-stat[data-accent="success"] .perf-stat__icon {
            background: rgba(16, 185, 129, 0.12);
            color: var(--success);
        }
        .perf-stat__label {
            font-size: 0.72rem;
            color: var(--text-muted);
            font-weight: 500;
            letter-spacing: 0.01em;
            line-height: 1.2;
        }
        .perf-stat__value {
            font-family: var(--font-mono);
            font-size: 1.85rem;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.025em;
            line-height: 1.1;
            margin-bottom: 6px;
        }
        .perf-stat[data-accent="cyan"] .perf-stat__value { color: #06b6d4; }
        .perf-stat[data-accent="amber"] .perf-stat__value { color: #f59e0b; }
        .perf-stat__foot {
            font-size: 0.72rem;
            color: var(--text-muted);
            font-weight: 400;
            line-height: 1.3;
        }


        /* ─── Card Container ──────────────────────────────────────────── */
        .perf-card {
            background: var(--bg-glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 18px 20px;
            margin-bottom: 1.25rem;
            transition: border-color 0.2s ease;
        }
        .perf-card:hover {
            border-color: rgba(255, 255, 255, 0.09);
        }
        .perf-card__head {
            display: flex; align-items: flex-start; justify-content: space-between;
            gap: 14px;
            margin-bottom: 16px;
        }
        .perf-card__title {
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--text-main);
            letter-spacing: -0.01em;
            margin: 0;
            line-height: 1.25;
        }
        .perf-card__sub {
            font-size: 0.74rem;
            color: var(--text-muted);
            margin-top: 3px;
            font-weight: 400;
            line-height: 1.3;
        }

        .perf-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1.25rem;
        }
        .perf-grid-2 > .perf-card { margin-bottom: 0; }

        .perf-grid-deep {
            display: grid;
            grid-template-columns: 1fr 1.6fr;
            gap: 1rem;
            margin-bottom: 1.25rem;
        }
        .perf-grid-deep > .perf-card { margin-bottom: 0; }


        /* ─── Legend Chips ────────────────────────────────────────────── */
        .perf-legend {
            display: inline-flex;
            flex-wrap: wrap;
            gap: 6px;
            flex-shrink: 0;
        }
        .perf-legend__item {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border);
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 500;
        }
        .perf-dot {
            width: 8px; height: 8px; border-radius: 50%;
            flex-shrink: 0;
        }


        /* ─── Compliance Audit Cards ──────────────────────────────────── */
        .perf-audit-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
        .perf-audit {
            background: rgba(17, 17, 24, 0.5);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px 16px;
            transition: border-color 0.2s ease, transform 0.2s ease;
        }
        .perf-audit:hover {
            border-color: rgba(255, 255, 255, 0.10);
            transform: translateY(-1px);
        }
        .perf-audit__top {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 14px;
        }
        .perf-audit__icon {
            width: 32px; height: 32px;
            border-radius: 9px;
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border);
            color: var(--text-muted);
        }
        .perf-audit__icon svg { width: 16px; height: 16px; }
        .perf-audit[data-status="ok"] .perf-audit__icon {
            background: rgba(16, 185, 129, 0.10);
            border-color: rgba(16, 185, 129, 0.18);
            color: var(--success);
        }
        .perf-audit[data-status="warn"] .perf-audit__icon {
            background: rgba(251, 191, 36, 0.10);
            border-color: rgba(251, 191, 36, 0.18);
            color: var(--audit-warn);
        }
        .perf-audit[data-status="error"] .perf-audit__icon {
            background: rgba(239, 68, 68, 0.10);
            border-color: rgba(239, 68, 68, 0.18);
            color: var(--danger);
        }
        .perf-audit__pill {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.10);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.20);
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }
        .perf-audit__pill::before {
            content: '';
            width: 5px; height: 5px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 0 6px currentColor;
        }
        .perf-audit[data-status="warn"] .perf-audit__pill {
            background: rgba(251, 191, 36, 0.10);
            color: var(--audit-warn);
            border-color: rgba(251, 191, 36, 0.20);
        }
        .perf-audit[data-status="error"] .perf-audit__pill {
            background: rgba(239, 68, 68, 0.10);
            color: var(--danger);
            border-color: rgba(239, 68, 68, 0.20);
        }
        .perf-audit__label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 2px;
            line-height: 1.25;
        }
        .perf-audit__desc {
            font-size: 0.72rem;
            color: var(--text-muted);
            line-height: 1.3;
        }


        /* ─── Mood Strip ──────────────────────────────────────────────── */
        .perf-mood {
            display: flex; flex-wrap: wrap; gap: 8px;
            padding: 4px 0 2px;
        }


        /* ─── Weekly Soll/Ist Bar Chart (refined) ─────────────────────── */
        .stacked-bar-chart {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding: 4px 0;
        }
        .week-row {
            display: grid;
            grid-template-columns: 60px 1fr 88px;
            align-items: center;
            gap: 14px;
        }
        .week-label {
            font-weight: 600;
            color: var(--text-muted);
            font-size: 0.78rem;
            letter-spacing: 0.01em;
        }
        .bar-container-wrapper {
            position: relative;
            height: 10px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 999px;
            overflow: hidden;
        }
        .bar-actual-fill {
            position: absolute;
            top: 0; left: 0;
            height: 100%;
            background: var(--work-color);
            transition: width 0.8s ease;
            border-radius: 999px;
        }
        .bar-target-overlay {
            position: absolute;
            top: -3px;
            bottom: -3px;
            width: 0;
            border-left: 2px solid rgba(255, 255, 255, 0.45);
            z-index: 2;
        }
        .bar-value-label {
            font-size: 0.78rem;
            font-family: var(--font-mono);
            font-weight: 600;
            text-align: right;
            color: var(--text-main);
            letter-spacing: -0.01em;
        }


        /* ─── Productivity by Weekday (refined) ───────────────────────── */
        .horizontal-bar-container {
            padding: 4px 0;
        }
        .horizontal-bar-row {
            display: grid;
            grid-template-columns: 36px 1fr 70px;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .horizontal-bar-row:last-child { margin-bottom: 0; }
        .bar-label-day {
            font-weight: 600;
            color: var(--text-muted);
            font-size: 0.78rem;
            text-align: center;
            letter-spacing: 0.01em;
        }
        .bar-chart-area {
            height: 8px;
            background: rgba(255, 255, 255, 0.04);
            position: relative;
            border-radius: 999px;
        }
        .bar-zero-line {
            position: absolute;
            top: -2px; bottom: -2px;
            left: 50%;
            width: 1px;
            background: rgba(255, 255, 255, 0.18);
            z-index: 1;
        }
        .bar-value {
            position: absolute;
            top: 0; bottom: 0;
            border-radius: 999px;
            transition: width 0.8s ease, left 0.8s ease;
        }
        .bar-value.positive {
            background: var(--success);
            left: 50%;
        }
        .bar-value.negative {
            background: var(--danger);
            right: 50%;
        }
        .bar-text-value {
            font-size: 0.78rem;
            font-family: var(--font-mono);
            font-weight: 600;
            text-align: right;
            letter-spacing: -0.01em;
        }


        /* ─── Heatmap (refined) ───────────────────────────────────────── */
        .heatmap-grid {
            display: grid;
            grid-template-columns: repeat(16, 1fr);
            gap: 4px;
            padding: 4px 0 0;
        }
        .heatmap-cell {
            height: 28px;
            width: 100%;
            border-radius: 6px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.68rem;
            color: var(--text-main);
            transition: background-color 0.4s ease, transform 0.15s ease;
            border: 1px solid rgba(255, 255, 255, 0.02);
        }
        .heatmap-cell:hover {
            transform: scale(1.08);
            border-color: rgba(255, 255, 255, 0.10);
        }
        .heatmap-label {
            text-align: center;
            font-size: 0.65rem;
            color: var(--text-muted);
            font-weight: 500;
            margin-bottom: 4px;
        }


        /* ─── Legacy compatibility (kept lean) ────────────────────────── */
        .kpi-large { /* deprecated wrapper, falls noch genutzt */
            text-align: center;
            padding: 1.5rem 1rem;
        }
        .kpi-large-value {
            font-size: 2rem;
            font-weight: 700;
            font-family: var(--font-mono);
            color: var(--text-main);
        }
        .kpi-large-label {
            font-size: 0.72rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }


        /* ─── Responsive ──────────────────────────────────────────────── */
        @media (max-width: 1100px) {
            .perf-grid-deep { grid-template-columns: 1fr; }
        }

        @media (max-width: 900px) {
            .perf-stats { grid-template-columns: repeat(2, 1fr); }
            .perf-grid-2 { grid-template-columns: 1fr; }
            .perf-audit-grid { grid-template-columns: 1fr; }

            .perf-card__head {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .perf-hero {
                grid-template-columns: 40px 1fr;
                padding: 14px 16px;
            }
            .perf-hero__scope {
                grid-column: 1 / -1;
                justify-self: start;
            }
        }

        @media (max-width: 520px) {
            .perf-stats { grid-template-columns: 1fr; }
            .perf-card { padding: 16px; }
            .perf-stat__value { font-size: 1.6rem; }
            .week-row { grid-template-columns: 50px 1fr 78px; gap: 10px; }
            .week-label, .bar-value-label { font-size: 0.72rem; }
            .horizontal-bar-row { grid-template-columns: 30px 1fr 60px; gap: 10px; }
            .heatmap-cell { height: 22px; }
        }
