@import "tailwindcss";

/* ──────────────────────────────────────────────────────────────────────────
   Avaria Team OS — Designsystem
   Dunkles Glassmorphism, weiche Glows, Verlauf Blau → Violett → Pink.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #050817;
  --bg2: #080c20;
  --bg3: #0b1028;
  --panel: rgba(13, 19, 42, 0.72);
  --panel2: rgba(22, 30, 58, 0.78);
  --text: #eef5ff;
  --muted: #aab7d4;
  --blue: #9ed7ff;
  --pink: #ff9fd7;
  --violet: #c8bcff;
  --cyan: #38bdf8;
  --line: rgba(190, 203, 255, 0.16);
  --line-strong: rgba(190, 203, 255, 0.28);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.3);
  --glass-fill: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.045)
  );
  --grad-brand: linear-gradient(135deg, #9ed7ff, #c8bcff, #ff9fd7);
}

/* Tailwind-Token-Registrierung (nutzbar als bg-panel, text-muted, …) */
@theme inline {
  --color-bg: var(--bg);
  --color-bg2: var(--bg2);
  --color-panel: var(--panel);
  --color-panel2: var(--panel2);
  --color-text: var(--text);
  --color-muted: var(--muted);
  --color-blue: var(--blue);
  --color-pink: var(--pink);
  --color-violet: var(--violet);
  --color-cyan: var(--cyan);
  --color-line: var(--line);

  --font-sans: var(--font-inter), "Segoe UI", system-ui, Arial, sans-serif;
  --font-display: var(--font-sora), var(--font-inter), system-ui, sans-serif;

  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 8% -10%, rgba(158, 215, 255, 0.24), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(255, 159, 215, 0.2), transparent 30%),
    radial-gradient(circle at 48% 105%, rgba(200, 188, 255, 0.16), transparent 38%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dezentes Grid, das nach unten ausblendet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(190, 203, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 203, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

::selection {
  background: rgba(158, 215, 255, 0.28);
  color: #fff;
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 203, 255, 0.25) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(190, 203, 255, 0.2);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* ── Typografie ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(1.9rem, 1rem + 2.4vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 0.9rem + 1.4vw, 2rem); }
h3 { font-size: 1.15rem; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px 2px rgba(158, 215, 255, 0.7);
}

.text-muted { color: var(--muted); }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Layout-Container ────────────────────────────────────────────────────── */
.container-app {
  width: min(1480px, calc(100% - 32px));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container-app { width: calc(100% - 20px); }
}
.container-narrow {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* ── Glass-Card ──────────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-fill), var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.card {
  position: relative;
  background: var(--glass-fill), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.2vw, 28px);
}
.card-sm { border-radius: var(--radius-sm); padding: 18px; }
.card-hover {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --glow: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 42, 0.5);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 203, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(158, 215, 255, 0.08);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  border: none;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 8px 26px rgba(158, 215, 255, 0.22),
    0 4px 14px rgba(255, 159, 215, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(158, 215, 255, 0.32),
    0 6px 20px rgba(255, 159, 215, 0.26);
}
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-danger {
  border: 1px solid rgba(255, 122, 156, 0.5);
  color: #ffd9e2;
  background: linear-gradient(135deg, rgba(255, 122, 156, 0.22), rgba(255, 122, 156, 0.1));
}
.btn-danger:hover {
  border-color: rgba(255, 122, 156, 0.8);
  background: linear-gradient(135deg, rgba(255, 122, 156, 0.32), rgba(255, 122, 156, 0.16));
}

/* ── Pills / Filter / Badges ─────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.18s ease;
  cursor: pointer;
}
.pill:hover { border-color: var(--line-strong); color: var(--text); }
.pill.is-active,
.pill[data-active="true"] {
  color: var(--text);
  border-color: rgba(190, 203, 255, 0.34);
  background: linear-gradient(
    135deg,
    rgba(158, 215, 255, 0.16),
    rgba(255, 159, 215, 0.11)
  );
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ── Formulare ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}
.input::placeholder,
.textarea::placeholder { color: rgba(170, 183, 212, 0.55); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(158, 215, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(158, 215, 255, 0.1);
  background: rgba(7, 11, 28, 0.8);
}
.textarea { min-height: 96px; resize: vertical; }
.field-error { color: var(--pink); font-size: 0.76rem; font-weight: 700; }

/* ── Tabellen ────────────────────────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.data thead th {
  text-align: left;
  padding: 13px 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
table.data tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(190, 203, 255, 0.08);
}
table.data tbody tr { transition: background 0.15s ease; }
table.data tbody tr:hover { background: rgba(158, 215, 255, 0.05); }
table.data tbody tr:last-child td { border-bottom: none; }

/* ── Stat-Karten ─────────────────────────────────────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.stat-card .stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(1.8rem, 1rem + 1.6vw, 2.4rem);
  line-height: 1.1;
}
.stat-card .stat-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -36px;
  top: -36px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

/* Markenverlauf-Fläche (Logo-Kreis etc.) */
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  border-radius: 30%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 6px 22px rgba(158, 215, 255, 0.3);
}

/* ── Kanban ──────────────────────────────────────────────────────────────── */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
  align-items: start;
}
.kanban-col {
  display: flex;
  flex-direction: column;
  max-height: 72dvh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(13, 19, 42, 0.5);
}
.kanban-addcol {
  display: grid;
  place-items: center;
  min-height: 130px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(13, 19, 42, 0.3);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.kanban-addcol:hover {
  color: var(--text);
  border-color: rgba(190, 203, 255, 0.5);
  background: rgba(158, 215, 255, 0.05);
}
.assignee-stack {
  display: flex;
}
.assignee-stack > * {
  margin-left: -8px;
  border: 2px solid var(--bg2);
  border-radius: 999px;
}
.assignee-stack > *:first-child {
  margin-left: 0;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.kanban-col-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.kanban-col-body {
  flex: 1;
  min-height: 60px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.16s ease;
}
.kanban-col-body.is-over {
  background: rgba(158, 215, 255, 0.07);
}
.task-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2);
  padding: 12px;
  cursor: grab;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.task-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
.task-card.is-dragging {
  opacity: 0.5;
}
.task-prio {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 5, 16, 0.55);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(22, 30, 58, 0.92), rgba(11, 16, 40, 0.96));
  backdrop-filter: blur(22px);
  padding: clamp(18px, 3vw, 28px);
}

/* ── Animationen ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.8; }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.float { animation: floaty 7s ease-in-out infinite; }

/* Scroll-Reveal: Startzustand; sichtbar via [data-reveal] + IntersectionObserver */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Chat ────────────────────────────────────────────────────────────────── */
.chat-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  height: clamp(480px, 74dvh, 840px);
}
.chat-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.channel-item:hover {
  background: rgba(158, 215, 255, 0.06);
  border-color: var(--line);
}
.channel-item[data-active="true"] {
  background: linear-gradient(
    135deg,
    rgba(158, 215, 255, 0.16),
    rgba(255, 159, 215, 0.11)
  );
  border-color: rgba(190, 203, 255, 0.34);
}
.channel-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  flex-shrink: 0;
  background: rgba(13, 19, 42, 0.6);
  border: 1px solid var(--line);
  color: var(--blue);
}
.msg-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px clamp(8px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: min(72ch, 88%);
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.55);
  width: fit-content;
}
.bubble.is-me {
  margin-left: auto;
  color: #0a0e22;
  border: none;
  background: linear-gradient(135deg, #9ed7ff, #c8bcff, #ff9fd7);
}
.bubble.is-me .bubble-meta {
  color: rgba(10, 14, 34, 0.65);
}
.bubble-meta {
  font-size: 11px;
  color: var(--muted);
}
.mention {
  color: var(--blue);
  font-weight: 800;
}
.bubble.is-me .mention {
  color: #0a2a4a;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #0a0e22;
  border: 2px solid var(--bg2);
  cursor: pointer;
}

/* Nachrichten-Gruppierung */
.msg-group {
  display: flex;
  gap: 10px;
  max-width: min(78ch, 92%);
}
.msg-group.is-me {
  margin-left: auto;
  flex-direction: row-reverse;
}
.msg-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.msg-group.is-me .msg-stack {
  align-items: flex-end;
}
.msg-author {
  font-size: 12px;
  font-weight: 800;
  color: var(--violet);
  padding-left: 4px;
}
.bubble {
  position: relative;
  padding: 9px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(20, 27, 52, 0.7);
  width: fit-content;
  max-width: 100%;
}
.bubble.is-me {
  color: #0a0e22;
  border: none;
  background: linear-gradient(135deg, #b9e2ff, #cdc4ff, #ffc2e6);
}
.bubble-time {
  font-size: 10.5px;
  color: var(--muted);
  padding: 0 4px;
}
.is-me .bubble-time {
  text-align: right;
}
.mention {
  color: var(--blue);
  font-weight: 800;
}
.bubble.is-me .mention {
  color: #1a3a5a;
}

/* Datumstrenner */
.day-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.day-divider::before,
.day-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Anhänge */
.att-image {
  display: block;
  max-width: min(320px, 70vw);
  max-height: 280px;
  border-radius: 12px;
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.att-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.45);
  text-decoration: none;
  color: inherit;
  max-width: 280px;
}
.att-audio {
  height: 38px;
}
.att-audio::-webkit-media-controls-panel {
  background: rgba(7, 11, 28, 0.5);
}

/* Composer */
.composer {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}
.composer-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 11, 28, 0.55);
  padding: 6px 6px 6px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.composer-box:focus-within {
  border-color: rgba(158, 215, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(158, 215, 255, 0.08);
}
.composer-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  outline: none;
  max-height: 140px;
  padding: 7px 0;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: rgba(158, 215, 255, 0.08);
  color: var(--text);
}
.icon-btn.is-recording {
  color: var(--pink);
  background: rgba(255, 159, 215, 0.12);
}
.send-fab {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: none;
  flex-shrink: 0;
  background: var(--grad-brand);
  color: #0a0e22;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.send-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(158, 215, 255, 0.28);
}
.send-fab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Anhang-Vorschau über dem Composer */
.att-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 11, 28, 0.5);
  font-size: 0.82rem;
}

