/* ==========================================================================
   RetroSMP.de Dev Board — Theme
   Farben kommen aus partials/head.ejs (CSS-Variablen, aus config.branding).
   ========================================================================== */

:root {
  --text: #ffffff;
  --text-dim: #cdb9a8;
  --muted: #9c8672;
  --danger: #F87070;
  --success: #F8E858;
  --warning: #F8B848;
  --radius: 10px;

  /* --- Aus dem RetroSMP-Hauptdashboard (Projekt-2-Design-System) übernommene
     Tiefen-/Radius-/Transition-Skala. Die Grundfarben (--accent, --bg, --bg-card,
     --border) sind bereits identisch (siehe config/config.js) -- das hier
     ergänzt die dort vorhandene, feinere Polish-Ebene (Schatten, Radius-Stufen,
     einheitliches Timing), die im Dev-Board bisher fehlte. */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.45), 0 5px 15px rgba(216, 128, 72, 0.10);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* 1:1 aus dem Team-Board übernommen (exakte Werte aus dashboard-v2.css/style.css) */
  --bg-elevated: #150a02;
  --bg-card-2: #241407;
  --border-soft: rgba(216, 128, 72, .20);
  --text-faint: #8a7060;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gradient-brand: linear-gradient(90deg, #F8C848 0%, #F8B848 20%, #F88858 42%, #F88060 62%, #D88048 82%, #A01800 100%);
  --gradient-full: linear-gradient(135deg, #FFF7A3 0%, #F8E858 10%, #F8C848 20%, #F8B848 30%, #F88858 42%, #F88060 52%, #F87868 62%, #F87070 70%, #F8B090 78%, #D88048 87%, #A01800 94%, #501808 100%);
  --gradient-bg: radial-gradient(circle at 15% -10%, rgba(216,128,72,.16) 0%, transparent 45%), radial-gradient(circle at 90% 0%, rgba(248,136,88,.12) 0%, transparent 40%), linear-gradient(180deg, #0a0400 0%, #000000 100%);
  --glow-magenta: 0 0 20px rgba(248, 136, 88, .35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background-color: var(--bg);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); font-size: 0.9rem; }
h1, h2, h3, h4 { margin: 0 0 0.4rem; }

/* ---------------------------------------------------------------------- */
/* Global clean scrollbars everywhere                                     */
/* ---------------------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: rgba(248,136,88,.55) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--gradient-brand); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------------------------------------------------------------------- */
/* App shell (Sidebar + Content)                                          */
/* ---------------------------------------------------------------------- */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(216, 128, 72, .06), 6px 0 30px rgba(0,0,0,.35);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
}
.sidebar, .sidebar-nav-scroll, .main, .main-content, .modal-body, .notif-dropdown, .global-search-results, .lang-select-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(248,136,88,.58) transparent;
}
.sidebar::-webkit-scrollbar, .sidebar-nav-scroll::-webkit-scrollbar, .main::-webkit-scrollbar, .main-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar, .notif-dropdown::-webkit-scrollbar, .global-search-results::-webkit-scrollbar, .lang-select-panel::-webkit-scrollbar {
  width: 5px; height: 5px;
}
.sidebar::-webkit-scrollbar-track, .sidebar-nav-scroll::-webkit-scrollbar-track, .main::-webkit-scrollbar-track, .main-content::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track, .notif-dropdown::-webkit-scrollbar-track, .global-search-results::-webkit-scrollbar-track, .lang-select-panel::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb, .sidebar-nav-scroll::-webkit-scrollbar-thumb, .main::-webkit-scrollbar-thumb, .main-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb, .notif-dropdown::-webkit-scrollbar-thumb, .global-search-results::-webkit-scrollbar-thumb, .lang-select-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(248,200,72,.82), rgba(248,136,88,.78));
  border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
