body { min-height: 100vh; background: radial-gradient(ellipse 60% 40% at 70% -10%, rgba(139, 92, 246, .16), transparent 70%), var(--bg); background-attachment: fixed; }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line-2); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }

.preview-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 24px; border-radius: 12px; border: 1px solid rgba(167, 139, 250, .45); background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(192, 38, 211, .12)); color: #e4dcff; font-size: 13.5px; }
.preview-banner > svg { color: var(--accent-2); flex-shrink: 0; }
.preview-banner > div { flex: 1; }
.preview-banner b { color: #fff; }

/* Login / Setup */
.auth-card { width: min(420px, 100%); text-align: center; padding: 36px 32px; border-radius: 16px; border: 1px solid rgba(139, 92, 246, .3); background: radial-gradient(ellipse at top, rgba(139, 92, 246, .18), transparent 70%), var(--bg-1); box-shadow: 0 20px 80px rgba(139, 92, 246, .15); }
.auth-card .logo { margin-bottom: 28px; font-size: 16px; }
.auth-card h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.auth-card p { color: var(--muted); margin: 8px 0 24px; }
.auth-card .btn { width: 100%; }
.discord-btn { background: #5865f2; color: #fff; }
.discord-btn:hover { background: #4752c4; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--dim); display: flex; justify-content: center; gap: 8px; align-items: center; }
.alert { display: flex; gap: 10px; text-align: left; padding: 12px 14px; border: 1px solid rgba(242,85,90,.35); background: rgba(242,85,90,.08); border-radius: var(--r); color: #ffb3b5; margin-bottom: 18px; font-size: 13.5px; }
.alert.warn { border-color: rgba(255,178,36,.35); background: rgba(255,178,36,.08); color: #ffd58a; }
.alert svg { margin-top: 2px; }

.setup { width: min(680px, 100%); }
.setup h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 22px 0 6px; }
.setup > p { color: var(--muted); margin-bottom: 26px; }
.setup ol { list-style: none; counter-reset: s; border: 1px solid var(--line); border-radius: 10px; }
.setup li { counter-increment: s; padding: 16px 18px 16px 56px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.setup li:last-child { border-bottom: 0; }
.setup li::before { content: counter(s); position: absolute; left: 18px; top: 15px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--text); }
.setup li b { color: var(--text); font-weight: 500; }
.setup li code { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.setup li a { color: var(--accent-2); }
.env-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.env-list span { display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); }

/* Topbar (Serverauswahl) */
.topbar { height: 60px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 24px; gap: 16px; }
.topbar .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.me { display: flex; align-items: center; gap: 9px; font-weight: 500; padding: 4px 10px 4px 4px; border-radius: 99px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); object-fit: cover; flex-shrink: 0; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; padding: 48px 0 80px; }
.wrap-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.wrap-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.wrap-head p { color: var(--muted); margin-top: 4px; }

.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.guild { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); }
.guild:hover { border-color: var(--line-2); }
.g-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--muted); flex-shrink: 0; object-fit: cover; }
.g-icon.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.guild .name { flex: 1; min-width: 0; }
.guild .name b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild .name small { color: var(--dim); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 10px; }

