:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --panel: #fff;
  --text: #142139;
  --muted: #778298;
  --border: #e5eaf2;
  --input: #fff;
  --accent: #165dff;
  --soft: #edf3ff;
  --chat: #f4f7fc;
  --incoming: #fff;
  --outgoing: #e5efff;
  --shadow: 0 8px 32px #182c4f08;
  --green: #078361;
  --notice: #edf4ff;
  --sidebar: #070f22;
  --hover: #f8faff
}

html[data-appearance=dark] {
  color-scheme: dark;
  --bg: #090f1c;
  --panel: #111b2c;
  --text: #e9effb;
  --muted: #99a8bf;
  --border: #253147;
  --input: #0c1526;
  --accent: #6f9aff;
  --soft: #1a2f54;
  --chat: #0b1423;
  --incoming: #1a263a;
  --outgoing: #173769;
  --shadow: 0 8px 32px #0002;
  --green: #55dbb3;
  --notice: #172b49;
  --sidebar: #050a15;
  --hover: #152238
}

@media(prefers-color-scheme:dark) {
  html:not([data-appearance=light]):not([data-appearance=dark]) {
    color-scheme: dark;
    --bg: #090f1c;
    --panel: #111b2c;
    --text: #e9effb;
    --muted: #99a8bf;
    --border: #253147;
    --input: #0c1526;
    --accent: #6f9aff;
    --soft: #1a2f54;
    --chat: #0b1423;
    --incoming: #1a263a;
    --outgoing: #173769;
    --shadow: 0 8px 32px #0002;
    --green: #55dbb3;
    --notice: #172b49;
    --sidebar: #050a15;
    --hover: #152238
  }
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

button,
input,
textarea,
select {
  font: inherit
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation
}

button {
  cursor: pointer
}

button:disabled {
  opacity: .55;
  cursor: wait
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #00c8f0;
  outline-offset: 3px
}

h1,
h2,
h3,
p {
  margin: 0 0 12px
}

h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.25
}

h2 {
  font-size: 23px;
  letter-spacing: -.6px
}

h3 {
  font-size: 15px;
  font-weight: 650
}

small,
.small {
  font-size: 12px
}

code {
  font-size: 13px;
  overflow-wrap: anywhere
}

.muted {
  color: var(--muted)
}

.blue {
  color: var(--accent)
}

.cyan {
  color: #00cbf5
}

.muted-light {
  color: #91a4c5
}

.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  display: block;
  margin-bottom: 12px
}

.button {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 17px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  white-space: normal
}

.button:hover {
  background: var(--soft);
  text-decoration: none
}

.button.primary {
  background: #165dff;
  color: #fff;
  border-color: #165dff;
  box-shadow: 0 3px 8px #165dff20
}

.button.primary:hover {
  background: #094cde
}

.button.full {
  width: 100%;
  justify-content: center
}

.button.full span:last-child {
  margin-left: auto
}

.small-button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 11px
}

.link-button {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  font-size: 12px
}

.link-button:hover {
  text-decoration: underline
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px
}

.icon-button:hover {
  background: var(--soft);
  text-decoration: none
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 15px
}

.stack p {
  margin: 0
}

.stack p:has(input[type=checkbox]) {
  display: flex;
  align-items: flex-start;
  gap: 8px
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--input);
  color: var(--text);
  padding: 11px 12px;
  min-height: 41px;
  outline-offset: 2px
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: .85
}

textarea {
  resize: vertical
}

input[type=checkbox],
input[type=radio] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #165dff;
  flex-shrink: 0
}

input[type=color] {
  padding: 4px;
  width: 60px
}

label.check {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 400;
  gap: 10px
}

.check input {
  margin-top: 2px
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

legend {
  font-size: 12px;
  color: var(--muted)
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.inline-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap
}

.inline-form label {
  flex: 1;
  min-width: 130px
}

.inline-form input[type=color] {
  min-width: 60px
}

.notice {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--notice);
  border-radius: 7px;
  margin-bottom: 18px;
  font-size: 13px
}

.notice.error {
  border-left-color: #e75a67
}

.notice.success {
  border-left-color: #0ca678
}

.notice.warning {
  border-left-color: #e29c36
}

.errorlist,
.error-text {
  color: #e75a67;
  font-size: 12px;
  padding-left: 16px
}

.helptext {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px
}

.helptext ul {
  padding-left: 16px
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 5px;
  white-space: normal;
  font-weight: 600;
  line-height: 1.4
}

.badge.neutral {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border)
}

.badge.green {
  background: #0ca67815;
  color: var(--green)
}

.badge.blue-badge {
  background: var(--soft);
  color: var(--accent)
}

.badge.tiny {
  font-size: 9px;
  padding: 2px 6px
}

.spaced {
  margin-top: 20px
}

.text-right {
  text-align: right
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0
}

.wordmark {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  text-decoration: none
}

.wordmark:hover {
  text-decoration: none
}

.wordmark small {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.8px;
  display: block;
  margin-top: 7px;
  color: #8799bb
}

.brand-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  font-style: italic;
  width: 42px;
  height: 44px;
  background: #165dff;
  border-radius: 10px;
  color: #fff;
  box-shadow: inset 0 -3px 0 #00cbf560;
  letter-spacing: -3px;
  padding-right: 5px
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh
}

.auth-brand {
  background: radial-gradient(ellipse at 20% 90%, #0e3175 0, transparent 60%), #050c1c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  padding: 48px 10%
}

.auth-brand h1 {
  font-size: clamp(30px, 3.5vw, 52px);
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 22px 0
}

.auth-brand p {
  color: #91a4c5;
  max-width: 380px;
  line-height: 1.9
}

.brand-line {
  height: 3px;
  width: 85px;
  background: linear-gradient(90deg, #165dff, #00cbf5);
  margin: 38px 0 20px
}

.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 45px 30px;
  background: var(--panel)
}

.auth-card {
  width: min(100%, 400px)
}

.auth-card h2 {
  font-size: 30px;
  margin: 14px 0 8px
}

.auth-card>.muted {
  margin-bottom: 28px
}

.auth-content footer {
  color: var(--muted);
  font-size: 11px;
  margin-top: 40px
}

.auth-content footer a {
  color: var(--muted)
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin: 25px 0
}

.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border)
}

.auth-bottom {
  text-align: center;
  margin-top: 28px;
  font-size: 12px
}

.auth-card .button+.small {
  margin-top: 10px
}

.app-shell {
  display: flex;
  min-height: 100dvh
}

.sidebar {
  width: 236px;
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #a7b4cb;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 12px
}

.sidebar .wordmark {
  padding: 0 5px;
  font-size: 23px
}

.team-identity {
  margin: 32px 0 30px;
  border: 1px solid #253049;
  border-radius: 9px;
  padding: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #e5edfc
}

.team-identity strong {
  font-size: 11px;
  display: block;
  max-width: 135px;
  overflow-wrap: anywhere
}

.team-identity small {
  font-size: 10px;
  color: #8a9dbd;
  display: block;
  margin-top: 2px
}

.team-icon,
.team-identity img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #1b3154;
  color: #80c8ff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  object-fit: contain
}

.nav-caption {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #657796;
  margin: 0 12px 12px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #99abc8;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 5px
}

.nav-item>span {
  font-size: 19px;
  width: 21px
}

.nav-item:hover {
  background: #13233d;
  text-decoration: none;
  color: #fff
}

.nav-item.active {
  background: #165dff;
  color: #fff;
  box-shadow: 0 4px 12px #165dff20
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px
}

.plan-card {
  border: 1px solid #253049;
  border-radius: 8px;
  padding: 13px;
  font-size: 11px;
  margin-bottom: 20px
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #00cbf5;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px
}

.plan-card p {
  font-size: 10px;
  color: #6f85a8;
  margin: 6px 0 0
}

.user-row {
  border-top: 1px solid #253049;
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  gap: 9px;
  align-items: center
}

.user-row strong {
  color: #e5edfc;
  font-size: 11px;
  display: block
}

.user-row small {
  font-size: 10px;
  color: #7184a5
}

.user-row form {
  margin-left: auto
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
  color: var(--accent);
  flex-shrink: 0
}

.main-shell {
  margin-left: 236px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.topbar {
  height: 64px;
  padding: 0 35px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px
}

.breadcrumb {
  color: var(--muted)
}

.breadcrumb span {
  margin: 0 12px;
  color: var(--border)
}

.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center
}

.main-content {
  padding: 30px 35px;
  flex: 1;
  max-width: 1700px;
  width: 100%;
  margin: auto
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px
}

.page-heading h1 {
  margin-bottom: 8px
}

.page-heading p {
  font-size: 12px;
  margin: 0
}

.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 10px
}

.app-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding: 12px 35px 22px
}

.app-footer a {
  color: var(--muted)
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px
}

.metrics article,
.metric-filter {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 20px;
  min-width: 0;
  box-shadow: var(--shadow)
}

.metric-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--muted);
  display: block
}

.metrics strong {
  font-size: 30px;
  letter-spacing: -1px;
  display: block;
  margin: 8px 0 2px;
  line-height: 1.3
}

.metrics small {
  color: var(--muted);
  font-size: 10px;
  display: block
}

.metrics em {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0
}

.metrics .metric-inline {
  font-size: 25px
}

.metrics .metric-inline small {
  display: inline;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0
}

.metric-filter {
  display: flex;
  align-items: center;
  box-shadow: none;
  background: transparent
}

.metric-filter label {
  width: 100%;
  font-size: 10px;
  color: var(--muted)
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  gap: 12px
}

