/* ─── bimo.rocks dashboard · vanilla CSS ────────────────────── */

:root {
  /* Base surfaces */
  --bg:          #06080d;
  --bg-glow-1:   #152035;
  --bg-glow-2:   #0e1a28;
  --bg-glow-3:   #0c1a24;

  /* Text */
  --text:        #e6e4df;
  --text-hi:     #e6f6ff;
  --text-hi-2:   #faf9f5;
  --text-muted:  rgba(230, 228, 223, 0.5);
  --text-dim:    rgba(230, 228, 223, 0.35);
  --text-soft:   rgba(230, 228, 223, 0.7);
  --text-softer: rgba(230, 228, 223, 0.85);

  /* Accents */
  --accent:      #7dd3fc;
  --accent-soft-1: rgba(125, 211, 252, 0.02);
  --accent-soft-2: rgba(125, 211, 252, 0.06);
  --accent-soft-3: rgba(125, 211, 252, 0.08);
  --accent-soft-4: rgba(125, 211, 252, 0.15);
  --accent-soft-5: rgba(125, 211, 252, 0.22);
  --accent-soft-6: rgba(125, 211, 252, 0.35);
  --accent-70:   rgba(125, 211, 252, 0.7);
  --accent-80:   rgba(125, 211, 252, 0.8);

  --warn:        #fbbf24;
  --ok:          #86efac;
  --error:       #f87171;

  /* Borders */
  --line-1:      rgba(255, 255, 255, 0.04);
  --line-2:      rgba(255, 255, 255, 0.05);
  --line-3:      rgba(255, 255, 255, 0.06);
  --line-4:      rgba(255, 255, 255, 0.08);

  /* Surfaces */
  --surf-1:      rgba(255, 255, 255, 0.025);
  --surf-2:      rgba(255, 255, 255, 0.03);
  --surf-3:      rgba(255, 255, 255, 0.04);

  /* Radii */
  --r-chip:      4px;
  --r-input:     10px;
  --r-card:      16px;
  --r-pill:      999px;

  /* Shadows */
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-btn:  0 10px 30px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  overflow-x: hidden;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.em   { color: var(--text); }

/* ─── Background layers ─────────────────────────────────────── */
.bmo-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 25%, var(--bg-glow-1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, var(--bg-glow-2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, var(--bg-glow-3) 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
  z-index: 0;
}
.bmo-noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Glass ─────────────────────────────────────────────────── */
.glass {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line-3);
  border-radius: var(--r-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-card);
}
.glass-hot {
  background: linear-gradient(140deg, var(--accent-soft-2), var(--accent-soft-1));
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: var(--r-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* ─── Top bar ───────────────────────────────────────────────── */
.topbar {
  display: grid;
  /* Brand links, Icons rechts, Mitte-Track als Platzhalter (1fr). Die
     search-group sitzt ueber `position: absolute; left: 50%` genau auf
     Viewport-Mitte — damit liegt sie exakt ueber dem BMO-Face in der Hero
     (die Hero hat symmetrisches Padding, also deckt ihr Center = 50%). */
  position: relative;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  position: relative;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 1px;
  min-width: 0;
}
.brand-name { font-size: 15px; color: var(--text-hi); letter-spacing: -0.02em; font-weight: 600; }
.brand-tld  { font-size: 15px; color: var(--accent); font-weight: 500; }

.search-group {
  /* Aus dem Grid-Fluss raus: absolut zur Topbar, auf 50% horizontal + 50%
     vertikal. Damit liegt die Pille pixel-genau ueber dem BMO-Face (die
     Hero hat symmetrisches Padding, also sitzt das Face auf 50% viewport). */
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: var(--r-input);
  box-sizing: border-box;
  height: 38px;
  line-height: 1;
}
.search-pill__input { height: 100%; line-height: 1; flex: 1 1 auto; min-width: 0; text-align: center; }
/* Seit die "Frag BMO"-Pill entfernt ist, darf die Web-Suche den gesamten
   zur Verfuegung stehenden Platz im search-group einnehmen (bis maximal
   720px, damit sie nicht ueber die volle Header-Breite schwappt). */
.search-pill--web {
  background: linear-gradient(180deg, var(--accent-soft-3), var(--accent-soft-1));
  border: 1px solid var(--accent-soft-5);
  cursor: text;
  flex: 1 1 auto;
  max-width: 720px;
  min-width: 280px;
}
.search-pill__placeholder { flex: 1; font-size: 12.5px; color: rgba(230, 246, 255, 0.75); }
.search-pill--web .search-pill__input { color: rgba(230, 246, 255, 0.95); }
.search-pill--web .search-pill__input::placeholder { color: rgba(230, 246, 255, 0.55); }
.chip {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: var(--r-chip);
  background: var(--line-2);
  color: var(--text-muted);
}
.chip--kbd {
  font-size: 10px;
  background: var(--accent-soft-4);
  color: var(--accent);
}

.topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ghost-btn {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surf-2);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  cursor: pointer;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 11px;
  border-radius: 20px;
  background: var(--surf-3);
  border: 1px solid var(--line-3);
}
.user-pill__name { font-size: 12px; color: var(--text-softer); }
.user-pill__avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #0a0a0a;
}

/* ─── Hero ──────────────────────────────────────────────────── */
/* Gesamte Hero-Sektion (Begruessung links, BMO-Face Mitte, Briefing rechts)
   um 15 % runterskaliert. Alle Werte explizit reduziert statt zoom/transform,
   damit Typografie sauber rendert und sich der Block vertikal wirklich
   schmaler misst. Die BMOFace-Groesse wird parallel im JS auf 221 gezogen. */
.hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  padding: 17px 41px 24px;
}
.hero-col { max-width: 357px; }
.hero-col--left  { text-align: right; }
.hero-col--right { text-align: left; }

