/* AME Partners 4.4 - authentication, dashboard and unified mobile menu */
:root {--ame44-ink:#0a2528;--ame44-teal:#215159;--ame44-paper:#f7f8f5;--ame44-metal:linear-gradient(105deg,#d4aa45 0%,#fff 52%,#d4aa45 100%)}
body.route-login .public-content,body.route-forgot .public-content,body.route-set-password .public-content {background:#f8faf8!important;min-height:0!important;max-width:none!important;width:100%;padding:0!important;margin:0!important}
body.route-login .site-footer,body.route-forgot .site-footer,body.route-set-password .site-footer{margin-top:0!important}
.ame44-auth {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:min(1450px,calc(100% - 64px));min-height:680px;margin:38px auto 70px;background:white;box-shadow:0 25px 90px rgba(6,38,38,.09);border:1px solid #e5ebe7;border-radius:17px;overflow:hidden}
.ame44-auth-visual{position:relative;min-width:0;background:#0a2527 var(--ame-photo-auth) center/cover no-repeat;color:white;display:flex;align-items:end}
.ame44-visual-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,18,20,.98),rgba(3,18,20,.72) 40%,rgba(3,18,20,.12) 100%)}
.ame44-visual-inner{position:relative;z-index:1;padding:clamp(34px,5vw,76px);max-width:700px}
.ame44-auth-tag,.ame44-kicker,.ame44-dashboard-kicker,.ame44-small-label{display:block;letter-spacing:.16em;font-size:11px;font-weight:800;text-transform:uppercase}
.ame44-auth-tag{color:#f0d891;margin-bottom:20px}
.ame44-visual-inner h2{font-size:clamp(37px,4vw,70px);font-weight:800;letter-spacing:-.065em;line-height:1.07;max-width:570px;margin:0 0 22px;color:white}
.ame44-visual-inner p{max-width:390px;color:#e0e9e5;font-size:14px;line-height:1.8}
.ame44-visual-foot{font-size:11px;letter-spacing:.12em;color:#cddad5;margin-top:70px}
.ame44-auth-panel{display:flex;align-items:center;justify-content:center;padding:55px clamp(25px,5vw,85px);background:#fff}
.ame44-auth-panel-inner{width:min(440px,100%)}.ame44-kicker{color:#6b4b15;margin-bottom:18px}
.ame44-auth-panel h1{font-size:clamp(34px,3.5vw,55px);line-height:1.06;letter-spacing:-.065em;color:#0b2a2b;font-weight:800;margin:0 0 17px}
.ame44-auth-description{color:#4f6663;font-size:13px;line-height:1.9;margin:0 0 37px}
.ame44-auth-form{display:grid;gap:19px}.ame44-auth-field{display:flex;flex-direction:column;gap:9px;color:#193c3c;font-size:12px;font-weight:700;width:100%}.ame44-auth-field input{width:100%;height:54px;min-width:0;border:1px solid #b8c9c4;background:#fbfdfb;color:#0b282a;padding:0 16px;border-radius:9px;font-size:14px;font-weight:500;box-shadow:none}.ame44-auth-field input:focus{border-color:#215159;outline:2px solid #21515933;outline-offset:0;background:#fff}.ame44-auth-field input::placeholder{color:#687a77;opacity:1}
.ame44-password-wrap{display:flex;position:relative;align-items:center}.ame44-password-wrap input{padding-right:86px}.ame44-show-password{position:absolute;right:10px;border:0;background:transparent;color:#205159;font-size:12px;font-weight:800;padding:9px 11px;border-radius:7px}.ame44-show-password:hover{background:#e9f2ee}.ame44-auth-support{display:flex;justify-content:flex-end;margin-top:-6px}.ame44-auth-support a,.ame44-auth-bottom a{color:#215159!important;text-decoration:underline;text-underline-offset:4px;font-weight:700;font-size:12px}
.ame44-auth-submit{border:1px solid #d4aa45;border-radius:50px;min-height:55px;padding:14px 24px;background:var(--ame44-metal);background-size:150% 100%;color:#092629!important;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;margin-top:8px;transition:background-position .25s,transform .2s,box-shadow .2s}.ame44-auth-submit svg{width:17px;height:17px}.ame44-auth-submit:hover{background-position:100% 0;transform:translateY(-2px);box-shadow:0 9px 30px #d4aa4526}.ame44-auth-submit:disabled{opacity:.65;transform:none}
.ame44-auth-divider{border-top:1px solid #e0e8e3;margin:26px 0 19px}.ame44-auth-bottom{font-size:12px;line-height:1.8;color:#4f6663}
/* Secure workspaces */
body.app-mode .shell{max-width:none;width:100%;grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 90px);background:#f5f7f5}
body.app-mode .sidebar{background:#081f22!important;border-right:1px solid #143c3d!important;padding:28px 14px 28px!important;gap:4px!important}
body.app-mode .sidebar .side-link{border-radius:10px!important;padding:12px 15px!important;min-height:42px;display:flex;align-items:center;font-size:12px!important;color:#d9e6e1!important;font-weight:650}
body.app-mode .sidebar .side-link.active{background:#255256!important;border-left:3px solid #d4aa45;color:white!important}
body.app-mode .sidebar .side-link:hover{background:#1b4143!important;color:#fff!important}
body.app-mode .sidebar .profile-mini{padding:5px 5px 24px;border-bottom:1px solid #ffffff28}
body.app-mode .sidebar .profile-mini strong{color:#fff;font-size:12px;overflow-wrap:anywhere}
body.app-mode .sidebar .profile-mini small{font-size:10px;color:#c2d1cc!important}
body.app-mode .sidebar .profile-avatar{width:42px;height:42px;border-radius:50%;flex:0 0 42px;display:grid;place-items:center;background:var(--ame44-metal);color:#0c2c2b!important;font-weight:800}
body.app-mode .sidebar .link-button{color:#fff!important;text-align:left;font-weight:700;width:100%;min-height:42px;padding:10px 15px}
body.app-mode .content{min-width:0;padding:46px clamp(22px,4.5vw,72px) 72px;background:#f5f7f5}
body.app-mode .content>.titleline{margin:0 0 27px;border-bottom:0;padding-bottom:0}
body.app-mode .content>.titleline h1{font-size:clamp(26px,3vw,41px);color:#0b2929;font-weight:800;letter-spacing:-.06em}
body.app-mode .content>.titleline .eyebrow{color:#6b4b15!important;-webkit-text-fill-color:#6b4b15!important;background:none!important;font-size:10px}
.ame44-dashboard-intro{min-height:210px;position:relative;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(117deg,#092427,#215159);border-radius:15px;overflow:hidden;color:white;padding:34px clamp(26px,4vw,60px);margin-bottom:24px;gap:30px}
.ame44-dashboard-kicker{font-size:10px;color:#f0d891;margin-bottom:12px}
.ame44-dashboard-intro h2{color:white;font-weight:800;letter-spacing:-.06em;font-size:clamp(27px,3.2vw,45px);margin:0 0 12px;line-height:1.1}
.ame44-dashboard-intro p{color:#dce8e4;font-size:13px;max-width:560px;margin:0;line-height:1.8}
.ame44-dashboard-symbol{flex:0 0 140px;width:140px;height:140px;display:grid;place-items:center;border:1px solid #ffffff50;border-radius:50%;opacity:.6;color:#f0d891}.ame44-dashboard-symbol svg{width:70px;height:70px}
.ame44-dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}
.ame44-metric{background:white;border:1px solid #e0e8e3;border-radius:13px;padding:21px 22px;min-width:0;box-shadow:0 9px 30px #102c2907}
.ame44-metric-top{display:flex;justify-content:space-between;align-items:start;gap:8px;font-size:11px;font-weight:700;color:#4a625e;line-height:1.5}
.ame44-metric-mark{display:grid;place-items:center;background:#e8f0ec;border-radius:50%;width:23px;height:23px;flex:0 0 23px;color:#215159;font-weight:600;font-size:15px}
.ame44-metric strong{display:block;font-size:clamp(29px,2.7vw,43px);letter-spacing:-.065em;color:#0d3033;font-weight:800;margin-top:18px;line-height:1.1}
.ame44-dashboard-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.9fr);gap:20px}
.ame44-dashboard-panel{background:white;border:1px solid #e0e8e3;border-radius:13px;padding:25px;min-width:0;box-shadow:0 9px 30px #102c2907}
.ame44-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #dde7e2;padding-bottom:17px;margin-bottom:8px}
.ame44-small-label{font-size:9px;color:#6b4b15;margin-bottom:7px}.ame44-panel-heading h3{font-size:20px;color:#0b2e31;margin:0;font-weight:800;letter-spacing:-.04em}
.ame44-panel-heading>a{display:flex;gap:6px;align-items:center;white-space:nowrap;font-size:11px;color:#215159;font-weight:750}.ame44-panel-heading svg{width:15px;height:15px}
.ame44-application-row{padding:14px 0;border-bottom:1px solid #e8eeeb;display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}.ame44-application-row:last-child{border-bottom:0}.ame44-application-row a{font-size:12px;font-weight:750;color:#14464a;overflow-wrap:anywhere}.ame44-application-row small{font-size:10px;color:#647974;display:block;margin-top:4px}.ame44-dashboard-empty{padding:18px 0;color:#63736f;font-size:12px}
.ame44-quick-links{display:grid;gap:2px}.ame44-quick-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8eeeb;min-height:49px;padding:11px 2px;color:#1b4b4d;font-weight:700;font-size:12px}.ame44-quick-links a:hover{color:#071f21;background:#f6f9f7}.ame44-quick-links svg{width:17px;height:17px;flex:0 0 17px}
body.app-mode .content .form,body.app-mode .content .card,body.app-mode .content .workspace-panel{border-radius:12px;min-width:0}
.ame44-nav-backdrop{display:none}
/* Shared mobile navigation for both logged-out and logged-in site */
@media(max-width:1020px){
 .top{position:sticky!important;top:0!important;z-index:100!important}
 .top .nav-container{width:calc(100% - 34px)!important;gap:12px!important;min-height:74px!important}
 .top .brand{min-width:0;gap:9px}.top .brand img{width:106px!important;max-height:48px!important}
 .top .brand-sub{font-size:8px!important}.top .brand-divider{height:26px}
 .top .nav-toggle{display:grid!important;place-items:center;order:5;flex:0 0 44px;width:44px;height:44px;margin-left:0!important;padding:0!important;color:white!important;border:1px solid #ffffff5c!important;background:#ffffff0c!important;border-radius:12px!important;z-index:105}
 .top .nav-toggle svg{display:block!important;width:22px!important;height:22px!important;stroke:currentColor!important}
 .top .header-actions{margin-left:auto!important;gap:9px!important}
 .top .header-login,.top .header-apply{display:none!important}
 .top .language-switch{font-size:11px;min-width:70px;justify-content:center}
 body.public-mode .top .main-nav{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;max-height:calc(100dvh - 75px);overflow-y:auto;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:14px 20px 24px!important;background:#092225!important;box-shadow:0 24px 46px #0004!important;z-index:99!important;border-radius:0 0 18px 18px!important}
 body.public-mode .top .main-nav.is-open{display:flex!important}
 body.public-mode .top .main-nav a{display:block!important;color:white!important;font-size:14px!important;text-transform:none!important;padding:15px 10px!important;letter-spacing:0!important;font-weight:650!important;border-bottom:1px solid #ffffff25!important}
 body.public-mode .top .main-nav .ame40-mobile-link{display:block!important}
 body.app-mode .top .main-nav{display:none!important}
 body.app-mode .shell{grid-template-columns:minmax(0,1fr)!important}
 body.app-mode .sidebar{position:fixed!important;top:0;bottom:0;left:0;z-index:115;width:min(330px,88vw);max-height:100dvh;overflow-y:auto;transform:translateX(-105%);transition:transform .25s ease;box-shadow:22px 0 48px #0003;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:4px!important;padding:28px 14px 40px!important}
 body.app-mode .sidebar.is-open{transform:translateX(0)}
 body.app-mode .sidebar .side-link{font-size:13px!important;padding:12px 16px!important;width:100%!important}
 body.app-mode .sidebar .profile-mini{width:auto!important;padding:0 4px 20px!important;margin-bottom:15px!important}
 body.app-mode .sidebar .sidebar-title{display:block!important;margin:17px 16px 8px}
 body.app-mode .sidebar .sidebar-bottom{display:block!important;width:100%!important;margin-top:auto!important}
 body.app-mode .sidebar .sidebar-bottom form{width:100%}
 body.app-mode .ame44-nav-backdrop.is-open{display:block;position:fixed;inset:0;background:rgba(0,12,13,.65);z-index:110;backdrop-filter:blur(2px)}
 body.app-mode .content{padding:26px 22px 65px!important;min-width:0}
}
@media(max-width:1050px){.ame44-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ame44-dashboard-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:850px){.ame44-auth{grid-template-columns:1fr;min-height:0;width:min(650px,calc(100% - 36px));margin:22px auto 48px}.ame44-auth-visual{min-height:260px}.ame44-visual-inner{padding:38px}.ame44-visual-inner h2{font-size:37px}.ame44-visual-foot{margin-top:25px}.ame44-auth-panel{padding:39px 34px 47px}.ame44-dashboard-symbol{display:none}}
@media(max-width:560px){.ame44-auth{width:calc(100% - 24px);margin:14px auto 34px;border-radius:12px}.ame44-auth-visual{min-height:205px}.ame44-visual-inner{padding:28px 24px}.ame44-visual-inner h2{font-size:clamp(29px,9vw,39px)}.ame44-visual-inner p{font-size:12px;margin-bottom:0}.ame44-visual-foot{display:none}.ame44-auth-panel{padding:31px 23px 40px}.ame44-auth-panel h1{font-size:37px}.ame44-auth-description{margin-bottom:25px}.ame44-auth-submit{width:100%;min-height:53px}.ame44-dashboard-intro{padding:26px 22px;min-height:0}.ame44-dashboard-intro h2{font-size:30px}.ame44-dashboard-stats{gap:9px}.ame44-metric{padding:14px;min-height:117px}.ame44-metric strong{font-size:29px;margin-top:13px}.ame44-metric-top{font-size:10px}.ame44-dashboard-panel{padding:19px}.ame44-panel-heading h3{font-size:17px}.ame44-panel-heading>a{white-space:normal;font-size:10px}.top .brand-sub,.top .brand-divider{display:none!important}.top .nav-container{width:calc(100% - 26px)!important}.top .language-switch{padding:7px 8px!important}}
@media(prefers-reduced-motion:reduce){body.app-mode .sidebar,.ame44-auth-submit{transition:none!important}}

/* 4.4.1: Website CTA uses one solid AME gold, not the metallic gradient. */
body.public-mode .top a.header-apply,
body.app-mode .top a.header-apply,
body.public-mode .top a.header-apply:link,
body.public-mode .top a.header-apply:visited,
body.app-mode .top a.header-apply:link,
body.app-mode .top a.header-apply:visited {
  background: #D4AA45 !important;
  background-image: none !important;
  background-color: #D4AA45 !important;
  background-size: auto !important;
  border: 1px solid #D4AA45 !important;
  color: #0B2526 !important;
  -webkit-text-fill-color: #0B2526 !important;
  text-shadow: none !important;
}
body.public-mode .top a.header-apply .ame43-icon,
body.app-mode .top a.header-apply .ame43-icon {
  color: #0B2526 !important;
  stroke: currentColor !important;
}
body.public-mode .top a.header-apply:hover,
body.public-mode .top a.header-apply:focus-visible,
body.app-mode .top a.header-apply:hover,
body.app-mode .top a.header-apply:focus-visible {
  background: #D4AA45 !important;
  background-image: none !important;
  border-color: #D4AA45 !important;
  color: #0B2526 !important;
  -webkit-text-fill-color: #0B2526 !important;
}