/* Layout */
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(139, 92, 246, .08), transparent 40%), var(--bg-1); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sb-top { padding: 14px 12px 10px; }
.sb-guild { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.sb-guild:hover { border-color: var(--line-2); }
.sb-guild b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-guild svg { color: var(--dim); }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.sb-nav h6 { font-size: 11px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 16px 8px 6px; }
.sb-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--muted); }
.sb-nav a svg { color: var(--c, var(--muted)); opacity: .85; }
.sb-nav a:hover { color: var(--text); background: var(--bg-2); }
.sb-nav a.on { color: #fff; background: linear-gradient(90deg, rgba(139, 92, 246, .28), rgba(192, 38, 211, .1)); box-shadow: inset 2px 0 0 var(--accent-2); }
.sb-nav a.on svg { opacity: 1; }
.sb-nav a .dot { margin-left: auto; }
.sb-foot { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.sb-foot .me { flex: 1; min-width: 0; padding: 0; }
.sb-foot .me span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.content { padding: 36px 44px 120px; max-width: 920px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.ph-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.ph-ic svg { width: 18px; height: 18px; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 560px; }
.state { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding-top: 4px; white-space: nowrap; }

/* Karten & Felder */
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); margin-bottom: 16px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-head p { color: var(--dim); font-size: 13px; }
.card-body { padding: 4px 18px; }
.card-pad { padding: 18px; }
.field { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.field:last-child { border-bottom: 0; }
.field.inline { align-items: center; }
.field.inline .f-input { display: flex; justify-content: flex-end; }
.f-label label { font-weight: 500; display: block; }
.f-label small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.input { width: 100%; height: 36px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 11px; outline: 0; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 92px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238f8f98' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
select.input option, select.input optgroup { background: var(--bg-2); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.input.num { width: 110px; }
.hint { color: var(--dim); font-size: 12.5px; margin-top: 6px; }
.hint code { color: var(--muted); background: var(--bg-2); padding: 0 5px; border-radius: 4px; }
.color { display: flex; align-items: center; gap: 10px; }
.color input[type=color] { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); padding: 3px; cursor: pointer; }
.color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 5px; }

.switch { width: 36px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: var(--grad); box-shadow: 0 0 12px rgba(168, 85, 247, .4); }
.switch.on::after { transform: translateX(16px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 13px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; color: var(--dim); }
.chip button:hover { color: var(--text); background: var(--bg-3); }
.chip button svg { width: 12px; height: 12px; }

.rule { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; background: var(--bg); }
.rule-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.rule label.mini { font-size: 12px; color: var(--dim); display: block; margin-bottom: 4px; }
.rule-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.field.full { grid-template-columns: 1fr; }

/* Übersicht */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; background: var(--bg-1); }
.stat { padding: 16px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat small { color: var(--dim); font-size: 12.5px; }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats { background: radial-gradient(ellipse at 0 0, rgba(139, 92, 246, .14), transparent 60%), var(--bg-1) !important; border-color: rgba(139, 92, 246, .3) !important; }
.mods { display: grid; grid-template-columns: 1fr 1fr; }
.mod { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mod:nth-child(odd) { border-right: 1px solid var(--line); }
.mod:nth-last-child(-n+2) { border-bottom: 0; }
.mod .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.mod a { flex: 1; min-width: 0; }
.mod a b { display: block; font-weight: 500; }
.mod a small { color: var(--dim); font-size: 12.5px; }
.mod a:hover b { text-decoration: underline; text-underline-offset: 3px; }

.logs { list-style: none; }
.logs li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.logs li:last-child { border-bottom: 0; }
.logs .type { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.logs .type.modActions, .logs .type.error { color: var(--danger); }
.logs .type.ticket, .logs .type.verify { color: var(--accent-2); }
.logs .type.memberJoin { color: var(--ok); }
.logs time { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.logs .txt { white-space: pre-line; word-break: break-word; }

/* Discord-Vorschau */
.dc { background: #313338; border-radius: var(--r); padding: 16px; display: flex; gap: 14px; color: #dbdee1; font-size: 14.5px; line-height: 1.375; }
.dc .avatar { width: 40px; height: 40px; }
.dc-name { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.dc-name b { color: #f2f3f5; font-weight: 500; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 3px; line-height: 16px; }
.dc-name time { color: #949ba4; font-size: 12px; }
.dc-text { white-space: pre-wrap; word-break: break-word; }
.dc-embed { margin-top: 6px; max-width: 480px; background: #2b2d31; border-left: 4px solid var(--c, var(--accent)); border-radius: 4px; padding: 10px 14px 12px; }
.dc-embed .t { color: #f2f3f5; font-weight: 600; margin-bottom: 4px; }
.dc-embed .d { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.dc-embed .f { color: #949ba4; font-size: 12px; margin-top: 8px; }
.dc-btn { display: inline-block; margin-top: 8px; padding: 6px 16px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 14px; font-weight: 500; }
.dc-btn.green { background: #248046; }
.mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }

/* Speicherleiste + Toast */
.savebar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 18px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: transform .2s; z-index: 50; }
.savebar.show { transform: translate(-50%, 0); }
.savebar.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translate(calc(-50% - 6px), 0); } 75% { transform: translate(calc(-50% + 6px), 0); } }
.savebar div { display: flex; gap: 6px; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 10px 14px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line-2); font-size: 13.5px; transform: translateY(150%); opacity: 0; transition: .2s; z-index: 60; max-width: 380px; display: flex; gap: 8px; align-items: center; }
.toast.show { transform: none; opacity: 1; }
.toast.err { border-color: rgba(242,85,90,.5); color: #ffb3b5; }
.toast.warn { border-color: rgba(255,178,36,.5); color: #ffd58a; }
.toast a { text-decoration: underline; text-underline-offset: 2px; }

.mobile-nav { display: none; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sb-nav { display: none; }
  .sidebar.open .sb-nav { display: block; }
  .mobile-nav { display: inline-flex; }
  .content { padding: 24px 18px 120px; }
  .field { grid-template-columns: 1fr; gap: 8px; }
  .field.inline { grid-template-columns: 1fr auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mods { grid-template-columns: 1fr; }
  .mod { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .rule-grid { grid-template-columns: 1fr; }
  .logs li { grid-template-columns: 1fr; gap: 2px; }
}

/* ================= Lebendiges Dashboard ================= */
.layout { background: radial-gradient(900px 480px at 75% -10%, rgba(139, 92, 246, .13), transparent 60%), radial-gradient(700px 400px at 100% 60%, rgba(217, 70, 239, .06), transparent 60%); }
/* Breite: Übersicht nutzt den ganzen Platz, Formularseiten bleiben lesbar und mittig */
.content { max-width: 1240px; margin-inline: auto; }
.content:has(.hero-card) { max-width: none; }
@media (min-width: 1600px) { .content { padding-inline: 56px; } .tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.card { border-radius: 14px; }
.sb-logo { padding: 16px 20px 2px; }
.sb-logo .logo { font-size: 15px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes float { to { transform: translate(50px, 30px) scale(1.15); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.content.animate .anim { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* Seitenkopf als farbiges Banner */
.page-head { position: relative; overflow: hidden; align-items: center; padding: 22px 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 32%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 17%, var(--bg-1)), var(--bg-1) 72%); }
.page-head > * { position: relative; }
.page-head > .ph-glow { position: absolute; width: 280px; height: 280px; right: -60px; top: -150px; border-radius: 50%; background: var(--c); filter: blur(80px); opacity: .3; pointer-events: none; }
.ph-main { display: flex; gap: 16px; align-items: center; }
.page-head .ph-ic { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; box-shadow: 0 8px 24px color-mix(in srgb, var(--c) 28%, transparent); }
.page-head .ph-ic svg { width: 22px; height: 22px; }

/* Hero */
.hero-card { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px 30px; border-radius: 20px; margin-bottom: 14px; border: 1px solid rgba(167, 139, 250, .35); background: linear-gradient(125deg, #2b1655 0%, #1b1033 48%, #13101d 100%); box-shadow: 0 20px 60px -30px rgba(139, 92, 246, .6); }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; animation: float 10s ease-in-out infinite alternate; }
.hero-card::before { width: 400px; height: 400px; left: -120px; top: -240px; background: #8b5cf6; filter: blur(90px); opacity: .5; }
.hero-card::after { width: 360px; height: 360px; right: -60px; bottom: -260px; background: #d946ef; filter: blur(90px); opacity: .35; animation-duration: 13s; animation-direction: alternate-reverse; }
.hero-glow { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero-left { display: flex; gap: 20px; align-items: center; position: relative; z-index: 1; min-width: 0; }
.hero-left h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: #fff; }
.hero-left p { color: rgba(255, 255, 255, .68); margin-top: 4px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #bbf7d0; padding: 3px 10px 3px 9px; border-radius: 99px; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .3); margin-bottom: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 1.8s infinite; }
.hero-eyebrow.off { color: #fecaca; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .3); }
.hero-eyebrow.off .pulse { background: #f87171; animation: none; }
.g-icon.xl { width: 76px; height: 76px; border-radius: 22px; font-size: 26px; color: #fff; background: var(--grad); box-shadow: 0 12px 34px rgba(139, 92, 246, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn.glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255, 255, 255, .15); }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 13%, var(--bg-1)), var(--bg-1) 65%); transition: transform .2s, box-shadow .2s, border-color .2s; }
.kpi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 14px 32px -14px color-mix(in srgb, var(--c) 55%, transparent); }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-top small { color: var(--muted); font-size: 13px; }
.kpi-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.kpi-ic svg { width: 16px; height: 16px; }
.kpi-val { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 14px; min-height: 40px; }
.kpi-val b { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi-val .of { font-size: 17px; color: var(--dim); font-weight: 500; }
.kpi-sub { margin-top: 8px; font-size: 12.5px; color: var(--dim); }
.spark { width: 96px; height: 38px; flex-shrink: 0; }
.ring { width: 42px; height: 42px; transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--bg-3); }
.ring-fg { stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .7, .2, 1); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.two-col .card { margin-bottom: 14px; }

/* Diagramm */
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: rgba(251, 191, 36, .1); color: #fcd34d; border: 1px solid rgba(251, 191, 36, .28); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--dim); font-size: 11px; font-family: inherit; }
.chart .hit { fill: transparent; }
.chart .hit.hover { fill: rgba(255, 255, 255, .04); }
.content.animate .chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(250ms + var(--d) * 55ms); }
.chart-tip { position: absolute; top: 0; left: 0; transform: translate(-50%, -100%); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity .12s; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); z-index: 5; min-width: 200px; }
.chart-tip.show { opacity: 1; }
.chart-tip b { display: block; margin-bottom: 6px; font-weight: 600; }
.chart-tip span { display: flex; align-items: center; gap: 8px; color: var(--muted); line-height: 1.75; }
.chart-tip i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.chart-tip em { margin-left: auto; padding-left: 16px; font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th, .dtable td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable th { color: var(--dim); font-weight: 500; }
.dtable td { font-variant-numeric: tabular-nums; }
.dtable tr:last-child td { border-bottom: 0; }

/* Ereignisse als Timeline */
.feed { list-style: none; padding: 6px 0; }
.feed li { display: flex; gap: 12px; padding: 10px 18px; position: relative; }
.feed li:not(:last-child)::after { content: ""; position: absolute; left: 33px; top: 42px; bottom: -8px; width: 1px; background: var(--line-2); }
.feed-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--bg-1)); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); position: relative; z-index: 1; }
.feed-ic svg { width: 14px; height: 14px; }
.feed-body { flex: 1; min-width: 0; }
.feed-top { display: flex; justify-content: space-between; gap: 10px; }
.feed-type { font-size: 12px; font-weight: 500; color: var(--muted); }
.feed time { font-size: 12px; color: var(--dim); white-space: nowrap; }
.feed .txt { font-size: 13.5px; margin-top: 2px; white-space: pre-line; word-break: break-word; }

/* Modul-Kacheln */
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 2px 12px; }
.section-title h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.section-title p { color: var(--dim); font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); transition: transform .2s, border-color .2s, box-shadow .2s; }
.tile::before { content: ""; position: absolute; width: 170px; height: 170px; right: -50px; top: -90px; border-radius: 50%; background: var(--c); filter: blur(60px); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile > * { position: relative; }
.tile.on { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 11%, var(--bg-1)), var(--bg-1) 60%); }
.tile.on::before { opacity: .28; }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--c) 65%, transparent); }
.tile:hover::before { opacity: .45; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.tile-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: background .2s, color .2s; }
.tile.on .tile-ic { color: #140d22; background: var(--c); border-color: transparent; box-shadow: 0 6px 22px color-mix(in srgb, var(--c) 45%, transparent); }
.tile-ic svg { width: 20px; height: 20px; }
.tile b { font-weight: 600; font-size: 15px; }
.tile:not(.on) b { color: var(--muted); }
.tile small { color: var(--dim); font-size: 13px; margin-top: 2px; }
.tile-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--c); align-self: flex-start; }
.tile-link svg { width: 14px; height: 14px; transition: transform .2s; }
.tile:hover .tile-link svg { transform: translateX(3px); }

@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .hero-card { padding: 22px; }
  .hero-left h1 { font-size: 24px; }
  .g-icon.xl { width: 58px; height: 58px; font-size: 20px; }
  .page-head { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .content.animate .anim, .content.animate .chart .bar, .hero-card::before, .hero-card::after, .pulse { animation: none !important; }
}

/* ================= Sidebar mit Farbe ================= */
.sidebar { background: radial-gradient(300px 260px at 0 0, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(260px 300px at 100% 100%, rgba(217, 70, 239, .1), transparent 70%), var(--bg-1); border-right-color: rgba(139, 92, 246, .18); }
.sb-guild { background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(217, 70, 239, .05)), var(--bg); border-color: rgba(167, 139, 250, .25); transition: border-color .2s, box-shadow .2s; }
.sb-guild:hover { border-color: rgba(167, 139, 250, .5); box-shadow: 0 6px 20px -8px rgba(139, 92, 246, .6); }
.sb-guild .g-icon { background: var(--grad); color: #fff; }
.sb-nav h6 { display: flex; align-items: center; gap: 8px; }
.sb-nav h6::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sb-nav a { position: relative; gap: 11px; padding: 6px 8px; margin: 1px 0; border-radius: 9px; transition: background .15s, color .15s; }
.nav-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 20%, transparent); transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.sb-nav .nav-ic svg { width: 15px; height: 15px; opacity: 1; color: inherit; }
.nav-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-nav a:hover { background: color-mix(in srgb, var(--c) 8%, transparent); }
.sb-nav a:hover .nav-ic { transform: scale(1.08) rotate(-4deg); background: color-mix(in srgb, var(--c) 22%, transparent); }
.sb-nav a.on { color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 24%, transparent), color-mix(in srgb, var(--c) 4%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.sb-nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 12px var(--c); }
.sb-nav a.on .nav-ic { color: #140d22; background: var(--c); border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 50%, transparent); }
.nav-on { font-size: 10.5px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 99px; color: #86efac; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .25); }
.sb-foot { background: rgba(0, 0, 0, .15); }

/* ================= Formularseiten mit Modulfarbe ================= */
.content .card { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--pc, #a78bfa) 14%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #a78bfa) 5%, var(--bg-1)), var(--bg-1) 140px); transition: border-color .2s; }
.content .card:hover { border-color: color-mix(in srgb, var(--pc, #a78bfa) 30%, var(--line)); }
.content .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pc, #a78bfa) 70%, transparent), transparent); opacity: .7; }
.card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.card-head h2::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--pc, var(--accent)); box-shadow: 0 0 10px var(--pc, var(--accent)); }
.card-head p { margin-top: 2px; }
.field { transition: background .15s; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.field:hover { background: rgba(255, 255, 255, .015); }
.f-label label { color: var(--text); }
.input:hover { border-color: color-mix(in srgb, var(--pc, #a78bfa) 30%, var(--line-2)); }
.input:focus { border-color: var(--pc, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, #a78bfa) 18%, transparent); }
.content.animate > .card { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.content.animate > .card:nth-of-type(2) { animation-delay: 60ms; }
.content.animate > .card:nth-of-type(3) { animation-delay: 110ms; }
.content.animate > .card:nth-of-type(4) { animation-delay: 160ms; }
.content.animate > .card:nth-of-type(n+5) { animation-delay: 210ms; }

/* Umschalter Embed / Container */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13px; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.seg button:hover { color: var(--text); background: var(--bg-2); }
.seg button small { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: var(--bg-3); color: var(--dim); }
.seg button.on { color: #fff; background: var(--grad); box-shadow: 0 4px 14px rgba(168, 85, 247, .35); }
.seg button.on small { background: rgba(255, 255, 255, .2); color: #fff; }

/* Discord-Vorschau: Bühne, Embed (alt) und Container (neu) */
.dc-stage { background: radial-gradient(500px 200px at 50% 0, color-mix(in srgb, var(--pc, #a78bfa) 10%, transparent), transparent 70%); }
.dc { box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .04); }
.dc-sec { display: flex; gap: 14px; align-items: flex-start; }
.dc-sec-text { flex: 1; min-width: 0; }
.dc-thumb { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-weight: 600; font-size: 20px; color: #fff; background: var(--grad); }
.dc-embed .dc-thumb { width: 72px; height: 72px; }
.dc-cont { margin-top: 6px; max-width: 520px; background: #393a41; border: 1px solid #44454c; border-left: 4px solid var(--c); border-radius: 8px; padding: 14px 16px; }
.dc-cont .h2 { color: #f2f3f5; font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.dc-cont .d { white-space: pre-wrap; word-break: break-word; }
.dc-cont hr { border: 0; height: 1px; background: #4e5058; margin: 12px 0; }
.dc-cont .sub { color: #949ba4; font-size: 12.5px; }
.dc-cont .dc-btn { margin-top: 0; }
.preview-card .card-head { flex-wrap: wrap; }

@media (max-width: 860px) { .field { margin: 0; padding-left: 0; padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .content.animate > .card { animation: none !important; } }

/* Klick-Effekte im Dashboard */
.seg button { position: relative; overflow: hidden; isolation: isolate; }
.seg button:active { transform: scale(.95); }
.switch::after { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), width .15s; }
.switch:active::after { width: 18px; }
.switch.on:active::after { transform: translateX(12px); }
.sb-nav a:active .nav-ic { transform: scale(.9); }
.tile:active { transform: translateY(-1px) scale(.99); }

/* ================= Premium, Sperren, neue Module ================= */
.btn.gold { background: linear-gradient(135deg, #f59e0b, #f97316 55%, #ec4899); color: #1a0f00; font-weight: 600; box-shadow: 0 4px 18px rgba(245, 158, 11, .35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.gold:hover { filter: brightness(1.08); box-shadow: 0 6px 26px rgba(249, 115, 22, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.gold::before { content: ""; position: absolute; inset: 0; z-index: -1; width: 50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-150%) skewX(-20deg); }
.btn.gold:hover::before { animation: btn-shine .75s ease; }

/* Seitenleiste: gesperrte Module grau mit Schloss */
.sb-nav a.locked { color: var(--dim); }
.sb-nav a.locked .nav-ic { filter: grayscale(1); opacity: .55; }
.sb-nav a.locked:hover { color: var(--muted); }
.nav-lock { margin-left: auto; display: grid; place-items: center; color: #fbbf24; opacity: .75; }
.nav-lock svg { width: 13px; height: 13px; }
.sb-nav a.get-prem .nav-l { background: linear-gradient(90deg, #fcd34d, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.sb-nav a.get-prem .nav-ic { color: #fbbf24; animation: crown-bob 2.4s ease-in-out infinite; }
@keyframes crown-bob { 50% { transform: translateY(-2px) rotate(-6deg); } }

/* Kacheln */
.tile.locked { filter: grayscale(.85); opacity: .62; border-style: dashed; }
.tile.locked:hover { filter: grayscale(.2); opacity: 1; border-color: rgba(251, 191, 36, .55); box-shadow: 0 16px 36px -16px rgba(251, 191, 36, .5); }
.tile.locked .tile-link { color: #fbbf24; }
.lock-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; color: #fcd34d; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .3); }
.lock-badge svg { width: 12px; height: 12px; }

/* Hinweis über gesperrten Seiten */
.premium-lock { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, .35);
  background: linear-gradient(120deg, rgba(251, 191, 36, .14), rgba(236, 72, 153, .08) 60%, transparent); }
.premium-lock > div { flex: 1; min-width: 0; }
.premium-lock b { font-size: 15px; }
.premium-lock p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.pl-ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: #1a0f00; background: linear-gradient(135deg, #fcd34d, #f97316); box-shadow: 0 6px 22px rgba(249, 115, 22, .4); }
.pl-ic svg { width: 20px; height: 20px; }
.locked-wrap { opacity: .45; filter: grayscale(.7); pointer-events: none; user-select: none; }
@media (max-width: 700px) { .premium-lock { flex-wrap: wrap; } }

/* Premium-Seite */
.prem-status { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-1); margin-bottom: 18px; }
.prem-status > svg { width: 22px; height: 22px; color: var(--dim); }
.prem-status.on { border-color: rgba(251, 191, 36, .4); background: linear-gradient(120deg, rgba(251, 191, 36, .14), transparent 70%); }
.prem-status.on > svg { color: #fbbf24; }
.prem-status p { color: var(--muted); font-size: 13.5px; }
.prem-trial { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, .45); background: linear-gradient(120deg, rgba(251, 191, 36, .16), rgba(168, 85, 247, .1) 70%); margin-bottom: 18px; }
.prem-trial > svg { width: 26px; height: 26px; color: #fbbf24; flex: none; }
.prem-trial > div { flex: 1; }
.prem-trial b { font-size: 15.5px; }
.prem-trial p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) { .prem-trial { flex-wrap: wrap; } .prem-trial .btn { width: 100%; justify-content: center; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); transition: transform .2s, border-color .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px -20px rgba(139, 92, 246, .6); }
.plan.best { border-color: rgba(251, 191, 36, .5); background: linear-gradient(170deg, rgba(251, 191, 36, .12), var(--bg-1) 55%); box-shadow: 0 18px 50px -24px rgba(249, 115, 22, .6); }
.plan h3 { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.plan-price s { color: var(--dim); font-size: 15px; }
.plan-price small { color: var(--dim); font-size: 13px; }
.plan-save { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; color: #86efac; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .25); }
.plan-save.muted-save { color: var(--muted); background: var(--bg-2); border-color: var(--line-2); }
.plan p { color: var(--dim); font-size: 13px; flex: 1; margin-bottom: 8px; }
.plan .btn { width: 100%; }
.plan-flag { position: absolute; top: -10px; right: 16px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #1a0f00; background: linear-gradient(135deg, #fcd34d, #f97316); box-shadow: 0 4px 14px rgba(249, 115, 22, .45); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.feat { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; }
.feat > span { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.feat > span svg { width: 14px; height: 14px; }
.feat small { margin-left: auto; font-size: 11px; color: #86efac; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Bot-Status */
.pres-seg { flex-wrap: wrap; }
.pdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pres { background: #2b2d31; border-radius: 8px; padding: 12px; max-width: 360px; }
.pres-row { display: flex; align-items: center; gap: 12px; }
.pres-row b { color: #f2f3f5; font-weight: 600; }
.pres-row small { display: block; color: #b5bac1; font-size: 12.5px; margin-top: 1px; }
.pres-av { position: relative; flex-shrink: 0; }
.pres-av .avatar { width: 40px; height: 40px; }
.pres-av i { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #2b2d31; }
.pres-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #3f4147; color: #b5bac1; font-size: 13px; }
.pres-note i { width: 9px; height: 9px; border-radius: 50%; }

/* Discord-Vorschau: Felder, Bild, Reaktionen, Auswahlmenü */
.dc-field { margin-top: 8px; font-size: 14px; }
.dc-field b { display: block; color: #f2f3f5; font-weight: 600; font-size: 13.5px; }
.dc-img { display: block; max-width: 100%; max-height: 220px; border-radius: 4px; margin-top: 10px; object-fit: cover; }
.dc-reacts { display: flex; gap: 4px; margin-top: 6px; }
.dc-reacts span { padding: 2px 8px; border-radius: 8px; background: #2b2d31; border: 1px solid #3f4147; font-size: 13px; }
.dc-select { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; width: 100%; max-width: 400px; padding: 9px 12px; border-radius: 4px; background: #1e1f22; border: 1px solid #1e1f22; color: #949ba4; font-size: 14px; }
.dc-select i { font-style: normal; }
.mention.role { background: rgba(52, 211, 153, .18); color: #6ee7b7; }

/* Listen (Ticket-Kategorien, Sticky-Nachrichten): Felder kompakt nebeneinander */
.list-item { padding: 12px 12px 8px; }
.list-grid { display: grid; grid-template-columns: var(--cols, 1fr); gap: 10px; align-items: start; }
.list-item .field { display: block; margin: 0; padding: 0; border: 0; background: none; }
.list-item .field:hover { background: none; }
.list-item .f-label { margin-bottom: 4px; }
.list-item .f-label label { font-size: 12px; font-weight: 500; color: var(--dim); }
.list-item .f-label small { display: none; }
.list-item textarea.input { min-height: 70px; }
.list-item .rule-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.list-item .mini { color: var(--dim); font-size: 12px; }
@media (max-width: 700px) { .list-grid { grid-template-columns: 1fr; } }

/* Eigener Bot */
.cb-row { display: flex; align-items: center; gap: 14px; }
.cb-row .avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.cb-av { display: grid; place-items: center; background: var(--bg-2, #1c1830); color: #818cf8; }
.cb-av svg { width: 24px; height: 24px; }
.cb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cb-name small { color: var(--dim); font-size: 12px; }
.cb-state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.cb-state i { width: 8px; height: 8px; border-radius: 50%; background: #80848e; }
.cb-state.ok { color: #4ade80; border-color: rgba(74, 222, 128, .35); } .cb-state.ok i { background: #23a55a; }
.cb-state.warn { color: #fbbf24; border-color: rgba(251, 191, 36, .35); } .cb-state.warn i { background: #f0b232; }
.cb-state.err { color: #f87171; border-color: rgba(248, 113, 113, .35); } .cb-state.err i { background: #f23f43; }
.cb-row + .alert, .card-pad > .alert { margin-top: 14px; }
.cb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cb-form { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 10px; align-items: end; }
.cb-form label span { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.cb-form .btn { height: 36px; }
.cb-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cb-steps b { color: var(--text, #fff); }
.cb-steps a { color: #a78bfa; }
@media (max-width: 760px) { .cb-form { grid-template-columns: 1fr; } .cb-row { flex-wrap: wrap; } }
