/* ============================================================
   ZEROCODE INTERAKTIVE DEMO (/test)
   Mockup der Zerocode-Plattform im zerocodev2-Theme.
   Farbwerte stammen aus dem Original-Theme (zerocodev2_ext.css):
   violet 176,112,239 | blue 141,165,241 | cyan 86,218,223
   primary 150,118,240 | secondary 0,212,255 | base-900 #080b19
   ============================================================ */

.zc-demo-page {
    padding-top: var(--nav-h);
    padding-bottom: 100px;
    min-height: 100vh;
}

/* ---------- Generator / database flow animation ---------- */

.zcd-dataflow {
    display: grid;
    gap: 18px;
    margin: 0 auto 54px;
    color: #f4f7ff;
}

.zcd-dataflow-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(86, 218, 223, 0.2);
    border-radius: 8px;
    background:
        radial-gradient(circle at 14% 20%, rgba(176, 112, 239, 0.22), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(86, 218, 223, 0.16), transparent 30%),
        linear-gradient(128deg, #0a1222 0%, #0f1830 35%, #132347 64%, #0c152a 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.zcd-dataflow-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.zcd-flow-line {
    fill: none;
    stroke-linecap: round;
    stroke-width: 6;
}

.zcd-flow-line-ok {
    stroke: url(#zcd-flow-ok);
    stroke-dasharray: 18 18;
    animation: zcd-flow-dash 2.6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(86, 218, 223, 0.4));
}

.zcd-flow-line-straight {
    stroke-dasharray: 18 16;
    stroke-dashoffset: 0;
    opacity: 0.86;
    animation: none;
}

.zcd-flow-line-static {
    stroke-dasharray: 18 18;
    stroke-dashoffset: 0;
    animation: none;
}

.zcd-flow-delay-1 {
    animation-delay: -0.45s;
}

.zcd-flow-delay-2 {
    animation-delay: -0.9s;
}

.zcd-flow-delay-3 {
    animation-delay: -1.35s;
}

.zcd-flow-line-denied {
    stroke: rgba(255, 98, 126, 0.48);
    stroke-dasharray: 12 18;
    stroke-width: 5;
}

.zcd-flow-denied-packet {
    fill: #ff6b86;
    opacity: 0;
    filter: drop-shadow(0 0 12px rgba(255, 98, 126, 0.72));
}

.zcd-flow-denied-stop {
    opacity: 0;
}

.zcd-flow-denied-stop line {
    stroke: #ff304f;
    stroke-linecap: round;
    stroke-width: 10;
    filter: drop-shadow(0 0 14px rgba(255, 48, 79, 0.85));
}

.zcd-flow-packet {
    fill: #fff;
    filter: drop-shadow(0 0 10px rgba(86, 218, 223, 0.95));
}

.zcd-flow-card {
    position: absolute;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    width: min(24%, 245px);
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(86, 218, 223, 0.24);
    border-radius: 8px;
    background: rgba(20, 29, 51, 0.92);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.zcd-flow-card > .zcd-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(176, 112, 239, 0.22), rgba(86, 218, 223, 0.18));
    color: #56dadf;
    font-size: 30px;
}

.zcd-flow-card p {
    margin: 0 0 6px;
    color: #56dadf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.zcd-flow-card h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.12;
}

.zcd-flow-card span:not(.zcd-ico) {
    display: block;
    color: #c8d3eb;
    font-size: 13px;
    line-height: 1.45;
}

.zcd-flow-generator {
    top: 72px;
    left: 4%;
}

.zcd-flow-entities {
    top: 72px;
    left: 39%;
}

.zcd-flow-engine {
    top: 72px;
    right: 4%;
}

.zcd-flow-database {
    bottom: 62px;
    left: 39%;
}

.zcd-dataflow-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.zcd-dataflow-notes div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 14px 16px;
    border: 1px solid rgba(86, 218, 223, 0.2);
    border-radius: 8px;
    background: rgba(20, 29, 51, 0.74);
    color: #d9e4fa;
}

.zcd-dataflow-notes .zcd-ico {
    color: #56dadf;
    font-size: 24px;
}

.zcd-dataflow-notes strong {
    font-size: 14px;
    line-height: 1.35;
}

@keyframes zcd-flow-dash {
    to {
        stroke-dashoffset: -72;
    }
}

@media (max-width: 860px) {
    .zcd-dataflow-stage {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        padding: 16px;
    }

    .zcd-dataflow-map {
        display: none;
    }

    .zcd-flow-card {
        position: relative;
        inset: auto;
        width: auto;
        min-height: 0;
    }

    .zcd-flow-card:not(.zcd-flow-database)::after {
        content: "arrow_downward";
        align-self: center;
        justify-self: center;
        grid-column: 1 / -1;
        color: #56dadf;
        font-family: "Material Symbols Outlined";
        font-size: 26px;
        line-height: 1;
    }

    .zcd-dataflow-notes {
        grid-template-columns: 1fr;
    }
}

.zcd-page-hint {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-2, #aab8d2);
}

.zcd-demo-slides {
    margin-top: 30px;
    padding: 0;
}

.zcd-demo-slides h2 {
    margin: 0 0 14px;
    color: var(--text, #eef5ff);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0;
}

.zcd-demo-slides-list {
    display: grid;
    gap: 8px;
}

.zcd-demo-slide-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 8px 10px 8px 14px;
    border: 1px solid rgba(86, 218, 223, 0.18);
    border-radius: 7px;
    background: rgba(20, 29, 51, 0.72);
}

