.rslc-root { --rslc-color: #2563eb; --rslc-on-color: #fff; font-family: inherit; font-size: 15px; line-height: 1.4; color: #111827; box-sizing: border-box; }
.rslc-root button, .rslc-root input, .rslc-root textarea { font-family: inherit; }
.rslc-hidden { display: none !important; }
/* Ein Kalender liegt als Fenster über der Seite: Chat-Knopf und Sprechblase gehen so lange weg. */
html.rslc-calendar-open .rslc-floating, html.rslc-calendar-open .rslc-fly-dot, html.rslc-calendar-open .rslc-team-speech,
html.rslc-check-running .rslc-floating, html.rslc-check-running .rslc-fly-dot, html.rslc-check-running .rslc-team-speech { display: none !important; }
.rslc-root *, .rslc-root *::before, .rslc-root *::after { box-sizing: border-box; }

.rslc-floating { position: fixed; right: 20px; bottom: 20px; z-index: 999999; }
.rslc-floating.rslc-left { right: auto; left: 20px; }

.rslc-button { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--rslc-color); color: var(--rslc-on-color); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); position: relative; padding: 0; }
.rslc-button:hover { filter: brightness(1.08); }
.rslc-badge { display: none; position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }

.rslc-bubble-mode.rslc-has-photo .rslc-button > svg { display: none; }
.rslc-bubble-mode .rslc-button .rslc-avatar { width: 100%; height: 100%; }
.rslc-bubble-mode .rslc-button { transition: opacity .3s, transform .3s; }
.rslc-anchored .rslc-button { opacity: 0; pointer-events: none; transform: scale(.4); }
.rslc-speech { --rslc-speech-bg: #fff; --rslc-speech-bg: color-mix(in srgb, var(--rslc-color) 12%, #fff); position: fixed; width: 236px; padding: 10px 12px 12px 14px; background: var(--rslc-speech-bg); color: #111827; border: 2px solid var(--rslc-color); border-radius: 14px; box-shadow: 0 14px 36px rgba(15, 30, 50, .34); font-size: 14px; line-height: 1.35; }
.rslc-speech[hidden] { display: none; }
.rslc-fly-dot { position: fixed; z-index: 999998; border-radius: 50%; border: 1.5px solid; pointer-events: none; box-sizing: border-box; }
.rslc-speech-small { width: auto; padding: 7px 28px 7px 11px; }
.rslc-speech-small > .rslc-speech-top, .rslc-speech-small > .rslc-speech-talk, .rslc-speech-small > .rslc-speech-input, .rslc-speech-small > .rslc-speech-actions { display: none; }
.rslc-speech-mini-text { display: none; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: #111827; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.rslc-speech-small > .rslc-speech-mini-text { display: flex; }
.rslc-speech-enter { animation: rslc-enter .35s ease-out; }
.rslc-speech-nudge { animation: rslc-nudge .7s ease-in-out; }
@keyframes rslc-nudge { 0%, 100% { transform: none; } 20% { transform: rotate(-1.6deg) translateY(-2px); } 45% { transform: rotate(1.4deg); } 70% { transform: rotate(-.8deg); } }
@keyframes rslc-enter { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.rslc-speech::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--rslc-speech-bg); border: solid var(--rslc-color); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.rslc-speech[data-side="side"]::after, .rslc-speech[data-side="dock"]::after { right: -9px; top: var(--rslc-tail-y, 60%); }
.rslc-speech[data-side="dock"]::after { top: calc(50% - 7px); }
.rslc-speech[data-side="dock-up"]::after { right: 22px; bottom: -9px; transform: rotate(45deg); }
.rslc-speech-top { display: flex; align-items: center; gap: 6px; padding-right: 18px; margin-bottom: 4px; font-size: 12px; color: #4b5563; }
.rslc-speech-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.rslc-speech-online .rslc-speech-dot { background: #16a34a; animation: rslc-pulse 2s ease-out infinite; }
@keyframes rslc-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } }
.rslc-speech-talk { display: block; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 20px; }
.rslc-speech-close { position: absolute; top: 5px; right: 6px; width: 22px; height: 22px; padding: 0; background: none; border: 0; color: #6b7280; font-size: 17px; line-height: 1; cursor: pointer; }
.rslc-speech-dots { display: inline-flex; gap: 4px; }
.rslc-speech-dots[hidden] { display: none; }
.rslc-speech-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: rslc-dot 1s infinite; }
.rslc-speech-dots i:nth-child(2) { animation-delay: .15s; }
.rslc-speech-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes rslc-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.rslc-speech-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.rslc-speech-actions[hidden] { display: none; }
.rslc-speech-input { display: flex; align-items: center; width: 100%; margin-top: 9px; padding: 7px 8px 7px 10px; background: #fff; border: 1px solid #9ca3af; border-radius: 9px; color: #6b7280; font: inherit; font-size: 13px; text-align: left; cursor: text; }
.rslc-speech-input[hidden] { display: none; }
.rslc-speech-caret { width: 1.5px; height: 15px; margin-right: 3px; background: #111827; animation: rslc-caret 1.1s steps(2, jump-none) infinite; }
@keyframes rslc-caret { from { opacity: 1; } to { opacity: 0; } }
.rslc-speech-hint { flex: 1; min-width: 0; white-space: nowrap; }
.rslc-speech-send { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rslc-color); color: var(--rslc-on-color); font-size: 11px; line-height: 1; }
.rslc-speech-action { display: inline-block; padding: 5px 10px; background: #fff; border: 1.5px solid var(--rslc-color); border-radius: 8px; color: #111827; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; }
.rslc-speech-action:hover { background: var(--rslc-color); color: var(--rslc-on-color); }
.rslc-speech-primary { background: var(--rslc-color); color: var(--rslc-on-color); animation: rslc-primary 2.4s ease-in-out 5; }
@keyframes rslc-primary { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, .25); } 50% { box-shadow: 0 0 0 5px rgba(0, 0, 0, 0); } }
.rslc-speech-narrow { padding: 6px 6px 7px 7px; border-radius: 11px; font-size: 11.5px; line-height: 1.28; }
.rslc-speech-narrow .rslc-speech-top { margin-bottom: 2px; font-size: 10.5px; }
.rslc-speech-narrow .rslc-speech-close { top: 2px; right: 2px; width: 18px; height: 18px; font-size: 14px; }
.rslc-speech-narrow .rslc-speech-input { margin-top: 5px; padding: 3px 3px 3px 5px; border-radius: 7px; font-size: 10px; }
.rslc-speech-narrow .rslc-speech-hint { overflow: hidden; }
.rslc-speech-narrow .rslc-speech-send { width: 18px; height: 18px; font-size: 9px; }
.rslc-speech-narrow .rslc-speech-actions { flex-direction: column; gap: 3px; margin-top: 5px; }
.rslc-speech-narrow .rslc-speech-action { padding: 3px 3px; border-radius: 6px; font-size: 10.5px; text-align: center; white-space: normal; }
@media (prefers-reduced-motion: reduce) { .rslc-speech-dots i, .rslc-speech-online .rslc-speech-dot, .rslc-status.is-online .rslc-status-dot, .rslc-speech-enter, .rslc-speech-caret, .rslc-speech-primary, .rslc-mic.is-active { animation: none; } }

.rslc-panel { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 44px rgba(0,0,0,.3); border: 2px solid var(--rslc-color); }
.rslc-panel[hidden] { display: none; }
.rslc-floating .rslc-panel { position: absolute; bottom: 76px; right: 0; width: 360px; height: 520px; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px - var(--rslc-lift, 0px)); }
.rslc-floating.rslc-left .rslc-panel { right: auto; left: 0; }
.rslc-inline .rslc-panel { height: 100%; box-shadow: none; }

.rslc-head { background: var(--rslc-color); color: var(--rslc-on-color); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.rslc-who { flex: 1; min-width: 0; }
.rslc-title { font-weight: 600; }
.rslc-subtitle { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rslc-avatar { flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; font-weight: 600; }
.rslc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rslc-avatar-head { width: 40px; height: 40px; font-size: 15px; background: rgba(255, 255, 255, .25); color: var(--rslc-on-color); }
.rslc-avatar-msg { width: 26px; height: 26px; font-size: 10px; background: var(--rslc-color); color: var(--rslc-on-color); }
.rslc-status { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.rslc-status-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; background: #9ca3af; }
.rslc-status.is-online .rslc-status-dot { background: #22c55e; animation: rslc-pulse 2s ease-out infinite; }
.rslc-mute { background: transparent; border: 0; color: var(--rslc-on-color); line-height: 0; cursor: pointer; padding: 2px; }
.rslc-close { background: transparent; border: 0; color: var(--rslc-on-color); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px; }

.rslc-list { flex: 1; overflow-y: auto; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.rslc-msg { display: flex; }
.rslc-me { justify-content: flex-end; }
.rslc-them { gap: 6px; align-items: flex-end; }
.rslc-bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.rslc-them .rslc-bubble { background: #f3f4f6; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.rslc-me .rslc-bubble { background: var(--rslc-color); color: var(--rslc-on-color); border-bottom-right-radius: 4px; }

.rslc-offline { padding: 10px 12px 0; background: #fff; border-top: 1px solid #e5e7eb; }
.rslc-offbar { padding: 8px 14px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; color: #374151; font-size: 13px; font-weight: 600; }
.rslc-offline input { width: 100%; margin: 0 0 6px; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 14px; }

.rslc-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #e5e7eb; }
/* Feste Höhe passend zur Zeile: Passt die Zeile nicht hinein, rollt das Feld ein Stück, und der Cursor sitzt versetzt. */
.rslc-form textarea { flex: 1; box-sizing: border-box; width: auto; min-width: 0; height: 42px; min-height: 42px; max-height: 42px; margin: 0; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; line-height: 22px; resize: none; -webkit-appearance: none; appearance: none; }
/* Unter 16px vergrößert iOS beim Antippen die ganze Seite, dann sitzen feste Elemente und Cursor versetzt. */
@media (max-width: 640px), (pointer: coarse) { .rslc-form textarea, .rslc-offline input { font-size: 16px; } }
.rslc-mic { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 8px; color: #374151; cursor: pointer; padding: 0; }
.rslc-mic:hover { background: #e5e7eb; }
.rslc-mic.is-active { background: #dc2626; border-color: #dc2626; color: #fff; animation: rslc-mic 1.2s ease-out infinite; }
@keyframes rslc-mic { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } }
.rslc-send { background: var(--rslc-color); color: var(--rslc-on-color); border: 0; border-radius: 8px; padding: 0 14px; cursor: pointer; font: inherit; font-weight: 600; }
.rslc-error { color: #b91c1c; font-size: 12px; padding: 0 12px; background: #fff; }
.rslc-error:empty { display: none; }

.rslc-text { white-space: pre-wrap; }
.rslc-image { display: block; margin: -2px -6px 6px; }
.rslc-image img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; }
.rslc-file { display: flex; align-items: center; gap: 8px; color: inherit !important; text-decoration: none !important; padding: 2px 0; }
.rslc-file + .rslc-text { margin-top: 6px; }
.rslc-file-icon { font-size: 20px; }
.rslc-file-meta { display: flex; flex-direction: column; min-width: 0; }
.rslc-file-meta strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rslc-file-meta small { opacity: .75; font-size: 12px; }

/* Design B: Weiß klar */
.rslc-style-b .rslc-speech { --rslc-speech-bg: #fff; border: 1px solid #d9dee6; border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 30, 50, .2); }
.rslc-style-b .rslc-speech::after { border-color: #d9dee6; border-width: 0 1px 1px 0; }
.rslc-style-b .rslc-speech-input { background: #f6f7f9; border-color: #e0e4ea; }
.rslc-style-b .rslc-speech-action:not(.rslc-speech-primary) { border-color: #d1d5db; border-radius: 6px; }
.rslc-style-b .rslc-speech-primary { border-radius: 6px; }
.rslc-style-b .rslc-panel { border: 1px solid #d9dee6; border-radius: 10px; }
.rslc-style-b .rslc-head { background: #fff; color: #17304f; border-bottom: 2px solid var(--rslc-color); }
.rslc-style-b .rslc-close, .rslc-style-b .rslc-mute { color: #17304f; }
.rslc-style-b .rslc-avatar-head { background: rgba(23, 48, 79, .12); color: #17304f; }
.rslc-style-b .rslc-status-dot { border-color: #9ca3af; }

/* Design C: Kräftig */
.rslc-style-c .rslc-speech { --rslc-speech-bg: var(--rslc-color); color: var(--rslc-on-color); border-color: var(--rslc-color); border-radius: 20px; }
.rslc-style-c .rslc-speech::after { border-color: var(--rslc-color); }
.rslc-style-c .rslc-speech-top, .rslc-style-c .rslc-speech-close, .rslc-style-c .rslc-speech-mini-text { color: var(--rslc-on-color); }
.rslc-style-c .rslc-speech-online .rslc-speech-dot { background: #4ade80; }
.rslc-style-c .rslc-speech-input { border-color: transparent; border-radius: 999px; }
.rslc-style-c .rslc-speech-send { background: #17304f; color: #fff; }
.rslc-style-c .rslc-speech-action { background: transparent; border-color: var(--rslc-on-color); border-radius: 999px; color: var(--rslc-on-color); }
.rslc-style-c .rslc-speech-action:hover, .rslc-style-c .rslc-speech-primary { background: var(--rslc-on-color); color: var(--rslc-color); }
.rslc-style-c .rslc-panel { border-radius: 20px; }
.rslc-style-c .rslc-form textarea, .rslc-style-c .rslc-send, .rslc-style-c .rslc-mic { border-radius: 999px; }

/* Design D: Dunkel elegant */
.rslc-style-d .rslc-speech { --rslc-speech-bg: #17304f; color: #fff; border-color: #17304f; border-radius: 6px; box-shadow: 0 16px 36px rgba(10, 20, 35, .45); }
.rslc-style-d .rslc-speech::after { border-color: #17304f; }
.rslc-style-d .rslc-speech-top, .rslc-style-d .rslc-speech-close, .rslc-style-d .rslc-speech-mini-text { color: #fff; }
.rslc-style-d .rslc-speech-online .rslc-speech-dot { background: #4ade80; }
.rslc-style-d .rslc-speech-input { border-color: transparent; border-radius: 4px; }
.rslc-style-d .rslc-speech-action { background: transparent; border-color: rgba(255, 255, 255, .5); border-radius: 4px; color: #fff; }
.rslc-style-d .rslc-speech-action:hover, .rslc-style-d .rslc-speech-primary { background: var(--rslc-color); border-color: var(--rslc-color); color: var(--rslc-on-color); }
.rslc-style-d .rslc-panel { border-color: #17304f; border-radius: 6px; }
.rslc-style-d .rslc-head { background: #17304f; color: #fff; border-bottom: 3px solid var(--rslc-color); }
.rslc-style-d .rslc-close, .rslc-style-d .rslc-mute { color: #fff; }
.rslc-style-d .rslc-avatar-head { color: #fff; }
.rslc-style-d .rslc-button { background: #17304f; color: #fff; }
.rslc-style-d .rslc-form textarea, .rslc-style-d .rslc-send, .rslc-style-d .rslc-mic { border-radius: 4px; }

/* Tipp-Anzeige */
.rslc-typing .rslc-bubble { display: flex; align-items: center; gap: 8px; color: #4b5563; font-size: 13px; }
.rslc-typing-dots { display: inline-flex; gap: 3px; }
.rslc-typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: #6b7280; animation: rslc-typing 1.2s ease-in-out infinite; }
.rslc-typing-dots i:nth-child(2) { animation-delay: .2s; }
.rslc-typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes rslc-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .rslc-typing-dots i { animation: none; } }

/* Kalender per Klick */
.rslc-cal-btn { display: block; margin-top: 8px; padding: 7px 12px; background: var(--rslc-color); color: var(--rslc-on-color); border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.rslc-cal-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17, 24, 39, .6); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.4; color: #111827; }
.rslc-cal-box { display: flex; flex-direction: column; width: 100%; max-width: 1040px; height: 100%; max-height: 860px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 50px rgba(0, 0, 0, .4); }
.rslc-cal-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.rslc-cal-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rslc-cal-tab { flex: none; font-size: 13px; color: #374151 !important; text-decoration: underline; }
.rslc-cal-close { flex: none; width: 36px; height: 36px; background: #f3f4f6; border: 0; border-radius: 50%; color: #111827; font-size: 24px; line-height: 1; cursor: pointer; }
.rslc-cal-close:hover { background: #e5e7eb; }
.rslc-cal-note { flex: none; padding: 8px 14px; background: #fef3c7; font-size: 14px; }
.rslc-cal-note a { color: inherit !important; text-decoration: underline; }
.rslc-cal-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
@media (max-width: 640px) {
	.rslc-cal-overlay { padding: 0; }
	.rslc-cal-box { max-width: none; max-height: none; border-radius: 0; }
	.rslc-cal-tab { display: none; }
}

/* Kleine Blase am Foto im Teambereich, im Design der großen Sprechblase */
.rslc-team-speech { --team-bg: color-mix(in srgb, var(--rslc-team-color, #2563eb) 12%, #fff); --team-fg: #111827; --team-border: var(--rslc-team-color, #2563eb); --team-bw: 2px;
	position: absolute; z-index: 50; display: flex; align-items: flex-start; gap: 6px; box-sizing: border-box; width: max-content; max-width: 190px; padding: 7px 24px 8px 10px; background: var(--team-bg); color: var(--team-fg); border: var(--team-bw) solid var(--team-border); border-radius: 12px; box-shadow: 0 8px 22px rgba(15, 30, 50, .25); font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; cursor: pointer; transform-origin: 0 20px; }
.rslc-team-speech[hidden] { display: none; }
.rslc-team-speech::after { content: ""; position: absolute; left: -8px; top: 12px; width: 12px; height: 12px; background: var(--team-bg); border: solid var(--team-border); border-width: 0 0 var(--team-bw) var(--team-bw); transform: rotate(45deg); }
.rslc-team-below { transform-origin: var(--rslc-team-tail, 20px) 0; }
.rslc-team-below::after { left: var(--rslc-team-tail, 16px); top: -8px; border-width: var(--team-bw) 0 0 var(--team-bw); }
.rslc-team-style-b { --team-bg: #fff; --team-border: #d9dee6; --team-bw: 1px; border-radius: 10px; }
.rslc-team-style-c { --team-bg: var(--rslc-team-color, #2563eb); --team-fg: var(--rslc-team-on, #fff); border-radius: 16px; }
.rslc-team-style-d { --team-bg: #17304f; --team-fg: #fff; --team-border: #17304f; border-radius: 6px; box-shadow: 0 12px 28px rgba(10, 20, 35, .4); }
.rslc-team-dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #22c55e; animation: rslc-pulse 2s ease-out infinite; }
.rslc-team-style-c .rslc-team-dot, .rslc-team-style-d .rslc-team-dot { background: #4ade80; }
.rslc-team-x { position: absolute; top: 3px; right: 4px; width: 20px; height: 20px; padding: 0; background: transparent; border: 0; color: inherit; opacity: .65; font-size: 16px; line-height: 1; cursor: pointer; }
.rslc-team-in { animation: rslc-team-pop .5s cubic-bezier(.2, 1.4, .4, 1) both, rslc-team-float 4s ease-in-out .6s infinite; }
@keyframes rslc-team-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes rslc-team-float { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .rslc-team-in, .rslc-team-dot { animation: none; } }
