/* ───────────────────────────────────────────────────────────────
   Nitorabot – Styles
   ─────────────────────────────────────────────────────────────── */

/* Schrift „Geist“ (SIL Open Font License, siehe /fonts/OFL-Lizenz.txt).
   Wird vom eigenen Server geladen, es gehen keine Daten an Dritte. */
@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
		U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
		U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Geist Mono';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
		U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Geist Mono';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('/fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
		U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--bg: #08070e;
	--surface: #12101d;
	--surface-2: #181628;
	--surface-3: #211e34;
	--card: linear-gradient(180deg, rgba(25, 22, 40, 0.88) 0%, rgba(17, 15, 28, 0.88) 100%);
	--border: rgba(255, 255, 255, 0.075);
	--border-strong: rgba(255, 255, 255, 0.13);
	--border-accent: rgba(168, 123, 255, 0.32);
	--text: #f2f1f8;
	--muted: #a7a4be;
	--faint: #7d7a96;
	--accent: #a87bff;
	--accent-strong: #8b5cf6;
	--accent-light: #cfb9ff;
	--accent-soft: rgba(168, 123, 255, 0.13);
	--accent-2: #22d3ee;
	--gradient: linear-gradient(120deg, #c9adff 0%, #9b6cff 42%, #22d3ee 100%);
	--success: #34d399;
	--success-soft: rgba(52, 211, 153, 0.13);
	--warning: #fbbf24;
	--warning-soft: rgba(251, 191, 36, 0.13);
	--danger: #fb6189;
	--danger-soft: rgba(251, 97, 137, 0.13);
	--radius-lg: 0;
	--radius: 0;
	--radius-sm: 0;
	--highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	--shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
	--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
	--font: 'Geist', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
	--mono: 'Geist Mono', 'Cascadia Code', Consolas, 'SFMono-Regular', monospace;
	color-scheme: dark;
}

/* ── Grundlagen ─────────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	scrollbar-color: #2c2944 transparent;
}

body {
	position: relative;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Hintergrund: weiche Farbflächen + feines Punktraster */
body::before,
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
body::before {
	background:
		radial-gradient(900px 520px at 12% -12%, rgba(139, 92, 246, 0.17), transparent 65%),
		radial-gradient(760px 460px at 92% -4%, rgba(34, 211, 238, 0.08), transparent 65%);
}
body::after {
	background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
	mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
}

::selection {
	background: rgba(168, 123, 255, 0.35);
}

a {
	color: var(--accent-light);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

img {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

code,
kbd {
	font-family: var(--mono);
	font-size: 0.86em;
}
:not(pre) > code {
	padding: 0.12em 0.45em;
	border: 1px solid var(--border);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
}

kbd {
	padding: 1px 6px;
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 0;
	background: var(--surface-3);
	color: var(--text);
	font-size: 0.82em;
}

[hidden] {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.container {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.gradient-text {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--accent-light);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--surface-3);
	color: var(--text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color 0.15s,
		border-color 0.15s,
		box-shadow 0.2s,
		transform 0.15s,
		filter 0.15s;
}
.btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.btn:hover {
	background-color: #2a2642;
	text-decoration: none;
}
.btn:active {
	transform: translateY(1px);
}
.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.btn-primary {
	background: linear-gradient(180deg, #a074ff 0%, #7c4dff 100%);
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		0 8px 24px -10px rgba(124, 77, 255, 0.9);
}
.btn-primary:hover {
	background: linear-gradient(180deg, #ad87ff 0%, #8659ff 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.26),
		0 12px 30px -10px rgba(124, 77, 255, 1);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.035);
	border-color: var(--border-strong);
}
.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
	background: linear-gradient(180deg, #ff7499 0%, #e8466f 100%);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-danger:hover {
	background: linear-gradient(180deg, #ff86a7 0%, #f0557c 100%);
}

.btn-lg {
	height: 52px;
	padding: 0 24px;
	border-radius: 0;
	font-size: 15.5px;
}
.btn-lg svg {
	width: 20px;
	height: 20px;
}

.btn-sm {
	height: 32px;
	padding: 0 12px;
	border-radius: 0;
	font-size: 13px;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition:
		background-color 0.15s,
		color 0.15s;
}
.icon-btn:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--text);
}
.icon-btn.danger:hover {
	background: var(--danger-soft);
	color: var(--danger);
}
.icon-btn svg {
	width: 17px;
	height: 17px;
}

/* ── Startseite: flach und eckig (passend zum Dashboard) ────── */

/* Alle Seiten sind eckig (border-radius: 0) – hier nur noch Startseiten-Besonderheiten */
body.app.landing .btn-lg {
	height: 50px;
	padding: 0 22px;
}

.l-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Kopfzeile */
.l-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--app-line);
	background: rgba(19, 20, 24, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.l-header .l-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 64px;
}
.l-header .side-brand,
.l-footer .side-brand {
	padding: 0;
}
.l-nav {
	display: flex;
	align-self: stretch;
}
.l-nav a {
	display: flex;
	align-items: center;
	padding: 0 16px;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	transition:
		color 0.15s,
		border-color 0.15s,
		background-color 0.15s;
}
.l-nav a:hover {
	border-bottom-color: var(--accent);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	text-decoration: none;
}

/* Hero */
.l-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--app-line);
}
.l-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--app-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--app-line) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: 0.6;
	-webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 30%, #000 15%, transparent 75%);
	mask-image: radial-gradient(ellipse 75% 85% at 72% 30%, #000 15%, transparent 75%);
	pointer-events: none;
}
.l-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(640px 420px at 78% 18%, rgba(139, 92, 246, 0.2), transparent 70%),
		radial-gradient(520px 360px at 10% 110%, rgba(34, 211, 238, 0.07), transparent 70%);
	pointer-events: none;
}
.l-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 64px;
	align-items: center;
	padding-top: 88px;
	padding-bottom: 104px;
}
.l-tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	border: 1px solid var(--app-line-strong);
	background: var(--app-panel);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.l-tag-dot {
	width: 8px;
	height: 8px;
	background: var(--success);
	box-shadow: 0 0 10px var(--success);
}
.l-hero h1 {
	margin: 24px 0 22px;
	font-size: clamp(42px, 5.6vw, 72px);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.045em;
}
.l-accent {
	color: var(--accent-light);
	box-shadow: inset 0 -0.2em 0 rgba(139, 92, 246, 0.38);
}
.l-lead {
	max-width: 560px;
	margin: 0 0 32px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.65;
}
.l-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.l-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 13.5px;
}
.l-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.l-trust svg {
	box-sizing: content-box;
	width: 12px;
	height: 12px;
	padding: 3px;
	background: var(--success-soft);
	color: var(--success);
}
#notice-slot .notice {
	margin-bottom: 22px;
}

/* Chat-Konsole */
.l-console-wrap {
	position: relative;
}
.l-console {
	border: 1px solid var(--app-line-strong);
	background: var(--app-panel);
	box-shadow: 16px 16px 0 rgba(139, 92, 246, 0.14);
}
.l-console-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--app-line);
	background: var(--app-side);
}
.l-squares {
	display: inline-flex;
	gap: 6px;
}
.l-squares span {
	width: 10px;
	height: 10px;
	background: var(--app-line-strong);
}
.l-console-title {
	min-width: 0;
	overflow: hidden;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 12.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.l-console-title strong {
	color: var(--text);
	font-weight: 600;
}
.l-viewers {
	margin-left: auto;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 12px;
	white-space: nowrap;
}
.l-viewers::before {
	content: '● ';
	color: #eb0400;
}
.l-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	background: #eb0400;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}
.l-console-title + .l-live {
	margin-left: auto;
}
.l-live::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #fff;
	animation: blink 1.6s ease-in-out infinite;
}
.l-console-input {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px 10px 16px;
	border-top: 1px solid var(--app-line);
	color: var(--faint);
	font-size: 13.5px;
}
.l-console-input span:last-child {
	padding: 6px 14px;
	background: var(--accent-strong);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
}

