/*
 * Familie message draft. Tokens from sayonara.css. Text stays on solid surfaces.
 */

.sy-nachricht-block {
	margin-top: var(--sy-space-6);
	padding-top: var(--sy-space-5);
	border-top: 1px solid var(--sy-line);
	color: var(--sy-ink);
}

.sy-nachricht__cta {
	margin: 0 0 var(--sy-space-5);
}

.sy-nachricht__cta .sy-btn {
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

.sy-nachricht__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.8rem;
	margin-bottom: var(--sy-space-5);
}

.sy-nachricht__title {
	margin: 0;
	color: var(--sy-ink);
	font-family: var(--sy-font-display);
	font-size: var(--sy-text-xl);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.sy-nachricht__field,
.sy-nachricht__fieldset {
	margin: 0 0 var(--sy-space-5);
}

.sy-nachricht__fieldset .sy-nachricht__field {
	margin-top: var(--sy-space-4);
	margin-bottom: 0;
}

.sy-nachricht__label {
	display: block;
	margin: 0 0 var(--sy-space-3);
	padding: 0;
	color: var(--sy-ink);
	font-family: var(--sy-font-display);
	font-size: var(--sy-text-lg);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.sy-nachricht__input,
.sy-nachricht__textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--sy-line-strong);
	border-radius: var(--sy-radius-md);
	background: var(--sy-surface-raised);
	color: var(--sy-ink);
	font-family: var(--sy-font-ui);
	font-size: 1rem;
	line-height: 1.45;
}

.sy-nachricht__textarea {
	min-height: 9.5rem;
	font-family: var(--sy-font-body);
	font-size: 1.05rem;
	line-height: 1.6;
	resize: vertical;
}

.sy-nachricht__textarea--seed {
	min-height: 6.5rem;
	font-family: var(--sy-font-ui);
	font-size: 1rem;
}

.sy-nachricht__generator {
	margin-bottom: var(--sy-space-5);
}

.sy-nachricht__status,
.sy-nachricht__version,
.sy-nachricht__signup {
	margin: 0 0 var(--sy-space-4);
	color: var(--sy-ink);
	font-family: var(--sy-font-ui);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
}

.sy-nachricht__status--error {
	color: #8d2433;
}

.dark .sy-nachricht__status--error,
[data-theme="dark"] .sy-nachricht__status--error {
	color: #f2a6b7;
}

.sy-nachricht__signup {
	padding: 1rem 1.1rem;
	border-radius: var(--sy-radius-md);
	background: var(--sy-topic-soft, var(--sy-surface-sunk));
	font-weight: 500;
}

.sy-nachricht__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}

.sy-nachricht__hint {
	margin: 0.15rem 0 0.75rem;
	color: var(--sy-ink-soft);
	font-family: var(--sy-font-ui);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
}

[data-suggest][aria-busy="true"] {
	opacity: 0.72;
}

.sy-nachricht__input::placeholder,
.sy-nachricht__textarea::placeholder {
	color: var(--sy-ink-soft);
	opacity: 1;
}

.sy-nachricht__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
}

.sy-nachricht__tab {
	min-height: 44px;
	padding: 0.45rem 0.95rem;
	border: 2px solid var(--sy-line-strong);
	border-radius: var(--sy-radius-pill);
	background: var(--sy-surface-raised);
	color: var(--sy-ink);
	font-family: var(--sy-font-ui);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	touch-action: manipulation;
}

.sy-nachricht__tab[aria-selected="true"] {
	border-color: var(--sy-topic, var(--sy-accent));
	background: var(--sy-topic-soft, var(--sy-surface-sunk));
	color: var(--sy-ink);
	box-shadow: inset 0 0 0 1px var(--sy-topic, var(--sy-accent));
}

.sy-nachricht__tab:focus-visible {
	outline: 3px solid var(--sy-focus);
	outline-offset: 3px;
}

@media (hover: hover) {
	.sy-nachricht__tab:hover {
		border-color: var(--sy-topic, var(--sy-accent));
	}
}

.sy-nachricht__rel-panel {
	min-width: 0;
}

.sy-nachricht__choice span {
	min-width: 0;
}

.sy-nachricht__choices {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
}

@media (min-width: 560px) {
	.sy-nachricht__choices {
		grid-template-columns: 1fr 1fr;
	}
}

.sy-nachricht__choice {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 48px;
	margin: 0;
	padding: 0.55rem 0.85rem;
	border: 2px solid var(--sy-line-strong);
	border-radius: var(--sy-radius-md);
	background: var(--sy-surface-raised);
	color: var(--sy-ink);
	box-shadow: var(--sy-shadow-sm);
	font-family: var(--sy-font-ui);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
	touch-action: manipulation;
}

.sy-nachricht__choice input {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--sy-topic, var(--sy-accent));
}

.sy-nachricht__choice svg {
	width: 1.35rem;
	height: 1.35rem;
	flex: 0 0 auto;
	color: var(--sy-ink-soft);
}

