/* Unified glass interface. Solid content surfaces, translucent navigation. */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/painel/regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/painel/bold.ttf') format('truetype');
}
:root {
  --success: #188b68;
  --warning: #a36b13;
  --danger: #c34d55;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --success: #5dccab;
  --warning: #edbc61;
  --danger: #ff9097;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  font:
    var(--body-font, 14px)/1.5 'Google Sans',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button {
  font: inherit;
}
input {
  font: inherit;
}
select {
  font: inherit;
}
button {
  touch-action: manipulation;
}
a {
  touch-action: manipulation;
}
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1 {
  margin: 0;
}
h2 {
  margin: 0;
}
h3 {
  margin: 0;
}
p {
  margin: 0;
}
h1 {
  line-height: 1.3;
}
h3 {
  font-size: var(--font-14, 14px);
}
small {
  font-size: var(--font-12, 12px);
}
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 20;
  background: var(--surface);
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
input {
  color: var(--text);
  padding: 10px 13px;
}
select {
  color: var(--text);
  padding: 10px 13px;
}
input {
  min-width: 0;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
::selection {
  background: var(--accent-soft);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.2s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 14px 30px;
  letter-spacing: -1px;
}
.brand strong > span {
  font-weight: 400;
  color: var(--muted);
}
.brand-mark {
  color: white;
  display: grid;
  place-items: center;
  font-size: var(--font-23, 23px);
  font-weight: 900;
}
.operation {
  padding: 15px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-12, 12px);
}
.operation-icon {
  padding: 7px;
  font-size: var(--font-18, 18px);
}
.operation small {
  display: block;
  margin-top: 2px;
  font-size: var(--font-11, 11px);
}
.nav-label {
  font-size: var(--font-10, 10px);
  letter-spacing: 1.7px;
  font-weight: 650;
  margin: 27px 14px 12px;
}
#nav {
  display: grid;
  gap: 5px;
}
#nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: var(--font-13, 13px);
}
.nav-icon {
  font-size: var(--font-18, 18px);
  width: 22px;
  text-align: center;
  opacity: 0.9;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: var(--font-11, 11px);
}
.sidebar-bottom small {
  display: block;
  font-size: var(--font-10, 10px);
  margin-top: 8px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7da391;
  margin-right: 5px;
}
.quiet {
  padding: 15px 0 0;
  font-size: var(--font-11, 11px);
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  font-size: var(--font-12, 12px);
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-launch {
  font-size: var(--font-18, 18px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-launch span {
  font-size: var(--font-12, 12px);
}
kbd {
  font-family: inherit;
  font-size: var(--font-10, 10px);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}
.icon-button {
  display: grid;
  place-items: center;
  font-size: var(--font-20, 20px);
}
.icon-button:hover {
  background: var(--surface-alt);
}
.avatar {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--font-11, 11px);
  font-weight: 700;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
#menu {
  display: none;
}
main {
  max-width: 1720px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  margin-bottom: 7px;
}
#subtitle {
  font-size: var(--font-12, 12px);
  color: var(--muted);
  margin-top: 7px;
}
.page-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.page-tools select {
  font-size: var(--font-11, 11px);
  padding: 9px;
}
.updated {
  font-size: var(--font-10, 10px);
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.dashboard-grid .full {
  grid-column: 1/-1;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: var(--font-10, 10px);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 30px;
}
.collapsed .sidebar {
  padding-inline: 10px;
}
.collapsed .brand {
  margin: 0 10px 30px;
}
.collapsed .brand strong {
  display: none;
}
.collapsed .operation {
  display: none;
}
.collapsed .nav-label {
  display: none;
}
.collapsed #nav .nav-text {
  display: none;
}
.collapsed .sidebar-bottom p {
  display: none;
}
.collapsed .sidebar-bottom small {
  display: none;
}
.collapsed #nav {
  margin-top: 10px;
}
.collapsed #nav a {
  padding: 12px;
  justify-content: center;
}
.collapsed .sidebar-bottom {
  padding: 0 0 20px;
}
.collapsed #collapse {
  font-size: 0;
}
@media (max-width: 1100px) {
  main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-tools {
    justify-content: flex-start;
  }
  .search-launch span {
    display: none;
  }
  kbd {
    display: none;
  }
}
@media (max-width: 760px) {
  #menu {
    display: grid;
  }
  .topbar {
    height: 64px;
  }
  .top-actions {
    gap: 6px;
  }
  .breadcrumb {
    flex: 1;
  }
  .breadcrumb span {
    margin: 0 6px;
  }
  .topbar .search-launch {
    display: none;
  }
  .updated {
    width: 100%;
  }
  .page-tools {
    gap: 8px;
  }
  .page-footer {
    flex-direction: column;
    gap: 4px;
  }
  .sidebar-bottom #collapse {
    display: none;
  }
  dialog {
    max-width: calc(100% - 24px);
  }
  .detail-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.conversation-select {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
#details.conversation-dialog {
  width: 1040px;
  max-width: calc(100vw - 24px);
}
.conversation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
}
.chat-history {
  margin-top: 16px;
  padding: 16px;
  max-height: 62vh;
  overflow-y: auto;
  background: var(--surface-alt);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  padding: 12px 16px;
  border: 1px solid var(--border);
  max-width: 90%;
  overflow-wrap: anywhere;
  font-size: var(--font-13, 13px);
}
.chat-bubble.incoming {
  align-self: flex-start;
  background: var(--surface);
}
.chat-bubble.outgoing {
  align-self: flex-end;
  background: var(--accent-soft);
}
.chat-bubble > strong {
  font-size: var(--font-11, 11px);
  color: var(--muted);
}
.chat-bubble p {
  white-space: pre-wrap;
  margin: 7px 0;
}
.chat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chat-meta small {
  color: var(--muted);
  font-size: var(--font-10, 10px);
}
.conversation-context {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.conversation-context h3 {
  margin-top: 10px;
}
.conversation-context > small {
  color: var(--muted);
}
.conversation-order {
  padding: 14px;
}
.conversation-order p {
  font-size: var(--font-12, 12px);
  margin: 8px 0;
}
.conversation-order small {
  display: block;
  margin-top: 8px;
}
.diagnosis-panel {
  margin-top: 24px;
}
.diagnosis-item {
  padding: 16px;
  margin-top: 12px;
  border-left: 4px solid var(--accent);
}
.diagnosis-item.critical {
  border-left-color: var(--danger);
}
.diagnosis-item.warning {
  border-left-color: var(--warning);
}
.diagnosis-item.success {
  border-left-color: var(--success);
}
.diagnosis-item p {
  font-size: var(--font-12, 12px);
  color: var(--muted);
  margin: 8px 0;
}
.diagnosis-item code {
  font-size: var(--font-11, 11px);
  overflow-wrap: anywhere;
}
.operation-details h3 {
  margin: 24px 0 12px;
}
.operation-details .table-wrap {
  border: 1px solid var(--border);
}
.health-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.queue-stats {
  display: flex;
}
.queue-stats strong {
  display: block;
}
.queue-stats small {
  color: var(--muted);
}
@media (max-width: 700px) {
  .conversation-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-history {
    max-height: 55vh;
    padding: 10px;
  }
  .chat-bubble {
    max-width: 96%;
  }
  .conversation-context {
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
}
.metric-top {
  display: flex;
  align-items: center;
}
.metric-icon {
  font-size: var(--font-15, 15px);
}
.metric-value {
  margin-top: 11px;
  line-height: 1.3;
}
.metric-foot {
  font-size: var(--font-10, 10px);
  margin-top: 9px;
}
.metric-foot b {
  font-weight: 550;
  color: var(--success);
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card-head p {
  font-size: var(--font-11, 11px);
  color: var(--muted);
  margin-top: 3px;
}
.link {
  color: var(--accent);
  font-size: var(--font-11, 11px);
  font-weight: 650;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-10, 10px);
  font-weight: 650;
  background: var(--surface-alt);
  color: var(--muted);
  white-space: nowrap;
}
.badge.good {
  background: #15866014;
  color: var(--success);
}
.badge.warn {
  background: #c58a1716;
  color: var(--warning);
}
.badge.bad {
  background: #c24c5814;
  color: var(--danger);
}
.badge.info {
  background: var(--accent-soft);
  color: var(--accent);
}
.banner {
  padding: 13px 17px;
  margin-bottom: 20px;
  font-size: var(--font-12, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chart {
  padding: 0 22px 18px;
  min-height: 220px;
}
.chart svg {
  display: block;
  width: 100%;
  height: 185px;
  overflow: visible;
}
.chart-grid {
  stroke: var(--border);
  stroke-width: 1;
}
.chart-fill {
  fill: var(--accent);
  opacity: 0.09;
}
.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart text {
  fill: var(--muted);
  font-size: var(--font-10, 10px);
}
.chart-legend {
  font-size: var(--font-10, 10px);
  color: var(--muted);
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.chart-key {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}
.funnel {
  padding: 0 22px 23px;
}
.funnel-row {
  margin-bottom: 18px;
}
.funnel-row > div {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-11, 11px);
  margin-bottom: 8px;
}
.funnel-track {
  height: 7px;
  background: var(--surface-alt);
  border-radius: 4px;
  overflow: hidden;
}
.funnel-track span {
  height: 100%;
  display: block;
  background: var(--accent);
  border-radius: 4px;
}
.funnel-note {
  font-size: var(--font-10, 10px);
  color: var(--muted);
  line-height: 1.6;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: var(--font-10, 10px);
  color: var(--muted);
  background: var(--surface-alt);
  font-weight: 550;
  padding: 12px 22px;
  border-block: 1px solid var(--border);
}
td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-11, 11px);
}
tr:last-child td {
  border: 0;
}
td small {
  display: block;
  font-size: var(--font-10, 10px);
  color: var(--muted);
  margin-top: 2px;
}
.customer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.customer .avatar {
  width: 28px;
  height: 28px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: var(--font-10, 10px);
}
.table-button {
  color: var(--accent);
  font-size: var(--font-11, 11px);
  font-weight: 650;
  min-height: 32px;
  text-align: left;
}
.health-list {
  padding: 0 22px 14px;
}
.alert-list {
  padding: 0 22px 14px;
}
.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.health-row:last-child {
  border: 0;
}
.health-row strong {
  font-size: var(--font-12, 12px);
  font-weight: 550;
}
.health-row small {
  display: block;
  font-size: var(--font-10, 10px);
  color: var(--muted);
  margin-top: 2px;
}
.alert-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-12, 12px);
}
.alert-item:last-child {
  border: 0;
}
.alert-item p {
  color: var(--muted);
  font-size: var(--font-10, 10px);
  margin-top: 5px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.toolbar input {
  width: min(320px, 100%);
  font-size: var(--font-12, 12px);
}
.button {
  background: var(--accent);
  color: white;
  font-size: var(--font-11, 11px);
  font-weight: 600;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  font-size: var(--font-11, 11px);
  color: var(--muted);
}
.empty {
  padding: 60px 22px;
  text-align: center;
}
.empty-icon {
  font-size: var(--font-28, 28px);
  display: block;
  color: var(--accent);
  margin-bottom: 15px;
}
.empty h2 {
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  font-size: var(--font-12, 12px);
  max-width: 480px;
  margin: 0 auto 18px;
}
.skeleton {
  background: none;
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  height: 16px;
  border-radius: 6px;
  margin: 10px 0;
}
.skeleton.large {
  height: 37px;
  width: 70%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: var(--surface);
  color: var(--text);
  width: 680px;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 30px 80px #0003;
}
dialog::backdrop {
  background: #17132366;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-grid div {
  padding: 14px;
  background: var(--surface-alt);
  border-radius: 9px;
}
.detail-grid dt {
  font-size: var(--font-10, 10px);
  color: var(--muted);
}
.detail-grid dd {
  font-size: var(--font-13, 13px);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.timeline {
  margin-top: 26px;
  border-left: 2px solid var(--border);
  padding-left: 20px;
}
.timeline > div {
  margin: 20px 0;
  position: relative;
  font-size: var(--font-12, 12px);
}
.timeline > div:before {
  content: '';
  width: 8px;
  height: 8px;
  position: absolute;
  left: -25px;
  top: 5px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.timeline small {
  display: block;
  color: var(--muted);
  font-size: var(--font-10, 10px);
}
.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.flow-box {
  font-size: var(--font-12, 12px);
}
.flow-box strong {
  display: block;
  color: var(--accent);
}
#command {
  width: 500px;
}
#command input {
  width: 100%;
  margin-bottom: 15px;
}
#command-results a {
  padding: 12px;
}
#command-results a:hover {
  background: var(--accent-soft);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.settings-grid h2 {
  margin-bottom: 12px;
}
.settings-grid p {
  color: var(--muted);
  margin-bottom: 10px;
}
.status-note {
  padding: 14px 22px;
  color: var(--muted);
  font-size: var(--font-11, 11px);
  border-top: 1px solid var(--border);
}
.ui-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}
.nav-icon .ui-icon {
  width: 22px;
  height: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.profile-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.button .ui-icon {
  width: 19px;
  height: 19px;
}
.profile-option .ui-icon {
  width: 19px;
  height: 19px;
}
.empty-icon .ui-icon {
  width: 38px;
  height: 38px;
}
.profile-wrap {
  position: relative;
}
.profile-trigger {
  border: 2px solid var(--surface);
  outline: 1px solid var(--border);
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-menu {
  position: absolute;
  right: 0;
  top: 54px;
  z-index: 40;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  color: var(--text);
}
.profile-menu[hidden] {
  display: none;
}
.profile-option[hidden] {
  display: none;
}
.profile-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
}
.profile-heading .avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.profile-heading strong {
  display: block;
  overflow-wrap: anywhere;
}
.profile-heading small {
  display: block;
  overflow-wrap: anywhere;
}
.profile-heading small {
  font-size: var(--font-12, 12px);
  color: var(--muted);
  margin-top: 4px;
}
.profile-session {
  font-size: var(--font-11, 11px);
  color: var(--muted);
  padding: 6px 12px 12px;
  line-height: 1.5;
}
.profile-hint {
  font-size: var(--font-11, 11px);
  color: var(--muted);
  padding: 6px 12px 12px;
  line-height: 1.5;
}
.profile-option {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  justify-content: flex-start;
  font-size: var(--font-13, 13px);
  min-height: 44px;
}
.profile-option:hover {
  background: var(--surface-alt);
}
.profile-logout {
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  color: var(--danger);
  margin-top: 8px;
}
.mobile-nav {
  display: none;
}
:root {
  --text: #252331;
  --muted: #666374;
  --accent: #6550a4;
  --accent-soft: #eee7fa;
}
:root[data-theme='dark'] {
  --text: #ece5f2;
  --muted: #c3bacd;
  --accent: #d0bcff;
  --accent-soft: #3e3155;
}
.sidebar {
  color: var(--text);
}
.operation {
  border-radius: 20px;
  color: var(--text);
}
.operation small {
  color: var(--muted);
}
.nav-label {
  color: var(--muted);
}
.sidebar-bottom small {
  color: var(--muted);
}
.sidebar-bottom {
  border-color: var(--border);
}
#nav a {
  margin: 3px 0;
  font-weight: 400;
}
#nav a:hover {
  background: var(--surface-alt);
}
#nav a.active {
  font-weight: 700;
}
.topbar {
  border-bottom: 0;
  padding: 0 32px;
}
main {
  padding: 22px 32px;
}
h1 {
  font-size: var(--font-36, 36px);
}
.eyebrow {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--font-10, 10px);
  letter-spacing: 1.2px;
}
.page-heading {
  align-items: center;
  margin-bottom: 30px;
}
.search-launch {
  background: var(--surface-alt);
  padding: 12px 18px;
  border-radius: 28px;
  min-width: 260px;
  color: var(--muted);
}
.search-launch kbd {
  margin-left: auto;
  border: 0;
}
.icon-button {
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}
.button {
  border-radius: 24px;
  min-height: 42px;
  padding: 10px 18px;
}
.button.secondary {
  color: var(--accent);
}
input {
  border-radius: 24px;
  min-height: 42px;
  background: var(--surface-alt);
  border: 1px solid transparent;
}
select {
  border-radius: 24px;
  min-height: 42px;
}
.card {
  overflow: hidden;
}
.metric-icon {
  color: var(--accent);
  padding: 8px;
  display: grid;
  place-items: center;
}
.card-head {
  padding: 24px;
  align-items: center;
}
h2 {
  font-size: var(--font-18, 18px);
}
thead th {
  background: var(--surface-alt);
  position: sticky;
  top: 0;
  font-size: var(--font-11, 11px);
  color: var(--muted);
  font-weight: 700;
}
td {
  padding-top: 18px;
  padding-bottom: 18px;
}
tbody tr:hover {
  background: var(--surface-alt);
}
.badge {
  border-radius: 20px;
  padding: 5px 10px;
}
.toolbar {
  padding: 0 24px 20px;
}
.banner {
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--text);
  border: 0;
}
.conversation-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.conversation-list {
  padding: 8px;
  max-height: 65vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.conversation-list-item {
  padding: 16px;
  flex: 0 0 auto;
  height: auto;
  width: 100%;
  border: 0;
  text-align: left;
  color: var(--text);
  min-height: 108px;
}
.conversation-list-item.selected {
  background: var(--accent-soft);
}
.conversation-list-item:hover {
  background: var(--surface-alt);
}
.conversation-list-item.selected:hover {
  background: var(--accent-soft);
}
.conversation-preview {
  display: block;
  margin: 10px 0 0 44px;
  color: var(--muted);
  font-size: var(--font-11, 11px);
}
.conversation-stage {
  display: block;
  margin: 10px 0 0 44px;
  font-size: var(--font-11, 11px);
}
.conversation-stage {
  margin-top: 4px;
  color: var(--accent);
}
.conversation-list-card .toolbar {
  padding: 0 16px 12px;
  flex-wrap: wrap;
}
.conversation-list-card .toolbar input {
  width: 100%;
}
.conversation-list-card .pagination {
  padding: 14px;
  flex-wrap: wrap;
  font-size: var(--font-11, 11px);
  gap: 12px;
}
.conversation-list-card .pagination .button {
  padding: 8px 12px;
  min-height: 38px;
}
.conversation-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  min-height: 560px;
  padding: 24px;
  min-width: 0;
}
.conversation-pane > .empty {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.conversation-pane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.conversation-pane .conversation-layout {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
}
.conversation-pane .chat-history {
  max-height: 58vh;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: 20px;
}
.conversation-pane .chat-bubble {
  border: 0;
  border-radius: 20px;
  padding: 14px 16px;
  font-size: var(--font-13, 13px);
}
.conversation-pane .chat-bubble.incoming {
  border-bottom-left-radius: 6px;
}
.conversation-pane .chat-bubble.outgoing {
  border-bottom-right-radius: 6px;
}
.conversation-pane .status-note {
  font-size: var(--font-10, 10px);
  margin-top: 14px;
}
.conversation-pane .conversation-context h3 {
  font-weight: 400;
}
dialog.detail-drawer {
  position: fixed;
  inset: 12px 12px 12px auto;
  margin: 0;
  width: 640px;
  max-width: calc(100vw - 24px);
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 28px;
}
dialog.detail-drawer .dialog-heading {
  position: sticky;
  top: -28px;
  z-index: 2;
  background: var(--surface);
  padding: 16px 0;
}
dialog.detail-drawer .detail-grid {
  gap: 12px;
}
dialog.detail-drawer .detail-grid > div {
  border-radius: 18px;
  background: var(--surface-alt);
}
dialog.detail-drawer .diagnosis-item {
  border-radius: 18px;
  background: var(--surface-alt);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}
.collapsed #collapse .ui-icon {
  display: inline-block;
}
.collapsed #collapse span {
  display: none;
}
@media (max-width: 1400px) {
  .conversation-pane .conversation-layout {
    grid-template-columns: 1fr;
  }
  .conversation-pane .conversation-context {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .conversation-pane .conversation-context > h3 {
    grid-column: 1/-1;
  }
}
@media (max-width: 1100px) {
  .search-launch {
    min-width: 0;
    padding: 10px;
  }
  .conversation-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .conversation-pane {
    padding: 18px;
  }
}
@media (max-width: 999px) {
  .conversation-workspace {
    grid-template-columns: 1fr;
  }
  .conversation-pane {
    display: none;
  }
  .conversation-list {
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #details.conversation-dialog {
    inset: 0;
    margin: 0;
    max-width: 100vw;
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    padding: 24px;
  }
  .conversation-dialog .chat-history {
    max-height: 55dvh;
  }
  .conversation-dialog .conversation-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  main {
    padding: 18px 16px 100px;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
  }
  .search-launch {
    background: none;
    padding: 0;
  }
  .search-launch span {
    display: none;
  }
  .search-launch kbd {
    display: none;
  }
  .profile-menu {
    position: fixed;
    right: 12px;
    top: 70px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 15;
    border-top: 1px solid var(--border);
    justify-content: space-around;
  }
  .mobile-nav a {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
  }
  .mobile-nav button {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
  }
  .mobile-nav a[aria-current='page'] {
    font-weight: 700;
  }
  .mobile-nav .ui-icon {
    width: 22px;
    height: 22px;
  }
  .conversation-list {
    display: flex;
  }
  dialog.detail-drawer {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button {
    transition:
      background 0.16s ease,
      color 0.16s ease;
  }
  .icon-button {
    transition:
      background 0.16s ease,
      color 0.16s ease;
  }
  .profile-option {
    transition:
      background 0.16s ease,
      color 0.16s ease;
  }
  #nav a {
    transition:
      background 0.16s ease,
      color 0.16s ease;
  }
  .conversation-list-item {
    transition:
      background 0.16s ease,
      color 0.16s ease;
  }
}
.brand strong {
  color: var(--text);
}
.brand strong span {
  color: var(--muted);
}
.operation-icon {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
}
.quiet {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link .ui-icon {
  width: 16px;
  height: 16px;
}
.conversation-workspace .customer {
  min-width: 0;
}
.conversation-workspace .customer > div {
  min-width: 0;
  flex: 1;
}
.conversation-workspace .customer strong {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}
.conversation-workspace .customer small {
  display: block;
  font-size: var(--font-11, 11px);
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .metric:nth-child(2) .metric-value {
    font-size: var(--font-22, 22px);
  }
}
@media (max-width: 360px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric-value {
    font-size: var(--font-30, 30px);
  }
  .metric:nth-child(2) .metric-value {
    font-size: var(--font-30, 30px);
  }
}
:root[data-theme='dark'] .badge.good {
  color: #90d5b6;
  background: #243d35;
}
:root[data-theme='dark'] .badge.warn {
  color: #ffd593;
  background: #3f3321;
}
:root[data-theme='dark'] .badge.bad {
  color: #ffb4ba;
  background: #4a282c;
}
.sidebar {
  overflow: hidden;
}
#nav {
  min-height: 0;
  flex-grow: 1;
  align-content: start;
  overflow-y: auto;
  scrollbar-width: thin;
  flex-shrink: 1;
  padding-bottom: 8px;
}
.brand {
  flex-shrink: 0;
}
.operation {
  flex-shrink: 0;
}
.nav-label {
  flex-shrink: 0;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.brand {
  color: var(--text);
}
#command {
  padding: 28px;
}
#command-results a {
  border-radius: 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-grid .card {
  padding: 26px;
  border-radius: 24px;
}
.settings-grid p {
  font-size: var(--font-14, 14px);
  line-height: 1.7;
}
.flow-box {
  padding: 20px 24px;
}
.flow-box strong {
  font-size: var(--font-16, 16px);
  margin-bottom: 8px;
}
.flow {
  gap: 16px;
  padding: 24px;
}
.queue-stats {
  padding: 20px 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.queue-stats > div {
  min-width: 120px;
  flex: 1;
}
.queue-stats strong {
  font-size: var(--font-30, 30px);
  font-weight: 400;
}
.queue-stats small {
  font-size: var(--font-12, 12px);
  line-height: 1.6;
}
.status-note {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.operation-details .table-wrap {
  border-radius: 20px;
}
#command-results a .ui-icon {
  color: var(--accent);
}
@media (max-width: 760px) {
  h2 {
    line-height: 1.35;
  }
  input {
    min-height: 46px;
  }
  select {
    min-height: 46px;
  }
  .toolbar input {
    font-size: var(--font-16, 16px);
  }
  .button {
    min-height: 44px;
  }
  .page-tools select {
    min-height: 44px;
  }
  .breadcrumb {
    font-size: var(--font-12, 12px);
  }
  .card-head p {
    line-height: 1.6;
  }
  .updated {
    line-height: 1.6;
  }
  .metric-foot {
    line-height: 1.6;
  }
  .metric-top {
    font-size: var(--font-13, 13px);
  }
  .link {
    font-size: var(--font-13, 13px);
  }
  .funnel-row > div {
    font-size: var(--font-13, 13px);
  }
  .table-button {
    font-size: var(--font-14, 14px);
  }
  thead th {
    font-size: var(--font-12, 12px);
  }
  td small {
    font-size: var(--font-12, 12px);
  }
  .customer .avatar {
    font-size: var(--font-12, 12px);
  }
  .badge {
    font-size: var(--font-12, 12px);
    padding: 5px 10px;
  }
  .health-row strong {
    font-size: var(--font-15, 15px);
  }
  .alert-item {
    font-size: var(--font-15, 15px);
  }
  .empty p {
    font-size: var(--font-15, 15px);
  }
  .status-note {
    font-size: var(--font-13, 13px);
    line-height: 1.7;
  }
  .pagination {
    font-size: var(--font-13, 13px);
    line-height: 1.7;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
  .pagination > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .page-footer {
    font-size: var(--font-12, 12px);
    line-height: 1.7;
  }
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-heading small {
    font-size: var(--font-12, 12px);
  }
  .profile-hint {
    font-size: var(--font-12, 12px);
  }
  .profile-session {
    font-size: var(--font-12, 12px);
  }
  .profile-heading strong {
    font-size: var(--font-16, 16px);
  }
  .sidebar-bottom {
    padding-top: 16px;
  }
  .chat-bubble {
    line-height: 1.65;
  }
  .chat-bubble > strong {
    font-size: var(--font-12, 12px);
  }
  .chat-meta small {
    font-size: var(--font-12, 12px);
  }
  .conversation-workspace .customer small {
    font-size: var(--font-12, 12px);
  }
  .conversation-list-card .pagination {
    font-size: var(--font-13, 13px);
  }
  .conversation-list-item {
    padding: 18px;
    min-height: 116px;
  }
  .conversation-order p {
    font-size: var(--font-14, 14px);
  }
  .conversation-context > small {
    font-size: var(--font-14, 14px);
  }
  .conversation-order small {
    font-size: var(--font-14, 14px);
  }
  .diagnosis-item p {
    font-size: var(--font-13, 13px);
  }
  .diagnosis-item code {
    font-size: var(--font-13, 13px);
  }
  .detail-grid dt {
    font-size: var(--font-12, 12px);
  }
  .timeline small {
    font-size: var(--font-12, 12px);
  }
  .timeline > div {
    font-size: var(--font-15, 15px);
  }
  .flow {
    padding: 20px;
    gap: 12px;
  }
  .flow-box {
    width: 100%;
  }
  .flow > .ui-icon {
    transform: rotate(90deg);
    margin: auto;
  }
  .queue-stats {
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .queue-stats > div {
    min-width: 0;
  }
  .queue-stats small {
    font-size: var(--font-13, 13px);
  }
  .banner {
    flex-wrap: wrap;
    font-size: var(--font-14, 14px);
  }
  .card-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .breadcrumb {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .collapsed .nav-label {
    display: block;
  }
  .collapsed #nav a {
    padding: 10px 14px;
  }
  .collapsed .sidebar-bottom {
    padding: 16px 12px 0;
  }
}
.notification-layout {
  display: grid;
  gap: 20px;
}
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
}
.notification-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
}
.notification-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-14, 14px);
}
.notification-toggle input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}
.notification-device {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
}
.notification-device > div {
  flex: 1;
  min-width: 160px;
}
.notification-device p {
  color: var(--muted);
  font-size: var(--font-13, 13px);
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
}
.notification-item > div {
  flex: 1;
  min-width: 0;
}
.notification-item h3 {
  font-size: var(--font-16, 16px);
  margin: 0 0 6px;
}
.notification-item p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.notification-item small {
  color: var(--muted);
}
@media (max-width: 760px) {
  .notification-item {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
  }
  .notification-item > div {
    min-width: 190px;
  }
  .notification-item .button {
    margin-left: 36px;
  }
  .notification-actions {
    padding: 16px 20px;
  }
  .notification-choices {
    padding: 16px 20px;
  }
  .notification-actions .button {
    width: 100%;
  }
  .notification-device {
    padding: 20px;
  }
}
.menu-backdrop[hidden] {
  display: none;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  border: 0;
  border-radius: 0;
  background: #17132366;
}
#close-menu {
  display: none;
}
.sidebar {
  border-right: 1px solid #ffffffb3;
}
.brand-mark {
  background: none;
  box-shadow: 0 5px 14px #6541bd26;
  border: 1px solid #ffffff59;
}
.operation {
  border: 1px solid #fff;
  box-shadow: 0 5px 18px #42386508;
}
#nav .nav-label {
  margin: 22px 12px 8px;
  font-size: var(--font-10, 10px);
  letter-spacing: 1.4px;
  font-weight: 700;
}
#nav a {
  min-height: 44px;
  border-radius: 18px;
  color: var(--text);
}
#nav a.active {
  background: none;
  color: #4e2c9e;
  box-shadow: inset 0 1px 0 #ffffff8c;
}
.sidebar-bottom {
  border-top: 0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 5px 18px #42386508;
}
.topbar {
  background: transparent;
}
h1 {
  font-weight: 700;
  letter-spacing: -1.2px;
}
.eyebrow {
  display: none;
}
.page-tools select {
  background: #ffffffb8;
  border: 1px solid #fff;
  box-shadow: 0 3px 12px #4238650c;
}
.page-tools .button {
  background: #ffffffb8;
  border: 1px solid #fff;
  box-shadow: 0 3px 12px #4238650c;
}
.overview-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.overview-section-heading h2 {
  margin: 0;
  font-size: var(--font-22, 22px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.overview-section-heading .link {
  font-size: var(--font-13, 13px);
}
.metrics {
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: none;
  border: 1px solid #fff;
  box-shadow: 0 8px 24px #45366309;
  padding: 20px;
  border-radius: 24px;
}
.metric:nth-child(2) {
  background: none;
}
.metric:nth-child(4) {
  background: none;
}
.metric-top {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  font-size: var(--font-13, 13px);
  color: var(--text);
}
.metric-icon {
  background: #e7dcfa;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 13px;
  box-shadow: 0 3px 10px #6550a410;
}
.metric:nth-child(4) .metric-icon {
  background: #ffd8df;
  color: #b9324d;
}
.metric-value {
  font-weight: 700;
  font-size: var(--font-34, 34px);
  letter-spacing: -1px;
  margin: 14px 0 4px;
}
.metric-foot {
  color: var(--muted);
  line-height: 1.4;
}
.dashboard-grid > .card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px #45366306;
}
.overview-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: none;
  color: #542b17;
  box-shadow: 0 8px 24px #a45f2510;
}
.overview-alert-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffe0be;
  color: #ad4907;
}
.overview-alert-icon .ui-icon {
  width: 28px;
  height: 28px;
}
.overview-alert-copy strong {
  font-size: var(--font-17, 17px);
  line-height: 1.3;
}
.overview-alert-copy p {
  margin: 5px 0 12px;
  font-size: var(--font-13, 13px);
  line-height: 1.4;
}
.overview-alert-copy .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #a94208;
  color: #fff;
  min-height: 44px;
  font-size: var(--font-13, 13px);
  padding: 10px 16px;
  text-decoration: none;
}
:root[data-theme='dark'] .operation {
  border-color: #ffffff14;
}
:root[data-theme='dark'] .sidebar-bottom {
  border-color: #ffffff14;
}
:root[data-theme='dark'] #nav a.active {
  background: none;
  color: #e0ccff;
}
:root[data-theme='dark'] {
  background: none, #17151c;
}
:root[data-theme='dark'] .metric {
  background: none;
  border-color: #ffffff12;
}
:root[data-theme='dark'] .metric:nth-child(4) {
  background: none;
}
:root[data-theme='dark'] .metric-icon {
  background: #473657;
}
:root[data-theme='dark'] .metric:nth-child(4) .metric-icon {
  background: #643242;
  color: #ffb4c0;
}
:root[data-theme='dark'] .page-tools select {
  background: #2b2537;
  border-color: #ffffff14;
}
:root[data-theme='dark'] .page-tools .button {
  background: #2b2537;
  border-color: #ffffff14;
}
:root[data-theme='dark'] .overview-alert {
  background: none;
  color: #ffe2c4;
  border-color: #ffffff12;
}
:root[data-theme='dark'] .overview-alert-icon {
  background: #624025;
  color: #ffc48c;
}
@media (max-width: 760px) {
  .menu-open {
    overflow: hidden;
  }
  .sidebar {
    z-index: 40;
  }
  .collapsed .sidebar {
    z-index: 40;
  }
  .sidebar.open {
    box-shadow: 12px 0 40px #17132326;
  }
  #close-menu {
    display: grid;
    position: absolute;
  }
  .sidebar .brand {
    padding-right: 44px;
  }
  .collapsed #nav .nav-text {
    display: revert;
  }
  .collapsed #nav .nav-label {
    display: revert;
  }
  .collapsed .brand strong {
    display: revert;
  }
  .collapsed .operation {
    display: revert;
  }
  .collapsed .sidebar-bottom p {
    display: revert;
  }
  .collapsed .sidebar-bottom small {
    display: revert;
  }
  .collapsed #nav a {
    justify-content: flex-start;
  }
  .mobile-nav {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    border: 1px solid #ffffffbd;
    padding: 7px;
    box-shadow: 0 8px 30px #42386520;
    gap: 2px;
  }
  .mobile-nav a {
    min-height: 58px;
    border-radius: 23px;
    padding: 7px 3px;
    color: var(--muted);
    gap: 4px;
  }
  .mobile-nav button {
    min-height: 58px;
    border-radius: 23px;
    padding: 7px 3px;
    color: var(--muted);
    gap: 4px;
  }
  .mobile-nav a[aria-current='page'] {
    background: none;
    color: #4e2c9e;
  }
  main {
    padding-bottom: calc(115px + env(safe-area-inset-bottom));
  }
  main {
    padding-top: 14px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 16px 13px;
    border-radius: 22px;
  }
  .metric-top {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    min-height: 66px;
  }
  .metric-top .metric-icon {
    order: -1;
  }
  .metric-top > span:first-child {
    flex: 1;
    min-width: 65px;
    line-height: 1.3;
  }
  .metric-value {
    font-size: clamp(24px, 7vw, 32px);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .overview-alert {
    gap: 12px;
    padding: 17px;
  }
  .overview-alert-icon {
    width: 40px;
    height: 40px;
  }
  .overview-alert-copy {
    min-width: 0;
  }
  :root[data-theme='dark'] .mobile-nav a[aria-current='page'] {
    background: #49385f;
    color: #e0ccff;
  }
}
:root {
  --bg: #f7f7fb;
  --surface: #fff;
  --surface-alt: #f1edf8;
  --border: #e8e4f0;
  --radius: 24px;
  --shadow: 0 7px 24px #45366309;
  --glass: #faf8ff99;
  --glass-border: #ffffffb3;
}
:root[data-theme='dark'] {
  --bg: #17151c;
  --surface: #211e28;
  --surface-alt: #2e273a;
  --border: #40364c;
  --glass: #292331a6;
  --glass-border: #ffffff1c;
}
body {
  background: var(--bg);
}
:root[data-theme='dark'] body {
  background: var(--bg);
}
.sidebar {
  top: 12px;
  bottom: 12px;
  left: 12px;
  height: auto;
  width: 250px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass);
  box-shadow: 0 8px 28px #23173012;
  padding: 24px 16px;
}
.shell {
  margin-left: 274px;
}
.collapsed .sidebar {
  width: 80px;
}
.collapsed .shell {
  margin-left: 104px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  transform: none;
  flex-shrink: 0;
}
.brand {
  font-size: var(--font-24, 24px);
  margin-inline: 6px;
}
.operation {
  background: #ffffff70;
  border-color: var(--glass-border);
}
.sidebar-bottom {
  background: #ffffff70;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.card-head h2 {
  font-weight: 700;
  letter-spacing: -0.3px;
}
h2 {
  font-weight: 700;
  letter-spacing: -0.3px;
}
.button.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px #45366308;
}
select {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px #45366308;
}
.profile-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 12px 40px #23173020;
}
#command {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 12px 40px #23173020;
}
dialog.detail-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 12px 40px #23173020;
}
.chat-bubble {
  border-radius: 20px;
  box-shadow: 0 3px 10px #45366306;
}
.conversation-list-item {
  border-radius: 18px;
}
.flow-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.conversation-order {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.diagnosis-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.health-card {
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.notification-item.unread {
  background: none;
}
.notification-item h3 {
  font-weight: 700;
}
:root[data-theme='dark'] .sidebar {
  background: var(--glass);
  border-color: var(--glass-border);
}
:root[data-theme='dark'] .operation {
  background: #ffffff08;
}
:root[data-theme='dark'] .sidebar-bottom {
  background: #ffffff08;
}
@supports (backdrop-filter: blur(20px)) {
  .sidebar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .mobile-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}
@media (max-width: 760px) {
  body {
    font-size: var(--font-17, 17px);
    line-height: 1.55;
  }
  .sidebar {
    top: max(10px, env(safe-area-inset-top));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: min(330px, calc(100vw - 44px));
    padding-top: 24px;
    border-radius: 28px;
    background: var(--glass);
    transform: translateX(calc(-100% - 16px));
  }
  .collapsed .sidebar {
    top: max(10px, env(safe-area-inset-top));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: min(330px, calc(100vw - 44px));
    padding-top: 24px;
    border-radius: 28px;
    background: var(--glass);
    transform: translateX(calc(-100% - 16px));
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .shell {
    margin-left: 0;
  }
  .collapsed .shell {
    margin-left: 0;
  }
  #close-menu {
    top: 18px;
    right: 14px;
    background: #ffffff70;
  }
  .mobile-nav {
    background: var(--glass);
    border-color: var(--glass-border);
    border-radius: 30px;
  }
  :root[data-theme='dark'] .sidebar {
    background: var(--glass);
    border-color: var(--glass-border);
  }
  :root[data-theme='dark'] .mobile-nav {
    background: var(--glass);
    border-color: var(--glass-border);
  }
  #nav a {
    font-size: var(--font-16, 16px);
    min-height: 46px;
  }
  .sidebar-bottom small {
    font-size: var(--font-12, 12px);
  }
  h1 {
    font-size: var(--font-33, 33px);
  }
  h2 {
    font-size: var(--font-21, 21px);
  }
  h3 {
    font-size: var(--font-18, 18px);
  }
  #subtitle {
    font-size: var(--font-16, 16px);
    line-height: 1.5;
  }
  .card-head p {
    font-size: var(--font-13, 13px);
  }
  .button {
    font-size: var(--font-15, 15px);
  }
  .page-tools select {
    font-size: var(--font-15, 15px);
  }
  input {
    font-size: var(--font-16, 16px);
  }
  select {
    font-size: var(--font-16, 16px);
  }
  td {
    font-size: var(--font-16, 16px);
  }
  .chat-bubble {
    font-size: var(--font-16, 16px);
  }
  .detail-grid dd {
    font-size: var(--font-16, 16px);
  }
  .profile-option {
    font-size: var(--font-16, 16px);
  }
  .settings-grid p {
    font-size: var(--font-16, 16px);
  }
  .flow-box {
    font-size: var(--font-16, 16px);
  }
  .notification-item h3 {
    font-size: var(--font-18, 18px);
  }
  .notification-item p {
    font-size: var(--font-16, 16px);
  }
  .notification-toggle {
    font-size: var(--font-16, 16px);
  }
  .notification-item small {
    font-size: var(--font-14, 14px);
  }
  .notification-device p {
    font-size: var(--font-14, 14px);
  }
  .metric-top > span:first-child {
    font-size: var(--font-13, 13px);
  }
  .metric-foot {
    font-size: var(--font-13, 13px);
  }
  .conversation-preview {
    font-size: var(--font-13, 13px);
  }
  .conversation-stage {
    font-size: var(--font-13, 13px);
  }
  .health-row small {
    font-size: var(--font-13, 13px);
  }
  .alert-item p {
    font-size: var(--font-13, 13px);
  }
  .chart-legend {
    font-size: var(--font-13, 13px);
  }
  .funnel-note {
    font-size: var(--font-13, 13px);
  }
  .mobile-nav a {
    font-size: var(--font-12, 12px);
  }
  .mobile-nav button {
    font-size: var(--font-12, 12px);
  }
  .mobile-nav button span {
    font-size: var(--font-12, 12px);
  }
  .updated {
    font-size: var(--font-13, 13px);
  }
  .overview-alert-copy strong {
    font-size: var(--font-17, 17px);
  }
  .overview-alert-copy p {
    font-size: var(--font-14, 14px);
  }
  .overview-alert-copy .button {
    font-size: var(--font-14, 14px);
  }
  dialog.detail-drawer {
    border-radius: 26px 26px 0 0;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
  }
  .mobile-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
  }
}
:root {
  --glass: #faf8ff75;
  --glass-border: #ffffff99;
}
:root[data-theme='dark'] {
  --glass: #29233180;
}
.sidebar {
  border-radius: 36px;
}
.mobile-nav {
  border-radius: 40px;
}
.payment-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 1px 5px;
}
.payment-logo {
  width: 48px;
  height: 40px;
}
.flow-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 22px;
}
.flow-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  border-block: 1px solid var(--border);
}
.flow-canvas-viewport {
  height: 620px;
  overflow: auto;
  background-color: var(--surface-alt);
  background-image: none;
  background-size: 20px 20px;
}
.flow-canvas {
  position: relative;
  transform-origin: top left;
}
.flow-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.flow-connection {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.flow-node {
  position: absolute;
  width: 240px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: left;
  touch-action: none;
  cursor: grab;
  font: inherit;
}
.flow-node.selected {
  outline: 2px solid var(--accent);
}
.flow-node small,
.flow-node span {
  font-size: var(--font-13, 13px);
  color: var(--muted);
}
.flow-inspector {
  max-height: 620px;
  overflow: auto;
  padding: 18px;
  border-left: 1px solid var(--border);
}
.flow-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-block: 14px;
  font-size: var(--font-14, 14px);
}
.flow-field input,
.flow-field textarea,
.flow-field select {
  width: 100%;
  background: var(--surface-alt);
  color: var(--text);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}
