/* Chat + Prototyp-Viewer – gemeinsam für Kundenportal und Admin-Board */
.chat{display:flex;flex-direction:column;min-height:0;height:100%;background:var(--white);border-radius:24px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.chat__head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.chat__head h2{margin:0;font-size:17px;letter-spacing:-.02em}
.chat__head p{margin:0;color:var(--muted);font-size:13px}
.chat__dot{width:9px;height:9px;border-radius:50%;background:#34c759;box-shadow:0 0 0 4px rgba(52,199,89,.15);flex:none}
.chat__log{flex:1;min-height:0;overflow-y:auto;padding:22px 20px 10px;display:flex;flex-direction:column;gap:4px;scroll-behavior:smooth}
.chat__day{align-self:center;margin:14px 0 8px;font-size:12px;font-weight:600;color:var(--muted);background:var(--paper);padding:4px 12px;border-radius:999px}
.msg{max-width:min(78%,560px);display:flex;flex-direction:column;gap:3px;margin-top:6px}
.msg + .msg--same{margin-top:0}
.msg__who{font-size:12px;color:var(--muted);font-weight:600;padding:0 6px}
.msg--same .msg__who{display:none}
.msg__bubble{padding:10px 14px;border-radius:20px;background:var(--paper);white-space:pre-wrap;word-wrap:break-word;font-size:15px;line-height:1.45}
.msg__bubble a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.msg__meta{font-size:11.5px;color:var(--muted);padding:0 8px}
.msg--mine{align-self:flex-end;align-items:flex-end}
.msg--mine .msg__bubble{background:var(--ink);color:#fff}
.msg--mine.msg--team .msg__bubble{background:var(--grad)}
.msg--theirs{align-self:flex-start}
.proto{margin-top:6px;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;padding:12px;border-radius:18px;background:var(--white);box-shadow:0 0 0 1px var(--line),0 18px 40px -26px rgba(139,92,246,.6);text-align:left;width:min(360px,100%);cursor:pointer;transition:transform .3s var(--ease)}
.proto:hover{transform:translateY(-2px)}
.proto__thumb{width:54px;height:54px;border-radius:14px;background:#000;display:grid;place-items:center;position:relative;overflow:hidden}
.proto__thumb::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 30%,rgba(79,124,255,.8),transparent 60%),radial-gradient(circle at 75% 75%,rgba(236,72,153,.7),transparent 60%)}
.proto__thumb svg{position:relative;width:24px;height:24px;color:#fff}
.proto b{display:block;font-size:14.5px;letter-spacing:-.01em;color:var(--ink)}
.proto span{display:block;font-size:12.5px;color:var(--muted)}
.proto--gone{cursor:default;opacity:.6}
.chat__empty{margin:auto;text-align:center;color:var(--muted);max-width:340px;padding:30px 10px}
.chat__empty b{display:block;color:var(--ink);font-size:18px;letter-spacing:-.02em;margin-bottom:6px}
.composer{display:flex;gap:10px;align-items:flex-end;padding:12px;border-top:1px solid var(--line)}
.composer textarea{flex:1;resize:none;max-height:160px;min-height:46px;border-radius:23px;padding:12px 18px;line-height:1.4;background:var(--paper);border:1.5px solid transparent}
.composer textarea:focus{border-color:var(--violet);background:#fff}
.composer button{flex:none;width:46px;height:46px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;transition:transform .2s,opacity .2s}
.composer button:disabled{opacity:.35}
.composer button:active{transform:scale(.92)}
.composer svg{width:20px;height:20px}

@media (max-width:640px){.msg{max-width:88%}}
.vtag{font-style:normal;font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:var(--grad);color:#fff;vertical-align:2px;margin-left:4px}