.zcd-demo-slide-row > span {
    min-width: 0;
    overflow: hidden;
    color: var(--text, #eef5ff);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zcd-demo-slide-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 88px;
    height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, #5cbac4 0%, #6cc4c8 52%, #94a8d4 100%);
    color: #07101f;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.zcd-demo-slide-row button:hover,
.zcd-demo-slide-row button:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

/* Material Symbols (Bunny Fonts, DSGVO-konform) */
.zcd-ico {
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    flex-shrink: 0;
}

/* ---------- Frame ---------- */
.zcd-frame {
    --zcd-violet: 176, 112, 239;
    --zcd-blue: 141, 165, 241;
    --zcd-cyan: 86, 218, 223;
    --zcd-primary: 150, 118, 240;
    --zcd-secondary: 0, 212, 255;
    --zcd-line: rgba(0, 212, 255, 0.18);
    --zcd-bg: #080b19;
    --zcd-chrome: #141d33;
    --zcd-surface: #1b2740;
    --zcd-text: #e9eef9;
    --zcd-text-2: #aab8d2;
    --zcd-scrollbar-track: rgba(8, 11, 25, 0.64);
    --zcd-scrollbar-thumb: rgba(141, 165, 241, 0.48);
    --zcd-scrollbar-thumb-hover: rgba(86, 218, 223, 0.68);

    position: relative;
    display: flex;
    flex-direction: column;
    height: clamp(560px, 74vh, 780px);
    margin-top: 30px;
    background: var(--zcd-bg);
    border: 1px solid var(--zcd-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    font-size: 14px;
    color: var(--zcd-text);
    text-align: left;
}

.zcd-frame,
.zcd-frame * {
    scrollbar-width: thin;
    scrollbar-color: var(--zcd-scrollbar-thumb) var(--zcd-scrollbar-track);
}

.zcd-frame ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.zcd-frame ::-webkit-scrollbar-track {
    background: var(--zcd-scrollbar-track);
    border-radius: 999px;
}

.zcd-frame ::-webkit-scrollbar-thumb {
    min-width: 10px;
    min-height: 10px;
    border: 2px solid var(--zcd-scrollbar-track);
    border-radius: 999px;
    background: linear-gradient(180deg,
        rgba(var(--zcd-blue), 0.72),
        rgba(var(--zcd-cyan), 0.56));
}

.zcd-frame ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(var(--zcd-violet), 0.82),
        rgba(var(--zcd-cyan), 0.76));
}

.zcd-frame ::-webkit-scrollbar-corner {
    background: var(--zcd-scrollbar-track);
}

/* ---------- Topbar ---------- */
.zcd-header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 10px;
    background: var(--zcd-chrome);
    border-bottom: 1px solid var(--zcd-line);
    flex-shrink: 0;
}

.zcd-logo-btn {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-left: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.zcd-logo {
    height: 20px;
    filter: drop-shadow(0 0 8px rgba(var(--zcd-cyan), 0.3));
    transition: filter 0.25s ease;
}

.zcd-logo-btn:hover .zcd-logo {
    filter: drop-shadow(0 0 14px rgba(var(--zcd-cyan), 0.5));
}

.zcd-whereami {
    margin-left: 14px;
    font-size: 13px;
    color: var(--zcd-text-2);
}

.zcd-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zcd-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #cdd8ec;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.zcd-iconbtn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Outlined-Variante (Files, Settings) wie im Original */
.zcd-iconbtn.zcd-outline {
    background: rgba(13, 20, 38, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #cdd8ec;
}

.zcd-iconbtn.zcd-outline:hover {
    border-color: rgba(var(--zcd-cyan), 0.6);
    color: #fff;
}

/* Secondary-Gradient (AI Chat, Tasks, Kalender) wie im Original-Theme */
.zcd-iconbtn.zcd-filled {
    background: linear-gradient(135deg, #5cbac4 0%, #6cc4c8 52%, #94a8d4 100%);
    color: #07101f;
    box-shadow: 0 3px 9px rgba(var(--zcd-cyan), 0.18);
}

.zcd-iconbtn.zcd-filled:hover {
    filter: brightness(1.08);
    color: #07101f;
}

/* Tenant-Auswahl: Primary-Gradient wie im Original-Theme */
.zcd-tenant { position: relative; }

.zcd-tenant-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 32px;
    padding: 0 6px 0 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #7869c4 0%, #9587d0 56%, #94a3d8 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(var(--zcd-primary), 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zcd-tenant-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(var(--zcd-primary), 0.22);
}

.zcd-tenant-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    padding: 4px;
    background: var(--zcd-surface);
    border: 1px solid rgba(var(--zcd-secondary), 0.28);
    border-radius: 8px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.65), 0 8px 22px rgba(0, 0, 0, 0.42);
    display: none;
    z-index: 30;
}

.zcd-tenant-menu.open { display: block; }

.zcd-tenant-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--zcd-text);
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.zcd-tenant-menu button:hover {
    background: rgba(var(--zcd-violet), 0.22);
    color: #e0d4ff;
}

/* ---------- Main / Sidebar ---------- */
.zcd-main {
    display: flex;
    flex: 1;
    min-height: 0;
    position: relative;
}

.zcd-sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    min-width: 0;
    background: #0e1527;
    border-right: 1px solid var(--zcd-line);
    transition: width 0.25s ease, border 0.25s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.zcd-frame:not(.zcd-sb-open) .zcd-sidebar {
    width: 0;
    border-right-color: transparent;
}

.zcd-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    width: 250px;
}

.zcd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--zcd-text-2);
    font-size: 13.5px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.zcd-item .zcd-ico {
    font-size: 19px;
    color: #93a3c4;
}

.zcd-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zcd-chev {
    font-size: 18px !important;
    transition: transform 0.25s ease;
}

/* Hover/Aktiv: Gradient + Akzent-Schiene wie im zerocodev2-Theme */
.zcd-item:hover,
.zcd-item.zcd-active-item {
    background-image: linear-gradient(135deg,
        rgba(var(--zcd-violet), 0.35) 0%,
        rgba(var(--zcd-blue), 0.26) 56%,
        rgba(var(--zcd-cyan), 0.24) 100%);
    box-shadow: inset 3px 0 0 rgb(var(--zcd-violet)), 0 0 0 1px rgba(var(--zcd-cyan), 0.24);
    color: #e0d4ff;
}

.zcd-item:hover .zcd-ico,
.zcd-item.zcd-active-item .zcd-ico {
    color: #e0d4ff;
}

.zcd-appcatalog-entry {
    background: rgba(255, 255, 255, 0.045);
    color: #f4f7ff;
    font-weight: 650;
}

.zcd-appcatalog-entry .zcd-ico {
    color: #fff;
}

.zcd-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 14px;
}

.zcd-group.open > .zcd-children { max-height: 800px; }
.zcd-group.open > .zcd-item .zcd-chev { transform: rotate(180deg); }

.zcd-subgroup > .zcd-item {
    border-right: 1px solid rgba(var(--zcd-cyan), 0.14);
    border-radius: 0;
}

.zcd-subgroup > .zcd-children {
    padding-left: 18px;
}