/* Chat-Zeilen (auch für die laufende Vorschau aus landing.js) */
.chat-body {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	height: 348px;
	padding: 18px;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
	mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
}
.chat-line {
	flex-shrink: 0;
	overflow-wrap: anywhere;
	animation: chat-in 0.45s var(--ease-out) both;
}
.chat-line .who {
	font-weight: 700;
}
.chat-line.bot {
	padding: 9px 12px;
	border-left: 3px solid var(--accent);
	background: rgba(168, 123, 255, 0.1);
}
.chat-body > .chat-line:nth-child(2) { animation-delay: 0.12s; }
.chat-body > .chat-line:nth-child(3) { animation-delay: 0.24s; }
.chat-body > .chat-line:nth-child(4) { animation-delay: 0.36s; }
.chat-body > .chat-line:nth-child(5) { animation-delay: 0.48s; }
.chat-body > .chat-line:nth-child(6) { animation-delay: 0.6s; }
.chat-body.live > .chat-line {
	animation-delay: 0s;
}
/* Namensfarben im Beispiel-Chat */
.c-manu { color: #a970ff; }
.c-kaitoji { color: #4ade80; }
.c-lesley { color: #4aa8ff; }
/* Zuschauer in der Vorschau des Command-Fensters */
.c-viewer { color: #4ade80; }
/* Rotes Broadcaster-Abzeichen mit Kamera – wie auf Twitch beim Streamer selbst */
.badge-broadcaster {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 5px;
	background: #e91916 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3 7h11v10H3zM15.5 10.5 21 7v10l-5.5-3.5z'/%3E%3C/svg%3E") center / 13px no-repeat;
	border-radius: 2px; /* wie das echte Twitch-Abzeichen */
	vertical-align: -4px;
}
.c-bot { color: var(--accent-light); }
.badge-bot {
	display: inline-block;
	margin-right: 6px;
	padding: 0 5px;
	background: var(--accent-strong);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	vertical-align: 1px;
}
.typing {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	width: max-content;
	padding: 9px 12px;
	border-left: 3px solid rgba(168, 123, 255, 0.5);
	background: rgba(168, 123, 255, 0.06);
	color: var(--faint);
	font-size: 12.5px;
	animation: chat-in 0.3s var(--ease-out) both;
}
.typing-dots {
	display: inline-flex;
	gap: 4px;
}
.typing-dots span {
	width: 6px;
	height: 6px;
	background: var(--accent-light);
	animation: typing 1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

/* Kärtchen auf der Konsole */
.l-stat-chip {
	position: absolute;
	top: -18px;
	right: 28px;
	z-index: 2;
	padding: 8px 12px;
	border: 1px solid var(--app-line-strong);
	background: var(--app-side);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 12.5px;
	animation: float 7s ease-in-out infinite;
}
.l-stat-chip b {
	color: var(--accent-light);
}
.l-event {
	position: absolute;
	bottom: -40px;
	left: -32px;
	z-index: 2;
	width: 250px;
	padding: 12px 14px;
	border: 1px solid var(--app-line-strong);
	border-left: 3px solid var(--success);
	background: var(--app-side);
	box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
	font-size: 13px;
	animation: float 7s ease-in-out -3.5s infinite;
}
.l-event-head {
	display: flex;
	justify-content: space-between;
	color: var(--success);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.l-event-head span:last-child {
	color: var(--faint);
	text-transform: none;
	letter-spacing: 0;
}
.l-event strong {
	display: block;
	margin: 4px 0 8px;
	font-size: 14px;
}
.l-event ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
}
.l-event li {
	display: flex;
	align-items: center;
	gap: 8px;
}
.l-event svg {
	width: 13px;
	height: 13px;
	color: var(--success);
}

/* Laufband */
.l-ticker {
	overflow: hidden;
	border-bottom: 1px solid var(--app-line);
	background: var(--app-side);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.l-ticker-track {
	display: flex;
	width: max-content;
	animation: marquee 50s linear infinite;
}
.l-ticker:hover .l-ticker-track {
	animation-play-state: paused;
}
.l-ticker-group {
	display: flex;
}
.l-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-right: 1px solid var(--app-line);
	color: var(--muted);
	font-size: 13.5px;
	white-space: nowrap;
}
.l-ticker-item b {
	color: var(--accent-light);
	font-family: var(--mono);
	font-weight: 600;
}

/* Kennzahlen */
.l-stats {
	border-bottom: 1px solid var(--app-line);
}
.l-stats .l-wrap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.l-stat {
	padding: 30px 24px;
	border-left: 1px solid var(--app-line);
}
.l-stat:last-child {
	border-right: 1px solid var(--app-line);
}
.l-stat strong {
	display: block;
	font-family: var(--mono);
	font-size: 38px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
}
.l-stat span {
	color: var(--muted);
	font-size: 14px;
}

/* Abschnitte */
.l-section {
	padding: 104px 0;
	border-bottom: 1px solid var(--app-line);
}
.l-section h2 {
	margin: 0;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.04em;
}
.l-section .kicker {
	display: block;
	margin-bottom: 14px;
}
.l-head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	gap: 20px 64px;
	margin-bottom: 48px;
}
.l-head p {
	max-width: 460px;
	margin: 0;
	color: var(--muted);
	font-size: 17px;
}

/* Funktionen-Raster: Zellen mit gemeinsamen Linien */
.l-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	border: 1px solid var(--app-line);
	background: var(--app-line);
}
.l-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 250px;
	padding: 28px 24px;
	background: var(--app-bg);
	transition: background-color 0.2s;
}
.l-cell::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.35s var(--ease-out);
}
.l-cell:hover {
	background: var(--app-panel);
}
.l-cell:hover::before {
	width: 100%;
}
.l-num {
	color: var(--faint);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.08em;
}
.l-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin: 6px 0 6px;
	border: 1px solid var(--border-accent);
	background: var(--accent-soft);
	color: var(--accent-light);
}
.l-icon svg {
	width: 20px;
	height: 20px;
}
.l-cell h3,
.l-step h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 650;
	letter-spacing: -0.02em;
}
.l-cell p,
.l-step p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}
.l-cell code,
.l-step code {
	white-space: nowrap;
}

/* Automatik-Abschnitt */
.l-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 64px;
}
.l-split h2 {
	margin-bottom: 16px;
}
.l-split > div > p {
	max-width: 520px;
	margin: 0 0 28px;
	color: var(--muted);
	font-size: 17px;
}
.l-events {
	border: 1px solid var(--app-line);
}
.l-event-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--app-line);
	background: var(--app-panel);
}
.l-event-row:last-child {
	border-bottom: 0;
}
.l-event-row .l-icon {
	width: 36px;
	height: 36px;
	margin: 0;
}
.l-event-row .l-icon svg {
	width: 17px;
	height: 17px;
}
.l-event-row strong {
	display: block;
	font-size: 14.5px;
}
.l-event-row small {
	display: block;
	color: var(--faint);
	font-size: 12.5px;
}
.l-switch {
	position: relative;
	flex-shrink: 0;
	width: 42px;
	height: 22px;
	margin-left: auto;
	border: 1px solid var(--app-line-strong);
	background: var(--surface-3);
}
.l-switch::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	background: #8f8ca5;
}
.l-switch.on {
	border-color: var(--accent-strong);
	background: var(--accent-strong);
}
.l-switch.on::before {
	left: 23px;
	background: #fff;
}

.l-chat-body {
	display: grid;
	gap: 10px;
	padding: 18px;
	font-size: 14px;
	line-height: 1.5;
}
.l-chat-body .chat-line {
	animation: none;
}
.l-system {
	padding: 8px 12px;
	border-left: 3px solid var(--warning);
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	font-size: 13px;
}
.l-system b:not([class]) {
	color: var(--text);
}
.l-announce {
	display: grid;
	gap: 4px;
	padding: 10px 12px;
	border: 1px solid rgba(168, 123, 255, 0.35);
	border-left: 3px solid var(--accent);
	background: rgba(168, 123, 255, 0.08);
}
.l-announce-label {
	color: var(--accent-light);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.l-announce .who {
	font-weight: 700;
}
.l-shoutout {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--app-line-strong);
	background: var(--app-side);
}
.l-shoutout-avatar {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #4ade80, #16a34a);
	color: #fff;
	font-weight: 700;
}
.l-shoutout small {
	display: block;
	color: var(--faint);
	font-size: 11.5px;
}
.l-shoutout strong {
	display: block;
	font-size: 14px;
}
.l-shoutout-btn {
	margin-left: auto;
	padding: 5px 12px;
	background: var(--accent-strong);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
}

/* Schritte */
.l-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--app-line);
}
.l-step {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 32px 28px 36px;
	border-right: 1px solid var(--app-line);
}
.l-step:last-child {
	border-right: 0;
}
.l-step-num {
	margin-bottom: 14px;
	color: transparent;
	font-family: var(--mono);
	font-size: 48px;
	font-weight: 600;
	line-height: 1;
	-webkit-text-stroke: 1px var(--accent-light);
}

/* Fragen */
.l-faq {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 64px;
}
.l-faq-list {
	border-top: 1px solid var(--app-line);
}
.l-faq-list details {
	border-bottom: 1px solid var(--app-line);
}
.l-faq-list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	font-size: 16px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.l-faq-list summary::-webkit-details-marker {
	display: none;
}
.l-faq-list summary::after {
	content: '+';
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--app-line-strong);
	color: var(--accent-light);
	font-family: var(--mono);
	font-size: 16px;
}
.l-faq-list details[open] summary::after {
	content: '–';
	border-color: var(--accent);
}
.l-faq-list summary:hover {
	color: var(--accent-light);
}
.l-faq-list details p {
	max-width: 640px;
	margin: 0 0 22px;
	color: var(--muted);
}

/* Abschluss */
.l-cta-section {
	border-bottom: 0;
}
.l-cta {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 32px;
	overflow: hidden;
	padding: 56px 48px;
	border: 1px solid var(--app-line-strong);
	border-left: 4px solid var(--accent);
	background: var(--app-panel);
	box-shadow: 16px 16px 0 rgba(139, 92, 246, 0.12);
}
.l-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--app-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--app-line) 1px, transparent 1px);
	background-size: 40px 40px;
	opacity: 0.5;
	-webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
	mask-image: linear-gradient(90deg, transparent 40%, #000);
	pointer-events: none;
}
.l-cta > * {
	position: relative;
}
.l-cta h2 {
	margin: 0 0 8px;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.1;
}
.l-cta p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}

/* Fußzeile */
.l-footer {
	padding: 28px 0 40px;
	border-top: 1px solid var(--app-line);
	color: var(--faint);
	font-size: 13px;
}
.l-footer .l-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Einblenden beim Scrollen (nur wo der Browser es kann) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.reveal {
			animation: reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}

/* ── Hinweise ───────────────────────────────────────────────── */

.notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 16px;
	border: 1px solid var(--border-strong);
	border-radius: 0;
	background: var(--surface-2);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	animation: chat-in 0.35s var(--ease-out) both;
}
.notice::before {
	content: '';
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 0;
	background: var(--muted);
}
.notice.success {
	border-color: rgba(52, 211, 153, 0.3);
	background: var(--success-soft);
}
.notice.success::before {
	background: var(--success);
	box-shadow: 0 0 10px var(--success);
}
.notice.warning {
	border-color: rgba(251, 191, 36, 0.3);
	background: var(--warning-soft);
}
.notice.warning::before {
	background: var(--warning);
}
.notice.error {
	border-color: rgba(251, 97, 137, 0.32);
	background: var(--danger-soft);
}
.notice.error::before {
	background: var(--danger);
}
.notice-close {
	width: 28px;
	height: 28px;
	margin-left: auto;
}

/* ── Dashboard: gemeinsame Bausteine ────────────────────────── */

.status-line {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 9px;
	margin-top: 16px;
	padding: 6px 12px 6px 11px;
	border: 1px solid var(--border);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.03);
	font-size: 13px;
	font-weight: 600;
}
.status-dot {
	position: relative;
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 0;
	background: var(--faint);
}
.status-dot.on {
	background: var(--success);
}
.status-dot.on::after {
	content: '';
	position: absolute;
	inset: -4px;
	border: 2px solid var(--success);
	border-radius: 0;
	animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.status-dot.warn {
	background: var(--warning);
}
.status-dot.off {
	background: var(--danger);
}

.hint {
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.025);
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.55;
}
.hint ol {
	margin: 8px 0 0;
	padding-left: 20px;
}
.hint li {
	margin: 5px 0;
}
.hint strong {
	color: var(--text);
}
.link-meta {
	margin: 10px 0 0;
	color: var(--faint);
	font-size: 12.5px;
}
.alt-link {
	margin: 14px 0 0;
	color: var(--faint);
	font-size: 13px;
}

