[hidden],
input[type="hidden"] {
  display: none !important;
}
:root {
  --navy: #102d40;
  --teal: #008d79;
  --mint: #e7f5f0;
  --ink: #203846;
  --muted: #71808d;
  --line: #e5ebed;
  --bg: #f5f7f8;
  --white: #fff;
  --radius: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    14px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 17px;
  cursor: pointer;
  white-space: normal;
  font-weight: 600;
  line-height: 1.35;
  transition: 0.16s;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.primary {
  background: var(--teal);
  color: #fff;
}
.secondary {
  background: #fff;
  border-color: #dce5e7;
  color: var(--ink);
}
.danger {
  background: #fff3f3;
  color: #bf4450;
  border-color: #f6dfe2;
}
.light {
  background: #fff;
  color: var(--navy);
}
.small {
  font-size: 12px;
  padding: 8px 12px;
}
.wide {
  width: 100%;
}
.icon-button {
  background: transparent;
  padding: 5px;
  color: inherit;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 17px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #dce3e6;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  font-weight: 400;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #008d7910;
}
textarea {
  resize: vertical;
}
label small {
  color: var(--muted);
  font-size: 11px;
}
.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
}
.check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}
.grid-two,
.grid-three {
  display: grid;
  gap: 18px;
}
.grid-two {
  grid-template-columns: 1fr 1fr;
}
.grid-three {
  grid-template-columns: repeat(3, 1fr);
}
.form-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.form-actions {
  margin-top: 9px;
  justify-content: space-between;
}
.form-actions small {
  color: var(--muted);
  max-width: 260px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.3px;
  color: var(--navy);
}
.brand > img {
  width: 43px;
  height: 43px;
}
.brand span span {
  color: var(--teal);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  z-index: 5;
}
.sidebar .brand {
  margin: 0 7px 40px;
}
.nav-caption {
  font-size: 9px;
  color: #9aa6ad;
  letter-spacing: 1.8px;
  margin: 0 15px 14px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  color: #73818b;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
}
.sidebar nav a.active {
  background: #e8f5ef;
  color: #087e6f;
}
.sidebar nav a:hover {
  background: #f3f8f6;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.sidebar-bottom strong {
  display: block;
  font-weight: 600;
  max-width: 114px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-bottom small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.sidebar-bottom form {
  margin-left: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal);
  font-size: 14px;
}
.workspace {
  margin-left: 244px;
  min-height: 100vh;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 23px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.breadcrumb {
  font-size: 10px;
  color: #8a989f;
}
.topbar h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin-top: 3px;
  font-weight: 650;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.online-dot {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.online-dot:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #04a882;
  border-radius: 50%;
  margin-right: 7px;
}
.company-switch {
  display: flex;
  gap: 8px;
  align-items: end;
}
.company-switch label {
  margin: 0;
  min-width: 160px;
  font-size: 9px;
}
.company-switch select {
  padding: 7px 9px;
  font-size: 11px;
}
.page-body {
  padding: 30px 38px;
  max-width: 1800px;
  margin: auto;
}
.workspace-footer {
  text-align: center;
  padding: 0 30px 23px;
  font-size: 10px;
  color: #a0abb0;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(115deg, #103d44, #0a685d);
  border-radius: 17px;
  padding: 32px 35px;
  color: #fff;
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
}
.welcome .eyebrow {
  color: #a6d8c5;
  font-size: 9px;
}
.welcome h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 9px 0;
}
.welcome p {
  font-size: 12px;
  color: #c3deda;
  max-width: 380px;
  margin-bottom: 20px;
}
.welcome .button {
  font-size: 11px;
  padding: 10px 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--teal);
}
.welcome-art {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  min-width: 210px;
  color: #aad6c9;
  font-size: 9px;
  padding-right: 25px;
}
.orb {
  width: 115px;
  height: 115px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  transform: rotate(-12deg);
  background: #ffffff12;
  box-shadow:
    0 0 0 20px #ffffff04,
    0 0 0 42px #ffffff03;
}
.orb svg {
  width: 48px;
  height: 48px;
  transform: rotate(12deg);
  stroke: #ccf0df;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stats article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px 22px;
  position: relative;
  min-height: 105px;
}
.stats small {
  color: var(--muted);
  font-size: 11px;
  display: block;
}
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-top: 6px;
}
.stat-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #f1f7f4;
  color: var(--teal);
  padding: 7px;
  border-radius: 9px;
}
.stat-icon svg {
  width: 16px;
  height: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.section-title h2,
.card > h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
th {
  color: #91a0a8;
  background: #f8fafb;
  font-size: 10px;
  font-weight: 500;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid #f0f3f4;
  vertical-align: middle;
  min-width: 85px;
}
tr:last-child td {
  border-bottom: 0;
}
.record-link {
  font-weight: 600;
  color: #2b4956;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
small.muted {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.badge {
  display: inline-flex;
  border-radius: 6px;
  font-size: 9px;
  padding: 5px 8px;
  white-space: nowrap;
}
.badge.good {
  background: #eaf7f0;
  color: #168769;
}
.badge.bad {
  background: #fff0f1;
  color: #b4525d;
}
.badge.neutral {
  background: #f0f4f7;
  color: #7e8d9d;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.toolbar p {
  color: var(--muted);
  font-size: 12px;
}
.section-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.campaign-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding: 6px 0 26px;
}
.campaign-heading h2 {
  font-size: 24px;
  margin: 7px 0;
}
.campaign-heading p {
  color: var(--muted);
  margin-bottom: 10px;
}
.retry-bar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.retry-bar button {
  font-size: 11px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 15px;
}
.filters label {
  margin: 0;
  min-width: 200px;
}
.filters + p {
  margin: 15px 0;
}
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.qr-box {
  text-align: center;
  max-width: 430px;
  margin: auto;
}
.qr-box img {
  width: 260px;
  max-width: 100%;
}
.qr-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.error-text {
  color: #b64a57;
}
.chat-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 235px;
  gap: 18px;
  min-height: 620px;
}
.chat-list {
  padding: 0;
  overflow: hidden;
}
.chat-search {
  display: flex;
  gap: 7px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.chat-search input {
  font-size: 10px;
  padding: 10px;
  min-width: 0;
}
.chat-list-items {
  max-height: 680px;
  overflow: auto;
}
.chat-contact {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 13px;
  border-bottom: 1px solid #f1f4f5;
  color: var(--ink);
}
.chat-contact > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.chat-contact strong {
  font-size: 11px;
  font-weight: 600;
}
.chat-contact p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.chat-contact small {
  font-size: 9px;
  color: #9aa6ad;
}
.chat-contact.selected {
  background: #eef8f4;
  border-left: 3px solid var(--teal);
  padding-left: 10px;
}
.contact-avatar {
  background: #e7f1ed;
  color: #69978c;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}
.unread {
  border-radius: 50%;
  background: var(--teal);
  color: white;
  padding: 2px 6px;
  font-size: 8px;
}
.chat-detail {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.chat-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.chat-header h2 {
  font-size: 14px;
}
.chat-header .muted {
  font-size: 9px;
}
.messages {
  flex: 1;
  background: #f5f8f6;
  padding: 24px;
  overflow: auto;
  height: 410px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.bubble {
  max-width: 85%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #e6eee8;
  border-radius: 12px 12px 12px 2px;
  align-self: flex-start;
}
.bubble p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bubble small {
  display: block;
  font-size: 8px;
  color: #8a9c94;
  margin-top: 8px;
}
.bubble .badge {
  font-size: 8px;
  margin-top: 5px;
}
.bubble.out {
  align-self: flex-end;
  background: #dff4e9;
  border-color: #d5e9dc;
  border-radius: 12px 12px 2px 12px;
}
.composer {
  padding: 18px;
}
.composer select {
  font-size: 11px;
  padding: 8px;
}
.composer label {
  margin-bottom: 10px;
}
.composer .form-actions small {
  font-size: 9px;
}
.composer button {
  font-size: 11px;
}
.chat-tools {
  padding: 18px;
  height: fit-content;
}
.chat-tools h2 {
  margin-bottom: 23px;
}
.chat-tools select {
  font-size: 11px;
}
.chat-tools button {
  font-size: 10px;
}
.chat-tools hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.chat-empty {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  gap: 16px;
}
.chat-empty svg {
  width: 54px;
  height: 54px;
  color: var(--teal);
  opacity: 0.5;
}
.chat-empty h2 {
  color: var(--ink);
  font-size: 20px;
}
.chat-empty p {
  font-size: 12px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: linear-gradient(145deg, #103745 0%, #104a48 60%, #117360 100%);
  color: #fff;
  padding: 43px 10%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid #ffffff08;
  border-radius: 50%;
  bottom: -180px;
  right: -200px;
  box-shadow:
    0 0 0 60px #ffffff03,
    0 0 0 120px #ffffff02;
}
.login-story .brand {
  color: #fff;
  letter-spacing: -1px;
}
.login-story .brand span span {
  color: #8ce0be;
}
.login-story .brand img {
  width: 40px;
  height: 40px;
}
.story-main {
  margin: auto 0;
  padding: 80px 0;
}
.login-story .eyebrow {
  color: #a6d4c6;
  font-size: 9px;
}
.login-story h1 {
  font-size: clamp(39px, 4.3vw, 68px);
  line-height: 1.12;
  letter-spacing: -2.5px;
  font-weight: 600;
  margin: 25px 0;
}
.login-story p {
  font-size: 12px;
  line-height: 1.9;
  color: #b0d0c8;
}
.story-signal {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 43px;
  height: 34px;
}
.story-signal i {
  display: block;
  background: #79d7b6;
  width: 3px;
  border-radius: 4px;
  height: 20px;
}
.story-signal i:nth-child(2n) {
  height: 30px;
}
.story-signal i:nth-child(3n) {
  height: 13px;
}
.story-signal span {
  font-size: 10px;
  margin-left: 15px;
  color: #b9d9ce;
}
.login-story > small {
  font-size: 10px;
  color: #8fb6aa;
}
.login-form {
  background: #fafbfb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  position: relative;
}
.login-box {
  width: 100%;
  max-width: 370px;
}
.small-brand {
  color: var(--teal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.login-box h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin-top: 16px;
  font-weight: 650;
}
.login-box > p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 35px;
}
.login-box label {
  font-size: 11px;
  margin-bottom: 21px;
}
.login-box input {
  padding: 14px;
  background: #fff;
}
.login-box .primary {
  margin-top: 8px;
  padding: 14px;
  justify-content: space-between;
}
.login-help {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 29px;
  color: #95a0a7;
  font-size: 10px;
  text-align: center;
}
.login-form footer {
  position: absolute;
  bottom: 30px;
  font-size: 10px;
  color: #a0abb1;
}
@media (min-width: 1600px) {
  .page-body {
    padding: 40px 50px;
  }
  .topbar {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 210px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 210px;
  }
  .page-body {
    padding: 25px;
  }
  .topbar {
    padding: 20px 25px;
  }
  .online-dot {
    display: none;
  }
  .chat-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .chat-tools {
    grid-column: 2;
  }
  .chat-list {
    grid-row: span 2;
  }
  .section-grid {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .campaign-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .welcome-art {
    min-width: 160px;
    padding: 0;
  }
  .stats article {
    padding: 18px;
  }
  .stat-icon {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar .brand {
    margin: 0;
    font-size: 24px;
  }
  .sidebar .brand img {
    width: 33px;
    height: 33px;
  }
  .sidebar .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    margin-top: 14px;
  }
  .sidebar nav a {
    padding: 9px 12px;
    font-size: 10px;
    white-space: nowrap;
  }
  .sidebar nav svg {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    padding: 20px;
    align-items: flex-start;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .top-right {
    gap: 0;
  }
  .company-switch label {
    min-width: 110px;
  }
  .company-switch select {
    max-width: 140px;
  }
  .company-switch button {
    display: none;
  }
  .page-body {
    padding: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats article {
    padding: 15px;
    min-height: 90px;
  }
  .stats strong {
    font-size: 26px;
  }
  .welcome {
    padding: 25px;
  }
  .welcome h2 {
    font-size: 24px;
  }
  .welcome-art {
    display: none;
  }
  .card {
    padding: 18px;
  }
  .section-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .grid-three {
    gap: 10px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .chat-list {
    max-height: 260px;
    grid-row: auto;
  }
  .chat-list-items {
    max-height: 190px;
  }
  .chat-tools {
    grid-column: auto;
  }
  .chat-empty {
    grid-column: auto;
    min-height: 250px;
  }
  .chat-detail {
    min-height: 550px;
  }
  .messages {
    height: 350px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 25px 30px;
  }
  .story-main {
    padding: 35px 0;
  }
  .login-story h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }
  .login-story p,
  .story-signal,
  .login-story > small {
    display: none;
  }
  .login-form {
    padding: 40px 25px 75px;
    min-height: 520px;
  }
  .login-box h2 {
    font-size: 25px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .filters {
    flex-wrap: wrap;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .filters label {
    min-width: 170px;
  }
  .form-actions small {
    max-width: 180px;
  }
  .campaign-heading h2 {
    font-size: 22px;
  }
}

.topbar > div:first-child {
  min-width: 200px;
}
.section-title h2 {
  white-space: nowrap;
}
.badge {
  width: max-content;
}
.welcome > div:first-child {
  min-width: 400px;
}
.welcome .button {
  width: max-content;
}
@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
  }
  .welcome > div:first-child {
    min-width: 0;
  }
}
.setup-page{max-width:760px;margin:45px auto;padding:0 20px}.setup-page>.brand{margin-bottom:25px}.setup-page .card{padding:34px}.setup-page h1{font-size:27px;margin:12px 0}.setup-page h2{font-size:16px;margin:25px 0 17px}.setup-page p{margin:15px 0;line-height:1.8}.setup-checks{display:flex;flex-wrap:wrap;gap:7px;margin:25px 0}.setup-error{padding:15px;background:#fff0f1;color:#a84050;border-radius:8px}.setup-success .button{margin:10px 8px 0 0}.form-subtitle{font-size:13px;margin:20px 0 14px}.card hr{border:0;border-top:1px solid var(--line);margin:18px 0}

/* Envia VC: mais cor, leitura confortável e temas claro/escuro. */
:root{--bg:#eaf1f8;--ink:#1d344c;--muted:#62788e;--line:#d6e2ed;--surface:#fff;--surface-soft:#f0f6fc;--input:#f8fbff;--teal:#008f7b;--mint:#def7ee;--shadow:0 8px 30px #153f6310;--radius:18px;color-scheme:light}
html[data-tema="escuro"]{--bg:#0a1523;--ink:#e4edf8;--muted:#a2b5ca;--line:#2b4057;--surface:#16283b;--surface-soft:#1b3147;--input:#112236;--teal:#36c9b0;--mint:#153e3a;--shadow:0 12px 36px #00000025;color-scheme:dark}
body{font-size:16px;background:radial-gradient(ellipse at 85% 0%,#c6e3f690,transparent 48%),radial-gradient(ellipse at 20% 100%,#d3efea70,transparent 40%),var(--bg);line-height:1.6}
html[data-tema="escuro"] body{background:radial-gradient(ellipse at 90% 0%,#16374c70,transparent 50%),radial-gradient(ellipse at 20% 100%,#11392e50,transparent 40%),var(--bg)}
button,.button{font-size:14px;border-radius:11px;padding:12px 18px;transition:background .18s,box-shadow .18s,transform .18s}
button:focus-visible,.button:focus-visible,a:focus-visible{outline:3px solid #35b7b1;outline-offset:3px}
button:hover,.button:hover{box-shadow:0 5px 15px #143f5318}
.primary{background:linear-gradient(120deg,#008f7b,#087f95);color:#fff;box-shadow:0 4px 12px #008f7b22}
.primary:hover{box-shadow:0 6px 18px #008f7b38}
.secondary{background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
.danger{background:#fff0f1;border-color:#f2ced4;color:#aa3446}
html[data-tema="escuro"] .danger{background:#482530;border-color:#72404c;color:#ffb5be}
.light{color:#134c59;background:#f4fffb;border-color:#c1ede1}
.small{font-size:13px;padding:9px 13px}
label{font-size:14px;gap:8px;line-height:1.5;color:var(--ink)}
input,textarea,select{font-size:15px;background:var(--input);border-color:var(--line);color:var(--ink);border-radius:10px;padding:12px 13px;min-height:44px}
input::placeholder,textarea::placeholder{color:#8194a7;opacity:1}
input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #12a58f19}
select option{background:var(--surface);color:var(--ink)}
label small,.muted{font-size:13px;color:var(--muted)}
small.muted{font-size:12px;line-height:1.5}
.check{font-size:13px;gap:10px}.check input{min-height:16px;width:17px;height:17px}
.sidebar{background:linear-gradient(165deg,#102e46 0%,#0b2037 65%,#0d3e47 100%);border-right-color:#143c51;box-shadow:6px 0 28px #153a5810}
.sidebar .brand{color:#f0f8ff;font-size:30px}.sidebar .brand span span{color:#46d3b3}
.nav-caption{color:#91b1c8;font-size:11px;letter-spacing:1.7px}
.sidebar nav{gap:8px}.sidebar nav a{font-size:14px;color:#b7cada;padding:13px 14px;border:1px solid transparent;line-height:1.4}
.sidebar nav a svg{flex-shrink:0;width:21px;height:21px}
.sidebar nav a.active{color:#e9fff8;background:linear-gradient(100deg,#0e857d75,#1674a04a);border-color:#37b49c66;box-shadow:inset 3px 0 0 #42d6b2}
.sidebar nav a:hover{color:#fff;background:#ffffff0d}
.sidebar-bottom{border-top-color:#ffffff18;color:#edf6ff;padding-top:20px;align-items:center;gap:8px}
.sidebar-bottom strong{font-size:12px;max-width:135px}.sidebar-bottom small{color:#9fb9ce;font-size:11px}
.avatar{background:#216d6d;color:#dcfff1;flex-shrink:0;width:36px;height:36px;font-size:16px}
.sidebar-bottom .icon-button{color:#a8c8d8;min-width:30px;padding:5px}
.topbar{background:linear-gradient(120deg,#f7fcffed,#e6f1faee);border-color:var(--line);padding-top:25px;padding-bottom:25px;box-shadow:0 3px 16px #264f6f06}
html[data-tema="escuro"] .topbar{background:linear-gradient(120deg,#14283bed,#182e43ee)}
.topbar h1{font-size:27px;font-weight:650;line-height:1.3;letter-spacing:-.6px}
.breadcrumb{font-size:12px;color:var(--muted)}
.top-right{gap:16px;flex-wrap:wrap;justify-content:flex-end}
.online-dot{font-size:12px;color:var(--muted);border:1px solid var(--line);background:var(--surface);border-radius:30px;padding:8px 11px}
.online-dot:before{background:#16b78c;box-shadow:0 0 0 3px #16b78c13}
.company-switch label{font-size:11px}.company-switch select{font-size:13px;padding:8px 11px}
.company-switch button{font-size:12px}
.page-body{padding-top:30px}.workspace-footer{font-size:12px;color:var(--muted)}
.welcome{background:linear-gradient(112deg,#114d5b 0%,#078d7d 58%,#1d6b9d 100%);border:1px solid #4dbca380;box-shadow:0 10px 28px #087e7c20;padding:34px 36px;isolation:isolate}
.welcome:after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 85% 15%,#bdf8ea20 0 70px,transparent 71px),radial-gradient(circle at 93% 95%,#c7f2ff15 0 160px,transparent 161px);pointer-events:none}
.welcome .eyebrow{font-size:11px;color:#c3f7e4}.welcome h2{font-size:30px;line-height:1.25;max-width:680px}
.welcome p{font-size:14px;line-height:1.7;color:#d3f3ed;max-width:560px}.welcome .button{font-size:13px}
.welcome-art{color:#c9f4ec;font-size:12px}.orb{background:#ffffff16;box-shadow:0 0 0 20px #ffffff06,0 0 0 42px #ffffff04}.orb svg{stroke:#d7fff0}
.eyebrow{font-size:12px;color:var(--teal)}
.stats{gap:18px}.stats article{border-radius:16px;padding:23px;box-shadow:var(--shadow);border-color:#cbe8e1;background:linear-gradient(140deg,#f2fffb,#d6f4e9);overflow:hidden;min-height:124px}
.stats article:before{content:"";position:absolute;left:0;top:19px;bottom:19px;width:4px;background:#0eac89;border-radius:0 5px 5px 0}
.stats article:nth-child(4n+2){background:linear-gradient(140deg,#f3f9ff,#dbeaff);border-color:#ccdef6}.stats article:nth-child(4n+2):before{background:#438df0}
.stats article:nth-child(4n+3){background:linear-gradient(140deg,#f8f5ff,#e7defb);border-color:#ddd3ef}.stats article:nth-child(4n+3):before{background:#9567df}
.stats article:nth-child(4n+4){background:linear-gradient(140deg,#fffaf0,#ffedc9);border-color:#ecdfbd}.stats article:nth-child(4n+4):before{background:#d89b30}
.stats small{font-size:13px;color:#526f7d;max-width:175px}.stats strong{font-size:35px;font-weight:650;line-height:1.2;margin-top:12px;color:#163f4e}
.stat-icon{background:#ffffffa8;color:#008f7b;top:19px;right:15px;padding:8px}.stat-icon svg{width:18px;height:18px}
html[data-tema="escuro"] .stats article{background:linear-gradient(140deg,#183b3b,#16302f);border-color:#2a5752}
html[data-tema="escuro"] .stats article:nth-child(4n+2){background:linear-gradient(140deg,#1c3a58,#182c43);border-color:#31516e}
html[data-tema="escuro"] .stats article:nth-child(4n+3){background:linear-gradient(140deg,#332b50,#27243c);border-color:#4b3d69}
html[data-tema="escuro"] .stats article:nth-child(4n+4){background:linear-gradient(140deg,#453821,#302a21);border-color:#665235}
html[data-tema="escuro"] .stats small{color:#bdd0df}html[data-tema="escuro"] .stats strong{color:#f0f7ff}html[data-tema="escuro"] .stat-icon{background:#ffffff0b;color:#77ddc7}
.card{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow);border-radius:18px;padding:25px}
.section-title{margin-bottom:21px}.section-title h2,.card>h2{font-size:18px;color:var(--ink)}
table{font-size:13px}th{font-size:12px;font-weight:600;background:var(--surface-soft);color:var(--muted);padding:14px 15px}td{padding:17px 15px;border-color:var(--line);color:var(--ink)}
tbody tr:nth-child(even){background:#ecf5fc4d}html[data-tema="escuro"] tbody tr:nth-child(even){background:#20394e30}
tbody tr:hover{background:#11a18a08}.record-link{color:var(--ink);font-size:14px}.record-link:hover{color:var(--teal)}
.badge{font-size:11px;padding:6px 9px;border-radius:8px;line-height:1.4;max-width:100%;white-space:normal}
.badge.good{background:#dbf5e8;color:#107856}.badge.bad{background:#ffe7eb;color:#ae3f52}.badge.neutral{background:#e8eef7;color:#526b87}
html[data-tema="escuro"] .badge.good{background:#164a3a;color:#9de4bf}html[data-tema="escuro"] .badge.bad{background:#502c37;color:#ffc0cb}html[data-tema="escuro"] .badge.neutral{background:#263e58;color:#c0d5ec}
.toolbar p{font-size:14px}.empty{font-size:14px;color:var(--muted)}.campaign-heading h2{font-size:28px}.retry-bar button{font-size:13px}
.chat-list{padding:0}.chat-search{border-color:var(--line)}.chat-search input{font-size:13px}.chat-contact{color:var(--ink);border-color:var(--line)}
.chat-contact strong{font-size:14px}.chat-contact p{font-size:13px}.chat-contact small{font-size:11px;color:var(--muted)}.chat-contact.selected{background:var(--mint)}
.contact-avatar{background:var(--mint);color:var(--teal);font-size:13px}.chat-header{border-color:var(--line)}.chat-header h2{font-size:17px}.chat-header .muted{font-size:12px}
.messages{background:var(--surface-soft)}.bubble{background:var(--surface);border-color:var(--line)}.bubble p{font-size:15px}.bubble small{font-size:11px;color:var(--muted)}.bubble .badge{font-size:10px}
.bubble.out{background:#d9f4e7;border-color:#bce2d1}html[data-tema="escuro"] .bubble.out{background:#174b40;border-color:#28685b}.composer{background:var(--surface)}
.composer label{font-size:13px}.composer select{font-size:14px}.composer .form-actions small{font-size:11px}.composer button{font-size:14px}.chat-tools button{font-size:12px}.chat-tools select{font-size:13px}.chat-tools hr{border-color:var(--line)}
.chat-empty h2{font-size:23px}.chat-empty p{font-size:14px}
.login-story{background:linear-gradient(145deg,#0f344f,#076f70 65%,#07947b)}.login-story .brand{font-size:31px}.login-story p{font-size:14px}.login-story .eyebrow{font-size:11px}.story-signal span,.login-story>small{font-size:12px}
.login-form{background:radial-gradient(ellipse at 90% 10%,#d1ecf3,transparent 60%),#edf4f9}
html[data-tema="escuro"] .login-form{background:radial-gradient(ellipse at 90% 10%,#1f4558,transparent 65%),#102032}
.login-box{max-width:400px}.login-box h2{font-size:31px;color:var(--ink)}.small-brand{font-size:11px}.login-box>p{font-size:14px}.login-box label{font-size:14px}
.login-box input{background:var(--input);font-size:16px}.login-box .primary{font-size:15px;padding:15px}.login-help{border-color:var(--line);font-size:12px;color:var(--muted)}.login-form footer{font-size:12px;color:var(--muted)}
.setup-page .card{background:var(--surface)}.setup-page h1{font-size:29px;color:var(--ink)}.setup-page h2{font-size:19px;color:var(--ink)}.setup-page> .brand{color:var(--ink)}
.setup-error{background:#ffe8ed;color:#a7354a}html[data-tema="escuro"] .setup-error{background:#492936;color:#ffbfcb}
.form-subtitle{font-size:15px}html[data-tema="escuro"] .card hr{border-color:var(--line)}
.alternar-tema{display:inline-flex;align-items:center;gap:8px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 3px 12px #16334a0a;padding:10px 13px;min-height:42px;font-size:13px;white-space:nowrap;font-weight:500}
.alternar-tema svg{flex-shrink:0;color:var(--teal)}.alternar-tema:hover{border-color:var(--teal)}.tema-flutuante{position:fixed;right:24px;top:20px;z-index:30}
html[data-tema="escuro"] .swal2-popup{background:var(--surface);color:var(--ink);border:1px solid var(--line)}html[data-tema="escuro"] .swal2-title,html[data-tema="escuro"] .swal2-html-container{color:var(--ink)}html[data-tema="escuro"] .swal2-input,html[data-tema="escuro"] .swal2-textarea,html[data-tema="escuro"] .swal2-select{background:var(--input);border-color:var(--line);color:var(--ink)}
@media(min-width:801px){.sidebar{width:272px}.workspace{margin-left:272px}.sidebar-bottom>div:nth-child(2){min-width:0;flex:1}.sidebar-bottom form{flex-shrink:0}.topbar>div:first-child{min-width:250px}}
@media(min-width:801px) and (max-width:1250px){.sidebar{width:242px;padding-left:15px;padding-right:15px}.workspace{margin-left:242px}.sidebar nav a{font-size:13px;padding-left:10px;padding-right:10px}.sidebar-bottom strong{max-width:110px}.stats small{max-width:145px}}
@media(max-width:800px){body{font-size:15px}.sidebar{width:100%;padding:17px}.sidebar .brand{font-size:28px}.sidebar nav a{font-size:13px;padding:10px 12px}.workspace{margin:0}.topbar{padding:20px;gap:16px}.topbar>div:first-child{min-width:0}.topbar h1{font-size:24px}.top-right{width:100%;justify-content:space-between;gap:10px}.online-dot{display:none}.page-body{padding:18px}.welcome{padding:25px}.welcome h2{font-size:26px}.welcome p{font-size:14px}.stats article{padding:18px;min-height:106px}.stats small{font-size:12px;max-width:100%}.stats strong{font-size:31px}.card{padding:19px}.card.chat-detail,.card.chat-list{padding:0}.section-title h2{font-size:17px;white-space:normal}table{font-size:13px}.login-story{padding:25px}.login-story h1{font-size:40px}.login-form{padding:65px 25px 80px}.login-box h2{font-size:28px}.tema-flutuante{right:15px;top:14px;font-size:12px;padding:9px 11px}.setup-page{margin-top:75px}.setup-page .card{padding:23px}.setup-page h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){button,.button{transition:none}button:hover,.button:hover{transform:none}}
/* Conexão WhatsApp: janela compacta, sem deslocar a página. */
.swal2-popup.conexao-popup{width:min(448px,calc(100vw - 28px));padding:25px 25px 19px;border-radius:22px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 25px 100px #0005}
.conexao-popup .swal2-html-container{margin:0!important;padding:0!important;overflow:visible!important;font-size:14px;color:var(--ink);text-align:left}
.conexao-popup .swal2-close{top:8px;right:8px;width:32px;height:32px;font-size:26px;color:var(--muted);border-radius:10px;box-shadow:none!important}
.conexao-popup .swal2-actions{margin:15px 0 0;width:100%}.conexao-popup .swal2-confirm{width:100%;margin:0;padding:12px 18px;border-radius:12px;font-size:14px;font-weight:500;box-shadow:none!important;background:linear-gradient(110deg,#008f7e,#0789a1)}
.conexao-cabecalho{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-right:22px;margin-bottom:17px}.conexao-cabecalho img{width:42px;height:42px;flex-shrink:0}.conexao-etiqueta{font-size:9px;letter-spacing:1.5px;color:var(--teal)}.conexao-cabecalho h2{margin:4px 0;font-size:21px;line-height:1.3;color:var(--ink);font-weight:600}.conexao-cabecalho p{margin:0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.conexao-status{padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);font-size:12px;line-height:1.5;text-align:center;color:var(--muted)}.conexao-status.conectado{background:var(--mint);border-color:var(--teal);color:var(--teal)}.conexao-status.erro{color:#bd5366}
.conexao-codigo{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:244px;margin:17px auto;background:#fff;border-radius:16px;width:244px;max-width:100%;border:1px solid #dce7e9;overflow:hidden;color:#47707c}.conexao-codigo img{display:block;width:244px;height:244px;max-width:100%;object-fit:contain;image-rendering:pixelated}.conexao-codigo p{font-size:12px;margin:12px 10px;text-align:center}.conexao-carregando{width:31px;height:31px;border-radius:50%;border:3px solid #dceee9;border-top-color:#009b83;animation:conexao-girar .9s linear infinite}
.conexao-instrucoes{font-size:12px;line-height:1.8;color:var(--muted);text-align:center;margin:0 0 16px}.conexao-instrucoes strong{font-weight:500;color:var(--ink)}.conexao-renovar button{min-height:40px;padding:9px 12px;font-size:12px;font-weight:500}.conexao-rodape{display:block;margin:12px 0 0;text-align:center;font-size:10px;color:var(--muted)}.conexao-sucesso{font-size:46px;color:#008f7e;line-height:1}
@keyframes conexao-girar{to{transform:rotate(360deg)}}
@media(max-width:480px){.swal2-popup.conexao-popup{padding:22px 18px 17px}.conexao-cabecalho h2{font-size:20px}.conexao-codigo{min-height:224px;width:224px}.conexao-codigo img{width:224px;height:224px}}
@media(prefers-reduced-motion:reduce){.conexao-carregando{animation:none}}