.panel-heading h3,
.panel-heading p,
.panel-heading h2 {
  margin: 0
}

.panel-heading p {
  margin-top: 5px
}

.count {
  font-size: 10px;
  background: var(--soft);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 5px
}

.inbox-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  min-height: 600px
}

.conversation-list {
  max-height: 780px;
  overflow-y: auto
}

.search-form {
  display: flex;
  margin: 0 16px 12px;
  position: relative
}

.search-form input {
  background: var(--bg);
  font-size: 11px;
  padding-right: 36px
}

.search-form button {
  border: 0;
  background: none;
  position: absolute;
  right: 7px;
  top: 5px;
  color: var(--muted);
  font-size: 22px
}

.list-caption {
  font-size: 9px;
  color: var(--muted);
  padding: 0 20px 10px
}

.contact-row {
  padding: 18px 16px;
  display: flex;
  gap: 11px;
  border-top: 1px solid var(--border);
  color: var(--text);
  border-left: 3px solid transparent
}

.contact-row>div {
  flex: 1;
  min-width: 0
}

.contact-row:hover {
  background: var(--hover);
  text-decoration: none
}

.contact-row.selected {
  background: var(--soft);
  border-left-color: var(--accent)
}

.contact-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px
}

.contact-title strong {
  font-size: 11px
}

.contact-title small {
  font-size: 9px;
  color: var(--muted)
}

.contact-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 7px
}

.contact-avatar {
  background: #e8eef5;
  color: #5f7e9a
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.chat-header {
  padding: 18px 20px;
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--border)
}

.chat-header h3 {
  margin: 0 0 2px;
  font-size: 13px
}

.chat-header small {
  font-size: 10px
}

.chat-header .button {
  margin-left: auto
}

.chat-context {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap
}

.chat-context>.small {
  margin-left: auto;
  font-size: 9px
}

.chat-messages {
  background: var(--chat);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 300px;
  max-height: 410px;
  flex: 1;
  overflow-y: auto
}

.chat-date {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 12px
}

.bubble {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 15px;
  max-width: 82%;
  font-size: 12px;
  box-shadow: 0 2px 4px #00000004;
  overflow-wrap: anywhere;
  flex-shrink: 0
}

.incoming {
  align-self: flex-start;
  background: var(--incoming);
  border-top-left-radius: 0
}

.outgoing {
  align-self: flex-end;
  background: var(--outgoing);
  border-top-right-radius: 0;
  border-color: transparent
}

.bubble-agent {
  font-size: 10px;
  display: block;
  color: var(--accent);
  margin-bottom: 5px
}

.bubble small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  text-align: right;
  margin-top: 6px
}

.composer-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  padding: 14px 20px 6px;
  color: var(--muted)
}

.composer {
  padding: 8px 20px 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px
}

.composer textarea {
  background: var(--bg);
  resize: vertical;
  font-size: 12px;
  max-height: 180px
}

.composer .button {
  min-width: 90px
}

.sandbox-tools {
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  color: var(--muted);
  font-size: 10px
}

.sandbox-tools summary {
  cursor: pointer
}

.sandbox-tools form {
  display: flex;
  gap: 8px;
  margin-top: 10px
}

.sandbox-tools p {
  margin: 10px 0
}

.sandbox-tools input {
  font-size: 11px
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 50px 20px
}

.empty-state>span {
  font-size: 42px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px
}

.empty-state h2,
.empty-state h3 {
  color: var(--text)
}

.empty-state p {
  font-size: 12px;
  line-height: 1.9
}

.chat-empty {
  margin: auto
}

.funnel-panel {
  margin-top: 20px
}

.funnel-visual {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 5px 20px 26px;
  gap: 6px
}

.funnel-slice {
  background: color-mix(in srgb, var(--stage-color) 12%, var(--panel));
  border: 2px solid var(--stage-color);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  width: calc(var(--slice-width) * 6%);
  max-width: 90%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: var(--text);
  padding: 8px 25px;
  transition: background .2s, transform .2s
}

.funnel-slice:hover {
  background: color-mix(in srgb, var(--stage-color) 25%, var(--panel));
  transform: translateY(-2px);
  text-decoration: none
}

.funnel-slice span {
  font-size: 10px;
  color: var(--muted)
}

.funnel-slice strong {
  font-size: 12px
}

.funnel-slice b {
  font-size: 19px;
  color: var(--stage-color)
}

.kanban {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(210px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding: 24px 0
}

.kanban-column {
  scroll-margin-top: 20px
}

.stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--stage-color);
  padding: 15px 2px 12px
}

.stage-heading h3 {
  font-size: 12px;
  margin: 0
}

.stage-heading>span {
  font-size: 10px;
  color: var(--muted)
}

.opportunity {
  display: block;
  background: var(--panel);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  color: var(--text)
}

.opportunity:hover {
  border-color: var(--accent);
  text-decoration: none
}

.opportunity h3 {
  margin: 8px 0
}

.opportunity p {
  font-size: 10px
}

.opportunity>.small {
  font-size: 8px;
  letter-spacing: .6px
}

.card-link {
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-top: 16px
}

.empty-column {
  font-size: 11px;
  color: var(--muted);
  padding: 22px 10px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 8px
}

.labels-panel {
  padding-bottom: 22px
}

.labels-panel>.inline-form {
  padding: 0 20px
}

.label-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 20px
}

.label-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 6px 3px 12px;
  font-size: 11px;
  background: var(--bg)
}

.label-chip small {
  font-size: 9px;
  color: var(--muted)
}

.label-chip .icon-button {
  font-size: 17px;
  width: 25px
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px
}

.channel-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px
}

.channel-card h2 {
  font-size: 21px;
  margin: 0
}

.channel-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  flex: 1
}

.channel-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--accent);
  border-radius: 11px;
  font-size: 26px;
  font-weight: 650
}

.channel-symbol.whatsapp {
  background: #0ca67815;
  color: var(--green);
  font-size: 24px
}

.table-scroll {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap
}

th {
  background: var(--bg);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  padding: 14px 20px
}

td {
  padding: 20px;
  border-top: 1px solid var(--border)
}

.future-panel {
  padding: 26px;
  margin-top: 25px
}

.future-panel h2 {
  margin: 14px 0
}

.future-panel p {
  max-width: 750px;
  font-size: 12px;
  line-height: 1.8
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start
}

.settings-card {
  padding: 26px
}

.settings-card h2 {
  font-size: 19px;
  margin-bottom: 18px
}

.settings-card>.notice {
  margin-top: 22px;
  margin-bottom: 0
}

.settings-card .notice+.stack {
  margin-top: 20px
}

.settings-card.wide {
  grid-column: 1/-1
}

.settings-card p {
  font-size: 12px
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 12px
}

.rule-list {
  margin-top: 24px
}

.rule-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 15px 0
}

.rule-item strong {
  font-size: 11px;
  margin-right: 8px
}

.rule-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  overflow-wrap: anywhere
}

.pattern-widget {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.pattern-widget>.small {
  font-size: 10px;
  text-align: center
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 45px);
  gap: 16px;
  touch-action: none;
  user-select: none
}

.pattern-grid button {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 50%;
  height: 45px;
  color: var(--muted);
  font-size: 10px;
  touch-action: none
}

.pattern-grid button.chosen {
  background: #165dff;
  color: #fff;
  border-color: #165dff
}

.standalone {
  max-width: 700px;
  margin: 30px auto;
  padding: 35px
}

.standalone p {
  color: var(--muted)
}

.recovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0
}

.recovery-grid code {
  padding: 14px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 1px
}

.invite-code {
  font-size: 48px;
  color: var(--accent);
  letter-spacing: 12px;
  padding: 25px 0
}

.appearance-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.appearance-choice {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 500;
  gap: 10px
}

.appearance-choice:has(input:checked) {
  background: var(--soft);
  border-color: var(--accent)
}

dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 13px;
  width: min(94vw, 520px);
  max-height: 90dvh;
  padding: 28px;
  box-shadow: 0 20px 90px #0004
}

dialog::backdrop {
  background: #030b1b99;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px
}

.dialog-heading h2 {
  margin: 0;
  font-size: 22px
}

.dialog-heading+.small {
  margin-bottom: 20px
}

@media(min-width:1550px) {
  .inbox-grid {
    grid-template-columns: 350px minmax(0, 1fr)
  }

  .chat-messages {
    max-height: 550px
  }

  .main-content {
    padding: 40px 50px
  }
}

@media(max-width:1150px) {
  .sidebar {
    width: 200px;
    padding: 25px 12px
  }

  .main-shell {
    margin-left: 200px
  }

  .main-content {
    padding: 25px 22px
  }

  .topbar {
    padding: 0 22px
  }

  .inbox-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 12px
  }

  .metrics {
    gap: 10px
  }

  .metrics article,
  .metric-filter {
    padding: 15px
  }

  .metrics strong {
    font-size: 25px
  }

  .metric-label {
    font-size: 8px
  }

  .chat-messages {
    padding: 20px 16px
  }

  .settings-card {
    padding: 20px
  }
}