.flow-field textarea {
  min-height: 90px;
  resize: vertical;
}
.flow-option {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-block: 12px;
}
.flow-simulation {
  padding: 18px;
  max-height: 480px;
  overflow: auto;
}
.flow-simulation:empty {
  display: none;
}
.flow-simulation .chat-bubble {
  margin-block: 12px;
  max-width: 400px;
}
.flow-simulation .button {
  margin: 4px;
}
@media (max-width: 760px) {
  .sidebar {
    border-radius: 36px;
  }
  .mobile-nav {
    border-radius: 40px;
  }
  .flow-editor-layout {
    grid-template-columns: 1fr;
  }
  .flow-canvas-viewport {
    height: 400px;
  }
  .flow-inspector {
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .flow-editor-toolbar {
    padding: 12px;
  }
}
/* Full-screen flow workspace, with a compact read-only overview. */
.flow-workspace {
  overflow: hidden;
}
.flow-tools {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.flow-topline,
.flow-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.flow-topline > strong {
  font-size: var(--font-20, 20px);
  margin-right: auto;
}
.flow-count {
  color: var(--muted);
  font-size: var(--font-13, 13px);
}
.flow-tools .flow-editor-toolbar {
  padding: 12px 0;
  margin: 0;
  gap: 8px;
}
.flow-navigation select {
  max-width: 240px;
  min-width: 150px;
}
.flow-status {
  white-space: pre-wrap;
  margin: 0;
  padding: 10px 18px;
  max-height: 140px;
  overflow: auto;
  font-size: var(--font-14, 14px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.flow-workspace .flow-editor-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0;
}
.flow-workspace .flow-canvas-viewport {
  height: 560px;
  border: 0;
  border-radius: 0;
  background-color: var(--surface-soft);
  background-image: none;
  background-size: 20px 20px;
}
.flow-workspace .flow-canvas {
  transform-origin: top left;
  position: relative;
}
.flow-workspace .flow-node {
  width: 290px;
  min-height: 150px;
  height: auto;
  padding: 14px 18px;
  cursor: default;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 3px 12px #0000000a;
}
.flow-node-heading {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  padding: 0;
  font-weight: 700;
  font-size: var(--font-17, 17px);
  touch-action: none;
  cursor: grab;
}
.flow-node-heading small {
  font-size: var(--font-12, 12px);
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.flow-node-preview {
  font-size: var(--font-13, 13px);
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.4;
}
.flow-port-row {
  position: relative;
  width: 100%;
  font-size: var(--font-12, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  color: var(--text);
}
.flow-port {
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 18px;
  font-size: var(--font-12, 12px);
  touch-action: none;
  cursor: crosshair;
  flex-shrink: 0;
}
.flow-port.entry {
  position: absolute;
  left: -13px;
  top: 23px;
}
.flow-port.output {
  margin-right: -31px;
}
.flow-port.armed {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 5px #7964b32b;
}
.flow-port:disabled {
  opacity: 0.4;
  cursor: default;
}
.flow-workspace .flow-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--accent);
}
.flow-workspace .flow-connection {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.3;
}
.flow-workspace .flow-connection.active {
  stroke-width: 3;
  opacity: 1;
}
.flow-node.invalid {
  border: 3px solid #be374e;
}
.flow-rule {
  font-size: var(--font-14, 14px);
  line-height: 1.65;
  background: var(--surface-soft);
  padding: 12px;
  border-radius: 14px;
}
.flow-guide,
.flow-required {
  font-size: var(--font-13, 13px);
  color: var(--muted);
  line-height: 1.6;
}
.flow-badge {
  display: inline-block;
  font-size: var(--font-11, 11px);
  background: var(--surface-soft);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 20px;
}
.flow-workspace .flow-inspector {
  padding: 18px;
  max-height: 560px;
  overflow: auto;
  border-left: 1px solid var(--border);
  background: var(--surface);
}
.flow-workspace .flow-field {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.flow-field textarea {
  min-height: 120px;
  resize: vertical;
}
.flow-field select,
.flow-field textarea,
.flow-field input {
  width: 100%;
  min-width: 0;
}
.flow-workspace .flow-simulation {
  display: none;
}
body.flow-open {
  overflow: hidden;
}
body.flow-open #mobile-nav,
body.flow-open #sidebar,
body.flow-open .app-header {
  visibility: hidden;
}
.flow-workspace.is-editing {
  position: fixed;
  inset: 0;
  z-index: 200;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  margin: 0;
  width: 100%;
  height: 100dvh;
}
.flow-workspace.is-editing > .card-head {
  display: none;
}
.flow-workspace.is-editing .flow-tools {
  flex-shrink: 0;
}
.flow-workspace.is-editing .flow-editor-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.flow-workspace.is-editing .flow-canvas-viewport {
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.flow-workspace.is-editing .flow-inspector {
  max-height: none;
  min-height: 0;
}
.flow-workspace.show-simulation .flow-simulation {
  display: block;
  position: absolute;
  inset: 180px 18px 18px auto;
  z-index: 10;
  width: min(440px, calc(100% - 36px));
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 60px #0003;
  border-radius: 24px;
  padding: 18px;
  overflow: auto;
}
.flow-simulation .button {
  margin: 5px;
}
@media (max-width: 700px) {
  .flow-workspace .flow-editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow-workspace .flow-inspector {
    display: none;
  }
  .flow-workspace.show-inspector .flow-inspector {
    display: block;
    position: absolute;
    inset: auto 0 0;
    z-index: 8;
    max-height: 55%;
    height: auto;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px #0002;
  }
  .flow-workspace:not(.is-editing) {
    position: relative;
  }
  .flow-workspace .flow-canvas-viewport {
    height: 480px;
  }
  .flow-topline > strong {
    font-size: var(--font-18, 18px);
  }
  .flow-tools {
    padding: 10px;
  }
  .flow-tools .button {
    min-height: 42px;
    padding: 8px 12px;
    font-size: var(--font-14, 14px);
  }
  .flow-topline .flow-count {
    display: none;
  }
  .flow-workspace.is-editing .flow-editor-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 8px;
  }
  .flow-workspace.is-editing .flow-editor-toolbar > * {
    flex-shrink: 0;
  }
  .flow-navigation {
    gap: 6px;
  }
  .flow-navigation select {
    min-width: 100px;
    max-width: 160px;
  }
  .flow-status {
    font-size: var(--font-13, 13px);
    max-height: 76px;
    padding: 8px 10px;
  }
  .flow-workspace.show-simulation .flow-simulation {
    inset: 220px 8px 8px;
    width: calc(100% - 16px);
  }
  .flow-inspector input,
  .flow-inspector textarea,
  .flow-inspector select {
    font-size: var(--font-17, 17px);
  }
}

/* Original Nuvem Pass artwork; proportional in full and collapsed navigation. */
.brand-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}
.brand-symbol {
  display: none;
  width: 42px;
  height: auto;
  flex-shrink: 0;
}
.collapsed .brand-logo {
  display: none;
}
.collapsed .brand-symbol {
  display: block;
}
@media (max-width: 760px) {
  .collapsed .sidebar .brand-logo {
    display: block;
  }
  .collapsed .sidebar .brand-symbol {
    display: none;
  }
}

/* Desktop reading scale. Mobile retains its existing type sizes. */
@media (min-width: 761px) {
  :root {
    --body-font: 17px;
    --font-10: 14px;
    --font-11: 14px;
    --font-12: 15px;
    --font-13: 16px;
    --font-14: 17px;
    --font-15: 18px;
    --font-16: 18px;
    --font-17: 19px;
    --font-18: 20px;
    --font-20: 23px;
    --font-22: 25px;
    --font-23: 26px;
    --font-24: 27px;
    --font-28: 32px;
    --font-30: 34px;
    --font-34: 38px;
    --font-36: 40px;
  }
  #subtitle,
  .metric-foot,
  .card-head p,
  .status-note,
  .chat-bubble,
  .flow-rule,
  .diagnosis-item p {
    line-height: 1.6;
  }
  #nav a {
    min-height: 48px;
    line-height: 1.4;
  }
  .operation {
    align-items: center;
    line-height: 1.45;
  }
  .operation-icon,
  .nav-icon,
  .ui-icon {
    flex-shrink: 0;
  }
  .sidebar-bottom {
    line-height: 1.5;
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    line-height: 1.4;
  }
  input,
  select,
  textarea {
    line-height: 1.5;
  }
  input,
  select {
    min-height: 46px;
  }
  .page-tools {
    align-items: center;
    gap: 12px;
  }
  .page-heading,
  .card-head,
  .toolbar,
  .pagination,
  .dialog-heading {
    flex-wrap: wrap;
  }
  .toolbar {
    gap: 12px;
  }
  .metric-top {
    align-items: center;
    line-height: 1.4;
    min-height: 44px;
  }
  .metric-value {
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .metric-foot {
    min-height: 48px;
  }
  th,
  td {
    vertical-align: middle;
    line-height: 1.5;
  }
  td {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
  }
  .buyer {
    align-items: center;
  }
  .detail-grid dt {
    line-height: 1.5;
  }
  .detail-grid dd {
    line-height: 1.55;
    margin-top: 8px;
  }
  .conversation-preview,
  .conversation-stage {
    line-height: 1.5;
  }
  .flow-port {
    display: grid;
    place-items: center;
    line-height: 1;
  }
  .flow-port-row {
    min-height: 30px;
    line-height: 1.4;
    gap: 8px;
  }
  .flow-node-preview {
    line-height: 1.5;
  }
  .overview-alert {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .overview-alert-copy {
    min-width: 0;
  }
  .empty-icon {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .button {
    font-size: 16px;
  }
}
@media (min-width: 1000px) {
  body:not(.collapsed) .sidebar {
    width: 274px;
  }
  body:not(.collapsed) .shell {
    margin-left: 298px;
  }
}
@media (min-width: 761px) and (max-width: 1600px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.report-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 16px;
  align-items: start;
  padding: 24px;
}
.report-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.report-field input,
.report-field select,
.report-field .invite-link {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  color: inherit;
  background: var(--surface);
}
.report-field .invite-link {
  box-sizing: border-box;
  resize: vertical;
  overflow-wrap: anywhere;
}
#mobile-record {
  box-sizing: border-box;
  max-width: calc(100% - 24px);
}
#mobile-record-body .report-field + .button {
  margin-top: 12px;
}
.report-note,
.report-feedback {
  margin: 16px 24px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.report-feedback:empty {
  display: none;
}
.report-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.report-result {
  display: grid;
  gap: 24px;
}
.report-result small {
  display: block;
}
body[data-page='relatorios'] #period,
body[data-page='relatorios'] label[for='period'] {
  display: none;
}
.report-metrics {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .report-filters {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }
  .report-field:nth-child(3),
  .report-filters > button {
    grid-column: 1 / -1;
  }
  .report-actions {
    padding: 0 20px;
  }
  .report-actions > button {
    flex: 1 1 100%;
  }
  .report-note,
  .report-feedback {
    margin: 16px 20px;
  }
}

/* Workspace and integration setup */
.companies-workspace {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.companies-workspace .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.company-directory {
  padding: 0 24px 24px;
}
.company-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.company-item:last-child { padding-bottom: 0; }
.company-item-heading,
.company-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.company-item-heading {
  justify-content: space-between;
}
.company-item-heading h3 {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
  flex: 1 1 220px;
}
.company-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.company-facts dt,
.company-operation { color: var(--muted); }
.company-facts dt { font-size: 13px; margin-bottom: 6px; }
.company-facts dd { margin: 0; overflow-wrap: anywhere; }
.company-operation { margin-top: 20px; font-size: 13px; overflow-wrap: anywhere; }
.company-operation summary { cursor: pointer; }
.company-dialog .report-note,
.company-dialog .report-feedback { margin: 0 0 20px; }
.company-dialog .report-filters,
.company-dialog .company-form {
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.company-dialog .report-field,
.company-dialog input,
.company-dialog select { min-width: 0; max-width: 100%; }
.company-dialog input { box-sizing: border-box; }
.company-create small { color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) {
  .company-directory { padding: 0 20px 20px; }
  .company-facts { grid-template-columns: 1fr; gap: 14px; }
  .company-item-actions { align-items: stretch; }
  .company-item-actions > * { flex: 1 1 100%; text-align: center; }
  .company-dialog .report-filters,
  .company-dialog .company-form { grid-template-columns: 1fr; }
  .company-dialog .report-field,
  .company-dialog .report-field:nth-child(3),
  .company-dialog .report-filters > button { grid-column: auto; }
}
[hidden] {
  display: none !important;
}
#workspace-selector {
  max-width: min(100%, 280px);
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 12px;
  background: var(--surface);
  color: inherit;
}
.integration-form {
  display: grid;
  gap: 16px;
}
.integration-form label {
  display: grid;
  gap: 8px;
}
.integration-form input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
.integration-form input[type='checkbox'] {
  width: 20px;
  min-height: 20px;
}
@media (max-width: 640px) {
  #workspace-selector {
    width: 100%;
    max-width: 100%;
  }
  .integration-form {
    min-width: 0;
  }
}

.conversation-notice {
  position: fixed;
  z-index: 90;
  inset-inline-end: 1rem;
  inset-block-end: 5rem;
  max-width: calc(100% - 2rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

@media (max-width: 760px) {
  .conversation-team-actions {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    align-items: center;
  }
  .conversation-team-actions > button {
    flex: 1 1 auto;
  }
  .conversation-team-actions > span {
    flex-basis: 100%;
  }
}

/* The supplied chat retains its own stylesheet inside a sandboxed frame. */
body[data-page='conversas'] #content {
  padding: 12px 20px 0;
}
body[data-page='conversas'] .page-heading,
body[data-page='conversas'] .page-footer {
  display: none;
}
.embedded-chat-workspace {
  min-width: 0;
  width: 100%;
}
.embedded-chat-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 136px);
  min-height: 240px;
  border: 0;
  background: #fff;
  color-scheme: light;
}
.chat-pagination {
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  color: #666;
  font-size: 12px;
}
.chat-pagination .button {
  min-height: 32px;
  padding: 4px 10px;
}
@media (max-width: 800px) {
  body[data-page='conversas'] #content {
    padding: 0;
  }
  .embedded-chat-frame {
    height: calc(100dvh - 172px);
  }
  .chat-pagination {
    padding: 6px 12px;
  }
  body.chat-keyboard-open[data-page='conversas'] .mobile-nav {
    display: none;
  }
}

body.chat-keyboard-open[data-page='conversas'] .chat-pagination {
  display: none;
}

/* Keep the embedded screen aligned while the dashboard crosses layout breakpoints. */
body[data-page='conversas'] .shell {
  transition: none;
}

/* Purposeful feedback. No animation of private data or automatic refreshes. */
.technical-disclosure {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.technical-disclosure summary {
  cursor: pointer;
  font-size: 14px;
  padding: 6px 0;
}
.technical-disclosure > p {
  font-size: 13px;
  opacity: 0.7;
}
.technical-disclosure dd {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mobile-record-list {
  display: none;
}
.mobile-record-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mobile-record-copy small {
  font-size: 12px;
  opacity: 0.72;
}
body:has(#mobile-record[open]) {
  overflow: hidden;
}
.mobile-record-fields {
  margin: 0;
}
.mobile-record-fields dt {
  font-size: 13px;
  opacity: 0.72;
  margin-top: 18px;
}
.mobile-record-fields dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.mobile-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
#mobile-record {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
@media (max-width: 760px) {
  .responsive-records > .table-wrap {
    display: none;
  }
  .mobile-record-list {
    display: grid;
    padding: 8px 16px;
  }
  .mobile-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    width: 100%;
    padding: 16px 4px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
  }
  .mobile-record-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
  }
  .mobile-record-hint {
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.7;
  }
  .mobile-record-item:last-child {
    border-bottom: 0;
  }
  #mobile-record {
    width: calc(100vw - 24px);
    max-width: 520px;
    padding: 20px;
    border-radius: 24px;
  }
  #mobile-record .dialog-heading {
    gap: 12px;
    align-items: center;
  }
  #mobile-record-title {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 20px;
  }
  #close-mobile-record {
    flex-shrink: 0;
  }
}
.topbar,
.top-actions {
  align-items: center;
}
.top-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.top-actions > .icon-button,
.top-actions .profile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}
.top-actions > .icon-button .ui-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.profile-wrap {
  display: flex;
  align-items: center;
}
.breadcrumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root {
  --motion-fast: 140ms;
  --motion-normal: 220ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:where(button, .button, .icon-button, nav a, .wa-contact) {
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    color var(--motion-fast),
    transform var(--motion-fast) var(--motion-ease);
}
:where(button, .button, .icon-button, nav a):active:not(:disabled) {
  transform: scale(0.96);
}
:where(button, a, input, textarea, select):focus-visible {
  outline: 3px solid var(--primary, #8060c0);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
.sidebar {
  transition:
    transform var(--motion-normal) var(--motion-ease),
    width var(--motion-normal) var(--motion-ease);
}
.shell {
  transition: margin-left var(--motion-normal) var(--motion-ease);
}
#nav a[aria-current='page'] {
  box-shadow: inset 3px 0 0 var(--primary, #8060c0);
}
.profile-menu:not([hidden]),
.wa-popover,
dialog[open] {
  animation: surface-enter var(--motion-normal) var(--motion-ease) both;
}
.menu-backdrop:not([hidden]),
dialog[open]::backdrop {
  animation: backdrop-enter var(--motion-fast) ease-out both;
}
.view-enter > * {
  animation: content-enter 260ms var(--motion-ease) both;
}
.view-enter > :nth-child(2) {
  animation-delay: 35ms;
}
.view-enter > :nth-child(3) {
  animation-delay: 65ms;
}
.view-enter .metric {
  animation: content-enter 280ms var(--motion-ease) both;
}
.view-enter .metric:nth-child(2) {
  animation-delay: 35ms;
}
.view-enter .metric:nth-child(3) {
  animation-delay: 65ms;
}
.view-enter .metric:nth-child(4) {
  animation-delay: 95ms;
}
#refresh[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}
#refresh[aria-busy='true']::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: busy-spin 700ms linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .metric,
  .card {
    transition:
      border-color var(--motion-normal),
      box-shadow var(--motion-normal);
  }
  .metric:hover,
  .card:hover {
    border-color: var(--primary, #8060c0);
  }
  #nav a:hover .nav-icon {
    transform: translateX(2px);
  }
  .nav-icon {
    transition: transform var(--motion-fast);
  }
}
@media (max-width: 760px) {
  .icon-button,
  .wa-icon,
  .button,
  .profile-option,
  .wa-menu-item {
    min-height: 44px;
  }
  .icon-button,
  .wa-icon {
    min-width: 44px;
  }
  .mobile-nav a,
  .mobile-nav button {
    min-height: 48px;
  }
  .mobile-nav a[aria-current='page'] {
    box-shadow: inset 0 -3px 0 var(--primary, #8060c0);
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .wa-workspace .wa-contact:active {
    background: var(--wa-hover, #e8e5ef);
  }
}
@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes surface-enter {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes busy-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Shared visual language from the supplied Nuvem Pass Studio. */
@font-face {
  font-family: 'DM Sans';
  src: url('/painel/studio-font.ttf');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f4f6fc;
  --surface: #fff;
  --surface-alt: #f0f1ff;
  --border: #e5e9f2;
  --text: #28334a;
  --muted: #65718a;
  --purple: #5661d8;
  --primary: #5661d8;
  --action-foreground: #fff;
  --soft: #f0f1ff;
  --ink: #28334a;
  --radius: 12px;
  --shadow: 0 4px 18px #28334a08;
  --glass: #fff;
  --glass-border: #e5e9f2;
  --line: #e5e9f2;
}
:root[data-theme='dark'] {
  --bg: #161d2e;
  --surface: #202940;
  --surface-alt: #2a3450;
  --border: #39445f;
  --text: #eef1ff;
  --muted: #b3bdd4;
  --purple: #a5adff;
  --primary: #a5adff;
  --action-foreground: var(--bg);
  --soft: #2a3450;
  --ink: #eef1ff;
  --glass: #202940;
  --glass-border: #39445f;
  --line: #39445f;
}
body,
:root[data-theme='dark'] body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font-family: inherit;
}
:root {
  --accent: #5661d8;
  --accent-soft: #f0f1ff;
}
:root[data-theme='dark'] {
  --accent: #a5adff;
  --accent-soft: #2a3450;
}
#nav a.active,
.mobile-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
  border-radius: 8px;
}
body:has(.studio-frame) .page-heading,
body:has(.studio-frame) .page-footer {
  display: none;
}
body:has(.studio-frame) main {
  padding-top: 16px;
}
body:has(.studio-frame) .studio-frame {
  height: calc(100dvh - 116px);
  min-height: 0;
}
.sidebar,
.topbar,
.mobile-nav {
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: none;
  border-radius: 12px;
  box-shadow: none;
}
.card,
.panel,
.stat,
.metric-card,
.summary-card,
.integration-card {
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
button,
.button,
.btn {
  border-radius: 8px;
}
.primary {
  background: #5661d8;
  color: #fff;
  border-color: #5661d8;
}
.ui-icon {
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.studio-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 200px);
  min-height: 580px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}
body:has(.studio-frame) #view {
  padding: 0;
}
@media (max-width: 800px) {
  .studio-frame {
    height: calc(100dvh - 225px);
    min-height: 520px;
  }
  .mobile-nav {
    border-radius: 16px;
  }
  .sidebar {
    border-radius: 0 12px 12px 0;
  }
}
@media (max-width: 800px) {
  body:has(.studio-frame) .studio-frame {
    height: calc(100dvh - 190px);
    min-height: 0;
  }
  body:has(.studio-frame) main {
    padding: 12px 8px 95px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Material 3 spacing, shape, state and responsive layout; Nuvem Pass glass surfaces. */
:root {
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(112, 124, 172, 0.18);
  --radius: 20px;
}
:root[data-theme='dark'] {
  --glass: rgba(32, 41, 64, 0.86);
  --glass-border: rgba(174, 185, 225, 0.2);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 97, 216, 0.32) transparent;
}
*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(86, 97, 216, 0.28);
  border-radius: 20px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(86, 97, 216, 0.55);
}
*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
button,
input,
select,
textarea,
kbd,
.avatar {
  font-family: inherit !important;
}
kbd {
  font-size: 0.85em;
}
.breadcrumb {
  visibility: hidden;
}
.shell {
  min-width: 0;
}
main {
  min-width: 0;
}
/* Keep the footer below short pages without covering longer content. */
body:not([data-page='automacao']):not([data-page='conversas']) main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body:not([data-page='automacao']):not([data-page='conversas']) #view {
  flex: 1 0 auto;
}
.page-footer {
  flex-shrink: 0;
}
#view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
#view > * {
  min-width: 0;
}
.platform-layout,
.notification-layout {
  display: grid;
  gap: 24px;
}
.sidebar,
.topbar,
.mobile-nav,
.card,
.panel,
.profile-menu,
dialog {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--glass-border);
}
.card,
.panel,
dialog {
  border-radius: 20px;
}
.sidebar {
  padding: 24px 16px;
}
.sidebar .brand {
  padding: 8px 12px 24px;
}
.brand-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
#nav {
  padding-right: 8px;
}
#nav a {
  margin: 4px 0;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 24px;
  gap: 12px;
}
#nav a.active {
  border-radius: 24px;
  box-shadow: none;
  outline: 0;
}
#nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.page-heading {
  gap: 24px;
  align-items: center;
}
.page-tools {
  gap: 12px;
  flex-wrap: wrap;
}
.topbar {
  padding: 16px 24px;
  gap: 16px;
  min-height: 76px;
}
.top-actions {
  margin-left: auto;
  gap: 12px;
}
.button,
.btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.35;
  text-align: center;
}
.button:disabled {
  cursor: not-allowed;
}
.health-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 1fr) minmax(170px, auto);
  gap: 20px;
  align-items: center;
  padding: 16px 0;
}
.health-row .badge {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}
.health-row > .button {
  justify-self: end;
}
.provider-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.provider-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.integration-grid .card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.integration-grid .card > .card-heading {
  padding: 0;
}
.integration-grid .status-note {
  margin-top: auto;
  padding: 16px 0 0;
}
.report-filters,
.company-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
  padding: 24px;
}
.report-filters > *,
.company-form > * {
  min-width: 0;
}
.company-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.company-form input,
.company-form textarea {
  width: 100%;
  min-width: 0;
}
.company-form > button,
.report-filters > button {
  align-self: end;
}
.company-preview {
  width: 96px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface-alt);
}
.company-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 24px 24px;
}
.company-integrations .provider-heading {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 12px;
}
body[data-page='configuracoes'] #period,
body[data-page='configuracoes'] label[for='period'] {
  display: none;
}
body[data-page='conversas'][data-surface='client'] #period,
body[data-page='conversas'][data-surface='client'] label[for='period'] {
  display: none;
}
.settings-grid.settings-workspace > .card:not(.settings-primary) {
  grid-column: auto;
}
.settings-grid.settings-workspace > .settings-primary {
  grid-column: 1 / -1;
}
.settings-workspace .card-head {
  padding: 0;
  margin-bottom: 16px;
}
.settings-workspace .card > .button {
  margin-top: 4px;
}
.settings-connection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-connection-status {
  margin: 0;
}
.settings-connection img {
  max-width: 100%;
  height: auto;
  flex-basis: min(100%, 280px);
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.settings-knowledge-form {
  display: grid;
  align-items: start;
  gap: 16px;
}
.settings-knowledge-form > label:not(.saas-plan-enable) {
  display: grid;
  gap: 8px;
}
.settings-knowledge-form textarea {
  width: 100%;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.settings-preferences {
  padding-block: 12px;
  border-block: 1px solid var(--border);
}
.settings-preferences summary {
  cursor: pointer;
  padding-block: 8px;
}
.settings-preferences[open] summary {
  margin-bottom: 12px;
}
.settings-knowledge-form .saas-plan-enable {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.settings-knowledge-form .report-feedback {
  margin: 0;
}
@media (max-width: 640px) {
  .settings-actions {
    width: 100%;
  }
  .settings-actions > button {
    flex: 1 1 100%;
  }
}
.notification-actions,
.resolution-actions,
.dialog-actions,
.modal-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.company-section-title {
  padding: 0 24px 16px;
}
.notification-device {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
}
.notification-device > div:first-child {
  flex: 1 1 200px;
}
#detail-body .button {
  margin: 0;
}
#detail-body .button + .button {
  margin-left: 0;
}
#detail-body .resolution-panel > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#notification-settings {
  width: min(820px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 24px;
}
#notification-settings-body {
  display: grid;
  gap: 24px;
}
#notification-settings .card {
  background: transparent;
}
.profile-menu {
  width: min(340px, calc(100vw - 32px));
}
.payment-name {
  white-space: normal;
}
.studio-navigation {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 25;
  box-shadow: 0 4px 24px #28334a24;
  background: var(--glass);
  backdrop-filter: blur(18px);
  color: var(--primary);
  border: 1px solid var(--glass-border);
}
body[data-page='automacao'] {
  overflow: hidden;
}
body[data-page='automacao'] .shell {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}
body[data-page='automacao'] .topbar,
body[data-page='automacao'] .mobile-nav,
body[data-page='automacao'] .page-heading,
body[data-page='automacao'] .page-footer {
  display: none;
}
body[data-page='automacao'] main {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100dvh;
}
body[data-page='automacao'] #view {
  height: 100%;
  padding: 0;
  display: block;
}
body[data-page='automacao'] .studio-frame {
  width: 100%;
  height: 100dvh !important;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
body[data-page='automacao'] > .sidebar {
  transform: translateX(-110%);
  position: fixed;
  inset: 12px auto 12px 12px;
  width: 280px;
  z-index: 50;
}
body[data-page='automacao'] > .sidebar.open {
  transform: translateX(0);
}
body[data-page='automacao'] #close-menu {
  display: flex;
}
body[data-page='automacao'] #menu-backdrop {
  z-index: 40;
}
body.studio-menu-open .topbar {
  display: flex;
  position: fixed;
  left: 312px;
  right: 12px;
  top: 12px;
  z-index: 45;
}
body.studio-menu-open .studio-navigation {
  visibility: hidden;
}
@media (max-width: 1000px) {
  .health-row {
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1fr);
  }
  .health-row > .button {
    grid-column: 2;
    justify-self: start;
  }
}
@media (max-width: 760px) {
  #view,
  .platform-layout,
  .notification-layout {
    gap: 16px;
  }
  main {
    padding: 20px 16px 100px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
  }
  .page-tools {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .page-tools select {
    max-width: 100%;
    min-width: 0;
  }
  .page-tools .workspace-switch {
    flex-basis: 100%;
    width: 100%;
  }
  .topbar {
    padding: 12px 16px;
    gap: 12px;
  }
  .top-actions {
    gap: 8px;
  }
  .health-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .health-row > .button {
    grid-column: auto;
    justify-self: start;
  }
  .report-filters,
  .company-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .report-filters .button,
  .company-form .button {
    width: 100%;
  }
  .integration-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .notification-actions > .button {
    flex: 1 1 100%;
  }
  .notification-device {
    padding: 16px;
  }
  .notification-device > button {
    flex: 1 1 180px;
  }
  #notification-settings {
    padding: 16px;
  }
  body.studio-menu-open .topbar {
    left: 12px;
    top: auto;
    bottom: 12px;
    z-index: 55;
  }
  body[data-page='automacao'] > .sidebar {
    bottom: 100px;
    width: min(300px, calc(100vw - 24px));
  }
  .studio-navigation {
    left: 12px;
    bottom: 12px;
    min-height: 44px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .card,
  .panel,
  .sidebar,
  .topbar,
  dialog {
    background: var(--surface);
    backdrop-filter: none;
  }
}

.integration-grid .card > .card-head {
  padding: 0;
}
.integration-grid .card > .status-note {
  margin-top: auto;
  min-height: 116px;
}
.company-form input[type='file'] {
  font-size: 13px;
  padding: 8px;
}
input::file-selector-button {
  border: 0;
  border-radius: 16px;
  padding: 8px 12px;
  color: var(--primary);
  background: var(--soft);
  font: inherit;
  margin-right: 8px;
  cursor: pointer;
}
.card-head {
  gap: 16px;
}
@media (min-width: 1200px) {
  .integration-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .integration-grid .card {
    padding: 20px;
  }
  .integration-grid h2 {
    font-size: 18px;
    min-height: 48px;
  }
}
/* Release 2: responsive navigation, solid colors, readable glass and bounded overlays. */
html {
  background: var(--bg);
}
body {
  background: var(--bg) !important;
}
.shell {
  max-width: none !important;
}
.topbar {
  display: none;
}
.mobile-brand {
  display: none;
}
.sidebar {
  z-index: 60;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.sidebar-tools {
  flex-shrink: 0;
  padding: 0 8px 16px;
}
.sidebar-tools .top-actions {
  display: grid;
  grid-template-columns: 44px 44px 1fr;
  gap: 10px;
  margin: 0;
}
.sidebar-tools .search-launch {
  grid-column: 1/-1;
  width: 100%;
  min-width: 0;
  padding: 12px;
}
.sidebar-tools .profile-wrap {
  justify-self: end;
}
#nav {
  min-height: 0;
  flex: 1;
  padding: 6px 8px 12px;
  overflow: auto;
}
#nav a {
  outline-offset: -2px;
}
#nav a:focus-visible {
  outline-offset: -2px;
}
#nav a[aria-current='page'] {
  box-shadow: none;
}
.profile-menu {
  position: fixed !important;
  z-index: 150 !important;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 0;
  transform: none;
  animation: none !important;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  isolation: isolate;
}
.profile-menu .profile-heading {
  gap: 14px;
}
.profile-heading > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-menu small {
  white-space: normal;
}
.profile-menu .profile-option {
  min-height: 48px;
  white-space: normal;
}
.settings-grid:not(.integration-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}
.settings-grid:not(.integration-grid) > .card {
  min-width: 0;
  height: auto;
  padding: 24px;
}
.settings-grid:not(.integration-grid) > .card:first-child {
  grid-column: 1/-1;
}
.settings-grid:not(.integration-grid) > .card:first-child .company-form {
  padding: 24px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.company-integrations .provider-heading {
  flex-wrap: wrap;
  min-width: 0;
}
.notification-device {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(230px, 2fr);
  gap: 16px;
}
.device-preferences {
  display: grid;
  gap: 12px;
  align-content: start;
}
.device-preferences label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-height: 44px;
}
.device-preferences input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
}
.device-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.device-actions .button {
  flex: 1 1 180px;
}
#notification-settings .card {
  background: var(--surface);
}
#notification-settings {
  overscroll-behavior: contain;
}
dialog::backdrop,
.menu-backdrop {
  background: #10182766;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#refresh[aria-busy='true']::after {
  display: none;
  content: none;
}
button[aria-busy='true'] > svg,
button[aria-busy='true'] > .ui-icon {
  animation: busy-spin 0.8s linear infinite;
}
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 240px;
  color: var(--muted);
}
.loading-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: busy-spin 0.8s linear infinite;
}
.conversation-loading {
  background: var(--surface);
  border-radius: 20px;
  min-height: 60dvh;
}
body[data-page='automacao'] .shell,
body[data-page='automacao'] main,
body[data-page='automacao'] #view {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body[data-page='automacao'] .shell {
  position: fixed;
  inset: 0;
}
body[data-page='automacao'] .studio-frame {
  display: block;
  width: 100%;
  max-width: none !important;
}
body.studio-menu-open .topbar {
  display: none;
}
.card,
.panel {
  background: var(--surface);
}
.metric,
.metric:nth-child(n) {
  background: var(--surface);
}
.sidebar,
.topbar,
.mobile-nav,
.profile-menu,
.studio-navigation {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar,
  .topbar,
  .mobile-nav,
  .profile-menu,
  .studio-navigation,
  dialog {
    background: var(--surface) !important;
  }
}
@media (max-width: 760px) {
  .topbar {
    display: flex;
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    width: auto;
    min-height: 64px;
    height: 64px;
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    z-index: 90;
    padding: 8px 12px;
    gap: 12px;
  }
  .topbar .breadcrumb,
  .topbar .search-launch,
  .topbar #theme,
  .topbar .top-actions > a {
    display: none;
  }
  .topbar .top-actions {
    margin-left: 0;
  }
  .mobile-brand {
    display: flex;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .mobile-brand img {
    width: min(170px, 100%);
    height: 32px;
    object-fit: contain;
  }
  .topbar .avatar {
    width: 44px;
    height: 44px;
  }
  main {
    padding-top: calc(96px + env(safe-area-inset-top, 0px)) !important;
  }
  body > .sidebar,
  body[data-page='automacao'] > .sidebar {
    position: fixed;
    top: calc(84px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    bottom: auto;
    width: auto;
    max-height: calc(100dvh - 108px - env(safe-area-inset-top, 0px));
    border-radius: 24px;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease,
      visibility 0.2s;
    z-index: 85;
  }
  body > .sidebar.open,
  body[data-page='automacao'] > .sidebar.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .sidebar > .brand,
  .sidebar #close-menu {
    display: none !important;
  }
  .sidebar-tools:empty {
    display: none;
  }
  .menu-backdrop {
    z-index: 80 !important;
  }
  .settings-grid:not(.integration-grid) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-grid:not(.integration-grid) > .card {
    padding: 20px;
  }
  .settings-grid:not(.integration-grid) > .card:first-child .company-form {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }
  .notification-device {
    grid-template-columns: 1fr;
  }
  .device-actions {
    grid-column: auto;
  }
  .device-actions .button {
    flex-basis: 100%;
  }
  body[data-page='automacao'] main {
    padding: 0 !important;
  }
  body[data-page='automacao']:not(.studio-menu-open) .topbar {
    display: none;
  }
  body[data-page='automacao'].studio-menu-open .topbar {
    display: flex;
    top: calc(10px + env(safe-area-inset-top, 0px));
    bottom: auto;
    left: 12px;
    right: 12px;
    z-index: 90;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-indicator,
  button[aria-busy='true'] > svg {
    animation: none;
  }
}

.sidebar-tools .search-launch kbd {
  display: none;
}
.sidebar-tools .search-launch span {
  white-space: nowrap;
}
#nav a.active,
:root[data-theme='dark'] #nav a.active {
  background: var(--soft);
  color: var(--primary);
}
.mobile-utilities {
  display: none;
}
@media (max-width: 760px) {
  .mobile-utilities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 12px;
  }
  .mobile-utilities .search-launch {
    flex: 1 1 100%;
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    background: var(--soft);
    border-radius: 24px;
  }
  .mobile-utilities .search-launch span {
    display: inline;
  }
  .sidebar-tools:has(.mobile-utilities) {
    display: block;
  }
}

