/* Companion Chat – Messenger-Oberfläche
   Farben und Maße über Variablen, damit das Theme sie überschreiben kann. */

.cmp-app {
	--cmp-accent: #c4436e;
	--cmp-accent-dark: #a5335a;
	--cmp-accent-soft: #fde2ea;
	--cmp-text: #1f1b1d;
	--cmp-muted: #7a7075;
	--cmp-border: #e6dfe1;
	--cmp-sidebar-bg: #ffffff;
	--cmp-header-bg: #f7f2f4;
	--cmp-chat-bg: #f2ebe6;
	--cmp-bubble-in: #ffffff;
	--cmp-bubble-out: #fde2ea;
	--cmp-composer-bg: #f7f2f4;
	--cmp-radius: 10px;
	--cmp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cmp-sidebar-width: 360px;

	font-family: var(--cmp-font);
	font-size: 15px;
	line-height: 1.4;
	color: var(--cmp-text);
	background: var(--cmp-sidebar-bg);
	display: flex;
	height: 100%;
	min-height: 480px;
	overflow: hidden;
	position: relative;
	-webkit-font-smoothing: antialiased;
}
.cmp-app *, .cmp-app *::before, .cmp-app *::after { box-sizing: border-box; }
.cmp-app button { font: inherit; color: inherit; }
.cmp-app a { color: var(--cmp-accent); }

