@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/PlusJakartaSans-variable.ttf) format("truetype"); font-style: normal; font-weight: 200 800; font-display: swap; }

/* Tokens únicos; fundos neutros, sem matiz azul. */
:root {
  color-scheme: dark;
  --bg-page: #141619;
  --bg-navigation: #141619;
  --bg-list: #202326;
  --bg-card: #202326;
  --bg-hover: #32343A;
  --bg-selected: #484B53;
  --accent: #4c70da;
  --accent-hover: #557CF2;
  --alert-bg: #401923;
  --alert: #FF4D4F;
  --text-title: #ffffff;
  --text: #D3D6DD;
  --text-secondary: #898B90;
  --text-muted: #898B90;
  --border: #3D4047;
  --border-soft: rgba(255,255,255,.06);
  /* Tokens adicionais extraídos da referência (ver docs/09-design-tokens-umbler.md) */
  --bg-surface: #2E3236;
  --bg-disabled: #3D4047;
  --bg-tooltip: #080808;
  --bg-info: #252849;
  --bg-warning: #453316;
  --bg-success: #242F27;
  --bg-note: #5A492E;
  --bg-modal: #1A1D20;
  --text-info: #557CF2;
  --text-warning: #FAAD14;
  --text-success: #52C41A;
  --unread-bg: #0C8E63;
  --bubble-out-bg: #3D4047;
  --bubble-in-bg: #202326;
  --radius-control: 16px;
  --radius-button: 30px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --navigation-width: 263px;
  --conversation-width: clamp(350px, 30vw, 500px);
  --font: 'Plus Jakarta Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg-page); color: var(--text); font: 14px/1.45 var(--font); }
button, input { font: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-layout { display: grid; grid-template-columns: var(--navigation-width) var(--conversation-width) minmax(0, 1fr); min-width: 1150px; height: 100dvh; overflow: hidden; }

/* 1. Navigation */
.navigation { display: flex; flex-direction: column; min-height: 0; padding: 0 16px 20px; background: var(--bg-navigation); border-right: 1px solid var(--border); }
.brand-row { height: 73px; min-height: 73px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 15px; }
.wordmark { color: var(--text-title); font-size: 32px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.icon-button { width: 30px; height: 30px; flex-shrink: 0; color: var(--text-secondary); border-radius: var(--radius-sm); }
.icon-button:hover { background: var(--bg-hover); color: var(--text-title); }
.brand-row .icon-button { color: var(--text-title); }
.nav-items { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.nav-item { width: 100%; min-height: 40px; padding: 9px 16px; gap: 10px; border-radius: var(--radius-md); justify-content: flex-start; text-align: left; font-size: 15px; color: var(--text-title); }
.nav-item .icon { width: 16px; height: 16px; }
.nav-item:hover { background: var(--bg-hover); }
.nav-item.is-active { background: var(--bg-selected); }
.nav-item.is-active .icon { fill: currentColor; stroke-width: 1; }
.navigation-bottom { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.account { min-width: 0; width: 100%; gap: 8px; justify-content: flex-start; padding: 19px 10px 0; text-align: left; }
.account-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--text-title); }
.account > .icon { width: 15px; height: 15px; }
.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: #dadcdf; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.avatar--account { width: 36px; height: 36px; background: #5b18c5; border: 2px solid #259973; font-size: 12px; }
.presence { position: absolute; right: -2px; top: -1px; width: 12px; height: 12px; background: #37c58d; border: 1px solid #fff; border-radius: 50%; }
.avatar--green { background: #2c4841; }
.avatar--red { background: #65343d; }
.avatar--gray { background: #46494c; }

/* 2. Conversation list */
.conversation-column { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-list); border-radius: 0 36px 0 0; overflow: hidden; }
.conversation-header { display: flex; align-items: center; justify-content: space-between; height: 73px; min-height: 73px; padding: 0 17px 0 22px; border-bottom: 1px solid var(--border); }
.channel-tabs { display: flex; gap: 12px; }
.channel-tabs .is-active { color: var(--accent); }
.add-button { width: 42px; height: 42px; border-radius: 50%; background: #303437; color: #767b83; }
.add-button .icon { width: 24px; height: 24px; stroke-width: 1; }
.add-button:hover { background: #3a3e42; }
.search-toolbar { display: flex; align-items: center; gap: 12px; height: 54px; min-height: 54px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.search-toolbar .icon-button { width: 24px; }
.search-toolbar .icon { width: 16px; height: 16px; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; gap: 14px; color: #b6bfca; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; }
.search-field input::placeholder { color: var(--text-muted); opacity: 1; }
.search-field input:focus-visible { outline-offset: 5px; }
.status-tabs { display: flex; flex-shrink: 0; margin: 16px; padding: 2px; background: var(--bg-page); border-radius: var(--radius-pill); height: 40px; }
.status-tabs button { gap: 9px; flex: 1; min-width: 0; border-radius: var(--radius-pill); padding: 7px 10px; font-size: 14px; color: var(--text-title); }
.status-tabs button.is-active { background: var(--accent); }
.tab-count { font-size: 10px; font-weight: 400; }
.subscription-alert { display: flex; align-items: center; gap: 10px; min-height: 92px; padding: 18px; background: var(--alert-bg); flex-shrink: 0; }
.subscription-alert p { margin: 0 0 7px; font-size: 14px; color: #ffc5c7; }
.alert-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--alert); color: #5b1720; }
.alert-icon .icon { width: 15px; height: 15px; }
.button { border-radius: var(--radius-pill); padding: 12px 26px; min-height: 42px; font-size: 13px; color: var(--text-title); line-height: 1.2; }
.button--primary { background: var(--accent); }
.button--primary:hover { background: var(--accent-hover); }
.button--danger { background: var(--alert); }
.button--small { min-height: 26px; padding: 5px 11px; }
.conversation-list { flex: 1; overflow-y: auto; min-height: 0; }
.conversation { width: 100%; min-height: 108px; padding: 16px; gap: 16px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.conversation:hover, .conversation.is-selected { background: #25292c; }
.conversation-body { display: block; flex: 1; min-width: 0; }
.conversation-heading { display: flex; align-items: center; gap: 16px; }
.conversation-heading strong { font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-heading time { margin-left: auto; flex-shrink: 0; font-size: 11px; color: var(--text-muted); }
.message-preview { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; min-height: 20px; color: var(--text-muted); }
.conversation-meta .icon { width: 16px; height: 16px; }
.sector-tag { border: 1px solid #3c4044; border-radius: var(--radius-pill); padding: 1px 8px; font-size: 11px; line-height: 1.4; }
.channel-badge { display: grid; place-items: center; position: absolute; left: -4px; bottom: -4px; width: 24px; height: 24px; border: 2px solid var(--bg-list); border-radius: 50%; color: #d0c9f0; background: #524288; }
.channel-badge .icon { width: 17px; height: 17px; }

/* 3. Main content panel */
.main-panel { min-width: 0; overflow-y: auto; padding: 48px 40px; background: var(--bg-page); }
.notice-heading { text-align: center; }
.notice-heading > p { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 0; font-size: 15px; }
.notice-heading > p > .icon { width: 15px; height: 15px; color: var(--alert); }
.notice-heading strong { font-weight: 600; }
.notice-heading h1 { color: var(--text-title); font-size: clamp(23px, 1.7vw, 32px); line-height: 1.25; letter-spacing: -.65px; font-weight: 600; margin: 12px 0 0; }
.benefits { margin-top: 46px; }
.benefits > h2 { text-align: center; font-size: clamp(20px, 1.35vw, 26px); font-weight: 600; line-height: 1.3; letter-spacing: -.5px; margin: 0 0 30px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 36px 40px; min-width: 0; }
.benefit-icon { width: 17px; height: 17px; color: #c4b7d7; margin-bottom: 22px; }
.benefit-card:nth-child(2) .benefit-icon { color: #58ce96; }
.benefit-card:nth-child(3) .benefit-icon { color: #c2cdf0; }
.benefit-card h3 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.45px; margin: 0 0 9px; }
.benefit-card p { font-size: 16px; line-height: 1.55; margin: 0; }
.main-action { margin-top: 54px; text-align: center; }
* { scrollbar-width: thin; scrollbar-color: #4a4e52 transparent; }

/* Mantém as três colunas; reduz apenas as proporções em notebooks. */
@media (max-width: 1550px) {
  :root { --navigation-width: 240px; --conversation-width: 390px; }
  .main-panel { padding: 42px 28px; }
  .benefit-grid { gap: 12px; }
  .benefit-card { padding: 26px 22px; }
  .benefit-card h3 { font-size: 17px; }
  .benefit-card p { font-size: 14px; }
  .search-toolbar { gap: 10px; padding-inline: 16px; }
}