.copy-field {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}
.copy-field input {
	flex: 1;
	min-width: 0;
}

/* Schalter */
.switch {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: 52px;
	height: 30px;
}
.switch.sm {
	width: 40px;
	height: 23px;
}
.switch input {
	position: absolute;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.slider {
	position: absolute;
	inset: 0;
	border: 1px solid var(--border-strong);
	border-radius: 0;
	background: var(--surface-3);
	transition:
		background-color 0.2s,
		box-shadow 0.2s,
		border-color 0.2s;
	pointer-events: none;
}
.slider::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 0;
	background: #d9d7e6;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	transition:
		transform 0.25s var(--ease-out),
		background-color 0.2s;
}
.switch.sm .slider::before {
	top: 2px;
	left: 2px;
	width: 17px;
	height: 17px;
}
.switch input:checked + .slider {
	border-color: transparent;
	background: linear-gradient(135deg, #a074ff, #7c4dff);
	box-shadow: 0 0 18px -4px rgba(139, 92, 246, 0.9);
}
.switch input:checked + .slider::before {
	background: #fff;
	transform: translateX(22px);
}
.switch.sm input:checked + .slider::before {
	transform: translateX(17px);
}
.switch input:focus-visible + .slider {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.switch input:disabled {
	cursor: wait;
}

/* Suche */
.search {
	position: relative;
}
.search svg {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 16px;
	height: 16px;
	color: var(--faint);
	transform: translateY(-50%);
	pointer-events: none;
}
.search input[type='search'] {
	width: 240px;
	padding-left: 36px;
}

/* Formular-Elemente */
input[type='text'],
input[type='number'],
input[type='search'],
select,
textarea {
	width: 100%;
	height: 42px;
	padding: 0 13px;
	border: 1px solid var(--border-strong);
	border-radius: 0;
	background-color: rgba(8, 7, 14, 0.55);
	color: var(--text);
	font: inherit;
	font-size: 14px;
	transition:
		border-color 0.15s,
		box-shadow 0.15s,
		background-color 0.15s;
}
textarea {
	height: auto;
	min-height: 108px;
	padding: 11px 13px;
	line-height: 1.55;
	resize: vertical;
}
select {
	padding-right: 38px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a4be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
	cursor: pointer;
}
select option {
	background: var(--surface-2);
}
input:hover,
select:hover,
textarea:hover {
	border-color: rgba(255, 255, 255, 0.2);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	border-color: var(--accent);
	outline: none;
	background-color: rgba(8, 7, 14, 0.8);
	box-shadow: 0 0 0 3px rgba(168, 123, 255, 0.22);
}
input::placeholder,
textarea::placeholder {
	color: var(--faint);
}
input[readonly] {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 13px;
}

/* Eigene Auswahlfelder (ersetzen die graue Standard-Liste von <select>) */
.dd {
	position: relative;
	width: 100%;
	min-width: 0;
}
.dd-native {
	display: none !important;
}
.dd-button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 42px;
	padding: 0 12px 0 13px;
	border: 1px solid var(--border-strong);
	border-radius: 0;
	background-color: rgba(8, 7, 14, 0.55);
	color: var(--text);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.15s,
		box-shadow 0.15s,
		background-color 0.15s;
}
.dd-button:hover {
	border-color: rgba(255, 255, 255, 0.2);
}
.dd-button:focus-visible,
.dd.is-open .dd-button {
	border-color: var(--accent);
	outline: none;
	background-color: rgba(8, 7, 14, 0.8);
}
.dd-button:focus-visible {
	box-shadow: 0 0 0 3px rgba(168, 123, 255, 0.22);
}
.dd-button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}
.dd-value {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 9px;
	min-width: 0;
}
.dd-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dd-chevron {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--muted);
	transition:
		transform 0.15s,
		color 0.15s;
}
.dd.is-open .dd-chevron {
	transform: rotate(180deg);
	color: var(--accent-light);
}
/* Die Liste selbst: kein display setzen, sonst bleibt das Popover immer sichtbar */
.dd-list {
	position: fixed;
	inset: auto;
	z-index: 1000;
	box-sizing: border-box;
	min-width: 160px;
	max-width: min(360px, calc(100vw - 16px));
	max-height: 300px;
	margin: 0;
	padding: 4px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--app-line-strong, var(--border-strong));
	border-radius: 0;
	background: var(--app-panel-2, var(--surface-2));
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
	color: var(--text);
}
.dd-option {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 36px;
	padding: 0 10px 0 12px;
	color: var(--muted);
	font-size: 13.5px;
	cursor: pointer;
	user-select: none;
}
.dd-option + .dd-option {
	margin-top: 1px;
}
.dd-option.is-active {
	background: var(--surface-3);
	color: var(--text);
}
.dd-option[aria-selected='true'] {
	box-shadow: inset 2px 0 0 var(--accent);
	color: var(--accent-light);
}
.dd-option[aria-disabled='true'] {
	cursor: not-allowed;
	opacity: 0.45;
}
.dd-option .dd-text {
	flex: 1;
}
.dd-option > svg {
	flex: none;
	width: 15px;
	height: 15px;
	visibility: hidden;
}
.dd-option[aria-selected='true'] > svg {
	visibility: visible;
}
/* Farbige Quadrate, passend zu den Rechte-Abzeichen in der Liste */
.dd-dot {
	flex: none;
	width: 8px;
	height: 8px;
	background: var(--faint);
}
.dot-everyone {
	background: var(--muted);
}
.dot-subscriber {
	background: #d4c1ff;
}
.dot-vip {
	background: #f9a8d4;
}
.dot-moderator {
	background: #6ee7b7;
}
.dot-broadcaster {
	background: #fda4af;
}

.cmd-name {
	display: inline-block;
	padding: 3px 9px;
	border: 1px solid rgba(168, 123, 255, 0.24);
	border-radius: 0;
	background: var(--accent-soft);
	color: var(--accent-light);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.cmd-response {
	max-width: 440px;
	color: var(--text);
	overflow-wrap: anywhere;
}
.var-token {
	padding: 0 4px;
	border-radius: 0;
	background: var(--accent-soft);
	color: var(--accent-light);
	font-family: var(--mono);
	font-size: 0.9em;
}

.perm {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 8px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	white-space: nowrap;
}
.perm::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 0;
	background: currentColor;
}
.perm-subscriber {
	background: rgba(168, 123, 255, 0.15);
	color: #d4c1ff;
}
.perm-vip {
	background: rgba(236, 72, 153, 0.15);
	color: #f9a8d4;
}
.perm-moderator {
	background: rgba(52, 211, 153, 0.13);
	color: #6ee7b7;
}
.perm-broadcaster {
	background: rgba(251, 97, 137, 0.15);
	color: #fda4af;
}

.empty {
	padding: 56px 24px;
	text-align: center;
}
.empty-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border: 1px solid var(--border-accent);
	border-radius: 0;
	background: var(--accent-soft);
	color: var(--accent-light);
}
.empty-icon svg {
	width: 26px;
	height: 26px;
}
.empty h3 {
	margin: 0 0 6px;
	font-size: 19px;
	letter-spacing: -0.02em;
}
.empty p {
	margin: 0 0 22px;
	color: var(--muted);
}
.templates {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.templates .btn {
	font-family: var(--mono);
	font-weight: 500;
}

/* ── Dashboard: App-Layout mit Seitenleiste ─────────────────── */

/* Ruhigeres, flaches Farbschema nur für das Dashboard */
body.app {
	--app-bg: #131418;
	--app-side: #17181d;
	--app-panel: #1b1c22;
	--app-panel-2: #22232a;
	--app-line: #2a2b33;
	--app-line-strong: #3a3b45;
	--border: var(--app-line);
	--border-strong: var(--app-line-strong);
	--surface-2: var(--app-panel-2);
	--surface-3: #2b2c35;
	--radius-lg: 0;
	--radius: 0;
	--radius-sm: 0;
	background: var(--app-bg);
}
body.app::before,
body.app::after {
	display: none;
}

body.app .btn {
	border-radius: 0;
}
body.app .btn-primary {
	background: var(--accent-strong);
	box-shadow: none;
}
body.app .btn-primary:hover {
	background: #9a70ff;
	box-shadow: none;
}
.btn-outline {
	border-color: var(--app-line-strong);
	background: var(--app-panel);
}
.btn-outline:hover {
	border-color: #4b4c58;
	background: var(--app-panel-2);
}
body.app dialog {
	border-radius: 0;
	background: var(--app-panel);
}
body.app .dialog-foot {
	border-radius: 0;
}

.app-loading {
	min-height: 100vh;
	min-height: 100dvh;
}

.shell {
	display: grid;
	grid-template-columns: 256px minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
}

/* Seitenleiste */
.sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	padding: 18px 14px 16px;
	overflow-y: auto;
	border-right: 1px solid var(--app-line);
	background: var(--app-side);
}
.side-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 8px 20px;
	color: var(--text);
}
.side-brand:hover {
	text-decoration: none;
}
.side-brand img {
	width: 36px;
	height: 36px;
}
.side-brand strong {
	display: block;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.side-brand small {
	display: block;
	color: var(--faint);
	font-size: 12.5px;
}

.side-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition:
		background-color 0.15s,
		color 0.15s;
}
.side-link:hover {
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	text-decoration: none;
}
.side-link.is-active {
	color: var(--text);
}
.side-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: 1px solid var(--app-line-strong);
	border-radius: 0;
}
.side-icon svg {
	width: 17px;
	height: 17px;
}