.sidebar::-webkit-scrollbar-thumb:hover, .sidebar-nav-scroll::-webkit-scrollbar-thumb:hover, .notif-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(248,136,88,.9); background-clip: padding-box;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.logo-box, .logo-box-magenta {
  border: 1px solid var(--border-soft); padding: 9px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(160deg, rgba(248,136,88,.08), rgba(216,128,72,.04));
  box-shadow: 0 0 18px rgba(248, 136, 88, .18);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.logo-box img, .logo-box-magenta img { width: 28px; height: 28px; object-fit: contain; display: block; }
.brand .name {
  font-weight: 800; letter-spacing: .5px; font-size: 15px;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .name span { display: block; font-size: 10px; color: var(--text-faint); font-weight: 600; letter-spacing: 2px; -webkit-text-fill-color: var(--text-faint); }

.sidebar-nav-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 22px; margin-right: -10px; padding-right: 6px; }

.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); padding: 8px 12px 2px; font-weight: 700; }
.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 9px 12px; border-radius: 9px; margin: 1px 0;
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: background .15s, color .15s, transform .15s;
}
.nav-link i, .nav-link svg { width: 16px; height: 16px; flex-shrink: 0; transition: color .15s, filter .15s; }
.nav-link:hover { background: rgba(216, 128, 72, .10); color: var(--text); transform: translateX(1px); }
.nav-link.active {
  background: linear-gradient(90deg, rgba(248, 136, 88, .20), rgba(216, 128, 72, .10) 70%, transparent);
  color: #fff;
  font-weight: 700;
}
.nav-link.active::before {
  content: ""; position: absolute; left: -16px; top: 4px; bottom: 4px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--gradient-brand); box-shadow: var(--glow-magenta);
}
.nav-link.active i, .nav-link.active svg { color: var(--accent); filter: drop-shadow(0 0 4px rgba(248, 136, 88, .4)); }

.sidebar-footer-v2 { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); position: relative; }

.notif-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: border-color .15s ease;
}
.notif-bar:hover { border-color: rgba(248, 120, 104, .45); }
.notif-dot {
  position: absolute; top: -4px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px;
  background: var(--danger); color: #fff; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700;
}

.notif-dropdown, .lang-select-panel {
  position: fixed; width: 320px; max-height: 420px; z-index: 200;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .15s, transform .15s;
  display: none; flex-direction: column;
}
.notif-dropdown.open, .lang-select-panel.open { display: flex; pointer-events: auto; }
.notif-dropdown.visible, .lang-select-panel.visible { opacity: 1; transform: translateY(0); }