.hero-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.hero-tag__dot { display: inline-block; margin-right: 4px; }

.hero-headline {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-hi-2);
}
.hero-headline__accent { color: var(--accent); font-weight: 500; }
.hero-headline__warn   { color: var(--warn);   font-weight: 500; }

.hero-meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--accent-70);
  letter-spacing: 0.18em;
  margin-top: 12px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.hero-cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--accent-soft-5), var(--accent-soft-2));
  border: 1px solid var(--accent-soft-6);
  color: var(--text-hi);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-btn);
}

/* ─── Grid ──────────────────────────────────────────────────── */
.grid {
  padding: 18px 32px 26px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.span-4  { grid-column: span 4; }
.span-12 { grid-column: span 12; }

/* ─── Card ──────────────────────────────────────────────────── */
.card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Schlanke Variante ohne Card-Header — z.B. Nexus-Rail: Padding vertikal
   stark reduziert, damit die Service-Kacheln ohne Luft-oben/unten in der
   Row sitzen. */
.card--slim {
  padding: 10px 16px;
  gap: 0;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.card__tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.22em;
}
.card__right {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ─── Termine ───────────────────────────────────────────────── */
/* Termine + Todos teilen sich Row 1 mit dem Chat (#bmo-chat). Damit alle
   drei Cards oben UND unten buendig stehen, fixe Hoehe + min+max gleich
   gross -- min-height verhindert, dass Grid die Row mit intrinsisch
   hoeherem Content groesser ziehen kann. Andere Karten (Notizen, Familie,
   Paperless, Nexus) bleiben unberuehrt. Chat selbst kriegt die Hoehe in
   chat.css; hier waere doppelt -- aber nicht schaedlich. */
#card-termine,
#card-todos {
  height: 32vh;
  min-height: 32vh;
  max-height: 32vh;
}
.termine-list,
.todos-list {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.15) transparent;
}
.termine-list::-webkit-scrollbar,
.todos-list::-webkit-scrollbar { width: 6px; }
.termine-list::-webkit-scrollbar-thumb,
.todos-list::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.15);
  border-radius: 3px;
}