/* @-Mention-Popup */
.mention-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px;
  width: 260px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 40;
}
.mention-pop .channel-item {
  border-radius: 12px;
}

/* Solide Popover-Fläche (Container-Fix für @-Vorschläge & Benachrichtigungen) */
.pop-solid {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    #0c1330 !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: var(--shadow) !important;
}

/* Volle Breite (Chatfenster & -leiste) */
.msg-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.composer-inner {
  width: 100%;
}

/* Inhaltsbereich einer Nachricht (Bubble + Anhänge + Reaktionen) */
.msg-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
}
.is-me .msg-content {
  align-items: flex-end;
  margin-left: auto;
}

/* Hover-Aktionsleiste — erscheint NUR über dem Nachrichten-Inhalt */
.msg-group {
  position: relative;
}
.msg-actions {
  position: absolute;
  top: -15px;
  display: flex;
  gap: 1px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0c1330;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
  z-index: 6;
}
.msg-content:hover .msg-actions {
  opacity: 1;
  pointer-events: auto;
}
.msg-group.is-me .msg-actions {
  right: 0;
}
.msg-group:not(.is-me) .msg-actions {
  left: 0;
}
.msg-action {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.msg-action:hover {
  background: rgba(158, 215, 255, 0.12);
  color: var(--text);
}

/* Reaktions-Chips */
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.is-me .reaction-row {
  justify-content: flex-end;
}
.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.55);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.reaction-chip[data-mine="true"] {
  border-color: rgba(158, 215, 255, 0.5);
  background: rgba(158, 215, 255, 0.16);
}

/* Antwort-Bezug — deutlich hervorgehoben */
.reply-quote {
  display: block;
  border-left: 3px solid var(--blue);
  padding: 5px 11px;
  margin-bottom: 5px;
  font-size: 12.5px;
  color: var(--text);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(158, 215, 255, 0.16), rgba(158, 215, 255, 0.04));
  cursor: pointer;
  max-width: 380px;
  transition: background 0.16s ease;
}
.reply-quote:hover {
  background: linear-gradient(90deg, rgba(158, 215, 255, 0.24), rgba(158, 215, 255, 0.08));
}
.reply-quote b {
  color: var(--blue);
}
.is-me .reply-quote {
  align-self: flex-end;
}
.reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(158, 215, 255, 0.06);
  font-size: 0.82rem;
}
.deleted-msg {
  font-style: italic;
  color: var(--muted);
}
.pin-flag {
  position: absolute;
  top: -8px;
  font-size: 10px;
  color: var(--violet);
}
.is-me .pin-flag {
  right: 4px;
}
/* (Sprung-Highlight wird weiter unten über .msg-jump-target .msg-stack gesetzt) */

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 16, 0.82);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .chat-shell {
    grid-template-columns: 1fr;
    height: clamp(460px, 78dvh, 900px);
  }
  .chat-hide-mobile {
    display: none;
  }
}

/* ── Custom-Dialoge (confirm/prompt/alert) ───────────────────────────────── */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 16, 0.62);
  backdrop-filter: blur(6px);
}
.dialog-card {
  width: min(440px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #0c1330;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 22px;
}
.dialog-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  color: #0a0e22;
  background: var(--grad-brand);
}
.dialog-icon.is-danger {
  color: #ffd9e2;
  background: linear-gradient(135deg, rgba(255, 122, 156, 0.3), rgba(255, 122, 156, 0.14));
}