.zcd-sidebar-tools {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 6px;
    width: 250px;
    flex-shrink: 0;
}

.zcd-minibtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #aab8d2;
    cursor: pointer;
}

.zcd-minibtn .zcd-ico { font-size: 15px; }
.zcd-minibtn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Body ---------- */
.zcd-body {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Original zerocodev2 Body-Gradient */
    background:
        radial-gradient(circle at 12% 78%, rgba(var(--zcd-violet), 0.28) 0%, rgba(var(--zcd-violet), 0) 44%),
        radial-gradient(circle at 82% 24%, rgba(var(--zcd-blue), 0.24) 0%, rgba(var(--zcd-blue), 0) 40%),
        radial-gradient(circle at 54% 96%, rgba(var(--zcd-cyan), 0.2) 0%, rgba(var(--zcd-cyan), 0) 32%),
        linear-gradient(128deg, #0a1222 0%, #0f1830 34%, #132347 63%, #0c152a 100%);
}

.zcd-edit-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(13, 20, 38, 0.55);
    color: #dfe7f5;
    cursor: pointer;
    z-index: 5;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.zcd-edit-btn .zcd-ico { font-size: 17px; }

.zcd-edit-btn:hover {
    border-color: rgba(var(--zcd-violet), 0.7);
    color: #e0d4ff;
}

.zcd-frame:not(.zcd-home-active) .zcd-edit-btn {
    display: none;
}

.zcd-view {
    display: none;
    padding: 24px 26px;
    min-height: 100%;
}

.zcd-view.zcd-active { display: block; }

.zcd-view-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-right: 48px;
}

.zcd-view-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--zcd-text);
}

.zcd-view-hint {
    font-size: 12.5px;
    color: var(--zcd-text-2);
}

.zcd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    margin-left: auto;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #7869c4 0%, #9587d0 56%, #94a3d8 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(var(--zcd-primary), 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zcd-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(var(--zcd-primary), 0.22);
}

.zcd-btn-primary .zcd-ico { font-size: 17px; }

.zcd-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--zcd-text);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.zcd-btn-light:hover {
    border-color: rgba(var(--zcd-cyan), 0.56);
    background: rgba(var(--zcd-cyan), 0.1);
    color: #fff;
}

.zcd-btn-light .zcd-ico { font-size: 17px; }

.zcd-menu-with-chev .zcd-chev {
    transform: none !important;
}

.zcd-root-disabled {
    margin-top: 2px;
}

/* ---------- Monitoring ---------- */
.zcd-monitoring {
    display: grid;
    grid-template-columns: minmax(260px, 520px);
    gap: 12px;
}

.zcd-monitor-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(13, 20, 38, 0.62);
    color: var(--zcd-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.zcd-monitor-card:hover {
    border-color: rgba(var(--zcd-cyan), 0.42);
    background: rgba(var(--zcd-violet), 0.13);
    transform: translateY(-1px);
}

.zcd-monitor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg,
        rgba(var(--zcd-violet), 0.38),
        rgba(var(--zcd-cyan), 0.2));
    color: #d9f9ff;
    flex-shrink: 0;
}

.zcd-monitor-icon .zcd-ico {
    font-size: 24px;
}

.zcd-monitor-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.zcd-monitor-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.zcd-monitor-text {
    color: var(--zcd-text-2);
    font-size: 12.5px;
    line-height: 1.45;
}

.zcd-monitor-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b8f5f7;
    font-size: 12px;
    font-weight: 600;
}

.zcd-monitor-meta .zcd-ico {
    font-size: 16px;
}

/* ---------- App-Katalog ---------- */
.zcd-appcat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.zcd-appcat-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-right: 6px;
}

.zcd-appcat-search,
.zcd-appcat-filter,
.zcd-appcat-check,
.zcd-appcat-count {
    min-height: 34px;
    border-radius: 8px;
}

.zcd-appcat-search {
    flex: 1 1 250px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(13, 20, 38, 0.68);
}

.zcd-appcat-search .zcd-ico {
    color: var(--zcd-text-2);
    font-size: 17px;
}

.zcd-appcat-search input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--zcd-text);
    font: inherit;
    font-size: 13px;
}

.zcd-appcat-filter,
.zcd-appcat-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
    color: var(--zcd-text-2);
    font-size: 12.5px;
}

.zcd-appcat-filter .zcd-ico { font-size: 17px; }

.zcd-fake-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px;
    background: rgba(13, 20, 38, 0.5);
}

.zcd-appcat-count {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: rgba(var(--zcd-primary), 0.22);
    border: 1px solid rgba(var(--zcd-primary), 0.36);
    color: #e0d4ff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.zcd-appcat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.zcd-appcat-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 468px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(13, 20, 38, 0.62);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.zcd-appcat-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.zcd-appcat-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.zcd-appcat-card-body {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
    padding: 14px;
}

.zcd-appcat-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.zcd-appcat-card h3 {
    margin: 0;
    color: var(--zcd-text);
    font-size: 15px;
    line-height: 1.2;
}

.zcd-appcat-source {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.zcd-appcat-source span:first-child,
.zcd-appcat-state {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.zcd-appcat-source span:first-child {
    background: rgba(255, 255, 255, 0.08);
    color: var(--zcd-text);
}

.zcd-appcat-source span:last-child {
    color: var(--zcd-text-2);
    font-size: 12px;
    align-self: center;
}

.zcd-appcat-state {
    background: rgba(var(--zcd-primary), 0.2);
    border: 1px solid rgba(var(--zcd-primary), 0.34);
    color: #e0d4ff;
}

.zcd-appcat-card p {
    margin: 0;
    color: var(--zcd-text-2);
    font-size: 13px;
    line-height: 1.42;
}

.zcd-appcat-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    color: var(--zcd-text-2);
}

.zcd-appcat-meta div:last-child {
    grid-column: 1 / -1;
}

.zcd-appcat-meta dt {
    margin: 0 0 2px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.zcd-appcat-meta dd {
    margin: 0;
    color: var(--zcd-text);
    font-size: 12.5px;
}

.zcd-appcat-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.zcd-appcat-actions .zcd-btn-primary,
.zcd-appcat-actions .zcd-btn-light {
    width: 100%;
    margin-left: 0;
}

/* ---------- Home ---------- */
.zcd-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 420px;
    text-align: center;
}

.zcd-home h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--zcd-text);
}

