/* Scope everything to the authenticated profile; preserve original login. */
.modal-wrap .account-password-field{position:relative;display:block;width:100%;min-width:0}
.modal-wrap .account-password-field input{width:100%;padding-right:52px!important}
.modal-wrap .account-password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:#426f89;cursor:pointer}
.modal-wrap .account-password-toggle svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.modal-wrap .account-password-toggle .password-eye-slash{display:none}
.modal-wrap .account-password-toggle[aria-pressed="true"] .password-eye-slash{display:block}
.modal-wrap .account-password-toggle:hover{background:#eaf4f8}
.modal-wrap .account-password-toggle:focus-visible{outline:2px solid #007cc0;outline-offset:-2px}
.modal-wrap#accountModal .account-modal.is-profile{max-height:calc(100dvh - 48px)}
.modal-wrap#accountModal .account-modal.is-profile>.modal-close{position:sticky;top:0;float:right;right:auto;z-index:5;margin:-12px -12px 0 -24px;background:#f1f6f8}
#accountModal .is-profile .account-profile-tabs{display:flex;flex-wrap:nowrap;gap:4px;padding:5px;overflow-x:auto}
#accountModal .is-profile .account-profile-tabs button{flex:1 0 auto;min-width:0;padding:10px 12px;font-size:12px;white-space:nowrap}
#accountModal .is-profile .ah-profile{padding:22px;border:1px solid #d3e5ed;background:linear-gradient(125deg,#f5fbff,#fff 75%);border-radius:18px}
.ah-profile .ah-heading>span{color:#178263;font-size:10px;letter-spacing:.12em;font-weight:800}
#accountModal .ah-profile .ah-heading h3{font-size:25px;line-height:1.25;color:#0b3b5b;margin:8px 0}
#accountModal .ah-profile .ah-heading p{font-size:13px;line-height:1.6;color:#647e90;margin:0 0 20px}
.ah-profile .ah-portals{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ah-profile .ah-portals a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-radius:14px;border:1px solid #c6dfec;background:#eef8fe;color:#0b3b5b;text-decoration:none;text-align:left}
.ah-profile .ah-portals a:first-child{background:#f2faec;border-color:#d1e6c6}
.ah-profile .ah-portals strong{display:block;font-size:14px;line-height:1.4}
.ah-profile .ah-portals small{display:block;color:#5d7c8c;font-size:12px;margin-top:6px;line-height:1.5}
.ah-profile .ah-attention{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:1px solid #0b3b5b;background:#0b3b5b;color:#fff;border-radius:14px;margin:14px 0 20px;padding:17px 18px;text-align:left;font:inherit;cursor:pointer}
.ah-profile .ah-attention strong{display:block;font-size:14px}
.ah-profile .ah-attention small{display:block;font-size:12px;line-height:1.5;color:#c1dce9;margin-top:5px}
.ah-profile .ah-attention>span:last-child{color:#89d443;font-size:22px}
.ah-profile .ah-tool-groups{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.ah-profile .ah-tools{border:1px solid #d5e4ed;border-radius:13px;background:white;overflow:hidden}
.ah-profile .ah-tools summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;font-size:13px;font-weight:700;color:#0b3b5b;cursor:pointer;list-style:none;text-align:left}
.ah-profile .ah-tools summary::-webkit-details-marker{display:none}
.ah-profile .ah-tools summary small{display:block;font-size:11px;font-weight:400;color:#698392;margin-top:4px;line-height:1.5}
.ah-profile .ah-chevron{transition:transform .2s;font-size:20px}
.ah-profile .ah-tools[open] .ah-chevron{transform:rotate(180deg)}
.ah-profile .ah-links{display:grid;gap:6px;padding:0 12px 12px}
.ah-profile .ah-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f7fbfd;border:1px solid #e1eaf0;border-radius:9px;padding:10px;text-decoration:none;text-align:left;color:#0b3b5b;font-size:12px;line-height:1.5}
.ah-profile .ah-links strong{font-weight:600}
.ah-profile .ah-office-login{padding:0 12px 10px}
.ah-profile .ah-admin{width:100%;border:0;padding:12px;background:#eaf6e2;color:#197653;border-radius:9px;font:inherit;font-weight:700;font-size:12px;cursor:pointer}
.ah-profile .ah-pending{display:grid;gap:8px;padding:0 16px 14px;font-size:11px;color:#526f84}
.ah-profile .ah-pending span{display:flex;justify-content:space-between;gap:8px;text-align:left}
.ah-profile .ah-pending small{font-size:10px;color:#748995}
.ah-profile .ah-portals a:hover,.ah-profile .ah-links a:hover{border-color:#89d443;background:#f2faeb}
.ah-profile a:focus-visible,.ah-profile button:focus-visible,.ah-profile summary:focus-visible{outline:3px solid #007cc0;outline-offset:2px}
@media(max-width:600px){#accountModal .is-profile .ah-profile{padding:18px 14px}.ah-profile .ah-portals,.ah-profile .ah-tool-groups{grid-template-columns:1fr}.ah-profile .ah-portals a{padding:15px}.ah-profile .ah-attention{padding:15px}#accountModal .ah-profile .ah-heading h3{font-size:23px}}

/* Customer workspace: colored status cards and a coherent visual directory. */
.modal-wrap#accountModal .account-modal.is-profile{width:min(960px,calc(100vw - 32px));padding:28px 30px 22px;background:#f7fbfe;border-top:4px solid #89d443;scrollbar-width:thin;scrollbar-color:#aacbd8 transparent}
.modal-wrap#accountModal .is-profile #accountTitle{font-size:25px;color:#0b3b5b;letter-spacing:-.035em;margin:0 0 20px}
.modal-wrap#accountModal .is-profile .account-profile-card{border:1px solid #c8e0ed;border-radius:20px;padding:22px;background:radial-gradient(circle at 90% 10%,#b5eaf05c,transparent 50%),linear-gradient(125deg,#e8f8dc,#eff9ff);box-shadow:0 8px 22px #0b3b5b06}
.modal-wrap#accountModal .is-profile .account-avatar{background:linear-gradient(145deg,#007cc0,#0b3b5b);color:#fff;border:3px solid #fff;box-shadow:0 5px 16px #007cc025}
.modal-wrap#accountModal .is-profile .account-avatar>span{color:#fff}
.modal-wrap#accountModal .is-profile .account-profile-kicker{color:#168460;letter-spacing:.12em;font-size:10px}
.modal-wrap#accountModal .is-profile .account-profile-main h3{font-size:21px;color:#0b3b5b}
.modal-wrap#accountModal .is-profile .account-edit-toggle{border:1px solid #b6d5a1;background:#fff;color:#18764d;box-shadow:0 3px 10px #1a795510;font-weight:700;min-height:40px}
.modal-wrap#accountModal .is-profile .account-portal-summary{gap:12px;margin:16px 0}
.modal-wrap#accountModal .is-profile .account-portal-summary>article{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:8px 9px;padding:16px;min-height:135px;border:1px solid #c9e5d0;border-radius:16px;background:linear-gradient(130deg,#eaf8df,#f7fcf3);box-shadow:0 5px 15px #0b3b5b04}
.modal-wrap#accountModal .is-profile .account-portal-summary>article:nth-child(2){background:linear-gradient(130deg,#e4f5ff,#f8fcff);border-color:#c1dfef}
.modal-wrap#accountModal .is-profile .account-portal-summary>article:nth-child(3){background:linear-gradient(130deg,#fff1db,#fffaf3);border-color:#f1ddbc}
.modal-wrap#accountModal .is-profile .account-portal-summary>article:nth-child(4){background:linear-gradient(130deg,#eeeaff,#fbfaff);border-color:#dad1f0}
.modal-wrap#accountModal .is-profile .account-portal-summary>article>span{font-size:11px;font-weight:700;color:#3c6178;line-height:1.45}
.modal-wrap#accountModal .is-profile .account-portal-summary>article>strong{grid-column:1/-1;font-size:27px;line-height:1.15;color:#0b3b5b;font-weight:800;margin:0}
.modal-wrap#accountModal .is-profile .account-portal-summary>article:nth-child(2)>strong{font-size:18px}
.modal-wrap#accountModal .is-profile .account-portal-summary>article>small{grid-column:1/-1;font-size:11px;line-height:1.5;color:#668293}
.is-profile .ah-stat-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#ffffffb8;color:#16815c}
.is-profile .account-portal-summary>article:nth-child(2) .ah-stat-icon{color:#007cc0}
.is-profile .account-portal-summary>article:nth-child(3) .ah-stat-icon{color:#bd7b17}
.is-profile .account-portal-summary>article:nth-child(4) .ah-stat-icon{color:#7961b3}
.is-profile .ah-stat-icon svg,.ah-profile svg,#profileSpaceTab svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.modal-wrap#accountModal .is-profile .account-profile-tabs{border:1px solid #d8e8f0;background:#eaf3f8;border-radius:14px;gap:6px;padding:6px;margin:18px 0}
.modal-wrap#accountModal .is-profile .account-profile-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px 10px;font-size:11px;transition:background .2s,color .2s,box-shadow .2s}
.modal-wrap#accountModal .is-profile .account-profile-tabs button.active{background:#0b3b5b;color:#fff;box-shadow:0 4px 12px #0b3b5b22}
.modal-wrap#accountModal .is-profile .account-profile-tabs button.active svg{color:#a4e461}
.modal-wrap#accountModal .is-profile .account-profile-tabs svg{width:17px;height:17px;flex-shrink:0}
.modal-wrap#accountModal .is-profile .account-profile-panel{background:#fff;border:1px solid #d5e6ef;border-radius:19px;padding:23px}
.modal-wrap#accountModal .is-profile .ah-profile{padding:0;overflow:hidden;background:#fff}
.ah-profile .ah-heading{position:relative;overflow:hidden;padding:23px 25px;background:linear-gradient(110deg,#0b3b5b,#08779d);border-bottom:3px solid #89d443;min-height:133px}
.ah-profile .ah-heading>span{color:#b6ea73}
.modal-wrap#accountModal .ah-profile .ah-heading h3{color:#fff;font-size:28px;margin:8px 0}
.modal-wrap#accountModal .ah-profile .ah-heading p{color:#d5edf5;max-width:70%;font-size:12px;margin:0;line-height:1.6}
.ah-heading-art{position:absolute;right:20px;top:20px;display:flex;gap:8px;transform:rotate(-8deg)}
.ah-heading-art i{display:grid;place-items:center;width:47px;height:65px;border:1px solid #ffffff32;border-radius:13px;background:#ffffff12;color:#b3e96b}
.ah-heading-art i:nth-child(2){margin-top:16px;color:#8ee1f2}
.ah-heading-art svg{width:26px;height:26px}
.ah-profile .ah-portals{margin:20px 22px 0;gap:14px}
.ah-profile .ah-portals a{position:relative;min-height:106px;padding:19px 16px;gap:12px;transition:transform .2s,box-shadow .2s,border-color .2s}
.ah-profile .ah-portals a:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0b3b5b12}
.ah-profile .ah-link-icon{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;background:#fff;border:1px solid #d4e9cd;border-radius:12px;color:#16815c}
.ah-profile .ah-portals a:nth-child(2) .ah-link-icon{color:#007cc0;border-color:#c9e4f3}
.ah-profile .ah-portals strong{font-size:13px}
.ah-profile .ah-portals small{font-size:11px}
.ah-profile .ah-arrow{margin-left:auto;color:#178361}
.ah-profile .ah-attention{margin:16px 22px 20px;width:calc(100% - 44px);background:linear-gradient(120deg,#0b3b5b,#006f9c);border:0;transition:transform .2s,box-shadow .2s}
.ah-profile .ah-attention:hover{transform:translateY(-2px);box-shadow:0 7px 19px #0b3b5b22}
.ah-profile .ah-attention-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;background:#ffffff15;border:1px solid #ffffff28;border-radius:12px;color:#a9e561}
.ah-profile .ah-attention>span:last-child{margin-left:auto}
.ah-profile .ah-tool-groups{margin:0 22px 22px}
.ah-profile .ah-team{background:#f5fbf1;border-color:#d3e7c9}
.ah-profile .ah-office{background:#f2f8ff;border-color:#cddff1}
.ah-profile .ah-group-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;background:#fff;border-radius:10px;color:#19865c}
.ah-profile .ah-office .ah-group-icon{color:#007cc0}
.ah-profile .ah-chevron{margin-left:auto}
.ah-profile .ah-links a{background:#fff;gap:8px}
.ah-profile .ah-links .ah-link-icon{flex-basis:28px;width:28px;height:28px;border:0;background:#eef7fb;border-radius:8px;color:#4a829f}
.ah-profile .ah-links .ah-link-icon svg{width:16px;height:16px}
.modal-wrap#accountModal .is-profile .account-personal-details>div{padding:15px;border:1px solid #dceaf0;border-radius:12px;background:#f6fbfe}
.modal-wrap#accountModal .is-profile .account-personal-details>div>span{color:#5a7b91;font-size:11px}
.modal-wrap#accountModal .is-profile .account-personal-details>div>strong{color:#0b3b5b;font-size:13px}
.modal-wrap#accountModal .is-profile .account-profile-editor input{border-radius:10px;background:#f7fbfd;border:1px solid #cbdfea;min-height:44px;font-size:15px}
.modal-wrap#accountModal .is-profile :is(.account-portal-empty,.account-orders-empty,.sc-empty){border:1px dashed #b7d7e5;border-radius:16px;background:radial-gradient(circle at 50% 0,#e7f6df,transparent 70%),#f7fbfd;padding:26px 20px;color:#567589}
.modal-wrap#accountModal .is-profile :is(.account-portal-empty,.sc-empty)>svg{color:#16835c;width:35px;height:35px;padding:6px;border-radius:12px;background:#e3f4d8}
.modal-wrap#accountModal .is-profile .sc-section-nav{gap:8px}
.modal-wrap#accountModal .is-profile .sc-section-nav button{border-radius:11px;background:#eff7fc;border-color:#cfe3ee;transition:background .2s}
.modal-wrap#accountModal .is-profile .sc-section-nav button[aria-pressed=true]{background:#0b3b5b;color:#fff;border-color:#0b3b5b}
.modal-wrap#accountModal .is-profile .sc-button{border-radius:24px;background:#89d443;color:#0b3b5b;font-weight:700}
.modal-wrap#accountModal .is-profile .sc-secondary{background:#eff7fc;color:#0b3b5b;border:1px solid #c8e0ed}
.modal-wrap#accountModal .is-profile .account-profile-footer{margin-top:18px;padding-top:17px;border-color:#d5e5ed}
.modal-wrap#accountModal .is-profile .account-logout{background:#fff;border-color:#d1e3eb;color:#42677e;font-size:12px}
@media(max-width:600px){.modal-wrap#accountModal .account-modal.is-profile{width:calc(100vw - 20px);padding:23px 16px;max-height:calc(100dvh - 20px);border-radius:22px}.modal-wrap#accountModal .is-profile .account-profile-card{padding:16px}.modal-wrap#accountModal .is-profile .account-portal-summary{grid-template-columns:1fr 1fr;gap:9px}.modal-wrap#accountModal .is-profile .account-portal-summary>article{padding:12px;min-height:126px}.modal-wrap#accountModal .is-profile .account-profile-tabs{padding:5px;gap:4px}.modal-wrap#accountModal .is-profile .account-profile-tabs button{font-size:11px;padding:10px}.modal-wrap#accountModal .is-profile .account-profile-panel{padding:17px}.modal-wrap#accountModal .is-profile .ah-profile{padding:0}.ah-profile .ah-heading{padding:21px 18px;min-height:143px}.modal-wrap#accountModal .ah-profile .ah-heading p{max-width:78%}.ah-heading-art{right:-22px;top:23px;opacity:.35}.ah-heading-art i{width:35px;height:55px}.ah-profile .ah-portals{margin:16px 14px 0;gap:10px}.ah-profile .ah-portals a{padding:16px 13px;min-height:92px}.ah-profile .ah-attention{margin:12px 14px 16px;width:calc(100% - 28px);gap:10px}.ah-profile .ah-attention strong{font-size:13px}.ah-profile .ah-attention small{font-size:11px}.ah-profile .ah-tool-groups{margin:0 14px 16px}.ah-profile .ah-tools summary{gap:9px;padding:13px}}
@media(prefers-reduced-motion:reduce){.ah-profile a,.ah-profile button,.ah-profile .ah-chevron,.is-profile .account-profile-tabs button{transition:none!important}}
@keyframes ah-reveal{from{opacity:.75;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){.ah-profile .ah-tools[open] .ah-links{animation:ah-reveal .22s ease-out}.modal-wrap#accountModal .is-profile .account-profile-panel:not([hidden]){animation:ah-reveal .2s ease-out}}
/* Readable profile navigation at desktop and mobile sizes. */
.modal-wrap#accountModal .is-profile .account-profile-tabs{flex-wrap:wrap;gap:8px;overflow:visible}
.modal-wrap#accountModal .is-profile .account-profile-tabs button{flex:1 1 150px;min-height:52px;padding:12px 14px;font-size:15px;font-weight:700;line-height:1.4;white-space:normal;color:#375d75}
.modal-wrap#accountModal .is-profile .account-profile-tabs button.active{color:#fff}
.modal-wrap#accountModal .is-profile .account-profile-tabs svg{width:21px;height:21px}
.modal-wrap#accountModal .is-profile .sc-section-nav button{font-size:15px;min-height:62px;line-height:1.4}
.modal-wrap#accountModal .is-profile .account-edit-toggle,.modal-wrap#accountModal .is-profile .account-logout,.modal-wrap#accountModal .is-profile .sc-button,.modal-wrap#accountModal .is-profile .sc-secondary{font-size:15px;min-height:46px}
@media(max-width:600px){.modal-wrap#accountModal .is-profile .account-profile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.modal-wrap#accountModal .is-profile .account-profile-tabs button{padding:12px 9px;font-size:14px;min-height:56px;gap:7px}.modal-wrap#accountModal .is-profile .account-profile-tabs button:last-child:nth-child(odd){grid-column:1/-1}.modal-wrap#accountModal .is-profile .sc-section-nav button{font-size:14px}}
