/* CCH Notification Inbox / DM Modal v1.2.6-global-modal-fix */
.cch-notification-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.cch-notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(125, 211, 252, .30);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(34, 211, 238, .18), rgba(14, 116, 144, .20));
    color: #fff;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18)
}

.cch-notification-btn:hover {
    border-color: rgba(34, 211, 238, .48);
    background: linear-gradient(180deg, rgba(34, 211, 238, .25), rgba(14, 116, 144, .26))
}

.cch-notification-badge {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff !important;
    font-size: 12px;
    font-weight: 900;
    display: grid;
    place-items: center;
    border: 2px solid #082033
}

.cch-notification-badge[hidden] {
    display: none !important
}

/* WICHTIG: Ohne diese Basisregeln bleibt das Modal als normaler Seitenblock sichtbar. */
.cch-notification-modal,
.cch-dm-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    color: #f8fbff !important;
    pointer-events: none
}

.cch-notification-modal.show {
    display: block;
    pointer-events: auto
}

.cch-dm-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto
}

.cch-notification-modal *,
.cch-dm-modal * {
    box-sizing: border-box
}

.cch-notification-modal__backdrop,
.cch-dm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .62);
    backdrop-filter: blur(10px)
}

.cch-notification-modal__dialog,
.cch-dm-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 32px));
    max-height: 86vh;
    overflow: auto;
    margin: 7vh auto;
    border: 1px solid rgba(56, 189, 248, .28);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(8, 47, 73, .96));
    box-shadow: 0 26px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .04);
    color: #e5f6ff !important;
    padding: 0
}

.cch-dm-modal__dialog {
    width: min(620px, calc(100vw - 28px));
    margin: 0
}

.cch-notification-modal__head,
.cch-dm-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .22)
}

.cch-notification-modal__titleline {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.cch-notification-modal__icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(34, 211, 238, .14);
    border: 1px solid rgba(56, 189, 248, .22);
    flex: 0 0 auto
}

.cch-notification-modal__head strong,
.cch-dm-modal__head strong {
    display: block;
    font-size: 18px;
    letter-spacing: -.02em;
    color: #f8fbff !important
}

.cch-notification-modal__head small,
.cch-dm-modal__head small {
    display: block;
    margin-top: 3px;
    color: #94a3b8 !important;
    font-size: 12px;
    line-height: 1.35
}

.cch-notification-modal__close,
.cch-dm-modal__close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 13px;
    background: rgba(15, 23, 42, .72);
    color: #e5e7eb !important;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: 0 0 auto
}

.cch-notification-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .22)
}

.cch-notification-tabs button {
    min-width: 0;
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .62);
    color: #cbd5e1 !important;
    border-radius: 13px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.cch-notification-tabs button.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, .22), rgba(14, 165, 233, .18));
    border-color: rgba(34, 197, 94, .42);
    color: #f8fafc !important
}

.cch-notification-dm-open {
    background: linear-gradient(135deg, rgba(14, 165, 233, .28), rgba(34, 211, 238, .18)) !important;
    border-color: rgba(34, 211, 238, .45) !important;
    color: #f8fafc !important
}

.cch-notification-list {
    display: grid;
    gap: 12px;
    overflow: auto;
    padding: 14px;
    max-height: calc(86vh - 180px)
}

.cch-notification-empty {
    padding: 16px;
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(15, 23, 42, .35);
    color: #cbd5e1 !important
}

.cch-notification-empty strong {
    display: block;
    color: #f8fafc !important
}

.cch-notification-empty span {
    display: block;
    margin-top: 4px;
    color: #cbd5e1 !important
}

.cch-notification-empty.error {
    color: #fecaca !important;
    border-color: rgba(248, 113, 113, .42)
}

.cch-notification-card {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(125, 211, 252, .24);
    background: rgba(255, 255, 255, .055);
    color: #e5f6ff !important
}

.cch-notification-card.type-dm {
    border-left: 3px solid rgba(14, 165, 233, .85)
}

