@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root{
  --ax-brand:#016C74;
  --ax-brand-weak:#eaf6f7;
  --ax-bg:#f3f6f6;
  --ax-panel:#ffffff;
  --ax-panel-soft:#f8fbfb;
  --ax-border:#dfe8e8;
  --ax-border-strong:#bfd7d8;
  --ax-text:#223033;
  --ax-text-soft:#66777a;
  --ax-shadow:0 18px 60px rgba(0,0,0,.12);
  --ax-shadow-strong:0 24px 80px rgba(0,0,0,.18);
  --ax-radius-lg:18px;
  --ax-radius-md:14px;
  --ax-radius-sm:10px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100vh;
  color:var(--ax-text);
  font-family:"Open Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at top, rgba(1,108,116,.12), transparent 35%),
    linear-gradient(180deg, #f9fbfb 0%, var(--ax-bg) 100%);
}
button,input,select,textarea{font:inherit}
button{appearance:none;-webkit-appearance:none}
a{color:inherit}

#app{
  min-height:100vh;
}

.ax_login_page{
  min-height:100vh;
  padding:24px 18px;
  display:grid;
  place-items:center;
}

.ax_login_shell{
  width:min(560px,100%);
  display:grid;
}

.ax_login_card{
  border:1px solid var(--ax-border);
  border-radius:28px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(12px);
  box-shadow:var(--ax-shadow);
  padding:48px 40px 40px;
  display:grid;
  gap:56px;
  justify-items:center;
  text-align:center;
  background:
    radial-gradient(circle at top, rgba(1,108,116,.08), transparent 42%),
    rgba(255,255,255,.88);
}

.ax_login_brand{
  display:flex;
  align-items:center;
  justify-content:center;
}

.ax_login_brand_center{
  margin-top:0;
}

.ax_login_logo{
  width:280px;
  max-width:80vw;
  display:block;
  margin:0 auto 48px auto;
}

.ax_login_copy{
  display:grid;
  gap:0;
  justify-items:center;
}

.ax_login_title{
  margin:0;
  font-size:clamp(1.45rem,3vw,2.05rem);
  line-height:1.1;
  letter-spacing:-.02em;
  font-weight:700;
}

.ax_login_text{
  margin:0;
  color:var(--ax-text-soft);
  font-size:1rem;
  line-height:1.6;
}

.ax_login_actions{
  display:grid;
  gap:0;
  justify-items:center;
  width:100%;
}

.ax_login_actions_center{
  padding-top:0;
}

.ax_google_btn{
  min-height:60px;
  display:grid;
  place-items:center;
  width:100%;
  margin-bottom:3rem;
}

.ax_google_btn > div{
  margin:0 auto;
}

.ax_hint{
  margin:0;
  color:var(--ax-text-soft);
  font-size:12px;
  line-height:1.55;
}

.ax_hint_warn{
  color:#8a4b00;
}

.ax_shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
}

