/* Stoa · Aivertice. Estrutura de mensageiro; temas trocam só as variáveis. */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --red: #e3000b; --red-hover: #bd0009; --yellow: #ffcf00; --blue: #0055bf; --blue-deep: #0a3d8f;
  --green: #00852b; --green-hover: #006e23; --orange: #fe8a18; --black: #05131d;
  --bar: #05131d; --rail: #05131d; --bar-ink: #ffffff; --rail-ink: #ffffff;
  --active-bg: var(--yellow); --active-ink: var(--black); --accent: var(--red); --accent-hover: var(--red-hover); --accent-ink: #ffffff;
  --unread: var(--red); --unread-ink: #ffffff; --mark: var(--yellow); --send: var(--green); --send-hover: var(--green-hover); --item-radius: 7px;
  --side: #0b3a85; --side-ink: #f2f6ff; --side-muted: #a9bfe6; --side-hover: rgb(255 255 255 / .09); --side-line: rgb(255 255 255 / .1);
  --canvas: #ffffff; --surface: #ffffff; --subtle: #f4f5f7; --hover: #f7f8f9; --raised: #ffffff;
  --ink: #15191e; --muted: #5d6570; --faint: #8a919b; --line: #e3e5e8; --line-strong: #c9cdd3;
  --link: #0055bf; --focus: #0055bf;
  --mention-bg: #fff2b8; --mention-ink: #5c4300;
  --task-bg: #fffbea; --task-line: #ffcf00;
  --danger: #c4000a; --danger-bg: #fdecec;
  --shadow: 0 1px 2px rgb(5 19 29 / .06), 0 8px 24px rgb(5 19 29 / .1);
  --shadow-lg: 0 24px 64px rgb(5 19 29 / .28);
  --stud-hi: rgb(255 255 255 / .28); --brick-shade: rgb(0 0 0 / .2);
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 15px; font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bar: #03090e; --rail: #03090e;
  --side: #0a2552; --side-ink: #e9efff; --side-muted: #8ea5cf; --side-hover: rgb(255 255 255 / .07);
  --canvas: #15181c; --surface: #1a1e23; --subtle: #20252b; --hover: #1d2126; --raised: #22272d;
  --ink: #e7e9ec; --muted: #a0a7b0; --faint: #777f89; --line: #2b3037; --line-strong: #3b414a;
  --link: #6aa6ff; --focus: #6aa6ff;
  --mention-bg: rgb(255 207 0 / .17); --mention-ink: #ffd84a;
  --task-bg: rgb(255 207 0 / .07); --task-line: #c9a300;
  --danger: #ff6b6b; --danger-bg: rgb(255 80 80 / .12);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .45);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); }
#app { height: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:focus, textarea:focus, select:focus { outline: none; }
::selection { background: rgb(255 207 0 / .45); }
svg { flex-shrink: 0; }
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
code, kbd { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace; font-size: .86em; }

/* Botões */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.button:hover { background: var(--hover); }
.icon-only { width: 32px; min-height: 32px; padding: 0; color: var(--muted); }
.icon-only:hover { color: var(--ink); background: var(--subtle); }
.primary { background: var(--accent); color: var(--accent-ink); min-height: 40px; padding: 0 18px; font-size: 14.5px; box-shadow: inset 0 -3px 0 var(--brick-shade); }
.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--surface); border: 1.5px solid var(--line-strong); }
.secondary:hover { border-color: var(--ink); background: var(--surface); }
.text-button { color: var(--link); padding: 0 2px; min-height: 28px; }
.text-button:hover { background: none; text-decoration: underline; }
.tiny { width: 24px; min-height: 24px; }
.tiny .icon { width: 15px; height: 15px; }
.danger-text { color: var(--danger) !important; }
.hidden-file { display: none; }
.spinner { width: 15px; height: 15px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marca: peça 2x2 vista de cima */
.brick-mark { --c: var(--red); position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; width: 26px; height: 26px; border-radius: 6px; background: var(--c); box-shadow: inset 0 -3px 0 var(--brick-shade); }
.brick-mark i { border-radius: 50%; background: var(--c); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .45), 0 1.5px 0 rgb(0 0 0 / .28); }
.brick-mark.on-rail { --c: var(--mark); width: 38px; height: 38px; gap: 5px; padding: 6px; border-radius: 9px; }
.brand-word { display: flex; align-items: center; gap: 10px; }
.brand-word b { font-size: 22px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.brand-word > span:not(.brick-mark) { font-size: 12px; font-weight: 600; opacity: .65; padding-left: 10px; border-left: 1px solid currentColor; }

/* Avatar: peça com dois pinos */
.avatar { --tone-bg: var(--red); --tone-ink: #fff; position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; margin-top: 4px; border-radius: 7px; background: var(--tone-bg); color: var(--tone-ink); font-size: 13px; font-weight: 800; letter-spacing: .2px; box-shadow: inset 0 -3px 0 var(--brick-shade); flex-shrink: 0; }
.avatar::before, .avatar::after { content: ""; position: absolute; top: -4px; width: 30%; height: 5px; border-radius: 3px 3px 0 0; background: var(--tone-bg); box-shadow: inset 0 1.5px 0 var(--stud-hi); }
.avatar::before { left: 13%; } .avatar::after { right: 13%; }
.avatar .icon { width: 18px; height: 18px; }
.avatar[data-tone="1"] { --tone-bg: var(--blue); }
.avatar[data-tone="2"] { --tone-bg: var(--yellow); --tone-ink: var(--black); }
.avatar[data-tone="3"] { --tone-bg: var(--green); }
.avatar[data-tone="4"] { --tone-bg: var(--orange); --tone-ink: var(--black); }
.avatar[data-tone="5"] { --tone-bg: #2c3e50; }
.avatar[data-person="jarvis"] { --tone-bg: var(--blue); --tone-ink: #fff; }
.avatar[data-person="friday"] { --tone-bg: var(--red); --tone-ink: #fff; }
.avatar[data-person="oracle"] { --tone-bg: var(--yellow); --tone-ink: var(--black); }
.avatar[data-person="ultron"] { --tone-bg: var(--green); --tone-ink: #fff; }
.avatar[data-person="argos"] { --tone-bg: var(--orange); --tone-ink: var(--black); }
.avatar.small { width: 28px; height: 28px; font-size: 11px; border-radius: 6px; margin-top: 3px; }
.avatar.small::before, .avatar.small::after { height: 4px; top: -3px; }
.avatar.tiny-avatar { width: 20px; height: 20px; margin-top: 0; font-size: 9px; border-radius: 5px; box-shadow: inset 0 -2px 0 var(--brick-shade); }
.avatar.tiny-avatar::before, .avatar.tiny-avatar::after { display: none; }
.avatar.tiny-avatar .icon { width: 12px; height: 12px; }

/* Casca */
.app-shell { display: grid; grid-template-columns: 70px 264px minmax(0, 1fr) 380px; grid-template-rows: 48px minmax(0, 1fr); height: 100dvh; overflow: hidden; background: var(--rail); }
.app-shell.without-context { grid-template-columns: 70px 264px minmax(0, 1fr) 0; }
.app-shell.without-context .context { display: none; }

.global-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; background: var(--bar); color: var(--bar-ink); z-index: 15; }
.global-bar .brand-word { flex: 1 1 0; min-width: 0; }
.global-bar .brand-word b { font-size: 20px; }
.global-bar .brick-mark { width: 24px; height: 24px; padding: 4px; gap: 3px; }
.global-search { width: min(46vw, 620px); height: 32px; min-height: 32px; justify-content: flex-start; padding: 0 12px; background: color-mix(in srgb, var(--bar-ink) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bar-ink) 12%, transparent); border-radius: 8px; color: color-mix(in srgb, var(--bar-ink) 80%, transparent); font-weight: 500; font-size: 13.5px; }
.global-search:hover { background: color-mix(in srgb, var(--bar-ink) 17%, transparent); }
.global-search .icon { width: 16px; height: 16px; }
.search-shortcut { margin-left: -64px; margin-right: 32px; pointer-events: none; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--bar-ink) 12%, transparent); color: color-mix(in srgb, var(--bar-ink) 70%, transparent); font-size: 11px; }
.global-actions { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.global-actions .icon-only { color: color-mix(in srgb, var(--bar-ink) 75%, transparent); }
.global-actions .icon-only:hover { background: color-mix(in srgb, var(--bar-ink) 12%, transparent); color: var(--bar-ink); }
.connection { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; font-size: 12.5px; color: color-mix(in srgb, var(--bar-ink) 65%, transparent); }
.connection::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.connection.online::before { background: #2fd164; }
.profile-button { width: 36px; }
.mobile-menu, .mobile-close { display: none; }

/* Trilho */
.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 14px; background: var(--rail); color: var(--rail-ink); }
.workspace-symbol { display: grid; place-items: center; margin-bottom: 10px; }
.rail-item { display: flex; flex-direction: column; gap: 4px; width: 58px; min-height: 58px; padding: 6px 0; border-radius: 10px; color: color-mix(in srgb, var(--rail-ink) 72%, transparent); }
.rail-item .icon { width: 36px; height: 36px; padding: 8px; border-radius: 9px; transition: background .12s; }
.rail-item:hover { background: none; color: var(--rail-ink); }
.rail-item:hover .icon { background: color-mix(in srgb, var(--rail-ink) 12%, transparent); }
.rail-item.active { color: var(--rail-ink); }
.rail-item.active .icon { background: var(--active-bg); color: var(--active-ink); }
.rail-caption { font-size: 11px; font-weight: 600; letter-spacing: .1px; }
.rail-bottom { margin-top: auto; }
.rail-profile { width: 40px; min-height: 40px; }

/* Barra lateral */
.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--side); color: var(--side-ink); border-top-left-radius: 12px; }
.workspace-heading { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--side-line); }
.workspace-heading strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.workspace-heading small { display: block; font-size: 12px; color: var(--side-muted); margin-top: 2px; }
.workspace-monogram { display: none; }
.sidebar-shortcuts { display: grid; gap: 1px; padding: 10px 8px 6px; }
.sidebar-link, .channel-link, .agent-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 0 10px; border-radius: var(--item-radius); font-size: 15px; font-weight: 500; color: var(--side-muted); justify-content: flex-start; }
.sidebar-link .icon, .channel-link .icon { width: 17px; height: 17px; opacity: .85; }
.sidebar-link:hover, .channel-link:hover, .agent-link:hover { background: var(--side-hover); color: var(--side-ink); }
.sidebar-link.selected { color: var(--side-ink); background: var(--side-hover); font-weight: 650; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 16px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--side-ink) 22%, transparent) transparent; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 4px 10px; font-size: 13px; font-weight: 700; color: var(--side-muted); }
.section-heading .icon-only { color: var(--side-muted); }
.section-heading .icon-only:hover { background: var(--side-hover); color: var(--side-ink); }
.channel-list { display: grid; gap: 1px; }
.channel-link > span:not(.direct-initial):not(.avatar):not(.call-dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-link:has(.unread) { color: var(--side-ink); font-weight: 750; }
.channel-link.active { background: var(--active-bg); color: var(--active-ink); font-weight: 750; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .14); }
.channel-link.active .icon { opacity: 1; }
.unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--unread); color: var(--unread-ink); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.direct-initial { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: color-mix(in srgb, var(--side-ink) 16%, transparent); color: var(--side-ink); font-size: 9.5px; font-weight: 800; }
.channel-link.active .direct-initial { background: color-mix(in srgb, var(--active-ink) 15%, transparent); color: var(--active-ink); }
.agent-link > span:not(.avatar) { flex: 1; text-align: left; }
.agent-link small { font-size: 11.5px; color: var(--side-muted); opacity: .8; }
.sidebar-empty { padding: 2px 10px 6px; font-size: 12.5px; color: var(--side-muted); opacity: .8; }
.archived-list { margin-top: 14px; }
.archived-list summary { padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--side-muted); cursor: pointer; border-radius: 7px; }
.archived-list summary:hover { background: var(--side-hover); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--side-line); }
.invite-button { width: 100%; min-height: 38px; background: color-mix(in srgb, var(--side-ink) 9%, transparent); color: var(--side-ink); border: 1px dashed color-mix(in srgb, var(--side-ink) 35%, transparent); }
.invite-button:hover { background: color-mix(in srgb, var(--side-ink) 15%, transparent); border-style: solid; }
.sidebar-footer .privacy-note { color: var(--side-muted); }
.product-signature { display: none; }