.cch-notification-card.cch-assigned-task {
    border-left: 3px solid rgba(34, 197, 94, .85)
}

.cch-notification-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px
}

.cch-notification-card__top strong {
    font-size: 15px;
    color: #f8fbff !important
}

.cch-notification-card__top small {
    display: block;
    margin-top: 3px;
    color: #94a3b8 !important
}

.cch-notification-card__status {
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(34, 211, 238, .15);
    color: #dffbff !important;
    white-space: nowrap
}

.cch-notification-card p {
    margin: 10px 0;
    color: #eefbff !important
}

.cch-notification-card__meta,
.cch-notification-route {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8 !important;
    font-size: 12px
}

.cch-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px
}

.cch-notification-actions button,
.cch-notification-actions a {
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .72);
    color: #dbeafe !important;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none
}

.cch-notification-actions button:hover,
.cch-notification-actions a:hover {
    border-color: rgba(34, 197, 94, .42);
    color: #fff !important
}

.cch-notification-actions .danger {
    border-color: rgba(251, 113, 133, .45);
    color: #ffe4e6 !important
}

.cch-notification-modal__foot {
    display: flex;
    justify-content: flex-end;
    padding: 0 14px 14px
}

.cch-notification-modal__foot button {
    min-height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .7);
    color: #dbeafe !important;
    font-weight: 900;
    padding: 8px 12px
}

.cch-dm-modal__body {
    display: grid;
    gap: 12px;
    padding: 18px 20px 20px
}

.cch-dm-modal__body label {
    display: grid;
    gap: 6px;
    color: #a5f3fc !important;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em
}

.cch-dm-modal__body select,
.cch-dm-modal__body input,
.cch-dm-modal__body textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 15px;
    background: rgba(2, 6, 23, .56);
    color: #f8fafc !important;
    padding: 11px 12px;
    font: inherit;
    outline: none
}

.cch-dm-modal__body textarea {
    min-height: 132px;
    resize: vertical
}

.cch-dm-modal__body select:focus,
.cch-dm-modal__body input:focus,
.cch-dm-modal__body textarea:focus {
    border-color: rgba(34, 211, 238, .62);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .14)
}

.cch-dm-modal__body option,
#cchNotificationRecipient option {
    color: #0f172a !important;
    background: #fff !important
}

.cch-dm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px
}

.cch-dm-modal__primary,
.cch-dm-modal__secondary {
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer
}

.cch-dm-modal__primary {
    border: 0;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: #03111b !important
}

.cch-dm-modal__secondary {
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .7);
    color: #dbeafe !important
}

.cch-notification-statusline {
    margin-top: 8px;
    color: #94a3b8 !important;
    font-size: 11px
}

body.cch-notification-open,
body.cch-dm-open {
    overflow: hidden !important
}

@media(max-width:760px) {

    .cch-notification-modal__dialog,
    .cch-dm-modal__dialog {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100vw;
        max-width: none;
        height: min(86dvh, calc(100dvh - 16px));
        max-height: min(86dvh, calc(100dvh - 16px));
        margin: 0;
        border-radius: 28px 28px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        box-shadow: 0 -24px 70px rgba(0, 0, 0, .48)
    }

    .cch-notification-modal__head,
    .cch-dm-modal__head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(180deg, rgba(15, 23, 42, .99), rgba(10, 38, 61, .94));
        border-radius: 28px 28px 0 0;
        padding: 14px
    }

    .cch-notification-modal__head strong,
    .cch-dm-modal__head strong {
        font-size: 16px
    }

    .cch-notification-tabs {
        position: sticky;
        top: 70px;
        z-index: 2;
        grid-template-columns: 1fr 1fr;
        padding: 10px 14px;
        background: linear-gradient(180deg, rgba(10, 38, 61, .96), rgba(5, 18, 31, .92))
    }

    .cch-notification-tabs .cch-notification-dm-open {
        grid-column: 1 / -1
    }

    .cch-notification-list {
        max-height: none;
        overflow: visible;
        padding: 12px 14px 22px
    }

    .cch-notification-card__top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px
    }

    .cch-notification-card__meta,
    .cch-notification-route {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px
    }

    .cch-notification-actions,
    .cch-dm-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .cch-notification-actions button,
    .cch-notification-actions a,
    .cch-dm-modal__actions button {
        width: 100%;
        min-height: 42px
    }

    .cch-dm-modal__body {
        padding: 14px 14px 22px
    }

    .cch-dm-modal textarea {
        min-height: 150px
    }
}

