    :root {
      --mavi-c1: #40ffdc;
      --mavi-c2: #00a9d4;
      --mavi-c3: #1c3166;
      --mavi-c4: #240047;
      --mavi-c5: #1c0021;
      --mavi-bg: #f1f6ff;
      --mavi-bg-soft: #f8fbff;
      --mavi-card: #ffffff;
      --mavi-border: #c8d9ee;
      --mavi-font-scale: 0.9;
    }

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

    body { font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
    [x-cloak] { display: none !important; }

    body.clients-auth-page {
      background: var(--mavi-bg);
      overflow: auto;
    }
    body.clients-dashboard-page {
      background: var(--mavi-bg);
      color: var(--mavi-c5);
      --mavi-font-scale: 0.9;
      overscroll-behavior-y: contain;
    }

    .clients-auth-main {
      margin: 0;
      padding: 0;
      max-width: none;
      min-height: 100vh;
    }

    .clients-login-layout {
      display: flex;
      min-height: 100vh;
    }

    .clients-login-brand {
      display: none;
    }

    .clients-brand-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .clients-brand-icon {
      width: 64px;
      height: 64px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--mavi-c4), var(--mavi-c2));
      color: #fff;
      font-size: calc(30px * var(--mavi-font-scale));
    }

    .clients-brand-name {
      font-size: clamp(36px, 6vw, 74px);
      font-weight: 800;
      letter-spacing: 0.01em;
      color: var(--mavi-c5);
    }
    .clients-brand-subtitle {
      display: none;
    }


    .clients-login-form-wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 30px;
      gap: 12px;
    }

    .clients-login-brand-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .clients-login-card {
      background: transparent;
      padding: 26px 24px 24px;
      width: 100%;
      max-width: 460px;
      border-radius: 4px;
      border: 1px solid var(--mavi-border);
    }

    .clients-login-card h2 {
      text-align: center;
      color: var(--mavi-c5);
      font-size: clamp(34px, 3vw, 48px);
      margin-bottom: 18px;
      font-weight: 500;
    }

    .clients-login-subtitle {
      font-size: calc(15px * var(--mavi-font-scale));
      color: #444;
      margin: 0;
      text-align: center;
    }

    .clients-login-group {
      margin-bottom: 12px;
    }

    .clients-login-group label {
      font-size: calc(14px * var(--mavi-font-scale));
      color: var(--mavi-c5);
      display: block;
      margin-bottom: 6px;
      font-weight: 500;
    }

    .clients-login-group input {
      width: 100%;
      height: 50px;
      padding: 0 14px;
      border-radius: 4px;
      border: 1px solid var(--mavi-border);
      font-size: calc(20px * var(--mavi-font-scale));
      transition: 0.2s;
      background: #fff;
    }

    .clients-login-group input:focus {
      border-color: var(--mavi-c4);
      outline: none;
      box-shadow: 0 0 0 3px rgba(0, 169, 212, 0.22);
    }

    .clients-login-btn {
      width: 100%;
      height: 54px;
      border-radius: 4px;
      border: none;
      background: var(--mavi-c5);
      color: #fff;
      font-size: calc(22px * var(--mavi-font-scale));
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s;
    }

    .clients-login-btn:hover {
      background: var(--mavi-c4);
    }

    .clients-login-btn-outline {
      width: 100%;
      min-height: 50px;
      border-radius: 4px;
      border: 2px solid var(--mavi-c5);
      background: #fff;
      color: var(--mavi-c5);
      font-size: calc(22px * var(--mavi-font-scale));
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: 0.2s;
    }

    .clients-login-btn-outline:hover {
      background: #eef8ff;
    }

    .clients-login-forgot {
      display: block;
      text-align: center;
      margin-top: 10px;
      font-size: calc(17px * var(--mavi-font-scale));
      color: var(--mavi-c5);
      text-decoration: none;
      border: 0;
      background: transparent;
      width: 100%;
      font-weight: 500;
    }

    .clients-login-forgot:hover {
      text-decoration: underline;
    }

    .clients-login-sep {
      margin: 20px 0 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--mavi-c5);
      font-size: calc(18px * var(--mavi-font-scale));
      justify-content: center;
    }

    .clients-login-sep::before,
    .clients-login-sep::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--mavi-border);
    }

    .clients-remember-line {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--mavi-c5);
      font-size: calc(15px * var(--mavi-font-scale));
      margin: 12px 0 16px;
    }

    .clients-remember-line input {
      width: 18px;
      height: 18px;
      accent-color: var(--mavi-c5);
    }

    .clients-login-links {
      margin-top: 16px;
      display: grid;
      gap: 8px;
      text-align: center;
    }

    .clients-login-links button,
    .clients-login-links a {
      color: var(--mavi-c5);
      font-size: calc(17px * var(--mavi-font-scale));
      text-decoration: none;
      background: transparent;
      border: 0;
      cursor: pointer;
      font-weight: 500;
    }

    .clients-login-links button:hover,
    .clients-login-links a:hover {
      text-decoration: underline;
    }

    .clients-flash {
      margin-bottom: 12px;
      border-radius: 8px;
      padding: 10px 12px;
      font-size: calc(14px * var(--mavi-font-scale));
    }

    .clients-flash-error {
      border: 1px solid #fecaca;
      background: #fef2f2;
      color: #b91c1c;
    }

    .clients-flash-ok {
      border: 1px solid #bbf7d0;
      background: #f0fdf4;
      color: #166534;
    }

    .clients-auth-center {
      min-height: 100vh;
      padding: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .clients-auth-stack {
      width: 100%;
      max-width: 560px;
    }

    .clients-auth-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-bottom: 18px;
    }
    .clients-auth-brand-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 18px;
    }

    .clients-auth-brand .clients-brand-icon {
      width: 52px;
      height: 52px;
      font-size: calc(26px * var(--mavi-font-scale));
      border-radius: 12px;
    }

    .clients-auth-brand .clients-brand-name {
      font-size: clamp(40px, 5vw, 56px);
    }

    .clients-auth-card {
      background: transparent;
      border: 1px solid var(--mavi-border);
      border-radius: 4px;
      padding: 26px;
    }

    .clients-auth-card h2 {
      text-align: center;
      color: var(--mavi-c5);
      font-size: clamp(34px, 4.2vw, 52px);
      font-weight: 500;
      margin-bottom: 10px;
    }

    .clients-auth-text {
      text-align: center;
      color: var(--mavi-c5);
      font-size: calc(20px * var(--mavi-font-scale));
      line-height: 1.35;
      margin: 0 auto 16px;
      max-width: 450px;
    }

    .clients-auth-card .clients-login-group input {
      font-size: calc(20px * var(--mavi-font-scale));
      height: 58px;
    }

    .clients-auth-card .clients-login-btn {
      margin-top: 6px;
    }

    .g_id_signin {
      display: flex;
      justify-content: center;
    }

    .g_id_signin > div {
      width: 100% !important;
      max-width: none !important;
      border-radius: 4px !important;
    }

    .g_id_signin iframe {
      width: 100% !important;
    }

    .clients-social-wrap {
      margin-bottom: 2px;
    }

    .clients-social-wrap + .clients-login-sep {
      margin-top: 14px;
    }

    .clients-dashboard-main {
      margin: 0;
      padding: 12px;
      max-width: none;
      background: var(--mavi-bg);
    }

    .clients-shell {
      width: 100%;
    }

    .device-frame {
      max-width: 430px;
      margin: 0 auto;
      min-height: calc(100vh - 24px);
      background: var(--mavi-bg-soft);
      position: relative;
      padding-top: 74px;
      padding-bottom: 122px;
      border-radius: 0;
      overflow: hidden;
    }

    .topbar {
      background: var(--mavi-card);
      padding: 14px 20px 12px;
      border-bottom: 1px solid var(--mavi-border);
      position: fixed;
      top: 6px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 12px);
      max-width: 430px;
      z-index: 40;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border: 1px solid var(--mavi-border);
      border-radius: 14px;
    }

    .topbar-brand {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .brand-dot {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      background: linear-gradient(135deg, var(--mavi-c5), var(--mavi-c2));
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: calc(16px * var(--mavi-font-scale));
    }

    .brand-text {
      font-family: 'Montserrat', sans-serif;
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 700;
      color: var(--mavi-c5);
      letter-spacing: .03em;
      line-height: 1;
    }

    .brand-sub {
      display: none;
    }

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

    .top-profile-btn {
      border: 1px solid var(--mavi-border);
      background: #ffffff;
      color: var(--mavi-c5);
      border-radius: 999px;
      padding: 3px 8px 3px 3px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 600;
      line-height: 1;
      transition: .15s;
    }

    .top-profile-btn:hover {
      border-color: var(--mavi-c2);
      background: #f8fbff;
    }

    .top-profile-avatar {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      object-fit: cover;
      background: linear-gradient(135deg, var(--mavi-c4), var(--mavi-c3));
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 700;
      flex-shrink: 0;
    }

    .top-profile-text {
      white-space: nowrap;
    }

    .week-pill {
      background: rgba(64, 255, 220, 0.16);
      color: var(--mavi-c3);
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 100px;
      letter-spacing: .03em;
      white-space: nowrap;
    }

    .btn-logout {
      background: none;
      border: 1.5px solid var(--mavi-border);
      border-radius: 8px;
      padding: 5px 12px;
      font-size: calc(12px * var(--mavi-font-scale));
      font-weight: 500;
      color: var(--mavi-c3);
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      transition: .15s;
    }

    .btn-logout:hover {
      border-color: var(--mavi-c2);
      color: var(--mavi-c5);
      background: rgba(64, 255, 220, 0.1);
    }

    .btn-install {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      border: 1.5px solid var(--mavi-border);
      background: rgba(64, 255, 220, 0.1);
      color: var(--mavi-c3);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: .15s;
      flex-shrink: 0;
    }

    .btn-install i {
      font-size: calc(15px * var(--mavi-font-scale));
      line-height: 1;
    }

    .btn-install:hover {
      border-color: var(--mavi-c2);
      background: rgba(0, 169, 212, 0.16);
      color: var(--mavi-c5);
    }

    @keyframes installPulse {
      0%, 100% {
        box-shadow: 0 0 0 0 rgba(64, 255, 220, 0);
        transform: scale(1);
      }
      50% {
        box-shadow: 0 0 0 7px rgba(64, 255, 220, 0.28);
        transform: scale(1.06);
      }
    }

    .btn-install-attention {
      animation: installPulse 1.9s ease-in-out infinite;
      border-color: var(--mavi-c1);
      background: rgba(64, 255, 220, 0.2);
      color: #ffffff;
    }

    .hero {
      background: linear-gradient(135deg, var(--mavi-c5) 0%, var(--mavi-c4) 100%);
      padding: 22px 20px 28px;
      position: relative;
      overflow: hidden;
      border-radius: 18px;
      margin: 12px 16px 0;
      border: 1px solid rgba(64, 255, 220, 0.2);
    }

    .hero::before {
      content: '';
      position: absolute;
      right: -30px;
      top: -30px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .08);
    }

    .hero::after {
      content: '';
      position: absolute;
      right: 30px;
      bottom: -40px;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      border: 1.5px solid rgba(255, 255, 255, .14);
    }

    .hero-greeting {
      font-size: calc(13px * var(--mavi-font-scale));
      color: rgba(255, 255, 255, .72);
      letter-spacing: .04em;
      text-transform: uppercase;
      font-weight: 500;
    }

    .hero-name {
      font-family: 'Montserrat', sans-serif;
      font-size: calc(21px * var(--mavi-font-scale));
      font-weight: 600;
      color: #fff;
      margin-top: 4px;
      line-height: 1.1;
    }

    .hero-program {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 8px;
      background: rgba(255, 255, 255, .16);
      border: 1px solid rgba(255, 255, 255, .24);
      border-radius: 100px;
      padding: 4px 12px;
      font-size: calc(12px * var(--mavi-font-scale));
      color: rgba(255, 255, 255, .9);
      font-weight: 500;
    }

    .hero-program-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--mavi-c1);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: .6; transform: scale(1.3); }
    }

    .scroll-area {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

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

    .dashboard-alert-stack {
      display: grid;
      gap: 10px;
    }

    .dashboard-alert {
      border-radius: 14px;
      border: 1px solid #f8cc86;
      background: #fff8ec;
      padding: 10px 12px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(28, 0, 33, 0.12);
      animation: dashboardAlertPulse 2.2s ease-in-out infinite;
    }

    .dashboard-alert--info {
      border-color: #9ddbef;
      background: #effbff;
    }

    .dashboard-alert--aviso {
      border-color: #f8cc86;
      background: #fff8ec;
    }

    .dashboard-alert--urgente {
      border-color: #fbb8c4;
      background: #fff1f4;
    }

    .dashboard-alert::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 14px;
      border: 1.5px solid rgba(0, 169, 212, 0.0);
      pointer-events: none;
      animation: dashboardAlertBorderBlink 2.2s ease-in-out infinite;
    }

    .dashboard-alert-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 4px;
    }

    .dashboard-alert-title {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: calc(12px * var(--mavi-font-scale));
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: var(--mavi-c4);
    }

    .dashboard-alert-time {
      font-size: calc(11px * var(--mavi-font-scale));
      color: var(--mavi-c3);
      white-space: nowrap;
    }

    .dashboard-alert-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .dashboard-alert-read-btn {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      border: 1px solid var(--mavi-border);
      background: #fff;
      color: var(--mavi-c4);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all .18s ease;
    }

    .dashboard-alert-read-btn:hover {
      background: #e8fff8;
      border-color: #47c6b1;
      color: #0d8f7b;
    }

    .dashboard-alert-body {
      font-size: calc(13px * var(--mavi-font-scale));
      line-height: 1.35;
      color: var(--mavi-c5);
    }

    @keyframes dashboardAlertPulse {
      0%, 100% {
        box-shadow: 0 2px 10px rgba(28, 0, 33, 0.12);
      }
      50% {
        box-shadow: 0 3px 14px rgba(28, 0, 33, 0.2);
      }
    }

    @keyframes dashboardAlertBorderBlink {
      0%, 100% {
        border-color: rgba(0, 169, 212, 0.10);
      }
      50% {
        border-color: rgba(0, 169, 212, 0.55);
      }
    }

    .card {
      background: var(--mavi-card);
      border-radius: 18px;
      box-shadow: 0 2px 12px rgba(28, 0, 33, .12);
      border: 1px solid var(--mavi-border);
      overflow: hidden;
      animation: fadeUp .35s ease both;
    }

    .mavis-card {
      background: var(--mavi-card);
      border: 1px solid var(--mavi-border);
      border-radius: 16px;
      box-shadow: 0 2px 10px rgba(28, 0, 33, .10);
    }

    .mavis-label {
      display: block;
      margin-bottom: 6px;
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--mavi-c3);
    }

    .mavis-input {
      width: 100%;
      min-height: 44px;
      background: #f8fbff;
      border: 1.5px solid var(--mavi-border);
      border-radius: 12px;
      padding: 11px 14px;
      font-size: calc(16px * var(--mavi-font-scale));
      color: var(--mavi-c5);
      font-family: 'Montserrat', sans-serif;
      outline: none;
      transition: .15s;
    }

    .mavis-input:focus {
      border-color: var(--mavi-c3);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(0, 169, 212, .18);
    }

    textarea.mavis-input {
      min-height: 110px;
      resize: vertical;
    }

    .mavis-btn {
      min-height: 46px;
      border-radius: 12px;
      border: 0;
      font-weight: 600;
      cursor: pointer;
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: .15s;
      font-size: calc(15px * var(--mavi-font-scale));
    }

    .mavis-btn:hover {
      opacity: .92;
    }

    .mavis-btn:active {
      transform: scale(.98);
    }

    .mavis-btn.is-loading {
      opacity: .88;
      pointer-events: none;
    }

    .mavis-btn.is-loading i {
      animation: btnSpin .9s linear infinite;
    }

    .mavis-btn-success {
      background: linear-gradient(135deg, var(--mavi-c4), var(--mavi-c3));
      color: #fff;
      box-shadow: 0 4px 14px rgba(36, 0, 71, .28);
    }

    .mavis-btn-primary {
      background: linear-gradient(135deg, var(--mavi-c3), var(--mavi-c2));
      color: #fff;
      box-shadow: 0 4px 14px rgba(0, 169, 212, .26);
    }

    .mavis-btn-outline {
      border: 1.5px solid var(--mavi-border);
      background: #fff;
      color: var(--mavi-c4);
    }

    .onboarding-shell {
      max-width: 930px;
      margin: 8px auto 0;
      display: grid;
      gap: 12px;
    }

    .onboarding-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 14px;
    }

    .onboarding-top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .onboarding-brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .onboarding-title {
      font-size: calc(16px * var(--mavi-font-scale));
      font-weight: 700;
      color: var(--mavi-c5);
    }

    .onboarding-sub {
      font-size: calc(12px * var(--mavi-font-scale));
      color: var(--mavi-c3);
    }

    .onboarding-card {
      padding: 18px;
    }

    .onboarding-heading {
      margin: 0 0 4px;
      font-size: calc(28px * var(--mavi-font-scale));
      line-height: 1.15;
      font-weight: 700;
      color: var(--mavi-c5);
      font-family: 'Montserrat', sans-serif;
    }

    .onboarding-muted {
      margin: 0 0 14px;
      font-size: calc(13px * var(--mavi-font-scale));
      color: var(--mavi-c3);
    }

    .onboarding-flash {
      margin: 0 0 14px;
      border-radius: 12px;
      border: 1px solid;
      padding: 10px 12px;
      font-size: calc(13px * var(--mavi-font-scale));
    }

    .onboarding-flash-ok {
      border-color: #a7f3d0;
      background: #ecfdf5;
      color: #065f46;
    }

    .onboarding-flash-error {
      border-color: #fecdd3;
      background: #fff1f2;
      color: #9f1239;
    }

    .onboarding-field-error {
      min-height: 16px;
      margin-top: 5px;
      font-size: calc(12px * var(--mavi-font-scale));
      color: #be123c;
      line-height: 1.2;
    }

    .onboarding-field-tip {
      margin-top: 5px;
      font-size: calc(11px * var(--mavi-font-scale));
      line-height: 1.25;
      color: var(--mavi-c3);
    }

    .mavis-input.is-invalid {
      border-color: #e11d48 !important;
      background: #fff1f2 !important;
      box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.14) !important;
    }

    .onboarding-photo-tip {
      margin-top: 6px;
      font-size: calc(11px * var(--mavi-font-scale));
      color: var(--mavi-c3);
    }

    .onboarding-confirm-card {
      display: grid;
      gap: 12px;
    }

    .onboarding-confirm-grid {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      gap: 8px;
      border: 1px solid var(--mavi-border);
      border-radius: 12px;
      background: #f8fbff;
      padding: 12px;
      font-size: calc(14px * var(--mavi-font-scale));
      color: var(--mavi-c5);
    }

    .onboarding-confirm-photo-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      padding-bottom: 8px;
      border-bottom: 1px dashed var(--mavi-border);
      margin-bottom: 2px;
    }

    .onboarding-confirm-photo {
      width: 56px;
      height: 56px;
      border-radius: 999px;
      object-fit: cover;
      border: 1px solid var(--mavi-border);
      background: #fff;
      flex: 0 0 auto;
    }

    .onboarding-confirm-photo-placeholder {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--mavi-c3);
      font-size: calc(22px * var(--mavi-font-scale));
    }

    .onboarding-confirm-photo-text {
      font-size: calc(12px * var(--mavi-font-scale));
      letter-spacing: .06em;
      text-transform: uppercase;
      font-weight: 600;
      color: var(--mavi-c3);
    }

    .onboarding-confirm-item {
      border: 1px solid rgba(154, 186, 233, 0.45);
      border-radius: 10px;
      background: #fff;
      padding: 9px 10px;
      min-height: 60px;
    }

    .onboarding-confirm-item-wide {
      grid-column: 1 / -1;
      min-height: 68px;
    }

    .onboarding-confirm-label {
      font-size: calc(11px * var(--mavi-font-scale));
      letter-spacing: .06em;
      text-transform: uppercase;
      font-weight: 600;
      color: var(--mavi-c3);
      margin-bottom: 3px;
    }

    .onboarding-confirm-value {
      color: var(--mavi-c5);
      font-size: calc(16px * var(--mavi-font-scale));
      line-height: 1.3;
      word-break: break-word;
    }

    .clients-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(28, 0, 33, 0.58);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 18px;
    }

    .clients-modal-overlay[hidden] {
      display: none !important;
    }

    .clients-modal-card {
      width: 100%;
      max-width: 560px;
      background: #fff;
      border-radius: 14px;
      border: 1px solid #fecdd3;
      box-shadow: 0 20px 44px rgba(28, 0, 33, 0.22);
      overflow: hidden;
    }

    .clients-modal-head {
      padding: 12px 14px;
      border-bottom: 1px solid #ffe4e6;
      background: #fff1f2;
    }

    .clients-modal-head h3 {
      margin: 0;
      font-size: calc(18px * var(--mavi-font-scale));
      color: #9f1239;
      font-weight: 700;
    }

    .clients-modal-body {
      padding: 14px;
      color: #4c0519;
      font-size: calc(14px * var(--mavi-font-scale));
    }

    .clients-modal-body p {
      margin: 0 0 8px;
      font-weight: 600;
    }

    .clients-modal-body ul {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 6px;
    }

    .clients-modal-actions {
      display: flex;
      justify-content: flex-end;
      padding: 12px 14px;
      border-top: 1px solid #ffe4e6;
      background: #fff;
    }

    .onboarding-grid {
      display: grid;
      gap: 12px;
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .onboarding-actions {
      margin-top: 8px;
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .onboarding-submit {
      width: 100%;
    }

    .onboarding-footer {
      text-align: center;
      padding: 12px 14px;
      font-size: calc(11px * var(--mavi-font-scale));
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--mavi-c4);
      border-radius: 12px;
      background: rgba(64, 255, 220, 0.12);
      border: 1px solid var(--mavi-border);
    }

    @media (min-width: 860px) {
      .onboarding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

      .onboarding-confirm-photo-wrap {
        grid-column: 1 / -1;
      }

      .onboarding-submit {
        width: auto;
        min-width: 220px;
      }
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes btnSpin {
      to { transform: rotate(360deg); }
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 16px 0;
    }

    .card-title {
      font-size: calc(13px * var(--mavi-font-scale));
      font-weight: 600;
      color: var(--mavi-c4);
      letter-spacing: .03em;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .card-title-icon {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: calc(12px * var(--mavi-font-scale));
      color: var(--mavi-c4);
      background: rgba(64, 255, 220, 0.12);
    }

    .card-body {
      padding: 14px 16px 16px;
    }

    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 14px 16px 16px;
    }

    .metric-tile {
      border-radius: 12px;
      padding: 12px 10px;
      text-align: center;
      border: 1px solid var(--mavi-border);
      background: var(--mavi-bg-soft);
    }

    .metric-label {
      font-size: calc(10px * var(--mavi-font-scale));
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 5px;
      color: var(--mavi-c3);
    }

    .metric-value {
      font-family: 'Montserrat', sans-serif;
      font-size: calc(26px * var(--mavi-font-scale));
      font-weight: 700;
      line-height: 1;
      color: var(--mavi-c5);
    }

    .metric-unit {
      font-family: 'Montserrat', sans-serif;
      font-size: calc(12px * var(--mavi-font-scale));
      font-weight: 400;
      color: var(--mavi-c2);
      margin-top: 2px;
    }

    .spark-wrap {
      padding: 0 16px 16px;
      height: 86px;
    }

    .form-row {
      display: grid;
      gap: 10px;
    }

    .mail-composer-toggle-wrap {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 6px;
    }

    .mail-composer-toggle {
      width: auto;
      min-width: 220px;
      padding: 10px 16px;
      border-radius: 10px;
      font-size: calc(13px * var(--mavi-font-scale));
      box-shadow: 0 2px 8px rgba(36, 0, 71, .18);
      color: #fff !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .mail-composer-toggle [data-mail-toggle-label],
    .mail-composer-toggle [data-mail-toggle-icon] {
      color: #fff !important;
    }

    .mail-composer-form {
      padding: 10px;
      border: 1px solid rgba(28, 49, 102, 0.12);
      border-radius: 12px;
      background: rgba(248, 251, 255, 0.65);
    }

    .mail-reply-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: #eef7ff;
      border: 1px solid #cde2ef;
      border-radius: 10px;
      padding: 8px 10px;
    }

    .mail-reply-banner-text {
      font-size: calc(12px * var(--mavi-font-scale));
      color: var(--mavi-c4);
      font-weight: 600;
    }

    .mail-reply-cancel {
      border: 1px solid var(--mavi-border);
      background: #fff;
      color: var(--mavi-c4);
      border-radius: 8px;
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 600;
      padding: 5px 8px;
      cursor: pointer;
    }

    .mail-inline-reply-btn {
      border: 1px solid var(--mavi-border);
      background: #fff;
      color: var(--mavi-c4);
      border-radius: 8px;
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 600;
      padding: 5px 9px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
    }

    .field-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .field-label {
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--mavi-c3);
    }

    .field-input,
    .select-field {
      background: #f8fbff;
      border: 1.5px solid var(--mavi-border);
      border-radius: 12px;
      padding: 11px 14px;
      font-size: calc(16px * var(--mavi-font-scale));
      font-family: 'Montserrat', sans-serif;
      color: var(--mavi-c5);
      outline: none;
      transition: .15s;
      width: 100%;
      min-height: 44px;
    }

    .field-input:focus,
    .select-field:focus {
      border-color: var(--mavi-c3);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(0, 169, 212, .18);
    }

    textarea.field-input {
      min-height: 90px;
      resize: none;
      line-height: 1.5;
    }

    .field-help {
      font-size: calc(11px * var(--mavi-font-scale));
      color: var(--mavi-c3);
      line-height: 1.3;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--mavi-c4), var(--mavi-c3));
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 13px 20px;
      font-size: calc(15px * var(--mavi-font-scale));
      font-weight: 600;
      font-family: 'Montserrat', sans-serif;
      cursor: pointer;
      width: 100%;
      transition: .15s;
      box-shadow: 0 4px 14px rgba(36, 0, 71, .28);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

    .btn-primary:hover {
      opacity: .92;
    }

    .btn-primary:active {
      transform: scale(.98);
    }

    .comparison-row {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .comp-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 6px;
      gap: 10px;
    }

    .comp-label {
      font-size: calc(13px * var(--mavi-font-scale));
      color: var(--mavi-c4);
    }

    .comp-value {
      font-size: calc(16px * var(--mavi-font-scale));
      font-weight: 700;
      color: var(--mavi-c5);
      font-family: 'Montserrat', sans-serif;
      white-space: nowrap;
    }

    .progress-track {
      height: 7px;
      border-radius: 100px;
      background: rgba(0, 169, 212, 0.14);
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      border-radius: 100px;
      transition: width 1s cubic-bezier(.34, 1.56, .64, 1);
    }

    .progress-fill.group {
      background: var(--mavi-c2);
    }

    .progress-fill.user {
      background: linear-gradient(90deg, var(--mavi-c4), var(--mavi-c3));
    }

    .badge-above {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(64, 255, 220, 0.18);
      color: var(--mavi-c5);
      border-radius: 100px;
      padding: 3px 10px;
      font-size: calc(11px * var(--mavi-font-scale));
      font-weight: 600;
      margin-top: 5px;
    }

    .comp-imc-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding-top: 10px;
      border-top: 1px solid var(--mavi-border);
    }

    .comp-imc-item {
      background: #f8fbff;
      border-radius: 12px;
      padding: 10px 12px;
      border: 1px solid var(--mavi-border);
    }

    .comp-imc-label {
      font-size: calc(10px * var(--mavi-font-scale));
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--mavi-c3);
      margin-bottom: 3px;
    }

    .comp-imc-value {
      font-family: 'Montserrat', sans-serif;
      font-size: calc(22px * var(--mavi-font-scale));
      font-weight: 700;
      color: var(--mavi-c5);
    }

    .comp-footer {
      font-size: calc(11px * var(--mavi-font-scale));
      color: var(--mavi-c3);
      margin-top: 10px;
      text-align: center;
    }

    .tab-section {
      display: none;
    }

    .tab-section.active {
      display: block;
    }

    #tab-store {
      padding: 0;
    }

    .store-full-wrap {
      margin: 0;
      border-top: 1px solid var(--mavi-border);
      border-bottom: 1px solid var(--mavi-border);
      background: #ffffff;
    }

    .store-full-frame {
      width: 100%;
      border: 0;
      display: block;
      background: #fff;
      height: calc(100vh - 206px);
      height: calc(100dvh - 206px);
      min-height: 520px;
    }

    .toggle-row {
      display: flex;
      gap: 6px;
      padding: 14px 16px 0;
    }

    .toggle-btn {
      flex: 1;
      padding: 8px 6px;
      border-radius: 10px;
      font-size: calc(12px * var(--mavi-font-scale));
      font-weight: 600;
      border: 1.5px solid var(--mavi-border);
      background: #f8fbff;
      color: var(--mavi-c4);
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      transition: .15s;
    }

    .toggle-btn.active {
      background: var(--mavi-c4);
      color: #fff;
      border-color: var(--mavi-c4);
    }

    .chart-wrap {
      padding: 14px 16px 16px;
      height: 240px;
    }

    .history-table-wrap {
      overflow-x: hidden;
    }

    .history-table {
      width: 100%;
      border-collapse: collapse;
      font-size: calc(13px * var(--mavi-font-scale));
      min-width: 0;
      table-layout: fixed;
    }

    .history-table th {
      font-size: calc(10px * var(--mavi-font-scale));
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--mavi-c3);
      padding: 8px 12px;
      text-align: left;
      border-bottom: 1px solid var(--mavi-border);
    }

    .history-table td {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(28, 49, 102, .1);
      color: var(--mavi-c4);
      vertical-align: top;
      white-space: normal;
      word-break: break-word;
    }

    .history-table td:first-child {
      color: var(--mavi-c5);
      font-weight: 500;
      white-space: normal;
      width: 18%;
    }

    .history-table th:nth-child(1), .history-table td:nth-child(1) { width: 24%; }
    .history-table th:nth-child(2), .history-table td:nth-child(2) { width: 19%; }
    .history-table th:nth-child(3), .history-table td:nth-child(3) { width: 18%; }
    .history-table th:nth-child(4), .history-table td:nth-child(4) { width: 25%; }
    .history-table th:nth-child(5), .history-table td:nth-child(5) { width: 14%; text-align: center; }

    .install-help-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      z-index: 95;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 12px;
    }

    .install-help-card {
      width: 100%;
      max-width: 430px;
      background: #fff;
      border: 1px solid var(--mavi-border);
      border-radius: 16px;
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
      padding: 14px;
      color: var(--mavi-c5);
    }

    .install-help-card h4 {
      font-size: calc(14px * var(--mavi-font-scale));
      font-weight: 700;
      margin-bottom: 8px;
    }

    .install-help-card ol {
      margin: 0;
      padding-left: 18px;
      font-size: calc(12px * var(--mavi-font-scale));
      line-height: 1.5;
    }

    .install-help-actions {
      margin-top: 10px;
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .install-help-btn {
      border: 1px solid var(--mavi-border);
      background: #f3f9ff;
      color: var(--mavi-c5);
      border-radius: 10px;
      padding: 8px 12px;
      font-size: calc(12px * var(--mavi-font-scale));
      font-weight: 600;
      cursor: pointer;
    }

    .origem-badge {
      display: inline-block;
      padding: 2px 7px;
      border-radius: 100px;
      font-size: calc(10px * var(--mavi-font-scale));
      font-weight: 600;
      background: #f8dfdb;
      color: var(--mavi-c5);
    }

    .tip-card {
      background: #fff2ef;
      border: 1px solid #e8d7c5;
      border-radius: 12px;
      padding: 14px;
    }

    .tip-card-title {
      font-weight: 600;
      font-size: calc(14px * var(--mavi-font-scale));
      color: var(--mavi-c5);
      margin-bottom: 5px;
    }

    .tip-card-body {
      font-size: calc(13px * var(--mavi-font-scale));
      color: var(--mavi-c4);
      line-height: 1.55;
    }

    .ebook-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--mavi-border);
    }

    .ebook-item:last-child {
      border-bottom: none;
    }

    .ebook-icon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: #fcf5ec;
      border: 1px solid #e8d7c5;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: calc(18px * var(--mavi-font-scale));
      flex-shrink: 0;
    }

    .ebook-name {
      font-size: calc(13px * var(--mavi-font-scale));
      font-weight: 500;
      color: var(--mavi-c5);
    }

    .ebook-link {
      font-size: calc(12px * var(--mavi-font-scale));
      color: var(--mavi-c4);
      font-weight: 500;
      margin-top: 2px;
    }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid var(--mavi-border);
      background: #f8fbff;
      color: var(--mavi-c4);
      border-radius: 12px;
      font-family: 'Montserrat', sans-serif;
      font-size: calc(12px * var(--mavi-font-scale));
      font-weight: 600;
      padding: 10px 14px;
      cursor: pointer;
      transition: all .18s ease;
      text-decoration: none;
    }

    .btn-ghost:hover {
      background: #eef6ff;
      border-color: #9dc2e2;
      color: var(--mavi-c5);
    }

    .store-embed-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: flex-start;
    }

    .store-embed-help {
      margin: 10px 0 10px;
      font-size: calc(12px * var(--mavi-font-scale));
      color: var(--mavi-c3);
    }

    .store-embed-frame-wrap {
      border: 1px solid var(--mavi-border);
      border-radius: 14px;
      overflow: hidden;
      background: #fff;
      box-shadow: inset 0 0 0 1px rgba(28,49,102,.04);
    }

    .store-embed-frame {
      width: 100%;
      height: 72vh;
      min-height: 540px;
      border: 0;
      background: #fff;
      display: block;
    }

    .profile-header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px;
      border-bottom: 1px solid var(--mavi-border);
    }

    .profile-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--mavi-c4), var(--mavi-c3));
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: 'Montserrat', sans-serif;
      font-size: calc(22px * var(--mavi-font-scale));
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
    }

    .profile-name {
      font-size: calc(16px * var(--mavi-font-scale));
      font-weight: 600;
      color: var(--mavi-c5);
    }

    .profile-username {
      font-size: calc(12px * var(--mavi-font-scale));
      color: var(--mavi-c3);
      margin-top: 2px;
    }

    .profile-dl {
      padding: 12px 16px;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .profile-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(28, 49, 102, .1);
      font-size: calc(14px * var(--mavi-font-scale));
    }

    .profile-row:last-child {
      border-bottom: none;
    }

    .profile-row dt {
      color: var(--mavi-c3);
    }

    .profile-row dd {
      font-weight: 500;
      color: var(--mavi-c5);
      text-align: right;
    }

    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 430px;
      background: var(--mavi-c5);
      border-top: 1px solid var(--mavi-c4);
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      z-index: 50;
      box-shadow: 0 -4px 20px rgba(28, 0, 33, .45);
    }

    .nav-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 10px 4px 12px;
      cursor: pointer;
      border: none;
      background: none;
      font-family: 'Montserrat', sans-serif;
      font-size: calc(10px * var(--mavi-font-scale));
      font-weight: 500;
      color: #d9ebff;
      transition: .15s;
      position: relative;
      min-height: 58px;
    }

    .nav-btn i {
      font-size: calc(18px * var(--mavi-font-scale));
      line-height: 1;
    }

    .nav-icon-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .nav-notify {
      position: absolute;
      top: -8px;
      right: -12px;
      min-width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #ff3b30;
      color: #fff;
      border: 1px solid rgba(0, 0, 0, 0.15);
      font-size: calc(9px * var(--mavi-font-scale));
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      line-height: 1;
    }

    .nav-btn.active {
      color: #ffffff;
    }

    .nav-btn.active::after {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 32px;
      height: 2.5px;
      border-radius: 0 0 4px 4px;
      background: var(--mavi-c1);
    }

    .clients-toast {
      bottom: 94px;
      background: var(--mavi-c5);
      box-shadow: 0 8px 20px rgba(28, 0, 33, .35);
    }

    .pull-indicator {
      position: fixed;
      left: 50%;
      top: 6px;
      transform: translate(-50%, -110%);
      background: rgba(28, 49, 102, 0.06);
      color: rgba(28, 49, 102, 0.24);
      border: 1px solid rgba(28, 49, 102, 0.1);
      padding: 0.08rem 0.35rem;
      border-radius: 999px;
      font-size: 0.56rem;
      line-height: 1;
      opacity: 0.08;
      transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
      z-index: 65;
      box-shadow: none;
      pointer-events: none;
    }

    .pull-indicator.show {
      transform: translate(-50%, 0);
      opacity: 0.42;
      background: rgba(28, 49, 102, 0.12);
      color: rgba(28, 49, 102, 0.62);
    }

    .mavis-toast {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      color: #fff;
      padding: 0.65rem 0.95rem;
      border-radius: 0.7rem;
      font-size: 0.88rem;
      z-index: 70;
    }

    .clients-footer {
      margin: 10px 16px 0;
      border: 1px solid var(--mavi-border);
      background: rgba(64, 255, 220, 0.12);
      color: var(--mavi-c4);
      border-radius: 12px;
      padding: 10px 14px;
      text-align: center;
      font-size: calc(10px * var(--mavi-font-scale));
      letter-spacing: .05em;
      text-transform: uppercase;
      font-weight: 600;
    }

    @media (max-width: 900px) {
      .clients-login-brand {
        display: none;
      }

      .topbar-right {
        gap: 6px;
      }

      .top-profile-text {
        display: none;
      }

      .clients-login-form-wrapper {
        min-height: 100vh;
        padding: 20px;
      }

      .clients-login-card {
        padding: 26px 22px;
        max-width: 540px;
      }

      .clients-auth-card {
        padding: 24px 20px;
      }

      .clients-auth-text {
        font-size: calc(18px * var(--mavi-font-scale));
      }

      .clients-auth-card .clients-login-group input,
      .clients-login-group input {
        font-size: calc(18px * var(--mavi-font-scale));
      }

      .store-full-frame {
        height: calc(100vh - 188px);
        height: calc(100dvh - 188px);
        min-height: 420px;
      }
    }

    @media (min-width: 980px) {
      .clients-dashboard-main {
        padding: 18px;
      }

      .device-frame.desktop-shell {
        max-width: 1220px;
        min-height: calc(100vh - 36px);
        border-radius: 24px;
        border: 1px solid var(--mavi-border);
        box-shadow: 0 10px 34px rgba(28, 0, 33, .18);
        padding-top: 74px;
        padding-bottom: 122px;
      }

      .topbar {
        max-width: 1208px;
        border-radius: 16px;
      }

      .home-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }

      .card-span-2 {
        grid-column: span 2;
      }

      .chart-wrap {
        height: 300px;
      }

      .history-table {
        min-width: 100%;
      }

      .bottom-nav {
        max-width: 1220px;
        border-radius: 0 0 24px 24px;
      }

      .store-full-frame {
        height: calc(100vh - 240px);
        height: calc(100dvh - 240px);
        min-height: 620px;
      }
    }
