nav a[aria-current="page"]{color:var(--aqua)}
.chat-page{max-width:940px;padding-top:26px;padding-bottom:40px}
.chat-back,.chat-heading p{color:var(--muted)}
.chat-back{font-size:13px;font-weight:700}
.chat-back:hover{color:var(--aqua)}
.chat-heading h1{font-size:clamp(55px,10vw,92px);margin:10px 0}
.chat-heading p{margin:0 0 20px}
.chat-card{border:1px solid var(--edge);border-radius:12px;overflow:hidden;background:var(--panel)}
.chat-card-head,.chat-actions{padding:14px 18px;background:#2c1c3b}
.chat-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--edge)}
.chat-card-head h2{font:800 23px/1 var(--display)}
#chat-identity{font-size:13px;color:var(--aqua);overflow:hidden;text-overflow:ellipsis}
.chat-history{height:clamp(300px,52vh,560px);overflow:auto;padding:18px;background:#170f25;background-image:radial-gradient(#4d3154 1px,transparent 1px);background-size:18px 18px;scrollbar-color:#6c4776 #20142d;overflow-anchor:none}
#chat-older{display:table;margin:0 auto 16px}
.chat-empty{text-align:center;margin:clamp(65px,17vh,165px) auto 0;color:var(--muted)}
.chat-messages{margin:0;padding:0;list-style:none;display:grid;gap:12px}
.chat-message{max-width:min(76%,550px);min-width:min(120px,100%);justify-self:start;background:#382448;border:1px solid #654773;border-radius:4px 12px 12px;padding:9px 12px}
.chat-message.mine{justify-self:end;background:#174040;border-color:#337a75;border-radius:12px 4px 12px 12px}
.chat-author{color:var(--aqua);font-size:12px;overflow-wrap:anywhere}
.chat-body{margin:4px 0;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-time{display:block;text-align:right;color:#d8c9df;font-size:11px}
.chat-actions{border-top:1px solid var(--edge)}
.chat-access,.chat-composer{display:flex;align-items:center;gap:10px}
.chat-access{flex-wrap:wrap;color:var(--muted);font-size:13px}
.chat-composer textarea{flex:1;min-width:0;resize:vertical;min-height:48px;max-height:130px;background:#170f25;color:var(--ink);border:1px solid #6c4776;border-radius:7px;font:inherit;padding:8px 10px}
.chat-composer textarea:focus-visible,.chat-history:focus-visible{outline:2px solid var(--aqua);outline-offset:-2px}
.chat-field-label{display:block;font-weight:700;font-size:13px;margin:0 0 5px}
.chat-note,.chat-status{color:var(--muted);font-size:12px}
.chat-note{margin-top:8px}
.chat-status{margin-bottom:8px;color:#ffd4c9}
@media(max-width:640px){.chat-page{padding-top:18px}.chat-history{padding:12px}.chat-card-head,.chat-actions{padding:12px}.chat-message{max-width:88%}.chat-composer .button{padding-inline:12px}}
.chat-mention{color:var(--aqua);font-weight:800}.chat-mention.addressed{border-radius:4px;background:#31544e;padding:1px 3px}
.chat-mentions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.chat-mention-option{color:var(--aqua);background:#30203b;border:1px solid #704d7c;border-radius:5px;padding:5px 8px;font-size:13px;overflow-wrap:anywhere}
.chat-mention-option:hover{background:#442a52}
.chat-reactions{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.chat-reactions:has(> :not([hidden])){margin-top:5px}
.chat-reaction-count,.chat-reaction-option,.chat-reaction-add{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:28px;border:1px solid #704d7c;border-radius:12px;background:#30203b;color:var(--ink);padding:2px 6px;font:inherit;font-size:12px}
.chat-reaction-count[aria-pressed="true"],.chat-reaction-option[aria-pressed="true"]{border-color:var(--aqua);background:#254a47}
.chat-reaction-count:disabled{opacity:.8;cursor:default}
.chat-reaction-picker{min-width:0}
.chat-reaction-add{cursor:pointer;color:var(--aqua);list-style:none;min-width:28px}
.chat-reaction-add::-webkit-details-marker{display:none}
.chat-reaction-options{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.chat-reaction-option{font-size:15px;min-width:30px}
.chat-reaction-add:focus-visible{outline:2px solid var(--aqua);outline-offset:2px}
.chat-heading h1 em{color:var(--pink)}
.chat-card-head{background:linear-gradient(90deg,#3c2450,#2c1c3b)}
.chat-history{background-color:#1a1129;background-image:radial-gradient(#553260 1px,transparent 1px)}
.chat-message.mine .chat-author{color:#a4fff0}
