/* ═══════════════════════════════════════
   HELIA — unified.css
   Compact window, real data views
═══════════════════════════════════════ */

#S-UNI {
  position: relative; z-index: 1;
  padding: 140px 44px 160px;
  background: var(--c); overflow: hidden;
}
.UNI-IN {
  max-width: 720px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}

/* Header */
.UNI-HEAD { text-align: center; margin-bottom: 56px }
.UNI-EY { font-family: var(--M); font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--p2); margin-bottom: 14px }
.UNI-TI { font-size: clamp(32px,5vw,56px); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; color: var(--k); margin-bottom: 14px }
.UNI-TI-G { color: var(--p1) }
.UNI-SU { font-size: 15px; color: var(--m); line-height: 1.7; max-width: 460px; margin: 0 auto; font-weight: 300 }

/* ── Window ── */
.UNI-WINDOW {
  width: 100%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(200,200,200,.25);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 16px 48px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.UNI-TITLEBAR {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; flex-shrink: 0;
  background: rgba(255,255,255,.4);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.UNI-DOT { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 .5px 1px rgba(0,0,0,.1) inset }
.UNI-TITLEBAR-TXT { font-family: var(--M); font-size: 9px; color: var(--m2); letter-spacing: .5px; margin-left: 6px }

/* ── Body ── */
.UNI-BODY { display: flex !important; flex-direction: row !important; min-height: 360px }

/* ── Sidebar ── */
.UNI-SIDE {
  position: relative !important;
  width: 152px !important; min-width: 152px; flex-shrink: 0;
  padding: 18px 0;
  border-right: 1px solid rgba(0,0,0,.04);
  background: rgba(255,255,255,.2);
  display: block !important; height: auto !important;
  top: auto !important; left: auto !important; right: auto !important;
  z-index: auto !important; backdrop-filter: none !important;
  border-bottom: none !important; justify-content: initial !important;
}
.UNI-SIDE-LABEL { font-size: 12px; font-weight: 800; color: var(--k); padding: 0 14px; margin-bottom: 14px; letter-spacing: -.01em }
.UNI-NAV { display: block !important; padding: 0 8px; margin: 0 }

/* Nav — box style */
.UNI-NI {
  display: block; padding: 9px 12px;
  font-size: 13px; font-weight: 500; color: var(--m);
  cursor: pointer; position: relative;
  border-radius: 8px; border: 1.5px solid transparent;
  margin-bottom: 2px;
  transition: color .15s, background .15s, border-color .2s cubic-bezier(.16,1,.3,1), box-shadow .2s;
}
.UNI-NI:hover { color: var(--k); background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06) }
.UNI-NI.on { color: var(--k); font-weight: 700; background: rgba(255,255,255,.6); border-color: rgba(139,92,246,.15); box-shadow: 0 2px 8px rgba(139,92,246,.06) }

/* ── Content ── */
.UNI-CONTENT { flex: 1; min-width: 0; position: relative; overflow: hidden; padding: 20px }

/* ── Views ── */
.UV {
  display: none; position: absolute; inset: 20px;
  opacity: 0; transform: translateY(5px);
  transition: opacity .15s ease, transform .15s ease;
  flex-direction: column;
}
.UV.on { display: flex; opacity: 1; transform: none }

/* === VIEW HEADER === */
.UV-H {
  font-size: 15px; font-weight: 800; color: var(--k); letter-spacing: -.02em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.UV-CNT {
  font-family: var(--M); font-size: 9px; font-weight: 600;
  color: var(--m); letter-spacing: .3px; margin-left: auto;
}

/* === TABLE === */
.UV-TBL { width: 100%; border-collapse: collapse; font-size: 12px }
.UV-TBL td { padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.04); color: var(--k) }
.UV-TH td { font-family: var(--M); font-size: 9px; color: var(--m); letter-spacing: .5px; text-transform: uppercase; border-bottom-color: rgba(0,0,0,.06); padding-bottom: 10px }
.UV-TBL tr:last-child td { border-bottom: none }

/* Status tags */
.UV-ST {
  font-family: var(--M); font-size: 9px; font-weight: 600;
  padding: 2px 8px; border-radius: 5px; letter-spacing: .2px;
  background: rgba(0,0,0,.04); color: var(--m); display: inline-block;
}
.UV-ST.g { background: rgba(62,122,80,.08); color: var(--ok) }
.UV-ST.w { background: rgba(168,80,36,.08); color: var(--wa) }
.UV-ST.r { background: rgba(220,50,50,.08); color: #c33 }
.UV-ST.p { background: rgba(139,92,246,.08); color: var(--p1) }

/* === STATS ROW (Finanz, Data) === */
.UV-STATS { display: flex; gap: 8px; margin-bottom: 16px }
.UV-SBOX {
  flex: 1; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.04);
}
.UV-SV { font-size: 18px; font-weight: 800; color: var(--k); letter-spacing: -.02em; line-height: 1 }
.UV-SL { font-size: 10px; color: var(--m); margin-top: 4px; font-weight: 300 }

/* === KANBAN (Projekt) === */
.UV-KAN { display: flex; gap: 8px; flex: 1 }
.UV-KCOL { flex: 1; display: flex; flex-direction: column; gap: 6px }
.UV-KCH {
  font-family: var(--M); font-size: 9px; color: var(--m); letter-spacing: .4px;
  text-transform: uppercase; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.UV-KCH span { font-size: 9px; background: rgba(0,0,0,.04); padding: 1px 5px; border-radius: 4px }
.UV-KCD {
  padding: 10px 11px; border-radius: 8px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.04);
  font-size: 11px; font-weight: 500; color: var(--k); line-height: 1.3;
}
.UV-KCD.hi { border-color: rgba(139,92,246,.12); background: rgba(139,92,246,.04) }

/* === CONTACTS (Kontakt) === */
.UV-CLS { display: flex; flex-direction: column; gap: 6px }
.UV-CL {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.03);
}
.UV-AV {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(139,92,246,.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--M); font-size: 9px; font-weight: 700; color: var(--p1);
}
.UV-AV.c2 { background: rgba(62,122,80,.1); color: var(--ok) }
.UV-AV.c3 { background: rgba(168,80,36,.1); color: var(--wa) }
.UV-AV.c4 { background: rgba(59,130,246,.1); color: #3b82f6 }
.UV-CLI { flex: 1; min-width: 0 }
.UV-CLN { font-size: 12px; font-weight: 600; color: var(--k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.UV-CLS2 { font-size: 10px; color: var(--m); margin-top: 1px }

/* === CHAT (Chats) === */
.UV-CHAT { display: flex; flex-direction: column; gap: 8px }
.UV-MSG {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.03);
}
.UV-MSG.dark {
  background: rgba(12,11,8,.88); border-color: transparent;
  flex-direction: row-reverse;
}
.UV-MBDY { flex: 1; min-width: 0 }
.UV-MTOP { display: flex; align-items: center; gap: 6px; margin-bottom: 3px }
.UV-MN { font-size: 11px; font-weight: 700; color: var(--k) }
.UV-MSG.dark .UV-MN { color: rgba(244,242,236,.7) }
.UV-MT { font-family: var(--M); font-size: 8px; color: var(--m) }
.UV-MSG.dark .UV-MT { color: rgba(244,242,236,.3) }
.UV-MTX { font-size: 11px; color: var(--k); line-height: 1.4 }
.UV-MSG.dark .UV-MTX { color: rgba(244,242,236,.55) }

/* === DATA BARS === */
.UV-DBARS { display: flex; flex-direction: column; gap: 10px }
.UV-DROW { display: flex; align-items: center; gap: 10px }
.UV-DL { font-family: var(--M); font-size: 9px; color: var(--m); width: 36px; flex-shrink: 0; letter-spacing: .3px }
.UV-DTRACK { flex: 1; height: 20px; border-radius: 6px; background: rgba(0,0,0,.03); overflow: hidden }
.UV-DFILL { height: 100%; border-radius: 6px; background: rgba(139,92,246,.12); transition: width .4s cubic-bezier(.16,1,.3,1) }
.UV-DFILL.hi { background: rgba(139,92,246,.22) }

/* ── KI Agent ── */
.UNI-AGENT {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(139,92,246,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.02);
  opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 2;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.UNI-AGENT.show { opacity: 1 }
.UNI-AGENT-DOT { width: 5px; height: 5px; border-radius: 50%; background: var(--p1); box-shadow: 0 0 6px rgba(139,92,246,.25); animation: uniP 1.4s ease-in-out infinite }
@keyframes uniP { 0%,100%{opacity:.4;transform:scale(.8)} 50%{opacity:1;transform:scale(1.2)} }
.UNI-AGENT-TXT { font-family: var(--M); font-size: 9px; color: var(--p1); letter-spacing: .3px; font-weight: 600 }

/* ═══ Responsive ═══ */
@media(max-width:768px){
  #S-UNI{padding:80px 16px 100px}
  .UNI-TI{font-size:clamp(26px,7vw,40px)}
  .UNI-WINDOW{border-radius:14px}
  .UNI-BODY{flex-direction:column!important;min-height:auto}
  .UNI-SIDE{width:100%!important;min-width:0!important;border-right:none;padding:14px 0 10px;border-bottom:1px solid rgba(0,0,0,.04)!important}
  .UNI-SIDE-LABEL{padding:0 14px;font-size:11px;margin-bottom:6px}
  .UNI-NAV{display:flex!important;overflow-x:auto;gap:4px;padding:0 10px;scrollbar-width:none}
  .UNI-NAV::-webkit-scrollbar{display:none}
  .UNI-NI{white-space:nowrap;padding:6px 12px;font-size:12px;margin-bottom:0}
  .UNI-CONTENT{padding:14px;min-height:300px}
  .UV{inset:14px}
  .UV-STATS{flex-direction:column;gap:6px}
  .UV-KAN{flex-direction:column}
  .UV-TBL{font-size:11px}
  .UV-TBL td{padding:6px 6px}
}
