@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --visucio-primary: #678fff;
  --visucio-primary-strong: #4b72dc;
  --visucio-primary-soft: #eef3ff;
  --visucio-background: #f7f9fc;
  --visucio-surface: #fff;
  --visucio-text: #1a202c;
  --visucio-text-secondary: #59677b;
  --visucio-border: #e4eaf2;
  --visucio-success: #21966f;
  --visucio-danger: #d84f5f;
  --visucio-warning: #b7791f;
  --visucio-radius-sm: 8px;
  --visucio-radius-md: 14px;
  --visucio-radius-lg: 22px;
  --visucio-shadow-sm: 0 5px 18px rgba(18, 22, 33, 0.05);
  --visucio-shadow-md: 0 12px 28px rgba(18, 22, 33, 0.1);
  --visucio-font:
    "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --sidebar: 268px;
}
* {
  box-sizing: border-box;
}
html {
  font-family: var(--visucio-font);
  color: var(--visucio-text);
  background: var(--visucio-background);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--visucio-background);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(103, 143, 255, 0.32);
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 30px;
  justify-items: center;
}
.boot-screen img {
  width: 230px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--visucio-border);
  border-top-color: var(--visucio-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(440px, 0.95fr);
  padding: 18px;
  background: #edf2fb;
}
.login-brand {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px;
  background: #151d2c;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 36px);
}
.login-brand:after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  right: -220px;
  bottom: -260px;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(103, 143, 255, 0.95),
    rgba(103, 143, 255, 0.12) 55%,
    transparent 70%
  );
}
.login-brand .brand-logo {
  width: 210px;
  position: relative;
  z-index: 1;
}
.login-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.login-copy .eyebrow {
  color: #a8bcff;
}
.login-copy h1 {
  color: #fff;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 16px 0 22px;
}
.login-copy p {
  color: #d4dceb;
  line-height: 1.7;
  max-width: 530px;
  font-size: 16px;
}
.login-points {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.login-points span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  color: #f4f6fb;
  font-size: 12px;
}
.login-panel {
  display: grid;
  place-content: center;
  padding: clamp(28px, 7vw, 90px);
  background: var(--visucio-surface);
  border-radius: 28px;
  margin-left: 18px;
}
.login-form {
  width: min(420px, 100%);
}
.login-form .mobile-logo {
  display: none;
  width: 180px;
  margin-bottom: 48px;
}
.eyebrow {
  margin: 0 0 7px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  font-size: 11px;
  color: var(--visucio-primary-strong);
}
.login-form h2 {
  font-size: 32px;
  margin: 0 0 10px;
  letter-spacing: -0.035em;
}
.login-form > p {
  color: var(--visucio-text-secondary);
  line-height: 1.6;
  margin: 0 0 32px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--visucio-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--visucio-text);
  background: #fff;
  transition:
    0.2s border,
    0.2s box-shadow;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--visucio-primary);
  box-shadow: 0 0 0 4px rgba(103, 143, 255, 0.1);
  outline: none;
}
.field small {
  font-size: 11px;
  color: var(--visucio-text-secondary);
  line-height: 1.5;
}
.button {
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--visucio-primary);
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition:
    0.2s transform,
    0.2s box-shadow,
    0.2s background;
  text-decoration: none;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(103, 143, 255, 0.28);
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.button.secondary {
  background: var(--visucio-primary-soft);
  color: #3657ad;
}
.button.ghost {
  background: #fff;
  border: 1px solid var(--visucio-border);
  color: var(--visucio-text);
  box-shadow: none;
}
.button.danger {
  background: #fff0f2;
  color: #ae3040;
}
.button.small {
  min-height: 36px;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 11px;
}
.button.full {
  width: 100%;
}
.login-status {
  min-height: 28px;
  font-size: 12px;
  color: var(--visucio-danger);
  margin-top: 12px;
}
.text-button {
  display: block;
  margin: 16px auto 0;
  border: 0;
  background: transparent;
  color: #3459b4;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  padding: 8px;
}
.login-back {
  margin: 0 0 24px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #3459b4;
  font-weight: 750;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--visucio-text-secondary);
  font-size: 10px;
  margin: 10px 0 18px;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--visucio-border);
  flex: 1;
}
.register-form {
  width: min(450px, 100%);
}
.register-progress {
  margin: -10px 0 28px;
}
.register-progress-track {
  height: 5px;
  background: #e9eef7;
  border-radius: 999px;
  overflow: hidden;
}
.register-progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--visucio-primary);
  border-radius: inherit;
  transition: width 0.25s ease;
}
.register-progress ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin: 9px 0 0;
}
.register-progress li {
  font-size: 9px;
  font-weight: 750;
  color: #8793a5;
  text-align: center;
}
.register-progress li:first-child {
  text-align: left;
}
.register-progress li:last-child {
  text-align: right;
}
.register-progress li.active {
  color: #3459b4;
}
.register-step[hidden] {
  display: none;
}
.register-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 8px;
}
.register-actions .button[hidden] + .button {
  grid-column: 1/-1;
}
.register-actions .button:not(.ghost) {
  min-width: 190px;
}
.register-form .login-status {
  margin-bottom: -28px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 24px 18px;
  background: #fff;
  border-right: 1px solid var(--visucio-border);
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.sidebar-logo {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 10px 10px;
}
.sidebar-logo img {
  width: 174px;
}
.unit-card {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px;
  margin: 8px 0 20px;
  background: var(--visucio-primary-soft);
  border-radius: 14px;
}
.unit-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--visucio-primary);
  font-weight: 900;
}
.unit-card strong,
.unit-card span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unit-card strong {
  font-size: 12px;
}
.unit-card span {
  font-size: 10px;
  color: var(--visucio-text-secondary);
  margin-top: 3px;
}
.nav {
  display: grid;
  gap: 4px;
  overflow-y: auto;
  padding-right: 2px;
}
.nav-button {
  min-height: 43px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 0 12px;
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  color: var(--visucio-text-secondary);
  font-weight: 650;
  font-size: 12px;
  cursor: pointer;
}
.nav-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
.nav-button:hover,
.nav-button.active {
  background: var(--visucio-primary-soft);
  color: #3459b4;
}
.nav-button.active {
  font-weight: 800;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--visucio-border);
}
.profile-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
}
.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #1e293b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.profile-compact strong,
.profile-compact span {
  display: block;
  max-width: 135px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-compact strong {
  font-size: 11px;
}
.profile-compact span {
  font-size: 9px;
  color: var(--visucio-text-secondary);
  margin-top: 3px;
}
.logout-button {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--visucio-text-secondary);
  cursor: pointer;
}
.logout-button:hover {
  background: #fff0f2;
  color: var(--visucio-danger);
}
.main {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 78px;
  position: sticky;
  top: 0;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 234, 242, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  z-index: 30;
}
.breadcrumbs {
  font-size: 11px;
  color: var(--visucio-text-secondary);
}
.breadcrumbs strong {
  color: var(--visucio-text);
  font-size: 12px;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--visucio-border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--visucio-text-secondary);
  position: relative;
}
.icon-button svg {
  width: 19px;
  height: 19px;
}
.icon-button .dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--visucio-danger);
  right: 8px;
  top: 8px;
}
.menu-toggle {
  display: none;
}
.page {
  padding: 30px 34px 100px;
  max-width: 1600px;
  margin: 0 auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 25px;
}
.page-header h1 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
  margin: 5px 0 4px;
}
.page-header p {
  margin: 0;
  color: var(--visucio-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.page-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.metric-card,
.card {
  background: #fff;
  border: 1px solid rgba(228, 234, 242, 0.92);
  border-radius: var(--visucio-radius-md);
  box-shadow: var(--visucio-shadow-sm);
}
.metric-card {
  padding: 19px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    0.2s transform,
    0.2s box-shadow;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--visucio-shadow-md);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--visucio-primary-soft);
  color: #3459b4;
}
.metric-icon svg {
  width: 18px;
}
.metric-card[data-tone="green"] .metric-icon {
  background: #eaf8f2;
  color: #18805d;
}
.metric-card[data-tone="violet"] .metric-icon {
  background: #f3efff;
  color: #7654cb;
}
.metric-card[data-tone="amber"] .metric-icon {
  background: #fff6e4;
  color: #a36917;
}
.metric-card small {
  font-size: 11px;
  color: var(--visucio-text-secondary);
  font-weight: 650;
}
.metric-card strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.75fr);
  gap: 18px;
}
.card {
  padding: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.card-header h2 {
  font-size: 15px;
  margin: 0;
}
.card-header p {
  font-size: 11px;
  color: var(--visucio-text-secondary);
  margin: 4px 0 0;
}
.activity-list {
  display: grid;
  gap: 2px;
}
.activity-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid var(--visucio-border);
}
.activity-item:last-child {
  border: 0;
}
.activity-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--visucio-primary-soft);
  display: grid;
  place-items: center;
  color: #3459b4;
}
.activity-item strong {
  display: block;
  font-size: 11px;
}
.activity-item span {
  display: block;
  font-size: 10px;
  color: var(--visucio-text-secondary);
  margin-top: 3px;
}
.activity-item time {
  font-size: 9px;
  color: var(--visucio-text-secondary);
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-action {
  min-height: 104px;
  border: 1px solid var(--visucio-border);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  padding: 15px;
  cursor: pointer;
  transition: 0.2s;
}
.quick-action:hover {
  border-color: var(--visucio-primary);
  background: var(--visucio-primary-soft);
  transform: translateY(-1px);
}
.quick-action svg {
  width: 20px;
  color: #3459b4;
}
.quick-action strong {
  font-size: 11px;
  display: block;
  margin-top: 14px;
}
.quick-action span {
  font-size: 9px;
  color: var(--visucio-text-secondary);
  display: block;
  margin-top: 4px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
}
.search-wrap svg {
  position: absolute;
  width: 18px;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--visucio-text-secondary);
}
.search-input {
  padding-left: 43px;
  min-height: 44px;
}
.table-card {
  background: #fff;
  border: 1px solid var(--visucio-border);
  border-radius: var(--visucio-radius-md);
  overflow: hidden;
  box-shadow: var(--visucio-shadow-sm);
}
.table-scroll {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.data-table th {
  text-align: left;
  background: #fafbfd;
  padding: 13px 16px;
  color: var(--visucio-text-secondary);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.data-table td {
  padding: 15px 16px;
  border-top: 1px solid var(--visucio-border);
  font-size: 11px;
  vertical-align: middle;
}
.data-table tbody tr:hover {
  background: #fbfcff;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--visucio-primary-soft);
  color: #3459b4;
}
.person strong,
.person span {
  display: block;
}
.person strong {
  font-size: 11px;
}
.person span {
  font-size: 9px;
  color: var(--visucio-text-secondary);
  margin-top: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 800;
  background: #eef2f7;
  color: #586577;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.success {
  background: #eaf8f2;
  color: #177c5b;
}
.badge.premium {
  background: #f1edff;
  color: #6c4cc1;
}
.badge.normal {
  background: var(--visucio-primary-soft);
  color: #3459b4;
}
.badge.inactive,
.badge.blocked {
  background: #fff0f2;
  color: #b53848;
}
.actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--visucio-text-secondary);
}
.empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--visucio-primary-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  color: #3459b4;
}
.empty-icon svg {
  width: 26px;
}
.empty-state h3 {
  color: var(--visucio-text);
  font-size: 15px;
  margin: 0 0 7px;
}
.empty-state p {
  font-size: 11px;
  margin: 0 auto 18px;
  max-width: 390px;
  line-height: 1.6;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.entity-card {
  padding: 19px;
}
.entity-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.entity-card h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.entity-card p {
  font-size: 10px;
  color: var(--visucio-text-secondary);
  line-height: 1.6;
  margin: 0;
}
.entity-meta {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 15px 0;
  border-top: 1px solid var(--visucio-border);
  border-bottom: 1px solid var(--visucio-border);
}
.entity-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}
.entity-meta span {
  color: var(--visucio-text-secondary);
}
.entity-actions {
  display: flex;
  gap: 8px;
}
.plan-card {
  position: relative;
  overflow: hidden;
}
.plan-card.premium-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--visucio-primary);
}
.plan-price {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.04em;
  margin: 16px 0 5px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.feature-list li {
  display: flex;
  gap: 8px;
  font-size: 10px;
  line-height: 1.45;
}
.feature-list li:before {
  content: "✓";
  color: var(--visucio-success);
  font-weight: 900;
}
.plugin-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #172033;
  color: #fff;
  display: grid;
  place-items: center;
}
.plugin-card-icon svg {
  width: 23px;
}
.plugin-version {
  font-size: 9px;
  color: var(--visucio-text-secondary);
  margin-top: 3px;
}
.plugin-scope {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 45, 0.54);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(690px, 100%);
  max-height: min(88vh, 850px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(11, 21, 40, 0.25);
}
.modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--visucio-border);
}
.modal-header h2 {
  font-size: 18px;
  margin: 0 0 5px;
}
.modal-header p {
  font-size: 10px;
  color: var(--visucio-text-secondary);
  margin: 0;
}
.modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #f3f5f9;
  cursor: pointer;
}
.modal-body {
  padding: 22px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 22px;
  border-top: 1px solid var(--visucio-border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.form-grid .span-2 {
  grid-column: 1/-1;
}
.dropzone {
  border: 1.5px dashed #bbc9ed;
  border-radius: 15px;
  background: #f8faff;
  padding: 30px;
  text-align: center;
  cursor: pointer;
}
.dropzone svg {
  width: 30px;
  color: #3459b4;
}
.dropzone strong {
  display: block;
  font-size: 12px;
  margin: 12px 0 5px;
}
.dropzone span {
  font-size: 10px;
  color: var(--visucio-text-secondary);
}
.toast-region {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 200;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 40px));
}
.toast {
  background: #172033;
  color: #fff;
  border-radius: 13px;
  padding: 14px 16px;
  box-shadow: var(--visucio-shadow-md);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: toast-in 0.25s ease;
}
.toast.error {
  background: #a83443;
}
.toast.success {
  background: #17694f;
}
.toast strong {
  display: block;
  font-size: 11px;
}
.toast span {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  opacity: 0.8;
  line-height: 1.4;
}
@keyframes toast-in {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, #eef1f6 25%, #f8f9fc 50%, #eef1f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 10px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.page-skeleton {
  display: grid;
  gap: 16px;
}
.page-skeleton .skeleton {
  height: 130px;
}
.mobile-nav {
  display: none;
}
.drawer-backdrop {
  display: none;
}
.calculator {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(320px, 1fr);
  gap: 18px;
}
.calculator-result {
  min-height: 330px;
  background: #172033;
  color: #fff;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calculator-result .eyebrow {
  color: #93adff;
}
.result-number {
  font-size: clamp(38px, 6vw, 65px);
  font-weight: 850;
  letter-spacing: -0.06em;
  margin: 9px 0;
}
.calculator-result p {
  font-size: 11px;
  color: #cad3e3;
  line-height: 1.6;
}
.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.result-breakdown div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}
.result-breakdown span,
.result-breakdown strong {
  display: block;
}
.result-breakdown span {
  font-size: 8px;
  color: #9eacc1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.result-breakdown strong {
  font-size: 13px;
  margin-top: 5px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-18 {
  margin-top: 18px;
}
.mb-20 {
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .calculator {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    transform: translateX(-102%);
    width: 276px;
    box-shadow: var(--visucio-shadow-md);
    transition: 0.25s transform;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .drawer-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 28, 45, 0.42);
    z-index: 39;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .menu-toggle {
    display: grid;
  }
  .page {
    padding: 22px 18px 110px;
  }
  .login-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .login-brand {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: 30px;
  }
  .login-form .mobile-logo {
    display: block;
  }
  .mobile-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--visucio-border);
    border-radius: 17px;
    padding: 7px;
    box-shadow: 0 16px 45px rgba(17, 28, 52, 0.18);
    z-index: 35;
    backdrop-filter: blur(14px);
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    min-height: 48px;
    border-radius: 11px;
    color: var(--visucio-text-secondary);
    display: grid;
    place-items: center;
    gap: 2px;
    font-size: 8px;
    font-weight: 700;
  }
  .mobile-nav button.active {
    background: var(--visucio-primary-soft);
    color: #3459b4;
  }
  .mobile-nav svg {
    width: 18px;
    height: 18px;
  }
  .page-header {
    align-items: flex-start;
  }
  .top-actions .install-button {
    display: none;
  }
}
@media (max-width: 620px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card {
    min-height: 120px;
    padding: 15px;
  }
  .metric-card strong {
    font-size: 25px;
  }
  .metric-card small {
    font-size: 9px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    display: block;
  }
  .page-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar .button span {
    display: none;
  }
  .table-card {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .table-scroll {
    overflow: visible;
  }
  .data-table {
    min-width: 0;
    display: block;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody {
    display: grid;
    gap: 10px;
  }
  .data-table tr {
    display: block;
    background: #fff;
    border: 1px solid var(--visucio-border);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: var(--visucio-shadow-sm);
  }
  .data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border: 0;
    font-size: 10px;
  }
  .data-table td:before {
    content: attr(data-label);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--visucio-text-secondary);
    font-weight: 800;
  }
  .data-table td:first-child {
    border-bottom: 1px solid var(--visucio-border);
    padding-bottom: 13px;
  }
  .data-table td:first-child:before {
    display: none;
  }
  .data-table td:last-child {
    justify-content: flex-end;
    border-top: 1px solid var(--visucio-border);
    padding-top: 12px;
  }
  .data-table td:last-child:before {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .modal-backdrop {
    padding: 0;
    align-items: end;
  }
  .modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .calculator-result {
    min-height: 290px;
  }
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
  .activity-item {
    grid-template-columns: 34px 1fr;
  }
  .activity-item time {
    display: none;
  }
}
@media (max-width: 390px) {
  .page {
    padding-inline: 14px;
  }
  .topbar {
    padding-inline: 14px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric-card {
    min-height: 105px;
  }
  .login-panel {
    padding: 24px;
  }
  .login-form h2 {
    font-size: 27px;
  }
  .mobile-nav {
    inset-inline: 7px;
  }
  .mobile-nav button {
    font-size: 7px;
  }
  .modal-body,
  .modal-header {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landing pages personalizadas e gestão destrutiva protegida */
.table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.danger-confirmation { margin-bottom: 18px; padding: 16px; border: 1px solid color-mix(in srgb, #c93434 35%, var(--visucio-border)); border-radius: 14px; background: color-mix(in srgb, #c93434 7%, var(--visucio-surface)); }
.danger-confirmation strong { display: flex; align-items: center; gap: 8px; color: #b52525; }
.danger-confirmation strong svg { width: 20px; height: 20px; }
.danger-confirmation p { margin: 8px 0 0; color: var(--visucio-text-secondary); }
.landing-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 28px; }
.landing-editor .form-actions { margin-top: 24px; }
.landing-share { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--visucio-border); }
.landing-logo-upload { min-height: 150px; margin-top: 8px; }
.landing-logo-upload img { max-width: 200px; max-height: 72px; object-fit: contain; }
.landing-product-picker { display: grid; gap: 8px; margin-top: 8px; max-height: 520px; overflow: auto; padding-right: 4px; }
.landing-product-picker > label { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--visucio-border); border-radius: 12px; background: color-mix(in srgb, var(--visucio-surface) 88%, var(--visucio-background)); cursor: pointer; }
.landing-product-picker input { margin-top: 3px; accent-color: var(--visucio-primary); }
.landing-product-picker span { display: grid; gap: 3px; }
.landing-product-picker small { color: var(--visucio-text-secondary); line-height: 1.35; }
.partner-public-shell { min-height: 100vh; color: var(--visucio-text); background: radial-gradient(circle at 80% 10%, color-mix(in srgb, #6775ff 13%, transparent), transparent 32%), var(--visucio-background); }
.partner-public-header, .partner-public-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.partner-public-header { min-height: 84px; }
.partner-public-brands { display: flex; align-items: center; gap: 18px; min-width: 0; }
.partner-public-brands > img:first-child { width: 132px; height: 40px; object-fit: contain; }
.partner-brand-divider { width: 1px; height: 34px; background: var(--visucio-border); }
.partner-public-logo { width: auto; max-width: 170px; height: 46px; object-fit: contain; }
.partner-public-actions { display: flex; align-items: center; gap: 10px; }
.partner-public-shell main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.partner-public-hero { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 64px; padding: 64px 0 78px; }
.partner-public-hero h1 { max-width: 780px; margin: 10px 0 18px; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.partner-public-hero p { max-width: 700px; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: var(--visucio-text-secondary); }
.partner-public-hero small { display: block; margin-top: 22px; color: var(--visucio-text-secondary); }
.partner-public-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.partner-public-hero aside { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px; border: 1px solid var(--visucio-border); border-radius: 28px; background: color-mix(in srgb, var(--visucio-surface) 88%, transparent); box-shadow: var(--visucio-shadow-md); }
.partner-public-hero aside strong { margin-top: 24px; font-size: 24px; }
.partner-public-hero aside span { max-width: 260px; margin-top: 8px; color: var(--visucio-text-secondary); line-height: 1.5; }
.partner-public-orbit { width: 88px; height: 88px; display: grid; place-items: center; color: #fff; border-radius: 26px; background: linear-gradient(135deg, #5966f4, #ae66e8 55%, #56c6c6); box-shadow: 0 20px 60px rgba(92, 102, 244, .28); }
.partner-public-orbit svg { width: 44px; height: 44px; }
.partner-public-products { padding: 90px 0; border-top: 1px solid var(--visucio-border); scroll-margin-top: 24px; }
.partner-section-heading { max-width: 720px; margin-bottom: 34px; }
.partner-section-heading h2, .partner-public-cta h2 { margin: 8px 0 10px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; }
.partner-section-heading > p:last-child, .partner-public-cta p { color: var(--visucio-text-secondary); line-height: 1.6; }
.partner-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner-product-grid article { display: flex; flex-direction: column; min-height: 310px; padding: 24px; border: 1px solid var(--visucio-border); border-radius: 22px; background: var(--visucio-surface); box-shadow: var(--visucio-shadow-sm); }
.partner-product-grid article h3 { margin: 22px 0 10px; font-size: 22px; }
.partner-product-grid article p { flex: 1; margin: 0 0 22px; color: var(--visucio-text-secondary); line-height: 1.55; }
.partner-product-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--visucio-primary); background: color-mix(in srgb, var(--visucio-primary) 10%, var(--visucio-surface)); }
.partner-product-icon svg { width: 24px; height: 24px; }
.partner-public-cta { margin: 24px 0 90px; padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-radius: 28px; color: #fff; background: linear-gradient(130deg, #20212a, #34374c 60%, #5159a3); }
.partner-public-cta p, .partner-public-cta .eyebrow { color: rgba(255,255,255,.72); }
.partner-public-cta .button { flex: 0 0 auto; background: #fff; color: #17171a; }
.partner-public-footer { min-height: 110px; padding: 28px 0; border-top: 1px solid var(--visucio-border); color: var(--visucio-text-secondary); }
.partner-public-footer .partner-public-logo { height: 38px; }
html[data-theme="dark"] .partner-public-brands > img:first-child { content: url('/assets/logo-visucio-white.png'); }

@media (max-width: 900px) {
  .landing-editor-grid, .partner-public-hero { grid-template-columns: 1fr; }
  .partner-public-hero { gap: 30px; padding-top: 44px; }
  .partner-public-hero aside { min-height: 260px; }
  .partner-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .partner-public-header, .partner-public-footer, .partner-public-shell main { width: min(100% - 28px, 1180px); }
  .partner-public-header { min-height: 74px; }
  .partner-public-actions .button.ghost { display: none; }
  .partner-public-actions .button { padding-inline: 14px; }
  .partner-public-brands { gap: 10px; }
  .partner-public-brands > img:first-child { width: 102px; }
  .partner-public-logo { max-width: 100px; height: 34px; }
  .partner-public-hero { min-height: 0; padding: 48px 0 64px; }
  .partner-public-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .partner-product-grid { grid-template-columns: 1fr; }
  .partner-public-products { padding: 64px 0; }
  .partner-public-cta { align-items: flex-start; flex-direction: column; padding: 28px; }
  .partner-public-footer { align-items: flex-start; flex-direction: column; }
}

/* Core 1.10.2 — cadastro público de parceiros. */
.public-form-shell.partner-form-shell {
  grid-template-columns: minmax(0, 1fr);
  place-items: start center;
  padding: clamp(18px, 4vw, 48px);
  background: #f5f5f7;
}

.partner-form-shell .public-form-panel {
  width: min(100%, 980px);
  padding: 0;
  overflow: visible;
}

.partner-form-shell .public-long-form {
  width: 100%;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--visucio-border);
  border-radius: 20px;
  background: var(--visucio-surface, #fff);
  box-shadow: 0 18px 55px rgba(20, 24, 34, .07);
}

.partner-form-header {
  display: grid;
  grid-template-columns: minmax(112px, 144px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--visucio-border);
}

.partner-form-logo {
  display: block;
  width: 138px;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.partner-form-header h2 {
  margin: 5px 0 8px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.partner-form-header p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--visucio-text-secondary);
  line-height: 1.6;
}

.choice-help {
  margin: 0 0 14px;
  color: var(--visucio-text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.other-product {
  margin-top: 14px;
}

.payout-group .form-grid {
  margin-top: 4px;
}

.application-products,
.application-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.application-products > strong,
.application-certifications > strong,
.application-products > p,
.application-certifications > p {
  width: 100%;
}

.application-products > strong,
.application-certifications > strong {
  color: var(--visucio-text-secondary);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.application-products > p,
.application-certifications > p {
  margin: 2px 0 0;
  color: var(--visucio-text-secondary);
}

html[data-theme="dark"] .public-form-shell.partner-form-shell {
  background: #111114;
}

html[data-theme="dark"] .partner-form-shell .public-long-form {
  background: #19191c;
  box-shadow: none;
}

html[data-theme="dark"] .partner-form-logo {
  content: url('/assets/logo-visucio-white.png');
}

@media (max-width: 700px) {
  .public-form-shell.partner-form-shell {
    display: block;
    padding: 0;
  }

  .partner-form-shell .public-long-form {
    padding: 72px 20px 42px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .partner-form-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .partner-form-logo {
    width: 128px;
    max-height: 40px;
  }
}

/* Core 1.10 — candidatura, convites, comissão e acesso completo */
.public-form-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
  background: var(--visucio-background, #f5f6f8);
}

.public-form-shell .login-brand { min-height: 100vh; position: sticky; top: 0; }
.public-form-panel { padding: clamp(32px, 5vw, 76px); overflow: auto; }
.public-long-form { width: min(720px, 100%); margin: 0 auto; }
.public-long-form > h2,
.public-form-success h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.public-long-form > p { color: var(--visucio-text-secondary); line-height: 1.65; margin-bottom: 28px; }
.public-choice-group { border: 1px solid var(--visucio-border); border-radius: 14px; margin: 20px 0; padding: 20px; }
.public-choice-group legend { padding: 0 8px; font-weight: 750; }
.choice-row { display: flex; gap: 10px; margin-bottom: 16px; }
.choice-row label,
.certification-options label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 13px; border: 1px solid var(--visucio-border); border-radius: 10px; background: var(--visucio-surface, #fff); cursor: pointer; }
.choice-row input,
.certification-options input,
.legal-consent-row input { accent-color: #678fff; }
.certification-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.certification-options .certification-none { grid-column: 1 / -1; border-color: rgba(103, 143, 255, .42); }
.other-certification { margin-top: 14px; }
.public-form-success { min-height: 70vh; display: grid; place-content: center; text-align: center; justify-items: center; }
.public-form-success > p { max-width: 480px; color: var(--visucio-text-secondary); line-height: 1.65; }
.public-form-success > strong { margin-top: 18px; padding: 10px 14px; border-radius: 9px; background: rgba(103, 143, 255, .12); color: #4166c5; }
.advisor-referral-note { margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; background: rgba(103, 143, 255, .12); color: var(--visucio-text); font-size: 13px; }
.invitation-form { width: min(650px, 100%); }
.invitation-form .form-grid { margin: 22px 0; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-field input { min-width: 0; }
.commission-current { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 18px; }
.commission-current h2 { margin: 5px 0 8px; }
.commission-current p,
.commission-current small { color: var(--visucio-text-secondary); }
.commission-file-icon { width: 58px; height: 58px; display: grid; place-content: center; border-radius: 14px; background: rgba(103, 143, 255, .12); color: #577de4; }
.commission-file-icon svg { width: 26px; }
.commission-upload { display: grid; gap: 18px; }
.application-certifications { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.application-certifications p { width: 100%; margin: 2px 0 0; color: var(--visucio-text-secondary); }

html[data-theme="dark"] .public-form-shell { background: #111114; }
html[data-theme="dark"] .choice-row label,
html[data-theme="dark"] .certification-options label { background: #1d1d20; }
html[data-theme="dark"] .public-form-success > strong { color: #a9bcff; }

@media (max-width: 900px) {
  .public-form-shell { display: block; }
  .public-form-shell .login-brand { display: none; }
  .public-form-panel { padding: 30px 20px 60px; }
  .public-long-form .mobile-logo { display: block; }
}

@media (max-width: 620px) {
  .certification-options { grid-template-columns: 1fr; }
  .commission-current { grid-template-columns: auto 1fr; }
  .commission-current .button { grid-column: 1 / -1; }
  .copy-field { grid-template-columns: 1fr; }
}

.visucio-public-plugin-host {
  min-height: 100vh;
  background: #f3f6fa;
}

.public-load-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  background: #f3f6fa;
}

.public-load-error img { width: 138px; height: auto; }
.public-load-error h1 { margin: 8px 0 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.public-load-error p { max-width: 560px; margin: 0; color: #667085; }

/* Experiência do cliente: cabeçalho Visucio e navegação retrátil. */
.client-shell {
  --client-sidebar-collapsed: 74px;
  --client-sidebar-expanded: 252px;
  padding-top: 86px;
}
.client-header {
  position: fixed;
  z-index: 45;
  top: 12px;
  left: clamp(32px, 4vw, 76px);
  right: clamp(32px, 4vw, 76px);
  min-height: 62px;
  padding: 7px 14px 7px 18px;
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(360px, 1.5fr) minmax(170px, 0.8fr);
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(30, 49, 82, 0.1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.client-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-brand img {
  width: auto;
  height: 36px;
  max-width: 158px;
  object-fit: contain;
}
.client-mobile-menu {
  display: none;
}
.client-top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 24px);
}
.client-top-nav button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: var(--visucio-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.client-top-nav button:hover,
.client-top-nav button.active {
  background: var(--visucio-primary-soft);
  color: #294d9d;
}
.client-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}
.client-avatar {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #172033;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.client-sidebar {
  inset: 90px auto auto 18px;
  width: var(--client-sidebar-collapsed);
  height: min(680px, calc(100vh - 112px));
  max-height: calc(100vh - 112px);
  padding: 10px;
  border: 1px solid var(--visucio-border);
  border-radius: 16px;
  box-shadow: var(--visucio-shadow-sm);
  transition: width 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}
.client-sidebar .nav {
  overflow-x: hidden;
}
.client-sidebar .nav-button {
  width: 100%;
  padding: 0 16px;
  gap: 14px;
  white-space: nowrap;
}
.client-sidebar .nav-button svg {
  flex: 0 0 20px;
}
.client-sidebar .nav-button span,
.client-sidebar .profile-compact > div:nth-child(2),
.client-sidebar .logout-button,
.client-sidebar-toggle span {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}
.client-sidebar-toggle {
  width: 100%;
  min-height: 42px;
  margin-bottom: 8px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--visucio-text-secondary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.client-sidebar-toggle svg {
  width: 20px;
  flex: 0 0 20px;
  transform: rotate(180deg);
}
.client-sidebar .profile-compact {
  padding: 6px 8px;
}
.client-sidebar-expanded .client-sidebar {
  width: var(--client-sidebar-expanded);
}
.client-sidebar-expanded .client-sidebar .nav-button span,
.client-sidebar-expanded .client-sidebar .profile-compact > div:nth-child(2),
.client-sidebar-expanded .client-sidebar .logout-button,
.client-sidebar-expanded .client-sidebar-toggle span {
  opacity: 1;
  visibility: visible;
}
.client-sidebar-expanded .client-sidebar-toggle svg {
  transform: rotate(0);
}
.client-main {
  margin-left: calc(var(--client-sidebar-collapsed) + 36px);
  min-height: calc(100vh - 104px);
  transition: margin-left 0.22s ease;
}
.client-sidebar-expanded .client-main {
  margin-left: calc(var(--client-sidebar-expanded) + 36px);
}
.client-main .page {
  padding-top: 20px;
}
.client-overview-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.55fr);
  gap: 18px;
  align-items: stretch;
}
.client-intro-stack {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}
.client-welcome {
  min-height: 92px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--visucio-border);
  border-radius: 18px;
  box-shadow: var(--visucio-shadow-sm);
}
.client-welcome h1 {
  margin: 3px 0 5px;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.client-advisor-card {
  min-height: 92px;
  padding: 13px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--visucio-border);
  border-radius: 18px;
  box-shadow: var(--visucio-shadow-sm);
}
.client-advisor-card > .eyebrow { margin: 0 0 8px; }
.client-advisor {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}
.client-advisor.no-advisor { grid-template-columns: 34px minmax(0, 1fr); }
.client-advisor-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--visucio-primary-soft);
  color: #4269c9;
}
.client-advisor-avatar svg { width: 17px; height: 17px; }
.client-advisor small,
.client-advisor strong,
.client-advisor span { display: block; }
.client-advisor small { color: var(--visucio-text-secondary); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.client-advisor strong { margin-top: 1px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.client-advisor span { margin-top: 1px; color: var(--visucio-text-secondary); font-size: 10px; }
.client-whatsapp {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e8f8ee;
  color: #159447;
  transition: transform .18s ease, background .18s ease;
}
.client-whatsapp:hover { background: #d9f4e3; transform: translateY(-1px); }
.client-whatsapp svg { width: 19px; height: 19px; }
.client-welcome > div > p:last-child,
.client-section-heading p {
  margin: 0;
  color: var(--visucio-text-secondary);
  font-size: 12px;
  line-height: 1.55;
}
.client-notification-center,
.client-products {
  margin-top: 18px;
  padding: 25px 28px;
  background: #fff;
  border: 1px solid var(--visucio-border);
  border-radius: 18px;
  box-shadow: var(--visucio-shadow-sm);
}
.client-overview-grid .client-notification-center {
  margin-top: 0;
  min-height: 196px;
  padding: 17px 20px;
}
.client-overview-grid .client-notification-item {
  min-height: 46px;
  padding-block: 5px;
}
.client-overview-grid .client-section-heading {
  margin-bottom: 8px;
}
.client-overview-grid .client-section-heading h2 {
  font-size: 18px;
}
.client-overview-grid .client-section-heading p {
  font-size: 10px;
}
.client-overview-grid .empty-state {
  min-height: 74px;
  padding: 4px 12px 8px;
}
.client-overview-grid .empty-state .empty-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
}
.client-overview-grid .empty-state h3 {
  margin: 0 0 3px;
  font-size: 13px;
}
.client-overview-grid .empty-state p {
  font-size: 9px;
}
.client-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}
.client-section-heading h2 {
  margin: 3px 0 5px;
  font-size: 21px;
  letter-spacing: -0.025em;
}
.client-notification-list {
  display: grid;
}
.client-notification-item {
  width: 100%;
  min-height: 66px;
  padding: 12px 6px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 8px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--visucio-border);
  background: transparent;
  color: var(--visucio-text);
  text-align: left;
  cursor: pointer;
}
.client-notification-item:last-child {
  border-bottom: 0;
}
.client-notification-item:hover {
  background: #fafbfe;
}
.client-notification-item.read {
  opacity: 0.72;
}
.notification-type-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--visucio-primary-soft);
  color: #4269c9;
}
.notification-type-icon svg {
  width: 18px;
  height: 18px;
}
.client-notification-item strong,
.client-notification-item small {
  display: block;
}
.client-notification-item strong {
  margin-bottom: 4px;
  font-size: 12px;
}
.client-notification-item small {
  color: var(--visucio-text-secondary);
  font-size: 10px;
  line-height: 1.5;
}
.client-notification-item time {
  color: var(--visucio-text-secondary);
  font-size: 9px;
  white-space: nowrap;
}
.client-notification-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--visucio-primary);
}
.client-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.client-product-card {
  min-height: 178px;
  padding: 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  color: var(--visucio-text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.client-product-card:hover {
  transform: translateY(-2px);
  border-color: #9eb7ff;
  box-shadow: 0 12px 28px rgba(35, 62, 120, 0.1);
}
.client-product-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--visucio-primary);
  color: #fff;
  box-shadow: 0 9px 22px rgba(103, 143, 255, 0.3);
}
.client-product-icon svg {
  width: 27px;
  height: 27px;
}
.client-product-card small {
  color: var(--visucio-primary-strong);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.client-product-card h3 {
  margin: 6px 0 7px;
  font-size: 16px;
}
.client-product-card p {
  min-height: 46px;
  margin: 0 0 13px;
  color: var(--visucio-text-secondary);
  font-size: 10px;
  line-height: 1.5;
}
.client-product-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b72dc;
  font-size: 11px;
}
.client-product-card strong svg {
  width: 16px;
  height: 16px;
}

/* Configuração de e-mail e atualização do sistema. */
.settings-layout,
.update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.7fr);
  gap: 18px;
  align-items: start;
}
.settings-form,
.settings-help,
.update-upload-card,
.update-safety {
  padding: 24px;
}
.settings-form .form-grid {
  margin-top: 22px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.form-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
}
.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 11px;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span {
  width: 42px;
  height: 24px;
  padding: 3px;
  border-radius: 12px;
  background: #dce3ed;
  transition: background 0.18s ease;
}
.switch span:before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease;
}
.switch input:checked + span {
  background: var(--visucio-primary);
}
.switch input:checked + span:before {
  transform: translateX(18px);
}
.settings-help h2,
.update-safety h2 {
  margin: 18px 0 10px;
  font-size: 18px;
}
.settings-help > p,
.update-safety > p {
  color: var(--visucio-text-secondary);
  font-size: 11px;
  line-height: 1.65;
}
.settings-help dl,
.update-review dl {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.settings-help dl div,
.update-review dl div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fc;
}
.settings-help dt,
.update-review dt {
  color: var(--visucio-text-secondary);
  font-size: 9px;
}
.settings-help dd,
.update-review dd {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.safe-note {
  padding: 12px 14px;
  border: 1px solid #dce7ff;
  border-radius: 11px;
  background: #f5f8ff;
  color: #40577e;
  font-size: 10px;
  line-height: 1.55;
}
.safe-note strong,
.safe-note span {
  display: block;
}
.safe-note span {
  margin-top: 4px;
}
.upload-zone {
  min-height: 210px;
  margin: 5px 0 15px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #9db3dc;
  border-radius: 14px;
  background: #f9fbff;
  cursor: pointer;
  text-align: center;
}
.upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.upload-zone svg {
  width: 30px;
  height: 30px;
  color: #5074cb;
}
.upload-zone strong {
  font-size: 13px;
}
.upload-zone span {
  color: var(--visucio-text-secondary);
  font-size: 10px;
}
.update-review {
  padding-top: 10px;
}
.update-version-flow {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 17px;
}
.update-version-flow svg {
  width: 22px;
  color: var(--visucio-primary-strong);
}
.update-notes {
  margin: 15px 0 0;
  padding-left: 18px;
  color: var(--visucio-text-secondary);
  font-size: 10px;
  line-height: 1.7;
}
.table-subline {
  display: block;
  margin-top: 4px;
  color: var(--visucio-text-secondary);
  font-size: 9px;
}

@media (max-width: 1200px) {
  .client-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .client-shell {
    padding-top: 91px;
  }
  .client-header {
    top: 10px;
    left: 10px;
    right: 10px;
    min-height: 66px;
    grid-template-columns: 1fr auto;
    padding: 8px 12px;
  }
  .client-mobile-menu {
    display: grid;
  }
  .client-top-nav {
    display: none;
  }
  .client-header-actions .install-button {
    display: none;
  }
  .client-sidebar,
  .client-sidebar-expanded .client-sidebar {
    inset: 88px auto auto 10px;
    width: 268px;
    height: min(680px, calc(100vh - 108px));
    transform: translateX(calc(-100% - 18px));
  }
  .client-sidebar.open {
    transform: translateX(0);
  }
  .client-sidebar .nav-button span,
  .client-sidebar .profile-compact > div:nth-child(2),
  .client-sidebar .logout-button,
  .client-sidebar-toggle span {
    opacity: 1;
    visibility: visible;
  }
  .client-sidebar-toggle {
    display: none;
  }
  .client-main,
  .client-sidebar-expanded .client-main {
    margin-left: 0;
  }
  .client-main .page {
    padding-top: 8px;
  }
  .settings-layout,
  .update-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .client-overview-grid {
    grid-template-columns: 1fr;
  }
  .client-welcome,
  .client-advisor-card,
  .client-overview-grid .client-notification-center {
    min-height: 0;
  }
}

.client-header .button {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.client-overview-grid .button.small {
  min-height: 34px;
  padding: 7px 13px;
}
.client-profile-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.client-profile-summary {
  position: sticky;
  top: 100px;
  padding: 25px;
  text-align: center;
}
.profile-large-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #172238;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}
.client-profile-summary h2 { margin: 0; font-size: 21px; }
.client-profile-summary > p { margin: 5px 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.profile-completion { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.profile-completion > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.profile-completion-track { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #e8eefb; }
.profile-completion-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.client-profile-summary dl { margin: 18px 0 0; text-align: left; }
.client-profile-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.client-profile-summary dt { color: var(--muted); }
.client-profile-summary dd { margin: 0; font-weight: 700; text-align: right; }
.client-profile-form { padding: 0 26px; }
.profile-edit-notice { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding: 13px 15px; border: 1px solid #d9e5ff; border-radius: 12px; background: #f4f7ff; color: #294b9a; }
.profile-edit-notice svg { width: 21px; height: 21px; flex: 0 0 auto; }
.profile-edit-notice strong, .profile-edit-notice span { display: block; }
.profile-edit-notice span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.client-profile-form > section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.profile-section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.profile-section-title h2 { margin: 2px 0 0; font-size: 20px; }
.profile-section-title .eyebrow { margin: 0; }
.identity-title .switch { flex-shrink: 0; }
.profile-save-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 0 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.profile-save-bar .form-status { margin-right: auto; }

@media (max-width: 900px) {
  .client-profile-layout { grid-template-columns: 1fr; }
  .client-profile-summary { position: static; }
}
@media (max-width: 700px) {
  .client-header {
    border-radius: 14px;
  }
  .client-brand img {
    height: 36px;
    max-width: 145px;
  }
  .client-header-actions {
    gap: 6px;
  }
  .client-avatar {
    display: none;
  }
  .client-welcome {
    display: block;
    padding: 12px;
  }
  .client-notification-center.is-empty { display: none; }
  .client-intro-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 10px;
  }
  .client-welcome,
  .client-advisor-card {
    min-height: 126px;
    border-radius: 14px;
  }
  .client-advisor-card { padding: 12px 10px; }
  .client-welcome h1 { font-size: 15px; line-height: 1.12; }
  .client-welcome > div > p:last-child { font-size: 9px; line-height: 1.4; }
  .client-welcome .eyebrow,
  .client-advisor-card > .eyebrow { font-size: 8px; }
  .client-advisor-card > .eyebrow { margin-bottom: 8px; }
  .client-advisor { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 5px; }
  .client-advisor.no-advisor { grid-template-columns: 28px minmax(0, 1fr); }
  .client-advisor-avatar,
  .client-whatsapp { width: 28px; height: 28px; border-radius: 8px; }
  .client-advisor-avatar svg,
  .client-whatsapp svg { width: 15px; height: 15px; }
  .client-advisor small { font-size: 7px; }
  .client-advisor strong { font-size: 10px; }
  .client-advisor span { font-size: 8px; overflow-wrap: anywhere; }
  .client-welcome .button {
    margin-top: 18px;
  }
  .client-notification-center,
  .client-products {
    padding: 20px;
  }
  .client-product-grid {
    grid-template-columns: 1fr;
  }
  .client-notification-item {
    grid-template-columns: 38px minmax(0, 1fr) 7px;
  }
  .client-notification-item time {
    display: none;
  }
  .client-section-heading {
    display: block;
  }
  .client-section-heading .button {
    margin-top: 12px;
  }
  .settings-form,
  .settings-help,
  .update-upload-card,
  .update-safety {
    padding: 19px;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions .button {
    width: 100%;
  }
  .client-profile-form { padding: 0 19px; }
  .profile-section-title { align-items: flex-start; }
  .identity-title { display: block; }
  .identity-title .switch { margin-top: 14px; }
  .profile-save-bar { align-items: stretch; flex-direction: column; }
  .profile-save-bar .button { width: 100%; }
}

/* Refinamento visual fintech premium — identidade Visucio, sem gradientes. */
:root {
  --visucio-background: #f3f6fb;
  --visucio-surface: #ffffff;
  --visucio-text: #131b2a;
  --visucio-text-secondary: #66758c;
  --visucio-border: #dfe6f0;
  --visucio-radius-md: 13px;
  --visucio-radius-lg: 18px;
  --visucio-shadow-sm: 0 8px 24px rgba(22, 38, 68, 0.055);
  --visucio-shadow-md: 0 18px 44px rgba(22, 38, 68, 0.11);
  --fintech-ease: cubic-bezier(.22, 1, .36, 1);
}
body {
  background: #f3f6fb;
  color-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.login-shell { background: #edf2f8; }
.login-brand {
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(12, 24, 46, .18);
}
.login-brand:after {
  width: 430px;
  height: 430px;
  right: -155px;
  bottom: -210px;
  background: rgba(103, 143, 255, .16);
  border: 1px solid rgba(148, 174, 255, .24);
}
.login-panel {
  border: 1px solid rgba(220, 228, 240, .82);
  box-shadow: 0 22px 64px rgba(25, 43, 76, .08);
}
.sidebar {
  border-right-color: rgba(218, 226, 238, .88);
  box-shadow: 12px 0 36px rgba(24, 40, 70, .035);
}
.topbar {
  background: rgba(243, 246, 251, .82);
  border-bottom-color: rgba(215, 224, 237, .7);
  box-shadow: 0 8px 30px rgba(27, 45, 78, .025);
}
.page-header h1,
.client-section-heading h2,
.card-header h2 {
  color: #111a2b;
  font-weight: 780;
}
.metric-card,
.card,
.table-card,
.client-welcome,
.client-advisor-card,
.client-notification-center,
.client-products {
  border-color: rgba(216, 225, 238, .94);
  box-shadow: 0 10px 30px rgba(22, 38, 68, .055), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.metric-card {
  border-top: 2px solid rgba(103, 143, 255, .72);
}
.metric-card[data-tone="green"] { border-top-color: rgba(33, 150, 111, .62); }
.metric-card[data-tone="violet"] { border-top-color: rgba(118, 84, 203, .58); }
.metric-card[data-tone="amber"] { border-top-color: rgba(183, 121, 31, .6); }
.button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(80, 116, 215, .18);
  transition: transform .24s var(--fintech-ease), box-shadow .24s var(--fintech-ease), background-color .2s ease, border-color .2s ease;
}
.button.secondary,
.button.ghost { box-shadow: none; }
.button:active:not(:disabled) { transform: translateY(0) scale(.975); }
.icon-button,
.client-avatar,
.logout-button,
.client-whatsapp {
  transition: transform .22s var(--fintech-ease), box-shadow .22s var(--fintech-ease), background-color .2s ease, color .2s ease;
}
.icon-button:hover,
.client-avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(31, 50, 86, .11);
}
.field input,
.field select,
.field textarea,
.search-input {
  border-color: #d9e2ef;
  background: rgba(255, 255, 255, .96);
  transition: border-color .2s ease, box-shadow .22s ease, transform .22s var(--fintech-ease), background-color .2s ease;
}
.field input:hover:not(:disabled),
.field select:hover:not(:disabled),
.field textarea:hover:not(:disabled),
.search-input:hover {
  border-color: #bfcce0;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(103, 143, 255, .11), 0 8px 22px rgba(38, 68, 128, .06);
}
.nav-button,
.client-top-nav button,
.client-sidebar-toggle,
.mobile-nav button {
  position: relative;
  transition: transform .23s var(--fintech-ease), background-color .2s ease, color .2s ease, box-shadow .22s ease;
}
.nav-button:hover,
.client-top-nav button:hover { transform: translateX(2px); }
.nav-button.active {
  box-shadow: inset 3px 0 0 var(--visucio-primary);
}
.client-top-nav button.active {
  box-shadow: inset 0 -2px 0 var(--visucio-primary);
}
.client-header {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 42px rgba(28, 47, 82, .1), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.client-sidebar {
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 14px 38px rgba(25, 43, 76, .085);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.quick-action,
.entity-card,
.metric-card,
.client-product-card,
.client-notification-item {
  transition: transform .28s var(--fintech-ease), border-color .22s ease, box-shadow .28s var(--fintech-ease), background-color .22s ease;
}
.client-product-card {
  border-color: #d8e1ee;
  box-shadow: 0 8px 24px rgba(24, 43, 79, .045);
}
.client-product-icon {
  box-shadow: 0 10px 24px rgba(74, 111, 215, .24);
  transition: transform .3s var(--fintech-ease), box-shadow .3s var(--fintech-ease);
}
.client-product-card strong svg {
  transition: transform .25s var(--fintech-ease);
}
.data-table th {
  background: #f7f9fc;
  color: #6d7c92;
}
.data-table tbody tr {
  transition: background-color .18s ease, box-shadow .18s ease;
}
.data-table tbody tr:hover {
  background: #f7f9fe;
  box-shadow: inset 3px 0 0 rgba(103, 143, 255, .75);
}
.badge {
  border: 1px solid rgba(103, 143, 255, .12);
  font-weight: 760;
}
.modal-backdrop { animation: fintech-fade .22s ease both; }
.modal {
  border: 1px solid rgba(220, 228, 239, .9);
  box-shadow: 0 34px 90px rgba(11, 25, 50, .24);
  animation: fintech-modal .34s var(--fintech-ease) both;
}
.toast { animation: fintech-toast .38s var(--fintech-ease) both; }
.skeleton {
  background: #e9eef5;
  animation: fintech-pulse 1.15s ease-in-out infinite alternate;
}
.page > :not(.page-skeleton),
.login-form,
.register-form {
  animation: fintech-rise .42s var(--fintech-ease) both;
}
.metrics > *,
.cards-grid > *,
.client-product-grid > *,
.quick-actions > * {
  animation: fintech-card-in .42s var(--fintech-ease) both;
}
.metrics > *:nth-child(2),
.cards-grid > *:nth-child(2),
.client-product-grid > *:nth-child(2),
.quick-actions > *:nth-child(2) { animation-delay: 45ms; }
.metrics > *:nth-child(3),
.cards-grid > *:nth-child(3),
.client-product-grid > *:nth-child(3),
.quick-actions > *:nth-child(3) { animation-delay: 90ms; }
.metrics > *:nth-child(4),
.cards-grid > *:nth-child(4),
.client-product-grid > *:nth-child(4),
.quick-actions > *:nth-child(4) { animation-delay: 135ms; }
.client-welcome { animation: fintech-card-in .38s var(--fintech-ease) both; }
.client-advisor-card { animation: fintech-card-in .38s 55ms var(--fintech-ease) both; }
.client-notification-center { animation: fintech-card-in .42s 80ms var(--fintech-ease) both; }
.mobile-nav {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(216, 225, 237, .9);
  box-shadow: 0 14px 36px rgba(20, 37, 68, .15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
@media (hover: hover) {
  .metric-card:hover,
  .entity-card:hover,
  .client-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 143, 255, .5);
    box-shadow: 0 20px 42px rgba(24, 43, 79, .11);
  }
  .quick-action:hover { transform: translateY(-3px); }
  .client-product-card:hover .client-product-icon {
    transform: translateY(-2px) scale(1.035);
    box-shadow: 0 15px 30px rgba(74, 111, 215, .3);
  }
  .client-product-card:hover strong svg { transform: translateX(4px); }
  .client-notification-item:hover { transform: translateX(3px); }
  .client-whatsapp:hover { transform: translateY(-2px) scale(1.04); }
}
@keyframes fintech-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fintech-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fintech-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fintech-modal {
  from { opacity: 0; transform: translateY(16px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fintech-toast {
  from { opacity: 0; transform: translateX(18px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fintech-pulse {
  from { opacity: .62; }
  to { opacity: 1; }
}
@media (max-width: 700px) {
  .page > :not(.page-skeleton) { animation-duration: .3s; }
  .client-header { box-shadow: 0 10px 30px rgba(28, 47, 82, .1); }
  .client-product-card { box-shadow: 0 7px 20px rgba(24, 43, 79, .05); }
}

/* Direção visual banco digital premium: alto contraste, precisão e leveza. */
:root {
  --visucio-background: #f3f6fa;
  --visucio-surface: #ffffff;
  --visucio-text: #101216;
  --visucio-text-secondary: #6d727b;
  --visucio-border: #e2e3e1;
  --visucio-primary-soft: #edf1ff;
  --visucio-radius-md: 11px;
  --visucio-radius-lg: 15px;
  --visucio-shadow-sm: 0 4px 14px rgba(16, 18, 22, .035);
  --visucio-shadow-md: 0 16px 38px rgba(16, 18, 22, .1);
  --bank-ease: cubic-bezier(.2, .8, .2, 1);
}
html,
body { background: #f3f6fa; }
.login-shell { background: #edf1f6; }
.login-brand {
  background: #0c0e12;
  border-radius: 18px;
  box-shadow: none;
}
.login-brand:after {
  width: 330px;
  height: 330px;
  right: -125px;
  bottom: -170px;
  background: #171d2b;
  border: 1px solid rgba(103, 143, 255, .22);
}
.login-panel {
  border-radius: 18px;
  border-color: #e0e1df;
  box-shadow: none;
}
.login-copy h1 {
  max-width: 680px;
  font-weight: 720;
  letter-spacing: -.05em;
}
.login-points span {
  border-radius: 8px;
  background: #17191f;
  border-color: #292d36;
}
.sidebar {
  background: #fff;
  border-right-color: #dedfdd;
  box-shadow: none;
}
.unit-card {
  background: #11141a;
  color: #fff;
  border-radius: 10px;
}
.unit-card span { color: #aeb5c0; }
.unit-avatar {
  background: var(--visucio-primary);
  color: #0e1117;
}
.nav-button {
  border-radius: 8px;
  color: #686e78;
  transition: background-color .18s ease, color .18s ease, transform .2s var(--bank-ease);
}
.nav-button:hover { transform: translateX(2px); background: #f0f0ee; color: #11141a; }
.nav-button.active {
  color: #fff;
  background: #11141a;
  box-shadow: none;
}
.topbar {
  background: rgba(243, 246, 250, .9);
  border-bottom-color: #dedfdd;
  box-shadow: none;
}
.page { max-width: 1540px; }
.page-header h1 {
  font-weight: 720;
  letter-spacing: -.045em;
}
.eyebrow {
  color: #4f6fc8;
  letter-spacing: .13em;
}
.metric-card,
.card,
.table-card,
.client-welcome,
.client-advisor-card,
.client-notification-center,
.client-products {
  border-color: #e0e1df;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(16, 18, 22, .035);
}
.metric-card,
.metric-card[data-tone="green"],
.metric-card[data-tone="violet"],
.metric-card[data-tone="amber"] {
  border-top: 1px solid #e0e1df;
}
.metric-card {
  min-height: 132px;
  background: #fff;
}
.metric-icon,
.metric-card[data-tone="green"] .metric-icon,
.metric-card[data-tone="violet"] .metric-icon,
.metric-card[data-tone="amber"] .metric-icon {
  background: #11141a;
  color: #fff;
  border-radius: 9px;
}
.metric-card strong {
  color: #0d1015;
  font-weight: 720;
}
.button {
  border-radius: 9px;
  box-shadow: none;
  font-weight: 760;
  transition: transform .2s var(--bank-ease), box-shadow .2s ease, background-color .18s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(72, 103, 190, .2);
}
.button.ghost {
  background: #fff;
  border-color: #d9dad8;
}
.button.ghost:hover {
  color: #fff;
  background: #11141a;
  border-color: #11141a;
  box-shadow: none;
}
.icon-button {
  border-radius: 9px;
  border-color: #dedfdd;
}
.field input,
.field select,
.field textarea,
.search-input {
  min-height: 47px;
  border-radius: 9px;
  border-color: #d8d9d7;
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  transform: none;
  border-color: #11141a;
  box-shadow: 0 0 0 3px rgba(103, 143, 255, .14);
}
.quick-action {
  border-radius: 10px;
  border-color: #dedfdd;
}
.quick-action svg { color: #11141a; }
.quick-action:hover {
  color: #fff;
  background: #11141a;
  border-color: #11141a;
}
.quick-action:hover span,
.quick-action:hover svg { color: #cbd0d9; }
.table-card { border-radius: 11px; }
.data-table th {
  background: #11141a;
  color: #dce0e7;
  font-weight: 700;
}
.data-table tbody tr:hover {
  background: #f1f3f8;
  box-shadow: inset 3px 0 0 var(--visucio-primary);
}
.entity-card {
  border-radius: 11px;
  box-shadow: none;
}
.plugin-card-icon {
  background: #11141a;
  border-radius: 10px;
}
.client-header {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(222, 223, 221, .9);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(16, 18, 22, .075);
}
.client-top-nav button { border-radius: 7px; }
.client-top-nav button:hover { transform: none; background: #f0f0ee; color: #11141a; }
.client-top-nav button.active {
  color: #11141a;
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--visucio-primary);
}
.client-avatar {
  background: #11141a;
  border-radius: 9px;
}
.client-sidebar {
  background: #11141a;
  border-color: #242832;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(16, 18, 22, .13);
}
.client-sidebar .nav-button { color: #aeb5c0; }
.client-sidebar .nav-button:hover {
  color: #fff;
  background: #20242d;
}
.client-sidebar .nav-button.active {
  color: #101319;
  background: var(--visucio-primary);
}
.client-sidebar-toggle {
  color: #b8bec8;
  background: #1a1e26;
}
.client-sidebar .sidebar-footer { border-top-color: #2a2e37; }
.client-sidebar .profile-compact strong { color: #fff; }
.client-sidebar .profile-compact span { color: #9da5b1; }
.client-sidebar .logout-button { color: #aeb5c0; }
.client-sidebar .avatar { background: var(--visucio-primary); color: #11141a; }
.client-welcome {
  color: #fff;
  background: #11141a;
  border-color: #11141a;
}
.client-welcome .eyebrow { color: #9eb6ff; }
.client-welcome h1 { color: #fff; font-weight: 700; }
.client-welcome > div > p:last-child { color: #b8bec8; }
.client-advisor-card {
  background: #fff;
  border-color: #dedfdd;
}
.client-advisor-avatar {
  color: #fff;
  background: #11141a;
  border-radius: 8px;
}
.client-whatsapp { border-radius: 8px; }
.client-notification-center,
.client-products { background: #fff; }
.client-notification-item:hover {
  transform: none;
  background: #f2f3f1;
}
.client-product-card {
  border-radius: 11px;
  border-color: #dedfdd;
  box-shadow: none;
}
.client-product-icon {
  color: #fff;
  background: #11141a;
  border-radius: 10px;
  box-shadow: none;
}
.client-product-card h3 { font-weight: 720; }
.client-product-card strong { color: #4b6ecb; }
.client-product-card:hover {
  border-color: #11141a;
  box-shadow: 0 14px 30px rgba(16, 18, 22, .09);
}
.client-product-card:hover .client-product-icon {
  background: var(--visucio-primary);
  color: #11141a;
  box-shadow: none;
}
.badge {
  border-radius: 6px;
  border: 0;
}
.modal-backdrop { background: rgba(8, 10, 13, .62); }
.modal {
  border-radius: 14px;
  border-color: #dfe0de;
  box-shadow: 0 36px 90px rgba(8, 10, 13, .28);
  animation: bank-modal .24s var(--bank-ease) both;
}
.modal-header { border-bottom-color: #e2e3e1; }
.mobile-nav {
  background: rgba(17, 20, 26, .94);
  border-color: #2b3039;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(8, 10, 13, .22);
}
.mobile-nav button { color: #aeb5c0; }
.mobile-nav button.active { color: #11141a; background: var(--visucio-primary); }
.page > :not(.page-skeleton),
.login-form,
.register-form { animation: bank-enter .3s var(--bank-ease) both; }
.metrics > *,
.cards-grid > *,
.client-product-grid > *,
.quick-actions > * { animation: bank-option .3s var(--bank-ease) both; }
@media (hover: hover) {
  .metric-card:hover,
  .entity-card:hover,
  .client-product-card:hover {
    transform: translateY(-3px);
    border-color: #bfc1bf;
    box-shadow: 0 14px 30px rgba(16, 18, 22, .075);
  }
  .client-product-card:hover { border-color: #11141a; }
  .client-product-card:hover .client-product-icon { transform: scale(1.03); }
}
@keyframes bank-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bank-option {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bank-modal {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  .client-header { border-radius: 10px; }
  .client-welcome,
  .client-advisor-card { border-radius: 10px; }
  .client-sidebar { border-radius: 10px; }
  .client-product-card { border-radius: 10px; }
}
.captcha-slot{border:1px solid #dbe3f0;background:#f8faff;border-radius:14px;padding:12px;min-height:72px;display:grid;place-items:center;gap:6px}.captcha-slot[hidden]{display:none}.captcha-slot.validated{border-color:#a7e8cd;background:#f0fff8}.captcha-help,.captcha-error{font-size:12px;margin:0;text-align:center}.captcha-help{color:#667085}.captcha-error{color:#b42318}

.ai-plugin-list { display: grid; gap: 10px; margin-top: 12px; }
.ai-plugin-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #dfe4ec; border-radius: 10px; background: #f8faff; cursor: pointer; }
.ai-plugin-option:has(input:checked) { border-color: #678fff; background: #f2f6ff; }
.ai-plugin-option input { width: 18px; height: 18px; accent-color: #678fff; }
.ai-plugin-option span { display: grid; gap: 3px; min-width: 0; }
.ai-plugin-option strong { color: #11141a; }
.ai-plugin-option small { color: #667085; overflow-wrap: anywhere; }

/* Visucio 1.8 — interface serena, simples e orientada ao conteúdo. */
:root {
  --visucio-primary: #678fff;
  --visucio-primary-strong: #4f73d9;
  --visucio-primary-soft: #f0f4ff;
  --visucio-background: #ffffff;
  --visucio-surface: #ffffff;
  --visucio-text: #202123;
  --visucio-text-secondary: #6b6b6f;
  --visucio-border: #e5e5e5;
  --visucio-radius-sm: 8px;
  --visucio-radius-md: 12px;
  --visucio-radius-lg: 16px;
  --visucio-shadow-sm: none;
  --visucio-shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
  --visucio-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sidebar: 252px;
  --calm-ease: cubic-bezier(.2, .7, .3, 1);
}

html,
body {
  background: var(--visucio-background);
}

body {
  color: var(--visucio-text);
  letter-spacing: -.005em;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px;
  background: #f7f7f8;
}

.login-brand {
  display: none;
}

.login-panel {
  width: min(100%, 480px);
  margin: 0;
  padding: clamp(32px, 7vw, 52px);
  border: 1px solid var(--visucio-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.login-form .mobile-logo {
  display: block;
  width: 154px;
  margin: 0 auto 42px;
}

.login-form h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.eyebrow {
  color: var(--visucio-primary-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
}

.field {
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 12px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea,
.search-input {
  min-height: 46px;
  border-color: #dedede;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  transform: none;
  border-color: #9bb4f7;
  box-shadow: 0 0 0 3px rgba(103, 143, 255, .12);
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--visucio-primary);
  color: #101828;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}

.button:hover,
.button:active:not(:disabled) {
  transform: none;
  box-shadow: none;
  background: #5d84ed;
}

.button.secondary,
.button.ghost {
  border-color: #dedede;
  background: #fff;
  color: var(--visucio-text);
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: #c9c9c9;
  background: #f5f5f5;
  color: var(--visucio-text);
}

.button.danger {
  background: #fff;
  border-color: #f0caca;
  color: #b42318;
}

.sidebar {
  width: var(--sidebar);
  padding: 20px 14px;
  border-right: 1px solid var(--visucio-border);
  background: #f7f7f8;
  box-shadow: none;
}

.sidebar-logo {
  height: 52px;
  padding-inline: 10px;
}

.sidebar-logo img {
  width: 155px;
}

.unit-card {
  margin: 8px 0 18px;
  padding: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fff;
  color: var(--visucio-text);
}

.unit-card span {
  color: var(--visucio-text-secondary);
}

.unit-avatar,
.avatar,
.client-avatar {
  border-radius: 9px;
  background: #2f3033;
  color: #fff;
}

.nav {
  gap: 2px;
}

.nav-button {
  min-height: 41px;
  border-radius: 9px;
  color: #5f6065;
  font-weight: 600;
  transition: background-color .14s ease, color .14s ease;
}

.nav-button:hover,
.nav-button.active {
  transform: none;
  background: #e9e9eb;
  color: #202123;
  box-shadow: none;
}

.nav-button.active {
  font-weight: 700;
}

.main {
  margin-left: var(--sidebar);
  background: #fff;
}

.topbar {
  height: 68px;
  padding: 0 30px;
  border-bottom: 1px solid var(--visucio-border);
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.icon-button,
.logout-button,
.client-whatsapp {
  border-radius: 9px;
  box-shadow: none;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

.icon-button:hover,
.client-avatar:hover {
  transform: none;
  box-shadow: none;
}

.icon-button:hover {
  background: #f3f3f3;
}

.page {
  max-width: 1440px;
  padding: 32px 36px 90px;
}

.page-header {
  margin-bottom: 28px;
  align-items: center;
}

.page-header h1 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -.04em;
}

.page-header p {
  max-width: 720px;
  color: var(--visucio-text-secondary);
}

.metric-card,
.card,
.table-card,
.client-welcome,
.client-advisor-card,
.client-notification-center,
.client-products {
  border: 1px solid var(--visucio-border);
  border-radius: var(--visucio-radius-md);
  background: #fff;
  box-shadow: none;
}

.metric-card,
.metric-card[data-tone="green"],
.metric-card[data-tone="violet"],
.metric-card[data-tone="amber"] {
  min-height: 124px;
  border-top: 1px solid var(--visucio-border);
}

.metric-card:hover,
.entity-card:hover,
.client-product-card:hover {
  transform: none;
  border-color: #cfcfcf;
  box-shadow: none;
}

.metric-icon,
.metric-card[data-tone="green"] .metric-icon,
.metric-card[data-tone="violet"] .metric-icon,
.metric-card[data-tone="amber"] .metric-icon,
.plugin-card-icon,
.client-product-icon {
  border-radius: 9px;
  background: var(--visucio-primary-soft);
  color: #4f73d9;
  box-shadow: none;
}

.quick-action,
.entity-card,
.client-product-card,
.client-notification-item {
  box-shadow: none;
  transition: background-color .14s ease, border-color .14s ease;
}

.quick-action:hover,
.client-notification-item:hover {
  transform: none;
  border-color: #d4d4d4;
  background: #f7f7f8;
  color: var(--visucio-text);
}

.quick-action:hover span,
.quick-action:hover svg {
  color: inherit;
}

.table-card {
  overflow: hidden;
}

.data-table th {
  background: #f7f7f8;
  color: #68686d;
  font-weight: 650;
}

.data-table tbody tr:hover {
  background: #fafafa;
  box-shadow: none;
}

.badge {
  border: 0;
  border-radius: 999px;
  font-weight: 650;
}

.modal-backdrop {
  background: rgba(0, 0, 0, .38);
  animation: calm-fade .16s ease both;
}

.modal {
  border: 1px solid var(--visucio-border);
  border-radius: 14px;
  box-shadow: var(--visucio-shadow-md);
  animation: calm-dialog .18s var(--calm-ease) both;
}

.toast {
  border: 1px solid var(--visucio-border);
  border-left-width: 3px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  animation: calm-dialog .18s var(--calm-ease) both;
}

.page > :not(.page-skeleton),
.login-form,
.register-form,
.metrics > *,
.cards-grid > *,
.client-product-grid > *,
.quick-actions > *,
.client-welcome,
.client-advisor-card,
.client-notification-center {
  animation: none;
}

.client-shell {
  --client-sidebar-collapsed: 70px;
  --client-sidebar-expanded: 240px;
  padding-top: 68px;
  background: #fff;
}

.client-header {
  top: 0;
  left: 0;
  right: 0;
  min-height: 68px;
  padding: 8px 24px;
  border: 0;
  border-bottom: 1px solid var(--visucio-border);
  border-radius: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.client-brand img {
  height: 32px;
}

.client-top-nav button {
  border-radius: 8px;
  color: #5f6065;
  font-weight: 600;
}

.client-top-nav button:hover,
.client-top-nav button.active {
  transform: none;
  background: #f0f0f1;
  color: #202123;
  box-shadow: none;
}

.client-sidebar {
  inset: 68px auto 0 0;
  height: calc(100vh - 68px);
  max-height: none;
  padding: 12px 10px;
  border: 0;
  border-right: 1px solid var(--visucio-border);
  border-radius: 0;
  background: #f7f7f8;
  box-shadow: none;
  backdrop-filter: none;
}

.client-sidebar .nav-button {
  color: #5f6065;
}

.client-sidebar .nav-button:hover,
.client-sidebar .nav-button.active {
  background: #e9e9eb;
  color: #202123;
}

.client-sidebar-toggle {
  border-radius: 9px;
  background: transparent;
  color: #6b6b6f;
}

.client-sidebar .sidebar-footer {
  border-top-color: #dedede;
}

.client-sidebar .profile-compact strong,
.client-sidebar .profile-compact span,
.client-sidebar .logout-button {
  color: inherit;
}

.client-main {
  margin-left: calc(var(--client-sidebar-collapsed) + 12px);
}

.client-sidebar-expanded .client-main {
  margin-left: calc(var(--client-sidebar-expanded) + 12px);
}

.client-welcome {
  padding: 16px 18px;
  border-color: transparent;
  background: transparent;
  color: var(--visucio-text);
}

.client-welcome .eyebrow {
  color: var(--visucio-primary-strong);
}

.client-welcome h1 {
  color: var(--visucio-text);
}

.client-welcome > div > p:last-child {
  color: var(--visucio-text-secondary);
}

.client-advisor-card,
.client-notification-center,
.client-products {
  border-color: var(--visucio-border);
  background: #fff;
}

.client-advisor-avatar,
.client-product-icon {
  color: #4f73d9;
  background: var(--visucio-primary-soft);
}

.client-product-card {
  border-color: var(--visucio-border);
  border-radius: 12px;
  box-shadow: none;
}

.client-product-card:hover,
.client-product-card:hover .client-product-icon {
  transform: none;
  border-color: #cfcfcf;
  background: #f7f7f8;
  color: #4f73d9;
  box-shadow: none;
}

.mobile-nav {
  border: 1px solid var(--visucio-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  backdrop-filter: blur(12px);
}

.mobile-nav button {
  color: #68686d;
}

.mobile-nav button.active {
  background: #ededee;
  color: #202123;
}

.captcha-slot,
.ai-plugin-option,
.upload-zone,
.safe-note,
.profile-edit-notice {
  border-radius: 10px;
  background: #f7f7f8;
}

@keyframes calm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes calm-dialog {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .login-shell { padding: 14px; }
  .login-panel { padding: 30px 24px; }
  .page { padding: 24px 18px 96px; }
  .topbar { padding-inline: 18px; }
  .client-header { padding-inline: 16px; }
}

@media (max-width: 700px) {
  .client-header,
  .client-sidebar,
  .client-welcome,
  .client-advisor-card,
  .client-product-card { border-radius: 0; }
  .client-main,
  .client-sidebar-expanded .client-main { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
