/* Header account menu (T-nav): avatar + dropdown, details/summary based.
   Lives in its own file because /static is served immutable for a year —
   main.css edits would never reach browsers. */

.nav-user { position: relative; }

.nav-user > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
}
.nav-user > summary::-webkit-details-marker { display: none; }
.nav-user > summary::marker { content: ""; }

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #1c1917;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    user-select: none;
    border: 1px solid #1c1917;
}
.nav-avatar.is-empty { background: #f5f5f4; color: #57534e; border-color: #e7e5e4; }
.nav-user > summary:hover .nav-avatar { box-shadow: 0 0 0 3px rgba(28, 25, 23, .10); }
.nav-user[open] .nav-avatar { box-shadow: 0 0 0 3px rgba(28, 25, 23, .16); }

.nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 224px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(28, 25, 23, .14);
    padding: 6px;
    z-index: 80;
}

.nav-menu-head {
    padding: 8px 10px 7px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f5f5f4;
    font-size: 12px;
    color: #78716c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-menu-head strong { display: block; color: #1c1917; font-size: 13px; font-weight: 600; }

.nav-menu a,
.nav-menu button.nav-menu-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    color: #1c1917;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-menu a:hover,
.nav-menu button.nav-menu-btn:hover { background: #f5f5f4; }

.nav-menu .nav-sep { height: 1px; background: #f5f5f4; margin: 6px 4px; }
.nav-menu form { margin: 0; }