/* Área de trabalho */
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); }
.app-shell.without-context .workspace { border-top-right-radius: 0; }
.channel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 16px 8px 22px; }
.channel-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.channel-icon .icon { width: 20px; height: 20px; color: var(--muted); }
.channel-title h1 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.channel-title > div { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.channel-title p { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; border-left: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.summary-button { border: 1.5px solid var(--line-strong); }
.summary-button .icon { color: var(--orange); }
.summary-button:hover { border-color: var(--ink); background: var(--surface); }
.channel-tabs { display: flex; align-items: stretch; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tab { min-height: 38px; border-radius: 0; padding: 0 10px; color: var(--muted); font-weight: 600; font-size: 13.5px; box-shadow: inset 0 -3px 0 transparent; }
.tab:hover { background: none; color: var(--ink); }
.tab.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.tab .icon { width: 16px; height: 16px; }
.channel-privacy { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--faint); }
.channel-privacy .icon { width: 14px; height: 14px; }

/* Conversa */
.transcript { flex: 1; overflow-y: auto; padding: 0 0 18px; scroll-behavior: auto; }
.transcript:focus-visible { outline: none; }
.channel-intro { padding: 36px 22px 18px; }
.intro-symbol { position: relative; display: inline-grid; place-items: center; width: 58px; height: 52px; margin: 8px 0 16px; border-radius: 9px; background: var(--yellow); color: var(--black); box-shadow: inset 0 -5px 0 rgb(0 0 0 / .14); }
.intro-symbol::before, .intro-symbol::after { content: ""; position: absolute; top: -7px; width: 16px; height: 8px; border-radius: 4px 4px 0 0; background: var(--yellow); box-shadow: inset 0 2px 0 var(--stud-hi); }
.intro-symbol::before { left: 9px; } .intro-symbol::after { right: 9px; }
.intro-symbol .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.avatar.intro-avatar { width: 58px; height: 52px; margin: 10px 0 16px; border-radius: 9px; font-size: 20px; box-shadow: inset 0 -5px 0 var(--brick-shade); }
.avatar.intro-avatar::before, .avatar.intro-avatar::after { top: -7px; height: 8px; width: 16px; }
.avatar.intro-avatar::before { left: 9px; } .avatar.intro-avatar::after { right: 9px; }
.avatar.intro-avatar .icon { width: 26px; height: 26px; }
.channel-intro h2 { font-size: 28px; font-weight: 850; letter-spacing: -.7px; }
.channel-intro p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 640px; }
.day-divider { position: relative; display: flex; justify-content: center; margin: 18px 0 6px; }
.day-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.day-divider span { position: relative; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); font-size: 12.5px; font-weight: 700; }
.first-message, .loading-state { padding: 28px 22px; color: var(--muted); text-align: center; }

.message { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 8px 22px 6px; transition: background .08s; }
.message:hover, .message:focus-within { background: var(--hover); }
.message:focus-visible { outline: none; box-shadow: inset 3px 0 0 var(--focus); }
.message.grouped { padding-top: 1px; }
.message.grouped > .avatar { visibility: hidden; height: 0; }
.message.grouped .message-meta { display: none; }
.message:has(.message-flags) { background: var(--task-bg); box-shadow: inset 4px 0 0 var(--task-line); }
.message.highlighted { background: var(--mention-bg); }
.message-content { min-width: 0; }
.message-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.message-meta strong { font-size: 15px; font-weight: 800; }
.message-meta time { font-size: 12px; color: var(--faint); }
.message-meta small { font-size: 12px; color: var(--faint); }
.agent-tag { align-self: center; padding: 1px 6px; border-radius: 4px; background: var(--subtle); border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.message-flags { display: flex; gap: 12px; margin-bottom: 3px; }
.message-flags span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.message-flags .icon { width: 14px; height: 14px; color: var(--red); }
.message-text { font-size: 15px; line-height: 1.52; overflow-wrap: anywhere; }
.message-text p { white-space: pre-wrap; }
.message-text .text-gap { margin-top: 8px; }
.message-text .text-heading { font-weight: 750; }
.message-text .text-item { position: relative; padding-left: 18px; }
.message-text .text-item::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); box-shadow: inset 0 -1.5px 0 rgb(0 0 0 / .2); }
.agent-message .message-text .text-item::before { background: var(--tone-dot, var(--blue)); }
.gutter-time { grid-column: 1; grid-row: 1; align-self: start; padding-top: 3px; font-size: 11px; color: var(--faint); text-align: right; opacity: 0; }
.message.grouped:hover .gutter-time, .message.grouped:focus-within .gutter-time { opacity: 1; }
.message.grouped > .message-content { grid-column: 2; grid-row: 1; }
.message.grouped > .avatar { position: absolute; }
.deleted-message .message-text { color: var(--faint); font-style: italic; }
.mention { padding: 0 3px; border-radius: 4px; background: var(--mention-bg); color: var(--mention-ink); font-weight: 650; }
.quoted-message { display: grid; gap: 2px; margin: 4px 0 6px; padding: 6px 12px; border-left: 4px solid var(--yellow); border-radius: 0 8px 8px 0; background: var(--subtle); font-size: 13.5px; color: var(--muted); }
.quoted-message strong { color: var(--ink); font-size: 13px; }
.reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.reaction { min-height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.reaction.mine { border-color: var(--blue); background: rgb(0 85 191 / .08); color: var(--link); }
.thread-link { min-height: 28px; margin: 4px 0 0 -8px; padding: 0 8px; color: var(--link); font-size: 13px; font-weight: 700; border: 1px solid transparent; }
.thread-link .icon { width: 15px; height: 15px; }
.thread-link:hover { background: var(--surface); border-color: var(--line); }
.message-tools { position: absolute; top: -16px; right: 18px; display: flex; gap: 1px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); box-shadow: var(--shadow); opacity: 0; pointer-events: none; z-index: 3; }
.message:hover .message-tools, .message:focus-within .message-tools { opacity: 1; pointer-events: auto; }
.message-tools .icon-only { width: 30px; min-height: 30px; border-radius: 6px; }
.message-tools .icon { width: 17px; height: 17px; }
.transcript > .message:nth-child(2) .message-tools { top: 4px; }

/* Arquivos */
.attachment { display: flex; align-items: center; gap: 12px; max-width: 380px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.attachment:hover { text-decoration: none; border-color: var(--line-strong); }
.attachment > .icon:first-child { width: 34px; height: 34px; padding: 7px; border-radius: 7px; background: var(--blue); color: #fff; }
.attachment > .icon:last-child { color: var(--muted); margin-left: auto; }
.attachment span { display: grid; min-width: 0; }
.attachment strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment small { font-size: 12px; color: var(--muted); }
.image-attachment { display: grid; grid-template-columns: 1fr auto; padding: 0; overflow: hidden; }
.image-attachment img { grid-column: 1 / -1; display: block; width: 100%; max-height: 300px; object-fit: cover; background: var(--subtle); }
.image-attachment span { padding: 8px 12px; }
.image-attachment > .icon:last-child { margin: 0 12px 0 0; align-self: center; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 22px; }
.files-grid .attachment { max-width: none; margin: 0; }

/* Compositor */
.composer { padding: 0 20px 14px; }
.compose-frame { border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.compose-frame:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 207 0 / .35); }
.composer textarea { display: block; width: 100%; min-height: 46px; max-height: 38vh; field-sizing: content; resize: none; border: 0; background: transparent; padding: 12px 14px 4px; font-size: 15px; line-height: 1.5; }
.composer textarea::placeholder { color: var(--faint); }
.compose-toolbar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px; }
.compose-toolbar .icon-only { width: 30px; min-height: 30px; }
.compose-tip { margin-left: 6px; font-size: 12px; color: var(--faint); }
.send-button { display: grid; place-items: center; margin-left: auto; width: 38px; height: 32px; border-radius: 8px; background: var(--send); color: #fff; box-shadow: inset 0 -3px 0 var(--brick-shade); }
.send-button:hover { background: var(--send-hover); }
.send-button .icon { width: 17px; height: 17px; }
.compose-banner { display: flex; align-items: center; gap: 8px; margin: 6px 6px 0; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--mention-bg); color: var(--mention-ink); font-size: 13px; font-weight: 650; }
.compose-banner span { flex: 1; }
.compose-banner .icon-only { color: inherit; }
.pending-attachment { display: inline-flex; align-items: center; gap: 8px; margin: 2px 10px 2px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); font-size: 13px; font-weight: 600; }
.compose-footer { display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px 0; font-size: 12px; color: var(--faint); }
.compose-footer b { color: var(--muted); font-weight: 700; }
.compose-identity { display: flex; align-items: center; gap: 7px; }
.archived-banner { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 20px 16px; padding: 14px; border-radius: 10px; background: var(--subtle); color: var(--muted); font-size: 14px; }

/* Painel de contexto e fio */
.context { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); }
.context-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--line); }
.context-header h2 { font-size: 17px; font-weight: 800; }
.context-header p { font-size: 13px; color: var(--muted); }
.thread-messages { flex: 1; overflow-y: auto; padding: 12px 0; }
.thread-messages .message { padding: 8px 16px 6px; }
.thread-messages .message-tools { right: 12px; }
.thread-divider { display: flex; align-items: center; gap: 10px; margin: 8px 16px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.thread-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.thread-composer { padding: 0 12px 12px; }
.context-scroll { flex: 1; overflow-y: auto; }
.channel-about { padding: 20px 18px; border-bottom: 1px solid var(--line); }
.channel-about .intro-symbol { width: 46px; height: 40px; margin: 6px 0 12px; }
.channel-about .intro-symbol::before, .channel-about .intro-symbol::after { width: 12px; height: 6px; top: -5px; }
.channel-about .intro-symbol .icon { width: 20px; height: 20px; }
.channel-about h3 { font-size: 18px; font-weight: 800; }
.channel-about p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.privacy-note .icon { width: 14px; height: 14px; }
.context-section { display: grid; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); }
.context-label { display: flex; align-items: center; gap: 8px; }
.context-label h3 { font-size: 14px; font-weight: 800; }
.count-pill { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--subtle); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.calm-empty { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 10px; background: var(--subtle); font-size: 13.5px; }
.calm-empty .icon { color: var(--green); margin-bottom: 4px; }
.calm-empty small { color: var(--muted); font-size: 12.5px; }
.subtle-link { justify-content: flex-start; padding: 0; min-height: 26px; color: var(--link); font-size: 13px; }
.subtle-link:hover { background: none; text-decoration: underline; }
.subtle-link .icon { order: 2; width: 14px; height: 14px; }
.summary-section { justify-items: start; background: linear-gradient(180deg, var(--task-bg), transparent); }
.summary-section > .icon { width: 22px; height: 22px; color: var(--orange); }
.summary-section h3 { font-size: 14px; font-weight: 800; }
.summary-section p { color: var(--muted); font-size: 13.5px; }