@media(max-width:420px) {

    .cch-notification-modal__dialog,
    .cch-dm-modal__dialog {
        height: 92dvh;
        max-height: 92dvh;
        border-radius: 24px 24px 0 0
    }

    .cch-notification-actions,
    .cch-dm-modal__actions {
        grid-template-columns: 1fr
    }

    .cch-notification-tabs {
        grid-template-columns: 1fr
    }
}

/* Globale Nextcloud-Outbox */
.cch-sync-wrap{position:relative;display:inline-flex;align-items:center}.cch-sync-btn{position:relative;width:44px;height:44px;border:1px solid rgba(125,211,252,.3);border-radius:16px;background:linear-gradient(180deg,rgba(34,211,238,.18),rgba(14,116,144,.2));color:#fff;cursor:pointer;display:inline-grid;place-items:center;font-size:22px;font-weight:900;box-shadow:0 8px 22px rgba(0,0,0,.18)}.cch-sync-btn.has-pending{border-color:rgba(251,191,36,.7);background:linear-gradient(180deg,rgba(251,191,36,.28),rgba(180,83,9,.28))}.cch-sync-badge{position:absolute;right:-5px;top:-6px;min-width:22px;height:22px;padding:0 4px;border-radius:999px;background:#f59e0b;color:#111827!important;font-size:11px;font-weight:900;display:grid;place-items:center;border:2px solid #082033}.cch-sync-badge[hidden]{display:none!important}
.cch-variable-nav-btn{width:44px;height:44px;padding:0;border:1px solid rgba(167,139,250,.38);border-radius:16px;background:linear-gradient(180deg,rgba(139,92,246,.22),rgba(67,56,202,.22));color:#f5f3ff!important;cursor:pointer;display:inline-grid;place-items:center;box-shadow:0 8px 22px rgba(0,0,0,.18);font:900 15px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.cch-variable-nav-btn:hover,.cch-variable-nav-btn:focus-visible{border-color:rgba(196,181,253,.72);background:linear-gradient(180deg,rgba(139,92,246,.34),rgba(67,56,202,.32));outline:none}
.cch-sync-modal{position:fixed;inset:0;z-index:12020;display:none;color:#f8fbff!important;pointer-events:none}.cch-sync-modal.show{display:block;pointer-events:auto}.cch-sync-modal *{box-sizing:border-box}.cch-sync-modal__backdrop{position:absolute;inset:0;background:rgba(2,6,23,.62);backdrop-filter:blur(10px)}.cch-sync-modal__dialog{position:relative;z-index:1;width:min(820px,calc(100vw - 32px));max-height:86vh;overflow:auto;margin:7vh auto;border:1px solid rgba(56,189,248,.28);border-radius:28px;background:linear-gradient(180deg,rgba(15,23,42,.98),rgba(8,47,73,.96));box-shadow:0 26px 90px rgba(0,0,0,.48);padding:0}.cch-sync-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.22)}.cch-sync-modal__head strong{display:block;font-size:18px;color:#f8fbff!important}.cch-sync-modal__head small{display:block;margin-top:3px;color:#94a3b8!important}.cch-sync-modal__head button{width:38px;height:38px;border:1px solid rgba(148,163,184,.28);border-radius:13px;background:rgba(15,23,42,.72);color:#e5e7eb!important;font-size:22px;cursor:pointer}.cch-sync-list{display:grid;gap:12px;padding:14px;max-height:calc(86vh - 150px);overflow:auto}.cch-sync-empty{padding:18px;border:1px dashed rgba(148,163,184,.28);border-radius:18px;background:rgba(15,23,42,.35);color:#cbd5e1!important}.cch-sync-empty strong,.cch-sync-empty span{display:block}.cch-sync-empty span{margin-top:4px}.cch-sync-empty.error{border-color:rgba(248,113,113,.42);color:#fecaca!important}.cch-sync-card{padding:14px;border:1px solid rgba(125,211,252,.24);border-radius:20px;background:rgba(255,255,255,.055)}.cch-sync-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.cch-sync-card__head strong,.cch-sync-card__head small{display:block}.cch-sync-card__head small{margin-top:4px;color:#94a3b8!important}.cch-sync-card__head button,.cch-sync-modal__foot button{min-height:38px;padding:8px 12px;border:1px solid rgba(56,189,248,.38);border-radius:12px;background:rgba(14,116,144,.28);color:#f8fafc!important;font-weight:800;cursor:pointer}.cch-sync-card__items{display:grid;gap:8px;margin-top:12px}.cch-sync-card__items>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.8fr);gap:12px;padding:10px;border-radius:12px;background:rgba(2,6,23,.28)}.cch-sync-card__items span,.cch-sync-card__items b,.cch-sync-card__items small{display:block}.cch-sync-card__items small{margin-top:3px;color:#94a3b8!important}.cch-sync-card__items em{align-self:center;color:#fca5a5!important;font-size:12px;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cch-sync-modal__foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid rgba(148,163,184,.22)}.cch-sync-modal__foot .primary{background:linear-gradient(135deg,#0891b2,#0369a1)}body.cch-sync-open{overflow:hidden!important}
@media(max-width:760px){.cch-sync-modal__dialog{position:fixed;left:0;right:0;bottom:0;top:auto;width:100vw;max-width:none;height:min(86dvh,calc(100dvh - 16px));max-height:min(86dvh,calc(100dvh - 16px));margin:0;border-radius:28px 28px 0 0;border-left:0;border-right:0;border-bottom:0}.cch-sync-modal__head{position:sticky;top:0;z-index:2;background:linear-gradient(180deg,rgba(15,23,42,.99),rgba(10,38,61,.94));border-radius:28px 28px 0 0}.cch-sync-list{max-height:none;overflow:visible}.cch-sync-card__head,.cch-sync-card__items>div{grid-template-columns:1fr;display:grid}.cch-sync-card__head button{width:100%}.cch-sync-modal__foot{position:sticky;bottom:0;background:rgba(8,47,73,.98);display:grid;grid-template-columns:1fr}}
.cch-sync-list h3{margin:4px 4px 0;color:#e0f2fe!important}.cch-sync-card.conflict{border-color:rgba(251,191,36,.55);background:rgba(120,53,15,.22)}.cch-sync-card.conflict p{margin:10px 0 0;color:#fde68a!important}.cch-sync-history{padding:12px;border:1px solid rgba(148,163,184,.25);border-radius:16px}.cch-sync-history summary{cursor:pointer;font-weight:800}.cch-sync-history-row{display:flex;width:100%;justify-content:space-between;gap:10px;margin-top:8px;padding:10px;border:0;border-radius:10px;background:rgba(2,6,23,.35);color:#e2e8f0!important;text-align:left;cursor:pointer}.cch-sync-history-row em{color:#94a3b8!important;font-style:normal}.cch-sync-conflict-detail{padding:16px;overflow:auto}.cch-sync-conflict-detail header{margin:12px 0}.cch-sync-conflict-detail header strong,.cch-sync-conflict-detail header small{display:block}.cch-sync-conflict-detail header small{color:#94a3b8!important;margin-top:4px}.cch-sync-conflict-back,.cch-sync-conflict-actions button{padding:9px 13px;border:1px solid rgba(56,189,248,.38);border-radius:12px;background:rgba(14,116,144,.28);color:#fff!important;font-weight:800;cursor:pointer}.cch-sync-conflict-table{display:grid;grid-template-columns:minmax(100px,.6fr) repeat(2,minmax(220px,1fr));gap:1px;background:rgba(148,163,184,.22);border:1px solid rgba(148,163,184,.22);border-radius:14px;overflow:auto}.cch-sync-conflict-table>div{padding:9px;background:#0b2940;color:#e2e8f0!important;min-width:0;overflow-wrap:anywhere}.cch-sync-conflict-table .head{font-weight:900;background:#123b59}.cch-sync-conflict-table .key{font-weight:800}.cch-sync-conflict-table .changed{background:rgba(120,53,15,.72)}.cch-sync-conflict-table .empty{color:#94a3b8!important;font-style:italic}.cch-sync-conflict-table pre{white-space:pre-wrap;margin:0;color:inherit}.cch-sync-note{display:grid;gap:6px;margin:14px 0}.cch-sync-note textarea{min-height:70px;padding:10px;border:1px solid rgba(148,163,184,.3);border-radius:10px;background:#071d2c;color:#fff}.cch-sync-conflict-actions{display:flex;justify-content:flex-end;gap:10px}.cch-sync-conflict-actions .primary{background:#b45309}@media(max-width:760px){.cch-sync-conflict-table{grid-template-columns:110px repeat(2,75vw)}.cch-sync-conflict-actions{display:grid}.cch-sync-history-row{display:grid}}
.cch-sync-journal{margin-top:8px;padding:14px;border:1px solid rgba(56,189,248,.3);border-radius:20px;background:rgba(2,6,23,.24)}.cch-sync-journal.loading{opacity:.58;pointer-events:none}.cch-sync-journal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.cch-sync-journal-head h3{margin:0!important}.cch-sync-journal-head p{margin:5px 0 0;color:#94a3b8!important;font-size:13px}.cch-sync-journal-head>span{white-space:nowrap;padding:5px 9px;border-radius:999px;background:rgba(14,165,233,.16);color:#bae6fd!important;font-size:12px;font-weight:800}.cch-sync-journal-filter{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr)) minmax(150px,1.25fr) minmax(150px,1.25fr) auto;gap:8px;align-items:end;margin:14px 0}.cch-sync-journal-filter label{display:grid;gap:5px;color:#bae6fd!important;font-size:11px;font-weight:800}.cch-sync-journal-filter input,.cch-sync-journal-filter select,.cch-sync-journal-filter button{width:100%;min-height:40px;padding:8px 10px;border:1px solid rgba(125,211,252,.28);border-radius:11px;background:#071d2c;color:#f8fafc!important}.cch-sync-journal-filter button{background:#0369a1;font-weight:900;cursor:pointer}.cch-sync-journal-list{display:grid;gap:6px}.cch-sync-journal-list h4{margin:12px 3px 3px;color:#bae6fd!important;font-size:13px}.cch-sync-journal-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:11px;border:0;border-radius:13px;background:rgba(15,23,42,.7);color:#e2e8f0!important;text-align:left;cursor:pointer}.cch-sync-journal-row:hover{background:rgba(14,116,144,.25)}.cch-sync-journal-time{color:#7dd3fc!important;font-weight:900}.cch-sync-journal-row strong,.cch-sync-journal-row small{display:block}.cch-sync-journal-row small{margin-top:3px;color:#94a3b8!important}.cch-sync-journal-row em{padding:4px 8px;border-radius:999px;background:rgba(148,163,184,.15);color:#cbd5e1!important;font-size:11px;font-style:normal;font-weight:800}.cch-sync-journal-row em.status-success{background:rgba(34,197,94,.17);color:#86efac!important}.cch-sync-journal-row em.status-failed,.cch-sync-journal-row em.status-conflict{background:rgba(248,113,113,.17);color:#fecaca!important}.cch-sync-journal-row em.status-queued,.cch-sync-journal-row em.status-overwrite_approved{background:rgba(245,158,11,.18);color:#fde68a!important}.cch-sync-history-detail{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cch-sync-history-detail>div{padding:11px;border-radius:12px;background:rgba(2,6,23,.34);overflow-wrap:anywhere}.cch-sync-history-detail span,.cch-sync-history-detail strong{display:block}.cch-sync-history-detail span{margin-bottom:4px;color:#94a3b8!important;font-size:11px}.cch-sync-history-technical{margin-top:12px;padding:12px;border:1px solid rgba(148,163,184,.24);border-radius:12px}.cch-sync-history-technical summary{cursor:pointer;font-weight:800}.cch-sync-history-technical pre{overflow:auto;white-space:pre-wrap;color:#cbd5e1!important}.cch-sync-history-open{display:inline-flex;margin-top:14px;padding:10px 14px;border-radius:12px;background:#0284c7;color:#fff!important;font-weight:900;text-decoration:none}@media(max-width:760px){.cch-sync-journal-filter{grid-template-columns:1fr 1fr}.cch-sync-journal-filter label:nth-child(n+3),.cch-sync-journal-filter button{grid-column:1/-1}.cch-sync-journal-row{grid-template-columns:44px minmax(0,1fr)}.cch-sync-journal-row em{grid-column:2;justify-self:start}.cch-sync-history-detail{grid-template-columns:1fr}}

/* Lesbares Synchronisationsjournal: robuste Struktur gegen globale Button-/Textregeln. */
.cch-sync-modal .cch-sync-journal-list{display:grid;gap:8px;min-width:0}
.cch-sync-modal .cch-sync-journal-list h4{margin:18px 2px 5px;padding-bottom:7px;border-bottom:1px solid rgba(125,211,252,.16);font-size:14px;letter-spacing:.01em}
.cch-sync-modal .cch-sync-journal-row{display:grid!important;grid-template-columns:64px minmax(0,1fr) max-content 18px;align-items:center;gap:14px;width:100%!important;max-width:none!important;min-width:0;padding:13px 14px;border:1px solid rgba(125,211,252,.2);border-radius:15px;background:linear-gradient(135deg,rgba(15,47,68,.92),rgba(9,30,48,.9));box-shadow:0 5px 16px rgba(2,6,23,.14);font:inherit;text-align:left;white-space:normal;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.cch-sync-modal .cch-sync-journal-row:hover,.cch-sync-modal .cch-sync-journal-row:focus-visible{border-color:rgba(56,189,248,.62);background:linear-gradient(135deg,rgba(14,77,105,.9),rgba(9,44,67,.94));transform:translateY(-1px);outline:none}
.cch-sync-modal .cch-sync-journal-time{display:inline-grid!important;place-items:center;align-self:start;min-height:30px;padding:5px 7px;border:1px solid rgba(56,189,248,.2);border-radius:9px;background:rgba(2,6,23,.32);color:#7dd3fc!important;font-size:13px;font-weight:900;line-height:1.2;text-decoration:none;white-space:nowrap}
.cch-sync-modal .cch-sync-journal-content{display:block!important;min-width:0;color:#f8fafc!important}
.cch-sync-modal .cch-sync-journal-content strong{display:block!important;margin:0;color:#f8fafc!important;font-size:14px;font-weight:850;line-height:1.35;overflow-wrap:anywhere}
.cch-sync-modal .cch-sync-journal-content small{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px 9px;margin-top:6px;color:#a8bdcc!important;font-size:12px;line-height:1.3}
.cch-sync-modal .cch-sync-journal-module,.cch-sync-modal .cch-sync-journal-entity{display:inline-flex!important;align-items:center;min-width:0}
.cch-sync-modal .cch-sync-journal-entity::before{content:"";width:4px;height:4px;margin-right:9px;border-radius:50%;background:#38bdf8;opacity:.8}
.cch-sync-modal .cch-sync-journal-status{display:inline-flex!important;align-items:center;justify-content:center;justify-self:end;min-width:88px;padding:6px 10px;border:1px solid transparent;border-radius:999px;font-size:11px;font-style:normal;font-weight:900;line-height:1.2;white-space:nowrap}
.cch-sync-modal .cch-sync-journal-status.status-success{border-color:rgba(74,222,128,.2);background:rgba(34,197,94,.16);color:#86efac!important}
.cch-sync-modal .cch-sync-journal-status.status-failed,.cch-sync-modal .cch-sync-journal-status.status-conflict{border-color:rgba(248,113,113,.25);background:rgba(248,113,113,.16);color:#fecaca!important}
.cch-sync-modal .cch-sync-journal-status.status-queued,.cch-sync-modal .cch-sync-journal-status.status-overwrite_approved{border-color:rgba(251,191,36,.24);background:rgba(245,158,11,.17);color:#fde68a!important}
.cch-sync-modal .cch-sync-journal-arrow{display:block!important;color:#7dd3fc!important;font-size:24px;font-weight:400;line-height:1;opacity:.65}
@media(max-width:620px){.cch-sync-modal .cch-sync-journal-row{grid-template-columns:52px minmax(0,1fr) 16px;gap:10px;padding:12px}.cch-sync-modal .cch-sync-journal-status{grid-column:2;justify-self:start;min-width:0;margin-top:2px}.cch-sync-modal .cch-sync-journal-arrow{grid-column:3;grid-row:1/3;align-self:center}.cch-sync-modal .cch-sync-journal-content small{display:grid!important;gap:3px}.cch-sync-modal .cch-sync-journal-entity::before{display:none}}

/* 2026-09-30 · Synchronisationsdatensätze öffnen als eigenes Modal. */
.cch-sync-conflict-detail[hidden]{display:none!important}
.cch-sync-conflict-detail:not([hidden]){position:fixed;inset:0;z-index:12040;display:grid;place-items:center;padding:24px;background:rgba(2,6,23,.78);backdrop-filter:blur(12px);overflow:auto}
.cch-sync-detail-dialog{position:relative;width:min(880px,calc(100vw - 48px));max-height:min(86vh,900px);overflow:auto;padding:22px;border:1px solid rgba(56,189,248,.38);border-radius:24px;background:linear-gradient(180deg,#0d2236,#071827);box-shadow:0 30px 100px rgba(0,0,0,.65);color:#f8fbff}
.cch-sync-detail-dialog>header{padding-right:48px;margin:16px 0!important}
.cch-sync-detail-close{position:absolute;top:16px;right:16px;left:auto!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px;padding:0!important;display:grid;place-items:center;border:1px solid rgba(148,163,184,.32)!important;border-radius:13px!important;background:rgba(15,23,42,.82)!important;color:#fff!important;font-size:24px!important;line-height:1;cursor:pointer}
.cch-sync-detail-close:hover,.cch-sync-detail-close:focus-visible{border-color:rgba(56,189,248,.7)!important;background:rgba(14,116,144,.35)!important;outline:none}
@media(max-width:620px){.cch-sync-conflict-detail:not([hidden]){place-items:end center;padding:8px 0 0}.cch-sync-detail-dialog{width:100vw;max-height:92dvh;padding:18px 14px 22px;border-radius:24px 24px 0 0;border-left:0;border-right:0;border-bottom:0}.cch-sync-detail-dialog>header{padding-right:44px}.cch-sync-detail-close{top:12px;right:12px}.cch-variable-nav-btn{width:38px;height:38px;border-radius:14px}}

/* Fünf Navigationsaktionen passen auch auf schmale Mobilgeräte ohne Seitenüberlauf. */
@media(max-width:480px){
  body.cch-theme-tech .cch-brand-copy{display:none}
  body.cch-theme-tech .cch-topnav-meta{gap:4px}
  body.cch-theme-tech .cch-topnav-meta :is(.cch-sync-btn,.cch-notification-btn,.cch-hard-reload-btn,.cch-variable-nav-btn,.cch-mobile-menu-btn){width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;border-radius:12px!important}
}