.ax_sidebar{
  padding:28px 18px;
  background:
    linear-gradient(180deg, rgba(1,108,116,.98), rgba(1,108,116,.92)),
    var(--ax-brand);
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.ax_sidebar_top{
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:center;
  text-align:center;
}

.ax_sidebar_heading{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
}

.ax_sidebar_logo_wrap{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 12px;
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.ax_sidebar_logo{
  width:200px;
  max-width:100%;
  margin:0 auto;
}

.ax_sidebar_caption{
  font-size:13px;
  line-height:1.55;
  color:rgba(255,255,255,.82);
}

.ax_sidebar_nav{
  display:grid;
  gap:10px;
}

.ax_sidebar_cta{
  width:100%;
  justify-content:center;
  min-height:50px;
  border-radius:999px;
  padding-left:18px;
  padding-right:18px;
  background:#fff;
  border:1px solid rgba(255,255,255,.78);
  color:var(--ax-brand);
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  margin-bottom:24px;
}

.ax_sidebar_cta:hover,
.ax_sidebar_cta:focus-visible{
  background:#f2fbfb;
  border-color:rgba(255,255,255,1);
  color:var(--ax-brand);
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(0,0,0,.16);
}

.ax_btn{
  appearance:none;
  border:1px solid var(--ax-border);
  background:#fff;
  color:var(--ax-text);
  min-height:48px;
  border-radius:999px;
  padding:0 18px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.ax_btn:hover,
.ax_btn:focus-visible{
  transform:translateY(-1px);
  border-color:var(--ax-border-strong);
  box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.ax_btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.ax_btn_green{
  background:var(--ax-brand);
  border-color:var(--ax-brand);
  color:#fff;
}

.ax_btn_green:hover,
.ax_btn_green:focus-visible{
  background:#005c63;
  border-color:#005c63;
  color:#fff;
}

.ax_btn_gray{
  background:#eef3f3;
  border-color:#d9e5e6;
  color:var(--ax-text);
}

.ax_btn_gray:hover,
.ax_btn_gray:focus-visible{
  background:#e6eeee;
  color:var(--ax-text);
}

.ax_sidebar_btn{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:18px;
  padding:14px 14px 14px 16px;
  text-align:left;
  cursor:pointer;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:center;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.ax_sidebar_btn:hover,
.ax_sidebar_btn:focus-visible{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.22);
}

.ax_sidebar_btn_active{
  background:#fff;
  color:var(--ax-brand);
  border-color:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.15);
}

.ax_sidebar_icon{
  width:16px;
  height:16px;
  display:block;
  fill:currentColor;
  flex:0 0 auto;
}

.ax_sidebar_title{
  font-size:14px;
  font-weight:800;
  line-height:1.2;
}

.ax_sidebar_sub{
  margin-top:4px;
  font-size:12px;
  line-height:1.4;
  color:inherit;
  opacity:.8;
}

.ax_main{
  padding:24px;
  overflow:auto;
}

.ax_main_inner{
  display:grid;
  gap:18px;
  width:min(1180px,100%);
}

.ax_topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.ax_user_menu{
  position:relative;
  flex:0 0 auto;
  margin-left:auto;
}

.ax_user_btn{
  appearance:none;
  border:1px solid var(--ax-border);
  background:#fff;
  color:var(--ax-text);
  border-radius:999px;
  min-height:44px;
  padding:0 14px 0 18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.ax_user_btn:hover,
.ax_user_btn:focus-visible{
  border-color:var(--ax-border-strong);
}

.ax_user_name{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ax_user_caret{
  font-size:12px;
  line-height:1;
  color:var(--ax-text-soft);
}

.ax_user_panel{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:260px;
  background:#fff;
  border:1px solid var(--ax-border);
  border-radius:18px;
  box-shadow:var(--ax-shadow-strong);
  padding:10px;
  display:none;
  z-index:20;
}

.ax_user_panel.is_open{
  display:grid;
  gap:10px;
}

.ax_user_panel_head{
  padding:8px 10px 12px;
  border-bottom:1px solid var(--ax-border);
}

.ax_user_panel_name{
  font-weight:800;
  font-size:15px;
  line-height:1.25;
}

.ax_user_panel_email{
  margin-top:4px;
  color:var(--ax-text-soft);
  font-size:12px;
  line-height:1.45;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ax_user_panel_item{
  appearance:none;
  border:0;
  background:#fff;
  color:var(--ax-text);
  border-radius:12px;
  min-height:42px;
  padding:0 10px;
  text-align:left;
  font-weight:700;
  cursor:pointer;
}

.ax_user_panel_item:hover,
.ax_user_panel_item:focus-visible{
  background:var(--ax-panel-soft);
}

.ax_topbar_title{
  margin:0;
  font-size:clamp(1.45rem,2vw,2rem);
  font-weight:800;
  letter-spacing:-.02em;
}

.ax_topbar_meta{
  color:var(--ax-text-soft);
  font-size:13px;
  line-height:1.5;
}

.ax_section{
  border:1px solid var(--ax-border);
  border-radius:24px;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  overflow:hidden;
  scroll-margin-top:20px;
}

.ax_section_title{
  margin:0;
  font-size:18px;
  font-weight:800;
}

.ax_section_body{
  padding:18px 20px 20px;
}

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

.ax_card{
  border:1px solid var(--ax-border);
  border-radius:20px;
  background:var(--ax-panel);
  padding:16px;
}

.ax_card_soft{
  background:var(--ax-panel-soft);
}

.ax_card_label{
  margin:0 0 8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#4b6164;
}

.ax_account_row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid #edf2f2;
}

.ax_account_row:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.ax_account_name{
  font-weight:800;
  margin:0;
}

.ax_account_desc{
  margin:6px 0 0;
  color:var(--ax-text-soft);
  font-size:13px;
  line-height:1.5;
}

.ax_pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:var(--ax-brand-weak);
  color:#0f4f55;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.ax_pill_ok{
  background:#e7f8ee;
  color:#11613a;
}

.ax_pill_warn{
  background:#fff4df;
  color:#8a6116;
}

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

.ax_stat{
  border:1px solid var(--ax-border);
  border-radius:18px;
  padding:14px;
  background:#fff;
}

.ax_stat_value{
  font-size:1.55rem;
  line-height:1;
  font-weight:800;
  margin:0;
}

.ax_stat_label{
  margin:8px 0 0;
  color:var(--ax-text-soft);
  font-size:12px;
  line-height:1.4;
}

.ax_progress{
  height:12px;
  border-radius:999px;
  background:#e7eeee;
  overflow:hidden;
}

.ax_progress_fill{
  height:100%;
  width:68%;
  border-radius:inherit;
  background:linear-gradient(90deg, #016C74, #22a39d);
}

.ax_list{
  display:grid;
  gap:12px;
}

.ax_accounts_head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.ax_accounts_cta_inline{
  width:auto;
  margin-bottom:0;
  white-space:nowrap;
}

.ax_accounts_status{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--ax-border);
  background:var(--ax-panel-soft);
  color:var(--ax-text-soft);
  font-size:13px;
  line-height:1.5;
}

.ax_accounts_status_ok{
  border-color:#cfeedd;
  background:#effbf4;
  color:#14653c;
}

.ax_accounts_status_warn{
  border-color:#f2dcc0;
  background:#fff7eb;
  color:#8a5a14;
}

.ax_accounts_empty{
  min-height:180px;
  display:grid;
  align-content:start;
  gap:10px;
}

.ax_empty_state{
  min-height:180px;
  border:1px dashed var(--ax-border-strong);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(1,108,116,.04), rgba(1,108,116,.02));
  padding:18px;
  display:grid;
  align-content:start;
  gap:10px;
}

.ax_add_page{
  min-height:100vh;
  padding:24px;
  display:grid;
  place-items:center;
}

.ax_add_shell{
  width:min(1040px, 100%);
  display:grid;
  gap:18px;
}

.ax_add_hero{
  border:1px solid var(--ax-border);
  border-radius:28px;
  background:
    radial-gradient(circle at top left, rgba(1,108,116,.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(34,163,157,.14), transparent 30%),
    rgba(255,255,255,.92);
  box-shadow:var(--ax-shadow);
  padding:28px;
  display:grid;
  gap:12px;
}

.ax_add_kicker{
  margin:0;
  color:var(--ax-brand);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ax_add_title{
  margin:0;
  font-size:clamp(1.5rem, 3vw, 2.2rem);
  line-height:1.1;
  letter-spacing:-.03em;
}

.ax_add_text{
  margin:0;
  color:var(--ax-text-soft);
  max-width:72ch;
  line-height:1.6;
}

.ax_add_actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:8px;
}

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

.ax_bank_card{
  border:1px solid var(--ax-border);
  border-radius:22px;
  background:#fff;
  padding:18px;
  display:grid;
  gap:12px;
  cursor:pointer;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ax_bank_card:hover,
.ax_bank_card:focus-visible{
  transform:translateY(-1px);
  border-color:var(--ax-border-strong);
  box-shadow:0 14px 28px rgba(0,0,0,.08);
}

.ax_bank_card.is_selected{
  border-color:var(--ax-brand);
  box-shadow:0 16px 36px rgba(1,108,116,.16);
}

.ax_bank_card_disabled{
  opacity:.55;
  cursor:not-allowed;
}

.ax_bank_top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.ax_bank_name{
  margin:0;
  font-size:1.06rem;
  font-weight:800;
}

.ax_bank_desc{
  margin:0;
  color:var(--ax-text-soft);
  font-size:13px;
  line-height:1.5;
}

.ax_add_notice{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--ax-border);
  background:var(--ax-panel-soft);
  color:var(--ax-text-soft);
  font-size:13px;
  line-height:1.5;
}

.ax_add_success{
  border-color:#cfeedd;
  background:#effbf4;
  color:#14653c;
}

.ax_add_loader{
  display:none;
}

.ax_add_loader.is_visible{
  display:block;
}

.ax_list_item{
  padding:14px;
  border-radius:16px;
  border:1px solid var(--ax-border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.ax_list_title{
  margin:0;
  font-weight:800;
}

.ax_list_sub{
  margin:6px 0 0;
  color:var(--ax-text-soft);
  font-size:13px;
  line-height:1.45;
}

@media (max-width: 980px){
  .ax_login_shell,
  .ax_shell{
    grid-template-columns:1fr;
  }

  .ax_login_hero{
    min-height:0;
  }

  .ax_sidebar{
    padding:20px 16px;
  }

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

  .ax_main{
    padding:16px;
  }

  .ax_grid_2,
  .ax_stat_grid{
    grid-template-columns:1fr;
  }

  .ax_bank_grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .ax_login_page{
    padding:16px;
  }

  .ax_login_hero,
  .ax_login_card{
    padding:22px;
    border-radius:22px;
  }

  .ax_login_brand{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .ax_login_logo{
    width:154px;
  }

  .ax_sidebar_nav{
    grid-template-columns:1fr;
  }

  .ax_topbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .ax_user_menu{
    align-self:flex-end;
  }

  .ax_user_panel{
    min-width:min(260px, calc(100vw - 32px));
  }

  .ax_section_body{
    padding-left:16px;
    padding-right:16px;
  }

  .ax_accounts_head{
    flex-direction:column;
  }

  .ax_accounts_cta_inline{
    width:100%;
  }

  .ax_add_page{
    padding:16px;
  }

  .ax_add_hero{
    padding:20px;
    border-radius:22px;
  }
}