.zcd-home p {
    margin: 0;
    max-width: 420px;
    font-size: 0.9rem;
    color: var(--zcd-text-2);
}

.zcd-home-link {
    border: none;
    padding: 0;
    background: transparent;
    color: rgb(var(--zcd-cyan));
    font: inherit;
    line-height: 1.45;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: pointer;
}

.zcd-home-link:hover {
    color: #fff;
}

/* ---------- Grid (Benutzer) ---------- */
.zcd-grid {
    width: 100%;
    border-collapse: collapse;
    background: rgba(13, 20, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}

.zcd-grid th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: var(--zcd-text-2);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--zcd-line);
}

.zcd-grid td {
    padding: 11px 14px;
    font-size: 13.5px;
    color: var(--zcd-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zcd-grid tbody tr { cursor: pointer; transition: background 0.15s ease; }

.zcd-grid tbody tr:hover td { color: #cbb8ff; }
.zcd-grid tbody tr:hover { background: rgba(var(--zcd-violet), 0.12); }

.zcd-grid tbody tr.zcd-selected {
    background: rgba(var(--zcd-violet), 0.22);
    box-shadow: inset 3px 0 0 rgb(var(--zcd-violet));
}

.zcd-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
}

.zcd-pill-ok {
    color: #9ae6b4;
    background: rgba(154, 230, 180, 0.12);
    border: 1px solid rgba(154, 230, 180, 0.3);
}

.zcd-pill-wait {
    color: #ffe28a;
    background: rgba(255, 226, 138, 0.1);
    border: 1px solid rgba(255, 226, 138, 0.3);
}

/* ---------- Generated Apps / App-Generator ---------- */
.zcd-generated-apps {
    display: none;
    height: 100%;
    padding: 0;
    background: #111b31;
}

.zcd-generated-apps.zcd-active {
    display: flex;
    flex-direction: column;
}

.zcd-gapps-mobile-title,
.zcd-gapps-mobile-search,
.zcd-gapps-mobile-list {
    display: none;
}

.zcd-gapps-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(141, 165, 241, 0.24);
    background: #101a31;
    overflow: visible;
    flex-shrink: 0;
}

.zcd-gapps-tool,
.zcd-gapps-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    padding: 0 5px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #f2f6ff;
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.zcd-gapps-tool:hover {
    background: rgba(255, 255, 255, 0.08);
}

.zcd-gapps-menu {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
}

.zcd-gapps-menu.open > .zcd-gapps-tool {
    background: #245a68;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.72);
}

.zcd-gapps-menu.open > .zcd-gapps-tool .zcd-ico:last-child {
    transform: rotate(180deg);
}

.zcd-gapps-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 35;
    display: none;
    min-width: 176px;
    padding: 4px 0;
    border: 1px solid rgba(141, 165, 241, 0.24);
    border-radius: 3px;
    background: #1a2741;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.zcd-gapps-dropdown-wide {
    min-width: 228px;
}

.zcd-gapps-menu.open .zcd-gapps-dropdown {
    display: block;
}

.zcd-gapps-dropdown button {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #e8eefc;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.zcd-gapps-dropdown button:hover,
.zcd-gapps-dropdown button:focus-visible {
    background: rgba(94, 126, 176, 0.28);
    outline: none;
}

.zcd-gapps-dropdown .zcd-ico {
    color: #edf4ff;
    font-size: 19px;
}

.zcd-gapps-dropdown-split {
    border-bottom: 1px solid rgba(255, 255, 255, 0.72) !important;
}

.zcd-gapps-dropdown-caret {
    justify-self: end;
    font-size: 18px !important;
}

.zcd-gapps-tool .zcd-ico,
.zcd-gapps-help .zcd-ico {
    font-size: 18px;
}

.zcd-gapps-help {
    margin-left: auto;
    color: #ff5f99;
}

.zcd-gapps-grid-wrap {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 8px 8px;
    background: #16223b;
}

.zcd-gapps-grid {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #f4f7ff;
}

.zcd-gapps-grid th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 36px;
    padding: 0 8px;
    border: 1px solid rgba(96, 132, 190, 0.32);
    border-top: none;
    background: #081026;
    color: #b8c8e7;
    font-size: 11px;
    font-weight: 750;
    text-align: left;
    text-transform: uppercase;
}

.zcd-gapps-grid td {
    height: 88px;
    padding: 7px 8px;
    border-left: 1px solid rgba(96, 132, 190, 0.25);
    border-right: 1px solid rgba(96, 132, 190, 0.25);
    color: #f7fbff;
    font-size: 13px;
    vertical-align: middle;
}

.zcd-gapps-grid tbody tr {
    background: #17243d;
}

.zcd-gapps-grid tbody tr:nth-child(even) {
    background: #33476a;
}

.zcd-gapps-grid tbody tr.zcd-gapps-selected {
    background: #594696;
}

.zcd-gapps-grid th:nth-child(1),
.zcd-gapps-grid td:nth-child(1) {
    width: 10%;
}

.zcd-gapps-grid th:nth-child(2),
.zcd-gapps-grid td:nth-child(2) {
    width: 30%;
}

.zcd-gapps-grid th:nth-child(3),
.zcd-gapps-grid td:nth-child(3) {
    width: 10%;
}

.zcd-gapps-grid th:nth-child(4),
.zcd-gapps-grid td:nth-child(4) {
    width: 8%;
}

.zcd-gapps-grid th:nth-child(5),
.zcd-gapps-grid td:nth-child(5) {
    width: 13%;
}

.zcd-gapps-grid th:nth-child(6),
.zcd-gapps-grid td:nth-child(6) {
    width: 12%;
}

.zcd-gapps-grid th:nth-child(7),
.zcd-gapps-grid td:nth-child(7) {
    width: 17%;
}

.zcd-gapps-grid th:nth-child(3),
.zcd-gapps-grid td:nth-child(3),
.zcd-gapps-grid th:nth-child(4),
.zcd-gapps-grid td:nth-child(4),
.zcd-gapps-grid th:nth-child(5),
.zcd-gapps-grid td:nth-child(5),
.zcd-gapps-grid th:nth-child(6),
.zcd-gapps-grid td:nth-child(6) {
    text-align: center;
}

.zcd-gapps-grid th:nth-child(8),
.zcd-gapps-grid td:nth-child(8) {
    display: none;
}

