/* Standard site header. Editor toolbars and ticket-machine surfaces are separate. */
body>.tf-site-header.nav{display:flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;gap:24px;min-height:82px;height:auto;margin:0;padding:14px max(24px,calc((100vw - 1280px)/2));background:var(--site-surface);color:var(--site-fg);border:0;border-bottom:1px solid var(--site-line);box-shadow:none;position:relative;z-index:50;font:500 14px/1.45 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.tf-site-header.nav .brand-link{display:flex;align-items:center;gap:11px;flex:none;margin:0;max-width:none;text-decoration:none}.tf-site-header.nav .brand-link img{width:36px;height:36px;object-fit:contain;padding:0;border:0;border-radius:0}.tf-site-header.nav .brand-name{font-size:19px;font-weight:750;letter-spacing:-.7px;line-height:1.15;color:var(--site-fg)}.tf-site-header.nav .brand-name span{display:block;font-size:12px;font-weight:550;letter-spacing:1.4px;text-transform:uppercase;color:var(--site-muted)}
.tf-site-header.nav #account-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:1;min-width:0;padding:0;margin:0;border:0;flex-wrap:nowrap}.tf-site-header .nav-browse,.tf-site-header .nav-personal{display:flex;align-items:center;gap:4px}.tf-site-header .nav-personal{margin-left:auto;gap:12px}.tf-site-header .nav-browse a,.tf-site-header .nav-account-menu>a{padding:10px 11px;font-size:13px;font-weight:600;text-decoration:none;color:var(--site-fg);border-radius:5px;white-space:nowrap}.tf-site-header a[aria-current=page],.tf-site-header .nav-browse a:hover{background:var(--site-soft);box-shadow:none!important}.tf-site-header .nav-account{position:relative;border:0;margin:0;padding:0}.tf-site-header .nav-account>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:6px;border-radius:5px;min-height:42px;color:var(--site-fg)}.tf-site-header summary::-webkit-details-marker{display:none}.tf-site-header .nav-profile.nav-profile{display:flex;align-items:center;gap:9px;margin:0;padding:0;border:0;max-width:160px}.tf-site-header .nav-identity{min-width:0}.tf-site-header .nav-username{display:block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tf-site-header .user-avatar{width:28px;height:28px;object-fit:cover;border-radius:50%;flex:none}.tf-site-header .nav-badges{display:flex;gap:3px;flex-wrap:wrap;margin-top:3px}.tf-site-header .tf-badge{display:inline-block;padding:3px 6px;border-radius:4px;background:var(--badge-color);color:var(--badge-ink);font-size:9px;line-height:1.2}.tf-site-header .nav-account-menu{position:absolute;top:calc(100% + 10px);right:0;width:270px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:14px;z-index:1001;background:var(--site-surface);color:var(--site-fg);border:1px solid var(--site-line);border-radius:8px;box-shadow:0 10px 32px #0002;display:flex;flex-direction:column;gap:5px}.tf-site-header .nav-account:not([open])>.nav-account-menu{display:none}.tf-site-header .nav-account-menu>a{white-space:normal}.tf-site-header .nav-menu-label{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--site-muted);padding:5px 11px}.tf-site-header .nav-theme-slot{border-top:1px solid var(--site-line);margin-top:8px;padding:12px 10px}.tf-site-header .theme-control{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;width:100%}.tf-site-header .theme-control span{display:block;color:var(--site-muted);font-size:13px}.tf-site-header .theme-control select{width:115px;min-width:0;max-width:100%;min-height:40px;margin:0;padding:8px;background:var(--site-surface);color:var(--site-fg);border:1px solid var(--site-line);border-radius:5px;font:inherit}.tf-site-header.nav .button,.tf-site-header.nav button{min-height:42px;padding:10px 14px;border:1px solid var(--site-line);border-radius:5px;margin:0;font:600 13px/1.4 ui-sans-serif,system-ui,sans-serif;text-decoration:none;box-shadow:none}.tf-site-header.nav .secondary{background:var(--site-surface);color:var(--site-fg)}.tf-site-header .nav-login{background:var(--site-brand);color:var(--site-on-brand);white-space:nowrap}.tf-site-header #logout{text-align:left;color:var(--site-muted);width:100%}.tf-site-header.nav .mobile-menu-button{display:none}
@media(max-width:1100px){body>.tf-site-header.nav{flex-wrap:wrap;padding:14px 16px;gap:12px}.tf-site-header.nav .mobile-menu-button{display:inline-flex;margin-left:auto;align-items:center;background:var(--site-surface);color:var(--site-fg)}.tf-site-header.nav #account-nav{display:none;flex-basis:100%;width:100%;border-top:1px solid var(--site-line);padding-top:14px;flex-wrap:wrap}.tf-site-header.nav[data-menu-open] #account-nav{display:flex}.tf-site-header .nav-browse{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px}.tf-site-header .nav-browse a{white-space:normal;min-height:42px;display:flex;align-items:center;background:var(--site-soft);padding:10px}.tf-site-header .nav-personal{width:100%;margin:0;justify-content:space-between;flex-wrap:wrap}.tf-site-header .nav-account-menu{top:calc(100% + 6px)}.tf-site-header .nav-profile.nav-profile{max-width:200px}.tf-site-header .nav-username{max-width:160px}}
@media(max-width:480px){.tf-site-header .nav-browse{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tf-site-header .notification-bell{position:relative}.tf-site-header .notification-count{top:1px;right:1px}.tf-site-header.nav .notification-bell>summary,.tf-site-header.nav .notification-panel{background:var(--site-surface);color:var(--site-fg)}
@media(max-width:1100px){.tf-site-header .nav-personal{flex-direction:column;align-items:stretch}.tf-site-header .nav-account{width:100%}.tf-site-header .nav-account-menu{position:static;width:100%;max-width:100%;box-shadow:none;margin-top:8px}.tf-site-header .notification-bell{align-self:flex-end}.tf-site-header .notification-panel{position:fixed;right:12px;top:auto;width:calc(100vw - 24px);max-width:390px}}

/* Plus wraps a link for its tooltip; the wrapper uses the same menu row. */
.tf-site-header .nav-account-menu>.tf-plus-control{display:block;width:100%;padding:0;margin:0;min-height:0}
.tf-site-header .nav-account-menu>.tf-plus-control>a{display:block;box-sizing:border-box;width:100%;padding:10px 11px;margin:0;font-size:13px;line-height:1.45;font-weight:600;text-decoration:none;border:0;border-radius:5px;background:transparent;color:var(--site-fg)}
.tf-site-header .nav-account-menu>.tf-plus-control:not(.tf-plus-locked)>a:hover{background:var(--site-soft)}