@media(max-width:900px) {
  .sidebar {
    width: 76px;
    padding: 20px 12px
  }

  .sidebar .wordmark>span,
  .sidebar .team-identity,
  .nav-caption,
  .nav-item:not(.active)~.none,
  .sidebar .plan-card,
  .sidebar .user-row,
  .sidebar .nav-item {
    font-size: 0
  }

  .sidebar .wordmark {
    padding: 0
  }

  .sidebar .wordmark .brand-letter {
    font-size: 30px
  }

  .sidebar .nav-item {
    justify-content: center;
    padding: 12px;
    margin: 6px 0
  }

  .nav-item>span {
    font-size: 24px;
    width: 24px
  }

  .sidebar nav {
    margin-top: 40px
  }

  .sidebar-bottom {
    padding-top: 10px
  }

  .main-shell {
    margin-left: 76px
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .metric-filter {
    background: var(--panel)
  }

  .settings-grid {
    grid-template-columns: 1fr
  }

  .settings-card.wide {
    grid-column: auto
  }

  .auth-brand {
    padding: 35px 8%
  }

  .auth-brand h1 {
    letter-spacing: -1px
  }

  .app-footer {
    padding-left: 22px;
    padding-right: 22px
  }
}

@media(max-width:650px) {
  h1 {
    font-size: 25px
  }

  .auth-layout {
    grid-template-columns: 1fr
  }

  .auth-brand {
    padding: 25px 24px
  }

  .auth-brand>div,
  .auth-brand>p {
    display: none
  }

  .auth-brand .wordmark {
    font-size: 23px
  }

  .auth-content {
    padding: 32px 24px;
    min-height: calc(100dvh - 94px);
    justify-content: flex-start
  }

  .auth-card h2 {
    font-size: 27px
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 67px;
    padding: 0 6px;
    flex-direction: row;
    z-index: 5;
    border-top: 1px solid #253049
  }

  .sidebar .wordmark,
  .sidebar .team-identity,
  .sidebar .nav-caption,
  .sidebar-bottom .plan-card,
  .sidebar-bottom .user-row {
    display: none
  }

  .sidebar nav {
    display: flex;
    margin: 0;
    flex: 4
  }

  .sidebar-bottom {
    display: flex;
    margin: 0;
    padding: 0;
    flex: 1
  }

  .sidebar .nav-item {
    flex: 1;
    flex-direction: column;
    gap: 0;
    margin: 4px 2px;
    padding: 4px 0;
    font-size: 8px;
    min-width: 45px
  }

  .sidebar .nav-item>span {
    font-size: 21px;
    height: 28px
  }

  .sidebar-bottom>.nav-item {
    font-size: 0
  }

  .sidebar-bottom>.nav-item>span {
    font-size: 24px
  }

  .sidebar-bottom .nav-item[href='/administracao/'] {
    display: none
  }

  .main-shell {
    margin-left: 0;
    margin-bottom: 67px
  }

  .topbar {
    height: 53px;
    padding: 0 16px;
    font-size: 10px
  }

  .topbar-right {
    gap: 7px
  }

  .topbar-right>.small,
  .breadcrumb {
    display: none
  }

  .main-content {
    padding: 22px 14px
  }

  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px
  }

  .page-heading p {
    font-size: 11px
  }

  .page-heading>.button {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 35px;
    flex-shrink: 0
  }

  .page-heading .eyebrow {
    font-size: 8px
  }

  .page-heading h1 {
    font-size: 22px
  }

  .metrics {
    gap: 8px;
    margin-bottom: 16px
  }

  .metrics article,
  .metric-filter {
    padding: 13px
  }

  .metrics strong {
    font-size: 25px
  }

  .metric-label {
    font-size: 8px;
    letter-spacing: .3px
  }

  .metrics small {
    font-size: 9px
  }

  .inbox-grid {
    display: flex;
    flex-direction: column;
    gap: 14px
  }

  .conversation-list {
    max-height: 270px
  }

  .conversation-list .panel-heading {
    padding: 12px 16px
  }

  .conversation-list .search-form {
    margin-bottom: 8px
  }

  .contact-row {
    padding: 11px 14px
  }

  .contact-row p {
    margin: 3px 0
  }

  .list-caption {
    display: none
  }

  .chat-header {
    padding: 14px
  }

  .chat-context {
    padding: 9px 14px
  }

  .chat-context>.small {
    margin-left: 0
  }

  .chat-messages {
    min-height: 330px;
    max-height: 460px;
    padding: 18px 14px
  }

  .bubble {
    max-width: 91%
  }

  .composer {
    padding: 8px 12px 12px;
    gap: 7px
  }

  .composer .button {
    min-width: 65px;
    padding: 10px
  }

  .composer-header {
    padding: 12px 13px 5px;
    font-size: 9px
  }

  .composer-header button {
    font-size: 10px
  }

  .sandbox-tools {
    padding: 10px 13px
  }

  .app-footer {
    padding: 12px 14px 20px;
    font-size: 8px
  }

  .settings-card {
    padding: 20px
  }

  .form-pair {
    grid-template-columns: 1fr
  }

  .integration-grid {
    grid-template-columns: 1fr
  }

  .channel-card {
    padding: 23px
  }

  .funnel-slice {
    max-width: 100%;
    padding: 8px 18px;
    width: calc(var(--slice-width)*7%)
  }

  .funnel-slice strong {
    font-size: 10px
  }

  .funnel-slice b {
    font-size: 16px
  }

  .funnel-slice span {
    display: none
  }

  .panel-heading {
    padding: 17px
  }

  .panel-heading h3 {
    font-size: 13px
  }

  .standalone {
    margin: 0;
    padding: 22px
  }

  .recovery-grid {
    grid-template-columns: 1fr
  }

  .invite-code {
    letter-spacing: 8px;
    font-size: 39px
  }

  .appearance-choice {
    padding: 12px 7px;
    font-size: 11px
  }

  .auth-card .helptext ul {
    padding-left: 20px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}

@media print {

  .sidebar,
  .topbar,
  .app-footer,
  .standalone>.button,
  .standalone>a {
    display: none
  }

  .main-shell {
    margin: 0
  }

  .main-content {
    padding: 0
  }

  .standalone {
    box-shadow: none;
    border: 0;
    color: #000;
    background: #fff
  }

  .recovery-grid code {
    background: #fff;
    color: #000;
    border: 1px solid #ddd
  }
}

/* Frontend estático: componentes e adaptação independente do Django. */
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle
}

.button>.icon {
  width: 17px;
  height: 17px
}

.wordmark .brand-letter {
  flex: 0 0 auto
}

.sidebar .nav-item>.nav-label {
  font-size: 12px;
  width: auto
}

.sidebar .nav-item>.icon {
  width: 20px;
  height: 20px
}

.sidebar .nav-item {
  gap: 12px
}

.sidebar .wordmark {
  gap: 10px
}

.sidebar .user-row .icon-button {
  margin-left: auto
}

.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0
}

.theme-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer
}

.theme-shortcut:hover {
  background: var(--soft);
  color: var(--accent)
}

.mobile-exit {
  display: none
}

.boot-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #071123;
  color: #99adce
}

.boot-brand {
  font-size: 34px;
  letter-spacing: -1.5px;
  color: #fff;
  font-weight: 750
}

.boot-brand span {
  color: #00cbf5
}

.boot-screen p {
  font-size: 12px;
  margin-top: 16px
}

.auth-brand {
  background: radial-gradient(ellipse at 15% 90%, #12316a 0, transparent 60%), #071123
}

.auth-brand h1 {
  font-weight: 650
}

.auth-brand .wordmark {
  font-size: 27px
}

.auth-content footer {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center
}

.auth-content footer .link-button {
  font-size: 10px;
  color: var(--muted)
}

.auth-preview {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #28446c;
  background: #ffffff04;
  border-radius: 12px;
  padding: 18px;
  margin-top: 45px;
  max-width: 390px
}

.preview-orbit {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #165dff25;
  color: #44bdff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 7px #165dff08
}

.auth-preview strong {
  display: block;
  font-size: 12px;
  color: #e9f1ff
}

.auth-preview span {
  font-size: 10px;
  color: #91a4c5
}

.preview-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00cbf5;
  margin-left: auto;
  box-shadow: 0 0 12px #00cbf540
}

.auth-card h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.2px
}

.auth-card>.muted {
  margin-top: 12px
}

.auth-card .eyebrow {
  font-size: 9px
}

.auth-card .button {
  min-height: 46px
}

.auth-card .demo-button {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--soft)
}

.auth-disclaimer {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px;
  text-align: center
}

.password-field {
  position: relative
}

.password-field input {
  padding-right: 70px
}

.reveal-password {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 10px;
  color: var(--muted);
  padding: 3px
}

.connection-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-top: 16px
}

.back-link {
  font-size: 12px
}

.google-note {
  width: 100%;
  justify-content: center;
  margin-top: 12px
}

.google-note .badge {
  margin-left: auto
}

.demo-strip {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  margin-bottom: 27px;
  font-size: 10px;
  color: var(--muted)
}

.demo-strip>.icon {
  width: 15px;
  height: 15px;
  color: var(--accent)
}

.demo-strip .link-button {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap
}

.metrics .metric-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center
}

.metric-top>.icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  opacity: .7
}

.metrics article {
  padding: 20px
}

.metrics strong {
  font-size: 28px;
  font-weight: 650;
  margin: 10px 0 3px;
  overflow-wrap: anywhere
}

.metrics.compact .metric-filter {
  border: 0;
  background: none
}

.metric-filter label {
  font-size: 9px;
  letter-spacing: .7px
}

.metric-filter select {
  letter-spacing: 0;
  color: var(--text);
  font-size: 11px;
  margin-top: 5px
}

.contact-row {
  background: none;
  width: 100%;
  text-align: left;
  border-right: 0;
  border-bottom: 0;
  font: inherit;
  cursor: pointer
}

.contact-row .contact-title strong {
  font-size: 12px
}

.contact-row p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.contact-row .contact-title small {
  font-size: 9px
}

.conversation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  gap: 6px
}