.zcd-gapps-grid th,
.zcd-gapps-grid td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.zcd-gapps-grid img {
    width: min(72px, 100%);
    height: 72px;
    object-fit: contain;
    background: #dceef7;
}

.zcd-gapps-status {
    display: inline-flex;
    justify-content: center;
    min-width: 76px;
}

.zcd-gapps-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    color: #fff;
    font-weight: 750;
}

.zcd-gapps-version-warning::before {
    content: "warning";
    margin-right: 4px;
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.zcd-gapps-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.zcd-gapps-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 3px;
    background: #0b1630;
    color: #fff;
    cursor: pointer;
}

.zcd-gapps-actions button:hover {
    filter: brightness(1.12);
}

.zcd-gapps-actions .zcd-ico {
    font-size: 18px;
}

.zcd-gapps-disabled {
    color: #2e7a89 !important;
    opacity: 0.45;
}

.zcd-gapps-play {
    color: #64d982 !important;
}

.zcd-gapps-play .zcd-ico {
    text-shadow: 0 0 10px rgba(100, 217, 130, 0.45);
}

.zcd-gapps-stop {
    color: #ff5f99 !important;
}

.zcd-footer-gapps {
    display: none;
}

.zcd-frame.zcd-generated-apps-active .zcd-footer-default {
    display: none;
}

.zcd-frame.zcd-generated-apps-active .zcd-footer-gapps {
    display: flex;
}

/* ---------- Generate-App-Dialog ---------- */
.zcd-gen-modal {
    position: absolute;
    inset: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.zcd-gen-modal[hidden] {
    display: none;
}

.zcd-gen-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 22, 0.62);
}

.zcd-gen-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(70vw, 880px);
    height: min(80vh, 720px);
    min-width: 640px;
    border: 1px solid rgba(141, 165, 241, 0.26);
    border-radius: 4px;
    background: #111b31;
    color: #f2f6ff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.zcd-gen-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 10px 0 16px;
    border-bottom: 1px solid rgba(141, 165, 241, 0.25);
    background: #17243d;
}

.zcd-gen-title {
    font-weight: 700;
}

.zcd-gen-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 14px;
}

.zcd-gen-fieldset {
    min-width: 0;
    margin: 0 0 14px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(141, 165, 241, 0.25);
    border-radius: 4px;
    background: #14213a;
}

.zcd-gen-fieldset legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 7px;
    color: #f3f6ff;
    white-space: nowrap;
}

.zcd-gen-fieldset legend .zcd-ico {
    font-size: 20px;
}

.zcd-gen-prompt-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.zcd-gen-form-field {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.zcd-gen-form-field textarea {
    display: block;
    width: 100%;
    min-height: 136px;
    resize: vertical;
    padding: 24px 12px 10px;
    border: 1px solid rgba(141, 165, 241, 0.28);
    border-radius: 4px;
    background: #202d46;
    color: #f6f8ff;
    font: inherit;
}

.zcd-gen-form-field > span {
    position: absolute;
    top: 7px;
    left: 12px;
    color: #b8c5de;
    font-size: 12px;
    pointer-events: none;
}

.zcd-gen-dictate,
.zcd-gen-upload,
.zcd-gen-light-btn,
.zcd-gen-primary-btn,
.zcd-gen-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid rgba(141, 165, 241, 0.22);
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.zcd-gen-dictate {
    flex: 0 0 150px;
    align-self: stretch;
    background: linear-gradient(135deg, #5cbac4, #94a8d4);
    color: #07101f;
}

.zcd-gen-upload,
.zcd-gen-light-btn,
.zcd-gen-icon-btn {
    background: #314565;
    color: #f4f7ff;
}

.zcd-gen-upload {
    min-width: 190px;
    padding: 0 14px;
}

.zcd-gen-hint {
    margin: 9px 0 0;
    color: #aebbd3;
    font-size: 13px;
}

.zcd-gen-session {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(141, 165, 241, 0.25);
    border-radius: 4px;
    background: #14213a;
}

.zcd-gen-session-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.zcd-gen-session-icon {
    color: #b8c5de;
}

.zcd-gen-select,
.zcd-gen-disabled-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(141, 165, 241, 0.28);
    border-radius: 4px;
    background: #202d46;
    color: #f7faff;
}

.zcd-gen-session-row .zcd-gen-select {
    flex: 1 1 180px;
}

.zcd-gen-disabled-select {
    opacity: 0.72;
}

.zcd-gen-form-field-flat {
    margin-bottom: 12px;
}

.zcd-gen-form-field-flat > span {
    position: static;
    display: block;
    margin-top: 5px;
}

.zcd-gen-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.zcd-gen-session-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(141, 165, 241, 0.24);
    border-radius: 999px;
    background: #202d46;
    color: #d8e1f4;
    font-size: 12px;
}

.zcd-gen-icon-btn {
    width: 34px;
    padding: 0;
}

.zcd-gen-submit-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.zcd-gen-primary-btn {
    min-width: 150px;
    padding: 0 14px;
    border: none;
    background: linear-gradient(135deg, #7869c4, #9587d0 56%, #94a3d8);
    color: #fff;
}

/* ---------- Kalender ---------- */
.zcd-calendar-modal {
    position: absolute;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.zcd-calendar-modal[hidden] {
    display: none;
}

.zcd-calendar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(5px) saturate(1.08);
    cursor: pointer;
}

.zcd-calendar-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 90%;
    min-width: min(720px, calc(100% - 24px));
    min-height: min(470px, calc(100% - 24px));
    overflow: hidden;
    border: 1px solid rgba(var(--zcd-secondary), 0.28);
    border-radius: 10px;
    background: var(--zcd-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.zcd-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 5px 6px 5px 14px;
    border-bottom: 1px solid var(--zcd-line);
    color: var(--zcd-text);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.zcd-calendar-content {
    flex: 1;
    min-height: 0;
    padding: 10px;
}

.zcd-calendar {
    display: flex;
    gap: 12px;
    height: 100%;
    min-height: 0;
    color: var(--zcd-text);
}

.zcd-cal-sidebar {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(13, 20, 38, 0.74);
    overflow-y: auto;
}

.zcd-mini-cal {
    margin-bottom: 4px;
    user-select: none;
}

.zcd-mini-head {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.zcd-mini-title {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zcd-mini-nav,
.zcd-cal-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--zcd-text-2);
    cursor: pointer;
}

.zcd-mini-nav .zcd-ico,
.zcd-cal-iconbtn .zcd-ico {
    font-size: 16px;
}

.zcd-mini-nav:hover,
.zcd-cal-iconbtn:hover {
    border-color: rgba(var(--zcd-cyan), 0.55);
    color: #fff;
}

.zcd-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.zcd-mini-grid > span {
    padding-bottom: 3px;
    font-size: 10px;
    color: var(--zcd-text-2);
    text-align: center;
}

.zcd-mini-day {
    min-width: 0;
    height: 24px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--zcd-text);
    font: inherit;
    font-size: 11.5px;
    cursor: pointer;
}

.zcd-mini-day:hover {
    background: rgba(255, 255, 255, 0.08);
}

.zcd-mini-day.zcd-mini-other {
    opacity: 0.42;
}

.zcd-mini-day.zcd-mini-today {
    border-color: #ef6f7d;
}

.zcd-mini-day.zcd-mini-selected {
    background: linear-gradient(135deg, #7869c4, #9587d0 56%, #94a3d8);
    color: #fff;
}

.zcd-cal-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.zcd-cal-sidebar-head span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zcd-text-2);
}