.notif-dropdown-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-dropdown-head h4 { font-size: 13px; }
.notif-dropdown-head button { background: none; border: none; color: var(--accent-2); font-size: 11.5px; cursor: pointer; font-weight: 600; }
#notifList { overflow-y: auto; }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 10px; color: var(--muted); font-size: 12.5px; }
.notif-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); position: relative; }
.notif-item.unread { background: rgba(248,136,88,.05); }
.notif-icon { width: 26px; height: 26px; border-radius: 8px; background: rgba(248,136,88,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon i { width: 14px; height: 14px; color: var(--accent-2); }
.notif-title { font-size: 12.5px; font-weight: 600; }
.notif-msg { font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.notif-time { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.notif-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: absolute; top: 14px; right: 12px; }

.language-select-bar { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.language-select-bar > label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 12px; font-weight: 600; }
.language-select-bar label i { width: 15px; height: 15px; color: var(--accent-2); margin-right: 0; }
.language-select-bar .lang-select { width: 128px; flex: 0 0 128px; }
.lang-select-trigger {
  width: 100%; display: flex; align-items: center; gap: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  padding: 6px 8px 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.lang-select-trigger:hover, .lang-select-trigger[aria-expanded="true"] { border-color: rgba(248,120,104,.55); background: var(--bg-card); }
.lang-select-flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.lang-select-current { flex: 1; text-align: left; }
.lang-select-trigger .chev { width: 14px; height: 14px; color: var(--text-faint); transition: transform .18s ease; }
.lang-select-panel { padding: 6px; }
.lang-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; background: none; border: none; color: var(--text); cursor: pointer; font-size: 12.5px; }
.lang-option:hover { background: rgba(248,136,88,.08); }
.lang-option .flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.lang-option .check { width: 14px; height: 14px; margin-left: auto; opacity: 0; color: var(--accent-2); }
.lang-option.active .check { opacity: 1; }

.sidebar-user-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-username { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-dim); }
.sidebar-user-logout { color: #F87070; padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.sidebar-user-logout i { width: 16px; height: 16px; }
.sidebar-user-logout:hover { background: rgba(248, 112, 112, .12); }

/* ---------------------------------------------------------------------- */
/* Main content                                                           */
/* ---------------------------------------------------------------------- */
.main { flex: 1; overflow-y: auto; height: 100vh; }
.main-content { padding: 28px 34px; max-width: 1400px; }
.page-head { margin-bottom: 22px; }
.page-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent-2); text-transform: uppercase; }
.page-head h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.page-head h1 i { width: 24px; height: 24px; color: var(--accent-2); }
.page-head p { color: var(--text-dim); font-size: 13.5px; margin-top: 2px; }

/* ---------------------------------------------------------------------- */
/* Cards / stat grid                                                      */
/* ---------------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(248, 136, 88, 0.05) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm); transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition-normal);
}
.stat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .stat-icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(248,136,88,.14); display: flex; align-items: center; justify-content: center; }
.stat-card .stat-icon i { width: 16px; height: 16px; color: var(--accent-2); }
.stat-card .value { font-size: 26px; font-weight: 800; }
.stat-card .label { font-size: 12px; color: var(--text-dim); }

.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.panel:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(248, 136, 88, 0.1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.panel-head h3 i { width: 16px; height: 16px; color: var(--accent-2); }
.panel-head .sub { font-size: 11.5px; color: var(--text-dim); font-weight: 400; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.quick-tile {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.quick-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-tile .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-tile .icon i { width: 18px; height: 18px; color: #1a0d05; }
.quick-tile h4 { font-size: 13.5px; }
.quick-tile p { font-size: 12px; color: var(--text-dim); margin: 2px 0 0; }

.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: none; }
.activity-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.activity-row .title { font-size: 12.5px; font-weight: 600; }
.activity-row .msg { font-size: 12px; color: var(--text-dim); }
.activity-row .time { font-size: 10.5px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ---------------------------------------------------------------------- */
/* Buttons / forms                                                        */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 9px; border: 1px solid transparent;
  background: var(--gradient-brand); color: #1a0d05; font-weight: 700; font-size: 13px; cursor: pointer;
  box-shadow: 0 4px 15px rgba(248, 136, 88, 0.3); transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.btn:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(248, 136, 88, 0.4); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn i { width: 15px; height: 15px; }
.btn.secondary { background: var(--bg-card); border-color: var(--border); color: var(--text); box-shadow: none; }
.btn.secondary:hover:not(:disabled) { border-color: var(--accent); box-shadow: none; transform: none; }
.btn.danger { background: var(--danger); color: #fff; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text-dim); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

input, textarea, select {
  font-family: inherit; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 13px; transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(248, 136, 88, 0.15); }
label { font-size: 12.5px; color: var(--text-dim); display: flex; flex-direction: column; gap: 5px; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; max-width: 420px; text-align: center; }
.centered { display: flex; align-items: center; justify-content: center; height: 100vh; }

/* ---------------------------------------------------------------------- */
/* Boards overview (Planka-style board picker)                            */
/* ---------------------------------------------------------------------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.board-tile {
  border-radius: var(--radius); padding: 18px; min-height: 110px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--border); overflow: hidden;
}
.board-tile::before {
  content: ''; position: absolute; inset: 0; opacity: .16; background: var(--tile-color, var(--accent));
}
.board-tile .board-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--tile-color, var(--accent)); z-index: 1; }
.board-tile .board-icon i { width: 17px; height: 17px; color: #1a0d05; }
.board-tile h4 { z-index: 1; font-size: 14.5px; }
.board-tile .board-meta { z-index: 1; font-size: 11.5px; color: var(--text-dim); }
.board-tile-new {
  border: 1.5px dashed var(--border); border-radius: var(--radius); min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--text-dim); cursor: pointer; font-size: 12.5px; font-weight: 600;
}
.board-tile-new:hover { border-color: var(--accent); color: var(--accent-2); }
.board-tile-new i { width: 22px; height: 22px; }

/* ---------------------------------------------------------------------- */
/* Kanban board (Planka-style drag & drop)                                */
/* ---------------------------------------------------------------------- */
.board-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.board-toolbar .board-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.board-toolbar .board-title .swatch { width: 14px; height: 14px; border-radius: 4px; }
.board-toolbar .spacer { flex: 1; }

.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kanban-column {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; min-width: 270px; max-width: 270px; flex-shrink: 0;
  display: flex; flex-direction: column; max-height: calc(100vh - 220px);
}
.kanban-column.drag-over { border-color: var(--accent); background: rgba(248,136,88,.06); }
.kanban-column-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.kanban-column-head .name { font-size: 12.5px; font-weight: 700; }
.kanban-column-head .count { font-size: 11px; color: var(--text-dim); background: rgba(255,255,255,.05); border-radius: 999px; padding: 1px 8px; }
.kanban-column-head button { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px; }
.kanban-column-head button:hover { color: var(--danger); }
.kanban-cards { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 30px; }
.kanban-add-card { margin-top: 8px; background: none; border: 1px dashed var(--border); color: var(--text-dim); border-radius: 8px; padding: 8px; font-size: 12px; cursor: pointer; }
.kanban-add-card:hover { color: var(--accent-2); border-color: var(--accent); }

.kanban-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 11px; cursor: grab; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .4; }
.kanban-card .card-top { display: flex; align-items: center; gap: 6px; }
.kanban-card .card-type { width: 16px; height: 16px; flex-shrink: 0; }
.kanban-card .card-type.bug { color: var(--danger); }
.kanban-card .card-type.feature { color: var(--success); }
.kanban-card .card-number { color: var(--muted); font-size: 10.5px; }
.kanban-card .card-attachment-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: var(--accent-2);
  background: rgba(248, 184, 72, .12); border: 1px solid rgba(248, 184, 72, .25);
  border-radius: 999px; padding: 1px 7px;
}
.kanban-card .card-attachment-badge i { width: 10px; height: 10px; }
.kanban-card .card-title { font-weight: 600; line-height: 1.3; }
.kanban-card .card-meta { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 10.5px; }
.kanban-card .card-meta i { width: 12px; height: 12px; }
.priority-chip { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.priority-chip.low { background: rgba(34,197,94,.15); color: var(--success); }
.priority-chip.medium { background: rgba(245,158,11,.15); color: var(--warning); }
.priority-chip.high { background: rgba(239,68,68,.15); color: var(--danger); }
.priority-chip.critical { background: rgba(239,68,68,.3); color: #fff; }

.add-column-btn {
  min-width: 220px; flex-shrink: 0; border: 1.5px dashed var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-dim);
  cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 12px; align-self: flex-start;
}
.add-column-btn:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------------------------------------------------------------------- */
/* Modal                                                                  */
/* ---------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,2,0,.6); display: none;
  align-items: center; justify-content: center; z-index: 500; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 22px;
  box-shadow: var(--shadow-xl);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head button { background: none; border: none; color: var(--text-dim); cursor: pointer; }
.modal-body { display: flex; flex-direction: column; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.comment-item { border-top: 1px solid var(--border); padding: 8px 0; font-size: 12.5px; }
.comment-item .meta { color: var(--muted); font-size: 10.5px; margin-top: 2px; }

/* ---------------------------------------------------------------------- */
/* Legacy views (Tickets split-view, Reviews, Polls, Voice, Settings)     */
/* ---------------------------------------------------------------------- */
.split { display: flex; height: calc(100vh - 0px); }
.ticket-list-pane { width: 320px; border-right: 1px solid var(--border); overflow-y: auto; padding: 16px; flex-shrink: 0; }
.ticket-detail-pane { flex: 1; padding: 20px 26px; overflow-y: auto; display: flex; flex-direction: column; }

.ticket-item { padding: 12px; border-radius: 9px; margin-bottom: 8px; background: var(--bg-card); cursor: pointer; border: 1px solid var(--border); font-size: 12.5px; }
.ticket-item:hover { border-color: var(--accent); }
.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.messages { flex: 1; overflow-y: auto; margin-bottom: 14px; }
.message { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; }
.reply-box { display: flex; gap: 8px; }
.reply-box input { flex: 1; }

.review-item, .poll-card, .voice-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.stars i { width: 14px; height: 14px; color: var(--warning); }
.bar-row { margin: 8px 0; }
.bar-bg { background: var(--bg); border-radius: 6px; height: 16px; overflow: hidden; }
.bar-fill { background: var(--gradient-brand); height: 100%; }
.voice-item { display: flex; justify-content: space-between; align-items: center; }

#editor { width: 100%; min-height: 60vh; font-family: 'Consolas', monospace; font-size: 0.85rem; white-space: pre; resize: vertical; }
.toolbar { display: flex; gap: 10px; margin: 14px 0; align-items: center; }
.status { font-size: 12.5px; }
.status.ok { color: var(--success); }
.status.error { color: var(--danger); }

.builder { display: flex; gap: 24px; }
.form-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.form-col textarea { min-height: 100px; resize: vertical; }
.preview-col { flex: 1; }
.discord-embed { background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px; max-width: 480px; }
.discord-embed img { max-width: 100%; border-radius: 4px; margin-top: 8px; }
.discord-embed .title { font-weight: 700; margin-bottom: 6px; color: #f2f3f5; }
.discord-embed .desc { white-space: pre-wrap; font-size: 14px; color: #dbdee1; }
.discord-embed .footer { margin-top: 10px; font-size: 12px; color: #949ba4; }
.template-list button { margin: 3px; }

@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 300; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { padding: 18px; }
}

/* ==========================================================================
   LOGIN-SCREEN -- 1:1 aus dem RetroSMP Team-Board übernommen (gleiches Look &
   Feel wie team.retrosmp.de/login), inkl. Discord-Connecting-Animation.
   ========================================================================== */
.login-wrap {
  min-height: 100vh; min-height: 100dvh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; overflow-y: auto; padding: 24px;
}
.login-card {
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1px solid var(--border-soft); border-radius: 22px;
  padding: 44px 40px; text-align: center; width: 380px; max-width: 100%;
  margin: auto;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 80px rgba(216, 128, 72,.10);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: -60%; left: -20%; width: 140%; height: 140%;
  background: var(--gradient-full); opacity: .07; filter: blur(40px); pointer-events: none;
}
.login-card img.logo { width: 90px; margin-bottom: 14px; position: relative; z-index: 1; }
.login-card h1 { font-size: 22px; margin: 0 0 10px; letter-spacing: 1px; width: 100%; position: relative; z-index: 1; }
.login-card p { color: var(--text-dim); font-size: 13px; line-height: 1.5; margin-bottom: 26px; width: 100%; position: relative; z-index: 1; }
.login-card .login-alert-failed { width: 100%; }

.logo-container-magenta {
  border: 1px solid var(--border-soft);
  padding: 9px;
  border-radius: 14px;
  display: inline-block;
  margin-bottom: 16px;
  background: linear-gradient(160deg, rgba(248,136,88,.08), rgba(216,128,72,.04));
  box-shadow: 0 0 18px rgba(248, 136, 88, .18);
  position: relative; z-index: 1;
}
.logo-container-magenta img {
  width: 64px; height: 64px; object-fit: contain; display: block;
}

.login-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: var(--gradient-brand); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  box-shadow: var(--glow-magenta); position: relative; z-index: 1;
}

.login-alert-failed {
  background: #1c0800; border: 1px solid #4a1608; color: #F87868;
  padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px; text-align: left;
}

.login-subtext { position: relative; z-index: 1; }

.discord-btn {
  background: var(--accent) !important;
  color: #150a02 !important;
  width: 100%; padding: 14px 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--transition-normal); outline: none; position: relative; z-index: 1;
}
.discord-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(248, 136, 88, 0.6), 0 4px 15px rgba(248, 136, 88, 0.3);
  border-color: var(--accent);
}
.discord-icon-svg { width: 20px; height: 20px; fill: currentColor; }

