:root{
  --bg:#0f172a; --panel:#111c33; --bubble-bot:#1e293b; --bubble-me:#2563eb;
  --text:#e2e8f0; --muted:#94a3b8; --accent:#38bdf8; --danger:#ef4444;
  --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font:16px/1.45 system-ui, "Segoe UI", Roboto, sans-serif;
  display:flex; flex-direction:column;
}
header{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px; background:var(--panel); border-bottom:1px solid #1f2b47;
}
header h1{font-size:1.05rem; margin:0; letter-spacing:.2px}
.actions button{
  background:transparent; color:var(--muted); border:1px solid #334155;
  border-radius:999px; padding:6px 12px; font-size:.85rem; cursor:pointer;
}
.actions button:hover{color:var(--text); border-color:var(--accent)}
.actions button.danger:hover{color:#fecaca; border-color:var(--danger)}
main{flex:1; overflow-y:auto; padding:16px; max-width:760px; width:100%; margin:0 auto}
.msg{display:flex; flex-direction:column; margin:10px 0}
.msg .b{
  max-width:80%; padding:10px 14px; border-radius:var(--radius);
  white-space:pre-wrap; word-wrap:break-word;
}
.msg.bot{align-items:flex-start}
.msg.bot .b{background:var(--bubble-bot); border-bottom-left-radius:4px}
.msg.me{align-items:flex-end}
.msg.me .b{background:var(--bubble-me); border-bottom-right-radius:4px}
.msg .b.done{outline:2px solid var(--accent); outline-offset:2px}
/* TASC-Punkte: 4 kleine Chips unter der Bot-Antwort */
.tasc{display:flex; gap:6px; margin-top:6px; flex-wrap:wrap}
.tasc-chip{
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px; border-radius:999px; font-size:.72rem;
  font-weight:600; letter-spacing:.3px;
  background:#0b1222; border:1px solid #334155; color:var(--muted);
}
.tasc-chip .dot{width:8px; height:8px; border-radius:50%; background:currentColor}
.tasc-chip.t-met{color:#4ade80; border-color:#166534}
.tasc-chip.t-met .dot{background:#4ade80}
.tasc-chip.t-teil{color:#fbbf24; border-color:#92400e}
.tasc-chip.t-teil .dot{background:#fbbf24}
.tasc-chip.t-offen{color:#94a3b8; border-color:#334155}
.tasc-chip.t-offen .dot{background:#64748b}
/* Nudge: kleine Zeile, wenn die KI nachgefragt hat */
.nudged{
  margin-top:6px; font-size:.78rem; font-weight:600; color:#fbbf24;
  background:#1a1503; border:1px solid #92400e; border-radius:8px;
  padding:4px 9px; display:inline-block;
}
footer{background:var(--panel); border-top:1px solid #1f2b47; padding:10px}
form{display:flex; gap:8px; max-width:760px; margin:0 auto}
input{
  flex:1; background:#0b1222; color:var(--text);
  border:1px solid #334155; border-radius:999px; padding:10px 14px; font-size:1rem;
}
input:focus{outline:2px solid var(--accent); outline-offset:1px}
form button{
  width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:var(--accent); color:#0b1222; font-size:1.3rem;
}
form button:disabled{opacity:.4; cursor:not-allowed}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:520px){
  .msg .b{max-width:90%}
  header{padding:8px 10px}
  header h1{font-size:.95rem; white-space:nowrap}
  .actions button{padding:5px 9px; font-size:.78rem}
}
