/* Approved 13px corners for data entry and actions; segmented tabs stay unchanged. */
@layer nexo-form-standard {
 :root {--nexo-form-radius:13px;}
 :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),textarea,select,
 .control-trigger,.filter-picker>summary,.control-menu,.control-options>button,.category-filter-children>button,
 button.primary,button.secondary,button.projection-add-button,button.family-add,
 button.nexo-profile-detail-button,button.nexo-email-understood,button.nexo-install-cta,
 button.header-account-add,button[data-header-manage],button[data-close-install],
 .nexo-bottom-buttons>button,.nexo-bottom-option,
 #sidebar #nav>button) {
  border-radius:var(--nexo-form-radius)!important;
 }
 /* Date text and calendar glyph share one horizontal center line. */
 .date-picker>summary.control-trigger {display:flex!important;align-items:center!important;}
 .date-picker>summary.control-trigger>.control-label {display:flex!important;align-items:center!important;min-width:0;}
 .date-picker>summary.control-trigger>.period-indicator {
  position:static!important;inset:auto!important;transform:none!important;translate:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  align-self:center!important;margin:0 0 0 auto!important;line-height:1!important;
 }
 .date-picker>summary.control-trigger>.period-indicator>svg {display:block!important;margin:0!important;transform:none!important;translate:none!important;}
 /* Mobile-only controls missed by the shared input/button selectors. */
 @media (max-width:800px) {
  :is(.mobile-tx-search,
      .mobile-filter-toggle,
      .transaction-mobile-actions>.mobile-privacy,
      .transaction-mobile-actions>.transaction-export,
      #mobile-filters-dialog .mobile-filters-actions>button,
      #sidebar .profile-link,
      .tx-status-button,
      .period-badge) {
   border-radius:var(--nexo-form-radius)!important;
  }
  /* Restore the approved capsule track, tabs and sliding selection. */
  :is(.mobile-tx-tabs,.mobile-tx-tabs>button,.mobile-tx-tabs>.control-lens) {
   border-radius:999px!important;
  }
  :is(#mobile-filters-dialog,#modal,#app) .control-menu-footer>button {
   border-radius:var(--nexo-form-radius)!important;
  }
  /* The segmented Conta/Credito/Investimentos and Mes/Ano controls,
     round icon glyphs, date circles and month cards remain unchanged. */
 }
}

/* Badge geometry overrides the earlier 13px form-control rule in the
   same cascade layer, for both mobile and desktop. */
@layer nexo-form-standard {
 #app :is(.period-badge,.panel-heading > .pill,.statement-statuses > .pill),
 #app .nie-hero > .projection-safe-badge,
#app .projection-view .projection-scenario-head > .projection-safe-badge,
 #app :is(.tx-meta > span,.tx-mobile-badges > span) {
  border-radius:9px!important;
 }
}

/* Exception to 13px form corners: the banks-and-profile picker is a pill.
   The entire account trigger stays 999px on mobile and desktop. */
@layer nexo-form-standard {
 html body .shell > header #headerAccounts#headerAccounts#headerAccounts.header-account-picker > summary.header-account-trigger {
  border-radius:999px!important;
 }
}

/* Sidebar cards, plus the outer panel of the expanded "Meu espaço /
   Bancos" menu, use 18px corners on mobile and desktop.
   Bank options and selection styles inside the menu remain untouched. */
@layer nexo-form-standard {
 html body #sidebar#sidebar .workspace-picker > summary.control-trigger,
 html body #sidebar#sidebar .workspace-picker > .control-menu,
 html body #sidebar#sidebar .sidebar-bottom > .profile-link {
  border-radius:18px!important;
 }
}

/* Header account rows: the hover and resting corners must match
   Santander's actual workspace bank-row radius (13px), not the
   former 999px capsule on the Overview screen. No menu containers or
   unrelated actions are changed. */
@layer nexo-form-standard {
 html body .shell #headerAccounts#headerAccounts .header-account-list > button.header-account-row {
  border-radius:13px!important;
 }
}

/* The footer actions in the header accounts picker (Cadastros, Perfil,
   Feedback, Sair) must match the account-row 13px radius on hover and
   at rest. Keep their existing hover color, hit areas and actions. */
@layer nexo-form-standard {
 html body .shell #headerAccounts#headerAccounts .header-account-links > button {
  border-radius:13px!important;
 }
}