.sy-nachricht__choice:has(input:checked) {
	border-color: var(--sy-topic, var(--sy-accent));
	background: var(--sy-topic-soft, var(--sy-surface-sunk));
	box-shadow: inset 0 0 0 1px var(--sy-topic, var(--sy-accent));
}

.sy-nachricht__choice:has(input:checked) svg {
	color: var(--sy-topic, var(--sy-accent-ink));
}

.sy-nachricht__choice:focus-within {
	outline: 3px solid var(--sy-focus);
	outline-offset: 3px;
}

.sy-nachricht__choice input:focus-visible {
	outline: none;
}

@media (hover: hover) {
	.sy-nachricht__choice:hover {
		border-color: var(--sy-topic, var(--sy-accent));
	}
}

.sy-nachricht__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sy-nachricht__actions .sy-btn {
	flex: 1 1 12rem;
}

.sy-nachricht [hidden] {
	display: none !important;
}

.sy-nachricht__dialog {
	width: min(24rem, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	margin: auto;
	padding: 1.25rem;
	border: 1px solid var(--sy-line);
	border-radius: var(--sy-radius-lg);
	background: var(--sy-surface);
	color: var(--sy-ink);
	box-shadow: var(--sy-shadow-lg);
}

.sy-nachricht__dialog::backdrop {
	background: rgb(22 18 15 / 48%);
}

.sy-nachricht__dialog-text {
	margin: 0 0 var(--sy-space-5);
	color: var(--sy-ink);
	font-family: var(--sy-font-body);
	font-size: 1.1rem;
	line-height: 1.5;
}

.sy-nachricht__dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sy-nachricht__dialog-actions .sy-btn {
	flex: 1 1 8rem;
}

.sy-nachricht__account {
	width: min(32rem, calc(100vw - 1.5rem));
	max-width: calc(100vw - 1.5rem);
	max-height: min(44rem, calc(100vh - 1.5rem));
	margin: auto;
	padding: 1.15rem 1.15rem 1.25rem;
	overflow: auto;
	border: 1px solid var(--sy-line);
	border-radius: var(--sy-radius-lg);
	background: var(--sy-surface);
	color: var(--sy-ink);
	box-shadow: var(--sy-shadow-lg);
}

.sy-nachricht__account::backdrop {
	background: rgb(22 18 15 / 48%);
}

.sy-nachricht__account-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: var(--sy-space-4);
}

.sy-nachricht__account-title {
	margin: 0.35rem 0 0;
	color: var(--sy-ink);
	font-family: var(--sy-font-display);
	font-size: var(--sy-text-xl);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.sy-nachricht__account-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sy-line-strong);
	border-radius: var(--sy-radius-pill);
	background: var(--sy-surface-raised);
	color: var(--sy-ink);
	cursor: pointer;
}

.sy-nachricht__account-close svg {
	width: 1.15rem;
	height: 1.15rem;
}

.sy-nachricht__account-close:focus-visible {
	outline: 3px solid var(--sy-focus);
	outline-offset: 3px;
}

.sy-nachricht__offer {
	display: grid;
	gap: 0.65rem;
	margin: 0 0 var(--sy-space-5);
	padding: 0;
	list-style: none;
}

.sy-nachricht__offer li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: var(--sy-ink);
	font-family: var(--sy-font-ui);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
}

.sy-nachricht__offer li:first-child {
	font-weight: 700;
}

.sy-nachricht__offer svg {
	width: 1.2rem;
	height: 1.2rem;
	flex: 0 0 auto;
	margin-top: 0.1rem;
	color: var(--sy-topic, var(--sy-accent));
}

.sy-nachricht__account .sy-nachricht__field {
	margin-bottom: var(--sy-space-4);
}

.sy-nachricht__account .sy-btn {
	width: 100%;
}

.sy-nachricht__account-note {
	margin: var(--sy-space-4) 0 0;
	color: var(--sy-ink-soft);
	font-family: var(--sy-font-ui);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.45;
}

.sy-nachricht-block [hidden] {
	display: none !important;
}

.sy-btn--danger {
	background: #9d2c3a;
	color: #fff6f7;
	box-shadow: var(--sy-shadow-sm);
}

.sy-btn--danger:hover,
.sy-btn--danger:focus-visible {
	color: #fff6f7;
	background: #841f2c;
	transform: translateY(-2px);
}

.sy-toast {
	position: fixed;
	z-index: 80;
	right: 1rem;
	bottom: 1rem;
	left: auto;
	width: max-content;
	max-width: min(22rem, calc(100% - 2rem));
	padding: 0.85rem 1.05rem;
	border-radius: var(--sy-radius-md);
	box-shadow: var(--sy-shadow-lg);
	font-family: var(--sy-font-ui);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
}

.sy-toast--success {
	background: #1c7c45;
	color: #f4fff8;
}

.sy-toast--error {
	background: #9d2c3a;
	color: #fff6f7;
}

.sy-toast--info {
	background: #b86a12;
	color: #fff8ef;
}

@media (prefers-reduced-motion: reduce) {
	.sy-toast,
	.sy-nachricht .sy-btn {
		transition: none;
	}
}
