:root{color-scheme:dark;--bg:#313338;--panel:#2b2d31;--line:#3f4147;--text:#dbdee1;--muted:#949ba4;--accent:#5865f2;font-family:Inter,"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-size:15px}.hidden{display:none!important}.topbar{height:64px;position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1050px)/2));background:#232428;border-bottom:1px solid #1e1f22}.brand{display:flex;align-items:center;gap:10px;color:#f2f3f5;text-decoration:none;font-size:16px;font-weight:750}.brand img{width:32px;height:32px;object-fit:contain;border-radius:9px}.brand b{color:#aeb5ff}.private{display:flex;align-items:center;gap:9px;color:#b5bac1;font-size:13px}.private i{width:7px;height:7px;border-radius:50%;background:#57f287}.page{width:min(100% - 40px,900px);margin:34px auto}.summary{display:flex;align-items:center;gap:16px;padding:22px 24px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.summary-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#1e1f22;color:#b5bac1;font-size:27px}.summary p{margin:0 0 4px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.11em}.summary h1{margin:0 0 4px;color:#f2f3f5;font-size:21px}.summary span{color:var(--muted);font-size:13px}.chat-head{display:flex;align-items:center;gap:10px;padding:18px 5px 13px;color:#f2f3f5;font-size:17px;font-weight:700;border-bottom:1px solid var(--line)}.hash{color:var(--muted);font-size:22px}.divider{color:var(--muted)}.messages{padding:12px 0 30px}.message{display:grid;grid-template-columns:42px minmax(0,1fr);gap:0 14px;padding:9px 10px;border-radius:7px}.message:hover{background:#2e3035}.avatar{grid-row:1/4;width:40px;height:40px;border-radius:50%;object-fit:cover;background:#1e1f22}.avatar-fallback{display:grid;place-items:center;color:#fff;font-weight:700}.message-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;min-height:21px}.author{color:#f2f3f5;font-weight:650}.bot-tag{padding:1px 4px;border-radius:3px;background:#5865f2;color:white;font-size:9px;font-weight:800}.time{color:var(--muted);font-size:11px}.content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.attachment{max-width:min(100%,520px);max-height:380px;border-radius:8px;border:1px solid var(--line);object-fit:contain;background:#232428}.file{display:inline-flex;padding:8px 11px;border-radius:7px;background:#232428;color:#c9cdfb;text-decoration:none;font-size:13px}footer{display:flex;justify-content:space-between;gap:12px;padding:16px 4px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.state{min-height:50vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--muted)}.state h1{margin:0;color:#f2f3f5;font-size:21px}.state p{margin:0}.state img{width:58px;height:58px;object-fit:contain}.spinner{width:26px;height:26px;border:3px solid #4e5058;border-top-color:#c8cbff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.content a,.embed a{color:#00a8fc;text-decoration:none}.content a:hover,.embed a:hover{text-decoration:underline}.content code{padding:1px 4px;border-radius:3px;background:#232428;color:#f2f3f5;font-family:ui-monospace,monospace}
.topbar{justify-content:flex-start}
.content blockquote,.embed blockquote{margin:4px 0;padding-left:10px;border-left:3px solid #4e5058;color:#c6c8cc}.content pre{max-width:100%;margin:6px 0;padding:10px;overflow:auto;border:1px solid var(--line);border-radius:5px;background:#232428}.content pre code{padding:0;background:none;white-space:pre}
.content h1,.content h2,.content h3,.embed h1,.embed h2,.embed h3{margin:.45em 0 .25em;color:var(--text);font-weight:800;line-height:1.3}.content h1,.embed h1{font-size:1.3em}.content h2,.embed h2{font-size:1.16em}.content h3,.embed h3{font-size:1.04em}
.message{position:relative;display:block;min-height:58px;padding:9px 10px 11px 64px}.avatar{position:absolute;left:10px;top:10px;width:40px;height:40px}.message-head{min-height:21px}.content{margin-top:1px}.edited{margin-left:5px;color:var(--muted);font-size:10px}.emoji{width:1.35em;height:1.35em;object-fit:contain;vertical-align:-.32em}
.mention{padding:0 2px;border-radius:3px;background:rgba(88,101,242,.28);color:#c9cdfb;font-weight:550}.spoiler{border-radius:3px;background:#111;color:transparent;cursor:pointer}.spoiler:hover{color:var(--text)}
.embed{position:relative;max-width:600px;margin-top:8px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--embed-color,#202225);border-radius:4px;background:#2b2d31;overflow:hidden}.embed-author{display:flex;align-items:center;gap:8px;margin-bottom:7px;color:var(--text);font-size:12px;font-weight:650}.embed-author img,.embed-footer img{width:20px;height:20px;border-radius:50%;object-fit:cover}.embed-title{margin-bottom:6px;color:#00a8fc;font-weight:700}.embed-title a{color:inherit}.embed-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.embed-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin-top:10px}.embed-field{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.embed-field strong{display:block;margin-bottom:2px;color:#f2f3f5;font-size:12px}.embed-field.inline{grid-column:auto}.embed-thumbnail{float:right;width:min(80px,22%);max-height:80px;object-fit:cover;margin:0 0 8px 12px;border-radius:4px}.embed-image{display:block;max-width:100%;max-height:420px;margin-top:10px;border-radius:4px}.embed-footer{display:flex;align-items:center;gap:7px;margin-top:10px;color:var(--muted);font-size:11px}.embed-footer img{width:18px;height:18px}
.v2-container{display:grid;gap:10px;max-width:680px;margin-top:8px;padding:14px;border:1px solid var(--line);border-left:4px solid var(--line);border-radius:8px;background:#2b2d31}.v2-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.v2-separator{width:100%;height:1px;margin:2px 0;border:0;background:#41434a}.v2-row,.v2-gallery,.v2-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.v2-control{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 11px;border:1px solid #484a51;border-radius:5px;background:#383a40;color:#dbdee1;font-size:13px}.v2-control.link-button a{padding-left:8px;color:#00a8fc}.v2-gallery img{max-width:min(100%,480px);max-height:360px;border-radius:6px;object-fit:contain}.stickers{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.stickers img{width:112px;height:112px;object-fit:contain}.sticker-label{padding:8px 11px;border-radius:8px;background:#232428;color:var(--muted);font-size:12px}.reactions{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.reaction{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border:1px solid var(--line);border-radius:10px;background:#232428;color:#c9cbd0;font-size:12px}.reaction.mine{border-color:#5865f2;background:rgba(88,101,242,.2)}.audio-attachment{width:min(100%,420px);height:42px}.file{align-items:center}
@media(max-width:600px){.topbar{height:56px;padding:0 16px}.page{width:100%;margin:16px auto}.summary{margin:0 12px;padding:17px}.summary h1{font-size:18px}.chat-head{margin:0 12px;padding-top:15px}.messages{padding:8px 4px 22px}.message{padding:9px 7px 11px 51px}.avatar{left:7px;top:10px;width:34px;height:34px}.embed{padding:10px}.embed-fields{grid-template-columns:1fr}.embed-field.inline{grid-column:auto}.v2-container{padding:11px}.v2-gallery img{max-height:280px}footer{margin:0 12px;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

/* Identidade visual compartilhada com Gestão e Relatórios */
:root{color-scheme:dark;--bg:#050505;--panel:#0d0d0d;--line:rgba(255,255,255,.09);--text:#f2f2f2;--muted:#8a8a8a;--accent:#fff;font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}
body{background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
.topbar{height:68px;padding-inline:max(24px,calc((100vw - 1050px)/2));background:#080808;border-bottom:1px solid var(--line)}
.brand{font-family:Unbounded,Manrope,system-ui,sans-serif;font-size:.98rem}.brand img{background:#000;border:1px solid rgba(255,255,255,.16);box-shadow:0 4px 18px #000}.brand b{color:var(--muted)}
.page{margin-top:30px}.summary{background:linear-gradient(135deg,#171717,#0a0a0a 70%);border-color:rgba(255,255,255,.13);border-radius:18px}.summary-mark{background:#050505;color:#f2f2f2;border:1px solid var(--line)}.summary p{color:var(--muted)}.summary h1,.state h1{color:var(--text);font-family:Unbounded,Manrope,system-ui,sans-serif;letter-spacing:-.025em}.summary span,.state{color:var(--muted)}
.chat-head{color:var(--text);border-color:var(--line)}.message:hover{background:#101010}.author{color:var(--text)}.bot-tag{background:#fff;color:#050505}.time,.edited{color:var(--muted)}
.spinner{border-color:rgba(255,255,255,.16);border-top-color:#fff}.file{background:#141414;color:#eee}.content a,.embed a{color:#e1e1e1}.content a:hover,.embed a:hover{color:#fff}
.mention{background:#171717;color:#f2f2f2}.mention:hover{background:#242424}.reaction.mine{border-color:rgba(255,255,255,.4);background:#202020}.v2-control{border-color:#303030;background:#171717}.file,.v2-control{color:#eee}
footer{border-color:var(--line);color:var(--muted)}.embed,.v2-container{background:#0d0d0d;border-color:var(--line)}.embed{border-left-color:var(--embed-color,#303030)}.v2-container{border-left-color:var(--line2,#303030)}.attachment{background:#080808;border-color:var(--line)}
@media(max-width:600px){.topbar{height:60px;padding:0 16px}.page{margin-top:20px}}
