/* Workspace presentation: static CSS, no framework, no runtime build. */
:root {
  --accent: #315d91;
  --soft: #edf2f7;
  --bg: #f5f6f8;
  --text: #1b2735;
  --muted: #6d7887;
  --border: #e1e5eb;
  --shadow: 0 4px 16px #17233b04;
}
body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.01em;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
}
h1 {
  line-height: 1.18;
}
button,
input,
select,
textarea {
  font: inherit;
}
.button {
  box-shadow: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  min-height: 38px;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
}
.button:hover {
  text-decoration: none;
  filter: brightness(0.97);
}
.panel {
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.page-heading {
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 30px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
}
.blue,
.eyebrow.blue {
  color: var(--accent);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}
.sidebar {
  inset: 0 0 auto;
  width: 100%;
  height: 70px;
  z-index: 20;
  flex-direction: row;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  background: var(--panel);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.sidebar .wordmark {
  padding: 0;
  flex: 0 0 auto;
  gap: 8px;
}
.sidebar .brand-logo {
  width: 32px;
  height: 32px;
}
.sidebar .brand-copy strong {
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.sidebar .brand-copy small {
  font-size: 5px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 4px;
}
.sidebar .workspace-control {
  display: flex;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  gap: 9px;
  color: var(--text);
  background: none;
  min-width: 0;
  max-width: 180px;
}
.workspace-control .team-icon {
  background: var(--soft);
  color: var(--accent);
  width: 27px;
  height: 27px;
}
.team-identity strong {
  font-size: 10px;
  max-width: 115px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.team-identity small {
  color: var(--muted);
  font-size: 9px;
}
.sidebar nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  flex: 1;
  gap: 2px;
  min-width: 0;
  margin: 0;
}
.sidebar .nav-item {
  font-size: 11px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  min-width: 0;
  margin: 0;
  border-radius: 0;
  position: relative;
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s;
}
.sidebar .nav-item:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s;
}
.sidebar .nav-item.active {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.sidebar .nav-item.active:after {
  transform: scaleX(1);
}
.sidebar .nav-item:hover {
  color: var(--text);
  background: var(--hover);
}
.sidebar .nav-item > .icon {
  width: 16px;
  height: 16px;
}
.sidebar .nav-item > .nav-label {
  display: block;
  font-size: 11px;
  height: auto;
}
.sidebar-bottom {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.sidebar-bottom > .nav-item {
  padding: 0;
  height: 36px;
  width: 30px;
}
.sidebar-bottom > .nav-item .nav-label {
  display: none;
}
.sidebar-bottom > .nav-item:after {
  display: none;
}
.account-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.account-link .avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.account-link strong {
  font-size: 11px;
  display: block;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-link small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.account-link:hover {
  text-decoration: none;
}
.desktop-logout {
  width: 24px;
  height: 28px;
}
.desktop-logout > .icon {
  width: 16px;
  height: 16px;
}
.mobile-account {
  display: none;
}
.main-shell {
  margin: 70px 0 0;
  width: 100%;
  min-width: 0;
  min-height: calc(100dvh - 70px);
}
.topbar {
  position: sticky;
  top: 70px;
  z-index: 10;
  height: 68px;
  min-height: 68px;
  padding: 0 36px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.section-caption {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}
.section-caption > .icon {
  width: 17px;
  height: 17px;
}
.topbar-right {
  gap: 10px;
  flex: none;
}
.topbar-right .badge {
  display: none;
}
.topbar .theme-shortcut,
.topbar .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.main-content {
  max-width: 1500px;
  padding: 30px 36px;
  width: 100%;
  margin: 0 auto;
}
.app-footer {
  padding: 18px 36px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
body[data-channel="whatsapp"] {
  --accent: #147b52;
  --soft: #eaf4ef;
  --green: #147b52;
  --outgoing: #e7f3eb;
}
body[data-channel="messenger"] {
  --accent: #2564c6;
  --soft: #eaf1fc;
  --outgoing: #e7effc;
}
body[data-channel="sms"] {
  --accent: #8a680a;
  --soft: #faf4dc;
  --outgoing: #faf2d3;
}
body[data-channel="instagram"] {
  --accent: #a7388b;
  --soft: #f8eaf3;
  --outgoing: #f6e7f1;
}
body[data-channel="tiktok"] {
  --accent: #c7364e;
  --soft: #fae9ed;
  --outgoing: #f5e7eb;
}
html[data-appearance="dark"] {
  --bg: #10151c;
  --panel: #171e27;
  --text: #e0e6ee;
  --muted: #99a5b5;
  --border: #2b3542;
  --hover: #1c2632;
  --input: #131b24;
  --soft: #263243;
}
html[data-appearance="dark"] body[data-channel="whatsapp"] {
  --accent: #67cfa0;
  --soft: #19382c;
  --outgoing: #203e32;
}
html[data-appearance="dark"] body[data-channel="messenger"] {
  --accent: #7aa7ee;
  --soft: #20334e;
}
html[data-appearance="dark"] body[data-channel="sms"] {
  --accent: #e6c15e;
  --soft: #3b341e;
}
html[data-appearance="dark"] body[data-channel="instagram"] {
  --accent: #e196d0;
  --soft: #3e263c;
}
html[data-appearance="dark"] body[data-channel="tiktok"] {
  --accent: #ef8a9b;
  --soft: #3a252d;
}
.channel-tabs {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 20px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  min-width: 0;
  flex: 1;
  scrollbar-width: none;
}
.channel-tab {
  position: relative;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  gap: 8px;
  padding: 0 4px;
  min-width: 0;
  min-height: 0;
}
.channel-tab > .icon {
  width: 18px;
  height: 18px;
}
.channel-tab:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s;
}
.channel-tab[aria-pressed="true"] {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}
.channel-tab[aria-pressed="true"]:after {
  transform: scaleX(1);
}
.channel-tab:hover {
  background: none;
  color: var(--accent);
}
.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}
body[data-page="atendimento"] .main-shell {
  height: calc(100dvh - 70px);
  min-height: 0;
}
body[data-page="atendimento"] .topbar {
  height: 68px;
  flex: 0 0 68px;
}
body[data-page="atendimento"] .main-content {
  padding: 22px 30px 24px;
  gap: 0;
}
body[data-page="atendimento"] .inbox-heading {
  margin-bottom: 20px;
  align-items: center;
}
body[data-page="atendimento"] .inbox-heading h1 {
  font-size: 24px;
  margin: 5px 0 0;
}
body[data-page="atendimento"] .inbox-heading .eyebrow {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}
body[data-page="atendimento"] .inbox-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
body[data-page="atendimento"] .conversation-list {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
body[data-page="atendimento"] .chat-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.conversation-list > .panel-heading {
  padding: 20px 20px 12px;
}
.conversation-list .search-form {
  margin: 0 18px 12px;
}
.conversation-list .search-form input {
  background: var(--bg);
  border: 1px solid transparent;
  min-height: 36px;
  font-size: 11px;
}
.conversation-controls {
  margin: 0;
  padding: 0 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.conversation-controls select {
  background: var(--panel);
  font-size: 11px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
}
.conversation-controls .check {
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}
.conversation-controls small {
  margin-left: auto;
  font-size: 9px;
}
.conversation-controls input {
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
}
.contact-row {
  border-left: 2px solid transparent;
  padding: 16px 18px;
  gap: 12px;
}
.contact-row.selected {
  border-left-color: var(--accent);
  background: var(--soft);
}
.contact-avatar {
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.contact-title strong {
  font-size: 12px;
  font-weight: 600;
}
.contact-title small {
  font-size: 9px;
}
.contact-summary > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.responsibility-caption {
  font-size: 9px;
}
.contact-footnote {
  margin-top: 7px;
}
.unread-count {
  width: 18px;
  height: 18px;
  font-size: 9px;
  background: var(--accent);
}
.chat-empty {
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 3%, var(--panel)),
    var(--panel)
  );
  padding: 30px;
}
.chat-empty h2 {
  font-size: 20px;
}
.empty-chat-icon {
  background: var(--soft);
  color: var(--accent);
  width: 58px;
  height: 58px;
  border-radius: 14px;
}
.empty-chat-icon .icon {
  width: 26px;
  height: 26px;
}
.chat-empty p {
  font-size: 12px;
  line-height: 1.8;
}
.chat-header {
  padding: 18px 22px;
  background: var(--panel);
}
.chat-header h3 {
  font-size: 14px;
}
.chat-context {
  gap: 8px;
  padding: 10px 22px;
  font-size: 10px;
}
.chat-context .link-button {
  margin-left: auto;
  font-size: 10px;
}
.chat-context > .small {
  font-size: 9px;
}
.chat-messages {
  background: var(--bg);
  touch-action: pan-y;
}
.bubble {
  border-radius: 9px;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.65;
  max-width: 75%;
}
.bubble.outgoing {
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--border));
  background: var(--outgoing);
}
.bubble.incoming {
  background: var(--panel);
  border: 1px solid var(--border);
}
.composer-header {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: 10px;
}
.composer {
  padding: 0 18px 16px;
  background: var(--panel);
}
.composer textarea {
  font-size: 12px;
  background: var(--bg);
}
body[data-page="atendimento"] .sandbox-tools {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 8px 20px;
}
.channel-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  text-align: center;
  padding: 34px;
  overflow-y: auto;
  background: radial-gradient(
    ellipse at 50% 30%,
    var(--soft),
    var(--panel) 70%
  );
}
.channel-preview-icon {
  width: 62px;
  height: 62px;
  border: 1px solid var(--border);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--panel);
  margin-bottom: 26px;
  color: var(--accent);
}
.channel-preview-icon > .icon {
  width: 30px;
  height: 30px;
}
.channel-preview > .eyebrow {
  color: var(--accent);
  font-size: 8px;
}
.channel-preview h2 {
  font-size: 28px;
  margin: 14px 0;
}
.channel-preview > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
}
.channel-preview-points {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px 0 32px;
}
.channel-preview-points span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.channel-preview-points .icon {
  width: 15px;
  height: 15px;
}
.channel-preview > small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
body[data-channel="tiktok"] .channel-preview {
  background: linear-gradient(135deg, #14171c, #22252d);
  color: white;
}
body[data-channel="tiktok"] .channel-preview p,
body[data-channel="tiktok"] .channel-preview small,
body[data-channel="tiktok"] .channel-preview-points {
  color: #b0b6c1;
}
/* No right-hand scrollbar: scrolling stays native; the context header shows progress. */
html,
body,
.main-content,
.chat-messages,
.contact-scroll,
.channel-preview {
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.contact-scroll::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.channel-preview::-webkit-scrollbar {
  display: none;
}
.contact-scroll {
  scrollbar-gutter: auto;
  touch-action: pan-y;
}
.funnel-panel {
  padding-top: 4px;
}
.funnel-panel > .panel-heading {
  padding: 20px 26px;
}
.funnel-workspace,
.funnel-workspace.has-selection {
  display: block;
  position: relative;
  min-height: 245px;
  padding: 8px 24px 28px;
  transition: none;
  overflow: hidden;
}
.funnel-overview {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  transition: transform 0.24s ease;
  transform: translateX(0);
}
.funnel-workspace.has-selection .funnel-overview {
  transform: translateX(-200px);
}
.funnel-visual,
.has-selection .funnel-visual {
  width: 360px;
  max-width: 100%;
  padding: 8px 0;
  gap: 6px;
  transition: none;
}
.funnel-slice {
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 35%, var(--border));
  border-radius: 5px;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  background: color-mix(in srgb, var(--stage-color) 5%, var(--panel));
  color: var(--text);
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  padding: 10px 22px;
  box-shadow: none;
}
.funnel-slice strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  overflow: visible;
  overflow-wrap: normal;
  white-space: normal;
  line-height: 1.4;
}
.funnel-slice span {
  font-size: 9px;
  color: var(--muted);
}
.funnel-slice b {
  font-size: 12px;
  font-weight: 550;
}
.funnel-slice:hover {
  transform: translateY(-1px);
}
.funnel-slice[aria-pressed="true"] {
  background: color-mix(in srgb, var(--stage-color) 12%, var(--panel));
  box-shadow: inset 3px 0 0 var(--stage-color);
}
.funnel-instruction {
  font-size: 10px;
}
.funnel-details-wrap {
  position: absolute;
  right: 30px;
  top: 50%;
  width: 350px;
  max-height: none;
  opacity: 0;
  transform: translate(16px, -50%);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.24s;
  overflow: visible;
}
.has-selection .funnel-details-wrap {
  max-height: none;
  transform: translate(0, -50%);
  pointer-events: auto;
  opacity: 1;
}
.funnel-details {
  margin: 0;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 4px 20px #17233b05;
  border-radius: 8px;
}
.funnel-details-heading h3 {
  font-size: 17px;
}
.funnel-counters strong {
  font-size: 24px;
  font-weight: 550;
}
.funnel-contact {
  padding: 10px 0;
}
.kanban {
  margin-top: 24px;
}
.kanban-column {
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.opportunity {
  border-radius: 7px;
  box-shadow: none;
}
.opportunity h3 {
  font-size: 13px;
  font-weight: 600;
}
.stage-heading h3 {
  font-size: 12px;
}
.metrics article {
  border-radius: 8px;
  box-shadow: none;
}
.metrics strong {
  font-weight: 550;
}
.metrics .metric-label {
  font-size: 9px;
  letter-spacing: 0.06em;
}
.settings-grid {
  gap: 20px;
}
.settings-card {
  padding: 24px;
}
.settings-title h2 {
  font-size: 16px;
}
.settings-title p {
  font-size: 12px;
}
.settings-title > .icon {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.connection-statuses {
  gap: 10px;
}
.legacy-rules {
  margin-top: 24px;
}
.legacy-rules > summary {
  padding: 22px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.legacy-rules > .settings-card {
  margin: 0;
  border: 0;
  box-shadow: none;
}
/* Motion is short and respects reduced-motion preferences. */
.page-loader {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 20px !important;
  width: auto !important;
  max-width: 90vw;
}
.page-loader::backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
}
.page-loader > div {
  background: none;
}
.page-loader p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 16px;
}
.page-loader .loading-spinner {
  border-color: var(--border);
  border-top-color: var(--accent);
  width: 28px;
  height: 28px;
}
.view-loading {
  visibility: hidden;
}
dialog:not(.page-loader) {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 70px #18253e20;
}
dialog:not(.page-loader)[open] {
  animation: dialog-in 0.16s ease-out;
}
dialog:not(.page-loader)::backdrop {
  background: #10203333;
  backdrop-filter: blur(2px);
}
dialog.dialog-leaving {
  opacity: 0;
  transform: translateY(5px) scale(0.99);
  transition:
    opacity 0.16s,
    transform 0.16s;
}
button[aria-label^="Fechar"] {
  transition:
    color 0.16s,
    background 0.16s,
    transform 0.16s;
}
button[aria-label^="Fechar"]:hover,
button[data-action="close-modal"]:hover,
button[data-action="clear-funnel"]:hover {
  color: #c33d4f;
  background: #c33d4f0d;
}
button[aria-label^="Fechar"] .icon {
  transition: transform 0.2s;
}
button[aria-label^="Fechar"]:hover .icon,
.dialog-leaving button[aria-label^="Fechar"] .icon {
  transform: rotate(-90deg);
}
.refresh > .icon {
  transition: transform 0.3s;
}
.refresh:hover > .icon {
  transform: rotate(-90deg);
}
body.working .refresh > .icon {
  animation: spin 0.7s linear infinite;
}
.download-button,
.button:has(.icon):is([data-action^="export"], [data-action="export-data"]),
#export-form button {
  position: relative;
  overflow: hidden;
}
.download-button:after,
#export-form button:after,
[data-action^="export"].button:after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateX(-101%);
  transition: transform 0.35s;
  pointer-events: none;
}
.download-button:hover:after,
#export-form button:hover:after,
[data-action^="export"].button:hover:after {
  transform: translateX(0);
}
.download-button:hover .icon,
#export-form button:hover .icon {
  animation: download-nudge 0.55s ease-in-out;
}
.toast-region {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 25px;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 30px);
}
.toast {
  border-left: 0;
  border-bottom: 2px solid var(--accent);
  padding: 12px 20px;
  border-radius: 7px;
  box-shadow: 0 5px 25px #14213316;
  animation: toast-in 0.16s ease-out;
  font-size: 11px;
}
.toast.error {
  border-left: 0;
  border-bottom-color: #c33d4f;
}
.update-notice {
  display: flex;
  gap: 15px;
  align-items: center;
}
.update-notice button {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes download-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Flow editor and transparent future AI configuration. */
.automation-studio {
  padding: 28px;
  margin-top: 24px;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.studio-heading h2 {
  font-size: 22px;
  margin: 8px 0;
}
.studio-heading p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.automation-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.automation-modes > button {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  text-align: left;
  background: var(--panel);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}
.automation-modes > button > .icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.automation-modes strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  color: var(--text);
  margin-bottom: 7px;
}
.automation-modes small {
  font-size: 10px;
  line-height: 1.6;
  display: block;
}
.automation-modes [aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
}
.studio-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.section-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 18px;
}
.section-subheading h3 {
  font-size: 14px;
  margin: 0;
}
.section-subheading > span {
  font-size: 10px;
  color: var(--muted);
}
#flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.flow-step {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.flow-step > header {
  padding: 13px 15px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--border);
}
.flow-number {
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
}
.flow-step > header input {
  min-height: 30px;
  font-size: 12px;
  font-weight: 600;
  border: 0;
  background: none;
  padding: 4px;
  min-width: 0;
}
.flow-step > header .icon-button {
  font-size: 20px;
  flex: none;
  width: 24px;
  height: 26px;
}
.flow-step-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.flow-step label {
  font-size: 10px;
}
.flow-step input,
.flow-step select,
.flow-step textarea {
  font-size: 11px;
}
.flow-options > p {
  font-size: 10px;
  font-weight: 600;
}
.flow-options > small {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  display: block;
  margin-top: 10px;
}
.flow-option-list {
  display: grid;
  gap: 9px;
  margin: 10px 0;
}
.flow-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 23px;
  gap: 7px;
  align-items: center;
}
.flow-option > * {
  min-width: 0;
}
.flow-option .icon-button {
  font-size: 20px;
  width: 23px;
  height: 24px;
}
.flow-options > .link-button {
  font-size: 11px;
}
.routing-settings {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.routing-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.routing-members > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.routing-members label {
  font-size: 10px;
}
.routing-members input[type="number"] {
  width: 70px;
  min-height: 30px;
  padding: 5px 8px;
}
.routing-members .check {
  align-items: center;
}
.studio-save {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.studio-save > span {
  font-size: 10px;
  color: var(--muted);
}
.integration-note {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
}
.integration-note p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.ai-settings {
  display: grid;
  gap: 18px;
}
.ai-asset-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.ai-asset-list span {
  font-size: 10px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.human-mode-note {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.human-mode-note > .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.human-mode-note h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.human-mode-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.flow-preview {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 20px 0;
}
.preview-message {
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 8px;
  margin: 10px 0;
  max-width: 90%;
  background: var(--panel);
  border: 1px solid var(--border);
  white-space: pre-wrap;
}
.preview-message.out {
  margin-left: auto;
  background: var(--soft);
}
.preview-options {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.preview-handoff {
  font-size: 11px;
  color: var(--green);
  padding: 12px 0;
}
.flow-options[hidden],
.flow-field[hidden],
.flow-editor[hidden],
.human-mode-note[hidden],
.ai-settings[hidden],
#flow-reply-form[hidden] {
  display: none;
}
@media (min-width: 761px) and (max-width: 1200px) {
  .sidebar {
    gap: 12px;
    padding: 0 18px;
  }
  .sidebar .workspace-control {
    display: none;
  }
  .sidebar .nav-item {
    padding: 0 10px;
  }
  .sidebar .nav-item > .icon {
    display: none;
  }
  .main-content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .funnel-overview,
  .funnel-visual,
  .has-selection .funnel-visual {
    width: 320px;
  }
  .funnel-workspace.has-selection .funnel-overview {
    transform: translateX(-170px);
  }
  .funnel-details-wrap {
    width: 290px;
    right: 22px;
  }
  .topbar {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (min-width: 761px) and (max-width: 950px) {
  .sidebar .brand-copy {
    display: none;
  }
  .sidebar .account-link > span:last-child {
    display: none;
  }
  .sidebar .nav-item > .nav-label {
    font-size: 10px;
  }
  .sidebar {
    gap: 10px;
  }
  .sidebar-bottom {
    gap: 8px;
  }
  .funnel-overview,
  .funnel-visual,
  .has-selection .funnel-visual {
    width: 290px;
  }
  .funnel-workspace.has-selection .funnel-overview {
    transform: translateX(-155px);
  }
  .funnel-details-wrap {
    width: 270px;
    right: 14px;
  }
  .channel-tabs {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    inset: auto 0 0;
    height: 67px;
    padding: 0 8px;
    gap: 0;
    background: #111c2b;
    border-top: 1px solid #253349;
    border-bottom: 0;
  }
  .sidebar .wordmark,
  .sidebar .workspace-control,
  .sidebar .account-link,
  .desktop-logout {
    display: none;
  }
  .sidebar nav {
    align-self: stretch;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    gap: 0;
    scrollbar-width: none;
  }
  .sidebar .nav-item {
    flex: 1 0 48px;
    min-height: 55px;
    margin: 5px 1px;
    flex-direction: column;
    gap: 5px;
    padding: 6px 3px;
    border-radius: 6px;
    color: #97a7bd;
  }
  .sidebar .nav-item > .icon {
    display: block;
    width: 19px;
    height: 19px;
  }
  .sidebar .nav-item > .nav-label {
    display: block;
    font-size: 8px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .sidebar .nav-item:after {
    display: none;
  }
  .sidebar .nav-item.active {
    color: white;
    background: #294463;
  }
  .sidebar-bottom {
    flex: 0 0 40px;
    align-self: stretch;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0;
  }
  .sidebar-bottom > .nav-item {
    height: auto;
    min-height: 55px;
    width: 38px;
    flex: none;
  }
  .sidebar-bottom > .nav-item .nav-label {
    display: none;
  }
  .main-shell {
    margin: 0 0 67px;
    min-height: calc(100dvh - 67px);
  }
  .topbar {
    top: 0;
    padding: 0 16px;
    min-height: 60px;
    height: 60px;
    gap: 12px;
  }
  .main-content {
    padding: 24px 16px;
  }
  .topbar-right {
    gap: 7px;
  }
  .topbar .icon-button,
  .topbar .theme-shortcut {
    width: 27px;
    height: 28px;
  }
  .topbar-right > .mobile-exit {
    display: none;
  }
  .mobile-account {
    display: flex;
  }
  .mobile-account .avatar {
    width: 25px;
    height: 25px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 10px;
  }
  .mobile-workspace {
    display: inline-flex;
  }
  .section-caption {
    font-size: 11px;
  }
  .topbar .download-button {
    display: none;
  }
  .app-footer {
    padding: 16px;
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading {
    gap: 14px;
  }
  .page-heading .heading-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .page-heading .button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 10px;
  }
  body[data-page="atendimento"] .main-shell {
    height: calc(100dvh - 67px - env(safe-area-inset-bottom, 0px));
    min-height: 0;
    margin: 0;
  }
  body[data-page="atendimento"] .topbar {
    position: relative;
    height: 88px;
    min-height: 88px;
    flex: 0 0 88px;
    padding-top: 28px;
    align-items: stretch;
  }
  body[data-page="atendimento"] .topbar:before {
    content: "Digital Media Workspace";
    position: absolute;
    left: 16px;
    top: 12px;
    font-size: 10px;
    color: var(--muted);
    font-weight: 550;
  }
  body[data-page="atendimento"] .topbar-right {
    position: absolute;
    right: 14px;
    top: 5px;
  }
  .channel-tabs {
    width: 100%;
    flex: 1;
    gap: 0;
    overflow-x: auto;
    margin: 0;
    padding: 0;
    align-self: stretch;
  }
  .channel-tab {
    flex: 1 0 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    padding: 7px 3px;
    gap: 4px;
  }
  .channel-tab .icon {
    width: 18px;
    height: 18px;
  }
  body[data-page="atendimento"] .main-content {
    padding: 14px 12px 12px;
  }
  body[data-page="atendimento"] .inbox-heading {
    margin-bottom: 14px;
  }
  body[data-page="atendimento"] .inbox-heading h1 {
    font-size: 19px;
  }
  body[data-page="atendimento"] .inbox-heading .eyebrow {
    font-size: 7px;
  }
  body[data-page="atendimento"] .inbox-heading .button {
    font-size: 9px;
    min-height: 30px;
    padding: 5px 8px;
  }
  body[data-page="atendimento"] .inbox-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-page="atendimento"][data-chat="list"] .chat-panel {
    display: none;
  }
  body[data-page="atendimento"][data-chat="open"] .conversation-list {
    display: none;
  }
  body[data-page="atendimento"][data-chat="open"] .chat-panel {
    display: flex;
  }
  body[data-page="atendimento"][data-chat="open"] .inbox-heading {
    display: none;
  }
  .conversation-list .panel-heading {
    padding: 15px 16px 10px;
  }
  .conversation-list .search-form {
    margin: 0 14px 10px;
  }
  .conversation-controls {
    padding: 0 14px 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .conversation-controls select {
    flex: 1;
    min-width: 0;
  }
  .conversation-controls .check {
    max-width: 130px;
    flex-wrap: wrap;
    font-size: 9px;
    gap: 4px;
    justify-content: flex-start;
  }
  .conversation-controls small {
    margin-left: 17px;
    font-size: 8px;
  }
  .contact-row {
    padding: 14px;
  }
  .chat-header {
    padding: 12px !important;
  }
  .chat-header > .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .chat-header h3 {
    font-size: 12px !important;
  }
  .chat-context {
    padding: 9px 12px !important;
    flex-wrap: wrap;
    max-height: 82px !important;
  }
  .chat-context .link-button {
    font-size: 9px;
  }
  .mobile-conversation-back {
    display: inline-flex;
  }
  .chat-messages {
    padding: 14px !important;
  }
  .bubble {
    max-width: 91%;
    font-size: 12px;
  }
  .composer-header {
    padding: 8px 12px;
    font-size: 9px;
    gap: 8px;
  }
  .composer-header > .link-button {
    font-size: 9px;
  }
  .composer {
    padding: 0 12px 10px;
  }
  .composer button {
    font-size: 11px;
  }
  .composer textarea {
    font-size: 16px;
    min-height: 40px;
  }
  .sandbox-tools > .link-button {
    font-size: 9px;
  }
  .channel-preview {
    padding: 22px 18px;
  }
  .channel-preview h2 {
    font-size: 23px;
  }
  .channel-preview > p {
    font-size: 12px;
  }
  .channel-preview-points {
    gap: 12px;
    margin: 14px 0 24px;
  }
  .channel-preview-points span {
    font-size: 9px;
  }
  .channel-preview-icon {
    margin-bottom: 18px;
    width: 48px;
    height: 48px;
  }
  .channel-preview-icon .icon {
    width: 25px;
    height: 25px;
  }
  .funnel-workspace,
  .funnel-workspace.has-selection {
    min-height: 0;
    padding: 6px 18px 22px;
  }
  .funnel-overview,
  .funnel-visual,
  .has-selection .funnel-visual {
    width: 360px;
    max-width: 100%;
    transform: none !important;
  }
  .funnel-details-wrap {
    display: none;
  }
  .funnel-slice {
    min-height: 48px;
    padding: 10px 15px;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
  }
  .funnel-slice strong {
    font-size: 11px;
    overflow-wrap: break-word;
  }
  .funnel-instruction {
    font-size: 10px;
  }
  .has-selection .funnel-instruction {
    display: block;
    visibility: visible;
  }
  .funnel-panel > .panel-heading {
    padding: 20px;
  }
  .funnel-panel > .panel-heading p {
    font-size: 10px;
  }
  .funnel-details-heading .icon-button {
    display: none;
  }
  .funnel-counters {
    margin-top: 18px;
  }
  .toast-region {
    bottom: 82px;
  }
  .studio-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .studio-heading h2 {
    font-size: 21px;
  }
  .automation-studio {
    padding: 20px;
  }
  .automation-modes {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .automation-modes > button {
    padding: 15px;
  }
  .studio-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #flow-steps {
    grid-template-columns: 1fr;
  }
  .section-subheading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .routing-members {
    grid-template-columns: 1fr;
  }
  .routing-members > div {
    gap: 20px;
  }
  .studio-save {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .flow-option {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px;
  }
  .flow-preview {
    height: 300px;
  }
  .form-pair {
    grid-template-columns: 1fr;
  }
  .settings-card {
    padding: 20px;
  }
  .creator-demo-banner {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .conversation-controls .check {
    max-width: 100px;
  }
  .inbox-heading h1 {
    max-width: 155px;
  }
  .composer-header > .link-button {
    font-size: 8px;
  }
  .chat-context > .small {
    display: none;
  }
  .channel-preview-points {
    display: none;
  }
  .sidebar nav .nav-item {
    flex-basis: 46px;
  }
  .flow-option {
    grid-template-columns: minmax(0, 1fr) 22px;
  }
  .flow-option select {
    grid-column: 1;
  }
  .flow-option button {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 761px) {
  .funnel-workspace,
  .funnel-workspace.has-selection {
    min-height: 340px;
  }
  .button.primary {
    box-shadow: none !important;
  }
}
@media (prefers-color-scheme: dark) {
  html:not([data-appearance="light"]):not([data-appearance="dark"]) {
    --bg: #10151c;
    --panel: #171e27;
    --text: #e0e6ee;
    --muted: #99a5b5;
    --border: #2b3542;
    --hover: #1c2632;
    --input: #131b24;
    --soft: #263243;
  }
  html:not([data-appearance="light"]):not([data-appearance="dark"])
    body[data-channel="whatsapp"] {
    --accent: #67cfa0;
    --soft: #19382c;
    --outgoing: #203e32;
  }
  html:not([data-appearance="light"]):not([data-appearance="dark"])
    body[data-channel="messenger"] {
    --accent: #7aa7ee;
    --soft: #20334e;
  }
  html:not([data-appearance="light"]):not([data-appearance="dark"])
    body[data-channel="sms"] {
    --accent: #e6c15e;
    --soft: #3b341e;
  }
  html:not([data-appearance="light"]):not([data-appearance="dark"])
    body[data-channel="instagram"] {
    --accent: #e196d0;
    --soft: #3e263c;
  }
  html:not([data-appearance="light"]):not([data-appearance="dark"])
    body[data-channel="tiktok"] {
    --accent: #ef8a9b;
    --soft: #3a252d;
  }
}
.desktop-logout:hover {
  color: rgb(239, 82, 82);
}
.funnel-details-wrap,
.has-selection .funnel-details-wrap {
  max-height: calc(100% - 24px);
  overflow-y: auto;
  scrollbar-width: none;
}
@media (max-width: 760px) {
  .topbar-right > .mobile-exit {
    display: inline-flex;
  }
}
.update-notice {
  pointer-events: auto;
}

/* Channel workspaces: primary header stays fixed; the secondary toolbar scrolls away. */
.mobile-masthead {
  display: none;
}
.sidebar {
  gap: 22px;
}
.sidebar nav {
  justify-content: center;
}
.sidebar-bottom > .theme-shortcut {
  width: 30px;
  height: 30px;
  flex: none;
}
.topbar {
  position: relative;
  top: auto;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  gap: 28px;
}
.topbar-right > .workspace-control {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 8px 0 20px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: none;
  color: var(--text);
  width: 190px;
  min-width: 0;
  gap: 10px;
}
.topbar-right > .workspace-control .team-icon {
  background: var(--soft);
  color: var(--accent);
  width: 28px;
  height: 28px;
}
.topbar-right > .workspace-control > span:nth-child(2) {
  min-width: 0;
  text-align: left;
}
.topbar-right > .workspace-control strong {
  font-size: 11px;
  color: var(--text);
}
.topbar-right > .workspace-control small {
  font-size: 9px;
  color: var(--muted);
}
body[data-page="atendimento"] {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: auto;
}
body[data-page="atendimento"] #app,
body[data-page="atendimento"] .app-shell {
  height: auto;
  min-height: 100dvh;
}
body[data-page="atendimento"] .main-shell {
  height: auto;
  min-height: calc(100dvh - 70px);
}
body[data-page="atendimento"] .main-content {
  flex: none;
  min-height: 0;
  padding-bottom: 24px;
}
body[data-page="atendimento"] .inbox-grid {
  flex: none;
  height: calc(100dvh - 118px);
  min-height: 540px;
  max-height: none;
}
body[data-page="atendimento"] .chat-panel {
  height: 100%;
  min-height: 0;
  scroll-margin-top: 86px;
}
body[data-page="atendimento"] .chat-messages {
  overscroll-behavior-y: auto;
}
body[data-page="atendimento"] .conversation-list {
  height: 100%;
  min-height: 0;
}
.conversation-list .contact-scroll {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent)
    transparent;
  scrollbar-gutter: stable;
}
.conversation-list .contact-scroll::-webkit-scrollbar {
  display: block;
  width: 5px;
}
.conversation-list .contact-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 8px;
}
.conversation-list .contact-scroll::-webkit-scrollbar-track {
  background: transparent;
}
body[data-page="automacoes"] .channel-tabs {
  align-self: stretch;
}
body[data-page="automacoes"] .topbar {
  height: 68px;
}
.automation-channel-note {
  margin-bottom: 24px;
}
.automation-channel-note strong {
  font-size: 12px;
}
#message-form textarea {
  scroll-margin-bottom: 90px;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .sidebar {
    gap: 12px;
  }
  .sidebar .nav-item {
    padding-inline: 8px;
  }
  .sidebar .nav-item > .icon {
    display: none;
  }
  .sidebar-bottom {
    gap: 8px;
  }
  .topbar-right > .workspace-control {
    width: 160px;
  }
}
@media (max-width: 760px) {
  .sidebar nav {
    justify-content: flex-start;
  }
  .sidebar-bottom > .theme-shortcut {
    display: none;
  }
  .mobile-masthead {
    display: flex;
    position: fixed;
    inset: 0 0 auto;
    z-index: 21;
    height: 56px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
  }
  .mobile-masthead .wordmark {
    gap: 6px;
    min-width: 0;
    color: var(--text);
  }
  .mobile-masthead .brand-logo {
    width: 27px;
    height: 27px;
  }
  .mobile-masthead .brand-copy strong {
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.01em;
  }
  .mobile-masthead .brand-copy small {
    font-size: 4px;
    letter-spacing: 0.8px;
    margin-top: 3px;
    color: var(--muted);
  }
  .mobile-masthead > div {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
  }
  .mobile-masthead .icon-button,
  .mobile-masthead .theme-shortcut {
    width: 26px;
    height: 28px;
  }
  .mobile-masthead .mobile-account {
    display: flex;
  }
  .mobile-masthead .mobile-account .avatar {
    width: 25px;
    height: 25px;
    font-size: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
  }
  .main-shell {
    margin: 56px 0 67px;
    min-height: calc(100dvh - 123px);
  }
  .topbar {
    height: 62px;
    min-height: 62px;
    padding: 0 14px;
    gap: 12px;
    position: relative;
    top: auto;
  }
  .topbar .topbar-right > .workspace-control {
    display: none;
  }
  .topbar .topbar-right:empty {
    display: none;
  }
  .topbar .topbar-right {
    position: static;
    gap: 0;
  }
  body[data-page="atendimento"] .main-shell {
    height: auto;
    min-height: calc(100dvh - 123px);
    margin: 56px 0 67px;
  }
  body[data-page="atendimento"] .topbar,
  body[data-page="automacoes"] .topbar {
    position: relative;
    height: 62px;
    min-height: 62px;
    flex: 0 0 62px;
    padding: 0 14px;
  }
  body[data-page="atendimento"] .topbar:before {
    display: none;
  }
  body[data-page="atendimento"] .main-content {
    padding: 16px 12px 24px;
    flex: none;
  }
  body[data-page="atendimento"] .inbox-grid {
    height: calc(100dvh - 140px);
    min-height: 380px;
    flex: none;
  }
  body[data-page="atendimento"] .chat-panel {
    scroll-margin-top: 68px;
  }
  body[data-page="atendimento"] .inbox-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  body[data-page="atendimento"] .inbox-heading > .heading-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }
  body[data-page="atendimento"] .inbox-heading h1 {
    max-width: none;
    font-size: 19px;
  }
  .automation-studio {
    margin-top: 16px;
  }
  .automation-channel-note {
    font-size: 11px;
    padding: 14px;
  }
  body[data-page="automacoes"] .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  body[data-page="automacoes"] .page-heading .heading-actions {
    width: auto;
  }
  .channel-preview {
    min-height: calc(100dvh - 230px);
  }
}
@media (max-width: 360px) {
  .mobile-masthead {
    padding-inline: 12px;
  }
  .mobile-masthead .brand-copy small {
    display: none;
  }
  .mobile-masthead > div {
    gap: 4px;
  }
  .mobile-masthead .brand-copy strong {
    font-size: 12px;
  }
}
.integration-research,
.cost-planner {
  padding: 26px;
  margin: 24px 0;
}
.platform-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.platform-metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}
.platform-metric > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.platform-metric h3 {
  font-size: 14px;
  margin: 0;
}
.platform-metric .badge {
  font-size: 8px;
}
.platform-metric dl {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}
.platform-metric dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.platform-metric dt {
  font-size: 10px;
  color: var(--muted);
}
.platform-metric dd {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  text-align: right;
}
.platform-metric p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 8px;
}
.platform-metric > small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.platform-metric > a {
  display: inline-block;
  margin-top: 16px;
  font-size: 10px;
}
.integration-footnote {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 20px 0 0;
}
.cost-planner .integration-note {
  margin-bottom: 24px;
}
.cost-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cost-fields label {
  font-size: 11px;
}
.cost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cost-estimate {
  padding: 20px;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.cost-estimate > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cost-estimate span {
  font-size: 9px;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.cost-estimate strong {
  font-size: 27px;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.cost-estimate strong > small {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.cost-estimate p,
.cost-estimate > small {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  display: block;
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .platform-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cost-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .integration-research,
  .cost-planner {
    padding: 20px;
  }
  .platform-metrics,
  .cost-fields {
    grid-template-columns: 1fr;
  }
  .platform-metric {
    padding: 16px;
  }
  .cost-actions {
    flex-direction: column;
  }
  .cost-actions > .button {
    width: 100%;
  }
  .cost-estimate strong {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  body[data-page="atendimento"] .inbox-heading > div:first-child {
    flex-basis: 100%;
    min-width: 0;
  }
  body[data-page="atendimento"] .inbox-heading > .heading-actions {
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body[data-page="atendimento"] .inbox-heading > .heading-actions > .button {
    flex: none;
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .mobile-masthead .icon-button,
  .mobile-masthead .theme-shortcut {
    width: 32px;
    height: 36px;
  }
  .mobile-masthead .mobile-account {
    min-width: 32px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
  }
}