.termine-list { display: flex; flex-direction: column; gap: 6px; }
.termine-item {
  display: flex;
  gap: 11px;
  align-items: center;
}
.termine-item.dim { opacity: 0.55; }
/* Kompakte Date-Card nur fuer Termine-Rows (und das Familie-Widget, das den
   gleichen Row-Stil nutzt). Der einzelne Accent-Block im Familie-Widget
   ist weg — deshalb darf das Date-Element global kleiner sein. */
.termine-item .fam-cal__date {
  width: 38px; height: 38px; border-radius: 8px;
}
.termine-item .fam-cal__dow { font-size: 9px; }
.termine-item .fam-cal__day { font-size: 13px; margin-top: -1px; }
/* Hot = erster zukuenftiger Termin: Date-Card intensiver hervorgehoben */
.termine-item.hot .fam-cal__date {
  background: var(--accent-soft-2, var(--accent-soft-3));
  border-color: rgba(125, 211, 252, 0.35);
}
.termine-item.hot .fam-cal__day { color: var(--accent); }
.termine-body { min-width: 0; flex: 1 1 auto; }
.termine-title { font-size: 14px; color: var(--text); margin-bottom: 3px; }
.termine-where { font-size: 12px; color: var(--text-muted); }
.termine-more {
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 11.5px;
  color: rgba(230, 228, 223, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ─── Notizen ───────────────────────────────────────────────── */
.notizen-list { display: flex; flex-direction: column; gap: 12px; }
.notizen-item { display: flex; gap: 11px; align-items: flex-start; }
.notizen-bar {
  width: 3px;
  align-self: stretch;
  min-height: 34px;
  border-radius: 2px;
  background: var(--line-4);
  margin-top: 3px;
}
.notizen-bar.active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}
.notizen-title { font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.notizen-meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: rgba(230, 228, 223, 0.4);
}
.quick-note {
  padding: 10px;
  border-radius: 9px;
  background: var(--surf-1);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: rgba(230, 228, 223, 0.55);
  font-size: 12.5px;
  cursor: pointer;
  text-align: center;
}

/* ─── Todos ─────────────────────────────────────────────────── */
.todos-list { display: flex; flex-direction: column; }
.todo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line-1);
}
.todo:last-child { border-bottom: none; }
.todo__box {
  width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.todo.done .todo__box {
  border: none;
  background: var(--accent);
}
.todo__box svg { display: none; }
.todo.done .todo__box svg { display: block; }
.todo__label {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
}
.todo.done .todo__label {
  color: rgba(230, 228, 223, 0.35);
  text-decoration: line-through;
}
.todo__when {
  font-size: 11px;
  color: rgba(230, 228, 223, 0.45);
}
.todo__when.warn {
  color: var(--warn);
  font-family: 'Geist Mono', monospace;
}
.todo.done .todo__when.warn { color: rgba(230, 228, 223, 0.45); font-family: inherit; }

/* ─── Familie ───────────────────────────────────────────────── */
.fam-section-title {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(230, 228, 223, 0.4);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.fam-divider { height: 1px; background: var(--line-2); }
/* 2-spaltiges internes Layout: Muellabfuhr links, Naechster Termin rechts.
   Faellt bei schmalem Viewport weich auf 1-spaltig zurueck (z.B. Mobile,
   sobald der aeussere Dashboard-Grid kollabiert). */
.fam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  align-items: start;
}
.fam-col { min-width: 0; }
.fam-cal__text { min-width: 0; }
.fam-bin-list { display: flex; flex-direction: column; gap: 6px; }
/* Event-Liste in der rechten Familie-Spalte — reused den .termine-item-Stil,
   nur der vertikale Gap ist knapper weil innerhalb einer Widget-Haelfte. */
.fam-event-list { display: flex; flex-direction: column; gap: 6px; }
/* Bin-Row als flache Card mit 3px farbiger Kategorie-Kante links.
   `--bin-color` kommt aus inline-style via JS. Der visuelle Anker der
   Event-Cards auf der rechten Seite wird hier durch den Color-Stripe
   und den dezenten Surface-Hintergrund kompensiert — die beiden Spalten
   wirken als gleichwertige Listen, obwohl sie strukturell unterschiedlich
   aufgebaut sind. */
.fam-bin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 14px;
  border-radius: 8px;
  background: var(--surf-2);
  border-left: 3px solid var(--bin-color, var(--line-3));
  transition: background 0.15s;
}
.fam-bin:hover { background: var(--surf-3, var(--surf-2)); }
.fam-bin__dot { display: none; }  /* legacy-Fallback, falls noch irgendwo gerendert */
.fam-bin__label { font-size: 13px; color: var(--text); }
.fam-bin__when {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.fam-cal { display: flex; gap: 12px; align-items: center; }
.fam-cal__date {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--accent-soft-3);
  border: 1px solid rgba(125, 211, 252, 0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fam-cal__dow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--accent);
  letter-spacing: 0.05em;
}
.fam-cal__day {
  font-size: 15px; color: var(--text-hi); font-weight: 600; margin-top: -2px;
}
.fam-cal__title { font-size: 13.5px; }
.fam-cal__meta { font-size: 11.5px; color: var(--text-muted); }
.fam-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fam-chip {
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--surf-3);
  border: 1px solid var(--line-3);
  font-size: 12px;
  color: rgba(230, 228, 223, 0.8);
}