/* ── Popover-Backdrops (Board-/Spalten-/Emoji-Popouts) ───────────────────── */
.pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.board-settings,
.col-color-pop {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 50;
  width: max-content;
  max-width: 280px;
}
.board-settings { right: 0; padding: 14px; }
.col-color-pop { left: 0; padding: 10px; }
.icon-pick {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.14s ease;
}
.icon-pick:hover { color: var(--text); border-color: var(--line-strong); }
.icon-pick[data-active="true"] {
  color: #0a0e22;
  background: var(--grad-brand);
  border-color: transparent;
}
.kanban-col-dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Farbfelder ──────────────────────────────────────────────────────────── */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.swatch {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  color: rgba(10, 14, 34, 0.85);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.swatch:hover { transform: translateY(-1px); }
.swatch[data-active="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(158, 215, 255, 0.5);
}
.swatch-none {
  background: rgba(13, 19, 42, 0.6);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

/* ── Emoji-Auswahl im Chat-Editor ────────────────────────────────────────── */
.emoji-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.emoji-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 8px;
  z-index: 50;
  width: min(320px, 82vw);
  max-height: 240px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 10px;
}
.emoji-cell {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.emoji-cell:hover {
  background: rgba(158, 215, 255, 0.14);
  transform: scale(1.15);
}

/* ── Nachrichten-Erwähnungen deutlich hervorheben ────────────────────────── */
.mention {
  display: inline;
  color: var(--blue);
  font-weight: 800;
  padding: 0 3px;
  border-radius: 5px;
  background: rgba(158, 215, 255, 0.16);
}
.bubble.is-me .mention {
  color: #0a2a4a;
  background: rgba(10, 42, 74, 0.16);
}

/* ── Fixiert-Kennzeichnung (statt schwebendem Text) ──────────────────────── */
.pin-flag {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 2px 8px;
  margin-bottom: 2px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--violet);
  background: rgba(200, 188, 255, 0.14);
  border: 1px solid rgba(200, 188, 255, 0.28);
}
.is-me .pin-flag { align-self: flex-end; right: auto; }

/* ── Sprung-Highlight: cleaner, weicher Glow nur um die Nachricht ─────────── */
.msg-jump-target .msg-stack {
  border-radius: 16px;
  animation: jumpSoft 2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes jumpSoft {
  0% {
    background: rgba(158, 215, 255, 0.16);
    box-shadow: 0 0 0 5px rgba(158, 215, 255, 0.16);
  }
  65% {
    background: rgba(158, 215, 255, 0.08);
    box-shadow: 0 0 0 5px rgba(158, 215, 255, 0.05);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 5px transparent;
  }
}

/* ── Dashboard-Schnellzugriff ────────────────────────────────────────────── */
.qa-grid {
  display: grid;
  /* Kacheln passen sich der Anzahl an: bei wenigen Modulen keine Über-Streckung */
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
/* Wenige Module → begrenzte Kachelbreite, linksbündig statt gedehnt */
.qa-grid[data-count="1"] { grid-template-columns: minmax(210px, 340px); }
.qa-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(210px, 320px)); }
.qa-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
@media (max-width: 640px) {
  .qa-grid,
  .qa-grid[data-count="1"],
  .qa-grid[data-count="2"],
  .qa-grid[data-count="3"] {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
.qa-tile {
  --accent: #9ed7ff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), rgba(13, 19, 42, 0.4));
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.qa-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 18%, transparent);
}
.qa-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  color: #0a0e22;
  background: var(--accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent);
}
.qa-go {
  color: var(--muted);
  transition: transform 0.16s ease, color 0.16s ease;
}
.qa-tile:hover .qa-go {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── Adminbereich ────────────────────────────────────────────────────────── */
.team-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.perm-group {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(13, 19, 42, 0.35);
}
.perm-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.perm-group-head:hover { background: rgba(158, 215, 255, 0.05); }
.perm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 9px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.perm-item:hover { background: rgba(158, 215, 255, 0.06); color: var(--text); }
.perm-item[data-active="true"] { color: var(--text); }
.perm-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: #0a0e22;
}
.perm-check[data-active="true"] {
  background: var(--grad-brand);
  border-color: transparent;
}
.badge[data-status="SUSPENDED"] { color: var(--pink); }
.badge[data-status="INVITED"] { color: var(--violet); }

/* ── Präsenz / Status ────────────────────────────────────────────────────── */
.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}
.presence-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.status-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--muted);
}
.status-badge[data-status="ACTIVE"] .status-badge-dot { background: #7ee787; box-shadow: 0 0 7px #7ee787; }
.status-badge[data-status="INVITED"] .status-badge-dot { background: #ffc36b; box-shadow: 0 0 7px #ffc36b; }
.status-badge[data-status="SUSPENDED"] .status-badge-dot { background: #ff7a9c; box-shadow: 0 0 7px #ff7a9c; }
.status-badge[data-status="SUSPENDED"] { color: var(--pink); border-color: rgba(255, 122, 156, 0.35); }

/* ── Sprachnachrichten ───────────────────────────────────────────────────── */
.voice-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(158, 215, 255, 0.1), rgba(200, 188, 255, 0.06));
  border: 1px solid var(--line);
}
.voice-note-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(158, 215, 255, 0.3);
}
.voice-note .att-audio {
  height: 34px;
  max-width: 210px;
}
.voice-note-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.voice-note-pending {
  background: rgba(13, 19, 42, 0.55);
}
.att-preview-x {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.14s ease, background 0.14s ease;
}
.att-preview-x:hover { color: var(--pink); background: rgba(255, 122, 156, 0.12); }
.img-preview {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-preview .att-preview-x {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(3, 5, 16, 0.6);
  color: #fff;
}

/* ── Chat-Gruppenüberschriften mit Kategorie-Punkt ───────────────────────── */
.channel-scroll {
  /* Innenabstand, damit der Punkt-Glow nicht am Rand abgeschnitten wird */
  padding: 2px 6px 2px 8px;
}
.chat-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ── Eigenes Sprachnachrichten-Modul ─────────────────────────────────────── */
.voice-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 290px;
  padding: 8px 13px 8px 8px;
  border-radius: 18px;
  border: none;
  /* Pink-Blau-Look wie die eigenen Nachrichtenblasen */
  background: linear-gradient(135deg, #b9e2ff, #cdc4ff, #ffc2e6);
  color: #0a0e22;
}
.voice-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  color: #cfe4ff;
  background: rgba(10, 14, 34, 0.85);
  cursor: pointer;
  transition: transform 0.14s ease;
}
.voice-play:hover { transform: scale(1.06); }
.voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 26px;
  cursor: pointer;
}
.voice-bar {
  flex: 1;
  min-height: 4px;
  border-radius: 999px;
  background: rgba(10, 14, 34, 0.25);
  transition: background 0.12s ease;
}
.voice-bar[data-on="true"] { background: #0a2a4a; }
.voice-player-time {
  font-size: 11px;
  font-weight: 800;
  color: rgba(10, 14, 34, 0.72);
  flex-shrink: 0;
  min-width: 30px;
  text-align: right;
}
.voice-pending {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Board-Namensvorschau im Einstellungs-Modal */
.board-name-preview {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  font-weight: 700;
}

/* ── Projekte ────────────────────────────────────────────────────────────── */
.project-card {
  --accent: #9ed7ff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px 20px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 16%, transparent);
}
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2);
}
.stat-tile-value {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-tile-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.label-chip-editable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
}
.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.label-x {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: inherit;
  opacity: 0.65;
}
.label-x:hover { opacity: 1; color: var(--pink); }
.progress-track {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.prio-tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.milestone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(13, 19, 42, 0.4);
  font-size: 0.88rem;
}
.milestone-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: #0a0e22;
  cursor: pointer;
}
.milestone-check[data-active="true"] {
  background: var(--grad-brand);
  border-color: transparent;
}
.range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--blue);
  cursor: pointer;
}

/* ── Arbeitszeit ─────────────────────────────────────────────────────────── */
.timer-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  transition: all 0.2s ease;
}
.timer-orb.is-running {
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.5);
  animation: timerPulse 2s ease-out infinite;
}
@keyframes timerPulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.4); }
  100% { box-shadow: 0 0 0 14px rgba(126, 231, 135, 0); }
}
.timer-display {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
.time-row-dur {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  min-width: 64px;
}

/* ── Freigaben-Zeile ─────────────────────────────────────────────────────── */
.approve-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}

/* ── Stempeluhr ──────────────────────────────────────────────────────────── */
.stempel-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.stempel-orb {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 42, 0.5);
  transition: all 0.2s ease;
}
.stempel-orb.is-running {
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
  animation: timerPulse 2s ease-out infinite;
}
.stempel-time {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.stempel-btn { flex-shrink: 0; }
.stempel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.stempel-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 19, 42, 0.4);
  border: 1px solid var(--line);
}
.stempel-stat-value { font-size: 1.05rem; font-weight: 800; }
.stempel-stat-label { font-size: 0.74rem; color: var(--muted); }
@media (max-width: 560px) {
  .stempel-time { font-size: 1.9rem; }
  .stempel-main { flex-wrap: wrap; }
}

/* ── Jahres-Heatmap ──────────────────────────────────────────────────────── */
.heatmap-scroll { overflow-x: auto; padding-bottom: 4px; }
.heatmap-months {
  display: grid;
  gap: 3px;
  min-width: 620px;
  margin-bottom: 4px;
}
.heatmap-month {
  grid-row: 1;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
}
.heatmap-grid {
  display: grid;
  gap: 3px;
  min-width: 620px;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}
.heatmap-cell[data-empty] { background: transparent; }
.heatmap-cell[data-level="0"] { background: rgba(255, 255, 255, 0.05); }
.heatmap-cell[data-level="1"] { background: rgba(255, 159, 215, 0.28); }
.heatmap-cell[data-level="2"] { background: rgba(255, 159, 215, 0.5); }
.heatmap-cell[data-level="3"] { background: rgba(255, 122, 156, 0.72); }
.heatmap-cell[data-level="4"] { background: #ff5c8a; }
.heatmap-cell-static { width: 13px; height: 13px; aspect-ratio: auto; }
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

/* ── Abwesenheiten ───────────────────────────────────────────────────────── */
.absence-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
.absence-type {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.76rem;
  font-weight: 800;
}

/* ── Segmentierte Umschalter / Auswahl-Häkchen ───────────────────────────── */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.seg-btn[data-active="true"] {
  color: #0a0e22;
  background: var(--grad-brand);
}
.new-channel-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}
.select-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: #0a0e22;
  transition: all 0.14s ease;
}
.select-check[data-active="true"] {
  background: var(--grad-brand);
  border-color: transparent;
}

/* ── Fixierte-Nachrichten-Panel ──────────────────────────────────────────── */
.pin-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  transition: background 0.14s ease;
}
.pin-item:hover { background: rgba(158, 215, 255, 0.06); }
.pin-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding: 7px 8px;
  text-align: left;
}
.pin-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.pin-thumb-icon {
  display: grid;
  place-items: center;
  color: var(--violet);
  background: rgba(200, 188, 255, 0.12);
}
.pin-unpin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--muted);
}
.pin-unpin:hover { color: var(--pink); background: rgba(255, 122, 156, 0.12); }

/* ── Header-Kategorien-Navigation ────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-top:hover { color: var(--text); background: rgba(158, 215, 255, 0.06); }
.nav-top[data-active="true"] {
  color: var(--text);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.11));
}
.nav-top[data-new="true"] {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 215, 0.4);
}
.nav-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0a0e22;
  background: linear-gradient(135deg, #9ed7ff, #ff9fd7);
}
.nav-new-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff9fd7;
  box-shadow: 0 0 7px #ff9fd7;
}
.nav-group {
  position: relative;
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  padding-top: 8px; /* transparente Brücke, damit der Hover nicht abreißt */
}
.nav-menu-card {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}
.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background 0.14s ease;
}
.nav-menu-item:hover { background: rgba(158, 215, 255, 0.08); }
.nav-menu-item[data-active="true"] {
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.11));
}
.nav-menu-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(13, 19, 42, 0.6);
  border: 1px solid var(--line);
}
.nav-menu-item[data-active="true"] .nav-menu-icon {
  color: #0a0e22;
  background: var(--grad-brand);
  border-color: transparent;
}

