@font-face {
  font-family: Inter;
  src: url('/vendor/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/vendor/fonts/inter-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/vendor/fonts/inter-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/vendor/fonts/inter-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --blue: #3285ed;
  --blue-dark: #1768ce;
  --blue-pale: #edf5ff;
  --ink: #1e2b43;
  --muted: #8390a4;
  --border: #e8edf4;
  --bg: #f7f9fc;
  --green: #1c9b79;
  --sidebar: 252px;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  flex-shrink: 0;
}
button {
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #90c0ff;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 1.8rem;
  letter-spacing: -0.9px;
  line-height: 1.3;
  font-weight: 600;
}
h2 {
  font-size: 1.1rem;
  letter-spacing: -0.35px;
  font-weight: 600;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
small {
  font-size: 0.8rem;
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  width: 37px;
  height: 37px;
  border-radius: 11px;
  color: white;
  box-shadow: 0 4px 8px #3285ed20;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.brand-light {
  font-weight: 400;
  color: #8d9cb1;
}
.sidebar {
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 20px 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
}
.sidebar > .brand {
  margin: 0 10px 30px;
}
.workspace {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.workspace-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: #f0f6ff;
  color: #4188e6;
  font-weight: 600;
}
.workspace strong,
.profile strong {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}
.workspace small,
.profile small {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}
.workspace > svg {
  width: 15px;
  color: #8b98a8;
  margin-left: auto;
}
.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a0a9b9;
  letter-spacing: 1.3px;
  display: block;
  padding: 0 14px;
  margin: 0 0 12px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav a {
  font-size: 0.86rem;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #768298;
  padding: 12px 13px;
  border-radius: 8px;
  transition: 0.2s;
}
nav a:hover {
  background: #f6f9fd;
  color: var(--blue);
}
nav a.active {
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 600;
}
nav a.active svg {
  stroke-width: 2.1;
}
nav .nav-label {
  margin-top: 29px;
  margin-bottom: 6px;
}
nav svg {
  width: 18px;
  height: 18px;
}
.nav-new {
  font-size: 0.75rem;
  background: #e7f2ff;
  color: #3689ed;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 36px;
}
.sidebar-tip {
  background: linear-gradient(125deg, #eff6ff, #f6faff);
  border: 1px solid #e7f0fd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}
.tip-icon {
  display: inline-flex;
  color: #418cf0;
  margin-bottom: 10px;
}
.sidebar-tip strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 600;
}
.sidebar-tip p {
  font-size: 0.75rem;
  color: #8b98ad;
  margin-top: 8px;
  line-height: 1.7;
}
.sidebar-tip a {
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 14px;
}
.sidebar-tip a svg {
  width: 15px;
}
.external-icon {
  margin-left: auto;
  width: 14px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.profile form {
  margin-left: auto;
}
.avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: #5687d3;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  border: 3px solid white;
  outline: 1px solid #e9eef5;
}
.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.75rem;
}
.avatar.mint {
  background: #ddf4ec;
  color: #4b9788;
}
.app-shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 79px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.79rem;
  color: #94a0b3;
}
.breadcrumb svg {
  width: 13px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #516079;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.connection-badge {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8993a4;
}
.status-dot,
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f2b760;
  display: inline-block;
}
.connection-badge.connected .status-dot {
  background: #43b897;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #8592a7;
  padding: 8px;
  border-radius: 8px;
}
.icon-button:hover {
  background: #edf4fd;
  color: var(--blue);
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.mobile-menu {
  display: none;
}
main {
  padding: 32px 36px 20px;
  flex: 1;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 7px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  background: white;
  color: #526179;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: 0.18s;
}
.button:hover {
  background: #f2f7ff;
  border-color: #c2dafa;
}
.button svg {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 5px #3285ed15;
}
.button.primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.button.danger {
  background: #fff0f0;
  border-color: #ffd6d6;
  color: #d15353;
}
.button.small {
  padding: 7px 11px;
  font-size: 0.75rem;
}
.button.ghost {
  border: 0;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  padding: 5px;
}
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #dcecff;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #edf5ff 0%, #e7f2ff 55%, #deedff 100%);
  min-height: 221px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 32px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  color: #4c8edc;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero h2 {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 11px 0 8px;
  max-width: 470px;
  line-height: 1.35;
}
.hero p {
  font-size: 0.8rem;
  color: #7d92ad;
  max-width: 420px;
  line-height: 1.7;
}
.hero .button {
  margin-top: 20px;
  font-size: 0.75rem;
}
.hero-art {
  width: 290px;
  min-width: 290px;
  position: relative;
  height: 175px;
  margin-right: 18px;
}
.hero-art:before,
.hero-art:after {
  content: '';
  position: absolute;
  border: 1px solid #c5dffe;
  border-radius: 50%;
  width: 270px;
  height: 270px;
  top: -54px;
  left: 2px;
}
.hero-art:after {
  width: 360px;
  height: 360px;
  top: -99px;
  left: -43px;
}
.art-card {
  position: absolute;
  background: #ffffffec;
  border: 1px solid white;
  box-shadow: 0 12px 30px #6c9cc222;
  z-index: 2;
  border-radius: 12px;
}
.art-card.main {
  width: 230px;
  left: 23px;
  top: 23px;
  padding: 16px;
  transform: rotate(-5deg);
}
.art-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  font-weight: 600;
}
.art-card-title small {
  display: block;
  font-size: 0.75rem;
  color: #94a0af;
  font-weight: 400;
}
.art-wa {
  background: #e3f5ee;
  color: #4bad91;
  border-radius: 9px;
  padding: 8px;
  display: flex;
}
.art-bubble {
  background: #eff6ff;
  border-radius: 0 8px 8px 8px;
  padding: 10px;
  font-size: 0.75rem;
  color: #6f86a3;
  margin-top: 12px;
}
.art-bubble span {
  float: right;
  color: #5aa3f3;
}
.art-card.floating {
  bottom: -3px;
  right: -16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(3deg);
  font-size: 0.75rem;
  font-weight: 500;
}
.art-card.floating svg {
  color: #40b39b;
  background: #e5f7f0;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
}
.art-sparkle {
  position: absolute;
  right: -10px;
  top: 0;
  color: #74aff4;
  z-index: 3;
  width: 28px;
  height: 28px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 19px 21px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b98ab;
  font-size: 0.75rem;
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #edf5ff;
  color: #438de8;
}
.stat-icon.green {
  background: #eaf8f1;
  color: #40aa85;
}
.stat-icon.purple {
  background: #f2edff;
  color: #9d7bdc;
}
.stat-icon.orange {
  background: #fff4e5;
  color: #e4ac57;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 12px 0 7px;
  line-height: 1.2;
}
.stat-foot {
  font-size: 0.75rem;
  color: #9ba6b6;
}
.stat-foot .positive {
  color: #4ba991;
  margin-right: 4px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(275px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head h2 {
  font-size: 0.9rem;
}
.panel-head p {
  font-size: 0.75rem;
  color: #94a0b1;
  margin-top: 4px;
}
.chart {
  padding: 0 20px 16px;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 4px 10px;
}
.chart-summary strong {
  font-size: 1.5rem;
  font-weight: 600;
}
.chart-summary span {
  color: #98a3b4;
  font-size: 0.75rem;
}
.chart-svg {
  width: 100%;
  height: 154px;
  display: block;
  overflow: visible;
}
.chart-svg text {
  font-family: Inter, sans-serif;
  font-size: 11px;
  fill: #a6b0bd;
}
.chart-grid {
  stroke: #eef1f6;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}
.chart-line {
  fill: none;
  stroke: #56a0f8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-area {
  fill: url(#chart-gradient);
  stroke: none;
}
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.75rem;
  color: #8e9bae;
  margin-top: 12px;
}
.legend-line {
  display: inline-block;
  width: 14px;
  height: 3px;
  background: #5c9feb;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-line.pale {
  background: #c5dfff;
}
.setup-content {
  padding: 0 22px 19px;
}
.setup-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a0b1;
  font-size: 0.75rem;
  margin-bottom: 16px;
}
progress {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 8px;
  background: #edf2f8;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #edf2f8;
  border-radius: 8px;
}
progress::-webkit-progress-value {
  background: #5299ef;
  border-radius: 8px;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f4f8;
}
.setup-step:last-child {
  border: 0;
}
.step-number {
  border: 1px solid #e5edf7;
  border-radius: 50%;
  color: #a3b1c4;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}
.step-number.done {
  background: #edf7f2;
  border-color: #edf7f2;
  color: #57aa89;
}
.step-number svg {
  width: 14px;
  height: 14px;
}
.setup-step strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
}
.setup-step small {
  font-size: 0.75rem;
  color: #99a4b6;
}
.setup-step > svg {
  width: 14px;
  margin-left: auto;
  color: #a1b1c7;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.78rem;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: #8e9baf;
  font-size: 0.75rem;
  padding: 13px 22px;
  background: #fbfcfe;
  border-block: 1px solid #eff2f7;
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #f0f3f8;
  color: #5b6a80;
}
tr:last-child td {
  border-bottom: 0;
}
.table-primary {
  font-weight: 500;
  color: #34445e;
}
.cell-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cell-title small {
  display: block;
  color: #99a4b4;
  font-size: 0.75rem;
  margin-top: 3px;
  font-weight: 400;
}
.row-icon {
  height: 34px;
  width: 34px;
  border-radius: 9px;
  background: #f0f6ff;
  color: #70a3e2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-icon svg {
  width: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f0f3f7;
  color: #8590a2;
}
.badge.blue {
  background: #ebf4ff;
  color: #4c8edc;
}
.badge.green {
  background: #eaf7f0;
  color: #4caa84;
}
.badge.orange {
  background: #fff5e8;
  color: #d8a14c;
}
.badge.red {
  background: #fff0f0;
  color: #cf7777;
}
.badge.purple {
  background: #f2edff;
  color: #9577cc;
}
.empty-state {
  text-align: center;
  padding: 40px 24px;
}
.empty-icon {
  display: inline-flex;
  background: #f0f6ff;
  color: #7ea9df;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 13px;
}
.empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty-state h3 {
  font-size: 0.9rem;
  font-weight: 500;
}
.empty-state p {
  font-size: 0.78rem;
  color: #94a0b2;
  margin: 7px auto 17px;
  max-width: 380px;
  line-height: 1.8;
}
.empty-state.compact {
  padding: 24px;
}
.empty-state.compact .empty-icon {
  padding: 10px;
  margin-bottom: 10px;
}
.empty-state.compact .empty-icon svg {
  width: 21px;
  height: 21px;
}
.empty-state.compact p {
  margin-bottom: 14px;
}
.empty-state.compact h3 {
  font-size: 0.83rem;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 36px 23px;
  color: #9ba7b9;
  font-size: 0.75rem;
}
.app-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.app-footer svg {
  width: 13px;
  height: 13px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-field {
  position: relative;
  width: 290px;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: #9aa8ba;
}
.search-field input {
  padding-left: 38px;
}
.toolbar select {
  width: 200px;
}
.tabs {
  display: flex;
  gap: 5px;
  background: #edf1f7;
  border-radius: 9px;
  padding: 4px;
}
.tab {
  background: transparent;
  color: #8b98ab;
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 7px 12px;
}
.tab.active {
  background: white;
  color: #3486ec;
  box-shadow: 0 1px 4px #243b5c0b;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.list-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  min-height: 245px;
}
.list-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.folder-icon {
  display: flex;
  border-radius: 11px;
  padding: 12px;
  background: #edf5ff;
  color: #6fa4ec;
}
.folder-icon svg {
  width: 24px;
  height: 24px;
}
.folder-icon.purple {
  background: #f2edff;
  color: #a58cd8;
}
.folder-icon.green {
  background: #e8f7ef;
  color: #68b899;
}
.folder-icon.orange {
  background: #fff4e3;
  color: #dfb675;
}
.list-card p {
  font-size: 0.76rem;
  color: #91a0b3;
  line-height: 1.8;
  margin-top: 9px;
  flex: 1;
  overflow-wrap: anywhere;
}
.list-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.list-count {
  font-size: 0.75rem;
  color: #8d9db2;
}
.list-count strong {
  color: #425779;
  font-weight: 600;
  margin-right: 3px;
}
.list-card .card-actions {
  display: flex;
  gap: 2px;
}
.list-card-new {
  border: 1px dashed #cadbef;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 13px;
  min-height: 245px;
  color: #7fa1c9;
  font-size: 0.83rem;
}
.list-card-new:hover {
  background: #edf5ff;
}
.list-card-new svg {
  width: 29px;
  height: 29px;
}
.alert {
  border: 1px solid #dceaff;
  background: #eff6ff;
  color: #6e8bad;
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 0.78rem;
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.alert svg {
  flex-shrink: 0;
  width: 18px;
  margin-top: 2px;
}
.alert.error {
  background: #fff3f3;
  border-color: #ffe1e1;
  color: #c37171;
}
.alert.warning {
  background: #fff9ee;
  border-color: #f6e5c6;
  color: #b28a4f;
}
.alert a {
  color: var(--blue);
  text-decoration: underline;
}
.loading-state {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #92a0b4;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #dceafa;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
input:not([type='checkbox']):not([type='file']),
select,
textarea {
  width: 100%;
  border: 1px solid #e1e8f1;
  background: white;
  border-radius: 8px;
  padding: 10px 12px;
  color: #40516d;
  outline: none;
  font-size: 0.85rem;
  min-width: 0;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #abb6c6;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #82b4f6;
  box-shadow: 0 0 0 3px #3285ed0c;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2391a1b7'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
label {
  display: block;
  font-size: 0.8rem;
  color: #55657d;
  font-weight: 500;
}
label > input,
label > select,
label > textarea,
label > .input-icon {
  margin-top: 7px;
}
.form-stack {
  display: grid;
  gap: 19px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-hint {
  font-size: 0.75rem;
  color: #99a6b9;
  margin-top: 6px;
  line-height: 1.7;
  font-weight: 400;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.78rem;
  color: #7b8ca4;
  font-weight: 400;
  line-height: 1.7;
}
.check-label input {
  margin-top: 4px;
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
  max-height: 170px;
  overflow: auto;
}
.check-grid:empty {
  display: none;
}
.field-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #55657d;
}
.file-drop {
  display: block;
  border: 1px dashed #bcd3f1;
  background: #f7faff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
}
.file-drop svg {
  width: 30px;
  height: 30px;
  color: #83afe7;
  margin-bottom: 9px;
}
.file-drop strong {
  display: block;
  font-size: 0.85rem;
  color: #7396c1;
  font-weight: 500;
}
.file-drop input {
  display: block;
  margin: 15px auto 0;
  width: 100%;
  max-width: 270px;
  font-size: 0.75rem;
}
.code {
  font-family: Consolas, monospace;
  font-size: 0.78rem;
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #6c7e99;
}
.detail-bar {
  display: flex;
  gap: 30px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.detail-bar strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}
.detail-bar span {
  font-size: 0.75rem;
  color: #95a3b5;
}
dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: white;
  box-shadow: 0 24px 90px #182b5040;
  width: min(580px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
}
dialog.wide {
  width: min(940px, calc(100vw - 32px));
}
dialog::backdrop {
  background: #1e325b55;
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 26px 18px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 1.1rem;
}
.modal-header p {
  font-size: 0.75rem;
  color: #95a2b6;
  margin-top: 5px;
}
.modal-body {
  padding: 25px 26px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 26px;
  border-top: 1px solid var(--border);
  background: #fafcff;
}
.modal-form .modal-body > .alert:last-child {
  margin-bottom: 0;
}
.modal-error {
  display: none;
}
.modal-error.visible {
  display: block;
  margin: 0 26px 18px;
}
.template-preview {
  background: #f3f7f7;
  border: 1px solid #e8eeed;
  border-radius: 12px;
  padding: 24px;
  min-height: 170px;
  display: flex;
  align-items: center;
}
.message-preview {
  background: white;
  border-radius: 0 11px 11px 11px;
  box-shadow: 0 3px 9px #173e4e08;
  padding: 16px;
  font-size: 0.8rem;
  color: #748494;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  width: 100%;
}
.preview-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #91a2b2;
  font-size: 0.75rem;
  margin-bottom: 12px;
}
.campaign-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 25px;
}
.campaign-preview-side {
  background: #f8fafd;
  border-radius: 12px;
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 0;
}
.preview-note {
  font-size: 0.75rem;
  color: #a1acba;
  margin-top: 14px;
  line-height: 1.8;
}
.template-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.template-card h3 {
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.template-card .message-preview {
  margin-top: 16px;
  background: #f5f9ff;
  box-shadow: none;
  min-height: 110px;
}
.template-card-footer {
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #96a3b5;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.settings-body {
  padding: 4px 24px 25px;
}
.settings-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.settings-row:last-child {
  border: 0;
}
.settings-row strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
}
.settings-row small {
  display: block;
  color: #91a0b6;
  font-size: 0.75rem;
  margin-top: 5px;
}
.settings-row code {
  font-size: 0.75rem;
  color: #7b8fa9;
  overflow-wrap: anywhere;
}
.settings-guide {
  padding: 24px;
  background: linear-gradient(135deg, #edf5ff, #f4f8ff);
  border: 1px solid #deebfc;
  border-radius: 13px;
  align-self: start;
}
.settings-guide > svg {
  width: 25px;
  height: 25px;
  color: #72a9ed;
  margin-bottom: 14px;
}
.settings-guide h3 {
  font-size: 0.95rem;
}
.settings-guide p,
.settings-guide li {
  font-size: 0.77rem;
  line-height: 1.9;
  color: #8095af;
}
.settings-guide p {
  margin-top: 10px;
}
.settings-guide ol {
  padding-left: 19px;
  margin: 15px 0 20px;
}
.inbox {
  display: grid;
  grid-template-columns: 315px 1fr;
  min-height: 590px;
  height: calc(100vh - 255px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.conversation-list {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.conversation-list-head {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.conversation-list-head h3 {
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.conversation-list-head .search-field {
  width: 100%;
}
.conversation-items {
  overflow: auto;
  flex: 1;
}
.conversation-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #f0f3f7;
  padding: 18px;
  background: white;
}
.conversation-item:hover,
.conversation-item.active {
  background: #f0f6ff;
}
.conversation-item-content {
  min-width: 0;
  flex: 1;
}
.conversation-item strong {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 500;
  color: #435571;
}
.conversation-item p {
  font-size: 0.75rem;
  color: #9aa6b7;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-item small {
  font-size: 0.75rem;
  color: #9caec4;
}
.conversation-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fafcfe;
}
.thread-head {
  background: white;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.thread-head strong {
  font-size: 0.84rem;
  font-weight: 500;
}
.thread-head small {
  display: block;
  font-size: 0.75rem;
  color: #91a2b6;
  margin-top: 3px;
}
.thread-head > .badge {
  margin-left: auto;
}
.messages {
  padding: 25px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.message {
  max-width: 80%;
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0 12px 12px 12px;
  padding: 12px 15px;
  min-width: 100px;
  font-size: 0.83rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.outgoing {
  align-self: flex-end;
  background: #eaf3ff;
  border-color: #dceaff;
  border-radius: 12px 0 12px 12px;
}
.message-time {
  display: block;
  text-align: right;
  color: #a1aec0;
  font-size: 0.75rem;
  margin-top: 5px;
}
.reply-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 17px 20px;
  background: white;
  border-top: 1px solid var(--border);
}
.reply-form textarea {
  min-height: 44px;
  height: 44px;
  max-height: 140px;
  font-size: 0.8rem;
}
.thread-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 14px;
  font-size: 0.75rem;
  color: #8d9eb3;
}
.pagination .button {
  padding: 5px 9px;
}
.text-break {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 160px;
  max-width: 320px;
}
.row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
#toasts {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: min(400px, calc(100vw - 32px));
}
.toast {
  padding: 14px 18px;
  border: 1px solid #d8eee6;
  border-radius: 10px;
  box-shadow: 0 8px 30px #263b4e15;
  background: white;
  color: #4c947f;
  font-size: 0.8rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.toast.error {
  border-color: #f2d4d4;
  color: #b75d5d;
}
.toast svg {
  width: 18px;
  height: 18px;
}
.hidden {
  display: none !important;
}
.login-page {
  display: flex;
  min-height: 100vh;
  background: white;
}
.login-story {
  width: 49%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 100% 10%, #398aeb55, transparent 50%),
    linear-gradient(145deg, #19437e, #245c9e 55%, #337dd1);
  padding: 45px 55px;
  color: white;
  position: relative;
  overflow: hidden;
}
.login-story:before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid #ffffff0a;
  border-radius: 50%;
  bottom: -290px;
  right: -300px;
  box-shadow:
    0 0 0 70px #ffffff03,
    0 0 0 140px #ffffff03,
    0 0 0 210px #ffffff03;
  pointer-events: none;
}
.login-story .brand-light {
  color: #adcaed;
}
.login-story .brand-mark {
  background: #ffffff1f;
  border: 1px solid #ffffff20;
  box-shadow: none;
}
.login-story-content {
  margin: auto 0;
  padding: 50px 0;
}
.eyebrow.light {
  color: #a8d2ff;
}
.live-dot {
  background: #7ac8ff;
  width: 5px;
  height: 5px;
}
.login-story h1 {
  font-size: clamp(2.6rem, 4.1vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.17;
  margin: 26px 0;
}
.login-story h1 span {
  color: #92c8ff;
}
.login-story-content > p {
  font-size: 0.88rem;
  color: #a9c9ee;
  line-height: 1.9;
}
.login-message {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffffff20;
  border-radius: 13px;
  background: #ffffff0c;
  padding: 18px;
  margin-top: 42px;
  max-width: 385px;
  transform: rotate(-2deg);
}
.login-message .avatar {
  outline: 0;
  border: 0;
  background: #9cd7cd33;
  color: #c2f2ea;
}
.login-message strong {
  font-size: 0.75rem;
  font-weight: 500;
}
.login-message p {
  font-size: 0.75rem;
  color: #a8c6e7;
  margin-top: 5px;
}
.login-message p span {
  color: #a1d2ff;
  float: right;
  margin-left: 12px;
}
.login-story-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #98bce5;
  font-size: 0.75rem;
  position: relative;
}
.login-story-footer span:first-child {
  letter-spacing: 1.4px;
}
.login-main {
  width: 51%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.login-box {
  max-width: 380px;
  width: 100%;
  margin: auto;
}
.login-lock {
  color: #6da2e6;
  background: #eef5ff;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 1px solid #e1edfd;
}
.login-lock svg {
  width: 28px;
  height: 28px;
}
.login-box h2 {
  font-size: 1.8rem;
  line-height: 1.35;
  margin: 12px 0 10px;
  letter-spacing: -0.9px;
}
.login-box > .muted {
  font-size: 0.84rem;
  line-height: 1.8;
}
.login-form {
  margin-top: 33px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.input-icon {
  position: relative;
}
.input-icon > svg {
  position: absolute;
  left: 13px;
  top: 14px;
  width: 17px;
  height: 17px;
  color: #9fadc0;
}
.input-icon input {
  padding: 12px 42px !important;
}
.input-icon > .icon-button {
  position: absolute;
  right: 5px;
  top: 6px;
}
.login-submit {
  margin-top: 6px;
  width: 100%;
  padding: 13px;
  justify-content: space-between;
}
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #a0adbd;
  font-size: 0.75rem;
  margin-top: 24px;
}
.login-security svg {
  width: 14px;
  height: 14px;
}
.login-bottom {
  font-size: 0.75rem;
  color: #a5afbf;
  text-align: center;
  margin-top: 50px;
}
.login-bottom span {
  margin: 0 10px;
}
.login-box > .alert {
  margin-top: 20px;
}
.sidebar-overlay {
  display: none;
}
@media (min-width: 1600px) {
  main {
    max-width: 1500px;
    width: 100%;
    margin: auto;
    padding-top: 40px;
  }
  .hero {
    min-height: 235px;
  }
  .hero-art {
    margin-right: 70px;
  }
  .stat-card {
    padding: 24px;
  }
  .chart-svg {
    height: 190px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 220px;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .sidebar > .brand {
    font-size: 1.2rem;
    margin-inline: 7px;
  }
  .topbar {
    padding-inline: 25px;
  }
  main {
    padding: 26px 25px 20px;
  }
  .app-footer {
    padding-inline: 25px;
  }
  .hero {
    padding: 25px;
  }
  .hero h2 {
    font-size: 1.4rem;
  }
  .hero-art {
    transform: scale(0.85);
    transform-origin: right center;
    width: 230px;
    min-width: 230px;
    margin-right: 0;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-top {
    font-size: 0.75rem;
  }
  .stat-icon {
    height: 29px;
    width: 29px;
  }
  .dashboard-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  }
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar-tip {
    padding: 14px;
  }
  .login-story {
    padding: 40px;
  }
  .login-main {
    padding: 40px;
  }
  .inbox {
    grid-template-columns: 280px 1fr;
  }
  .topbar-right {
    gap: 13px;
  }
}
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .hero h2 {
    max-width: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-top {
    font-size: 0.8rem;
  }
  .stat-card {
    padding: 20px;
  }
  .setup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
  }
  .setup-progress {
    grid-column: 1/-1;
  }
  .setup-step:nth-child(3) {
    border: 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .inbox {
    grid-template-columns: 240px 1fr;
  }
  .connection-badge {
    font-size: 0.75rem;
  }
  .campaign-layout {
    grid-template-columns: 1fr;
  }
  .campaign-preview-side {
    position: static;
  }
  .login-story {
    padding: 30px;
  }
  .login-main {
    padding: 30px;
  }
  .login-box h2 {
    font-size: 1.5rem;
  }
  .app-footer {
    font-size: 0.75rem;
  }
  .app-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 252px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open + .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #1b2b4b50;
    z-index: 29;
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: flex;
  }
  .breadcrumb {
    gap: 8px;
  }
  .breadcrumb > .mobile-menu svg {
    width: 20px;
  }
  .topbar {
    height: 66px;
    padding-inline: 16px;
  }
  .topbar-right {
    gap: 9px;
  }
  .connection-badge {
    display: none;
  }
  main {
    padding: 24px 18px 16px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .page-heading {
    gap: 15px;
    margin-bottom: 22px;
  }
  .page-heading p {
    font-size: 0.78rem;
  }
  .hero {
    padding: 23px;
    min-height: 210px;
  }
  .hero h2 {
    font-size: 1.45rem;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-top {
    font-size: 0.75rem;
  }
  .stat-value {
    font-size: 1.65rem;
  }
  .stat-foot {
    font-size: 0.75rem;
  }
  .panel-head {
    padding: 18px;
  }
  .list-card {
    padding: 19px;
  }
  .toolbar-left {
    flex-wrap: wrap;
    width: 100%;
  }
  .search-field {
    width: 100%;
  }
  .toolbar select {
    width: 100%;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .tabs {
    overflow: auto;
    max-width: 100%;
  }
  .list-grid {
    gap: 13px;
  }
  .inbox {
    grid-template-columns: 1fr;
    height: calc(100vh - 235px);
    min-height: 500px;
  }
  .conversation-thread {
    display: none;
  }
  .inbox.thread-open .conversation-list {
    display: none;
  }
  .inbox.thread-open .conversation-thread {
    display: flex;
  }
  .conversation-list {
    border-right: 0;
  }
  .thread-back {
    display: inline-flex !important;
  }
  .thread-head {
    padding: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 17px 20px;
  }
  .login-story {
    display: none;
  }
  .login-main {
    width: 100%;
    min-height: 100vh;
    padding: 32px;
  }
  .login-box {
    max-width: 390px;
  }
  .login-lock {
    margin-bottom: 35px;
  }
  .login-bottom {
    margin-top: 40px;
  }
  .app-footer {
    padding: 18px;
  }
  .setup-content {
    display: block;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .campaign-layout {
    gap: 20px;
  }
  .detail-bar {
    gap: 20px;
  }
  .message {
    max-width: 90%;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .toolbar .button {
    flex-shrink: 0;
  }
}
@media (max-width: 440px) {
  .list-grid {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 0.75rem;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-top {
    font-size: 0.75rem;
  }
  .stat-icon {
    width: 27px;
    height: 27px;
  }
  .stat-icon svg {
    width: 16px;
  }
  .stat-foot {
    font-size: 0.75rem;
  }
  .topbar-right > .icon-button {
    display: none;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb > svg {
    display: none;
  }
  .login-main {
    padding: 26px;
  }
  .panel-head .button {
    font-size: 0.75rem;
  }
  .settings-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .button {
    padding: 10px 13px;
  }
  .message {
    max-width: 95%;
  }
}
/* Textos operacionais mantêm tamanho legível em desktop e celular. */
nav a,
.button,
.button.small,
.button.ghost,
.tab,
label,
.field-label,
.check-label,
table,
th,
.stat-top,
.setup-step strong,
.conversation-item strong,
.thread-head strong,
.badge,
.panel-head h2 {
  font-size: 0.875rem;
}
.hero p,
.page-heading p,
.empty-state p,
.list-card p,
.settings-guide p,
.settings-guide li,
.login-box > .muted,
.login-story-content > p,
.message,
.message-preview,
.alert {
  font-size: 1rem;
}
.field-hint,
.preview-note,
.conversation-item p,
.conversation-item small,
.settings-row small,
.panel-head p,
.setup-step small,
.stat-foot,
.message-time {
  font-size: 0.8125rem;
}
.modal-footer {
  flex-wrap: wrap;
}
.detail-bar strong {
  overflow-wrap: anywhere;
}
.hero-art .art-bubble {
  font-size: 0.75rem;
}
.hero-art {
  height: 195px;
}
.art-card.floating {
  bottom: -10px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}