.side-label {
	margin: 18px 10px 6px;
	color: var(--faint);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.side-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-bottom: 4px;
	padding: 10px;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		background-color 0.15s,
		border-color 0.15s;
}
.side-item:hover {
	background: rgba(255, 255, 255, 0.035);
}
.side-item.is-active {
	border-color: var(--app-line-strong);
	background: var(--app-panel-2);
}
.side-item-text {
	flex: 1;
	min-width: 0;
}
.side-item strong {
	display: block;
	overflow: hidden;
	font-size: 14.5px;
	font-weight: 650;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.side-item small {
	display: block;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 11.5px;
}
.side-avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	overflow: hidden;
	border-radius: 0;
	background: linear-gradient(135deg, #a074ff, #6d3df5);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}
.side-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Top 5 der meistgenutzten Commands */
.side-top {
	display: grid;
	gap: 2px;
}
.side-item.side-cmd {
	margin-bottom: 0;
	padding: 7px 10px;
}
.side-cmd .cmd-icon {
	width: 30px;
	height: 30px;
	font-size: 13px;
}
.side-cmd strong {
	font-family: var(--mono);
	font-size: 13.5px;
}
.side-rank {
	flex-shrink: 0;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 12px;
}
.side-cmd:first-child .side-rank {
	color: var(--accent-light);
}
.side-empty {
	margin: 0;
	padding: 4px 10px;
	color: var(--faint);
	font-size: 13px;
}

/* Mod-Zugang: Kanäle, die man als Mod bearbeitet */
a.side-item {
	text-decoration: none;
}
.side-mod .side-avatar {
	background: linear-gradient(135deg, #34d399, #0f9f6e);
}
.side-mod-refresh {
	display: block;
	padding: 6px 10px;
	color: var(--accent-light);
	font-size: 12.5px;
	text-decoration: none;
}
.side-mod-refresh:hover {
	text-decoration: underline;
}
/* Als Mod: nur vorhandene Commands bearbeiten. Alles andere gehört dem Streamer. */
.mod-view #settings-link,
.mod-view #side-bot-toggle,
.mod-view #tab-settings,
.mod-view #new-command-btn,
.mod-view .tab[data-tab='overview'],
.mod-view #tab-overview,
.mod-view .tab[data-tab='events'],
.mod-view .tab[data-tab='timers'],
.mod-view .tab[data-tab='spam'],
.mod-view .tab[data-tab='stats'],
.mod-view #tab-events,
.mod-view #tab-timers,
.mod-view #tab-spam,
.mod-view #tab-stats {
	display: none !important;
}
/* Gesperrte Commands (nur der Streamer darf sie bearbeiten) */
.cmd-lock {
	display: inline-grid;
	place-items: center;
	margin-left: 6px;
	color: var(--warning);
	vertical-align: -2px;
}
.cmd-lock svg {
	width: 13px;
	height: 13px;
}
.drag-handle.is-locked {
	color: var(--warning);
	cursor: not-allowed;
	opacity: 0.7;
}
.cmd-row.is-locked .icon-btn:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}
.cmd-row.is-locked .cmd-main,
.cmd-row.is-locked .status-toggle {
	cursor: not-allowed;
}
.cmd-row.is-locked .status-toggle .switch {
	opacity: 0.45;
	pointer-events: none;
}
.channel-switch {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	min-width: 0;
}
.channel-switch[hidden] {
	display: none;
}
.channel-switch-label {
	color: var(--faint);
	font-size: 12.5px;
}
.channel-switch .dd {
	width: min(260px, 55vw);
}
.channel-switch .dd-button {
	min-height: 34px;
	padding-top: 4px;
	padding-bottom: 4px;
	font-size: 13px;
}
@media (max-width: 760px) {
	/* Am Handy: Kanal-Auswahl in eigener Zeile unter dem Kanalnamen */
	.topbar {
		flex-wrap: wrap;
		row-gap: 6px;
		padding-top: 6px;
		padding-bottom: 8px;
	}
	.channel-switch {
		width: 100%;
		margin-left: 0;
	}
	.channel-switch .dd {
		flex: 1;
		width: auto;
	}
}
.mod-notice {
	border-color: rgba(52, 211, 153, 0.35);
	background: rgba(52, 211, 153, 0.08);
}
.mod-notice a {
	color: var(--success);
	font-weight: 600;
}
.mods-list {
	display: grid;
	gap: 6px;
	margin-top: 12px;
}
.mods-list:empty {
	display: none;
}
.mods-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
}
.mods-row .side-avatar {
	width: 26px;
	height: 26px;
	font-size: 12px;
}
.mods-row small {
	color: var(--faint);
	font-size: 12px;
}
.mods-row.is-inactive {
	opacity: 0.6;
}

.side-bottom {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: 14px;
}
/* Großer An/Aus-Schalter für Nitorabot im eigenen Kanal: grün = an, rot = aus */
.side-cta {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin-top: 12px;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		filter 0.15s,
		background-color 0.25s,
		box-shadow 0.25s,
		transform 0.1s;
}
.side-cta:hover {
	filter: brightness(1.07);
	text-decoration: none;
}
.side-cta:active {
	transform: translateY(1px);
}
.side-cta:disabled {
	cursor: wait;
	opacity: 0.75;
}
.side-cta.is-on {
	border-color: rgba(255, 255, 255, 0.25);
	background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
	box-shadow: 0 8px 24px -10px rgba(34, 197, 94, 0.9);
	color: #052e16;
}
.side-cta.is-off {
	border-color: rgba(255, 255, 255, 0.18);
	background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
	box-shadow: 0 8px 24px -10px rgba(220, 38, 38, 0.9);
	color: #fff;
}
.side-cta svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.side-cta strong {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.25;
}
.side-cta small {
	display: block;
	opacity: 0.72;
	font-size: 12.5px;
}

/* Hauptbereich */
.main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.topbar {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	padding: 0 32px;
}
.crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--faint);
	font-size: 13px;
}
.crumbs strong {
	color: var(--text);
	font-weight: 600;
}
.crumbs svg {
	width: 14px;
	height: 14px;
}
.crumbs .mono {
	font-family: var(--mono);
	font-size: 12px;
}

.tabs {
	display: flex;
	gap: 4px;
	padding: 0 24px;
	overflow-x: auto;
	border-bottom: 1px solid var(--app-line);
	scrollbar-width: none;
}
.tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 14px 16px;
	border: 0;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s;
}
.tab svg {
	width: 17px;
	height: 17px;
}
.tab:hover,
.tab.is-active {
	color: var(--text);
}
.tab.is-active::after {
	content: '';
	position: absolute;
	right: 8px;
	bottom: -1px;
	left: 8px;
	height: 2px;
	border-radius: 0;
	background: var(--accent);
}
.tab-count {
	padding: 1px 7px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.07);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
}

/* Der Inhalt nutzt die ganze Breite neben der Seitenleiste */
.content {
	width: 100%;
	padding: 30px 32px 64px;
}
#banner-slot .notice {
	margin-bottom: 20px;
}

.page-title {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 24px;
}
.page-title .kicker {
	margin-bottom: 6px;
}
.page-title h1 {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
}
.subtitle {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 15px;
}
.title-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Kennzahlen (die ersten drei filtern die Liste) */
.stat-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}
.stat {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--app-line);
	border-radius: 0;
	background: var(--app-panel);
	color: var(--text);
	font: inherit;
	text-align: left;
}
button.stat {
	cursor: pointer;
	transition:
		border-color 0.15s,
		background-color 0.15s;
}
button.stat:hover {
	border-color: var(--app-line-strong);
}
button.stat.is-active {
	border-color: #6a6b78;
	background: var(--app-panel-2);
}
.stat-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
}
.stat-icon svg {
	width: 20px;
	height: 20px;
}
.stat-icon.ok {
	background: var(--success-soft);
	color: var(--success);
}
.stat-icon.warn {
	background: var(--warning-soft);
	color: var(--warning);
}
.stat-icon.accent {
	background: var(--accent-soft);
	color: var(--accent-light);
}
.stat-text {
	min-width: 0;
}
.stat-text strong {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.stat-text small {
	display: block;
	overflow: hidden;
	color: var(--muted);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Suche, Sortierung, Status */
.list-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.list-tools .search {
	flex: 0 1 460px;
}
.list-tools .search input[type='search'] {
	width: 100%;
	background-color: var(--app-panel);
}
.segmented {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--app-line);
	border-radius: 0;
	background: var(--app-panel);
}
.segmented button {
	height: 34px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}
.segmented button:hover {
	color: var(--text);
}
.segmented button.is-active {
	border-color: var(--app-line-strong);
	background: var(--app-panel-2);
	color: var(--text);
}
.tools-meta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	color: var(--muted);
	font-size: 13px;
}