/* ── Admin-Navigation (zwei Bereiche) ────────────────────────────────────── */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.admin-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}
.admin-nav-home:hover { color: var(--text); border-color: var(--line-strong); }
.admin-nav-home[data-active="true"] {
  color: #0a0e22;
  background: var(--grad-brand);
  border-color: transparent;
}
.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
.admin-nav-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 4px;
}
.admin-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}
.admin-nav-tab:hover { color: var(--text); background: rgba(158, 215, 255, 0.08); }
.admin-nav-tab[data-active="true"] {
  color: #0a0e22;
  background: var(--grad-brand);
}
.col-actions { text-align: center; width: 1%; white-space: nowrap; }
.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ── Abwesenheitsarten-Editor ────────────────────────────────────────────── */
.abs-type-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
.abs-type-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ── Formular-Footer: Aktionen klar abgetrennt ───────────────────────────── */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ── Kanban: Label-Auswahl ───────────────────────────────────────────────── */
.label-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.label-select {
  --lc: #9ed7ff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.label-select:hover { color: var(--text); border-color: var(--line-strong); }
.label-select[data-active="true"] {
  color: #fff;
  border-color: color-mix(in srgb, var(--lc) 70%, transparent);
  background: color-mix(in srgb, var(--lc) 18%, transparent);
}

/* Datepicker: Titel & Monatsauswahl */
.datepicker-title {
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.datepicker-title:hover { background: rgba(158, 215, 255, 0.1); }
.datepicker-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 0;
}

/* Zeit-Picker */
.timepicker-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 8px;
  width: max-content;
}
.timepicker-col { display: flex; flex-direction: column; }
.timepicker-col-label {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}
.timepicker-scroll {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 176px;
  overflow-y: auto;
  padding-right: 2px;
}
.timepicker-item {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.timepicker-item:hover { background: rgba(158, 215, 255, 0.12); }
.timepicker-item[data-active="true"] { color: #0a0e22; background: var(--grad-brand); }
.datepicker-month {
  padding: 10px 0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.datepicker-month:hover { background: rgba(158, 215, 255, 0.12); }
.datepicker-month[data-selected="true"] {
  color: #0a0e22;
  background: var(--grad-brand);
}

/* ── Kanban: Board-Auswahl abgesetzt von Aktionen ────────────────────────── */
.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.board-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.55);
}
.board-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 200px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.board-pill:hover { color: var(--text); background: rgba(158, 215, 255, 0.08); }
.board-pill[data-active="true"] {
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px rgba(158, 215, 255, 0.28);
}
.board-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px dashed var(--line-strong);
}
.board-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.board-action-btn:hover {
  color: var(--text);
  border-color: rgba(190, 203, 255, 0.6);
  background: rgba(158, 215, 255, 0.06);
}

/* ── Kanban: Personen-Auswahl (Verantwortliche) ──────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.person-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}
.person-option:hover { border-color: var(--line-strong); }
.person-option[data-active="true"] {
  border-color: rgba(190, 203, 255, 0.4);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.14), rgba(255, 159, 215, 0.09));
}

/* ── Kanban: Kommentare ──────────────────────────────────────────────────── */
.comment-row {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(13, 19, 42, 0.4);
  border: 1px solid var(--line);
}
.comment-body { min-width: 0; flex: 1; }
.comment-del {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--muted);
  align-self: flex-start;
}
.comment-del:hover { color: var(--pink); background: rgba(255, 122, 156, 0.12); }

/* ── Eigener Datepicker ──────────────────────────────────────────────────── */
.datepicker-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}
.datepicker-trigger[data-empty="true"] { color: var(--muted); }
.datepicker-clear {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: var(--muted);
}
.datepicker-clear:hover { color: var(--pink); background: rgba(255, 122, 156, 0.14); }
.datepicker-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  width: 268px;
  padding: 12px;
}
.datepicker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.datepicker-weekdays { margin-bottom: 4px; }
.datepicker-wd {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  padding: 2px 0;
}
.datepicker-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.datepicker-day:hover { background: rgba(158, 215, 255, 0.12); }
.datepicker-day[data-other="true"] { color: var(--muted); opacity: 0.5; }
.datepicker-day[data-today="true"] { box-shadow: inset 0 0 0 1px var(--line-strong); }
.datepicker-day[data-selected="true"] {
  color: #0a0e22;
  font-weight: 800;
  background: var(--grad-brand);
}

/* ── „Neu"-Markierung im Admin ───────────────────────────────────────────── */
.mark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.mark-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}
.mark-tile:hover { border-color: var(--line-strong); }
.mark-tile[data-active="true"] {
  border-color: rgba(255, 159, 215, 0.5);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.12), rgba(255, 159, 215, 0.1));
}
.mark-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(13, 19, 42, 0.6);
  border: 1px solid var(--line);
}

/* ── Personalverwaltung: Team-Karten & Detail ────────────────────────────── */
.person-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.person-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.person-card-pending {
  flex-shrink: 0;
  color: #0a0e22;
  background: linear-gradient(135deg, #ffc36b, #ff9fd7);
}
.person-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.person-card-val { display: block; font-weight: 800; font-size: 0.95rem; }
.person-card-lbl { display: block; font-size: 0.68rem; color: var(--muted); }
.overview-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
  color: var(--blue);
}
.detail-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
.detail-stat-val { font-weight: 800; font-size: 1.05rem; }
.detail-stat-lbl { font-size: 0.72rem; color: var(--muted); }

/* ── Abwesenheits-Karten (Meine Anträge) ─────────────────────────────────── */
.absence-card {
  --ac: #9ed7ff;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 8%, transparent), var(--panel2));
}
.absence-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
}

/* ── Offene-Anfragen-Karten ──────────────────────────────────────────────── */
.request-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2);
}
.request-dur {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 84px;
  flex-shrink: 0;
  padding: 10px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.14), rgba(255, 159, 215, 0.1));
}
.request-dur-val { font-weight: 900; font-variant-numeric: tabular-nums; }
.request-dur-lbl { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.empty-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(13, 19, 42, 0.3);
}
.empty-hint-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(158, 215, 255, 0.1);
}