/* ─── Admin-Panel ───────────────────────────────────────────── */
.admin-panel { max-width: 820px; }
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-2);
}
.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.admin-content { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.admin-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line-3);
  border-radius: 10px;
  background: var(--surf-3);
}
.admin-upload__input { display: none; }
.admin-upload__label {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--accent-soft-3);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.admin-upload__label:hover { background: var(--accent-soft-2, var(--accent-soft-3)); }
.admin-upload__filename { color: var(--text-muted); font-size: 12px; flex: 1 1 auto; min-width: 0; }
.admin-upload__submit {
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--accent);
  border: none;
  color: #0b1220;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.admin-upload__submit:disabled { opacity: 0.5; cursor: wait; }
.admin-upload__status { width: 100%; color: var(--text-muted); font-size: 11.5px; }

.admin-hint { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; }
.admin-section-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(230, 228, 223, 0.45);
  text-transform: uppercase;
  margin-top: 4px;
}

.admin-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.admin-list__row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-2);
}
.admin-list__row:last-child { border-bottom: none; }
.admin-list__dot {
  width: 9px; height: 9px; border-radius: 50%;
  margin-left: 3px;
}
.admin-list__label { font-size: 13.5px; color: var(--text); }
.admin-list__when {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Logs-Tab (Proxmox-Tasks) */
.admin-log__head { display: flex; justify-content: space-between; align-items: center; }
.admin-log__refresh {
  background: transparent;
  border: 1px solid var(--line-3);
  color: var(--text-muted);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.admin-log__refresh:hover { color: var(--accent); border-color: rgba(125,211,252,0.3); }
.admin-log { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.admin-log__row {
  display: grid;
  grid-template-columns: 110px 90px 1fr 120px 70px;
  gap: 10px;
  align-items: center;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
}
.admin-log__row:last-child { border-bottom: none; }
.admin-log__time { color: var(--text-muted); }
.admin-log__type { color: var(--accent); font-size: 10.5px; letter-spacing: 0.06em; }
.admin-log__id   { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-log__user { color: var(--text-muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-log__status { font-size: 10.5px; text-align: right; letter-spacing: 0.04em; }
.admin-log__status--ok       { color: #86efac; }
.admin-log__status--err      { color: #f87171; }
.admin-log__status--running  { color: #fbbf24; }

/* ─── Paperless ─────────────────────────────────────────────── */
/* Dropzone bewusst schlank gehalten, damit unterhalb 3 File-Rows sichtbar
   sind. Icon kleiner, Padding knapper, Titel/Meta eng gesetzt. */
.pl-dropzone {
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-soft-2), var(--accent-soft-1));
  border: 1.5px dashed var(--accent-soft-5);
  text-align: center;
}
.pl-dropzone > svg { width: 18px; height: 18px; }
.pl-dropzone__title { font-size: 12px; margin-top: 2px; color: var(--text-hi); }
.pl-dropzone__meta { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.pl-files { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pl-file { display: flex; align-items: center; gap: 11px; }
.pl-file__icon {
  width: 28px; height: 34px; border-radius: 4px;
  background: var(--surf-3);
  border: 1px solid var(--line-4);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pl-file__ext {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 8.5px; color: var(--text-muted);
}
.pl-file__body { flex: 1; min-width: 0; }
.pl-file__name {
  font-size: 12.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-file__tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px; color: rgba(230, 228, 223, 0.4);
  letter-spacing: 0.1em; margin-top: 2px;
}
.pl-file__status {
  font-size: 10.5px; font-family: 'Geist Mono', monospace;
  display: flex; align-items: center; gap: 4px;
}
.pl-file__status.ok      { color: var(--ok); }
.pl-file__status.pending { color: var(--warn); }

/* ─── Nexus ─────────────────────────────────────────────────── */
.nexus-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.nexus-tile {
  padding: 14px 12px;
  border-radius: 11px;
  background: var(--surf-1);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.nexus-tile:hover {
  background: var(--accent-soft-2);
  border-color: rgba(125, 211, 252, 0.2);
}
.nexus-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nexus-tile__icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft-3);
  display: grid; place-items: center;
}
.nexus-tile__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(134, 239, 172, 0.7);
}
.nexus-tile__name { font-size: 13px; color: var(--text); }
.nexus-tile__meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; color: rgba(230, 228, 223, 0.42);
  margin-top: 2px;
}

/* ─── Monitor bar ───────────────────────────────────────────── */
.monitor {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
}
.monitor__status { display: flex; align-items: center; gap: 8px; }
.monitor__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(134, 239, 172, 0.6);
}
.monitor__label { color: var(--text-soft); }
.monitor__chip {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(134, 239, 172, 0.1);
  color: var(--ok);
}
.monitor__sep { color: rgba(230, 228, 223, 0.15); }
.monitor__link { color: var(--text-muted); cursor: pointer; }
.monitor__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.monitor__stat {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; color: rgba(230, 228, 223, 0.4);
}
.monitor__ver {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; color: rgba(230, 228, 223, 0.3);
}

/* ─── BMO face · keyframes ──────────────────────────────────── */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
@keyframes blink {
  0%, 94%, 100% { transform: var(--eye-tx, translate(0, 0)) scaleY(1); }
  96%, 98%      { transform: var(--eye-tx, translate(0, 0)) scaleY(0.08); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}
@keyframes think-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-3px); }
}
@keyframes speak-mouth {
  0%, 100% { transform: scaleY(0.5) scaleX(0.9); }
  30%      { transform: scaleY(1.2) scaleX(1); }
  60%      { transform: scaleY(0.7) scaleX(1.1); }
}
@keyframes scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── BMO face · structure ──────────────────────────────────── */
.bmo-face {
  position: relative;
  animation: breathe 4s ease-in-out infinite;
}
.bmo-face[data-state="error"] { animation: none; }

.bmo-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  animation: pulse-glow 3s ease-in-out infinite;
}
.bmo-face[data-state="listening"] .bmo-aura { animation: pulse-glow 1.2s ease-in-out infinite; }
.bmo-face[data-state="speaking"]  .bmo-aura { animation: pulse-glow 0.6s ease-in-out infinite; }

.bmo-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  animation: ring-spin 2.2s linear infinite;
  display: none;
  pointer-events: none;
}
.bmo-face[data-state="thinking"] .bmo-ring { display: block; }
.bmo-ring__track {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(125, 211, 252, 0.4);
}

.bmo-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #2a3a58 0%, #15223a 40%, #08101c 80%);
  overflow: hidden;
}
.bmo-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(125, 211, 252, 0.04) 2px,
    rgba(125, 211, 252, 0.04) 3px
  );
  pointer-events: none;
}
.bmo-hl {
  position: absolute;
  top: 8%; left: 15%; right: 15%; height: 30%;
  border-radius: 50%;
  pointer-events: none;
}
.bmo-scan {
  position: absolute; inset: 0;
  height: 30%;
  animation: scan 2.5s linear infinite;
  display: none;
  pointer-events: none;
}
.bmo-face[data-state="listening"] .bmo-scan { display: block; }