.connecting-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.connecting-content h2 { margin: 4px 0 6px; font-size: 19px; }
.connecting-content p { color: var(--text-dim); font-size: 13.5px; margin: 0; }

.discord-spinner-container {
  position: relative; width: 90px; height: 90px; margin: 0 auto 10px auto;
  display: flex; align-items: center; justify-content: center;
}
.spinner-ring-outer {
  position: absolute; width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent);
  animation: spinRing 1.4s linear infinite;
}
.spinner-ring-inner {
  position: absolute; width: 66px; height: 66px; border-radius: 50%;
  border: 2px solid transparent; border-bottom-color: var(--accent-2); border-left-color: var(--accent-2);
  animation: spinRingReverse 1.8s linear infinite;
}
.discord-center-icon { z-index: 2; display: flex; align-items: center; justify-content: center; }
@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes spinRingReverse { to { transform: rotate(-360deg); } }

.dots-pulse { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.dots-pulse span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dotPulse 1.4s infinite ease-in-out; }
.dots-pulse span:nth-child(1) { animation-delay: 0s; }
.dots-pulse span:nth-child(2) { animation-delay: 0.2s; }
.dots-pulse span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 6px var(--accent)); }
}

.loading-bar-container { position: fixed; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.loading-bar-progress {
  width: 70%; height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #D88048 100%);
  box-shadow: 0 0 10px var(--accent);
  animation: barProgress 1.6s infinite ease-in-out;
}
@keyframes barProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(150%); }
}