/* Consistent circular icon controls and page loading feedback. */
.icon-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  box-shadow: 0 2px 6px #1527440d;
}
.icon-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.topbar .icon-button,
.top-actions .icon-button {
  align-self: center;
}
.page-loading {
  min-height: 240px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.skeleton {
  background: var(--surface-alt);
}

.pwa-launch {
  display: none;
}
@media (display-mode: standalone) {
  .pwa-launch {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: #f5f6fd;
    animation: pwa-launch-dismiss 3s step-end forwards;
  }
  .pwa-launch img {
    width: min(260px, 70vw);
    height: auto;
  }
  .pwa-launch-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e5f3;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: busy-spin 0.8s linear infinite;
  }
}
@keyframes pwa-launch-dismiss {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

/* SaaS actions use the semantic foreground in both themes. */
.button.saas-primary {
  color: var(--action-foreground);
}

.saas-plan-form {
  margin: 24px;
}
.saas-plan-enable {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.saas-plan-enable input[type='checkbox'] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
}

:root {
  --support-bar-h: 0px;
}
.support-launch-form {
  display: inline-flex;
  margin: 0;
}
.company-operation .support-launch-form {
  margin-top: 12px;
}
.support-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 20px;
  background: #fff9ec;
  color: #28334a;
  border-bottom: 1px solid #e7c26f;
  box-shadow: 0 4px 16px #28334a14;
}
:root[data-theme='dark'] .support-banner {
  background: #2b2416;
  color: #eef1ff;
  border-bottom-color: #7c5c20;
  box-shadow: 0 4px 16px #00000047;
}
.support-banner-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
  flex: 1 1 260px;
}
.support-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #7c4d00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
:root[data-theme='dark'] .support-badge {
  background: #edbc61;
  color: #161d2e;
}
.support-tenant {
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
.support-operator {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.support-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.support-banner-actions .button {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}
.support-terminal-card {
  max-width: 560px;
  margin: 48px auto;
}
.support-terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
body.support-access-active .pwa-launch {
  display: none !important;
}
body.support-access-active .sidebar {
  top: calc(12px + var(--support-bar-h));
}
body.support-access-active main {
  padding-top: calc(26px + var(--support-bar-h));
}
body.support-access-active[data-page='conversas'] #content {
  padding-top: calc(12px + var(--support-bar-h));
}
body.support-access-active[data-page='automacao'] .shell {
  top: var(--support-bar-h);
}
body.support-access-active[data-page='automacao'] main {
  padding-top: 0 !important;
  height: calc(100dvh - var(--support-bar-h));
}
body.support-access-active[data-page='automacao'] .studio-frame {
  height: calc(100dvh - var(--support-bar-h)) !important;
}
body.support-access-active[data-page='automacao'] > .sidebar {
  top: calc(12px + var(--support-bar-h));
}
body.support-access-active.studio-menu-open .topbar {
  top: calc(12px + var(--support-bar-h));
}
@media (max-width: 640px) {
  .company-item-actions .support-launch-form {
    flex: 1 1 100%;
  }
  .company-item-actions .support-launch-form > .button {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .support-banner {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
    gap: 8px 10px;
  }
  .support-banner-actions {
    width: 100%;
    margin-left: 0;
  }
  .support-banner-actions > * {
    flex: 1 1 auto;
    justify-content: center;
  }
  body.support-access-active .topbar {
    top: calc(10px + var(--support-bar-h) + env(safe-area-inset-top, 0px));
  }
  body.support-access-active main,
  body.support-access-active[data-page='conversas'] #content {
    padding-top: calc(96px + var(--support-bar-h) + env(safe-area-inset-top, 0px)) !important;
  }
  body.support-access-active > .sidebar,
  body.support-access-active[data-page='automacao'] > .sidebar {
    top: calc(84px + var(--support-bar-h) + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 108px - var(--support-bar-h) - env(safe-area-inset-top, 0px));
  }
  body.support-access-active[data-page='automacao'] main {
    padding-top: 0 !important;
    height: calc(100dvh - var(--support-bar-h));
  }
  body.support-access-active.studio-menu-open .topbar {
    top: calc(10px + var(--support-bar-h) + env(safe-area-inset-top, 0px));
  }
}


/* Shared form layout. Keep checkbox, radio and switch geometry in their components. */
:is(.ds-form-grid, .report-filters, .company-form) {
  align-items: start;
}
.ds-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
:is(.ds-form-grid, .report-filters, .company-form) > * {
  min-width: 0;
}
.ds-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.ds-field > :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  width: 100%;
}
.ds-icon-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ds-icon-label > .ui-icon {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
}
.ds-icon-label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
:is(.ds-field, .report-field, .company-form) :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.ds-field-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ds-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .ds-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ds-form-actions > button { flex: 1 1 100%; }
}

