/* Fraktionstool: eigene Oberflächen (Start, Sitzungsraum, Chat). Filament 5 bringt keine Tailwind-Utilities für
   eigene Blade-Ansichten mit, darum hier eine kleine eigene Gestaltung mit Variablen für hell und dunkel. */
.ck {
    --ck-bg: #ffffff; --ck-soft: #f4f5fb; --ck-line: #e4e6f0; --ck-text: #171a2b; --ck-mute: #646a82;
    --ck-accent: #4f46e5; --ck-accent-soft: #eef0ff; --ck-ok: #059669; --ck-warn: #d97706; --ck-bad: #dc2626;
    --ck-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
    color: var(--ck-text); font-size: 15px;
}
.dark .ck {
    --ck-bg: #161827; --ck-soft: #1d2033; --ck-line: #2b2f47; --ck-text: #eceefa; --ck-mute: #a0a6c2;
    --ck-accent: #8b85ff; --ck-accent-soft: #24264a;
}
.ck * { box-sizing: border-box; }
.ck a { color: inherit; text-decoration: none; }
.ck-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .ck-grid--2 { grid-template-columns: 3fr 2fr; } .ck-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.ck-stack { display: flex; flex-direction: column; gap: 1rem; }
.ck-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ck-card { background: var(--ck-bg); border: 1px solid var(--ck-line); border-radius: 1.1rem; padding: 1.1rem 1.2rem; }
.ck-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ck-mute); margin: 0 0 .7rem; font-weight: 700; }
.ck-hero { background: var(--ck-hero); color: #fff; border-radius: 1.4rem; padding: 1.4rem 1.5rem; position: relative; overflow: hidden; }
.ck-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ck-hero small { opacity: .85; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.ck-hero h2 { font-size: 1.55rem; line-height: 1.2; margin: .35rem 0 .4rem; font-weight: 800; }
.ck-hero p { margin: 0; opacity: .92; }
.ck-hero .ck-btn { background: #fff; color: #3730a3; }
.ck-count { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.ck-btn { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .6rem 1.05rem; font-weight: 700; font-size: .9rem;
    background: var(--ck-accent); color: #fff !important; border: 0; cursor: pointer; transition: transform .08s ease, opacity .15s; }
.ck-btn:hover { opacity: .92; } .ck-btn:active { transform: scale(.97); }
.ck-btn--ghost { background: var(--ck-accent-soft); color: var(--ck-accent) !important; }
.ck-btn--plain { background: transparent; color: var(--ck-mute) !important; padding: .4rem .6rem; }
.ck-btn svg { width: 1.1rem; height: 1.1rem; }
.ck-chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .18rem .6rem; font-size: .75rem; font-weight: 700;
    background: var(--ck-soft); color: var(--ck-mute); }
.ck-chip--accent { background: var(--ck-accent-soft); color: var(--ck-accent); }
.ck-chip--warn { background: #fef3c7; color: #92400e; } .dark .ck-chip--warn { background: #3b2a0a; color: #fbbf24; }
.ck-chip--ok { background: #d1fae5; color: #065f46; } .dark .ck-chip--ok { background: #0b3326; color: #34d399; }
.ck-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ck-list > li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--ck-line); }
.ck-list > li:first-child { border-top: 0; padding-top: 0; }
.ck-list .ck-title { font-weight: 650; line-height: 1.3; }
.ck-list .ck-meta { font-size: .8rem; color: var(--ck-mute); margin-top: .15rem; }
.ck-check { width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid var(--ck-line); flex: 0 0 auto; cursor: pointer; background: transparent;
    display: grid; place-items: center; margin-top: .05rem; }
.ck-check:hover { border-color: var(--ck-ok); background: #d1fae5; }
.ck-empty { color: var(--ck-mute); font-size: .9rem; }
.ck-tabs { display: flex; gap: .35rem; background: var(--ck-soft); padding: .3rem; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.ck-tabs button { border: 0; background: transparent; border-radius: 999px; padding: .5rem 1rem; font-weight: 700; color: var(--ck-mute); cursor: pointer; white-space: nowrap; }
.ck-tabs button.is-active { background: var(--ck-bg); color: var(--ck-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ck-mic { width: 4.6rem; height: 4.6rem; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
    background: var(--ck-hero); box-shadow: 0 10px 25px -8px rgba(79,70,229,.6); flex: 0 0 auto; }
.ck-mic svg { width: 2rem; height: 2rem; }
.ck-mic.is-live { animation: ck-pulse 1.2s infinite; background: #dc2626; box-shadow: 0 0 0 0 rgba(220,38,38,.5); }
@keyframes ck-pulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 70% { box-shadow: 0 0 0 18px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
.ck-textarea { width: 100%; min-height: 9rem; border-radius: .9rem; border: 1px solid var(--ck-line); background: var(--ck-soft); color: var(--ck-text);
    padding: .8rem .9rem; font: inherit; line-height: 1.5; resize: vertical; }
.ck-textarea:focus, .ck-input:focus { outline: 2px solid var(--ck-accent); outline-offset: 1px; }
.ck-input { flex: 1; border-radius: 999px; border: 1px solid var(--ck-line); background: var(--ck-soft); color: var(--ck-text); padding: .65rem 1rem; font: inherit; min-width: 0; }
.ck-make { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.ck-make button { border: 1px solid var(--ck-line); background: var(--ck-bg); border-radius: 1rem; padding: .9rem; text-align: left; cursor: pointer; color: var(--ck-text);
    display: flex; flex-direction: column; gap: .35rem; font-weight: 700; transition: border-color .15s, transform .08s; }
.ck-make button:hover { border-color: var(--ck-accent); } .ck-make button:active { transform: scale(.98); }
.ck-make button svg { width: 1.5rem; height: 1.5rem; color: var(--ck-accent); }
.ck-make button span { font-weight: 500; font-size: .78rem; color: var(--ck-mute); }
.ck-doc { border: 1px solid var(--ck-line); border-radius: 1rem; overflow: hidden; }
.ck-doc header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .9rem; background: var(--ck-soft); flex-wrap: wrap; }
.ck-doc .ck-body { padding: .9rem 1rem; line-height: 1.55; max-height: 26rem; overflow: auto; }
.ck-body h1, .ck-body h2, .ck-body h3 { margin: .8rem 0 .4rem; line-height: 1.25; font-weight: 750; } .ck-body h1 { font-size: 1.2rem; } .ck-body h2 { font-size: 1.05rem; } .ck-body h3 { font-size: .95rem; }
.ck-body ul, .ck-body ol { padding-left: 1.2rem; margin: .3rem 0; } .ck-body ul { list-style: disc; } .ck-body ol { list-style: decimal; } .ck-body p { margin: .4rem 0; }
.ck-chat { display: flex; flex-direction: column; gap: .5rem; max-height: 28rem; overflow-y: auto; padding-right: .2rem; }
.ck-msg { display: flex; gap: .55rem; align-items: flex-end; }
.ck-msg .ck-bubble { background: var(--ck-soft); border-radius: 1rem 1rem 1rem .3rem; padding: .55rem .8rem; max-width: 80%; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.ck-msg.is-mine { flex-direction: row-reverse; }
.ck-msg.is-mine .ck-bubble { background: var(--ck-accent); color: #fff; border-radius: 1rem 1rem .3rem 1rem; }
.ck-msg .ck-who { font-size: .72rem; color: var(--ck-mute); margin-bottom: .15rem; }
.ck-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ck-accent-soft); color: var(--ck-accent); display: grid; place-items: center; font-weight: 800; font-size: .78rem; flex: 0 0 auto; }
.ck-stat { display: flex; flex-direction: column; } .ck-stat b { font-size: 1.6rem; line-height: 1.1; } .ck-stat span { font-size: .8rem; color: var(--ck-mute); }
.ck-bar { height: .5rem; border-radius: 999px; background: var(--ck-soft); overflow: hidden; } .ck-bar > i { display: block; height: 100%; background: var(--ck-ok); border-radius: 999px; }
.ck-loading { display: inline-flex; gap: .5rem; align-items: center; color: var(--ck-accent); font-weight: 700; }
.ck-spin { width: 1rem; height: 1rem; border: 2px solid var(--ck-accent-soft); border-top-color: var(--ck-accent); border-radius: 50%; animation: ck-rot .8s linear infinite; }
@keyframes ck-rot { to { transform: rotate(360deg); } }
.ck-note { font-size: .82rem; color: var(--ck-mute); }
.ck a.ck-hero, .ck .ck-hero { color: #fff; }
.ck .ck-hero .ck-btn { background: #fff; color: #3730a3 !important; }
.ck-card h3 .ck-btn { text-transform: none; letter-spacing: 0; }
.ck button:disabled, .ck .ck-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ck-diktat { display: flex; gap: 1rem; align-items: flex-start; }
@media (max-width: 640px) { .ck-diktat { flex-direction: column; align-items: center; } .ck-diktat > div { width: 100%; } }