.conversation-controls .list-caption {
  padding: 0;
  font-size: 9px
}

.conversation-controls label {
  font-size: 9px;
  color: var(--muted);
  gap: 5px;
  align-items: center
}

.conversation-controls input[type=checkbox] {
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0
}

.search-form>.icon {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 15px;
  height: 15px;
  color: var(--muted)
}

.inbox-grid {
  min-height: 600px
}

.chat-context {
  min-height: 43px
}

.chat-context>.small {
  display: flex;
  align-items: center;
  gap: 5px
}

.mini-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: var(--muted)
}

.mini-dot.live {
  background: var(--green)
}

.chat-messages {
  min-height: 280px;
  max-height: 420px
}

.chat-header h3 {
  font-size: 14px
}

.bubble {
  font-size: 12px;
  line-height: 1.7
}

.bubble-agent {
  font-size: 10px
}

.composer textarea {
  min-height: 62px
}

.composer-header .icon {
  width: 11px;
  height: 11px;
  margin-left: 3px
}

.composer .button {
  gap: 8px
}

.sandbox-tools {
  padding: 12px 20px
}

.sandbox-tools summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none
}

.sandbox-tools summary::-webkit-details-marker {
  display: none
}

.sandbox-tools summary:after {
  content: '＋';
  margin-left: auto
}

.sandbox-tools[open] summary:after {
  content: '−'
}

.sandbox-tools summary>.icon {
  width: 13px;
  height: 13px;
  color: var(--accent)
}

.sandbox-tools p {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px
}

.sandbox-tools form {
  margin-bottom: 3px
}

.empty-state>.icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  display: block;
  color: var(--accent)
}

.empty-chat-icon {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 27px;
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--soft) 45%, transparent)
}

.empty-chat-icon>.icon {
  width: 34px;
  height: 34px;
  color: var(--accent)
}

.chat-empty h2 {
  font-size: 24px;
  line-height: 1.3
}

.chat-empty .button {
  margin-top: 8px
}

.chat-panel {
  min-height: 600px
}

.stage-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px
}

.stage-heading {
  padding: 14px 2px 16px
}

.funnel-slice {
  min-height: 55px;
  transition: background .15s, transform .15s
}

.kanban-column {
  border-radius: 7px;
  transition: background .15s;
  min-width: 0
}

.kanban-column.drag-over {
  background: var(--soft);
  outline: 2px dashed var(--accent);
  outline-offset: 5px
}

.opportunity {
  cursor: grab;
  box-shadow: var(--shadow)
}

.opportunity:active {
  cursor: grabbing
}

.opportunity p {
  font-size: 11px;
  color: var(--muted)
}

.opportunity-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px
}

.opportunity-actions .link-button {
  font-size: 10px
}

.move-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 6px
}

.move-card>.icon {
  width: 13px;
  height: 13px
}

.move-card:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.labels-panel {
  margin-bottom: 12px
}

.labels-panel .inline-form {
  padding: 0 20px
}

.label-list {
  min-height: 25px
}

.stage-edit-row {
  display: grid;
  grid-template-columns: 24px 1fr 60px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px
}

.stage-edit-row>span {
  font-size: 10px;
  color: var(--muted)
}

.stage-edit-row input[type=color] {
  height: 43px;
  width: 60px
}

.marketing-hero {
  background: radial-gradient(ellipse at 75% 50%, #123c7b 0, transparent 75%), #071123;
  border: 1px solid #243e65;
  border-radius: 12px;
  padding: 37px 45px;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 35px;
  overflow: hidden;
  margin-bottom: 26px;
  min-height: 260px
}

.marketing-hero .eyebrow {
  color: #53c6ff;
  font-size: 9px
}

.marketing-hero h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px
}

.marketing-hero p {
  font-size: 12px;
  color: #9aafd0;
  line-height: 1.8;
  margin-bottom: 0
}

.channel-orbit {
  width: 235px;
  height: 210px;
  flex-shrink: 0;
  position: relative;
  align-self: center;
  margin-right: 6%
}

.channel-orbit:before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid #547bb440;
  border-radius: 50%
}

.channel-orbit:after {
  content: '';
  position: absolute;
  inset: 45px;
  border: 1px dashed #547bb430;
  border-radius: 50%
}

.channel-orbit>span {
  position: absolute;
  inset: 72px 83px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 19px;
  background: #165dff;
  box-shadow: 0 0 40px #165dff40
}

.channel-orbit>span>.icon {
  width: 30px;
  height: 30px
}

.channel-orbit>i {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid #466aa080;
  border-radius: 11px;
  background: #152a48;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #68cfff
}

.channel-orbit>i:nth-of-type(1) {
  top: 0;
  left: 100px
}

.channel-orbit>i:nth-of-type(2) {
  top: 95px;
  right: 0
}

.channel-orbit>i:nth-of-type(3) {
  bottom: 0;
  left: 95px
}

.channel-orbit>i:nth-of-type(4) {
  top: 90px;
  left: 0
}

.channel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%
}

.channel-coming {
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px
}

.channel-symbol>.icon {
  width: 24px;
  height: 24px
}

.investment-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px
}

.investment-notice>.icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--accent)
}

.positive {
  color: var(--green)
}

.settings-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px
}

.settings-title>.icon {
  color: var(--accent);
  background: var(--soft);
  box-sizing: content-box;
  padding: 10px;
  border-radius: 9px;
  width: 20px;
  height: 20px
}

.settings-title h2 {
  margin: 0 0 4px
}

.settings-title p {
  font-size: 11px;
  margin: 0
}

.appearance-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 18px;
  min-height: 125px
}

.appearance-choice>input {
  position: absolute;
  top: 15px;
  right: 15px
}

.appearance-choice>strong {
  font-size: 12px
}

.appearance-choice>small {
  color: var(--muted);
  font-size: 10px
}

.appearance-preview {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  background: var(--bg);
  color: var(--muted)
}

.appearance-preview.light {
  background: #f1f5ff;
  color: #165dff
}

.appearance-preview.dark {
  background: #0a1428;
  color: #a9c4ff
}

.security-note {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding: 17px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px
}

.security-note>.icon {
  width: 17px;
  height: 17px;
  color: var(--muted)
}

.security-note strong {
  font-size: 11px
}

.security-note p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 5px 0 0
}

.member-name {
  display: flex;
  gap: 9px;
  align-items: center
}

.member-name .avatar {
  width: 28px;
  height: 28px;
  font-size: 10px
}

.automation-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start
}

.automation-columns .rule-list {
  margin-top: 0;
  padding-left: 25px;
  border-left: 1px solid var(--border)
}

.rule-item small {
  font-size: 9px
}

.rule-item p {
  line-height: 1.8
}

.connection-statuses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-bottom: 18px
}

.connection-statuses>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px
}

.connection-statuses strong {
  font-size: 11px
}

.connection-card>.small {
  font-size: 11px;
  line-height: 1.8;
  margin: 14px 0 20px
}

.reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px
}

.reset-row strong {
  font-size: 12px
}

.reset-row p {
  font-size: 11px;
  margin: 5px 0 0
}

.contact-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px
}

.contact-detail-title small {
  display: block;
  font-size: 11px
}

.connection-explanation p,
.privacy-text p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 15px
}

.connection-explanation .channel-symbol {
  margin-bottom: 15px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.toast-region {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 30px));
  pointer-events: none
}

.toast {
  padding: 15px 19px;
  background: var(--text);
  color: var(--panel);
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 40px #0003;
  border-left: 3px solid #37cfa4;
  line-height: 1.7
}

.toast.error {
  border-left-color: #f07a87
}

.working .button[type=submit] {
  cursor: wait
}

.app-footer .link-button {
  font-size: 10px;
  color: var(--muted)
}

.wide-dialog {
  width: min(94vw, 650px)
}

.dialog-heading>.icon-button>.icon {
  width: 20px;
  height: 20px
}

input[type=file] {
  font-size: 11px;
  padding: 10px
}

input[type=file]::file-selector-button {
  border: 0;
  background: var(--soft);
  color: var(--accent);
  border-radius: 5px;
  padding: 5px 9px;
  margin-right: 10px;
  font-size: 11px
}

@media(min-width:1550px) {
  .chat-messages {
    max-height: 530px
  }

  .main-content {
    padding-top: 35px
  }
}

@media(max-width:1150px) {
  .metrics article {
    padding: 15px
  }

  .metrics strong {
    font-size: 24px
  }

  .metric-top>.icon {
    width: 14px;
    height: 14px
  }

  .page-heading h1 {
    font-size: 27px
  }

  .automation-columns {
    gap: 23px
  }

  .automation-columns .rule-list {
    padding-left: 20px
  }

  .marketing-hero {
    padding: 32px
  }

  .channel-orbit {
    margin-right: 0
  }
}

@media(max-width:900px) {
  .sidebar .nav-item>.nav-label {
    display: none
  }

  .sidebar .nav-item>.icon {
    width: 23px;
    height: 23px
  }

  .sidebar .nav-item {
    justify-content: center
  }

  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end
  }

  .page-heading h1 {
    font-size: 25px
  }

  .appearance-choice {
    padding: 16px 12px
  }

  .automation-columns {
    grid-template-columns: 1fr
  }

  .automation-columns .rule-list {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 22px
  }

  .marketing-hero h2 {
    font-size: 28px
  }

  .channel-orbit {
    width: 205px;
    transform: scale(.85);
    margin-right: -15px
  }

  .marketing-hero {
    gap: 10px
  }
}