/* Vollbild-Template */
body.cmp-fullscreen { margin: 0; height: 100dvh; overflow: hidden; background: var(--cmp-chat-bg, #f2ebe6); }
body.cmp-fullscreen .cmp-app { height: 100dvh; }

/* Einbettung per Shortcode */
.cmp-embed { height: min(80vh, 820px); border: 1px solid #e6dfe1; border-radius: 12px; overflow: hidden; }

.cmp-boot, .cmp-notice-full {
	margin: auto;
	padding: 24px;
	color: var(--cmp-muted);
	text-align: center;
	max-width: 380px;
}
.cmp-notice-full h2 { margin: 0 0 8px; color: var(--cmp-text); font-size: 20px; }
.cmp-notice-full .cmp-btn { margin-top: 14px; padding: 11px 24px; }
.cmp-app a.cmp-btn { color: #fff; }
.cmp-app a.cmp-btn--ghost { color: var(--cmp-accent); }
.cmp-notice-alt { margin-top: 16px; font-size: 14px; }

/* ---------- Buttons ---------- */
.cmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 0;
	background: var(--cmp-accent);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
}
.cmp-btn:hover { background: var(--cmp-accent-dark); }
.cmp-btn--ghost { background: transparent; color: var(--cmp-accent); border: 1px solid var(--cmp-border); }
.cmp-btn--ghost:hover { background: var(--cmp-accent-soft); }
.cmp-icon-btn {
	width: 40px; height: 40px;
	border: 0; border-radius: 50%;
	background: transparent;
	color: var(--cmp-muted);
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto;
}
.cmp-icon-btn:hover { background: rgba(0,0,0,.06); color: var(--cmp-text); }
.cmp-icon-btn svg { width: 22px; height: 22px; }
.cmp-app :focus-visible { outline: 2px solid var(--cmp-accent); outline-offset: 2px; }

/* ---------- Sidebar ---------- */
.cmp-sidebar {
	width: var(--cmp-sidebar-width);
	flex: 0 0 var(--cmp-sidebar-width);
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--cmp-border);
	background: var(--cmp-sidebar-bg);
	min-width: 0;
}
.cmp-sidebar-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 10px 16px;
	background: var(--cmp-header-bg);
	min-height: 60px;
}
.cmp-brand { font-weight: 700; font-size: 17px; flex: 1 1 auto; min-width: 0; }
.cmp-brand small { display: block; font-weight: 400; font-size: 12px; color: var(--cmp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-list { flex: 1 1 auto; overflow-y: auto; }
.cmp-list-empty { padding: 32px 20px; color: var(--cmp-muted); text-align: center; }
.cmp-contact {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--cmp-border);
	background: transparent;
	text-align: left;
	cursor: pointer;
}
.cmp-contact:hover, .cmp-contact.is-active { background: var(--cmp-header-bg); }
.cmp-avatar {
	width: 50px; height: 50px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 12%;
	flex: 0 0 auto;
	background: var(--cmp-accent-soft);
}
.cmp-contact-body { flex: 1 1 auto; min-width: 0; }
.cmp-contact-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cmp-contact-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-contact-time { font-size: 12px; color: var(--cmp-muted); flex: 0 0 auto; }
.cmp-contact-snippet { font-size: 13.5px; color: var(--cmp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cmp-sidebar-foot {
	padding: 8px 12px;
	border-top: 1px solid var(--cmp-border);
	font-size: 12.5px;
	color: var(--cmp-muted);
	display: flex;
	justify-content: space-between;
	gap: 8px;
	align-items: center;
}
.cmp-sidebar-foot a { text-decoration: none; }

/* ---------- Chat ---------- */
.cmp-chat {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--cmp-chat-bg);
	position: relative;
}
.cmp-chat-empty {
	margin: auto;
	text-align: center;
	color: var(--cmp-muted);
	padding: 24px;
	max-width: 360px;
}
.cmp-chat-empty h2 { color: var(--cmp-text); font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.cmp-chat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 8px 12px;
	background: var(--cmp-header-bg);
	border-bottom: 1px solid var(--cmp-border);
	min-height: 60px;
}
.cmp-chat-head .cmp-avatar { width: 40px; height: 40px; }
.cmp-chat-head-body { flex: 1 1 auto; min-width: 0; }
.cmp-chat-head-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-chat-head-status { font-size: 12.5px; color: var(--cmp-muted); }
.cmp-chat-head-status.is-typing { color: var(--cmp-accent); }
.cmp-back { display: none; }

.cmp-messages {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px 8% 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { .cmp-messages { scroll-behavior: auto; } }

.cmp-day {
	align-self: center;
	font-size: 12px;
	color: var(--cmp-muted);
	background: rgba(255,255,255,.75);
	padding: 4px 10px;
	border-radius: 8px;
	margin: 8px 0 6px;
}
.cmp-msg {
	max-width: min(72%, 560px);
	padding: 7px 10px 6px;
	border-radius: var(--cmp-radius);
	background: var(--cmp-bubble-in);
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
	position: relative;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
	animation: cmp-pop .14s ease-out;
}
@media (prefers-reduced-motion: reduce) { .cmp-msg { animation: none; } }
@keyframes cmp-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cmp-msg--in { align-self: flex-start; border-top-left-radius: 2px; }
.cmp-msg--out { align-self: flex-end; background: var(--cmp-bubble-out); border-top-right-radius: 2px; }
.cmp-msg--system {
	align-self: center;
	background: #fff7e6;
	color: #6b5321;
	font-size: 13.5px;
	max-width: 80%;
	text-align: center;
	white-space: normal;
}
.cmp-msg--system a { color: inherit; font-weight: 600; }
.cmp-msg--gift { align-self: flex-end; background: #fff2cc; }
.cmp-msg-time {
	display: inline-block;
	font-size: 11px;
	color: var(--cmp-muted);
	float: right;
	margin: 6px 0 -2px 10px;
	white-space: nowrap;
}
.cmp-msg.is-streaming .cmp-msg-time { visibility: hidden; }
.cmp-msg-text::after { content: ""; display: inline-block; width: 0; }

.cmp-typing {
	align-self: flex-start;
	background: var(--cmp-bubble-in);
	border-radius: var(--cmp-radius);
	border-top-left-radius: 2px;
	padding: 12px 14px;
	display: inline-flex;
	gap: 4px;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.cmp-typing i {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--cmp-muted);
	opacity: .4;
	animation: cmp-blink 1.2s infinite;
}
.cmp-typing i:nth-child(2) { animation-delay: .2s; }
.cmp-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes cmp-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.cmp-composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 8px 10px;
	background: var(--cmp-composer-bg);
	border-top: 1px solid var(--cmp-border);
}
.cmp-input {
	flex: 1 1 auto;
	resize: none;
	border: 1px solid var(--cmp-border);
	border-radius: 20px;
	padding: 10px 14px;
	font: inherit;
	line-height: 1.35;
	max-height: 140px;
	min-height: 42px;
	background: #fff;
	color: var(--cmp-text);
}
.cmp-input:focus { outline: none; border-color: var(--cmp-accent); }
.cmp-send {
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--cmp-accent);
	color: #fff;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto;
}
.cmp-send:hover { background: var(--cmp-accent-dark); }
.cmp-send:disabled { opacity: .45; cursor: default; }
.cmp-send svg { width: 22px; height: 22px; }
.cmp-composer { position: relative; }
.cmp-composer .cmp-icon-btn { width: 44px; height: 44px; flex: 0 0 auto; }
.cmp-emoji-btn svg { width: 24px; height: 24px; }
.cmp-emoji-pop { position: absolute; left: 10px; bottom: calc(100% + 6px); z-index: 5; width: 300px; max-width: calc(100% - 20px); display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--cmp-border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.cmp-emoji-pop button { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 5px 0; border-radius: 8px; cursor: pointer; }
.cmp-emoji-pop button:hover { background: var(--cmp-accent-soft); }
.cmp-hint {
	font-size: 12px;
	color: var(--cmp-muted);
	padding: 0 14px 6px;
	background: var(--cmp-composer-bg);
	text-align: center;
	min-height: 18px;
}
.cmp-hint a { text-decoration: none; font-weight: 600; }

@media (min-width: 900px) {
	.cmp-hint { display: none; } /* Desktop: Hinweis steht schon in der Seitenleiste */
}

/* ---------- Menü ---------- */
.cmp-menu-wrap { position: relative; }
.cmp-menu {
	position: absolute;
	right: 0; top: 44px;
	background: #fff;
	border: 1px solid var(--cmp-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	min-width: 200px;
	padding: 6px 0;
	z-index: 20;
	display: none;
}
.cmp-menu.is-open { display: block; }
.cmp-menu button, .cmp-menu a {
	display: block;
	width: 100%;
	padding: 9px 14px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: var(--cmp-text);
	text-decoration: none;
	font: inherit;
}
.cmp-menu button:hover, .cmp-menu a:hover { background: var(--cmp-header-bg); }
.cmp-menu .is-danger { color: #b3261e; }

/* ---------- Sheet (Presets) ---------- */
.cmp-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 12, 15, .45);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 30;
}
.cmp-sheet {
	background: #fff;
	width: 100%;
	max-width: 520px;
	max-height: 90%;
	overflow-y: auto;
	border-radius: 16px 16px 0 0;
	padding: 18px 20px 20px;
}
@media (min-width: 900px) {
	.cmp-sheet-backdrop { align-items: center; }
	.cmp-sheet { border-radius: 16px; }
}
.cmp-sheet h3 { margin: 0 0 4px; font-size: 18px; }
.cmp-sheet p.cmp-sheet-intro { margin: 0 0 16px; color: var(--cmp-muted); font-size: 14px; }
.cmp-field { margin-bottom: 16px; }
.cmp-field label, .cmp-field .cmp-field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.cmp-field input[type="text"] {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--cmp-border);
	border-radius: 8px;
	font: inherit;
}
.cmp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-pill {
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--cmp-border);
	background: #fff;
	cursor: pointer;
}
.cmp-pill.is-selected { background: var(--cmp-accent); border-color: var(--cmp-accent); color: #fff; }
.cmp-sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ---------- Toast ---------- */
.cmp-toast {
	position: absolute;
	left: 50%;
	bottom: 90px;
	transform: translateX(-50%);
	background: #2b2326;
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 40;
	max-width: 90%;
	box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ---------- Mobil ---------- */
@media (max-width: 899px) {
	.cmp-app { --cmp-sidebar-width: 100%; }
	.cmp-sidebar { border-right: 0; }
	.cmp-chat { display: none; }
	.cmp-app.is-chat-open .cmp-sidebar { display: none; }
	.cmp-app.is-chat-open .cmp-chat { display: flex; }
	.cmp-back { display: inline-flex; }
	.cmp-messages { padding-left: 10px; padding-right: 10px; }
	.cmp-msg { max-width: 84%; }
	.cmp-embed { height: 78vh; }
}

/* ---------- Geschenke ---------- */
.cmp-gift-btn { color: var(--cmp-accent); }
.cmp-msg--gift {
	background: #fff4d6;
	display: flex; align-items: center; gap: 10px;
	padding: 8px 12px 8px 10px;
	white-space: normal;
}
.cmp-msg--gift .cmp-msg-text { display: flex; align-items: center; gap: 10px; }
.cmp-msg--gift .cmp-gift-icon { font-size: 30px; line-height: 1; }
.cmp-msg--gift .cmp-gift-icon img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; }
.cmp-msg--gift .cmp-gift-name { font-weight: 600; }
.cmp-msg--gift .cmp-gift-credits { font-size: 12px; color: var(--cmp-muted); margin-left: 4px; }
.cmp-msg--gift .cmp-msg-time { float: none; margin: 0 0 0 6px; }

/* ---------- Bild auf Anfrage ---------- */
.cmp-msg--photo { padding: 4px 4px 6px; max-width: 280px; }
.cmp-msg--photo .cmp-msg-text { display: block; }
.cmp-msg--photo .cmp-photo-link { display: block; line-height: 0; }
.cmp-msg--photo img { width: 100%; height: auto; border-radius: 10px; display: block; }
.cmp-msg--photo .cmp-msg-time { float: none; display: block; text-align: right; margin: 4px 6px 0 0; }
.cmp-photo-btn svg { width: 23px; height: 23px; }
.cmp-confirm-icon:has(.cmp-photo-teaser) { width: 116px; height: 145px; border-radius: 12px; overflow: hidden; }
.cmp-confirm-icon .cmp-photo-teaser { width: 100%; height: 100%; object-fit: cover; filter: blur(5px); transform: scale(1.12); }

/* Ungelesen: sie hat von selbst geschrieben */
.cmp-contact.has-unread .cmp-contact-name { font-weight: 700; }
.cmp-contact.has-unread .cmp-contact-snippet { color: var(--cmp-text); }
.cmp-unread {
	display: inline-block;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--cmp-accent);
	margin-left: 6px;
	vertical-align: middle;
}

.cmp-gift-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
	margin-bottom: 8px;
}
.cmp-gift {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 12px 8px 10px;
	border: 1px solid var(--cmp-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	text-align: center;
}
.cmp-gift:hover { border-color: var(--cmp-accent); background: var(--cmp-accent-soft); }
.cmp-gift.is-disabled { opacity: .45; cursor: default; }
.cmp-gift .cmp-gift-icon { font-size: 34px; line-height: 1.1; }
.cmp-gift .cmp-gift-icon img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; }
.cmp-gift .cmp-gift-name { font-size: 13.5px; font-weight: 600; }
.cmp-gift .cmp-gift-credits { font-size: 12px; color: var(--cmp-muted); }

/* ---------- Profil ---------- */
.cmp-chat-head-body{ background:none; border:0; padding:0; text-align:left; cursor:pointer; font:inherit; color:inherit; }
.cmp-chat-head-name span{ font-weight:400; color:var(--cmp-muted); font-size:.85em; margin-left:4px; }
.cmp-sheet--profile{ max-width:560px; }
.cmp-profile-head{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.cmp-profile-head .cmp-avatar{ width:72px; height:72px; }
.cmp-profile-head h3{ margin:0; }
.cmp-profile-head h3 span{ font-weight:400; color:var(--cmp-muted); font-size:.8em; }
.cmp-profile-tagline{ margin:4px 0 0; color:var(--cmp-muted); font-size:14px; }
.cmp-profile-traits{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.cmp-profile-traits span{ background:var(--cmp-accent-soft); color:var(--cmp-accent-dark); font-size:13px; font-weight:600; padding:4px 10px; border-radius:999px; }
.cmp-profile-text{ font-size:15px; line-height:1.55; color:var(--cmp-text); max-height:40vh; overflow-y:auto; margin-bottom:14px; }
.cmp-profile-text p{ margin:0 0 10px; }

/* ---------- Regler ---------- */
.cmp-sliders{ display:flex; flex-direction:column; gap:14px; margin-bottom:18px; padding-bottom:14px; border-bottom:1px dashed var(--cmp-border); }
.cmp-slider-head{ display:flex; justify-content:space-between; margin-bottom:2px; }
.cmp-slider input[type="range"]{ width:100%; margin:4px 0 2px; accent-color:var(--cmp-accent); }
.cmp-slider-ends{ display:flex; justify-content:space-between; font-size:12px; color:var(--cmp-muted); }

/* ---------- Zugang je Figur ---------- */
.cmp-badge{ display:inline-block; margin-left:8px; font-size:11px; font-weight:600; padding:1px 7px; border-radius:99px; background:var(--cmp-border); color:var(--cmp-muted); vertical-align:1px; }
.cmp-badge--paid{ background:#e3f6ea; color:#1a7f37; }
.cmp-badge--trial{ background:#fff3d6; color:#8a6d1a; }
.cmp-badge--none{ background:var(--cmp-accent-soft); color:var(--cmp-accent-dark); }
.cmp-chat-head-status a{ color:var(--cmp-accent); font-weight:600; text-decoration:none; }
.cmp-badge--private{ background:#1f1420; color:#fff; }

/* ---------- Schließen-X, Pills mit Erklärung, Seitenleiste ziehen, Wunschgeschenk ---------- */
.cmp-sheet{ position:relative; }
.cmp-sheet-close{ position:absolute; top:10px; right:12px; width:34px; height:34px; border-radius:50%; border:0; background:var(--cmp-border); color:var(--cmp-text); font-size:22px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.cmp-sheet-close:hover{ background:var(--cmp-accent-soft); color:var(--cmp-accent-dark); }
.cmp-sheet h3{ padding-right:40px; }
.cmp-pills--block{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cmp-pill--block{ display:flex; flex-direction:column; align-items:flex-start; gap:3px; text-align:left; padding:10px 12px; border-radius:10px; white-space:normal; }
.cmp-pill--block b{ font-weight:700; font-size:14px; }
.cmp-pill--block small{ font-size:12px; line-height:1.35; opacity:.75; }
.cmp-pill--block.is-selected small{ opacity:.9; }
.cmp-sidebar{ position:relative; }
.cmp-resize{ position:absolute; top:0; right:-4px; width:8px; height:100%; cursor:col-resize; z-index:5; }
.cmp-resize:hover{ background:linear-gradient(90deg, transparent 3px, var(--cmp-accent) 3px, var(--cmp-accent) 5px, transparent 5px); }
.cmp-gift.is-private{ border-color:var(--cmp-accent); background:var(--cmp-accent-soft); }
.cmp-gift--wish{ text-decoration:none; color:inherit; border:1.5px dashed var(--cmp-accent); }
@media (max-width:899px){ .cmp-resize{ display:none; } .cmp-pills--block{ grid-template-columns:1fr; } }

/* Werbung Wunschgeschenk im Geschenk-Dialog */
.cmp-wish-ad{ display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; margin:14px 0 4px; padding:12px 14px; border:1.5px dashed #c9a24a; border-radius:12px; background:#fff8e6; color:var(--cmp-text); text-decoration:none; transition:border-color .15s ease, transform .15s ease; }
.cmp-wish-ad:hover{ border-color:#a8842f; transform:translateY(-1px); }
.cmp-wish-ad__icon{ font-size:24px; }
.cmp-wish-ad__text b{ display:block; font-size:14.5px; }
.cmp-wish-ad__text small{ display:block; font-size:12.5px; color:var(--cmp-muted); line-height:1.4; margin-top:2px; }
.cmp-wish-ad__cta{ font-weight:700; color:#a8842f; white-space:nowrap; font-size:13.5px; }
@media (max-width:480px){ .cmp-wish-ad{ grid-template-columns:auto 1fr; } .cmp-wish-ad__cta{ grid-column:2; } }

/* Runde Avatare: ins Gesicht zoomen (Bilder sind 4:5, Gesicht oben) */
.cmp-avatar{ object-position:50% 0; transform:scale(1.35); transform-origin:50% 22%; }
.cmp-contact .cmp-avatar, .cmp-chat-head .cmp-avatar, .cmp-profile-head .cmp-avatar, .cmp-not__av{ overflow:hidden; }

/* Profil: großes Bild oben */
.cmp-sheet--profile{ padding-top:0; padding-left:0; padding-right:0; width:min(560px, 100%); max-width:560px; flex:0 0 auto; }
.cmp-sheet--profile .cmp-sheet-close{ background:rgba(0,0,0,.45); color:#fff; z-index:3; }
.cmp-sheet--profile .cmp-sheet-close:hover{ background:rgba(0,0,0,.65); }
.cmp-profile-hero{ position:relative; }
.cmp-profile-hero{ width:100%; }
.cmp-profile-hero img{ display:block; width:100%; height:auto; aspect-ratio:4/5; max-height:none; object-fit:cover; object-position:50% 0; transform:none; border-radius:16px 16px 0 0; }
.cmp-profile-hero__text{ position:absolute; left:0; right:0; bottom:0; padding:60px 20px 16px; background:linear-gradient(to top, rgba(21,13,22,.9), rgba(21,13,22,0)); color:#fff; }
.cmp-profile-hero__text h3{ margin:0; color:#fff; font-size:26px; }
.cmp-profile-hero__text h3 span{ color:rgba(255,255,255,.8); }
.cmp-profile-hero__text .cmp-profile-tagline{ color:rgba(255,255,255,.85); margin-top:4px; }
.cmp-sheet--profile .cmp-profile-traits, .cmp-sheet--profile .cmp-profile-text, .cmp-sheet--profile .cmp-sheet-actions{ padding-left:20px; padding-right:20px; }
.cmp-sheet--profile .cmp-profile-traits{ margin-top:16px; }
.cmp-sheet--profile .cmp-sheet-actions{ padding-bottom:20px; }
@media (max-width:899px){ .cmp-profile-hero img{ border-radius:16px 16px 0 0; } }

/* ---------- Scrollbalken: schmal, Rosé ---------- */
.cmp-app, .cmp-app *{ scrollbar-width:auto; scrollbar-color:rgba(196,67,110,.6) #f4ebe7; }
.cmp-app ::-webkit-scrollbar{ width:13px; height:13px; }
.cmp-app ::-webkit-scrollbar-track{ background:#f4ebe7; }
.cmp-app ::-webkit-scrollbar-thumb{ background:rgba(196,67,110,.6); border-radius:99px; border:3px solid #f4ebe7; background-clip:padding-box; }
.cmp-app ::-webkit-scrollbar-thumb:hover{ background:var(--cmp-accent); background-clip:padding-box; }
.cmp-sheet{ scrollbar-gutter:stable; }

/* Profil: Video statt Bild, Avatar im Kopf klickbar */
.cmp-profile-hero video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 0; border-radius:16px 16px 0 0; }
.cmp-chat-head-avatar{ background:none; border:0; padding:0; cursor:pointer; line-height:0; border-radius:50%; }
.cmp-chat-head-avatar:hover .cmp-avatar{ box-shadow:0 0 0 3px var(--cmp-accent-soft); }

/* ---------- Avatare mit Rahmen (Zoom bleibt innen), Kopfzeile, Bestätigung ---------- */
.cmp-avatar-wrap{ display:block; width:50px; height:50px; border-radius:50%; overflow:hidden; flex:0 0 50px; background:var(--cmp-accent-soft); }
.cmp-avatar-wrap .cmp-avatar{ width:100%; height:100%; display:block; }
.cmp-contact{ gap:14px; padding:14px 16px; }
.cmp-contact .cmp-avatar-wrap{ width:54px; height:54px; flex-basis:54px; }
.cmp-chat-head{ gap:14px; padding:12px 18px; }
.cmp-chat-head .cmp-avatar-wrap{ width:46px; height:46px; flex-basis:46px; }
.cmp-chat-head-avatar{ border-radius:50%; }
.cmp-chat-head-avatar:hover .cmp-avatar-wrap{ box-shadow:0 0 0 3px var(--cmp-accent-soft); }
.cmp-chat-head-avatar:hover .cmp-avatar{ box-shadow:none; }
.cmp-chat-head-name{ font-size:17px; }
.cmp-online{ display:inline-block; width:8px; height:8px; border-radius:50%; background:#3ec46d; margin:0 6px 1px 0; box-shadow:0 0 0 0 rgba(62,196,109,.5); animation:cmp-pulse 2s infinite; vertical-align:middle; }
@keyframes cmp-pulse{ 0%{ box-shadow:0 0 0 0 rgba(62,196,109,.55); } 70%{ box-shadow:0 0 0 7px rgba(62,196,109,0); } 100%{ box-shadow:0 0 0 0 rgba(62,196,109,0); } }
@media (prefers-reduced-motion: reduce){ .cmp-online{ animation:none; } }
.cmp-gift-btn img, .cmp-emoji-btn img, .cmp-photo-btn img{ width:34px; height:34px; object-fit:contain; display:block; }
.cmp-sheet--confirm{ max-width:400px; text-align:center; }
.cmp-confirm-icon{ width:64px; height:64px; margin:0 auto 12px; border-radius:50%; background:var(--cmp-accent-soft); display:flex; align-items:center; justify-content:center; font-size:30px; }
.cmp-confirm-icon img{ width:44px; height:44px; object-fit:contain; }
.cmp-sheet--confirm h3{ padding-right:0; }
.cmp-sheet--confirm .cmp-sheet-actions{ justify-content:center; }
.cmp-btn--danger{ background:#b3261e; }
.cmp-btn--danger:hover{ background:#8f1d17; }

/* Geschenk-Kacheln: größere Bilder; Kopfzeile: „online“ grün ohne Punkt */
.cmp-gift-icon{ font-size:44px; line-height:1; }
.cmp-gift .cmp-gift-icon img{ width:110px; height:110px; object-fit:cover; border-radius:12px; }
.cmp-gift{ padding:16px 12px 14px; }
.cmp-gift-grid{ gap:12px; grid-template-columns:repeat(3, 1fr); }
.cmp-sheet--gifts{ max-width:600px; }
.cmp-online{ display:none; }
.cmp-chat-head-status{ color:#1a9a4a; font-weight:600; }
.cmp-chat-head-status a{ color:var(--cmp-accent); }

.cmp-field-note{ display:block; margin-top:6px; font-size:12.5px; color:var(--cmp-muted); }

/* Liste: ausgeblendete Figuren, Fußzeile der Liste */
.cmp-contact.is-hidden .cmp-avatar-wrap{ filter:grayscale(.5); opacity:.7; }
.cmp-list-more{ flex:0 0 auto; padding:8px 16px; border-top:1px solid var(--cmp-border); display:flex; flex-direction:column; gap:2px; background:var(--cmp-sidebar-bg); }
.cmp-list-more a, .cmp-list-more button{ background:none; border:0; padding:4px 0; text-align:left; font:inherit; font-size:12.5px; font-weight:600; color:var(--cmp-muted); cursor:pointer; text-decoration:none; }
.cmp-list-more a:hover, .cmp-list-more button:hover{ text-decoration:underline; }

/* Nutzer-Avatar in der Seitenleiste */
.cmp-me{ width:36px; height:36px; border-radius:50%; overflow:hidden; flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; background:var(--cmp-accent-soft); color:var(--cmp-accent-dark); font-weight:700; text-decoration:none; }
.cmp-me img{ width:100%; height:100%; object-fit:cover; display:block; }
.cmp-sidebar-head{ gap:10px; }

/* Kurze Hilfe beim ersten Start */
.cmp-tour{ position:absolute; inset:0; z-index:40; background:rgba(31,20,32,.55); }
.cmp-tour-ring{ position:absolute; border:2px solid #fff; border-radius:14px; box-shadow:0 0 0 4px rgba(196,67,110,.45), 0 0 0 9999px rgba(31,20,32,.0); pointer-events:none; transition:top .25s ease, left .25s ease, width .25s ease, height .25s ease; }
.cmp-tour-card{ position:absolute; background:#fff; color:var(--cmp-text); border-radius:14px; padding:14px 16px 14px; box-shadow:0 18px 50px rgba(0,0,0,.35); transition:top .25s ease, left .25s ease; }
.cmp-tour-k{ display:block; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--cmp-accent); margin-bottom:4px; }
.cmp-tour-card b{ display:block; font-size:17px; margin-bottom:4px; }
.cmp-tour-card p{ margin:0 0 12px; font-size:14px; color:var(--cmp-muted); line-height:1.45; }
.cmp-tour-actions{ display:flex; align-items:center; gap:12px; }
.cmp-tour-actions .cmp-btn{ padding:8px 16px; font-size:14px; }
.cmp-tour-skip{ background:none; border:0; color:var(--cmp-muted); font:inherit; font-size:13px; cursor:pointer; text-decoration:underline; }

/* ---------- Kamera freigeschaltet ---------- */
.cmp-unlock{
	align-self: center;
	max-width: 300px;
	margin: 6px 0 2px;
	padding: 16px 18px 17px;
	border: 1.5px dashed var(--cmp-accent);
	border-radius: 14px;
	background: var(--cmp-accent-soft);
	color: var(--cmp-accent-dark);
	text-align: center;
	animation: cmp-unlock-in .45s ease both;
}
.cmp-unlock__i{
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; margin: 0 auto 9px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(196,67,110,.22);
}
.cmp-unlock__i img{ width: 26px; height: 26px; object-fit: contain; display: block; }
.cmp-unlock__i svg{ width: 24px; height: 24px; }
.cmp-unlock b{ display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.cmp-unlock small{ display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--cmp-text); opacity: .75; }
@keyframes cmp-unlock-in{
	from{ opacity: 0; transform: translateY(10px) scale(.96); }
	60%{ opacity: 1; transform: translateY(0) scale(1.02); }
	to{ opacity: 1; transform: none; }
}

/* Die Kamera erscheint zum ersten Mal */
.cmp-photo-btn.is-new{ position: relative; animation: cmp-cam-in .5s .15s ease both; }
.cmp-photo-btn.is-new::after{
	content: "";
	position: absolute; inset: 2px;
	border-radius: 50%;
	border: 2px solid var(--cmp-accent);
	animation: cmp-cam-ring 1.8s ease-out 3;
	pointer-events: none;
}
@keyframes cmp-cam-in{ from{ opacity: 0; transform: scale(.5); } to{ opacity: 1; transform: none; } }
@keyframes cmp-cam-ring{
	0%{ opacity: .9; transform: scale(.9); }
	70%{ opacity: 0; transform: scale(1.5); }
	100%{ opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce){
	.cmp-unlock, .cmp-photo-btn.is-new{ animation: none; }
	.cmp-photo-btn.is-new::after{ animation: none; opacity: 0; }
}