/* Command-Liste */
.cmd-list {
	display: grid;
	gap: 6px;
}
.cmd-head,
.cmd-row {
	display: grid;
	/* Griff | Command | Rechte | Cooldown | Benutzt | Status | Aktionen */
	grid-template-columns: 20px minmax(0, 1fr) 118px 92px 92px 150px 76px;
	align-items: center;
	gap: 16px;
}
.cmd-head {
	padding: 8px 17px;
	color: var(--faint);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.cmd-row {
	padding: 12px 16px;
	border: 1px solid var(--app-line);
	border-radius: 0;
	background: var(--app-panel);
	transition:
		border-color 0.15s,
		background-color 0.15s;
}
.cmd-row:hover {
	border-color: var(--app-line-strong);
	background: #1f2027;
}
.cmd-row.is-paused > :not(.status-toggle):not(.cmd-actions) {
	opacity: 0.45;
}
.cmd-main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.cmd-main:focus-visible {
	border-radius: 0;
	outline-offset: 4px;
}
.cmd-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0;
	font-family: var(--mono);
	font-size: 17px;
	font-weight: 700;
}
.hue-0 { background: rgba(168, 123, 255, 0.16); color: #d6c4ff; }
.hue-1 { background: rgba(34, 211, 238, 0.14); color: #a5f3fc; }
.hue-2 { background: rgba(52, 211, 153, 0.14); color: #a7f3d0; }
.hue-3 { background: rgba(251, 191, 36, 0.14); color: #fde68a; }
.hue-4 { background: rgba(251, 97, 137, 0.15); color: #fecdd3; }
.hue-5 { background: rgba(96, 165, 250, 0.15); color: #bfdbfe; }
.cmd-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.cmd-title {
	overflow: hidden;
	font-family: var(--mono);
	font-size: 14.5px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.15s;
}
.cmd-main:hover .cmd-title {
	color: var(--accent-light);
}
.cmd-desc {
	overflow: hidden;
	color: var(--muted);
	font-size: 13.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mono-chip {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid var(--app-line);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.035);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 12.5px;
	white-space: nowrap;
}
.cmd-uses {
	font-family: var(--mono);
	font-size: 13.5px;
	font-variant-numeric: tabular-nums;
}
.status-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}
.state-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 9px;
	border-radius: 0;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
.state-badge::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 0;
	background: currentColor;
}
.state-badge.ok {
	background: rgba(52, 211, 153, 0.14);
	color: #4ade80;
}
.state-badge.off {
	background: rgba(255, 255, 255, 0.06);
	color: var(--faint);
}
.cmd-actions {
	display: flex;
	justify-content: flex-end;
	gap: 2px;
}
/* Kategorien: Gruppen, in die man Commands am Griff hineinzieht */
.drag-handle {
	display: grid;
	place-items: center;
	align-self: stretch;
	width: 20px;
	color: var(--faint);
	cursor: grab;
	touch-action: none;
	transition: color 0.15s;
}
.drag-handle svg {
	width: 16px;
	height: 16px;
	stroke-width: 3.5;
}
.cmd-row:hover .drag-handle,
.drag-handle:hover {
	color: var(--accent-light);
}
.drag-handle:active {
	cursor: grabbing;
}
.cmd-row.is-dragging {
	opacity: 0.4;
}
.cmd-group {
	display: grid;
	gap: 6px;
}
.cmd-group-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding: 6px 4px 8px;
	border-bottom: 1px solid var(--app-line);
}
.cmd-group-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	background: var(--accent-soft);
	color: var(--accent-light);
}
.cmd-group-icon svg {
	width: 15px;
	height: 15px;
}
.cmd-group.is-uncategorized .cmd-group-icon {
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
}
.cmd-group-head strong {
	font-size: 15px;
	font-weight: 650;
}
/* Auf- und zuklappen wie im Windows-Explorer */
.cmd-group-toggle {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.cmd-group-toggle:hover strong {
	color: var(--accent-light);
}
.cmd-group-chevron {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--muted);
	transform: rotate(90deg);
	transition: transform 0.15s;
}
.cmd-group-chevron svg {
	width: 14px;
	height: 14px;
	stroke-width: 3;
}
.cmd-group.is-collapsed .cmd-group-chevron {
	transform: none;
}
.cmd-group.is-collapsed .cmd-group-head {
	border-bottom-style: dashed;
}
.cmd-group-actions {
	display: flex;
	gap: 2px;
	margin-left: auto;
	opacity: 0.55;
	transition: opacity 0.15s;
}
.cmd-group-head:hover .cmd-group-actions,
.cmd-group-actions:focus-within {
	opacity: 1;
}
.cmd-group-actions .icon-btn {
	width: 30px;
	height: 30px;
}
.cmd-group-body {
	display: grid;
	gap: 6px;
	min-height: 8px;
	transition:
		outline-color 0.15s,
		background-color 0.15s;
	outline: 2px dashed transparent;
	outline-offset: 4px;
}
.cmd-group-empty {
	padding: 16px;
	border: 1px dashed var(--app-line-strong);
	color: var(--faint);
	font-size: 13px;
	text-align: center;
}
/* Während des Ziehens: alle Ziele sichtbar machen, das aktuelle hervorheben */
#commands-slot.is-dragging .cmd-group-empty {
	border-color: var(--border-accent);
	color: var(--accent-light);
}
.cmd-group.is-drop-target .cmd-group-body {
	outline-color: var(--accent);
	background: rgba(168, 123, 255, 0.06);
}
.cmd-group.is-drop-target .cmd-group-head {
	border-bottom-color: var(--accent);
}

.list-empty {
	padding: 40px 16px;
	border: 1px dashed var(--app-line-strong);
	border-radius: 0;
	color: var(--muted);
	text-align: center;
}
.cmd-list .empty {
	border: 1px dashed var(--app-line-strong);
	border-radius: 0;
	background: var(--app-panel);
}

/* Einstellungen */
.settings-group {
	margin-bottom: 30px;
}
.group-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	color: var(--faint);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.group-label .perm {
	letter-spacing: 0;
	text-transform: none;
}
.setting-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px;
	border: 1px solid var(--app-line);
	border-radius: 0;
	background: var(--app-panel);
	transition: border-color 0.3s;
}
.setting-row + .setting-row,
.setting-row + .hint,
.hint + .setting-row {
	margin-top: 8px;
}
.setting-row.is-on {
	border-color: rgba(52, 211, 153, 0.32);
}
.setting-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 0;
	background: var(--accent-soft);
	color: var(--accent-light);
}
.setting-icon svg {
	width: 20px;
	height: 20px;
}
.setting-text {
	flex: 1;
	min-width: 0;
}
.setting-text > strong {
	display: block;
	font-size: 15px;
	font-weight: 650;
}
.setting-text > span {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 13.5px;
}
.setting-text .status-line {
	margin-top: 12px;
}
.setting-row > .switch,
.setting-row > .btn {
	align-self: center;
	flex-shrink: 0;
}
.setting-row .copy-field {
	margin-top: 12px;
}
.settings-group .hint {
	margin-top: 8px;
}

/* Automatik: Karten für Raid, Abos, Bits */
.event-list {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}
.event-card {
	border: 1px solid var(--app-line);
	border-radius: 0;
	background: var(--app-panel);
	transition: border-color 0.3s;
}
.event-card.is-on {
	border-color: rgba(52, 211, 153, 0.32);
}
.event-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
}
.event-head .switch {
	flex-shrink: 0;
}
.event-body {
	display: grid;
	gap: 14px;
	padding: 2px 18px 16px 76px;
	transition: opacity 0.2s;
}
.event-card:not(.is-on) .event-body {
	opacity: 0.72;
}
.event-body textarea {
	min-height: 72px;
}
.field-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.field.field-inline label {
	margin: 0;
}
.field-inline input[type='number'] {
	width: 120px;
}
.field-inline .help {
	margin: 0;
}
.event-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.save-state {
	margin-right: auto;
	color: var(--faint);
	font-size: 12.5px;
}
.save-state.dirty {
	color: var(--warning);
}
.save-state.ok {
	color: var(--success);
}

/* Timer: „Wann senden?“ */
.timer-trigger {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.timer-trigger input[type='number'] {
	width: 110px;
}
.timer-trigger .dd {
	width: 140px;
}
.timer-unit-text {
	color: var(--muted);
	font-size: 14px;
}
.timer-delete:hover {
	border-color: rgba(251, 97, 137, 0.4);
	background: var(--danger-soft);
	color: var(--danger);
}

/* Spam-Schutz: Ausprobieren */
.spam-tester {
	margin-bottom: 16px;
	padding: 16px 18px;
	border: 1px solid var(--app-line);
	background: var(--app-panel);
}
.spam-tester > label {
	display: block;
	margin-bottom: 8px;
	font-size: 13.5px;
	font-weight: 600;
}
.spam-tester .help {
	margin-top: 8px;
	color: var(--faint);
	font-size: 12.5px;
}
.spam-test-row {
	display: flex;
	gap: 8px;
}
.spam-test-row input {
	flex: 1;
	min-width: 0;
}
.spam-test-result {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid var(--app-line);
	font-size: 14px;
}
.spam-test-result[hidden] {
	display: none;
}
.spam-test-result svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
}
.spam-test-result.is-ok {
	border-color: rgba(52, 211, 153, 0.35);
	background: rgba(52, 211, 153, 0.08);
	color: var(--success);
}
.spam-test-result.is-hit {
	border-color: rgba(251, 97, 137, 0.4);
	background: var(--danger-soft);
	color: #ff8fab;
}
.spam-test-result.is-off {
	border-color: rgba(251, 191, 36, 0.35);
	background: rgba(251, 191, 36, 0.08);
	color: var(--warning);
}
.spam-test-hit {
	margin-top: 2px;
	color: var(--muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

/* Spam-Schutz: Listen und Verlauf */
.list-count {
	color: var(--faint);
	font-size: 12px;
}
.chip-list .alias-chip {
	max-width: 100%;
	overflow-wrap: anywhere;
}
.group-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.group-row .group-label {
	margin: 0;
}
.spam-log-row {
	display: flex;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--app-line);
	background: var(--app-panel);
}
.spam-log-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	background: var(--danger-soft);
	color: #ff8fab;
}
.spam-log-icon svg {
	width: 16px;
	height: 16px;
}
.spam-log-row.is-failed .spam-log-icon {
	background: rgba(251, 191, 36, 0.1);
	color: var(--warning);
}
.spam-log-text {
	display: grid;
	flex: 1;
	gap: 3px;
	min-width: 0;
}
.spam-log-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}
.spam-log-head strong {
	font-size: 14px;
}
.spam-log-filter {
	padding: 1px 7px;
	border: 1px solid rgba(168, 123, 255, 0.3);
	background: var(--accent-soft);
	color: var(--accent-light);
	font-size: 11.5px;
	font-weight: 600;
}
.spam-log-action {
	color: var(--muted);
	font-size: 12.5px;
}
.spam-log-time {
	margin-left: auto;
	color: var(--faint);
	font-size: 12px;
}
.spam-log-message {
	color: var(--muted);
	font-size: 13.5px;
	overflow-wrap: anywhere;
}
.spam-log-detail {
	color: var(--faint);
	font-family: var(--mono);
	font-size: 12px;
	overflow-wrap: anywhere;
}
.spam-log-error {
	color: var(--warning);
	font-size: 12.5px;
}
.spam-log-empty {
	padding: 28px 16px;
}
.spam-group {
	margin: 4px 0 0;
}
.spam-group:not(:first-child) {
	margin-top: 18px;
}
.spam-amount input[type='number'] {
	max-width: 220px;
}

/* Übersicht: Live-Karte */
.live-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-bottom: 16px;
	padding: 18px;
	border: 1px solid var(--app-line);
	background: var(--app-panel);
}
.live-card.is-live {
	border-color: rgba(239, 68, 68, 0.45);
	box-shadow: inset 3px 0 0 #ef4444;
}
.live-badge {
	flex-shrink: 0;
	padding: 4px 10px;
	background: #ef4444;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.live-badge.is-off {
	background: var(--app-panel-2);
	color: var(--muted);
}
.live-main {
	flex: 1;
	min-width: 200px;
}
.live-main h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 650;
	letter-spacing: -0.01em;
}
.live-title {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 14px;
	overflow-wrap: anywhere;
}
.live-meta {
	margin: 6px 0 0;
	color: var(--faint);
	font-size: 13px;
}
.status-dot.live {
	background: #ef4444;
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
	.status-dot.live {
		animation: live-pulse 1.8s ease-out infinite;
	}
}
@keyframes live-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
	}
	100% {
		box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
	}
}