@media(max-width:650px) {
  .sidebar .nav-item>.nav-label {
    display: block;
    font-size: 8px;
    line-height: 1.1;
    white-space: nowrap
  }

  .sidebar .nav-item>.icon {
    width: 20px;
    height: 24px
  }

  .sidebar .sidebar-bottom .nav-item>.nav-label {
    display: none
  }

  .sidebar .nav-item {
    gap: 3px;
    min-height: 55px;
    justify-content: center
  }

  .sidebar .sidebar-bottom {
    flex: 0 0 49px
  }

  .sidebar .nav-item {
    margin: 3px 1px
  }

  .main-content {
    padding: 18px 13px
  }

  .demo-strip {
    margin-bottom: 22px;
    padding: 10px 12px;
    font-size: 9px;
    line-height: 1.7;
    align-items: flex-start;
    gap: 8px
  }

  .demo-strip .link-button {
    display: none
  }

  .demo-strip>.icon {
    margin-top: 2px
  }

  .page-heading {
    align-items: center;
    gap: 10px
  }

  .page-heading h1 {
    font-size: 23px
  }

  .page-heading p {
    font-size: 10px;
    line-height: 1.8
  }

  .page-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px
  }

  .heading-actions {
    max-width: 140px;
    gap: 6px
  }

  .heading-actions>.button {
    font-size: 9px;
    padding: 8px 9px;
    min-height: 33px
  }

  .heading-actions .icon {
    width: 13px;
    height: 13px
  }

  .topbar-right>.theme-shortcut {
    width: 28px;
    height: 28px
  }

  .theme-shortcut .icon {
    width: 16px;
    height: 16px
  }

  .topbar-right {
    gap: 6px
  }

  .mobile-exit {
    display: inline-flex;
    width: 25px;
    height: 25px
  }

  .mobile-exit .icon {
    width: 15px;
    height: 15px
  }

  .metrics article {
    padding: 13px
  }

  .metrics strong {
    font-size: 24px;
    margin-top: 7px
  }

  .metric-top>.icon {
    width: 13px;
    height: 13px
  }

  .metric-label {
    font-size: 7px
  }

  .metric-filter label {
    font-size: 8px
  }

  .conversation-list {
    max-height: 320px
  }

  .conversation-list .panel-heading {
    padding-top: 12px;
    padding-bottom: 10px
  }

  .conversation-controls {
    padding: 0 16px 9px
  }

  .conversation-controls .list-caption {
    display: block;
    font-size: 8px
  }

  .contact-row .contact-title strong {
    font-size: 12px
  }

  .contact-row p {
    font-size: 10px
  }

  .chat-panel {
    min-height: 570px;
    scroll-margin-top: 12px
  }

  .chat-header h3 {
    font-size: 13px
  }

  .chat-header small {
    font-size: 9px
  }

  .chat-context>.small {
    font-size: 8px;
    margin-left: auto
  }

  .chat-context .badge {
    font-size: 9px
  }

  .composer textarea {
    font-size: 12px;
    min-height: 66px
  }

  .composer .button {
    min-width: 60px;
    font-size: 10px;
    padding: 10px;
    gap: 5px;
    align-self: stretch
  }

  .composer .button .icon {
    width: 13px;
    height: 13px
  }

  .composer-header .link-button {
    font-size: 8px
  }

  .chat-messages {
    min-height: 310px;
    max-height: 420px
  }

  .bubble {
    font-size: 12px
  }

  .sandbox-tools summary {
    font-size: 9px
  }

  .sandbox-tools {
    padding: 12px 13px
  }

  .sandbox-tools form {
    gap: 6px
  }

  .sandbox-tools .button {
    font-size: 9px;
    min-width: 80px
  }

  .chat-empty h2 {
    font-size: 22px
  }

  .appearance-choices {
    gap: 8px
  }

  .appearance-choice {
    padding: 16px 9px;
    min-height: 119px
  }

  .appearance-choice>strong {
    font-size: 11px
  }

  .appearance-choice>small {
    font-size: 9px;
    line-height: 1.5
  }

  .appearance-choice>input {
    right: 8px;
    top: 10px;
    width: 13px;
    height: 13px;
    min-height: 13px
  }

  .settings-title h2 {
    font-size: 18px
  }

  .settings-title p {
    font-size: 10px;
    line-height: 1.7
  }

  .settings-title>.icon {
    padding: 8px
  }

  .settings-card {
    padding: 20px
  }

  .connection-statuses {
    grid-template-columns: 1fr
  }

  .reset-row {
    align-items: flex-start;
    flex-direction: column
  }

  .marketing-hero {
    padding: 28px 23px;
    min-height: 220px;
    position: relative
  }

  .marketing-hero h2 {
    font-size: 29px
  }

  .marketing-hero p {
    font-size: 10px;
    position: relative;
    z-index: 1
  }

  .marketing-hero .eyebrow {
    font-size: 8px
  }

  .channel-orbit {
    position: absolute;
    right: -65px;
    top: 25px;
    transform: scale(.65);
    opacity: .5
  }

  .marketing-hero>div:first-child {
    z-index: 1
  }

  .channel-card {
    padding: 24px
  }

  .channel-card-top .badge {
    font-size: 9px
  }

  .auth-card h2 {
    font-size: 31px
  }

  .auth-brand .wordmark {
    font-size: 24px
  }

  .auth-content footer {
    gap: 15px
  }

  .auth-content footer>span {
    font-size: 10px
  }

  .auth-content footer>.theme-shortcut {
    width: 28px;
    height: 28px
  }

  .toast-region {
    bottom: 82px;
    right: 15px
  }

  .toast {
    font-size: 11px;
    padding: 13px 16px
  }

  .stage-edit-row {
    grid-template-columns: 19px 1fr 46px;
    gap: 8px
  }

  .stage-edit-row input[type=color] {
    width: 46px
  }

  .kanban {
    padding-top: 20px
  }

  .opportunity {
    padding: 18px
  }

  .funnel-slice {
    width: calc(var(--slice-width)*6.5%)
  }

  .investment-notice {
    font-size: 10px
  }

  .app-footer {
    font-size: 8px
  }

  .app-footer .link-button {
    font-size: 9px
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

:root {
  --muted: #65738a
}

/* Entrada responsiva: altura pelo conteúdo, com versão compacta em telas baixas. */
:root {
  --auth-brand-surface: #edf3fc;
  --auth-brand-glow: #d6e6ff;
  --auth-slot: #eef1f6;
}

html[data-appearance=dark] {
  --auth-brand-surface: #071123;
  --auth-brand-glow: #11294c;
  --auth-slot: #202b3c;
}

@media (prefers-color-scheme: dark) {
  html:not([data-appearance=light]):not([data-appearance=dark]) {
    --auth-brand-surface: #071123;
    --auth-brand-glow: #11294c;
    --auth-slot: #202b3c;
  }
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.wordmark .brand-copy {
  display: block;
  min-width: 0;
}

.wordmark .brand-copy strong {
  display: block;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 1.6px;
  line-height: 1.1;
}

.wordmark .brand-copy small {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.35px;
  margin-top: 7px;
  color: inherit;
  opacity: .7;
  white-space: nowrap;
}

.sidebar .wordmark {
  gap: 7px;
}

.sidebar .brand-logo {
  width: 34px;
  height: 40px;
}

.sidebar .brand-copy strong {
  font-size: 19px;
  letter-spacing: 1px;
}

.sidebar .brand-copy small {
  font-size: 6px;
  letter-spacing: .65px;
}

.auth-layout {
  grid-template-columns: 1.04fr 1fr;
  min-height: 100svh;
}

.auth-brand {
  background: radial-gradient(ellipse at 0 100%, var(--auth-brand-glow), transparent 65%), var(--auth-brand-surface);
  color: var(--text);
  padding: clamp(24px, 5vh, 56px) clamp(24px, 5vw, 80px);
  gap: 24px;
  border-right: 1px solid var(--border);
}

.auth-brand .wordmark {
  color: var(--text);
  gap: 13px;
}

.auth-brand h1 {
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 650;
  letter-spacing: -2px;
  margin: 20px 0;
}

.auth-brand p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 390px;
  margin: 0;
}

.auth-brand .eyebrow {
  color: var(--accent);
}

.auth-brand .auth-brand-footer {
  font-size: 10px;
  color: var(--muted);
}

.auth-preview {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  margin-top: 28px;
  gap: 13px;
}

.auth-preview strong {
  color: var(--text);
  font-weight: 600;
}

.auth-preview span {
  color: var(--muted);
}

.auth-feature-line {
  display: block;
  height: 36px;
  width: 3px;
  background: linear-gradient(#165dff, #00cbf5);
}

.auth-content {
  padding: 22px clamp(20px, 4vw, 64px);
  min-width: 0;
  min-height: 0;
  justify-content: center;
  gap: 14px;
}

.auth-card {
  width: min(100%, 360px);
}

.auth-card .eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  margin: 0 0 8px;
}

.auth-card h2 {
  font-size: clamp(25px, 2.3vw, 31px);
  letter-spacing: -1px;
  margin: 0 0 6px;
  line-height: 1.15;
}

.auth-card>.muted {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 18px;
}

.auth-card .stack {
  gap: 12px;
}

.auth-card label,
.auth-card .form-field {
  font-size: 12px;
  gap: 5px;
}

.auth-card input {
  min-height: 40px;
  padding: 9px 11px;
}

.auth-card .button {
  min-height: 40px;
  padding: 9px 15px;
}

.auth-card .reveal-password {
  top: 50%;
  transform: translateY(-50%);
}

.company-code {
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  border: 0;
}

.company-code legend {
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.company-code legend span {
  margin-left: 5px;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
}

.code-slots {
  display: flex;
  gap: 8px;
}

.auth-card .code-digit {
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border-radius: 6px;
  background: var(--auth-slot);
  color: var(--text);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.code-digit:focus {
  border-color: var(--accent);
}

.company-code small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  margin-top: 5px;
}

.auth-card .divider {
  margin: 11px 0;
  font-size: 10px;
  line-height: 1;
}

.google-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-card .google-note {
  margin-top: 0;
}

.auth-card .auth-bottom {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.auth-bottom a {
  font-weight: 650;
}

.auth-demo-access {
  margin-top: 15px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.auth-card .auth-demo-access .demo-button {
  min-height: 30px;
  padding: 4px 12px;
  background: transparent;
  border: 0;
  font-size: 11px;
}

.auth-demo-access p {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  margin: 3px 0 0;
}

.auth-content footer {
  margin-top: 0;
  width: min(100%, 360px);
  gap: 12px;
  font-size: 9px;
}

.auth-content footer .theme-shortcut {
  width: 28px;
  height: 28px;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-brand {
    padding: 18px 24px 0;
    align-items: center;
    border-right: 0;
    background: var(--panel);
    gap: 0;
  }

  .auth-brand .auth-story,
  .auth-brand .auth-brand-footer {
    display: none;
  }

  .auth-brand .wordmark {
    margin: 0;
  }

  .auth-brand .brand-logo {
    width: 38px;
    height: 38px;
  }

  .auth-brand .brand-copy strong {
    font-size: 22px;
  }

  .auth-brand .brand-copy small {
    font-size: 6px;
    margin-top: 5px;
  }

  .auth-content {
    padding: 20px 24px 16px;
    gap: 12px;
    justify-content: center;
  }

  .auth-login .auth-card>.eyebrow {
    display: none;
  }

  .sidebar .wordmark .brand-copy {
    display: none;
  }
}

@media (max-height: 700px) {
  .auth-login .auth-content {
    padding-top: 14px;
    padding-bottom: 12px;
    gap: 8px;
  }

  .auth-login .auth-card>.eyebrow {
    display: none;
  }

  .auth-login .auth-card h2 {
    font-size: 26px;
  }

  .auth-login .auth-card>.muted {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .auth-login .stack {
    gap: 9px;
  }

  .auth-login .auth-card input {
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .auth-login .auth-card .code-digit {
    height: 36px;
    min-height: 0;
    padding: 0;
  }

  .auth-login .auth-card .button {
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .auth-login .auth-card .divider {
    margin: 9px 0;
  }

  .auth-login .auth-card .auth-bottom {
    margin-top: 9px;
  }

  .auth-login .auth-demo-access {
    margin-top: 10px;
    padding-top: 7px;
  }

  .auth-login .auth-card .auth-demo-access .demo-button {
    min-height: 26px;
    padding: 2px 12px;
  }

  .auth-login .auth-demo-access p {
    font-size: 9px;
  }

  .auth-brand h1 {
    font-size: clamp(32px, 3.7vw, 50px);
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  .auth-login .auth-brand {
    padding-top: 12px;
  }

  .auth-login .auth-brand .brand-logo {
    width: 32px;
    height: 32px;
  }

  .auth-login .auth-brand .brand-copy strong {
    font-size: 20px;
  }

  .auth-login .auth-content {
    padding-top: 12px;
  }

  .auth-login .auth-card h2 {
    font-size: 24px;
  }
}

@media (max-width: 500px) {
  .auth-card input:not(.code-digit) {
    font-size: 16px;
  }

  .auth-card .code-digit {
    font-size: 18px;
  }

  .auth-login .auth-card>.muted {
    font-size: 11px;
  }
}

@media (max-width: 900px) and (max-height: 600px) {
  .auth-login .auth-brand {
    padding-top: 8px;
  }

  .auth-login .auth-content {
    padding: 8px 20px;
    gap: 6px;
  }

  .auth-login .auth-card > .muted {
    margin-bottom: 8px;
  }

  .auth-login .stack {
    gap: 7px;
  }

  .auth-login .auth-card input:not(.code-digit) {
    height: 36px;
    padding: 5px 11px;
  }

  .auth-login .auth-card .password-field input {
    padding-right: 70px;
  }

  .auth-login .auth-card label, .auth-login .form-field {
    gap: 3px;
  }

  .auth-login .auth-demo-access {
    margin-top: 8px;
    padding-top: 6px;
  }

  .auth-login .auth-content footer .theme-shortcut {
    width: 24px;
    height: 24px;
  }
}

/* Editor de etapas: exclusão na própria linha e alça para mouse/toque/teclado. */
.stage-edit-row {
  grid-template-columns: 24px minmax(0, 1fr) 54px 34px;
  gap: 9px;
  padding: 3px;
  border-radius: 9px;
}
.stage-name-field {
  position: relative;
  min-width: 0;
}
.stage-name-field input {
  padding-right: 42px;
}
.stage-delete, .stage-grip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  width: 32px;
  height: 34px;
  padding: 6px;
}
.stage-delete {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  transition: color .15s, background .15s;
}
.stage-delete:hover, .stage-delete:focus-visible {
  color: #e24747;
  background: #e2474718;
}
.stage-grip {
  cursor: grab;
  touch-action: none;
  user-select: none;
  height: 42px;
}
.stage-grip:hover, .stage-grip:focus-visible {
  color: var(--accent);
  background: var(--soft);
}
.stage-edit-row.is-dragging {
  background: var(--soft);
  outline: 2px dashed var(--accent);
  outline-offset: 1px;
}
.is-dragging .stage-grip {
  cursor: grabbing;
}
.stage-edit-row input[type=color] {
  width: 54px;
  height: 43px;
}

/* Funil compacto. A segunda coluna abre sem reconstruir o gráfico. */
.funnel-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
  align-items: center;
  padding: 0 24px 22px;
  min-height: 186px;
  transition: grid-template-columns .32s ease;
}
.funnel-workspace.has-selection {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.funnel-overview {
  min-width: 0;
}
.funnel-visual {
  width: min(100%, 340px);
  margin: 0 auto;
  gap: 4px;
  padding: 8px 0;
  transition: width .32s ease;
}
.has-selection .funnel-visual {
  width: min(100%, 270px);
}
.funnel-slice {
  width: var(--slice-size);
  max-width: none;
  min-height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 20px;
  gap: 4px;
  padding: 6px 12px;
  line-height: 1.2;
  text-align: center;
  border-width: 1px;
  transition: background .18s, transform .18s;
}
.funnel-slice strong {
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  line-height: 1.15;
  max-height: 2.3em;
}
.funnel-slice span {
  font-size: 9px;
}
.funnel-slice b {
  font-size: 15px;
}
.funnel-slice[aria-pressed=true] {
  background: color-mix(in srgb, var(--stage-color) 30%, var(--panel));
  box-shadow: inset 0 0 0 1px var(--stage-color);
}
.funnel-slice:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--stage-color) 35%, var(--panel));
  box-shadow: inset 0 0 0 3px var(--stage-color);
}
.funnel-instruction {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin: 10px 0 0;
}
.has-selection .funnel-instruction {
  visibility: hidden;
}
.funnel-details-wrap {
  min-width: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .25s ease, transform .32s ease, max-height .32s ease;
}
.has-selection .funnel-details-wrap {
  max-height: 1200px;
  opacity: 1;
  transform: translateX(0);
}
.funnel-details {
  margin-left: 20px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 220px;
}
.funnel-details-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.funnel-details-heading h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}
.funnel-details-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 5px;
  color: var(--accent);
}
.funnel-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.funnel-counters strong, .funnel-counters span {
  display: block;
}
.funnel-counters strong {
  font-size: 23px;
  line-height: 1.3;
}
.funnel-counters span {
  font-size: 10px;
  color: var(--muted);
}
[data-stage-reviewed] {
  color: var(--green);
}
.funnel-status-note {
  font-size: 9px;
  color: var(--muted);
  margin: 10px 0 12px;
}
.funnel-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 9px 0;
}
.funnel-contact > div {
  min-width: 0;
}
.funnel-contact strong, .funnel-contact span {
  display: block;
  overflow-wrap: anywhere;
}
.funnel-contact strong {
  font-size: 11px;
  font-weight: 600;
}
.funnel-contact span {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.review-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
}
.review-toggle:hover, .review-toggle.is-reviewed {
  color: var(--green);
  background: var(--soft);
  border-color: var(--green);
}
.funnel-details > .link-button {
  margin-top: 10px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.funnel-details > .link-button .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 760px) {
  .funnel-workspace, .funnel-workspace.has-selection {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 15px 18px;
  }
  .has-selection .funnel-details {
    margin: 12px 0 0;
  }
  .funnel-details {
    min-width: 0;
    margin: 0;
    padding: 15px;
  }
  .has-selection .funnel-instruction {
    display: none;
  }
  .stage-edit-row {
    grid-template-columns: 17px minmax(0, 1fr) 42px 28px;
    gap: 5px;
    padding: 2px;
  }
  .stage-edit-row input[type=color] {
    width: 42px;
  }
  .stage-name-field input {
    font-size: 16px;
    padding-left: 9px;
    padding-right: 33px;
  }
  .stage-delete {
    right: 2px;
    width: 28px;
    padding: 5px;
  }
  .stage-grip {
    width: 28px;
    padding: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .funnel-workspace, .funnel-visual, .funnel-details-wrap {
    transition: none;
  }
}

/* Experiência de atendimento: conversas primeiro, controles discretos. */
dialog::backdrop {
  background: rgb(0 0 0 / 58%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-action=logout]:hover, [data-action=logout]:focus-visible {
  color: #ef5252;
  background: #ef52521a;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-size: 11px;
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs a[aria-current=page] {
  color: var(--text);
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs > span {
  color: var(--muted);
}
.workspace-control {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  background: transparent;
}
.workspace-control:hover {
  background: #ffffff08;
  border-color: #4e648a;
}
.workspace-control > span:not(.team-icon):not(.workspace-chevron) {
  min-width: 0;
}
.workspace-control .workspace-chevron {
  margin-left: auto;
  color: #99a8bf;
  font-size: 16px;
}
.workspace-control strong, .workspace-control small {
  display: block;
}
.workspace-options {
  display: grid;
  gap: 8px;
}
.workspace-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  padding: 13px;
  border-radius: 9px;
  text-align: left;
}
.workspace-option > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.workspace-option strong, .workspace-option small {
  display: block;
  overflow-wrap: anywhere;
}
.workspace-option strong {
  font-size: 12px;
}
.workspace-option small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-option:hover, .workspace-option.is-current {
  border-color: var(--accent);
  background: var(--soft);
}
.mobile-workspace {
  display: none;
}
.inbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.inbox-heading h1 {
  font-size: 25px;
  margin: 0;
}
.main-content:has(.inbox-heading) {
  padding-top: 22px;
}
.inbox-grid .chat-panel {
  min-height: min(680px, calc(100svh - 190px));
}
.inbox-grid .chat-messages {
  min-height: 220px;
  flex: 1;
}
.conversation-controls select {
  width: auto;
  max-width: 170px;
  font-size: 10px;
  min-height: 29px;
  padding: 3px 6px;
}
#message-form textarea {
  resize: none;
  min-height: 40px;
  max-height: 160px;
  overflow-y: auto;
  line-height: 1.5;
  padding: 9px 12px;
}
.agent-name {
  font-size: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pin-input {
  text-align: center;
  letter-spacing: 12px;
  font-size: 24px;
}
.demo-pin-note {
  margin: 14px 0 0;
  padding: 10px;
  background: var(--soft);
  border-radius: 7px;
  color: var(--muted);
}
.audit-event {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.audit-event > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.audit-event time {
  font-size: 10px;
  color: var(--muted);
}
.audit-event p {
  font-size: 12px;
  margin: 10px 0 0;
}
.label-panel-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.page-loader {
  width: min(85vw, 270px);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border);
  outline: none;
}
.page-loader p {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text);
}
.page-loader::backdrop {
  background: rgb(0 0 0 / 35%);
}
.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loading-turn .8s linear infinite;
}
@keyframes loading-turn {
  to { transform: rotate(360deg); }
}
:root {
  --auth-brand-surface: #e7f3ff;
  --auth-brand-glow: #c5e5ff;
}
html[data-appearance=dark] {
  --auth-brand-surface: #071123;
  --auth-brand-glow: #11294c;
}
@media (prefers-color-scheme: dark) {
  html:not([data-appearance=light]):not([data-appearance=dark]) {
    --auth-brand-surface: #071123;
    --auth-brand-glow: #11294c;
  }
}
.auth-back {
  font-size: 10px;
  min-height: 30px !important;
  padding: 4px 10px !important;
}
.auth-back .icon {
  transform: rotate(180deg);
  width: 14px;
  height: 14px;
}
.register-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.auth-register .auth-card .stack {
  gap: 10px;
}
.auth-register .form-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-register .auth-card > .muted {
  margin-bottom: 14px;
}
.auth-register .auth-card input {
  min-height: 38px;
  height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.auth-register .auth-card input[type=checkbox] {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: 0 0 auto;
}
.register-consent {
  align-items: flex-start;
  font-size: 10px !important;
}
.register-back {
  margin-top: 10px;
  font-size: 11px;
}
.auth-content footer .theme-shortcut {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--soft);
}
@media (max-width: 900px) {
  .mobile-workspace {
    display: inline-flex;
  }
  .sidebar .workspace-control {
    display: none;
  }
}
@media (max-width: 650px) {
  .inbox-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .inbox-heading h1 {
    font-size: 23px;
  }
  .inbox-heading .heading-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .inbox-heading .button {
    min-height: 34px;
    padding: 6px 12px;
  }
  .label-panel-actions > span {
    display: none;
  }
  .label-panel-actions .button {
    font-size: 10px;
    min-height: 34px;
    padding: 6px 10px;
  }
  .breadcrumbs {
    gap: 6px;
    font-size: 10px;
  }
  .topbar-right {
    gap: 7px;
  }
  .audit-event > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-height: 700px) {
  .auth-register .auth-content {
    padding-top: 12px;
    padding-bottom: 10px;
    gap: 8px;
  }
  .auth-register .register-top {
    margin-bottom: 9px;
  }
  .auth-register .auth-card h2 {
    font-size: 25px;
  }
  .auth-register .auth-card > .muted {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .auth-register .auth-card .stack {
    gap: 8px;
  }
  .auth-register .auth-card label {
    gap: 3px;
    font-size: 11px;
  }
  .auth-register .auth-card input {
    min-height: 36px;
    height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .auth-register .auth-card input[type=checkbox] {
    min-height: 0;
    height: 16px;
  }
  .auth-register .auth-card .button {
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .auth-register .auth-card .divider {
    margin: 8px 0;
  }
  .auth-register .auth-demo-access {
    margin-top: 10px;
    padding-top: 6px;
  }
  .auth-register .auth-card .auth-demo-access .demo-button {
    min-height: 26px;
    padding: 2px 10px;
  }
}
@media (max-width: 900px) and (max-height: 600px) {
  .auth-register .auth-brand {
    padding-top: 8px;
  }
  .auth-register .auth-brand .brand-logo {
    width: 32px;
    height: 32px;
  }
  .auth-register .auth-content {
    padding: 8px 20px;
    gap: 6px;
  }
  .auth-register .auth-card > .muted {
    display: none;
  }
  .auth-register .auth-content footer .theme-shortcut {
    width: 24px;
    height: 24px;
  }
  .auth-login .auth-content footer .theme-shortcut {
    width: 24px;
    height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
}

/* Atendimento ocupa a viewport; só as listas e o histórico rolam. */
body[data-page=atendimento] {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
body[data-page=atendimento] #app, body[data-page=atendimento] .app-shell {
  height: 100%;
  min-height: 0;
}
body[data-page=atendimento] .main-shell {
  height: 100dvh;
  min-height: 0;
}
body[data-page=atendimento] .topbar {
  flex: 0 0 56px;
  height: 56px;
}
body[data-page=atendimento] .main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 12px 24px 18px;
  margin: 0 auto;
}
body[data-page=atendimento] .app-footer {
  display: none;
}
body[data-page=atendimento] .inbox-heading {
  flex: 0 0 auto;
  margin: 0 0 8px;
}
body[data-page=atendimento] .inbox-heading h1 {
  font-size: 23px;
}
body[data-page=atendimento] .inbox-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  height: auto;
  gap: 14px;
}
body[data-page=atendimento] .conversation-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.conversation-list > .panel-heading, .conversation-list > .search-form, .conversation-list > .conversation-controls {
  flex-shrink: 0;
}
.contact-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
body[data-page=atendimento] .chat-panel {
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow: hidden;
}
body[data-page=atendimento] .chat-header, body[data-page=atendimento] .chat-context, body[data-page=atendimento] .composer-header, body[data-page=atendimento] .composer, body[data-page=atendimento] .sandbox-tools {
  flex-shrink: 0;
}
body[data-page=atendimento] .chat-context {
  max-height: 66px;
  overflow-y: auto;
}
body[data-page=atendimento] .chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body[data-page=atendimento] #message-form textarea {
  max-height: min(160px, 18dvh);
}
body[data-page=atendimento] .sandbox-tools {
  margin: 0;
  padding: 9px 18px;
}
.sandbox-tools > .link-button {
  font-size: 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.channel-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 0 9px;
  margin-bottom: 3px;
}
.channel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--panel);
  font-size: 11px;
  min-height: 33px;
  flex: 0 0 auto;
}
.channel-tab .icon {
  width: 17px;
  height: 17px;
}
.channel-tab[aria-pressed=true] {
  border-color: var(--green);
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, var(--panel));
}
.channel-tab:hover {
  background: var(--soft);
  color: var(--text);
}
.contact-summary {
  flex: 1;
  min-width: 0;
}
.contact-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
}
.responsibility-caption {
  font-size: 10px;
  color: var(--muted);
  font-weight: 450;
  opacity: .85;
  line-height: 1.4;
}
.contact-footnote .responsibility-caption {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-header .responsibility-caption {
  margin: 5px 0 0;
  max-width: 480px;
}
.unread-count {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #07834f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.mobile-conversation-back {
  display: none;
}
.workspace-home > .icon {
  display: none;
}
@media (max-width: 650px) {
  body[data-page=atendimento] .main-shell {
    height: calc(100dvh - 67px - env(safe-area-inset-bottom, 0px));
    padding-bottom: 0;
    margin-bottom: 0;
  }
  body[data-page=atendimento] .main-content {
    padding: 8px 12px 10px;
  }
  body[data-page=atendimento] .inbox-heading {
    gap: 6px;
    margin-bottom: 7px;
  }
  body[data-page=atendimento] .inbox-heading h1 {
    font-size: 20px;
  }
  body[data-page=atendimento] .inbox-heading .heading-actions {
    width: auto;
    gap: 6px;
  }
  body[data-page=atendimento] .inbox-heading .button {
    font-size: 10px;
    min-height: 30px;
    padding: 4px 9px;
  }
  body[data-page=atendimento] .inbox-heading .button .icon {
    display: none;
  }
  body[data-page=atendimento] .inbox-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  body[data-page=atendimento][data-chat=list] .chat-panel {
    display: none;
  }
  body[data-page=atendimento][data-chat=open] .conversation-list {
    display: none;
  }
  .mobile-conversation-back {
    display: inline-flex;
    width: 25px;
    flex: 0 0 auto;
    transform: rotate(180deg);
  }
  body[data-page=atendimento] .chat-header {
    padding: 10px;
    gap: 7px;
  }
  body[data-page=atendimento] .chat-header h3 {
    font-size: 12px;
  }
  .chat-header .responsibility-caption {
    font-size: 9px;
  }
  body[data-page=atendimento] .chat-context {
    padding: 7px 10px;
  }
  body[data-page=atendimento] .chat-messages {
    padding: 12px;
  }
  body[data-page=atendimento] .sandbox-tools {
    padding: 7px 10px;
  }
  .channel-tabs {
    padding-bottom: 7px;
  }
  .channel-tab {
    font-size: 10px;
    min-height: 30px;
    padding: 4px 8px;
    gap: 5px;
  }
}
@media (max-width: 450px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar-right {
    gap: 4px;
  }
  .topbar-right > .badge {
    font-size: 8px;
    padding: 2px 4px;
  }
  .topbar-right .icon-button, .topbar-right .theme-shortcut {
    width: 26px;
    height: 28px;
  }
  .workspace-home > span {
    display: none;
  }
  .workspace-home > .icon {
    display: inline-block;
    width: 17px;
    height: 17px;
  }
  .breadcrumbs a[aria-current=page] {
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 650px) {
  body[data-page=atendimento] .inbox-heading .heading-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
  }
  body[data-page=atendimento][data-chat=open] .inbox-heading {
    display: none;
  }
  body[data-page=atendimento] .chat-header > div {
    flex: 1;
    min-width: 0;
  }
  body[data-page=atendimento] .chat-header small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px;
  }
  body[data-page=atendimento] .chat-header .button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
  }
  .chat-header .responsibility-caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 650px) {
  .channel-tabs {
    overflow: visible;
    gap: 4px;
  }
  .channel-tab {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px;
    font-size: 9px;
    line-height: 1.1;
  }
  .channel-tab .icon {
    width: 16px;
    height: 16px;
  }
}

