/* OWDEX Finance v3.4.0 PROD R29 — CLEAN REBASE
 * Design contract: OWDEX Chat 2.18.16 R24 R4 R2.
 * Goal: Chat shell/components + Finance identity/content, without runtime DOM reflow.
 */
:root{
  --of-primary:#0c9b87;
  --of-primary-strong:#067d6f;
  --of-accent:#46d7b7;
  --of-soft:#ecfaf6;
  --of-soft-2:#f5fbf9;
  --of-page:#f4f7fb;
  --of-surface:#ffffff;
  --of-line:#e1e8f0;
  --of-text:#10213d;
  --of-muted:#687a94;
  --of-sidebar-width:268px;
  --of-topbar-height:72px;
  --of-radius:16px;
  --of-radius-sm:10px;
  --of-shadow:0 8px 26px rgba(25,52,88,.055);
  --of-shadow-soft:0 4px 16px rgba(25,52,88,.045);
  --of-focus:0 0 0 3px rgba(12,155,135,.15);
  --of-hero-start:#173f97;
  --of-hero-end:#1e87ed;
}
html[data-theme="dark"]{
  --of-page:#0b1320;
  --of-surface:#111b2a;
  --of-line:#26354a;
  --of-text:#eef4fc;
  --of-muted:#9fb1c9;
  --of-soft:#122a27;
  --of-soft-2:#132033;
  --of-shadow:0 10px 28px rgba(0,0,0,.22);
  --of-shadow-soft:0 5px 18px rgba(0,0,0,.18);
}

/* ---------- 1. APP SHELL: Chat geometry, Finance DOM ---------- */
body.owdex-finance-chat-clean{
  margin:0!important;
  min-height:100vh!important;
  background:var(--of-page)!important;
  color:var(--of-text)!important;
  overflow-x:hidden!important;
}
body.owdex-finance-chat-clean .app-shell{
  display:block!important;
  min-height:100vh!important;
  width:100%!important;
  background:var(--of-page)!important;
}
body.owdex-finance-chat-clean .sidebar{
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:var(--of-sidebar-width)!important;
  height:100vh!important;
  max-height:100vh!important;
  padding:18px 14px 14px!important;
  display:flex!important;
  flex-direction:column!important;
  background:var(--of-surface)!important;
  border-right:1px solid var(--of-line)!important;
  box-shadow:8px 0 30px rgba(27,52,88,.04)!important;
  overflow:hidden!important;
  z-index:80!important;
}
body.owdex-finance-chat-clean .app-main{
  margin-left:var(--of-sidebar-width)!important;
  width:calc(100% - var(--of-sidebar-width))!important;
  min-width:0!important;
  min-height:100vh!important;
  background:var(--of-page)!important;
}
body.owdex-finance-chat-clean .topbar{
  position:sticky!important;
  top:0!important;
  z-index:60!important;
  height:var(--of-topbar-height)!important;
  min-height:var(--of-topbar-height)!important;
  padding:0 22px!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  background:color-mix(in srgb,var(--of-surface) 97%,transparent)!important;
  border-bottom:1px solid var(--of-line)!important;
  box-shadow:0 1px 0 rgba(26,49,84,.025)!important;
  backdrop-filter:blur(10px)!important;
}
body.owdex-finance-chat-clean :is(.content,.page-content,.workspace-content,.main-content-inner){
  width:100%!important;
  max-width:1720px!important;
  margin:0 auto!important;
  padding:20px 22px 96px!important;
  background:transparent!important;
}

/* Never allow legacy wrappers to push the header down. */
body.owdex-finance-chat-clean :is(.app-main,.main-content,.workspace){
  padding-top:0!important;
  margin-top:0!important;
  top:auto!important;
}
body.owdex-finance-chat-clean :is(.topbar,.app-header,.main-header){margin-top:0!important;transform:none!important}