/* ── Jahres-Heatmap v2 (nach Monaten getrennt) ───────────────────────────── */
.heatmap2-wrap { position: relative; }
.heatmap2-months {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
}
.heatmap2-month-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 5px;
}
.heatmap2-grid {
  display: grid;
  gap: 3px;
}
.heatmap2-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}
.heatmap2-cell[data-empty] { background: transparent; }
.heatmap2-cell[data-level="0"] { background: rgba(255, 255, 255, 0.05); }
.heatmap2-cell[data-level="1"] { background: rgba(255, 159, 215, 0.3); }
.heatmap2-cell[data-level="2"] { background: rgba(255, 159, 215, 0.55); }
.heatmap2-cell[data-level="3"] { background: rgba(255, 122, 156, 0.75); }
.heatmap2-cell[data-level="4"] { background: #ff5c8a; }
.heatmap2-cell[data-absence] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.heatmap2-cell-static { width: 13px; height: 13px; aspect-ratio: auto; border-radius: 3px; }
.heatmap2-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.heatmap2-legend-sep {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
  margin: 0 6px;
}
.heatmap2-tip {
  position: absolute;
  z-index: 20;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0c1330;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.82rem;
}

/* ── Kalender ────────────────────────────────────────────────────────────── */
.cal-legend-dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.cal-legend-dot[data-kind="absence"] { background: #c8bcff; }
.cal-legend-dot[data-kind="task"] { background: #ffc36b; }
.cal-legend-dot[data-kind="meeting"] { background: #9ed7ff; }
.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-weekdays { margin-bottom: 6px; }
.cal-wd { text-align: center; font-size: 0.7rem; font-weight: 800; color: var(--muted); }
.cal-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 92px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.35);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.cal-cell:hover { border-color: var(--line-strong); }
.cal-cell[data-other="true"] { opacity: 0.4; }
.cal-cell[data-today="true"] { border-color: rgba(190, 203, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(190, 203, 255, 0.3); }
.cal-cell[data-selected="true"] { background: linear-gradient(135deg, rgba(158, 215, 255, 0.14), rgba(255, 159, 215, 0.09)); border-color: rgba(190, 203, 255, 0.5); }
.cal-cell[data-week="true"] { min-height: 200px; }
.cal-daynum { font-size: 0.8rem; font-weight: 800; }
.cal-events { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.64rem;
  font-weight: 700;
  min-width: 0;
}
.cal-chip-dot { width: 5px; height: 5px; border-radius: 999px; flex-shrink: 0; }
.cal-more { font-size: 0.62rem; color: var(--muted); padding-left: 4px; }
.cal-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
  transition: border-color 0.14s ease;
}
.cal-event-row:hover { border-color: var(--line-strong); }
.cal-event-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; }

/* Kalender: Monat/Jahr-Titel + Popover */
.cal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s ease;
}
.cal-title:hover { background: rgba(158, 215, 255, 0.08); }
.cal-navpop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 260px;
  padding: 12px;
}
.cal-navpop-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cal-navpop-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cal-navpop-month {
  padding: 9px 0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.cal-navpop-month:hover { background: rgba(158, 215, 255, 0.12); }
.cal-navpop-month[data-active="true"] { color: #0a0e22; background: var(--grad-brand); }

/* Kalender: Tages-Detail */
.cal-detail-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.18), rgba(255, 159, 215, 0.12));
}
.cal-detail-day { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.cal-detail-wd { font-size: 0.62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cal-meeting {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
@media (max-width: 640px) {
  .cal-cell { min-height: 64px; }
  .cal-chip { font-size: 0.56rem; }
}

/* ── Meetings ────────────────────────────────────────────────────────────── */
.meeting-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2);
}
.meeting-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.1));
}
.meeting-date-day { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.meeting-date-mon { font-size: 0.66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.meeting-own {
  flex-shrink: 0;
  color: #0a0e22;
  background: linear-gradient(135deg, #9ed7ff, #cdc4ff);
}
.rsvp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(13, 19, 42, 0.4);
  border: 1px solid var(--line);
}

/* ── Creator-Management ──────────────────────────────────────────────────── */
.coming-orb {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 12px 40px rgba(158, 215, 255, 0.28), 0 4px 18px rgba(255, 159, 215, 0.22);
}
.drawer-wide { max-width: min(560px, 96vw); }
.drawer-profile { width: min(720px, 100%); display: flex; flex-direction: column; }
.profile-body { overflow-y: auto; flex: 1; min-height: 0; margin-right: -6px; padding-right: 6px; }

/* Segmented view switch — wie der Rest: Pill-Optik, Brand-Verlauf aktiv */
.segmented { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: rgba(13, 19, 42, 0.4); }
.segmented-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 800; color: var(--muted); cursor: pointer; transition: all 0.18s ease;
}
.segmented-btn:hover { color: var(--text); }
.segmented-btn[data-active="true"] {
  color: var(--text);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.11));
  box-shadow: inset 0 0 0 1px rgba(190, 203, 255, 0.2);
}

/* Chip */
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: rgba(13, 19, 42, 0.45); font-size: 0.72rem; font-weight: 700; color: var(--muted); }

