#organization-name { color: #91a99a; font-size: 12px; margin: 5px 0 0; }
#organization-picker { margin-top: 9px; display: flex; align-items: center; gap: 8px; color: #91a99a; font-size: 11px; }
#organization-select { color: #eaf4ef; background: #152a21; border: 1px solid rgba(182,218,197,.25); border-radius: 8px; padding: 7px 10px; max-width: 240px; }
#connect-instagram-button { white-space: nowrap; }
#new-organization-button, #invite-member-button { white-space: nowrap; }
.account-chip-warning { border-color: #eab663; color: #ffe0a1; }
.manage-dialog { width: min(440px, calc(100vw - 28px)); border: 1px solid rgba(182,218,197,.25); border-radius: 18px; color: #eaf4ef; background: #13271f; padding: 26px; box-shadow: 0 24px 90px rgba(0,0,0,.5); }
.manage-dialog::backdrop { background: rgba(0,0,0,.7); }
.manage-form { display: grid; gap: 11px; }
.manage-form h2 { margin: 0; font-size: 20px; }
.manage-form p { margin: 0 0 7px; color: #a5b9ad; font-size: 13px; line-height: 1.5; }
.manage-form label { font-size: 12px; font-weight: 700; }
.manage-form input.secret-field { -webkit-text-security: disc; text-security: disc; }
.manage-form input, .manage-form select { width: 100%; border: 1px solid rgba(182,218,197,.25); border-radius: 10px; background: #0c1a15; color: #f3fbf6; padding: 12px; }
.manage-form textarea { width: 100%; border: 1px solid rgba(182,218,197,.25); border-radius: 10px; background: #0c1a15; color: #f3fbf6; padding: 12px; font: inherit; line-height: 1.5; resize: vertical; }
.improve-dialog { width: min(860px, calc(100vw - 28px)); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.improve-dialog .manage-form { min-width: 0; }
.improve-section { display: grid; gap: 10px; margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(182,218,197,.18); }
.improve-section h3 { margin: 0; font-size: 15px; }
.hours-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.manage-form .hours-toggle input, .manage-form .hours-day input[type=checkbox] { width: auto; padding: 0; }
.hours-hint { margin: 4px 0 0; font-size: 12px; color: #91a99a; }
.hours-grid { display: grid; gap: 6px; }
.hours-day { display: grid; grid-template-columns: 96px 1fr 1fr; align-items: center; gap: 8px; }
.hours-day label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.manage-form .hours-day input[type=time] { padding: 8px; }
.hours-day.fechado input[type=time] { opacity: .35; }
/* a fila rola dentro do próprio quadro: com muitas perguntas, tom de voz e horário continuam ao alcance sem rolar a janela inteira */
.suggestion-list { display: grid; gap: 12px; max-height: min(52vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.suggestion-card { display: grid; gap: 8px; border: 1px solid rgba(182,218,197,.2); border-radius: 12px; padding: 14px; background: #0f2019; }
.suggestion-question { margin: 0; font-weight: 700; color: #f3fbf6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.suggestion-card textarea { max-height: 220px; }
.suggestion-card .manage-actions { flex-wrap: wrap; }
@media (max-width: 560px) { .improve-dialog { padding: 16px; } .suggestion-list { max-height: 48vh; } .suggestion-card .manage-actions .button { flex: 1 1 100%; } }
.suggestion-meta { margin: 0; color: #a5b9ad; font-size: 12px; }
.suggestion-hint { margin: 0; color: #74e2b1; font-size: 12px; }
.suggestion-empty { color: #a5b9ad; font-size: 13px; }
.reply-box { display: grid; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(182,218,197,.18); }
.reply-box textarea { width: 100%; border: 1px solid rgba(182,218,197,.25); border-radius: 10px; background: #0c1a15; color: #f3fbf6; padding: 10px 12px; font: inherit; line-height: 1.5; resize: vertical; }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reply-hint { color: #a5b9ad; font-size: 12px; line-height: 1.4; }
.manage-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.manage-actions .button-primary { margin-top: 0; min-height: 0; }
.invitation-panel { display: grid; gap: 9px; margin-bottom: 20px; }
.invitation-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(116,226,177,.28); border-radius: 14px; background: linear-gradient(135deg,#132920,#10221b); padding: 14px 17px; }
.invitation-row p { margin: 0; color: #cae0d1; font-size: 12px; line-height: 1.5; }
.invitation-actions { display: flex; gap: 7px; flex-shrink: 0; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .invitation-row { flex-direction: column; align-items: flex-start; }
}
.account-chip { display: inline-flex; align-items: center; gap: 6px; }
.account-chip-avatar::before { display: none; }
.account-avatar { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.account-disconnect { border: 0; border-left: 1px solid rgba(182,218,197,.2); background: transparent; color: #f0c36e; font: inherit; font-weight: 700; padding: 0 0 0 7px; cursor: pointer; }
.account-disconnect:hover { text-decoration: underline; }
#login-screen { grid-template-rows: minmax(max-content, 1fr) auto auto; row-gap: 6px; }
#login-screen .login-card { align-self: center; }
.login-links { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; font-size: 11px; text-align: center; }
#login-screen .login-footer { position: static; margin: 0; text-align: center; }
.login-links a { color: #8fbaa0; }
.account-filter { border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.account-filter:hover { color: #e8fff1; text-decoration: underline; }
.account-chip-selected { border-color: rgba(116,226,177,.65); background: #1a392b; color: #e8fff1; }

/* Conexões na lateral: a lista de conversas ganha a largura/altura que as contas ocupavam. */
.sidebar-label-connections { margin-top: 26px; }
.sidebar .account-chips { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 7px; padding: 0 4px 12px; border-bottom: 0; overflow-y: auto; min-height: 0; flex: 0 1 auto; }
.sidebar .account-chip { white-space: normal; border-radius: 12px; padding: 8px 10px; font-size:11px; line-height: 1.4; flex-wrap: wrap; row-gap: 4px; }
.sidebar .account-chip-avatar::before, .sidebar .account-chip::before { flex: none; }
.sidebar .account-disconnect { margin-left: auto; font-size:10px; }
@media (min-width: 761px) {
  .inbox-layout { min-height: max(64vh, 560px); }
  .conversation-list { max-height: max(480px, calc(100vh - 400px)); }
  .message-list { max-height: max(560px, calc(100vh - 440px)); }
}
@media (max-width: 760px) {
  .sidebar .account-chips { flex-direction: row; padding: 0; overflow-x: auto; }
  .sidebar .account-chip { white-space: nowrap; flex: 0 0 auto; min-width: max-content; }
}
/* Cards de conexão compactos: ponto + nome na mesma linha, "Desconectar" logo abaixo à direita. */
.sidebar .account-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 10px; }
.sidebar .account-chip::before { margin-right: 0; }
.sidebar .account-avatar { flex: none; }
.sidebar .account-disconnect { border-left: 0; padding: 0; flex-basis: 100%; text-align: right; }
/* Desktop: caixa de entrada com altura fixa até o fim da tela; a lista de conversas e as mensagens rolam por dentro. */
@media (min-width: 761px) {
  .inbox-layout { height: max(560px, calc(100vh - 360px)); min-height: 0; }
  .conversation-panel, .detail-panel { display: flex; flex-direction: column; min-height: 0; height: 100%; }
  .conversation-list { flex: 1 1 0; min-height: 0; max-height: none; }
  .message-list { flex: 1 1 0; min-height: 0; max-height: none; }
}

/* Aproveita a tela toda no computador: a caixa de entrada desce até o rodapé, que fica colado embaixo. */
@media (min-width: 761px) {
  .inbox-layout { height: max(520px, calc(100vh - 330px)); }
  .workspace { padding-bottom: 6px; }
  .workspace-footer { padding: 8px 14px 4px; }
}

/* Radar da concorrência */
.radar-form { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr auto; gap: 8px; margin: 10px 0 4px; }
.radar-form .radar-extra { grid-column: 1 / -1; }
.radar-auto { color: #8de5ba; font-size: 12px; margin: 4px 0 0; }
.radar-tag { display: inline-block; border-radius: 20px; padding: 1px 8px; font-size:11px; font-weight: 700; margin: 0 4px 0 0; background: rgba(116,226,177,.12); color: #cfe8d8; }
.radar-extras { color: #86a091; }
.radar-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #cfe8d8; margin-bottom: 6px; }
.radar-profile summary { cursor: pointer; color: #cfe8d8; }
.radar-profile summary b { color: #8de5ba; font-weight: 600; }
.radar-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.radar-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.radar-table th, .radar-table td { padding: 8px 10px; border-bottom: 1px solid rgba(182,218,197,.12); text-align: left; vertical-align: top; }
.radar-table th { color: #8de5ba; font-weight: 700; white-space: nowrap; }
.radar-table td.radar-nos { color: #f3fbf6; font-weight: 600; }
.radar-table tr:last-child td { border-bottom: 0; }
.radar-form input, .radar-form select { background: #0c1a15; color: #f3fbf6; border: 1px solid rgba(182,218,197,.19); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.radar-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.radar-list { display: grid; gap: 8px; margin-bottom: 8px; }
.radar-row { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: rgba(17,35,29,.7); font-size: 12px; line-height: 1.5; }
.radar-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.radar-row small { color: #86a091; display: block; }
.radar-badge { display: inline-block; border-radius: 20px; padding: 2px 9px; font-size:11px; font-weight: 700; margin-right: 6px; }
.radar-badge-alta { background: rgba(255,140,120,.16); color: #ffb3a4; }
.radar-badge-media { background: rgba(242,195,107,.14); color: #f2c36b; }
.radar-badge-baixa { background: rgba(116,226,177,.1); color: #8de5ba; }
.radar-new { border-color: rgba(116,226,177,.45); }
.radar-suggestion { color: #cfe8d8; margin: 6px 0 0; }
.radar-empresa { border: 1px solid rgba(116,226,177,.3); border-radius: 12px; padding: 10px 13px; margin: 12px 0 6px; background: rgba(17,35,29,.55); }
.radar-empresa h3 { margin: 0 0 6px; font-size: 14px; }
.radar-empresa-form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; }
.radar-empresa-form input { background: #0c1a15; color: #f3fbf6; border: 1px solid rgba(182,218,197,.19); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.radar-empresa-info { font-size: 12px; line-height: 1.5; color: #cfe8d8; margin: 8px 0 0; }
.radar-empresa-info small { color: #86a091; }
.radar-sub { margin: 14px 0 6px; font-size: 13px; color: #8de5ba; }
.radar-preco { color: #f3fbf6; font-weight: 600; }
.radar-vazio { color: #86a091; font-style: italic; }
.radar-table td.radar-nada, .radar-table td.radar-nada .radar-vazio { color: rgba(134, 160, 145, .55); font-style: italic; font-weight: 400; }
.radar-gaps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radar-gaps ul, .radar-acoes { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.55; color: #cfe8d8; }
.radar-gaps li, .radar-acoes li { margin-bottom: 4px; }
@media (max-width: 760px) { .radar-form, .radar-empresa-form, .radar-gaps { grid-template-columns: 1fr; } }
/* aviso do teste grátis / empresa suspensa (renderPlanBanner em app.js) */
.plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; border: 1px solid rgba(98,183,255,.3); border-radius: 14px; background: linear-gradient(135deg,#132531,#10221b); padding: 14px 17px; }
.plan-banner p { margin: 0; color: #cfe2ef; font-size: 12px; line-height: 1.5; }
.plan-banner strong { color: #eaf4ef; }
.plan-banner-warn { border-color: rgba(242,195,107,.35); background: linear-gradient(135deg,#30291b,#1c261d); }
.plan-banner-warn p { color: #edcf92; }
.plan-banner-actions { display: flex; gap: 7px; flex-shrink: 0; }
.plan-banner-actions a { text-decoration: none; }
@media (max-width: 760px) { .plan-banner { flex-direction: column; align-items: flex-start; } .plan-banner-actions { flex-wrap: wrap; } }

.all-organizations-dialog { width: min(720px, 94vw); }
.all-organizations-list { display: grid; gap: 8px; max-height: 52vh; overflow: auto; }
.all-organizations-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; }
.all-organizations-row small { display: block; color: #a5b9ad; font-size: 12px; line-height: 1.5; }
.button-danger { color: #ff9b9b; border-color: rgba(255, 120, 120, .45); }
.team-form { display: grid; gap: 8px; margin: 12px 0 18px; }
dialog .team-form .team-submit { width: 100%; min-height: 58px; margin-top: 6px; border-radius: 14px; border: 0; background: #74e2b1; color: #08130f; font-size: 17px; font-weight: 800; letter-spacing: .02em; cursor: pointer; box-shadow: 0 0 0 3px rgba(116, 226, 177, .28), 0 10px 26px rgba(116, 226, 177, .28); }
.team-ok { margin: 0; padding: 0; color: #74e2b1; font-weight: 700; font-size: 14px; min-height: 0; }
.team-ok:not(:empty) { padding: 10px 12px; border: 1px solid rgba(116, 226, 177, .5); border-radius: 10px; background: rgba(116, 226, 177, .1); }
dialog .team-form .team-submit:hover:not(:disabled) { background: #98efc7; color: #0b1714; }
dialog .team-form .team-submit:disabled { opacity: .55; cursor: wait; }
.team-form .manage-actions { display: block; }
.team-lista { max-height: none; }
.usage-card { display: grid; gap: 8px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid rgba(182,218,197,.2); border-radius: 16px; background: #0f2019; }
.usage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.usage-head h2 { margin: 0; font-size: 16px; } .usage-month { font-size: 12px; color: #9db8a8; }
.usage-numbers { margin: 0; font-size: 22px; font-weight: 800; } .usage-numbers small { font-size: 13px; font-weight: 600; color: #9db8a8; }
progress.usage-bar { width: 100%; height: 12px; border: 0; border-radius: 999px; overflow: hidden; background: #0b1714; appearance: none; -webkit-appearance: none; }
progress.usage-bar::-webkit-progress-bar { background: #0b1714; border-radius: 999px; } progress.usage-bar::-webkit-progress-value { background: #2fd48a; border-radius: 999px; } progress.usage-bar::-moz-progress-bar { background: #2fd48a; border-radius: 999px; }
.usage-card.usage-aviso progress.usage-bar::-webkit-progress-value { background: #f5c451; } .usage-card.usage-aviso progress.usage-bar::-moz-progress-bar { background: #f5c451; }
.usage-card.usage-limite progress.usage-bar::-webkit-progress-value { background: #ff8a65; } .usage-card.usage-limite progress.usage-bar::-moz-progress-bar { background: #ff8a65; }
.usage-card.usage-aviso { border-color: #f5c451; } .usage-card.usage-limite { border-color: #ff8a65; }
.usage-text { margin: 0; font-size: 14px; line-height: 1.5; } .usage-cost { margin: 0; font-size: 12.5px; color: #9db8a8; } .usage-help { margin: 0; font-size: 12px; color: #7fa38e; }
.usage-actions { display: flex; gap: 8px; flex-wrap: wrap; } .usage-actions:empty { display: none; }
.usage-break { margin: 0; font-size: 12.5px; color: #9db8a8; } .usage-break:empty { display: none; }
.pack-list { display: grid; gap: 10px; margin: 10px 0; }
.pack-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid rgba(182,218,197,.2); border-radius: 12px; background: #0f2019; }
.pack-item strong { display: block; font-size: 16px; } .pack-item small { display: block; color: #9db8a8; font-size: 12.5px; }
.pack-pendente { color: #f5c451; font-size: 13px; font-weight: 700; }
.pack-item-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.platform-orders { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #f5c451; border-radius: 12px; background: rgba(245,196,81,.08); }
.platform-orders h3 { margin: 0; font-size: 14px; } .platform-orders .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.platform-packs { margin: 12px 0 0; } .platform-packs summary { cursor: pointer; font-size: 13px; color: #9db8a8; }
.platform-packs-list { display: grid; gap: 8px; margin-top: 8px; } .platform-packs-list .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; } .platform-packs-list input { width: 110px; }
.all-organizations-row .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.team-row.team-novo { border-color: #74e2b1; box-shadow: 0 0 0 2px rgba(116, 226, 177, .35); }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid rgba(182,218,197,.2); border-radius: 12px; padding: 12px 14px; background: #0f2019; }
.team-row.inativo { opacity: .6; }
.team-row strong { display: block; }
.team-row small { display: block; color: #a5b9ad; font-size: 12px; line-height: 1.5; }
.team-grow { flex: 1 1 260px; min-width: 0; }
.team-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.team-material p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #cfe2d8; font-size: 13px; line-height: 1.5; max-height: 6.5em; overflow: hidden; }

/* Radar (27/10/2026): aviso por cima do modal, aviso dentro do modal e barra de rolagem escura */
.toast { z-index: 9999; }
dialog .toast { right: 24px; bottom: 24px; }
.radar-status { align-self: center; font-size: 12px; padding: 6px 12px; border-radius: 99px; color: #cfe8d8; background: rgba(116,226,177,.12); border: 1px solid rgba(116,226,177,.3); }
.radar-status:empty { display: none; }
.radar-status.erro { color: #ffd0c4; background: rgba(255,138,101,.12); border-color: rgba(255,138,101,.4); }
.radar-status.carregando::before { content: "⏳ "; }
.manage-dialog, .radar-table-wrap { scrollbar-width: thin; scrollbar-color: rgba(116,226,177,.35) transparent; }
.manage-dialog::-webkit-scrollbar, .radar-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.manage-dialog::-webkit-scrollbar-track, .radar-table-wrap::-webkit-scrollbar-track { background: transparent; }
.manage-dialog::-webkit-scrollbar-thumb, .radar-table-wrap::-webkit-scrollbar-thumb { background: rgba(116,226,177,.32); border-radius: 8px; }
.manage-dialog::-webkit-scrollbar-thumb:hover, .radar-table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(116,226,177,.5); }

/* Confirmação no meio da tela (convite enviado, empresa criada): texto centralizado, botão OK embaixo. */
.aviso-central { width: min(420px, calc(100vw - 32px)); text-align: center; }
.aviso-central p { margin: 8px 0 16px; line-height: 1.5; }
.aviso-central .manage-actions { justify-content: center; }
