/* KeyCorp site-wide responsive layer */
:root{--kc-navy:#003366;--kc-blue:#0b4f86;--kc-bg:#f4f7fb;--kc-line:#e5eaf1;--kc-text:#172033}
html{max-width:100%;overflow-x:hidden}body{max-width:100%;overflow-x:hidden}img,video,iframe{max-width:100%}button,input,select,textarea{font:inherit}input,select,textarea{max-width:100%}table{max-width:100%}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:transform .22s ease;z-index:1001;width:min(290px,86vw)!important}.sidebar-open .sidebar{transform:translateX(0)}.navbar{left:0!important;width:100%;padding:0 14px!important}.main-content{margin-left:0!important;padding:82px 16px 28px!important;width:100%;min-width:0}.mobile-overlay{display:none}.sidebar-open .mobile-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000}.page-header{flex-wrap:wrap}.card,.modern-card{padding:16px!important}.form-grid{grid-template-columns:1fr!important}.form-grid .full{grid-column:auto!important}.summary-grid{grid-template-columns:1fr 1fr!important}.table-wrap,.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}table{min-width:620px}.site-footer .footer-container{gap:18px}}
@media(max-width:560px){.main-content{padding:76px 12px 22px!important}.page-header h1{font-size:24px!important}.summary-grid{grid-template-columns:1fr!important}.navbar .profile-section{gap:6px}.navbar img{width:34px!important;height:34px!important}.card,.modern-card{border-radius:12px!important}.primary-btn,button[type=submit]{max-width:100%}.site-footer{padding:22px 12px 10px}.footer-container{padding:0 10px!important}.form-grid input,.form-grid select,.modern-card input,.modern-card select,.modern-card textarea{font-size:16px!important}}
/* Support chat */
#kc-chat-launch{position:fixed;right:20px;bottom:20px;z-index:2147483000;border:0;border-radius:999px;background:#003366;color:#fff;padding:14px 18px;font-weight:700;box-shadow:0 8px 24px #001b3838;cursor:pointer}#kc-chat-panel{position:fixed;right:18px;bottom:82px;width:min(360px,calc(100vw - 24px));height:min(500px,calc(100vh - 110px));z-index:2147483000;background:#fff;border:1px solid #dbe3ed;border-radius:16px;box-shadow:0 18px 55px #0b1d3430;display:none;overflow:hidden;color:#172033;font:14px/1.45 Arial,sans-serif}#kc-chat-panel.kc-open{display:flex;flex-direction:column}#kc-chat-head{background:#003366;color:white;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;font-weight:700}#kc-chat-head button{background:transparent;color:white;border:0;font-size:22px;cursor:pointer}#kc-chat-messages{flex:1;overflow:auto;padding:12px;background:#f7f9fc} .kc-msg{max-width:88%;padding:9px 11px;margin:7px 0;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}.kc-msg.user{background:#dcecff;margin-left:auto}.kc-msg.admin{background:#fff;border:1px solid #e1e7ef}.kc-msg small{display:block;color:#64748b;font-size:10px;margin-top:4px}#kc-chat-form{padding:10px;border-top:1px solid #e5eaf1;display:flex;gap:7px}#kc-chat-form input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:9px;padding:10px}#kc-chat-form button{border:0;border-radius:9px;background:#003366;color:white;padding:0 14px;font-weight:700}#kc-chat-note{font-size:11px;color:#64748b;padding:0 12px 8px}@media(max-width:480px){#kc-chat-launch{right:12px;bottom:12px;padding:12px 15px}#kc-chat-panel{right:8px;bottom:68px;width:calc(100vw - 16px);height:min(72vh,560px)}}
/* Translator */
#kc-translator{position:fixed;left:14px;top:12px;right:auto;bottom:auto;z-index:2147482000;background:#fff;border:1px solid #dbe3ed;border-radius:10px;padding:7px 10px;box-shadow:0 3px 12px #0b1d341c;font:12px Arial,sans-serif}#kc-translator select{border:0;background:#fff;color:#172033;max-width:130px;font-size:12px}#google_translate_element{display:none!important}.goog-te-banner-frame,.skiptranslate{display:none!important}body{top:0!important}



