/* Reference-inspired navigation, scoped to the public header. */
.header{background:var(--panel)}.header .wrap{width:min(1760px,calc(100% - 64px))}.header .nav{height:92px;min-height:0;padding:0;gap:28px;flex-wrap:nowrap}.header .brand{font-size:32px;gap:12px}.header .brand-mark{width:48px;height:48px}.header .navlinks{margin:0;gap:26px;flex-basis:auto;order:0;flex-shrink:0}.header .navlinks a{font-size:14px;padding:33px 0;white-space:nowrap}.header .nav-search{display:flex;margin-left:auto;max-width:360px;min-width:150px;flex:1;order:0}.header .nav-search input{min-height:48px;border-radius:8px;background:var(--panel);font-size:14px}.header .nav-search kbd{font-size:12px}.header .nav-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;flex-basis:auto;margin-left:18px;flex-shrink:0;min-width:0}.header .theme-control{padding:0;margin:0;border-radius:8px;background:var(--panel);width:48px;height:48px;box-sizing:border-box}.header .theme-control>summary{width:46px;height:46px;padding:0;display:flex;align-items:center;justify-content:center}.header .theme-control .ui-icon{width:24px;height:24px}.header .theme-control:hover{border-color:var(--gold)}.header .nav-profile{margin:0;padding:0;display:flex}.header .profile-menu{position:relative;max-width:100%}.header .profile-menu>summary,.header .profile-signin{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:48px;max-width:100%;box-sizing:border-box;padding:0 12px 0 4px;border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:400;text-decoration:none;overflow:visible}.header .profile-menu>summary::-webkit-details-marker{display:none}.header .profile-menu>summary:hover,.header .profile-signin:hover{color:var(--gold)}.header .profile-avatar{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#5865f2;border-radius:50%;flex-shrink:0}.header .profile-avatar img{width:22px;height:18px;object-fit:contain}.header .profile-greeting{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}.header .profile-username{font-weight:650;color:var(--text);display:inline-block;max-width:115px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.header .profile-menu>summary>.ui-icon{width:15px;height:15px;flex-shrink:0}.header .profile-dropdown{position:absolute;right:0;top:calc(100% + 12px);z-index:50;min-width:210px;background:var(--panel);border:1px solid var(--border);border-radius:9px;padding:7px;box-shadow:0 10px 28px #0000001a}.header .profile-dropdown a{display:block;padding:10px 12px;font-size:13px;color:var(--text);border-radius:5px;white-space:nowrap}.header .profile-dropdown a:hover{background:var(--gold-soft);color:var(--gold)}.header .nav-controls>.button,.header .nav-signout .button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:11px 17px;border-radius:8px;font-size:14px;font-weight:650;white-space:nowrap;margin:0;box-sizing:border-box;transition:background .15s,border-color .15s,color .15s}.header .nav-controls>.nav-add{background:#995c17;color:#fff;border:1px solid #a57028}.header .nav-controls>.nav-add:hover{background:#895213;border-color:#895213}.header .nav-controls .nav-add-label{display:inline}.header .nav-signout{margin:0;flex-shrink:0}.header .nav-signout .button{background:var(--red-soft);color:var(--red);border-color:var(--red)}.header .nav-signout .button:hover,.header .nav-signout .button:focus-visible{background:var(--red);border-color:var(--red);color:var(--panel)}.header .nav-controls .button>.ui-icon{width:20px;height:20px;flex-shrink:0}.header .nav-controls :focus-visible{outline:3px solid var(--gold);outline-offset:4px}
@media(max-width:1700px){.header .nav{gap:18px}.header .navlinks{gap:18px}.header .brand{font-size:28px}.header .brand-mark{width:42px;height:42px}.header .nav-controls{gap:10px;margin-left:0}.header .nav-controls>.button,.header .nav-signout .button{padding:10px 12px;font-size:13px}.header .profile-menu>summary{font-size:13px;gap:8px}.header .profile-username{max-width:100px}}
@media(max-width:1500px){.header .nav{flex-wrap:wrap;height:auto;padding:14px 0;gap:14px 24px}.header .nav-controls{margin-left:auto}.header .navlinks{order:3;flex:1 1 calc(100% - 384px);justify-content:flex-start}.header .navlinks a{padding:8px 0}.header .nav-search{order:4;flex:0 1 360px;max-width:360px;margin:0}}
@media(max-width:760px){.header .wrap{width:calc(100% - 28px)}.header .nav{gap:14px}.header .brand{font-size:27px}.header .nav-controls{flex-basis:100%;flex-wrap:wrap;justify-content:flex-start;gap:8px}.header .nav-controls:has(.nav-signout) .nav-profile{flex:1 1 calc(100% - 60px)}.header .nav-controls>.nav-add,.header .nav-controls>.nav-signout{flex:1 1 auto}.header .nav-signout .button{width:100%}.header .nav-controls>.button,.header .nav-signout .button{min-height:44px;padding:10px;font-size:12px;gap:7px}.header .nav-controls .button>.ui-icon{width:17px;height:17px}.header .navlinks{order:3;flex-basis:100%;gap:12px;justify-content:space-between}.header .navlinks a{font-size:11px;padding:6px 0}.header .nav-search{order:4;flex-basis:100%;max-width:none}.header .profile-dropdown{left:0;right:auto}.header .profile-menu>summary{padding-right:0}.header .profile-username{max-width:150px}}
@media(prefers-reduced-motion:reduce){.header .nav-controls .button{transition:none}}

.header .nav-discord{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#5865f2;border:1px solid #5865f2;border-radius:50%;flex-shrink:0}.header .nav-discord:hover{background:#4752c4}.header .nav-discord img{width:22px;height:18px}.header .profile-menu>summary{padding-left:0}.header .theme-cycle{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);flex-shrink:0;cursor:pointer}.header .theme-cycle:hover{border-color:var(--gold);color:var(--gold)}.theme-cycle .ui-icon{width:24px;height:24px}.theme-cycle>span{display:none}.theme-cycle[data-preference=light] .theme-cycle-light,.theme-cycle[data-preference=dark] .theme-cycle-dark,.theme-cycle[data-preference=system] .theme-cycle-system,.theme-cycle:not([data-preference]) .theme-cycle-system{display:flex}html:not(.enhanced) .theme-cycle{display:none}
@media(max-width:760px){.header .nav-controls:has(.nav-signout) .nav-profile{flex:1 1 calc(100% - 110px)}.header .theme-cycle{width:42px;height:42px}.header .nav-discord{width:38px;height:38px}}