/* Platform creators: deliberately separate from a company's CRM and finances. */
.creator-demo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 28px;
  font-size: 12px;
}
.creator-demo-banner > span:first-child {
  font-size: 22px;
  color: var(--accent);
  flex: none;
}
.creator-demo-banner > div {
  flex: 1;
}
.creator-demo-banner strong {
  font-size: 12px;
}
.creator-demo-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.creator-page-heading {
  margin-bottom: 28px;
}
.creator-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.creator-metrics article {
  padding: 21px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.creator-metrics article > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
}
.creator-metrics i {
  font-style: normal;
  font-size: 18px;
  color: var(--accent);
}
.creator-metrics article > strong {
  display: block;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 16px 0 8px;
}
.creator-metrics small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.creator-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.creator-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 0 14px;
  white-space: nowrap;
  cursor: pointer;
}
.creator-tabs [aria-current] {
  color: var(--accent);
  border-color: var(--accent);
}
.creator-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.creator-section-heading h2,
.creator-bottom-grid h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.creator-section-heading p,
.creator-bottom-grid p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.creator-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.creator-column {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px;
  min-width: 0;
}
.creator-column > header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.creator-column > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.creator-column h3 {
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}
.creator-column > header > strong {
  font-size: 12px;
  white-space: nowrap;
}
.billing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d69832;
  flex: none;
}
.billing-dot.in_progress {
  background: #3478ec;
}
.billing-dot.paid {
  background: #1ba87d;
}
.billing-count {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
}
.column-hint {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 18px;
  line-height: 1.5;
}
.creator-cards {
  display: grid;
  gap: 14px;
}
.creator-charge {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 4px #00000003;
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.charge-company {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.company-monogram {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
  font-weight: 650;
  background: #e9f0ff;
  color: #3166c9;
}
.company-monogram.violet {
  background: #eee9fd;
  color: #7d58b7;
}
.company-monogram.green {
  background: #e3f3e9;
  color: #3b8158;
}
.company-monogram.orange {
  background: #fff1df;
  color: #aa722d;
}
.charge-company strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.charge-company small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.charge-value {
  font-size: 25px;
  letter-spacing: -0.04em;
  font-weight: 650;
  margin: 22px 0 6px;
}
.charge-value > span {
  font-size: 9px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.charge-reference {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.charge-due {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  gap: 8px;
  margin-bottom: 18px;
}
.charge-due time {
  font-weight: 600;
  color: var(--text);
}
.charge-check {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  padding: 14px 0 0;
  font: inherit;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.charge-check > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.check-box {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: transparent;
  flex: none;
}
.charge-check:hover .check-box {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}
.charge-complete {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #16886d;
}
.creator-footnote {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  margin: 18px 0 0;
}
.creator-panel {
  padding: 24px;
  margin-top: 28px;
  min-width: 0;
}
.creator-table-wrap {
  overflow-x: auto;
}
.creator-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
.creator-table th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.creator-table th:first-child,
.creator-table td:first-child {
  padding-left: 0;
}
.creator-table th small {
  display: block;
  font-size: 8px;
  margin-top: 4px;
}
.creator-table td {
  padding: 19px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.creator-table tbody tr:last-child td {
  border-bottom: 0;
}
.creator-table .charge-company {
  min-width: 160px;
}
.creator-table .badge {
  font-size: 9px;
}
.activity-detail {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.usage-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 9px;
  margin-bottom: 8px;
  min-width: 135px;
  color: var(--muted);
}
.usage-caption b {
  color: var(--text);
  font-weight: 500;
}
.usage-track {
  height: 4px;
  border-radius: 10px;
  background: var(--border);
  overflow: hidden;
}
.usage-track span {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: #3478ec;
}
.usage-track.over span {
  background: #d79037;
}
.usage-alert {
  color: #b77b28;
}
.creator-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.creator-bottom-grid .eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 9px;
}
.creator-bottom-grid .link-button {
  font-size: 11px;
  margin-top: 18px;
}
.creator-bottom-grid .creator-section-heading {
  margin-bottom: 10px;
}
.stripe-card h2 {
  font-size: 24px;
  color: #7461d4;
}
.creator-search {
  display: block;
  max-width: 360px;
  font-size: 11px;
  margin-bottom: 20px;
}
.creator-search input {
  margin-top: 8px;
}
.billing-empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.billing-empty small {
  display: block;
  font-size: 10px;
  margin-top: 10px;
  line-height: 1.7;
}
.billing-confirm-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.billing-confirm-summary small {
  width: 100%;
  color: var(--muted);
}
.creator-history {
  padding: 0;
  list-style: none;
}
.creator-history li {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.creator-history p {
  color: var(--muted);
  margin: 8px 0;
}
.creator-history small {
  color: var(--muted);
  font-size: 10px;
}
.history-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #16886d;
  background: #16886d15;
}
.company-member-row {
  display: flex;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
}
.company-member-row > div {
  flex: 1;
}
.company-member-row small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}
.charge-moving {
  opacity: 0;
  transform: translateX(12px);
}
.charge-arrived {
  animation: charge-arrive 0.4s ease-out;
}
@keyframes charge-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  body[data-page="criadores"] .main-content {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 1200px) {
  .creator-board {
    gap: 12px;
  }
  .creator-column {
    padding: 12px;
  }
  .creator-charge {
    padding: 14px;
  }
  .creator-column > header {
    flex-wrap: wrap;
  }
  .creator-metrics {
    gap: 12px;
  }
  .creator-metrics article {
    padding: 16px;
  }
  .creator-metrics article > strong {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  .creator-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creator-demo-banner {
    align-items: flex-start;
    padding: 14px;
  }
  .creator-demo-banner > .badge {
    display: none;
  }
  .creator-board {
    grid-template-columns: 1fr;
  }
  .creator-column {
    padding: 16px;
  }
  .creator-column > header {
    flex-wrap: nowrap;
  }
  .creator-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creator-bottom-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .creator-panel {
    padding: 18px;
  }
  .creator-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .creator-tabs {
    gap: 22px;
  }
  .company-member-row {
    flex-wrap: wrap;
  }
  .company-member-row .badge {
    margin-left: 44px;
  }
  .company-member-row > div {
    min-width: 60%;
  }
  .creator-page-heading .heading-actions {
    display: none;
  }
}
@media (max-width: 430px) {
  .creator-cards {
    grid-template-columns: 1fr;
  }
  .creator-metrics article > strong {
    font-size: 23px;
  }
  .creator-metrics article > div {
    font-size: 9px;
  }
  .creator-tabs button {
    font-size: 12px;
  }
  .creator-tabs {
    gap: 18px;
  }
  .creator-page-heading h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .creator-charge {
    transition: none;
  }
  .charge-arrived {
    animation: none;
  }
}
@media (max-width: 650px) {
  .sidebar nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar nav .nav-item {
    flex: 1 0 48px;
  }
}
.creator-table .badge.red { color: #ae582a; background: #e9923820; }
.creator-table .badge.orange { color: #9e732a; background: #d7982920; }
.creator-metrics i { font-size: 14px; }
