/* Dashboard shell --------------------------------------------------------- */
:root {
  --dashboard-pink: #9F288A;
  --dashboard-pink-dark: #a91372;
  --dashboard-yellow: #ffbe0b;
  --dashboard-ink: #21182b;
  --dashboard-muted: #71819c;
  --dashboard-line: #e8e2e8;
  --dashboard-surface: #ffffff;
  --dashboard-bg: #fbf7fa;
}

body.vida-body {
  background: var(--dashboard-bg);
  color: var(--dashboard-ink);
}

.vida-body .sidebar {
  width: 280px;
  flex: 0 0 280px;
  padding: 0 14px;
  background: #fff;
  border: 0;
  border-right: 1px solid #e8e3e8;
  box-shadow: 14px 0 32px rgb(69 36 59 / 3%);
  color: #655b69;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--dashboard-pink), var(--dashboard-yellow) 57%, transparent 82%);
}

.vida-body .brand {
  min-height: 94px;
  margin: 0 -14px 8px;
  padding: 17px 21px;
  gap: 12px;
  border-bottom: 1px solid #ece6eb;
  background: linear-gradient(110deg, #fff, #fff5fb);
}

.vida-body .brand-logo {
  width: 47px;
  height: 47px;
  flex-basis: 47px;
  border: 2px solid var(--dashboard-yellow);
  box-shadow: 0 3px 10px rgb(73 27 59 / 18%);
}

.brand > div { min-width: 0; }
.brand > div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--dashboard-pink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  white-space: nowrap;
}
.vida-body .brand strong { color: #251b2e; font-size: 15px; }
.vida-body .brand small { color: #776c7a; font-size: 11px; }
.vida-body .sidebar nav { gap: 4px; }
.vida-body .nav-section {
  margin: 12px 11px 6px;
  color: #a49aa8;
  font-size: 9px;
  letter-spacing: .14em;
}
.vida-body .sidebar nav a,
.vida-body .nav-disabled {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
  border-radius: 9px;
  color: #6b606f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.vida-body .sidebar nav a svg,
.vida-body .nav-disabled svg { flex: 0 0 20px; color: #9a8d9d; }
.vida-body .sidebar nav a:hover,
.vida-body .sidebar nav a.active {
  background: #f9ebf5;
  color: var(--dashboard-pink-dark);
  box-shadow: inset 3px 0 0 var(--dashboard-pink);
}
.vida-body .sidebar nav a.active svg { color: var(--dashboard-pink); }
.vida-body .sidebar nav a b {
  min-width: 24px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 20px;
  background: #f9e1f1;
  color: var(--dashboard-pink);
  font-size: 10px;
  text-align: center;
}
.vida-body .nav-disabled { cursor: default; }
.sidebar-integration {
  margin-top: 17px;
  padding-top: 9px;
  border-top: 1px solid #ece7eb;
}
.sidebar-integration a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  border-radius: 9px;
  color: #27313e;
  text-decoration: none;
}
.sidebar-integration a:hover { background: #f6fbf9; }
.sidebar-integration svg { color: #05a77e; }
.sidebar-integration span { flex: 1; }
.sidebar-integration strong,
.sidebar-integration small { display: block; }
.sidebar-integration strong { font-size: 12px; }
.sidebar-integration small { margin-top: 2px; color: #8b8190; font-size: 9px; }
.sidebar-integration i { width: 9px; height: 9px; border-radius: 50%; background: #13b98b; box-shadow: 0 0 0 5px #e0f8f0; }
.sidebar-bottom {
  margin: auto -14px 0;
  padding: 17px 22px 10px;
  border-top: 1px solid #ece7eb;
}
.theme-preview { display: flex; align-items: center; gap: 12px; color: #6b606f; }
.theme-preview > svg { color: #c58b00; }
.theme-preview strong,
.theme-preview small { display: block; }
.theme-preview strong { font-size: 12px; }
.theme-preview small { margin-top: 2px; color: #99909d; font-size: 9px; }
.sidebar-version { display: flex; justify-content: space-between; margin: 22px 0 0; color: #aaa1ad; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.sidebar-version b { font-weight: 600; }

.vida-body .main-content {
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 32px clamp(26px, 3vw, 48px) 70px;
  background:
    radial-gradient(circle at 88% 7%, rgb(255 190 11 / 5%), transparent 24rem),
    var(--dashboard-bg);
}

.mobile-nav-trigger { display: none; }
.sidebar-backdrop { display: none; }
.dashboard-hero {
  position: relative;
  display: flex;
  min-height: 134px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 25px 28px;
  overflow: hidden;
  border: 1px solid var(--dashboard-line);
  border-left: 3px solid var(--dashboard-pink);
  border-radius: 14px;
  background: var(--dashboard-surface);
  box-shadow: 0 10px 25px rgb(76 35 63 / 7%);
}
.dashboard-hero::after { content: ""; position: absolute; top: 0; right: 8px; width: 72px; height: 2px; background: var(--dashboard-yellow); }
.dashboard-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-hero h1 { margin: 9px 0 4px; font-size: clamp(24px, 2.2vw, 31px); letter-spacing: -.035em; }
.dashboard-hero p { margin: 0; color: var(--dashboard-muted); font-size: 13px; }
.dashboard-primary-action { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding-inline: 19px; border-radius: 9px; white-space: nowrap; }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.dashboard-status-overview { margin-bottom: 24px; padding: 22px; border: 1px solid var(--dashboard-line); border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgb(76 35 63 / 5%); }
.dashboard-status-overview__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.dashboard-status-overview__heading h2 { margin: 4px 0 0; font-size: 18px; }
.dashboard-status-overview__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.status-summary-card { min-height: 108px; padding: 16px; border: 1px solid #e9e4e8; border-radius: 11px; background: #fff; color: var(--dashboard-ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.status-summary-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgb(76 35 63 / 10%); }
.status-summary-card span { display: flex; align-items: center; gap: 7px; color: var(--dashboard-muted); font-size: 11px; font-weight: 800; }
.status-summary-card span i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.status-summary-card strong { display: block; margin-top: 14px; font-size: 27px; line-height: 1; }
.status-summary-card small { display: block; margin-top: 5px; color: var(--dashboard-muted); font-size: 10px; }
.status-summary-card--in_progress span i { background: #f28a00; }.status-summary-card--usage_follow_up span i { background: #0bb68a; }.status-summary-card--closed span i { background: #64748b; }.status-summary-card--frozen span i { background: #60a5fa; }.status-summary-card--cancelled span i { background: #e05252; }
.metric-card {
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--dashboard-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgb(76 35 63 / 5%);
}
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-heading > span { color: #6e7f9a; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.metric-heading > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; font-style: normal; }
.metric-progress .metric-heading > i { background: #fff0fa; color: #de2aa1; }
.metric-clients .metric-heading > i { background: #eef5ff; color: #2269ee; }
.metric-implanting .metric-heading > i { background: #fff7e7; color: #f28a00; }
.metric-completed .metric-heading > i { background: #eafaf5; color: #08a67d; }
.metric-card > strong { display: block; margin: 17px 0 6px; color: #11192b; font-size: 22px; }
.metric-card > small { display: block; color: #8293ae; font-size: 11px; }
.dashboard-progress { height: 7px; overflow: hidden; border-radius: 10px; background: #edf1f6; }
.dashboard-progress i { display: block; height: 100%; border-radius: inherit; background: var(--dashboard-pink); }
.metric-card > .dashboard-progress { margin-top: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(270px, 1fr); align-items: start; gap: 24px; }
.dashboard-card { border: 1px solid var(--dashboard-line); border-radius: 12px; background: #fff; box-shadow: 0 7px 18px rgb(76 35 63 / 5%); }
.dashboard-card h2 { margin: 0; font-size: 13px; }
.dashboard-card-title { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 15px 19px; border-bottom: 1px solid #eceff3; }
.dashboard-card-title a { display: inline-flex; align-items: center; gap: 6px; color: var(--dashboard-pink); font-size: 11px; font-weight: 700; text-decoration: none; }
.dashboard-client-list { padding: 14px 19px 19px; }
.dashboard-client { padding: 16px; border: 1px solid #e9edf2; border-radius: 10px; background: #fcfdff; }
.dashboard-client + .dashboard-client { margin-top: 12px; }
.dashboard-client-heading { display: flex; min-width: 0; align-items: center; gap: 9px; }
.client-dot { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; background: var(--client-color); }
.dashboard-client-heading > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.plan-label { color: #8191aa; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; white-space: nowrap; }
.client-access { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--dashboard-pink); font-size: 10px; text-decoration: none; }
.dashboard-client-progress-copy { display: flex; justify-content: space-between; margin: 14px 0 5px; color: #71819c; font-size: 10px; }
.dashboard-client-progress-copy strong { color: #263246; font-size: 10px; }
.client-progress i { background: var(--client-color); }
.pending-step-list { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #e9edf2; }
.pending-step-list > span { max-width: 190px; overflow: hidden; padding: 4px 8px; border: 1px solid #e1e5ea; border-radius: 5px; background: white; color: #5f6e84; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pending-step-list > span i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--dashboard-yellow); }
.pending-step-list small { color: #8796ae; font-size: 9px; }
.dashboard-client-footer { display: flex; align-items: flex-end; gap: 12px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #e9edf2; }
.dashboard-client-footer .pending-step-list { flex: 1; margin: 0; padding: 0; border: 0; }
.add-pending-issue-button {
  display: inline-flex;
  min-height: 29px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #e3b3d2;
  border-radius: 7px;
  background: #fff8fc;
  color: var(--dashboard-pink);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.add-pending-issue-button:hover { border-color: var(--dashboard-pink); background: #fff0f9; }
.add-pending-issue-button:focus-visible { outline: 2px solid var(--dashboard-pink); outline-offset: 2px; }
.client-pending-issues { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.client-pending-issues strong { color: #697991; font-size: 9px; }
.client-pending-issues span { padding: 4px 7px; border-radius: 5px; background: #fff4e5; color: #995d00; font-size: 9px; }
.dashboard-empty { padding: 38px 20px; color: #8a97aa; text-align: center; }
.dashboard-empty > span { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: #eafaf5; color: #08a67d; }
.dashboard-empty strong { display: block; color: #344054; font-size: 13px; }
.dashboard-empty p { margin: 4px 0 0; font-size: 11px; }
.status-card { padding: 22px 19px; }
.status-card h2 { margin-bottom: 17px; }
.status-line + .status-line { margin-top: 14px; }
.status-line > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #5d6c82; font-size: 10px; }
.status-line span { display: flex; align-items: center; gap: 6px; }
.status-line span i { width: 9px; height: 9px; border-radius: 50%; }
.status-line strong { color: #304057; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-track { height: 6px; overflow: hidden; border-radius: 9px; background: #edf1f6; }
.status-track i { display: block; height: 100%; border-radius: inherit; }
.status-implanting span i, .status-implanting .status-track i { background: #ff9900; }
.status-completed span i, .status-completed .status-track i { background: #0bb68a; }
.status-in_progress span i, .status-in_progress .status-track i { background: #f28a00; }
.status-usage_follow_up span i, .status-usage_follow_up .status-track i { background: #0bb68a; }
.status-closed span i, .status-closed .status-track i { background: #64748b; }
.status-frozen span i, .status-frozen .status-track i { background: #60a5fa; }
.status-cancelled span i, .status-cancelled .status-track i { background: #e05252; }
.frozen-note { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #edf0f3; color: #8a97aa; font-size: 9px; line-height: 1.5; }

@media (max-width: 1100px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-status-overview__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .status-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
  .status-card h2, .frozen-note { grid-column: 1 / -1; }
  .status-line + .status-line { margin-top: 0; }
}

@media (max-width: 800px) {
  .vida-body .sidebar {
    display: flex;
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    transform: translateX(-102%);
    transition: transform .22s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; z-index: 40; inset: 0; padding: 0; border: 0; background: rgb(25 17 28 / 38%); }
  .mobile-nav-trigger { display: grid; width: 40px; height: 40px; place-content: center; gap: 4px; margin-bottom: 15px; border: 1px solid var(--dashboard-line); border-radius: 9px; background: #fff; }
  .mobile-nav-trigger span { display: block; width: 18px; height: 2px; background: #5c5060; }
  .vida-body .main-content { padding: 18px 16px 48px; }
}

@media (max-width: 620px) {
  .dashboard-hero { display: block; padding: 22px 20px; }
  .dashboard-primary-action { margin-top: 19px; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-status-overview { padding: 18px; }
  .dashboard-status-overview__heading { align-items: flex-start; flex-direction: column; }
  .dashboard-status-overview__grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 126px; }
  .status-card { display: block; }
  .status-line + .status-line { margin-top: 14px; }
  .dashboard-card-title { align-items: flex-start; gap: 12px; }
  .dashboard-client-heading { flex-wrap: wrap; }
  .client-access { margin-left: 23px; }
  .plan-label { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .vida-body .sidebar { transition: none; }
}

:root {
  --pink: #c02d91;
  --yellow: #ffd400;
  --ink: #33213a;
  --muted: #75657b;
  --line: #eadce7;
  --bg: #fffafd;
}

body {
  background:
    radial-gradient(circle at 88% 8%, rgb(255 212 0 / 7%), transparent 24rem),
    radial-gradient(circle at 14% 92%, rgb(192 45 145 / 7%), transparent 30rem),
    var(--bg);
}

.main-content {
  max-width: none;
  margin: 0;
  padding: 34px clamp(24px, 3.2vw, 64px) 70px;
}

.sidebar {
  background: linear-gradient(165deg, #48163d 0%, #741952 52%, #9f246f 100%);
  border-right: 4px solid var(--yellow);
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 18px rgb(0 0 0 / 22%);
}

.brand small,
.sidebar-foot { color: #ead5e5; }
.sidebar nav a { color: #f3dfea; }
.sidebar nav a:hover,
.sidebar nav a.active {
  color: white;
  background: rgb(255 255 255 / 14%);
  box-shadow: inset 3px 0 0 var(--yellow);
}
.nav-section { display: block; margin: 22px 12px 7px; color: #d9b9cf; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.button {
  background: var(--pink);
  box-shadow: 0 5px 14px rgb(192 45 145 / 20%);
}
.button:hover { background: #a8217c; }
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(255 212 0 / 45%);
  outline-offset: 2px;
}
.stats article:first-child { border-top: 3px solid var(--yellow); }
.card,
.form-card,
.stats article { box-shadow: 0 8px 24px rgb(116 25 82 / 6%); }
.chip { background: #fae5f3; color: #8c1b69; }

.settings-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 32px 36px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  border-radius: 16px;
  box-shadow: 0 9px 28px rgb(116 25 82 / 8%);
}
.settings-hero::after { content: ""; position: absolute; top: 0; right: 0; width: 56px; height: 3px; background: var(--yellow); }
.settings-hero h1 { margin: 9px 0 7px; font-size: clamp(26px, 2vw, 34px); letter-spacing: -.025em; }
.settings-hero p, .config-heading p, .section-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.hero-icon, .section-intro > span { color: var(--pink); }
.config-card, .stage-config {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(116 25 82 / 7%);
}
.config-card { padding: 26px; margin-bottom: 34px; }
.config-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 21px; border-bottom: 1px solid #f1e8ef; }
.config-heading h2, .section-intro h2 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.015em; }
.count-pill { background: #f4f1f5; color: #65566b; border-radius: 20px; padding: 5px 10px; font-size: 11px; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.settings-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.settings-tab:hover, .settings-tab.active { border-color: #ead8e5; background: #fcf1f8; color: var(--pink); }
.settings-tab:focus-visible, .settings-option:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.settings-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.settings-option { display: block; text-decoration: none; color: inherit; transition: border-color .18s ease; }
.settings-option:hover { border-color: var(--pink); }
.settings-option h2 { margin: 20px 0 8px; font-size: 20px; }
.settings-option p { color: var(--muted); font-size: 13px; line-height: 1.65; min-height: 44px; }
.settings-option > .icon-label { margin-top: 22px; color: var(--pink); font-size: 12px; font-weight: 600; }
.settings-option-icon { display: inline-flex; padding: 12px; background: #fcf1f8; border-radius: 10px; color: var(--pink); }
.pending-catalog-form { display: grid; grid-template-columns: minmax(0, 1fr) 74px auto; align-items: end; gap: 16px; margin-top: 20px; }
.pending-catalog-form > div { display: grid; gap: 8px; min-width: 0; }
.pending-catalog-form label { font-size: 12px; font-weight: 600; color: var(--muted); }
.pending-catalog-form input { width: 100%; min-width: 0; height: 44px; padding: 10px 12px; box-sizing: border-box; }
.pending-catalog-form input[type="color"] { padding: 4px; cursor: pointer; }
.pending-catalog-form button { min-height: 44px; justify-content: center; }
.pending-catalog-list { display: grid; gap: 14px; margin-top: 20px; }
.pending-catalog-item { padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.pending-catalog-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pending-catalog-summary small { flex: 1; color: var(--muted); font-size: 12px; }
.pending-catalog-summary form { margin: 0; }
.pending-catalog-editor { margin-top: 14px; }
.pending-catalog-editor summary { width: fit-content; color: var(--muted); font-size: 12px; cursor: pointer; padding: 5px 0; }
.pending-catalog-editor summary:hover { color: var(--pink); }
.settings-errors { margin-top: 16px; color: #b42340; font-size: 13px; }
.settings-empty { color: var(--muted); font-size: 13px; padding: 14px 0; }
.pending-issue-badge.pending-issue-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--pending-issue-color) 35%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--pending-issue-color) 10%, white); color: color-mix(in srgb, var(--pending-issue-color) 60%, #172033); font-size: 12px; overflow-wrap: anywhere; }
.pending-issue-badge > i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--pending-issue-color); }
html[data-theme="dark"] .settings-tab:hover, html[data-theme="dark"] .settings-tab.active, html[data-theme="dark"] .settings-option-icon { background: #292128; border-color: #4e3446; color: #dfa2c7; }
html[data-theme="dark"] .pending-issue-badge.pending-issue-badge { background: color-mix(in srgb, var(--pending-issue-color) 15%, #1a191e); color: color-mix(in srgb, var(--pending-issue-color) 45%, white); }
html[data-theme="dark"] .settings-errors { color: #f1a1ae; }
@media (max-width: 900px) {
  .settings-options { grid-template-columns: 1fr; gap: 0; }
  .settings-option p { min-height: 0; }
}
@media (max-width: 600px) {
  .settings-tab { padding: 10px 12px; }
  .pending-catalog-form { grid-template-columns: minmax(0, 1fr) 64px; }
  .pending-catalog-form button { grid-column: 1 / -1; }
  .pending-catalog-item { padding: 14px; }
}
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 12px; padding: 21px 0 15px; }
.module-config, .template-row { border: 1px solid #ece5ec; background: linear-gradient(135deg, #fff 0%, #fdfafd 100%); border-radius: 11px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.module-config:hover, .template-row:hover { border-color: #dfbdd3; box-shadow: 0 5px 16px rgb(116 25 82 / 7%); }
.module-display, .template-display { display: flex; min-height: 56px; padding: 11px 13px; gap: 12px; align-items: center; }
.module-display strong, .template-display strong { flex: 1; font-size: 13px; line-height: 1.35; }
.position-number { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: #fae8f4; color: var(--pink); font-size: 12px; font-weight: 800; }
.row-tools { display: flex; align-items: center; gap: 1px; }
.row-tools form { display: flex; margin: 0; }
.icon-button { appearance: none; border: 0; padding: 5px; background: transparent; color: #91a0b5; font-size: 14px; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.icon-button:hover { color: var(--pink); }
.edit-button:hover { background: #fae5f3; border-radius: 6px; }
.icon-button:not(:disabled):active { transform: scale(.88); }
.icon-button.delete:hover { color: #e11d48; }
.icon-button:disabled { cursor: default; opacity: .25; }
.inline-editor { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 8px; padding: 9px; }
.inline-editor[hidden], [hidden] { display: none !important; }
.inline-editor input { min-width: 0; width: 100%; padding: 10px 11px; }
.mini-save, .mini-cancel { border: 0; border-radius: 7px; padding: 10px 15px; font-size: 11px; cursor: pointer; }
.mini-save { background: var(--pink); color: white; }
.mini-cancel { background: #f1edf1; color: #65566b; }
.add-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(160px, .32fr); gap: 10px; }
.add-row input { min-width: 0; width: 100%; font-size: 13px; padding: 12px 13px; }
.add-button { border: 0; border-radius: 9px; padding: 0 20px; background: linear-gradient(135deg, #d778bb, var(--pink)); color: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.section-intro { display: flex; align-items: center; gap: 12px; margin: 0 0 20px 4px; }
.section-intro > span { font-size: 20px; }
.stages-list { display: grid; gap: 20px; }
.stage-config { overflow: hidden; scroll-margin-top: 12px; }
.stage-config summary { display: flex; align-items: center; gap: 14px; padding: 19px 20px; cursor: pointer; list-style: none; background: linear-gradient(90deg, #fff, #fffcfe); }
.stage-config summary::-webkit-details-marker { display: none; }
.stage-config summary strong { flex: 1; text-transform: uppercase; font-size: 13px; }
.stage-config summary small { color: #94a3b8; font-size: 10px; }
.stage-number { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: linear-gradient(145deg, #172033, #342443); color: white; font-size: 12px; font-weight: 800; box-shadow: 0 5px 12px rgb(23 32 51 / 16%); }
.chevron { color: #94a3b8; transition: transform .2s; }
.stage-config:not([open]) .chevron { transform: rotate(180deg); }
.stage-items { padding: 8px 20px 20px; border-top: 1px solid #f0e9ef; }
.template-row { margin-top: 10px; }
.template-display { min-height: 53px; }
.item-number { width: 16px; color: #b7aabc; font-size: 10px; text-align: center; }
.visibility-pill { min-width: 61px; border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 900; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.visibility-pill:active { transform: scale(.94); }
.visibility-pill[aria-busy="true"] { cursor: wait; opacity: .6; }
.visibility-pill.private { border: 1px solid #fecdd3; background: #fff1f2; color: #e11d48; }
.visibility-pill.public { border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; }
.template-display > form, .visibility-control form { margin: 0; }
.visibility-control { flex: 0 0 auto; }
.stage-add { margin-top: 11px; grid-template-columns: minmax(260px, 1fr) 140px 54px; }
.stage-add-button { width: 100%; border: 0; border-radius: 9px; background: linear-gradient(145deg, #172033, #342443); color: white; font-size: 18px; cursor: pointer; }
.weight-pill {
  display: inline-flex;
  min-width: 88px;
  min-height: 27px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #536174;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}
.weight-pill > span { color: #8793a5; font-size: 8px; font-weight: 700; }
.weight-pill strong { flex: initial; font-size: 9px; line-height: 1; }
.weight-pill.low { border-color: #cbd5e1; background: #f8fafc; color: #526174; }
.weight-pill.medium { border-color: #fde68a; background: #fffbeb; color: #a16207; }
.weight-pill.high { border-color: #f5b7d9; background: #fff4fa; color: #a91372; }
.weight-pill.compact { min-width: 56px; min-height: 23px; padding: 3px 7px; }
.template-editor { grid-template-columns: minmax(180px, 1fr) 135px auto auto; }
.weight-editor { display: grid; gap: 3px; }
.weight-editor label { color: #756979; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.weight-editor select { min-width: 0; width: 100%; padding: 9px 10px; font-size: 11px; }
.template-choice-title { flex: 1; }
@media (max-width: 650px) {
  .settings-hero, .config-card { padding: 17px; }
  .module-grid { grid-template-columns: 1fr; }
  .template-display { flex-wrap: wrap; }
  .template-display strong { min-width: calc(100% - 40px); }
  .template-display .visibility-control { margin-left: 26px; }
  .template-display .row-tools { margin-left: auto; }
  .add-row { grid-template-columns: 1fr; align-items: stretch; }
  .add-button { padding-inline: 12px; }
  .stage-add { grid-template-columns: 1fr 110px 48px; }
  .template-editor { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .module-config, .template-row, .icon-button, .visibility-pill { transition: none; }
}

/* Client registration wizard */
.client-wizard { width: 100%; }
.wizard-hero { display: flex; align-items: flex-start; justify-content: space-between; }
.wizard-back { color: #746677; text-decoration: none; font-size: 12px; font-weight: 700; padding: 6px; }
.wizard-back:hover { color: var(--pink); }
.wizard-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; padding: 24px 12%; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgb(116 25 82 / 7%); }
.wizard-progress::before { content: ""; position: absolute; top: 39px; left: 18%; right: 18%; height: 2px; background: #e4eaf2; }
.wizard-indicator { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; color: #8693a6; }
.wizard-indicator span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf2f7; font-size: 11px; font-weight: 800; transition: .2s ease; }
.wizard-indicator strong { font-size: 11px; }
.wizard-indicator.is-active, .wizard-indicator.is-complete { color: var(--pink); }
.wizard-indicator.is-active span, .wizard-indicator.is-complete span { background: var(--pink); color: white; box-shadow: 0 5px 14px rgb(192 45 145 / 24%); }
.wizard-step { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgb(116 25 82 / 7%); }
.wizard-section-heading { padding-bottom: 17px; margin-bottom: 20px; border-bottom: 1px solid #efe7ee; }
.wizard-section-heading h2 { margin: 0 0 5px; font-size: 18px; }
.wizard-section-heading p, fieldset > p { margin: 0; color: var(--muted); font-size: 12px; }
.wizard-field { margin-bottom: 18px; }
.wizard-field label, .contact-grid label, .plan-fieldset legend, .module-fieldset legend, .templates-fieldset legend { display: block; margin-bottom: 7px; color: #4e4253; font-size: 12px; font-weight: 750; }
.wizard-field > input[type="text"], .wizard-field textarea { width: 100%; }
.wizard-field textarea { resize: vertical; min-height: 84px; }
.status-dependent-field { padding: 14px; border: 1px solid #d7e8e2; border-radius: 10px; background: #f5fbf9; }
.status-dependent-field[hidden] { display: none; }
.status-dependent-field small { display: block; margin-top: 7px; color: #6f7d78; font-size: 10px; }
.color-picker-line { display: flex; align-items: center; gap: 8px; }
.color-picker-line input[type="color"] { width: 42px; height: 42px; padding: 2px; cursor: pointer; }
.color-picker-line input[type="text"] { width: 120px; text-transform: uppercase; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.color-swatch { width: 31px; height: 31px; padding: 0; border: 3px solid white; border-radius: 9px; background: var(--swatch); box-shadow: 0 0 0 1px #dfe4eb; cursor: pointer; }
.color-swatch.is-selected { box-shadow: 0 0 0 2px var(--pink), 0 3px 9px rgb(192 45 145 / 20%); }
.contacts-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: 24px; padding: 18px 0 11px; border-top: 1px solid #efe7ee; }
.contacts-heading h3 { margin: 0 0 4px; font-size: 12px; }
.contacts-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.outline-action { padding: 9px 12px; border: 1px solid #d8dce4; border-radius: 8px; background: white; color: #4e4253; font-weight: 700; cursor: pointer; }
.contact-panel { margin-top: 10px; padding: 18px; border: 1px solid #f3bddf; border-radius: 12px; background: linear-gradient(135deg, #fffafd, #fff); }
.contact-panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.contact-panel-title strong { font-size: 13px; }
.contact-panel-title span { padding: 3px 7px; border-radius: 12px; background: #fae5f3; color: var(--pink); font-size: 9px; font-weight: 900; }
.contact-panel-title button { margin-left: auto; border: 0; background: transparent; color: #dc2626; cursor: pointer; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.contact-grid input { width: 100%; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #efe7ee; }
.wizard-actions.end { justify-content: flex-end; }
.text-action { padding: 9px; border: 0; background: transparent; color: #65748a; font-weight: 700; cursor: pointer; }
.wizard-actions .button:disabled { cursor: wait; opacity: .7; }
.plan-fieldset, .module-fieldset, .templates-fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-card { position: relative; display: block; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card span { display: block; min-height: 72px; padding: 15px; border: 1px solid #dfe3ea; border-radius: 10px; background: white; transition: .18s ease; }
.plan-card strong, .plan-card small { display: block; }
.plan-card strong { margin-bottom: 5px; font-size: 13px; }
.plan-card small { color: var(--muted); font-size: 11px; }
.plan-card input:checked + span { border-color: var(--pink); background: #fff7fc; box-shadow: 0 0 0 1px var(--pink); }
.module-fieldset > p, .templates-fieldset > p { margin: -3px 0 12px; }
.module-choice-list { display: grid; gap: 8px; }
.module-choice-list label { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #dfe3ea; border-radius: 9px; background: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.module-choice-list input, .stage-selection input { accent-color: var(--pink); }
.stage-selection { overflow: hidden; margin-top: 12px; border: 1px solid #f0d9e8; border-radius: 10px; }
.stage-selection-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff5fb; }
.stage-selection-head label { display: flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 12px; }
.stage-selection-head span { color: var(--pink); font-size: 10px; }
.stage-selection-items { display: grid; gap: 10px; padding: 13px 15px; }
.stage-selection-items label { display: flex; align-items: center; gap: 8px; color: #5c4f61; font-size: 12px; }
.review-card { overflow: hidden; border: 1px solid #dfe5ed; border-radius: 12px; background: #fbfcfe; }
.review-banner { display: flex; align-items: center; justify-content: space-between; padding: 20px; color: white; }
.review-banner strong { font-size: 19px; }.review-banner span { padding: 5px 9px; border-radius: 15px; background: rgb(255 255 255 / 22%); font-size: 11px; font-weight: 800; }
.review-content { display: grid; gap: 20px; padding: 24px; }
.review-block h3 { margin: 0 0 9px; color: #8a9ab0; font-size: 11px; letter-spacing: .03em; }
.review-block p { margin: 0; color: #66758a; font-size: 12px; }
.review-chip { display: inline-block; margin: 0 6px 6px 0; padding: 6px 10px; border: 1px solid #dde3eb; border-radius: 7px; background: white; font-size: 12px; font-weight: 700; }
.review-empty { color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .wizard-hero { display: block; }.wizard-back { display: inline-block; margin-top: 12px; }
  .wizard-progress { padding-inline: 4%; }.wizard-indicator strong { text-align: center; }
  .wizard-step { padding: 18px; }.contact-grid, .plan-grid { grid-template-columns: 1fr; }
  .contacts-heading { align-items: flex-start; flex-direction: column; }
}

/* WhatsApp settings */
.whatsapp-page-hero { display: flex; align-items: flex-start; justify-content: space-between; }
.integration-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.integration-state i { width: 8px; height: 8px; border-radius: 50%; }
.integration-state.online { background: #dcfce7; color: #08745a; }.integration-state.online i { background: #21c997; box-shadow: 0 0 0 4px rgb(33 201 151 / 13%); }
.integration-state.offline { background: #f1f5f9; color: #64748b; }.integration-state.offline i { background: #94a3b8; }
.whatsapp-shell { max-width: 760px; margin: 0 auto; overflow: hidden; border: 1px solid #cfd7e2; border-radius: 24px; background: white; box-shadow: 0 24px 60px rgb(51 33 58 / 13%); }
.whatsapp-titlebar { display: flex; align-items: center; gap: 13px; padding: 25px 28px 18px; border-bottom: 1px solid #e8edf2; }
.whatsapp-logo { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #8ceccf; border-radius: 13px; background: #eafff8; color: #059669; font-size: 22px; }
.whatsapp-titlebar h2 { margin: 0 0 4px; font-size: 20px; }.whatsapp-titlebar p { margin: 0; color: #718097; font-size: 12px; }
.whatsapp-tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid #e8edf2; }
.whatsapp-tabs button { position: relative; padding: 13px 16px; border: 0; background: transparent; color: #718097; font-size: 12px; font-weight: 800; cursor: pointer; }
.whatsapp-tabs button::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px; background: transparent; }
.whatsapp-tabs button.is-active { color: #08745a; }.whatsapp-tabs button.is-active::after { background: #08a77a; }
.connection-success, .connection-setup { margin: 24px 28px; padding: 30px; border: 1px solid #76e6bf; border-radius: 19px; background: #edfff8; text-align: center; }
.success-check, .whatsapp-illustration { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border: 14px solid #c9f7e7; border-radius: 50%; background: #e4fff5; color: #087c60; font-size: 23px; font-weight: 900; }
.connection-success h3, .connection-setup h3 { margin: 0 0 9px; color: #075e4a; font-size: 19px; }.connection-success > p, .connection-setup > p { max-width: 560px; margin: 0 auto 18px; color: #08745a; font-size: 13px; line-height: 1.6; }
.connection-data { padding: 15px 18px; border: 1px solid #8ce7ca; border-radius: 13px; background: rgb(255 255 255 / 70%); text-align: left; }
.connection-data div { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0; font-size: 12px; }.connection-data span { color: #718097; }.connection-data strong { color: #344054; }.connection-data .online-text { color: #07936f; }
.connection-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 28px 24px; }.connection-actions form { display: contents; }
.connection-actions.embedded { padding: 20px 0 0; }
.disconnect-button, .conclude-button { display: grid; place-items: center; min-height: 45px; border-radius: 11px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.disconnect-button { width: 100%; border: 1px solid #fda4af; background: #fff5f6; color: #e11d48; }.conclude-button { border: 0; background: #069f73; color: white; }
.connection-setup { background: linear-gradient(145deg, #f4fffb, #fff); }.whatsapp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; text-align: left; }.whatsapp-form label { display: block; margin-bottom: 6px; color: #405064; font-size: 11px; font-weight: 800; }.whatsapp-form input { width: 100%; }.whatsapp-form .conclude-button { grid-column: 1 / -1; width: 100%; }
.full-button { width: min(320px, 100%); margin: 18px auto 0; border: 0; }
.whatsapp-qr { display: block; width: min(320px, 90%); margin: 18px auto; border: 10px solid white; border-radius: 13px; box-shadow: 0 10px 30px rgb(15 23 42 / 12%); }
.connection-spinner { width: 52px; height: 52px; margin: 0 auto 20px; border: 5px solid #c9f7e7; border-top-color: #07936f; border-radius: 50%; animation: whatsapp-spin .8s linear infinite; }
.connection-error { margin: 24px 28px; padding: 24px; border: 1px solid #fecdd3; border-radius: 16px; background: #fff7f8; color: #9f1239; text-align: center; }.connection-error p { color: #be123c; font-size: 12px; }
.whatsapp-logs-tab { padding: 24px 28px; }
.logs-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }.logs-toolbar h3 { margin: 0 0 4px; font-size: 16px; }.logs-toolbar p, .update-panel p { margin: 0; color: #718097; font-size: 11px; }
.update-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px; margin-bottom: 18px; padding: 15px; border: 1px solid #bdebdc; border-radius: 12px; background: #f3fffb; }
.update-panel strong { display: block; margin-bottom: 4px; color: #075e4a; font-size: 13px; }.update-button { min-height: 38px; padding: 0 15px; }.update-button:disabled { cursor: wait; opacity: .65; }
.update-result { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #d8f3ea; }.update-result.is-current { color: #08745a; }.update-result.has-update { color: #a16207; }.update-result.has-error { color: #be123c; }
.service-logs { max-height: 390px; overflow: auto; border: 1px solid #e1e7ee; border-radius: 12px; background: #fbfcfe; }
.log-entry { display: grid; grid-template-columns: 145px 1fr; gap: 13px; padding: 12px 14px; border-bottom: 1px solid #e9edf2; }.log-entry:last-child { border-bottom: 0; }.log-entry time { color: #91a0b5; font: 10px ui-monospace, monospace; }.log-entry strong, .log-entry small { display: block; }.log-entry strong { color: #344054; font-size: 11px; }.log-entry small { margin-top: 4px; color: #718097; font: 10px ui-monospace, monospace; overflow-wrap: anywhere; }.log-entry.warn { border-left: 3px solid #f59e0b; }.log-entry.error { border-left: 3px solid #e11d48; }.log-entry.info { border-left: 3px solid #10b981; }
.empty-log { padding: 25px; color: #91a0b5; font-size: 12px; text-align: center; }
@keyframes whatsapp-spin { to { transform: rotate(360deg); } }
.whatsapp-footer { display: flex; justify-content: space-between; gap: 15px; padding: 19px 28px; border-top: 1px solid #e8edf2; color: #91a0b5; font-size: 11px; }.whatsapp-footer strong { color: #08745a; }
@media (max-width: 650px) { .whatsapp-page-hero { display: block; }.integration-state { margin-top: 15px; }.connection-success, .connection-setup { margin: 15px; padding: 21px; }.connection-data div { display: grid; gap: 2px; }.connection-actions, .whatsapp-form, .update-panel { grid-template-columns: 1fr; }.whatsapp-form .conclude-button, .update-result { grid-column: auto; }.whatsapp-footer { display: grid; }.whatsapp-logs-tab { padding: 18px 15px; }.logs-toolbar { display: grid; }.log-entry { grid-template-columns: 1fr; gap: 4px; } }

/* Client journey and WhatsApp progress sharing */
.client-profile-header { position: relative; overflow: hidden; margin-bottom: 24px; padding: 28px; border-radius: 18px; background: linear-gradient(115deg, var(--client-color), color-mix(in srgb, var(--client-color), #46153c 35%)); color: white; box-shadow: 0 16px 38px rgb(60 20 49 / 17%); }
.client-profile-header::after { content: ""; position: absolute; top: -70px; right: -30px; width: 190px; height: 190px; border: 28px solid rgb(255 212 0 / 22%); border-radius: 50%; }.client-profile-header .back { position: relative; z-index: 1; display: inline-flex; padding: 6px 8px; border-radius: 7px; color: rgb(255 255 255 / 80%); transition: background .18s ease, color .18s ease, transform .18s ease; }.client-profile-header .back:hover { background: rgb(255 255 255 / 11%); color: white; transform: translateX(-2px); }.client-profile-header .back:focus-visible { outline: 2px solid white; outline-offset: 3px; }.client-profile-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: 28px; }.client-profile-content h1 { margin: 3px 0; font-size: 28px; }.client-profile-content p { margin: 0; color: rgb(255 255 255 / 78%); }.client-profile-content .eyebrow { color: #ffe96e; }.client-avatar { display: grid; place-items: center; width: 62px; height: 62px; border: 2px solid rgb(255 255 255 / 82%); border-radius: 16px; background: rgb(255 255 255 / 13%); box-shadow: 0 8px 20px rgb(45 12 37 / 12%); font-size: 25px; font-weight: 900; backdrop-filter: blur(5px); }
.client-status-pill { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; margin-left: auto; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 26%); border-radius: 999px; background: rgb(255 255 255 / 13%); box-shadow: 0 5px 14px rgb(49 12 39 / 9%); color: white; font-size: 10px; font-weight: 850; letter-spacing: .01em; white-space: nowrap; backdrop-filter: blur(7px); }
.client-status-pill i { width: 7px; height: 7px; border: 1px solid rgb(255 255 255 / 72%); border-radius: 50%; background: #f5b927; box-shadow: 0 0 0 3px rgb(245 185 39 / 16%); }
.client-status-pill.usage_follow_up i { background: #5ee0ad; box-shadow: 0 0 0 3px rgb(94 224 173 / 16%); }.client-status-pill.closed i { background: #c7d0dc; box-shadow: 0 0 0 3px rgb(199 208 220 / 15%); }.client-status-pill.frozen i { background: #8cc4ff; box-shadow: 0 0 0 3px rgb(140 196 255 / 16%); }.client-status-pill.cancelled i { background: #ff9090; box-shadow: 0 0 0 3px rgb(255 144 144 / 16%); }
.usage-follow-up-owner { display: flex; align-items: center; gap: 6px; margin-top: 7px !important; }.usage-follow-up-owner strong { color: white; }.client-usage-owner, .tracking-owner { display: inline-flex; align-items: center; gap: 5px; color: #08745a; font-size: 10px; font-weight: 750; }.client-usage-owner { margin-top: 5px; }.tracking-owner { padding: 4px 7px; border: 1px solid #c8e8dd; border-radius: 999px; background: #f0faf7; white-space: nowrap; }
.journey-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 30px rgb(116 25 82 / 7%); }.client-stages { display: grid; gap: 12px; padding-top: 18px; }.client-stage { overflow: hidden; border: 1px solid #dfe5ed; border-radius: 12px; background: #fbfcfe; }.client-stage summary { display: flex; align-items: center; gap: 13px; padding: 15px; cursor: pointer; list-style: none; }.client-stage summary::-webkit-details-marker { display: none; }.client-stage summary strong { flex: 1; font-size: 13px; text-transform: uppercase; }.stage-progress { color: #718097; font: 11px ui-monospace, monospace; }.client-stage-body { padding: 0 15px 14px; border-top: 1px solid #e9edf2; }.client-stage-actions { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; }.client-stage-actions .bar { margin: 0; }.client-stage-actions b { min-width: 35px; font-size: 11px; text-align: right; }.share-progress-button { padding: 8px 12px; border: 0; border-radius: 8px; background: #079f73; color: white; font-size: 11px; font-weight: 800; cursor: pointer; }.share-progress-button:disabled { background: #cbd5e1; cursor: not-allowed; }.step-visibility { padding: 4px 7px; border-radius: 12px; font-size: 9px !important; font-weight: 900; text-transform: uppercase; }.step-visibility.public { background: #dcfce7; color: #15803d; }.step-visibility.private { background: #ffe4e6; color: #be123c; }.client-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }.contact-summary { padding: 13px 0; border-top: 1px solid #edf0f4; }.contact-summary strong, .contact-summary small { display: block; }.contact-summary strong { font-size: 13px; }.contact-summary strong span { margin-left: 5px; padding: 3px 6px; border-radius: 9px; background: #fae5f3; color: var(--pink); font-size: 8px; }.contact-summary small { margin-top: 5px; color: #718097; }
body.modal-open { overflow: hidden; }.progress-share-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(15 23 42 / 46%); backdrop-filter: blur(4px); }.progress-share-modal { display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: hidden; border: 1px solid #dbe2ea; border-radius: 18px; background: white; box-shadow: 0 28px 80px rgb(15 23 42 / 28%); }.share-modal-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid #edf0f4; }.share-modal-header > div:nth-child(2) { flex: 1; }.share-title-line { display: flex; align-items: center; gap: 9px; }.share-title-line h2 { margin: 0; font-size: 17px; }.share-title-line span { padding: 4px 7px; border-radius: 12px; background: #f1f5f9; color: #64748b; font-size: 9px; font-weight: 900; }.share-title-line span.is-connected { background: #d1fae5; color: #08745a; }.share-modal-header p { margin: 3px 0 0; color: #718097; font-size: 11px; }.modal-close { border: 0; background: transparent; color: #94a3b8; font-size: 24px; cursor: pointer; }.share-modal-body { flex: 1; overflow-y: auto; padding: 18px 24px; }.recipient-panel { padding: 14px; border: 1px solid #dce4ed; border-radius: 12px; background: #f8fafc; }.recipient-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 11px; }.recipient-heading span { color: var(--pink); }.recipient-list { display: grid; gap: 8px; max-height: 180px; overflow-y: auto; }.recipient-list label { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #dce4ed; border-radius: 9px; background: white; cursor: pointer; }.recipient-list label.is-selected { border-color: #64ddb5; background: #ecfff8; }.recipient-list label:has(input:disabled) { cursor: not-allowed; opacity: .55; }.recipient-list input { accent-color: #08a77a; }.recipient-list label span { flex: 1; }.recipient-list strong, .recipient-list small { display: block; }.recipient-list strong { font-size: 11px; }.recipient-list small, .recipient-panel > p { color: #718097; font-size: 10px; }.recipient-panel > p { margin: 10px 0 0; }.capture-section { margin-top: 20px; }.capture-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }.capture-heading strong { font-size: 11px; }.capture-heading button { margin-left: 6px; padding: 7px 9px; border: 0; border-radius: 6px; background: #f1f5f9; color: #526174; font-size: 10px; cursor: pointer; }.progress-canvas-wrap { padding: 14px; border: 1px solid #dce4ed; border-radius: 12px; background: #f8fafc; }.progress-canvas-wrap canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: white; box-shadow: 0 4px 14px rgb(15 23 42 / 8%); }.share-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 24px; border-top: 1px solid #edf0f4; }.share-modal-footer > span { max-width: 270px; color: #718097; font-size: 10px; }.share-modal-footer > div { display: flex; align-items: center; gap: 7px; }.direct-send-button { padding: 11px 15px; border: 0; border-radius: 9px; background: #069f73; color: white; font-size: 11px; font-weight: 800; cursor: pointer; }.direct-send-button:disabled { cursor: not-allowed; opacity: .5; }.share-feedback { margin: 0 24px 8px; padding: 10px 12px; border-radius: 8px; font-size: 11px; }.share-feedback.success { background: #dcfce7; color: #166534; }.share-feedback.error { background: #ffe4e6; color: #be123c; }
@media (max-width: 700px) { .client-profile-content { align-items: flex-start; flex-wrap: wrap; }.client-status-pill { margin-left: 0; }.client-info-grid { grid-template-columns: 1fr; }.client-stage-actions { grid-template-columns: 1fr auto; }.client-stage-actions .share-progress-button { grid-column: 1 / -1; }.progress-share-backdrop { padding: 0; }.progress-share-modal { max-height: 100vh; border-radius: 0; }.share-modal-header, .share-modal-body, .share-modal-footer { padding-inline: 15px; }.share-modal-footer { align-items: stretch; flex-direction: column; }.share-modal-footer > div { flex-wrap: wrap; }.direct-send-button { flex: 1 0 100%; }.capture-heading { align-items: flex-start; flex-direction: column; } }

/* Client registration editing */
.profile-edit-link { position: absolute; z-index: 2; top: 24px; right: 26px; min-height: 38px; padding: 9px 11px 9px 13px; border: 1px solid rgb(255 255 255 / 48%); border-radius: 9px; background: rgb(255 255 255 / 12%); box-shadow: 0 6px 16px rgb(50 13 40 / 10%); color: white; font-size: 11px; font-weight: 800; text-decoration: none; backdrop-filter: blur(7px); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.profile-edit-link .profile-edit-icon { transition: transform .18s ease; }.profile-edit-link .profile-edit-arrow { width: 0; opacity: 0; transform: translateX(-5px); transition: width .18s ease, opacity .18s ease, transform .18s ease; }
.profile-edit-link:hover { border-color: rgb(255 255 255 / 72%); background: rgb(255 255 255 / 21%); box-shadow: 0 9px 20px rgb(50 13 40 / 15%); transform: translateY(-2px); }.profile-edit-link:hover .profile-edit-icon { transform: rotate(-7deg); }.profile-edit-link:hover .profile-edit-arrow { width: 14px; opacity: 1; transform: translateX(0); }
.profile-edit-link:active { box-shadow: 0 3px 9px rgb(50 13 40 / 12%); transform: translateY(0); }.profile-edit-link:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.client-edit { max-width: 1120px; margin: 0 auto; }
.client-edit .wizard-step { padding: 32px; }
.client-edit .edit-section-heading { margin-top: 32px; padding-top: 6px; }
.client-edit .plan-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.client-edit .module-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-edit .contacts-list { display: grid; gap: 12px; }
@media (max-width: 700px) { .profile-edit-link { position: static; display: inline-block; margin-top: 14px; }.client-edit .wizard-step { padding: 18px; }.client-edit .module-choice-list { grid-template-columns: 1fr; } }

/* Client stage actions */
.client-stage > summary {
  position: relative;
  min-height: 64px;
  padding: 12px 14px;
  gap: 12px;
}
.client-stage-title { flex: 1; min-width: 130px; }
.client-stage-title strong,
.client-stage-title small { display: block; }
.client-stage-title strong { font-size: 12px; line-height: 1.35; }
.client-stage-title small { margin-top: 3px; color: #94a3b8; font-size: 9px; font-weight: 600; text-transform: none; }
.stage-header-actions { display: flex; align-items: center; gap: 8px; }
.complete-stage-form { margin: 0; }
.complete-stage-button,
.client-stage > summary .share-progress-button {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.complete-stage-button .vida-icon,
.client-stage > summary .share-progress-button .vida-icon {
  flex: 0 0 auto;
  transition: transform .18s ease;
}
.complete-stage-button {
  border: 1px solid #d5dce6;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  box-shadow: 0 3px 8px rgb(15 23 42 / 6%);
  color: #405067;
}
.complete-stage-button:hover:not(:disabled) { border-color: #aeb9c7; background: #f7f9fc; box-shadow: 0 6px 13px rgb(15 23 42 / 9%); color: #172033; transform: translateY(-1px); }
.complete-stage-button:hover:not(:disabled) .vida-icon { transform: scale(1.08); }
.complete-stage-button:active:not(:disabled) { box-shadow: 0 2px 5px rgb(15 23 42 / 7%); transform: translateY(0); }
.complete-stage-button:focus-visible { outline: 2px solid #64748b; outline-offset: 3px; }
.complete-stage-button:disabled { border-color: #bce3d7; background: #f0faf7; box-shadow: none; color: #08795c; cursor: default; }
.client-stage > summary .share-progress-button { border: 1px solid #078e68; background: linear-gradient(135deg, #08a477, #078d69); box-shadow: 0 5px 12px rgb(7 143 105 / 17%); }
.client-stage > summary .share-progress-button:hover:not(:disabled) { border-color: #067b5c; background: linear-gradient(135deg, #07986f, #067f60); box-shadow: 0 8px 16px rgb(7 130 96 / 23%); transform: translateY(-1px); }
.client-stage > summary .share-progress-button:hover:not(:disabled) .vida-icon { transform: translate(1px, -1px); }
.client-stage > summary .share-progress-button:active:not(:disabled) { box-shadow: 0 2px 6px rgb(7 130 96 / 17%); transform: translateY(0); }
.client-stage > summary .share-progress-button:focus-visible { outline: 2px solid #087f61; outline-offset: 3px; }
.client-stage > summary .share-progress-button:disabled { border-color: #d8dee6; background: #eef1f5; box-shadow: none; color: #8b97a7; cursor: not-allowed; opacity: 1; }
.client-stage-actions { grid-template-columns: 1fr auto; }
.client-stage[open] > summary { border-bottom: 1px solid #e9edf2; background: #fff; }
.client-stage[open] .client-stage-title small { color: var(--pink); }

html[data-theme="dark"] .complete-stage-button { border-color: #474b54; background: #242329; color: #d4ced7; box-shadow: none; }
html[data-theme="dark"] .complete-stage-button:hover:not(:disabled) { border-color: #656b76; background: #2b2a30; color: #fff; }
html[data-theme="dark"] .complete-stage-button:disabled { border-color: #31584d; background: #1d302a; color: #82c8b2; }
html[data-theme="dark"] .client-stage > summary .share-progress-button:disabled { border-color: #41454d; background: #2a2b30; color: #858b95; }

@media (max-width: 980px) {
  .client-stage > summary { flex-wrap: wrap; }
  .stage-header-actions { order: 4; width: 100%; margin-left: 46px; }
  .client-stage > summary .chevron { margin-left: 0; }
}

@media (max-width: 620px) {
  .client-stage > summary { align-items: flex-start; }
  .client-stage-title { min-width: calc(100% - 90px); }
  .stage-progress { margin-left: 46px; }
  .stage-header-actions { margin-left: 0; }
  .complete-stage-form,
  .complete-stage-button,
  .client-stage > summary .share-progress-button { flex: 1; }
  .complete-stage-button,
  .client-stage > summary .share-progress-button { width: 100%; }
  .client-stage > summary .chevron { position: absolute; top: 23px; right: 14px; }
}

/* In-place Turbo updates keep the open stage and scroll position stable. */
.client-stage-frame { display: block; }
.client-stage-frame[busy] { opacity: .72; pointer-events: none; }
.client-stage-frame[busy] .client-stage { border-color: #d9c7d4; }
.client-stage-frame .client-stage { animation: stage-content-refresh .2s ease-out; }
.client-stage-frame .check { transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.client-stage-frame .check:active { transform: scale(.88); }

@keyframes stage-content-refresh {
  from { background: #fff8fc; box-shadow: 0 0 0 2px rgb(194 41 143 / 10%); }
  to { background: #fbfcfe; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .client-stage-frame .client-stage,
  .client-stage-frame .check { animation: none; transition: none; }
}

/* Global toast notifications */
.toast-region {
  position: fixed;
  z-index: 500;
  top: 20px;
  right: 20px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 12px;
  pointer-events: none;
}

.toast {
  --toast-accent: #2563eb;
  --toast-soft: #eff6ff;
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 12px;
  overflow: hidden;
  padding: 15px 13px 16px 15px;
  border: 1px solid rgb(148 163 184 / 28%);
  border-radius: 14px;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 18px 45px rgb(15 23 42 / 16%), 0 3px 10px rgb(15 23 42 / 8%);
  opacity: 0;
  pointer-events: auto;
  transform: translate3d(28px, 0, 0) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(12px);
}

.toast--success { --toast-accent: #059669; --toast-soft: #ecfdf5; }
.toast--error { --toast-accent: #dc2626; --toast-soft: #fef2f2; }
.toast--warning { --toast-accent: #d97706; --toast-soft: #fffbeb; }
.toast--info { --toast-accent: #2563eb; --toast-soft: #eff6ff; }

.toast.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.toast.is-leaving { opacity: 0; transform: translate3d(18px, 0, 0) scale(.98); }

.toast__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--toast-soft);
  color: var(--toast-accent);
  font-size: 17px;
  font-weight: 900;
}

.toast__content { min-width: 0; padding-top: 1px; }
.toast__content strong {
  display: block;
  margin-bottom: 3px;
  color: #172033;
  font-size: 13px;
  line-height: 1.3;
}
.toast__content p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.toast__close {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font: 400 21px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.toast__close:hover { background: #f1f5f9; color: #334155; }
.toast__close:focus-visible { outline: 2px solid var(--toast-accent); outline-offset: 2px; }

.toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent);
  transform-origin: left;
  animation: toast-countdown 3s linear forwards;
}

@keyframes toast-countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 620px) {
  .toast-region { top: 12px; right: 16px; left: 16px; width: auto; }
  .toast { grid-template-columns: 34px minmax(0, 1fr) 28px; padding: 13px 12px 14px; }
  .toast__icon { width: 34px; height: 34px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
  .toast__progress { animation: none; }
}

/* Dark theme: restrained contrast, thin borders and no luminous effects. */
.theme-preview {
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.theme-preview:focus-visible { outline: 1px solid var(--dashboard-pink); outline-offset: 5px; border-radius: 4px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --pink: #c66a9f;
  --ink: #e6e2e7;
  --muted: #9b949f;
  --line: #343239;
  --bg: #121216;
  --dashboard-pink: #c66a9f;
  --dashboard-pink-dark: #dc86b7;
  --dashboard-yellow: #c9a84b;
  --dashboard-ink: #e6e2e7;
  --dashboard-muted: #9d97a2;
  --dashboard-line: #343239;
  --dashboard-surface: #1a191e;
  --dashboard-bg: #121216;
}

html[data-theme="dark"] body.vida-body { background: #121216; color: #e6e2e7; }
html[data-theme="dark"] .vida-body .main-content { background: #121216; }
html[data-theme="dark"] .vida-body .sidebar {
  border-right-color: #302e35;
  background: #16151a;
  box-shadow: none;
  color: #c0bac3;
}
html[data-theme="dark"] .sidebar::before { width: 2px; opacity: .7; }
html[data-theme="dark"] .vida-body .brand {
  border-bottom-color: #302e35;
  background: #18171c;
}
html[data-theme="dark"] .vida-body .brand strong,
html[data-theme="dark"] .sidebar-integration a { color: #e4dfe5; }
html[data-theme="dark"] .vida-body .brand small,
html[data-theme="dark"] .sidebar-integration small,
html[data-theme="dark"] .theme-preview small,
html[data-theme="dark"] .sidebar-version,
html[data-theme="dark"] .vida-body .nav-section { color: #8f8893; }
html[data-theme="dark"] .vida-body .sidebar nav a,
html[data-theme="dark"] .theme-preview { color: #c4bec7; }
html[data-theme="dark"] .vida-body .sidebar nav a svg { color: #85808a; }
html[data-theme="dark"] .vida-body .sidebar nav a:hover,
html[data-theme="dark"] .vida-body .sidebar nav a.active {
  background: #252128;
  color: #e3a9ca;
  box-shadow: inset 2px 0 0 #b85b91;
}
html[data-theme="dark"] .sidebar-integration { border-top-color: #302e35; }
html[data-theme="dark"] .sidebar-integration a:hover { background: #1d2221; }
html[data-theme="dark"] .sidebar-integration i { box-shadow: none; background: #4e9e83; }
html[data-theme="dark"] .sidebar-bottom { border-top-color: #302e35; }
html[data-theme="dark"] .theme-preview > svg { color: #bda65d; }

html[data-theme="dark"] .dashboard-hero,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .dashboard-status-overview,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .settings-hero,
html[data-theme="dark"] .config-card,
html[data-theme="dark"] .stage-config,
html[data-theme="dark"] .wizard-progress,
html[data-theme="dark"] .wizard-step,
html[data-theme="dark"] .journey-card,
html[data-theme="dark"] .whatsapp-shell,
html[data-theme="dark"] .progress-share-modal,
html[data-theme="dark"] .toast {
  border-color: #343239;
  background: #1a191e;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: #403d46;
  background: #141419;
  color: #e4e0e5;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #716b76; }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus { border-color: #9f5b82; outline: 1px solid #9f5b82; outline-offset: 0; }
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .outline-action,
html[data-theme="dark"] .mini-cancel {
  border-color: #403d46;
  background: #201f25;
  color: #d3cdd5;
}

html[data-theme="dark"] .metric-card > strong,
html[data-theme="dark"] .dashboard-client-progress-copy strong,
html[data-theme="dark"] .dashboard-empty strong,
html[data-theme="dark"] .status-line strong,
html[data-theme="dark"] .toast__content strong,
html[data-theme="dark"] .connection-data strong,
html[data-theme="dark"] .log-entry strong { color: #e6e2e7; }
html[data-theme="dark"] .metric-heading > span,
html[data-theme="dark"] .metric-card > small,
html[data-theme="dark"] .plan-label,
html[data-theme="dark"] .dashboard-client-progress-copy,
html[data-theme="dark"] .toast__content p { color: #9993a0; }
html[data-theme="dark"] .metric-heading > i { background: #242229; color: #bfb7c2; }
html[data-theme="dark"] .dashboard-progress,
html[data-theme="dark"] .bar,
html[data-theme="dark"] .status-track { background: #2b2930; }
html[data-theme="dark"] .dashboard-card-title,
html[data-theme="dark"] .pending-step-list,
html[data-theme="dark"] .config-heading,
html[data-theme="dark"] .wizard-section-heading,
html[data-theme="dark"] .wizard-actions,
html[data-theme="dark"] .contacts-heading,
html[data-theme="dark"] .contact-summary,
html[data-theme="dark"] .share-modal-header,
html[data-theme="dark"] .share-modal-footer,
html[data-theme="dark"] .whatsapp-titlebar,
html[data-theme="dark"] .whatsapp-tabs,
html[data-theme="dark"] .whatsapp-footer { border-color: #343239; }

html[data-theme="dark"] .status-summary-card,
html[data-theme="dark"] .dashboard-client,
html[data-theme="dark"] .module-config,
html[data-theme="dark"] .template-row,
html[data-theme="dark"] .client-stage,
html[data-theme="dark"] .client-stage[open] > summary,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .recipient-panel,
html[data-theme="dark"] .progress-canvas-wrap,
html[data-theme="dark"] .service-logs {
  border-color: #38363e;
  background: #17171c;
  box-shadow: none;
}
html[data-theme="dark"] .status-summary-card:hover { box-shadow: 0 8px 16px rgb(0 0 0 / 18%); }
html[data-theme="dark"] .pending-step-list > span,
html[data-theme="dark"] .review-chip,
html[data-theme="dark"] .module-choice-list label,
html[data-theme="dark"] .plan-card span,
html[data-theme="dark"] .recipient-list label {
  border-color: #3b3941;
  background: #1d1c22;
  color: #d7d2d9;
}
html[data-theme="dark"] .plan-card input:checked + span,
html[data-theme="dark"] .recipient-list label.is-selected {
  border-color: #9e5a82;
  background: #282129;
  box-shadow: none;
}
html[data-theme="dark"] .contact-panel {
  border-color: #493541;
  background: #1c191e;
}
html[data-theme="dark"] .stage-config summary,
html[data-theme="dark"] .stage-selection-head { background: #1c1a20; }
html[data-theme="dark"] .stage-items,
html[data-theme="dark"] .client-stage-body { border-color: #343239; }
html[data-theme="dark"] .stage-selection { border-color: #43353e; }
html[data-theme="dark"] .stage-selection-items label,
html[data-theme="dark"] .wizard-field label,
html[data-theme="dark"] .contact-grid label,
html[data-theme="dark"] fieldset legend { color: #cfc9d1; }
html[data-theme="dark"] .status-dependent-field { border-color: #355249; background: #1b2824; }
html[data-theme="dark"] .status-dependent-field small { color: #9aada7; }
html[data-theme="dark"] .tracking-owner { border-color: #355249; background: #1b2824; color: #8bc9b5; }
html[data-theme="dark"] .count-pill { background: #28262d; color: #bdb6c0; }
html[data-theme="dark"] .position-number { background: #2c2229; color: #d083af; }
html[data-theme="dark"] .stage-number { background: #2c2a31; box-shadow: none; }
html[data-theme="dark"] .weight-pill.low { border-color: #474c55; background: #24262b; color: #b8c0cb; }
html[data-theme="dark"] .weight-pill.medium { border-color: #5b5031; background: #29251a; color: #d4b963; }
html[data-theme="dark"] .weight-pill.high { border-color: #5d354b; background: #2c2027; color: #d889b6; }
html[data-theme="dark"] .weight-pill > span,
html[data-theme="dark"] .weight-editor label { color: #8e8792; }
html[data-theme="dark"] .client-stage-frame[busy] .client-stage { border-color: #51434c; }
html[data-theme="dark"] .check { border-color: #4b4852; background: #1a191e; }

html[data-theme="dark"] .connection-success,
html[data-theme="dark"] .connection-setup {
  border-color: #355b50;
  background: #17231f;
}
html[data-theme="dark"] .connection-success h3,
html[data-theme="dark"] .connection-setup h3,
html[data-theme="dark"] .connection-success > p,
html[data-theme="dark"] .connection-setup > p { color: #9fc8ba; }
html[data-theme="dark"] .connection-data,
html[data-theme="dark"] .update-panel { border-color: #355047; background: #1b2421; }
html[data-theme="dark"] .connection-data span,
html[data-theme="dark"] .logs-toolbar p,
html[data-theme="dark"] .update-panel p,
html[data-theme="dark"] .log-entry small { color: #9a95a0; }
html[data-theme="dark"] .log-entry { border-color: #343239; }
html[data-theme="dark"] .whatsapp-logo { border-color: #3d6558; background: #1c2925; color: #72b39c; }
html[data-theme="dark"] .whatsapp-qr { border-color: #242229; box-shadow: none; }
html[data-theme="dark"] .connection-error { border-color: #68404a; background: #281b20; color: #e09aa9; }
html[data-theme="dark"] .share-title-line span { background: #29272e; color: #aaa3ae; }
html[data-theme="dark"] .capture-heading button { background: #28262d; color: #c6c0c9; }
html[data-theme="dark"] .progress-canvas-wrap canvas { box-shadow: none; }
html[data-theme="dark"] .toast__close:hover { background: #29272e; color: #d4cfd6; }

@media (prefers-reduced-motion: reduce) {
  .theme-preview { transition: none; }
}

/* Thin, consistent SVG icon system --------------------------------------- */
.vida-icon {
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

.whatsapp-brand-image {
  display: block;
  flex: 0 0 auto;
  max-width: none;
  object-fit: contain;
  image-rendering: auto;
}

.icon-label,
.status-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.icon-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-inline: 0;
}
.icon-heading .hero-icon { display: inline-flex; }
.icon-label > span { min-width: 0; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border-radius: 7px;
}
.add-button,
.stage-add-button,
.mini-save,
.mini-cancel,
.disconnect-button,
.conclude-button,
.direct-send-button { justify-content: center; }

.visibility-pill { justify-content: center; }
.check { display: grid; place-items: center; padding: 0; }
.check.completed { background: #16a34a; border-color: #16a34a; }
.chevron { display: inline-flex; }
.modal-close,
.toast__close { display: grid; place-items: center; }
.modal-close { width: 34px; height: 34px; padding: 0; border-radius: 8px; }
.modal-close:hover { background: #f4f1f5; color: #64576a; }

.wizard-step-number { font: inherit; }
.wizard-check-icon { display: none; }
.wizard-indicator.is-complete .wizard-step-number { display: none; }
.wizard-indicator.is-complete .wizard-check-icon { display: block; }

.search-field {
  position: relative;
  flex: 1 1 280px;
}
.search-field > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: #8793a5;
  transform: translateY(-50%);
}
.filters .search-field input { width: 100%; min-width: 0; padding-left: 38px; }
.filters .button { justify-content: center; }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: 18px; }
.client-overview-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid #e5dce3; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgb(76 35 63 / 5%); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.client-overview-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--client-color); content: ""; }
.client-overview-card:hover { border-color: #d9c8d4; box-shadow: 0 12px 28px rgb(76 35 63 / 9%); transform: translateY(-2px); }
.client-overview-header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px 19px 14px 21px; }
.client-list-avatar { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb, var(--client-color), white 65%); border-radius: 11px; background: color-mix(in srgb, var(--client-color), white 91%); color: var(--client-color); font-size: 13px; font-weight: 900; }
.client-overview-identity { min-width: 0; }.client-overview-identity h2 { overflow: hidden; margin: 0 0 7px; color: #251b29; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.client-overview-meta { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; }
.client-plan-label, .client-list-status { display: inline-flex; min-height: 24px; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.client-plan-label { border: 1px solid #e7e1e6; background: #faf9fa; color: #766b79; }
.client-list-status { gap: 6px; border: 1px solid #eadfea; background: #fbf7fa; color: #695b6c; }.client-list-status i { width: 6px; height: 6px; border-radius: 50%; background: #f0a51e; }.client-list-status.usage_follow_up i { background: #0ba77d; }.client-list-status.closed i { background: #8793a5; }.client-list-status.frozen i { background: #5599e8; }.client-list-status.cancelled i { background: #df5858; }
.client-progress-value { align-self: start; color: #201726; font-size: 22px; letter-spacing: -.04em; }.client-progress-value small { margin-left: 1px; color: #837787; font-size: 11px; font-weight: 750; }
.client-responsible-row { display: flex; align-items: center; gap: 10px; margin: 0 19px 14px 21px; padding: 10px 11px; border: 1px solid #d7e9e3; border-radius: 9px; background: #f5fbf9; }.client-responsible-row > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: #e3f6f0; color: #08795d; }.client-responsible-row div { min-width: 0; }.client-responsible-row small, .client-responsible-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.client-responsible-row small { color: #71837d; font-size: 8px; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }.client-responsible-row strong { margin-top: 3px; color: #185c49; font-size: 11px; }
.client-progress-block { padding: 0 19px 17px 21px; }.client-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #817684; font-size: 10px; }.client-progress-copy strong { color: #5f5264; font-size: 9px; }.client-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #edf0f4; }.client-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--client-color); transition: width .25s ease; }
.client-overview-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 19px 12px 21px; border-top: 1px solid #eee8ed; background: #fdfcfd; }.client-overview-actions form { margin: 0; }.client-open-action, .client-delete-action { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border-radius: 8px; font-size: 10px; font-weight: 850; text-decoration: none; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.client-open-action { border: 1px solid #dfbad1; background: #fff5fb; color: var(--pink); }.client-open-action .vida-icon { transition: transform .18s ease; }.client-open-action:hover { border-color: var(--pink); background: #ffedf8; transform: translateY(-1px); }.client-open-action:hover .vida-icon { transform: translateX(2px); }.client-open-action:focus-visible, .client-delete-action:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.client-delete-action { border: 1px solid transparent; background: transparent; color: #b34b5e; }.client-delete-action:hover { border-color: #f1ccd3; background: #fff2f4; color: #c52e49; }.client-delete-action:active, .client-open-action:active { transform: translateY(0); }
.client-list-empty { grid-column: 1 / -1; display: grid; min-height: 220px; place-items: center; align-content: center; padding: 30px; border: 1px dashed #d9cfd7; border-radius: 14px; background: #fff; text-align: center; }.client-list-empty > span { display: grid; width: 48px; height: 48px; margin-bottom: 11px; place-items: center; border-radius: 13px; background: #f9edf5; color: var(--pink); }.client-list-empty strong { color: #382b3c; font-size: 14px; }.client-list-empty p { margin: 5px 0 0; color: #887d8b; font-size: 11px; }

html[data-theme="dark"] .client-overview-card, html[data-theme="dark"] .client-list-empty { border-color: #3c3940; background: #201f23; box-shadow: none; }html[data-theme="dark"] .client-overview-card:hover { border-color: #514b54; box-shadow: 0 12px 28px rgb(0 0 0 / 16%); }
html[data-theme="dark"] .client-overview-identity h2, html[data-theme="dark"] .client-progress-value, html[data-theme="dark"] .client-list-empty strong { color: #f0eaf1; }html[data-theme="dark"] .client-list-avatar { border-color: color-mix(in srgb, var(--client-color), #27252a 48%); background: color-mix(in srgb, var(--client-color), #27252a 82%); color: #f3c6df; }html[data-theme="dark"] .client-plan-label, html[data-theme="dark"] .client-list-status { border-color: #454149; background: #29272d; color: #c4bdc6; }html[data-theme="dark"] .client-responsible-row { border-color: #355249; background: #1b2824; }html[data-theme="dark"] .client-responsible-row > span { background: #223b34; color: #8bc9b5; }html[data-theme="dark"] .client-responsible-row strong { color: #b2ddcf; }html[data-theme="dark"] .client-progress-track { background: #302e34; }html[data-theme="dark"] .client-overview-actions { border-color: #37343a; background: #242227; }html[data-theme="dark"] .client-open-action { border-color: #60354f; background: #30202a; color: #ee9aca; }html[data-theme="dark"] .client-delete-action { color: #dc8c9b; }html[data-theme="dark"] .client-delete-action:hover { border-color: #653a43; background: #352329; color: #f1a2b0; }

@media (max-width: 520px) { .client-overview-header { grid-template-columns: 40px minmax(0, 1fr); }.client-progress-value { grid-column: 2; justify-self: start; font-size: 18px; }.client-overview-actions { align-items: stretch; flex-direction: column; }.client-overview-actions form, .client-open-action, .client-delete-action { width: 100%; }.client-delete-action { min-height: 35px; } }

.share-title-line .status-with-icon { font-weight: 800; }
.share-title-line .status-with-icon b { font: inherit; }
.share-title-line .status-with-icon.is-connected { background: #d1fae5; color: #08745a; }
.recipient-list > label > svg { color: #87a0b3; }
.whatsapp-footer .status-with-icon { justify-content: flex-end; }

html[data-theme="dark"] .modal-close:hover { background: #29272e; color: #d4cfd6; }
html[data-theme="dark"] .check.completed { background: #32856b; border-color: #32856b; }
html[data-theme="dark"] .search-field > svg { color: #77717d; }
html[data-theme="dark"] .share-title-line .status-with-icon.is-connected { background: #1c332b; color: #82c6ad; }

/* Support tickets */
.journey-heading-actions { display: flex; align-items: center; gap: 9px; }
.register-ticket-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #e5b6d3;
  border-radius: 9px;
  background: #fff7fc;
  box-shadow: 0 3px 8px rgb(116 25 82 / 5%);
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}
.register-ticket-button .vida-icon { flex: 0 0 auto; transition: transform .18s ease; }
.pending-issue-page-button { border-color: #dda1c6; background: linear-gradient(180deg, #fff6fb, #fff0f8); }
.support-ticket-page-button { border-color: #e4d6df; background: #fff; color: #7f3b65; }
.register-ticket-button:hover { border-color: var(--pink); background: #fff0f9; box-shadow: 0 7px 14px rgb(116 25 82 / 10%); color: var(--pink); transform: translateY(-1px); }
.pending-issue-page-button:hover .vida-icon { transform: translateY(-1px) rotate(-4deg); }
.support-ticket-page-button:hover .vida-icon { transform: scale(1.06); }
.register-ticket-button:active { box-shadow: 0 2px 5px rgb(116 25 82 / 7%); transform: translateY(0); }
.register-ticket-button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.journey-count-pill { display: inline-flex; min-height: 32px; align-items: center; padding: 7px 11px; border: 1px solid #ebe5ea; background: #f7f5f7; color: #706575; font-weight: 750; white-space: nowrap; }

.support-ticket-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 23 42 / 46%);
  backdrop-filter: blur(4px);
}
.support-ticket-backdrop[hidden] { display: none; }
.pending-issue-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 23 42 / 46%);
  backdrop-filter: blur(4px);
}
.pending-issue-backdrop[hidden] { display: none; }
.support-ticket-modal {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  background: white;
  box-shadow: 0 28px 80px rgb(15 23 42 / 28%);
  animation: support-ticket-enter .18s ease-out;
}
.pending-issue-modal {
  width: min(540px, 100%);
  overflow: hidden;
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  background: white;
  box-shadow: 0 28px 80px rgb(15 23 42 / 28%);
  animation: support-ticket-enter .18s ease-out;
}
.pending-issue-modal .share-modal-header > div { flex: 1; }
.pending-issue-modal .share-modal-header h2 { margin: 0; font-size: 17px; }
.pending-issue-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 11px; background: #fce7f3; color: var(--pink); }
.pending-issue-form-body { display: grid; gap: 16px; padding: 22px 24px; }
.pending-issue-divider { display: flex; align-items: center; gap: 10px; color: #98a2b3; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.pending-issue-divider::before,
.pending-issue-divider::after { height: 1px; flex: 1; background: #edf0f4; content: ""; }
.client-pending-summary { display: grid; gap: 8px; padding: 11px 12px; border: 1px solid #f0d7a9; border-radius: 9px; background: #fffbf2; }
.client-pending-summary > strong { color: #765321; font-size: 10px; }
.client-pending-summary > div { display: flex; flex-wrap: wrap; gap: 6px; }
.client-pending-summary span { padding: 4px 7px; border-radius: 5px; background: #fff0cf; color: #8b5a0b; font-size: 9px; }
.support-ticket-modal .share-modal-header > div { flex: 1; }
.support-ticket-modal .share-modal-header h2 { margin: 0; font-size: 17px; }
.support-ticket-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 11px; background: #fce7f3; color: var(--pink); }
.support-ticket-form-body { display: grid; gap: 16px; padding: 22px 24px; }
.support-ticket-field { display: grid; gap: 7px; }
.support-ticket-field label { color: #293348; font-size: 11px; font-weight: 800; }
.support-ticket-field input,
.support-ticket-field select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #d8e0e9;
  border-radius: 9px;
  background: white;
  color: #172033;
  font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.support-ticket-field input:focus,
.support-ticket-field select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgb(194 41 143 / 10%); outline: 0; }
.support-ticket-field select:disabled { background: #f4f6f8; color: #98a2b3; cursor: not-allowed; }
.support-ticket-field small { color: #8491a5; font-size: 10px; }
.support-ticket-form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 15px 24px; border-top: 1px solid #edf0f4; background: #fcfcfd; }
.save-ticket-button { min-height: 38px; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--pink); color: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.step-content { min-width: 0; }
.step-ticket-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.step-ticket-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid #e3b3d2;
  border-radius: 10px;
  background: #fff7fc;
  color: var(--pink);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.step-ticket-link:hover { border-color: var(--pink); background: #fdebf7; }

@keyframes support-ticket-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html[data-theme="dark"] .register-ticket-button { border-color: #61324f; background: #291d25; box-shadow: none; color: #f09bce; }
html[data-theme="dark"] .support-ticket-page-button { border-color: #474049; background: #242228; color: #d6c5d0; }
html[data-theme="dark"] .register-ticket-button:hover { border-color: #a55784; background: #35212d; color: #f2afd5; }
html[data-theme="dark"] .journey-count-pill { border-color: #3e3a42; background: #28262d; color: #bdb6c0; }
html[data-theme="dark"] .add-pending-issue-button { border-color: #6e3157; background: #291d25; color: #f09bce; }
html[data-theme="dark"] .support-ticket-modal { border-color: #34323a; background: #1d1c21; }
html[data-theme="dark"] .pending-issue-modal { border-color: #34323a; background: #1d1c21; }
html[data-theme="dark"] .pending-issue-icon { background: #3a2030; color: #f09bce; }
html[data-theme="dark"] .pending-issue-divider::before,
html[data-theme="dark"] .pending-issue-divider::after { background: #34323a; }
html[data-theme="dark"] .client-pending-issues span { background: #382b1c; color: #e6af58; }
html[data-theme="dark"] .client-pending-summary { border-color: #594525; background: #2d271d; }
html[data-theme="dark"] .client-pending-summary > strong { color: #e0bd7b; }
html[data-theme="dark"] .client-pending-summary span { background: #44351f; color: #efc97f; }
html[data-theme="dark"] .support-ticket-icon { background: #3a2030; color: #f09bce; }
html[data-theme="dark"] .support-ticket-field label { color: #e8e3eb; }
html[data-theme="dark"] .support-ticket-field input,
html[data-theme="dark"] .support-ticket-field select { border-color: #3b3942; background: #242329; color: #f3eff5; }
html[data-theme="dark"] .support-ticket-field select:disabled { background: #202026; color: #77717c; }
html[data-theme="dark"] .support-ticket-form-footer { border-color: #34323a; background: #202025; }
html[data-theme="dark"] .step-ticket-link { border-color: #61314f; background: #291d25; color: #f09bce; }

@media (max-width: 700px) {
  .config-heading { gap: 16px; }
  .journey-heading-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .journey-heading-actions .register-ticket-button { flex: 1 1 170px; }
  .journey-count-pill { order: -1; margin-right: auto; }
  .support-ticket-backdrop { padding: 12px; }
  .pending-issue-backdrop { padding: 12px; }
  .support-ticket-form-body { padding: 18px; }
  .pending-issue-form-body { padding: 18px; }
  .support-ticket-form-footer { padding: 14px 18px; }
  .dashboard-client-footer { align-items: stretch; flex-direction: column; }
  .add-pending-issue-button { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .support-ticket-modal { animation: none; }
  .pending-issue-modal { animation: none; }
}

/* Authentication */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 15%, rgb(194 41 143 / 12%), transparent 25rem),
    radial-gradient(circle at 88% 80%, rgb(255 190 11 / 10%), transparent 27rem),
    #fbf7fa;
  color: var(--dashboard-ink);
}
.auth-main { display: grid; min-height: 100vh; place-items: center; padding: 28px 18px; }
.auth-shell { width: min(430px, 100%); }
.auth-shell--with-intro { position: relative; }
.auth-intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgb(255 255 255 / 13%), transparent 18rem),
    linear-gradient(145deg, #6f093f 0%, #a20d5b 46%, #ca2b8b 100%);
  color: white;
  pointer-events: none;
  animation: auth-intro-exit .85s cubic-bezier(.65, 0, .35, 1) 4.45s forwards;
}
.auth-intro::before {
  position: absolute;
  width: min(70vw, 780px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgb(255 255 255 / 3%), 0 0 0 90px rgb(255 255 255 / 2%);
  content: "";
  animation: auth-intro-orbit 8s linear infinite;
}
.auth-intro__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .45;
}
.auth-intro__glow--one {
  top: -16vw;
  right: -12vw;
  width: 44vw;
  height: 44vw;
  background: rgb(255 190 11 / 30%);
}
.auth-intro__glow--two {
  bottom: -20vw;
  left: -12vw;
  width: 48vw;
  height: 48vw;
  background: rgb(255 255 255 / 12%);
}
.auth-intro__content {
  position: relative;
  display: grid;
  min-width: min(88vw, 600px);
  place-items: center;
  text-align: center;
}
.auth-intro__implantacao,
.auth-intro__vida { margin: 0; line-height: .95; }
.auth-intro__implantacao {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: .32em;
  text-indent: .32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  animation: auth-intro-word-in .8s cubic-bezier(.22, 1, .36, 1) .3s forwards,
             auth-intro-word-out .5s ease 2.35s forwards;
}
.auth-intro__vida {
  position: absolute;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 900;
  letter-spacing: .12em;
  text-indent: .12em;
  opacity: 0;
  text-shadow: 0 18px 55px rgb(64 2 34 / 25%);
  transform: scale(.88);
  animation: auth-intro-vida-in 1.7s cubic-bezier(.16, 1, .3, 1) 1.2s forwards,
             auth-intro-vida-out .6s ease 3.05s forwards;
}
.auth-intro__logo-wrap {
  position: absolute;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  opacity: 0;
  transform: scale(.65);
  animation: auth-intro-logo-in .85s cubic-bezier(.34, 1.56, .64, 1) 3.05s forwards;
}
.auth-intro__logo {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border: 3px solid #ffbe0b;
  border-radius: 50%;
  box-shadow: 0 16px 45px rgb(61 0 32 / 35%);
  object-fit: cover;
}
.auth-intro__logo-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 50%;
  animation: auth-intro-ring 1.4s ease-out 3.25s infinite;
}
.auth-intro__caption {
  position: absolute;
  top: 86px;
  color: rgb(255 255 255 / 78%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(10px);
  animation: auth-intro-caption-in .6s ease 3.55s forwards;
}
.auth-card--after-intro,
.auth-shell--with-intro > .auth-footer {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  animation: auth-login-reveal .8s cubic-bezier(.22, 1, .36, 1) 4.7s forwards;
}
.auth-shell--with-intro > .auth-footer { animation-delay: 4.85s; }

@keyframes auth-intro-word-in { to { opacity: 1; transform: translateY(0); } }
@keyframes auth-intro-word-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes auth-intro-vida-in { to { opacity: 1; transform: scale(1); } }
@keyframes auth-intro-vida-out { to { opacity: 0; transform: scale(1.08); } }
@keyframes auth-intro-logo-in { to { opacity: 1; transform: scale(1); } }
@keyframes auth-intro-caption-in { to { opacity: 1; transform: translateY(0); } }
@keyframes auth-intro-ring {
  0% { opacity: .8; transform: scale(.65); }
  100% { opacity: 0; transform: scale(1.3); }
}
@keyframes auth-intro-orbit { to { transform: rotate(360deg); } }
@keyframes auth-intro-exit {
  0% { opacity: 1; clip-path: circle(150% at 50% 50%); }
  100% { visibility: hidden; opacity: 0; clip-path: circle(0 at 50% 50%); }
}
@keyframes auth-login-reveal { to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-card {
  overflow: hidden;
  border: 1px solid #e8dfe6;
  border-radius: 20px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 28px 80px rgb(76 28 61 / 15%);
  backdrop-filter: blur(14px);
}
.auth-card.compact { width: min(430px, 100%); }
.auth-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 13px;
  padding: 19px 28px;
  border-bottom: 1px solid #f0e8ee;
  background: linear-gradient(110deg, #fff, #fff4fb);
}
.auth-logo { width: 50px; height: 50px; border: 2px solid var(--dashboard-yellow); border-radius: 50%; box-shadow: 0 4px 12px rgb(73 27 59 / 15%); object-fit: cover; }
.auth-header span,
.auth-header strong { display: block; }
.auth-header span { margin-bottom: 3px; color: var(--pink); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.auth-header strong { color: #261c2e; font-size: 16px; }
.auth-content { padding: 30px 30px 28px; }
.auth-eyebrow { color: var(--pink); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.auth-content h1 { margin: 8px 0 8px; color: #21182b; font-size: 25px; letter-spacing: -.025em; }
.auth-content > p { margin: 0 0 24px; color: #756b7a; font-size: 12px; line-height: 1.6; }
.auth-form { display: grid; gap: 15px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { color: #3d3442; font-size: 11px; font-weight: 800; }
.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #ddd5dc;
  border-radius: 10px;
  background: white;
  color: #21182b;
  font: inherit;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgb(194 41 143 / 11%); outline: 0; }
.auth-submit {
  min-height: 46px;
  margin-top: 3px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), #a81470);
  box-shadow: 0 8px 18px rgb(194 41 143 / 20%);
  color: white;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.auth-submit:hover { box-shadow: 0 11px 24px rgb(194 41 143 / 28%); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.auth-link { display: block; margin-top: 19px; color: var(--pink); font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-footer { margin: 17px 0 0; color: #948a97; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-align: center; }

.sidebar-user {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee8ed;
}
.sidebar-user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #fae6f3; color: var(--pink); font-size: 12px; font-weight: 900; }
.sidebar-user > span:nth-child(2) { min-width: 0; }
.sidebar-user strong,
.sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: #3b303e; font-size: 10px; }
.sidebar-user small { margin-top: 2px; color: #968b99; font-size: 8px; }
.sidebar-user form { margin: 0; }
.sidebar-logout { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #998d9b; cursor: pointer; }
.sidebar-logout:hover { background: #fbeaf5; color: var(--pink); }
.sidebar-logout:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

html[data-theme="dark"] .auth-body { background: radial-gradient(circle at 12% 15%, rgb(194 41 143 / 14%), transparent 25rem), #17161a; }
html[data-theme="dark"] .auth-card { border-color: #353139; background: rgb(29 28 33 / 97%); }
html[data-theme="dark"] .auth-header { border-color: #353139; background: linear-gradient(110deg, #211f24, #2a1c25); }
html[data-theme="dark"] .auth-header strong,
html[data-theme="dark"] .auth-content h1 { color: #f2edf3; }
html[data-theme="dark"] .auth-content > p,
html[data-theme="dark"] .auth-footer { color: #a59da8; }
html[data-theme="dark"] .auth-field label { color: #ddd6df; }
html[data-theme="dark"] .auth-field input { border-color: #444049; background: #242329; color: #f3eff5; }
html[data-theme="dark"] .sidebar-user { border-color: #353139; }
html[data-theme="dark"] .sidebar-user-avatar { background: #3a2030; color: #f09bce; }
html[data-theme="dark"] .sidebar-user strong { color: #e9e3eb; }
html[data-theme="dark"] .sidebar-logout:hover { background: #35202d; color: #f09bce; }

@media (max-width: 520px) {
  .auth-main { align-items: start; padding: 14px; }
  .auth-card { border-radius: 16px; }
  .auth-header { min-height: 82px; padding: 16px 21px; }
  .auth-logo { width: 44px; height: 44px; }
  .auth-content { padding: 25px 21px 23px; }
  .auth-content h1 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit { transition: none; }
  .auth-intro { display: none; animation: none; }
  .auth-card--after-intro,
  .auth-shell--with-intro > .auth-footer {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
