/* Nexo Finanças — Perfil refinado, somente na cópia de prévia.
   Integração com os painéis nativos: conta, app e dados. */
.profile-settings.nexo-profile-updated {display:flex;flex-direction:column;gap:0;max-width:900px;margin:0 auto}
.profile-settings.nexo-profile-updated .profile-overview {margin-bottom:12px}
.profile-settings.nexo-profile-updated .profile-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin-top:17px}
.profile-settings.nexo-profile-updated .profile-tabs >button {min-width:0}
.profile-settings.nexo-profile-updated[data-profile-tab="account"]>[data-profile-panel]:not([data-profile-panel="account"]),
.profile-settings.nexo-profile-updated[data-profile-tab="app"]>[data-profile-panel]:not([data-profile-panel="app"]),
.profile-settings.nexo-profile-updated[data-profile-tab="data"]>[data-profile-panel]:not([data-profile-panel="data"]) {display:none!important}
.profile-settings.nexo-profile-updated>.nexo-profile-redesigned-panel {border:0;box-shadow:none;background:transparent;padding:0;margin:0;min-width:0}
.profile-settings .nexo-profile-legacy-source {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.nexo-profile-list-group{margin:16px 0 26px;min-width:0}
.nexo-profile-list-group h3 {text-transform:uppercase;font-size:12px;letter-spacing:1.35px;font-weight:620;color:var(--text-secondary);margin:0 0 14px;padding:0 7px}
.nexo-profile-list{background:linear-gradient(145deg,#fff,#fcfdfe);border:1px solid #e9ecf0;border-radius:17px;padding:0 20px;box-shadow:0 8px 26px #1b2a4206}
.nexo-profile-row {display:flex;align-items:center;width:100%;min-height:75px;gap:16px;background:transparent;border:0;border-bottom:1px solid #e9ebef;padding:14px 0;cursor:pointer;text-align:left;color:var(--text-primary);font:inherit;transition:background .2s}
.nexo-profile-row:last-child {border-bottom:0}
.nexo-profile-row:hover,.nexo-profile-row:focus-visible {background:#eef3f755;outline:none}
.nexo-profile-row:focus-visible{box-shadow:inset 0 0 0 2px #b2c4d7;border-radius:10px}
.nexo-profile-row-icon{flex:0 0 43px;width:43px;height:43px;background:linear-gradient(140deg,#f7f8fa,#f0f2f5);border:1px solid #e1e5e9;border-radius:13px;display:flex;justify-content:center;align-items:center;color:var(--text-primary)}
.nexo-profile-row-icon .nexo-icon {width:22px;height:22px;stroke-width:1.2}
.nexo-profile-row-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.nexo-profile-row-label {font-size:15px;font-weight:550;line-height:1.35}
.nexo-profile-row-text small{font-size:12px;color:var(--text-muted);line-height:1.35;font-weight:400}
.nexo-profile-row-value{font-size:14px;line-height:1.35;font-weight:400;color:var(--text-secondary);text-align:right;max-width:52%;overflow-wrap:anywhere}
.nexo-profile-row-value:empty{display:none}
.nexo-profile-row-arrow {width:18px;flex:none;display:flex;align-items:center;justify-content:center;color:var(--text-muted)}
.nexo-profile-row-arrow .nexo-icon{width:16px;height:16px}
.nexo-profile-row.is-danger .nexo-profile-row-label,.nexo-profile-row.is-danger .nexo-profile-row-icon{color:#db1438}
.nexo-profile-row.is-danger .nexo-profile-row-icon{background:#fff1f3;border-color:#f8d9df}
.nexo-profile-scrim{position:fixed;inset:0;z-index:9997;background:#111a2859;opacity:0;backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0);transition:opacity .36s,backdrop-filter .36s}
.nexo-profile-scrim.is-open{opacity:1;backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px)}
.nexo-profile-bottom-sheet{position:fixed;left:50%;bottom:0;z-index:9998;transform:translate(-50%,110%);width:min(640px,100%);max-height:min(88dvh,820px);overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(150deg,#fff 0%,#fbfcfe 100%);border:1px solid #e5e9ed;border-bottom:0;border-radius:26px 26px 0 0;padding:14px clamp(19px,4vw,32px) calc(29px + env(safe-area-inset-bottom));box-shadow:0 -20px 70px #121a2730;transition:transform .44s cubic-bezier(.22,.85,.26,1);scrollbar-width:thin}
.nexo-profile-bottom-sheet.is-open{transform:translate(-50%,0)}
.nexo-bottom-open {overflow:hidden}
.nexo-bottom-handle{width:43px;height:5px;border-radius:9px;background:#dce0e5;margin:0 auto 20px}
.nexo-bottom-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.nexo-bottom-header h2{font-size:20px;font-weight:650;letter-spacing:-.35px;margin:0}
.nexo-bottom-close{width:37px;height:37px;border-radius:13px;border:1px solid #e1e5e9;background:#f6f7f9;display:grid;place-items:center;cursor:pointer;color:var(--text-secondary)}
.nexo-bottom-close .nexo-icon{width:20px;height:20px}
.nexo-bottom-description{font-size:14px;color:var(--text-secondary);line-height:1.7;margin:0 0 20px}
.nexo-bottom-edit{display:grid;gap:22px}
.nexo-bottom-input-wrap{font-size:13px;color:var(--text-secondary);font-weight:500;display:grid;gap:10px}
.nexo-bottom-input-wrap input{font:inherit;font-size:16px;color:var(--text-primary);background:#f3f5f8;border:1px solid #cfdce7;border-radius:17px;min-height:54px;padding:14px 16px;width:100%;outline:none}
.nexo-bottom-input-wrap input:focus{border-color:#608fcd;box-shadow:0 0 0 3px #608fcd25}
.nexo-bottom-buttons{display:flex;gap:10px;margin-top:3px}
.nexo-bottom-buttons button,.nexo-bottom-action{min-height:46px;border-radius:17px;padding:12px 22px;font:inherit;font-weight:560}
.nexo-bottom-buttons button{flex:1}
.nexo-bottom-action{min-width:170px}
.nexo-bottom-choices{display:grid;gap:0;margin-top:-6px}
.nexo-bottom-choice{width:100%;min-height:56px;border:0;border-bottom:1px solid #e9edf2;background:transparent;display:flex;gap:10px;align-items:center;justify-content:space-between;text-align:left;padding:12px 9px;font:inherit;font-size:15px;cursor:pointer;color:var(--text-primary)}
.nexo-bottom-choice:last-child{border:0}
.nexo-bottom-choice.selected{color:#286cbe;background:#eaf0f6;border-radius:13px}
.nexo-bottom-choice-check{display:none;color:#2e7ac5}
.nexo-bottom-choice.selected .nexo-bottom-choice-check{display:flex}
.nexo-bottom-choice-check .nexo-icon{width:20px;height:20px}
@media(max-width:680px){
.profile-settings.nexo-profile-updated {width:100%}
.profile-settings.nexo-profile-updated .profile-overview{margin-bottom:9px}
.nexo-profile-list{border:0;background:transparent;box-shadow:none;border-radius:0;padding:0 1px}
.nexo-profile-list-group{margin:17px 0 32px}
.nexo-profile-list-group h3{padding:0 2px;font-size:11px}
.nexo-profile-row{min-height:74px;gap:12px}
.nexo-profile-row-icon{width:42px;height:42px;flex-basis:42px}
.nexo-profile-row-label{font-size:14px}
.nexo-profile-row-text small{font-size:11px}
.nexo-profile-row-value{font-size:12px;max-width:43%}
.nexo-profile-row-arrow{width:13px}
.nexo-profile-bottom-sheet{padding:14px 22px calc(24px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce) and (max-width:800px){.nexo-profile-scrim,.nexo-profile-bottom-sheet{transition:none}}

/* Adaptação refinada ao padrão nativo do Nexo (Inter, Iconoir, raio 17px). */
.profile-settings.nexo-profile-updated{max-width:800px}
.profile-settings.nexo-profile-updated .nexo-profile-list{background:var(--nexo-surface,#fbfcfd);border:1px solid var(--surface-border,#dfe4eb);box-shadow:0 4px 12px #28344604;border-radius:20px}
.profile-settings.nexo-profile-updated .nexo-profile-list-group h3{color:var(--menu-ink,#687d90);font-size:12px;font-weight:450;letter-spacing:.9px}
.profile-settings.nexo-profile-updated .nexo-profile-row{color:var(--ink,#232328);font-size:13px;min-height:66px;padding:12px 0;gap:13px}
.profile-settings.nexo-profile-updated .nexo-profile-row-icon{background:var(--menu-selected,#e7eef4);border-color:var(--menu-selected-border,#d0deea);width:38px;height:38px;flex-basis:38px;border-radius:var(--control-radius,17px);color:var(--text-secondary)}
.profile-settings.nexo-profile-updated .nexo-profile-row-icon .nexo-icon{width:20px;height:20px;stroke-width:1.2}
.profile-settings.nexo-profile-updated .nexo-profile-row-label{font-size:13px;font-weight:450}
.profile-settings.nexo-profile-updated .nexo-profile-row-text small{font-size:11px;color:var(--muted,#8b8b95)}
.profile-settings.nexo-profile-updated .nexo-profile-row-value{font-size:12px;color:var(--menu-ink,#687d90)}
.profile-settings.nexo-profile-updated .nexo-profile-row-arrow{color:var(--text-muted)}
.profile-settings.nexo-profile-updated .nexo-profile-row.is-danger .nexo-profile-row-icon{background:#fff0f0;border-color:#f2d6d6;color:var(--red,#ec0000)}
.profile-settings.nexo-profile-updated .nexo-profile-row[hidden]{display:none!important}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor{display:grid;grid-template-columns:38px minmax(100px,1fr) minmax(100px,1.2fr) 30px 25px;align-items:center;column-gap:12px;min-height:66px;padding:8px 0;border-bottom:1px solid var(--line,#e0e4eb);font-size:13px}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor .nexo-profile-row-icon{height:38px}
.profile-settings.nexo-profile-updated .nexo-inline-label{font-size:13px;color:var(--ink)}
.profile-settings.nexo-profile-updated .nexo-inline-control{min-width:0;display:flex;flex-direction:column;gap:8px}
.profile-settings.nexo-profile-updated .nexo-inline-control>input,
.profile-settings.nexo-profile-updated .nexo-inline-control>select{width:100%;min-width:0;min-height:40px;height:40px;border-radius:var(--control-radius,17px);font-size:13px;padding:8px 12px;background:var(--nexo-surface,#fbfcfd);border:1px solid var(--option-border,#d7e0e8)}
.profile-settings.nexo-profile-updated .nexo-inline-control>.universal-picker{width:100%;min-width:0}
.profile-settings.nexo-profile-updated .nexo-inline-control .control-trigger{min-height:40px;height:40px;box-sizing:border-box;font-size:13px}
.profile-settings.nexo-profile-updated .nexo-profile-confirm,
.profile-settings.nexo-profile-updated .nexo-profile-cancel{display:flex;align-items:center;justify-content:center;width:29px;height:30px;background:transparent;border:0;padding:4px;color:var(--text-muted);cursor:pointer}
.profile-settings.nexo-profile-updated .nexo-profile-confirm{color:#1bb36f}
.profile-settings.nexo-profile-updated .nexo-profile-confirm .nexo-icon{width:20px;height:20px;stroke-width:1.4}
.profile-settings.nexo-profile-updated .nexo-profile-cancel .nexo-icon{width:16px;height:16px}
.profile-settings.nexo-profile-updated .nexo-profile-confirm:hover{background:#e6f8ed}
.profile-settings.nexo-profile-updated .nexo-profile-cancel:hover{background:#eef2f5;color:var(--text-secondary)}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor.is-detail{grid-template-columns:38px minmax(100px,.45fr) minmax(190px,1.4fr) 25px}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor.is-detail .nexo-inline-detail{display:grid;gap:8px;padding:8px 0;min-width:0}
.profile-settings.nexo-profile-updated .nexo-profile-detail-text{color:var(--menu-ink,#687d90);font-size:12px;line-height:1.7;margin:0}
.profile-settings.nexo-profile-updated .nexo-profile-detail-button{justify-self:start;min-width:155px}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor.is-detail .nexo-profile-cancel{grid-column:4}
.profile-settings.nexo-profile-updated .nexo-profile-saved-sign{color:#1db873;display:flex;align-items:center;margin-right:2px}
.profile-settings.nexo-profile-updated .nexo-profile-saved-sign .nexo-icon{width:17px;height:17px}
.nexo-profile-bottom-sheet{width:min(600px,100%);background:var(--nexo-surface-glass,linear-gradient(145deg,#fbfcfd,#f7f9fb));border-radius:24px 24px 0 0;padding:14px 22px calc(27px + env(safe-area-inset-bottom))}
.nexo-bottom-header h2{font-size:16px;font-weight:550}
.nexo-bottom-description,.nexo-profile-bottom-sheet .nexo-profile-detail-text{font-size:12px;color:var(--menu-ink,#687d90);line-height:1.7}
.nexo-profile-bottom-sheet .nexo-profile-edit-input{width:100%;height:46px;min-height:46px;border-radius:var(--control-radius,17px);font-size:13px;padding:11px 14px;background:var(--nexo-surface,#fbfcfd);border:1px solid var(--option-border,#d7e0e8)}
.nexo-profile-bottom-sheet .nexo-bottom-buttons{display:flex;gap:10px;margin-top:16px}
.nexo-profile-bottom-sheet .nexo-bottom-buttons button{min-height:44px;min-width:120px;flex:1}
.nexo-profile-bottom-sheet .nexo-bottom-options{display:grid;gap:5px}
.nexo-profile-bottom-sheet .nexo-bottom-option{min-height:46px;padding:10px 14px;background:transparent;border:1px solid transparent;border-radius:var(--control-radius,17px);display:flex;justify-content:space-between;align-items:center;color:var(--menu-ink,#687d90);font-size:13px;text-align:left;cursor:pointer}
.nexo-profile-bottom-sheet .nexo-bottom-option.selected{background:var(--menu-selected,#e7eef4);border-color:var(--menu-selected-border,#d0deea)}
.nexo-profile-bottom-sheet .nexo-bottom-check{visibility:hidden;color:var(--text-secondary)}
.nexo-profile-bottom-sheet .nexo-bottom-option.selected .nexo-bottom-check{visibility:visible}
.nexo-profile-bottom-sheet .nexo-bottom-check .nexo-icon{width:18px;height:18px}
.nexo-install-steps{margin:12px 0 18px;padding-left:22px;display:grid;gap:9px;color:var(--menu-ink,#687d90);font-size:12px;line-height:1.6}
.nexo-profile-inline-editor .nexo-install-steps{margin:4px 0 8px}
.nexo-profile-bottom-sheet .nexo-profile-detail-button{min-width:170px}
@media(max-width:600px){
.profile-settings.nexo-profile-updated .nexo-profile-list{background:transparent;border:0;box-shadow:none;padding:0 2px}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor{grid-template-columns:minmax(85px,1fr) minmax(120px,1.5fr) 27px 21px;column-gap:7px}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor>.nexo-profile-row-icon{display:none}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor.is-detail{grid-template-columns:minmax(80px,.7fr) minmax(120px,1.3fr) 21px}
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor.is-detail .nexo-profile-cancel{grid-column:3}
.profile-settings.nexo-profile-updated .nexo-profile-row{min-height:68px}
}

/* O formato dos ícones segue a referência, mas a paleta é cinza neutro do Nexo. */
.profile-settings.nexo-profile-updated .nexo-profile-row-icon,
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor .nexo-profile-row-icon{
  background:#f4f5f7;
  border:1px solid #e0e4e9;
  color:var(--text-muted);
  border-radius:var(--control-radius,17px);
  box-shadow:inset 0 1px 0 #ffffffdd;
}
.profile-settings.nexo-profile-updated .nexo-profile-row-icon .nexo-icon{
  stroke-width:1.2;
}
.profile-settings.nexo-profile-updated .nexo-profile-row.is-danger .nexo-profile-row-icon{
  background:#f4f5f7;
  color:var(--text-muted);
  border-color:#e0e4e9;
}
/* Feedback somente nas interfaces móveis: sobe discretamente da base da tela. */
.nexo-profile-mobile-toast{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:fixed;
  bottom:calc(90px + env(safe-area-inset-bottom,0px));
  left:50%;
  z-index:10020;
  min-width:136px;
  padding:13px 20px;
  border:1px solid #cbead7;
  border-radius:var(--control-radius,17px);
  background:#ebf9f0;
  box-shadow:0 13px 34px #236f4b1c,0 2px 6px #236f4b10;
  color:#206f47;
  font:500 13px/1.45 Inter,system-ui,sans-serif;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(-50%,38px);
  transition:opacity .3s ease,transform .38s cubic-bezier(.22,.8,.26,1),visibility .3s;
}
.nexo-profile-mobile-toast .nexo-icon{
  color:#26965c;
  width:18px;
  height:18px;
  stroke-width:1.6;
}
.nexo-profile-mobile-toast.is-visible{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}
@media(max-width:800px){
  body.nexo-profile-green-feedback #toast{
    opacity:0!important;
  }
}
@media(min-width:801px){
  .nexo-profile-mobile-toast{display:none!important}
}
@media (prefers-reduced-motion:reduce) and (max-width:800px){
  .nexo-profile-mobile-toast{transition:none}
}

/* Painel de edição no celular: fundo, bordas e hierarquia da referência,
   preservando a identidade tipográfica e a estrutura do Nexo. */
@media(max-width:800px){
  .nexo-profile-bottom-sheet{
    background:#fff;
    border:1px solid #e3e7ec;
    border-bottom:0;
    border-radius:24px 24px 0 0;
    padding:15px 23px calc(25px + env(safe-area-inset-bottom));
  }
  .nexo-profile-bottom-sheet .nexo-bottom-handle{
    background:#dfe2e7;
    width:44px;
    height:5px;
    margin-bottom:19px;
  }
  .nexo-profile-bottom-sheet .nexo-bottom-header{
    margin-bottom:10px;
  }
  .nexo-profile-bottom-sheet .nexo-bottom-header h2{
    font-size:16px;
    font-weight:550;
    color:var(--text-primary);
  }
  .nexo-profile-bottom-sheet .nexo-profile-edit-input{
    box-sizing:border-box;
    width:100%;
    min-height:52px;
    height:52px;
    padding:13px 15px;
    border:1px solid #d8dfe9;
    border-radius:17px;
    outline:0;
    background:#f4f5f8;
    color:var(--text-primary);
    font:400 14px/1.5 Inter,system-ui,sans-serif;
    box-shadow:none;
  }
  .nexo-profile-bottom-sheet .nexo-profile-edit-input::placeholder{
    color:var(--text-muted);
  }
  .nexo-profile-bottom-sheet .nexo-profile-edit-input:focus{
    background:#f4f5f8;
    border-color:#4584f8;
    box-shadow:0 0 0 1px #4584f822;
  }
  .nexo-profile-bottom-sheet .nexo-bottom-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:stretch;
    gap:9px;
    margin-top:15px;
  }
  .nexo-profile-bottom-sheet .nexo-bottom-buttons button{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:47px;
    height:47px;
    padding:10px;
    justify-content:center;
    border-radius:var(--control-radius,17px)!important;
    font:550 13px/1.4 Inter,system-ui,sans-serif;
  }
  .nexo-profile-bottom-sheet .nexo-bottom-buttons .secondary{
    background:#f3f4f7;
    border:1px solid #f3f4f7;
    color:var(--text-primary);
  }
  .nexo-profile-bottom-sheet .nexo-bottom-buttons .primary{
    background:var(--red,#ec0000);
    border:1px solid var(--red,#ec0000);
    color:#fff;
  }
}

/* Refinamento final da folha móvel: título solto, sem caixa superior,
   e botões retangulares arredondados com o mesmo raio do campo. */
@media(max-width:800px){
 .nexo-profile-bottom-sheet .nexo-bottom-header{
   display:block;
   width:100%;
   height:auto;
   min-height:0;
   margin:0 0 14px;
   padding:0;
   background:transparent;
   border:0;
   box-shadow:none;
 }
 .nexo-profile-bottom-sheet #nexo-bottom-title{
   outline:none;
   padding:0;
   margin:0;
   color:var(--text-primary);
   font-size:17px;
   font-weight:600;
   line-height:1.45;
 }
 .nexo-profile-bottom-sheet .nexo-profile-edit-input,
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button{
   border-radius:var(--control-radius,17px)!important;
 }
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button{
   height:52px;
   min-height:52px;
   border-radius:17px!important;
   box-shadow:none;
   transform:none;
 }
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button:hover{
   transform:none;
 }
}

/* Garante geometria idêntica entre campo e botões, apesar das regras globais. */
@media(max-width:800px){
 .nexo-profile-bottom-sheet .nexo-profile-edit-input{
   height:52px!important;
   min-height:52px!important;
   background:#f4f5f8!important;
   border:1px solid #d8dfe9!important;
 }
 .nexo-profile-bottom-sheet .nexo-profile-edit-input:focus{
   border-color:#4584f8!important;
   box-shadow:0 0 0 1px #4584f822!important;
 }
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.primary,
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary{
   height:52px!important;
   min-height:52px!important;
   max-height:none!important;
   border-radius:17px!important;
   padding:10px 14px!important;
   box-shadow:none!important;
 }
}

/* Ajuste de proporções aprovado por referência: painel móvel mais compacto.
   Campos mais horizontais, título próximo ao campo, botões menos altos. */
@media(max-width:800px){
 .nexo-profile-bottom-sheet{
   padding:12px 18px calc(19px + env(safe-area-inset-bottom))!important;
 }
 .nexo-profile-bottom-sheet .nexo-bottom-handle{
   margin-bottom:13px!important;
 }
 .nexo-profile-bottom-sheet .nexo-bottom-header{
   margin-bottom:6px!important;
 }
 .nexo-profile-bottom-sheet .nexo-profile-edit-input{
   box-sizing:border-box;
   height:48px!important;
   min-height:48px!important;
   padding:10px 14px!important;
   border-radius:17px!important;
 }
 .nexo-profile-bottom-sheet .nexo-bottom-buttons{
   gap:8px!important;
   margin-top:11px!important;
 }
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.primary,
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary{
   box-sizing:border-box;
   height:45px!important;
   min-height:45px!important;
   border-radius:17px!important;
   padding:8px 12px!important;
 }
}

/* The login email remains read-only; its row opens an explanation on every viewport. */
@media(min-width:801px){
 .profile-settings.nexo-profile-updated .nexo-profile-email-readonly{
  cursor:pointer;
  pointer-events:auto;
 }
 .profile-settings.nexo-profile-updated .nexo-profile-email-readonly:hover{
  background:transparent;
 }
}
.profile-settings.nexo-profile-updated .nexo-profile-email-readonly .nexo-profile-row-arrow{
 display:none;
}
.nexo-profile-bottom-sheet .nexo-email-understood{
 display:block;
 width:100%;
 height:45px;
 min-height:45px;
 margin-top:19px;
 border:0;
 border-radius:17px!important;
 background:#f2f3f6;
 color:var(--text-primary);
 font:550 13px/1.3 Inter,system-ui,sans-serif;
 box-shadow:none;
 cursor:pointer;
}
.nexo-profile-bottom-sheet .nexo-email-understood:hover{
 background:#e9ebef;
}
.nexo-profile-bottom-sheet .nexo-email-understood:focus-visible{
 outline:2px solid #91a9c4;
 outline-offset:2px;
}
@media(max-width:800px){
 .nexo-profile-bottom-sheet .nexo-email-understood{
  height:45px!important;
  min-height:45px!important;
  border-radius:17px!important;
 }
 .profile-settings.nexo-profile-updated .nexo-profile-email-readonly{
  cursor:pointer;
 }
}

/* Icon container: squared soft corners (reference is shape only, not color).
   Override Nexo's generic 17px control radius on these specific decorative tiles. */
.profile-settings.nexo-profile-updated .nexo-profile-row-icon,
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor .nexo-profile-row-icon{
 border-radius:10px!important;
 background:#f4f5f7!important;
 border:1px solid #e0e4e9!important;
 color:var(--text-muted)!important;
}
.profile-settings.nexo-profile-updated .nexo-profile-row-arrow.is-pencil{
 color:var(--text-muted);
}
@media(max-width:800px){
 .profile-settings.nexo-profile-updated [data-nexo-action^="field:"] .nexo-profile-row-arrow.is-pencil{
  display:none!important;
 }
}

/* Perfil: geometria e cores copiadas do componente original
   Cadastros > Suas contas (.bank-logo), definido em finance.css.
   Somente o desenho interno continua sendo o Iconoir apropriado ao campo. */
.profile-settings.nexo-profile-updated .nexo-profile-row-icon,
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor .nexo-profile-row-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  flex:0 0 34px!important;
  border-radius:10px!important;
  background:#edf1f5!important;
  color:var(--text-secondary)!important;
  border:1px solid #00000005!important;
  box-shadow:none!important;
  overflow:hidden!important;
  padding:0!important;
}
.profile-settings.nexo-profile-updated .nexo-profile-row-icon .nexo-icon,
.profile-settings.nexo-profile-updated .nexo-profile-inline-editor .nexo-profile-row-icon .nexo-icon{
  width:20px!important;
  height:22px!important;
  stroke-width:1.2;
  flex:none;
}
.profile-settings.nexo-profile-updated .nexo-profile-row.is-danger .nexo-profile-row-icon{
  background:#edf1f5!important;
  color:var(--text-secondary)!important;
  border-color:#00000005!important;
}

/* Feedback de sucesso no celular: entrada realmente de baixo da tela.
   O card verde nasce abaixo do viewport e desliza até acima da navegação móvel. */
@media(max-width:800px){
 .nexo-profile-mobile-toast{
  bottom:calc(88px + env(safe-area-inset-bottom,0px));
  transform:translate3d(-50%,calc(100% + 130px),0);
  opacity:0;
  visibility:hidden;
  transition:transform .56s cubic-bezier(.18,.88,.22,1),
             opacity .36s ease,
             visibility .56s;
  will-change:transform,opacity;
 }
 .nexo-profile-mobile-toast.is-visible{
  transform:translate3d(-50%,0,0);
  opacity:1;
  visibility:visible;
 }
}
@media (prefers-reduced-motion:reduce) and (max-width:800px){
 .nexo-profile-mobile-toast{transition:none!important}
}

/* Avisos de recorrência padronizados nos dois layouts.
   Desativação: vermelho suave + X; todos em uma única linha. */
.nexo-profile-mobile-toast.is-recurring{
  display:flex!important;
}
.nexo-profile-mobile-toast.is-recurring,
.nexo-profile-mobile-toast.is-recurring span{
  white-space:nowrap!important;
}
.nexo-profile-mobile-toast.is-recurring{
  flex-wrap:nowrap;
  width:max-content;
  max-width:calc(100vw - 32px);
  min-width:0;
  padding:11px 16px;
  gap:8px;
  font-size:12px;
}
.nexo-profile-mobile-toast.is-recurring .nexo-icon{
  width:17px;
  height:17px;
  min-width:17px;
  flex:none;
}
.nexo-profile-mobile-toast.is-negative{
  background:#fff0f1;
  border-color:#f3d5d9;
  color:#a92f40;
  box-shadow:0 13px 34px #9f354019,0 2px 6px #9f35400d;
}
.nexo-profile-mobile-toast.is-negative .nexo-icon{
  color:#c33b4c;
}
@media(min-width:801px){
 .nexo-profile-mobile-toast.is-recurring{
   bottom:28px;
   transform:translate3d(-50%,calc(100% + 90px),0);
   opacity:0;
   visibility:hidden;
   transition:transform .48s cubic-bezier(.18,.88,.22,1),
              opacity .32s ease,
              visibility .48s;
 }
 .nexo-profile-mobile-toast.is-recurring.is-visible{
   transform:translate3d(-50%,0,0);
   opacity:1;
   visibility:visible;
 }
}
@media (prefers-reduced-motion:reduce) and (max-width:800px){
 .nexo-profile-mobile-toast.is-recurring{transition:none!important}
}

/* Refinamento solicitado: botões de edição do perfil 5px mais baixos no celular.
   Campos e demais controles permanecem inalterados. */
@media(max-width:800px){
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.primary,
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary{
   height:40px!important;
   min-height:40px!important;
   padding:7px 12px!important;
   border-radius:17px!important;
 }
}

/* Perfil no celular: padrão aprovado de 15px para campos e ações dos painéis.
   Abrange Nome, E-mail/Entendi, Localização, Profissão, Renda e Preferências.
   Não modifica os ícones de Cadastros nem os componentes do desktop. */
@media(max-width:800px){
 .nexo-profile-bottom-sheet .nexo-profile-edit-input,
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.primary,
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary,
 .nexo-profile-bottom-sheet .nexo-email-understood,
 .nexo-profile-bottom-sheet .nexo-bottom-option,
 .nexo-profile-bottom-sheet .nexo-profile-detail-button{
  border-radius:15px!important;
 }
}


/* v39 — Conta: ícones soltos, sem caixa ou efeito decorativo.
   Usa exatamente a cor do texto do item; mantém a largura/alinhamento das linhas.
   Não altera ícones das abas App/Dados nem a edição e os painéis móveis. */
.profile-settings.nexo-profile-updated
[data-profile-panel="account"] .nexo-profile-row .nexo-profile-row-icon {
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  color:inherit!important;
  border-radius:0!important;
  filter:none!important;
}
.profile-settings.nexo-profile-updated
[data-profile-panel="account"] .nexo-profile-row .nexo-profile-row-icon .nexo-icon {
  color:inherit!important;
  stroke:currentColor;
}


/* v40 — Conta: linhas com superfície uniforme e contorno COMPLETO.
   Corrige o traço parcial anterior (somente border-bottom com radius 17px).
   Mantém os ícones soltos aprovados na v39, texto/valores e eventos existentes.
   Não altera as abas App e Dados nem os editores. */
.profile-settings.nexo-profile-updated
[data-profile-panel="account"] .nexo-profile-list {
  display:grid;
  gap:8px;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.profile-settings.nexo-profile-updated
[data-profile-panel="account"] .nexo-profile-list > .nexo-profile-row {
  box-sizing:border-box;
  width:100%;
  margin:0;
  padding:12px 13px;
  border:1px solid #e8edf2!important;
  border-radius:15px!important;
  background:#fbfcfe!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  transition:border-color .18s ease,background-color .18s ease;
}
.profile-settings.nexo-profile-updated
[data-profile-panel="account"] .nexo-profile-list > .nexo-profile-row:last-child {
  border:1px solid #e8edf2!important;
}
.profile-settings.nexo-profile-updated
[data-profile-panel="account"] .nexo-profile-list > .nexo-profile-row:hover {
  background:#f8fafc!important;
  border-color:#dbe4ee!important;
}
.profile-settings.nexo-profile-updated
[data-profile-panel="account"] .nexo-profile-list > .nexo-profile-row:focus-visible {
  outline:2px solid #8fa8c4!important;
  outline-offset:2px;
  box-shadow:none!important;
}


/* v41 — Aplica em Perfil > App e Dados o mesmo padrao aprovado em Conta.
   Cada linha e um card proprio: fundo uniforme, quatro bordas 1px,
   15px de raio, gap 8px; icones sem azulejos. Permissoes, cores de
   alerta e acoes continuam sendo determinadas pela logica existente. */
.profile-settings.nexo-profile-updated
:is([data-profile-panel="app"],[data-profile-panel="data"]) .nexo-profile-list {
  display:grid;
  gap:8px;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.profile-settings.nexo-profile-updated
:is([data-profile-panel="app"],[data-profile-panel="data"]) .nexo-profile-list > .nexo-profile-row {
  box-sizing:border-box;
  width:100%;
  margin:0;
  padding:12px 13px;
  border:1px solid #e8edf2!important;
  border-radius:15px!important;
  background:#fbfcfe!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  transition:border-color .18s ease,background-color .18s ease;
}
.profile-settings.nexo-profile-updated
:is([data-profile-panel="app"],[data-profile-panel="data"]) .nexo-profile-list > .nexo-profile-row:last-child {
  border:1px solid #e8edf2!important;
}
.profile-settings.nexo-profile-updated
:is([data-profile-panel="app"],[data-profile-panel="data"]) .nexo-profile-list > .nexo-profile-row:hover {
  background:#f8fafc!important;
  border-color:#dbe4ee!important;
}
.profile-settings.nexo-profile-updated
:is([data-profile-panel="app"],[data-profile-panel="data"]) .nexo-profile-list > .nexo-profile-row:focus-visible {
  outline:2px solid #8fa8c4!important;
  outline-offset:2px;
  box-shadow:none!important;
}
.profile-settings.nexo-profile-updated
:is([data-profile-panel="app"],[data-profile-panel="data"]) .nexo-profile-list > .nexo-profile-row .nexo-profile-row-icon {
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  color:inherit!important;
  border-radius:0!important;
  filter:none!important;
}
.profile-settings.nexo-profile-updated
:is([data-profile-panel="app"],[data-profile-panel="data"]) .nexo-profile-list > .nexo-profile-row .nexo-profile-row-icon .nexo-icon {
  color:inherit!important;
  stroke:currentColor;
}

/* Desktop: instruções de instalação agrupadas em um cartão e ações no padrão vermelho. */
@media (min-width:801px) {
 .profile-settings .nexo-install-action .nexo-install-instructions {
  box-sizing:border-box;
  display:block;
  width:100%;
  margin:0 0 14px;
  padding:16px 18px;
  border:1px solid var(--surface-border,#dfe4eb);
  border-radius:17px;
  background:var(--nexo-surface,#fbfcfd);
  color:var(--menu-ink,#687d90);
 }
 .profile-settings .nexo-install-action .nexo-install-intro {
  margin:0 0 10px;
  color:var(--menu-ink,#687d90);
  font-size:13px;
  line-height:1.55;
 }
 .profile-settings .nexo-install-action .nexo-install-steps {
  margin:0;
  padding-left:20px;
  display:grid;
  gap:7px;
  color:var(--menu-ink,#687d90);
  font-size:13px;
  line-height:1.55;
 }
}
@media (max-width:800px) {
 .profile-settings .nexo-install-cta-icon,
 #install-nexo [data-close-install] > span {display:none!important}
}
/* Excluir dados continua em vermelho, por ser uma acao destrutiva. */
.profile-settings.nexo-profile-updated
[data-profile-panel="data"] .nexo-profile-list > .nexo-profile-row.is-danger .nexo-profile-row-icon {
  color:#db1438!important;
}

#nexo-email-notification-card .nexo-email-checkbox {
 appearance: none;
 box-sizing: border-box;
 width: 22px !important;
 height: 22px !important;
 min-width: 22px !important;
 min-height: 22px !important;
 max-width: 22px !important;
 max-height: 22px !important;
 padding: 0 !important;
 flex: 0 0 22px;
 margin: 0;
 border: 1px solid #a9b8c7;
 border-radius: 8px;
 background: #fff;
}
#nexo-email-notification-card .nexo-email-checkbox:checked {
 border-color: #e50914;
 background: #e50914 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
#nexo-email-notification-card .nexo-email-checkbox:focus-visible { outline: 2px solid #687d90; outline-offset: 2px; }
#nexo-email-notification-card .nexo-email-checkbox:disabled { opacity: .55; }
@media (forced-colors: active) {
 #nexo-email-notification-card .nexo-email-checkbox { appearance: auto; }
}
/* Visitor switch uses the same primary action geometry as profile editors. */
html body #visitor-switch-title:focus{outline:none;box-shadow:none}

/* Keep the visitor form in normal flow; category dialogs position their close form absolutely. */
html body dialog.visitor-switch-dialog>form{
 position:static;
 inset:auto;
 display:grid;
 gap:14px;
 width:100%;
 margin:0;
}
html body dialog.visitor-switch-dialog>form>label{display:grid;gap:8px;min-width:0}
html body dialog.visitor-switch-dialog>form input{box-sizing:border-box;width:100%;min-width:0}
html body dialog.visitor-switch-dialog>form .help{margin:0;overflow-wrap:anywhere}
html body dialog.visitor-switch-dialog>form .help:empty{display:none}

html body dialog.visitor-switch-dialog>.modal-head{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:0;border:0;box-shadow:none;background:transparent}
html body dialog.visitor-switch-dialog #visitor-switch-title{flex:1;min-width:0;margin:0;white-space:normal;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
html body dialog.visitor-switch-dialog>.modal-head>[data-dismiss]{flex:0 0 40px}
@media(max-width:800px){
 html body dialog.visitor-switch-dialog[open]:has(#visitor-switch-title){height:auto!important;min-height:0!important;padding-top:38px!important}
 html body dialog.visitor-switch-dialog:has(#visitor-switch-title)>form input[name="code"]{
  box-sizing:border-box;
  height:48px!important;
  min-height:48px!important;
  padding:10px 14px!important;
  border-radius:15px!important;
  border:1px solid #d8dfe9!important;
  background:#f4f5f8!important;
  color:var(--text-primary);
  font:400 14px/1.5 Inter,system-ui,sans-serif;
  outline:0;
  box-shadow:none;
 }
 html body dialog.visitor-switch-dialog:has(#visitor-switch-title)>form input[name="code"]:focus{
  border-color:#4584f8!important;
  box-shadow:0 0 0 1px #4584f822!important;
 }
}

html body dialog.visitor-switch-dialog .visitor-switch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:2px}
html body dialog.visitor-switch-dialog .visitor-switch-actions>button{box-sizing:border-box;width:100%;min-width:0;min-height:52px;height:auto;margin:0;padding:10px 14px;border-radius:17px!important;font:550 13px/1.4 Inter,system-ui,sans-serif;box-shadow:none!important;transform:none!important;white-space:normal;justify-content:center}
html body dialog.visitor-switch-dialog .visitor-switch-actions>.secondary{background:#f3f4f7;border:1px solid #f3f4f7;color:var(--text-primary)}
html body dialog.visitor-switch-dialog .visitor-switch-actions>.primary{background:var(--red,#ec0000);border:1px solid var(--red,#ec0000);color:#fff}
.nexo-profile-dialog-close{display:none}
@media(min-width:801px){
 :root{
  --nexo-profile-desktop-width:380px;
  --nexo-profile-desktop-padding:18px;
  --nexo-profile-desktop-field-height:45px;
  --nexo-profile-desktop-field-radius:15px;
  --nexo-profile-desktop-button-height:40px;
  --nexo-profile-desktop-button-radius:17px;
  --nexo-profile-desktop-border-width:1px;
 }
 html body dialog.visitor-switch-dialog{width:min(var(--nexo-profile-desktop-width),calc(100vw - 40px));box-sizing:border-box;padding:var(--nexo-profile-desktop-padding);border-width:var(--nexo-profile-desktop-border-width)}
 html body>.nexo-profile-bottom-sheet{
  position:fixed;
  inset:50% auto auto 50%;
  width:min(var(--nexo-profile-desktop-width),calc(100vw - 40px));
  max-height:calc(100dvh - 48px);
  box-sizing:border-box;
  padding:var(--nexo-profile-desktop-padding);
  border:var(--nexo-profile-desktop-border-width) solid var(--nexo-control-line,#d8e1ea);
  border-radius:28px;
  background:var(--nexo-surface,#f7f9fb);
  box-shadow:0 18px 60px rgba(30,45,64,.15);
  transform:translate(-50%,-50%) scale(.98);
  opacity:0;
  transition:transform .18s ease,opacity .18s ease;
 }
 html body>.nexo-profile-bottom-sheet.is-open{transform:translate(-50%,-50%);opacity:1}
 html body>.nexo-profile-bottom-sheet[hidden]{display:none!important}
 html body>.nexo-profile-bottom-sheet>.nexo-bottom-handle{display:none}
 html body>.nexo-profile-bottom-sheet>.nexo-bottom-header{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:0;border:0;background:transparent;box-shadow:none}
 html body>.nexo-profile-bottom-sheet #nexo-bottom-title{flex:1;min-width:0;font:550 17px/1.4 Inter,system-ui,sans-serif;outline:none;margin:0}
 html body>.nexo-profile-bottom-sheet .nexo-profile-dialog-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:0;padding:6px;border:0;background:transparent;box-shadow:none;color:var(--text-secondary)}
 html body dialog.visitor-switch-dialog:has(#visitor-switch-title) input[name="code"],
 html body>section.nexo-profile-bottom-sheet:has(#nexo-bottom-title) input.nexo-profile-edit-input{box-sizing:border-box;width:100%;height:var(--nexo-profile-desktop-field-height)!important;min-height:var(--nexo-profile-desktop-field-height)!important;max-height:var(--nexo-profile-desktop-field-height)!important;padding:10px 14px!important;border:var(--nexo-profile-desktop-border-width) solid var(--nexo-reference-field-border,#edf0f4)!important;border-radius:var(--nexo-profile-desktop-field-radius)!important;background:var(--nexo-reference-field-bg,#f3f4f7)!important;font:400 14px/1.5 Inter,system-ui,sans-serif;color:var(--text-primary);box-shadow:none}
 html body dialog.visitor-switch-dialog:has(#visitor-switch-title) input[name="code"]:focus,
 html body>section.nexo-profile-bottom-sheet:has(#nexo-bottom-title) input.nexo-profile-edit-input:focus{outline:0;border-color:#4584f8!important;box-shadow:0 0 0 1px #4584f822!important}
 html body>.nexo-profile-bottom-sheet .nexo-bottom-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}
 html body dialog.visitor-switch-dialog .visitor-switch-actions>button,
 html body>section.nexo-profile-bottom-sheet .nexo-bottom-buttons>button{box-sizing:border-box;min-width:0;width:100%;height:var(--nexo-profile-desktop-button-height)!important;min-height:var(--nexo-profile-desktop-button-height)!important;max-height:none!important;padding:10px 14px;border-width:var(--nexo-profile-desktop-border-width)!important;border-style:solid!important;border-radius:var(--nexo-profile-desktop-button-radius)!important;font:550 13px/1.4 Inter,system-ui,sans-serif;justify-content:center;box-shadow:none;transform:none}
 html body>.nexo-profile-bottom-sheet .nexo-bottom-buttons>.secondary{background:#f3f4f7;border:1px solid #f3f4f7;color:var(--text-primary)}
 html body>.nexo-profile-bottom-sheet .nexo-bottom-buttons>.primary{background:var(--red,#ec0000);border:1px solid var(--red,#ec0000);color:#fff}
 html body>.nexo-profile-bottom-sheet .nexo-profile-detail-button,html body>.nexo-profile-bottom-sheet .nexo-email-understood{height:var(--nexo-profile-desktop-button-height);min-height:var(--nexo-profile-desktop-button-height);border-radius:var(--nexo-profile-desktop-button-radius);border-width:var(--nexo-profile-desktop-border-width);padding:10px 14px;box-shadow:none}
 html body>.nexo-profile-bottom-sheet .nexo-bottom-body{display:grid;gap:12px}
}
