/* Helios Terminal Core CSS – ausgelagert aus Terminal.php
   Version: 3.5.1 SAFE
   Hinweis: Diese Datei enthält nur Styles. Keine Matrix-/API-Logik wurde verändert.
*/
/* Tagesübersicht: adaptive Spaltenbreiten
           - Mit Wochenende: alle Spalten kompakter, damit Sa/So möglichst ohne Scrollbalken sichtbar bleiben.
           - Ohne Wochenende: Werktage dürfen automatisch breiter werden.
        */
        .matrix-table {
            table-layout: auto;
            width: 100%;
        }

        .matrix-table th.matrix-first-col,
        .matrix-table td.matrix-first-col {
            width: 11.8rem;
            min-width: 11.8rem;
            max-width: 11.8rem;
        }

        /* Wochenende sichtbar: alle Spalten kompakt, damit Sa/So mit hinein passen */
        .matrix-table.matrix-with-weekend th.matrix-weekday-col,
        .matrix-table.matrix-with-weekend td.matrix-weekday-col {
            width: 12.75rem;
            min-width: 12.75rem;
            max-width: 12.75rem;
        }

        .matrix-table.matrix-with-weekend th.matrix-weekend-col,
        .matrix-table.matrix-with-weekend td.matrix-weekend-col {
            width: 7.25rem;
            min-width: 7.25rem;
            max-width: 7.25rem;
        }

        /* Wochenende ausgeblendet: Mo-Fr verteilen den freien Platz gleichmäßig */
        .matrix-table.matrix-without-weekend th.matrix-weekday-col,
        .matrix-table.matrix-without-weekend td.matrix-weekday-col {
            width: calc((100% - 11.8rem) / 5);
            min-width: 13.5rem;
        }

        .matrix-table.matrix-without-weekend th.matrix-weekend-col,
        .matrix-table.matrix-without-weekend td.matrix-weekend-col {
            display: none;
        }

        @media (max-width: 1500px) {
            .matrix-table th.matrix-first-col,
            .matrix-table td.matrix-first-col {
                width: 10.7rem;
                min-width: 10.7rem;
                max-width: 10.7rem;
            }

            .matrix-table.matrix-with-weekend th.matrix-weekday-col,
            .matrix-table.matrix-with-weekend td.matrix-weekday-col {
                width: 11.85rem;
                min-width: 11.85rem;
                max-width: 11.85rem;
            }

            .matrix-table.matrix-with-weekend th.matrix-weekend-col,
            .matrix-table.matrix-with-weekend td.matrix-weekend-col {
                width: 6.8rem;
                min-width: 6.8rem;
                max-width: 6.8rem;
            }

            .matrix-table.matrix-without-weekend th.matrix-weekday-col,
            .matrix-table.matrix-without-weekend td.matrix-weekday-col {
                width: calc((100% - 10.7rem) / 5);
                min-width: 12.75rem;
            }
        }

        .matrix-table th.matrix-holiday-col,
        .matrix-table td.matrix-holiday-col {
            background-image:
                repeating-linear-gradient(
                    135deg,
                    rgba(239, 68, 68, 0.11) 0px,
                    rgba(239, 68, 68, 0.11) 7px,
                    rgba(255, 255, 255, 0.18) 7px,
                    rgba(255, 255, 255, 0.18) 15px
                );
        }

        html.dark .matrix-table th.matrix-holiday-col,
        html.dark .matrix-table td.matrix-holiday-col {
            background-image:
                repeating-linear-gradient(
                    135deg,
                    rgba(248, 113, 113, 0.16) 0px,
                    rgba(248, 113, 113, 0.16) 7px,
                    rgba(127, 29, 29, 0.08) 7px,
                    rgba(127, 29, 29, 0.08) 15px
                );
        }


        /* Feiertag: komplette Spalte inklusive Klinik-Zellen rot schraffiert */
        .matrix-table th.matrix-holiday-col,
        .matrix-table td.matrix-holiday-col,
        .matrix-table td.matrix-holiday-body {
            background-color: rgba(254, 242, 242, 0.92) !important;
            background-image:
                repeating-linear-gradient(
                    135deg,
                    rgba(239, 68, 68, 0.16) 0px,
                    rgba(239, 68, 68, 0.16) 8px,
                    rgba(255, 255, 255, 0.28) 8px,
                    rgba(255, 255, 255, 0.28) 17px
                ) !important;
        }

        html.dark .matrix-table th.matrix-holiday-col,
        html.dark .matrix-table td.matrix-holiday-col,
        html.dark .matrix-table td.matrix-holiday-body {
            background-color: rgba(69, 10, 10, 0.36) !important;
            background-image:
                repeating-linear-gradient(
                    135deg,
                    rgba(248, 113, 113, 0.20) 0px,
                    rgba(248, 113, 113, 0.20) 8px,
                    rgba(127, 29, 29, 0.15) 8px,
                    rgba(127, 29, 29, 0.15) 17px
                ) !important;
        }

        .matrix-table th.matrix-weekend-col .badge-pill,
        .matrix-table td.matrix-weekend-col .badge-pill {
            min-width: 0;
            width: 100%;
            padding-left: 0.38rem;
            padding-right: 0.38rem;
            gap: 0.28rem;
            justify-content: space-between;
        }

        .matrix-table th.matrix-weekday-col .badge-pill,
        .matrix-table td.matrix-weekday-col .badge-pill {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            justify-content: space-between;
            gap: 0.45rem;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

        .matrix-table .badge-pill span {
            max-width: none !important;
        }

        .matrix-table td.matrix-weekend-col .badge-pill span {
            font-size: 0.72rem;
            letter-spacing: -0.01em;
        }
    
        /* Schmale Status-Legende oberhalb des Footers */
        .footer-status-legend {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            flex-wrap: wrap;
            padding: 0.28rem 0.75rem;
            font-size: 0.62rem;
            font-weight: 800;
            line-height: 1;
            color: rgb(100, 116, 139);
            border-top: 1px solid rgba(226, 232, 240, 0.8);
            background: rgba(248, 250, 252, 0.75);
        }

        html.dark .footer-status-legend {
            color: rgb(148, 163, 184);
            border-top-color: rgba(51, 65, 85, 0.85);
            background: rgba(15, 23, 42, 0.65);
        }

        .footer-status-legend span {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            white-space: nowrap;
        }

        .footer-status-legend i {
            font-size: 0.48rem;
        }

    

        /* =========================================================
           TERMINAL 9 – COCKPIT REBUILD
           Neues Layout, alte Funktionen/API im Hintergrund.
           ========================================================= */

        :root {
            --c-bg: #eef5f7;
            --c-ink: #102033;
            --c-muted: #64748b;
            --c-line: rgba(148,163,184,.24);
            --c-card: rgba(255,255,255,.82);
            --c-green: #6cb33f;
            --c-green-dark: #477b2b;
            --c-blue: #2563eb;
            --c-red: #dc2626;
            --c-amber: #d97706;
            --c-rail: #0a1929;
        }

        body {
            background:
                radial-gradient(circle at 8% 0%, rgba(108,179,63,.18), transparent 30%),
                radial-gradient(circle at 92% 8%, rgba(37,99,235,.13), transparent 28%),
                linear-gradient(135deg, #f8fbff 0%, #edf6f4 48%, #f7f9fc 100%) !important;
            color: var(--c-ink) !important;
        }

        #root { min-height: 100vh; background: transparent !important; }

        .t9-shell {
            height: 100vh;
            display: grid;
            grid-template-columns: 82px minmax(0, 1fr);
            overflow: hidden;
        }

        .t9-rail {
            background: rgba(10,25,41,.96);
            color: white;
            padding: 18px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            box-shadow: 16px 0 50px rgba(15,23,42,.16);
            z-index: 100;
        }

        .t9-logo {
            width: 48px;
            height: 48px;
            border-radius: 17px;
            background: linear-gradient(135deg, var(--c-green), #9be875);
            display: grid;
            place-items: center;
            overflow: hidden;
            box-shadow: 0 16px 28px rgba(108,179,63,.28);
            font-weight: 950;
        }

        .t9-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: white;
            padding: 6px;
        }

        .t9-navbtn {
            width: 48px;
            height: 48px;
            border-radius: 17px;
            border: 0;
            background: transparent;
            display: grid;
            place-items: center;
            color: rgba(255,255,255,.62);
            transition: .18s ease;
            position: relative;
        }

        .t9-navbtn:hover,
        .t9-navbtn.active {
            background: rgba(255,255,255,.11);
            color: white;
            transform: translateY(-1px);
        }

        .t9-navbtn.active::before {
            content: "";
            position: absolute;
            left: -12px;
            width: 4px;
            height: 24px;
            border-radius: 99px;
            background: var(--c-green);
        }

        .t9-main {
            min-width: 0;
            display: grid;
            grid-template-rows: auto auto minmax(0, 1fr) auto auto;
            gap: 16px;
            padding: 20px;
            overflow: hidden;
        }

        .t9-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
        }

        .t9-title h1 {
            margin: 0;
            font-size: clamp(25px, 2.2vw, 38px);
            line-height: .95;
            letter-spacing: -.06em;
            font-weight: 950;
            color: #0f172a;
        }

        .t9-title p {
            margin: 7px 0 0;
            color: var(--c-muted);
            font-size: 13px;
            font-weight: 700;
        }

        .t9-actions {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 9px;
            flex-wrap: wrap;
        }

        .t9-pill, .t9-btn, .t9-iconbtn {
            border: 1px solid rgba(148,163,184,.24);
            background: rgba(255,255,255,.78);
            backdrop-filter: blur(16px);
            border-radius: 999px;
            color: #334155;
            font-size: 12px;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 10px 30px rgba(15,23,42,.045);
        }

        .t9-pill { padding: 10px 14px; }
        .t9-btn { padding: 10px 14px; cursor: pointer; }
        .t9-iconbtn { width: 40px; height: 40px; justify-content: center; cursor: pointer; }

        .t9-primary {
            background: linear-gradient(135deg, var(--c-green), #86d75e) !important;
            color: white !important;
            border: 0 !important;
            box-shadow: 0 14px 34px rgba(108,179,63,.28) !important;
        }

        .t9-kpis {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }

        .t9-kpi {
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(148,163,184,.22);
            background: rgba(255,255,255,.78);
            backdrop-filter: blur(18px) saturate(1.2);
            border-radius: 28px;
            padding: 16px 18px;
            min-height: 104px;
            box-shadow: 0 18px 48px rgba(15,23,42,.07);
        }

        .t9-kpi::after {
            content: "";
            position: absolute;
            right: -30px;
            top: -30px;
            width: 96px;
            height: 96px;
            border-radius: 50%;
            background: rgba(108,179,63,.12);
        }

        .t9-kpi.blue::after { background: rgba(37,99,235,.12); }
        .t9-kpi.red::after { background: rgba(220,38,38,.11); }
        .t9-kpi.amber::after { background: rgba(217,119,6,.12); }

        .t9-kpi-label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--c-muted);
            font-size: 10px;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: .12em;
        }

        .t9-kpi-value {
            margin-top: 12px;
            font-size: 32px;
            line-height: 1;
            font-weight: 950;
            letter-spacing: -.06em;
            color: #0f172a;
        }

        .t9-workspace {
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 318px;
            gap: 16px;
        }

        .t9-board, .t9-sidecard {
            border: 1px solid rgba(148,163,184,.22);
            background: rgba(255,255,255,.74);
            backdrop-filter: blur(18px) saturate(1.15);
            box-shadow: 0 22px 70px rgba(15,23,42,.075);
        }

        .t9-board {
            border-radius: 32px;
            overflow: hidden;
            min-width: 0;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
        }

        .t9-board-head {
            padding: 16px 18px;
            display: flex;
            justify-content: space-between;
            gap: 14px;
            align-items: center;
            border-bottom: 1px solid rgba(148,163,184,.18);
            background: rgba(255,255,255,.56);
        }

        .t9-board-title {
            font-size: 14px;
            font-weight: 950;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .t9-grid-wrap {
            overflow: auto;
            padding: 16px;
        }

        .t9-grid {
            display: grid;
            grid-template-columns: minmax(155px, 0.9fr) repeat(var(--t9-days), minmax(140px, 1fr));
            gap: 10px;
            min-width: calc(160px + (var(--t9-days) * 145px));
        }

        .t9-grid.with-weekend {
            grid-template-columns: minmax(150px, 0.8fr) repeat(5, minmax(150px, 1fr)) repeat(2, minmax(96px, .65fr));
            min-width: 1120px;
        }

        .t9-corner, .t9-dayhead, .t9-clinic, .t9-cell {
            border: 1px solid rgba(148,163,184,.20);
            border-radius: 20px;
            background: rgba(255,255,255,.78);
            box-shadow: 0 8px 24px rgba(15,23,42,.035);
        }

        .t9-corner {
            padding: 14px;
            display: flex;
            align-items: center;
            color: var(--c-muted);
            font-size: 10px;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: .12em;
            position: sticky;
            left: 0;
            z-index: 4;
        }

        .t9-dayhead {
            padding: 12px;
            min-height: 72px;
        }

        .t9-dayname {
            color: var(--c-muted);
            font-size: 10px;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: .12em;
        }

        .t9-daydate {
            margin-top: 5px;
            font-size: 19px;
            font-weight: 950;
            letter-spacing: -.04em;
        }

        .t9-dayhead.today {
            background: linear-gradient(135deg, rgba(108,179,63,.18), rgba(255,255,255,.88));
            border-color: rgba(108,179,63,.34);
        }

        .t9-holiday {
            background:
                repeating-linear-gradient(135deg, rgba(220,38,38,.10) 0 7px, rgba(255,255,255,.55) 7px 15px),
                rgba(255,255,255,.88) !important;
            border-color: rgba(220,38,38,.22) !important;
        }

        .t9-clinic {
            padding: 13px;
            min-height: 112px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 8px;
            position: sticky;
            left: 0;
            z-index: 3;
            cursor: pointer;
        }

        .t9-clinic:hover {
            border-color: rgba(108,179,63,.35);
            transform: translateY(-1px);
        }

        .t9-clinic-name {
            font-size: 13px;
            font-weight: 950;
            letter-spacing: -.035em;
        }

        .t9-clinic-meta {
            color: var(--c-muted);
            font-size: 10px;
            font-weight: 850;
            display: flex;
            gap: 7px;
            align-items: center;
        }

        .t9-cell {
            min-height: 112px;
            padding: 9px;
            display: flex;
            flex-direction: column;
            gap: 7px;
            transition: .16s ease;
            cursor: pointer;
        }

        .t9-cell:hover {
            transform: translateY(-2px);
            border-color: rgba(108,179,63,.38);
            box-shadow: 0 16px 36px rgba(15,23,42,.08);
        }

        .t9-chip {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 7px;
            padding: 8px 9px;
            border-radius: 14px;
            font-size: 11px;
            font-weight: 950;
            background: white;
            border: 1px solid rgba(148,163,184,.18);
            min-width: 0;
        }

        .t9-chip-left {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-width: 0;
        }

        .t9-chip-label {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .t9-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            flex: 0 0 auto;
            background: #94a3b8;
        }

        .t9-chip.green { color: #315f1c; background: rgba(108,179,63,.10); border-color: rgba(108,179,63,.24); }
        .t9-chip.green .t9-dot { background: var(--c-green); box-shadow: 0 0 0 4px rgba(108,179,63,.12); }
        .t9-chip.blue { color: #1e40af; background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.20); }
        .t9-chip.blue .t9-dot { background: var(--c-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
        .t9-chip.partial {
            background: linear-gradient(90deg, rgba(108,179,63,.16) 0%, rgba(190,242,100,.14) 38%, rgba(255,237,213,.90) 72%, rgba(251,146,60,.18) 100%);
            border-color: rgba(245, 158, 11, .58);
            color: #8a3a12;
            position: relative;
        }
        .t9-chip.partial .t9-dot { background: #6cb33f; box-shadow: 0 0 0 4px rgba(108,179,63,.12); }

        .t9-chip.red { color: #991b1b; background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.20); }
        .t9-chip.red .t9-dot { background: var(--c-red); box-shadow: 0 0 0 4px rgba(220,38,38,.10); }
        .t9-chip.amber { color: #92400e; background: rgba(217,119,6,.10); border-color: rgba(217,119,6,.22); }
        .t9-chip.amber .t9-dot { background: var(--c-amber); box-shadow: 0 0 0 4px rgba(217,119,6,.10); }

        .t9-count {
            font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
            font-size: 11px;
            font-weight: 950;
            opacity: .82;
            flex: 0 0 auto;
        }

        .t9-empty {
            margin: auto;
            width: 34px;
            height: 34px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            color: #94a3b8;
            background: rgba(241,245,249,.78);
            border: 1px dashed rgba(148,163,184,.32);
        }

        .t9-sidebar {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
            overflow: auto;
        }

        .t9-sidecard {
            border-radius: 28px;
            padding: 15px;
        }

        .t9-side-title {
            font-size: 10px;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: .13em;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }


        
        .t9-private-toast {
            position: fixed;
            right: 24px;
            bottom: 92px;
            z-index: 2147483646;
            width: 310px;
            border-radius: 20px;
            border: 1px solid rgba(108,179,63,.28);
            background: rgba(255,255,255,.98);
            color: #1e293b;
            box-shadow: 0 24px 70px rgba(15,23,42,.26);
            padding: 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            animation: t9PrivateToastIn .22s ease-out;
            backdrop-filter: blur(18px);
        }
        html.dark .t9-private-toast {
            background: rgba(17,24,39,.98);
            color: #f8fafc;
            border-color: rgba(108,179,63,.38);
        }
        .t9-private-toast-icon {
            width: 42px;
            height: 42px;
            border-radius: 999px;
            background: linear-gradient(135deg, #6cb33f, #477b2b);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 25px rgba(108,179,63,.28);
            flex-shrink: 0;
        }
        .t9-private-toast-title {
            font-size: 13px;
            font-weight: 950;
            color: #477b2b;
        }
        html.dark .t9-private-toast-title {
            color: #9be174;
        }
        .t9-private-toast-text {
            font-size: 12px;
            font-weight: 750;
            color: #64748b;
            margin-top: 2px;
        }
        html.dark .t9-private-toast-text {
            color: #cbd5e1;
        }
        .t9-private-toast-badge {
            margin-left: auto;
            min-width: 22px;
            height: 22px;
            border-radius: 999px;
            background: #ef4444;
            color: white;
            font-size: 11px;
            font-weight: 950;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        @keyframes t9PrivateToastIn {
            from { opacity: 0; transform: translateY(12px) scale(.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        
        .t9-online-row.can-private-chat {
            cursor: pointer;
            position: relative;
        }
        .t9-private-action-clean {
            position: absolute;
            right: 16px;
            top: 18px;
            width: 32px;
            height: 32px;
            border-radius: 999px;
            border: 1px solid rgba(108,179,63,.22);
            background: rgba(108,179,63,.10);
            color: #477b2b;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 22px rgba(108,179,63,.10);
        }
        .t9-online-row.can-private-chat:hover .t9-private-action-clean {
            background: #6cb33f;
            color: white;
            transform: translateY(-1px);
        }
        .t9-private-action-clean .t9-private-badge {
            position: absolute;
            right: -6px;
            top: -7px;
            margin-left: 0;
        }
        .t9-online-maintext {
            padding-right: 46px;
        }

        .t9-private-badge {
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            background: #ef4444;
            color: #ffffff;
            font-size: 10px;
            font-weight: 950;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(239,68,68,.28);
            margin-left: auto;
        }
        .t9-private-chat-hint {
            font-size: 9px;
            font-weight: 850;
            color: #6cb33f;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        html.dark .t9-private-chat-hint {
            color: #9be174;
        }

        .t9-online-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px;
            border-radius: 16px;
            background: rgba(248,250,252,.86);
            margin-bottom: 8px;
        }

        .t9-avatar {
            width: 34px;
            height: 34px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--c-green), #9be875);
            color: white;
            display: grid;
            place-items: center;
            font-weight: 950;
            position: relative;
            overflow: hidden;
        }

        .t9-avatar img { width: 100%; height: 100%; object-fit: cover; }

        .t9-avatar::after {
            content: "";
            position: absolute;
            right: -1px;
            bottom: -1px;
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #22c55e;
            border: 2px solid white;
        }

        .t9-name { font-size: 12px; font-weight: 950; }
        .t9-role { margin-top: 2px; font-size: 10px; color: var(--c-muted); font-weight: 750; }

        .t9-quick {
            display: grid;
            gap: 9px;
        }


        /* Quickbedarf: standardmäßig eingefahren, per Maus/Fokus ausklappbar */
        .t9-quickbedarf-collapsible {
            overflow: hidden;
            transition: max-height .22s ease, padding .22s ease, box-shadow .22s ease, border-color .22s ease;
            max-height: 58px;
        }

        .t9-quickbedarf-collapsible .t9-side-title {
            margin-bottom: 0;
            cursor: default;
        }

        .t9-quickbedarf-collapsible .t9-quick {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transform: translateY(-4px);
            margin-top: 0;
            pointer-events: none;
            transition: max-height .24s ease, opacity .18s ease, transform .2s ease, margin-top .2s ease;
        }

        .t9-quickbedarf-collapsible:hover,
        .t9-quickbedarf-collapsible:focus-within {
            max-height: 520px;
            border-color: rgba(108,179,63,.34);
            box-shadow: 0 18px 48px rgba(15,23,42,.08);
        }

        .t9-quickbedarf-collapsible:hover .t9-quick,
        .t9-quickbedarf-collapsible:focus-within .t9-quick {
            max-height: 460px;
            opacity: 1;
            transform: translateY(0);
            margin-top: 10px;
            pointer-events: auto;
        }

        .t9-quickbedarf-hint {
            margin-left: auto;
            font-size: 9px;
            font-weight: 620;
            color: var(--c-muted);
            background: rgba(241,245,249,.9);
            border: 1px solid rgba(148,163,184,.22);
            border-radius: 999px;
            padding: 4px 7px;
            white-space: nowrap;
        }

        .t9-quickbedarf-collapsible:hover .t9-quickbedarf-hint,
        .t9-quickbedarf-collapsible:focus-within .t9-quickbedarf-hint {
            color: #477b2b;
            background: rgba(236,253,245,.95);
            border-color: rgba(108,179,63,.25);
        }

        @media (max-width: 1024px) {
            .t9-quickbedarf-collapsible {
                max-height: none;
            }
            .t9-quickbedarf-collapsible .t9-quick {
                max-height: none;
                opacity: 1;
                transform: none;
                pointer-events: auto;
                margin-top: 10px;
            }
            .t9-quickbedarf-hint { display: none; }
        }

        .t9-quick-btn {
            border: 1px solid rgba(148,163,184,.24);
            background: rgba(248,250,252,.86);
            border-radius: 18px;
            padding: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            font-weight: 950;
            color: #334155;
            cursor: grab;
        }

        .t9-quick-btn i { color: var(--c-green); }

        .t9-legend {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 10px;
            font-weight: 850;
            color: var(--c-muted);
        }

        .t9-legend span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,.72);
            border: 1px solid rgba(148,163,184,.18);
            padding: 6px 9px;
            border-radius: 999px;
        }

        .t9-footer {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px 16px;
            font-size: 10px;
            color: var(--c-muted);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .11em;
            padding: 0 0 2px;
        }

        html.dark body {
            background:
                radial-gradient(circle at 12% 0%, rgba(108,179,63,.12), transparent 32%),
                radial-gradient(circle at 88% 0%, rgba(37,99,235,.12), transparent 30%),
                linear-gradient(180deg, #071120 0%, #020617 100%) !important;
        }

        html.dark .t9-main,
        html.dark .t9-board,
        html.dark .t9-sidecard,
        html.dark .t9-kpi,
        html.dark .t9-corner,
        html.dark .t9-dayhead,
        html.dark .t9-clinic,
        html.dark .t9-cell {
            background: rgba(15,23,42,.86) !important;
            border-color: rgba(148,163,184,.18) !important;
            color: #f8fafc !important;
        }

        html.dark .t9-title h1,
        html.dark .t9-kpi-value,
        html.dark .t9-clinic-name,
        html.dark .t9-name,
        html.dark .t9-side-title,
        html.dark .t9-board-title {
            color: #f8fafc !important;
        }

        html.dark .t9-pill,
        html.dark .t9-btn,
        html.dark .t9-iconbtn,
        html.dark .t9-quick-btn,
        html.dark .t9-online-row,
        html.dark .t9-legend span {
            background: rgba(15,23,42,.92) !important;
            border-color: rgba(148,163,184,.18) !important;
            color: #dbe4ef !important;
        }

        @media (max-width: 1150px) {
            .t9-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
            .t9-rail { flex-direction: row; padding: 10px; justify-content: center; }
            .t9-navbtn { width: 42px; height: 42px; }
            .t9-navbtn.active::before { display: none; }
            .t9-workspace { grid-template-columns: 1fr; }
            .t9-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

    

        /* =========================================================
           TERMINAL 9 – COCKPIT SOFT V2
           Gleiche neue Struktur, aber weniger BOLD-lastig:
           ruhigere Typografie, weichere Karten, dezente Schatten.
           ========================================================= */

        .t9-title h1 {
            font-size: clamp(24px, 2.05vw, 34px) !important;
            font-weight: 850 !important;
            letter-spacing: -0.045em !important;
        }

        .t9-title p {
            font-size: 12px !important;
            font-weight: 650 !important;
            color: #66758a !important;
        }

        .t9-pill,
        .t9-btn,
        .t9-iconbtn {
            font-weight: 750 !important;
            box-shadow: 0 8px 22px rgba(15,23,42,.035) !important;
        }

        .t9-primary {
            box-shadow: 0 10px 24px rgba(108,179,63,.22) !important;
        }

        .t9-kpi {
            min-height: 92px !important;
            padding: 14px 16px !important;
            border-radius: 24px !important;
            box-shadow: 0 14px 38px rgba(15,23,42,.052) !important;
        }

        .t9-kpi::after {
            width: 82px !important;
            height: 82px !important;
            opacity: .72;
        }

        .t9-kpi-label {
            font-size: 9px !important;
            font-weight: 800 !important;
            letter-spacing: .105em !important;
        }

        .t9-kpi-value {
            font-size: 25px !important;
            font-weight: 820 !important;
            letter-spacing: -0.045em !important;
        }

        .t9-board,
        .t9-sidecard {
            box-shadow: 0 16px 46px rgba(15,23,42,.052) !important;
        }

        .t9-board {
            border-radius: 28px !important;
        }

        .t9-board-head {
            padding: 14px 17px !important;
        }

        .t9-board-title {
            font-size: 13px !important;
            font-weight: 800 !important;
        }

        .t9-grid-wrap {
            padding: 14px !important;
        }

        .t9-corner,
        .t9-dayhead,
        .t9-clinic,
        .t9-cell {
            border-radius: 17px !important;
            box-shadow: 0 6px 18px rgba(15,23,42,.028) !important;
        }

        .t9-corner {
            font-size: 9px !important;
            font-weight: 800 !important;
            letter-spacing: .105em !important;
        }

        .t9-dayhead {
            min-height: 66px !important;
            padding: 11px !important;
        }

        .t9-dayname {
            font-size: 9px !important;
            font-weight: 800 !important;
            letter-spacing: .105em !important;
        }

        .t9-daydate {
            font-size: 18px !important;
            font-weight: 800 !important;
            letter-spacing: -0.035em !important;
        }

        .t9-clinic {
            min-height: 104px !important;
            padding: 12px !important;
        }

        .t9-clinic-name {
            font-size: 12px !important;
            font-weight: 780 !important;
            letter-spacing: -0.025em !important;
        }

        .t9-clinic-meta {
            font-size: 9px !important;
            font-weight: 650 !important;
        }

        .t9-cell {
            min-height: 104px !important;
            padding: 8px !important;
        }

        .t9-cell:hover {
            transform: translateY(-1px) !important;
            box-shadow: 0 10px 24px rgba(15,23,42,.055) !important;
        }

        .t9-chip {
            border-radius: 12px !important;
            padding: 7px 8px !important;
            font-size: 10px !important;
            font-weight: 780 !important;
        }

        .t9-count {
            font-size: 10px !important;
            font-weight: 800 !important;
        }

        .t9-empty {
            width: 31px !important;
            height: 31px !important;
            border-radius: 12px !important;
            opacity: .82;
        }

        .t9-sidecard {
            border-radius: 24px !important;
            padding: 14px !important;
        }

        .t9-side-title {
            font-size: 9px !important;
            font-weight: 800 !important;
            letter-spacing: .105em !important;
        }

        .t9-online-row {
            border-radius: 14px !important;
        }

        .t9-name {
            font-size: 11px !important;
            font-weight: 760 !important;
        }

        .t9-role {
            font-size: 9px !important;
            font-weight: 600 !important;
        }

        .t9-quick-btn {
            border-radius: 15px !important;
            padding: 11px !important;
            font-size: 11px !important;
            font-weight: 760 !important;
        }

        .t9-legend {
            font-size: 9px !important;
            font-weight: 700 !important;
        }

        .t9-footer {
            font-size: 9px !important;
            font-weight: 680 !important;
            letter-spacing: .09em !important;
        }

        .t9-rail {
            box-shadow: 12px 0 36px rgba(15,23,42,.13) !important;
        }

        .t9-navbtn {
            font-size: 14px !important;
        }

    

        /* =========================================================
           ADMIN DISPOSITION V2 – bessere Lesbarkeit
           ========================================================= */
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            appearance: textfield;
            -moz-appearance: textfield;
        }

    

        /* =========================================================
           OFFEN-KPI:  kurz hervorheben
           ========================================================= */
        @keyframes t9-open-need-pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 8px 24px rgba(15,23,42,.035);
            }
            18% {
                transform: scale(1.30);
                box-shadow:
                    0 22px 60px rgba(220, 38, 38, 0.22),
                    0 0 0 3px rgba(220, 38, 38, 0.20);
                border-color: rgba(220, 38, 38, 0.48) !important;
            }
            34% {
                transform: scale(0.98);
                box-shadow:
                    0 12px 32px rgba(245, 158, 11, 0.16),
                    0 0 0 2px rgba(245, 158, 11, 0.18);
                border-color: rgba(245, 158, 11, 0.42) !important;
            }
            52% {
                transform: scale(1.18);
                box-shadow:
                    0 18px 48px rgba(220, 38, 38, 0.18),
                    0 0 0 3px rgba(220, 38, 38, 0.16);
                border-color: rgba(220, 38, 38, 0.44) !important;
            }
            76% {
                transform: scale(0.995);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 8px 24px rgba(15,23,42,.035);
            }
        }

        .t9-cell.t9-open-need-flash {
            animation: t9-open-need-pulse 1.65s cubic-bezier(.2,.9,.18,1) 1;
            transform-origin: center center;
            position: relative;
            z-index: 25;
            will-change: transform, box-shadow;
        }

    

        /* =========================================================
           TAGESBILANZ – unten in der Wochenübersicht
           ========================================================= */
        .t9-balance-label,
        .t9-balance-cell {
            border: 1px solid rgba(148,163,184,.20);
            border-radius: 18px;
            background: rgba(248,250,252,.82);
            box-shadow: 0 6px 18px rgba(15,23,42,.026);
            min-height: 58px;
            display: flex;
            align-items: center;
        }

        .t9-balance-label {
            padding: 12px 14px;
            color: #64748b;
            font-size: 9px;
            font-weight: 850;
            text-transform: uppercase;
            letter-spacing: .11em;
            position: sticky;
            left: 0;
            z-index: 3;
        }

        .t9-balance-cell {
            justify-content: center;
            padding: 10px;
        }

        .t9-balance-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 54px;
            padding: 7px 12px;
            border-radius: 999px;
            font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
            font-size: 12px;
            font-weight: 900;
            border: 1px solid rgba(148,163,184,.20);
            background: rgba(255,255,255,.82);
        }

        .t9-balance-pill.ok {
            color: #5a9632;
            border-color: rgba(108,179,63,.28);
            background: rgba(108,179,63,.10);
        }

        .t9-balance-pill.warn {
            color: #dc2626;
            border-color: rgba(220,38,38,.25);
            background: rgba(220,38,38,.08);
        }

        .t9-balance-pill.empty {
            color: #94a3b8;
            background: rgba(241,245,249,.65);
        }

        html.dark .t9-balance-label,
        html.dark .t9-balance-cell {
            background: rgba(15,23,42,.72);
            border-color: rgba(148,163,184,.18);
        }

    

        /* =========================================================
           NEUE ANFORDERUNG – noch nicht durch Admin bearbeitet
           Orange, leicht pulsierend, damit die Zentrale sofort reagiert.
           ========================================================= */
        @keyframes t9-new-request-soft-pulse {
            0%, 100% {
                box-shadow:
                    0 6px 18px rgba(217,119,6,0.06),
                    0 0 0 0 rgba(245,158,11,0.00);
                transform: scale(1);
            }
            50% {
                box-shadow:
                    0 10px 26px rgba(217,119,6,0.16),
                    0 0 0 4px rgba(245,158,11,0.13);
                transform: scale(1.015);
            }
        }

        .t9-chip.new-request {
            color: #9a4b00 !important;
            background:
                linear-gradient(135deg, rgba(255, 237, 213, 0.98), rgba(255,255,255,0.96)) !important;
            border-color: rgba(245, 158, 11, 0.42) !important;
            animation: t9-new-request-soft-pulse 1.9s ease-in-out infinite;
        }

        .t9-chip.new-request .t9-dot {
            background: #f59e0b !important;
            box-shadow: 0 0 0 4px rgba(245,158,11,0.13) !important;
        }

        .t9-chip.new-request::before {
            content: "Neu";
            margin-right: 2px;
            padding: 2px 6px;
            border-radius: 999px;
            background: rgba(245,158,11,0.16);
            color: #92400e;
            font-size: 8px;
            font-weight: 950;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        html.dark .t9-chip.new-request {
            color: #fde68a !important;
            background:
                linear-gradient(135deg, rgba(120, 53, 15, 0.42), rgba(15,23,42,0.92)) !important;
            border-color: rgba(245, 158, 11, 0.48) !important;
        }

        html.dark .t9-chip.new-request::before {
            background: rgba(245,158,11,0.20);
            color: #fde68a;
        }

    

        /* =========================================================
           BEARBEITUNG – ruhige Prozessanimation
           Wenn Admin eine neue Anforderung öffnet, springt sie auf Bearbeitung.
           ========================================================= */
        @keyframes t9-processing-calm-flow {
            0% {
                background-position: 0% 50%;
                box-shadow:
                    0 6px 18px rgba(37, 99, 235, 0.06),
                    0 0 0 0 rgba(37, 99, 235, 0.00);
            }
            50% {
                background-position: 100% 50%;
                box-shadow:
                    0 10px 26px rgba(37, 99, 235, 0.12),
                    0 0 0 4px rgba(37, 99, 235, 0.08);
            }
            100% {
                background-position: 0% 50%;
                box-shadow:
                    0 6px 18px rgba(37, 99, 235, 0.06),
                    0 0 0 0 rgba(37, 99, 235, 0.00);
            }
        }

        .t9-chip.blue,
        .t9-chip.processing {
            color: #1e40af !important;
            background:
                linear-gradient(
                    110deg,
                    rgba(239, 246, 255, 0.96),
                    rgba(219, 234, 254, 0.96),
                    rgba(191, 219, 254, 0.88),
                    rgba(239, 246, 255, 0.96)
                ) !important;
            background-size: 240% 240% !important;
            border-color: rgba(37, 99, 235, 0.28) !important;
            animation: t9-processing-calm-flow 3.4s ease-in-out infinite;
        }

        .t9-chip.blue .t9-dot,
        .t9-chip.processing .t9-dot {
            background: #2563eb !important;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10) !important;
        }

        html.dark .t9-chip.blue,
        html.dark .t9-chip.processing {
            color: #bfdbfe !important;
            background:
                linear-gradient(
                    110deg,
                    rgba(30, 58, 138, 0.34),
                    rgba(37, 99, 235, 0.24),
                    rgba(59, 130, 246, 0.20),
                    rgba(30, 58, 138, 0.34)
                ) !important;
            border-color: rgba(96, 165, 250, 0.34) !important;
        }

    

        /* =========================================================
           PROFIL V2 / RAIL-TOOLTIPS / MATRIX-TOOLTIPS
           ========================================================= */
        .t9-navbtn[data-tip]::after {
            content: attr(data-tip);
            position: absolute;
            left: calc(100% + 12px);
            top: 50%;
            transform: translateY(-50%) translateX(-4px);
            background: #0f172a;
            color: #f8fafc;
            border: 1px solid rgba(148,163,184,.28);
            box-shadow: 0 14px 34px rgba(15,23,42,.24);
            padding: 7px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 850;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: .15s ease;
            z-index: 999;
        }

        .t9-navbtn[data-tip]:hover::after {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }

        html:not(.dark) [class~="fixed"][class*="bg-slate-800"]:has(.t9-tooltip-content),
        html:not(.dark) [class~="fixed"][class*="bg-slate-900"]:has(.t9-tooltip-content),
        html:not(.dark) [class~="absolute"][class*="bg-slate-800"]:has(.t9-tooltip-content),
        html:not(.dark) [class~="absolute"][class*="bg-slate-900"]:has(.t9-tooltip-content),
        html:not(.dark) .hover-tooltip:has(.t9-tooltip-content),
        html:not(.dark) .tooltip:has(.t9-tooltip-content),
        html:not(.dark) [role="tooltip"]:has(.t9-tooltip-content) {
            background: #ffffff !important;
            color: #0f172a !important;
            border: 1px solid #cbd5e1 !important;
            box-shadow: 0 22px 70px rgba(15,23,42,.20), 0 4px 14px rgba(15,23,42,.10) !important;
        }

        html:not(.dark) [class~="fixed"][class*="bg-slate-800"]:has(.t9-tooltip-content) *,
        html:not(.dark) [class~="fixed"][class*="bg-slate-900"]:has(.t9-tooltip-content) *,
        html:not(.dark) [class~="absolute"][class*="bg-slate-800"]:has(.t9-tooltip-content) *,
        html:not(.dark) [class~="absolute"][class*="bg-slate-900"]:has(.t9-tooltip-content) *,
        html:not(.dark) .hover-tooltip:has(.t9-tooltip-content) *,
        html:not(.dark) .tooltip:has(.t9-tooltip-content) *,
        html:not(.dark) [role="tooltip"]:has(.t9-tooltip-content) * {
            color: #0f172a !important;
        }

        html:not(.dark) .t9-tooltip-content .text-slate-300,
        html:not(.dark) .t9-tooltip-content .text-slate-400,
        html:not(.dark) .t9-tooltip-content .text-slate-500,
        html:not(.dark) .t9-tooltip-content .text-slate-600 {
            color: #64748b !important;
        }

        html:not(.dark) .t9-tooltip-content .text-\[\#6cb33f\] {
            color: #4d8629 !important;
        }

        html:not(.dark) .border-t-slate-800,
        html:not(.dark) .border-t-slate-900 {
            border-top-color: #ffffff !important;
        }

        @media (max-width: 1150px) {
            .t9-navbtn[data-tip]::after { display: none; }
        }

    

        /* Matrix-Einrichtungsfilter */
        .t9-placeholder-hospital {
            opacity: .72;
            cursor: default !important;
        }

        .t9-placeholder-hospital:hover {
            transform: none !important;
            border-color: rgba(148,163,184,.20) !important;
        }

    

        /* =========================================================
           TERMINAL 9 STARTSCREEN V2
           Moderner, leichter Startbildschirm passend zum Cockpit.
           ========================================================= */
        .t9-start-overlay {
            position: fixed;
            inset: 0;
            z-index: 220;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            background:
                radial-gradient(circle at 18% 12%, rgba(108,179,63,.18), transparent 28%),
                radial-gradient(circle at 84% 18%, rgba(37,99,235,.16), transparent 30%),
                rgba(15,23,42,.70);
            backdrop-filter: blur(18px) saturate(1.18);
            -webkit-backdrop-filter: blur(18px) saturate(1.18);
        }

        .t9-start-card {
            width: min(760px, calc(100vw - 2rem));
            border-radius: 2rem;
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,252,247,.94));
            border: 1px solid rgba(226,232,240,.88);
            box-shadow:
                0 32px 95px rgba(15,23,42,.34),
                inset 0 1px 0 rgba(255,255,255,.9);
            position: relative;
        }

        .t9-start-card::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 5px;
            background: linear-gradient(90deg, #6cb33f, #93d66b, #2563eb);
        }

        .t9-start-inner {
            display: grid;
            grid-template-columns: 190px minmax(0, 1fr);
            gap: 0;
        }

        .t9-start-left {
            padding: 2rem 1.45rem;
            background:
                radial-gradient(circle at 50% 20%, rgba(108,179,63,.18), transparent 42%),
                linear-gradient(180deg, rgba(241,248,238,.94), rgba(255,255,255,.72));
            border-right: 1px solid rgba(226,232,240,.82);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 320px;
        }

        .t9-start-icon {
            width: 70px;
            height: 70px;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(108,179,63,.16), rgba(108,179,63,.08));
            color: #5a9632;
            display: grid;
            place-items: center;
            font-size: 28px;
            border: 1px solid rgba(108,179,63,.18);
            box-shadow: 0 14px 34px rgba(108,179,63,.12);
        }

        .t9-start-meta {
            display: grid;
            gap: .55rem;
        }

        .t9-start-chip {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            width: fit-content;
            padding: .5rem .7rem;
            border-radius: 999px;
            background: rgba(255,255,255,.78);
            border: 1px solid rgba(148,163,184,.20);
            color: #64748b;
            font-size: 10px;
            font-weight: 850;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .t9-start-main {
            padding: 2.2rem 2.35rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
        }

        .t9-start-kicker {
            color: #6cb33f;
            font-size: 10px;
            font-weight: 950;
            letter-spacing: .18em;
            text-transform: uppercase;
            margin-bottom: .75rem;
        }

        .t9-start-title {
            color: #0f172a;
            font-size: clamp(2rem, 4vw, 3.25rem);
            line-height: .96;
            letter-spacing: -.07em;
            font-weight: 900;
            margin: 0;
        }

        .t9-start-sub {
            margin-top: .85rem;
            color: #64748b;
            font-size: .95rem;
            line-height: 1.5;
            font-weight: 650;
            max-width: 34rem;
        }

        .t9-start-quote {
            margin-top: 1.2rem;
            padding: 1rem 1.1rem;
            border-radius: 1.25rem;
            background: rgba(248,250,252,.86);
            border: 1px solid rgba(226,232,240,.9);
            color: #475569;
            font-size: .95rem;
            font-weight: 700;
            font-style: italic;
        }

        .t9-start-actions {
            margin-top: 1.4rem;
            display: flex;
            align-items: center;
            gap: .75rem;
            flex-wrap: wrap;
        }

        .t9-start-btn {
            border: 0;
            border-radius: 1.1rem;
            padding: .95rem 1.25rem;
            background: linear-gradient(135deg, #6cb33f, #86d75e);
            color: white;
            font-weight: 950;
            letter-spacing: .02em;
            box-shadow: 0 16px 34px rgba(108,179,63,.24);
            display: inline-flex;
            align-items: center;
            gap: .6rem;
            transition: .16s ease;
        }

        .t9-start-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 20px 42px rgba(108,179,63,.30);
        }

        .t9-start-link {
            color: #64748b;
            font-size: .75rem;
            font-weight: 850;
        }

        html.dark .t9-start-card {
            background:
                linear-gradient(135deg, rgba(15,23,42,.96), rgba(2,6,23,.96));
            border-color: rgba(148,163,184,.20);
        }

        html.dark .t9-start-left {
            background:
                radial-gradient(circle at 50% 20%, rgba(108,179,63,.16), transparent 42%),
                linear-gradient(180deg, rgba(15,23,42,.86), rgba(2,6,23,.78));
            border-right-color: rgba(148,163,184,.18);
        }

        html.dark .t9-start-title {
            color: #f8fafc;
        }

        html.dark .t9-start-sub,
        html.dark .t9-start-link {
            color: #94a3b8;
        }

        html.dark .t9-start-quote,
        html.dark .t9-start-chip {
            background: rgba(15,23,42,.74);
            border-color: rgba(148,163,184,.18);
            color: #cbd5e1;
        }

        @media (max-width: 760px) {
            .t9-start-inner {
                grid-template-columns: 1fr;
            }

            .t9-start-left {
                min-height: auto;
                flex-direction: row;
                align-items: center;
                border-right: 0;
                border-bottom: 1px solid rgba(226,232,240,.82);
                padding: 1.25rem;
            }

            .t9-start-main {
                padding: 1.65rem;
            }
        }

    

        /* =========================================================
           STRESS-MODUS – Mediterrane Relax Zone
           Humorvoller Beruhigungsmodus mit voller Funktionalität.
           ========================================================= */
        html.stress body {
            background:
                radial-gradient(circle at 12% 6%, rgba(255, 214, 165, .34), transparent 30%),
                radial-gradient(circle at 86% 10%, rgba(125, 211, 252, .24), transparent 28%),
                radial-gradient(circle at 55% 100%, rgba(134, 239, 172, .22), transparent 34%),
                linear-gradient(135deg, #fff7ed 0%, #f0fdfa 44%, #eff6ff 100%) !important;
            color: #243447 !important;
        }

        html.stress .t9-rail {
            background:
                linear-gradient(180deg, rgba(34, 78, 69, .96), rgba(24, 64, 54, .96)) !important;
            box-shadow: 14px 0 42px rgba(24, 64, 54, .18) !important;
        }

        html.stress .t9-logo {
            background: linear-gradient(135deg, #f59e0b, #6cb33f) !important;
            box-shadow: 0 16px 32px rgba(245, 158, 11, .22) !important;
        }

        html.stress .t9-title h1 {
            color: #24483f !important;
        }

        html.stress .t9-title p,
        html.stress .t9-kpi-label,
        html.stress .t9-side-title,
        html.stress .t9-clinic-meta,
        html.stress .t9-footer,
        html.stress .t9-legend {
            color: #6b7d70 !important;
        }

        html.stress .t9-kpi,
        html.stress .t9-board,
        html.stress .t9-sidecard,
        html.stress .t9-corner,
        html.stress .t9-dayhead,
        html.stress .t9-clinic,
        html.stress .t9-cell,
        html.stress .t9-pill,
        html.stress .t9-btn,
        html.stress .t9-iconbtn,
        html.stress .t9-quick-btn,
        html.stress .t9-online-row,
        html.stress .t9-legend span,
        html.stress .t9-balance-label,
        html.stress .t9-balance-cell {
            background: rgba(255, 253, 247, .78) !important;
            border-color: rgba(251, 191, 36, .20) !important;
            box-shadow:
                0 14px 36px rgba(120, 113, 108, .055),
                inset 0 1px 0 rgba(255,255,255,.76) !important;
        }

        html.stress .t9-board-head {
            background: rgba(255, 253, 247, .62) !important;
            border-color: rgba(251, 191, 36, .16) !important;
        }

        html.stress .t9-primary,
        html.stress .t9-start-btn {
            background: linear-gradient(135deg, #f59e0b, #6cb33f) !important;
            box-shadow: 0 14px 30px rgba(245, 158, 11, .22) !important;
        }

        html.stress .t9-dayhead.today {
            background:
                linear-gradient(135deg, rgba(251, 191, 36, .20), rgba(255,255,255,.78)) !important;
            border-color: rgba(245, 158, 11, .28) !important;
        }

        html.stress .t9-cell:hover {
            background:
                linear-gradient(135deg, rgba(251, 191, 36, .12), rgba(134,239,172,.10), rgba(255,255,255,.84)) !important;
            border-color: rgba(245, 158, 11, .36) !important;
            box-shadow: 0 12px 28px rgba(245, 158, 11, .10) !important;
        }

        html.stress .t9-kpi::after {
            background: rgba(251, 191, 36, .14) !important;
        }

        html.stress .t9-kpi.blue::after {
            background: rgba(125, 211, 252, .17) !important;
        }

        html.stress .t9-kpi.red::after {
            background: rgba(251, 146, 60, .16) !important;
        }

        html.stress .t9-chip.green {
            background: rgba(187, 247, 208, .36) !important;
            border-color: rgba(34, 197, 94, .24) !important;
            color: #246b3d !important;
        }

        html.stress .t9-chip.blue,
        html.stress .t9-chip.processing {
            background:
                linear-gradient(110deg, rgba(224, 242, 254, .86), rgba(186, 230, 253, .72), rgba(240, 253, 250, .86)) !important;
            color: #075985 !important;
            border-color: rgba(14, 165, 233, .24) !important;
        }

        html.stress .t9-chip.red,
        html.stress .t9-chip.new-request,
        html.stress .t9-chip.amber {
            background:
                linear-gradient(135deg, rgba(255, 237, 213, .90), rgba(255,255,255,.84)) !important;
            color: #9a3412 !important;
            border-color: rgba(251, 146, 60, .28) !important;
        }

        html.stress .t9-start-overlay {
            background:
                radial-gradient(circle at 18% 12%, rgba(251, 191, 36, .20), transparent 28%),
                radial-gradient(circle at 84% 18%, rgba(125, 211, 252, .18), transparent 30%),
                rgba(30, 64, 55, .58) !important;
        }

        html.stress .t9-start-card {
            background:
                linear-gradient(135deg, rgba(255, 253, 247, .98), rgba(240, 253, 250, .94)) !important;
        }

        .stress-particle-layer {
            position: fixed;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            z-index: 60;
            opacity: 0;
            transition: opacity .6s ease;
        }

        html.stress .stress-particle-layer {
            opacity: 1;
        }

        .stress-floater {
            position: absolute;
            top: var(--top);
            left: -8vw;
            font-size: var(--size);
            opacity: var(--opacity);
            filter: drop-shadow(0 10px 18px rgba(15,23,42,.10));
            animation:
                stress-float-x var(--duration) linear infinite,
                stress-float-y 5.5s ease-in-out infinite;
            animation-delay: var(--delay);
            transform: translate3d(0,0,0);
        }

        .stress-floater:nth-child(2n) {
            animation-duration: var(--duration), 7s;
        }

        .stress-floater:nth-child(3n) {
            filter: drop-shadow(0 8px 14px rgba(245,158,11,.12));
        }

        @keyframes stress-float-x {
            from { transform: translateX(-10vw) rotate(-8deg); }
            to { transform: translateX(118vw) rotate(14deg); }
        }

        @keyframes stress-float-y {
            0%, 100% { margin-top: 0; }
            50% { margin-top: -24px; }
        }

        .stress-breathing-badge {
            position: fixed;
            right: 1.25rem;
            bottom: 1.25rem;
            z-index: 70;
            display: none;
            align-items: center;
            gap: .6rem;
            padding: .7rem .9rem;
            border-radius: 999px;
            background: rgba(255, 253, 247, .86);
            border: 1px solid rgba(251, 191, 36, .26);
            box-shadow: 0 16px 38px rgba(120, 113, 108, .12);
            color: #4d6b55;
            font-size: 11px;
            font-weight: 900;
            backdrop-filter: blur(14px);
        }

        html.stress .stress-breathing-badge {
            display: inline-flex;
        }

        .stress-breathing-dot {
            width: 12px;
            height: 12px;
            border-radius: 999px;
            background: #6cb33f;
            animation: stress-breathe 4s ease-in-out infinite;
        }

        @keyframes stress-breathe {
            0%, 100% {
                transform: scale(.72);
                box-shadow: 0 0 0 0 rgba(108,179,63,.18);
            }
            50% {
                transform: scale(1.35);
                box-shadow: 0 0 0 12px rgba(108,179,63,.08);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .stress-floater,
            .stress-breathing-dot {
                animation: none !important;
            }
        }

    

        /* =========================================================
           STRESS-MODUS V2 – Natur, Wellen, Schmetterlinge, Ruhe
           ========================================================= */

        html.stress body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 1;
            background:
                radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .44), transparent 20%),
                radial-gradient(circle at 82% 18%, rgba(186, 230, 253, .32), transparent 22%),
                linear-gradient(180deg, rgba(255,247,237,.12), rgba(240,253,250,.16));
        }

        .stress-nature-layer {
            position: fixed;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            z-index: 58;
            opacity: 0;
            transition: opacity .7s ease;
        }

        html.stress .stress-nature-layer {
            opacity: 1;
        }

        .stress-sun {
            position: absolute;
            width: 140px;
            height: 140px;
            right: 7vw;
            top: 7vh;
            border-radius: 999px;
            background:
                radial-gradient(circle, rgba(253, 186, 116, .42), rgba(253, 186, 116, .12) 52%, transparent 70%);
            filter: blur(.2px);
            animation: stress-sun-breathe 8s ease-in-out infinite;
        }

        @keyframes stress-sun-breathe {
            0%, 100% { transform: scale(.96); opacity: .55; }
            50% { transform: scale(1.08); opacity: .82; }
        }

        .stress-wave {
            position: absolute;
            left: -8%;
            right: -8%;
            height: 130px;
            bottom: var(--bottom);
            opacity: var(--opacity);
            background:
                radial-gradient(60px 36px at 80px 30px, rgba(125, 211, 252, .34), transparent 68%),
                radial-gradient(75px 40px at 210px 34px, rgba(45, 212, 191, .22), transparent 70%),
                radial-gradient(90px 42px at 360px 38px, rgba(147, 197, 253, .20), transparent 72%);
            background-size: 420px 110px;
            filter: blur(.2px);
            animation: stress-wave-move var(--duration) linear infinite;
        }

        .stress-wave.wave-2 {
            height: 110px;
            animation-direction: reverse;
            filter: blur(1px);
        }

        @keyframes stress-wave-move {
            from { transform: translateX(0); }
            to { transform: translateX(420px); }
        }

        .stress-hill {
            position: absolute;
            bottom: -70px;
            width: 54vw;
            height: 190px;
            border-radius: 50% 50% 0 0;
            background: linear-gradient(180deg, rgba(134,239,172,.18), rgba(34,197,94,.08));
            filter: blur(.3px);
        }

        .stress-hill.left {
            left: -12vw;
        }

        .stress-hill.right {
            right: -16vw;
            width: 62vw;
            background: linear-gradient(180deg, rgba(187,247,208,.16), rgba(20,184,166,.07));
        }

        .stress-cloud {
            position: absolute;
            top: var(--top);
            left: -16vw;
            width: var(--width);
            height: calc(var(--width) * .32);
            opacity: var(--opacity);
            background:
                radial-gradient(circle at 18% 55%, rgba(255,255,255,.64), transparent 34%),
                radial-gradient(circle at 40% 38%, rgba(255,255,255,.74), transparent 38%),
                radial-gradient(circle at 65% 56%, rgba(255,255,255,.62), transparent 35%),
                radial-gradient(circle at 82% 60%, rgba(255,255,255,.48), transparent 30%);
            filter: blur(.4px);
            animation: stress-cloud-drift var(--duration) linear infinite;
            animation-delay: var(--delay);
        }

        @keyframes stress-cloud-drift {
            from { transform: translateX(-18vw); }
            to { transform: translateX(132vw); }
        }

        .stress-butterfly {
            position: absolute;
            top: var(--top);
            left: -10vw;
            width: var(--size);
            height: var(--size);
            opacity: var(--opacity);
            filter: drop-shadow(0 9px 12px rgba(15,23,42,.10));
            animation:
                stress-butterfly-x var(--duration) linear infinite,
                stress-butterfly-y 4.8s ease-in-out infinite;
            animation-delay: var(--delay);
        }

        .stress-butterfly::before,
        .stress-butterfly::after {
            content: "";
            position: absolute;
            width: 50%;
            height: 70%;
            top: 8%;
            border-radius: 65% 45% 65% 45%;
            background: var(--wing);
            transform-origin: 100% 55%;
            animation: stress-wing-left .42s ease-in-out infinite alternate;
        }

        .stress-butterfly::before {
            left: 0;
        }

        .stress-butterfly::after {
            right: 0;
            transform-origin: 0% 55%;
            border-radius: 45% 65% 45% 65%;
            animation-name: stress-wing-right;
        }

        .stress-butterfly span {
            position: absolute;
            left: 47%;
            top: 18%;
            width: 6%;
            height: 60%;
            border-radius: 999px;
            background: rgba(71, 85, 105, .42);
        }

        @keyframes stress-wing-left {
            from { transform: rotateY(18deg) rotate(-8deg); }
            to { transform: rotateY(72deg) rotate(10deg); }
        }

        @keyframes stress-wing-right {
            from { transform: rotateY(-18deg) rotate(8deg); }
            to { transform: rotateY(-72deg) rotate(-10deg); }
        }

        @keyframes stress-butterfly-x {
            from { transform: translateX(-12vw) rotate(-6deg); }
            to { transform: translateX(124vw) rotate(8deg); }
        }

        @keyframes stress-butterfly-y {
            0%, 100% { margin-top: 0; }
            25% { margin-top: -28px; }
            50% { margin-top: 12px; }
            75% { margin-top: -18px; }
        }

        .stress-flower {
            position: absolute;
            bottom: var(--bottom);
            left: var(--left);
            font-size: var(--size);
            opacity: .34;
            animation: stress-flower-sway var(--duration) ease-in-out infinite;
            transform-origin: bottom center;
        }

        @keyframes stress-flower-sway {
            0%, 100% { transform: rotate(-4deg); }
            50% { transform: rotate(5deg); }
        }

        .stress-audio-button {
            position: fixed;
            right: 1.25rem;
            bottom: 4.4rem;
            z-index: 72;
            display: none;
            align-items: center;
            gap: .55rem;
            padding: .72rem .95rem;
            border-radius: 999px;
            border: 1px solid rgba(14, 165, 233, .24);
            background: rgba(255, 253, 247, .88);
            box-shadow: 0 16px 38px rgba(120, 113, 108, .13);
            color: #075985;
            font-size: 11px;
            font-weight: 900;
            backdrop-filter: blur(14px);
            cursor: pointer;
        }

        html.stress .stress-audio-button {
            display: inline-flex;
        }

        .stress-audio-button.playing {
            color: #4d6b55;
            border-color: rgba(108,179,63,.28);
        }

        .stress-audio-eq {
            display: inline-flex;
            align-items: end;
            gap: 2px;
            height: 14px;
        }

        .stress-audio-eq i {
            display: block;
            width: 3px;
            border-radius: 99px;
            background: currentColor;
            opacity: .72;
            animation: stress-eq 1.15s ease-in-out infinite;
        }

        .stress-audio-eq i:nth-child(1) { height: 7px; animation-delay: 0s; }
        .stress-audio-eq i:nth-child(2) { height: 12px; animation-delay: .14s; }
        .stress-audio-eq i:nth-child(3) { height: 9px; animation-delay: .28s; }

        @keyframes stress-eq {
            0%, 100% { transform: scaleY(.55); }
            50% { transform: scaleY(1.15); }
        }

        @media (prefers-reduced-motion: reduce) {
            .stress-butterfly,
            .stress-cloud,
            .stress-wave,
            .stress-flower,
            .stress-sun,
            .stress-audio-eq i {
                animation: none !important;
            }
        }

    

        /* =========================================================
           HIERARCHIE / VERLAUF + QUICK-BEDARF DROP-ZIELE
           ========================================================= */
        .t9-chip {
            position: relative;
        }

        .t9-history-btn {
            width: 22px;
            height: 22px;
            border-radius: 999px;
            border: 1px solid rgba(148,163,184,.22);
            background: rgba(255,255,255,.62);
            color: #64748b;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            font-size: 10px;
            opacity: .58;
            transition: .15s ease;
        }

        .t9-chip:hover .t9-history-btn,
        .t9-history-btn:hover {
            opacity: 1;
            color: #2563eb;
            border-color: rgba(37,99,235,.28);
            background: rgba(239,246,255,.90);
            transform: scale(1.08);
        }

        .t9-cell.t9-drop-target {
            border-color: rgba(108,179,63,.58) !important;
            background:
                linear-gradient(135deg, rgba(108,179,63,.14), rgba(255,255,255,.88)) !important;
            box-shadow:
                inset 0 0 0 2px rgba(108,179,63,.22),
                0 16px 40px rgba(108,179,63,.14) !important;
            transform: translateY(-2px) scale(1.012);
        }

        .t9-cell.t9-drop-target::before {
            content: "Hier ablegen";
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 2;
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(108,179,63,.14);
            color: #4d8629;
            border: 1px solid rgba(108,179,63,.24);
            font-size: 9px;
            font-weight: 950;
            letter-spacing: .06em;
            text-transform: uppercase;
            pointer-events: none;
        }

        .t9-cell.t9-drop-target-admin {
            border-color: rgba(37,99,235,.52) !important;
            background:
                linear-gradient(135deg, rgba(219,234,254,.88), rgba(255,255,255,.86)) !important;
            box-shadow:
                inset 0 0 0 2px rgba(37,99,235,.18),
                0 16px 40px rgba(37,99,235,.12) !important;
        }

        .t9-cell.t9-drop-target-admin::before {
            content: "Personal hier zuweisen";
            background: rgba(37,99,235,.12);
            color: #1e40af;
            border-color: rgba(37,99,235,.22);
        }

        .t9-quick-btn[draggable="true"] {
            cursor: grab;
        }

        .t9-quick-btn[draggable="true"]:active {
            cursor: grabbing;
            transform: scale(.98);
        }

        html.dark .t9-history-btn {
            background: rgba(15,23,42,.76);
            color: #94a3b8;
            border-color: rgba(148,163,184,.18);
        }

        html.dark .t9-cell.t9-drop-target {
            background:
                linear-gradient(135deg, rgba(34,197,94,.20), rgba(15,23,42,.82)) !important;
        }

        html.stress .t9-cell.t9-drop-target {
            background:
                linear-gradient(135deg, rgba(251,191,36,.18), rgba(134,239,172,.14), rgba(255,253,247,.88)) !important;
            border-color: rgba(245,158,11,.42) !important;
            box-shadow:
                inset 0 0 0 2px rgba(245,158,11,.14),
                0 16px 40px rgba(245,158,11,.14) !important;
        }

        html.stress .t9-cell.t9-drop-target::before {
            background: rgba(245,158,11,.14);
            color: #92400e;
            border-color: rgba(245,158,11,.22);
        }

    

        /* =========================================================
           TERMINAL 9 – ELEGANCE POLISH
           Layout bleibt gleich, aber die komplette Oberfläche bekommt
           die ruhige, hochwertige Eleganz der Kontaktkarten.
           ========================================================= */

        :root {
            --elegance-ink: #1d293b;
            --elegance-muted: #718096;
            --elegance-soft: #f8fafc;
            --elegance-line: rgba(203, 213, 225, 0.72);
            --elegance-shadow: 0 18px 46px rgba(15, 23, 42, 0.055);
            --elegance-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.038);
        }

        body {
            -webkit-font-smoothing: antialiased;
            text-rendering: geometricPrecision;
        }

        /* Grundtypografie etwas ruhiger und weniger brachial */
        .t9-title h1 {
            font-weight: 820 !important;
            letter-spacing: -0.055em !important;
            color: var(--elegance-ink) !important;
        }

        .t9-title p,
        .t9-clinic-meta,
        .t9-role,
        .t9-footer,
        .t9-legend,
        .t9-start-link {
            color: var(--elegance-muted) !important;
        }

        /* Hauptkarten: mehr Premium, weniger Dashboard-Klotz */
        .t9-kpi,
        .t9-board,
        .t9-sidecard,
        .t9-corner,
        .t9-dayhead,
        .t9-clinic,
        .t9-cell,
        .t9-balance-label,
        .t9-balance-cell {
            border-color: var(--elegance-line) !important;
            box-shadow: var(--elegance-shadow-soft) !important;
        }

        .t9-board,
        .t9-sidecard,
        .t9-kpi {
            background:
                linear-gradient(145deg, rgba(255,255,255,0.92), rgba(248,250,252,0.82)) !important;
            backdrop-filter: blur(18px) saturate(1.12) !important;
            -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
        }

        .t9-board {
            border-radius: 30px !important;
            box-shadow: var(--elegance-shadow) !important;
        }

        .t9-board-head {
            background: rgba(255,255,255,0.62) !important;
            border-bottom-color: rgba(226,232,240,0.86) !important;
        }

        .t9-board-title,
        .t9-side-title {
            color: #26364c !important;
            font-weight: 850 !important;
        }

        .t9-kpi {
            border-radius: 26px !important;
            min-height: 96px !important;
        }

        .t9-kpi-label {
            color: #8491a5 !important;
            font-weight: 850 !important;
        }

        .t9-kpi-value {
            color: #1f2d3d !important;
            font-weight: 820 !important;
        }

        .t9-kpi::after {
            opacity: 0.58 !important;
        }

        /* Matrix-Karten wie kleine Kontaktkarten */
        .t9-corner,
        .t9-dayhead,
        .t9-clinic,
        .t9-cell {
            background:
                linear-gradient(145deg, rgba(255,255,255,0.94), rgba(248,250,252,0.78)) !important;
            border-radius: 19px !important;
        }

        .t9-daydate {
            color: #1f2d3d !important;
            font-weight: 820 !important;
        }

        .t9-dayname,
        .t9-corner {
            color: #8491a5 !important;
        }

        .t9-clinic-name {
            color: #1f2d3d !important;
            font-weight: 820 !important;
        }

        .t9-cell:hover,
        .t9-clinic:hover {
            transform: translateY(-1px) !important;
            box-shadow:
                0 16px 34px rgba(15,23,42,0.065),
                inset 0 0 0 1px rgba(108,179,63,0.12) !important;
        }

        /* Status-Chips eleganter, aber Status bleibt eindeutig */
        .t9-chip {
            border-radius: 13px !important;
            font-weight: 820 !important;
            box-shadow: 0 5px 14px rgba(15,23,42,0.032) !important;
        }

        .t9-chip.green {
            background: linear-gradient(135deg, rgba(236, 248, 231, 0.96), rgba(255,255,255,0.86)) !important;
            border-color: rgba(108,179,63,0.26) !important;
            color: #477b2b !important;
        }

        .t9-chip.blue,
        .t9-chip.processing {
            background:
                linear-gradient(110deg, rgba(239,246,255,0.96), rgba(219,234,254,0.82), rgba(255,255,255,0.90)) !important;
            border-color: rgba(37,99,235,0.22) !important;
            color: #2454b8 !important;
        }

        .t9-chip.partial {
            background: linear-gradient(90deg, rgba(108,179,63,.16) 0%, rgba(190,242,100,.14) 38%, rgba(255,237,213,.90) 72%, rgba(251,146,60,.18) 100%);
            border-color: rgba(245, 158, 11, .58);
            color: #8a3a12;
            position: relative;
        }
        .t9-chip.partial .t9-dot { background: #6cb33f; box-shadow: 0 0 0 4px rgba(108,179,63,.12); }

        .t9-chip.red {
            background: linear-gradient(135deg, rgba(254,242,242,0.96), rgba(255,255,255,0.88)) !important;
            border-color: rgba(220,38,38,0.22) !important;
            color: #b91c1c !important;
        }

        .t9-chip.amber,
        .t9-chip.new-request {
            background: linear-gradient(135deg, rgba(255,247,237,0.96), rgba(255,255,255,0.88)) !important;
            border-color: rgba(245,158,11,0.24) !important;
            color: #a05211 !important;
        }

        .t9-count {
            font-weight: 850 !important;
        }

        .t9-history-btn {
            background: rgba(255,255,255,0.72) !important;
            box-shadow: 0 4px 10px rgba(15,23,42,0.04);
        }

        /* Buttons hochwertiger */
        .t9-btn,
        .t9-iconbtn,
        .t9-pill,
        .t9-quick-btn {
            border-color: rgba(203,213,225,0.78) !important;
            background: rgba(255,255,255,0.84) !important;
            box-shadow: 0 8px 22px rgba(15,23,42,0.035) !important;
            font-weight: 820 !important;
        }

        .t9-btn:hover,
        .t9-iconbtn:hover,
        .t9-quick-btn:hover {
            box-shadow: 0 14px 30px rgba(15,23,42,0.055) !important;
            border-color: rgba(108,179,63,0.30) !important;
        }

        .t9-primary,
        button.bg-\[\#6cb33f\] {
            background:
                linear-gradient(135deg, #6cb33f, #7fc957) !important;
            box-shadow: 0 14px 30px rgba(108,179,63,0.22) !important;
        }

        /* Sidecards wie elegante Kontakt-Informationskarten */
        .t9-sidecard {
            border-radius: 26px !important;
            padding: 16px !important;
        }

        .t9-online-row,
        .t9-quick-btn {
            background: rgba(248,250,252,0.86) !important;
            border: 1px solid rgba(226,232,240,0.78) !important;
        }

        .t9-avatar {
            box-shadow: 0 8px 20px rgba(15,23,42,0.08);
        }

        /* Modals allgemein: Kontaktfenster-Eleganz übertragen */
        .fixed .rounded-\[2rem\],
        .fixed .rounded-\[1\.6rem\],
        .fixed .rounded-\[1\.4rem\],
        .fixed .rounded-2xl,
        .fixed .rounded-3xl {
            border-color: rgba(226,232,240,0.86) !important;
        }

        .fixed .shadow-2xl {
            box-shadow:
                0 30px 90px rgba(15,23,42,0.22),
                inset 0 1px 0 rgba(255,255,255,0.82) !important;
        }

        .fixed input,
        .fixed select,
        .fixed textarea {
            border-color: rgba(203,213,225,0.82) !important;
            background: rgba(248,250,252,0.72) !important;
            color: #253346 !important;
            font-weight: 700 !important;
        }

        .fixed input:focus,
        .fixed select:focus,
        .fixed textarea:focus {
            outline: none !important;
            box-shadow: 0 0 0 4px rgba(108,179,63,0.10) !important;
            border-color: rgba(108,179,63,0.34) !important;
        }

        /* Kontaktkarten / Detailkarten noch edler */
        .fixed .bg-slate-50,
        .fixed .dark\:bg-slate-800 {
            background: rgba(248,250,252,0.78) !important;
        }

        /* Tooltips lesbar und weich */
        html:not(.dark) .t9-tooltip-content,
        html:not(.dark) .t9-tooltip-content * {
            color: #223047 !important;
        }

        html:not(.dark) [class*="tooltip"],
        html:not(.dark) [role="tooltip"] {
            border-color: rgba(203,213,225,0.9) !important;
        }

        /* Startscreen ebenso etwas eleganter */
        .t9-start-card {
            border-radius: 2.15rem !important;
            box-shadow:
                0 34px 95px rgba(15,23,42,.28),
                inset 0 1px 0 rgba(255,255,255,.9) !important;
        }

        .t9-start-title {
            font-weight: 850 !important;
            color: #1f2d3d !important;
        }

        /* Dark Mode eleganter statt schwer */
        html.dark .t9-board,
        html.dark .t9-sidecard,
        html.dark .t9-kpi,
        html.dark .t9-corner,
        html.dark .t9-dayhead,
        html.dark .t9-clinic,
        html.dark .t9-cell,
        html.dark .t9-balance-label,
        html.dark .t9-balance-cell {
            background:
                linear-gradient(145deg, rgba(15,23,42,0.92), rgba(30,41,59,0.72)) !important;
            border-color: rgba(148,163,184,0.20) !important;
        }

        html.dark .t9-title h1,
        html.dark .t9-daydate,
        html.dark .t9-clinic-name,
        html.dark .t9-kpi-value,
        html.dark .t9-board-title,
        html.dark .t9-side-title {
            color: #f8fafc !important;
        }

        html.dark .fixed input,
        html.dark .fixed select,
        html.dark .fixed textarea {
            background: rgba(15,23,42,0.76) !important;
            color: #f8fafc !important;
            border-color: rgba(148,163,184,0.22) !important;
        }

        /* Stress-Modus behält mediterrane Optik, aber ebenfalls elegant */
        html.stress .t9-board,
        html.stress .t9-sidecard,
        html.stress .t9-kpi,
        html.stress .t9-corner,
        html.stress .t9-dayhead,
        html.stress .t9-clinic,
        html.stress .t9-cell {
            border-color: rgba(251,191,36,0.22) !important;
            box-shadow:
                0 14px 34px rgba(120,113,108,0.055),
                inset 0 1px 0 rgba(255,255,255,0.78) !important;
        }

        /* Etwas mehr Ruhe auf kleinen Screens */
        @media (max-width: 900px) {
            .t9-kpi,
            .t9-sidecard,
            .t9-board {
                border-radius: 22px !important;
            }
        }

    

        /* =========================================================
           COMPACT MATRIX TUNING – mehr Platz für die Matrix
           ========================================================= */

        :root {
            --t9-rail-width-compact: 64px;
        }

        .t9-shell {
            grid-template-columns: var(--t9-rail-width-compact) minmax(0, 1fr) !important;
        }

        .t9-rail {
            width: var(--t9-rail-width-compact) !important;
            min-width: var(--t9-rail-width-compact) !important;
            padding: 12px 8px !important;
            gap: 11px !important;
            background:
                linear-gradient(180deg, #6cb33f 0%, #5a9632 46%, #477b2b 100%) !important;
            box-shadow: 10px 0 30px rgba(71, 123, 43, .18) !important;
        }

        .t9-logo {
            width: 42px !important;
            height: 42px !important;
            border-radius: 14px !important;
            background: rgba(255,255,255,.94) !important;
            color: #5a9632 !important;
            box-shadow: 0 12px 24px rgba(44, 82, 30, .16) !important;
        }

        .t9-logo img {
            padding: 5px !important;
        }

        .t9-navbtn {
            width: 40px !important;
            height: 40px !important;
            border-radius: 14px !important;
            color: rgba(255,255,255,.78) !important;
        }

        .t9-navbtn:hover,
        .t9-navbtn.active {
            background: rgba(255,255,255,.18) !important;
            color: #ffffff !important;
        }

        .t9-navbtn.active::before {
            left: -8px !important;
            background: #ffffff !important;
            height: 22px !important;
        }

        .t9-navbtn[data-tip]::after {
            left: calc(100% + 10px) !important;
        }

        .t9-main {
            padding: 14px 16px 12px !important;
            gap: 10px !important;
        }

        .t9-topbar {
            gap: 12px !important;
        }

        .t9-title h1 {
            font-size: clamp(23px, 1.9vw, 32px) !important;
            line-height: .95 !important;
        }

        .t9-title p {
            margin-top: 4px !important;
            font-size: 11px !important;
        }

        .t9-actions {
            gap: 7px !important;
        }

        .t9-pill,
        .t9-btn,
        .t9-iconbtn {
            font-size: 11px !important;
            padding: 8px 11px !important;
        }

        .t9-iconbtn {
            width: 36px !important;
            height: 36px !important;
            padding: 0 !important;
        }

        .t9-kpis {
            gap: 10px !important;
        }

        .t9-kpi {
            min-height: 72px !important;
            padding: 11px 14px !important;
            border-radius: 21px !important;
        }

        .t9-kpi::after {
            width: 64px !important;
            height: 64px !important;
            right: -21px !important;
            top: -21px !important;
            opacity: .50 !important;
        }

        .t9-kpi-label {
            font-size: 8px !important;
            letter-spacing: .105em !important;
            gap: 6px !important;
        }

        .t9-kpi-value {
            margin-top: 7px !important;
            font-size: 24px !important;
            line-height: .95 !important;
        }

        .t9-workspace {
            gap: 12px !important;
        }

        .t9-board {
            border-radius: 25px !important;
        }

        .t9-board-head {
            padding: 12px 14px !important;
        }

        .t9-grid-wrap {
            padding: 12px !important;
        }

        .t9-corner,
        .t9-dayhead {
            min-height: 58px !important;
        }

        .t9-dayhead {
            padding: 10px !important;
        }

        .t9-daydate {
            font-size: 17px !important;
        }

        .t9-dayname {
            font-size: 8px !important;
        }

        .t9-clinic,
        .t9-cell {
            min-height: 96px !important;
        }

        .t9-sidebar {
            gap: 11px !important;
        }

        .t9-sidecard {
            padding: 13px !important;
            border-radius: 22px !important;
        }

        .t9-legend {
            margin-top: -2px !important;
        }

        .t9-footer {
            padding-bottom: 0 !important;
        }

        html.stress .t9-rail {
            background:
                linear-gradient(180deg, #6cb33f 0%, #5a9632 46%, #477b2b 100%) !important;
        }

        @media (max-width: 1150px) {
            .t9-shell {
                grid-template-columns: 1fr !important;
            }

            .t9-rail {
                width: 100% !important;
                min-width: 0 !important;
                flex-direction: row !important;
                padding: 8px 10px !important;
            }
        }

    

        /* =========================================================
           STATUS-FEINSCHLIFF: Feiertage / Neue Einträge / Bearbeitung
           ========================================================= */

        .t9-dayhead.t9-holiday,
        .t9-cell.t9-holiday,
        html.dark .t9-dayhead.t9-holiday,
        html.dark .t9-cell.t9-holiday,
        html.stress .t9-dayhead.t9-holiday,
        html.stress .t9-cell.t9-holiday {
            background:
                repeating-linear-gradient(
                    135deg,
                    rgba(220, 38, 38, 0.135) 0,
                    rgba(220, 38, 38, 0.135) 9px,
                    rgba(255, 255, 255, 0.70) 9px,
                    rgba(255, 255, 255, 0.70) 18px
                ),
                linear-gradient(145deg, rgba(255,245,245,0.96), rgba(255,255,255,0.86)) !important;
            border-color: rgba(220, 38, 38, 0.25) !important;
        }

        html.dark .t9-dayhead.t9-holiday,
        html.dark .t9-cell.t9-holiday {
            background:
                repeating-linear-gradient(
                    135deg,
                    rgba(248, 113, 113, 0.16) 0,
                    rgba(248, 113, 113, 0.16) 9px,
                    rgba(15, 23, 42, 0.76) 9px,
                    rgba(15, 23, 42, 0.76) 18px
                ),
                rgba(30, 41, 59, 0.92) !important;
        }

        html.stress .t9-dayhead.t9-holiday,
        html.stress .t9-cell.t9-holiday {
            background:
                repeating-linear-gradient(
                    135deg,
                    rgba(251, 146, 60, 0.16) 0,
                    rgba(251, 146, 60, 0.16) 9px,
                    rgba(255, 253, 247, 0.72) 9px,
                    rgba(255, 253, 247, 0.72) 18px
                ),
                rgba(255, 247, 237, 0.90) !important;
            border-color: rgba(251, 146, 60, 0.28) !important;
        }

        .t9-grid .t9-history-btn {
            display: none !important;
        }

        @keyframes t9-new-request-strong-pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow:
                    0 6px 18px rgba(217,119,6,0.08),
                    0 0 0 0 rgba(245,158,11,0.00);
            }
            45% {
                transform: scale(1.035);
                box-shadow:
                    0 14px 34px rgba(217,119,6,0.24),
                    0 0 0 5px rgba(245,158,11,0.16),
                    0 0 0 11px rgba(245,158,11,0.06);
            }
            70% {
                transform: scale(1.012);
            }
        }

        .t9-chip.new-request {
            background:
                linear-gradient(135deg, rgba(255, 237, 213, 1), rgba(255, 250, 242, .94)) !important;
            border-color: rgba(245, 158, 11, 0.58) !important;
            color: #9a4b00 !important;
            animation: t9-new-request-strong-pulse 1.45s ease-in-out infinite !important;
            box-shadow:
                0 10px 26px rgba(217,119,6,0.16),
                inset 4px 0 0 rgba(245,158,11,0.80) !important;
        }

        .t9-chip.new-request .t9-dot {
            background: #f59e0b !important;
            box-shadow: 0 0 0 5px rgba(245,158,11,0.18) !important;
        }

        .t9-chip.new-request::before {
            background: rgba(245,158,11,0.20) !important;
            color: #92400e !important;
            border: 1px solid rgba(245,158,11,0.24);
        }

        @keyframes t9-processing-side-flow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes t9-processing-gear-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .t9-chip.blue,
        .t9-chip.processing {
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(110deg, rgba(239,246,255,.98), rgba(219,234,254,.88), rgba(191,219,254,.78), rgba(239,246,255,.98)) !important;
            background-size: 240% 240% !important;
            border-color: rgba(37,99,235,0.36) !important;
            color: #1e40af !important;
            box-shadow:
                0 10px 24px rgba(37,99,235,0.10),
                inset 5px 0 0 rgba(37,99,235,0.72) !important;
            animation: t9-processing-side-flow 3.2s ease-in-out infinite !important;
        }

        .t9-processing-gear {
            width: 15px;
            height: 15px;
            border-radius: 999px;
            color: #2563eb;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            animation: t9-processing-gear-spin 1.7s linear infinite;
            flex: 0 0 auto;
        }

        .t9-chip.blue .t9-dot,
        .t9-chip.processing .t9-dot {
            display: none !important;
        }

        html.dark .t9-chip.blue,
        html.dark .t9-chip.processing {
            background:
                linear-gradient(110deg, rgba(30, 58, 138, 0.40), rgba(37, 99, 235, 0.28), rgba(59, 130, 246, 0.22), rgba(30, 58, 138, 0.40)) !important;
            color: #bfdbfe !important;
            box-shadow:
                0 10px 24px rgba(37,99,235,0.16),
                inset 5px 0 0 rgba(96,165,250,0.80) !important;
        }

        html.dark .t9-processing-gear {
            color: #93c5fd;
        }

        html.stress .t9-chip.blue,
        html.stress .t9-chip.processing {
            background:
                linear-gradient(110deg, rgba(224,242,254,.92), rgba(186,230,253,.78), rgba(240,253,250,.90), rgba(224,242,254,.92)) !important;
            color: #075985 !important;
            box-shadow:
                0 10px 24px rgba(14,165,233,0.12),
                inset 5px 0 0 rgba(14,165,233,0.62) !important;
        }

    

        /* =========================================================
           MATRIX FULL HEIGHT FIX
           Die Wochenansicht nutzt die verfügbare Board-Höhe wieder aus.
           ========================================================= */

        .t9-board {
            min-height: 0 !important;
        }

        .t9-grid-wrap {
            height: 100% !important;
            min-height: 0 !important;
            display: block !important;
        }

        .t9-grid {
            height: 100% !important;
            min-height: 100% !important;
            align-content: stretch !important;
            grid-template-rows:
                minmax(58px, 0.55fr)
                repeat(var(--t9-hospitals, 4), minmax(96px, 1fr))
                minmax(56px, 0.55fr) !important;
        }

        .t9-dayhead,
        .t9-corner,
        .t9-clinic,
        .t9-cell,
        .t9-balance-label,
        .t9-balance-cell {
            height: 100% !important;
            min-height: 0 !important;
        }

        .t9-cell {
            justify-content: flex-start !important;
        }

        .t9-empty {
            margin: auto !important;
        }

        /* Bei wenig Höhe nicht übertreiben */
        @media (max-height: 780px) {
            .t9-grid {
                grid-template-rows:
                    minmax(54px, 0.48fr)
                    repeat(var(--t9-hospitals, 4), minmax(86px, 1fr))
                    minmax(50px, 0.46fr) !important;
            }
        }

        /* Wenn Wochenende eingeblendet ist, bleibt Breite scrollbar, aber Höhe wird trotzdem gefüllt */
        .t9-grid.with-weekend {
            height: 100% !important;
        }

    

        /* =========================================================
           READABILITY POLISH – Windows/Mac Klarheit
           Ziel: kaum Bold, bessere Lesbarkeit, ruhiger Arbeitsstil.
           Angelehnt an den Login-Screen.
           ========================================================= */

        :root {
            --read-ink: #1f2937;
            --read-ink-soft: #334155;
            --read-muted: #64748b;
            --read-line: #dbe3ec;
            --read-card: rgba(255,255,255,0.92);
            --read-card-soft: rgba(248,250,252,0.88);
        }

        body,
        button,
        input,
        select,
        textarea {
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
            letter-spacing: -0.01em;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        .font-black,
        .font-extrabold,
        .font-bold {
            font-weight: 650 !important;
        }

        .font-semibold {
            font-weight: 560 !important;
        }

        .t9-title h1 {
            font-size: clamp(23px, 1.7vw, 30px) !important;
            font-weight: 680 !important;
            letter-spacing: -0.035em !important;
            color: var(--read-ink) !important;
        }

        .t9-title p {
            font-size: 12px !important;
            font-weight: 500 !important;
            color: var(--read-muted) !important;
        }

        .t9-btn,
        .t9-iconbtn,
        .t9-pill {
            font-size: 12px !important;
            font-weight: 560 !important;
            color: var(--read-ink-soft) !important;
            background: rgba(255,255,255,.88) !important;
            border: 1px solid var(--read-line) !important;
            box-shadow: 0 6px 18px rgba(15,23,42,.035) !important;
        }

        .t9-primary {
            color: #ffffff !important;
            font-weight: 620 !important;
            background: #6cb33f !important;
            box-shadow: 0 8px 18px rgba(108,179,63,.20) !important;
        }

        .t9-kpi {
            min-height: 68px !important;
            padding: 10px 14px !important;
            border-radius: 18px !important;
            background: var(--read-card) !important;
            border: 1px solid var(--read-line) !important;
            box-shadow: 0 8px 22px rgba(15,23,42,.035) !important;
        }

        .t9-kpi::after {
            opacity: .25 !important;
        }

        .t9-kpi-label {
            font-size: 10px !important;
            font-weight: 600 !important;
            letter-spacing: .075em !important;
            color: var(--read-muted) !important;
        }

        .t9-kpi-value {
            margin-top: 5px !important;
            font-size: 24px !important;
            font-weight: 650 !important;
            letter-spacing: -0.025em !important;
            color: var(--read-ink) !important;
        }

        .t9-board,
        .t9-sidecard {
            background: var(--read-card) !important;
            border: 1px solid var(--read-line) !important;
            box-shadow: 0 14px 36px rgba(15,23,42,.045) !important;
        }

        .t9-board-head {
            background: rgba(248,250,252,.72) !important;
            border-bottom: 1px solid var(--read-line) !important;
        }

        .t9-board-title,
        .t9-side-title {
            font-size: 13px !important;
            font-weight: 620 !important;
            letter-spacing: -0.005em !important;
            color: var(--read-ink) !important;
        }

        .t9-corner,
        .t9-dayhead,
        .t9-clinic,
        .t9-cell,
        .t9-balance-label,
        .t9-balance-cell {
            background: rgba(255,255,255,.90) !important;
            border: 1px solid var(--read-line) !important;
            box-shadow: 0 4px 12px rgba(15,23,42,.022) !important;
        }

        .t9-corner,
        .t9-dayname,
        .t9-balance-label {
            font-size: 10px !important;
            font-weight: 600 !important;
            letter-spacing: .075em !important;
            color: var(--read-muted) !important;
        }

        .t9-daydate {
            font-size: 18px !important;
            font-weight: 650 !important;
            letter-spacing: -0.025em !important;
            color: var(--read-ink) !important;
        }

        .t9-clinic-name {
            font-size: 13px !important;
            font-weight: 620 !important;
            letter-spacing: -0.01em !important;
            color: var(--read-ink) !important;
        }

        .t9-clinic-meta {
            font-size: 11px !important;
            font-weight: 500 !important;
            color: var(--read-muted) !important;
        }

        .t9-cell:hover,
        .t9-clinic:hover {
            transform: none !important;
            border-color: rgba(108,179,63,.32) !important;
            box-shadow: 0 8px 18px rgba(15,23,42,.045) !important;
        }

        .t9-chip {
            min-height: 28px !important;
            padding: 6px 8px !important;
            border-radius: 10px !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            letter-spacing: -0.005em !important;
            box-shadow: none !important;
        }

        .t9-count {
            font-size: 11px !important;
            font-weight: 600 !important;
            color: inherit !important;
        }

        .t9-dot {
            width: 8px !important;
            height: 8px !important;
        }

        .t9-chip.green {
            color: #3f7a25 !important;
            background: #eff8eb !important;
            border-color: #cfe8c4 !important;
        }

        .t9-chip.blue,
        .t9-chip.processing {
            color: #1d4ed8 !important;
            background: linear-gradient(90deg, rgba(219,234,254,.96), rgba(239,246,255,.96)) !important;
            border-color: #bfd7ff !important;
            box-shadow: inset 4px 0 0 #2563eb !important;
        }

        .t9-chip.partial {
            background: linear-gradient(90deg, rgba(108,179,63,.16) 0%, rgba(190,242,100,.14) 38%, rgba(255,237,213,.90) 72%, rgba(251,146,60,.18) 100%);
            border-color: rgba(245, 158, 11, .58);
            color: #8a3a12;
            position: relative;
        }
        .t9-chip.partial .t9-dot { background: #6cb33f; box-shadow: 0 0 0 4px rgba(108,179,63,.12); }

        .t9-chip.red {
            color: #b91c1c !important;
            background: #fff1f2 !important;
            border-color: #fecdd3 !important;
        }

        .t9-chip.amber,
        .t9-chip.new-request {
            color: #9a4b00 !important;
            background: #fff7ed !important;
            border-color: #fed7aa !important;
        }

        .t9-chip.new-request {
            animation: t9-new-request-readable-pulse 1.7s ease-in-out infinite !important;
            box-shadow: inset 4px 0 0 #f59e0b, 0 0 0 0 rgba(245,158,11,0) !important;
        }

        @keyframes t9-new-request-readable-pulse {
            0%, 100% {
                box-shadow: inset 4px 0 0 #f59e0b, 0 0 0 0 rgba(245,158,11,0);
            }
            50% {
                box-shadow: inset 4px 0 0 #f59e0b, 0 0 0 4px rgba(245,158,11,.16), 0 6px 18px rgba(245,158,11,.14);
            }
        }

        .t9-chip.new-request::before {
            font-size: 8px !important;
            font-weight: 650 !important;
            background: #ffedd5 !important;
            color: #9a4b00 !important;
            border-color: #fed7aa !important;
        }

        .t9-processing-gear {
            font-size: 12px !important;
            color: #2563eb !important;
            opacity: .95;
        }

        .t9-online-row,
        .t9-quick-btn {
            background: var(--read-card-soft) !important;
            border: 1px solid var(--read-line) !important;
            box-shadow: none !important;
        }

        .t9-name {
            font-size: 12px !important;
            font-weight: 620 !important;
            color: var(--read-ink) !important;
        }

        .t9-role {
            font-size: 10px !important;
            font-weight: 500 !important;
        }

        .t9-quick-btn {
            font-size: 12px !important;
            font-weight: 560 !important;
            color: var(--read-ink-soft) !important;
        }

        .t9-legend span {
            font-size: 10px !important;
            font-weight: 500 !important;
            color: var(--read-muted) !important;
            background: rgba(255,255,255,.82) !important;
            border-color: var(--read-line) !important;
        }

        .t9-footer {
            font-size: 9px !important;
            font-weight: 500 !important;
            letter-spacing: .08em !important;
            color: var(--read-muted) !important;
        }

        .fixed h1,
        .fixed h2,
        .fixed h3 {
            font-weight: 650 !important;
            letter-spacing: -0.025em !important;
            color: var(--read-ink) !important;
        }

        .fixed label,
        .fixed .text-\[10px\],
        .fixed .uppercase {
            font-weight: 600 !important;
            letter-spacing: .075em !important;
        }

        .fixed input,
        .fixed select,
        .fixed textarea {
            font-size: 14px !important;
            font-weight: 500 !important;
            color: var(--read-ink) !important;
            background: #f8fafc !important;
            border: 1px solid var(--read-line) !important;
            box-shadow: none !important;
        }

        .fixed input::placeholder,
        .fixed textarea::placeholder {
            color: #94a3b8 !important;
            font-weight: 500 !important;
        }

        .fixed button {
            font-weight: 600 !important;
        }

        .min-h-screen h1 {
            font-weight: 650 !important;
        }

        html.dark {
            --read-ink: #f8fafc;
            --read-ink-soft: #e2e8f0;
            --read-muted: #a7b3c5;
            --read-line: rgba(148,163,184,.22);
            --read-card: rgba(15,23,42,.90);
            --read-card-soft: rgba(30,41,59,.72);
        }

        html.dark .t9-title h1,
        html.dark .t9-kpi-value,
        html.dark .t9-daydate,
        html.dark .t9-clinic-name,
        html.dark .t9-board-title,
        html.dark .t9-side-title,
        html.dark .t9-name,
        html.dark .fixed h1,
        html.dark .fixed h2,
        html.dark .fixed h3 {
            color: #f8fafc !important;
        }

        html.dark .t9-board,
        html.dark .t9-sidecard,
        html.dark .t9-kpi,
        html.dark .t9-corner,
        html.dark .t9-dayhead,
        html.dark .t9-clinic,
        html.dark .t9-cell,
        html.dark .t9-balance-label,
        html.dark .t9-balance-cell {
            background: var(--read-card) !important;
            border-color: var(--read-line) !important;
        }

        html.dark .t9-btn,
        html.dark .t9-iconbtn,
        html.dark .t9-pill,
        html.dark .t9-online-row,
        html.dark .t9-quick-btn,
        html.dark .t9-legend span {
            background: var(--read-card-soft) !important;
            border-color: var(--read-line) !important;
            color: #e2e8f0 !important;
        }

        html.dark .fixed input,
        html.dark .fixed select,
        html.dark .fixed textarea {
            background: rgba(15,23,42,.78) !important;
            border-color: var(--read-line) !important;
            color: #f8fafc !important;
        }

        html.stress .t9-title h1,
        html.stress .t9-kpi-value,
        html.stress .t9-daydate,
        html.stress .t9-clinic-name,
        html.stress .t9-board-title,
        html.stress .t9-side-title {
            color: #24483f !important;
            font-weight: 650 !important;
        }

        html.stress .t9-chip {
            font-weight: 600 !important;
        }

        @media (max-width: 1400px) {
            .t9-chip {
                font-size: 10.5px !important;
            }

            .t9-clinic-name {
                font-size: 12.5px !important;
            }

            .t9-daydate {
                font-size: 17px !important;
            }
        }

    

        /* =========================================================
           USER MANAGEMENT + OP CAPACITY – klare Arbeitsoberfläche
           ========================================================= */

        .t9-user-management,
        .t9-op-capacity-modal {
            border-radius: 28px !important;
            overflow: hidden;
        }

        .t9-user-management > .mb-5,
        .t9-op-capacity-modal > .shrink-0.mb-6 {
            background: linear-gradient(180deg, rgba(248,250,252,.70), rgba(255,255,255,.72));
            margin: -1.5rem -1.5rem 1rem !important;
            padding: 1.35rem 1.5rem 1rem !important;
            border-bottom: 1px solid #e2e8f0 !important;
        }

        .t9-op-capacity-modal > .shrink-0.mb-6 {
            margin: -2rem -2rem 1rem !important;
            padding: 1.35rem 2rem 1rem !important;
        }

        .t9-user-summary-card {
            border: 1px solid #dbe3ec;
            background: rgba(248,250,252,.78);
            border-radius: 16px;
            padding: 12px 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .t9-user-summary-card span {
            color: #64748b;
            font-size: 11px;
            font-weight: 560;
        }

        .t9-user-summary-card strong {
            color: #1f2937;
            font-size: 22px;
            line-height: 1;
            font-weight: 650;
        }

        .t9-user-management table thead {
            position: sticky;
            top: 0;
            z-index: 2;
        }

        .t9-user-management table th {
            font-weight: 620 !important;
            color: #64748b !important;
            background: #f8fafc !important;
        }

        .t9-user-management table td {
            vertical-align: middle;
        }

        .t9-user-management table tr:hover {
            background: rgba(248,250,252,.85) !important;
        }

        .t9-op-capacity-modal .overflow-y-auto.grow {
            padding-right: .35rem !important;
        }

        .t9-op-capacity-modal h3,
        .t9-op-section-title {
            color: #334155 !important;
            font-size: 12px !important;
            font-weight: 620 !important;
            letter-spacing: .06em !important;
            border-bottom-color: #e2e8f0 !important;
        }

        .t9-op-capacity-modal label {
            color: #475569 !important;
            font-weight: 560 !important;
        }

        .t9-op-capacity-modal input,
        .t9-op-capacity-modal select {
            min-height: 42px;
        }

        .t9-op-capacity-modal input[type="number"] {
            text-align: center;
            font-variant-numeric: tabular-nums;
            font-weight: 580 !important;
        }

        .t9-op-autostaff-info {
            border: 1px solid #dbeafe;
            background: linear-gradient(135deg, rgba(239,246,255,.82), rgba(255,255,255,.90));
            color: #334155;
            border-radius: 18px;
            padding: 13px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
        }

        .t9-op-autostaff-info strong {
            display: block;
            font-size: 12px;
            font-weight: 650;
            color: #1e3a8a;
            margin-bottom: 3px;
        }

        .t9-op-autostaff-info span {
            display: block;
            font-size: 11px;
            line-height: 1.35;
            color: #64748b;
            font-weight: 500;
        }

        .t9-op-autostaff-count {
            width: 44px;
            height: 44px;
            border-radius: 15px;
            background: #ffffff;
            color: #2563eb;
            border: 1px solid #bfdbfe;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 650;
            font-size: 18px;
            flex: 0 0 auto;
        }

        .t9-op-capacity-modal table th {
            font-weight: 620 !important;
        }

        .t9-op-capacity-modal table td {
            font-weight: 500 !important;
        }

        .t9-op-capacity-modal .bg-blue-50 table td:first-child {
            font-weight: 600 !important;
        }

        html.dark .t9-user-management > .mb-5,
        html.dark .t9-op-capacity-modal > .shrink-0.mb-6 {
            background: linear-gradient(180deg, rgba(15,23,42,.82), rgba(15,23,42,.64));
            border-bottom-color: rgba(148,163,184,.22) !important;
        }

        html.dark .t9-user-summary-card,
        html.dark .t9-op-autostaff-info {
            background: rgba(30,41,59,.72);
            border-color: rgba(148,163,184,.22);
        }

        html.dark .t9-user-summary-card strong,
        html.dark .t9-op-autostaff-info strong {
            color: #f8fafc;
        }

        html.dark .t9-user-management table th {
            background: rgba(30,41,59,.86) !important;
            color: #a7b3c5 !important;
        }

        html.dark .t9-op-autostaff-count {
            background: rgba(15,23,42,.76);
            border-color: rgba(96,165,250,.28);
            color: #93c5fd;
        }

    

        /* OP-Kapazität: automatisch übernommene Aushilfen sichtbar erklären */
        .t9-op-autostaff-info {
            border: 1px solid #dbeafe;
            background: linear-gradient(135deg, rgba(239,246,255,.82), rgba(255,255,255,.90));
            color: #334155;
            border-radius: 18px;
            padding: 13px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
        }

        .t9-op-autostaff-info strong {
            display: block;
            font-size: 12px;
            font-weight: 650;
            color: #1e3a8a;
            margin-bottom: 3px;
        }

        .t9-op-autostaff-info span {
            display: block;
            font-size: 11px;
            line-height: 1.35;
            color: #64748b;
            font-weight: 500;
        }

        .t9-op-autostaff-count {
            width: 44px;
            height: 44px;
            border-radius: 15px;
            background: #ffffff;
            color: #2563eb;
            border: 1px solid #bfdbfe;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 650;
            font-size: 18px;
            flex: 0 0 auto;
        }

        html.dark .t9-op-autostaff-info {
            background: rgba(30,41,59,.72);
            border-color: rgba(96,165,250,.28);
        }

        html.dark .t9-op-autostaff-info strong {
            color: #bfdbfe;
        }

        html.dark .t9-op-autostaff-count {
            background: rgba(15,23,42,.76);
            border-color: rgba(96,165,250,.28);
            color: #93c5fd;
        }

    

        /* =========================================================
           WOCHENENDE / FEIERTAG REGELN
           - Wochenende standardmäßig ausgeblendet, optional per Button
           - Feiertage sichtbar rot schraffiert
           - Wochenende sichtbar gelb schraffiert
           - keine Texte/Popups/+ auf gesperrten Tagen
           ========================================================= */

        .t9-weekend-toggle-active {
            background: rgba(254, 243, 199, .95) !important;
            border-color: rgba(245, 158, 11, .32) !important;
            color: #92400e !important;
        }

        .t9-dayhead.t9-holiday,
        .t9-cell.t9-holiday {
            background:
                repeating-linear-gradient(
                    135deg,
                    rgba(220, 38, 38, 0.14) 0,
                    rgba(220, 38, 38, 0.14) 8px,
                    rgba(255,255,255,0.74) 8px,
                    rgba(255,255,255,0.74) 16px
                ),
                linear-gradient(145deg, rgba(255,245,245,.96), rgba(255,255,255,.88)) !important;
            border-color: rgba(220, 38, 38, .26) !important;
        }

        .t9-dayhead.t9-weekend,
        .t9-cell.t9-weekend {
            background:
                repeating-linear-gradient(
                    135deg,
                    rgba(245, 158, 11, 0.16) 0,
                    rgba(245, 158, 11, 0.16) 8px,
                    rgba(255,255,255,0.74) 8px,
                    rgba(255,255,255,0.74) 16px
                ),
                linear-gradient(145deg, rgba(255,251,235,.96), rgba(255,255,255,.88)) !important;
            border-color: rgba(245, 158, 11, .28) !important;
        }

        .t9-no-disposition-day {
            cursor: default !important;
        }

        .t9-no-disposition-day:hover {
            transform: none !important;
            box-shadow: 0 6px 18px rgba(15,23,42,.028) !important;
        }

        .t9-no-disposition-day .t9-empty {
            display: none !important;
        }

        .t9-no-disposition-day .t9-chip {
            display: none !important;
        }

        @keyframes t9-new-request-gentle-pulse {
            0%, 100% {
                box-shadow:
                    inset 3px 0 0 #f59e0b,
                    0 0 0 0 rgba(245,158,11,0);
                transform: scale(1);
            }
            50% {
                box-shadow:
                    inset 3px 0 0 #f59e0b,
                    0 0 0 3px rgba(245,158,11,.12);
                transform: scale(1.008);
            }
        }

        .t9-chip.new-request {
            animation: t9-new-request-gentle-pulse 1.9s ease-in-out infinite !important;
        }

        html.dark .t9-dayhead.t9-holiday,
        html.dark .t9-cell.t9-holiday {
            background:
                repeating-linear-gradient(
                    135deg,
                    rgba(248, 113, 113, 0.16) 0,
                    rgba(248, 113, 113, 0.16) 8px,
                    rgba(15, 23, 42, 0.78) 8px,
                    rgba(15, 23, 42, 0.78) 16px
                ),
                rgba(30,41,59,.90) !important;
        }

        html.dark .t9-dayhead.t9-weekend,
        html.dark .t9-cell.t9-weekend {
            background:
                repeating-linear-gradient(
                    135deg,
                    rgba(245, 158, 11, 0.18) 0,
                    rgba(245, 158, 11, 0.18) 8px,
                    rgba(15, 23, 42, 0.78) 8px,
                    rgba(15, 23, 42, 0.78) 16px
                ),
                rgba(30,41,59,.90) !important;
        }

    

        /* =========================================================
           INITIAL LOAD FIX
           Verhindert weißen Bildschirm während React/Babel/API starten.
           ========================================================= */
        .t9-initial-loader {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(circle at 12% 0%, rgba(108,179,63,.14), transparent 30%),
                radial-gradient(circle at 88% 6%, rgba(37,99,235,.10), transparent 28%),
                linear-gradient(135deg, #f8fbff 0%, #edf6f4 48%, #f7f9fc 100%);
            color: #334155;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        }

        .t9-initial-loader-card {
            width: min(420px, calc(100vw - 2rem));
            border-radius: 28px;
            border: 1px solid rgba(203,213,225,.78);
            background: rgba(255,255,255,.86);
            box-shadow: 0 24px 70px rgba(15,23,42,.10);
            padding: 28px;
            text-align: center;
            backdrop-filter: blur(16px);
        }

        .t9-initial-loader-logo {
            width: 54px;
            height: 54px;
            margin: 0 auto 14px;
            border-radius: 18px;
            background: linear-gradient(135deg, #6cb33f, #86d75e);
            color: white;
            display: grid;
            place-items: center;
            box-shadow: 0 14px 28px rgba(108,179,63,.24);
        }

        .t9-initial-loader-title {
            font-size: 20px;
            font-weight: 650;
            letter-spacing: -0.03em;
            color: #1f2937;
            margin: 0;
        }

        .t9-initial-loader-sub {
            margin-top: 6px;
            font-size: 13px;
            color: #64748b;
        }

        .t9-initial-loader-bar {
            margin-top: 18px;
            height: 6px;
            border-radius: 999px;
            overflow: hidden;
            background: rgba(226,232,240,.9);
        }

        .t9-initial-loader-bar span {
            display: block;
            width: 42%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #6cb33f, #93d66b, #2563eb);
            animation: t9-initial-loader-slide 1.15s ease-in-out infinite;
        }

        @keyframes t9-initial-loader-slide {
            0% { transform: translateX(-115%); }
            55% { transform: translateX(95%); }
            100% { transform: translateX(240%); }
        }

        html.dark .t9-initial-loader {
            background:
                radial-gradient(circle at 12% 0%, rgba(108,179,63,.12), transparent 32%),
                radial-gradient(circle at 88% 0%, rgba(37,99,235,.12), transparent 30%),
                linear-gradient(180deg, #071120 0%, #020617 100%);
            color: #e2e8f0;
        }

        html.dark .t9-initial-loader-card {
            background: rgba(15,23,42,.86);
            border-color: rgba(148,163,184,.18);
        }

        html.dark .t9-initial-loader-title {
            color: #f8fafc;
        }

    

        /* =========================================================
           SERVICE-TELEFONBUCH
           Admin-pflegbares Rufnummernverzeichnis für Klinik-Servicekontakte.
           ========================================================= */
        .t9-phonebook-search {
            width: 100%;
            border-radius: 16px;
            border: 1px solid rgba(226,232,240,.95);
            background: rgba(248,250,252,.88);
            padding: 12px 14px;
            font-size: 13px;
            font-weight: 650;
            color: #1f2937;
            outline: none;
        }
        .t9-phonebook-search:focus {
            border-color: rgba(108,179,63,.46);
            box-shadow: 0 0 0 4px rgba(108,179,63,.10);
        }
        .t9-phonebook-grid {
            display: grid;
            grid-template-columns: 235px minmax(0, 1fr);
            gap: 14px;
            min-height: 0;
        }
        .t9-phonebook-cats,
        .t9-phonebook-list {
            border: 1px solid rgba(226,232,240,.9);
            background: rgba(248,250,252,.62);
            border-radius: 24px;
            padding: 12px;
            min-height: 0;
            overflow: auto;
        }
        .t9-phonebook-cat {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 11px 12px;
            border-radius: 16px;
            border: 1px solid transparent;
            color: #64748b;
            font-size: 12px;
            font-weight: 800;
            text-align: left;
            transition: .15s ease;
        }
        .t9-phonebook-cat:hover {
            background: rgba(255,255,255,.78);
            color: #334155;
        }
        .t9-phonebook-cat.active {
            color: #3f7a25;
            background: rgba(108,179,63,.12);
            border-color: rgba(108,179,63,.24);
        }
        .t9-phonebook-entry {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            border: 1px solid rgba(226,232,240,.9);
            background: rgba(255,255,255,.88);
            border-radius: 20px;
            padding: 13px;
            margin-bottom: 10px;
            box-shadow: 0 8px 22px rgba(15,23,42,.035);
        }
        .t9-phonebook-entry-title {
            color: #1f2937;
            font-size: 14px;
            font-weight: 850;
        }
        .t9-phonebook-entry-meta {
            margin-top: 4px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            color: #64748b;
            font-size: 11px;
            font-weight: 650;
        }
        .t9-phonebook-number {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            border-radius: 14px;
            background: rgba(108,179,63,.12);
            color: #3f7a25;
            border: 1px solid rgba(108,179,63,.24);
            padding: 9px 11px;
            font-size: 13px;
            font-weight: 850;
            white-space: nowrap;
        }
        .t9-phonebook-adminbar {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
        }
        .t9-phonebook-form {
            display: grid;
            gap: 10px;
            padding: 12px;
            border-radius: 20px;
            background: rgba(248,250,252,.86);
            border: 1px solid rgba(226,232,240,.9);
            margin-bottom: 12px;
        }
        .t9-phonebook-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .t9-phonebook-form input,
        .t9-phonebook-form select {
            border-radius: 13px;
            border: 1px solid #dbe3ec;
            background: #ffffff;
            color: #1f2937;
            padding: 10px 11px;
            font-size: 13px;
            font-weight: 600;
            outline: none;
        }
        .t9-phonebook-form input:focus,
        .t9-phonebook-form select:focus {
            border-color: rgba(108,179,63,.45);
            box-shadow: 0 0 0 4px rgba(108,179,63,.10);
        }
        html.dark .t9-phonebook-search,
        html.dark .t9-phonebook-cats,
        html.dark .t9-phonebook-list,
        html.dark .t9-phonebook-form {
            background: rgba(15,23,42,.72);
            border-color: rgba(148,163,184,.18);
            color: #f8fafc;
        }
        html.dark .t9-phonebook-entry {
            background: rgba(15,23,42,.86);
            border-color: rgba(148,163,184,.18);
        }
        html.dark .t9-phonebook-entry-title { color: #f8fafc; }
        html.dark .t9-phonebook-form input,
        html.dark .t9-phonebook-form select {
            background: rgba(2,6,23,.78);
            border-color: rgba(148,163,184,.22);
            color: #f8fafc;
        }
        @media (max-width: 850px) {
            .t9-phonebook-grid,
            .t9-phonebook-form-grid {
                grid-template-columns: 1fr;
            }
            .t9-phonebook-entry {
                grid-template-columns: 1fr;
            }
        }



        /* =========================================================
           BENACHRICHTIGUNGSZENTRALE
           Glocke links zeigt Systemmeldungen aus der API.
           ========================================================= */
        .t9-navbtn .t9-notify-badge {
            position: absolute;
            right: 4px;
            top: 5px;
            min-width: 16px;
            height: 16px;
            padding: 0 5px;
            border-radius: 999px;
            background: linear-gradient(135deg, #2563eb, #60a5fa);
            color: white;
            font-size: 8px;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(10,25,41,.96);
            line-height: 1;
            box-shadow: 0 6px 14px rgba(37,99,235,.28);
        }

        .t9-notification-list {
            display: grid;
            gap: 10px;
            overflow: auto;
            padding-right: 4px;
        }

        .t9-notification-item {
            display: grid;
            grid-template-columns: 38px minmax(0, 1fr);
            gap: 11px;
            border: 1px solid rgba(226,232,240,.9);
            background: rgba(248,250,252,.82);
            border-radius: 20px;
            padding: 13px;
        }

        .t9-notification-item.unread {
            background: rgba(239,246,255,.82);
            border-color: rgba(37,99,235,.22);
        }

        .t9-notification-icon {
            width: 38px;
            height: 38px;
            border-radius: 15px;
            display: grid;
            place-items: center;
            background: rgba(37,99,235,.10);
            color: #2563eb;
        }

        .t9-notification-icon.success { background: rgba(108,179,63,.12); color: #4d8629; }
        .t9-notification-icon.warning { background: rgba(245,158,11,.12); color: #b45309; }
        .t9-notification-icon.error { background: rgba(220,38,38,.10); color: #dc2626; }

        .t9-notification-title {
            font-size: 12px;
            font-weight: 850;
            color: #1f2937;
            line-height: 1.35;
        }

        .t9-notification-meta {
            margin-top: 5px;
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            color: #64748b;
            font-size: 10px;
            font-weight: 700;
        }

        html.dark .t9-notification-item {
            background: rgba(15,23,42,.72);
            border-color: rgba(148,163,184,.18);
        }

        html.dark .t9-notification-item.unread {
            background: rgba(30,58,138,.22);
            border-color: rgba(96,165,250,.28);
        }

        html.dark .t9-notification-title {
            color: #f8fafc;
        }



        /* =========================================================
           AKTUELLER TAG – deutliche farbliche Hinterlegung
           ========================================================= */
        .t9-dayhead.today,
        .t9-dayhead.t9-today {
            background:
                linear-gradient(135deg, rgba(108,179,63,.30), rgba(255,255,255,.94)) !important;
            border-color: rgba(108,179,63,.62) !important;
            box-shadow:
                0 14px 34px rgba(108,179,63,.16),
                inset 0 0 0 2px rgba(108,179,63,.18) !important;
            position: relative;
        }

        .t9-dayhead.today::after,
        .t9-dayhead.t9-today::after {
            content: "Heute";
            position: absolute;
            right: 10px;
            top: 9px;
            padding: 3px 7px;
            border-radius: 999px;
            background: rgba(108,179,63,.18);
            color: #3f7a25;
            font-size: 8px;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .t9-cell.t9-today-cell {
            background:
                linear-gradient(135deg, rgba(108,179,63,.13), rgba(255,255,255,.86)) !important;
            border-color: rgba(108,179,63,.34) !important;
            box-shadow:
                0 10px 26px rgba(108,179,63,.08),
                inset 3px 0 0 rgba(108,179,63,.55) !important;
        }

        .t9-cell.t9-today-cell:hover {
            border-color: rgba(108,179,63,.54) !important;
            box-shadow:
                0 16px 36px rgba(108,179,63,.13),
                inset 3px 0 0 rgba(108,179,63,.70) !important;
        }

        html.dark .t9-dayhead.today,
        html.dark .t9-dayhead.t9-today {
            background:
                linear-gradient(135deg, rgba(108,179,63,.24), rgba(15,23,42,.92)) !important;
            border-color: rgba(134,215,94,.46) !important;
            box-shadow:
                0 14px 34px rgba(0,0,0,.22),
                inset 0 0 0 2px rgba(134,215,94,.14) !important;
        }

        html.dark .t9-dayhead.today::after,
        html.dark .t9-dayhead.t9-today::after {
            background: rgba(134,215,94,.16);
            color: #bbf7d0;
        }

        html.dark .t9-cell.t9-today-cell {
            background:
                linear-gradient(135deg, rgba(108,179,63,.15), rgba(15,23,42,.88)) !important;
            border-color: rgba(134,215,94,.30) !important;
            box-shadow:
                0 10px 26px rgba(0,0,0,.18),
                inset 3px 0 0 rgba(134,215,94,.50) !important;
        }

        html.stress .t9-dayhead.today,
        html.stress .t9-dayhead.t9-today {
            background:
                linear-gradient(135deg, rgba(251,191,36,.26), rgba(255,253,247,.88)) !important;
            border-color: rgba(245,158,11,.42) !important;
        }

        html.stress .t9-cell.t9-today-cell {
            background:
                linear-gradient(135deg, rgba(251,191,36,.16), rgba(255,253,247,.88)) !important;
            border-color: rgba(245,158,11,.30) !important;
            box-shadow:
                0 10px 26px rgba(245,158,11,.08),
                inset 3px 0 0 rgba(245,158,11,.48) !important;
        }



        /* =========================================================
           TAGESBRIEFING STARTSCREEN 8.9.1
           Büro-taugliches Lagebild: Personal, Hinweise, Nachrichten.
           ========================================================= */
        .t9-start-overlay {
            position: fixed;
            inset: 0;
            z-index: 130;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            background:
                radial-gradient(circle at 14% 12%, rgba(108,179,63,.18), transparent 34%),
                radial-gradient(circle at 86% 10%, rgba(37,99,235,.16), transparent 34%),
                linear-gradient(135deg, rgba(15,23,42,.86), rgba(30,41,59,.78)) !important;
            backdrop-filter: blur(18px) saturate(1.15) !important;
            -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
        }

        .t9-start-card {
            width: min(1420px, calc(100vw - 2rem)) !important;
            max-height: min(900px, calc(100vh - 2rem));
            overflow: hidden;
            border-radius: 28px !important;
            background: rgba(248,250,252,.98) !important;
            border: 1px solid rgba(255,255,255,.70) !important;
            box-shadow:
                0 34px 110px rgba(2,6,23,.30),
                0 1px 0 rgba(255,255,255,.72) inset !important;
            position: relative;
        }

        .t9-start-card::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 6px;
            background: linear-gradient(90deg, #6cb33f, #10b981, #38bdf8, #2563eb);
            z-index: 3;
        }

        .t9-start-inner {
            display: grid;
            grid-template-columns: 270px minmax(0, 1fr);
            min-height: 720px;
            position: relative;
        }

        .t9-start-left {
            background:
                linear-gradient(180deg, rgba(236,247,232,.96), rgba(255,255,255,.92));
            border-right: 1px solid rgba(226,232,240,.95);
            padding: 1.65rem 1.35rem;
            display: flex;
            flex-direction: column;
            gap: .82rem;
        }

        .t9-start-icon {
            width: 62px !important;
            height: 62px !important;
            border-radius: 22px !important;
            background:
                radial-gradient(circle at 30% 20%, rgba(255,255,255,.95), transparent 28%),
                linear-gradient(135deg, rgba(108,179,63,.97), rgba(63,122,37,.96)) !important;
            color: #fff !important;
            font-size: 28px !important;
            display: grid;
            place-items: center;
            box-shadow: 0 18px 42px rgba(108,179,63,.25) !important;
        }

        .t9-start-left-title {
            margin-top: .15rem;
        }

        .t9-start-left-title strong {
            display: block;
            color: #0f172a;
            font-size: 1rem;
            font-weight: 900;
            letter-spacing: -.03em;
        }

        .t9-start-left-title span {
            display: block;
            margin-top: .25rem;
            color: #64748b;
            font-size: .74rem;
            font-weight: 650;
            line-height: 1.45;
        }

        .t9-start-meta {
            display: flex;
            flex-direction: column;
            gap: .48rem !important;
            margin-top: .2rem;
        }

        .t9-start-chip {
            width: 100% !important;
            border-radius: 14px !important;
            padding: .64rem .72rem !important;
            background: rgba(255,255,255,.86) !important;
            border: 1px solid rgba(226,232,240,.92) !important;
            color: #475569 !important;
            font-size: .70rem !important;
            font-weight: 780 !important;
            letter-spacing: .01em !important;
            display: flex;
            align-items: center;
            gap: .55rem;
            box-shadow: 0 10px 26px rgba(15,23,42,.045) !important;
        }

        .t9-start-chip i { color: #6cb33f !important; }

        .t9-start-btn {
            margin-top: .35rem;
            border: 0;
            border-radius: 16px !important;
            padding: .78rem .95rem !important;
            background: linear-gradient(135deg, #6cb33f, #86d75e) !important;
            color: white !important;
            font-size: .82rem !important;
            font-weight: 900 !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .65rem;
            box-shadow: 0 18px 42px rgba(108,179,63,.26) !important;
            cursor: pointer;
        }

        .t9-start-btn:hover { transform: translateY(-1px); }

        .t9-start-link {
            color: #94a3b8 !important;
            font-size: .72rem !important;
            font-weight: 760 !important;
            line-height: 1.35;
        }

        .t9-start-main {
            padding: 2rem 2.25rem;
            overflow: auto;
            background:
                radial-gradient(circle at 80% 0%, rgba(108,179,63,.10), transparent 34%),
                linear-gradient(180deg, rgba(255,255,255,.90), rgba(248,250,252,.98));
        }

        .t9-start-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1.2rem;
            margin-bottom: 1.25rem;
        }

        .t9-start-kicker {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            width: fit-content;
            padding: .43rem .68rem;
            border-radius: 999px;
            background: rgba(108,179,63,.10);
            border: 1px solid rgba(108,179,63,.20);
            color: #3f7a25 !important;
            font-size: .60rem !important;
            font-weight: 850 !important;
            letter-spacing: .14em !important;
            text-transform: uppercase;
            margin-bottom: .72rem !important;
        }

        .t9-start-title {
            margin: 0;
            font-size: clamp(2rem, 3.35vw, 3.25rem) !important;
            line-height: 1.06 !important;
            letter-spacing: -.055em !important;
            font-weight: 880 !important;
            color: #0f172a !important;
        }

        .t9-start-title .t9-start-name { color: #5a9632; }

        .t9-start-sub {
            margin: .85rem 0 0 !important;
            color: #64748b !important;
            font-size: .88rem !important;
            line-height: 1.5 !important;
            font-weight: 560 !important;
            max-width: 820px !important;
        }

        .t9-start-now {
            flex: 0 0 auto;
            min-width: 142px;
            border-radius: 18px;
            padding: .78rem .9rem;
            background: rgba(15,23,42,.96);
            color: white;
            box-shadow: 0 18px 44px rgba(15,23,42,.14);
        }

        .t9-start-now span {
            display: block;
            color: rgba(255,255,255,.58);
            font-size: .62rem;
            font-weight: 950;
            letter-spacing: .16em;
            text-transform: uppercase;
        }

        .t9-start-now strong {
            display: block;
            margin-top: .35rem;
            font-size: 1.02rem;
            font-weight: 860;
            letter-spacing: -.04em;
        }


        .t9-start-header-actions {
            display: flex;
            flex-direction: column;
            gap: .75rem;
            align-items: stretch;
            flex: 0 0 auto;
        }

        .t9-start-main-ok {
            border: 0;
            border-radius: 16px;
            padding: .82rem 1rem;
            background: linear-gradient(135deg, #6cb33f, #7ecf55);
            color: #fff;
            font-size: .82rem;
            font-weight: 900;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            gap: .55rem;
            box-shadow: 0 14px 30px rgba(108,179,63,.22);
            cursor: pointer;
            white-space: nowrap;
        }

        .t9-start-main-ok:hover,
        .t9-start-btn:hover {
            transform: translateY(-1px);
            filter: brightness(1.02);
        }

        .t9-start-dashboard-row {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: .85rem;
            margin: 1.05rem 0 1.2rem;
        }

        .t9-start-mini-card {
            border-radius: 18px;
            padding: .82rem .82rem;
            background: rgba(255,255,255,.86);
            border: 1px solid rgba(226,232,240,.95);
            box-shadow: 0 12px 30px rgba(15,23,42,.04);
            min-height: 70px;
        }

        .t9-start-mini-card.warn { border-color: rgba(245,158,11,.28); background: rgba(255,251,235,.88); }
        .t9-start-mini-card.danger { border-color: rgba(220,38,38,.22); background: rgba(254,242,242,.90); }
        .t9-start-mini-card.ok { border-color: rgba(108,179,63,.24); background: rgba(240,253,244,.90); }

        .t9-start-mini-label {
            color: #94a3b8;
            font-size: .58rem;
            font-weight: 950;
            letter-spacing: .13em;
            text-transform: uppercase;
        }

        .t9-start-mini-value {
            margin-top: .42rem;
            color: #1e293b;
            font-size: 1.18rem;
            font-weight: 850;
            letter-spacing: -.04em;
        }

        .t9-briefing-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.55fr) minmax(340px, .72fr);
            gap: 1.15rem;
            align-items: start;
        }

        .t9-briefing-card {
            border-radius: 24px;
            background: rgba(255,255,255,.88);
            border: 1px solid rgba(226,232,240,.95);
            box-shadow: 0 14px 34px rgba(15,23,42,.05);
            overflow: hidden;
        }

        .t9-briefing-card-head {
            padding: .9rem 1.05rem .72rem;
            border-bottom: 1px solid rgba(226,232,240,.78);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .t9-briefing-card-title {
            display: flex;
            align-items: center;
            gap: .62rem;
            min-width: 0;
            color: #0f172a;
            font-weight: 820;
            letter-spacing: -.012em;
        }

        .t9-briefing-card-title i { color: #6cb33f; }
        .t9-briefing-card-note { color:#94a3b8; font-size:.72rem; font-weight:800; white-space:nowrap; }

        .t9-briefing-table-wrap { max-height: 360px; overflow: auto; }
        .t9-briefing-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
        .t9-briefing-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: rgba(248,250,252,.96);
            color: #64748b;
            font-size: .58rem;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: .12em;
            text-align: left;
            padding: .68rem .82rem;
            border-bottom: 1px solid rgba(226,232,240,.9);
        }
        .t9-briefing-table td {
            padding: .78rem .86rem;
            border-bottom: 1px solid rgba(241,245,249,.94);
            color: #334155;
            font-weight: 760;
            vertical-align: top;
        }
        .t9-briefing-table td strong { color: #0f172a; font-weight: 950; }
        .t9-briefing-empty { padding: 1.05rem; color:#64748b; font-weight:620; font-style: normal; line-height:1.45; }

        .t9-status-pill {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            border-radius: 999px;
            padding: .28rem .52rem;
            font-size: .62rem;
            font-weight: 950;
            white-space: nowrap;
            border: 1px solid rgba(226,232,240,.8);
            background: #f8fafc;
            color: #475569;
        }
        .t9-status-pill.ok { background:#f0fdf4; color:#3f7a25; border-color:rgba(108,179,63,.22); }
        .t9-status-pill.warn { background:#fffbeb; color:#b45309; border-color:rgba(245,158,11,.24); }
        .t9-status-pill.danger { background:#fef2f2; color:#b91c1c; border-color:rgba(220,38,38,.20); }
        .t9-status-pill.info { background:#eff6ff; color:#1d4ed8; border-color:rgba(37,99,235,.18); }

        .t9-side-stack { display: grid; gap: 1.15rem; }
        .t9-briefing-list { padding: .72rem; display: grid; gap: .55rem; max-height: 190px; overflow: auto; }
        .t9-briefing-item {
            display: grid;
            grid-template-columns: 34px minmax(0,1fr);
            gap: .65rem;
            align-items: start;
            padding: .72rem;
            border-radius: 18px;
            background: rgba(248,250,252,.80);
            border: 1px solid rgba(226,232,240,.78);
        }
        .t9-briefing-item-icon {
            width: 34px;
            height: 34px;
            border-radius: 13px;
            display: grid;
            place-items: center;
            background: rgba(108,179,63,.12);
            color: #5a9632;
        }
        .t9-briefing-item-title { color:#0f172a; font-size:.78rem; font-weight:820; line-height:1.28; }
        .t9-briefing-item-text { margin-top:.22rem; color:#64748b; font-size:.72rem; font-weight:560; line-height:1.4; }
        .t9-briefing-item-time { margin-top:.35rem; color:#94a3b8; font-size:.62rem; font-weight:850; }

        .t9-private-briefing {
            padding: .9rem;
        }
        .t9-private-briefing-box {
            border-radius: 20px;
            padding: .9rem;
            background:
                linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.96));
            border: 1px solid rgba(37,99,235,.15);
        }
        .t9-private-briefing-top {
            display:flex;
            justify-content:space-between;
            align-items:center;
            gap:.75rem;
        }
        .t9-private-briefing-sender { font-size:.82rem; font-weight:950; color:#0f172a; }
        .t9-private-briefing-time { font-size:.62rem; font-weight:850; color:#94a3b8; white-space:nowrap; }
        .t9-private-briefing-msg { margin-top:.55rem; color:#475569; font-size:.78rem; line-height:1.45; font-weight:720; }
        .t9-private-briefing-btn {
            margin-top:.75rem;
            border:0;
            border-radius:14px;
            padding:.62rem .76rem;
            background:#2563eb;
            color:white;
            font-size:.72rem;
            font-weight:950;
            cursor:pointer;
        }


        /* v8.9.3 – Tagesbriefing ruhiger, breiteres Tagesjournal */
        .t9-start-main {
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .t9-start-title {
            font-size: clamp(2.45rem, 4.2vw, 4.25rem) !important;
            line-height: 1.02 !important;
            font-weight: 760 !important;
            letter-spacing: -0.055em !important;
        }

        .t9-start-name {
            font-weight: 760 !important;
        }

        .t9-start-sub {
            max-width: 780px !important;
            font-size: .96rem !important;
            line-height: 1.58 !important;
            font-weight: 540 !important;
            color: #64748b !important;
        }

        .t9-start-kicker,
        .t9-start-mini-label,
        .t9-briefing-table th {
            font-weight: 760 !important;
            letter-spacing: .105em !important;
        }

        .t9-start-mini-value {
            font-size: 1.05rem !important;
            font-weight: 760 !important;
            letter-spacing: -0.025em !important;
        }

        .t9-briefing-card-title {
            font-size: .98rem !important;
            font-weight: 760 !important;
            letter-spacing: -0.01em !important;
        }

        .t9-briefing-table {
            font-size: .80rem !important;
        }

        .t9-briefing-table td {
            font-weight: 620 !important;
        }

        .t9-briefing-table td strong,
        .t9-private-briefing-sender,
        .t9-briefing-item-title {
            font-weight: 720 !important;
        }

        .t9-side-stack {
            display: grid;
            grid-template-rows: auto auto;
            gap: 1.15rem;
        }

        .t9-briefing-bottom {
            margin-top: 1.15rem;
        }

        .t9-activity-strip {
            padding: .82rem;
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(240px, 1fr);
            gap: .75rem;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x proximity;
            max-height: none;
        }

        .t9-activity-tile {
            min-width: 0;
            scroll-snap-align: start;
            display: grid;
            grid-template-columns: 32px minmax(0,1fr);
            gap: .65rem;
            align-items: start;
            padding: .78rem;
            border-radius: 18px;
            background: linear-gradient(135deg, rgba(248,250,252,.92), rgba(255,255,255,.96));
            border: 1px solid rgba(226,232,240,.82);
        }

        .t9-activity-tile .t9-briefing-item-icon {
            width: 32px;
            height: 32px;
            border-radius: 12px;
        }

        .t9-activity-tile .t9-briefing-item-title {
            font-size: .74rem !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .t9-activity-tile .t9-briefing-item-text {
            font-size: .70rem !important;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .t9-activity-tile .t9-briefing-item-time {
            font-size: .60rem !important;
        }

        /* v8.9.4 – Schriftbild wie Wochenübersicht: klar, sachlich, strukturiert */
        .t9-start-card,
        .t9-start-card *,
        .t9-start-main,
        .t9-start-left {
            font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
            text-rendering: geometricPrecision;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .t9-start-left-title strong {
            font-size: .96rem !important;
            font-weight: 760 !important;
            letter-spacing: -0.018em !important;
            color: #172033 !important;
        }

        .t9-start-left-title span,
        .t9-start-link {
            font-size: .74rem !important;
            font-weight: 560 !important;
            line-height: 1.42 !important;
            color: #64748b !important;
        }

        .t9-start-chip {
            font-size: .72rem !important;
            font-weight: 650 !important;
            letter-spacing: .005em !important;
            color: #475569 !important;
        }

        .t9-start-kicker {
            font-size: .62rem !important;
            font-weight: 760 !important;
            letter-spacing: .13em !important;
            color: #3f7a25 !important;
        }

        .t9-start-title {
            font-size: clamp(2.05rem, 3.25vw, 3.55rem) !important;
            line-height: 1.05 !important;
            font-weight: 720 !important;
            letter-spacing: -0.045em !important;
            color: #111827 !important;
        }

        .t9-start-name {
            font-weight: 720 !important;
            color: #5a9632 !important;
        }

        .t9-start-sub {
            font-size: .92rem !important;
            line-height: 1.55 !important;
            font-weight: 520 !important;
            color: #64748b !important;
            max-width: 840px !important;
        }

        .t9-start-now span {
            font-size: .61rem !important;
            font-weight: 720 !important;
            letter-spacing: .14em !important;
        }

        .t9-start-now strong {
            font-size: 1rem !important;
            font-weight: 720 !important;
            letter-spacing: -0.025em !important;
        }

        .t9-start-main-ok,
        .t9-start-btn {
            font-size: .82rem !important;
            font-weight: 720 !important;
            letter-spacing: -0.01em !important;
        }

        .t9-start-mini-label {
            font-size: .60rem !important;
            font-weight: 720 !important;
            letter-spacing: .115em !important;
            color: #7c8da6 !important;
        }

        .t9-start-mini-value {
            font-size: 1.04rem !important;
            font-weight: 720 !important;
            letter-spacing: -0.022em !important;
            color: #1f2937 !important;
        }

        .t9-briefing-card-title {
            font-size: .98rem !important;
            font-weight: 720 !important;
            letter-spacing: -0.018em !important;
            color: #172033 !important;
        }

        .t9-briefing-card-note {
            font-size: .70rem !important;
            font-weight: 620 !important;
            color: #8a9aaf !important;
        }

        .t9-briefing-table {
            font-size: .82rem !important;
        }

        .t9-briefing-table th {
            font-size: .60rem !important;
            font-weight: 720 !important;
            letter-spacing: .115em !important;
            color: #64748b !important;
        }

        .t9-briefing-table td {
            font-size: .82rem !important;
            font-weight: 570 !important;
            color: #334155 !important;
            line-height: 1.35 !important;
        }

        .t9-briefing-table td strong {
            font-weight: 720 !important;
            color: #172033 !important;
        }

        .t9-status-pill {
            font-size: .62rem !important;
            font-weight: 720 !important;
            letter-spacing: -0.006em !important;
        }

        .t9-briefing-empty {
            font-size: .88rem !important;
            font-weight: 520 !important;
            color: #64748b !important;
            font-style: normal !important;
        }

        .t9-private-briefing-sender,
        .t9-briefing-item-title {
            font-size: .78rem !important;
            font-weight: 720 !important;
            letter-spacing: -0.01em !important;
            color: #172033 !important;
        }

        .t9-private-briefing-msg,
        .t9-briefing-item-text {
            font-size: .74rem !important;
            font-weight: 520 !important;
            line-height: 1.42 !important;
            color: #64748b !important;
        }

        .t9-private-briefing-time,
        .t9-briefing-item-time {
            font-size: .62rem !important;
            font-weight: 650 !important;
            color: #8a9aaf !important;
        }

        .t9-private-briefing-btn {
            font-size: .72rem !important;
            font-weight: 720 !important;
        }

        .t9-activity-tile .t9-briefing-item-title {
            font-size: .74rem !important;
            font-weight: 720 !important;
        }

        .t9-activity-tile .t9-briefing-item-text {
            font-size: .70rem !important;
            font-weight: 520 !important;
        }

        html.dark .t9-start-card,
        html.dark .t9-start-main { background: rgba(15,23,42,.97) !important; }
        html.dark .t9-start-left { background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(2,6,23,.86)) !important; border-right-color: rgba(148,163,184,.18); }
        html.dark .t9-start-left-title strong,
        html.dark .t9-start-title,
        html.dark .t9-briefing-card-title,
        html.dark .t9-briefing-table td strong,
        html.dark .t9-briefing-item-title,
        html.dark .t9-private-briefing-sender { color:#f8fafc !important; }
        html.dark .t9-start-sub,
        html.dark .t9-start-left-title span,
        html.dark .t9-briefing-item-text,
        html.dark .t9-private-briefing-msg { color:#cbd5e1 !important; }
        html.dark .t9-start-chip,
        html.dark .t9-start-mini-card,
        html.dark .t9-briefing-card,
        html.dark .t9-briefing-item,
        html.dark .t9-private-briefing-box { background: rgba(15,23,42,.72) !important; border-color: rgba(148,163,184,.18) !important; }
        html.dark .t9-briefing-table th { background: rgba(15,23,42,.96); color:#94a3b8; border-color: rgba(148,163,184,.18); }
        html.dark .t9-briefing-table td { color:#cbd5e1; border-color: rgba(148,163,184,.13); }
        html.dark .t9-start-mini-value { color:#f8fafc; }

        @media (max-width: 980px) {
            .t9-start-overlay { padding:.75rem; align-items:stretch; }
            .t9-start-card { width:100% !important; max-height: calc(100vh - 1.5rem); border-radius:24px !important; }
            .t9-start-inner { grid-template-columns:1fr; min-height:0; }
            .t9-start-left { padding:1rem; flex-direction:row; align-items:center; flex-wrap:wrap; }
            .t9-start-icon { width:54px !important; height:54px !important; border-radius:18px !important; font-size:22px !important; }
            .t9-start-left-title { flex:1; min-width:180px; }
            .t9-start-meta { width:100%; display:grid; grid-template-columns:1fr 1fr; }
            .t9-start-btn { width:100%; margin-top:.2rem; }
            .t9-start-main { padding:1rem; }
            .t9-start-header { flex-direction:column; }
            .t9-start-header-actions { width:100%; }
            .t9-start-now { width:100%; }
            .t9-start-dashboard-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
            .t9-briefing-grid { grid-template-columns:1fr; }
            .t9-briefing-table-wrap { max-height: 280px; }
        }

        @media (max-width: 560px) {
            .t9-start-title { font-size:2.05rem !important; }
            .t9-start-dashboard-row { grid-template-columns:1fr; }
            .t9-start-meta { grid-template-columns:1fr; }
            .t9-briefing-table th:nth-child(3), .t9-briefing-table td:nth-child(3) { display:none; }
            .t9-activity-strip { grid-auto-columns: minmax(230px, 88vw); }
        }

        /* =========================================================
           ONLINE-STATUS – kompakte Auswahl in der Online-Box
           SAFE: keine Tabellenstruktur in med_users erforderlich.
           ========================================================= */
        .t9-online-row {
            position: relative;
        }

        .t9-online-row.own-user {
            cursor: pointer;
            border-color: rgba(108,179,63,.24) !important;
        }

        .t9-online-row.own-user:hover {
            border-color: rgba(108,179,63,.40) !important;
            box-shadow: 0 10px 24px rgba(108,179,63,.08) !important;
        }

        .t9-online-dot {
            position: absolute;
            right: -1px;
            bottom: -1px;
            width: 10px;
            height: 10px;
            border-radius: 999px;
            border: 2px solid #fff;
            box-shadow: 0 0 0 1px rgba(15,23,42,.06);
        }

        .t9-online-dot.available { background: #22c55e; }
        .t9-online-dot.meeting { background: #c2410c; }
        .t9-online-dot.busy { background: #dc2626; }
        .t9-online-dot.dnd { background: #94a3b8; }

        .t9-online-status-label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 2px;
            max-width: 100%;
            color: #64748b;
            font-size: 9px;
            font-weight: 720;
        }

        .t9-online-status-label::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: #22c55e;
            flex: 0 0 auto;
        }

        .t9-online-status-label.available::before { background: #22c55e; }
        .t9-online-status-label.meeting::before { background: #c2410c; }
        .t9-online-status-label.busy::before { background: #dc2626; }
        .t9-online-status-label.dnd::before { background: #94a3b8; }

        .t9-status-picker {
            margin-top: 9px;
            padding: 7px;
            border-radius: 16px;
            background: rgba(255,255,255,.92);
            border: 1px solid rgba(226,232,240,.95);
            box-shadow: 0 12px 28px rgba(15,23,42,.08);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 5px;
        }

        .t9-status-option {
            min-height: 28px;
            border-radius: 12px;
            border: 1px solid rgba(226,232,240,.9);
            background: rgba(248,250,252,.88);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-size: 9px;
            font-weight: 850;
            color: #475569;
            transition: .16s ease;
        }

        .t9-status-option:hover {
            transform: translateY(-1px);
            border-color: rgba(108,179,63,.34);
        }

        .t9-status-option.active {
            background: rgba(108,179,63,.10);
            border-color: rgba(108,179,63,.34);
            color: #3f7a25;
        }

        .t9-status-option .mini-dot {
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: #22c55e;
        }

        .t9-status-option.meeting .mini-dot { background: #c2410c; }
        .t9-status-option.busy .mini-dot { background: #dc2626; }
        .t9-status-option.dnd .mini-dot { background: #94a3b8; }

        html.dark .t9-online-dot {
            border-color: #0f172a;
        }

        html.dark .t9-status-picker {
            background: rgba(15,23,42,.94);
            border-color: rgba(148,163,184,.18);
        }

        html.dark .t9-status-option {
            background: rgba(30,41,59,.78);
            border-color: rgba(148,163,184,.18);
            color: #cbd5e1;
        }


        .t9-online-dot.invisible { background: #111827; }
        .t9-online-status-label.invisible::before { background: #111827; }
        .t9-status-option.invisible .mini-dot { background: #111827; }

        .t9-status-option.secret {
            background: linear-gradient(135deg, rgba(17,24,39,.06), rgba(108,179,63,.06));
            border-color: rgba(17,24,39,.18);
        }

        .t9-status-option.secret.active {
            background: linear-gradient(135deg, rgba(17,24,39,.12), rgba(108,179,63,.12));
            color: #111827;
        }

        /* =========================================================
           ONLINE-STATUS – kompakte Avatar-Leiste in der Kopfzeile
           ersetzt die große rechte Online-Box, damit Quickbedarf und
           InfoBoard mehr nutzbaren Platz behalten.
           ========================================================= */
        .t9-online-compact {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 42px;
            padding: 6px 9px 6px 11px;
            border-radius: 999px;
            border: 1px solid rgba(226,232,240,.95);
            background: rgba(255,255,255,.82);
            box-shadow: 0 10px 24px rgba(15,23,42,.045);
            color: #334155;
        }

        .t9-online-compact-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 10px;
            line-height: 1;
            font-weight: 850;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #64748b;
            white-space: nowrap;
        }

        .t9-online-compact-avatars {
            display: inline-flex;
            align-items: center;
            gap: 0;
        }

        .t9-online-compact-avatar {
            position: relative;
            width: 32px;
            height: 32px;
            border-radius: 999px;
            border: 2px solid rgba(255,255,255,.96);
            background: #f1f5f9;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
            margin-left: -7px;
            color: #3f7a25;
            font-size: 10px;
            font-weight: 850;
            box-shadow: 0 8px 18px rgba(15,23,42,.08);
            cursor: pointer;
            transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
        }

        .t9-online-compact-avatar:first-child { margin-left: 0; }

        .t9-online-compact-avatar:hover {
            transform: translateY(-2px) scale(1.04);
            border-color: rgba(108,179,63,.58);
            z-index: 8;
            box-shadow: 0 12px 26px rgba(15,23,42,.12);
        }

        .t9-online-compact-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 999px;
            display: block;
        }

        .t9-online-compact-more {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            border: 1px solid rgba(226,232,240,.95);
            background: rgba(248,250,252,.96);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: -7px;
            font-size: 10px;
            font-weight: 850;
            color: #64748b;
            box-shadow: 0 8px 18px rgba(15,23,42,.06);
        }

        .t9-online-user-menu {
            position: absolute;
            top: calc(100% + 10px);
            right: -8px;
            z-index: 185;
            width: 238px;
            padding: 10px;
            border-radius: 18px;
            border: 1px solid rgba(226,232,240,.95);
            background: rgba(255,255,255,.98);
            box-shadow: 0 18px 46px rgba(15,23,42,.16);
            text-align: left;
            color: #0f172a;
        }

        .t9-online-user-menu::before {
            content: "";
            position: absolute;
            top: -6px;
            right: 18px;
            width: 12px;
            height: 12px;
            transform: rotate(45deg);
            background: rgba(255,255,255,.98);
            border-left: 1px solid rgba(226,232,240,.95);
            border-top: 1px solid rgba(226,232,240,.95);
        }

        .t9-online-user-menu-name {
            display: block;
            font-size: 12px;
            font-weight: 850;
            color: #0f172a;
            line-height: 1.2;
            margin-bottom: 2px;
        }

        .t9-online-user-menu-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 10px;
            font-weight: 750;
            color: #64748b;
            margin-bottom: 9px;
        }

        .t9-online-user-menu-status .mini-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            display: inline-block;
            background: #22c55e;
        }

        .t9-online-user-menu-action {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 0;
            border-radius: 14px;
            padding: 10px 12px;
            background: linear-gradient(135deg, #6cb33f, #86d75e);
            color: white;
            font-size: 11px;
            font-weight: 850;
            cursor: pointer;
            box-shadow: 0 12px 24px rgba(108,179,63,.22);
        }

        .t9-online-user-menu-action:hover {
            transform: translateY(-1px);
            box-shadow: 0 16px 30px rgba(108,179,63,.28);
        }

        .t9-online-empty-small {
            font-size: 11px;
            font-weight: 750;
            color: #94a3b8;
            padding-right: 2px;
            white-space: nowrap;
        }

        .t9-status-picker.compact {
            position: absolute;
            top: calc(100% + 9px);
            right: 0;
            width: 260px;
            z-index: 180;
            margin-top: 0;
            text-align: left;
        }

        html.dark .t9-online-compact {
            background: rgba(15,23,42,.78);
            border-color: rgba(148,163,184,.18);
            color: #e2e8f0;
        }

        html.dark .t9-online-compact-avatar {
            border-color: rgba(15,23,42,.96);
            background: #1e293b;
            color: #9ee37c;
        }

        html.dark .t9-online-compact-more {
            background: rgba(30,41,59,.96);
            border-color: rgba(148,163,184,.18);
            color: #cbd5e1;
        }

        html.dark .t9-online-user-menu {
            background: rgba(15,23,42,.98);
            border-color: rgba(148,163,184,.22);
            color: #e2e8f0;
        }
        html.dark .t9-online-user-menu::before {
            background: rgba(15,23,42,.98);
            border-color: rgba(148,163,184,.22);
        }
        html.dark .t9-online-user-menu-name { color: #f8fafc; }
        html.dark .t9-online-user-menu-status { color: #94a3b8; }

        @media (max-width: 900px) {
            .t9-online-compact {
                padding: 6px 8px;
                gap: 7px;
            }
            .t9-online-compact-label span { display: none; }
            .t9-online-compact-avatar { width: 30px; height: 30px; }
            .t9-online-compact-more { width: 30px; height: 30px; }
        }

        html.dark .t9-status-option.secret.active {
            color: #f8fafc;
        }


        .t9-status-option.invisible {
            grid-column: 1 / -1;
            justify-content: center;
            background: linear-gradient(135deg, rgba(17,24,39,.075), rgba(108,179,63,.055)) !important;
            border-color: rgba(17,24,39,.20) !important;
        }

        .t9-status-option.invisible.active {
            background: linear-gradient(135deg, rgba(17,24,39,.14), rgba(108,179,63,.14)) !important;
            border-color: rgba(17,24,39,.32) !important;
            color: #111827 !important;
        }

        html.dark .t9-status-option.invisible.active {
            color: #f8fafc !important;
        }


        .t9-invisible-extra-button {
            grid-column: 1 / -1 !important;
            min-height: 32px !important;
            border-radius: 14px !important;
            border: 1px solid rgba(17,24,39,.22) !important;
            background: linear-gradient(135deg, rgba(17,24,39,.08), rgba(108,179,63,.06)) !important;
            color: #111827 !important;
            font-size: 10px !important;
            font-weight: 900 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 7px !important;
        }

        .t9-invisible-extra-button.active {
            background: linear-gradient(135deg, rgba(17,24,39,.16), rgba(108,179,63,.13)) !important;
            border-color: rgba(17,24,39,.36) !important;
            box-shadow: inset 0 0 0 2px rgba(17,24,39,.08) !important;
        }

        .t9-invisible-extra-button .mini-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: #111827;
        }

        html.dark .t9-invisible-extra-button {
            color: #f8fafc !important;
            border-color: rgba(248,250,252,.24) !important;
            background: linear-gradient(135deg, rgba(248,250,252,.08), rgba(108,179,63,.08)) !important;
        }


        /* =========================================================
           PROFIL CENTER – aufgeräumt, lesbar, logisch gruppiert
           ========================================================= */
        .t9-profile-modal-clean {
            max-width: 1120px !important;
        }

        .t9-profile-panel {
            border: 1px solid rgba(226,232,240,.92);
            background: rgba(255,255,255,.92);
            border-radius: 28px;
            padding: 22px;
            box-shadow: 0 14px 36px rgba(15,23,42,.045);
        }

        .t9-profile-section-title {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .t9-profile-section-icon {
            width: 38px;
            height: 38px;
            border-radius: 15px;
            background: rgba(108,179,63,.12);
            color: #5a9632;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
        }

        .t9-profile-section-title strong {
            display: block;
            color: #1f2937;
            font-size: 15px;
            font-weight: 950;
            letter-spacing: -.02em;
        }

        .t9-profile-section-title span {
            display: block;
            color: #64748b;
            font-size: 11px;
            font-weight: 650;
            margin-top: 2px;
        }

        .t9-profile-field-label {
            display: block;
            color: #94a3b8;
            font-size: 9px;
            font-weight: 950;
            letter-spacing: .12em;
            text-transform: uppercase;
            margin-bottom: 7px;
        }

        .t9-profile-input {
            width: 100%;
            border-radius: 15px;
            border: 1px solid rgba(203,213,225,.9);
            background: rgba(248,250,252,.82);
            padding: 12px 13px;
            color: #1f2937;
            font-size: 13px;
            font-weight: 750;
        }

        .t9-profile-input::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

        .t9-profile-toggle-card {
            border: 1px solid rgba(226,232,240,.86);
            background: rgba(248,250,252,.76);
            border-radius: 20px;
            padding: 15px;
            display: grid;
            grid-template-columns: 38px minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            cursor: pointer;
            min-height: 88px;
        }

        .t9-profile-toggle-card:hover {
            border-color: rgba(108,179,63,.34);
        }

        .t9-profile-toggle-icon {
            width: 38px;
            height: 38px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            color: #6cb33f;
            background: rgba(255,255,255,.9);
            border: 1px solid rgba(226,232,240,.86);
        }

        .t9-profile-toggle-title {
            color: #334155;
            font-size: 13px;
            line-height: 1.25;
            font-weight: 900;
        }

        .t9-profile-toggle-desc {
            color: #94a3b8;
            font-size: 10px;
            line-height: 1.35;
            font-weight: 620;
            margin-top: 4px;
        }

        .t9-profile-check {
            width: 27px;
            height: 27px;
            border-radius: 10px;
            display: grid;
            place-items: center;
            background: #e2e8f0;
            color: white;
            font-size: 14px;
        }

        .t9-profile-check.on {
            background: #6cb33f;
        }

        .t9-profile-avatar-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .t9-profile-mini-btn {
            border: 1px solid rgba(203,213,225,.9);
            background: rgba(248,250,252,.86);
            color: #475569;
            border-radius: 14px;
            padding: 9px 11px;
            font-size: 11px;
            font-weight: 850;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            cursor: pointer;
        }

        .t9-profile-mini-btn.danger {
            color: #dc2626;
            background: rgba(254,242,242,.86);
            border-color: rgba(252,165,165,.54);
        }

        html.dark .t9-profile-panel {
            background: rgba(15,23,42,.82);
            border-color: rgba(148,163,184,.18);
        }

        html.dark .t9-profile-section-title strong,
        html.dark .t9-profile-toggle-title,
        html.dark .t9-profile-input {
            color: #f8fafc;
        }

        html.dark .t9-profile-input,
        html.dark .t9-profile-toggle-card,
        html.dark .t9-profile-mini-btn {
            background: rgba(30,41,59,.72);
            border-color: rgba(148,163,184,.20);
        }

        @media (max-width: 900px) {
            .t9-profile-toggle-card {
                grid-template-columns: 34px minmax(0, 1fr) auto;
            }
        }


        /* =========================================================
           PROFIL-FEINSCHLIFF + MATRIX BEI AUSGEBLENDETER KPI-LEISTE
           ========================================================= */
        .t9-profile-modal-clean {
            max-width: 1080px !important;
            border-radius: 30px !important;
        }

        .t9-profile-modal-clean .px-6.md\:px-8 {
            padding-top: 22px !important;
            padding-bottom: 18px !important;
        }

        .t9-profile-panel {
            border-radius: 22px !important;
            padding: 18px !important;
            box-shadow: 0 10px 28px rgba(15,23,42,.035) !important;
        }

        .t9-profile-section-title {
            gap: 10px !important;
            margin-bottom: 14px !important;
        }

        .t9-profile-section-icon {
            width: 34px !important;
            height: 34px !important;
            border-radius: 13px !important;
            font-size: 13px !important;
        }

        .t9-profile-section-title strong {
            font-size: 14px !important;
            font-weight: 820 !important;
            letter-spacing: -.015em !important;
        }

        .t9-profile-section-title span {
            font-size: 10.5px !important;
            font-weight: 580 !important;
            line-height: 1.35 !important;
        }

        .t9-profile-field-label {
            font-size: 8.5px !important;
            font-weight: 800 !important;
            letter-spacing: .10em !important;
            margin-bottom: 6px !important;
        }

        .t9-profile-input {
            border-radius: 14px !important;
            padding: 10px 12px !important;
            font-size: 13px !important;
            font-weight: 580 !important;
        }

        .t9-profile-toggle-card {
            border-radius: 17px !important;
            padding: 12px !important;
            grid-template-columns: 34px minmax(0, 1fr) 26px !important;
            gap: 10px !important;
            min-height: 76px !important;
            align-items: center !important;
        }

        .t9-profile-toggle-icon {
            width: 34px !important;
            height: 34px !important;
            border-radius: 13px !important;
        }

        .t9-profile-toggle-title {
            font-size: 12.5px !important;
            font-weight: 780 !important;
            letter-spacing: .01em !important;
            line-height: 1.25 !important;
        }

        .t9-profile-toggle-desc {
            font-size: 9.5px !important;
            font-weight: 560 !important;
            letter-spacing: .06em !important;
            line-height: 1.32 !important;
            margin-top: 3px !important;
        }

        .t9-profile-check {
            width: 25px !important;
            height: 25px !important;
            border-radius: 9px !important;
            font-size: 12px !important;
        }

        .t9-profile-mini-btn {
            border-radius: 13px !important;
            padding: 8px 10px !important;
            font-size: 10.5px !important;
            font-weight: 760 !important;
        }

        .t9-profile-modal-clean h2 {
            font-size: clamp(24px, 2.1vw, 31px) !important;
            font-weight: 820 !important;
            letter-spacing: -.04em !important;
        }

        .t9-profile-modal-clean .grid.grid-cols-3 button {
            font-size: 12px !important;
            font-weight: 760 !important;
            padding-top: 10px !important;
            padding-bottom: 10px !important;
        }

        .t9-kpi-hidden .t9-workspace {
            min-height: 0 !important;
            flex: 1 1 auto !important;
        }

        .t9-kpi-hidden .t9-board {
            min-height: 0 !important;
        }

        .t9-kpi-hidden .t9-grid-wrap {
            min-height: 0 !important;
        }

        .t9-kpi-hidden .t9-legend {
            align-self: center !important;
            flex: 0 0 auto !important;
            margin-top: 2px !important;
            margin-bottom: 0 !important;
            gap: 8px !important;
        }

        .t9-kpi-hidden .t9-legend span {
            min-width: auto !important;
            min-height: 0 !important;
            width: auto !important;
            height: auto !important;
            padding: 5px 9px !important;
            border-radius: 999px !important;
        }

        .t9-kpi-hidden .t9-footer {
            flex: 0 0 auto !important;
            padding-bottom: 0 !important;
        }


        /* =========================================================
           ADMIN-MASKE: Zugewiesenes Personal bleibt komplett klickbar
           ========================================================= */
        .t9-assigned-person-row {
            max-width: 100%;
            overflow: visible;
        }

        .t9-assigned-person-row > * {
            min-width: 0;
        }

        .t9-assigned-person-field {
            max-width: 100%;
        }

        .t9-assigned-remove-btn {
            min-width: 44px;
            flex: 0 0 auto;
        }

        @media (max-width: 1279px) {
            .t9-assigned-remove-btn {
                justify-self: stretch;
            }
        }



        /* =========================================================
           TERMINAL 3.2.10 – Mobile Tagesmodus / Sandwich / Chat Vollbild
           Desktop bleibt unverändert. Unter 768px wird nur der aktuelle
           Tag gezeigt, die Navigation sitzt oben als Sandwich-Menü
           und der Chat öffnet maximal wie eine Messenger-App.
           ========================================================= */
        @media (max-width: 767px) {
            html, body {
                width: 100%;
                max-width: 100%;
                overflow-x: hidden !important;
                -webkit-text-size-adjust: 100%;
            }

            body {
                background: linear-gradient(180deg, #f8fbff 0%, #eef6f4 100%) !important;
            }

            .t9-shell {
                height: auto !important;
                min-height: 100vh !important;
                display: block !important;
                overflow: visible !important;
                padding-top: calc(62px + env(safe-area-inset-top, 0px)) !important;
                padding-bottom: 12px !important;
            }

            .t9-main {
                display: block !important;
                height: auto !important;
                min-height: 100vh !important;
                overflow: visible !important;
                padding: 12px 10px 0 !important;
                gap: 10px !important;
            }

            .t9-topbar {
                display: block !important;
                padding: 4px 2px 0 !important;
            }

            .t9-title h1 {
                font-size: 26px !important;
                line-height: 1.02 !important;
                letter-spacing: -0.045em !important;
            }

            .t9-title p {
                font-size: 11px !important;
                line-height: 1.35 !important;
                margin-top: 6px !important;
            }

            .t9-actions {
                margin-top: 10px !important;
                display: flex !important;
                flex-wrap: nowrap !important;
                gap: 8px !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
                padding: 2px 2px 10px !important;
                justify-content: flex-start !important;
                scrollbar-width: none;
            }

            .t9-actions::-webkit-scrollbar { display: none; }

            .t9-actions .t9-btn,
            .t9-actions .t9-iconbtn,
            .t9-pill {
                flex: 0 0 auto !important;
                min-height: 42px !important;
                white-space: nowrap !important;
                font-size: 12px !important;
            }

            .t9-kpis {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 8px !important;
                margin: 2px 0 10px !important;
            }

            .t9-kpi {
                min-height: 76px !important;
                padding: 11px 12px !important;
                border-radius: 20px !important;
            }

            .t9-kpi-label {
                font-size: 8px !important;
                letter-spacing: .08em !important;
                gap: 5px !important;
            }

            .t9-kpi-value {
                margin-top: 9px !important;
                font-size: 25px !important;
            }

            .t9-workspace {
                display: block !important;
                min-height: 0 !important;
            }

            .t9-board {
                border-radius: 24px !important;
                overflow: visible !important;
                display: block !important;
            }

            .t9-board-head {
                display: block !important;
                padding: 13px !important;
                border-radius: 24px 24px 0 0 !important;
            }

            .t9-board-title {
                font-size: 13px !important;
                margin-bottom: 10px !important;
            }

            .t9-board-head .flex.items-center.gap-2 {
                justify-content: flex-start !important;
                overflow-x: auto !important;
                flex-wrap: nowrap !important;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 4px;
            }

            .t9-grid-wrap {
                overflow: visible !important;
                padding: 10px !important;
            }

            .t9-grid,
            .t9-grid.with-weekend {
                display: block !important;
                min-width: 0 !important;
                width: 100% !important;
            }

            .t9-corner,
            .t9-dayhead,
            .t9-balance-label,
            .t9-balance-cell {
                display: none !important;
            }

            .t9-clinic {
                position: relative !important;
                left: auto !important;
                z-index: 1 !important;
                min-height: 0 !important;
                margin: 14px 0 8px !important;
                padding: 13px 14px !important;
                border-radius: 20px !important;
                background: linear-gradient(135deg, rgba(108,179,63,.16), rgba(255,255,255,.90)) !important;
                box-shadow: 0 10px 28px rgba(15,23,42,.06) !important;
            }

            .t9-clinic-name {
                font-size: 15px !important;
                line-height: 1.15 !important;
            }

            .t9-clinic-meta {
                margin-top: 4px !important;
                font-size: 10px !important;
            }

            .t9-cell {
                position: relative !important;
                min-height: 82px !important;
                width: 100% !important;
                margin: 0 0 9px !important;
                padding: 42px 10px 10px !important;
                border-radius: 19px !important;
                cursor: pointer !important;
                box-shadow: 0 8px 22px rgba(15,23,42,.045) !important;
            }

            .t9-cell::before {
                content: attr(data-mobile-title);
                position: absolute;
                left: 12px;
                top: 10px;
                font-size: 12px;
                font-weight: 900;
                color: #0f172a;
                letter-spacing: -.01em;
            }

            .t9-cell::after {
                content: attr(data-mobile-status);
                position: absolute;
                right: 10px;
                top: 9px;
                max-width: 46%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                padding: 5px 8px;
                border-radius: 999px;
                background: rgba(15,23,42,.055);
                color: #64748b;
                font-size: 9px;
                font-weight: 850;
            }

            .t9-cell.t9-today-cell {
                border-color: rgba(108,179,63,.46) !important;
                background: linear-gradient(135deg, rgba(108,179,63,.13), rgba(255,255,255,.94)) !important;
            }

            .t9-cell.t9-weekend {
                opacity: .88;
            }


            /* Mobile Tagesmodus: Auf dem Handy wird bewusst nur HEUTE angezeigt. */
            .t9-cell:not(.t9-today-cell) {
                display: none !important;
            }

            .t9-clinic:has(+ .t9-cell:not(.t9-today-cell) + .t9-cell:not(.t9-today-cell) + .t9-cell:not(.t9-today-cell) + .t9-cell:not(.t9-today-cell) + .t9-cell:not(.t9-today-cell) + .t9-cell:not(.t9-today-cell) + .t9-cell:not(.t9-today-cell)) {
                display: flex !important;
            }

            .t9-cell.t9-today-cell::before {
                content: "Heute · " attr(data-mobile-title) !important;
            }

            .t9-actions .t9-iconbtn[title="Vorherige Woche"],
            .t9-actions .t9-iconbtn[title="Nächste Woche"],
            .t9-actions .t9-btn:nth-child(4) {
                display: none !important;
            }

            .t9-empty {
                min-height: 34px !important;
                border-radius: 14px !important;
            }

            .t9-chip {
                min-height: 36px !important;
                padding: 8px 9px !important;
                border-radius: 14px !important;
                font-size: 12px !important;
                gap: 8px !important;
            }

            .t9-chip-label {
                font-size: 12px !important;
                max-width: 185px !important;
            }

            .t9-count {
                min-width: 42px !important;
                font-size: 12px !important;
            }

            .t9-sidebar {
                display: block !important;
                margin-top: 12px !important;
            }

            .t9-sidecard {
                border-radius: 22px !important;
                margin-bottom: 10px !important;
            }

            .t9-online-row {
                min-height: 44px !important;
            }

            .t9-mobile-bottom-nav {
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                top: 0 !important;
                bottom: auto !important;
                z-index: 220 !important;
                width: 100% !important;
                min-width: 0 !important;
                height: calc(58px + env(safe-area-inset-top, 0px)) !important;
                padding: calc(7px + env(safe-area-inset-top, 0px)) 10px 7px !important;
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 8px !important;
                overflow: visible !important;
                border-radius: 0 0 22px 22px !important;
                box-shadow: 0 12px 34px rgba(15,23,42,.18) !important;
            }

            .t9-mobile-bottom-nav .t9-logo {
                width: 40px !important;
                height: 40px !important;
                border-radius: 14px !important;
                flex: 0 0 auto !important;
            }

            .t9-mobile-bottom-nav .t9-mobile-menu-toggle {
                display: grid !important;
                margin-left: auto !important;
                background: rgba(255,255,255,.12) !important;
                color: #fff !important;
            }

            .t9-mobile-bottom-nav .t9-navbtn:not(.t9-mobile-menu-toggle) {
                display: none !important;
            }

            .t9-mobile-bottom-nav.mobile-open {
                height: auto !important;
                max-height: calc(100vh - 12px) !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                flex-wrap: wrap !important;
                overflow-y: auto !important;
                padding-bottom: 12px !important;
            }

            .t9-mobile-bottom-nav.mobile-open .t9-navbtn {
                width: 46px !important;
                height: 46px !important;
                border-radius: 15px !important;
                flex: 0 0 auto !important;
                display: grid !important;
            }

            .t9-mobile-bottom-nav.mobile-open .t9-logo {
                margin-right: calc(100% - 96px) !important;
            }

            .t9-mobile-bottom-nav .mt-auto {
                display: none !important;
            }

            .t9-navbtn.active::before {
                display: none !important;
            }

            .t9-notify-badge {
                top: 2px !important;
                right: 2px !important;
            }


            /* Chat mobil: Beim Öffnen wie WhatsApp/Messenger maximal nutzen. */
            .chat-emoji-safe:has(> .flex.items-end) {
                inset: 0 !important;
                width: 100vw !important;
                height: 100dvh !important;
                max-width: 100vw !important;
                max-height: 100dvh !important;
                padding: 0 !important;
                align-items: stretch !important;
                z-index: 260 !important;
            }

            .chat-emoji-safe:has(> .flex.items-end) > .flex.items-end {
                width: 100% !important;
                height: 100% !important;
                margin: 0 !important;
                gap: 0 !important;
                align-items: stretch !important;
            }

            .chat-emoji-safe:has(> .flex.items-end) .chat-side-panel {
                display: none !important;
            }

            .chat-emoji-safe:has(> .flex.items-end) > button:last-child {
                display: none !important;
            }

            .chat-emoji-safe:has(> .flex.items-end) textarea,
            .chat-emoji-safe:has(> .flex.items-end) .chat-composer-textarea {
                font-size: 16px !important;
            }

            /* Modale auf iPhone besser nutzbar */
            .fixed.inset-0.z-\[140\] > .relative,
            .fixed.inset-0.z-\[120\] > .relative,
            .fixed.inset-0.z-\[110\] > .relative {
                width: calc(100vw - 18px) !important;
                max-width: calc(100vw - 18px) !important;
                max-height: calc(100vh - 24px) !important;
                border-radius: 22px !important;
            }

            html.dark .t9-cell::before { color: #f8fafc; }
            html.dark .t9-cell::after {
                background: rgba(148,163,184,.13);
                color: #cbd5e1;
            }

            html.dark .t9-clinic {
                background: linear-gradient(135deg, rgba(108,179,63,.15), rgba(15,23,42,.92)) !important;
            }
        }

        @media (max-width: 390px) {
            .t9-kpis { grid-template-columns: 1fr 1fr !important; }
            .t9-actions .t9-btn { padding-left: 11px !important; padding-right: 11px !important; }
            .t9-cell::after { max-width: 40%; }
            .t9-chip-label { max-width: 150px !important; }
        }


        /* =========================================================
           STATISTIK CENTER v8.7 – Phase 1
           ========================================================= */
        .t9-stats-modal {
            width: min(1420px, calc(100vw - 28px));
            max-height: 94vh;
        }
        .t9-stats-head {
            display:flex; align-items:center; justify-content:space-between; gap:16px;
            padding: 22px 24px; border-bottom:1px solid rgba(148,163,184,.22);
            background: linear-gradient(135deg, rgba(108,179,63,.10), rgba(37,99,235,.08));
        }
        .t9-stats-title { display:flex; align-items:center; gap:14px; }
        .t9-stats-title-icon { width:46px; height:46px; border-radius:18px; display:grid; place-items:center; background:#6cb33f; color:white; box-shadow:0 14px 32px rgba(108,179,63,.24); }
        .t9-stats-title h2 { margin:0; font-size:20px; font-weight:950; color:#0f172a; letter-spacing:-.04em; }
        html.dark .t9-stats-title h2 { color:#f8fafc; }
        .t9-stats-title p { margin:3px 0 0; font-size:12px; color:#64748b; font-weight:800; }
        .t9-stats-filters { display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap:12px; padding:16px 20px; border-bottom:1px solid rgba(148,163,184,.18); background:rgba(248,250,252,.75); }
        html.dark .t9-stats-filters { background:rgba(15,23,42,.55); }
        .t9-stats-field label { display:block; font-size:9px; text-transform:uppercase; letter-spacing:.12em; font-weight:950; color:#64748b; margin-bottom:6px; }
        .t9-stats-field input, .t9-stats-field select { width:100%; border:1px solid rgba(148,163,184,.35); border-radius:14px; padding:10px 12px; font-size:12px; font-weight:800; background:white; color:#0f172a; outline:none; }
        html.dark .t9-stats-field input, html.dark .t9-stats-field select { background:#0f172a; color:#f8fafc; border-color:rgba(71,85,105,.9); }
        .t9-stats-body { padding:18px 20px 22px; overflow:auto; }
        .t9-stats-kpis { display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:12px; margin-bottom:18px; }
        .t9-stats-kpi { border:1px solid rgba(148,163,184,.22); background:rgba(255,255,255,.82); border-radius:22px; padding:14px 15px; box-shadow:0 14px 36px rgba(15,23,42,.055); }
        html.dark .t9-stats-kpi { background:rgba(15,23,42,.78); border-color:rgba(51,65,85,.9); }
        .t9-stats-kpi span { display:block; font-size:9px; text-transform:uppercase; letter-spacing:.12em; color:#64748b; font-weight:950; margin-bottom:8px; }
        .t9-stats-kpi strong { display:block; font-size:25px; line-height:1; color:#0f172a; font-weight:950; letter-spacing:-.05em; }
        html.dark .t9-stats-kpi strong { color:#f8fafc; }
        .t9-stats-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
        .t9-stats-tab { border:1px solid rgba(148,163,184,.28); border-radius:999px; padding:9px 13px; font-size:12px; font-weight:950; background:white; color:#475569; cursor:pointer; }
        .t9-stats-tab.active { background:#6cb33f; color:white; border-color:#6cb33f; }
        html.dark .t9-stats-tab { background:#0f172a; color:#cbd5e1; border-color:rgba(71,85,105,.9); }
        .t9-stats-panel { border:1px solid rgba(148,163,184,.22); border-radius:24px; overflow:hidden; background:rgba(255,255,255,.82); }
        html.dark .t9-stats-panel { background:rgba(15,23,42,.78); border-color:rgba(51,65,85,.9); }
        .t9-stats-table-wrap { overflow:auto; max-height:48vh; }
        .t9-stats-table { width:100%; border-collapse:separate; border-spacing:0; font-size:12px; }
        .t9-stats-table th { position:sticky; top:0; z-index:1; background:#f8fafc; color:#475569; text-align:left; font-size:9px; text-transform:uppercase; letter-spacing:.12em; padding:11px 12px; border-bottom:1px solid rgba(148,163,184,.24); }
        html.dark .t9-stats-table th { background:#111827; color:#cbd5e1; }
        .t9-stats-table td { padding:10px 12px; border-bottom:1px solid rgba(226,232,240,.75); color:#334155; font-weight:750; vertical-align:top; }
        html.dark .t9-stats-table td { border-bottom-color:rgba(51,65,85,.8); color:#e2e8f0; }
        .t9-stats-empty { padding:32px; text-align:center; color:#94a3b8; font-weight:850; }
        .t9-stats-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end; }
        .t9-stats-chart-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; margin-bottom:16px; }
        .t9-stats-chart-card { border:1px solid rgba(148,163,184,.22); border-radius:24px; padding:14px; background:rgba(255,255,255,.82); box-shadow:0 14px 36px rgba(15,23,42,.045); }
        html.dark .t9-stats-chart-card { background:rgba(15,23,42,.78); border-color:rgba(51,65,85,.9); }
        .t9-stats-chart-title { font-size:10px; text-transform:uppercase; letter-spacing:.12em; font-weight:950; color:#64748b; margin-bottom:12px; }
        .t9-stats-bar-row { display:grid; grid-template-columns:minmax(125px,.9fr) minmax(0,2fr) 58px; align-items:center; gap:10px; margin:8px 0; font-size:11px; font-weight:850; color:#334155; }
        html.dark .t9-stats-bar-row { color:#e2e8f0; }
        .t9-stats-bar-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .t9-stats-bar-track { height:10px; border-radius:999px; background:rgba(148,163,184,.20); overflow:hidden; }
        .t9-stats-bar-fill { height:100%; border-radius:999px; background:linear-gradient(90deg, #6cb33f, #2563eb); min-width:4px; }
        .t9-stats-bar-value { text-align:right; color:#64748b; font-weight:950; }
        .t9-stats-subtitle { margin: -6px 0 12px; font-size:12px; color:#64748b; font-weight:800; }
        @media (max-width: 900px) {
            .t9-stats-modal { width:100vw; height:100vh; max-height:100vh; border-radius:0 !important; }
            .t9-stats-head { padding:16px; }
            .t9-stats-filters { grid-template-columns: 1fr 1fr; padding:14px; }
            .t9-stats-kpis { grid-template-columns: 1fr 1fr; }
            .t9-stats-body { padding:14px; }
            .t9-stats-table-wrap { max-height:54vh; }
            .t9-stats-chart-grid { grid-template-columns:1fr; }
            .t9-stats-bar-row { grid-template-columns:minmax(90px,.9fr) minmax(0,2fr) 48px; }
        }





        /* v8.9.8 – Quickbedarf standardmäßig minimiert */
        /* v8.9.6 – InfoBoard Ausbau */
        .t9-infoboard-mini {
            position: relative;
            border: 1px solid rgba(148,163,184,.22);
            border-radius: 18px;
            padding: .72rem 2.25rem .72rem .78rem;
            margin-bottom: .58rem;
            background: rgba(255,255,255,.72);
        }
        .t9-infoboard-mini.info { border-color: rgba(59,130,246,.18); background: rgba(239,246,255,.76); }
        .t9-infoboard-mini.todo { border-color: rgba(245,158,11,.25); background: rgba(255,251,235,.82); }
        .t9-infoboard-mini.appointment { border-color: rgba(108,179,63,.25); background: rgba(240,253,244,.78); }
        .t9-infoboard-mini-head { display:flex; align-items:center; gap:.4rem; font-size:.66rem; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.08em; }
        .t9-infoboard-mini-title { margin-top:.28rem; font-size:.84rem; font-weight:700; color:#1f2937; line-height:1.25; }
        .t9-infoboard-mini-text { margin-top:.22rem; font-size:.74rem; color:#64748b; line-height:1.35; }
        .t9-infoboard-mini button { position:absolute; right:.55rem; top:.55rem; width:1.55rem; height:1.55rem; border-radius:999px; background:white; border:1px solid rgba(148,163,184,.25); color:#6cb33f; display:grid; place-items:center; }
        .t9-infoboard-card {
            display:flex; gap:1rem; align-items:flex-start;
            border:1px solid rgba(148,163,184,.22);
            border-radius:24px;
            background:rgba(255,255,255,.82);
            padding:1rem;
            box-shadow:0 10px 28px rgba(15,23,42,.04);
        }
        .t9-infoboard-card.info { border-left:5px solid #3b82f6; }
        .t9-infoboard-card.todo { border-left:5px solid #f59e0b; }
        .t9-infoboard-card.appointment { border-left:5px solid #6cb33f; }
        .t9-infoboard-icon { width:42px; height:42px; border-radius:16px; background:#f1f5f9; display:grid; place-items:center; color:#6cb33f; flex:0 0 auto; }
        .t9-infoboard-card-top { display:flex; gap:.45rem; flex-wrap:wrap; align-items:center; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#64748b; }
        .t9-infoboard-card-top em { font-style:normal; border-radius:999px; padding:.15rem .45rem; background:#ecfdf5; color:#4d8f2f; }
        .t9-infoboard-card-top small { margin-left:auto; font-size:.68rem; color:#94a3b8; text-transform:none; letter-spacing:0; }
        .t9-infoboard-card h3 { margin:.35rem 0 0; font-size:1rem; font-weight:700; color:#111827; }
        .t9-infoboard-card p { margin:.25rem 0 0; font-size:.88rem; color:#475569; line-height:1.45; }
        .t9-infoboard-card-meta { margin-top:.45rem; font-size:.72rem; color:#94a3b8; font-weight:650; }
        .t9-infoboard-empty { border:1px dashed rgba(148,163,184,.35); border-radius:24px; padding:2rem; text-align:center; color:#94a3b8; font-weight:650; }
        .t9-infoboard-form { border:1px solid rgba(148,163,184,.22); border-radius:24px; background:#f8fafc; padding:1rem; align-self:start; }
        .t9-infoboard-form h3 { margin:0 0 1rem; font-size:1rem; font-weight:700; color:#111827; }
        .t9-infoboard-form label { display:block; margin:.75rem 0 .32rem; font-size:.72rem; font-weight:750; color:#64748b; text-transform:uppercase; letter-spacing:.08em; }
        .t9-infoboard-form input,
        .t9-infoboard-form textarea,
        .t9-infoboard-form select { width:100%; border:1px solid #e2e8f0; background:#fff; border-radius:14px; padding:.68rem .75rem; font-size:.9rem; outline:none; }
        html.dark .t9-infoboard-form { background:#0f172a; border-color:#334155; }
        html.dark .t9-infoboard-card,
        html.dark .t9-infoboard-mini { background:rgba(15,23,42,.74); border-color:rgba(51,65,85,.9); }
        html.dark .t9-infoboard-card h3,
        html.dark .t9-infoboard-mini-title,
        html.dark .t9-infoboard-form h3 { color:#f8fafc; }
        html.dark .t9-infoboard-card p,
        html.dark .t9-infoboard-mini-text { color:#cbd5e1; }
        html.dark .t9-infoboard-form input,
        html.dark .t9-infoboard-form textarea,
        html.dark .t9-infoboard-form select { background:#020617; border-color:#334155; color:#f8fafc; }
        /* v8.9.5 – Ausfahrbares Seitenmenü, Cockpit-Uhr und Tageszeitstrahl */
        @media (min-width: 901px) {
            .t9-shell {
                --t9-rail-expanded: 236px;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) {
                width: var(--t9-rail-width-compact, 64px) !important;
                min-width: var(--t9-rail-width-compact, 64px) !important;
                align-items: stretch !important;
                overflow: hidden !important;
                transition: width .22s ease, min-width .22s ease, box-shadow .22s ease !important;
                z-index: 180 !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within {
                width: var(--t9-rail-expanded) !important;
                min-width: var(--t9-rail-expanded) !important;
                box-shadow: 20px 0 46px rgba(15,23,42,.20) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-logo {
                align-self: flex-start;
                margin-left: 0;
                transition: width .22s ease, border-radius .22s ease;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-logo,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-logo {
                width: 100% !important;
                justify-content: flex-start;
                padding-left: 7px;
                gap: .72rem;
                border-radius: 18px;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-logo::after,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-logo::after {
                content: "Rhein Ruhr";
                font-size: .78rem;
                font-weight: 760;
                letter-spacing: .01em;
                white-space: nowrap;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn {
                width: 48px !important;
                min-width: 48px !important;
                justify-content: flex-start !important;
                gap: .78rem !important;
                padding: 0 14px !important;
                overflow: hidden !important;
                white-space: nowrap !important;
                border-radius: 16px !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-navbtn,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-navbtn {
                width: 100% !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn[data-tip]::after {
                content: attr(data-tip) !important;
                position: static !important;
                transform: none !important;
                inset: auto !important;
                opacity: 0 !important;
                pointer-events: none !important;
                max-width: 0 !important;
                overflow: hidden !important;
                padding: 0 !important;
                margin: 0 !important;
                background: transparent !important;
                box-shadow: none !important;
                border: 0 !important;
                color: rgba(255,255,255,.82) !important;
                font-size: .78rem !important;
                font-weight: 620 !important;
                letter-spacing: .005em !important;
                transition: opacity .16s ease, max-width .22s ease !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-navbtn[data-tip]::after,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-navbtn[data-tip]::after {
                opacity: 1 !important;
                max-width: 160px !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn.active::before {
                left: -12px !important;
            }
        }

        .t9-cockpit-clock {
            min-width: 118px;
            border: 1px solid rgba(226,232,240,.96);
            background: rgba(255,255,255,.86);
            border-radius: 18px;
            padding: .52rem .76rem;
            box-shadow: 0 10px 26px rgba(15,23,42,.045);
            color: #172033;
            display: inline-flex;
            flex-direction: column;
            justify-content: center;
            line-height: 1.05;
        }

        .t9-cockpit-clock span {
            color: #7c8da6;
            font-size: .58rem;
            font-weight: 720;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .t9-cockpit-clock strong {
            margin-top: .24rem;
            color: #172033;
            font-size: .92rem;
            font-weight: 740;
            letter-spacing: -.02em;
        }

        .t9-daytime-timeline {
            border: 1px solid rgba(226,232,240,.96);
            background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(248,250,252,.82));
            border-radius: 24px;
            padding: .82rem 1rem .72rem;
            box-shadow: 0 14px 34px rgba(15,23,42,.045);
        }

        .t9-daytime-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: .65rem;
        }

        .t9-daytime-top strong {
            display: block;
            color: #172033;
            font-size: .88rem;
            font-weight: 720;
            letter-spacing: -.012em;
        }

        .t9-daytime-top span {
            display: block;
            color: #64748b;
            font-size: .70rem;
            font-weight: 540;
            margin-top: .18rem;
        }

        .t9-daytime-state {
            border-radius: 999px;
            border: 1px solid rgba(108,179,63,.20);
            background: rgba(240,253,244,.82);
            color: #3f7a25;
            padding: .38rem .62rem;
            font-size: .68rem;
            font-weight: 720;
            white-space: nowrap;
        }

        .t9-daytime-bar {
            position: relative;
            height: 12px;
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(226,232,240,.85), rgba(241,245,249,.95));
            overflow: visible;
            border: 1px solid rgba(226,232,240,.95);
        }

        .t9-daytime-fill {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            border-radius: 999px;
            background: linear-gradient(90deg, #6cb33f, #93d36e, #38bdf8);
            min-width: 6px;
            box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset;
        }

        .t9-daytime-now {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            display: inline-flex;
            align-items: center;
            flex-direction: column;
            gap: .18rem;
            z-index: 2;
        }

        .t9-daytime-now i {
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: #0f172a;
            border: 3px solid #fff;
            box-shadow: 0 6px 14px rgba(15,23,42,.20);
        }

        .t9-daytime-now em {
            position: absolute;
            top: 18px;
            color: #475569;
            font-size: .62rem;
            font-weight: 720;
            font-style: normal;
            white-space: nowrap;
        }

        .t9-daytime-scale {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: .72rem;
            color: #7c8da6;
            font-size: .64rem;
            font-weight: 620;
        }

        html.dark .t9-cockpit-clock,
        html.dark .t9-daytime-timeline {
            background: rgba(15,23,42,.72) !important;
            border-color: rgba(148,163,184,.18) !important;
        }

        html.dark .t9-cockpit-clock strong,
        html.dark .t9-daytime-top strong { color: #f8fafc !important; }
        html.dark .t9-cockpit-clock span,
        html.dark .t9-daytime-top span,
        html.dark .t9-daytime-scale,
        html.dark .t9-daytime-now em { color: #cbd5e1 !important; }

        @media (max-width: 900px) {
            .t9-cockpit-clock { min-width: 0; padding: .48rem .65rem; }
            .t9-daytime-timeline { padding: .75rem .78rem .68rem; }
            .t9-daytime-top { flex-direction: column; gap: .45rem; }
        }

    

        /* v8.9.10 – Feedback & Entwicklungscenter */
        .t9-feedback-float {
            position: fixed;
            right: 24px;
            bottom: 96px;
            z-index: 120;
            width: 46px;
            height: 46px;
            border-radius: 18px;
            border: 1px solid rgba(108,179,63,.35);
            background: rgba(255,255,255,.92);
            color: #477b2b;
            display: grid;
            place-items: center;
            box-shadow: 0 18px 45px rgba(15,23,42,.16);
            cursor: pointer;
            transition: transform .16s ease, box-shadow .16s ease;
        }
        .t9-feedback-float:hover { transform: translateY(-2px); box-shadow: 0 24px 55px rgba(15,23,42,.20); }
        html.dark .t9-feedback-float { background: rgba(15,23,42,.94); color: #9be875; border-color: rgba(155,232,117,.3); }
        .t9-feedback-grid { display:grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
        .t9-feedback-card { border:1px solid rgba(226,232,240,.9); background:rgba(255,255,255,.88); border-radius:22px; padding:16px; box-shadow:0 12px 34px rgba(15,23,42,.05); }
        html.dark .t9-feedback-card { background:rgba(15,23,42,.72); border-color:rgba(51,65,85,.95); }
        .t9-feedback-card h3 { font-size:14px; font-weight:700; letter-spacing:-.01em; color:#0f172a; margin:0 0 6px; }

        .t9-feedback-feature-list { display:flex; flex-direction:column; gap:10px; }
        .t9-feedback-feature-row {
            display:grid;
            grid-template-columns: minmax(240px, 1.25fr) 160px minmax(170px, .8fr) minmax(240px, 1fr) 160px;
            gap:12px;
            align-items:center;
            border:1px solid rgba(226,232,240,.95);
            background:rgba(255,255,255,.90);
            border-radius:18px;
            padding:12px 14px;
            box-shadow:0 8px 24px rgba(15,23,42,.035);
        }
        html.dark .t9-feedback-feature-row { background:rgba(15,23,42,.70); border-color:rgba(51,65,85,.95); }
        .t9-feedback-feature-title { min-width:0; }
        .t9-feedback-feature-title h3 { margin:3px 0 0; font-size:14px; font-weight:750; letter-spacing:-.01em; color:#0f172a; }
        html.dark .t9-feedback-feature-title h3 { color:#f8fafc; }
        .t9-feedback-feature-row .t9-feedback-meta { font-size:10px; gap:7px; }
        .t9-feedback-feature-row .t9-feedback-stars { margin-top:0; justify-content:flex-start; }
        .t9-feedback-feature-row .t9-feedback-stars button { width:26px; height:26px; border-radius:9px; }
        .t9-feedback-feature-row select,
        .t9-feedback-feature-row textarea { width:100%; min-width:0; }
        .t9-feedback-feature-row textarea { resize:vertical; min-height:38px; }
        .t9-feedback-save-compact { justify-content:center; width:100%; white-space:nowrap; }
        @media (max-width: 1280px) {
            .t9-feedback-feature-row { grid-template-columns: minmax(220px, 1fr) 150px minmax(160px, .7fr); }
            .t9-feedback-feature-row textarea,
            .t9-feedback-feature-row .t9-feedback-save-compact { grid-column: 1 / -1; }
        }
        @media (max-width: 760px) {
            .t9-feedback-feature-row { grid-template-columns: 1fr; align-items:stretch; }
            .t9-feedback-feature-row .t9-feedback-stars { justify-content:flex-start; }
        }
        html.dark .t9-feedback-card h3 { color:#f8fafc; }
        .t9-feedback-meta { font-size:11px; color:#64748b; display:flex; gap:8px; flex-wrap:wrap; }
        .t9-feedback-stars { display:flex; gap:4px; margin-top:10px; }
        .t9-feedback-stars button { width:28px; height:28px; border:0; border-radius:10px; background:#f1f5f9; color:#94a3b8; cursor:pointer; }
        .t9-feedback-stars button.active { background:#ecfccb; color:#477b2b; }
        html.dark .t9-feedback-stars button { background:#1e293b; color:#64748b; }
        html.dark .t9-feedback-stars button.active { background:#365314; color:#d9f99d; }
        .t9-feedback-status { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:5px 9px; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; background:#f1f5f9; color:#475569; }
        .t9-feedback-status.in_progress { background:#dbeafe; color:#1d4ed8; }
        .t9-feedback-status.planned { background:#ecfccb; color:#477b2b; }
        .t9-feedback-status.done { background:#dcfce7; color:#15803d; }
        .t9-feedback-status.rejected { background:#fee2e2; color:#b91c1c; }
        .t9-feedback-status.paused { background:#fef3c7; color:#b45309; }
        .t9-feedback-progress { height:8px; border-radius:99px; background:#e2e8f0; overflow:hidden; margin-top:10px; }
        .t9-feedback-progress span { display:block; height:100%; background:linear-gradient(90deg,#6cb33f,#2563eb); border-radius:99px; }
        @media (max-width: 900px) {
            .t9-feedback-grid { grid-template-columns: 1fr; }
            .t9-feedback-float { right: 18px; bottom: 86px; }
        }

    

        .t9-critical-kpi {
            border: 1px solid rgba(226,232,240,.95);
            background: rgba(255,255,255,.86);
            border-radius: 18px;
            padding: 12px 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }
        .t9-critical-kpi span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
        .t9-critical-kpi strong { font-size: 24px; line-height: 1; color: #0f172a; }
        .t9-critical-kpi.danger { border-color: rgba(248,113,113,.45); background: rgba(254,242,242,.75); }
        .t9-critical-kpi.partial { border-color: rgba(251,146,60,.45); background: linear-gradient(90deg, rgba(108,179,63,.12), rgba(255,237,213,.72)); }
        .t9-critical-kpi.warning { border-color: rgba(251,191,36,.42); background: rgba(255,251,235,.72); }
        .t9-critical-card {
            border: 1px solid rgba(226,232,240,.95);
            background: rgba(255,255,255,.92);
            border-radius: 22px;
            padding: 16px;
            box-shadow: 0 12px 32px rgba(15,23,42,.045);
        }
        .t9-critical-card.danger { border-color: rgba(248,113,113,.5); background: rgba(254,242,242,.72); }
        .t9-critical-card.partial { border-color: rgba(251,146,60,.55); background: linear-gradient(90deg, rgba(108,179,63,.12), rgba(255,247,237,.94) 58%, rgba(251,146,60,.14)); }
        .t9-critical-card.warning { border-color: rgba(251,191,36,.42); background: rgba(255,251,235,.72); }
        .t9-critical-card.info { border-color: rgba(147,197,253,.38); background: rgba(239,246,255,.62); }
        .t9-critical-icon {
            width: 34px; height: 34px; border-radius: 14px;
            display: grid; place-items: center; flex: 0 0 auto;
            background: rgba(255,255,255,.82); color: #64748b;
            border: 1px solid rgba(226,232,240,.95);
        }
        .t9-critical-card.danger .t9-critical-icon { color: #dc2626; }
        .t9-critical-card.partial .t9-critical-icon { color: #d97706; }
        .t9-critical-card.warning .t9-critical-icon { color: #ca8a04; }
        .t9-critical-badge {
            white-space: nowrap;
            font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
            padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.74); color: #64748b;
            border: 1px solid rgba(226,232,240,.95);
        }
        html.dark .t9-critical-kpi,
        html.dark .t9-critical-card { background: rgba(15,23,42,.78); border-color: rgba(51,65,85,.95); }
        html.dark .t9-critical-kpi strong,
        html.dark .t9-critical-card h3 { color: #f8fafc; }



        /* v8.9.27 – linke Navigation fährt bei Mouseover mit Text aus */
        @media (min-width: 901px) {
            .t9-shell {
                grid-template-columns: 82px minmax(0, 1fr);
            }
            .t9-rail {
                width: 82px;
                min-width: 82px;
                transition: width .22s ease, min-width .22s ease, box-shadow .22s ease;
                overflow: hidden;
                align-items: flex-start;
            }
            .t9-rail:hover {
                width: 252px;
                min-width: 252px;
                box-shadow: 22px 0 70px rgba(15,23,42,.24);
            }
            .t9-rail .t9-logo {
                margin-left: 0;
                flex: 0 0 auto;
            }
            .t9-navbtn {
                display: inline-flex !important;
                justify-content: flex-start !important;
                align-items: center !important;
                gap: 14px !important;
                width: 48px;
                min-width: 48px;
                padding: 0 14px !important;
                white-space: nowrap;
            }
            .t9-rail:hover .t9-navbtn {
                width: 226px;
                min-width: 226px;
            }
            .t9-navbtn::after {
                content: attr(data-tip);
                opacity: 0;
                transform: translateX(-6px);
                transition: opacity .16s ease, transform .16s ease;
                font-size: 13px;
                font-weight: 800;
                letter-spacing: .01em;
                color: rgba(255,255,255,.92);
                pointer-events: none;
            }
            .t9-rail:hover .t9-navbtn::after {
                opacity: 1;
                transform: translateX(0);
            }
            .t9-notify-badge {
                position: absolute;
                right: 6px;
                top: 6px;
            }
            .t9-rail:hover .t9-notify-badge {
                right: 10px;
            }
        }

        /* v8.9.27 – Heute-kritisch-Karten sind direkt anspringbar */
        .t9-critical-card.is-actionable {
            cursor: pointer;
            transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
        }
        .t9-critical-card.is-actionable:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 42px rgba(15,23,42,.09);
            border-color: rgba(108,179,63,.50);
        }
        .t9-critical-action {
            margin-top: 12px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(108,179,63,.35);
            background: rgba(108,179,63,.10);
            color: #315f1c;
            border-radius: 999px;
            padding: 7px 10px;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: .02em;
        }


        .t9-pulse-focus {
            outline: 3px solid rgba(108,179,63,.55) !important;
            box-shadow: 0 0 0 8px rgba(108,179,63,.16) !important;
        }


        /* v8.9.27 – echte ausfahrende linke Menüleiste */
        @media (min-width: 901px) {
            .t9-shell {
                grid-template-columns: 82px minmax(0, 1fr) !important;
                overflow: hidden !important;
            }

            .t9-rail {
                width: 82px !important;
                min-width: 82px !important;
                max-width: none !important;
                align-items: stretch !important;
                overflow: visible !important;
                transition: width .24s ease, box-shadow .24s ease, border-radius .24s ease !important;
                position: relative !important;
                z-index: 250 !important;
            }

            .t9-rail:hover,
            .t9-rail:focus-within {
                width: 278px !important;
                min-width: 278px !important;
                box-shadow: 28px 0 70px rgba(15,23,42,.26) !important;
            }

            .t9-rail .t9-logo {
                width: 48px !important;
                min-width: 48px !important;
                align-self: flex-start !important;
                margin-left: 0 !important;
            }

            .t9-rail:hover .t9-logo,
            .t9-rail:focus-within .t9-logo {
                width: calc(100% - 8px) !important;
                justify-content: flex-start !important;
            }

            .t9-rail .t9-navbtn {
                width: 48px !important;
                min-width: 48px !important;
                max-width: none !important;
                height: 48px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                white-space: nowrap !important;
                text-align: left !important;
            }

            .t9-rail:hover .t9-navbtn,
            .t9-rail:focus-within .t9-navbtn {
                width: 252px !important;
                min-width: 252px !important;
                justify-content: flex-start !important;
                gap: 14px !important;
                padding: 0 16px !important;
                overflow: visible !important;
                border-radius: 18px !important;
            }

            .t9-rail .t9-navbtn i {
                width: 20px !important;
                min-width: 20px !important;
                text-align: center !important;
                font-size: 18px !important;
                flex: 0 0 20px !important;
            }

            .t9-rail .t9-navbtn::after {
                content: attr(data-tip) !important;
                display: inline-block !important;
                opacity: 0 !important;
                width: 0 !important;
                max-width: 0 !important;
                overflow: hidden !important;
                transform: translateX(-8px) !important;
                transition: opacity .18s ease, transform .18s ease, width .18s ease, max-width .18s ease !important;
                color: rgba(255,255,255,.94) !important;
                font-size: 13px !important;
                line-height: 1.1 !important;
                font-weight: 850 !important;
                letter-spacing: .01em !important;
                pointer-events: none !important;
            }

            .t9-rail:hover .t9-navbtn::after,
            .t9-rail:focus-within .t9-navbtn::after {
                opacity: 1 !important;
                width: auto !important;
                max-width: 190px !important;
                transform: translateX(0) !important;
            }

            .t9-rail .t9-navbtn.active::before {
                left: -12px !important;
            }

            .t9-rail:hover .t9-navbtn.active::before,
            .t9-rail:focus-within .t9-navbtn.active::before {
                left: -12px !important;
            }

            .t9-rail .t9-notify-badge {
                right: -2px !important;
                top: 4px !important;
            }

            .t9-rail:hover .t9-notify-badge,
            .t9-rail:focus-within .t9-notify-badge {
                right: 12px !important;
                top: 8px !important;
            }

            /* Tooltips für die Menüleiste deaktivieren, weil die Leiste selbst Text zeigt */
            .t9-rail .t9-navbtn[aria-label]:hover::before {
                display: none !important;
            }
        }



        /* v8.9.27 – FINALER FIX: Menütexte innerhalb der grünen Leiste, keine Tooltip-Pills */
        @media (min-width: 901px) {
            .t9-rail:not(.t9-mobile-bottom-nav) {
                overflow: hidden !important;
                align-items: stretch !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within {
                width: 278px !important;
                min-width: 278px !important;
                overflow: hidden !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn {
                position: relative !important;
                overflow: hidden !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 48px !important;
                min-width: 48px !important;
                max-width: 48px !important;
                height: 48px !important;
                padding: 0 !important;
                gap: 0 !important;
                color: rgba(255,255,255,.86) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-navbtn,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-navbtn {
                justify-content: flex-start !important;
                width: calc(100% - 10px) !important;
                min-width: calc(100% - 10px) !important;
                max-width: calc(100% - 10px) !important;
                padding: 0 16px !important;
                gap: 14px !important;
                color: #ffffff !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn i {
                flex: 0 0 22px !important;
                width: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                text-align: center !important;
                color: currentColor !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn[data-tip]::after {
                content: attr(data-tip) !important;
                position: static !important;
                left: auto !important;
                top: auto !important;
                right: auto !important;
                bottom: auto !important;
                inset: auto !important;
                transform: none !important;
                display: inline-block !important;
                background: transparent !important;
                border: 0 !important;
                box-shadow: none !important;
                padding: 0 !important;
                margin: 0 !important;
                border-radius: 0 !important;
                color: #ffffff !important;
                font-size: 13px !important;
                line-height: 1.15 !important;
                font-weight: 800 !important;
                letter-spacing: .01em !important;
                white-space: nowrap !important;
                pointer-events: none !important;
                opacity: 0 !important;
                width: 0 !important;
                min-width: 0 !important;
                max-width: 0 !important;
                overflow: hidden !important;
                transition: opacity .16s ease, max-width .18s ease !important;
                z-index: auto !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-navbtn[data-tip]::after,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-navbtn[data-tip]::after {
                opacity: 1 !important;
                width: auto !important;
                max-width: 205px !important;
                overflow: hidden !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn[data-tip]:hover::after {
                transform: none !important;
                background: transparent !important;
                color: #ffffff !important;
                box-shadow: none !important;
                border: 0 !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn.active {
                background: rgba(255,255,255,.18) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn:hover {
                background: rgba(255,255,255,.15) !important;
            }
        }



        /* v8.9.27 – HARDFIX: Menütexte sind echte Spans, keine Tooltip-/Pseudo-Elemente */
        @media (min-width: 901px) {
            .t9-rail:not(.t9-mobile-bottom-nav) {
                width: 82px !important;
                min-width: 82px !important;
                overflow: hidden !important;
                align-items: stretch !important;
                transition: width .24s ease, min-width .24s ease, box-shadow .24s ease !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within {
                width: 278px !important;
                min-width: 278px !important;
                overflow: hidden !important;
                box-shadow: 26px 0 70px rgba(15,23,42,.22) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn {
                position: relative !important;
                width: 48px !important;
                min-width: 48px !important;
                max-width: 48px !important;
                height: 48px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                color: rgba(255,255,255,.88) !important;
                text-align: left !important;
                white-space: nowrap !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-navbtn,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-navbtn {
                width: calc(100% - 14px) !important;
                min-width: calc(100% - 14px) !important;
                max-width: calc(100% - 14px) !important;
                justify-content: flex-start !important;
                gap: 14px !important;
                padding: 0 16px !important;
                color: #ffffff !important;
                border-radius: 18px !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn i {
                flex: 0 0 22px !important;
                width: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                text-align: center !important;
                color: currentColor !important;
                font-size: 18px !important;
            }

            /* WICHTIG: alte Tooltip-/Pseudo-Texte komplett abschalten */
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn::after,
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn:hover::after,
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn[data-tip]::after,
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn[data-tip]:hover::after {
                content: none !important;
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
                background: transparent !important;
                box-shadow: none !important;
                border: 0 !important;
                width: 0 !important;
                height: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                transform: none !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-nav-label {
                display: inline-block !important;
                color: #ffffff !important;
                font-size: 13px !important;
                line-height: 1.15 !important;
                font-weight: 850 !important;
                letter-spacing: .01em !important;
                opacity: 0 !important;
                max-width: 0 !important;
                overflow: hidden !important;
                white-space: nowrap !important;
                transition: opacity .18s ease, max-width .2s ease !important;
                pointer-events: none !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-nav-label,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-nav-label {
                opacity: 1 !important;
                max-width: 205px !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn.active {
                background: rgba(255,255,255,.18) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn:hover {
                background: rgba(255,255,255,.14) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-notify-badge {
                right: -2px !important;
                top: 4px !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-notify-badge,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-notify-badge {
                right: 10px !important;
                top: 7px !important;
            }
        }



        /* v8.9.27 – MENÜ FINAL: eingefahren nur Icons, ausgefahren Icon + weißer Text, keine schwarzen Tooltip-Pills */
        @media (min-width: 901px) {
            .t9-shell {
                grid-template-columns: 82px minmax(0, 1fr) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) {
                width: 82px !important;
                min-width: 82px !important;
                max-width: 82px !important;
                overflow: hidden !important;
                align-items: center !important;
                transition: width .24s ease, min-width .24s ease, max-width .24s ease, box-shadow .24s ease !important;
                z-index: 300 !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within {
                width: 278px !important;
                min-width: 278px !important;
                max-width: 278px !important;
                align-items: stretch !important;
                box-shadow: 26px 0 70px rgba(15,23,42,.22) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn {
                width: 48px !important;
                min-width: 48px !important;
                max-width: 48px !important;
                height: 48px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                white-space: nowrap !important;
                color: rgba(255,255,255,.88) !important;
                text-align: left !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-navbtn,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-navbtn {
                width: calc(100% - 18px) !important;
                min-width: calc(100% - 18px) !important;
                max-width: calc(100% - 18px) !important;
                justify-content: flex-start !important;
                gap: 14px !important;
                padding: 0 16px !important;
                color: #ffffff !important;
                border-radius: 18px !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn i {
                display: inline-block !important;
                flex: 0 0 22px !important;
                width: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                text-align: center !important;
                color: currentColor !important;
                font-size: 18px !important;
                line-height: 1 !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            /* Alte Tooltip-Mechaniken radikal abschalten */
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn::before,
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn::after,
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn:hover::before,
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn:hover::after,
            .t9-rail:not(.t9-mobile-bottom-nav) [data-tip]::before,
            .t9-rail:not(.t9-mobile-bottom-nav) [data-tip]::after {
                content: none !important;
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
                width: 0 !important;
                height: 0 !important;
                max-width: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                border: 0 !important;
                box-shadow: none !important;
                background: transparent !important;
                transform: none !important;
                pointer-events: none !important;
            }

            /* Echte Texte: eingefahren vollständig unsichtbar */
            .t9-rail:not(.t9-mobile-bottom-nav) .t9-nav-label {
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
                width: 0 !important;
                max-width: 0 !important;
                overflow: hidden !important;
                color: #ffffff !important;
                white-space: nowrap !important;
                pointer-events: none !important;
            }

            /* Ausgefahren: echte Texte sichtbar innerhalb der grünen Leiste */
            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-nav-label,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-nav-label {
                display: inline-block !important;
                opacity: 1 !important;
                visibility: visible !important;
                width: auto !important;
                max-width: 205px !important;
                overflow: hidden !important;
                color: #ffffff !important;
                font-size: 13px !important;
                line-height: 1.15 !important;
                font-weight: 850 !important;
                letter-spacing: .01em !important;
                text-overflow: ellipsis !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn.active {
                background: rgba(255,255,255,.18) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-navbtn:hover {
                background: rgba(255,255,255,.14) !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav) .t9-notify-badge {
                right: -2px !important;
                top: 4px !important;
            }

            .t9-rail:not(.t9-mobile-bottom-nav):hover .t9-notify-badge,
            .t9-rail:not(.t9-mobile-bottom-nav):focus-within .t9-notify-badge {
                right: 10px !important;
                top: 7px !important;
            }
        }



        /* v8.9.27 – Desktop-Hardfix: eingefahren wirklich NUR Icons */
        @media (min-width: 901px) {
            nav.t9-rail,
            .t9-rail.t9-mobile-bottom-nav {
                width: 82px !important;
                min-width: 82px !important;
                max-width: 82px !important;
                overflow: hidden !important;
                align-items: center !important;
                transition: width .24s ease, min-width .24s ease, max-width .24s ease, box-shadow .24s ease !important;
            }

            nav.t9-rail:hover,
            nav.t9-rail:focus-within,
            .t9-rail.t9-mobile-bottom-nav:hover,
            .t9-rail.t9-mobile-bottom-nav:focus-within {
                width: 278px !important;
                min-width: 278px !important;
                max-width: 278px !important;
                overflow: hidden !important;
                align-items: stretch !important;
            }

            nav.t9-rail .t9-navbtn,
            .t9-rail.t9-mobile-bottom-nav .t9-navbtn {
                width: 48px !important;
                min-width: 48px !important;
                max-width: 48px !important;
                height: 48px !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                white-space: nowrap !important;
            }

            nav.t9-rail:hover .t9-navbtn,
            nav.t9-rail:focus-within .t9-navbtn,
            .t9-rail.t9-mobile-bottom-nav:hover .t9-navbtn,
            .t9-rail.t9-mobile-bottom-nav:focus-within .t9-navbtn {
                width: calc(100% - 18px) !important;
                min-width: calc(100% - 18px) !important;
                max-width: calc(100% - 18px) !important;
                justify-content: flex-start !important;
                gap: 14px !important;
                padding: 0 16px !important;
            }

            nav.t9-rail .t9-navbtn i,
            .t9-rail.t9-mobile-bottom-nav .t9-navbtn i {
                display: inline-block !important;
                flex: 0 0 22px !important;
                width: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                opacity: 1 !important;
                visibility: visible !important;
                color: currentColor !important;
            }

            /* DER ENTSCHEIDENDE FIX: Labels im geschlossenen Zustand wirklich komplett entfernen */
            nav.t9-rail .t9-nav-label,
            .t9-rail.t9-mobile-bottom-nav .t9-nav-label {
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
                width: 0 !important;
                min-width: 0 !important;
                max-width: 0 !important;
                height: 0 !important;
                overflow: hidden !important;
                margin: 0 !important;
                padding: 0 !important;
                pointer-events: none !important;
            }

            nav.t9-rail:hover .t9-nav-label,
            nav.t9-rail:focus-within .t9-nav-label,
            .t9-rail.t9-mobile-bottom-nav:hover .t9-nav-label,
            .t9-rail.t9-mobile-bottom-nav:focus-within .t9-nav-label {
                display: inline-block !important;
                opacity: 1 !important;
                visibility: visible !important;
                width: auto !important;
                height: auto !important;
                max-width: 205px !important;
                color: #ffffff !important;
                font-size: 13px !important;
                line-height: 1.15 !important;
                font-weight: 850 !important;
                letter-spacing: .01em !important;
                white-space: nowrap !important;
                text-overflow: ellipsis !important;
            }

            nav.t9-rail .t9-navbtn::before,
            nav.t9-rail .t9-navbtn::after,
            .t9-rail.t9-mobile-bottom-nav .t9-navbtn::before,
            .t9-rail.t9-mobile-bottom-nav .t9-navbtn::after {
                content: none !important;
                display: none !important;
            }
        }



        /* v8.9.40-light – Typografie-Feinschliff linke Menüleiste */
        @media (min-width: 901px) {
            nav.t9-rail:hover .t9-nav-label,
            nav.t9-rail:focus-within .t9-nav-label,
            .t9-rail.t9-mobile-bottom-nav:hover .t9-nav-label,
            .t9-rail.t9-mobile-bottom-nav:focus-within .t9-nav-label {
                font-weight: 560 !important;
                font-size: 13.5px !important;
                letter-spacing: .005em !important;
                line-height: 1.2 !important;
                color: rgba(255,255,255,.92) !important;
                text-shadow: none !important;
            }

            nav.t9-rail .t9-navbtn,
            .t9-rail.t9-mobile-bottom-nav .t9-navbtn {
                font-weight: 560 !important;
            }

            nav.t9-rail:hover .t9-navbtn,
            nav.t9-rail:focus-within .t9-navbtn,
            .t9-rail.t9-mobile-bottom-nav:hover .t9-navbtn,
            .t9-rail.t9-mobile-bottom-nav:focus-within .t9-navbtn {
                gap: 13px !important;
            }

            nav.t9-rail .t9-navbtn i,
            .t9-rail.t9-mobile-bottom-nav .t9-navbtn i {
                opacity: .92 !important;
            }

            nav.t9-rail .t9-navbtn.active,
            .t9-rail.t9-mobile-bottom-nav .t9-navbtn.active {
                background: rgba(255,255,255,.16) !important;
            }

            nav.t9-rail:hover .t9-navbtn:hover,
            nav.t9-rail:focus-within .t9-navbtn:hover,
            .t9-rail.t9-mobile-bottom-nav:hover .t9-navbtn:hover,
            .t9-rail.t9-mobile-bottom-nav:focus-within .t9-navbtn:hover {
                background: rgba(255,255,255,.12) !important;
            }
        }



        /* v8.9.40-light – rechte Seitenleiste mit 3 festen Boxen */
        .t9-sidebar {
            overflow: hidden !important;
            display: grid !important;
            grid-template-rows: 180px minmax(220px, 1fr) minmax(220px, 1fr);
            gap: 14px !important;
            min-height: 0 !important;
        }

        .t9-sidebar-card {
            min-height: 0 !important;
            overflow: hidden !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .t9-side-scroll {
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 4px;
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .t9-side-scroll::-webkit-scrollbar {
            width: 7px;
        }

        .t9-side-scroll::-webkit-scrollbar-thumb {
            background: rgba(148,163,184,.38);
            border-radius: 999px;
        }

        .t9-side-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        /* Quickbedarf wieder dauerhaft geöffnet */
        .t9-quickbedarf-fixed,
        .t9-quickbedarf-collapsible {
            max-height: none !important;
            overflow: hidden !important;
        }

        .t9-quickbedarf-fixed .t9-side-title,
        .t9-quickbedarf-collapsible .t9-side-title {
            margin-bottom: 12px !important;
        }

        .t9-quickbedarf-fixed .t9-quick,
        .t9-quickbedarf-collapsible .t9-quick {
            max-height: none !important;
            opacity: 1 !important;
            overflow: visible !important;
            transform: none !important;
            margin-top: 0 !important;
            pointer-events: auto !important;
        }

        .t9-quickbedarf-hint {
            display: none !important;
        }

        .t9-critical-sidebar-fixed .t9-side-title {
            color: #334155;
        }

        .t9-critical-mini {
            width: 100%;
            text-align: left;
            border-radius: 18px;
            border: 1px solid rgba(148,163,184,.22);
            background: rgba(255,255,255,.78);
            padding: 11px 12px;
            transition: transform .14s ease, border-color .14s ease, background .14s ease;
        }

        .t9-critical-mini:hover {
            transform: translateY(-1px);
            border-color: rgba(108,179,63,.38);
            background: rgba(255,255,255,.94);
        }

        .t9-critical-mini-top {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            align-items: center;
            font-size: 9px;
            font-weight: 850;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: #64748b;
            margin-bottom: 6px;
        }

        .t9-critical-mini strong {
            display: block;
            color: #0f172a;
            font-size: 12px;
            line-height: 1.25;
            font-weight: 850;
        }

        .t9-critical-mini p {
            margin: 5px 0 0;
            color: #64748b;
            font-size: 11px;
            line-height: 1.35;
            font-weight: 650;
        }

        .t9-critical-mini.danger {
            border-color: rgba(220,38,38,.28);
            background: rgba(254,242,242,.88);
        }

        .t9-critical-mini.warning {
            border-color: rgba(245,158,11,.32);
            background: rgba(255,251,235,.92);
        }

        .t9-critical-mini.partial {
            border-color: rgba(245,158,11,.36);
            background: linear-gradient(90deg, rgba(108,179,63,.12), rgba(255,237,213,.92));
        }

        .t9-critical-mini.info {
            border-color: rgba(37,99,235,.22);
            background: rgba(239,246,255,.86);
        }

        @media (max-width: 1024px) {
            .t9-sidebar {
                display: flex !important;
                overflow: visible !important;
            }
            .t9-sidebar-card {
                max-height: none !important;
            }
            .t9-side-scroll {
                max-height: 260px;
            }
        }



        /* v8.9.40-light – Feinschliff rechte Seitenleiste */
        .t9-sidebar {
            grid-template-rows: 255px minmax(230px, 1fr) minmax(230px, 1fr) !important;
        }

        .t9-quickbedarf-fixed {
            height: 255px !important;
        }

        .t9-quickbedarf-fixed .t9-quick {
            min-height: 0 !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            padding-right: 4px !important;
        }

        .t9-quickbedarf-fixed .t9-quick::-webkit-scrollbar {
            width: 7px;
        }

        .t9-quickbedarf-fixed .t9-quick::-webkit-scrollbar-thumb {
            background: rgba(148,163,184,.34);
            border-radius: 999px;
        }

        .t9-infoboard-fixed .t9-side-scroll,
        .t9-critical-sidebar-fixed .t9-side-scroll {
            flex: 1 1 auto !important;
        }

        .t9-infoboard-fixed > .t9-btn {
            margin-top: auto !important;
        }

        .t9-infoboard-fixed {
            justify-content: flex-start !important;
        }

        .t9-critical-sidebar-fixed {
            justify-content: flex-start !important;
        }

        @media (max-width: 1024px) {
            .t9-sidebar {
                grid-template-rows: none !important;
            }
            .t9-quickbedarf-fixed {
                height: auto !important;
            }
        }



        /* v8.9.40-light – Tagesstart fachlich aktualisiert */
        .t9-start-card {
            width: min(1320px, calc(100vw - 2rem)) !important;
        }

        .t9-start-inner {
            grid-template-columns: 250px minmax(0, 1fr) !important;
        }

        .t9-start-dashboard-row-six {
            grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        }

        .t9-start-mini-card.partial {
            border-color: rgba(245,158,11,.34);
            background: linear-gradient(90deg, rgba(240,253,244,.90), rgba(255,237,213,.88));
        }

        .t9-briefing-table th,
        .t9-briefing-table td {
            white-space: nowrap;
        }

        .t9-status-pill.partial {
            color: #9a3412;
            border-color: rgba(245,158,11,.32);
            background: linear-gradient(90deg, rgba(240,253,244,.88), rgba(255,237,213,.92));
        }

        .t9-critical-briefing-list {
            max-height: 285px !important;
        }

        .t9-briefing-item.critical {
            border-left: 4px solid rgba(245,158,11,.55);
        }

        .t9-briefing-item.critical.danger {
            border-color: rgba(220,38,38,.32);
            border-left-color: #dc2626;
            background: rgba(254,242,242,.82);
        }

        .t9-briefing-item.critical.partial {
            border-color: rgba(245,158,11,.32);
            border-left-color: #f59e0b;
            background: linear-gradient(90deg, rgba(240,253,244,.72), rgba(255,247,237,.90));
        }

        .t9-briefing-item.critical.warn {
            border-color: rgba(245,158,11,.28);
            border-left-color: #f59e0b;
            background: rgba(255,251,235,.82);
        }

        .t9-briefing-item-text strong {
            color: #1e293b;
            font-weight: 820;
        }

        @media (max-width: 1180px) {
            .t9-start-dashboard-row-six {
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            }
            .t9-briefing-grid {
                grid-template-columns: 1fr !important;
            }
        }



        /* v8.9.40-light – Cordi Update-Bote */
        .t9-cordi-message-card{width:min(560px,calc(100vw - 2rem));border-radius:30px;background:rgba(255,255,255,.96);border:1px solid rgba(226,232,240,.95);box-shadow:0 34px 95px rgba(15,23,42,.32);overflow:hidden}
        .t9-cordi-message-head{padding:18px 20px;display:grid;grid-template-columns:54px minmax(0,1fr) 40px;gap:14px;align-items:center;border-bottom:1px solid rgba(226,232,240,.84);background:linear-gradient(135deg,rgba(240,253,244,.94),rgba(255,255,255,.98))}
        .t9-cordi-avatar,.t9-cordi-admin-icon{width:54px;height:54px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(108,179,63,.20),rgba(255,255,255,.84));border:1px solid rgba(108,179,63,.22);font-size:28px;box-shadow:0 16px 38px rgba(108,179,63,.12)}
        .t9-cordi-message-head h2,.t9-cordi-admin-head h2{margin:0;color:#0f172a;font-size:22px;font-weight:860;letter-spacing:-.035em}
        .t9-cordi-message-head p,.t9-cordi-admin-head p{margin:2px 0 0;color:#64748b;font-size:13px;font-weight:560}
        .t9-cordi-chat-area{padding:20px;background:linear-gradient(180deg,rgba(248,250,252,.82),rgba(255,255,255,.96))}
        .t9-cordi-bubble{max-width:94%;border-radius:24px 24px 24px 8px;padding:16px 17px;background:linear-gradient(135deg,rgba(108,179,63,.92),rgba(76,145,42,.96));color:white;box-shadow:0 18px 44px rgba(76,145,42,.22)}
        .t9-cordi-bubble-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:11px;font-weight:780;opacity:.9}
        .t9-cordi-bubble-meta em{font-style:normal;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:3px 8px}
        .t9-cordi-bubble p{margin:0 0 10px;font-size:14px;line-height:1.45;font-weight:520}.t9-cordi-bubble p:last-child{margin-bottom:0}
        .t9-cordi-message-actions{padding:16px 20px;border-top:1px solid rgba(226,232,240,.84);display:flex;justify-content:flex-end;gap:10px;background:white}
        .t9-cordi-read-btn,.t9-cordi-save-btn,.t9-cordi-publish-btn{border:0;border-radius:15px;padding:11px 16px;font-size:13px;font-weight:780;display:inline-flex;align-items:center;gap:8px;color:white;background:#6cb33f;box-shadow:0 14px 30px rgba(108,179,63,.24)}
        .t9-cordi-publish-btn{background:#2563eb;box-shadow:0 14px 30px rgba(37,99,235,.20)}
        .t9-cordi-admin-card{width:min(1180px,calc(100vw - 2rem));max-height:92vh;border-radius:32px;background:#f8fafc;border:1px solid rgba(226,232,240,.95);box-shadow:0 34px 95px rgba(15,23,42,.32);overflow:hidden;display:flex;flex-direction:column}
        .t9-cordi-admin-head{padding:18px 20px;background:white;border-bottom:1px solid rgba(226,232,240,.92);display:flex;align-items:center;justify-content:space-between;gap:16px}
        .t9-cordi-admin-body{min-height:0;overflow:auto;padding:18px;display:grid;grid-template-columns:minmax(360px,.86fr) minmax(0,1.14fr);gap:18px}
        .t9-cordi-editor,.t9-cordi-list{background:white;border:1px solid rgba(226,232,240,.92);border-radius:26px;padding:16px;box-shadow:0 14px 36px rgba(15,23,42,.04)}
        .t9-cordi-list{max-height:68vh;overflow:auto;display:flex;flex-direction:column;gap:10px}.t9-cordi-editor-title{color:#0f172a;font-weight:850;letter-spacing:-.02em;margin-bottom:12px;font-size:16px}
        .t9-cordi-field label{display:block;color:#64748b;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.10em;margin-bottom:6px}
        .t9-cordi-field input,.t9-cordi-field select,.t9-cordi-field textarea{width:100%;border-radius:16px;border:1px solid rgba(203,213,225,.86);background:#f8fafc;padding:11px 12px;color:#0f172a;font-size:13px;font-weight:620;outline:none}
        .t9-cordi-field textarea{min-height:130px;resize:vertical;line-height:1.45}.t9-cordi-field input:focus,.t9-cordi-field select:focus,.t9-cordi-field textarea:focus{border-color:rgba(108,179,63,.62);box-shadow:0 0 0 4px rgba(108,179,63,.10)}
        .t9-cordi-editor-actions{margin-top:14px;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
        .t9-cordi-update-row{border:1px solid rgba(226,232,240,.92);background:#f8fafc;border-radius:20px;padding:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.t9-cordi-update-row.published{border-color:rgba(108,179,63,.35);background:rgba(240,253,244,.74)}
        .t9-cordi-row-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.t9-cordi-row-top strong{color:#0f172a;font-size:13px;font-weight:850}.t9-cordi-row-top span,.t9-cordi-row-top em{font-style:normal;border-radius:999px;padding:3px 8px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#315f1c;background:rgba(108,179,63,.13);border:1px solid rgba(108,179,63,.22)}.t9-cordi-row-top em.draft{color:#64748b;background:rgba(241,245,249,.9);border-color:rgba(203,213,225,.9)}
        .t9-cordi-row-meta{margin-top:6px;color:#64748b;font-size:11px;font-weight:660}.t9-cordi-row-text{margin-top:6px;color:#334155;font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
        .t9-cordi-row-actions{display:flex;gap:7px}.t9-cordi-row-actions button{width:34px;height:34px;border-radius:13px;border:1px solid rgba(203,213,225,.9);background:white;color:#64748b;display:grid;place-items:center}.t9-cordi-row-actions button:hover{color:#2563eb;border-color:rgba(37,99,235,.35)}
        @media (max-width:980px){.t9-cordi-admin-body{grid-template-columns:1fr}}



        /* v8.9.40-light – Cordi als echtes privates Chatfenster */
        .t9-cordi-private-wrap {
            position: fixed;
            right: 28px;
            bottom: 92px;
            z-index: 190;
            pointer-events: none;
        }

        .t9-cordi-private-window {
            width: 430px;
            height: 560px;
            min-width: 330px;
            min-height: 360px;
            max-width: calc(100vw - 36px);
            max-height: calc(100vh - 130px);
            resize: both;
            overflow: hidden;
            pointer-events: auto;
            border-radius: 28px;
            background: rgba(248,250,252,.98);
            border: 1px solid rgba(203,213,225,.92);
            box-shadow: 0 30px 88px rgba(15,23,42,.34);
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(18px);
        }

        .t9-cordi-private-head {
            flex: 0 0 auto;
            padding: 14px 15px;
            display: grid;
            grid-template-columns: 48px 0 minmax(0, 1fr) 38px;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,253,244,.94));
            border-bottom: 1px solid rgba(226,232,240,.90);
        }

        .t9-cordi-private-avatar,
        .t9-cordi-private-avatar-fallback {
            width: 48px;
            height: 48px;
            border-radius: 999px;
            object-fit: cover;
            border: 2px solid rgba(108,179,63,.30);
            background: white;
            box-shadow: 0 10px 28px rgba(108,179,63,.16);
            grid-column: 1;
            grid-row: 1;
        }

        .t9-cordi-private-avatar-fallback {
            display: grid;
            place-items: center;
            font-size: 25px;
            z-index: -1;
        }

        .t9-cordi-private-title {
            min-width: 0;
        }

        .t9-cordi-private-title strong {
            display: block;
            color: #0f172a;
            font-size: 17px;
            line-height: 1.05;
            font-weight: 830;
            letter-spacing: -.025em;
        }

        .t9-cordi-private-title span {
            display: block;
            margin-top: 3px;
            color: #64748b;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 620;
        }

        .t9-cordi-private-close {
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 14px;
            background: rgba(241,245,249,.88);
            color: #64748b;
            display: grid;
            place-items: center;
            transition: .15s ease;
        }

        .t9-cordi-private-close:hover {
            background: rgba(226,232,240,.98);
            color: #0f172a;
        }

        .t9-cordi-private-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 14px 14px 18px;
            background:
                radial-gradient(circle at 10% 0%, rgba(108,179,63,.10), transparent 34%),
                linear-gradient(180deg, rgba(248,250,252,.92), rgba(255,255,255,.96));
        }

        .t9-cordi-private-body::-webkit-scrollbar {
            width: 8px;
        }

        .t9-cordi-private-body::-webkit-scrollbar-thumb {
            background: rgba(148,163,184,.42);
            border-radius: 999px;
        }

        .t9-cordi-private-date {
            width: fit-content;
            margin: 0 auto 12px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(226,232,240,.78);
            color: #64748b;
            font-size: 10px;
            font-weight: 760;
            letter-spacing: .03em;
        }

        .t9-cordi-private-row {
            display: grid;
            grid-template-columns: 34px minmax(0, 1fr);
            gap: 9px;
            align-items: end;
        }

        .t9-cordi-private-miniavatar {
            width: 34px;
            height: 34px;
            border-radius: 999px;
            object-fit: cover;
            border: 1px solid rgba(108,179,63,.30);
            background: white;
            box-shadow: 0 8px 18px rgba(15,23,42,.10);
        }

        .t9-cordi-private-bubble {
            max-width: 100%;
            border-radius: 22px 22px 22px 8px;
            padding: 13px 14px;
            background: linear-gradient(135deg, #6cb33f, #4f9130);
            color: white;
            box-shadow: 0 16px 34px rgba(76,145,42,.24);
            user-select: text;
        }

        .t9-cordi-private-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 9px;
            color: rgba(255,255,255,.88);
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .07em;
        }

        .t9-cordi-private-meta em {
            font-style: normal;
            padding: 3px 7px;
            border-radius: 999px;
            background: rgba(255,255,255,.17);
            border: 1px solid rgba(255,255,255,.20);
            white-space: nowrap;
        }

        .t9-cordi-private-bubble p {
            margin: 0 0 10px;
            color: white;
            font-size: 13.5px;
            line-height: 1.44;
            font-weight: 520;
        }

        .t9-cordi-private-bubble p:last-child {
            margin-bottom: 0;
        }

        .t9-cordi-private-footer {
            flex: 0 0 auto;
            border-top: 1px solid rgba(226,232,240,.90);
            background: rgba(255,255,255,.98);
            padding: 12px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .t9-cordi-private-muted {
            color: #94a3b8;
            font-size: 10.5px;
            line-height: 1.2;
            font-weight: 660;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .t9-cordi-private-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .t9-cordi-private-later,
        .t9-cordi-private-read {
            border: 0;
            border-radius: 15px;
            padding: 10px 12px;
            font-size: 12px;
            font-weight: 760;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            white-space: nowrap;
        }

        .t9-cordi-private-later {
            background: #f1f5f9;
            color: #475569;
        }

        .t9-cordi-private-read {
            background: #6cb33f;
            color: white;
            box-shadow: 0 12px 28px rgba(108,179,63,.22);
        }

        .t9-cordi-private-read:hover {
            background: #5a9632;
        }

        @media (max-width: 720px) {
            .t9-cordi-private-wrap {
                right: 12px;
                left: 12px;
                bottom: 82px;
            }

            .t9-cordi-private-window {
                width: auto;
                height: min(560px, calc(100vh - 120px));
                min-width: 0;
                resize: vertical;
            }

            .t9-cordi-private-footer {
                align-items: stretch;
                flex-direction: column;
            }

            .t9-cordi-private-actions {
                justify-content: flex-end;
            }
        }



        /* v8.9.40-light – Cordi mittig als echtes privates Chatfenster */
        .t9-cordi-chat-window {
            width: min(780px, calc(100vw - 2rem));
            height: min(720px, calc(100vh - 4rem));
            min-width: 420px;
            min-height: 420px;
            resize: both;
            overflow: hidden;
            border-radius: 30px;
            border: 6px solid rgba(168,85,247,.55);
            background: rgba(255,255,255,.98);
            box-shadow:
                0 35px 95px rgba(76,29,149,.35),
                0 0 0 1px rgba(255,255,255,.70) inset;
            display: flex;
            flex-direction: column;
        }

        .t9-cordi-chat-head {
            flex: 0 0 auto;
            min-height: 82px;
            padding: 14px 18px;
            display: grid;
            grid-template-columns: 58px minmax(0, 1fr) auto 42px 42px;
            gap: 12px;
            align-items: center;
            background: linear-gradient(135deg, #8b3cf6 0%, #6d28d9 54%, #5b21b6 100%);
            color: #fff;
            border-bottom: 1px solid rgba(255,255,255,.20);
        }

        .t9-cordi-chat-avatar-wrap {
            position: relative;
            width: 58px;
            height: 58px;
            border-radius: 999px;
            overflow: hidden;
            border: 2px solid rgba(255,255,255,.35);
            background: rgba(255,255,255,.16);
            box-shadow: 0 12px 32px rgba(0,0,0,.16);
        }

        .t9-cordi-chat-avatar,
        .t9-cordi-chat-avatar-fallback {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .t9-cordi-chat-avatar-fallback {
            display: grid;
            place-items: center;
            font-size: 30px;
            z-index: -1;
        }

        .t9-cordi-chat-title {
            min-width: 0;
        }

        .t9-cordi-chat-title strong {
            display: block;
            font-size: 22px;
            line-height: 1.05;
            font-weight: 840;
            letter-spacing: -.02em;
            color: #fff;
        }

        .t9-cordi-chat-title span {
            display: flex;
            align-items: center;
            gap: 7px;
            margin-top: 6px;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 760;
            color: rgba(255,255,255,.82);
            letter-spacing: .10em;
            text-transform: uppercase;
        }

        .t9-cordi-chat-badge {
            padding: 8px 17px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,.35);
            background: rgba(255,255,255,.15);
            color: rgba(255,255,255,.92);
            font-size: 12px;
            font-weight: 840;
            letter-spacing: .18em;
        }

        .t9-cordi-chat-min,
        .t9-cordi-chat-close {
            width: 42px;
            height: 42px;
            border: 0;
            border-radius: 14px;
            background: transparent;
            color: rgba(255,255,255,.88);
            display: grid;
            place-items: center;
            font-size: 18px;
            transition: background .15s ease, color .15s ease;
        }

        .t9-cordi-chat-min:hover,
        .t9-cordi-chat-close:hover {
            background: rgba(255,255,255,.14);
            color: #fff;
        }

        .t9-cordi-chat-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 24px 24px 28px;
            background:
                radial-gradient(circle at 15% 0%, rgba(168,85,247,.12), transparent 38%),
                linear-gradient(180deg, rgba(250,245,255,.82), rgba(255,255,255,.96));
        }

        .t9-cordi-chat-body::-webkit-scrollbar {
            width: 9px;
        }

        .t9-cordi-chat-body::-webkit-scrollbar-thumb {
            background: rgba(148,163,184,.46);
            border-radius: 999px;
        }

        .t9-cordi-chat-day {
            width: fit-content;
            margin: 0 auto 18px;
            padding: 6px 13px;
            border-radius: 999px;
            background: rgba(226,232,240,.84);
            color: #64748b;
            font-size: 11px;
            font-weight: 780;
        }

        .t9-cordi-message-row {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            gap: 12px;
            align-items: end;
            max-width: 92%;
        }

        .t9-cordi-message-avatar {
            width: 42px;
            height: 42px;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(168,85,247,.30);
            background: white;
            position: relative;
            box-shadow: 0 10px 24px rgba(15,23,42,.10);
        }

        .t9-cordi-message-avatar img,
        .t9-cordi-message-avatar span {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .t9-cordi-message-avatar span {
            display: grid;
            place-items: center;
            font-size: 24px;
            z-index: -1;
        }

        .t9-cordi-message-bubble {
            position: relative;
            border-radius: 24px 24px 24px 8px;
            padding: 15px 16px 22px;
            background: #fff;
            border: 1px solid rgba(226,232,240,.96);
            color: #0f172a;
            box-shadow: 0 14px 34px rgba(15,23,42,.10);
            user-select: text;
        }

        .t9-cordi-message-bubble::before {
            content: "";
            position: absolute;
            left: -7px;
            bottom: 10px;
            width: 14px;
            height: 14px;
            background: #fff;
            border-left: 1px solid rgba(226,232,240,.96);
            border-bottom: 1px solid rgba(226,232,240,.96);
            transform: rotate(45deg);
            border-radius: 0 0 0 4px;
        }

        .t9-cordi-message-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .t9-cordi-message-meta strong {
            color: #6d28d9;
            font-size: 12px;
            font-weight: 860;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .t9-cordi-message-meta em {
            font-style: normal;
            color: #64748b;
            background: #f1f5f9;
            border: 1px solid rgba(203,213,225,.85);
            border-radius: 999px;
            padding: 4px 9px;
            font-size: 10px;
            font-weight: 780;
        }

        .t9-cordi-message-bubble p {
            margin: 0 0 10px;
            color: #1e293b;
            font-size: 14px;
            line-height: 1.48;
            font-weight: 520;
        }

        .t9-cordi-message-bubble p:last-of-type {
            margin-bottom: 0;
        }

        .t9-cordi-message-time {
            position: absolute;
            right: 13px;
            bottom: 7px;
            color: #94a3b8;
            font-size: 10px;
            font-weight: 760;
        }

        .t9-cordi-chat-footer {
            flex: 0 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 46px auto;
            gap: 10px;
            align-items: center;
            padding: 14px 16px;
            border-top: 1px solid rgba(226,232,240,.95);
            background: rgba(255,255,255,.98);
        }

        .t9-cordi-chat-disabled-input {
            height: 48px;
            border-radius: 24px;
            border: 1px solid rgba(203,213,225,.90);
            background: #f8fafc;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 18px;
            font-size: 13px;
            font-weight: 640;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .t9-cordi-chat-later,
        .t9-cordi-chat-read {
            height: 48px;
            border: 0;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 800;
            transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
        }

        .t9-cordi-chat-later {
            width: 48px;
            background: #f1f5f9;
            color: #64748b;
        }

        .t9-cordi-chat-read {
            padding: 0 18px;
            background: #7c3aed;
            color: white;
            box-shadow: 0 14px 30px rgba(124,58,237,.25);
        }

        .t9-cordi-chat-read:hover {
            background: #6d28d9;
            transform: translateY(-1px);
            box-shadow: 0 18px 34px rgba(124,58,237,.30);
        }

        @media (max-width: 760px) {
            .t9-cordi-chat-window {
                width: calc(100vw - 1.2rem);
                height: calc(100vh - 2rem);
                min-width: 0;
                min-height: 0;
                resize: none;
                border-radius: 24px;
            }

            .t9-cordi-chat-head {
                grid-template-columns: 50px minmax(0,1fr) 38px 38px;
            }

            .t9-cordi-chat-badge {
                display: none;
            }

            .t9-cordi-chat-footer {
                grid-template-columns: minmax(0,1fr) 46px;
            }

            .t9-cordi-chat-read {
                grid-column: 1 / -1;
            }
        }



        /* v8.9.40-light – Feinschliff rechte Seitenleiste */
        @media (min-width: 1025px) {
            .t9-sidebar {
                grid-template-rows: 218px minmax(210px, 1fr) minmax(210px, 1fr) !important;
            }

            .t9-quickbedarf-fixed {
                height: 218px !important;
            }

            .t9-quickbedarf-fixed .t9-quick {
                gap: 8px !important;
            }

            .t9-quickbedarf-fixed .t9-quick button,
            .t9-quickbedarf-fixed .t9-quick .t9-quick-row {
                min-height: 48px !important;
                padding-top: 10px !important;
                padding-bottom: 10px !important;
            }
        }

        .t9-sidebar .t9-side-title {
            font-size: 15px !important;
            letter-spacing: -.01em !important;
            font-weight: 760 !important;
            margin-bottom: 10px !important;
        }

        .t9-sidebar .t9-infoboard-mini {
            border-radius: 15px !important;
            padding: 9px 10px !important;
            gap: 4px !important;
        }

        .t9-sidebar .t9-infoboard-mini-head {
            font-size: 9px !important;
            line-height: 1.15 !important;
            letter-spacing: .07em !important;
            font-weight: 760 !important;
        }

        .t9-sidebar .t9-infoboard-mini-title {
            font-size: 11.5px !important;
            line-height: 1.25 !important;
            font-weight: 720 !important;
            letter-spacing: -.005em !important;
        }

        .t9-sidebar .t9-infoboard-mini-text {
            font-size: 10.5px !important;
            line-height: 1.3 !important;
            font-weight: 520 !important;
        }

        .t9-sidebar .t9-critical-mini {
            border-radius: 15px !important;
            padding: 9px 10px !important;
        }

        .t9-sidebar .t9-critical-mini-top {
            font-size: 8.8px !important;
            line-height: 1.15 !important;
            font-weight: 760 !important;
            letter-spacing: .07em !important;
            margin-bottom: 5px !important;
        }

        .t9-sidebar .t9-critical-mini strong {
            font-size: 11.6px !important;
            line-height: 1.25 !important;
            font-weight: 760 !important;
            letter-spacing: -.006em !important;
        }

        .t9-sidebar .t9-critical-mini p {
            font-size: 10.5px !important;
            line-height: 1.32 !important;
            font-weight: 520 !important;
            margin-top: 4px !important;
        }

        .t9-sidebar .t9-btn {
            font-size: 12px !important;
            font-weight: 720 !important;
            min-height: 38px !important;
        }

        .t9-sidebar .text-xs {
            font-size: 11px !important;
            line-height: 1.35 !important;
            font-weight: 520 !important;
        }



        /* v8.9.40-light – rechte Seitenleiste nochmals deutlich leichter */
        .t9-sidebar .t9-side-title {
            font-size: 13.5px !important;
            line-height: 1.18 !important;
            font-weight: 620 !important;
            letter-spacing: .005em !important;
            text-transform: uppercase !important;
        }

        .t9-sidebar .t9-side-title i {
            font-size: 13px !important;
        }

        .t9-sidebar .t9-infoboard-mini {
            padding: 8px 9px !important;
            border-radius: 14px !important;
        }

        .t9-sidebar .t9-infoboard-mini-head {
            font-size: 8.4px !important;
            line-height: 1.1 !important;
            font-weight: 620 !important;
            letter-spacing: .08em !important;
            opacity: .82 !important;
        }

        .t9-sidebar .t9-infoboard-mini-title {
            font-size: 10.6px !important;
            line-height: 1.22 !important;
            font-weight: 610 !important;
            letter-spacing: 0 !important;
            color: #1f2937 !important;
        }

        .t9-sidebar .t9-infoboard-mini-text {
            font-size: 9.8px !important;
            line-height: 1.26 !important;
            font-weight: 440 !important;
            color: #64748b !important;
        }

        .t9-sidebar .t9-infoboard-mini button {
            width: 30px !important;
            height: 30px !important;
            font-size: 12px !important;
        }

        .t9-sidebar .t9-critical-mini {
            padding: 8px 9px !important;
            border-radius: 14px !important;
        }

        .t9-sidebar .t9-critical-mini-top {
            font-size: 8.2px !important;
            line-height: 1.1 !important;
            font-weight: 610 !important;
            letter-spacing: .08em !important;
            margin-bottom: 4px !important;
            color: #64748b !important;
        }

        .t9-sidebar .t9-critical-mini-top i {
            font-size: 10px !important;
        }

        .t9-sidebar .t9-critical-mini strong {
            font-size: 10.7px !important;
            line-height: 1.22 !important;
            font-weight: 620 !important;
            letter-spacing: 0 !important;
            color: #111827 !important;
        }

        .t9-sidebar .t9-critical-mini p {
            font-size: 9.8px !important;
            line-height: 1.26 !important;
            font-weight: 440 !important;
            color: #64748b !important;
            margin-top: 3px !important;
        }

        .t9-sidebar .t9-btn {
            font-size: 11.2px !important;
            line-height: 1.15 !important;
            font-weight: 610 !important;
            min-height: 35px !important;
            padding-top: 8px !important;
            padding-bottom: 8px !important;
        }

        .t9-sidebar .text-xs,
        .t9-sidebar .italic {
            font-size: 10.2px !important;
            line-height: 1.28 !important;
            font-weight: 420 !important;
        }

        .t9-sidebar .t9-side-scroll {
            gap: 7px !important;
        }

        .t9-infoboard-fixed .t9-side-scroll,
        .t9-critical-sidebar-fixed .t9-side-scroll {
            padding-right: 6px !important;
        }

        @media (min-width: 1025px) {
            .t9-sidebar {
                grid-template-rows: 205px minmax(205px, 1fr) minmax(205px, 1fr) !important;
            }

            .t9-quickbedarf-fixed {
                height: 205px !important;
            }

            .t9-quickbedarf-fixed .t9-side-title {
                margin-bottom: 8px !important;
            }

            .t9-quickbedarf-fixed .t9-quick {
                gap: 7px !important;
            }

            .t9-quickbedarf-fixed .t9-quick button,
            .t9-quickbedarf-fixed .t9-quick .t9-quick-row {
                min-height: 43px !important;
                padding-top: 8px !important;
                padding-bottom: 8px !important;
                font-size: 12px !important;
                font-weight: 560 !important;
            }
        }



        /* v8.9.75-light – Disposition Fenster Modernisierung */
        .t9-dispo-modal {
            background: #f8fbff !important;
            border-radius: 34px !important;
            box-shadow: 0 34px 110px rgba(15,23,42,.22) !important;
        }

        .t9-dispo-modal > .px-6:first-of-type {
            background:
                radial-gradient(circle at 8% 0%, rgba(108,179,63,.12), transparent 34%),
                linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
            position: sticky !important;
            top: 0 !important;
            z-index: 20 !important;
        }

        .t9-dispo-modal h2 {
            font-size: 28px !important;
            letter-spacing: -.055em !important;
            font-weight: 820 !important;
        }

        .t9-dispo-modal .grid.grid-cols-3.gap-2.min-w-\[300px\] {
            min-width: 360px !important;
            gap: 10px !important;
        }

        .t9-dispo-modal .grid.grid-cols-3.gap-2.min-w-\[300px\] > div {
            border-radius: 20px !important;
            padding: 13px 15px !important;
            background: rgba(255,255,255,.92) !important;
            box-shadow: 0 12px 34px rgba(15,23,42,.055) !important;
        }

        .t9-dispo-modal .grid.grid-cols-3.gap-2.min-w-\[300px\] > div div:first-child {
            font-size: 9px !important;
            letter-spacing: .13em !important;
            font-weight: 760 !important;
        }

        .t9-dispo-modal .grid.grid-cols-3.gap-2.min-w-\[300px\] > div div:last-child {
            font-size: 22px !important;
            line-height: 1 !important;
            font-weight: 820 !important;
        }

        .t9-dispo-modal > .flex-1 {
            background: #f8fbff !important;
            padding-top: 18px !important;
            padding-bottom: 18px !important;
        }

        .t9-dispo-category {
            border-radius: 28px !important;
            border-color: rgba(203,213,225,.84) !important;
            box-shadow: 0 18px 52px rgba(15,23,42,.07) !important;
            background: rgba(255,255,255,.96) !important;
            position: relative;
        }

        .t9-dispo-category::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 5px;
            border-radius: 28px 0 0 28px;
            background: linear-gradient(180deg, #6cb33f, #2563eb);
            opacity: .34;
        }

        .t9-dispo-category > div:first-child {
            padding: 18px 22px !important;
            background:
                linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88)) !important;
        }

        .t9-dispo-category h3 {
            font-size: 18px !important;
            letter-spacing: -.035em !important;
            font-weight: 800 !important;
        }

        .t9-dispo-category .rounded-full {
            letter-spacing: .08em !important;
        }

        .t9-dispo-category > div:nth-child(2) {
            padding: 18px 22px 22px !important;
            grid-template-columns: 245px minmax(0, 1fr) !important;
            align-items: start !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child {
            border-radius: 24px !important;
            background: #ffffff !important;
            box-shadow: inset 0 0 0 1px rgba(203,213,225,.72), 0 10px 30px rgba(15,23,42,.045) !important;
            position: sticky !important;
            top: 126px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .text-\[10px\] {
            font-weight: 740 !important;
            letter-spacing: .10em !important;
            color: #64748b !important;
        }

        .t9-dispo-category input,
        .t9-dispo-category select {
            font-weight: 610 !important;
            border-color: rgba(203,213,225,.86) !important;
            background-color: #fff !important;
            box-shadow: 0 8px 22px rgba(15,23,42,.032) !important;
        }

        .t9-dispo-category input:focus,
        .t9-dispo-category select:focus {
            outline: none !important;
            border-color: rgba(108,179,63,.58) !important;
            box-shadow: 0 0 0 4px rgba(108,179,63,.11) !important;
        }

        .t9-dispo-category .space-y-4 > div {
            border-radius: 24px !important;
            box-shadow: inset 0 0 0 1px rgba(203,213,225,.58), 0 10px 32px rgba(15,23,42,.045) !important;
        }

        .t9-dispo-category .space-y-4 > div:first-child {
            background: linear-gradient(180deg, rgba(239,246,255,.92), rgba(248,250,252,.94)) !important;
        }

        .t9-dispo-category .space-y-4 > div:nth-child(2) {
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        }

        .t9-dispo-category .t9-assigned-person-row {
            background: rgba(255,255,255,.96) !important;
            border: 1px solid rgba(203,213,225,.80) !important;
            border-radius: 20px !important;
            padding: 9px !important;
            box-shadow: 0 12px 30px rgba(15,23,42,.055) !important;
            grid-template-columns: minmax(170px,1.2fr) minmax(170px,210px) minmax(150px,1fr) 42px !important;
        }

        .t9-dispo-category .t9-assigned-person-field {
            height: 42px !important;
            border-radius: 15px !important;
            font-size: 13px !important;
            padding-top: 8px !important;
            padding-bottom: 8px !important;
        }

        .t9-dispo-category .t9-assigned-remove-btn {
            height: 42px !important;
            border-radius: 15px !important;
        }

        .t9-dispo-category button {
            transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease !important;
        }

        .t9-dispo-category button:hover {
            transform: translateY(-1px);
        }

        .t9-dispo-footer {
            background: rgba(255,255,255,.94) !important;
            backdrop-filter: blur(18px) !important;
            padding-top: 14px !important;
            padding-bottom: 14px !important;
            box-shadow: 0 -18px 50px rgba(15,23,42,.08) !important;
        }

        .t9-dispo-footer .grid {
            gap: 12px !important;
        }

        .t9-dispo-footer button {
            min-height: 52px !important;
            padding-top: 12px !important;
            padding-bottom: 12px !important;
            border-radius: 20px !important;
            font-size: 15px !important;
            font-weight: 760 !important;
            letter-spacing: -.01em !important;
        }

        @media (max-width: 1280px) {
            .t9-dispo-category > div:nth-child(2) {
                grid-template-columns: 1fr !important;
            }

            .t9-dispo-category > div:nth-child(2) > div:first-child {
                position: relative !important;
                top: auto !important;
            }
        }

        @media (max-width: 760px) {
            .t9-dispo-modal {
                border-radius: 26px !important;
                max-height: 96vh !important;
            }

            .t9-dispo-modal .grid.grid-cols-3.gap-2.min-w-\[300px\] {
                min-width: 0 !important;
                width: 100% !important;
            }

            .t9-dispo-category .t9-assigned-person-row {
                grid-template-columns: 1fr !important;
            }

            .t9-dispo-footer .grid {
                grid-template-columns: 1fr !important;
            }
        }



        /* v8.9.75-light – Disposition Center 3.0: echter Neuaufbau */
        .t9-dispo-modal {
            max-width: min(1380px, calc(100vw - 42px)) !important;
            border-radius: 36px !important;
            background:
                radial-gradient(circle at 0% 0%, rgba(108,179,63,.12), transparent 28%),
                linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #f7fafc 100%) !important;
            border: 1px solid rgba(203,213,225,.86) !important;
            box-shadow: 0 36px 120px rgba(15,23,42,.26) !important;
        }

        .t9-dispo-modal > button[title="Schließen"] {
            top: 18px !important;
            right: 18px !important;
            width: 44px !important;
            height: 44px !important;
            border-radius: 18px !important;
            background: #ffffff !important;
            box-shadow: 0 12px 34px rgba(15,23,42,.10) !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) {
            background: #ffffff !important;
            padding: 22px 30px !important;
            border-bottom: 1px solid rgba(203,213,225,.78) !important;
            position: sticky !important;
            top: 0 !important;
            z-index: 30 !important;
            box-shadow: 0 10px 34px rgba(15,23,42,.055) !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) > div {
            align-items: center !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) h2 {
            font-size: clamp(28px, 3vw, 42px) !important;
            line-height: .95 !important;
            letter-spacing: -.07em !important;
            font-weight: 850 !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .text-\[10px\] {
            color: #6cb33f !important;
            letter-spacing: .18em !important;
            font-weight: 850 !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) p {
            font-size: 13px !important;
            font-weight: 720 !important;
            color: #64748b !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 {
            grid-template-columns: repeat(3, minmax(118px, 1fr)) !important;
            min-width: 410px !important;
            gap: 12px !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 > div {
            border-radius: 22px !important;
            padding: 13px 16px !important;
            background: #fff !important;
            box-shadow: 0 16px 42px rgba(15,23,42,.075) !important;
            border-color: rgba(203,213,225,.84) !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 > div div:first-child {
            font-size: 9px !important;
            font-weight: 760 !important;
            letter-spacing: .14em !important;
            color: #94a3b8 !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 > div div:last-child {
            font-size: 24px !important;
            font-weight: 850 !important;
            letter-spacing: -.04em !important;
        }

        .t9-dispo-modal > .flex-1 {
            padding: 20px 28px 22px !important;
            background: transparent !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 16px !important;
        }

        /* Jede Kategorie wird jetzt zu einem horizontalen Dispo-Dashboard */
        .t9-dispo-category {
            display: grid !important;
            grid-template-columns: 300px minmax(0,1fr) !important;
            min-height: 315px !important;
            border-radius: 30px !important;
            overflow: hidden !important;
            background: #fff !important;
            border: 1px solid rgba(203,213,225,.92) !important;
            box-shadow: 0 20px 70px rgba(15,23,42,.09) !important;
        }

        .t9-dispo-category::before {
            display: none !important;
        }

        /* Linke Kategorie-/Status-Spalte */
        .t9-dispo-category > div:first-child {
            border-bottom: 0 !important;
            border-right: 1px solid rgba(203,213,225,.78) !important;
            padding: 24px 20px !important;
            background:
                radial-gradient(circle at 0% 0%, rgba(108,179,63,.14), transparent 34%),
                linear-gradient(180deg, #ffffff 0%, #f4fbf2 100%) !important;
            flex-direction: column !important;
            align-items: stretch !important;
            justify-content: space-between !important;
            gap: 18px !important;
        }

        .t9-dispo-category > div:first-child > div:first-child {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 14px !important;
        }

        .t9-dispo-category > div:first-child .w-11.h-11 {
            width: 58px !important;
            height: 58px !important;
            border-radius: 22px !important;
            background: #fff !important;
            box-shadow: 0 16px 40px rgba(15,23,42,.075) !important;
        }

        .t9-dispo-category > div:first-child h3 {
            font-size: 24px !important;
            line-height: 1.02 !important;
            letter-spacing: -.055em !important;
            font-weight: 850 !important;
            white-space: normal !important;
        }

        .t9-dispo-category > div:first-child h3 + div {
            gap: 7px !important;
        }

        .t9-dispo-category > div:first-child h3 + div span,
        .t9-dispo-category > div:first-child h3 + div button {
            font-size: 9px !important;
            border-radius: 999px !important;
            padding: 5px 8px !important;
            letter-spacing: .10em !important;
        }

        .t9-dispo-category > div:first-child > div:last-child {
            flex-direction: column !important;
            align-items: stretch !important;
            width: 100% !important;
            gap: 8px !important;
        }

        .t9-dispo-category > div:first-child > div:last-child button {
            justify-content: flex-start !important;
            height: 38px !important;
            padding: 0 12px !important;
            border-radius: 14px !important;
            font-size: 11px !important;
            font-weight: 760 !important;
            background: rgba(255,255,255,.82) !important;
        }

        .t9-dispo-category > div:first-child > div:last-child button.bg-slate-900,
        .t9-dispo-category > div:first-child > div:last-child button.dark\:bg-white {
            background: #0f172a !important;
            color: #fff !important;
        }

        /* Rechte Arbeitsfläche */
        .t9-dispo-category > div:nth-child(2) {
            padding: 0 !important;
            display: grid !important;
            grid-template-columns: 265px minmax(0,1fr) !important;
            gap: 0 !important;
            background: #fff !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child {
            border: 0 !important;
            border-right: 1px solid rgba(203,213,225,.72) !important;
            border-radius: 0 !important;
            padding: 22px 18px !important;
            background: #f8fafc !important;
            box-shadow: none !important;
            position: relative !important;
            top: auto !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child > .text-\[10px\] {
            font-size: 9px !important;
            font-weight: 760 !important;
            color: #64748b !important;
            letter-spacing: .13em !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child button:not(.mt-4) {
            width: 40px !important;
            height: 40px !important;
            border-radius: 15px !important;
            font-size: 17px !important;
            background: #fff !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child input[type="number"] {
            width: 76px !important;
            height: 40px !important;
            border-radius: 15px !important;
            font-size: 18px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .mt-4.w-full {
            height: 42px !important;
            border-radius: 16px !important;
            font-size: 12px !important;
            margin-top: 14px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .mt-4.rounded-2xl {
            margin-top: 14px !important;
            border-radius: 18px !important;
            padding: 13px !important;
            background: #fff8e7 !important;
            box-shadow: inset 0 0 0 1px rgba(245,158,11,.18) !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .mt-2 {
            font-size: 10.5px !important;
            line-height: 1.35 !important;
        }

        /* Arbeitsbereich rechts: oben Vermerk, unten Personal als große Tabelle */
        .t9-dispo-category > div:nth-child(2) > div:nth-child(2) {
            padding: 22px !important;
            display: grid !important;
            grid-template-rows: auto minmax(0,1fr) !important;
            gap: 14px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:nth-child(2) > div {
            border: 1px solid rgba(203,213,225,.78) !important;
            border-radius: 22px !important;
            background: #fff !important;
            box-shadow: 0 12px 34px rgba(15,23,42,.045) !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:nth-child(2) > div:first-child {
            background:
                linear-gradient(135deg, rgba(37,99,235,.06), rgba(255,255,255,.96)) !important;
            padding: 16px !important;
        }

        .t9-dispo-category label,
        .t9-dispo-category .text-\[10px\] {
            font-size: 9px !important;
            font-weight: 780 !important;
            letter-spacing: .13em !important;
        }

        .t9-dispo-category input,
        .t9-dispo-category select {
            border-radius: 16px !important;
            height: 42px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            background: #fff !important;
            border-color: rgba(203,213,225,.88) !important;
            box-shadow: 0 8px 24px rgba(15,23,42,.035) !important;
        }

        .t9-dispo-category input:focus,
        .t9-dispo-category select:focus {
            outline: none !important;
            border-color: rgba(108,179,63,.62) !important;
            box-shadow: 0 0 0 4px rgba(108,179,63,.11) !important;
        }

        .t9-dispo-category .t9-assigned-person-row {
            grid-template-columns: 1.25fr 220px 1fr 42px !important;
            gap: 8px !important;
            padding: 10px !important;
            background: #f8fafc !important;
            border: 1px solid rgba(203,213,225,.76) !important;
            border-radius: 20px !important;
            box-shadow: none !important;
        }

        .t9-dispo-category .t9-assigned-person-row + .t9-assigned-person-row {
            margin-top: 8px !important;
        }

        .t9-dispo-category .t9-assigned-person-field {
            height: 40px !important;
            border-radius: 14px !important;
            font-size: 13px !important;
            padding: 8px 11px !important;
        }

        .t9-dispo-category .t9-assigned-remove-btn {
            height: 40px !important;
            width: 40px !important;
            border-radius: 14px !important;
        }

        /* Footer wird zur schmaleren Command-Bar */
        .t9-dispo-footer {
            background: rgba(255,255,255,.96) !important;
            backdrop-filter: blur(16px) !important;
            padding: 14px 28px !important;
            box-shadow: 0 -18px 55px rgba(15,23,42,.08) !important;
        }

        .t9-dispo-footer .grid {
            max-width: 860px !important;
            margin-left: auto !important;
            grid-template-columns: 1fr 1fr 1.15fr !important;
            gap: 12px !important;
        }

        .t9-dispo-footer button {
            min-height: 48px !important;
            border-radius: 18px !important;
            padding: 10px 18px !important;
            font-size: 14px !important;
            font-weight: 760 !important;
            letter-spacing: -.015em !important;
        }

        @media (max-width: 1200px) {
            .t9-dispo-category {
                grid-template-columns: 1fr !important;
            }

            .t9-dispo-category > div:first-child {
                border-right: 0 !important;
                border-bottom: 1px solid rgba(203,213,225,.78) !important;
            }

            .t9-dispo-category > div:first-child > div:last-child {
                flex-direction: row !important;
                flex-wrap: wrap !important;
            }

            .t9-dispo-category > div:nth-child(2) {
                grid-template-columns: 1fr !important;
            }

            .t9-dispo-category > div:nth-child(2) > div:first-child {
                border-right: 0 !important;
                border-bottom: 1px solid rgba(203,213,225,.72) !important;
            }
        }

        @media (max-width: 760px) {
            .t9-dispo-modal {
                max-width: calc(100vw - 14px) !important;
                border-radius: 24px !important;
            }

            .t9-dispo-modal > div:nth-of-type(2) {
                padding: 18px !important;
            }

            .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 {
                min-width: 0 !important;
                width: 100% !important;
            }

            .t9-dispo-category .t9-assigned-person-row {
                grid-template-columns: 1fr !important;
            }

            .t9-dispo-footer .grid {
                grid-template-columns: 1fr !important;
                max-width: none !important;
            }
        }



        /* v8.9.75-light – Disposition Center v2: kompakter, nichts abgeschnitten */
        .t9-dispo-modal {
            max-width: min(1360px, calc(100vw - 34px)) !important;
            max-height: 94vh !important;
            border-radius: 32px !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) {
            padding: 18px 28px !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) h2 {
            font-size: clamp(26px, 2.6vw, 38px) !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 {
            min-width: 360px !important;
            gap: 9px !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 > div {
            border-radius: 18px !important;
            padding: 10px 13px !important;
        }

        .t9-dispo-modal > div:nth-of-type(2) .grid.grid-cols-3 > div div:last-child {
            font-size: 21px !important;
        }

        .t9-dispo-modal > .flex-1 {
            padding: 16px 26px 18px !important;
            gap: 13px !important;
        }

        .t9-dispo-category {
            grid-template-columns: 250px minmax(0,1fr) !important;
            min-height: 0 !important;
            border-radius: 26px !important;
            box-shadow: 0 16px 48px rgba(15,23,42,.075) !important;
        }

        .t9-dispo-category > div:first-child {
            padding: 18px 16px !important;
            gap: 12px !important;
            min-width: 0 !important;
        }

        .t9-dispo-category > div:first-child > div:first-child {
            gap: 10px !important;
        }

        .t9-dispo-category > div:first-child .w-11.h-11 {
            width: 46px !important;
            height: 46px !important;
            border-radius: 18px !important;
        }

        .t9-dispo-category > div:first-child .w-11.h-11 i {
            font-size: 17px !important;
        }

        .t9-dispo-category > div:first-child h3 {
            font-size: 20px !important;
            line-height: 1.04 !important;
            letter-spacing: -.045em !important;
        }

        .t9-dispo-category > div:first-child h3 + div {
            gap: 5px !important;
            margin-top: 7px !important;
        }

        .t9-dispo-category > div:first-child h3 + div span,
        .t9-dispo-category > div:first-child h3 + div button {
            font-size: 8px !important;
            padding: 4px 7px !important;
            letter-spacing: .08em !important;
            line-height: 1.1 !important;
        }

        /* Status-Schalter links: nicht mehr untereinander, sondern kompakt 2x2 */
        .t9-dispo-category > div:first-child > div:last-child {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            width: 100% !important;
            gap: 7px !important;
            margin-top: 0 !important;
        }

        .t9-dispo-category > div:first-child > div:last-child button {
            height: 33px !important;
            min-height: 33px !important;
            justify-content: center !important;
            padding: 0 8px !important;
            border-radius: 13px !important;
            font-size: 10px !important;
            font-weight: 720 !important;
            gap: 5px !important;
            overflow: hidden !important;
        }

        .t9-dispo-category > div:first-child > div:last-child button i {
            font-size: 10px !important;
        }

        .t9-dispo-category > div:nth-child(2) {
            grid-template-columns: 230px minmax(0,1fr) !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child {
            padding: 17px 15px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child > .text-\[10px\] {
            font-size: 8.5px !important;
            margin-bottom: 9px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child button:not(.mt-4) {
            width: 36px !important;
            height: 36px !important;
            border-radius: 13px !important;
            font-size: 15px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child input[type="number"] {
            width: 68px !important;
            height: 36px !important;
            border-radius: 13px !important;
            font-size: 16px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .mt-4.w-full {
            height: 38px !important;
            min-height: 38px !important;
            margin-top: 11px !important;
            border-radius: 14px !important;
            font-size: 11px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .mt-4.rounded-2xl {
            margin-top: 11px !important;
            padding: 11px !important;
            border-radius: 16px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .mt-4.rounded-2xl .text-\[10px\] {
            font-size: 8.2px !important;
            line-height: 1.2 !important;
            margin-bottom: 7px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:first-child .mt-2 {
            font-size: 9.5px !important;
            line-height: 1.26 !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:nth-child(2) {
            padding: 17px 20px !important;
            gap: 11px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:nth-child(2) > div {
            border-radius: 19px !important;
        }

        .t9-dispo-category > div:nth-child(2) > div:nth-child(2) > div:first-child {
            padding: 13px 15px !important;
        }

        .t9-dispo-category label,
        .t9-dispo-category .text-\[10px\] {
            font-size: 8.5px !important;
            letter-spacing: .11em !important;
        }

        .t9-dispo-category input,
        .t9-dispo-category select {
            height: 38px !important;
            border-radius: 13px !important;
            font-size: 12.5px !important;
            font-weight: 570 !important;
        }

        .t9-dispo-category .t9-assigned-person-row {
            grid-template-columns: 1.16fr 205px .95fr 38px !important;
            gap: 7px !important;
            padding: 8px !important;
            border-radius: 17px !important;
        }

        .t9-dispo-category .t9-assigned-person-field {
            height: 36px !important;
            border-radius: 12px !important;
            font-size: 12.5px !important;
            padding: 7px 10px !important;
        }

        .t9-dispo-category .t9-assigned-remove-btn {
            height: 36px !important;
            width: 36px !important;
            border-radius: 12px !important;
        }

        .t9-dispo-footer {
            padding: 11px 26px !important;
        }

        .t9-dispo-footer .grid {
            max-width: 800px !important;
            gap: 10px !important;
        }

        .t9-dispo-footer button {
            min-height: 44px !important;
            border-radius: 16px !important;
            padding: 9px 16px !important;
            font-size: 13px !important;
            font-weight: 740 !important;
        }

        @media (max-width: 1200px) {
            .t9-dispo-category {
                grid-template-columns: 1fr !important;
            }

            .t9-dispo-category > div:first-child > div:last-child {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }

            .t9-dispo-category > div:nth-child(2) {
                grid-template-columns: 220px minmax(0,1fr) !important;
            }
        }

        @media (max-width: 900px) {
            .t9-dispo-category > div:first-child > div:last-child {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }

            .t9-dispo-category > div:nth-child(2) {
                grid-template-columns: 1fr !important;
            }

            .t9-dispo-category .t9-assigned-person-row {
                grid-template-columns: 1fr !important;
            }
        }


        /* v8.9.75-light – Modern UI Foundation */
        :root {
            --t9-modern-white:#fff; --t9-modern-soft:#f8fbff; --t9-modern-ink:#0f172a;
            --t9-modern-muted:#64748b; --t9-modern-line:rgba(203,213,225,.82);
            --t9-modern-green:#6cb33f; --t9-modern-green-dark:#4f9130; --t9-modern-blue:#2563eb;
            --t9-modern-shadow-sm:0 10px 28px rgba(15,23,42,.055);
            --t9-modern-shadow:0 20px 60px rgba(15,23,42,.085);
            --t9-modern-shadow-lg:0 34px 105px rgba(15,23,42,.16);
        }
        html { color-scheme: light; }
        body.t9-modern-ui-foundation {
            background:
                radial-gradient(circle at 8% 0%, rgba(108,179,63,.16), transparent 30%),
                radial-gradient(circle at 92% 0%, rgba(37,99,235,.10), transparent 28%),
                linear-gradient(135deg,#fff 0%,#f8fbff 46%,#fff 100%) !important;
            color:var(--t9-modern-ink);
            -webkit-font-smoothing:antialiased;
            text-rendering:optimizeLegibility;
        }
        body.t9-modern-ui-foundation::before {
            content:""; position:fixed; inset:14px; pointer-events:none; border-radius:38px;
            border:1px solid rgba(203,213,225,.46);
            box-shadow:inset 0 1px 0 rgba(255,255,255,.95); z-index:0;
        }
        body.t9-modern-ui-foundation .bg-slate-50,
        body.t9-modern-ui-foundation .bg-gray-50 { background-color:var(--t9-modern-soft)!important; }
        body.t9-modern-ui-foundation .bg-white,
        body.t9-modern-ui-foundation .bg-white\/90,
        body.t9-modern-ui-foundation .bg-white\/95 { background-color:rgba(255,255,255,.94)!important; }
        body.t9-modern-ui-foundation .border-slate-100,
        body.t9-modern-ui-foundation .border-slate-200,
        body.t9-modern-ui-foundation .border-gray-100,
        body.t9-modern-ui-foundation .border-gray-200 { border-color:var(--t9-modern-line)!important; }
        body.t9-modern-ui-foundation .shadow-sm { box-shadow:var(--t9-modern-shadow-sm)!important; }
        body.t9-modern-ui-foundation .shadow-lg,
        body.t9-modern-ui-foundation .shadow-xl { box-shadow:var(--t9-modern-shadow)!important; }
        body.t9-modern-ui-foundation .shadow-2xl { box-shadow:var(--t9-modern-shadow-lg)!important; }
        body.t9-modern-ui-foundation .rounded-xl { border-radius:16px!important; }
        body.t9-modern-ui-foundation .rounded-2xl { border-radius:22px!important; }
        body.t9-modern-ui-foundation .rounded-3xl { border-radius:30px!important; }
        body.t9-modern-ui-foundation .rounded-\[2rem\] { border-radius:34px!important; }
        body.t9-modern-ui-foundation header,
        body.t9-modern-ui-foundation .sticky.top-0 { backdrop-filter:blur(18px); }
        body.t9-modern-ui-foundation button,
        body.t9-modern-ui-foundation a { transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease, color .14s ease; }
        body.t9-modern-ui-foundation button:hover,
        body.t9-modern-ui-foundation a:hover { transform:translateY(-1px); }
        body.t9-modern-ui-foundation button:active,
        body.t9-modern-ui-foundation a:active { transform:translateY(0); }
        body.t9-modern-ui-foundation input,
        body.t9-modern-ui-foundation select,
        body.t9-modern-ui-foundation textarea {
            border-color:rgba(203,213,225,.86)!important; background-color:rgba(255,255,255,.96)!important;
            box-shadow:0 8px 24px rgba(15,23,42,.035);
        }
        body.t9-modern-ui-foundation input:focus,
        body.t9-modern-ui-foundation select:focus,
        body.t9-modern-ui-foundation textarea:focus {
            outline:none!important; border-color:rgba(108,179,63,.62)!important;
            box-shadow:0 0 0 4px rgba(108,179,63,.10),0 8px 24px rgba(15,23,42,.035)!important;
        }
        body.t9-modern-ui-foundation .fixed.inset-0 > .absolute.inset-0 {
            background:rgba(15,23,42,.50)!important; backdrop-filter:blur(16px) saturate(1.08);
        }
        body.t9-modern-ui-foundation aside,
        body.t9-modern-ui-foundation nav { backdrop-filter:blur(16px); }
        body.t9-modern-ui-foundation .uppercase { letter-spacing:.11em; }
        body.t9-modern-ui-foundation .font-black { font-weight:780; }
        body.t9-modern-ui-foundation h1,
        body.t9-modern-ui-foundation h2,
        body.t9-modern-ui-foundation h3 { letter-spacing:-.045em; }
        body.t9-modern-ui-foundation .t9-user-management,
        body.t9-modern-ui-foundation .t9-user-summary-card {
            background:radial-gradient(circle at 0% 0%, rgba(124,58,237,.08), transparent 30%), rgba(255,255,255,.96)!important;
            border-color:rgba(203,213,225,.82)!important; box-shadow:var(--t9-modern-shadow)!important;
        }
        body.t9-modern-ui-foundation .t9-user-management { border-radius:34px!important; }
        body.t9-modern-ui-foundation .t9-user-summary-card { border-radius:22px!important; }
        body.t9-modern-ui-foundation .t9-dispo-modal {
            background:
                radial-gradient(circle at 0% 0%, rgba(108,179,63,.14), transparent 30%),
                radial-gradient(circle at 100% 0%, rgba(37,99,235,.08), transparent 28%),
                linear-gradient(135deg,#fff 0%,#f8fbff 52%,#fff 100%)!important;
            box-shadow:0 40px 120px rgba(15,23,42,.20)!important;
        }
        body.t9-modern-ui-foundation .t9-dispo-category {
            background:rgba(255,255,255,.97)!important; border-color:rgba(203,213,225,.84)!important;
        }
        .t9-modern-boot {
            position:fixed; inset:0; z-index:999999; display:grid; place-items:center; overflow:hidden;
            background:radial-gradient(circle at 50% 42%,rgba(108,179,63,.22),transparent 27%),
                       radial-gradient(circle at 70% 18%,rgba(37,99,235,.10),transparent 24%),
                       linear-gradient(135deg,#fff 0%,#f6fbff 50%,#fff 100%);
            opacity:1; visibility:visible; pointer-events:auto; transition:opacity .75s ease,visibility .75s ease;
        }
        .t9-modern-boot.is-hidden { opacity:0; visibility:hidden; pointer-events:none; }
        .t9-modern-boot::before {
            content:""; position:absolute; width:140vw; height:140vw; max-width:1500px; max-height:1500px; border-radius:999px;
            background:conic-gradient(from 218deg, transparent 0deg, transparent 46deg, rgba(108,179,63,0) 50deg,
                       rgba(108,179,63,.95) 72deg, rgba(37,99,235,.90) 92deg, rgba(108,179,63,0) 118deg, transparent 140deg, transparent 360deg);
            mask:radial-gradient(farthest-side, transparent calc(100% - 18px),#000 calc(100% - 16px),#000 calc(100% - 2px),transparent 100%);
            -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 18px),#000 calc(100% - 16px),#000 calc(100% - 2px),transparent 100%);
            opacity:0; transform:rotate(-100deg) scale(.72); animation:t9ModernBootArc 2.75s cubic-bezier(.12,.82,.16,1) .15s forwards;
        }
        .t9-modern-boot::after {
            content:""; position:absolute; inset:-30%; background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.88) 48%,transparent 59%);
            transform:translateX(-65%) rotate(8deg); opacity:0; animation:t9ModernBootSweep 1.05s ease 1.88s forwards;
        }
        .t9-modern-boot-stage { position:relative; z-index:2; width:min(680px,calc(100vw - 2rem)); min-height:370px; display:grid; place-items:center; }
        .t9-modern-boot-glow { position:absolute; width:330px; height:330px; border-radius:999px; background:radial-gradient(circle,rgba(108,179,63,.22),transparent 63%); filter:blur(6px); transform:scale(.62); opacity:0; animation:t9ModernBootGlow 2s ease .35s forwards; }
        .t9-modern-boot-logo { position:relative; width:118px; height:118px; border-radius:34px; display:grid; place-items:center; background:rgba(255,255,255,.96); border:1px solid rgba(203,213,225,.72); box-shadow:0 28px 80px rgba(15,23,42,.14),0 0 0 10px rgba(255,255,255,.35); overflow:hidden; opacity:0; transform:translateY(18px) scale(.76); animation:t9ModernBootLogo 1s cubic-bezier(.16,1.1,.2,1) .22s forwards; }
        .t9-modern-boot-logo img { width:84%; max-height:84%; object-fit:contain; }
        .t9-modern-boot-spark { position:absolute; width:13px; height:13px; border-radius:999px; background:white; box-shadow:0 0 0 5px rgba(108,179,63,.20),0 0 34px rgba(108,179,63,.80); opacity:0; offset-path:path("M 55 250 C 155 30, 470 20, 625 190"); animation:t9ModernBootSpark 2.75s cubic-bezier(.14,.82,.18,1) .16s forwards; }
        .t9-modern-boot-copy { position:absolute; bottom:24px; text-align:center; opacity:0; transform:translateY(18px); animation:t9ModernBootCopy .75s ease 1.05s forwards; }
        .t9-modern-boot-copy strong { display:block; color:var(--t9-modern-ink); font-size:clamp(32px,5vw,56px); line-height:.92; letter-spacing:-.075em; font-weight:850; }
        .t9-modern-boot-copy strong span { color:var(--t9-modern-green-dark); }
        .t9-modern-boot-copy em { display:block; margin-top:11px; color:var(--t9-modern-muted); font-style:normal; font-size:11px; font-weight:820; letter-spacing:.21em; text-transform:uppercase; }
        .t9-modern-boot-progress { position:absolute; left:50%; bottom:-10px; width:min(380px,calc(100vw - 4rem)); height:8px; transform:translateX(-50%); border-radius:999px; background:rgba(203,213,225,.76); overflow:hidden; opacity:0; animation:t9ModernBootProgress .4s ease 1.42s forwards; }
        .t9-modern-boot-progress i { display:block; height:100%; width:0%; border-radius:inherit; background:linear-gradient(90deg,var(--t9-modern-green),var(--t9-modern-blue)); animation:t9ModernBootBar 1.05s ease 1.52s forwards; }
        @keyframes t9ModernBootArc { 0%{opacity:0;transform:rotate(-105deg) scale(.62)} 16%{opacity:1} 82%{opacity:1;transform:rotate(15deg) scale(1)} 100%{opacity:.9;transform:rotate(24deg) scale(1.02)} }
        @keyframes t9ModernBootSweep { 0%{opacity:0;transform:translateX(-65%) rotate(8deg)} 15%{opacity:.72} 100%{opacity:0;transform:translateX(72%) rotate(8deg)} }
        @keyframes t9ModernBootGlow { 0%{opacity:0;transform:scale(.62)} 45%{opacity:1} 100%{opacity:.85;transform:scale(1.10)} }
        @keyframes t9ModernBootLogo { 0%{opacity:0;transform:translateY(18px) scale(.76);filter:blur(8px)} 70%{opacity:1;transform:translateY(0) scale(1.06);filter:blur(0)} 100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)} }
        @keyframes t9ModernBootSpark { 0%{offset-distance:0%;opacity:0;transform:scale(.6)} 10%{opacity:1} 76%{opacity:1;transform:scale(1.1)} 100%{offset-distance:100%;opacity:0;transform:scale(.55)} }
        @keyframes t9ModernBootCopy { to{opacity:1;transform:translateY(0)} }
        @keyframes t9ModernBootProgress { to{opacity:1} }
        @keyframes t9ModernBootBar { to{width:100%} }
        @media (prefers-reduced-motion:reduce) { .t9-modern-boot,.t9-modern-boot *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important} }
        @media (max-width:760px) {
            body.t9-modern-ui-foundation::before { inset:8px; border-radius:28px; }
            .t9-modern-boot-stage { min-height:330px; }
            .t9-modern-boot-logo { width:104px; height:104px; border-radius:30px; }
        }


        /* v8.9.75 – Heute kritisch öffnet direkt die Dispositionsmaske */
        .t9-dispo-category.t9-pulse-focus {
            outline: 4px solid rgba(108,179,63,.55) !important;
            box-shadow: 0 0 0 9px rgba(108,179,63,.14), 0 22px 70px rgba(15,23,42,.14) !important;
        }



        /* CordiWidget ausgelagert nach CordiWidget.jsx – v8.9.75 */


/* Helios v3.5.16 – Radial Quick Menu unten rechts */
.t9-radial-menu{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:2147482500;
    width:68px;
    height:68px;
    pointer-events:auto;
}
.t9-radial-main{
    position:absolute;
    right:0;
    bottom:0;
    width:64px;
    height:64px;
    border:0;
    border-radius:999px;
    display:grid;
    place-items:center;
    color:#fff;
    background:linear-gradient(135deg,#6cb33f,#4f9130);
    box-shadow:0 22px 60px rgba(15,23,42,.24),0 0 0 8px rgba(108,179,63,.10);
    cursor:pointer;
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.t9-radial-main:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 26px 72px rgba(15,23,42,.30),0 0 0 10px rgba(108,179,63,.13)}
.t9-radial-main i{font-size:24px;transition:transform .18s ease}.t9-radial-menu.open .t9-radial-main i{transform:rotate(45deg)}
.t9-radial-item{
    position:absolute;
    right:7px;
    bottom:7px;
    width:50px;
    height:50px;
    border:1px solid rgba(203,213,225,.86);
    border-radius:999px;
    display:grid;
    place-items:center;
    color:#334155;
    background:rgba(255,255,255,.96);
    box-shadow:0 16px 42px rgba(15,23,42,.18);
    cursor:pointer;
    opacity:0;
    transform:translate(0,0) scale(.76);
    transition:transform .22s cubic-bezier(.2,.9,.2,1),opacity .16s ease,background .16s ease,color .16s ease;
    pointer-events:none;
}
html.dark .t9-radial-item{background:rgba(15,23,42,.96);border-color:rgba(51,65,85,.95);color:#e2e8f0}
.t9-radial-menu.open .t9-radial-item{opacity:1;pointer-events:auto}
.t9-radial-menu.open .t9-radial-item[data-slot="0"]{transform:translate(-82px,-4px) scale(1)}
.t9-radial-menu.open .t9-radial-item[data-slot="1"]{transform:translate(-64px,-70px) scale(1)}
.t9-radial-menu.open .t9-radial-item[data-slot="2"]{transform:translate(-4px,-92px) scale(1)}
.t9-radial-item:hover{background:#eef9e9;color:#477b2b;border-color:rgba(108,179,63,.45);transform:translate(var(--x,0),var(--y,0)) scale(1.05)}
.t9-radial-item i{font-size:18px}.t9-radial-badge{position:absolute;right:-2px;top:-2px;min-width:18px;height:18px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:950;display:grid;place-items:center;border:2px solid #fff}
.t9-radial-label{position:absolute;right:62px;top:50%;transform:translateY(-50%);white-space:nowrap;border-radius:999px;background:rgba(15,23,42,.92);color:#fff;font-size:11px;font-weight:850;padding:6px 9px;opacity:0;pointer-events:none;transition:opacity .14s ease}.t9-radial-item:hover .t9-radial-label{opacity:1}
@media(max-width:760px){.t9-radial-menu{right:16px;bottom:18px}.t9-radial-main{width:58px;height:58px}.t9-radial-menu.open .t9-radial-item[data-slot="0"]{transform:translate(-72px,-4px) scale(1)}.t9-radial-menu.open .t9-radial-item[data-slot="1"]{transform:translate(-56px,-62px) scale(1)}.t9-radial-menu.open .t9-radial-item[data-slot="2"]{transform:translate(-4px,-82px) scale(1)}}


/* Helios v3.5.16.1 – Radial Menü Farb-Polish */
.t9-radial-item.t9-radial-chat{
    background:linear-gradient(135deg,#25d366,#128c4a)!important;
    color:#fff!important;
    border-color:rgba(18,140,74,.32)!important;
    box-shadow:0 18px 44px rgba(18,140,74,.24)!important;
}
.t9-radial-item.t9-radial-chat:hover{
    background:linear-gradient(135deg,#2ee070,#0f7f43)!important;
    color:#fff!important;
}
.t9-radial-item.t9-radial-feedback{
    background:linear-gradient(135deg,#fef3c7,#f59e0b)!important;
    color:#92400e!important;
    border-color:rgba(245,158,11,.44)!important;
    box-shadow:0 18px 44px rgba(245,158,11,.20)!important;
}
.t9-radial-item.t9-radial-feedback:hover{
    background:linear-gradient(135deg,#fde68a,#f97316)!important;
    color:#7c2d12!important;
}
.t9-radial-item.t9-radial-cordi{
    background:#fff!important;
    color:#334155!important;
    overflow:hidden!important;
    padding:0!important;
}
.t9-radial-cordi-img{
    width:46px;
    height:46px;
    border-radius:999px;
    object-fit:cover;
    display:block;
}
.t9-radial-item.t9-radial-cordi:hover{
    border-color:rgba(108,179,63,.50)!important;
    box-shadow:0 18px 46px rgba(108,179,63,.18)!important;
}
.t9-radial-item.t9-radial-cordi i{display:none;}
.t9-radial-main{
    background:linear-gradient(135deg,#6cb33f,#4f9130)!important;
}


/* Helios v3.5.16.2 FORCE – Radial Farben + Cordi Wissen verstecken */
.t9-radial-menu .t9-radial-item.t9-radial-chat,
.t9-radial-menu.open .t9-radial-item.t9-radial-chat {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: #ffffff !important;
    border-color: rgba(18,140,126,.45) !important;
    box-shadow: 0 18px 44px rgba(18,140,126,.26) !important;
}
.t9-radial-menu .t9-radial-item.t9-radial-chat:hover {
    background: linear-gradient(135deg, #2FE879, #075E54) !important;
    color: #ffffff !important;
}
.t9-radial-menu .t9-radial-item.t9-radial-feedback,
.t9-radial-menu.open .t9-radial-item.t9-radial-feedback {
    background: linear-gradient(135deg, #FFE8A3, #F59E0B) !important;
    color: #7C2D12 !important;
    border-color: rgba(245,158,11,.55) !important;
    box-shadow: 0 18px 44px rgba(245,158,11,.24) !important;
}
.t9-radial-menu .t9-radial-item.t9-radial-feedback:hover {
    background: linear-gradient(135deg, #FDE68A, #FB923C) !important;
    color: #7C2D12 !important;
}
.t9-radial-menu .t9-radial-item.t9-radial-cordi,
.t9-radial-menu.open .t9-radial-item.t9-radial-cordi {
    background: #ffffff !important;
    color: transparent !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-color: rgba(203,213,225,.95) !important;
}
.t9-radial-menu .t9-radial-item.t9-radial-cordi i { display: none !important; }
.t9-radial-menu .t9-radial-cordi-img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    display: block !important;
    background: #fff !important;
}
/* Sicherheit: falls irgendwo noch der alte Cordi-Wissen-Knopf gerendert wird, ausblenden. */
.t9-cordi-helper-adminbtn,
#cordiKbAdminOpen {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================================================
   v3.5.22 SAFE – Akute Krankmeldung aus Quickbedarf
   ========================================================= */
.t9-quick-btn.t9-quick-acute {
    border-color: rgba(239, 68, 68, 0.28);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 247, 237, 0.92));
    color: #991b1b;
}
.t9-quick-btn.t9-quick-acute:hover {
    border-color: rgba(239, 68, 68, 0.42);
    box-shadow: 0 14px 32px rgba(239, 68, 68, 0.12);
}
.t9-acute-chip {
    position: relative;
    border-width: 1px;
}
.t9-acute-chip.critical,
.t9-acute-chip.decided.danger {
    color: #991b1b;
    background: linear-gradient(90deg, rgba(254, 226, 226, 0.95), rgba(255, 237, 213, 0.82));
    border-color: rgba(239, 68, 68, 0.48);
}
.t9-acute-chip.danger {
    color: #9a3412;
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.95), rgba(254, 226, 226, 0.72));
    border-color: rgba(249, 115, 22, 0.48);
}
.t9-acute-chip.warning {
    color: #92400e;
    background: rgba(254, 243, 199, 0.72);
    border-color: rgba(245, 158, 11, 0.38);
}
.t9-acute-chip.decided {
    color: #7f1d1d;
    background: linear-gradient(90deg, rgba(254, 226, 226, 0.88), rgba(241, 245, 249, 0.92));
    border-style: dashed;
}
.t9-acute-chip.resolved {
    color: #315f1c;
    background: rgba(108,179,63,.10);
    border-color: rgba(108,179,63,.24);
}
.t9-acute-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-size: 10px;
}
.t9-acute-chip.blink {
    animation: t9AcuteBlink 1.08s ease-in-out infinite;
}
@keyframes t9AcuteBlink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.0); }
    50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.13); }
}
.t9-acute-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 12px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.t9-acute-field input,
.t9-acute-field select,
.t9-acute-field textarea {
    width: 100%;
    border-radius: 1.2rem;
    border: 1px solid rgba(203,213,225,.92);
    background: rgba(255,255,255,.96);
    color: #0f172a;
    padding: 0.9rem 1rem;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: normal;
    text-transform: none;
    outline: none;
}
.t9-acute-info,
.t9-acute-note {
    border-radius: 1.25rem;
    border: 1px dashed rgba(148,163,184,.45);
    background: rgba(248,250,252,.78);
    color: #475569;
    padding: 0.95rem 1rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 700;
}
.t9-acute-summary {
    border-radius: 1.5rem;
    padding: 1rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(203,213,225,.88);
    background: rgba(248,250,252,.86);
}
.t9-acute-summary strong { color: #0f172a; font-size: 16px; font-weight: 950; }
.t9-acute-summary span { font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.t9-acute-summary.critical,
.t9-acute-summary.danger,
.t9-acute-summary.decided { border-color: rgba(239,68,68,.32); background: rgba(254,242,242,.88); }
.t9-acute-summary.warning { border-color: rgba(245,158,11,.35); background: rgba(255,251,235,.88); }
.t9-acute-decision {
    border: 1px solid rgba(203,213,225,.88);
    border-radius: 1.5rem;
    background: rgba(255,255,255,.96);
    padding: 1.05rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    cursor: pointer;
    transition: .16s ease;
}
.t9-acute-decision:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(15,23,42,.09); }
.t9-acute-decision i { font-size: 22px; }
.t9-acute-decision strong { font-weight: 950; color: #0f172a; }
.t9-acute-decision span { font-size: 12px; font-weight: 700; color: #64748b; }
.t9-acute-decision.ok { border-color: rgba(108,179,63,.34); background: rgba(240,253,244,.82); }
.t9-acute-decision.ok i { color: #65a30d; }
.t9-acute-decision.danger { border-color: rgba(239,68,68,.34); background: rgba(254,242,242,.82); }
.t9-acute-decision.danger i { color: #dc2626; }
html.dark .t9-acute-field input,
html.dark .t9-acute-field select,
html.dark .t9-acute-field textarea,
html.dark .t9-acute-decision { background: rgba(15,23,42,.96); color: #f8fafc; border-color: rgba(51,65,85,.88); }

/* =========================================================
   v3.5.22.4 SAFE – Akute Krankmeldung Disposition-Flow
   - Quickbedarf größer, alle 4 Bausteine ohne Scrollbalken
   - Akute Krankmeldung im Quickbedarf deutlich rot
   - Kritisch in der Matrix deutlich rot blinkend
   ========================================================= */
.t9-sidebar {
    grid-template-rows: 340px minmax(230px, 1fr) minmax(230px, 1fr) !important;
}
.t9-quickbedarf-fixed {
    height: 340px !important;
    min-height: 340px !important;
    overflow: visible !important;
}
.t9-quickbedarf-fixed .t9-quick {
    overflow: visible !important;
    max-height: none !important;
    min-height: 0 !important;
    padding-right: 0 !important;
    gap: 10px !important;
}
.t9-quickbedarf-fixed .t9-quick::-webkit-scrollbar {
    display: none !important;
}
.t9-quick-btn.t9-quick-acute {
    border-color: rgba(239, 68, 68, 0.42) !important;
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.98), rgba(255, 237, 213, 0.94)) !important;
    color: #991b1b !important;
    box-shadow: 0 10px 26px rgba(239, 68, 68, 0.08) !important;
}
.t9-quick-btn.t9-quick-acute i {
    color: #dc2626 !important;
}
.t9-quick-btn.t9-quick-acute:hover {
    border-color: rgba(220, 38, 38, 0.58) !important;
    background: linear-gradient(135deg, rgba(254, 202, 202, 0.98), rgba(255, 237, 213, 0.98)) !important;
    box-shadow: 0 16px 38px rgba(239, 68, 68, 0.16) !important;
}
.t9-acute-chip.critical.blink,
.t9-acute-chip.blink.critical {
    color: #7f1d1d !important;
    background: linear-gradient(90deg, rgba(254, 202, 202, 0.98), rgba(254, 226, 226, 0.90)) !important;
    border-color: rgba(220, 38, 38, 0.72) !important;
    animation: t9AcuteCriticalBlink 0.95s ease-in-out infinite !important;
}
@keyframes t9AcuteCriticalBlink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), inset 0 0 0 0 rgba(220, 38, 38, 0.0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18), inset 0 0 0 999px rgba(220, 38, 38, 0.04);
        transform: scale(1.015);
    }
}
.t9-acute-dispo-hint {
    margin-top: 10px;
    border: 1px dashed rgba(108,179,63,.35);
    background: rgba(240,253,244,.72);
    color: #365314;
    border-radius: 18px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* =========================================================
   v3.5.22.5 SAFE – Quickbedarf kompakter
   - 4 Bausteine bleiben sichtbar
   - keine Scrollbalken im Quickbedarf
   - Seitenkarte nicht mehr übergroß
   ========================================================= */
.t9-sidebar {
    grid-template-rows: 292px minmax(230px, 1fr) minmax(230px, 1fr) !important;
}
.t9-quickbedarf-fixed {
    height: 292px !important;
    min-height: 292px !important;
    overflow: hidden !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}
.t9-quickbedarf-fixed .t9-side-title {
    margin-bottom: 9px !important;
}
.t9-quickbedarf-fixed .t9-quick {
    overflow: visible !important;
    max-height: none !important;
    padding-right: 0 !important;
    gap: 8px !important;
}
.t9-quickbedarf-fixed .t9-quick-btn {
    min-height: 48px !important;
    padding: 0.72rem 1rem !important;
    border-radius: 1.15rem !important;
    font-size: 0.92rem !important;
}
.t9-quickbedarf-fixed .t9-quick::-webkit-scrollbar {
    display: none !important;
}
@media (max-width: 1500px) {
    .t9-sidebar {
        grid-template-rows: 282px minmax(220px, 1fr) minmax(220px, 1fr) !important;
    }
    .t9-quickbedarf-fixed {
        height: 282px !important;
        min-height: 282px !important;
    }
    .t9-quickbedarf-fixed .t9-quick-btn {
        min-height: 46px !important;
        padding-top: 0.64rem !important;
        padding-bottom: 0.64rem !important;
    }
}

/* =========================================================
   v3.5.22.6 SAFE – Quickbedarf Feinschliff
   - Text kleiner/ruhiger
   - Box niedriger, aber alle 4 Bausteine sichtbar
   - rechte Seitenleiste unten nicht mehr abgeschnitten
   ========================================================= */
@media (min-width: 1025px) {
    .t9-sidebar {
        grid-template-rows: 250px minmax(190px, 1fr) minmax(190px, 1fr) !important;
        gap: 12px !important;
        padding-bottom: 88px !important; /* Platz für Radial-Menü unten rechts */
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .t9-quickbedarf-fixed {
        height: 250px !important;
        min-height: 250px !important;
        padding: 12px 14px !important;
        overflow: hidden !important;
    }

    .t9-quickbedarf-fixed .t9-side-title {
        margin-bottom: 8px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .t9-quickbedarf-fixed .t9-quick {
        gap: 7px !important;
        overflow: visible !important;
        max-height: none !important;
        padding-right: 0 !important;
    }

    .t9-quickbedarf-fixed .t9-quick-btn,
    .t9-quickbedarf-fixed .t9-quick-row {
        min-height: 40px !important;
        padding: 0.48rem 0.82rem !important;
        border-radius: 1rem !important;
        font-size: 0.78rem !important;
        line-height: 1.15 !important;
        font-weight: 640 !important;
        letter-spacing: -0.01em !important;
    }

    .t9-quickbedarf-fixed .t9-quick-btn i,
    .t9-quickbedarf-fixed .t9-quick-row i {
        font-size: 0.88rem !important;
    }
}

@media (min-width: 1025px) and (max-width: 1500px) {
    .t9-sidebar {
        grid-template-rows: 238px minmax(184px, 1fr) minmax(184px, 1fr) !important;
        gap: 11px !important;
        padding-bottom: 90px !important;
    }

    .t9-quickbedarf-fixed {
        height: 238px !important;
        min-height: 238px !important;
        padding: 11px 13px !important;
    }

    .t9-quickbedarf-fixed .t9-quick {
        gap: 6px !important;
    }

    .t9-quickbedarf-fixed .t9-quick-btn,
    .t9-quickbedarf-fixed .t9-quick-row {
        min-height: 38px !important;
        padding-top: 0.42rem !important;
        padding-bottom: 0.42rem !important;
        font-size: 0.74rem !important;
    }
}

/* Akute Krankmeldung bleibt rot, aber typografisch nicht überdimensioniert */
.t9-quickbedarf-fixed .t9-quick-btn.t9-quick-acute {
    font-size: 0.78rem !important;
    font-weight: 680 !important;
}
@media (min-width: 1025px) and (max-width: 1500px) {
    .t9-quickbedarf-fixed .t9-quick-btn.t9-quick-acute {
        font-size: 0.74rem !important;
    }
}


/* v3.5.23 SAFE – Radial-Menü liegt unter geöffnetem Teamchat, damit der Senden-Button frei bleibt */
.t9-radial-menu { z-index: 140 !important; }

/* Helios v3.6.7 – Disposition Process Center Redesign */
.t9-dispo-process {
  background:
    radial-gradient(circle at 4% 0%, rgba(108,179,63,.10), transparent 30%),
    linear-gradient(180deg, rgba(248,250,252,.98), rgba(255,255,255,.98));
}
.dark .t9-dispo-process {
  background:
    radial-gradient(circle at 4% 0%, rgba(108,179,63,.16), transparent 30%),
    linear-gradient(180deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
}
.t9-dispo-flowline {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.t9-dispo-flowline span {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .7rem;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(226,232,240,.95);
  color:#64748b;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.t9-dispo-flowline i { color:#6cb33f; }
.dark .t9-dispo-flowline span {
  background:rgba(15,23,42,.75);
  border-color:rgba(51,65,85,.85);
  color:#cbd5e1;
}
.t9-dispo-process-card {
  background:rgba(255,255,255,.94);
  border-color:#e2e8f0;
  box-shadow:0 18px 44px rgba(15,23,42,.06);
}
.t9-dispo-process-card.is-open { border-color:rgba(239,68,68,.22); }
.t9-dispo-process-card.is-covered { border-color:rgba(108,179,63,.28); }
.dark .t9-dispo-process-card {
  background:rgba(15,23,42,.92);
  border-color:#1e293b;
}
.t9-dispo-card-head {
  background:linear-gradient(90deg, rgba(248,250,252,.97), rgba(255,255,255,.95));
}
.t9-dispo-process-card.is-open .t9-dispo-card-head {
  background:linear-gradient(90deg, rgba(254,242,242,.9), rgba(255,255,255,.95));
}
.t9-dispo-process-card.is-covered .t9-dispo-card-head {
  background:linear-gradient(90deg, rgba(240,253,244,.92), rgba(255,255,255,.95));
}
.dark .t9-dispo-card-head,
.dark .t9-dispo-process-card.is-open .t9-dispo-card-head,
.dark .t9-dispo-process-card.is-covered .t9-dispo-card-head {
  background:linear-gradient(90deg, rgba(15,23,42,.98), rgba(2,6,23,.92));
}
.t9-dispo-status-wrap {
  min-width:min(100%, 440px);
}
.t9-dispo-status-title {
  margin-bottom:.45rem;
  text-align:right;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#94a3b8;
}
.t9-dispo-status-actions {
  justify-content:flex-end;
}
.t9-dispo-status-actions button {
  border-radius:999px !important;
  padding:.55rem .85rem !important;
}
.t9-dispo-workflow > div:first-child {
  background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.72));
}
.dark .t9-dispo-workflow > div:first-child {
  background:linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.65));
}
.t9-dispo-footer {
  box-shadow:0 -18px 44px rgba(15,23,42,.05);
}
@media (max-width: 980px) {
  .t9-dispo-status-title { text-align:left; }
  .t9-dispo-status-actions { justify-content:flex-start; }
}


/* Helios v3.6.7.1 – Disposition Fokus-Modus */
.t9-dispo-focus-layout{
    display:grid;
    grid-template-columns:minmax(260px,330px) minmax(0,1fr);
    gap:18px;
    align-items:start;
}
.t9-dispo-focus-list{
    position:sticky;
    top:0;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius:28px;
    background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(255,255,255,.92));
    border:1px solid rgba(203,213,225,.7);
    box-shadow:0 18px 50px rgba(15,23,42,.06);
}
.t9-dispo-focus-list-title{
    padding:4px 6px 8px;
    font-size:10px;
    line-height:1;
    font-weight:950;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#94a3b8;
}
.t9-dispo-focus-item{
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    text-align:left;
    padding:13px;
    border-radius:22px;
    border:1px solid rgba(226,232,240,.9);
    background:rgba(255,255,255,.86);
    color:#1e293b;
    transition:.18s ease;
}
.t9-dispo-focus-item:hover{
    transform:translateY(-1px);
    border-color:rgba(108,179,63,.35);
    box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.t9-dispo-focus-item.is-active{
    border-color:rgba(108,179,63,.65);
    background:linear-gradient(135deg,rgba(108,179,63,.12),rgba(255,255,255,.96) 55%);
    box-shadow:inset 4px 0 0 #6cb33f,0 18px 45px rgba(108,179,63,.14);
}
.t9-dispo-focus-item-icon{
    width:46px;height:46px;border-radius:18px;
    display:grid;place-items:center;
    background:#fff;border:1px solid rgba(226,232,240,.9);
    box-shadow:0 10px 25px rgba(15,23,42,.06);
}
.t9-dispo-focus-item-icon i{font-size:18px;}
.t9-dispo-focus-item-main{min-width:0;display:flex;flex-direction:column;gap:3px;}
.t9-dispo-focus-item-main strong{font-size:15px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#162033;}
.t9-dispo-focus-item-main em{font-size:11px;font-style:normal;font-weight:850;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.t9-dispo-focus-badge{
    padding:7px 9px;border-radius:999px;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;
    background:#f1f5f9;color:#64748b;
}
.t9-dispo-focus-badge.ok{background:rgba(108,179,63,.12);color:#5a9632;}
.t9-dispo-focus-badge.alert{background:#fee2e2;color:#dc2626;}

.t9-dispo-focus-badge.rejected,.t9-dispo-focus-badge.red{background:#fee2e2;color:#dc2626;}
.t9-dispo-focus-badge.partial{background:#fff7ed;color:#c2410c;}
.t9-dispo-focus-badge.processing,.t9-dispo-focus-badge.blue{background:#dbeafe;color:#2563eb;}
.t9-dispo-focus-item.is-red{border-color:rgba(239,68,68,.35);background:linear-gradient(135deg,rgba(239,68,68,.08),rgba(255,255,255,.96) 55%);}
.t9-dispo-focus-item.is-partial{border-color:rgba(245,158,11,.35);background:linear-gradient(135deg,rgba(245,158,11,.09),rgba(255,255,255,.96) 55%);}
.t9-dispo-focus-item.is-blue{border-color:rgba(37,99,235,.28);background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(255,255,255,.96) 55%);}
.t9-dispo-focus-panel.is-red{box-shadow:inset 0 5px 0 #ef4444,0 22px 70px rgba(15,23,42,.08);}
.t9-dispo-focus-panel.is-partial{box-shadow:inset 0 5px 0 #f59e0b,0 22px 70px rgba(15,23,42,.08);}
.t9-dispo-focus-panel.is-blue{box-shadow:inset 0 5px 0 #2563eb,0 22px 70px rgba(15,23,42,.08);}
.t9-dispo-focus-panel.is-green{box-shadow:inset 0 5px 0 #6cb33f,0 22px 70px rgba(15,23,42,.08);}
.t9-dispo-focus-panel.is-new-request{box-shadow:inset 0 5px 0 rgba(239,68,68,.72),0 22px 70px rgba(15,23,42,.08);}

.t9-dispo-focus-panel{
    border-radius:30px;
    border:1px solid rgba(203,213,225,.8);
    background:rgba(255,255,255,.94);
    box-shadow:0 22px 70px rgba(15,23,42,.08);
    overflow:hidden;
}
.t9-dispo-focus-panel.is-open{box-shadow:inset 0 5px 0 rgba(239,68,68,.72),0 22px 70px rgba(15,23,42,.08);}
.t9-dispo-focus-panel.is-covered{box-shadow:inset 0 5px 0 #6cb33f,0 22px 70px rgba(15,23,42,.08);}
.t9-dispo-focus-panel-head{
    display:flex;align-items:center;justify-content:space-between;gap:18px;
    padding:22px 24px;
    background:linear-gradient(135deg,rgba(108,179,63,.08),rgba(255,255,255,.98) 55%,rgba(248,250,252,.92));
    border-bottom:1px solid rgba(226,232,240,.8);
}
.t9-dispo-focus-panel-icon{
    width:56px;height:56px;border-radius:21px;display:grid;place-items:center;
    background:#fff;border:1px solid rgba(226,232,240,.9);
    box-shadow:0 14px 32px rgba(15,23,42,.07);
}
.t9-dispo-focus-panel-icon i{font-size:22px;}
.t9-dispo-focus-kpis{display:grid;grid-template-columns:repeat(3,minmax(92px,1fr));gap:10px;}
.t9-dispo-focus-kpis span{
    padding:12px 14px;border-radius:18px;background:#fff;border:1px solid rgba(226,232,240,.9);
    display:flex;flex-direction:column;gap:2px;min-width:0;
}
.t9-dispo-focus-kpis b{font-size:24px;line-height:1;font-weight:950;color:#162033;}
.t9-dispo-focus-kpis em{font-size:9px;font-style:normal;text-transform:uppercase;letter-spacing:.16em;font-weight:950;color:#94a3b8;}
.t9-dispo-focus-kpis .is-alert b{color:#dc2626;}.t9-dispo-focus-kpis .is-ok b{color:#5a9632;}
.t9-dispo-focus-statusbar{
    display:flex;align-items:center;justify-content:space-between;gap:14px;
    margin:18px 24px 0;padding:14px 16px;border-radius:20px;
    background:#f8fafc;border:1px solid rgba(226,232,240,.9);
}
.t9-dispo-focus-statusbar strong{display:block;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.14em;color:#64748b;}
.t9-dispo-focus-statusbar span{display:block;margin-top:2px;font-size:12px;font-weight:750;color:#94a3b8;}
.t9-dispo-focus-actions{
    display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px 24px 0;
}
.t9-dispo-decision-card{
    border-radius:24px;border:1px solid rgba(226,232,240,.9);background:#f8fafc;padding:18px;
}
.t9-dispo-decision-card.primary{background:linear-gradient(135deg,rgba(108,179,63,.10),rgba(248,250,252,.95));border-color:rgba(108,179,63,.20);}
.t9-dispo-decision-card.warning{background:linear-gradient(135deg,rgba(245,158,11,.12),rgba(255,251,235,.75));border-color:rgba(245,158,11,.24);}
.t9-dispo-decision-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px;}
.t9-dispo-decision-title>span{width:30px;height:30px;border-radius:999px;background:#fff;border:1px solid rgba(226,232,240,.9);display:grid;place-items:center;font-weight:950;color:#64748b;}
.t9-dispo-decision-title strong{display:block;font-size:15px;font-weight:950;color:#162033;}.t9-dispo-decision-title em{display:block;font-size:12px;font-style:normal;font-weight:750;color:#94a3b8;margin-top:2px;}
.t9-dispo-stepper-large{display:grid;grid-template-columns:56px minmax(80px,1fr) 56px;height:54px;border-radius:18px;overflow:hidden;border:1px solid rgba(108,179,63,.22);background:#fff;}
.t9-dispo-stepper-large button{font-size:22px;font-weight:950;color:#5a9632;background:#fff;border:0;}
.t9-dispo-stepper-large input{border:0;border-left:1px solid rgba(226,232,240,.9);border-right:1px solid rgba(226,232,240,.9);text-align:center;font-size:24px;font-weight:950;color:#162033;background:#fff;}
.t9-dispo-stepper-large.amber{border-color:rgba(245,158,11,.28);}.t9-dispo-stepper-large.amber button{color:#b45309;}
.t9-dispo-primary-action{margin-top:12px;width:100%;border:0;border-radius:16px;padding:12px 14px;background:rgba(108,179,63,.16);color:#5a9632;font-weight:950;font-size:13px;display:flex;align-items:center;justify-content:center;gap:8px;}
.t9-dispo-decision-card p{margin:11px 2px 0;font-size:11px;line-height:1.35;font-weight:750;color:#b45309;}
.t9-dispo-focus-note,.t9-dispo-focus-people{margin:18px 24px 0;padding:18px;border-radius:24px;background:#f8fafc;border:1px solid rgba(226,232,240,.9);}
.t9-dispo-focus-note label,.t9-dispo-focus-people-head div{font-size:10px;text-transform:uppercase;letter-spacing:.16em;font-weight:950;color:#5a9632;display:flex;gap:8px;align-items:center;margin-bottom:10px;}
.t9-dispo-focus-note input{width:100%;border-radius:16px;border:1px solid rgba(203,213,225,.9);background:#fff;padding:12px 14px;font-size:14px;font-weight:750;color:#162033;outline:none;}
.t9-dispo-focus-note input:focus{border-color:rgba(108,179,63,.5);box-shadow:0 0 0 4px rgba(108,179,63,.10);}
.t9-dispo-focus-people-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}.t9-dispo-focus-people-head span{font-size:11px;font-weight:950;color:#94a3b8;}
.t9-dispo-empty-people{border:1px dashed rgba(203,213,225,.9);border-radius:18px;padding:20px;text-align:center;font-size:13px;font-style:italic;font-weight:700;color:#94a3b8;background:#fff;}
.t9-dispo-history-link{margin:16px 24px 22px;border:0;background:transparent;color:#64748b;font-size:12px;font-weight:900;display:inline-flex;align-items:center;gap:8px;}.t9-dispo-history-link:hover{color:#2563eb;}
@media (max-width:1180px){.t9-dispo-focus-layout{grid-template-columns:1fr}.t9-dispo-focus-list{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));}.t9-dispo-focus-list-title{grid-column:1/-1}.t9-dispo-focus-actions{grid-template-columns:1fr}.t9-dispo-focus-panel-head,.t9-dispo-focus-statusbar{flex-direction:column;align-items:stretch}.t9-dispo-focus-kpis{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.t9-dispo-focus-kpis{grid-template-columns:1fr}.t9-dispo-focus-item{grid-template-columns:42px minmax(0,1fr)}.t9-dispo-focus-badge{grid-column:2}.t9-dispo-focus-panel-head,.t9-dispo-focus-actions,.t9-dispo-focus-statusbar,.t9-dispo-focus-note,.t9-dispo-focus-people{margin-left:14px;margin-right:14px}.t9-dispo-focus-actions{padding-left:14px;padding-right:14px}.t9-dispo-focus-panel-head{padding:18px 14px}.t9-dispo-stepper-large{grid-template-columns:52px 1fr 52px}}
.dark .t9-dispo-focus-list,.dark .t9-dispo-focus-panel{background:rgba(15,23,42,.96);border-color:rgba(51,65,85,.9);}.dark .t9-dispo-focus-item,.dark .t9-dispo-focus-kpis span,.dark .t9-dispo-focus-item-icon,.dark .t9-dispo-focus-panel-icon,.dark .t9-dispo-empty-people,.dark .t9-dispo-stepper-large,.dark .t9-dispo-stepper-large button,.dark .t9-dispo-stepper-large input,.dark .t9-dispo-focus-note input{background:#0f172a;border-color:#334155;color:#e2e8f0}.dark .t9-dispo-focus-item-main strong,.dark .t9-dispo-focus-kpis b,.dark .t9-dispo-decision-title strong{color:#f8fafc}.dark .t9-dispo-focus-statusbar,.dark .t9-dispo-decision-card,.dark .t9-dispo-focus-note,.dark .t9-dispo-focus-people{background:rgba(2,6,23,.38);border-color:#334155}

/* Helios v3.6.7.2 – automatischer Prozessstatus in der Fokus-Disposition */
.t9-dispo-focus-statusbar.auto-status {
    border-width: 1px;
    align-items: center;
}
.t9-dispo-focus-statusbar.auto-status.new-request {
    background: linear-gradient(90deg, rgba(248,250,252,.96), rgba(241,245,249,.88));
    border-color: rgba(148,163,184,.32);
}
.t9-dispo-focus-statusbar.auto-status.blue {
    background: linear-gradient(90deg, rgba(239,246,255,.98), rgba(255,255,255,.92));
    border-color: rgba(37,99,235,.22);
}
.t9-dispo-focus-statusbar.auto-status.green {
    background: linear-gradient(90deg, rgba(240,253,244,.98), rgba(255,255,255,.92));
    border-color: rgba(108,179,63,.30);
}
.t9-dispo-focus-statusbar.auto-status.partial {
    background: linear-gradient(90deg, rgba(240,253,244,.96), rgba(255,247,237,.95));
    border-color: rgba(251,146,60,.36);
}
.t9-dispo-focus-statusbar.auto-status.red {
    background: linear-gradient(90deg, rgba(254,242,242,.98), rgba(255,255,255,.92));
    border-color: rgba(239,68,68,.26);
}
.t9-dispo-status-auto {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.t9-dispo-status-auto em {
    font-size: 10px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 900;
    color: #94a3b8;
}
.t9-auto-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .01em;
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
    white-space: nowrap;
}
.t9-auto-status-pill.new-request {
    background: #ffffff;
    color: #64748b;
    border-color: rgba(203,213,225,.9);
}
.t9-auto-status-pill.blue {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 14px 26px rgba(37,99,235,.18);
}
.t9-auto-status-pill.green {
    background: #6cb33f;
    color: #ffffff;
    border-color: #6cb33f;
    box-shadow: 0 14px 26px rgba(108,179,63,.20);
}
.t9-auto-status-pill.partial {
    background: linear-gradient(90deg, #6cb33f, #f59e0b);
    color: #ffffff;
    border-color: rgba(245,158,11,.55);
    box-shadow: 0 14px 26px rgba(245,158,11,.18);
}
.t9-auto-status-pill.red {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 14px 26px rgba(239,68,68,.18);
}
.dark .t9-dispo-focus-statusbar.auto-status.new-request,
.dark .t9-dispo-focus-statusbar.auto-status.blue,
.dark .t9-dispo-focus-statusbar.auto-status.green,
.dark .t9-dispo-focus-statusbar.auto-status.partial,
.dark .t9-dispo-focus-statusbar.auto-status.red {
    background: rgba(15,23,42,.84);
}


/* Helios v3.6.7.4 – Prozessstatus sauber mittig + Final-Fixier-Hinweis */
.t9-dispo-focus-statusbar.auto-status {
    min-height: 76px;
    align-items: center !important;
}
.t9-dispo-focus-statusbar.auto-status > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
}
.t9-dispo-focus-statusbar.auto-status > div:first-child strong,
.t9-dispo-focus-statusbar.auto-status > div:first-child span {
    line-height: 1.25;
}
.t9-dispo-status-auto {
    align-self: center;
}
.t9-dispo-footer button:disabled {
    filter: grayscale(.15);
}

/* Helios v3.6.7.4.1 – Prozessstatus-Pill exakt vertikal zentriert */
.t9-dispo-focus-statusbar.auto-status {
    display: flex;
    align-items: center !important;
}
.t9-dispo-status-auto {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 14px;
    min-height: 48px;
}
.t9-auto-status-pill {
    height: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 20px !important;
}
.t9-auto-status-pill i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1 !important;
    margin: 0;
    transform: translateY(0);
}
.t9-dispo-status-auto em {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px;
    line-height: 1 !important;
    margin: 0;
}
@media (max-width:1180px) {
    .t9-dispo-status-auto {
        justify-content: flex-start;
    }
}


/* Helios v3.6.7.4.8 – Matrix Finalstatus-Farblogik */
.t9-chip.covered-working {
    color: #14532d;
    background: linear-gradient(90deg, rgba(37,99,235,.12) 0%, rgba(108,179,63,.18) 72%);
    border-color: rgba(59,130,246,.24);
    box-shadow: inset 4px 0 0 rgba(37,99,235,.65), 0 8px 18px rgba(108,179,63,.08);
}
.t9-chip.covered-working .t9-dot {
    background: linear-gradient(135deg, #2563eb, #6cb33f);
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.t9-chip.partial-working {
    color: #92400e;
    background: linear-gradient(90deg, rgba(37,99,235,.11) 0%, rgba(245,158,11,.18) 72%);
    border-color: rgba(245,158,11,.30);
    box-shadow: inset 4px 0 0 rgba(37,99,235,.62), 0 8px 18px rgba(245,158,11,.08);
}
.t9-chip.partial-working .t9-dot {
    background: linear-gradient(135deg, #2563eb, #f59e0b);
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.t9-chip.rejected-working {
    color: #991b1b;
    background: linear-gradient(90deg, rgba(37,99,235,.11) 0%, rgba(239,68,68,.17) 72%);
    border-color: rgba(239,68,68,.30);
    box-shadow: inset 4px 0 0 rgba(37,99,235,.62), 0 8px 18px rgba(239,68,68,.08);
}
.t9-chip.rejected-working .t9-dot {
    background: linear-gradient(135deg, #2563eb, #ef4444);
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
html.dark .t9-chip.covered-working {
    color: #bbf7d0;
    background: linear-gradient(90deg, rgba(37,99,235,.20) 0%, rgba(108,179,63,.18) 75%);
    border-color: rgba(74,222,128,.26);
}
html.dark .t9-chip.partial-working {
    color: #fde68a;
    background: linear-gradient(90deg, rgba(37,99,235,.20) 0%, rgba(245,158,11,.20) 75%);
    border-color: rgba(245,158,11,.32);
}
html.dark .t9-chip.rejected-working {
    color: #fecaca;
    background: linear-gradient(90deg, rgba(37,99,235,.20) 0%, rgba(239,68,68,.20) 75%);
    border-color: rgba(239,68,68,.34);
}


/* Helios v3.6.7.4.9 – Kompakte Matrix-Farblegende */
.t9-status-legend-compact {
    margin: 12px auto 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    max-width: 1180px;
}
.t9-status-legend-compact .t9-status-key {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.74);
    box-shadow: 0 8px 20px rgba(15,23,42,.035);
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .02em;
    text-transform: none;
    white-space: nowrap;
}
.t9-status-legend-compact .t9-status-key i {
    width: 28px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: inset 0 0 0 1px rgba(15,23,42,.06), 0 3px 10px rgba(15,23,42,.08);
    flex: 0 0 auto;
}
.t9-status-legend-compact .t9-status-key.final i { background: linear-gradient(135deg, #6cb33f, #84cc16); }
.t9-status-legend-compact .t9-status-key.processing i { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.t9-status-legend-compact .t9-status-key.open i { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.t9-status-legend-compact .t9-status-key.partial i { background: linear-gradient(135deg, #f59e0b, #fb923c); }
.t9-status-legend-compact .t9-status-key.rejected i { background: linear-gradient(135deg, #dc2626, #f87171); }
.t9-status-legend-compact .t9-status-key.covered-working i { background: linear-gradient(90deg, #2563eb 0%, #6cb33f 76%); }
.t9-status-legend-compact .t9-status-key.partial-working i { background: linear-gradient(90deg, #2563eb 0%, #f59e0b 76%); }
html.dark .t9-status-legend-compact .t9-status-key {
    background: rgba(15,23,42,.68);
    border-color: rgba(148,163,184,.18);
    color: #cbd5e1;
}
@media (max-width: 760px) {
    .t9-status-legend-compact { justify-content: flex-start; gap: 6px; }
    .t9-status-legend-compact .t9-status-key { padding: 5px 8px; font-size: 10px; }
    .t9-status-legend-compact .t9-status-key i { width: 24px; height: 12px; }
}

/* =========================================================
   v3.6.8.1 SAFE – Akut nicht ersetzbar als kompakter Eckhinweis
   ========================================================= */
.t9-cell {
    position: relative;
}
.t9-acute-corner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid rgba(239, 68, 68, 0.32);
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.96), rgba(255, 247, 237, 0.94));
    color: #dc2626;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.10), inset 0 1px 0 rgba(255,255,255,0.72);
    font-size: 12px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.t9-acute-corner-badge:hover {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(239, 68, 68, 0.50);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.16), inset 0 1px 0 rgba(255,255,255,0.82);
}
.t9-acute-corner-badge span {
    min-width: 13px;
    height: 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -5px;
    margin-top: -12px;
    padding: 0 4px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(239,68,68,.25);
}
html.dark .t9-acute-corner-badge {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.82), rgba(69, 26, 3, 0.72));
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}


/* v3.6.9 SAFE – Cockpit Sidebar Redesign / Quickbedarf Topbar */
.t9-quick-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(148,163,184,.22);
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(240,253,244,.58));
    backdrop-filter: blur(18px) saturate(1.16);
    border-radius: 28px;
    padding: 10px 12px;
    box-shadow: 0 18px 48px rgba(15,23,42,.055);
}
.t9-quick-topbar-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 170px;
    color: #334155;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
    white-space: nowrap;
}
.t9-quick-topbar-head > i { color: #6cb33f; font-size: 14px; }
.t9-quick-topbar-head small {
    display: inline-block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: none;
    margin-left: 4px;
}
.t9-quick-topbar-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(118px, 1fr));
    gap: 8px;
    min-width: 0;
}
.t9-quick-tool {
    min-width: 0;
    height: 50px;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,.24);
    background: rgba(255,255,255,.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(15,23,42,.045);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px 7px 8px;
    cursor: grab;
    user-select: none;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.t9-quick-tool:hover {
    transform: translateY(-1px);
    border-color: rgba(108,179,63,.36);
    box-shadow: 0 16px 36px rgba(15,23,42,.075);
}
.t9-quick-tool:active { cursor: grabbing; transform: scale(.985); }
.t9-quick-tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 8px 20px rgba(15,23,42,.055);
    font-size: 18px;
}
.t9-quick-tool.op .t9-quick-tool-icon { color: #6cb33f; background: linear-gradient(135deg,#fff,#f0fdf4); }
.t9-quick-tool.anae .t9-quick-tool-icon { color: #2563eb; background: linear-gradient(135deg,#fff,#eff6ff); }
.t9-quick-tool.arzt .t9-quick-tool-icon { color: #9333ea; background: linear-gradient(135deg,#fff,#faf5ff); }
.t9-quick-tool.acute {
    border-color: rgba(239,68,68,.24);
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(254,242,242,.92));
}
.t9-quick-tool.acute .t9-quick-tool-icon { color: #ef4444; background: linear-gradient(135deg,#fff,#fee2e2); }
.t9-quick-tool-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 950;
    color: #1e293b;
}
.t9-quick-tool.acute .t9-quick-tool-label { color: #991b1b; }
.t9-quick-grip {
    margin-left: auto;
    color: #cbd5e1;
    font-size: 13px;
}
.t9-sidebar {
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: minmax(170px, .82fr) minmax(300px, 1.18fr) !important;
    gap: 14px !important;
    min-height: 0 !important;
}
.t9-workspace {
    grid-template-columns: minmax(0, 1fr) 338px !important;
}
.t9-infoboard-fixed,
.t9-critical-sidebar-fixed {
    min-height: 0 !important;
}
.t9-critical-mini {
    border-radius: 20px !important;
    padding: 13px 14px !important;
}
.t9-critical-mini strong { font-size: 12.5px !important; }
.t9-critical-mini p { font-size: 11.5px !important; }
.t9-infoboard-fixed .t9-side-scroll,
.t9-critical-sidebar-fixed .t9-side-scroll { flex: 1 1 auto !important; }

html.dark .t9-quick-topbar,
html.dark .t9-quick-tool {
    background: rgba(15,23,42,.78);
    border-color: rgba(51,65,85,.86);
}
html.dark .t9-quick-tool-label,
html.dark .t9-quick-topbar-head { color: #e2e8f0; }
html.dark .t9-quick-tool-icon { background: #020617; border-color: rgba(51,65,85,.9); }

@media (max-width: 1280px) {
    .t9-quick-topbar { grid-template-columns: 1fr; }
    .t9-quick-topbar-head { min-width: 0; }
    .t9-quick-topbar-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .t9-quick-tool-label { font-size: 11px; }
}
@media (max-width: 1024px) {
    .t9-workspace { grid-template-columns: 1fr !important; }
    .t9-sidebar { display: flex !important; overflow: visible !important; }
    .t9-quick-topbar-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .t9-quick-topbar-actions { grid-template-columns: 1fr 1fr; }
    .t9-quick-topbar-head small { display: none; }
    .t9-quick-tool { height: 48px; }
}

/* v3.6.9.1 SAFE – Quickbedarf direkt in der Kennzahlenleiste */
.t9-kpis {
    grid-template-columns: repeat(4, minmax(135px, 1fr)) minmax(260px, .82fr) !important;
    align-items: stretch !important;
}
.t9-kpi-quickdock {
    padding: 10px 12px !important;
    min-height: 72px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(240,253,244,.72)) !important;
}
.t9-kpi-quickdock::after {
    background: rgba(108,179,63,.10) !important;
}
.t9-quickdock-label {
    margin: 0 !important;
    line-height: 1 !important;
}
.t9-quickdock-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.t9-quickdock-tool {
    min-width: 0;
    height: 34px;
    border-radius: 15px;
    border: 1px solid rgba(148,163,184,.26);
    background: rgba(255,255,255,.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 6px;
    cursor: grab;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 20px rgba(15,23,42,.045);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.t9-quickdock-tool:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15,23,42,.07);
    border-color: rgba(108,179,63,.35);
}
.t9-quickdock-tool:active { cursor: grabbing; transform: scale(.985); }
.t9-quickdock-icon {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(148,163,184,.18);
    font-size: 13px;
}
.t9-quickdock-tool.op .t9-quickdock-icon { color: #6cb33f; }
.t9-quickdock-tool.anae .t9-quickdock-icon { color: #2563eb; }
.t9-quickdock-tool.arzt .t9-quickdock-icon { color: #9333ea; }
.t9-quickdock-tool.acute {
    border-color: rgba(239,68,68,.28);
    background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(254,242,242,.92));
}
.t9-quickdock-tool.acute .t9-quickdock-icon { color: #ef4444; }
.t9-quickdock-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 950;
    color: #1e293b;
    line-height: 1;
}
.t9-quickdock-tool.acute .t9-quickdock-text { color: #991b1b; }
.t9-quickdock-hint {
    position: relative;
    z-index: 1;
    font-size: 8.5px;
    font-weight: 850;
    color: #94a3b8;
    letter-spacing: .035em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1500px) {
    .t9-kpis { grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(220px, .76fr) !important; }
    .t9-quickdock-text { display: none; }
    .t9-quickdock-actions { gap: 5px; }
    .t9-quickdock-tool { padding: 4px; }
}
@media (max-width: 1180px) {
    .t9-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .t9-kpi-quickdock { grid-column: 1 / -1; }
    .t9-quickdock-text { display: inline; }
}
@media (max-width: 640px) {
    .t9-quickdock-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .t9-quickdock-text { display: none; }
    .t9-kpi-quickdock { min-height: 68px !important; }
}

html.dark .t9-kpi-quickdock,
html.dark .t9-quickdock-tool {
    background: rgba(15,23,42,.78) !important;
    border-color: rgba(51,65,85,.86) !important;
}
html.dark .t9-quickdock-text { color: #e2e8f0; }
html.dark .t9-quickdock-icon { background: #020617; border-color: rgba(51,65,85,.9); }


/* v3.6.9.2 SAFE – Quickbedarf bündig zur rechten Seitenleiste + Icon-only */
.t9-kpis.t9-kpis-aligned {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 338px !important;
    gap: 12px !important;
    align-items: stretch !important;
}
.t9-kpi-metrics {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.t9-kpi-metrics .t9-kpi,
.t9-kpi-quickdock-icons {
    min-height: 72px !important;
}
.t9-kpi-quickdock-icons {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(240,253,244,.76)) !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-label {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    font-size: 9.5px !important;
    letter-spacing: .12em !important;
    white-space: nowrap !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool {
    width: 100% !important;
    height: 38px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 18px !important;
    display: grid !important;
    place-items: center !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-text,
.t9-kpi-quickdock-icons .t9-quickdock-hint {
    display: none !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool.op {
    border-color: rgba(108,179,63,.26) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,253,244,.92)) !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool.anae {
    border-color: rgba(37,99,235,.24) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(239,246,255,.94)) !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool.arzt {
    border-color: rgba(147,51,234,.24) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(250,245,255,.94)) !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool.acute {
    border-color: rgba(239,68,68,.32) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(254,242,242,.95)) !important;
}

@media (max-width: 1180px) {
    .t9-kpis.t9-kpis-aligned {
        grid-template-columns: 1fr !important;
    }
    .t9-kpi-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .t9-kpi-quickdock-icons {
        width: 100% !important;
    }
}
@media (max-width: 640px) {
    .t9-kpi-metrics { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .t9-kpi-quickdock-icons .t9-quickdock-actions { gap: 6px !important; }
    .t9-kpi-quickdock-icons .t9-quickdock-tool { height: 34px !important; }
    .t9-kpi-quickdock-icons .t9-quickdock-icon { width: 27px !important; height: 27px !important; font-size: 13px !important; }
}


/* Helios v3.6.9.3 SAFE – Quickbedarf Icon-Tooltips */
.t9-kpi-quickdock-icons .t9-quickdock-tool {
    position: relative !important;
    overflow: visible !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    min-width: 180px;
    max-width: 260px;
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .94);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .01em;
    text-align: center;
    white-space: normal;
    box-shadow: 0 14px 34px rgba(15,23,42,.22);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity .14s ease, transform .14s ease;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%) translateY(4px) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(15, 23, 42, .94);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
    transition: opacity .14s ease, transform .14s ease;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:hover::after,
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:focus-visible::after,
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:hover::before,
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:hover::before,
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:focus-visible::before {
    transform: translateX(-50%) translateY(0) rotate(45deg);
}
.t9-kpi-quickdock-icons .t9-quickdock-tool.acute[data-tooltip]::after,
.t9-kpi-quickdock-icons .t9-quickdock-tool.acute[data-tooltip]::before {
    background: rgba(127, 29, 29, .95);
}
@media (max-width: 900px) {
    .t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]::after,
    .t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]::before {
        display: none !important;
    }
}


/* Helios v3.6.9.4 SAFE – Akut nur heute + Quickbedarf Tooltips nicht verdeckt */
.t9-kpis,
.t9-kpis.t9-kpis-aligned,
.t9-kpi-quickdock-icons,
.t9-kpi-quickdock-icons .t9-quickdock-actions,
.t9-kpi-quickdock-icons .t9-quickdock-tool {
    overflow: visible !important;
}
.t9-kpi-quickdock-icons {
    position: relative !important;
    z-index: 80 !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]::after {
    top: calc(100% + 10px) !important;
    bottom: auto !important;
    transform: translateX(-50%) translateY(-4px) !important;
    z-index: 2147483000 !important;
    min-width: 210px !important;
    max-width: 300px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]::before {
    top: calc(100% + 4px) !important;
    bottom: auto !important;
    transform: translateX(-50%) translateY(-4px) rotate(45deg) !important;
    z-index: 2147482999 !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:hover::after,
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:focus-visible::after {
    transform: translateX(-50%) translateY(0) !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:hover::before,
.t9-kpi-quickdock-icons .t9-quickdock-tool[data-tooltip]:focus-visible::before {
    transform: translateX(-50%) translateY(0) rotate(45deg) !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool.acute {
    position: relative !important;
}
.t9-kpi-quickdock-icons .t9-quickdock-tool.acute::after {
    border: 1px solid rgba(248,113,113,.25) !important;
}


/* Helios v3.6.9.5 – schöner Quickbedarf-Hinweis statt Browser-Alert */
.t9-quick-notice{
    position:fixed;
    right:clamp(18px, 3vw, 46px);
    top:clamp(92px, 11vh, 142px);
    z-index:9999;
    width:min(430px, calc(100vw - 34px));
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:16px 18px;
    border-radius:24px;
    border:1px solid rgba(226,232,240,.95);
    background:rgba(255,255,255,.94);
    box-shadow:0 22px 70px rgba(15,23,42,.18), 0 6px 18px rgba(15,23,42,.08);
    backdrop-filter:blur(18px) saturate(1.18);
    -webkit-backdrop-filter:blur(18px) saturate(1.18);
    animation:t9QuickNoticeIn .22s ease-out both;
}
.t9-quick-notice.warning{
    border-color:rgba(251,146,60,.36);
    background:linear-gradient(135deg, rgba(255,247,237,.97), rgba(255,255,255,.94));
}
.t9-quick-notice-icon{
    width:42px;
    height:42px;
    border-radius:17px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    color:#ef4444;
    background:linear-gradient(135deg, rgba(254,226,226,.95), rgba(255,247,237,.9));
    border:1px solid rgba(248,113,113,.22);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.t9-quick-notice-title{
    font-weight:900;
    font-size:14px;
    letter-spacing:.02em;
    color:#0f172a;
    margin-bottom:3px;
}
.t9-quick-notice-message{
    font-weight:750;
    font-size:13px;
    line-height:1.35;
    color:#475569;
}
.t9-quick-notice-hint{
    margin-top:7px;
    font-size:12px;
    font-weight:750;
    line-height:1.35;
    color:#64748b;
}
.t9-quick-notice-close{
    width:30px;
    height:30px;
    border-radius:999px;
    border:1px solid rgba(226,232,240,.9);
    background:rgba(248,250,252,.86);
    color:#94a3b8;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    transition:all .16s ease;
}
.t9-quick-notice-close:hover{
    color:#0f172a;
    background:#fff;
    transform:translateY(-1px);
}
@keyframes t9QuickNoticeIn{
    from{opacity:0; transform:translateY(-10px) scale(.985);}
    to{opacity:1; transform:translateY(0) scale(1);}
}
.dark .t9-quick-notice{
    background:rgba(15,23,42,.94);
    border-color:rgba(51,65,85,.86);
    box-shadow:0 22px 70px rgba(0,0,0,.42);
}
.dark .t9-quick-notice.warning{
    background:linear-gradient(135deg, rgba(69,26,3,.92), rgba(15,23,42,.94));
    border-color:rgba(251,146,60,.34);
}
.dark .t9-quick-notice-title{color:#f8fafc;}
.dark .t9-quick-notice-message{color:#cbd5e1;}
.dark .t9-quick-notice-hint{color:#94a3b8;}
.dark .t9-quick-notice-close{background:rgba(30,41,59,.88); border-color:rgba(71,85,105,.9);}
.dark .t9-quick-notice-close:hover{color:#fff; background:rgba(51,65,85,.95);}

/* =========================================================
   v3.7.0 SAFE – Tagesbriefing kompakt
   Weniger Erstlast, mehr Kurzlage, Details erst aufklappen.
   ========================================================= */
.t9-start-card {
    width: min(1320px, calc(100vw - 2rem)) !important;
    max-height: min(860px, calc(100vh - 2rem)) !important;
}
.t9-start-inner {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    min-height: 660px !important;
}
.t9-start-left { padding: 1.35rem 1.15rem !important; }
.t9-start-icon { width: 54px !important; height: 54px !important; font-size: 24px !important; border-radius: 19px !important; }
.t9-start-main { padding: 1.55rem 1.85rem !important; }
.t9-start-header { margin-bottom: .85rem !important; }
.t9-start-title { font-size: clamp(2.1rem, 3.2vw, 3.45rem) !important; }
.t9-start-sub { max-width: 760px !important; font-size: .88rem !important; margin-top: .62rem !important; }
.t9-start-now { padding: .62rem .78rem !important; min-width: 126px !important; }
.t9-start-main-ok { padding: .68rem .86rem !important; }

.t9-start-focus-strip {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1.95fr);
    gap: .85rem;
    margin: .8rem 0 1rem;
    align-items: stretch;
}
.t9-start-focus-card {
    border-radius: 22px;
    padding: .86rem .95rem;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 12px 30px rgba(15,23,42,.045);
    display: flex;
    align-items: center;
    gap: .82rem;
    min-height: 82px;
}
.t9-start-focus-card.ok { background: linear-gradient(135deg, rgba(240,253,244,.96), rgba(255,255,255,.90)); border-color: rgba(108,179,63,.28); }
.t9-start-focus-card.warn { background: linear-gradient(135deg, rgba(255,251,235,.96), rgba(255,255,255,.90)); border-color: rgba(245,158,11,.30); }
.t9-start-focus-card.danger { background: linear-gradient(135deg, rgba(254,242,242,.97), rgba(255,255,255,.91)); border-color: rgba(220,38,38,.24); }
.t9-start-focus-icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #5a9632;
    background: rgba(108,179,63,.12);
}
.t9-start-focus-card.danger .t9-start-focus-icon { color: #dc2626; background: rgba(220,38,38,.10); }
.t9-start-focus-card.warn .t9-start-focus-icon { color: #b45309; background: rgba(245,158,11,.12); }
.t9-start-focus-label {
    color: #94a3b8;
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.t9-start-focus-card strong {
    display: block;
    margin-top: .18rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.035em;
}
.t9-start-focus-card span {
    display: block;
    margin-top: .12rem;
    color: #64748b;
    font-size: .74rem;
    font-weight: 680;
}
.t9-start-quickline {
    border-radius: 22px;
    padding: .72rem .82rem;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(226,232,240,.88);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .52rem;
    min-height: 82px;
    box-shadow: 0 12px 30px rgba(15,23,42,.035);
}
.t9-start-quickline span {
    display: inline-flex;
    align-items: baseline;
    gap: .32rem;
    padding: .46rem .62rem;
    border-radius: 999px;
    background: rgba(248,250,252,.96);
    border: 1px solid rgba(226,232,240,.82);
    color: #64748b;
    font-size: .70rem;
    font-weight: 820;
    white-space: nowrap;
}
.t9-start-quickline b { color: #0f172a; font-size: .92rem; }
.t9-start-quickline .ok { background: #f0fdf4; border-color: rgba(108,179,63,.22); color: #3f7a25; }
.t9-start-quickline .partial { background: #fffbeb; border-color: rgba(245,158,11,.28); color: #b45309; }
.t9-start-quickline .danger { background: #fef2f2; border-color: rgba(220,38,38,.22); color: #b91c1c; }

.t9-briefing-grid-compact {
    grid-template-columns: minmax(330px, .78fr) minmax(0, 1.42fr) !important;
    gap: .95rem !important;
}
.t9-side-stack-priority { gap: .85rem !important; }
.t9-critical-briefing-card-focus { border-color: rgba(245,158,11,.16) !important; }
.t9-critical-briefing-list-focus { max-height: 300px !important; }
.t9-briefing-card { border-radius: 22px !important; }
.t9-briefing-card-head { padding: .78rem .95rem .62rem !important; }
.t9-briefing-card-title { font-size: .92rem !important; }
.t9-briefing-card-note { margin-top: .18rem; display:block; white-space: normal !important; font-size: .66rem !important; }
.t9-briefing-soft-btn {
    border: 1px solid rgba(226,232,240,.95);
    background: rgba(248,250,252,.94);
    color: #475569;
    border-radius: 999px;
    padding: .46rem .68rem;
    font-size: .68rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.t9-briefing-soft-btn:hover { background: #fff; transform: translateY(-1px); }
.t9-briefing-list { max-height: 260px !important; }
.t9-briefing-item { padding: .66rem !important; border-radius: 17px !important; }
.t9-briefing-item.critical.danger { border-color: rgba(220,38,38,.22); background: rgba(254,242,242,.72); }
.t9-briefing-item.critical.partial { border-color: rgba(245,158,11,.22); background: rgba(255,251,235,.78); }
.t9-briefing-item.critical.warn { border-color: rgba(37,99,235,.18); background: rgba(239,246,255,.70); }
.t9-briefing-more-hint {
    color:#94a3b8;
    font-size:.68rem;
    font-weight:850;
    padding:.25rem .45rem .1rem;
}
.t9-briefing-empty-calm { color:#94a3b8 !important; font-size:.76rem !important; }
.t9-private-briefing-card-compact .t9-briefing-card-head { border-bottom: 0 !important; }
.t9-private-compact-row {
    padding: .2rem .95rem .9rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.75rem;
}
.t9-private-compact-row strong { display:block; color:#0f172a; font-weight:900; font-size:.82rem; }
.t9-private-compact-row span { display:block; margin-top:.16rem; color:#94a3b8; font-weight:760; font-size:.68rem; }
.t9-private-briefing-btn { white-space:nowrap; }
.t9-personnel-preview-list {
    padding: .78rem;
    display: grid;
    gap: .52rem;
}
.t9-personnel-preview-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:.75rem;
    padding:.68rem .76rem;
    border-radius:16px;
    background:rgba(248,250,252,.86);
    border:1px solid rgba(226,232,240,.86);
}
.t9-personnel-preview-row.ok { background:#f0fdf4; border-color:rgba(108,179,63,.22); }
.t9-personnel-preview-row.danger { background:#fef2f2; border-color:rgba(220,38,38,.20); }
.t9-personnel-preview-row.partial { background:#fffbeb; border-color:rgba(245,158,11,.24); }
.t9-personnel-preview-row.warn { background:#eff6ff; border-color:rgba(37,99,235,.18); }
.t9-personnel-preview-row strong { display:block; color:#0f172a; font-size:.80rem; font-weight:920; }
.t9-personnel-preview-row div span { display:block; color:#94a3b8; font-size:.66rem; font-weight:830; margin-top:.1rem; }
.t9-personnel-preview-row > span { color:#64748b; font-size:.70rem; font-weight:800; text-align:right; }
.t9-briefing-table-wrap { max-height: 300px !important; }

@media (max-width: 1180px) {
    .t9-start-inner { grid-template-columns: 1fr !important; }
    .t9-start-left { display:none !important; }
    .t9-start-focus-strip, .t9-briefing-grid-compact { grid-template-columns: 1fr !important; }
}


/* Helios v3.7.0.4 – Tagesbriefing Akut + dauerhaftes Schnellmenü */
.t9-radial-menu.t9-radial-always-open .t9-radial-item{opacity:1!important;pointer-events:auto!important;}
.t9-radial-menu.t9-radial-always-open .t9-radial-main i{transform:none!important;}
.t9-radial-menu.t9-radial-always-open .t9-radial-main{box-shadow:0 22px 64px rgba(87,160,45,.30),0 0 0 10px rgba(108,179,63,.10)!important;}
.t9-radial-menu.t9-radial-always-open .t9-radial-label{z-index:2;}
.t9-start-quickline span.danger{background:#fff1f2;border-color:#fecaca;color:#b91c1c;}
.t9-briefing-item.critical .fa-user-injured{color:#dc2626;}


/* Helios v3.7.0.6 – Teamchat Badge im dauerhaft geöffneten Schnellmenü */
.t9-radial-chat .t9-radial-chat-unread,
.t9-radial-item .t9-radial-badge.t9-radial-chat-unread{
    right:-8px!important;
    top:-8px!important;
    min-width:22px!important;
    height:22px!important;
    padding:0 6px!important;
    border-radius:999px!important;
    background:#ef4444!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:950!important;
    line-height:1!important;
    display:grid!important;
    place-items:center!important;
    border:3px solid #fff!important;
    box-shadow:0 10px 24px rgba(239,68,68,.35)!important;
    z-index:8!important;
}
html.dark .t9-radial-chat .t9-radial-chat-unread,
html.dark .t9-radial-item .t9-radial-badge.t9-radial-chat-unread{
    border-color:#0f172a!important;
}