/* Übersicht: Status-Karten und Verlauf */
.overview-status {
	display: grid;
	gap: 8px;
}
.overview-line {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}
.overview-status .btn {
	justify-self: start;
}
.overview-empty {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 14px;
}
.overview-timer-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
}
.overview-timer-name svg {
	width: 16px;
	height: 16px;
	color: var(--accent-light);
}
.overview-timer-when {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.overview-timer-when.is-waiting {
	color: var(--warning);
}
.activity-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.activity-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--app-line);
}
.activity-row:last-child {
	border-bottom: 0;
}
.activity-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background: var(--accent-soft);
	color: var(--accent-light);
}
.activity-icon svg {
	width: 14px;
	height: 14px;
}
.kind-event .activity-icon {
	background: rgba(52, 211, 153, 0.12);
	color: var(--success);
}
.kind-live .activity-icon {
	background: rgba(239, 68, 68, 0.14);
	color: #f87171;
}
.kind-timer .activity-icon {
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted);
}
.kind-spam .activity-icon {
	background: rgba(251, 191, 36, 0.1);
	color: var(--warning);
}
.kind-error .activity-icon {
	background: var(--danger-soft);
	color: #ff8fab;
}
.activity-text {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	overflow-wrap: anywhere;
}
.activity-time {
	flex-shrink: 0;
	color: var(--faint);
	font-size: 12px;
	white-space: nowrap;
}