.zcd-cal-tile {
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.zcd-cal-tile:hover {
    border-color: rgba(var(--zcd-primary), 0.42);
    background: rgba(var(--zcd-violet), 0.12);
}

.zcd-cal-tile.zcd-cal-tile-off {
    opacity: 0.42;
}

.zcd-cal-tile.zcd-cal-tile-off:hover {
    opacity: 0.68;
}

.zcd-cal-tile-head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.zcd-cal-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    flex-shrink: 0;
}

.zcd-cal-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
}

.zcd-cal-tile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
}

.zcd-cal-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--zcd-text-2);
    font-size: 11px;
    line-height: 1.35;
}

.zcd-cal-todo-chip {
    flex-shrink: 0;
    padding: 1px 7px;
    border-left: 3px solid #5cbac4;
    border-radius: 4px;
    background: rgba(92, 186, 196, 0.16);
    color: #b8f5f7;
}

.zcd-cal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zcd-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

.zcd-cal-nav,
.zcd-cal-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.zcd-cal-btn,
.zcd-cal-view-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    background: rgba(92, 186, 196, 0.16);
    color: var(--zcd-text);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.zcd-cal-btn-icon {
    width: 28px;
    padding: 0;
}

.zcd-cal-btn .zcd-ico {
    font-size: 16px;
}

.zcd-cal-btn:hover,
.zcd-cal-view-switch button:hover {
    border-color: rgba(var(--zcd-cyan), 0.55);
}