/* Tarefas */
.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.task-row.compact { padding: 8px 0; border-bottom: 0; }
.task-check { display: grid; place-items: center; width: 22px; height: 22px; min-height: 22px; margin-top: 1px; padding: 0; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.task-check > span { display: none; }
.task-check:hover { border-color: var(--green); background: rgb(0 133 43 / .08); }
.task-check.checked { border-color: var(--green); background: var(--green); color: #fff; }
.task-check .icon { width: 16px; height: 16px; }
.task-copy { flex: 1; display: grid; gap: 3px; min-width: 0; }
.task-copy strong { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.task-copy small { font-size: 12.5px; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.channel-chip { padding: 1px 7px; border-radius: 5px; background: var(--subtle); border: 1px solid var(--line); font-weight: 650; color: var(--ink); }
.task-owner { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.task-due { padding: 1px 7px; border-radius: 5px; background: var(--mention-bg); color: var(--mention-ink); font-weight: 700; }
.task-row.done .task-copy strong { color: var(--faint); text-decoration: line-through; }

/* Páginas: mesa e equipe */
.page-scroll { flex: 1; overflow-y: auto; padding: 36px clamp(20px, 4vw, 56px) 48px; }
.page-title { display: grid; gap: 6px; justify-items: start; margin-bottom: 26px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.page-title h1 { font-size: 32px; font-weight: 850; letter-spacing: -.9px; }
.page-title p { color: var(--muted); font-size: 15px; }
.page-title .primary { margin-top: 10px; }
.desk-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.desk-stats > div { position: relative; display: grid; min-width: 180px; padding: 16px 20px 14px; border-radius: 10px; color: #fff; background: var(--blue); box-shadow: inset 0 -5px 0 var(--brick-shade); }
.desk-stats > div:nth-child(2) { background: var(--green); }
.desk-stats > div::before, .desk-stats > div::after { content: ""; position: absolute; top: -7px; left: 18px; width: 26px; height: 8px; border-radius: 4px 4px 0 0; background: inherit; box-shadow: inset 0 2px 0 var(--stud-hi); }
.desk-stats > div::after { left: 62px; }
.desk-stats b { font-size: 34px; font-weight: 850; line-height: 1; }
.desk-stats span { font-size: 13px; font-weight: 600; opacity: .85; margin-top: 4px; }
.list-heading { max-width: 900px; display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.list-heading h2 { font-size: 18px; font-weight: 800; }
.list-heading span { color: var(--muted); font-size: 13px; }
.task-board { max-width: 900px; }
.completed-tasks { margin-top: 24px; max-width: 900px; }
.completed-tasks summary { padding: 10px 0; font-weight: 700; color: var(--muted); cursor: pointer; }
.people-section { margin-top: 28px; }
.people-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.section-description { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.person-card { display: grid; justify-items: start; gap: 6px; padding: 20px 18px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.person-card .avatar { width: 48px; height: 48px; font-size: 16px; margin: 6px 0 6px; border-radius: 9px; }
.person-card .avatar::before, .person-card .avatar::after { height: 7px; top: -6px; }
.person-card h3 { font-size: 16px; font-weight: 800; }
.person-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.you-badge { padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--black); font-size: 12px; font-weight: 800; }

/* Estados */
.empty-state { display: grid; justify-items: center; gap: 8px; max-width: 420px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.empty-icon { position: relative; display: grid; place-items: center; width: 60px; height: 52px; margin: 8px 0 10px; border-radius: 9px; background: var(--yellow); color: var(--black); box-shadow: inset 0 -5px 0 rgb(0 0 0 / .14); }
.empty-icon::before, .empty-icon::after { content: ""; position: absolute; top: -7px; width: 16px; height: 8px; border-radius: 4px 4px 0 0; background: var(--yellow); box-shadow: inset 0 2px 0 var(--stud-hi); }
.empty-icon::before { left: 10px; } .empty-icon::after { right: 10px; }
.empty-icon .icon { width: 26px; height: 26px; }
.empty-state h2 { font-size: 20px; font-weight: 800; }
.empty-state p { color: var(--muted); font-size: 14.5px; }
.empty-state .primary { margin-top: 10px; }
.fatal-state, .initial-loading { display: grid; place-content: center; justify-items: center; gap: 14px; height: 100%; padding: 24px; text-align: center; }
.initial-loading img { width: 56px; height: 56px; }
.initial-loading span { color: var(--muted); }
.fatal-state h1 { font-size: 26px; font-weight: 850; }
.fatal-state p { color: var(--muted); }

/* Menu flutuante, modal, avisos */
.popover { position: fixed; z-index: 60; width: 240px; max-width: calc(100vw - 16px); padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--raised); box-shadow: var(--shadow); }
.menu-item { width: 100%; justify-content: flex-start; min-height: 36px; padding: 0 10px; font-weight: 550; font-size: 14px; }
.menu-item:hover, .menu-item:focus-visible { background: var(--blue); color: #fff; outline: none; }
.menu-item.danger-text:hover { background: var(--danger); color: #fff !important; }
.modal { width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgb(5 19 29 / .58); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 18px 6px 24px; }
.modal-header h2 { font-size: 21px; font-weight: 850; letter-spacing: -.4px; }
.modal-header p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.modal-form { display: grid; gap: 14px; padding: 12px 24px 24px; }
.form-field { display: grid; gap: 6px; }
.form-field > span { font-size: 13.5px; font-weight: 700; }
.form-field input, .form-field select { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 9px; background: var(--surface); font-size: 15px; }
.form-field input:focus, .form-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(0 85 191 / .18); }
.form-field input:disabled { background: var(--subtle); color: var(--muted); }
.form-help { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.form-help .icon { width: 15px; height: 15px; }
.form-error { padding: 10px 12px; border-radius: 9px; background: var(--danger-bg); color: var(--danger); font-size: 13.5px; font-weight: 600; }
.form-submit { width: 100%; height: 46px; justify-content: space-between; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 24px; }
.confirm-actions .primary { min-height: 36px; }
.invite-channels { display: grid; gap: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.invite-channels strong { font-size: 13.5px; margin-bottom: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 6px; border-radius: 7px; cursor: pointer; font-size: 14.5px; }
.checkbox-row:hover { background: var(--hover); }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--red); }
.checkbox-row .icon { width: 15px; height: 15px; color: var(--muted); }
.invite-success { display: grid; justify-items: start; gap: 4px; }
.invite-success > .icon { width: 30px; height: 30px; color: var(--green); }
.invite-success h3 { font-size: 17px; font-weight: 800; }
.invite-success p { color: var(--muted); font-size: 14px; }
.task-preview { padding: 10px 12px; border-left: 4px solid var(--yellow); border-radius: 0 8px 8px 0; background: var(--subtle); font-size: 14px; }
.account-content { display: grid; justify-items: center; gap: 10px; padding: 14px 24px 26px; text-align: center; }
.account-content .avatar { width: 60px; height: 60px; font-size: 20px; border-radius: 11px; margin-top: 10px; }
.account-content .avatar::before, .account-content .avatar::after { height: 8px; top: -7px; }
.account-content h3 { font-size: 19px; font-weight: 800; }
.account-content p { color: var(--muted); margin-bottom: 8px; }
.account-content .secondary { width: 100%; min-height: 40px; }
.install-instructions { display: grid; gap: 12px; padding: 12px 24px 24px; }
.install-instructions > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; }
.install-instructions > div .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--blue); }
.install-instructions h3 { font-size: 14.5px; font-weight: 800; }
.install-instructions p { color: var(--muted); font-size: 13.5px; }

.totp-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.totp-qr { justify-self: center; width: 200px; height: 200px; padding: 8px; border-radius: 8px; background: #fff; }
.totp-qr svg { display: block; width: 100%; height: 100%; }
.totp-key code { padding: 2px 6px; border-radius: 4px; background: var(--subtle); color: var(--ink); letter-spacing: 1px; }

/* Busca */
.search-modal { width: min(680px, calc(100vw - 32px)); margin-top: 9vh; }
.search-content { display: grid; gap: 10px; padding: 8px 24px 20px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 11px; box-shadow: 0 0 0 4px rgb(255 207 0 / .35); }
.search-field .icon { color: var(--muted); }
.search-input { flex: 1; height: 100%; border: 0; background: none; font-size: 16.5px; }
.search-help { font-size: 12.5px; color: var(--muted); }
.search-help code { padding: 1px 6px; border-radius: 5px; background: var(--subtle); color: var(--ink); }
.search-results { display: grid; max-height: 56vh; overflow-y: auto; margin: 0 -10px; }
.search-results .empty-state { padding: 30px 16px; }
.search-result { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 11px 12px; border-radius: 9px; }
.search-result:hover, .search-result:focus-visible { background: var(--hover); }
.search-result small { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.search-result mark { padding: 0 2px; border-radius: 3px; background: var(--mention-bg); color: var(--mention-ink); font-weight: 700; }
.search-result p { grid-column: 1; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.search-result > .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--faint); }

.toasts { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: grid; gap: 8px; justify-items: end; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 11px 16px; border-radius: 10px; background: var(--black); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); }
.toast .icon { color: #2fd164; }
.toast-error { background: var(--danger); }
.toast-error .icon { color: #fff; }

/* Entrada */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100dvh; background: var(--canvas); }
.auth-story { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 36px clamp(28px, 5vw, 72px); overflow: hidden; background: var(--blue); color: #fff; }
.auth-story .brand-word b { font-size: 24px; }
.auth-story-copy { display: grid; gap: 18px; margin-top: auto; }
.auth-story .eyebrow { color: var(--yellow); }
.auth-story h1 { font-size: clamp(40px, 4.6vw, 66px); font-weight: 900; letter-spacing: -2.2px; line-height: 1.02; }
.auth-story h1 em { font-style: normal; color: var(--yellow); }
.auth-story-copy p { max-width: 440px; font-size: 17px; line-height: 1.5; color: rgb(255 255 255 / .82); }
.auth-story > footer { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgb(255 255 255 / .7); }
.color-dots { display: flex; gap: 6px; }
.color-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .2); }
.color-dots i:nth-child(2) { background: var(--red); } .color-dots i:nth-child(3) { background: var(--green); } .color-dots i:nth-child(4) { background: #fff; }
.block-art { display: grid; gap: 0; justify-items: start; margin-bottom: auto; }
.brick-row { position: relative; display: flex; gap: 2px; }
.brick-row:nth-child(1) { z-index: 4; } .brick-row:nth-child(2) { z-index: 3; } .brick-row:nth-child(3) { z-index: 2; } .brick-row:nth-child(4) { z-index: 1; }
.brick-row:nth-child(even) { margin-left: 26px; }
.brick { --c: var(--yellow); --ink-c: var(--black); position: relative; display: flex; align-items: center; height: 50px; width: calc(var(--studs) * 52px - 2px); padding: 0 14px; border-radius: 6px; background: var(--c); color: var(--ink-c); box-shadow: inset 0 -7px 0 var(--brick-shade), inset 0 2px 0 var(--stud-hi), 0 6px 14px rgb(0 0 0 / .18); }
.brick i { display: none; }
.brick::before { content: ""; position: absolute; top: -9px; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 12px, var(--c) 12px 38px, transparent 38px 52px); border-radius: 4px 4px 0 0; }
.brick span { font-size: 14px; font-weight: 850; letter-spacing: -.2px; }
.brick-red { --c: var(--red); --ink-c: #fff; }
.brick-blue { --c: #2a7ee8; --ink-c: #fff; }
.brick-green { --c: var(--green); --ink-c: #fff; }
.brick-white { --c: #f4f4f1; }
.brick-orange { --c: var(--orange); }
.brick-black { --c: var(--black); --ink-c: #fff; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; }
.auth-mobile-brand { display: none; }
.auth-card { width: min(410px, 100%); margin: auto 0; }
.auth-greeting { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--yellow); color: var(--black); font-size: 11.5px; font-weight: 850; letter-spacing: 1px; }
.auth-card h2 { margin-top: 16px; font-size: 34px; font-weight: 900; letter-spacing: -1.2px; }
.auth-description { margin: 8px 0 24px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.auth-form { display: grid; gap: 16px; }
.auth-form .form-submit { margin-top: 6px; }
.auth-note { color: var(--muted); font-size: 13px; text-align: center; }
.auth-footer { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12.5px; }
.auth-footer .icon { width: 14px; height: 14px; }


/* Vértice Aivertice: marca da casa em todos os temas */
.vertex-mark { width: 26px; height: 26px; color: #bfa46f; }
.global-bar .vertex-mark { width: 24px; height: 24px; }
.brand-word > span:not(.brick-mark) { letter-spacing: 2.2px; font-size: 10.5px; font-weight: 700; }
.vertex-mark.on-rail { display: none; width: 40px; height: 40px; }
[data-skin="aivertice"] .vertex-mark.on-rail { display: block; }
[data-skin="aivertice"] .brick-mark.on-rail { display: none; }

/* Aivertice: preto editorial e ouro da marca */
:root[data-skin="aivertice"], [data-skin="aivertice"], :root[data-theme="dark"][data-skin="aivertice"], [data-theme="dark"] [data-skin="aivertice"] { color-scheme: dark;
  /* paleta do site aivertice.ai */
  --gold: #bfa46f; --gold-soft: #d4b88a; --gold-deep: #bfa46f; --gold-line: rgb(191 164 111 / .4); --site-line: rgb(255 255 255 / .1); --ghost-line: rgb(255 255 255 / .2); --head: #ffffff; --statement: #e8e2d5;
  --bar: #050505; --rail: #030303; --bar-ink: #ededed; --rail-ink: #ededed; --side: #030303; --side-ink: #ededed; --side-muted: #999999; --side-hover: rgb(255 255 255 / .04); --side-line: rgb(255 255 255 / .1);
  --active-bg: rgb(255 255 255 / .05); --active-ink: #ffffff; --accent: #bfa46f; --accent-hover: #d4b88a; --accent-ink: #050505; --unread: #bfa46f; --unread-ink: #050505; --mark: #bfa46f; --send: #bfa46f; --send-hover: #d4b88a; --item-radius: 2px;
  --canvas: #050505; --surface: #000000; --subtle: #0b0b0b; --hover: rgb(255 255 255 / .025); --raised: #0b0b0b; --ink: #ededed; --muted: #999999; --faint: #777777; --line: rgb(255 255 255 / .1); --line-strong: rgb(255 255 255 / .2); --link: #d4b88a; --focus: #bfa46f;
  --mention-bg: rgb(191 164 111 / .14); --mention-ink: #d4b88a; --task-bg: rgb(191 164 111 / .05); --task-line: #bfa46f; --danger: #ff6b6b; --danger-bg: rgb(255 107 107 / .1);
  --shadow: 0 1px 0 rgb(255 255 255 / .04), 0 18px 40px rgb(0 0 0 / .6); --vertex-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M13 51 L32 13 L51 51' stroke='%23bfa46f' stroke-width='1.2' stroke-linejoin='round' opacity='.5'/%3E%3Cpath d='M21 43 L32 25M43 43 L32 25' stroke='%23bfa46f' stroke-width='.6' opacity='.3'/%3E%3Ccircle cx='32' cy='13' r='1.4' fill='%23bfa46f' opacity='.6'/%3E%3C/svg%3E");
  font-family: "Instrument Sans", "Segoe UI", Roboto, system-ui, sans-serif; word-spacing: .08em; }
[data-skin="aivertice"] .global-bar { border-bottom: 1px solid rgb(191 164 111 / .16); }
[data-skin="aivertice"] .brand-word b, [data-skin="aivertice"] .workspace-heading strong, [data-skin="aivertice"] .channel-title h1, [data-skin="aivertice"] .channel-intro h2, [data-skin="aivertice"] .page-title h1, [data-skin="aivertice"] .modal-header h2, [data-skin="aivertice"] .context-header h2, [data-skin="aivertice"] .empty-state h2, [data-skin="aivertice"] .auth-card h2, [data-skin="aivertice"] .auth-story h1, [data-skin="aivertice"] .list-heading h2, [data-skin="aivertice"] .people-section h2, [data-skin="aivertice"] .channel-about h3, [data-skin="aivertice"] .desk-stats b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.2px; }
[data-skin="aivertice"] .brand-word b { font-size: 25px; }
[data-skin="aivertice"] .workspace-heading strong { font-size: 23px; }
[data-skin="aivertice"] .channel-title h1 { font-size: 26px; }
[data-skin="aivertice"] .channel-intro h2 { font-size: 42px; letter-spacing: -.8px; }
[data-skin="aivertice"] .page-title h1 { font-size: 46px; letter-spacing: -1px; }
[data-skin="aivertice"] .modal-header h2 { font-size: 27px; }
[data-skin="aivertice"] .context-header h2 { font-size: 22px; }
[data-skin="aivertice"] .auth-card h2 { font-size: 44px; letter-spacing: -1px; }
[data-skin="aivertice"] .section-heading, [data-skin="aivertice"] .eyebrow, [data-skin="aivertice"] .theme-group h3 { text-transform: uppercase; letter-spacing: 1.6px; font-size: 11px; }
[data-skin="aivertice"] .eyebrow { color: var(--gold-deep); }
[data-skin="aivertice"] .sidebar { border-right: 1px solid rgb(191 164 111 / .1); border-top-left-radius: 0; }
[data-skin="aivertice"] .channel-link.active { box-shadow: inset 2px 0 0 var(--gold); font-weight: 650; }
[data-skin="aivertice"] .rail-item.active .icon { background: rgb(191 164 111 / .16); color: var(--gold-soft); box-shadow: inset 0 0 0 1px rgb(191 164 111 / .35); }
[data-skin="aivertice"] .avatar { --tone-bg: #1b1a18; --tone-ink: #d4b88a; border-radius: 9px; box-shadow: inset 0 0 0 1px rgb(191 164 111 / .35); margin-top: 0; font-weight: 600; letter-spacing: .5px; }
[data-skin="aivertice"] .avatar::before, [data-skin="aivertice"] .avatar::after { display: none; }
[data-skin="aivertice"] .avatar.agent-avatar { --tone-bg: linear-gradient(145deg, #d4b88a, #9c824f); background: var(--tone-bg); --tone-ink: #050505; box-shadow: none; }
[data-skin="aivertice"] .primary, [data-skin="aivertice"] .send-button { box-shadow: none; color: #050505; }
[data-skin="aivertice"] .primary { letter-spacing: .3px; }
[data-skin="aivertice"] .send-button { color: #050505; }
[data-skin="aivertice"] .tab.active { box-shadow: inset 0 -2px 0 var(--gold); }
[data-skin="aivertice"] .summary-button .icon { color: var(--gold); }
[data-skin="aivertice"] .agent-tag { background: transparent; border-color: rgb(191 164 111 / .5); color: var(--gold-deep); }
[data-skin="aivertice"] .day-divider span { font-weight: 600; letter-spacing: .3px; }
[data-skin="aivertice"] .message-text .text-item::before { width: 6px; height: 6px; border-radius: 0; transform: rotate(45deg); background: var(--gold); box-shadow: none; }
[data-skin="aivertice"] .intro-symbol, [data-skin="aivertice"] .empty-icon, [data-skin="aivertice"] .avatar.intro-avatar { width: 64px; height: 64px; border-radius: 0; background: var(--vertex-bg) center / 64px no-repeat, transparent; box-shadow: none; }
[data-skin="aivertice"] .intro-symbol, [data-skin="aivertice"] .empty-icon { background: none; color: var(--gold); }
[data-skin="aivertice"] .intro-symbol::before, [data-skin="aivertice"] .intro-symbol::after, [data-skin="aivertice"] .empty-icon::before, [data-skin="aivertice"] .empty-icon::after { display: none; }
[data-skin="aivertice"] .intro-symbol .icon, [data-skin="aivertice"] .empty-icon .icon { width: 40px; height: 40px; stroke-width: 1.2; }
[data-skin="aivertice"] .desk-stats > div { background: #0c0c0c; color: #ededed; border: 1px solid rgb(191 164 111 / .3); box-shadow: none; border-radius: 4px; }
[data-skin="aivertice"] .desk-stats > div:nth-child(2) { background: #0c0c0c; }
[data-skin="aivertice"] .desk-stats b { font-size: 52px; color: var(--gold-soft); }
[data-skin="aivertice"] .desk-stats > div::before, [data-skin="aivertice"] .desk-stats > div::after { display: none; }
[data-skin="aivertice"] .list-heading { border-bottom: 1px solid var(--ink); }
[data-skin="aivertice"] .you-badge { background: var(--gold); color: #050505; }
[data-skin="aivertice"] .person-card { border-radius: 4px; }
[data-skin="aivertice"] .task-check.checked { background: var(--gold); border-color: var(--gold); color: #050505; }
[data-skin="aivertice"] .compose-frame:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(191 164 111 / .22); }
[data-skin="aivertice"] .search-field { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(191 164 111 / .18); }
[data-skin="aivertice"] .menu-item:hover, [data-skin="aivertice"] .menu-item:focus-visible { background: #141414; color: var(--gold-soft); }
[data-skin="aivertice"] .invite-button { border: 1px solid rgb(191 164 111 / .4); background: transparent; color: var(--gold-soft); letter-spacing: .3px; }
[data-skin="aivertice"] .invite-button:hover { background: rgb(191 164 111 / .1); }
[data-skin="aivertice"] .modal { border-radius: 6px; border-top: 2px solid var(--gold); }
[data-skin="aivertice"] .toast { border-left: 3px solid var(--gold); }
/* login Aivertice */
[data-skin="aivertice"] .auth-story { background: radial-gradient(ellipse 80% 60% at 70% 30%, rgb(191 164 111 / .1), transparent 70%), #050505; color: #ededed; }
[data-skin="aivertice"] .auth-story::after { content: ""; position: absolute; right: -90px; top: 6%; width: 440px; height: 440px; background: var(--vertex-bg) center / contain no-repeat; opacity: .55; pointer-events: none; }
[data-skin="aivertice"] .auth-story-copy, [data-skin="aivertice"] .auth-story .brand-word { position: relative; z-index: 1; }
[data-skin="aivertice"] .auth-story-copy { max-width: 560px; }
[data-skin="aivertice"] .auth-story .eyebrow { color: var(--gold); }
[data-skin="aivertice"] .auth-story h1 { font-size: clamp(48px, 5.4vw, 82px); line-height: .98; letter-spacing: -1.6px; }
[data-skin="aivertice"] .auth-story h1 em { font-style: italic; color: var(--gold); }
[data-skin="aivertice"] .auth-story-copy p { color: #a39d91; }
[data-skin="aivertice"] .auth-story > footer { color: #6f6a61; position: relative; z-index: 1; }
[data-skin="aivertice"] .block-art, [data-skin="aivertice"] .color-dots { display: none; }
[data-skin="aivertice"] .auth-story .brand-word { color: #ededed; }
[data-skin="aivertice"] .auth-greeting { background: transparent; border: 1px solid var(--gold); color: var(--gold-deep); border-radius: 2px; }
[data-skin="aivertice"] .auth-main { background: var(--canvas); }
[data-skin="aivertice"] .form-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(191 164 111 / .2); }

/* Aivertice: formas e detalhes do site (cantos retos, ouro, caixa alta espaçada) */
[data-skin="aivertice"] body { background: #050505; }
[data-skin="aivertice"] .global-bar { background: rgb(5 5 5 / .92); border-bottom: 1px solid var(--site-line); }
[data-skin="aivertice"] .global-search { border-radius: 2px; background: #000; border-color: var(--site-line); color: #999; }
[data-skin="aivertice"] .global-search:hover { border-color: var(--ghost-line); background: #000; }
[data-skin="aivertice"] .brand-word > span:not(.brick-mark) { letter-spacing: 3px; color: #bfa46f; opacity: 1; border-left-color: var(--site-line); }
[data-skin="aivertice"] .sidebar, [data-skin="aivertice"] .rail { border-right: 1px solid var(--site-line); }
[data-skin="aivertice"] .workspace-heading, [data-skin="aivertice"] .sidebar-footer { border-color: var(--site-line); }
[data-skin="aivertice"] .section-heading { color: #bfa46f; letter-spacing: 3px; font-size: 10.5px; font-weight: 600; }
[data-skin="aivertice"] .channel-link.active { box-shadow: inset 2px 0 0 #bfa46f; color: #fff; }
[data-skin="aivertice"] .rail-item .icon, [data-skin="aivertice"] .rail-item.active .icon { border-radius: 2px; }
[data-skin="aivertice"] .rail-item.active .icon { background: rgb(191 164 111 / .1); color: #d4b88a; box-shadow: inset 0 0 0 1px var(--gold-line); }
[data-skin="aivertice"] .button, [data-skin="aivertice"] .compose-frame, [data-skin="aivertice"] .modal, [data-skin="aivertice"] .popover, [data-skin="aivertice"] .attachment, [data-skin="aivertice"] .person-card, [data-skin="aivertice"] .form-field input, [data-skin="aivertice"] .form-field select, [data-skin="aivertice"] .search-field, [data-skin="aivertice"] .reaction, [data-skin="aivertice"] .day-divider span, [data-skin="aivertice"] .toast, [data-skin="aivertice"] .incoming-call, [data-skin="aivertice"] .call-mini, [data-skin="aivertice"] .call-tile, [data-skin="aivertice"] .skin-option, [data-skin="aivertice"] .skin-preview, [data-skin="aivertice"] .custom-theme, [data-skin="aivertice"] .invite-channels, [data-skin="aivertice"] .calm-empty, [data-skin="aivertice"] .send-button, [data-skin="aivertice"] .unread, [data-skin="aivertice"] .count-pill, [data-skin="aivertice"] .mode-switch, [data-skin="aivertice"] .agent-tag, [data-skin="aivertice"] .channel-chip, [data-skin="aivertice"] .call-join { border-radius: 2px; }
[data-skin="aivertice"] .primary { text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; font-weight: 600; }
[data-skin="aivertice"] .secondary, [data-skin="aivertice"] .summary-button { background: transparent; border: 1px solid var(--ghost-line); color: #ededed; }
[data-skin="aivertice"] .secondary:hover, [data-skin="aivertice"] .summary-button:hover { border-color: #bfa46f; color: #fff; background: transparent; }
[data-skin="aivertice"] .channel-title h1, [data-skin="aivertice"] .channel-intro h2, [data-skin="aivertice"] .page-title h1, [data-skin="aivertice"] .modal-header h2, [data-skin="aivertice"] .context-header h2, [data-skin="aivertice"] .auth-card h2, [data-skin="aivertice"] .message-meta strong, [data-skin="aivertice"] .empty-state h2, [data-skin="aivertice"] .list-heading h2, [data-skin="aivertice"] .people-section h2, [data-skin="aivertice"] .person-card h3 { color: var(--head); }
[data-skin="aivertice"] .channel-intro p, [data-skin="aivertice"] .page-title p { color: var(--statement); opacity: .8; }
[data-skin="aivertice"] .eyebrow, [data-skin="aivertice"] .theme-group h3, [data-skin="aivertice"] .auth-greeting { letter-spacing: 3px; color: #bfa46f; }
[data-skin="aivertice"] .day-divider span { background: #050505; border-color: var(--site-line); color: #777; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; }
[data-skin="aivertice"] .day-divider::before { border-color: var(--site-line); }
[data-skin="aivertice"] .channel-tabs, [data-skin="aivertice"] .context, [data-skin="aivertice"] .context-header, [data-skin="aivertice"] .context-section, [data-skin="aivertice"] .channel-about, [data-skin="aivertice"] .task-row { border-color: var(--site-line); }
[data-skin="aivertice"] .compose-frame { background: #000; border: 1px solid var(--ghost-line); }
[data-skin="aivertice"] .message-tools, [data-skin="aivertice"] .popover { background: #0b0b0b; border-color: var(--site-line); border-radius: 2px; }
[data-skin="aivertice"] .menu-item:hover, [data-skin="aivertice"] .menu-item:focus-visible { background: rgb(191 164 111 / .1); color: #d4b88a; }
[data-skin="aivertice"] .modal { background: #050505; border: 1px solid var(--site-line); border-top: 2px solid #bfa46f; }
[data-skin="aivertice"] .modal::backdrop { background: rgb(0 0 0 / .75); backdrop-filter: blur(4px); }
[data-skin="aivertice"] .form-field input, [data-skin="aivertice"] .form-field select { background: #000; border: 1px solid var(--ghost-line); color: #ededed; }
[data-skin="aivertice"] .form-field input:focus { border-color: #bfa46f; box-shadow: 0 0 0 3px rgb(191 164 111 / .15); }
[data-skin="aivertice"] .person-card, [data-skin="aivertice"] .attachment, [data-skin="aivertice"] .desk-stats > div { background: #000; border: 1px solid var(--site-line); }
[data-skin="aivertice"] .person-card:hover, [data-skin="aivertice"] .attachment:hover { border-color: var(--gold-line); }
[data-skin="aivertice"] .desk-stats > div { border-radius: 2px; }
[data-skin="aivertice"] .list-heading { border-bottom: 1px solid var(--site-line); }
[data-skin="aivertice"] .avatar { --tone-bg: #000; --tone-ink: #d4b88a; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--gold-line); }
[data-skin="aivertice"] .avatar.agent-avatar { border-radius: 2px; background: #bfa46f; --tone-ink: #050505; box-shadow: none; }
[data-skin="aivertice"] .tile-avatar .avatar.call-avatar { border-radius: 2px; }
[data-skin="aivertice"] .agent-tag { color: #bfa46f; border-color: var(--gold-line); letter-spacing: 1.5px; }
[data-skin="aivertice"] .quoted-message, [data-skin="aivertice"] .task-preview { border-left-color: #bfa46f; background: #0b0b0b; }
[data-skin="aivertice"] .message:has(.message-flags) { box-shadow: inset 2px 0 0 #bfa46f; }
[data-skin="aivertice"] .call-stage { background: radial-gradient(ellipse at 50% 0%, rgb(191 164 111 / .06), #050505 60%); }
[data-skin="aivertice"] .call-tile { background: #000; box-shadow: inset 0 0 0 1px var(--site-line); }
[data-skin="aivertice"] .incoming-call, [data-skin="aivertice"] .call-mini { background: #050505; border: 1px solid var(--gold-line); }
[data-skin="aivertice"] .auth-main { background: #050505; border-left: 1px solid var(--site-line); }
[data-skin="aivertice"] .auth-description { color: var(--statement); opacity: .75; }
[data-skin="aivertice"] .auth-footer { color: #444; letter-spacing: 1px; }
[data-skin="aivertice"] .auth-greeting { border-color: var(--gold-line); font-size: 10.5px; }
[data-skin="aivertice"] ::selection { background: rgb(191 164 111 / .35); color: #fff; }
[data-skin="aivertice"] .skin-preview .p-main { background: #050505; }
[data-skin="aivertice"] .skin-preview .p-main i { background: #333; }
.skin-preview[data-skin="aivertice"] .p-main { background: #050505; }

/* Temas. O padrão (LEGO) vem do :root. Cada tema troca só as variáveis. */
:root[data-skin="lego"], [data-skin="lego"] { --bar: #05131d; --rail: #05131d; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #0b3a85; --side-ink: #f2f6ff; --side-muted: #a9bfe6; --side-hover: rgb(255 255 255 / .09); --side-line: rgb(255 255 255 / .1); --active-bg: #ffcf00; --active-ink: #05131d; --accent: #e3000b; --accent-hover: #bd0009; --accent-ink: #ffffff; --unread: #e3000b; --unread-ink: #ffffff; --mark: #ffcf00; --send: #00852b; --send-hover: #006e23; --item-radius: 7px; }
:root[data-theme="dark"][data-skin="lego"], [data-theme="dark"] [data-skin="lego"] { --bar: #03090e; --rail: #03090e; --side: #0a2552; --side-ink: #e9efff; --side-muted: #8ea5cf; --side-hover: rgb(255 255 255 / .07); }
:root[data-skin="berinjela"], [data-skin="berinjela"] { --bar: #350d36; --rail: #350d36; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #3f0e40; --side-ink: #ffffff; --side-muted: #cfc3cf; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #1164a3; --active-ink: #ffffff; --accent: #007a5a; --accent-hover: #00664b; --accent-ink: #ffffff; --unread: #cd2553; --mark: #ecb22e; }
:root[data-skin="jade"], [data-skin="jade"] { --bar: #0e3b30; --rail: #0e3b30; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #1d4c3f; --side-ink: #ffffff; --side-muted: #b7d3c9; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #2bac76; --active-ink: #ffffff; --accent: #1f8f60; --accent-hover: #187650; --accent-ink: #ffffff; --unread: #e2614c; --mark: #2bac76; }
:root[data-skin="lagoa"], [data-skin="lagoa"] { --bar: #0a2a4a; --rail: #0a2a4a; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #13416b; --side-ink: #ffffff; --side-muted: #b3c9e2; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #2d9ee0; --active-ink: #ffffff; --accent: #1264a3; --accent-hover: #0e5285; --accent-ink: #ffffff; --unread: #e04f5f; --mark: #2d9ee0; }
:root[data-skin="indigo"], [data-skin="indigo"] { --bar: #1c2045; --rail: #1c2045; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #2e3a7a; --side-ink: #ffffff; --side-muted: #bcc3ea; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #5b6ee1; --active-ink: #ffffff; --accent: #4b5bd6; --accent-hover: #3c4bc2; --accent-ink: #ffffff; --unread: #f25c78; --mark: #8e9bff; }
:root[data-skin="barbra"], [data-skin="barbra"] { --bar: #3a0d22; --rail: #3a0d22; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #5b1734; --side-ink: #ffffff; --side-muted: #e2b8c8; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #e01563; --active-ink: #ffffff; --accent: #c21456; --accent-hover: #a01147; --accent-ink: #ffffff; --unread: #ffb020; --mark: #e01563; }
:root[data-skin="grafite"], [data-skin="grafite"] { --bar: #1a1d21; --rail: #1a1d21; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #2c2f33; --side-ink: #ffffff; --side-muted: #b8bcc2; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #e8e9ea; --active-ink: #1a1d21; --accent: #3a3f45; --accent-hover: #23272b; --accent-ink: #ffffff; --unread: #e01e5a; --mark: #e8e9ea; }
:root[data-skin="turquesa"], [data-skin="turquesa"] { --bar: #1e1e1e; --rail: #1e1e1e; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #2d2d2d; --side-ink: #ececec; --side-muted: #a6a6a6; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #16a085; --active-ink: #ffffff; --accent: #16a085; --accent-hover: #12876f; --accent-ink: #ffffff; --unread: #e04f4f; --mark: #16a085; --send: #16a085; --send-hover: #12876f; }
:root[data-skin="aco"], [data-skin="aco"] { --bar: #1e1e1e; --rail: #1e1e1e; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #2d2d2d; --side-ink: #ececec; --side-muted: #a6a6a6; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #4f7cac; --active-ink: #ffffff; --accent: #4f7cac; --accent-hover: #406890; --accent-ink: #ffffff; --unread: #e04f4f; --mark: #4f7cac; --send: #4f7cac; --send-hover: #406890; }
:root[data-skin="laranja"], [data-skin="laranja"] { --bar: #1e1e1e; --rail: #1e1e1e; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #2d2d2d; --side-ink: #ececec; --side-muted: #a6a6a6; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #f0742e; --active-ink: #ffffff; --accent: #f0742e; --accent-hover: #d9621f; --accent-ink: #ffffff; --unread: #e04f4f; --mark: #f0742e; --send: #f0742e; --send-hover: #d9621f; }
:root[data-skin="carmim"], [data-skin="carmim"] { --bar: #1e1e1e; --rail: #1e1e1e; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #2d2d2d; --side-ink: #ececec; --side-muted: #a6a6a6; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #d7263d; --active-ink: #ffffff; --accent: #d7263d; --accent-hover: #b81f33; --accent-ink: #ffffff; --unread: #ff9f1a; --mark: #d7263d; --send: #d7263d; --send-hover: #b81f33; }
:root[data-skin="roxo"], [data-skin="roxo"] { --bar: #1e1e1e; --rail: #1e1e1e; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #2d2d2d; --side-ink: #ececec; --side-muted: #a6a6a6; --side-hover: rgb(255 255 255 / .08); --side-line: rgb(255 255 255 / .09); --active-bg: #9b59b6; --active-ink: #ffffff; --accent: #9b59b6; --accent-hover: #83489c; --accent-ink: #ffffff; --unread: #e04f4f; --mark: #9b59b6; --send: #9b59b6; --send-hover: #83489c; }
:root[data-skin="clementina"], [data-skin="clementina"] { --bar: #3d3c40; --rail: #3d3c40; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #f4ede4; --side-ink: #3d3c40; --side-muted: #7a6f64; --side-hover: color-mix(in srgb, #3d3c40 7%, transparent); --side-line: color-mix(in srgb, #3d3c40 10%, transparent); --active-bg: #e8912d; --active-ink: #ffffff; --accent: #e8912d; --accent-hover: #cf7b19; --accent-ink: #ffffff; --unread: #dc5960; --mark: #e8912d; }
:root[data-theme="dark"][data-skin="clementina"], [data-theme="dark"] [data-skin="clementina"] { --side: #2c2724; --side-ink: #f4ede4; --side-muted: #b9ab9b; --side-hover: rgb(255 255 255 / .07); --side-line: rgb(255 255 255 / .08); }
:root[data-skin="banana"], [data-skin="banana"] { --bar: #1d1c1d; --rail: #1d1c1d; --bar-ink: #ffffff; --rail-ink: #ffffff; --side: #fff7d1; --side-ink: #1d1c1d; --side-muted: #6b6142; --side-hover: color-mix(in srgb, #1d1c1d 7%, transparent); --side-line: color-mix(in srgb, #1d1c1d 10%, transparent); --active-bg: #f2c744; --active-ink: #1d1c1d; --accent: #1d1c1d; --accent-hover: #000000; --accent-ink: #ffffff; --unread: #e01e5a; --mark: #f2c744; }
:root[data-theme="dark"][data-skin="banana"], [data-theme="dark"] [data-skin="banana"] { --side: #2a2617; --side-ink: #fff3c4; --side-muted: #bfb48a; --side-hover: rgb(255 255 255 / .07); --side-line: rgb(255 255 255 / .08); --accent: #f2c744; --accent-hover: #ffd96a; --accent-ink: #1d1c1d; }
:root[data-skin="chrome-azul"], [data-skin="chrome-azul"] { --bar: #f0f4f9; --rail: #f0f4f9; --bar-ink: #1f1f1f; --rail-ink: #1f1f1f; --side: #f0f4f9; --side-ink: #1f1f1f; --side-muted: #444746; --side-hover: color-mix(in srgb, #1f1f1f 7%, transparent); --side-line: color-mix(in srgb, #1f1f1f 10%, transparent); --active-bg: #c2e7ff; --active-ink: #001d35; --accent: #0b57d0; --accent-hover: #0842a0; --accent-ink: #ffffff; --unread: #0b57d0; --mark: #c2e7ff; --item-radius: 999px; --send: #0b57d0; --send-hover: #0842a0; --canvas: #ffffff; }
:root[data-theme="dark"][data-skin="chrome-azul"], [data-theme="dark"] [data-skin="chrome-azul"] { --bar: #131314; --rail: #131314; --bar-ink: #e3e3e3; --rail-ink: #e3e3e3; --side: #1e1f20; --side-ink: #e3e3e3; --side-muted: #c4c7c5; --side-hover: rgb(255 255 255 / .06); --side-line: rgb(255 255 255 / .07); --active-bg: #004a77; --active-ink: #c2e7ff; --accent: #a8c7fa; --accent-hover: #d3e3fd; --accent-ink: #062e6f; --unread: #a8c7fa; --unread-ink: #062e6f; --mark: #a8c7fa; --send: #a8c7fa; --send-hover: #d3e3fd; --canvas: #1b1b1c; --surface: #1f1f20; }
:root[data-skin="chrome-verde"], [data-skin="chrome-verde"] { --bar: #eff5ee; --rail: #eff5ee; --bar-ink: #1f1f1f; --rail-ink: #1f1f1f; --side: #eff5ee; --side-ink: #1f1f1f; --side-muted: #444746; --side-hover: color-mix(in srgb, #1f1f1f 7%, transparent); --side-line: color-mix(in srgb, #1f1f1f 10%, transparent); --active-bg: #c4eed0; --active-ink: #072711; --accent: #146c2e; --accent-hover: #0f5223; --accent-ink: #ffffff; --unread: #146c2e; --mark: #c4eed0; --item-radius: 999px; --send: #146c2e; --send-hover: #0f5223; --canvas: #ffffff; }
:root[data-theme="dark"][data-skin="chrome-verde"], [data-theme="dark"] [data-skin="chrome-verde"] { --bar: #131314; --rail: #131314; --bar-ink: #e3e3e3; --rail-ink: #e3e3e3; --side: #1a1f1b; --side-ink: #e3e3e3; --side-muted: #c4c7c5; --side-hover: rgb(255 255 255 / .06); --side-line: rgb(255 255 255 / .07); --active-bg: #0f5223; --active-ink: #c4eed0; --accent: #6dd58c; --accent-hover: #9cf0ad; --accent-ink: #00391a; --unread: #6dd58c; --unread-ink: #00391a; --mark: #6dd58c; --send: #6dd58c; --send-hover: #9cf0ad; --canvas: #1b1b1c; --surface: #1f1f20; }
:root[data-skin="chrome-rosa"], [data-skin="chrome-rosa"] { --bar: #fbf1f4; --rail: #fbf1f4; --bar-ink: #1f1f1f; --rail-ink: #1f1f1f; --side: #fbf1f4; --side-ink: #1f1f1f; --side-muted: #444746; --side-hover: color-mix(in srgb, #1f1f1f 7%, transparent); --side-line: color-mix(in srgb, #1f1f1f 10%, transparent); --active-bg: #ffd8e4; --active-ink: #31111d; --accent: #984061; --accent-hover: #7b2949; --accent-ink: #ffffff; --unread: #984061; --mark: #ffd8e4; --item-radius: 999px; --send: #984061; --send-hover: #7b2949; --canvas: #ffffff; }
:root[data-theme="dark"][data-skin="chrome-rosa"], [data-theme="dark"] [data-skin="chrome-rosa"] { --bar: #131314; --rail: #131314; --bar-ink: #e3e3e3; --rail-ink: #e3e3e3; --side: #221a1d; --side-ink: #e3e3e3; --side-muted: #c4c7c5; --side-hover: rgb(255 255 255 / .06); --side-line: rgb(255 255 255 / .07); --active-bg: #7b2949; --active-ink: #ffd8e4; --accent: #ffb0c8; --accent-hover: #ffd8e4; --accent-ink: #5e1133; --unread: #ffb0c8; --unread-ink: #5e1133; --mark: #ffb0c8; --send: #ffb0c8; --send-hover: #ffd8e4; --canvas: #1b1b1c; --surface: #1f1f20; }
:root[data-skin="chrome-neutro"], [data-skin="chrome-neutro"] { --bar: #f6f7f8; --rail: #f6f7f8; --bar-ink: #1f1f1f; --rail-ink: #1f1f1f; --side: #f6f7f8; --side-ink: #1f1f1f; --side-muted: #444746; --side-hover: color-mix(in srgb, #1f1f1f 7%, transparent); --side-line: color-mix(in srgb, #1f1f1f 10%, transparent); --active-bg: #e3e3e3; --active-ink: #1f1f1f; --accent: #3c4043; --accent-hover: #202124; --accent-ink: #ffffff; --unread: #3c4043; --mark: #e3e3e3; --item-radius: 999px; --send: #3c4043; --send-hover: #202124; --canvas: #ffffff; }
:root[data-theme="dark"][data-skin="chrome-neutro"], [data-theme="dark"] [data-skin="chrome-neutro"] { --bar: #131314; --rail: #131314; --bar-ink: #e3e3e3; --rail-ink: #e3e3e3; --side: #202124; --side-ink: #e3e3e3; --side-muted: #c4c7c5; --side-hover: rgb(255 255 255 / .06); --side-line: rgb(255 255 255 / .07); --active-bg: #3c4043; --active-ink: #e8eaed; --accent: #e8eaed; --accent-hover: #ffffff; --accent-ink: #202124; --unread: #e8eaed; --unread-ink: #202124; --mark: #e8eaed; --send: #e8eaed; --send-hover: #ffffff; --canvas: #1b1b1c; --surface: #1f1f20; }
[data-skin^="chrome"] .sidebar { border-radius: 0; }
[data-skin^="chrome"] .workspace { border-radius: 20px 0 0 0; }
[data-skin^="chrome"] .app-shell { background: var(--bar); }
[data-skin^="chrome"] .rail-item .icon, [data-skin^="chrome"] .button, [data-skin^="chrome"] .compose-frame, [data-skin^="chrome"] .global-search { border-radius: 999px; }
[data-skin^="chrome"] .compose-frame { border-radius: 24px; }
[data-skin^="chrome"] .tab, [data-skin^="chrome"] .message-tools .button, [data-skin^="chrome"] .menu-item { border-radius: 6px; }
[data-skin^="chrome"] .tab { border-radius: 0; }
[data-skin^="chrome"] .avatar, [data-skin^="chrome"] .primary, [data-skin^="chrome"] .send-button { box-shadow: none; }
[data-skin^="chrome"] .send-button { border-radius: 999px; color: var(--accent-ink); }
[data-skin^="chrome"] .channel-link.active { box-shadow: none; }

/* Seletor de temas */
.theme-modal { width: min(760px, calc(100vw - 32px)); }
.theme-content { display: grid; gap: 22px; padding: 10px 24px 26px; }
.mode-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--subtle); justify-self: start; }
.mode-switch .button { min-height: 34px; padding: 0 14px; }
.mode-switch .button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); }
.theme-group h3 { margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.skin-option { display: grid; gap: 7px; padding: 6px; border: 2px solid transparent; border-radius: 12px; font-size: 13.5px; font-weight: 650; }
.skin-option:hover { background: var(--hover); }
.skin-option[aria-pressed="true"] { border-color: var(--ink); }
.skin-preview { display: grid; grid-template-columns: 14px 40px 1fr; height: 76px; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--canvas); }
.skin-preview .p-rail { background: var(--rail); }
.skin-preview .p-side { display: grid; align-content: start; gap: 5px; padding: 9px 5px; background: var(--side); }
.skin-preview .p-side i { height: 5px; border-radius: 3px; background: var(--side-muted); opacity: .55; }
.skin-preview .p-side i.on { height: 8px; background: var(--active-bg); opacity: 1; border-radius: min(var(--item-radius), 4px); }
.skin-preview .p-main { display: grid; align-content: space-between; padding: 9px 8px; background: #fff; }
[data-theme="dark"] .skin-preview .p-main { background: #1a1e23; }
.skin-preview .p-main i { height: 5px; border-radius: 3px; background: #d6d9de; }
.skin-preview .p-main i:nth-child(2) { width: 70%; }
.skin-preview .p-main b { justify-self: end; width: 22px; height: 10px; border-radius: 4px; background: var(--accent); }


.custom-theme { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 18px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; }
.custom-theme.selected { border-color: var(--ink); }
.custom-preview { height: 86px; }
.color-fields { display: grid; gap: 8px; }
.color-field { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; cursor: pointer; }
.color-field input { width: 40px; height: 28px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 7px; background: none; cursor: pointer; }
.color-field input::-webkit-color-swatch-wrapper { padding: 2px; }
.color-field input::-webkit-color-swatch { border: 0; border-radius: 4px; }
@media (max-width: 640px) { .custom-theme { grid-template-columns: 1fr; } }


/* Fazenda: algodão */
:root[data-skin="algodao"], [data-skin="algodao"] { --bar: #2a3d22; --rail: #3b2a1e; --bar-ink: #fdfaf2; --rail-ink: #fdfaf2; --side: #36552c; --side-ink: #fbf8ee; --side-muted: #c9d6b8; --side-hover: rgb(255 255 255 / .09); --side-line: rgb(255 255 255 / .1); --active-bg: #fffdf6; --active-ink: #2a3d22; --accent: #a5512a; --accent-hover: #8a4221; --accent-ink: #ffffff; --unread: #c8692f; --unread-ink: #ffffff; --mark: #fffdf6; --send: #4f7a3a; --send-hover: #3e5f2e; --item-radius: 999px;
  --canvas: #fbf8f0; --surface: #fffdf8; --subtle: #f3eee2; --hover: #f5f0e4; --raised: #fffdf8; --line: #e6dfcf; --line-strong: #cfc5ae; --ink: #2b2a22; --muted: #6b6553; --faint: #9a927c; --link: #3e6b2e; --focus: #4f7a3a;
  --mention-bg: #f1e6c9; --mention-ink: #6b4429; --task-bg: #f6efdc; --task-line: #c8a45a; --cotton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-16 -16 32 40'%3E%3Cg transform='translate(0 0) rotate(0) scale(1)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); --cotton-side: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg transform='translate(28 30) rotate(-12) scale(0.9)' opacity='0.22'%3E%3Cpath d='M0 14v8' stroke='%237a4e2e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%237a4e2e'/%3E%3Cg fill='%23fffdf6' stroke='%23d9cfb8' stroke-width='1.1'%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3C/g%3E%3Cpath d='M0 -2v9M-5 1l3 3M5 1l-3 3' stroke='%23d9cfb8' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(88 86) rotate(18) scale(0.75)' opacity='0.22'%3E%3Cpath d='M0 14v8' stroke='%237a4e2e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%237a4e2e'/%3E%3Cg fill='%23fffdf6' stroke='%23d9cfb8' stroke-width='1.1'%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3C/g%3E%3Cpath d='M0 -2v9M-5 1l3 3M5 1l-3 3' stroke='%23d9cfb8' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"); --cotton-canvas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg transform='translate(40 46) rotate(-10) scale(1)' opacity='0.09'%3E%3Cpath d='M0 14v8' stroke='%23b8a98a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%23b8a98a'/%3E%3Cg fill='%23b8a98a'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23b8a98a'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(134 128) rotate(16) scale(0.75)' opacity='0.07'%3E%3Cpath d='M0 14v8' stroke='%23b8a98a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%23b8a98a'/%3E%3Cg fill='%23b8a98a'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23b8a98a'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); --cotton-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='110' viewBox='0 0 160 110'%3E%3Cpath d='M22 100 V38' stroke='%233e5f2e' stroke-width='2.2'/%3E%3Cpath d='M22 72.1 q-12 -6 -16 4 q10 4 16 -4Z' fill='%234f7a3a'/%3E%3Cpath d='M22 61.56 q12 -7 17 2 q-10 5 -17 -2Z' fill='%235d8a44'/%3E%3Cg transform='translate(22 38) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(13 60) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M70 100 V26' stroke='%233e5f2e' stroke-width='2.2'/%3E%3Cpath d='M70 66.69999999999999 q-12 -6 -16 4 q10 4 16 -4Z' fill='%234f7a3a'/%3E%3Cpath d='M70 54.12 q12 -7 17 2 q-10 5 -17 -2Z' fill='%235d8a44'/%3E%3Cg transform='translate(70 26) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(80 46) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(62 62) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M122 100 V42' stroke='%233e5f2e' stroke-width='2.2'/%3E%3Cpath d='M122 73.9 q-12 -6 -16 4 q10 4 16 -4Z' fill='%234f7a3a'/%3E%3Cpath d='M122 64.03999999999999 q12 -7 17 2 q-10 5 -17 -2Z' fill='%235d8a44'/%3E%3Cg transform='translate(122 42) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(112 66) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Crect y='98' width='160' height='12' fill='%236b4429'/%3E%3Cpath d='M0 100h160' stroke='%238a5a37' stroke-width='2' stroke-dasharray='10 8'/%3E%3C/svg%3E"); --cotton-field-big: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='170' viewBox='0 0 160 110'%3E%3Cpath d='M22 100 V30' stroke='%233e5f2e' stroke-width='2.2'/%3E%3Cpath d='M22 68.5 q-12 -6 -16 4 q10 4 16 -4Z' fill='%234f7a3a'/%3E%3Cpath d='M22 56.6 q12 -7 17 2 q-10 5 -17 -2Z' fill='%235d8a44'/%3E%3Cg transform='translate(22 30) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(13 52) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(28 70) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M70 100 V16' stroke='%233e5f2e' stroke-width='2.2'/%3E%3Cpath d='M70 62.199999999999996 q-12 -6 -16 4 q10 4 16 -4Z' fill='%234f7a3a'/%3E%3Cpath d='M70 47.92 q12 -7 17 2 q-10 5 -17 -2Z' fill='%235d8a44'/%3E%3Cg transform='translate(70 16) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(80 36) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(62 52) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(74 72) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M122 100 V34' stroke='%233e5f2e' stroke-width='2.2'/%3E%3Cpath d='M122 70.3 q-12 -6 -16 4 q10 4 16 -4Z' fill='%234f7a3a'/%3E%3Cpath d='M122 59.08 q12 -7 17 2 q-10 5 -17 -2Z' fill='%235d8a44'/%3E%3Cg transform='translate(122 34) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(112 58) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(130 72) rotate(0) scale(0.62)' opacity='1'%3E%3Cpath d='M0 14v8' stroke='%236b4429' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%236b4429'/%3E%3Cg fill='%23fffdf7'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23e9e1cf'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Crect y='98' width='160' height='12' fill='%235a3a22'/%3E%3C/svg%3E"); }
:root[data-theme="dark"][data-skin="algodao"], [data-theme="dark"] [data-skin="algodao"] { --bar: #141c11; --rail: #1c140e; --side: #1f2e1a; --side-muted: #a7b597; --active-bg: #f3efe2; --active-ink: #1f2e1a; --accent: #d98a5a; --accent-hover: #e8a57b; --accent-ink: #1c140e; --unread: #d98a5a; --unread-ink: #1c140e; --send: #6d9a52; --send-hover: #84b066;
  --canvas: #171a14; --surface: #1d211a; --subtle: #252a20; --hover: #20251c; --raised: #252a20; --line: #2f3529; --line-strong: #434a3b; --ink: #ece7d8; --muted: #b0aa96; --faint: #847e6b; --link: #9cc57f; --focus: #9cc57f;
  --mention-bg: rgb(217 138 90 / .18); --mention-ink: #f0bf9a; --task-bg: rgb(200 164 90 / .09); --task-line: #a8884a; --cotton-canvas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg transform='translate(40 46) rotate(-10) scale(1)' opacity='0.035'%3E%3Cpath d='M0 14v8' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%23ffffff'/%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(134 128) rotate(16) scale(0.75)' opacity='0.03'%3E%3Cpath d='M0 14v8' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M-11 6 0 15 11 6 7 16H-7Z' fill='%23ffffff'/%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='-6' cy='4' r='7'/%3E%3Ccircle cx='6' cy='4' r='7'/%3E%3Ccircle cx='0' cy='-4' r='8'/%3E%3Ccircle cx='-8' cy='-4' r='5.5'/%3E%3Ccircle cx='8' cy='-4' r='5.5'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='0' cy='6' r='4.5'/%3E%3Ccircle cx='-3' cy='-6' r='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
[data-skin="algodao"] .sidebar { background: var(--cotton-side) 0 0 / 120px, var(--side); }
[data-skin="algodao"] .sidebar-footer { padding: 12px 12px 104px; background: var(--cotton-field) 0 100% / 160px 110px repeat-x; border-top: 0; }
[data-skin="algodao"] .invite-button { background: rgb(255 253 246 / .92); color: #2a3d22; border: 0; box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
[data-skin="algodao"] .invite-button:hover { background: #fffdf6; }
[data-skin="algodao"] .sidebar-footer .privacy-note { padding: 6px 10px; border-radius: 999px; background: rgb(0 0 0 / .35); color: #fbf8ee; }
[data-skin="algodao"] .transcript, [data-skin="algodao"] .page-scroll, [data-skin="algodao"] .thread-messages { background: var(--cotton-canvas) 0 0 / 180px, var(--canvas); }
[data-skin="algodao"] .brick-mark { background: var(--cotton) center / contain no-repeat; box-shadow: none; }
[data-skin="algodao"] .brick-mark i { visibility: hidden; }
[data-skin="algodao"] .brick-mark.on-rail { width: 40px; height: 46px; }
[data-skin="algodao"] .avatar { border-radius: 50%; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); }
[data-skin="algodao"] .avatar::before, [data-skin="algodao"] .avatar::after { display: none; }
[data-skin="algodao"] .avatar { margin-top: 0; }
[data-skin="algodao"] .intro-symbol, [data-skin="algodao"] .empty-icon { width: 74px; height: 80px; background: var(--cotton) center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 3px 4px rgb(80 60 30 / .25)); }
[data-skin="algodao"] .intro-symbol::before, [data-skin="algodao"] .intro-symbol::after, [data-skin="algodao"] .empty-icon::before, [data-skin="algodao"] .empty-icon::after { display: none; }
[data-skin="algodao"] .intro-symbol .icon, [data-skin="algodao"] .empty-icon .icon { display: none; }
[data-skin="algodao"] .channel-about .intro-symbol { width: 52px; height: 56px; }
[data-skin="algodao"] .message-text .text-item::before { width: 9px; height: 9px; border-radius: 50%; background: #fffdf6; box-shadow: 0 0 0 1.5px #a5512a; }
[data-skin="algodao"] .channel-link.active, [data-skin="algodao"] .send-button, [data-skin="algodao"] .primary { box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
[data-skin="algodao"] .desk-stats > div { background: #4f7a3a; box-shadow: none; border-radius: 16px; }
[data-skin="algodao"] .desk-stats > div:nth-child(2) { background: #a5512a; }
[data-skin="algodao"] .desk-stats > div::before, [data-skin="algodao"] .desk-stats > div::after { display: none; }
[data-skin="algodao"] .channel-intro, [data-skin="algodao"] .page-title { position: relative; }
[data-skin="algodao"] .day-divider span { background: var(--surface); }
[data-skin="algodao"] .auth-story { background: var(--cotton-field-big) 0 100% / 240px 170px repeat-x, linear-gradient(180deg, #8fc3e6 0%, #cfe6f2 46%, #f6e9c8 70%, #e7d3a3 100%); color: #22301b; }
[data-skin="algodao"] .auth-story .eyebrow { color: #8a4221; }
[data-skin="algodao"] .auth-story h1 em { color: #fffdf6; text-shadow: 0 2px 0 #a5512a, 0 6px 18px rgb(90 58 34 / .35); }
[data-skin="algodao"] .auth-story-copy p { color: #3a4a30; }
[data-skin="algodao"] .auth-story { padding-bottom: 186px; }
[data-skin="algodao"] .auth-story > footer { color: #3a4a30; }
[data-skin="algodao"] .color-dots { display: none; }
[data-skin="algodao"] .auth-greeting { background: #36552c; color: #fffdf6; border-radius: 999px; }
[data-skin="algodao"] .auth-main { background: var(--cotton-canvas) 0 0 / 200px, var(--canvas); }
[data-skin="algodao"] .block-art { visibility: hidden; }
[data-skin="algodao"] .auth-story .brand-word { color: #22301b; }
[data-skin="algodao"] .skin-preview .p-side, .skin-preview[data-skin="algodao"] .p-side { background: var(--cotton-side) 0 0 / 60px, var(--side); }
.skin-preview[data-skin="algodao"] .p-main { background: var(--cotton-canvas) 0 0 / 70px, #fbf8f0; }


/* Chamadas de voz e vídeo */
.call-start .icon { width: 19px; height: 19px; }
.call-join { min-height: 34px; border-radius: 999px; padding: 0 14px 0 11px; background: #12b76a; color: #fff; font-weight: 700; animation: call-pulse 2s ease-in-out infinite; }
.call-join:hover { background: #0e9f5b; }
.call-join.in-call { background: var(--subtle); color: var(--ink); animation: none; border: 1.5px solid #12b76a; }
.call-join .icon { width: 16px; height: 16px; }
@keyframes call-pulse { 50% { box-shadow: 0 0 0 6px rgb(18 183 106 / .18); } }
.call-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #12b76a; color: #fff; }
.call-dot .icon { width: 11px; height: 11px; }
.incoming-call { position: fixed; z-index: 70; top: 60px; right: 18px; width: min(380px, calc(100vw - 24px)); display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: #101113; color: #f2f2f2; box-shadow: 0 24px 60px rgb(0 0 0 / .45); border: 1px solid rgb(255 255 255 / .08); animation: incoming-in .25s ease-out; }
@keyframes incoming-in { from { transform: translateY(-8px); opacity: 0; } }
.incoming-who { display: flex; align-items: center; gap: 12px; }
.incoming-who .avatar { animation: call-pulse 1.4s ease-in-out infinite; }
.incoming-who strong { display: block; font-size: 15.5px; }
.incoming-who small { color: #a7abb2; font-size: 12.5px; }
.incoming-actions { display: flex; gap: 8px; }
.incoming-actions .button { flex: 1; min-height: 38px; border-radius: 10px; font-size: 13.5px; }
.call-decline { background: rgb(255 255 255 / .08); color: #f2f2f2; }
.call-decline:hover { background: rgb(255 255 255 / .14); }
.call-accept { background: #12b76a; color: #fff; }
.call-accept:hover { background: #0e9f5b; }
.call-accept.video { background: var(--accent); color: var(--accent-ink); }
.call-stage { position: fixed; z-index: 25; top: 48px; left: 334px; right: 0; bottom: 0; display: grid; grid-template-rows: auto 1fr auto auto; gap: 14px; padding: 16px 20px 20px; background: radial-gradient(ellipse at 50% 0%, #1a1c20, #0b0c0e 70%); color: #f2f2f2; }
.call-head { display: flex; align-items: center; justify-content: space-between; }
.call-head > div { display: flex; align-items: baseline; gap: 12px; }
.call-head strong { font-size: 18px; }
.call-head small, .call-timer { color: #a7abb2; font-size: 13px; font-variant-numeric: tabular-nums; }
.call-head .icon-only { color: #c9ccd1; }
.call-head .icon-only:hover { background: rgb(255 255 255 / .1); color: #fff; }
.call-live { align-self: center; padding: 2px 7px; border-radius: 4px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.call-grid { display: grid; gap: 12px; min-height: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: minmax(0, 1fr); align-content: center; }
.call-grid.count-1 { grid-template-columns: minmax(0, min(960px, 100%)); justify-content: center; }
.call-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.call-tile { position: relative; align-self: center; width: 100%; display: grid; place-items: center; min-height: 160px; max-height: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #17191d; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); transition: box-shadow .15s; }
.call-tile.speaking { box-shadow: inset 0 0 0 3px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.call-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-tile video.mirror { transform: scaleX(-1); }
.tile-avatar .avatar.call-avatar { width: 88px; height: 88px; font-size: 30px; border-radius: 50%; }
.tile-avatar .avatar.call-avatar::before, .tile-avatar .avatar.call-avatar::after { display: none; }
.tile-avatar .avatar.call-avatar .icon { width: 36px; height: 36px; }
.tile-name { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 8px; background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; }
.tile-name .icon { width: 14px; height: 14px; color: #ff6b6b; }
.tile-name small { color: #f5c26b; font-weight: 500; }
.call-waiting { text-align: center; color: #a7abb2; font-size: 14px; }
.call-controls { display: flex; justify-content: center; gap: 10px; }
.call-control { width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #f2f2f2; }
.call-control > span { display: none; }
.call-control .icon { width: 22px; height: 22px; }
.call-control:hover { background: rgb(255 255 255 / .18); }
.call-control.off { background: #f2f2f2; color: #111; }
.call-control.sharing { background: var(--accent); color: var(--accent-ink); }
.call-control.leave { width: 68px; border-radius: 26px; background: #e5484d; color: #fff; }
.call-control.leave .icon { transform: rotate(135deg); }
.call-control.leave:hover { background: #cc3a3f; }
.call-mini { position: fixed; z-index: 26; left: 78px; bottom: 76px; width: 248px; display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: #101113; color: #f2f2f2; box-shadow: 0 16px 40px rgb(0 0 0 / .45); border: 1px solid rgb(255 255 255 / .08); }
.call-mini-info { display: flex; align-items: center; gap: 8px; color: inherit; font-size: 13.5px; }
.call-mini-info strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.call-mini-faces { display: flex; gap: 4px; }
.call-mini .call-controls { justify-content: flex-start; gap: 6px; }
.call-mini .call-control { width: 36px; height: 36px; min-height: 36px; }
.call-mini .call-control .icon { width: 17px; height: 17px; }
.call-mini .call-control.leave { width: 46px; }
.call-mini > .call-control { position: absolute; right: 10px; bottom: 10px; }
@media (max-width: 1240px) { .call-stage { left: 318px; } }
@media (max-width: 900px) {
  .call-stage { top: 52px; left: 0; padding: 12px; }
  .call-grid, .call-grid.count-2 { grid-template-columns: 1fr; }
  .call-mini { left: 10px; right: 10px; bottom: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .call-join, .incoming-who .avatar { animation: none; } }

/* Larguras */
@media (max-width: 1240px) {
  .app-shell, .app-shell.without-context { grid-template-columns: 70px 248px minmax(0, 1fr); }
  .context { position: fixed; z-index: 30; top: 48px; right: 0; bottom: 0; width: min(400px, 100vw); box-shadow: var(--shadow-lg); }
}
@media (max-width: 900px) {
  .app-shell, .app-shell.without-context { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr); }
  .rail { display: none; }
  .global-bar { padding: 0 8px; gap: 6px; }
  .global-bar .brand-word { flex: 0 0 auto; }
  .global-bar .brand-word > span, .search-shortcut, .connection { display: none; }
  .global-search { flex: 1; width: auto; min-width: 0; }
  .global-actions { flex: 0 0 auto; }
  .mobile-menu { display: inline-flex; color: var(--bar-ink); }
  .mobile-close { display: inline-flex; margin-left: auto; color: var(--side-muted); }
  .sidebar { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(310px, 86vw); border-radius: 0; transform: translateX(-102%); transition: transform .2s ease; }
  .sidebar.mobile-open { transform: none; box-shadow: var(--shadow-lg); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 35; background: rgb(5 19 29 / .5); }
  .workspace { grid-column: 1; }
  .context { top: 0; width: 100vw; z-index: 45; }
  .channel-header { padding: 8px 8px 8px 14px; min-height: 54px; }
  .channel-title p { display: none; }
  .summary-button > span { display: none; }
  .summary-button { width: 34px; padding: 0; }
  .channel-tabs { padding: 0 8px; overflow-x: auto; }
  .channel-privacy { display: none; }
  .message { padding: 8px 14px 6px; }
  .message-tools { right: 10px; }
  .channel-intro { padding: 26px 14px 14px; }
  .composer { padding: 0 10px 10px; }
  .compose-footer, .compose-tip { display: none; }
  .page-scroll { padding: 24px 16px 40px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-mobile-brand { display: block; align-self: flex-start; }
}
@media (hover: none) {
  .message-tools { position: static; grid-column: 2; justify-self: start; margin-top: 4px; opacity: 1; pointer-events: auto; box-shadow: none; }
  .message:not(:focus-within) .message-tools { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; } }
