        /* ===== SETTINGS MODAL — DARK CORPORATE ===== */
        #settingsModal .modal-box {
            background: #0e0e11;
            border: 1px solid rgba(255,255,255,0.06);
            /* backdrop-filter entfernt: BG ist opak, Blur war reine GPU-Last */
        }
        .settings-header {
            background: rgba(255,255,255,0.02);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            padding: 1.25rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }
        .settings-header-title {
            margin: 0;
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .settings-header-icon {
            width: 34px;
            height: 34px;
            background: rgba(255,255,255,0.06);
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
            color: var(--text-main);
        }
        .settings-header-icon svg {
            width: 18px !important;
            height: 18px !important;
            display: block;
            flex-shrink: 0;
        }
        .settings-close-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: var(--text-muted);
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .settings-close-btn:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }
        .settings-close-btn--locked,
        .settings-close-btn--locked:hover {
            opacity: 0.32;
            cursor: not-allowed;
            background: rgba(255,255,255,0.02);
            border-color: rgba(255,255,255,0.06);
            color: var(--text-muted);
            transform: none;
            pointer-events: none;
        }

        @keyframes cloud-spin {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }
        .cloud-spin {
            animation: cloud-spin 0.9s linear infinite;
            transform-origin: 50% 50%;
        }
        .settings-nav {
            display: flex;
            gap: 4px;
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            overflow-x: auto;
            flex-shrink: 0;
            background: rgba(255,255,255,0.01);
            scrollbar-width: none;
        }
        .settings-nav::-webkit-scrollbar { display: none; }
        .settings-tab {
            padding: 8px 14px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.2s ease;
            font-size: 0.8rem;
            font-weight: 500;
            white-space: nowrap;
            letter-spacing: -0.01em;
            border-bottom: none !important;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }
        .settings-tab svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            opacity: 0.85;
        }
        .settings-tab.active svg { opacity: 1; }
        .settings-tab:hover {
            background: rgba(255,255,255,0.06);
            color: var(--text-main);
        }
        .settings-tab.active {
            background: rgba(255,255,255,0.08) !important;
            color: #fff !important;
            font-weight: 600;
            border-bottom-color: transparent !important;
        }
        .settings-tab-content { animation: fadeIn 0.3s ease; }
        .settings-section {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 14px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            transition: border-color 0.2s;
        }
        .settings-section:hover { border-color: rgba(255,255,255,0.1); }
        .settings-section-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin: 0 0 1rem 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .settings-section-title::before {
            content: '';
            width: 3px;
            height: 14px;
            background: rgba(255,255,255,0.25);
            border-radius: 2px;
            flex-shrink: 0;
        }
        .settings-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 600;
            display: block;
            margin-bottom: 8px;
        }
        .settings-hint {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.35);
            line-height: 1.5;
        }
        .settings-info {
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 10px;
            padding: 1rem 1.25rem;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.6;
        }
        .settings-divider {
            height: 1px;
            background: rgba(255,255,255,0.06);
            margin: 1.25rem 0;
            border: none;
        }
        
        /* ═══════ API STATUS MONITOR ═══════ */
        @keyframes pulse-dot {
            0%, 100% { opacity:1; }
            50% { opacity:0.4; }
        }
        .api-range-tab {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            color: rgba(255,255,255,0.4);
            font-size: 0.68rem;
            font-weight: 600;
            padding: 4px 12px;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 0;
        }
        .api-range-tab:first-child { border-radius: 6px 0 0 6px; }
        .api-range-tab:last-child { border-radius: 0 6px 6px 0; }
        .api-range-tab:not(:first-child) { border-left: none; }
        .api-range-tab.active {
            background: rgba(255,255,255,0.08);
            color: #fff;
            border-color: rgba(255,255,255,0.12);
        }
        .api-range-tab:hover:not(.active) {
            background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.6);
        }
        .api-status-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.72rem;
            font-weight: 700;
            font-family: var(--font-mono);
            line-height: 1;
        }
        .api-status-pill.s2xx { background:rgba(16,185,129,0.12); color:#10b981; border:1px solid rgba(16,185,129,0.2); }
        .api-status-pill.s3xx { background:rgba(6,182,212,0.12); color:#06b6d4; border:1px solid rgba(6,182,212,0.2); }
        .api-status-pill.s4xx { background:rgba(245,158,11,0.12); color:#f59e0b; border:1px solid rgba(245,158,11,0.2); }
        .api-status-pill.s5xx { background:rgba(239,68,68,0.12); color:#ef4444; border:1px solid rgba(239,68,68,0.2); }
        .api-endpoint-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 7px 10px;
            background: rgba(255,255,255,0.015);
            border: 1px solid rgba(255,255,255,0.03);
            border-radius: 8px;
            transition: background 0.15s;
        }
        .api-endpoint-row:hover { background: rgba(255,255,255,0.03); }
        .api-method-badge {
            font-size: 0.6rem;
            font-weight: 800;
            font-family: var(--font-mono);
            padding: 2px 6px;
            border-radius: 4px;
            letter-spacing: 0.03em;
            text-transform: uppercase;
            min-width: 38px;
            text-align: center;
        }
        .api-method-badge.get  { background:rgba(16,185,129,0.15); color:#10b981; }
        .api-method-badge.post { background:rgba(99,102,241,0.15); color:#818cf8; }
        .api-method-badge.head { background:rgba(148,163,184,0.12); color:#94a3b8; }
        .api-method-badge.put  { background:rgba(245,158,11,0.15); color:#f59e0b; }
        .api-method-badge.del  { background:rgba(239,68,68,0.15); color:#ef4444; }
        .api-method-badge.opt  { background:rgba(var(--primary-rgb),0.12); color:var(--primary); }
        .api-log-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 8px;
            border-radius: 6px;
            font-size: 0.72rem;
            transition: background 0.15s;
        }
        .api-log-row:hover { background:rgba(255,255,255,0.03); }
        .api-log-status {
            font-family: var(--font-mono);
            font-weight: 800;
            font-size: 0.68rem;
            min-width: 28px;
            text-align: center;
        }
        .api-log-status.c2 { color:#10b981; }
        .api-log-status.c3 { color:#06b6d4; }
        .api-log-status.c4 { color:#f59e0b; }
        .api-log-status.c5 { color:#ef4444; }
        .api-log-status.c-adblock { color:#f59e0b; }
        .api-log-status.c-neterr  { color:rgba(255,255,255,0.25); }
        .api-status-pill.s-adblock { background:rgba(245,158,11,0.12); color:#f59e0b; border:1px solid rgba(245,158,11,0.2); }
        .api-status-pill.s-neterr  { background:rgba(255,255,255,0.05); color:rgba(255,255,255,0.35); border:1px solid rgba(255,255,255,0.08); }
        /* Adblock / 503 Banner */
        .api-diag-banner {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 0.72rem;
            line-height: 1.5;
            margin-bottom: 0;
        }
        .api-diag-banner.adblock {
            background: rgba(245,158,11,0.08);
            border: 1px solid rgba(245,158,11,0.2);
            color: rgba(245,158,11,0.9);
        }
        .api-diag-banner.server503 {
            background: rgba(239,68,68,0.08);
            border: 1px solid rgba(239,68,68,0.2);
            color: rgba(239,68,68,0.9);
        }
        .api-diag-banner.neterr {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.4);
        }
        .api-diag-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
        .api-diag-title { font-weight: 700; margin-bottom: 2px; }
        .api-log-path {
            color: rgba(255,255,255,0.5);
            font-family: var(--font-mono);
            font-size: 0.68rem;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .api-log-time {
            color: rgba(255,255,255,0.2);
            font-size: 0.62rem;
            white-space: nowrap;
            font-family: var(--font-mono);
        }
        /* ═══════ END API STATUS MONITOR ═══════ */
        
        .settings-btn {
            padding: 10px 20px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: inherit;
            letter-spacing: -0.01em;
        }
        .settings-btn svg { flex-shrink: 0; }
        .settings-btn:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.15);
            transform: translateY(-1px);
        }
        .settings-btn-primary {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            box-shadow: none;
        }
        .settings-btn-primary:hover {
            background: rgba(255,255,255,0.15);
            border-color: rgba(255,255,255,0.2);
            transform: translateY(-1px);
        }
        @keyframes cloud-btn-shake {
            0%,100% { transform: translateX(0); }
            15%      { transform: translateX(-6px); }
            30%      { transform: translateX(6px); }
            45%      { transform: translateX(-4px); }
            60%      { transform: translateX(4px); }
            75%      { transform: translateX(-2px); }
            90%      { transform: translateX(2px); }
        }
        @keyframes cloud-btn-glow-in {
            from { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
            to   { box-shadow: 0 0 18px 4px rgba(16,185,129,0.45); }
        }
        .cloud-btn-success {
            background: rgba(16,185,129,0.18) !important;
            border-color: rgba(16,185,129,0.55) !important;
            color: #10b981 !important;
            animation: cloud-btn-glow-in 0.3s ease forwards;
            transition: background 0.25s, border-color 0.25s, color 0.25s !important;
        }
        .cloud-btn-error {
            background: rgba(239,68,68,0.18) !important;
            border-color: rgba(239,68,68,0.55) !important;
            color: #ef4444 !important;
            animation: cloud-btn-shake 0.5s ease;
            transition: background 0.25s, border-color 0.25s, color 0.25s !important;
        }
        .settings-graphic-card {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s;
            cursor: pointer;
            contain: layout style paint;
            will-change: transform, box-shadow;
        }
        .settings-graphic-card:hover {
            border-color: rgba(255,255,255,0.15);
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        }
        .settings-graphic-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
            decoding: async;
            content-visibility: auto;
        }
        .settings-graphic-card .card-info {
            padding: 1rem 1.25rem;
        }
        .settings-graphic-card .card-info h5 {
            color: var(--text-main);
            margin: 0 0 4px 0;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .settings-graphic-card .card-info p {
            color: var(--text-muted);
            margin: 0;
            font-size: 0.78rem;
        }
        .color-dot { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,0.08); transition: all 0.2s; }
        .color-dot:hover { transform: scale(1.15); border-color: rgba(255,255,255,0.3); }
        .color-dot.active { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 8px rgba(255,255,255,0.2); }


        /* Berufsschule settings styling */
        #settings-tab-school {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            padding: 1.5rem;
            border-radius: 16px;
            margin-bottom: 1rem;
        }
        .school-settings-hero {
            display: flex; align-items: center; gap: 14px;
            padding: 16px 20px; border-radius: 14px; margin-bottom: 20px;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.08) 100%);
            border: 1px solid rgba(var(--primary-rgb), 0.2);
        }
        .school-settings-hero-icon {
            width: 48px; height: 48px; border-radius: 14px; display: flex;
            align-items: center; justify-content: center; font-size: 1.6rem;
            background: rgba(var(--primary-rgb), 0.15); border: 1px solid rgba(var(--primary-rgb), 0.25);
            flex-shrink: 0;
        }
        .school-settings-section {
            margin-bottom: 20px; padding: 16px; border-radius: 14px;
            background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
        }
        .school-settings-label {
            font-size: 0.85rem; font-weight: 700; color: var(--text-main);
            margin-bottom: 12px; letter-spacing: 0.3px;
        }
        .school-day-chips {
            display: flex; gap: 8px; flex-wrap: wrap;
        }
        .school-day-chip {
            position: relative; cursor: pointer; user-select: none;
        }
        .school-day-chip input[type="checkbox"] {
            position: absolute; opacity: 0; width: 0; height: 0;
        }
        .school-day-chip span {
            display: flex; align-items: center; justify-content: center;
            width: 52px; height: 44px; border-radius: 12px; font-size: 0.85rem;
            font-weight: 700; color: var(--text-muted);
            background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.08);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .school-day-chip input:checked + span {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-rgb), 0.2));
            border-color: rgba(var(--primary-rgb), 0.5); color: var(--primary);
            box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.15);
        }
        .school-day-chip:hover span {
            border-color: rgba(var(--primary-rgb), 0.3); transform: translateY(-1px);
        }
        .school-settings-add-btn {
            display: flex; align-items: center; gap: 5px; padding: 6px 14px;
            border-radius: 10px; font-size: 0.8rem; font-weight: 600;
            background: rgba(var(--primary-rgb), 0.1); border: 1px solid rgba(var(--primary-rgb), 0.25);
            color: var(--primary); cursor: pointer; transition: all 0.2s;
            font-family: inherit;
        }
        .school-settings-add-btn:hover {
            background: rgba(var(--primary-rgb), 0.18); transform: translateY(-1px);
        }
        .school-settings-add-btn span { font-size: 1rem; font-weight: 800; }
        .bi-rule {
            display: grid; grid-template-columns: 1fr 80px 1fr 40px;
            gap: 10px; align-items: center; padding: 12px 14px;
            border-radius: 12px; background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            transition: border-color 0.2s;
        }
        .bi-rule:hover { border-color: rgba(var(--primary-rgb), 0.2); }
        .bi-rule .glass-select, .bi-rule .glass-input {
            padding: 9px 12px; border-radius: 10px; font-size: 0.85rem;
            background: rgba(0,0,0,0.22);
        }
        .bi-rule button {
            padding: 6px; min-width: 36px; height: 36px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1rem; color: var(--text-muted); transition: all 0.2s;
        }
        .bi-rule button:hover { color: #ef4444; background: rgba(239,68,68,0.1); }
        .bi-rule .bi-interval { text-align: center; }
        .school-settings-hint {
            font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin: 0;
        }
        .school-check-row {
            display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
        }
        .school-check-row .glass-input { flex: 1; min-width: 140px; max-width: 200px; }
        .school-settings-check-btn {
            padding: 9px 18px; border-radius: 10px; font-size: 0.82rem; font-weight: 600;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
            color: var(--text-main); cursor: pointer; transition: all 0.2s;
            font-family: inherit;
        }
        .school-settings-check-btn:hover {
            background: rgba(255,255,255,0.08); transform: translateY(-1px);
        }
        .school-settings-check-today {
            background: rgba(var(--primary-rgb), 0.1); border-color: rgba(var(--primary-rgb), 0.25);
            color: var(--primary);
        }
        .school-settings-check-today:hover {
            background: rgba(var(--primary-rgb), 0.18);
        }
        .school-settings-footer {
            display: flex; align-items: center; gap: 8px; padding: 12px 16px;
            border-radius: 12px; font-size: 0.8rem; color: var(--text-muted);
            background: rgba(var(--primary-rgb), 0.04); border: 1px solid rgba(var(--primary-rgb), 0.08);
            line-height: 1.5;
        }

        /* Inline result pill */
        .school-inline-result {
            display: flex; align-items: center; gap: 9px;
            padding: 10px 14px; border-radius: 10px; margin-top: 10px;
            font-size: 0.82rem; font-weight: 600; line-height: 1.4;
            border: 1px solid transparent;
            animation: schoolResultIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .school-inline-result--ok {
            background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); color: #4ade80;
        }
        .school-inline-result--no {
            background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.2); color: #c4b5fd;
        }
        .school-inline-result--warn {
            background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: #fbbf24;
        }
        .school-inline-result__icon { font-size: 1rem; flex-shrink: 0; }
        @keyframes schoolResultIn {
            from { opacity: 0; transform: translateY(-5px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)   scale(1); }
        }

        /* Save button success state */
        .school-save-btn { min-width: 110px; transition: background 0.25s, box-shadow 0.25s; }
        .school-save-btn--success {
            background: #16a34a !important;
            box-shadow: 0 2px 14px rgba(34,197,94,0.35) !important;
        }
        @media (max-width: 600px) {
            .school-day-chips { gap: 6px; }
            .school-day-chip span { width: 44px; height: 40px; font-size: 0.8rem; }
            .bi-rule { grid-template-columns: 1fr 1fr; }
            .bi-rule .bi-start { grid-column: 1 / -1; }
            .school-check-row { flex-direction: column; }
            .school-check-row .glass-input { max-width: 100%; }
        }

        /* ═══════ SETTINGS MODAL — RESPONSIVE FIXES ═══════ */

        /* Tablet / kleiner Desktop: Modal nicht breiter als Viewport */
        @media (max-width: 960px) {
            #settingsModal .modal-box {
                width: calc(100vw - 2rem) !important;
                max-width: calc(100vw - 2rem) !important;
            }
        }

        /* Mobile: Vollbild-Modal, kein festes height */
        @media (max-width: 600px) {
            #settingsModal .modal-box {
                width: 100vw !important;
                max-width: 100vw !important;
                height: 100dvh !important;
                max-height: 100dvh !important;
                border-radius: 0 !important;
                margin: 0 !important;
            }
            .settings-header {
                padding: 0.9rem 1rem;
            }
            .settings-header-title { font-size: 1rem; }
            .settings-nav {
                padding: 8px 10px;
                gap: 2px;
            }
            .settings-tab {
                padding: 6px 10px;
                font-size: 0.75rem;
            }
            /* Content area: padding reduzieren */
            #settingsModal .modal-box > div[style*="overflow-y"] {
                padding: 1rem !important;
            }
            /* API Request Log: kein festes max-height auf Mobile — outer scroll reicht */
            #apiRequestLog {
                max-height: none !important;
                overflow-y: visible !important;
            }
            /* Uptime Bar etwas kleiner */
            #apiUptimeBar { height: 22px !important; }
        }

        /* ═══════════════════════════════════════════════════════
           ACCENT COLOR PICKER (Redesign 2026-06-08)
           ═══════════════════════════════════════════════════════ */
        .accent-picker {
            padding: 1.5rem;
            contain: layout paint style;
        }
        .accent-picker .settings-section-title { margin-bottom: 1.25rem; }

        /* — Live hero preview — */
        .accent-hero {
            position: relative;
            display: flex;
            align-items: center;
            gap: 1.1rem;
            padding: 1.1rem 1.25rem;
            margin-bottom: 1.5rem;
            border-radius: 14px;
            background:
                linear-gradient(135deg, rgba(var(--primary-rgb), 0.10), rgba(var(--primary-rgb), 0.02) 70%),
                rgba(0,0,0,0.18);
            border: 1px solid rgba(var(--primary-rgb), 0.22);
            overflow: hidden;
            isolation: isolate;
            contain: layout paint style;
            transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
        }
        .accent-hero::before {
            content: '';
            position: absolute;
            inset: -40%;
            background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.22), transparent 55%);
            pointer-events: none;
            z-index: -1;
            transition: background 0.4s ease;
        }
        .accent-hero-swatch {
            width: 62px;
            height: 62px;
            border-radius: 16px;
            background: var(--primary);
            flex-shrink: 0;
            box-shadow:
                0 12px 28px -6px rgba(var(--primary-rgb), 0.55),
                inset 0 0 0 1px rgba(255,255,255,0.18),
                inset 0 12px 24px -8px rgba(255,255,255,0.25),
                inset 0 -12px 24px -8px rgba(0,0,0,0.35);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }
        .accent-hero-info { flex: 1; min-width: 0; }
        .accent-hero-label {
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--text-muted);
            margin-bottom: 3px;
            opacity: 0.85;
        }
        .accent-hero-hex {
            font-family: var(--font-mono);
            font-size: 1.45rem;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: 0.01em;
            line-height: 1.15;
            margin-bottom: 4px;
        }
        .accent-hero-meta {
            font-size: 0.72rem;
            color: rgba(255,255,255,0.35);
            line-height: 1.45;
            font-weight: 400;
        }

        /* — Block label — */
        .accent-block { margin-bottom: 1.4rem; }
        .accent-block:last-child { margin-bottom: 0; }
        .accent-block-label {
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--text-muted);
            margin-bottom: 10px;
            opacity: 0.85;
        }

        /* — Segmented theme-mode control — */
        .accent-segment {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            padding: 4px;
            background: rgba(0,0,0,0.28);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
        }
        .accent-segment-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 12px;
            border: none;
            background: transparent;
            border-radius: 9px;
            cursor: pointer;
            color: var(--text-muted);
            font-size: 0.82rem;
            font-weight: 500;
            font-family: inherit;
            letter-spacing: -0.005em;
            transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
        }
        .accent-segment-btn svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
            opacity: 0.85;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }
        .accent-segment-btn:hover {
            color: var(--text-main);
            background: rgba(255,255,255,0.04);
        }
        .accent-segment-btn:hover svg { opacity: 1; }
        .accent-segment-btn.active {
            background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
            color: #fff;
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.08),
                0 1px 2px rgba(0,0,0,0.25),
                0 0 0 1px rgba(255,255,255,0.04);
        }
        .accent-segment-btn.active svg {
            opacity: 1;
            transform: scale(1.05);
            color: var(--primary);
        }

        /* — Palette grid — */
        .accent-palette {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
            gap: 8px;
            /* KEIN contain: paint — würde aktiven Swatch-Ring (::after inset:-5px + scale)
               an Rand-Reihen abschneiden. */
        }
        .accent-swatch {
            position: relative;
            aspect-ratio: 1;
            border-radius: 50%;
            cursor: pointer;
            padding: 0;
            border: 1px solid rgba(255,255,255,0.10);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 6px 10px -4px rgba(255,255,255,0.25), inset 0 -6px 10px -4px rgba(0,0,0,0.35);
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
        }
        .accent-swatch::after {
            content: '';
            position: absolute;
            inset: -5px;
            border-radius: 50%;
            border: 2px solid #fff;
            opacity: 0;
            transform: scale(0.82);
            transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }
        .accent-swatch:hover {
            transform: translateY(-1px) scale(1.10);
        }
        .accent-swatch.active {
            transform: scale(1.06);
        }
        .accent-swatch.active::after {
            opacity: 1;
            transform: scale(1);
            box-shadow: 0 0 0 3px rgba(0,0,0,0.35);
        }

        /* — Custom color row — */
        .accent-custom {
            display: grid;
            grid-template-columns: auto 1fr auto auto;
            gap: 6px;
            align-items: stretch;
            padding: 5px;
            background: rgba(0,0,0,0.28);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .accent-custom:focus-within {
            border-color: rgba(var(--primary-rgb), 0.45);
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
        }

        .accent-custom-picker {
            position: relative;
            width: 42px;
            height: 42px;
            border-radius: 9px;
            cursor: pointer;
            overflow: hidden;
            background: var(--primary);
            flex-shrink: 0;
            box-shadow:
                inset 0 0 0 1px rgba(255,255,255,0.18),
                inset 0 8px 14px -6px rgba(255,255,255,0.25),
                inset 0 -8px 14px -6px rgba(0,0,0,0.35);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .accent-custom-picker:hover {
            transform: scale(1.04);
            box-shadow:
                inset 0 0 0 1px rgba(255,255,255,0.22),
                inset 0 8px 14px -6px rgba(255,255,255,0.3),
                inset 0 -8px 14px -6px rgba(0,0,0,0.4),
                0 4px 12px -2px rgba(var(--primary-rgb), 0.4);
        }
        .accent-custom-picker input[type="color"] {
            position: absolute;
            inset: -10px;
            width: calc(100% + 20px);
            height: calc(100% + 20px);
            border: none;
            cursor: pointer;
            background: transparent;
            padding: 0;
            opacity: 0;
        }
        .accent-custom-picker::after {
            content: '';
            position: absolute;
            bottom: 5px;
            right: 5px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.25);
            pointer-events: none;
            opacity: 0.85;
        }

        .accent-custom-input-wrap {
            display: flex;
            align-items: center;
            min-width: 0;
            padding: 0 12px;
        }
        .accent-custom-hash {
            color: rgba(255,255,255,0.3);
            font-family: var(--font-mono);
            font-size: 0.95rem;
            font-weight: 600;
            margin-right: 6px;
            user-select: none;
        }
        .accent-picker #customColorHex {
            width: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-main);
            font-family: var(--font-mono);
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding: 0;
            min-width: 0;
            box-shadow: none;
        }
        .accent-picker #customColorHex:focus { box-shadow: none; background: transparent; }
        .accent-picker #customColorHex::placeholder {
            color: rgba(255,255,255,0.22);
            font-weight: 500;
        }

        .accent-custom-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 42px;
            padding: 0 16px;
            border-radius: 9px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: var(--text-main);
            font-size: 0.8rem;
            font-weight: 600;
            font-family: inherit;
            letter-spacing: -0.005em;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
            white-space: nowrap;
        }
        .accent-custom-btn:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.15);
        }
        .accent-custom-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

        .accent-custom-btn-apply {
            background: var(--primary);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 2px 10px -2px rgba(var(--primary-rgb), 0.5), inset 0 1px 0 rgba(255,255,255,0.18);
        }
        .accent-custom-btn-apply:hover {
            background: var(--primary);
            border-color: transparent;
            filter: brightness(1.1);
            box-shadow: 0 4px 16px -2px rgba(var(--primary-rgb), 0.6), inset 0 1px 0 rgba(255,255,255,0.22);
            transform: translateY(-1px);
        }

        .accent-custom-btn-icon {
            padding: 0;
            width: 42px;
            color: var(--text-muted);
        }
        .accent-custom-btn-icon:hover { color: var(--text-main); }

        /* — Mobile — */
        @media (max-width: 540px) {
            .accent-picker { padding: 1.1rem; }
            .accent-hero { padding: 0.95rem; gap: 0.85rem; }
            .accent-hero-swatch { width: 54px; height: 54px; border-radius: 14px; }
            .accent-hero-hex { font-size: 1.2rem; }
            .accent-hero-meta { font-size: 0.68rem; }
            .accent-palette { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 7px; }
            .accent-segment-btn { padding: 9px 6px; font-size: 0.78rem; gap: 6px; }
            .accent-custom {
                grid-template-columns: auto 1fr auto;
            }
            .accent-custom-btn-apply {
                grid-column: 1 / -1;
                padding: 10px 16px;
            }
        }

        /* ═══════════════════════════════════════════════════════
           PROFILE CARD (Redesign 2026-06-08)
           ═══════════════════════════════════════════════════════ */
        .profile-card { padding: 1.5rem; }
        .profile-card .settings-section-title { margin-bottom: 1.25rem; }

        /* Hero */
        .profile-hero {
            position: relative;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.1rem 1.25rem;
            margin-bottom: 1.5rem;
            border-radius: 14px;
            background:
                linear-gradient(135deg, rgba(var(--primary-rgb), 0.10), rgba(var(--primary-rgb), 0.02) 70%),
                rgba(0,0,0,0.18);
            border: 1px solid rgba(var(--primary-rgb), 0.18);
            isolation: isolate;
            overflow: hidden;
            transition: border-color 0.3s ease, background 0.3s ease;
        }
        .profile-hero::before {
            content: '';
            position: absolute;
            inset: -40%;
            background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.20), transparent 55%);
            z-index: -1;
            pointer-events: none;
        }
        .profile-hero-avatar {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.55));
            color: #fff;
            font-weight: 700;
            font-size: 1.2rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            font-family: var(--font-main);
            box-shadow:
                0 12px 24px -8px rgba(var(--primary-rgb), 0.55),
                inset 0 0 0 1px rgba(255,255,255,0.18),
                inset 0 10px 18px -10px rgba(255,255,255,0.3),
                inset 0 -10px 18px -10px rgba(0,0,0,0.35);
            transition: background 0.3s ease;
        }
        .profile-hero-info { flex: 1; min-width: 0; }
        .profile-hero-name {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.2;
            margin-bottom: 3px;
            letter-spacing: -0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .profile-hero-name.is-empty {
            color: rgba(255,255,255,0.35);
            font-weight: 500;
            font-style: italic;
            letter-spacing: 0;
        }
        .profile-hero-job {
            font-size: 0.82rem;
            font-weight: 500;
            color: rgba(255,255,255,0.6);
            line-height: 1.3;
            margin-bottom: 7px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .profile-hero-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .profile-hero-region {
            font-size: 0.7rem;
            font-weight: 500;
            color: rgba(255,255,255,0.45);
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .profile-hero-region svg { width: 11px; height: 11px; opacity: 0.7; }
        .profile-hero-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: 999px;
            background: rgba(var(--primary-rgb), 0.18);
            color: var(--primary);
            border: 1px solid rgba(var(--primary-rgb), 0.3);
            line-height: 1.4;
        }

        /* Field list */
        .profile-fields {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 1.25rem;
        }
        .profile-field {
            display: grid;
            grid-template-columns: 52px 1fr auto;
            gap: 14px;
            align-items: center;
            padding: 14px 18px 14px 14px;
            min-height: 72px;
            border-radius: 14px;
            background: rgba(0,0,0,0.22);
            border: 1px solid rgba(255,255,255,0.06);
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
        }
        .profile-field:hover {
            border-color: rgba(255,255,255,0.12);
            background: rgba(0,0,0,0.28);
        }
        .profile-field:focus-within {
            border-color: rgba(var(--primary-rgb), 0.45);
            background: rgba(0,0,0,0.32);
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
        }
        .profile-field-icon {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 11px;
            background: rgba(var(--primary-rgb), 0.10);
            color: var(--primary);
            flex-shrink: 0;
            transition: background 0.2s ease;
        }
        .profile-field:focus-within .profile-field-icon {
            background: rgba(var(--primary-rgb), 0.18);
        }
        .profile-field-icon svg { width: 19px; height: 19px; }
        .profile-field-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .profile-field-label {
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            opacity: 0.85;
        }
        .profile-field-hint {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.32);
            line-height: 1.3;
            margin-bottom: 2px;
        }
        .profile-card .profile-field-input {
            width: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-main);
            font-size: 1.02rem;
            font-weight: 600;
            font-family: inherit;
            padding: 2px 0 0 0;
            -webkit-appearance: none;
            appearance: none;
            min-width: 0;
            box-shadow: none;
            cursor: pointer;
            letter-spacing: -0.01em;
            line-height: 1.3;
        }
        .profile-card input.profile-field-input { cursor: text; }
        .profile-card .profile-field-input:focus { box-shadow: none; background: transparent; }
        .profile-card input.profile-field-input::placeholder {
            color: rgba(255,255,255,0.25);
            font-weight: 500;
        }
        .profile-card select.profile-field-input {
            padding-right: 0;
            background-image: none;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
        .profile-card select.profile-field-input option,
        .profile-card select.profile-field-input optgroup {
            background: #0a0a12;
            color: var(--text-main);
            font-weight: 500;
            font-size: 0.95rem;
            padding: 6px 4px;
        }
        .profile-card select.profile-field-input optgroup {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .profile-field-chevron {
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: rgba(255,255,255,0.04);
            opacity: 0.7;
            pointer-events: none;
            transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
        }
        .profile-field-chevron svg { width: 18px; height: 18px; }
        .profile-field:hover .profile-field-chevron {
            opacity: 1;
            background: rgba(255,255,255,0.07);
        }
        .profile-field:focus-within .profile-field-chevron {
            color: var(--primary);
            opacity: 1;
            background: rgba(var(--primary-rgb), 0.14);
            transform: rotate(180deg);
        }

        /* Ghost-Mode tip */
        .profile-ghost-tip {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            padding: 10px 14px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.02));
            border: 1px solid rgba(var(--primary-rgb), 0.14);
            font-size: 0.72rem;
            color: rgba(255,255,255,0.55);
            line-height: 1.4;
        }
        .profile-ghost-tip svg {
            width: 14px;
            height: 14px;
            color: var(--primary);
            flex-shrink: 0;
        }
        .profile-ghost-tip strong {
            color: var(--text-main);
            font-weight: 600;
        }
        .profile-ghost-tip-divider {
            width: 1px;
            height: 12px;
            background: rgba(255,255,255,0.1);
        }

        /* Mobile */
        @media (max-width: 540px) {
            .profile-card { padding: 1.1rem; }
            .profile-hero { padding: 0.95rem; gap: 0.85rem; }
            .profile-hero-avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 1rem; }
            .profile-hero-name { font-size: 1rem; }
            .profile-hero-job { font-size: 0.78rem; }
            .profile-field {
                padding: 12px 14px 12px 12px;
                gap: 12px;
                grid-template-columns: 42px 1fr auto;
                min-height: 64px;
            }
            .profile-field-icon { width: 40px; height: 40px; border-radius: 10px; }
            .profile-field-icon svg { width: 17px; height: 17px; }
            .profile-card .profile-field-input { font-size: 0.95rem; }
            .profile-field-chevron { width: 28px; height: 28px; }
            .profile-field-chevron svg { width: 16px; height: 16px; }
            .profile-ghost-tip { font-size: 0.66rem; padding: 9px 12px; gap: 8px; }
            .profile-ghost-tip-divider { display: none; }
        }

        /* ═══════════════════════════════════════════════════════
           TOOL ROW / TOGGLE STACK / DANGER ZONE (2026-06-08)
           Horizontale Tool-Cards · iOS-Toggle-Liste · Striped Danger
           ═══════════════════════════════════════════════════════ */

        /* — Tool row — horizontale Action-Card mit Icon + Body + Buttons */
        .tool-row {
            display: grid;
            grid-template-columns: 48px 1fr;
            gap: 16px;
            align-items: start;
            padding: 16px 18px;
            margin-bottom: 1rem;
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.015));
            border: 1px solid rgba(255,255,255,0.06);
            transition: border-color 0.2s ease, background 0.2s ease;
        }
        .tool-row:hover { border-color: rgba(255,255,255,0.1); }
        .tool-row-icon {
            width: 48px; height: 48px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.06));
            color: var(--primary);
            border: 1px solid rgba(var(--primary-rgb), 0.2);
            flex-shrink: 0;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
        }
        .tool-row-icon svg { width: 20px; height: 20px; }
        .tool-row-body { min-width: 0; }
        .tool-row-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.01em;
            margin-bottom: 3px;
            line-height: 1.25;
        }
        .tool-row-desc {
            font-size: 0.78rem;
            color: rgba(255,255,255,0.42);
            line-height: 1.45;
            margin-bottom: 14px;
        }
        .tool-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

        /* Inline-Variante: CTA rechts neben Title/Desc */
        .tool-row-inline {
            grid-template-columns: 48px 1fr auto;
            align-items: center;
        }
        .tool-row-inline .tool-row-desc { margin-bottom: 0; }

        /* — Pill-Action-Buttons — */
        .tool-action {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 9px 16px;
            border-radius: 9px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--text-main);
            font-size: 0.8rem;
            font-weight: 600;
            font-family: inherit;
            letter-spacing: -0.005em;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, color 0.2s ease;
            white-space: nowrap;
        }
        .tool-action:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.15);
            transform: translateY(-1px);
        }
        .tool-action svg { width: 13px; height: 13px; flex-shrink: 0; }
        .tool-action-primary {
            background: var(--primary);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 2px 10px -2px rgba(var(--primary-rgb), 0.5), inset 0 1px 0 rgba(255,255,255,0.18);
        }
        .tool-action-primary:hover {
            background: var(--primary);
            border-color: transparent;
            filter: brightness(1.1);
            box-shadow: 0 4px 16px -2px rgba(var(--primary-rgb), 0.6), inset 0 1px 0 rgba(255,255,255,0.22);
        }
        .tool-action-danger {
            background: rgba(239,68,68,0.10);
            border-color: rgba(239,68,68,0.22);
            color: #f87171;
        }
        .tool-action-danger:hover {
            background: rgba(239,68,68,0.18);
            border-color: rgba(239,68,68,0.4);
            color: #fca5a5;
        }

        /* — Status-Pill (Live-Indikator wenn Edit-Mode aktiv) — */
        .tool-row-status {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-top: 12px;
            padding: 5px 12px;
            border-radius: 999px;
            background: rgba(var(--primary-rgb), 0.12);
            color: var(--primary);
            font-size: 0.7rem;
            font-weight: 600;
            border: 1px solid rgba(var(--primary-rgb), 0.22);
            letter-spacing: 0.02em;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .tool-row-status::before {
            content: '';
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--primary);
            box-shadow: 0 0 8px var(--primary);
            animation: tool-status-pulse 1.5s ease-in-out infinite;
        }
        @keyframes tool-status-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50%      { opacity: 0.45; transform: scale(0.85); }
        }

        /* ═══ Toggle-Stack — iOS-style Switch-Liste ═══ */
        .toggle-stack {
            background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.015));
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 1rem;
        }
        .toggle-row {
            display: grid;
            grid-template-columns: 42px 1fr auto;
            gap: 14px;
            align-items: center;
            padding: 14px 18px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            transition: background 0.2s ease;
        }
        .toggle-row:last-child { border-bottom: none; }
        .toggle-row:hover { background: rgba(255,255,255,0.025); }
        .toggle-row-icon {
            width: 38px; height: 38px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 10px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            font-size: 1.05rem;
            line-height: 1;
            flex-shrink: 0;
        }
        .toggle-row-body { min-width: 0; }
        .toggle-row-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-main);
            letter-spacing: -0.005em;
            margin-bottom: 3px;
            line-height: 1.25;
        }
        .toggle-row-desc {
            font-size: 0.72rem;
            color: rgba(255,255,255,0.42);
            line-height: 1.45;
        }

        /* iOS-Switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 26px;
            flex-shrink: 0;
        }
        .switch input {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
        }
        .switch-track {
            position: absolute;
            inset: 0;
            background: rgba(255,255,255,0.10);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 999px;
            transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
        }
        .switch-thumb {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 1px rgba(0,0,0,0.18);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
            pointer-events: none;
        }
        .switch input:checked ~ .switch-track {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12), inset 0 1px 2px rgba(0,0,0,0.15);
        }
        .switch input:checked ~ .switch-thumb {
            transform: translateX(18px);
        }
        .switch input:focus-visible ~ .switch-track {
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
        }

        /* ═══ Danger Zone ═══ */
        .danger-zone {
            position: relative;
            padding: 18px 20px;
            border-radius: 14px;
            background:
                repeating-linear-gradient(
                    -45deg,
                    transparent,
                    transparent 14px,
                    rgba(239,68,68,0.025) 14px,
                    rgba(239,68,68,0.025) 28px
                ),
                linear-gradient(180deg, rgba(239,68,68,0.05), rgba(239,68,68,0.02));
            border: 1px solid rgba(239,68,68,0.22);
            overflow: hidden;
            isolation: isolate;
        }
        .danger-zone::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(239,68,68,0.5), transparent);
            pointer-events: none;
        }
        .danger-zone-header {
            display: flex;
            align-items: center;
            gap: 11px;
            margin-bottom: 12px;
        }
        .danger-zone-icon {
            width: 38px; height: 38px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 10px;
            background: rgba(239,68,68,0.12);
            color: #f87171;
            border: 1px solid rgba(239,68,68,0.28);
            flex-shrink: 0;
        }
        .danger-zone-icon svg { width: 18px; height: 18px; }
        .danger-zone-title {
            font-size: 0.72rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: #f87171;
        }
        .danger-zone-desc {
            font-size: 0.82rem;
            color: rgba(255,255,255,0.55);
            line-height: 1.55;
            margin: 0 0 16px 0;
        }
        .danger-zone-action {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 10px 18px;
            background: transparent;
            border: 1px solid rgba(239,68,68,0.55);
            border-radius: 10px;
            color: #f87171;
            font-size: 0.85rem;
            font-weight: 700;
            font-family: inherit;
            letter-spacing: -0.01em;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
        }
        .danger-zone-action:hover {
            background: rgba(239,68,68,0.14);
            border-color: rgba(239,68,68,0.9);
            color: #fca5a5;
            box-shadow: 0 4px 14px -4px rgba(239,68,68,0.4);
            transform: translateY(-1px);
        }
        .danger-zone-action svg { width: 15px; height: 15px; flex-shrink: 0; }
        .danger-zone-footer {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px dashed rgba(239,68,68,0.18);
            font-size: 0.72rem;
            color: rgba(255,255,255,0.4);
            line-height: 1.45;
        }
        .danger-zone-footer svg {
            width: 13px; height: 13px;
            color: rgba(239,68,68,0.55);
            flex-shrink: 0;
            margin-top: 1px;
        }

        /* — Mobile — */
        @media (max-width: 540px) {
            .tool-row { padding: 14px; gap: 12px; grid-template-columns: 42px 1fr; }
            .tool-row-icon { width: 42px; height: 42px; }
            .tool-row-icon svg { width: 18px; height: 18px; }
            .tool-row-inline { grid-template-columns: 42px 1fr; }
            .tool-row-inline .tool-row-actions {
                grid-column: 1 / -1;
                margin-top: 10px;
            }
            .tool-action { padding: 9px 14px; font-size: 0.78rem; }
            .toggle-row { padding: 12px 14px; gap: 12px; grid-template-columns: 36px 1fr auto; }
            .toggle-row-icon { width: 36px; height: 36px; font-size: 1rem; }
            .toggle-row-title { font-size: 0.86rem; }
            .danger-zone { padding: 14px 16px; }
            .danger-zone-action { width: 100%; justify-content: center; }
        }

        /* Large Screens: Modal nicht unnötig hoch wenn Content kurz */
        @media (min-height: 900px) {
            #settingsModal .modal-box {
                height: auto !important;
                min-height: 500px;
                max-height: 88vh !important;
            }
        }