.zcd-cal-view-switch .zcd-cal-active {
    background: linear-gradient(135deg, #7869c4, #9587d0 56%, #94a3d8);
    color: #fff;
}

.zcd-cal-range {
    font-size: 13px;
    font-weight: 600;
    color: var(--zcd-text);
}

.zcd-cal-allday {
    display: flex;
    min-width: 680px;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: rgba(13, 20, 38, 0.66);
    overflow: hidden;
}

.zcd-cal-allday-label {
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    color: var(--zcd-text-2);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.zcd-cal-allday-days {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
}

.zcd-cal-allday-days > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 3px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.zcd-cal-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    height: 20px;
    padding: 0 6px;
    border: none;
    border-radius: 5px;
    background: #4F8FD9;
    color: #fff;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.zcd-cal-chip-todo {
    background: #5cbac4;
    color: #07101f;
}

.zcd-cal-chip .zcd-ico {
    font-size: 13px;
}

.zcd-cal-chip span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zcd-cal-scheduler {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(13, 20, 38, 0.58);
}

.zcd-cal-days {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 58px repeat(7, minmax(72px, 1fr));
    min-width: 680px;
    background: rgba(20, 29, 51, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zcd-cal-days span {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--zcd-text-2);
    font-size: 11px;
}

.zcd-cal-days span:first-child {
    border-left: none;
}

.zcd-cal-grid {
    display: grid;
    grid-template-columns: 58px repeat(7, minmax(72px, 1fr));
    min-width: 680px;
    min-height: 420px;
}

.zcd-cal-hours {
    display: grid;
    grid-template-rows: repeat(10, 42px);
    background: rgba(20, 29, 51, 0.54);
    color: var(--zcd-text-2);
    font-size: 10.5px;
}

.zcd-cal-hours span {
    display: flex;
    justify-content: center;
    padding-top: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.zcd-cal-daycol {
    position: relative;
    display: grid;
    grid-template-rows: repeat(10, 42px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.zcd-cal-daycol > span:not(.zcd-cal-now) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(to bottom, transparent 49%, rgba(255, 255, 255, 0.035) 50%, transparent 51%);
}

.zcd-cal-event {
    position: absolute;
    top: var(--top);
    left: 5%;
    width: 90%;
    height: var(--height);
    overflow: hidden;
    padding: 4px 6px;
    border: none;
    border-radius: 5px;
    background: var(--color);
    color: #fff;
    font: inherit;
    font-size: 11.5px;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
    cursor: grab;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.zcd-cal-event:hover::after {
    content: "::::";
    position: absolute;
    top: 2px;
    right: 5px;
    letter-spacing: -2px;
    opacity: 0.65;
}

.zcd-cal-event-half {
    left: 5%;
    width: 43%;
}

.zcd-cal-event-right {
    left: 52%;
}

.zcd-cal-now {
    position: absolute;
    left: 0;
    right: 0;
    top: 82%;
    height: 2px;
    background: #ef6f7d;
    box-shadow: 0 0 10px rgba(239, 111, 125, 0.5);
}

.zcd-frame.zcd-cal-hide-own [data-zcd-calendar-item="own"],
.zcd-frame.zcd-cal-hide-team [data-zcd-calendar-item="team"],
.zcd-frame.zcd-cal-hide-room [data-zcd-calendar-item="room"] {
    display: none;
}

/* ---------- Aufgaben ---------- */
.zcd-task-modal {
    position: absolute;
    inset: 0;
    z-index: 46;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.zcd-task-modal[hidden] {
    display: none;
}

.zcd-task-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(5px) saturate(1.08);
    cursor: pointer;
}

.zcd-task-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(874px, 92%);
    height: min(520px, 82%);
    min-width: min(640px, calc(100% - 24px));
    min-height: min(360px, calc(100% - 24px));
    overflow: hidden;
    border: 1px solid rgba(var(--zcd-secondary), 0.28);
    border-radius: 10px;
    background: var(--zcd-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.zcd-task-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 5px 6px 5px 14px;
    border-bottom: 1px solid var(--zcd-line);
    color: var(--zcd-text);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.zcd-task-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
    color: var(--zcd-text);
}

.zcd-task-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 4px 6px;
    border: 1px solid var(--zcd-line);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: rgba(10, 15, 30, 0.78);
}

.zcd-task-toolbar-spacer {
    flex: 1;
}

.zcd-task-tool,
.zcd-task-btn {
    border: none;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.zcd-task-tool:hover,
.zcd-task-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.zcd-task-tool {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--zcd-text);
    background: rgba(var(--zcd-cyan), 0.13);
    border: 1px solid rgba(var(--zcd-cyan), 0.22);
}

.zcd-task-tool .zcd-ico,
.zcd-task-btn .zcd-ico {
    font-size: 18px;
    color: currentColor;
}

.zcd-task-grid {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--zcd-line);
    border-radius: 0 0 8px 8px;
    background: rgba(5, 9, 22, 0.55);
}

.zcd-task-row {
    display: grid;
    grid-template-columns: 150px 110px minmax(210px, 1fr) 120px 140px 90px;
    min-width: 820px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.zcd-task-row > div {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.zcd-task-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(20, 29, 51, 0.98);
    color: var(--zcd-text);
    font-weight: 600;
}

.zcd-task-header > div {
    min-height: 38px;
}

.zcd-task-actions,
.zcd-task-details {
    justify-content: center;
    gap: 6px;
}

.zcd-task-title-cell {
    color: var(--zcd-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zcd-task-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #fff;
}

.zcd-task-secondary { background: #66758f; }
.zcd-task-success { background: #3b9b74; }
.zcd-task-danger { background: #b84d5a; }
.zcd-task-light {
    color: #06101f;
    background: #d9e3f4;
}

.zcd-task-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.zcd-task-badge-info {
    color: #072033;
    background: rgb(var(--zcd-cyan));
}

.zcd-task-badge-warning {
    color: #2a1600;
    background: #f1b75e;
}

.zcd-task-badge-light {
    color: #101727;
    background: #d8e1ef;
}

/* ---------- Generische Ansicht ---------- */
.zcd-generic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 380px;
    text-align: center;
}

.zcd-generic > .zcd-ico {
    font-size: 40px;
    color: rgba(var(--zcd-violet), 0.8);
}

.zcd-generic h3 { margin: 0; font-size: 1.1rem; color: var(--zcd-text); }

.zcd-generic p {
    margin: 0;
    max-width: 440px;
    font-size: 0.88rem;
    color: var(--zcd-text-2);
}

/* ---------- Rechte Einstellungs-Sidebar ---------- */
.zcd-settings {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 240px;
    padding: 18px 16px;
    background: rgba(20, 29, 51, 0.96);
    backdrop-filter: blur(6px);
    border-left: 1px solid var(--zcd-line);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 10;
}

.zcd-settings.open { transform: none; }

.zcd-overline {
    margin: 14px 0 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--zcd-text-2);
}

.zcd-overline:first-child { margin-top: 0; }

.zcd-fake-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--zcd-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    color: var(--zcd-text);
    cursor: pointer;
}

.zcd-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--zcd-text);
    cursor: pointer;
}

.zcd-switch {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.zcd-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cdd8ec;
    transition: transform 0.2s ease;
}

.zcd-switch-row.on .zcd-switch { background: rgb(var(--zcd-primary)); }
.zcd-switch-row.on .zcd-switch::after { transform: translateX(16px); background: #fff; }

/* ---------- Footer ---------- */
.zcd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    padding: 0 10px;
    background: var(--zcd-chrome);
    border-top: 1px solid var(--zcd-line);
    flex-shrink: 0;
}

.zcd-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--zcd-text-2);
    opacity: 0.6;
}

.zcd-footer-left img { height: 14px; }
.zcd-footer-left .zcd-ico { font-size: 14px; }

.zcd-footer-right {
    font-size: 10px;
    color: var(--zcd-text-2);
    opacity: 0.6;
}

/* ---------- Deaktivierte Elemente ---------- */
.zcd-frame [data-zcd-disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.zcd-frame [data-zcd-disabled] * {
    pointer-events: none;
}

/* ---------- Video-Popup (Dialog-Look wie im Original-Theme) ---------- */
.zcd-video-modal {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zcd-video-modal[hidden] { display: none; }

.zcd-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px) saturate(1.04);
    cursor: pointer;
}

.zcd-video-dialog {
    position: relative;
    width: min(960px, 92%);
    background: var(--zcd-surface);
    border: 1px solid rgba(var(--zcd-secondary), 0.24);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.zcd-video-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border-bottom: 1px solid var(--zcd-line);
    font-size: 14px;
    font-weight: 600;
    color: var(--zcd-text);
}

.zcd-video-dialog video {
    display: block;
    width: 100%;
    max-height: 66vh;
    background: #000;
}

/* ---------- Toasts ---------- */
.zcd-toasts {
    position: absolute;
    top: 56px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 90;
    pointer-events: none;
}

.zcd-toast {
    padding: 10px 14px;
    max-width: 300px;
    background: var(--zcd-surface);
    border: 1px solid rgba(var(--zcd-secondary), 0.28);
    border-left: 3px solid rgb(var(--zcd-cyan));
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    color: var(--zcd-text);
    font-size: 13px;
    animation: zcdToastIn 0.25s ease;
}

.zcd-toast.zcd-toast-refresh {
    animation: zcdToastRefresh 0.22s ease;
}

.zcd-toast.zcd-toast-out {
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes zcdToastIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes zcdToastRefresh {
    from { transform: translateX(0) scale(0.98); border-left-color: rgb(var(--zcd-violet)); }
    to { transform: translateX(0) scale(1); border-left-color: rgb(var(--zcd-cyan)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .zcd-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 20;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 640px) {
    .zcd-whereami { display: none; }

    .zcd-grid th:nth-child(2),
    .zcd-grid td:nth-child(2) { display: none; }

    .zcd-frame {
        height: min(760px, 82vh);
        border-radius: 8px;
    }

    .zcd-header {
        gap: 5px;
        padding: 0 6px;
    }

    .zcd-header-right {
        gap: 3px;
        flex-shrink: 0;
    }

    .zcd-header .zcd-iconbtn {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .zcd-header-right .zcd-tenant {
        display: none;
    }

    .zcd-logo {
        height: 23px;
        max-width: 86px;
        object-fit: contain;
    }

    .zcd-generated-apps {
        padding: 0 8px 14px;
        overflow-y: auto;
        background: #17243d;
    }

    .zcd-generated-apps.zcd-active {
        display: block;
    }

    .zcd-gapps-toolbar,
    .zcd-gapps-grid-wrap {
        display: none;
    }

    .zcd-gapps-mobile-title {
        display: block;
        padding: 12px 0 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.66);
        color: #fff;
        font-size: 18px;
        line-height: 1.2;
    }

    .zcd-gapps-mobile-search {
        position: sticky;
        top: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 0 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.62);
        background: #17243d;
    }

    .zcd-gapps-search {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        height: 54px;
        padding: 0 14px;
        border: 1px solid #9eadcc;
        border-radius: 3px;
        background: #1a2945;
        color: #9eadcc;
    }

    .zcd-gapps-search .zcd-ico {
        color: #9eadcc;
    }

    .zcd-gapps-search input {
        width: 100%;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        color: #eaf1ff;
        font: inherit;
        font-size: 16px;
    }

    .zcd-gapps-search input::placeholder {
        color: #a9b8d6;
        opacity: 1;
    }

    .zcd-gapps-add-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        border: none;
        border-radius: 50%;
        background: #9f5cf2;
        color: #fff;
        cursor: pointer;
        flex: 0 0 auto;
    }

    .zcd-gapps-add-circle .zcd-ico {
        font-size: 28px;
    }

    .zcd-gapps-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 16px;
    }

    .zcd-gapps-card {
        border: 1px solid transparent;
        border-bottom-color: rgba(255, 255, 255, 0.6);
        background: transparent;
        color: #fff;
        overflow: hidden;
    }

    .zcd-gapps-card.zcd-gapps-expanded {
        border-color: #9f5cf2;
        background: rgba(10, 18, 34, 0.38);
    }

    .zcd-gapps-card-head {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) 52px 24px;
        align-items: center;
        gap: 10px;
        min-height: 78px;
        padding: 10px 12px;
    }

    .zcd-gapps-card-head img {
        width: 58px;
        height: 58px;
        object-fit: contain;
        border-radius: 7px;
        background: #dceef7;
    }

    .zcd-gapps-card h3 {
        margin: 0;
        overflow: hidden;
        color: #f4f7ff;
        font-size: 16px;
        font-weight: 750;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .zcd-gen-modal {
        align-items: stretch;
        padding: 8px;
    }

    .zcd-gen-dialog {
        width: 100%;
        height: 100%;
        min-width: 0;
    }

    .zcd-gen-content {
        padding: 10px;
    }

    .zcd-gen-prompt-row,
    .zcd-gen-submit-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .zcd-gen-dictate {
        flex: 0 0 auto;
        min-height: 42px;
    }

    .zcd-gen-session-row {
        align-items: stretch;
    }

    .zcd-gen-session-icon {
        display: none;
    }

    .zcd-gen-light-btn,
    .zcd-gen-primary-btn {
        width: 100%;
    }

    .zcd-gapps-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 7px;
    }

    .zcd-gapps-chip,
    .zcd-gapps-chips span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 26px;
        padding: 2px 9px;
        border-radius: 8px;
        color: #081226;
        font-size: 12px;
        font-weight: 750;
        line-height: 1;
    }

    .zcd-gapps-chip .zcd-ico,
    .zcd-gapps-chips .zcd-ico {
        font-size: 16px;
    }

    .zcd-gapps-chip-idle {
        background: #8fb1ff;
        color: #fff;
    }

    .zcd-gapps-chip-running {
        background: #56d9a3;
    }

    .zcd-gapps-chip-host,
    .zcd-gapps-chips .zcd-gapps-chip-host {
        background: #f4f7ff;
        color: #081226;
    }

    .zcd-gapps-chip-warning,
    .zcd-gapps-chips .zcd-gapps-chip-warning {
        background: #ffcf5e;
        color: #1d1607;
    }

    .zcd-gapps-card-run {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border: none;
        border-radius: 50%;
        background: #1d5b68;
        color: #0a2630;
        cursor: pointer;
    }

    .zcd-gapps-card-stop {
        background: #924856;
        color: #fff;
    }

    .zcd-gapps-card-run .zcd-ico {
        font-size: 28px;
    }

    .zcd-gapps-card-chevron {
        color: #9da8bf;
    }

    .zcd-gapps-expanded .zcd-gapps-card-chevron {
        transform: rotate(180deg);
    }

    .zcd-gapps-card-body {
        padding: 0 14px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.48);
    }

    .zcd-gapps-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 12px;
    }

    .zcd-gapps-chips span {
        background: #e8edf6;
    }

    .zcd-gapps-chips .zcd-gapps-chip-warning {
        background: #ffcf5e;
        color: #1d1607;
    }

    .zcd-gapps-action-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 8px;
    }

    .zcd-gapps-action-grid button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
        min-height: 54px;
        padding: 0 8px;
        border: none;
        border-radius: 3px;
        background: #34496d;
        color: #f3f7ff;
        font: inherit;
        font-weight: 750;
        cursor: pointer;
    }

    .zcd-gapps-action-grid button .zcd-ico {
        font-size: 22px;
    }

    .zcd-gapps-action-grid .zcd-gapps-action-primary {
        background: linear-gradient(135deg, #7869c4 0%, #9587d0 56%, #94a3d8 100%);
        color: #fff;
    }

    .zcd-gapps-action-grid .zcd-gapps-action-secondary {
        background: linear-gradient(135deg, #5cbac4 0%, #6cc4c8 52%, #94a8d4 100%);
        color: #07101f;
    }

    .zcd-gapps-action-grid .zcd-gapps-wide {
        grid-column: 1 / -1;
    }

    .zcd-gapps-card-body p {
        margin: 16px 0 2px;
        color: #9da8bf;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
}
