/* Ergänzungen für das Bot-Panel (Basis: app.css) */

.avatar { border-radius: 50%; flex: none; background: var(--surface-3); object-fit: cover; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); vertical-align: middle; }
.user .avatar { width: 26px; height: 26px; }
.badge.st-ok { background: rgba(52, 211, 153, .12); color: var(--ok); }
.badge.st-warn { background: rgba(245, 158, 66, .13); color: var(--warn); }
.badge.st-blue { background: rgba(90, 169, 255, .13); color: #8ec4ff; }
.badge.st-muted { background: var(--surface-3); color: var(--muted); }
label > span .badge { margin-left: 8px; }
.ellipsis { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-muted td { opacity: .55; }
.link-btn { background: none; border: 0; color: var(--accent-2); cursor: pointer; font: 600 12px var(--font); padding: 0; margin-top: 2px; text-align: left; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Bot-Karte */
.bot-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.bot-avatar { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface-3); }
.bot-avatar.placeholder { display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.bot-id { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bot-id h2 { font-size: 18px; }
.bot-id p { margin: 0; }
.bot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--surface-3); color: var(--text-2); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.good { color: var(--ok); background: rgba(52, 211, 153, .1); }
.status-pill.good i { background: var(--ok); animation: pulse 2s infinite; }
.status-pill.mid { color: var(--warn); background: rgba(245, 158, 66, .1); }
.status-pill.mid i { background: var(--warn); }
.status-pill.bad { color: #ff8b90; background: rgba(242, 84, 91, .1); }
.status-pill.bad i { background: var(--high); }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.notice.good { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); color: #8ef0c4; }
.notice span { min-width: 0; }
.check-list { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.check-list .notice { width: 100%; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rank li:last-child { border-bottom: 0; }
.console.mini { min-height: 0; max-height: 300px; flex: none; }
.cl-err .cl-text, .cl-err .cl-type { color: #ff8b90; }
.cl-type { width: 120px; }

/* Segmentierte Filter */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { background: none; border: 0; color: var(--text-2); font: 600 12.5px var(--font); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--accent-soft); color: #fff; }

/* Ticket-Details */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.detail-head h3 { color: var(--text); font-size: 17px; margin: 0; }
.ticket-detail .kv { margin-bottom: 14px; }
.ticket-detail > h3 { margin-top: 18px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.timeline li { grid-template-columns: 140px 1fr; }
.picker { display: flex; flex-direction: column; gap: 8px; }
.picker-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 4px; background: var(--bg-2); }
.picker-item { display: flex; align-items: center; background: none; border: 0; border-radius: 7px; padding: 7px 10px; cursor: pointer; text-align: left; color: var(--text); }
.picker-item:hover { background: var(--surface-2); }
.picker-item.active { background: var(--accent-soft); }
.picker-chosen { font-size: 13px; }

/* Konfiguration */
.config-list { display: flex; flex-direction: column; gap: 18px; }
.config-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.config-row:last-child { border-bottom: 0; }
.config-label { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.config-label .badge { margin-left: 0; }
.config-control { display: flex; flex-direction: column; gap: 8px; }
.multi { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.guide { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.guide strong { color: var(--text); }
ul.guide { list-style: disc; }
.copy-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 4px 4px 10px; }
.copy-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: none; padding: 0; color: var(--text); }
.copy-row .muted { font-size: 12px; }
.form .hint { margin-top: 4px; display: block; }

/* Texte & Vorschau */
.texts-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.texts-form { display: flex; flex-direction: column; gap: 18px; }
.preview-col .sticky { position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; }
.setting-long { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-long .setting-input { width: 100%; }
.setting-long textarea { width: 100%; }
.setting-long.changed, .setting.changed { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; margin-left: -12px; }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-pick { width: 42px; height: 38px; padding: 3px; cursor: pointer; }
.color-text { width: 110px; }
.previews { display: flex; flex-direction: column; gap: 6px; }
.previews h3 { margin: 12px 0 4px; }
.previews h3:first-child { margin-top: 0; }

/* Discord-Nachricht (Vorschau) */
.dc-msg { display: flex; gap: 12px; background: #313338; border-radius: 8px; padding: 12px 14px; font-family: "gg sans", "Noto Sans", "Segoe UI", sans-serif; }
.dc-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #b57bff, #6d3bd8); }
.dc-content { min-width: 0; flex: 1; }
.dc-name { font-weight: 600; color: #f2f3f5; font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; font-weight: 700; }
.dc-embed { display: flex; gap: 12px; background: #2b2d31; border-left: 4px solid #9d63ff; border-radius: 4px; padding: 10px 14px 12px 12px; max-width: 460px; }
.dc-embed-body { min-width: 0; flex: 1; }
.dc-title { color: #f2f3f5; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.dc-text { color: #dbdee1; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.dc-text strong { color: #f2f3f5; }
.dc-footer { color: #b5bac1; font-size: 11.5px; margin-top: 8px; }
.dc-thumb { width: 64px; height: 64px; border-radius: 6px; flex: none; background: #4e5058; }
.dc-buttons { margin-top: 8px; }
.dc-btn { display: inline-block; padding: 6px 14px; border-radius: 4px; font-size: 13.5px; font-weight: 500; color: #fff; }
.dc-primary { background: #5865f2; }
.dc-success { background: #248046; }

/* Login */
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; height: 42px; font-size: 14px; }
.btn.discord:hover { background: #4752c4; }

@media (max-width: 1200px) {
  .texts-layout { grid-template-columns: 1fr; }
  .preview-col .sticky { position: static; max-height: none; }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; }
  .cl-type { width: auto; }
}
.form label > span.hint { font-weight: 400; color: var(--muted); font-size: 12px; margin: 6px 0 0; }
