/* Shared account menu: loaded on every authenticated PHP page. */
.topbar{overflow:visible!important;isolation:isolate;z-index:1000}
.topbar .header-right{display:flex;align-items:center;gap:18px;min-width:0;height:100%;margin-left:auto}
.tml-account-menu{position:relative!important;flex:0 1 auto;z-index:1001;color:#fff;min-width:0;margin:0;padding:0;border:0;background:none}
.tml-account-menu>summary{list-style:none!important;display:flex!important;align-items:center;gap:10px;cursor:pointer;padding:5px 9px;border:1px solid transparent;border-radius:9px;min-height:46px;user-select:none;white-space:nowrap}
.tml-account-menu>summary::-webkit-details-marker{display:none}
.tml-account-menu>summary::marker{content:""}
.tml-account-menu>summary:hover,.tml-account-menu[open]>summary{background:#ffffff12;border-color:#ffffff20}
.tml-account-menu .tml-account-avatar{position:static!important;display:grid!important;place-items:center!important;flex:none;width:34px!important;height:34px!important;min-width:34px;border-radius:50%;margin:0!important;padding:0!important;background:#c3e9dd;color:#16405e;font-size:12px;font-weight:700;line-height:1}
.tml-account-identity{display:flex;flex-direction:column;min-width:0;line-height:1.5}
.tml-account-identity strong{font-size:12px;color:#fff;font-weight:650;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tml-account-identity small{font-size:11px;color:#b5c8df;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tml-account-menu>summary>i{font-size:10px;color:#b7cde2}
.tml-account-menu:not([open])>.tml-account-panel{display:none!important}
.tml-account-menu[open]>.tml-account-panel{display:block!important}
.tml-account-panel{position:absolute!important;inset:auto 0 auto auto;top:calc(100% + 10px)!important;width:248px;max-width:calc(100vw - 24px);background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 12px 36px #0b24452b;padding:7px;color:#213a55;z-index:1002}
.tml-account-panel-title{font-size:11px;font-weight:650;color:#8a97aa;padding:10px 12px;border-bottom:1px solid #edf1f5;margin-bottom:5px}
.tml-account-panel a,.tml-account-panel button{box-sizing:border-box;display:flex!important;align-items:center;gap:10px;margin:0!important;padding:11px 12px!important;border:0!important;background:transparent;color:#284461;font-family:inherit;font-size:13px;font-weight:550;line-height:1.5;text-decoration:none;border-radius:6px;width:100%;text-align:left;cursor:pointer;white-space:nowrap}
.tml-account-panel a:hover,.tml-account-panel button:hover,.tml-account-panel a:focus-visible,.tml-account-panel button:focus-visible{background:#edf3f9;color:#13365b}
.tml-account-panel form{margin:4px 0 0!important;border-top:1px solid #eef1f5;padding:4px 0 0!important;display:block!important}
.tml-account-panel form button{color:#a04444}
@media(max-width:700px){.tml-account-identity{display:none}.topbar .header-right{gap:8px}.tml-account-menu>summary{padding:4px}.tml-account-panel{right:0}}