/* ---------- 2. SIDEBAR: same rhythm as Chat ---------- */
body.owdex-finance-chat-clean :is(.sidebar-head,.sidebar-header){
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:54px!important;
  padding:2px 4px 14px!important;
  border-bottom:1px solid var(--of-line)!important;
}
body.owdex-finance-chat-clean .sidebar-logo{
  min-width:0!important;
  flex:1!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:0!important;
}
body.owdex-finance-chat-clean .sidebar-logo-mark{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  object-fit:contain!important;
}
body.owdex-finance-chat-clean .sidebar-brand-copy{display:grid!important;gap:2px!important;min-width:0!important}
body.owdex-finance-chat-clean .sidebar-brand-copy>span{font-size:9px!important;letter-spacing:.16em!important;text-transform:uppercase!important;color:#7e8da2!important;font-weight:800!important}
body.owdex-finance-chat-clean .sidebar-brand-copy>strong{font-size:18px!important;line-height:1!important;color:var(--of-text)!important;font-weight:780!important}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav){
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  padding:16px 1px 8px 0!important;
  scrollbar-width:thin!important;
}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a{
  min-height:46px!important;
  height:auto!important;
  margin:0!important;
  padding:6px 9px!important;
  border:1px solid transparent!important;
  border-radius:13px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  color:#627894!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.2!important;
  box-shadow:none!important;
  transition:background .16s,color .16s,border-color .16s,box-shadow .16s,transform .16s!important;
}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:hover{
  background:#f3f8f7!important;
  color:#1f4b47!important;
  border-color:#e2efec!important;
  transform:translateX(1px)!important;
}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a .nav-icon,
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a>.icon{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  flex:0 0 34px!important;
  padding:7px!important;
  border-radius:10px!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a .nav-icon svg,
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a>.icon{width:20px!important;height:20px!important}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:is(.is-active,.active,[aria-current="page"]){
  background:linear-gradient(135deg,var(--of-accent) 0%,#13b99c 42%,var(--of-primary) 100%)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 10px 24px rgba(12,155,135,.20)!important;
}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:is(.is-active,.active,[aria-current="page"]) :is(.nav-label,span,strong){color:#fff!important;-webkit-text-fill-color:#fff!important}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:is(.is-active,.active,[aria-current="page"]) .nav-icon,
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:is(.is-active,.active,[aria-current="page"])>.icon{background:rgba(255,255,255,.18)!important;color:#fff!important;border-color:rgba(255,255,255,.15)!important}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:is(.is-active,.active,[aria-current="page"]) svg,
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:is(.is-active,.active,[aria-current="page"]) svg *{color:#fff!important;stroke:#fff!important}
body.owdex-finance-chat-clean :is(.sidebar-nav,.main-nav) a:is(.is-active,.active,[aria-current="page"]) svg [fill]:not([fill="none"]){fill:#fff!important}
body.owdex-finance-chat-clean :is(.sidebar-group-title,.nav-section-title,.section-label){
  padding:16px 10px 6px!important;
  margin:0!important;
  color:#98a4b5!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.13em!important;
  line-height:1!important;
  text-transform:uppercase!important;
}
body.owdex-finance-chat-clean :is(.sidebar-footer,.sidebar-foot){
  flex:0 0 auto!important;
  margin-top:8px!important;
  padding:12px 0 0!important;
  border-top:1px solid var(--of-line)!important;
}
body.owdex-finance-chat-clean :is(.sidebar-user-card,.sidebar-footer .user-card,.sidebar-footer .profile-card,.sidebar-foot .user-card){
  min-width:0!important;
  padding:9px 10px!important;
  border:1px solid var(--of-line)!important;
  border-radius:13px!important;
  background:#f8fbff!important;
  box-shadow:none!important;
}
body.owdex-finance-chat-clean :is(.sidebar-user-card,.sidebar-footer .user-card,.sidebar-footer .profile-card,.sidebar-foot .user-card) :is(strong,.user-name,.profile-name){
  max-width:138px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
/* Runtime boxes introduced by failed R12 must never appear even if stale JS cache runs once. */
body.owdex-finance-chat-clean :is(.r12-context-box,.r12-sidebar-logout){display:none!important}

/* ---------- 3. TOPBAR ---------- */
body.owdex-finance-chat-clean :is(.topbar-title,.header-title){min-width:150px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
body.owdex-finance-chat-clean :is(.topbar-title,.header-title) :is(strong,h1,h2){font-size:15px!important;line-height:1.15!important;margin:0!important;color:var(--of-text)!important;font-weight:700!important}
body.owdex-finance-chat-clean :is(.topbar-title,.header-title) small{font-size:10px!important;color:var(--of-muted)!important}
body.owdex-finance-chat-clean .topbar :is(.page-kicker,.eyebrow,.section-kicker,.topbar-title small,.header-title small){display:none!important}
body.owdex-finance-chat-clean :is(.sidebar-toggle,.sidebar-collapse){position:static!important;inset:auto!important;margin-left:auto!important;transform:none!important;flex:0 0 38px!important}
body.owdex-finance-chat-clean :is(.topbar-search,.search-box,.global-search){
  margin-left:10px!important;
  width:min(420px,34vw)!important;
  max-width:420px!important;
  min-height:40px!important;
  border:1px solid var(--of-line)!important;
  border-radius:11px!important;
  background:var(--of-surface)!important;
  box-shadow:none!important;
}
body.owdex-finance-chat-clean :is(.topbar-search,.search-box,.global-search) input{min-width:0!important;width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.owdex-finance-chat-clean :is(.topbar-actions,.header-actions){margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important}
body.owdex-finance-chat-clean :is(.icon-btn,.topbar .btn-icon){width:38px!important;height:38px!important;min-width:38px!important;border-radius:10px!important;border:1px solid var(--of-line)!important;background:var(--of-surface)!important;box-shadow:0 3px 12px rgba(18,47,84,.035)!important}
body.owdex-finance-chat-clean :is(.icon-btn,.topbar .btn-icon):hover{border-color:#a9d8ce!important;background:var(--of-soft)!important;color:var(--of-primary)!important}
body.owdex-finance-chat-clean .topbar :is(.user-pill,.topbar-user,.profile-pill,.topbar-profile){max-height:42px!important;border-radius:12px!important;background:var(--of-surface)!important;border:1px solid transparent!important;box-shadow:none!important}
body.owdex-finance-chat-clean .r12-hide-topbar-kicker{display:none!important}

/* ---------- 4. PAGE HEADERS ---------- */
body.owdex-finance-chat-clean :is(.page-heading,.page-header,.dashboard-header,.section-header,.module-hero:not(.nf-balance-card):not(.dashboard-hero-card)){
  margin:0 0 16px!important;
}
body.owdex-finance-chat-clean :is(.page-heading,.page-header,.dashboard-header,.section-header) h1{font-size:25px!important;line-height:1.1!important;letter-spacing:-.025em!important;margin:3px 0 5px!important;color:var(--of-text)!important}
body.owdex-finance-chat-clean :is(.page-heading,.page-header,.dashboard-header,.section-header) p{margin:0!important;color:var(--of-muted)!important;line-height:1.45!important}
body.owdex-finance-chat-clean :is(.page-kicker,.eyebrow,.section-kicker){font-size:10px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:var(--of-primary)!important}

/* ---------- 5. FINANCE HERO: intentionally preserved as one full blue card ---------- */
body.owdex-finance-chat-clean :is(.nf-balance-card,.dashboard-hero-card,.hero-blue-card,.hero-card--primary,.overview-gradient,.summary-banner.big-stat-card){
  width:100%!important;
  max-width:none!important;
  grid-column:1 / -1!important;
  min-height:178px!important;
  margin:0 0 16px!important;
  padding:24px 28px!important;
  border:0!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:linear-gradient(120deg,var(--of-hero-start) 0%,#1f5fd7 58%,var(--of-hero-end) 100%)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(23,63,151,.16)!important;
}
body.owdex-finance-chat-clean :is(.nf-balance-card,.dashboard-hero-card,.hero-blue-card,.hero-card--primary,.overview-gradient,.summary-banner.big-stat-card) *{color:#fff!important;-webkit-text-fill-color:currentColor!important}
/* Undo R12's split/mini-card dashboard if cached classes remain on server-rendered HTML. */
body.owdex-finance-chat-clean .r12-dashboard-summary-grid{display:contents!important}
body.owdex-finance-chat-clean .r12-balance-card{width:100%!important;grid-column:1/-1!important;min-height:178px!important}
body.owdex-finance-chat-clean .r12-result-card{width:auto!important;grid-column:auto!important;min-height:0!important}

/* ---------- 6. CARDS / GRIDS: Chat surfaces, no forced reflow ---------- */
body.owdex-finance-chat-clean :is(.card,.dashboard-card,.panel,.panel-card,.metric-card,.kpi-card,.summary-card,.stat-card,.mini-card,.reports-card,.table-card,.account-card,.planning-card,.investment-card,.settings-card,.import-preview-card){
  background:var(--of-surface)!important;
  color:var(--of-text)!important;
  border:1px solid var(--of-line)!important;
  border-radius:var(--of-radius)!important;
  box-shadow:var(--of-shadow)!important;
}
body.owdex-finance-chat-clean :is(.card,.dashboard-card,.panel-card,.metric-card,.kpi-card,.summary-card,.stat-card,.mini-card,.reports-card,.account-card,.planning-card,.investment-card,.settings-card){padding:16px!important}
body.owdex-finance-chat-clean :is(.card-header,.card-head,.panel-head,.section-card-header){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:12px!important}
body.owdex-finance-chat-clean :is(.card-header,.card-head,.panel-head) h2{font-size:17px!important;margin:3px 0 0!important;color:var(--of-text)!important}
body.owdex-finance-chat-clean :is(.card-header,.card-head,.panel-head) h3{font-size:13px!important;color:var(--of-text)!important}
/* No nested card chrome. */
body.owdex-finance-chat-clean :is(.card,.dashboard-card,.panel-card) :is(.card,.mini-card,.sub-card,.category-row,.category-item){box-shadow:none!important}
body.owdex-finance-chat-clean :is(.dashboard-grid,.two-columns,.overview-grid,.content-grid,.grid-2,.grid-3,.grid-4){align-items:start!important}
body.owdex-finance-chat-clean :is(.dashboard-grid,.two-columns,.overview-grid,.content-grid,.grid-2,.grid-3,.grid-4):has(> :only-child){grid-template-columns:1fr!important}
body.owdex-finance-chat-clean :is(.nf-result-card,.result-card,.r12-result-card){width:100%!important;max-width:none!important}

/* ---------- 7. LISTS / ACCOUNTS / TRANSACTIONS ---------- */
body.owdex-finance-chat-clean :is(.list,.transaction-list,.accounts-list,.activity-list){display:grid!important;gap:0!important}
body.owdex-finance-chat-clean :is(.list-row,.transaction-row,.account-row,.activity-row,.report-row){
  min-height:54px!important;
  padding:10px 8px!important;
  border:0!important;
  border-bottom:1px solid var(--of-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
body.owdex-finance-chat-clean :is(.list-row,.transaction-row,.account-row,.activity-row,.report-row):last-child{border-bottom:0!important}
body.owdex-finance-chat-clean :is(.list-row,.transaction-row,.account-row,.activity-row,.report-row):hover{background:var(--of-soft-2)!important}
body.owdex-finance-chat-clean :is(.list-row,.transaction-row,.account-row,.activity-row,.report-row):focus-visible{outline:0!important;box-shadow:inset 0 0 0 2px rgba(12,155,135,.30)!important;border-radius:10px!important}
body.owdex-finance-chat-clean :is(.list-row,.transaction-row,.account-row,.activity-row) :is(strong,.title,.name){min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* ---------- 8. BUTTONS ---------- */
body.owdex-finance-chat-clean :is(.btn,button.btn,a.btn){
  min-height:38px!important;
  padding:9px 13px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  font-weight:650!important;
  line-height:1.1!important;
  box-shadow:none!important;
}
body.owdex-finance-chat-clean :is(.btn-primary,.btn.primary,.primary){background:linear-gradient(135deg,var(--of-accent),#15b99d 45%,var(--of-primary))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 8px 20px rgba(12,155,135,.16)!important}
body.owdex-finance-chat-clean :is(.btn-outline,.btn.outline,.btn-secondary,.btn.secondary){background:var(--of-surface)!important;color:var(--of-text)!important;border:1px solid var(--of-line)!important}
body.owdex-finance-chat-clean :is(.btn-outline,.btn.outline,.btn-secondary,.btn.secondary):hover{background:var(--of-soft)!important;border-color:#b9ddd5!important;color:var(--of-primary)!important}
body.owdex-finance-chat-clean :is(.btn-link,.btn.text,.text-action){background:transparent!important;color:var(--of-primary)!important;padding-left:4px!important;padding-right:4px!important}

/* ---------- 9. FORMS ---------- */
body.owdex-finance-chat-clean :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  min-height:42px!important;
  border:1px solid var(--of-line)!important;
  border-radius:10px!important;
  background:var(--of-surface)!important;
  color:var(--of-text)!important;
  box-shadow:none!important;
}
body.owdex-finance-chat-clean :is(input,select,textarea):focus{outline:0!important;border-color:#75c9b8!important;box-shadow:var(--of-focus)!important}
body.owdex-finance-chat-clean label{color:var(--of-text)!important}
body.owdex-finance-chat-clean .muted{color:var(--of-muted)!important}

/* ---------- 10. TABLES ---------- */
body.owdex-finance-chat-clean :is(.table-wrap,.responsive-table-wrap){overflow:auto!important;border-radius:14px!important}
body.owdex-finance-chat-clean table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:var(--of-surface)!important}
body.owdex-finance-chat-clean thead th{font-size:10px!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:var(--of-muted)!important;font-weight:700!important;background:var(--of-soft-2)!important;border-bottom:1px solid var(--of-line)!important}
body.owdex-finance-chat-clean th,body.owdex-finance-chat-clean td{padding:11px 12px!important;border-bottom:1px solid var(--of-line)!important;text-align:left!important}
body.owdex-finance-chat-clean tbody tr:hover{background:var(--of-soft-2)!important}

/* ---------- 11. BADGES / MODALS ---------- */
body.owdex-finance-chat-clean :is(.badge,.status-pill,.status-badge,.chip,.pill){border-radius:999px!important;padding:5px 8px!important;font-size:10px!important;font-weight:700!important;box-shadow:none!important}
body.owdex-finance-chat-clean :is(.modal-card,.center-modal-card,.dialog-card,[role="dialog"]){border:1px solid var(--of-line)!important;border-radius:18px!important;background:var(--of-surface)!important;box-shadow:0 24px 60px rgba(13,33,64,.16)!important}

/* ---------- 12. CHARTS / GOALS ---------- */
body.owdex-finance-chat-clean :is(.chart-card,.chart-panel,.goal-card,.category-card){overflow:hidden!important}
body.owdex-finance-chat-clean :is(.chart-card,.chart-panel) canvas{max-width:100%!important}
body.owdex-finance-chat-clean :is(.progress,.progress-track,.goal-progress){height:9px!important;border-radius:999px!important;background:#eaf0f7!important;overflow:hidden!important}
body.owdex-finance-chat-clean :is(.progress,.progress-track,.goal-progress)>*{border-radius:inherit!important}

/* ---------- 13. FLOATING CHAT SAFE AREA ---------- */
body.owdex-finance-chat-clean :is(.chat-widget,.chat-widget-button,.support-widget,.floating-chat,[data-chat-widget]){right:18px!important;bottom:18px!important;z-index:95!important}
body.owdex-finance-chat-clean :is(.content,.page-content,.workspace-content,.main-content-inner){padding-bottom:104px!important}

/* ---------- 14. COLLAPSED SIDEBAR ---------- */
@media(min-width:901px){
  body.owdex-finance-chat-clean.sidebar-collapsed .sidebar,
  body.owdex-finance-chat-clean .app-shell.sidebar-collapsed .sidebar,
  html[data-sidebar-collapsed="1"] body.owdex-finance-chat-clean .sidebar{width:84px!important;padding-left:10px!important;padding-right:10px!important}
  body.owdex-finance-chat-clean.sidebar-collapsed .app-main,
  body.owdex-finance-chat-clean .app-shell.sidebar-collapsed .app-main,
  html[data-sidebar-collapsed="1"] body.owdex-finance-chat-clean .app-main{margin-left:84px!important;width:calc(100% - 84px)!important}
  body.owdex-finance-chat-clean.sidebar-collapsed .sidebar :is(.nav-label,.sidebar-brand-copy,.sidebar-group-title,.nav-section-title,.sidebar-user-card strong,.sidebar-user-card small),
  body.owdex-finance-chat-clean .app-shell.sidebar-collapsed .sidebar :is(.nav-label,.sidebar-brand-copy,.sidebar-group-title,.nav-section-title,.sidebar-user-card strong,.sidebar-user-card small){display:none!important}
}

/* ---------- 15. MOBILE ---------- */
@media(max-width:900px){
  body.owdex-finance-chat-clean{overflow:auto!important}
  body.owdex-finance-chat-clean .sidebar{width:268px!important;transform:translateX(-105%)!important;transition:transform .18s ease!important;box-shadow:16px 0 42px rgba(20,43,72,.16)!important}
  body.owdex-finance-chat-clean.mobile-sidebar-open .sidebar,
  body.owdex-finance-chat-clean .app-shell.sidebar-open .sidebar,
  body.owdex-finance-chat-clean .app-shell.mobile-open .sidebar{transform:none!important}
  body.owdex-finance-chat-clean .app-main{margin-left:0!important;width:100%!important}
  body.owdex-finance-chat-clean .topbar{height:64px!important;min-height:64px!important;padding:0 14px!important}
  body.owdex-finance-chat-clean :is(.topbar-search,.search-box,.global-search){display:none!important}
  body.owdex-finance-chat-clean :is(.content,.page-content,.workspace-content,.main-content-inner){padding:18px 14px 96px!important}
}

/* ================================================================
   AUTH / LOGIN — DOM do Finance, geometria e comportamento do Chat
   ================================================================ */
body.owdex-finance-auth-clean{
  margin:0!important;
  width:100%!important;
  min-height:100dvh!important;
  height:100dvh!important;
  overflow:hidden!important;
  background:#f5f9f8!important;
  color:var(--of-text)!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-shell,.auth-card-v17){
  width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr)!important;
  background:#f5f9f8!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-showcase,.auth-card-v17>.auth-visual,.auth-card-v17>.left){
  position:relative!important;
  min-width:0!important;
  height:100dvh!important;
  min-height:0!important;
  padding:56px clamp(48px,6vw,96px)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 18% 18%,rgba(70,215,183,.24),transparent 34%),
    radial-gradient(circle at 76% 72%,rgba(12,155,135,.13),transparent 38%),
    linear-gradient(145deg,#fbfefd 0%,#eefaf7 48%,#e6f7f2 100%)!important;
  color:#083d37!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-showcase,.auth-card-v17>.auth-visual,.auth-card-v17>.left)::after{
  content:""!important;
  position:absolute!important;
  width:360px!important;height:360px!important;border-radius:50%!important;
  right:-130px!important;bottom:-150px!important;
  background:linear-gradient(135deg,rgba(12,155,135,.12),rgba(70,215,183,.10))!important;
  pointer-events:none!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-showcase,.auth-card-v17>.auth-visual,.auth-card-v17>.left)>*{position:relative!important;z-index:1!important}
body.owdex-finance-auth-clean .nf-real-logo{margin:0 0 34px!important;padding:0!important;display:block!important;transform:none!important;position:static!important}
body.owdex-finance-auth-clean .nf-real-logo img{display:block!important;width:min(238px,58%)!important;max-width:238px!important;height:auto!important;max-height:164px!important;object-fit:contain!important;margin:0!important;transform:none!important;filter:drop-shadow(0 18px 34px rgba(1,56,50,.10))!important}
body.owdex-finance-auth-clean :is(.nd-auth-copy,.auth-copy){max-width:610px!important;margin:0!important;padding:0!important;position:static!important;transform:none!important}
body.owdex-finance-auth-clean :is(.nd-auth-copy,.auth-copy) :is(h1,h2){font-size:clamp(38px,4vw,58px)!important;line-height:1.02!important;letter-spacing:-.035em!important;margin:8px 0 14px!important;color:#083d37!important;font-weight:760!important}
body.owdex-finance-auth-clean :is(.nd-auth-copy,.auth-copy) p{max-width:560px!important;margin:0!important;color:#5a7b77!important;font-size:15px!important;line-height:1.55!important}
body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){
  position:relative!important;
  min-width:0!important;
  height:100dvh!important;
  min-height:0!important;
  padding:56px clamp(44px,6vw,88px)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
  border-left:1px solid rgba(12,155,135,.08)!important;
}
body.owdex-finance-auth-clean :is(.auth-login-intro,.nd-auth-form-panel>.page-head,.nd-auth-form-panel>.auth-head){width:100%!important;max-width:430px!important;margin:0 auto 24px!important}
body.owdex-finance-auth-clean :is(.auth-login-intro,.nd-auth-form-panel>.page-head,.nd-auth-form-panel>.auth-head) h2{font-size:34px!important;line-height:1.08!important;letter-spacing:-.025em!important;margin:5px 0 8px!important;color:#10213d!important}
body.owdex-finance-auth-clean :is(.auth-login-intro,.nd-auth-form-panel>.page-head,.nd-auth-form-panel>.auth-head) p{margin:0!important;color:#687a94!important;line-height:1.5!important}
body.owdex-finance-auth-clean :is(.auth-login-form,.nd-auth-form-panel form,.form-stack){
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  max-width:430px!important;
  margin:0 auto!important;
  gap:12px!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
}
body.owdex-finance-auth-clean :is(.auth-login-form,.nd-auth-form-panel form) label{display:grid!important;gap:6px!important;font-size:12px!important;font-weight:650!important;color:#40516d!important}
body.owdex-finance-auth-clean :is(.auth-login-form,.nd-auth-form-panel form) :is(input,select,textarea){display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;min-height:46px!important;padding:0 13px!important;border:1px solid #dce5ef!important;border-radius:10px!important;background:#f3f7fd!important;color:#10213d!important;box-shadow:none!important}
body.owdex-finance-auth-clean :is(.auth-login-form,.nd-auth-form-panel form) input:focus{outline:0!important;border-color:#79cbbb!important;box-shadow:var(--of-focus)!important;background:#fff!important}
body.owdex-finance-auth-clean :is(.auth-login-form,.nd-auth-form-panel form) :is(.btn-primary,.btn.primary,button[type="submit"]){width:100%!important;min-height:46px!important;margin-top:2px!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,var(--of-accent),#14b99c 45%,var(--of-primary))!important;color:#fff!important;font-weight:700!important;box-shadow:0 8px 20px rgba(12,155,135,.18)!important}
body.owdex-finance-auth-clean :is(.auth-links,.login-links,.auth-support-links,.nd-auth-form-panel nav){width:100%!important;max-width:430px!important;margin:18px auto 0!important}
body.owdex-finance-auth-clean :is(.auth-security-note,.auth-note,.security-card,.auth-info-card){width:100%!important;max-width:430px!important;margin:18px auto 0!important;border:1px solid #e0e9f1!important;border-radius:12px!important;background:#f8fbfd!important;box-shadow:none!important}
body.owdex-finance-auth-clean :is(.nd-auth-theme-toggle-r15,.nd-auth-theme-toggle-r16,.auth-theme-toggle,[data-theme-toggle]){position:absolute!important;top:22px!important;right:22px!important;width:40px!important;height:40px!important;border-radius:10px!important;border:1px solid #dce8e4!important;background:#fff!important;color:#46635f!important;box-shadow:0 8px 24px rgba(20,60,54,.07)!important;z-index:4!important}

html[data-theme="dark"] body.owdex-finance-auth-clean{background:#09131f!important}
html[data-theme="dark"] body.owdex-finance-auth-clean :is(.nd-auth-shell,.auth-card-v17){background:#09131f!important}
html[data-theme="dark"] body.owdex-finance-auth-clean :is(.nd-auth-showcase,.auth-card-v17>.auth-visual,.auth-card-v17>.left){background:linear-gradient(145deg,#09201e 0%,#0b342f 58%,#0d5047 100%)!important;color:#fff!important}
html[data-theme="dark"] body.owdex-finance-auth-clean :is(.nd-auth-copy,.auth-copy) :is(h1,h2){color:#fff!important}
html[data-theme="dark"] body.owdex-finance-auth-clean :is(.nd-auth-copy,.auth-copy) p{color:#c2d8d4!important}
html[data-theme="dark"] body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){background:#111b2a!important;border-left-color:#25354a!important}
html[data-theme="dark"] body.owdex-finance-auth-clean :is(.auth-login-intro,.nd-auth-form-panel>.page-head,.nd-auth-form-panel>.auth-head) h2{color:#f1f6fb!important}
html[data-theme="dark"] body.owdex-finance-auth-clean :is(.auth-login-form,.nd-auth-form-panel form) :is(input,select,textarea){background:#172437!important;border-color:#29394f!important;color:#eef4fc!important}

@media(max-width:900px){
  body.owdex-finance-auth-clean{height:auto!important;min-height:100dvh!important;overflow:auto!important}
  body.owdex-finance-auth-clean :is(.nd-auth-shell,.auth-card-v17){height:auto!important;min-height:100dvh!important;grid-template-columns:1fr!important;overflow:visible!important}
  body.owdex-finance-auth-clean :is(.nd-auth-showcase,.auth-card-v17>.auth-visual,.auth-card-v17>.left){height:auto!important;min-height:280px!important;padding:36px 24px 30px!important;justify-content:center!important}
  body.owdex-finance-auth-clean .nf-real-logo{margin-bottom:18px!important}
  body.owdex-finance-auth-clean .nf-real-logo img{width:170px!important;max-height:120px!important}
  body.owdex-finance-auth-clean :is(.nd-auth-copy,.auth-copy) :is(h1,h2){font-size:28px!important;margin:5px 0 8px!important}
  body.owdex-finance-auth-clean :is(.nd-auth-copy,.auth-copy) p{font-size:13px!important}
  body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){height:auto!important;min-height:auto!important;padding:64px 24px 34px!important;overflow:visible!important}
}

/* ---------- Public/support surfaces ---------- */
body.owdex-finance-public-clean{background:var(--of-page)!important;color:var(--of-text)!important}
body.owdex-finance-public-clean :is(.card,.support-card,.legal-card,[role="dialog"]){background:var(--of-surface)!important;border:1px solid var(--of-line)!important;border-radius:16px!important;box-shadow:var(--of-shadow-soft)!important}
body.owdex-finance-public-clean :is(input,select,textarea){border:1px solid var(--of-line)!important;border-radius:10px!important;background:var(--of-surface)!important;color:var(--of-text)!important}

/* Desktop must never inherit the mobile sidebar dimmer/backdrop. */
@media(min-width:901px){
  body.owdex-finance-chat-clean.mobile-sidebar-open::before,
  body.owdex-finance-chat-clean.sidebar-open::before,
  body.owdex-finance-chat-clean .sidebar-backdrop,
  body.owdex-finance-chat-clean .mobile-sidebar-backdrop,
  body.owdex-finance-chat-clean [data-sidebar-backdrop]{display:none!important;opacity:0!important;pointer-events:none!important}
}

/* ================================================================
   OWDEX Finance v3.4.0 PROD R29 FIX5 — AJUSTES FINOS POS-REBASE
   - linha/fatura de conta sem borda/margem residual
   - marca visual garantida na sidebar
   - login alinhado em um unico eixo/stack
   ================================================================ */

/* R29_FIX5_ACCOUNT_ROW_RESET
   Algumas contas pre-cadastradas sao renderizadas como button/a e ainda
   herdavam borda/outline do componente legado. Todas as linhas da lista
   devem ocupar 100%, sem margem lateral e sem retangulo preto de foco. */
body.owdex-finance-chat-clean :is(
  .accounts-list,.account-list,.bills-list,.bill-list,
  [class*="accounts-list"],[class*="account-list"],[class*="bills-list"],[class*="bill-list"]
) > :is(button,a,[role="button"],.list-row,.account-row,.bill-row,[class*="account-row"],[class*="bill-row"]){
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:10px 8px!important;
  border:0!important;
  border-bottom:1px solid var(--of-line)!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  transform:none!important;
}
body.owdex-finance-chat-clean :is(
  .accounts-list,.account-list,.bills-list,.bill-list,
  [class*="accounts-list"],[class*="account-list"],[class*="bills-list"],[class*="bill-list"]
) > :is(button,a,[role="button"],.list-row,.account-row,.bill-row,[class*="account-row"],[class*="bill-row"]):last-child{
  border-bottom:0!important;
}
body.owdex-finance-chat-clean :is(
  .accounts-list,.account-list,.bills-list,.bill-list,
  [class*="accounts-list"],[class*="account-list"],[class*="bills-list"],[class*="bill-list"]
) > :is(button,a,[role="button"],.list-row,.account-row,.bill-row,[class*="account-row"],[class*="bill-row"]):is(:focus,:focus-visible,[aria-selected="true"]){
  margin:0!important;
  border-left:0!important;
  border-right:0!important;
  border-top:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:var(--of-soft-2)!important;
}
/* Fallback para o componente de conta que nao expõe uma classe de row. */
body.owdex-finance-chat-clean :is(.account-card,.accounts-card,[class*="accounts-card"],[class*="account-card"]) :is(button,a)[type="button"],
body.owdex-finance-chat-clean :is(.account-card,.accounts-card,[class*="accounts-card"],[class*="account-card"]) > :is(button,a,[role="button"]){
  outline:0!important;
}

/* R29_FIX5_SIDEBAR_LOGO
   A carteira precisa existir mesmo quando o HTML legado nao trouxer <img>. */
body.owdex-finance-chat-clean :is(.sidebar-logo,.sidebar-brand,.brand-logo){
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
body.owdex-finance-chat-clean :is(.sidebar-logo,.sidebar-brand,.brand-logo)::before{display:none!important;content:none!important}

body.owdex-finance-chat-clean :is(.sidebar-logo,.sidebar-brand,.brand-logo) .sidebar-logo-mark{
  display:none!important;
}
body.owdex-finance-chat-clean .sidebar-head > :is(a,div):first-child:not(.sidebar-toggle):not(.icon-btn){
  min-width:0!important;
}
body.owdex-finance-chat-clean .sidebar-head > :is(a,div):first-child:not(.sidebar-toggle):not(.icon-btn)::before{display:none!important;content:none!important}
body.owdex-finance-chat-clean .sidebar-head > :is(.sidebar-logo,.sidebar-brand,.brand-logo):first-child::before{display:none!important;content:none!important}

/* R29_FIX5_LOGIN_ALIGNMENT
   Intro, formulario, links e aviso de seguranca ficam no mesmo eixo de
   430px. Remove grids/posicionamentos legados que separavam as colunas. */
body.owdex-finance-auth-clean :is(
  .nd-auth-form-panel,.login-card,.auth-form-panel,
  .auth-card-v17>.auth-form,.auth-card-v17>.right
){
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
}
body.owdex-finance-auth-clean :is(
  .auth-login-grid,.login-form-grid,.auth-form-grid,
  .auth-login-body,.login-form-wrap,.auth-form-wrap,
  .login-content,.auth-content,.auth-login-content
){
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:430px!important;
  margin:0 auto!important;
  padding:0!important;
  gap:0!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
}
body.owdex-finance-auth-clean :is(
  .auth-login-intro,.auth-login-form,.form-stack,
  .auth-login-meta,.auth-links,.login-links,.auth-support-links,
  .auth-security-note,.auth-note,.security-card,.auth-info-card
){
  width:100%!important;
  max-width:430px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
}
body.owdex-finance-auth-clean .auth-login-intro{margin-top:0!important;margin-bottom:24px!important}
body.owdex-finance-auth-clean :is(.auth-login-form,.form-stack){margin-top:0!important;margin-bottom:0!important}
body.owdex-finance-auth-clean .auth-login-meta{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:start!important;
  justify-items:stretch!important;
  gap:3px!important;
  margin-top:18px!important;
  padding:0!important;
}
body.owdex-finance-auth-clean .auth-login-meta > *{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  position:static!important;
  transform:none!important;
}
body.owdex-finance-auth-clean .auth-login-meta :is(.auth-security-note,.auth-note,.security-card,.auth-info-card){
  margin-top:14px!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel) > *:not(.nd-auth-theme-toggle-r15):not(.nd-auth-theme-toggle-r16):not(.auth-theme-toggle):not([data-theme-toggle]):not(.auth-theme-tools){
  flex:0 0 auto!important;
}

@media(max-width:900px){
  body.owdex-finance-auth-clean :is(
    .auth-login-grid,.login-form-grid,.auth-form-grid,
    .auth-login-body,.login-form-wrap,.auth-form-wrap,
    .login-content,.auth-content,.auth-login-content,
    .auth-login-intro,.auth-login-form,.form-stack,.auth-login-meta
  ){
    max-width:100%!important;
  }
}

/* Direct-row fallback: a linha de conta pode ser filha imediata do card,
   enquanto a ação "Gerenciar contas" permanece dentro do header. */
body.owdex-finance-chat-clean :is(.account-card,.accounts-card,[class*="accounts-card"],[class*="account-card"]) > :is(button,a,[role="button"]){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid var(--of-line)!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body.owdex-finance-chat-clean :is(.account-card,.accounts-card,[class*="accounts-card"],[class*="account-card"]) > :is(button,a,[role="button"]):is(:focus,:focus-visible){
  outline:0!important;
  box-shadow:none!important;
  background:var(--of-soft-2)!important;
}


/* ================================================================
   OWDEX Finance v3.4.0 PROD R29 FIX5 — correção definitiva login/sidebar
   - remove duplicidade da logo na sidebar
   - logo do showcase com fundo branco
   - meta/links do login obrigatoriamente abaixo do formulário
   ================================================================ */
body.owdex-finance-chat-clean .sidebar-head .sidebar-logo-mark{display:block!important}
body.owdex-finance-chat-clean .sidebar-head .sidebar-brand-copy{display:grid!important}

body.owdex-finance-auth-clean .nf-real-logo{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:max-content!important;
  padding:18px 22px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 20px 44px rgba(4,28,59,.12)!important;
}
body.owdex-finance-auth-clean .nf-real-logo img{
  width:min(260px,70%)!important;
  max-width:260px!important;
  margin:0!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){
  align-items:flex-start!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right) > :not(.nd-auth-theme-toggle-r15):not(.nd-auth-theme-toggle-r16):not(.auth-theme-toggle):not([data-theme-toggle]):not(.auth-theme-tools){
  width:100%!important;
  max-width:430px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  align-self:center!important;
}
body.owdex-finance-auth-clean :is(.auth-login-grid,.login-form-grid,.auth-form-grid,.auth-login-body,.login-form-wrap,.auth-form-wrap,.login-content,.auth-content,.auth-login-content,[class*="login-grid"],[class*="form-grid"],[class*="form-wrap"],[class*="auth-content"]){
  grid-template-columns:1fr!important;
  display:block!important;
}
body.owdex-finance-auth-clean :is(.auth-login-form,.form-stack,.nd-auth-form-panel form){
  margin-bottom:0!important;
}
body.owdex-finance-auth-clean :is(.auth-login-form,.form-stack,.nd-auth-form-panel form) + *,
body.owdex-finance-auth-clean :is(.auth-login-form,.form-stack,.nd-auth-form-panel form) ~ :is(nav,.auth-links,.login-links,.auth-support-links,.auth-login-meta,.auth-security-note,.auth-note,.security-card,.auth-info-card,[class*="support"],[class*="security"],[class*="meta"]){
  display:block!important;
  clear:both!important;
  width:100%!important;
  max-width:430px!important;
  margin:18px auto 0!important;
  float:none!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  align-self:center!important;
}
body.owdex-finance-auth-clean :is(.auth-links,.login-links,.auth-support-links,.auth-login-meta,[class*="support"],[class*="meta"]) > *{
  display:block!important;
  width:100%!important;
  margin:0 0 6px!important;
  text-align:left!important;
}
body.owdex-finance-auth-clean :is(.auth-security-note,.auth-note,.security-card,.auth-info-card,[class*="security"]){
  margin-top:14px!important;
}

/* ================================================================
   R29 FIX5 — LOGIN EXACT CHAT GEOMETRY
   Replica a geometria do OWDEX Chat R24 R4 R2 no login do Finance.
   ================================================================ */
body.owdex-finance-auth-clean :is(.nd-auth-shell,.login-shell,.auth-card-v17){
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-showcase,.login-brand-panel,.auth-card-v17>.auth-visual,.auth-card-v17>.left){
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100dvh!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100dvh!important;
  margin:0!important;
  padding:min(10vw,116px) min(8vw,96px)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.owdex-finance-auth-clean .r29-login-stack{
  width:100%!important;
  max-width:430px!important;
  margin:0 auto!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:20px!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  align-self:center!important;
}
body.owdex-finance-auth-clean .r29-login-stack > *{
  width:100%!important;
  max-width:430px!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  grid-column:1!important;
}
body.owdex-finance-auth-clean .r29-login-stack .auth-login-intro{
  margin:0!important;
  padding:0!important;
}
body.owdex-finance-auth-clean .r29-login-stack .auth-login-intro :is(.page-kicker,.eyebrow){
  display:block!important;
  margin:0 0 8px!important;
  font-size:10px!important;
  line-height:1.2!important;
  letter-spacing:.12em!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  color:var(--of-accent)!important;
}
body.owdex-finance-auth-clean .r29-login-stack .auth-login-intro h2{
  margin:0 0 12px!important;
  font-size:28px!important;
  line-height:1.1!important;
  letter-spacing:-.025em!important;
  color:#011238!important;
  font-weight:700!important;
}
body.owdex-finance-auth-clean .r29-login-stack .auth-login-intro p{
  margin:0!important;
  max-width:430px!important;
  font-size:13px!important;
  line-height:1.55!important;
  color:#49647f!important;
}
body.owdex-finance-auth-clean .r29-login-stack :is(form.auth-login-form,form.form-stack,form){
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:11px!important;
  margin:0!important;
  padding:0!important;
}
body.owdex-finance-auth-clean .r29-login-stack form label{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:600!important;
  color:#10213d!important;
}
body.owdex-finance-auth-clean .r29-login-stack form input{
  width:100%!important;
  min-height:40px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  border:1px solid #dbe5f1!important;
  background:#edf4ff!important;
  color:#011238!important;
  box-shadow:none!important;
}
body.owdex-finance-auth-clean .r29-login-stack form :is(button[type="submit"],.btn-primary,.btn.primary){
  width:100%!important;
  min-height:44px!important;
  margin:0!important;
  padding:13px 14px!important;
  border-radius:10px!important;
  border:0!important;
  color:#fff!important;
  font-weight:700!important;
}
body.owdex-finance-auth-clean .r29-login-stack :is(.auth-login-meta,.auth-links,.login-links,.auth-support-links,.auth-security-note,.auth-note,.security-card,.auth-info-card,[class*="support"],[class*="security"],[class*="meta"]){display:none!important}
body.owdex-finance-auth-clean .r29-login-stack :is(.auth-login-meta,.auth-links,.login-links,.auth-support-links){
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:4px!important;
  margin:0!important;
  padding:0!important;
  align-items:start!important;
  justify-items:stretch!important;
}
body.owdex-finance-auth-clean .r29-login-stack :is(.auth-login-meta,.auth-links,.login-links,.auth-support-links) > *{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
  position:static!important;
  transform:none!important;
}
body.owdex-finance-auth-clean .r29-login-stack :is(.auth-security-note,.auth-note,.security-card,.auth-info-card){
  margin-top:10px!important;
  padding:11px 12px!important;
  border-radius:10px!important;
}
body.owdex-finance-auth-clean .nf-real-logo{
  background:#fff!important;
  border:1px solid rgba(255,255,255,.68)!important;
}

/* O Chat só esconde o painel de marca abaixo de 760px. As regras antigas
   do Finance usavam 900px e causavam a geometria incorreta entre 761–900. */
@media (min-width:761px) and (max-width:900px){
  body.owdex-finance-auth-clean :is(.nd-auth-shell,.login-shell,.auth-card-v17){
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }
  body.owdex-finance-auth-clean :is(.nd-auth-showcase,.login-brand-panel,.auth-card-v17>.auth-visual,.auth-card-v17>.left){
    display:flex!important;
    min-height:0!important;
    height:100dvh!important;
    padding:36px 28px!important;
  }
  body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){
    grid-column:2!important;
    height:100dvh!important;
    min-height:0!important;
    padding:54px 30px!important;
    overflow:hidden!important;
  }
}
@media (max-width:760px){
  body.owdex-finance-auth-clean{
    min-height:100dvh!important;
    height:auto!important;
    overflow:auto!important;
    background:#fff!important;
  }
  body.owdex-finance-auth-clean :is(.nd-auth-shell,.login-shell,.auth-card-v17){
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:100dvh!important;
    overflow:visible!important;
    background:#fff!important;
  }
  body.owdex-finance-auth-clean :is(.nd-auth-showcase,.login-brand-panel,.auth-card-v17>.auth-visual,.auth-card-v17>.left){
    display:none!important;
  }
  body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){
    display:flex!important;
    width:100%!important;
    min-height:100dvh!important;
    height:auto!important;
    padding:72px 28px 34px!important;
    justify-content:center!important;
    align-items:stretch!important;
    overflow:visible!important;
    border-left:0!important;
  }
  body.owdex-finance-auth-clean .r29-login-stack{max-width:430px!important}
}
@media (max-width:480px){
  body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right){
    padding:66px 18px 28px!important;
  }
}
/* Deterministic form sizing, independent of older Finance box-sizing rules. */
body.owdex-finance-auth-clean .r29-login-stack form,
body.owdex-finance-auth-clean .r29-login-stack form *{box-sizing:border-box!important}
body.owdex-finance-auth-clean .r29-login-stack form input{
  height:40px!important;
  min-height:40px!important;
  padding:0 12px!important;
}
body.owdex-finance-auth-clean .r29-login-stack form :is(button[type="submit"],.btn-primary,.btn.primary){
  height:44px!important;
  min-height:44px!important;
  padding:0 14px!important;
}

body.owdex-finance-auth-clean .r29-login-stack .auth-login-intro{display:block!important;visibility:visible!important;opacity:1!important}
body.owdex-finance-auth-clean .r29-login-stack .auth-login-intro h2{font-size:27px!important;margin:0 0 10px!important}
body.owdex-finance-auth-clean .r29-login-stack .auth-login-intro p{font-size:13px!important}
body.owdex-finance-auth-clean :is(.nd-auth-form-panel,.login-card,.auth-form-panel,.auth-card-v17>.auth-form,.auth-card-v17>.right).r29-login-exact-chat-ready{justify-content:center!important}


/* R29 FIX5 - LOGIN HARD REBUILD (authoritative final override)
   The login screen is rebuilt in-place to match the OWDEX Chat geometry,
   while preserving the live Finance login form and actions. */
body.owdex-finance-auth-clean{margin:0!important;min-height:100vh!important;overflow:hidden!important;background:#edf2ef!important}
body.owdex-finance-auth-clean.r29fix5-auth-mounted > *[data-r29fix5-hidden="1"]{display:none!important}
body.owdex-finance-auth-clean .r29fix5-auth-root{position:fixed!important;inset:0!important;z-index:999!important;display:grid!important;grid-template-columns:minmax(560px,1.08fr) minmax(420px,.92fr)!important;min-height:100vh!important;width:100vw!important;background:#edf2ef!important}
body.owdex-finance-auth-clean .r29fix5-showcase{position:relative!important;min-height:100vh!important;overflow:hidden!important;display:flex!important;align-items:stretch!important;justify-content:center!important;padding:44px 48px!important;background:radial-gradient(circle at 18% 22%, rgba(1,31,102,.42) 0, rgba(1,31,102,.42) 18%, transparent 19%),radial-gradient(circle at 78% 26%, rgba(99,220,255,.38) 0, rgba(99,220,255,.32) 20%, transparent 21%),linear-gradient(135deg,#0c2b7f 0%, #1566de 52%, #1aa4da 100%)!important}
body.owdex-finance-auth-clean .r29fix5-showcase::after{content:''!important;position:absolute!important;inset:auto -8% -10% auto!important;width:min(360px,40vw)!important;aspect-ratio:1/1!important;border-radius:50%!important;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(255,255,255,.10) 58%, transparent 62%)!important;pointer-events:none!important}
body.owdex-finance-auth-clean .r29fix5-showcase-inner{position:relative!important;z-index:1!important;width:min(100%,760px)!important;margin:auto!important;display:grid!important;align-content:center!important;gap:24px!important}
body.owdex-finance-auth-clean .r29fix5-logo-card{display:inline-flex!important;width:max-content!important;padding:26px 30px!important;border-radius:22px!important;background:#fff!important;box-shadow:0 20px 44px rgba(0,24,88,.18)!important}
body.owdex-finance-auth-clean .r29fix5-logo-card .nf-real-logo{margin:0!important;display:block!important}
body.owdex-finance-auth-clean .r29fix5-logo-card .nf-real-logo img{display:block!important;width:164px!important;max-width:26vw!important;height:auto!important;object-fit:contain!important;filter:none!important}
body.owdex-finance-auth-clean .r29fix5-pill{display:inline-flex!important;width:max-content!important;align-items:center!important;min-height:36px!important;padding:0 16px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.22)!important;background:rgba(255,255,255,.10)!important;color:#fff!important;font-size:14px!important;font-weight:700!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)!important}
body.owdex-finance-auth-clean .r29fix5-copy{display:grid!important;gap:18px!important;color:#fff!important}
body.owdex-finance-auth-clean .r29fix5-copy h1{margin:0!important;color:#fff!important;font-size:clamp(52px,5.6vw,76px)!important;line-height:.98!important;letter-spacing:-.045em!important;font-weight:800!important}
body.owdex-finance-auth-clean .r29fix5-copy p{margin:0!important;max-width:640px!important;color:rgba(255,255,255,.86)!important;font-size:17px!important;line-height:1.6!important}
body.owdex-finance-auth-clean .r29fix5-tags{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:8px!important}
body.owdex-finance-auth-clean .r29fix5-tags span{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:0 14px!important;border-radius:999px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;font-size:14px!important;font-weight:700!important}
body.owdex-finance-auth-clean .r29fix5-panel{position:relative!important;min-height:100vh!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:48px 56px!important;background:#edf2ef!important}
body.owdex-finance-auth-clean .r29fix5-panel-inner{width:min(430px,100%)!important;display:grid!important;gap:24px!important}
body.owdex-finance-auth-clean .r29fix5-auth-intro{display:grid!important;gap:10px!important}
body.owdex-finance-auth-clean .r29fix5-auth-intro .eyebrow{color:#5f7491!important;font-size:12px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase!important}
body.owdex-finance-auth-clean .r29fix5-auth-intro h2{margin:0!important;color:#10213d!important;font-size:38px!important;line-height:1.05!important;letter-spacing:-.03em!important;font-weight:800!important}
body.owdex-finance-auth-clean .r29fix5-auth-intro p{margin:0!important;color:#687a94!important;font-size:15px!important;line-height:1.55!important}
body.owdex-finance-auth-clean .r29fix5-panel form,body.owdex-finance-auth-clean form.r29fix5-live-form{display:grid!important;gap:16px!important;margin:0!important;width:100%!important}
body.owdex-finance-auth-clean form.r29fix5-live-form label{display:grid!important;gap:7px!important;color:#59677d!important;font-size:13px!important;font-weight:700!important}
body.owdex-finance-auth-clean form.r29fix5-live-form :is(input,select,textarea){width:100%!important;min-height:48px!important;padding:0 16px!important;border:1px solid #d7e0ea!important;border-radius:12px!important;background:#eef4ff!important;color:#10213d!important;box-shadow:none!important;visibility:visible!important;opacity:1!important}
body.owdex-finance-auth-clean form.r29fix5-live-form :is(input,select,textarea):focus{outline:0!important;border-color:#7cd0bf!important;background:#fff!important;box-shadow:0 0 0 3px rgba(12,155,135,.12)!important}
body.owdex-finance-auth-clean form.r29fix5-live-form :is(button[type="submit"],.btn-primary,.btn.primary){width:100%!important;min-height:48px!important;border:0!important;border-radius:12px!important;background:linear-gradient(90deg,#49d6bc 0%, #1dbca7 48%, #12a892 100%)!important;color:#fff!important;font-size:16px!important;font-weight:800!important;box-shadow:0 10px 24px rgba(12,155,135,.18)!important}
body.owdex-finance-auth-clean form.r29fix5-live-form > :not(label):not(button):not(.btn-primary):not(.btn):not(input):not(select):not(textarea):not(div):not(fieldset){display:none!important}
body.owdex-finance-auth-clean .r29fix5-panel :is(.auth-links,.login-links,.auth-support-links,.auth-login-meta,.auth-security-note,.auth-note,.security-card,.auth-info-card,nav,[class*="support"],[class*="security"],[class*="meta"]){display:none!important}
body.owdex-finance-auth-clean .r29fix5-theme-toggle,body.owdex-finance-auth-clean .r29fix5-panel :is(.nd-auth-theme-toggle-r15,.nd-auth-theme-toggle-r16,.auth-theme-toggle,[data-theme-toggle]){position:absolute!important;top:20px!important;right:20px!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;border-radius:12px!important;border:1px solid #dbe6e0!important;background:#fff!important;box-shadow:0 8px 20px rgba(17,42,55,.06)!important;color:#50636f!important;z-index:2!important}
@media (max-width:1100px){body.owdex-finance-auth-clean .r29fix5-auth-root{grid-template-columns:1fr!important}body.owdex-finance-auth-clean .r29fix5-showcase{min-height:360px!important;padding:34px 24px!important}body.owdex-finance-auth-clean .r29fix5-logo-card{padding:18px 22px!important}body.owdex-finance-auth-clean .r29fix5-logo-card .nf-real-logo img{width:140px!important;max-width:100%!important}body.owdex-finance-auth-clean .r29fix5-copy h1{font-size:clamp(38px,9vw,58px)!important}body.owdex-finance-auth-clean .r29fix5-panel{min-height:auto!important;padding:40px 24px 28px!important}}
@media (max-width:760px){body.owdex-finance-auth-clean{overflow:auto!important}body.owdex-finance-auth-clean .r29fix5-auth-root{position:relative!important;min-height:100dvh!important}body.owdex-finance-auth-clean .r29fix5-showcase{min-height:320px!important;padding:28px 20px!important}body.owdex-finance-auth-clean .r29fix5-panel{padding:34px 20px 28px!important}body.owdex-finance-auth-clean .r29fix5-panel-inner{gap:20px!important}body.owdex-finance-auth-clean .r29fix5-auth-intro h2{font-size:32px!important}body.owdex-finance-auth-clean .r29fix5-copy p{font-size:15px!important}body.owdex-finance-auth-clean .r29fix5-tags{gap:8px!important}body.owdex-finance-auth-clean .r29fix5-tags span{font-size:13px!important}}


/* R29 FIX5 R2 — AUTH ACTIONS RESTORED */
body.owdex-finance-auth-clean .r29fix5-auth-actions{
  display:grid!important;
  gap:7px!important;
  margin-top:-2px!important;
  width:100%!important;
  color:#40536c!important;
  font-size:14px!important;
  line-height:1.35!important;
}
body.owdex-finance-auth-clean .r29fix5-action-line{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  min-height:22px!important;
}
body.owdex-finance-auth-clean .r29fix5-action-link{
  display:inline!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  width:auto!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#078d79!important;
  font:inherit!important;
  font-weight:800!important;
  line-height:1.35!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
body.owdex-finance-auth-clean .r29fix5-action-link:hover{
  color:#056e60!important;
  text-decoration:underline!important;
}
body.owdex-finance-auth-clean .r29fix5-action-link:focus-visible{
  outline:2px solid rgba(12,155,135,.35)!important;
  outline-offset:3px!important;
  border-radius:3px!important;
}

/* R29_FIX5_R2_AUTH_ACTIONS_RESTORED */

/* R29 FIX5 R2 - responsive access to restored auth actions */
@media (max-width:1100px){
  body.owdex-finance-auth-clean{overflow:auto!important}
  body.owdex-finance-auth-clean .r29fix5-auth-root{position:relative!important;min-height:100dvh!important;height:auto!important}
  body.owdex-finance-auth-clean .r29fix5-showcase{height:auto!important}
  body.owdex-finance-auth-clean .r29fix5-panel{height:auto!important;min-height:auto!important}
}

/* ================================================================
   R29 FIX5 R3 — NOVO CADASTRO / REGISTRO
   - restaura scroll da tela de cadastro
   - melhora a largura/estética do fluxo de criação de conta
   - mantém painel visual à esquerda e formulário utilizável à direita
   ================================================================ */
body.owdex-finance-public-clean.r29fix5-r3-register-ready,
html:has(body.owdex-finance-public-clean.r29fix5-r3-register-ready){
  min-height:100dvh!important;
  height:auto!important;
  overflow:auto!important;
  background:#edf2ef!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready{
  margin:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  color:var(--of-text)!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-shell{
  display:grid!important;
  grid-template-columns:minmax(280px,.44fr) minmax(0,.56fr)!important;
  min-height:100dvh!important;
  width:100%!important;
  background:#edf2ef!important;
  overflow:visible!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-visual{
  position:sticky!important;
  top:0!important;
  min-height:100dvh!important;
  align-self:start!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 14% 28%, rgba(99,220,255,.42) 0, rgba(99,220,255,.24) 22%, transparent 23%),
    radial-gradient(circle at 84% 78%, rgba(255,255,255,.12) 0, rgba(255,255,255,.06) 18%, transparent 19%),
    linear-gradient(135deg,#0c2b7f 0%, #1566de 52%, #1aa4da 100%)!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-visual::after{
  content:''!important;
  position:absolute!important;
  inset:auto auto -14% -16%!important;
  width:min(380px,44vw)!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 40% 40%, rgba(255,255,255,.28), rgba(255,255,255,.08) 58%, transparent 62%)!important;
  pointer-events:none!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-content,
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-panel{
  min-width:0!important;
  min-height:100dvh!important;
  overflow:visible!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-panel{
  padding:34px clamp(20px,4vw,40px) 42px!important;
  background:#edf2ef!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form{
  width:min(100%,640px)!important;
  max-width:640px!important;
  margin:0 auto!important;
  display:grid!important;
  gap:18px!important;
  box-sizing:border-box!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form,
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form *{box-sizing:border-box!important}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(.card,[class*="card"],[class*="step"],[class*="section"],[class*="bloco"],[class*="grupo"]){
  background:#fff!important;
  border:1px solid #dde6ef!important;
  border-radius:20px!important;
  box-shadow:0 10px 28px rgba(17,43,71,.06)!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(.card-header,[class*="card-header"],[class*="step-header"],[class*="section-header"],h1,h2,h3){
  color:#10213d!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(p,small,[class*="muted"],[class*="hint"],[class*="helper"]){
  color:#687a94!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(input,select,textarea,.r29fix5-r3-field){
  width:100%!important;
  min-height:48px!important;
  border:1px solid #d8e2ed!important;
  border-radius:12px!important;
  background:#f7fbff!important;
  color:#10213d!important;
  padding:0 14px!important;
  box-shadow:none!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(textarea){min-height:120px!important;padding:12px 14px!important}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(input,select,textarea):focus{
  outline:0!important;
  border-color:#79cbbb!important;
  box-shadow:0 0 0 3px rgba(12,155,135,.12)!important;
  background:#fff!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(button,.btn,.btn-primary,.primary,[type="submit"]){
  min-height:46px!important;
  border-radius:12px!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(.btn-primary,.primary,[type="submit"]){
  background:linear-gradient(90deg,#49d6bc 0%, #1dbca7 48%, #12a892 100%)!important;
  border:0!important;
  color:#fff!important;
  font-weight:800!important;
  box-shadow:0 10px 24px rgba(12,155,135,.18)!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is(.grid,[class*="grid"],[class*="row"],[class*="cols"],[class*="fields"],[class*="inline"]){
  gap:14px!important;
}
body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form :is([class*="step"],[class*="etapa"],[class*="wizard"]){scroll-margin-top:18px!important}
@media (max-width:980px){
  body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-shell{
    grid-template-columns:1fr!important;
    min-height:100dvh!important;
  }
  body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-visual{
    position:relative!important;
    min-height:220px!important;
  }
  body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-panel{
    min-height:auto!important;
    padding:24px 18px 32px!important;
  }
  body.owdex-finance-public-clean.r29fix5-r3-register-ready .r29fix5-r3-register-form{
    max-width:100%!important;
  }
}
/* R29_FIX5_R3_REGISTER_SCROLL_OK */