/* ==========================================================================
   TOPBAR + STAT-BOXES + INSIGHTS-GRID -- 1:1 aus dem Team-Board übernommen.
   ========================================================================== */
.topbar-v2 { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 14px; flex-wrap: wrap; }
.dashboard-badge-top { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 4px; }
.dashboard-title { font-size: 28px; font-weight: 800; margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.btn-dark-archive {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-dark-archive:hover { background: var(--bg-elevated); border-color: var(--text-dim); }
.btn-dark-archive i { width: 15px; height: 15px; }

.stat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) { .stat-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .stat-grid-4 { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm); transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-box:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.stat-content { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 6px; color: var(--text); }
.stat-num.stat-blue { color: var(--accent-2); }
.stat-num.stat-orange { color: var(--accent); }
.stat-num.stat-green { color: #8fd858; }
.stat-title { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--text-dim); }
.trend-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; color: var(--text-dim); width: fit-content; }
.trend-badge i { width: 12px; height: 12px; }
.trend-up { color: #8fd858; }
.trend-down { color: #ef7a6a; }
.trend-flat, .trend-none { color: var(--text-faint); font-weight: 600; }
.stat-icon-wrap {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-dim); flex-shrink: 0;
}
.stat-icon-wrap i { width: 20px; height: 20px; }
.stat-icon-wrap.icon-users { color: var(--accent); border-color: rgba(216, 128, 72, .3); }
.stat-icon-wrap.icon-shield { color: var(--accent-2); border-color: rgba(248, 184, 72, .3); }
.stat-icon-wrap.icon-crown { color: #8fd858; border-color: rgba(143, 216, 88, .3); }
.stat-icon-wrap.icon-star { color: #ef7a6a; border-color: rgba(239, 122, 106, .3); }

.overview-insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 900px) { .overview-insights-grid { grid-template-columns: 1fr; gap: 14px; } }
.bottom-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; min-height: 140px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bottom-card:hover { border-color: rgba(248, 136, 88, .34); box-shadow: 0 0 16px rgba(248, 136, 88, .08); }
.bottom-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.bottom-card-header i { width: 18px; height: 18px; }
.bottom-card-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.overview-card-hint { display: block; margin-top: 1px; color: var(--text-faint); font-size: 10.5px; font-weight: 500; }

.team-change-list { display: flex; flex-direction: column; }
.team-change-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border);
  transition: opacity .16s ease, transform .16s ease; color: var(--text);
}
.team-change-item:last-child { border-bottom: none; }
.team-change-item.is-clickable:hover { opacity: .94; transform: translateX(1px); }
.team-change-avatar {
  width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%;
  background-color: var(--bg-elevated); background-position: center; background-size: cover; border: 1px solid var(--border); overflow: hidden;
}
.team-change-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-change-avatar i { width: 15px; height: 15px; }
.team-change-avatar.is-join { color: #8fd858; }
.team-change-avatar.is-leave { color: #ef7a6a; }
.team-change-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.team-change-body strong { font-size: 12px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-change-body span { font-size: 11px; color: var(--text-dim); }
.team-change-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.team-change-meta time { font-size: 10.5px; color: var(--text-faint); }
.team-change-open { color: var(--accent) !important; font-size: 9px !important; font-weight: 700; }
.empty-state-v2 { text-align: center; color: var(--text-faint); font-size: 13px; padding: 20px 0; }
.empty-state-v2.compact-empty { padding: 18px 0 8px; }
.empty-state-v2 .check-icon { width: 26px; height: 26px; margin-bottom: 8px; opacity: .6; }

/* ==========================================================================
   GLOBALE SUCHE (Ctrl+K) -- 1:1 aus dem Team-Board übernommen.
   ========================================================================== */
.global-search-shell.in-topbar { position: relative; top: auto; right: auto; width: 330px; flex: 0 1 330px; }
.global-search-shell.in-topbar .global-search-results { position: absolute; top: 46px; left: 0; right: 0; z-index: 50; }
@media (max-width: 900px) { .global-search-shell.in-topbar { order: -1; width: 100%; flex-basis: 100%; } }
.global-search-box {
  height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: rgba(28, 15, 5, .94); border: 1px solid var(--border-soft); border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28); backdrop-filter: blur(14px);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.global-search-box:focus-within { border-color: rgba(248,136,88,.58); box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 24px rgba(248,136,88,.10); }
.global-search-box input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 12.5px var(--font); }
.global-search-box input::placeholder { color: var(--text-faint); }
.global-search-icon { width: 17px; height: 17px; color: var(--accent-2); flex: 0 0 auto; }
.global-search-box kbd {
  flex: 0 0 auto; border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px;
  color: var(--text-faint); background: rgba(255,255,255,.025); font: 600 10px/1.2 var(--font);
}
.global-search-results {
  margin-top: 8px; padding: 8px; max-height: min(500px, calc(100vh - 82px)); overflow-y: auto;
  background: rgba(20, 10, 3, .98); border: 1px solid var(--border-soft); border-radius: 13px;
  box-shadow: 0 24px 55px rgba(0,0,0,.48); backdrop-filter: blur(18px); animation: globalSearchIn .16s ease both;
}
.global-search-section { padding: 7px 9px 5px; color: var(--text-faint); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.global-search-result { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 9px; color: var(--text); transition: background .14s ease, transform .14s ease; }
.global-search-result:hover { background: rgba(248,136,88,.08); transform: translateX(2px); }
.global-search-result-icon {
  width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px;
  color: var(--accent-2); background: var(--bg-elevated); border: 1px solid var(--border);
}
.global-search-result-icon i { width: 15px; height: 15px; }
.global-search-result-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.global-search-result-copy strong { font-size: 12px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search-result-copy small { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search-arrow { width: 14px; height: 14px; color: var(--text-faint); flex: 0 0 auto; }
.global-search-empty, .global-search-loading { min-height: 74px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--text-faint); font-size: 12px; }
.global-search-empty i { width: 17px; height: 17px; color: var(--accent); }
.global-search-loading span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: searchPulse .9s ease-in-out infinite; }
.global-search-loading span:nth-child(2) { animation-delay: .12s; }
.global-search-loading span:nth-child(3) { animation-delay: .24s; }
@keyframes globalSearchIn { from { opacity: 0; transform: translateY(-5px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes searchPulse { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* ==========================================================================
   INAKTIVITÄTS-OVERLAY ("Bist du noch da?")
   ========================================================================== */
.idle-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(10, 4, 0, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: idleFadeIn .25s ease both;
}
@keyframes idleFadeIn { from { opacity: 0; } to { opacity: 1; } }
.idle-card {
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 38px 36px; text-align: center; width: 360px; max-width: calc(100vw - 40px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 60px rgba(216, 128, 72, .12);
  cursor: default;
}
.idle-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(248,136,88,.16), rgba(216,128,72,.06));
  border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(248, 136, 88, .18);
}
.idle-icon i { width: 26px; height: 26px; color: var(--accent); }
.idle-card h2 { font-size: 19px; margin: 0 0 10px; }
.idle-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; margin: 0 0 22px; }
.idle-card p span { color: var(--accent); font-weight: 700; }
.idle-card .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   SCHNELLZUGRIFF -- flache Icon-über-Label-Leiste statt Karten mit Icon-Box
   ========================================================================== */
.quickaccess-row { display: flex; flex-wrap: wrap; }
.quickaccess-item {
  flex: 1 1 140px; min-width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 18px 12px; color: var(--text);
  border-right: 1px solid var(--border);
  transition: background .15s ease;
}
.quickaccess-row .quickaccess-item:last-child { border-right: none; }
.quickaccess-item:hover { background: rgba(248, 136, 88, .06); }
.quickaccess-item i { width: 22px; height: 22px; color: var(--accent); margin-bottom: 2px; }
.quickaccess-item strong { font-size: 13px; font-weight: 700; }
.quickaccess-meta { font-size: 10.5px; color: var(--text-faint); }
@media (max-width: 900px) {
  .quickaccess-item { border-right: none; border-bottom: 1px solid var(--border); }
  .quickaccess-row .quickaccess-item:last-child { border-bottom: none; }
}

/* ==========================================================================
   KANBAN LABELS (Planka/Trello-Stil)
   ========================================================================== */
.card-labels { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.card-label-chip { width: 24px; height: 5px; border-radius: 3px; display: inline-block; }
.label-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-dim); font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.label-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.label-chip:hover { border-color: var(--chip-color, var(--accent)); }
.label-chip.active { background: color-mix(in srgb, var(--chip-color, var(--accent)) 18%, var(--bg-card)); border-color: var(--chip-color, var(--accent)); color: var(--text); }