/* Persistent desktop sidebar and GBI-style mobile bottom quick navigation */
@media(min-width:901px){
  .sidebar{transform:none!important;visibility:visible!important;pointer-events:auto!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;height:100vh!important;overflow-y:auto!important;width:250px!important;z-index:1001!important}
  .navbar{left:250px!important;width:calc(100% - 250px)!important}
  .main-content{margin-left:250px!important}
  .kc-bottom-nav{display:none!important}
}
.kc-bottom-nav{display:none}
@media(max-width:900px){
  .sidebar{display:none!important;transform:none!important;visibility:visible!important;pointer-events:auto!important}
  .navbar{left:0!important;width:100%!important}
  .main-content{margin-left:0!important;padding-bottom:96px!important}
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))!important}
  .kc-bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:2147481000;background:#fff;border-top:1px solid #dce3ed;box-shadow:0 -5px 18px rgba(16,24,40,.08);padding:7px 4px calc(7px + env(safe-area-inset-bottom));}
  .kc-bottom-nav a,.kc-bottom-nav .kc-nav-disabled{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#526174;text-decoration:none;font:600 10px/1.2 Arial,sans-serif;padding:3px 1px;border-radius:9px;white-space:nowrap;}
  .kc-bottom-nav .kc-nav-icon{font:normal 24px/1 Arial,sans-serif;display:block;color:#003366;min-height:25px}
  .kc-bottom-nav a.is-active{color:#003366;background:#eaf2fb}
  .kc-bottom-nav a.is-active .kc-nav-icon{font-weight:700;color:#003366}
  .kc-bottom-nav .kc-nav-disabled{opacity:.4}
  #kc-chat-launch{bottom:calc(78px + env(safe-area-inset-bottom))!important}
  #kc-chat-panel{bottom:calc(140px + env(safe-area-inset-bottom))!important}
  #kc-translator{top:10px!important;left:10px!important;right:auto!important;bottom:auto!important}
}
@media(max-width:360px){.kc-bottom-nav a,.kc-bottom-nav .kc-nav-disabled{font-size:9px}.kc-bottom-nav .kc-nav-icon{font-size:21px}}

/* Final positioning and chat identity improvements */
#kc-translator{left:14px!important;top:12px!important;right:auto!important;bottom:auto!important;z-index:2147483001!important;display:flex;align-items:center;gap:4px;padding:8px 10px!important;border-radius:10px!important;box-shadow:0 3px 14px #0b1d3424!important}
#kc-chat-launch{right:20px!important;bottom:20px!important}
#kc-chat-panel{right:18px!important;bottom:82px!important}
.kc-chat-brand{display:flex;align-items:center;gap:10px;min-width:0}.kc-chat-brand img{width:38px;height:38px;object-fit:contain;background:#fff;border-radius:7px;padding:3px}.kc-chat-brand span{font-weight:800}
#kc-chat-identity{display:none;flex-direction:column;gap:10px;padding:16px;background:#fff}#kc-chat-identity p{margin:0 0 4px;color:#344054;font-weight:600}#kc-chat-identity input{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:9px;font-size:15px}#kc-chat-identity button{border:0;border-radius:9px;background:#003366;color:#fff;padding:11px 14px;font-weight:700;cursor:pointer}#kc-chat-form{display:none}
@media(max-width:900px){#kc-chat-launch{right:12px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important}#kc-chat-panel{right:8px!important;bottom:calc(140px + env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important}#kc-translator{left:10px!important;top:10px!important;right:auto!important;bottom:auto!important}}

/* Final positioning and chat identity improvements */
#kc-translator{left:14px!important;top:12px!important;right:auto!important;bottom:auto!important;z-index:2147483001!important;display:flex;align-items:center;gap:4px;padding:8px 10px!important;border-radius:10px!important;box-shadow:0 3px 14px #0b1d3424!important}
#kc-chat-launch{right:20px!important;bottom:20px!important}
#kc-chat-panel{right:18px!important;bottom:82px!important}
.kc-chat-brand{display:flex;align-items:center;gap:10px;min-width:0}.kc-chat-brand img{width:38px;height:38px;object-fit:contain;background:#fff;border-radius:7px;padding:3px}.kc-chat-brand span{font-weight:800}
#kc-chat-identity{display:none;flex-direction:column;gap:10px;padding:16px;background:#fff}#kc-chat-identity p{margin:0 0 4px;color:#344054;font-weight:600}#kc-chat-identity input{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:9px;font-size:15px}#kc-chat-identity button{border:0;border-radius:9px;background:#003366;color:#fff;padding:11px 14px;font-weight:700;cursor:pointer}#kc-chat-form{display:none}
@media(max-width:900px){#kc-chat-launch{right:12px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important}#kc-chat-panel{right:8px!important;bottom:calc(140px + env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important}#kc-translator{left:10px!important;top:10px!important;right:auto!important;bottom:auto!important}}

/* Translator: discreet neutral control, separate from the support chat */
#kc-translator{position:fixed!important;left:12px!important;top:10px!important;right:auto!important;bottom:auto!important;z-index:1200!important;display:flex!important;align-items:center!important;gap:5px!important;background:rgba(248,250,252,.92)!important;border:1px solid rgba(148,163,184,.35)!important;border-radius:8px!important;padding:5px 8px!important;box-shadow:0 2px 8px rgba(15,23,42,.07)!important;opacity:.92!important;max-width:190px!important}
#kc-translator span{font-size:12px!important;color:#475569!important}
#kc-translator select{max-width:125px!important;background:transparent!important;color:#334155!important;border:0!important;outline-offset:2px!important;font-size:12px!important;padding:2px!important}
#kc-translator:focus-within{opacity:1!important;box-shadow:0 0 0 2px rgba(0,51,102,.16)!important}
@media(max-width:600px){#kc-translator{left:8px!important;top:8px!important;padding:4px 6px!important;max-width:160px!important}#kc-translator select{max-width:108px!important;font-size:11px!important}}

/* Mobile dashboard polish: profile, navigation, logout and chat clearance */
.navbar .profile-photo,.navbar .profile-initials{width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important;object-fit:cover;border-radius:50%;border:3px solid #fff;flex:0 0 70px}
.navbar .profile-initials{font-size:23px!important;font-weight:800;display:flex;align-items:center;justify-content:center}
.navbar .navbar-link[href*="logout"]{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:9px 13px!important;border-radius:9px;background:#b42318;color:#fff!important;font-size:14px!important;font-weight:800!important;box-shadow:0 3px 9px rgba(0,0,0,.18)}
.sidebar a[href*="logout"]{background:#a61b1b!important;color:#fff!important;font-weight:800!important;border:1px solid rgba(255,255,255,.28);margin-top:14px}
.navbar .logo img{width:clamp(88px,14vw,150px)!important;height:auto!important;max-height:42px;object-fit:contain}
@media(max-width:900px){
 .navbar{min-height:76px!important;height:auto!important;padding:6px 10px!important;gap:8px!important;align-items:center!important}
 .navbar .nav-links{gap:8px!important;min-width:0!important;flex-wrap:nowrap!important}
 .navbar .profile-section{gap:5px!important;flex:0 0 auto!important}
 .navbar .profile-photo,.navbar .profile-initials{width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;flex-basis:68px!important}
 .navbar .profile-section .user-name{display:none!important}
 .navbar .navbar-link[href*="logout"]{font-size:12px!important;padding:8px 9px!important;min-height:38px;white-space:nowrap}
 .navbar .notifications-link{font-size:18px!important}
 .navbar-spacer{height:82px!important}
 #kc-chat-panel{z-index:2147483000!important;max-height:calc(100dvh - 170px)!important;bottom:calc(82px + env(safe-area-inset-bottom))!important}
 #kc-chat-launch{z-index:2147483001!important;bottom:calc(14px + 68px + env(safe-area-inset-bottom))!important}
 .kc-bottom-nav{z-index:2147482000!important}
}
@media(max-width:390px){
 .navbar{padding:5px 7px!important;gap:5px!important}
 .navbar .logo img{width:72px!important;max-height:34px}
 .navbar .profile-photo,.navbar .profile-initials{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;flex-basis:58px!important}
 .navbar .navbar-link[href*="logout"]{padding:7px!important;font-size:11px!important}
 .navbar .nav-links{gap:5px!important}
}

/* Fix: floating support launcher must never cover the chat composer/send button. */
#kc-chat-panel.kc-open + #kc-chat-launch{display:none!important;pointer-events:none!important}
#kc-chat-panel{box-sizing:border-box;isolation:isolate}
#kc-chat-form{position:relative;z-index:2;flex:0 0 auto;box-sizing:border-box;background:#fff}
#kc-chat-form input{width:1%;box-sizing:border-box;min-height:42px}
#kc-chat-form button{position:relative;z-index:3;flex:0 0 auto;min-height:42px;cursor:pointer;pointer-events:auto}
#kc-chat-launch{max-width:calc(100vw - 24px);white-space:nowrap}
@media(max-width:900px){
  #kc-chat-launch{right:12px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;padding:10px 12px!important;font-size:12px!important}
  #kc-chat-panel{left:8px!important;right:8px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;width:auto!important;height:min(560px,calc(100dvh - 160px - env(safe-area-inset-bottom)))!important;max-height:calc(100dvh - 150px - env(safe-area-inset-bottom))!important}
}


/* Mobile-only support chat fix: hide the floating launcher while chat is open,
   keep the composer above the bottom navigation, and allow keyboard resizing. */
@media (max-width: 900px) {
  body.kc-chat-open #kc-chat-launch { display: none !important; pointer-events: none !important; }
  #kc-chat-panel.kc-open {
    z-index: 2147483646 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }
  #kc-chat-messages { min-height: 0 !important; flex: 1 1 auto !important; overflow-y: auto !important; }
  #kc-chat-note { flex: 0 0 auto !important; }
  #kc-chat-form { flex: 0 0 auto !important; display: flex !important; padding: 10px !important; gap: 7px !important; }
  #kc-chat-form input { flex: 1 1 auto !important; width: 1% !important; min-width: 0 !important; }
  #kc-chat-form button { flex: 0 0 auto !important; min-width: 58px !important; position: relative !important; z-index: 2147483647 !important; }
}


/* KeyCorp consolidated responsive repair: keep page content visible, keep the
   mobile sidebar permanently visible as a compact icon rail, and keep support
   controls out of the way of login/register buttons. */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
body { position:relative; }
.main-content, .main-content > *, .navbar, .navbar .logo, .navbar .nav-links,
.register-container, .login-container, .login-card { visibility:visible; opacity:1; }
.main-content { display:block; min-width:0; }
#kc-chat-launch {
  display:flex !important; align-items:center !important; justify-content:center !important;
  width:50px !important; height:50px !important; min-width:50px !important;
  max-width:50px !important; min-height:50px !important; max-height:50px !important;
  padding:0 !important; border-radius:50% !important; font-size:0 !important;
  line-height:1 !important; white-space:normal !important; overflow:hidden !important;
  background:#003366 !important; color:#fff !important; box-shadow:0 5px 18px #001b3840 !important;
}
#kc-chat-launch::before { content:"💬"; display:block; font-size:23px; line-height:1; }
#kc-chat-launch:focus-visible { outline:3px solid #70b7ff !important; outline-offset:3px; }
#kc-chat-panel { box-sizing:border-box !important; max-width:calc(100vw - 16px) !important; }
#kc-chat-panel.kc-open { display:flex !important; }
#kc-translator { max-width:min(190px, calc(100vw - 16px)) !important; box-sizing:border-box !important; }
#kc-translator select { min-width:0 !important; }
.kc-sidebar-icon { display:inline-flex; align-items:center; justify-content:center; width:28px; min-width:28px; font-size:20px; line-height:1.2; }
.kc-sidebar-label { display:inline; }
.kc-sidebar-disabled { display:flex; align-items:center; gap:8px; padding:12px; color:#b8c4d4; opacity:.7; }
.kc-sidebar-logout { margin-top:12px !important; }
@media (min-width:901px) {
  .sidebar { display:block !important; transform:none !important; visibility:visible !important; width:250px !important; }
  .sidebar a, .kc-sidebar-disabled { display:flex; align-items:center; gap:8px; }
  .kc-sidebar-icon { width:24px; min-width:24px; }
}
@media (max-width:900px) {
  /* Keep navigation permanently visible on mobile; no menu toggle required. */
  .sidebar {
    display:block !important; position:fixed !important; left:0 !important; top:0 !important; bottom:0 !important;
    width:72px !important; min-width:72px !important; height:100dvh !important; max-height:100vh !important;
    padding:10px 5px !important; overflow-x:hidden !important; overflow-y:auto !important;
    transform:none !important; visibility:visible !important; pointer-events:auto !important;
    z-index:1100 !important; box-shadow:2px 0 12px rgba(0,0,0,.18) !important;
  }
  .sidebar .sidebar-header { margin:4px 0 12px !important; text-align:center !important; }
  .sidebar .sidebar-header h2 { font-size:11px !important; line-height:1.2 !important; margin:0 !important; }
  .sidebar .sidebar-header p, .sidebar .sidebar-section h3, .kc-sidebar-accounts, .kc-sidebar-label { display:none !important; }
  .sidebar .sidebar-section { margin:0 !important; }
  .sidebar .sidebar-menu, .sidebar a, .sidebar .kc-sidebar-menu a, .kc-sidebar-disabled {
    width:100% !important; min-height:46px !important; display:flex !important; flex-direction:column !important;
    justify-content:center !important; align-items:center !important; gap:2px !important;
    margin:4px 0 !important; padding:7px 2px !important; border-radius:9px !important;
    font-size:10px !important; text-align:center !important; overflow:hidden !important;
  }
  .sidebar .kc-sidebar-icon { width:100% !important; min-width:0 !important; font-size:21px !important; }
  .sidebar a[title]::after { content:attr(title); display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; font-size:8px; line-height:1.1; color:rgba(255,255,255,.9); }
  .sidebar a .kc-sidebar-label { display:none !important; }
  .navbar { left:72px !important; right:0 !important; width:calc(100% - 72px) !important; min-height:64px !important; height:auto !important; padding:5px 7px !important; gap:5px !important; z-index:1090 !important; }
  .navbar .logo img { width:clamp(62px,20vw,92px) !important; max-width:100% !important; height:auto !important; max-height:38px !important; object-fit:contain !important; }
  .navbar .nav-links { display:flex !important; align-items:center !important; justify-content:flex-end !important; gap:5px !important; min-width:0 !important; flex:1 1 auto !important; }
  .navbar .profile-section { display:flex !important; align-items:center !important; gap:0 !important; min-width:0 !important; }
  .navbar .profile-section .user-name { display:none !important; }
  .navbar .profile-photo, .navbar .profile-initials { width:36px !important; height:36px !important; min-width:36px !important; min-height:36px !important; flex:0 0 36px !important; border-width:2px !important; font-size:13px !important; }
  .navbar .notifications-link { font-size:17px !important; padding:4px !important; }
  .navbar .navbar-link[href*="logout"] { min-height:34px !important; padding:6px 7px !important; font-size:10px !important; }
  .navbar .navbar-link:not([href*="logout"]) { display:none !important; }
  .navbar-spacer { height:70px !important; }
  .main-content { display:block !important; visibility:visible !important; opacity:1 !important; margin-left:72px !important; width:calc(100% - 72px) !important; min-width:0 !important; padding:118px 10px 112px !important; }
  .main-content > * { max-width:100%; min-width:0; }
  .page-header { display:flex; flex-wrap:wrap; gap:8px; }
  .page-header h1 { font-size:clamp(19px,5vw,25px) !important; overflow-wrap:anywhere; }
  .card, .modern-card { width:100%; max-width:100%; min-width:0; padding:12px !important; overflow-wrap:anywhere; }
  .summary-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:10px !important; }
  .form-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; }
  .form-grid > *, .form-grid .full { grid-column:1 / -1 !important; min-width:0 !important; }
  .table-wrap, .table-responsive { width:100%; max-width:100%; overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
  table { min-width:560px; }
  .kc-bottom-nav { display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; left:72px !important; right:0 !important; width:calc(100% - 72px) !important; z-index:1200 !important; }
  .kc-bottom-nav a, .kc-bottom-nav .kc-nav-disabled { min-width:0 !important; font-size:9px !important; }
  .kc-bottom-nav .kc-nav-icon { font-size:21px !important; }
  body { padding-bottom:calc(70px + env(safe-area-inset-bottom)) !important; }
  #kc-chat-launch { right:10px !important; bottom:calc(78px + env(safe-area-inset-bottom)) !important; z-index:1300 !important; }
  #kc-chat-panel { left:80px !important; right:8px !important; bottom:calc(76px + env(safe-area-inset-bottom)) !important; width:auto !important; height:min(560px, calc(100dvh - 100px - env(safe-area-inset-bottom))) !important; max-height:calc(100dvh - 90px - env(safe-area-inset-bottom)) !important; z-index:2147483000 !important; }
  body.kc-chat-open #kc-chat-launch { display:none !important; }
  #kc-translator { left:80px !important; top:68px !important; right:auto !important; max-width:140px !important; padding:4px 5px !important; z-index:1301 !important; }
  #kc-translator span { font-size:10px !important; }
  #kc-translator select { max-width:105px !important; font-size:10px !important; }
  footer { margin-left:72px !important; width:calc(100% - 72px) !important; padding:14px 8px !important; font-size:11px !important; }
  .mobile-overlay { display:none !important; }
}
@media (max-width:420px) {
  .navbar .logo img { width:58px !important; max-height:32px !important; }
  .navbar .profile-photo, .navbar .profile-initials { width:32px !important; height:32px !important; min-width:32px !important; min-height:32px !important; flex-basis:32px !important; }
  .navbar .navbar-link[href*="logout"] { font-size:9px !important; padding:5px !important; }
  .kc-bottom-nav a, .kc-bottom-nav .kc-nav-disabled { font-size:8px !important; }
  #kc-chat-panel { left:78px !important; right:5px !important; }
}
@media (max-width:900px) {
  body.kc-auth-page { padding-bottom:88px !important; }
  body.kc-auth-page #kc-chat-launch { right:12px !important; bottom:12px !important; }
  body.kc-auth-page #kc-chat-panel { left:8px !important; right:8px !important; bottom:68px !important; width:auto !important; height:min(72dvh,560px) !important; }
  body.kc-auth-page #kc-translator { left:8px !important; top:8px !important; max-width:150px !important; }
}
@media (max-width:600px) {
  body.kc-auth-page { align-items:flex-start !important; padding-top:54px !important; }
  body.kc-auth-page .register-container, body.kc-auth-page .login-container, body.kc-auth-page .login-card, body.kc-auth-page .login-box { margin-top:4px !important; }
  body.kc-auth-page .login-box { width:100%; max-width:460px; margin:4px auto 0; }
  body.kc-auth-page form { max-width:100%; }
  body.kc-auth-page input, body.kc-auth-page select, body.kc-auth-page button { max-width:100%; }
}

/* FINAL MOBILE LAYOUT OVERRIDE - fixes conflicting earlier mobile rules */
@media (max-width: 900px) {
  html, body { width:100% !important; max-width:100% !important; overflow-x:hidden !important; }
  body { display:block !important; margin:0 !important; padding:0 0 calc(74px + env(safe-area-inset-bottom)) !important; }
  .sidebar { display:none !important; }
  .navbar {
    position:fixed !important; top:0 !important; left:0 !important; right:0 !important;
    width:100% !important; max-width:100% !important; height:64px !important; min-height:64px !important;
    max-height:64px !important; margin:0 !important; padding:6px 10px !important;
    display:flex !important; flex-flow:row nowrap !important; align-items:center !important;
    justify-content:space-between !important; gap:8px !important; overflow:visible !important;
    box-sizing:border-box !important; z-index:1100 !important;
  }
  .navbar .logo { display:flex !important; flex:0 1 auto !important; align-items:center !important; min-width:0 !important; width:auto !important; max-width:36% !important; margin:0 !important; }
  .navbar .logo img { display:block !important; width:clamp(65px,23vw,110px) !important; max-width:100% !important; height:auto !important; max-height:42px !important; object-fit:contain !important; }
  .navbar .nav-links { display:flex !important; flex:1 1 auto !important; min-width:0 !important; width:auto !important; flex-flow:row nowrap !important; justify-content:flex-end !important; align-items:center !important; gap:8px !important; margin:0 !important; }
  .navbar .notifications-link { display:inline-flex !important; flex:0 0 auto !important; font-size:18px !important; padding:4px !important; }
  .navbar .profile-section { display:flex !important; flex:0 0 auto !important; min-width:0 !important; align-items:center !important; gap:0 !important; }
  .navbar .user-name { display:none !important; }
  .navbar .profile-photo, .navbar .profile-initials { width:34px !important; height:34px !important; min-width:34px !important; min-height:34px !important; flex:0 0 34px !important; }
  .navbar .navbar-link[href*="dashboard"] { display:none !important; }
  .navbar .navbar-link[href*="logout"] { display:inline-flex !important; flex:0 0 auto !important; align-items:center !important; justify-content:center !important; min-height:34px !important; padding:6px 8px !important; font-size:11px !important; white-space:nowrap !important; }
  .navbar-spacer { display:block !important; height:64px !important; min-height:64px !important; }
  .main-content { display:block !important; visibility:visible !important; opacity:1 !important; position:relative !important; margin:0 !important; margin-left:0 !important; left:auto !important; right:auto !important; width:100% !important; max-width:100% !important; min-width:0 !important; padding:82px 12px 100px !important; box-sizing:border-box !important; }
  .main-content > * { max-width:100% !important; min-width:0 !important; }
  footer { margin:0 !important; width:100% !important; max-width:100% !important; }
  .kc-bottom-nav { display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; position:fixed !important; left:0 !important; right:0 !important; bottom:0 !important; width:100% !important; max-width:100% !important; margin:0 !important; z-index:2147481000 !important; box-sizing:border-box !important; padding:6px 4px calc(6px + env(safe-area-inset-bottom)) !important; }
  .kc-bottom-nav a, .kc-bottom-nav .kc-nav-disabled { min-width:0 !important; }
  #kc-translator { position:fixed !important; top:70px !important; left:10px !important; right:auto !important; bottom:auto !important; max-width:min(165px,calc(100vw - 20px)) !important; z-index:1200 !important; padding:4px 6px !important; }
  #kc-translator span { font-size:10px !important; }
  #kc-translator select { max-width:115px !important; min-width:0 !important; font-size:11px !important; }
  #kc-chat-launch { position:fixed !important; display:flex !important; align-items:center !important; justify-content:center !important; width:48px !important; height:48px !important; min-width:48px !important; min-height:48px !important; max-width:48px !important; padding:0 !important; right:12px !important; bottom:calc(82px + env(safe-area-inset-bottom)) !important; border-radius:50% !important; font-size:0 !important; line-height:1 !important; white-space:normal !important; z-index:1300 !important; }
  #kc-chat-launch::before { content:"💬" !important; display:block !important; font-size:22px !important; }
  #kc-chat-panel { left:10px !important; right:10px !important; bottom:calc(82px + env(safe-area-inset-bottom)) !important; width:auto !important; max-width:none !important; max-height:calc(100dvh - 160px - env(safe-area-inset-bottom)) !important; z-index:2147483000 !important; }
  body.kc-chat-open #kc-chat-launch { display:none !important; }
}
@media (max-width:420px) {
  .navbar { padding-left:8px !important; padding-right:8px !important; gap:5px !important; }
  .navbar .nav-links { gap:5px !important; }
  .navbar .logo { max-width:32% !important; }
  .navbar .logo img { width:68px !important; max-height:36px !important; }
  .navbar .profile-photo, .navbar .profile-initials { width:30px !important; height:30px !important; min-width:30px !important; min-height:30px !important; flex-basis:30px !important; }
  #kc-translator { top:68px !important; }
}


/* Accessible mobile sidebar toggle for the KeyCorp Mobile Actual Fix package */
.kc-sidebar-toggle { display:none; }
.kc-sidebar-overlay { display:none; }
@media (max-width:900px) {
  .kc-sidebar-toggle {
    display:inline-flex !important; flex:0 0 42px !important; width:42px !important;
    min-width:42px !important; height:42px !important; min-height:42px !important;
    padding:9px !important; margin:0 5px 0 0 !important; border:1px solid rgba(255,255,255,.35) !important;
    border-radius:9px !important; background:transparent !important; color:#fff !important;
    cursor:pointer !important; align-items:center !important; justify-content:center !important;
    flex-direction:column !important; gap:4px !important; font-size:0 !important; z-index:1201 !important;
  }
  .kc-sidebar-toggle span { display:block !important; width:22px !important; height:2px !important; background:#fff !important; border-radius:2px !important; }
  .navbar { gap:6px !important; }
  .navbar .logo { flex:0 1 auto !important; }
  .kc-sidebar-overlay { display:none !important; position:fixed !important; inset:0 !important; background:rgba(5,18,35,.48) !important; z-index:2147482000 !important; }
  .sidebar { display:block !important; position:fixed !important; top:0 !important; bottom:0 !important; left:0 !important; width:min(280px,84vw) !important; height:100dvh !important; max-height:100dvh !important; overflow-y:auto !important; transform:translateX(-105%) !important; visibility:hidden !important; pointer-events:none !important; transition:transform .24s ease, visibility .24s ease !important; z-index:2147482500 !important; }
  body.kc-sidebar-open .sidebar { display:block !important; transform:translateX(0) !important; visibility:visible !important; pointer-events:auto !important; }
  body.kc-sidebar-open .kc-sidebar-overlay { display:block !important; }
  body.kc-sidebar-open { overflow:hidden !important; }
}
@media (min-width:901px) {
  .kc-sidebar-toggle, .kc-sidebar-overlay { display:none !important; }
}


/* Definitive mobile hamburger visibility override */
@media (max-width:900px) {
  .navbar #kcSidebarToggle.kc-sidebar-toggle {
    display:flex !important; align-items:center !important; justify-content:center !important;
    flex:0 0 42px !important; width:42px !important; min-width:42px !important;
    max-width:42px !important; height:42px !important; min-height:42px !important;
    padding:8px !important; margin:0 8px 0 0 !important; box-sizing:border-box !important;
    background:#003366 !important; color:#fff !important; border:1px solid rgba(255,255,255,.7) !important;
    border-radius:9px !important; box-shadow:none !important; text-indent:0 !important;
    font-size:0 !important; line-height:0 !important; opacity:1 !important; visibility:visible !important;
    position:relative !important; z-index:2147483001 !important; cursor:pointer !important;
    flex-direction:column !important; gap:5px !important; overflow:visible !important;
  }
  .navbar #kcSidebarToggle.kc-sidebar-toggle span {
    display:block !important; visibility:visible !important; opacity:1 !important;
    width:24px !important; min-width:24px !important; height:2px !important; min-height:2px !important;
    margin:0 !important; padding:0 !important; background:#fff !important; border:0 !important;
    border-radius:2px !important; transform:none !important;
  }
  .kc-sidebar-overlay { z-index:2147482000 !important; }
  body.kc-sidebar-open .sidebar { z-index:2147482500 !important; }
}

/* Make bottom mobile navigation bolder */
@media (max-width: 768px) {
  .mobile-bottom-nav a,
  .mobile-bottom-nav button,
  .mobile-bottom-nav span,
  .mobile-bottom-nav i,
  .bottom-nav a,
  .bottom-nav button {
    font-weight: 800 !important;
  }

  .mobile-bottom-nav a,
  .bottom-nav a {
    color: #0b2948 !important;
  }

  .mobile-bottom-nav svg,
  .bottom-nav svg {
    stroke-width: 2.5 !important;
  }
}