/* Creator list card */
.creator-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2); text-align: left; cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.creator-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.creator-card:disabled { opacity: 0.55; cursor: progress; }
.creator-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.creator-plat-icon { display: inline-grid; place-items: center; }
.card-warn { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: #ffb3c4; }

/* Score pill & ring */
.score-pill { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 9px; border-radius: var(--radius-pill); font-weight: 900; font-size: 0.82rem; border: 1px solid transparent; }
.score-pill[data-tone="good"] { color: #9defb0; background: rgba(126,231,135,.14); border-color: rgba(126,231,135,.34); }
.score-pill[data-tone="mid"]  { color: #ffd694; background: rgba(255,195,107,.14); border-color: rgba(255,195,107,.34); }
.score-pill[data-tone="low"]  { color: #ff9fb0; background: rgba(255,122,156,.14); border-color: rgba(255,122,156,.34); }
.score-ring { position: relative; display: grid; place-items: center; }
.score-ring-val { position: absolute; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; }

/* Growth chip */
.grow { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; font-size: 0.84rem; color: var(--muted); }
.grow em { font-style: normal; font-weight: 700; font-size: 0.68rem; opacity: 0.8; }
.grow.grow-up { color: #7ee787; }
.grow.grow-down { color: #ff7a9c; }

/* Profile head + tabs */
.profile-head { display: flex; align-items: center; gap: 16px; }
.live-badge { display: inline-flex; align-items: center; font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em; color: #ff6b6b; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(255,92,92,.14); border: 1px solid rgba(255,92,92,.34); }
.profile-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 16px 0 18px; padding-bottom: 0; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 4px; white-space: nowrap;
  font-size: 0.85rem; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color 0.18s ease, border-color 0.18s ease;
}
.profile-tab:hover { color: var(--text); }
.profile-tab[data-active="true"] { color: var(--text); border-bottom-color: var(--blue); }
.profile-tab .badge { padding: 2px 8px; font-size: 0.64rem; }

/* Status quick menu */
.status-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 268px; padding: 6px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--panel2); backdrop-filter: blur(22px); box-shadow: var(--shadow); }
.status-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 11px; cursor: pointer; font-size: 0.82rem; font-weight: 700; transition: background 0.14s ease; }
.status-menu-item:hover { background: rgba(190, 203, 255, 0.07); }
.status-menu-item[data-active="true"] { background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.1)); }
.status-badge:not(:disabled) { cursor: pointer; }

/* Sub-panel — an meeting-/project-cards angelehnt (Glas, weiche Kanten) */
.card-sub { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); }
.card-sub .label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* Mini tiles / facts */
.mini-tile { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); }
.mini-tile-val { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; line-height: 1; }
.mini-tile-lbl { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.fact-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); }
.fact-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--blue); background: rgba(158,215,255,.12); flex-shrink: 0; }
.fact-lbl { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.fact-val { font-size: 0.9rem; font-weight: 700; }

/* Insights */
.insight { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600; border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); }
.insight > svg { flex-shrink: 0; margin-top: 1px; }
.insight-good { color: #b8f5c2; border-color: rgba(126,231,135,.26); background: rgba(126,231,135,.07); }
.insight-bad { color: #ffb3c4; border-color: rgba(255,122,156,.26); background: rgba(255,122,156,.07); }
.insight-neutral { color: var(--muted); }

/* Score bars */
.scorebar { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 12px; }
.scorebar-lbl { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.scorebar-track { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.scorebar-fill { height: 100%; border-radius: var(--radius-pill); background: var(--grad-brand); transition: width 0.4s ease; }
.scorebar-num { font-size: 0.8rem; font-weight: 800; text-align: right; }

/* Platform rows (detail) + analytics cards */
.platform-row, .analytics-card {
  --pc: #9ed7ff; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--pc) 12%, transparent), transparent 62%),
    var(--glass-fill), var(--panel2);
}
.platform-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.analytics-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.platform-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 22%, transparent); }
.platform-growth { display: flex; gap: 14px; flex-shrink: 0; text-align: center; }
.platform-growth > div { display: flex; flex-direction: column; gap: 3px; }
.platform-growth-lbl { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.metric-tile { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; background: rgba(5, 8, 23, 0.4); border: 1px solid var(--line); }
.metric-val { font-weight: 900; font-size: 1rem; }
.metric-lbl { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.sync-note { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; color: var(--muted); }
.sync-note[data-live="true"] { color: #9defb0; }

/* Charts */
.minichart { width: 100%; height: auto; display: block; }
.minichart-empty { display: grid; place-items: center; font-size: 0.76rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

/* Edit platform block */
.platform-edit-block { --pc: #9ed7ff; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); }
.platform-edit-block .platform-icon { width: 34px; height: 34px; box-shadow: none; }
.metric-input { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 96px; }
.metric-input > span { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.metric-input .input { padding: 9px 11px; font-size: 0.85rem; }
.sync-hint { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 0.76rem; color: var(--muted); background: rgba(158, 215, 255, 0.06); border: 1px solid rgba(158, 215, 255, 0.16); }

/* Onboarding */
.check-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 12px; cursor: pointer; transition: background 0.14s ease; }
.check-row:hover { background: rgba(190, 203, 255, 0.06); }
.check-row:disabled { cursor: default; }
.check-box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); color: #08122a; flex-shrink: 0; transition: all 0.14s ease; }
.check-row[data-done="true"] .check-box { background: linear-gradient(135deg, #7ee787, #9ed7ff); border-color: transparent; }
.check-row[data-done="true"] > span:not(.check-box) { text-decoration: line-through; color: var(--muted); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 4px; position: relative; }
.timeline-row { display: flex; gap: 13px; padding: 9px 0; position: relative; }
.timeline-dot { --ec: #9ed7ff; display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; color: var(--ec); background: color-mix(in srgb, var(--ec) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ec) 42%, transparent); z-index: 1; }
.timeline-row:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 33px; bottom: -5px; width: 1.5px; background: var(--line); }

/* Notes */
.note-row { display: flex; gap: 11px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); }

/* Stars */
.star-btn { font-size: 1.5rem; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color 0.14s ease, transform 0.14s ease; }
.star-btn:hover { transform: scale(1.15); }
.star-btn[data-active="true"] { color: #ffc36b; }

/* Dashboard: pipeline / ranks / managers */
.pipe-row { display: grid; grid-template-columns: 116px 1fr 30px; align-items: center; gap: 12px; }
.pipe-lbl { font-size: 0.8rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.pipe-track { height: 9px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.pipe-fill { height: 100%; border-radius: var(--radius-pill); min-width: 3px; transition: width 0.4s ease; }
.pipe-num { font-size: 0.82rem; font-weight: 800; text-align: right; }
.rank-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); cursor: pointer; transition: border-color 0.16s ease, transform 0.16s ease; }
.rank-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.risk-row { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid rgba(255,122,156,.24); background: rgba(255,122,156,.06); cursor: pointer; transition: border-color 0.16s ease; }
.risk-row:hover { border-color: rgba(255,122,156,.42); }
.mgr-card { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); }

/* Pipeline board */
.pipeline-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.pipeline-col { flex: 0 0 244px; display: flex; flex-direction: column; gap: 10px; }
.pipeline-col-head { --sc: #9ed7ff; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--sc) 15%, transparent), transparent 70%), var(--glass-fill), var(--panel2); font-size: 0.85rem; }
.pipeline-col-body { display: flex; flex-direction: column; gap: 10px; min-height: 44px; }
.pipeline-card { display: flex; flex-direction: column; padding: 12px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-fill), var(--panel2); cursor: pointer; text-align: left; transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease; }
.pipeline-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.pipeline-card:disabled { opacity: 0.55; }
.pipeline-card:disabled { opacity: 0.6; }

/* ── Passwortmanager ──────────────────────────────────────────────────── */
.vault-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.vault-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.vault-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), rgba(13, 19, 42, 0.5);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.vault-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.vault-card[data-locked="true"] { opacity: 0.75; }

.vault-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.6);
}

/* Gleichmäßige Felder nebeneinander — Klick kopiert, Auge zeigt an. */
.vault-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
@media (max-width: 460px) {
  .vault-fields { grid-template-columns: minmax(0, 1fr); }
}

.vault-field {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(8, 12, 28, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vault-field:hover:not(:disabled) {
  border-color: rgba(158, 215, 255, 0.3);
  background: rgba(158, 215, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(158, 215, 255, 0.1);
}
.vault-field:disabled { cursor: default; opacity: 0.55; }
.vault-field[data-open="true"] {
  border-color: rgba(158, 215, 255, 0.34);
  background: rgba(158, 215, 255, 0.06);
}

/* Einheitliche Kopfzeile: Label, Countdown und Aktionen im selben Stil. */
.vault-field-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.vault-field-head > span:first-child { flex: 1; min-width: 0; }
.vault-countdown {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.vault-field-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text);
}
.vault-field-value[data-empty="true"] { color: var(--muted); font-weight: 600; }
.vault-field-value[data-secret="true"] { letter-spacing: 0.12em; }

/* Aktions-Icons: dezent, treten beim Überfahren hervor. */
.vault-actions { display: flex; align-items: center; gap: 2px; }
.vault-icon-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--muted);
  opacity: 0.55;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.vault-field:hover .vault-icon-btn { opacity: 1; }
.vault-icon-btn:hover {
  color: var(--blue);
  background: rgba(158, 215, 255, 0.12);
  opacity: 1;
}
.vault-icon-btn[data-active="true"] { color: var(--blue); opacity: 1; }

/* ── Kopier-Hinweis (unten mittig) ────────────────────────────────────── */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 260;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(11, 16, 40, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
  animation: toastIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.copy-toast[data-leaving="true"] { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 10px); }
}

/* ── Zentrale PIN-Eingabe ─────────────────────────────────────────────── */
.pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 16, 0.78);
  backdrop-filter: blur(9px);
  animation: fadeIn 0.18s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Eigene Ein-Animation — NICHT .animate-in verwenden, sonst überschreibt
   die Fehler-Animation deren `animation` und der Dialog bliebe unsichtbar. */
.pin-modal {
  width: min(400px, 100%);
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(22, 30, 58, 0.96), rgba(11, 16, 40, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: pinIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pinIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pinShake {
  0% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
.pin-modal[data-error="true"] {
  border-color: var(--pink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(255, 122, 156, 0.16);
}
/* Wackeln liegt auf einer eigenen Ebene, damit es die Ein-Animation des
   Dialogs nicht ersetzt (sonst bliebe der Dialog unsichtbar). */
.pin-shake[data-error="true"] {
  animation: pinShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.pin-boxes {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 18px 0 6px;
}
.pin-box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.7);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pin-box[data-filled="true"] { border-color: var(--line-strong); }
.pin-box[data-active="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(158, 215, 255, 0.16);
}
.pin-modal[data-error="true"] .pin-box {
  border-color: var(--pink);
  background: rgba(255, 122, 156, 0.09);
  box-shadow: 0 0 12px rgba(255, 122, 156, 0.25);
}
.pin-input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: default;
}

/* ── Passwortgenerator ────────────────────────────────────────────────── */
.gen-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(158, 215, 255, 0.06), transparent 60%), rgba(8, 12, 28, 0.5);
}
.gen-output {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.75);
}
.gen-value {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  scrollbar-width: none;
}
.gen-value::-webkit-scrollbar { display: none; }

.gen-meter {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.gen-meter > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.28s ease, background 0.28s ease;
}

.gen-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gen-label {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.gen-len {
  width: 46px;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.gen-chip {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.15s ease;
}
.gen-chip:hover { color: var(--text); border-color: var(--line-strong); }
.gen-chip[data-active="true"] {
  color: var(--text);
  border-color: rgba(190, 203, 255, 0.34);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.18), rgba(255, 159, 215, 0.12));
}

/* Zeichengruppen als Schalterreihe */
.gen-sets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.gen-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  color: var(--muted);
  transition: all 0.15s ease;
}
.gen-set:hover { border-color: var(--line-strong); color: var(--text); }
.gen-set[data-active="true"] {
  color: var(--text);
  border-color: rgba(190, 203, 255, 0.34);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.1));
}
.gen-set-sample {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 800;
}
.gen-set-label { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; }

/* Schalter für Ja/Nein-Optionen */
.gen-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  transition: all 0.15s ease;
}
.gen-switch:hover { border-color: var(--line-strong); color: var(--text); }
.gen-switch[data-active="true"] { color: var(--text); }
.gen-switch-track {
  position: relative;
  width: 34px;
  height: 19px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.18s ease;
}
.gen-switch[data-active="true"] .gen-switch-track { background: var(--grad-brand); }
.gen-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0a0e22;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.gen-switch[data-active="true"] .gen-switch-knob { transform: translateX(15px); }

/* ── Freigabe-Auswahl im Drawer ───────────────────────────────────────── */
.share-list {
  display: flex;
  max-height: 216px;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.45);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 11px;
  text-align: left;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.share-row:hover { background: rgba(158, 215, 255, 0.07); }
.share-row[data-active="true"] {
  background: rgba(158, 215, 255, 0.11);
  border-color: rgba(158, 215, 255, 0.24);
}
.share-check {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  color: #0a0e22;
  transition: all 0.15s ease;
}
.share-row[data-active="true"] .share-check {
  border-color: transparent;
  background: var(--grad-brand);
}
.share-group {
  padding: 9px 9px 3px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  font-size: 0.8rem;
  color: var(--muted);
}

.drawer-vault { width: min(660px, 100%); }
.form-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.42);
}
.form-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Protokolle & Changelogs ─────────────────────────────────────────── */

/* Strang-Auswahl als schmale Leiste */
.proto-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.proto-tabs::-webkit-scrollbar { display: none; }

.proto-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.15s ease;
}
.proto-tab:hover { color: var(--text); border-color: var(--line-strong); }
.proto-tab[data-active="true"] {
  color: var(--text);
  border-color: rgba(190, 203, 255, 0.3);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.15), rgba(255, 159, 215, 0.1));
}
.proto-tab-count { font-size: 0.7rem; font-weight: 900; opacity: 0.6; }

.proto-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}


/* ── Versions-Blöcke ──────────────────────────────────────────────────── */
.rel-list { display: flex; flex-direction: column; gap: 12px; }

/* Jeder Eintrag in einem eigenen, etwas dunkleren Feld — dadurch sind die
   Einträge klar voneinander getrennt, ohne dass es unruhig wirkt. */
