.header-controls .account-access{padding:.25rem .6rem .25rem .3rem;gap:.5rem;border:1px solid var(--border);background:var(--white);color:var(--ink);font-size:.82rem;letter-spacing:0;box-shadow:none}
.header-controls .account-access:hover{background:var(--bg);border-color:var(--blue)}
.account-avatar{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#e6f2ff;color:#076fd1;font-size:.7rem;font-weight:750}
.account-access .account-chevron{width:14px;height:14px}.account-access [data-account-label]{max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-access.is-authenticated .account-avatar{background:#d9f2e9;color:#15694d}
.account-dialog{width:min(520px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);margin:auto;padding:0;border:1px solid var(--border);border-radius:1.4rem;background:var(--white);color:var(--ink);overflow:auto;box-shadow:0 25px 100px #00152e40;font-size:16px;overscroll-behavior:contain}
.account-dialog::backdrop{background:#00162c99;backdrop-filter:blur(4px)}
.account-dialog [hidden]{display:none!important}.account-dialog button,.account-dialog input{font:inherit}
.account-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--border)}
.account-dialog-header img{display:block;width:110px;height:55px;object-fit:contain}
.account-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.account-dialog-body{padding:1.5rem 1.8rem 1.8rem}.account-eyebrow{margin:0 0 .5rem;color:var(--blue);font-size:.72rem;font-weight:750;letter-spacing:.12em}
.account-dialog h2{margin:0 0 .7rem;font-size:1.9rem;line-height:1.15;letter-spacing:-.035em}.account-intro{margin:0 0 1.3rem;color:var(--muted);font-size:.9rem;line-height:1.65}
.account-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;padding:.3rem;border:1px solid var(--border);border-radius:.8rem;background:var(--bg)}
.account-tabs button{flex:1;padding:.65rem .4rem;border:0;border-radius:.55rem;background:transparent;color:var(--muted);font-size:.9rem;font-weight:650;cursor:pointer}
.account-tabs button[aria-pressed=true]{background:var(--white);color:var(--blue);box-shadow:0 2px 6px #00234d0c}
.account-dialog label{display:block;margin:0 0 1.1rem;font-size:.85rem;font-weight:600;color:var(--ink)}
.account-name-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.account-input{display:block;width:100%;min-width:0;min-height:48px;margin:.4rem 0 0;padding:.7rem .85rem;border:1px solid var(--border);border-radius:.65rem;background:var(--bg);color:var(--ink);font-size:16px!important}
.account-password{display:flex;align-items:center;gap:.15rem;min-height:48px;margin-top:.4rem;border:1px solid var(--border);border-radius:.65rem;background:var(--bg)}
.account-password .account-input{flex:1;min-height:48px;margin:0;border:0;background:transparent;box-shadow:none;outline:none;border-radius:inherit}
.account-password:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.account-eye{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:2px;padding:0;border:0;border-radius:.5rem;background:transparent;color:var(--muted);cursor:pointer;transform:none}
.account-eye:hover{background:#076fd110;color:var(--blue)}.account-eye svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.account-dialog .account-consent{display:flex;align-items:flex-start;gap:.65rem;font-size:.8rem;font-weight:400;line-height:1.6}.account-consent input{flex:0 0 18px;width:18px;height:18px;margin:.25rem 0 0;accent-color:#076fd1}
.account-hint{margin:.75rem 0 1.15rem;color:var(--muted);font-size:.78rem;line-height:1.65}
.account-submit{width:100%;min-height:48px;padding:.75rem 1rem;border:1px solid #076fd1;border-radius:.7rem;background:#076fd1;color:#fff;font-weight:650!important;cursor:pointer}
.account-submit:hover{background:#0556a4}.account-submit:disabled,.account-profile-actions button:disabled{opacity:.6;cursor:wait}
.account-recovery{display:block;margin:.9rem auto 0;padding:.4rem;border:0;background:transparent;color:var(--blue);font-size:.8rem!important;text-decoration:underline;cursor:pointer}
.account-message{padding:.85rem 1rem;margin:0 0 1.2rem;border:1px solid var(--border);border-radius:.65rem;background:var(--bg);color:var(--ink);font-size:.85rem;line-height:1.6;overflow-wrap:anywhere}
.account-message.is-error{border-color:#bc5b65;color:#9e2839;background:#fff2f3}
.account-profile{text-align:center}.account-profile-avatar{display:grid;place-items:center;width:64px;height:64px;margin:1rem auto;border-radius:50%;background:#e6f2ff;color:#076fd1;font-size:1.1rem;font-weight:700}
.account-profile h3{font-size:1.3rem;margin:0 0 .5rem;overflow-wrap:anywhere}.account-profile #account-email{color:var(--muted);font-size:.85rem;overflow-wrap:anywhere}
.account-session-status{margin:1rem 0;color:#17704f;font-size:.85rem;font-weight:600}
.account-profile-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:1.5rem 0}
.account-profile-actions button{min-height:44px;padding:.6rem 1rem;border:1px solid var(--border);border-radius:.7rem;background:var(--bg);color:var(--ink);font-size:.85rem;cursor:pointer}
.account-profile-actions #account-logout{color:var(--muted)}.account-support{display:block;margin:1.5rem 0 0;padding-top:1.1rem;border-top:1px solid var(--border);text-align:center;color:var(--muted);font-size:.8rem}
[data-theme=dark] .header-controls .account-access{background:var(--white);color:var(--ink);border-color:var(--border)}
[data-theme=dark] .account-avatar,[data-theme=dark] .account-profile-avatar{background:#153e65;color:#8bcbff}
[data-theme=dark] .account-access.is-authenticated .account-avatar{background:#164535;color:#a0e7c6}
[data-theme=dark] .account-session-status{color:#84d9ae}[data-theme=dark] .account-message.is-error{background:#402437;color:#ffb9c0;border-color:#8a5364}
@media(max-width:800px){.header-controls .account-access{justify-self:end;min-width:150px}.account-access [data-account-label]{max-width:120px}}
@media(max-width:560px){.account-dialog-body{padding:1.3rem}.account-dialog-header{padding:.7rem 1.3rem}.account-name-row{grid-template-columns:1fr;gap:0}.account-dialog h2{font-size:1.7rem}.account-dialog{max-height:calc(100dvh - 1rem)}.account-profile-actions{gap:12px}}
.account-licenses{border-top:1px solid var(--border);margin-top:1.5rem;padding-top:1.5rem}.account-licenses h3{font-size:1.2rem}.account-license-list{display:grid;gap:12px}.account-license-list article{border:1px solid var(--border);border-radius:12px;padding:1rem;background:var(--bg)}.account-license-list p{margin:.45rem 0;color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}.account-licenses>p{font-size:.88rem;color:var(--muted);line-height:1.7}

.account-marketing{margin:1.5rem 0;padding:1rem;border:1px solid var(--border);border-radius:12px;text-align:left}.account-marketing h4{margin:0 0 .6rem}.account-marketing p{font-size:.8rem}.account-marketing button{min-height:44px;border:1px solid var(--border);border-radius:8px;padding:.6rem 1rem;background:var(--bg);color:var(--ink);cursor:pointer}.account-marketing .account-consent{line-height:1.6}