.ds-connection-screen {
  display: grid;
  place-items: center;
  min-height: min(72vh, 680px);
  padding: clamp(12px, 4vw, 48px);
}
.ds-connection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  width: min(100%, 840px);
  padding: clamp(20px, 4vw, 48px);
}
.ds-connection-guide h1 { margin: 16px 0 8px; font-size: clamp(24px, 3vw, 34px); }
.ds-connection-guide p, .ds-connection-placeholder, .ds-connection-panel > p { color: var(--muted); }
.ds-connection-guide ol { display: grid; gap: 12px; margin: 24px 0 0; padding-inline-start: 22px; }
.ds-connection-guide li { padding-inline-start: 4px; }
.ds-connection-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--accent);
}
.ds-connection-icon svg, .ds-connection-placeholder svg { width: 26px; height: 26px; }
.ds-connection-icon-whatsapp { color: #25d366; }
.ds-connection-panel { display: grid; justify-items: center; gap: 12px; text-align: center; }
.ds-connection-panel > p { margin: 0; }
.ds-connection-frame {
  display: grid;
  place-items: center;
  width: min(100%, 224px);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.ds-connection-frame img { display: block; width: 100%; height: auto; }
.ds-connection-placeholder { display: grid; justify-items: center; gap: 8px; padding: 12px; }
@media (max-width: 760px) {
  .ds-connection-screen { min-height: auto; padding: 12px 0; }
  .ds-connection-card { grid-template-columns: minmax(0, 1fr); }
}

.saas-account-page {
  min-height: 100dvh;
  background: var(--bg);
  padding: 32px 16px;
}
.saas-account-shell {
  width: min(100%, 540px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.saas-account-shell img {
  max-width: 100%;
  object-fit: contain;
}
.saas-account-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.saas-account-card h1 {
  font-size: 28px;
  margin: 0;
}
.saas-account-card p {
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.saas-account-card form,
.saas-account-card section {
  display: grid;
  gap: 16px;
}
.saas-account-card [hidden] {
  display: none !important;
}
.saas-account-card label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.saas-account-card input:not([type='checkbox']),
.saas-account-card select {
  width: 100%;
  min-height: 44px;
  max-width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.saas-account-card .saas-check {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  font-weight: 400;
}
.saas-check input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--accent);
}
.saas-account-card .button {
  min-height: 44px;
  white-space: normal;
  text-align: center;
}
.saas-account-card :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.saas-account-card #account-status:empty {
  display: none;
}
@media (max-width: 420px) {
  .saas-account-card {
    padding: 20px;
  }
  .saas-account-page {
    padding-top: 20px;
  }
}

.saas-account-card .button:not(.secondary) {
  color: var(--action-foreground);
}
.saas-account-page .saas-account-shell {
  min-height: auto;
  display: grid;
}
.saas-account-page .saas-account-shell {
  padding: 0;
}