.rel {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.45);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.rel:hover { border-color: var(--line-strong); background: rgba(8, 12, 28, 0.6); }
.rel[data-draft="true"] { border-style: dashed; background: rgba(8, 12, 28, 0.32); }

.rel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* Aktionen innen, Datum ganz außen am Rand des Feldes. */
.rel-head-right { display: flex; align-items: flex-start; gap: 10px; margin-left: auto; }
.rel-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.rel-author { font-size: 0.72rem; font-weight: 700; color: var(--muted); opacity: 0.75; white-space: nowrap; }

.rel-version {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rel[data-draft="true"] .rel-version {
  background: none;
  color: var(--muted);
}

.rel-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.rel-draft {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(255, 122, 156, 0.55);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.rel-date {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rel-title { margin-top: 10px; font-size: 1.1rem; font-weight: 800; line-height: 1.35; }
.rel-summary {
  margin-top: 7px;
  max-width: 80ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
}

.rel-section { margin-top: 20px; }
.rel-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.rel-kind::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.18;
}

.rel-items {
  margin-top: 9px;
  padding-left: 19px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rel-item { position: relative; font-size: 0.9rem; line-height: 1.55; }
.rel-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Aktionen erst beim Überfahren des Blocks */
.rel-actions { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity 0.15s ease; }
.rel-actions .vault-icon-btn { opacity: 1; }
.rel:hover .rel-actions,
.rel:focus-within .rel-actions { opacity: 1; }
@media (hover: none) {
  .rel-actions { opacity: 1; }
}

/* ── Vollbild-Editor mit Vorschau ─────────────────────────────────────── */
.ed-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  padding: clamp(8px, 2vw, 28px);
  background: rgba(3, 5, 16, 0.74);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.16s ease both;
}
.ed-shell {
  margin: auto;
  width: min(1240px, 100%);
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(22, 30, 58, 0.96), rgba(11, 16, 40, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.ed-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.ed-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.ed-pane { min-width: 0; overflow-y: auto; padding: 20px 22px; }
.ed-pane + .ed-pane {
  border-left: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.4);
}
.ed-preview {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  padding: 14px;
}

@media (max-width: 1023px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); }
  .ed-body .ed-pane + .ed-pane { display: none; border-left: none; }
  .ed-body[data-preview="true"] .ed-pane:first-child { display: none; }
  .ed-body[data-preview="true"] .ed-pane + .ed-pane { display: block; }
}

.ed-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.4);
}

.ed-label {
  margin-bottom: 6px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.ed-tpls { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-tpl {
  --tpl: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.15s ease;
}
.ed-tpl:hover { color: var(--text); border-color: var(--line-strong); }
.ed-tpl[data-active="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--tpl) 50%, transparent);
  background: color-mix(in srgb, var(--tpl) 14%, transparent);
}

.ed-block { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.ed-block:first-of-type { border-top: none; }

.ed-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.ed-kind-x {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--muted);
  opacity: 0.5;
  transition: all 0.15s ease;
}
.ed-block:hover .ed-kind-x { opacity: 1; }
.ed-kind-x:hover { color: var(--pink); background: rgba(255, 122, 156, 0.1); }

.ed-line { display: flex; align-items: center; gap: 8px; }
.ed-line .input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.86rem;
  background: rgba(8, 12, 28, 0.5);
}
.ed-line-x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--muted);
  opacity: 0;
  transition: all 0.15s ease;
}
.ed-line:hover .ed-line-x { opacity: 0.7; }
.ed-line-x:hover { opacity: 1; color: var(--pink); background: rgba(255, 122, 156, 0.1); }

.ed-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--line-strong);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.15s ease;
}
.ed-add:hover { color: var(--text); border-color: var(--blue); border-style: solid; }

/* ── Cloud-Speicher ───────────────────────────────────────────────────── */
.cl-crumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.cl-crumbs::-webkit-scrollbar { display: none; }
.cl-crumb {
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.15s ease;
}
.cl-crumb:hover { color: var(--text); background: rgba(158, 215, 255, 0.08); }
.cl-crumb[data-current="true"] { color: var(--text); font-size: 1.05rem; }

.cl-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cl-search { position: relative; flex: 1 1 340px; max-width: 460px; }

.cl-tile {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.45);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.cl-tile:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(8, 12, 28, 0.62);
}

/* Ordner: die gewählte Farbe trägt die ganze Kachel. */
.cl-tile[data-folder="true"] {
  --fc: #ffc36b;
  border-color: color-mix(in srgb, var(--fc) 34%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--fc) 20%, transparent),
    color-mix(in srgb, var(--fc) 8%, transparent) 70%),
    rgba(8, 12, 28, 0.5);
}
.cl-tile[data-folder="true"]:hover {
  border-color: color-mix(in srgb, var(--fc) 60%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--fc) 30%, transparent),
    color-mix(in srgb, var(--fc) 14%, transparent) 70%),
    rgba(8, 12, 28, 0.5);
}
.cl-tile[data-folder="true"] .cl-icon {
  border-color: color-mix(in srgb, var(--fc) 45%, transparent);
  background: color-mix(in srgb, var(--fc) 18%, rgba(8, 12, 28, 0.5));
}

.cl-tile-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
  text-align: left;
  padding: 2px;
}

.cl-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.cl-thumb {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.6);
}

.cl-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}
.cl-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.cl-actions { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity 0.15s ease; }
.cl-actions .vault-icon-btn { opacity: 1; }
.cl-tile:hover .cl-actions { opacity: 1; }
@media (hover: none) { .cl-actions { opacity: 1; } }

/* Ablegen-Fläche beim Ziehen */
.cl-dropzone {
  position: absolute;
  inset: 8px;
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--blue);
  background: rgba(13, 19, 42, 0.9);
  backdrop-filter: blur(4px);
  pointer-events: none;
  text-align: center;
}

.cl-uploads { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.cl-upload {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.5);
  font-size: 0.82rem;
  color: var(--muted);
}
.cl-upload[data-state="fertig"] { color: #7ee787; border-color: rgba(126, 231, 135, 0.3); }
.cl-upload[data-state="fehler"] { color: var(--pink); border-color: rgba(255, 122, 156, 0.35); }


/* Bereichsüberschrift in der Ablage */
.cl-section {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  padding-left: 2px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cl-section-count {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0;
}

/* Kleines Menü an Kacheln und Zeilen */
.row-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 70;
  min-width: 186px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.row-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  transition: background 0.14s ease, color 0.14s ease;
}
.row-menu-item:hover { background: rgba(158, 215, 255, 0.1); }
.row-menu-item[data-danger="true"] { color: var(--pink); }
.row-menu-item[data-danger="true"]:hover { background: rgba(255, 122, 156, 0.12); }

/* Symbolauswahl */
/* Symbolauswahl nutzt die vorhandene .icon-pick-Optik (siehe oben). */
.icon-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ── Große Datei-Vorschau ─────────────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 78px 24px 28px;
  background: rgba(3, 5, 16, 0.84);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.18s ease both;
}

.lb-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}
.lb-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-title-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--line);
}
.lb-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lb-actions .btn {
  background: rgba(13, 19, 42, 0.72);
  border: 1px solid var(--line);
}
.lb-actions .btn:hover { border-color: var(--line-strong); }

.lb-content {
  display: grid;
  place-items: center;
  max-width: min(1180px, 94vw);
  max-height: 100%;
}
.lb-content img,
.lb-content video {
  max-width: min(1180px, 94vw);
  max-height: calc(100dvh - 120px);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lb-pdf {
  width: min(1000px, 94vw);
  height: calc(100dvh - 120px);
  border: none;
  border-radius: 14px;
  background: #fff;
}
.lb-audio,
.lb-none {
  width: min(440px, 92vw);
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(22, 30, 58, 0.95), rgba(11, 16, 40, 0.97));
  text-align: center;
}
.lb-audio .vault-mark,
.lb-none .vault-mark { margin: 0 auto; }

.dialog-wide { width: min(560px, 96vw); max-height: 88dvh; overflow-y: auto; }

/* Cloud: Abstände, Team-Ordner und Leerzustand */
.cl-sections { display: flex; flex-direction: column; gap: 22px; }
.cl-section-hint {
  margin-left: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.65;
}

/* Team-Ordner heben sich allein über die Farbintensität ab — kräftiger
   getönt, deutlicher Rahmen, rundes Symbolfeld und die Plakette. */