/* Statistik */
.stats-kpis .stat-text small {
	white-space: normal; /* „Command-Aufrufe“ darf auf dem Handy umbrechen statt abgeschnitten zu werden */
}
.stats-card {
	margin-bottom: 16px;
	padding: 16px 18px;
	border: 1px solid var(--app-line);
	background: var(--app-panel);
}
.stats-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.stats-card-head .group-label {
	margin: 0;
}
.stats-meta {
	color: var(--faint);
	font-size: 12px;
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.stats-grid .stats-card {
	margin: 0;
}

/* Säulendiagramm: Nachrichten pro Tag */
.chart-body {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 10px;
	height: 200px;
	margin-top: 18px;
}
.chart-y {
	position: relative;
}
.chart-y span {
	position: absolute;
	right: 0;
	transform: translateY(50%);
	color: var(--faint);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
}
.chart-plot {
	position: relative;
	height: 100%;
}
.chart-grid {
	position: absolute;
	right: 0;
	left: 0;
	height: 1px;
	background: var(--app-line);
}
.chart-bars {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
}
.day-slot {
	display: flex;
	flex: 1 1 0;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	padding: 0 1px;
	outline: none;
}
.day-slot:hover,
.day-slot:focus-visible {
	background: rgba(255, 255, 255, 0.03);
}
.day-slot:focus-visible {
	box-shadow: inset 0 0 0 1px var(--accent);
}
.day-bar {
	position: relative;
	width: min(24px, 70%);
	min-width: 2px;
	background: var(--accent);
}
.day-slot:hover .day-bar,
.day-slot:focus-visible .day-bar {
	background: var(--accent-light);
}
.day-peak {
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-bottom: 4px;
	transform: translateX(-50%);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.chart-x {
	position: relative;
	height: 18px;
	margin: 6px 0 0 46px;
}
.chart-x span {
	position: absolute;
	transform: translateX(-50%);
	color: var(--faint);
	font-size: 11.5px;
	white-space: nowrap;
}
.chart-tip {
	position: absolute;
	top: -6px;
	z-index: 5;
	display: grid;
	gap: 2px;
	padding: 6px 10px;
	border: 1px solid var(--border-strong);
	background: #0f0f14;
	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
	color: var(--muted);
	font-size: 12.5px;
	white-space: nowrap;
	transform: translate(-50%, -100%);
	pointer-events: none;
}
.chart-tip[hidden] {
	display: none;
}
.chart-tip strong {
	color: var(--text);
	font-weight: 600;
}
.chart-empty {
	display: grid;
	place-items: center;
	height: 200px;
	border: 1px dashed var(--app-line-strong);
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

/* Ranglisten */
.rank-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rank-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.rank-pos {
	flex-shrink: 0;
	width: 20px;
	padding-top: 1px;
	color: var(--faint);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	text-align: right;
}
.rank-main {
	display: grid;
	flex: 1;
	gap: 6px;
	min-width: 0;
}
.rank-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 10px;
}
.rank-name {
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.rank-value {
	color: var(--muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.rank-value small {
	color: var(--faint);
	font-size: 12px;
}
.rank-track {
	display: block;
	height: 6px;
	background: rgba(255, 255, 255, 0.05);
}
.rank-fill {
	display: block;
	height: 100%;
	background: var(--accent);
}
.rank-empty {
	padding: 10px 0;
	color: var(--muted);
	font-size: 13.5px;
}
@media (max-width: 760px) {
	.stats-grid {
		grid-template-columns: 1fr;
	}
}

/* Variablen und eingebaute Commands */
.row-list {
	display: grid;
	gap: 6px;
}
.info-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	padding: 8px 10px 8px 16px;
	border: 1px solid var(--app-line);
	border-radius: 0;
	background: var(--app-panel);
}
.info-row code {
	justify-self: start;
	border-color: rgba(168, 123, 255, 0.22);
	background: var(--accent-soft);
	color: var(--accent-light);
}
.info-row > span {
	color: var(--muted);
	font-size: 14px;
}
.info-row .perm {
	margin-right: 6px;
}

/* ── Dialoge ────────────────────────────────────────────────── */

dialog {
	width: min(580px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: 0;
	background: linear-gradient(180deg, #1b182b 0%, #131120 100%);
	color: var(--text);
	box-shadow:
		var(--highlight),
		0 40px 100px -24px rgba(0, 0, 0, 0.85);
}
dialog[open] {
	animation: dialog-in 0.25s var(--ease-out);
}
dialog::backdrop {
	background: rgba(4, 3, 9, 0.7);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
dialog.small {
	width: min(420px, calc(100vw - 32px));
}
.dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
}
.dialog-head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 650;
	letter-spacing: -0.02em;
}
.dialog-body {
	display: grid;
	gap: 18px;
	padding: 24px;
}
.dialog-body p {
	margin: 0;
	color: var(--muted);
}
.dialog-foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.15);
	border-radius: 0;
}

.field label,
.field .label {
	display: block;
	margin-bottom: 8px;
	font-size: 13.5px;
	font-weight: 600;
}
.field .help {
	margin-top: 7px;
	color: var(--faint);
	font-size: 12.5px;
}
.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.prefix-input {
	display: flex;
	align-items: stretch;
}
.prefix-input span {
	display: grid;
	place-items: center;
	padding: 0 13px;
	border: 1px solid var(--border-strong);
	border-right: 0;
	border-radius: 0;
	background: var(--accent-soft);
	color: var(--accent-light);
	font-family: var(--mono);
	font-weight: 700;
}
.prefix-input input {
	border-radius: 0;
	font-family: var(--mono);
}

/* Weitere Namen eines Commands: kleine Kästchen im Eingabefeld */
.field label .optional {
	margin-left: 6px;
	color: var(--faint);
	font-size: 12px;
	font-weight: 500;
}
.alias-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	min-height: 42px;
	padding: 5px 8px;
	border: 1px solid var(--border-strong);
	background-color: rgba(8, 7, 14, 0.55);
	cursor: text;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.alias-box:hover {
	border-color: rgba(255, 255, 255, 0.2);
}
.alias-box:focus-within {
	border-color: var(--accent);
	background-color: rgba(8, 7, 14, 0.8);
	box-shadow: 0 0 0 3px rgba(168, 123, 255, 0.22);
}
.alias-box.is-error,
.alias-box.is-error:focus-within {
	border-color: rgba(251, 97, 137, 0.75);
	box-shadow: 0 0 0 3px rgba(251, 97, 137, 0.16);
}
.alias-chips {
	display: contents;
}
.alias-chip {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	height: 28px;
	padding: 0 2px 0 8px;
	border: 1px solid rgba(168, 123, 255, 0.35);
	background: var(--accent-soft);
	color: var(--accent-light);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 600;
}
.alias-chip button {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent-light);
	cursor: pointer;
	opacity: 0.7;
}
.alias-chip button:hover,
.alias-chip button:focus-visible {
	background: rgba(168, 123, 255, 0.2);
	outline: none;
	opacity: 1;
}
.alias-chip svg {
	width: 13px;
	height: 13px;
}
.alias-box input[type='text'] {
	flex: 1;
	min-width: 90px;
	height: 30px;
	padding: 0 4px;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: var(--mono);
}
.alias-box input[type='text']:focus-visible {
	background: none;
	box-shadow: none;
}
.field .help.is-error {
	color: #ff8fab;
}
.cmd-aliases {
	margin-left: 8px;
	color: var(--faint);
	font-size: 12.5px;
	font-weight: 500;
}
.label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}
.char-count {
	color: var(--faint);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.char-count.over {
	color: var(--danger);
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.chip {
	padding: 4px 10px;
	border: 1px solid rgba(168, 123, 255, 0.22);
	border-radius: 0;
	background: var(--accent-soft);
	color: var(--accent-light);
	font-family: var(--mono);
	font-size: 12px;
	cursor: pointer;
	transition:
		background-color 0.15s,
		border-color 0.15s,
		transform 0.15s;
}
.chip:hover {
	border-color: var(--accent);
	background: rgba(168, 123, 255, 0.24);
	transform: translateY(-1px);
}
.chip-action {
	border-color: rgba(34, 211, 238, 0.26);
	background: rgba(34, 211, 238, 0.09);
	color: #a5f3fc;
}
.chip-action:hover {
	border-color: var(--accent-2);
	background: rgba(34, 211, 238, 0.18);
}
.chip-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 10px;
}

/* Farbauswahl für Ankündigungen */
.chip.chip-color {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-color: var(--app-line-strong);
	background: var(--app-panel);
	color: var(--muted);
	font-family: var(--font);
	font-weight: 600;
}
.chip.chip-color:hover {
	border-color: #5b5c68;
	background: var(--app-panel-2);
	color: var(--text);
}
.chip.chip-color.is-active {
	border-color: var(--text);
	background: var(--app-panel-2);
	color: var(--text);
}
.chip-color .swatch {
	width: 10px;
	height: 10px;
}
.ann-primary .swatch { background: var(--accent); }
.ann-blue .swatch { background: #00d6d6; }
.ann-green .swatch { background: #00db84; }
.ann-orange .swatch { background: #ffb31a; }
.ann-purple .swatch { background: #c77dff; }

/* Ankündigung in der Vorschau – Farben ähnlich wie im Twitch-Chat */
.l-announce.ann-blue {
	border-color: rgba(0, 214, 214, 0.4);
	border-left-color: #00d6d6;
	background: rgba(0, 214, 214, 0.08);
}
.l-announce.ann-green {
	border-color: rgba(0, 219, 132, 0.4);
	border-left-color: #00db84;
	background: rgba(0, 219, 132, 0.08);
}
.l-announce.ann-orange {
	border-color: rgba(255, 179, 26, 0.4);
	border-left-color: #ffb31a;
	background: rgba(255, 179, 26, 0.08);
}
.l-announce.ann-purple {
	border-color: rgba(199, 125, 255, 0.45);
	border-left-color: #c77dff;
	background: rgba(199, 125, 255, 0.1);
}
.l-announce.ann-blue .l-announce-label { color: #5ee9e9; }
.l-announce.ann-green .l-announce-label { color: #4ee8a8; }
.l-announce.ann-orange .l-announce-label { color: #ffc94d; }
.l-announce.ann-purple .l-announce-label { color: #dcadff; }
.chip-row .chips {
	margin-top: 0;
}
.chip-label {
	flex-shrink: 0;
	width: 58px;
	color: var(--faint);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.check-row {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
}
.form-error {
	padding: 10px 13px;
	border: 1px solid rgba(251, 97, 137, 0.3);
	border-radius: 0;
	background: var(--danger-soft);
	color: #ffb8c9;
	font-size: 13.5px;
}

/* Command-Fenster im 16:9-Format: links bearbeiten, rechts Vorschau und Einstellungen */
dialog.cmd-dialog {
	width: min(1100px, calc(100vw - 48px), calc((100vh - 48px) * 16 / 9));
	width: min(1100px, calc(100vw - 48px), calc((100dvh - 48px) * 16 / 9));
	max-width: none;
	max-height: none;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.cmd-dialog #command-form {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
}
.cmd-dialog .dialog-head {
	padding: 14px 22px;
}
.cmd-dialog .dialog-foot {
	padding: 12px 22px;
}
.cmd-dialog .field label,
.cmd-dialog .field .label {
	margin-bottom: 6px;
}
.cmd-dialog .field .help {
	margin-top: 5px;
}
.cmd-dialog .chip-row {
	margin-top: 8px;
}
.cmd-dialog .chips {
	gap: 5px;
}
.cmd-dialog .chip {
	padding: 3px 8px;
	font-size: 11.5px;
}
.cmd-dialog .dialog-head .kicker {
	margin-bottom: 2px;
}
.cmd-dialog .dialog-head h2 {
	font-size: 20px;
	letter-spacing: -0.02em;
}
.cmd-dialog .dialog-head h2.is-command {
	font-family: var(--mono);
	letter-spacing: -0.01em;
}
.cmd-dialog-body {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	min-height: 0;
}
.cmd-dialog-main,
.cmd-dialog-side {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	padding: 18px 22px;
	overflow-y: auto;
}
.cmd-dialog-side {
	gap: 10px;
	border-left: 1px solid var(--app-line);
	background: var(--app-side);
}
.cmd-dialog .prefix-input span,
.cmd-dialog .prefix-input input {
	height: 44px;
	font-size: 16px;
}
.field-grow {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}
.field-grow textarea {
	flex: 1;
	min-height: 84px;
	resize: none;
	font-size: 15px;
}
.dialog-hint {
	margin-right: auto;
	color: var(--faint);
	font-size: 12.5px;
}

/* Live-Vorschau der Antwort */
.cmd-preview {
	display: grid;
	align-content: start;
	gap: 8px;
	min-height: 96px;
	padding: 12px;
	border: 1px solid var(--app-line);
	background: var(--app-bg);
	font-size: 13.5px;
	line-height: 1.5;
}
.cmd-preview .chat-line {
	animation: none;
}
.cmd-preview .preview-empty {
	color: var(--faint);
	font-style: italic;
}
.cmd-preview .preview-case {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed var(--app-line);
	color: var(--faint);
	font-size: 12px;
}
.cmd-preview .me-text {
	color: var(--accent-light);
	font-style: italic;
}
.cmd-preview .l-shoutout {
	padding: 8px 10px;
}
.cmd-preview .l-shoutout-avatar {
	width: 30px;
	height: 30px;
	background: linear-gradient(135deg, #4aa8ff, #1d4ed8);
}

@media (max-width: 900px) {
	dialog.cmd-dialog {
		width: calc(100vw - 24px);
		height: auto;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		aspect-ratio: auto;
	}
	.cmd-dialog #command-form {
		height: auto;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
	}
	.cmd-dialog-body {
		grid-template-columns: 1fr;
		grid-auto-rows: max-content;
		overflow-y: auto;
	}
	/* Untereinander: jede Spalte so hoch wie ihr Inhalt, gescrollt wird das ganze Fenster */
	.cmd-dialog-main,
	.cmd-dialog-side {
		min-height: auto;
		overflow: visible;
	}
	.field-grow,
	.field-grow textarea {
		flex: none;
	}
	.field-grow textarea {
		min-height: 110px;
	}
	.cmd-dialog-side {
		border-top: 1px solid var(--app-line);
		border-left: 0;
	}
	.dialog-hint {
		display: none;
	}
}

/* ── Kurzmeldungen ──────────────────────────────────────────── */

.toasts {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}
.toast {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 240px;
	max-width: 380px;
	padding: 11px 16px 11px 11px;
	border: 1px solid var(--border-strong);
	border-radius: 0;
	background: rgba(27, 24, 43, 0.94);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: var(--shadow);
	font-size: 14px;
	font-weight: 500;
	animation: toast-in 0.35s var(--ease-out) both;
}
.toast svg {
	flex-shrink: 0;
	box-sizing: content-box;
	width: 16px;
	height: 16px;
	padding: 4px;
	border-radius: 0;
	background: var(--success-soft);
	color: var(--success);
}
.toast.error svg {
	background: var(--danger-soft);
	color: var(--danger);
}

/* ── Dashboard: Details wie auf der Startseite ──────────────── */

/* Feines Linienraster mit lila Schimmer oben im Hauptbereich (wie im Hero der Startseite) */
.main {
	position: relative;
	isolation: isolate;
}
.main::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: -1;
	height: 440px;
	background:
		radial-gradient(560px 320px at 85% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
		linear-gradient(var(--app-line) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, var(--app-line) 1px, transparent 1px) 0 0 / 48px 48px;
	opacity: 0.6;
	-webkit-mask-image: radial-gradient(ellipse 75% 100% at 80% 0%, #000 15%, transparent 75%);
	mask-image: radial-gradient(ellipse 75% 100% at 80% 0%, #000 15%, transparent 75%);
	pointer-events: none;
}

/* Lila Akzent-Kante für aktive und überfahrene Zeilen */
.side-item.is-active,
.cmd-row:hover,
.info-row:hover {
	box-shadow: inset 3px 0 0 var(--accent);
}
.event-card.is-on,
.setting-row.is-on {
	box-shadow: inset 3px 0 0 var(--success);
}

/* Kennzahlen in Mono-Schrift wie die Zahlen-Leiste der Startseite */
.stat-text strong {
	font-family: var(--mono);
	font-weight: 600;
	letter-spacing: -0.03em;
}
button.stat.is-active {
	border-color: var(--accent);
	box-shadow: 6px 6px 0 rgba(139, 92, 246, 0.18);
}

/* Harte, versetzte Schatten wie bei den Fenstern der Startseite */
body.app dialog {
	box-shadow: 16px 16px 0 rgba(139, 92, 246, 0.16);
}
body.app .toast {
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
}
.side-cta.is-on {
	box-shadow: 6px 6px 0 rgba(34, 197, 94, 0.22);
}
.side-cta.is-off {
	box-shadow: 6px 6px 0 rgba(220, 38, 38, 0.22);
}

/* ── Öffentliche Command-Liste (im Dashboard-Stil) ──────────── */

.pub-top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 32px;
	border-bottom: 1px solid var(--app-line);
	background: var(--app-side);
}
.pub-top .side-brand {
	padding: 0;
}
.pub-content {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 32px 56px;
}
.pub-identity {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}
.pub-avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border: 1px solid var(--app-line-strong);
	border-radius: 0;
	background: linear-gradient(135deg, #a074ff, #6d3df5);
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	object-fit: cover;
}
.pub-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

/* Liste: Command | Wer darf | Cooldown | Kopieren */
.cmd-list.public .cmd-head,
.cmd-list.public .cmd-row {
	grid-template-columns: minmax(0, 1fr) 118px 92px 40px;
}
.cmd-list.public .cmd-main {
	align-items: flex-start;
	cursor: default;
}
.cmd-list.public .cmd-desc {
	overflow-wrap: anywhere;
	white-space: normal;
}
.cmd-list.public .cmd-title {
	line-height: 1.6;
}
.action-chip {
	display: inline-block;
	margin-right: 6px;
	padding: 0 6px;
	border: 1px solid rgba(34, 211, 238, 0.26);
	border-radius: 0;
	background: rgba(34, 211, 238, 0.09);
	color: #a5f3fc;
	font-size: 11.5px;
	font-weight: 600;
	vertical-align: 1px;
}

.pub-empty {
	max-width: 440px;
	margin: 0 auto;
	padding: 96px 0;
	text-align: center;
}
.pub-empty img {
	width: 64px;
	margin: 0 auto 20px;
}
.pub-empty h1 {
	margin: 0 0 8px;
	font-size: 26px;
	letter-spacing: -0.03em;
}
.pub-empty p {
	margin: 0 0 24px;
	color: var(--muted);
}

.pub-footer {
	padding: 20px 32px 32px;
	border-top: 1px solid var(--app-line);
	color: var(--faint);
	font-size: 12.5px;
	text-align: center;
}

/* ── Sonstiges ──────────────────────────────────────────────── */

/* 404-Seite: eckig, mit Linienraster wie die Startseite */
.nf-page {
	display: flex;
	flex-direction: column;
}
.nf-main {
	position: relative;
	display: grid;
	flex: 1;
	place-items: center;
	overflow: hidden;
	padding: 72px 16px;
}
.nf-main::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(520px 320px at 50% 30%, rgba(139, 92, 246, 0.16), transparent 70%),
		linear-gradient(var(--app-line) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, var(--app-line) 1px, transparent 1px) 0 0 / 56px 56px;
	opacity: 0.6;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
	pointer-events: none;
}
.nf-box {
	position: relative;
	width: min(560px, 100%);
	padding: 44px 40px;
	border: 1px solid var(--app-line-strong);
	border-left: 4px solid var(--accent);
	background: var(--app-panel);
	box-shadow: 16px 16px 0 rgba(139, 92, 246, 0.14);
}
.nf-dot {
	background: var(--danger);
	box-shadow: 0 0 10px var(--danger);
}
.nf-code {
	margin: 22px 0 10px;
	color: transparent;
	font-family: var(--mono);
	font-size: clamp(88px, 18vw, 140px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	-webkit-text-stroke: 2px var(--accent-light);
}
.nf-box h1 {
	margin: 0 0 8px;
	font-size: 28px;
	letter-spacing: -0.03em;
}
.nf-box p {
	margin: 0 0 28px;
	color: var(--muted);
}
.nf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.nf-actions .btn-lg {
	height: 48px;
	padding: 0 20px;
}
@media (max-width: 600px) {
	.nf-box {
		padding: 32px 22px;
		box-shadow: 8px 8px 0 rgba(139, 92, 246, 0.14);
	}
	.nf-actions .btn {
		flex: 1 1 100%;
	}
}

.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 48px 24px;
	color: var(--muted);
	text-align: center;
}
.spinner {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(168, 123, 255, 0.25);
	border-top-color: var(--accent);
	border-radius: 0;
	animation: spin 0.7s linear infinite;
}

/* ── Animationen ────────────────────────────────────────────── */

@keyframes chat-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}
@keyframes chat-out {
	to {
		opacity: 0;
		transform: translateY(-6px);
	}
}
@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.97);
	}
}
@keyframes dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}
@keyframes typing {
	0%,
	60%,
	100% {
		opacity: 0.35;
		transform: none;
	}
	30% {
		opacity: 1;
		transform: translateY(-3px);
	}
}
@keyframes blink {
	50% {
		opacity: 0.3;
	}
}
@keyframes ping {
	0% {
		opacity: 0.8;
		transform: scale(0.6);
	}
	100% {
		opacity: 0;
		transform: scale(1.9);
	}
}
@keyframes float {
	50% {
		transform: translateY(-9px);
	}
}
@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}
@keyframes cooldown {
	from {
		transform: scaleX(0);
	}
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes reveal {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.l-ticker-track {
		flex-wrap: wrap;
		width: auto;
	}
	.l-ticker-group[aria-hidden='true'] {
		display: none;
	}
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1180px) {
	/* Mittlere Breite: schmalere Spalten, Status nur als Schalter – mehr Platz für die Antwort */
	.cmd-head,
	.cmd-row {
		grid-template-columns: 20px minmax(0, 1fr) 92px 78px 64px 56px 76px;
		gap: 12px;
	}
	.cmd-head {
		letter-spacing: 0.05em;
	}
	.cmd-row .state-badge {
		display: none;
	}
	.stat-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	/* Startseite */
	.l-nav {
		display: none;
	}
	.l-hero-grid {
		/* minmax(0, …): breite Inhalte dürfen die Spalte nicht über den Bildschirm drücken */
		grid-template-columns: minmax(0, 1fr);
		gap: 72px;
		padding-top: 64px;
		padding-bottom: 96px;
	}
	.l-console-wrap {
		width: 100%;
		max-width: 560px;
	}
	.l-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.l-split,
	.l-faq,
	.l-head {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.l-head {
		gap: 16px;
	}

	/* Dashboard: Seitenleiste wird zur Kopfzeile */
	.shell {
		grid-template-columns: 1fr;
	}
	.sidebar {
		z-index: 20;
		flex-direction: row;
		align-items: center;
		height: auto;
		padding: 10px 16px;
		overflow: visible;
		border-right: 0;
		border-bottom: 1px solid var(--app-line);
	}
	.side-brand {
		padding: 0;
	}
	.side-brand img {
		width: 30px;
		height: 30px;
	}
	.side-brand small,
	.side-nav,
	.side-section,
	.side-bottom > :not(#logout-btn):not(#side-bot-toggle):not(#settings-link) {
		display: none;
	}
	.side-bottom {
		flex-direction: row;
		align-items: center;
		gap: 6px;
		margin: 0 0 0 auto;
		padding: 0;
	}
	#logout-btn,
	#settings-link {
		width: auto;
	}
	/* Auf dem Handy: Einstellungen und Abmelden nur als Symbol, Logo ohne Schriftzug */
	@media (max-width: 480px) {
		#logout-btn,
		#settings-link {
			gap: 0;
			padding: 4px;
			font-size: 0;
		}
		.sidebar .side-brand strong {
			display: none;
		}
	}
	#side-bot-toggle {
		order: -1;
		width: auto;
		margin: 0;
		padding: 7px 12px;
		gap: 8px;
	}
	#side-bot-toggle strong {
		font-size: 13px;
	}
	#side-bot-toggle small {
		display: none;
	}
	.topbar {
		padding: 0 16px;
	}
	.tabs {
		padding: 0 8px;
	}
	.content {
		padding: 24px 16px 56px;
	}
	.cmd-head {
		display: none;
	}
	.cmd-row {
		grid-template-columns: auto auto auto 1fr auto;
		grid-template-areas:
			'main main main main actions'
			'perm cool uses . status';
		gap: 12px 10px;
	}
	.cmd-main {
		grid-area: main;
	}
	/* Auf dem Handy wird statt gezogen im Bearbeiten-Fenster eine Kategorie gewählt */
	.drag-handle {
		display: none;
	}
	.cmd-desc {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		white-space: normal;
	}
	.cmd-actions {
		grid-area: actions;
	}
	.cmd-perm {
		grid-area: perm;
	}
	.cmd-cool {
		grid-area: cool;
	}
	.cmd-uses {
		grid-area: uses;
	}
	.status-toggle {
		grid-area: status;
	}
	.cmd-list.public .cmd-row {
		grid-template-columns: auto auto 1fr auto;
		grid-template-areas:
			'main main main actions'
			'perm cool . .';
	}
	.pub-top {
		padding: 10px 16px;
	}
	.pub-content {
		padding: 24px 16px 48px;
	}
}

@media (max-width: 760px) {
	.container {
		padding: 0 16px;
	}
	.field-row {
		grid-template-columns: 1fr;
	}

	/* Startseite */
	.l-wrap {
		padding: 0 16px;
	}
	.l-section {
		padding: 72px 0;
	}
	.l-stats .l-wrap {
		grid-template-columns: repeat(2, 1fr);
		padding: 0;
	}
	.l-stat {
		padding: 22px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--app-line);
	}
	.l-stat:nth-child(odd) {
		border-left: 0;
	}
	.l-stat:nth-last-child(-n + 2) {
		border-bottom: 0;
	}
	.l-stat strong {
		font-size: 30px;
	}
	.l-steps {
		grid-template-columns: 1fr;
	}
	.l-step {
		border-right: 0;
		border-bottom: 1px solid var(--app-line);
	}
	.l-step:last-child {
		border-bottom: 0;
	}
	.l-cta {
		grid-template-columns: 1fr;
		padding: 36px 22px;
	}
	.l-event {
		left: 12px;
	}
	.search,
	.search input[type='search'] {
		width: 100%;
	}
	.copy-field {
		flex-wrap: wrap;
	}
	.copy-field input {
		flex-basis: 100%;
	}
	.copy-field .btn {
		flex: 1;
	}

	.page-title h1 {
		font-size: 27px;
	}
	.title-actions {
		width: 100%;
	}
	.title-actions .btn {
		flex: 1;
	}
	.list-tools .search {
		flex-basis: 100%;
	}
	.tools-meta {
		margin-left: 0;
	}
	.setting-row {
		flex-wrap: wrap;
	}
	.setting-row > .btn {
		width: 100%;
	}
	.event-head {
		padding: 14px 16px;
	}
	.event-head .state-badge {
		display: none;
	}
	.event-body {
		padding: 2px 16px 16px;
	}
	.info-row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 6px 12px;
		padding: 12px 10px 12px 14px;
	}
	.info-row > span {
		grid-column: 1 / -1;
		grid-row: 2;
	}


	.toasts {
		right: 16px;
		bottom: 16px;
		left: 16px;
	}
	.toast {
		min-width: 0;
		max-width: none;
	}
}

@media (max-width: 600px) {
	/* Startseite */
	.l-header .btn {
		padding: 0 12px;
	}
	.l-lead {
		font-size: 16.5px;
	}
	.l-actions .btn {
		flex: 1 1 100%;
	}
	.l-console {
		box-shadow: 8px 8px 0 rgba(139, 92, 246, 0.14);
	}
	.l-stat-chip,
	.l-event {
		display: none;
	}
	.chat-body {
		height: 312px;
	}
	.l-grid {
		grid-template-columns: 1fr;
	}
	.l-cell {
		min-height: 0;
		padding: 24px 20px;
	}
	.l-cta .btn {
		width: 100%;
	}
	.stat {
		gap: 12px;
		padding: 14px;
	}
	.stat-icon {
		width: 36px;
		height: 36px;
	}
	.stat-text strong {
		font-size: 22px;
	}
	.pub-avatar {
		width: 56px;
		height: 56px;
		font-size: 22px;
	}
	.pub-meta .state-badge {
		display: inline-flex;
	}
	.pub-top .side-brand small {
		display: none;
	}
	.state-badge {
		display: none;
	}
}
