/* v0.53 – Alle Chats als Sprechblasen wie in WhatsApp/ChatGPT: eigene Nachrichten rechts, KI links.
   Gilt für Eve, Jarvis, Seiros, Worker-Gespräche und Team-Nachrichten im Verlauf (#feed).
   #feed#feed hebt die Spezifität über alle älteren Layout-Regeln (auch die mobilen Vollbild-Regeln aus v0.50). */

html body #feed#feed{display:flex!important;flex-direction:column!important;gap:10px!important}

html body #feed#feed article.message{
  --bh:var(--h,var(--rgb,97,202,255));
  position:relative;box-sizing:border-box;width:auto!important;max-width:86%!important;min-width:0;margin:0!important;
  padding:8px 13px 6px!important;border-radius:16px!important;text-align:left!important;opacity:1!important;text-shadow:none!important;
  overflow-wrap:anywhere;animation:v53In .22s ease-out}
html body #feed#feed article.message::before,html body #feed#feed article.message::after{display:none!important}
@keyframes v53In{from{opacity:0;transform:translateY(6px) scale(.98)}}

/* Eigene Nachricht: rechts, im Ton der aktiven Persona */
html body #feed#feed article.message.user{
  align-self:flex-end!important;margin-left:auto!important;border-bottom-right-radius:4px!important;
  background:linear-gradient(180deg,rgba(var(--bh),.24),rgba(var(--bh),.15))!important;
  border:1px solid rgba(var(--bh),.42)!important;box-shadow:0 4px 18px -10px rgba(var(--bh),.7)!important;color:#fff!important}

/* KI (Eve/Jarvis/Seiros/Worker): links, dunkles Glas mit feinem Leuchtrand */
html body #feed#feed article.message.assistant,html body #feed#feed article.message.team{
  align-self:flex-start!important;margin-right:auto!important;border-bottom-left-radius:4px!important;
  background:linear-gradient(180deg,rgba(14,22,34,.86),rgba(6,11,19,.86))!important;
  border:1px solid rgba(var(--bh),.24)!important;border-left:1px solid rgba(var(--bh),.24)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 6px 20px -14px rgba(0,0,0,.9)!important;backdrop-filter:blur(6px)}
html body #feed#feed article.message.team{border-style:dashed!important}

/* Kopfzeile, Text, Zeit */
html body #feed#feed article.message .speaker{display:block;margin:0 0 2px!important;font:600 9px/1.3 var(--mono,"Share Tech Mono",monospace)!important;letter-spacing:.16em!important;
  color:rgba(var(--bh),.95)!important;text-align:left!important}
html body #feed#feed article.message.user .speaker{display:none!important}
html body #feed#feed article.message>div:nth-child(2){font-size:14.5px!important;line-height:1.48!important;color:#eef3f8!important;text-shadow:none!important;white-space:pre-wrap;letter-spacing:.005em!important}
html body #feed#feed article.message.user>div:nth-child(2){color:#fff!important}
html body #feed#feed article.message .message-time{display:block;margin-top:3px!important;font-size:9px!important;opacity:.5!important;text-align:right!important;color:#c9d6e2!important}
html body #feed#feed article.message .message-time:empty{display:none}

/* Leere Hinweise und Bühnen-Wiederholungen bleiben mittig/links ohne Blase */
html body #feed#feed .empty{align-self:center!important;text-align:center!important}
html body #feed#feed .visual-replay{align-self:flex-start!important;max-width:86%}

/* Export-Auswahl (v0.49): ausgewählte Blasen bekommen einen Ring statt Hintergrund */
body.seiros-export:not(.seiros-active) #feed#feed article.message:has(.seiros-chat-check:checked){box-shadow:0 0 0 2px #55c4f1,0 0 18px -4px #55c4f1!important}

/* Seiros: violetter Ton */
body.seiros-active #feed#feed article.message{--bh:176,150,255}

/* Desktop: Verlauf ist schmal – Blasen dürfen etwas breiter werden */
@media (min-width:781px){html body #feed#feed article.message{max-width:92%!important}
  html body #feed#feed article.message>div:nth-child(2){font-size:13.5px!important}}
@media (prefers-reduced-motion:reduce){html body #feed#feed article.message{animation:none}}