.cl-tile[data-team="true"] {
  border-color: color-mix(in srgb, var(--fc) 60%, transparent);
  background: color-mix(in srgb, var(--fc) 26%, rgba(8, 12, 28, 0.5));
}
.cl-tile[data-team="true"]:hover {
  border-color: var(--fc);
  background: color-mix(in srgb, var(--fc) 36%, rgba(8, 12, 28, 0.5));
}
.cl-tile[data-team="true"] .cl-icon {
  border-radius: 50%;
  border-color: color-mix(in srgb, var(--fc) 70%, transparent);
  background: color-mix(in srgb, var(--fc) 32%, rgba(8, 12, 28, 0.5));
}

.cl-team-badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Leerzustand */
.ui-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-strong);
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(158, 215, 255, 0.07), transparent 70%),
    rgba(13, 19, 42, 0.32);
  text-align: center;
}
.ui-empty-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.55);
  color: var(--blue);
}
.ui-empty-title { margin-top: 16px; font-size: 1.02rem; font-weight: 900; }
.ui-empty-text {
  margin-top: 6px;
  max-width: 44ch;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--muted);
}
.ui-empty-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Zustellstatus an eigenen Nachrichten */
.msg-delivery {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  vertical-align: -2px;
  opacity: 0.75;
}
.bubble-time { display: inline-flex; align-items: center; }

/* Stempel-Anzeige in der Personalverwaltung */
.clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.clock-badge[data-on="true"] {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.38);
  background: rgba(126, 231, 135, 0.1);
}
.clock-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}
.clock-badge[data-on="true"] .clock-dot {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
  animation: clockPulse 2.4s ease-in-out infinite;
}
@keyframes clockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.person-card .clock-badge { align-self: flex-start; margin-top: 10px; }

/* ── Kategorien & Ansichtsumschaltung ─────────────────────────────────── */
.vt-sections { display: flex; flex-direction: column; gap: 22px; }

.vt-group {
  --cc: var(--blue);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  padding-left: 2px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc);
}
.vt-group-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cc);
  box-shadow: 0 0 9px var(--cc);
}
.vt-group-count {
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0;
  color: var(--muted);
}

/* Karte in Kategoriefarbe: Streifen links, farbiger Rahmen, getönter Grund */
.vault-card {
  --cc: var(--blue);
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--cc) 26%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cc) 9%, transparent), transparent 62%),
    rgba(13, 19, 42, 0.5);
}
.vault-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cc);
  opacity: 0.9;
}
.vault-card:hover { border-color: color-mix(in srgb, var(--cc) 52%, transparent); }
.vault-card .vault-mark {
  border-color: color-mix(in srgb, var(--cc) 34%, transparent);
  background: color-mix(in srgb, var(--cc) 14%, rgba(8, 12, 28, 0.6));
}


/* ── Listenansicht: Tabelle statt gestauchter Kacheln ─────────────────── */
.vt-table,
.cl-table {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.4);
  /* Bewusst ohne `overflow: hidden`: Das würde die Kontur der obersten und
     untersten Zeile in den runden Ecken abschneiden. Stattdessen runden
     Kopfzeile und letzte Zeile selbst passend ab. */
}

/* Die Zeilen-Regeln setzen `border-radius: 0`, deshalb hier gleich spezifisch
   adressieren — sonst greift die Rundung an den Enden nicht. */
.vt-table > .vt-row:last-child,
.cl-table > .cl-tile[data-view="list"]:last-child {
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

.vt-head,
.cl-head {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  background: rgba(8, 12, 28, 0.55);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.vt-head { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 1.5fr) 74px; }
.cl-head { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) 44px; }

.vt-row,
.cl-tile[data-view="list"] {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  transition: background 0.14s ease;
}
.vt-row { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 1.5fr) 74px; }
.vt-row:first-of-type { border-top: none; }
.vt-row:hover { background: rgba(158, 215, 255, 0.05); }

.vt-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vt-cell-title { gap: 10px; }

.vt-row-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--cc);
  border: 1px solid color-mix(in srgb, var(--cc) 32%, transparent);
  background: color-mix(in srgb, var(--cc) 13%, rgba(8, 12, 28, 0.6));
}
.vt-row-title {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.87rem;
  font-weight: 800;
  color: var(--text);
}
.vt-row-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  font-size: 0.7rem;
  color: var(--muted);
}
.vt-chip {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kopierbare Zellen */
.vt-copy {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 0.82rem;
  color: var(--text);
  transition: background 0.14s ease, color 0.14s ease;
}
.vt-copy:hover:not(:disabled) { background: rgba(158, 215, 255, 0.1); }
.vt-copy:disabled { color: var(--muted); cursor: default; }
.vt-copy-icon { flex-shrink: 0; opacity: 0; transition: opacity 0.14s ease; color: var(--muted); }
.vt-copy:hover .vt-copy-icon { opacity: 1; }

.vt-secret { gap: 4px; }
.vt-count {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.vt-actions { justify-content: flex-end; gap: 2px; }

/* Cloud-Zeilen */
.cl-tile[data-view="list"] {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) 44px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
}
.cl-tile[data-view="list"]:first-of-type { border-top: none; }
/* In der Liste sind Rahmen links/rechts/unten abgeschaltet, damit die Zeilen
   nahtlos sitzen — ein `border-color` beim Überfahren färbt deshalb nur die
   obere Kante. `outline` legt sich dagegen um die ganze Zeile; mit negativem
   Versatz liegt sie innen und verschiebt nichts. */
.cl-tile[data-view="list"] {
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color 0.15s ease, background 0.15s ease;
}
.cl-tile[data-view="list"]:hover {
  transform: none;
  outline-color: rgba(158, 215, 255, 0.4);
  background: rgba(158, 215, 255, 0.05);
}
.cl-tile[data-folder="true"][data-view="list"]:hover {
  outline-color: color-mix(in srgb, var(--fc) 65%, transparent);
  background: color-mix(in srgb, var(--fc) 12%, transparent);
}
.cl-tile[data-view="list"] .cl-tile-main { gap: 10px; padding: 0; }
.cl-tile[data-view="list"] .cl-icon,
.cl-tile[data-view="list"] .cl-thumb {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.cl-tile[data-view="list"] .cl-name { font-size: 0.86rem; }
.cl-tile[data-view="list"] .cl-meta { display: none; }
.cl-tile[data-view="list"] .cl-actions { opacity: 1; justify-content: flex-end; }

/* In der Liste dieselbe Abstufung: normale Ordner zart, Team-Ordner kräftig. */
.cl-tile[data-folder="true"][data-view="list"] {
  background: color-mix(in srgb, var(--fc) 7%, transparent);
}
.cl-tile[data-team="true"][data-view="list"] {
  background: color-mix(in srgb, var(--fc) 18%, transparent);
}
.cl-tile[data-team="true"][data-view="list"]:hover {
  background: color-mix(in srgb, var(--fc) 26%, transparent);
  outline-color: var(--fc);
}

.cl-col {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Schmale Bildschirme: Tabellen werden zu zweizeiligen Blöcken */
@media (max-width: 820px) {
  .vt-head,
  .cl-head { display: none; }
  /* Ohne sichtbare Kopfzeile sitzt die erste Zeile an der oberen Rundung. */
  .vt-table > .vt-head + .vt-row,
  .cl-table > .cl-head + .cl-tile[data-view="list"] {
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
  }
  .vt-row,
  .cl-tile[data-view="list"] {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
  }
  .vt-cell-title,
  .cl-tile[data-view="list"] .cl-tile-main { grid-column: 1 / -1; }
  .vt-actions,
  .cl-tile[data-view="list"] .cl-actions { grid-column: 2; grid-row: 1; }
}

/* Zähler in den Reitern (Bewerbungen/Nachrichten) */
.seg-count {
  min-width: 19px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 34, 0.28);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.5;
}
.seg-btn:not([data-active="true"]) .seg-count {
  background: var(--grad-brand);
  color: #0a0e22;
}

/* Bewerbungen & Kontakt */
.rc-list { display: flex; flex-direction: column; gap: 10px; }
.rc-item {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.45);
  transition: border-color 0.15s ease;
}
.rc-item:hover { border-color: var(--line-strong); }
.rc-item[data-unread="true"] { border-color: rgba(158, 215, 255, 0.32); }
.rc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}
.rc-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.rc-title { font-size: 0.9rem; font-weight: 800; }
.rc-sub { margin-top: 2px; font-size: 0.75rem; color: var(--muted); }
.rc-body {
  padding: 4px 14px 14px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rc-answer { display: flex; flex-direction: column; gap: 2px; }
.rc-answer-label {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rc-answer-value { font-size: 0.87rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 4px; }

.rc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Feld-Baukasten */
.fb-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.45);
}
.fb-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 9px; align-items: end; }
@media (max-width: 720px) { .fb-row { grid-template-columns: minmax(0, 1fr); } }
.fb-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