.bmo-reflection {
  position: absolute;
  left: 20%; right: 20%;
  filter: blur(3px);
  pointer-events: none;
}

.bmo-inner {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bmo-inner__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bmo-eyes { display: flex; }
.bmo-eye {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bmo-eye__pupil {
  border-radius: 35%;
  transform-origin: center;
  transition: background 0.3s;
}
.bmo-face[data-state="idle"] .bmo-eye__pupil,
.bmo-face[data-state="listening"] .bmo-eye__pupil,
.bmo-face[data-state="speaking"] .bmo-eye__pupil {
  animation: blink 5.5s ease-in-out infinite;
}

/* thinking → eyes become a line */
.bmo-eye__line {
  height: 2px; border-radius: 2px;
  opacity: 0.8;
  background: var(--accent);
  display: none;
}
.bmo-face[data-state="thinking"] .bmo-eye__pupil { display: none; }
.bmo-face[data-state="thinking"] .bmo-eye__line  { display: block; }

/* error: X eyes */
.bmo-eye__x { display: none; position: relative; }
.bmo-eye__x::before,
.bmo-eye__x::after {
  content: ""; position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: var(--error);
}
.bmo-eye__x::before { transform: translateY(-50%) rotate( 45deg); }
.bmo-eye__x::after  { transform: translateY(-50%) rotate(-45deg); }
.bmo-face[data-state="error"] .bmo-eye__pupil { display: none; }
.bmo-face[data-state="error"] .bmo-eye__x { display: block; }

/* Mouths · one-per-state, toggled by [data-state] */
.bmo-mouth { margin-top: var(--mouth-gap, 17px); }
.bmo-mouth__idle,
.bmo-mouth__listening,
.bmo-mouth__thinking,
.bmo-mouth__speaking,
.bmo-mouth__error { display: none; }

.bmo-face[data-state="idle"]      .bmo-mouth__idle       { display: block; }
.bmo-face[data-state="listening"] .bmo-mouth__listening  { display: flex; }
.bmo-face[data-state="thinking"]  .bmo-mouth__thinking   { display: flex; }
.bmo-face[data-state="speaking"]  .bmo-mouth__speaking   { display: block; }
.bmo-face[data-state="error"]     .bmo-mouth__error      { display: block; }

.bmo-mouth__listening {
  gap: 2px;
  align-items: center;
  justify-content: center;
}
.bmo-wave-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent-70);
  animation: wave 0.7s ease-in-out infinite;
}
.bmo-mouth__thinking {
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.bmo-think-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent-70);
  animation: think-dot 1.1s ease-in-out infinite;
}
.bmo-mouth__speaking {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--accent-70);
  animation: speak-mouth 0.28s ease-in-out infinite;
  transform-origin: center;
}
.bmo-mouth__error {
  background: var(--error);
  border-radius: 2px;
}
