.theuk-header-shell{position:relative;z-index:40;border-bottom:1px solid var(--border);background:var(--surface-1)}
#theuk-header .app-header{height:78px;padding:0 clamp(24px,6vw,96px);border:0;background:var(--surface-1)}
#theuk-header .app-header-brand{display:flex;align-items:center;gap:12px;color:var(--text-primary);text-decoration:none}
#theuk-header .app-header-brand__logo{display:block;width:46px;height:46px;object-fit:contain}
#theuk-header .app-header-brand span{display:flex;flex-direction:column;line-height:1.15}
#theuk-header .app-header-brand b{font-size:.9rem;letter-spacing:.04em}
#theuk-header .app-header-brand small{color:var(--text-secondary);font-size:1.15rem;font-weight:750}
#theuk-header .admin-header__actions{display:flex;flex-direction:row;align-items:center;gap:.5rem}
#theuk-header .admin-header__icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;background:transparent;border:1px solid var(--border);border-radius:8px;color:var(--text-secondary);text-decoration:none}
#theuk-header .admin-header__icon:hover,#theuk-header .admin-header__icon[aria-expanded=true]{border-color:var(--border-hover);color:var(--text-primary);background:var(--surface-2)}
#theuk-header .admin-header__icon svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75}
#theuk-header .admin-header__icon:focus-visible,#theuk-header .admin-header__dropdown a:focus-visible,#theuk-header .admin-header__dropdown button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#theuk-header .admin-header__dropdown{position:absolute;right:clamp(24px,6vw,96px);top:100%;z-index:50;width:min(18rem,calc(100vw - 2rem));max-height:calc(100dvh - 100px);overflow-y:auto;padding:.5rem;background:var(--surface-1);border:1px solid var(--border);border-top:0;border-radius:0 0 10px 10px;box-shadow:0 12px 28px #0007;overscroll-behavior:contain}
#theuk-header .admin-header__dropdown[hidden]{display:none!important}
#theuk-header .admin-header__nav{width:min(29rem,calc(100vw - 2rem));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:.35rem}
#theuk-header .admin-header__nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-width:0;min-height:5.25rem;padding:.65rem .25rem;border-radius:6px;color:var(--text-secondary);text-decoration:none;text-align:center;font-size:.8rem;font-weight:400}
#theuk-header .admin-header__nav a b{display:grid;place-items:center;width:2rem;height:2rem;color:var(--accent);font-size:1.5rem;font-weight:400;line-height:1}
#theuk-header .admin-header__nav a span{color:inherit;font-size:.8rem;line-height:1.3}
#theuk-header .admin-header__nav a:hover{background:var(--surface-2);color:var(--text-primary)}
#theuk-header .admin-account-menu{padding:.35rem}
#theuk-header .admin-account-menu>strong,#theuk-header .admin-header__notifications>strong{display:block;padding:.7rem .75rem;color:var(--text-primary);font-size:.9rem}
#theuk-header .admin-account-menu a,#theuk-header .admin-account-menu button{display:flex;align-items:center;width:100%;min-height:2.5rem;padding:.65rem .75rem;border:0;border-top:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text-secondary);font:inherit;font-size:.8rem;text-align:left;text-decoration:none}
#theuk-header .admin-account-menu a:hover,#theuk-header .admin-account-menu button:hover{background:var(--surface-2);color:var(--text-primary)}
#theuk-header .admin-account-menu .admin-header__signout{color:var(--danger)}
#theuk-header .admin-header__notifications{width:min(390px,calc(100vw - 2rem));padding:.65rem}
#theuk-header .admin-header__notifications>p{margin:.25rem .75rem .7rem;color:var(--text-muted);font-size:.8rem}
#theuk-header .admin-header__notifications>a{display:block;padding:.7rem;color:#7dd3fc;font-size:.82rem}
.admin-alert-count{position:absolute;right:-4px;top:-4px;padding:2px 5px;border-radius:20px;background:#b91c1c;color:#fff;font-size:11px;font-weight:700;line-height:1.2}
.admin-alert-list{display:grid;gap:8px;max-height:50vh;overflow:auto}
.admin-alert-list a{display:grid;gap:4px;padding:12px;border:1px solid #64748b55;border-radius:8px;color:var(--text-primary);text-decoration:none}
.admin-alert-list a.is-unread{border-left:3px solid #38bdf8}
.admin-alert-list span,.admin-alert-list small{color:#cbd5e1;font-size:12px;overflow-wrap:anywhere}
.primary-nav,.secondary-nav{display:flex;gap:8px;box-sizing:border-box;width:100%;max-width:1320px;margin:0 auto;padding-inline:28px;border-bottom:1px solid var(--border);overflow-x:auto;background:transparent}
.theuk-primary-nav{margin-top:22px}
.secondary-nav{margin-top:10px}
.secondary-nav.rail-nav{margin-top:0;padding-inline:44px}
.secondary-nav[hidden]{display:none!important}
.primary-nav a,.secondary-nav a{flex:0 0 auto;padding:12px 18px;border-bottom:2px solid transparent;border-radius:7px 7px 0 0;background:transparent;color:var(--text-secondary);font-weight:700;text-decoration:none;white-space:nowrap}
.secondary-nav a{padding:10px 16px;font-size:.84rem}
.primary-nav a:hover,.secondary-nav a:hover{background:transparent;color:var(--text-primary)}
.primary-nav a.active,.primary-nav a.is-active,.secondary-nav a.is-active{border-bottom-color:var(--accent);background:var(--accent-subtle);color:var(--accent)}
.theuk-page-tools{display:flex;justify-content:flex-end;align-items:center;gap:12px;width:100%;max-width:1320px;margin:12px auto 0;padding:0 28px}
.theuk-page-tools #freshness{color:var(--text-muted);font-size:.76rem}
.theuk-page-tools #refresh{padding:7px 12px;border:1px solid var(--border-hover);border-radius:8px;background:var(--surface-2);color:var(--text-secondary);font:inherit;font-size:.78rem}
.theuk-page-tools #refresh:hover{border-color:var(--accent);color:var(--text-primary)}
.primary-nav~.theuk-page-tools~.page,.secondary-nav:not([hidden])~.page{padding-top:16px}
@media(width<=800px){#theuk-header .app-header{height:70px;padding:0 16px}#theuk-header .app-header-brand span{display:none}.primary-nav,.secondary-nav,.secondary-nav.rail-nav{padding-inline:16px}.theuk-primary-nav{margin-top:14px}.theuk-page-tools{padding-inline:16px}.secondary-nav{flex-wrap:nowrap}.primary-nav a,.secondary-nav a{text-align:center}}
@media(width<=600px){#theuk-header .admin-header__dropdown{right:1rem}#theuk-header .admin-header__notifications{width:calc(100vw - 2rem)}#theuk-header .admin-header__nav{grid-template-columns:repeat(3,minmax(0,1fr))}}

.brand-masthead{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;width:100%;max-width:1320px;margin:0 auto;padding:28px;border-bottom:1px solid var(--border)}
.brand-masthead__eyebrow{display:flex;align-items:center;gap:8px;color:#80aeff;text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:.12em}
.brand-masthead h1{margin:8px 0;font-size:clamp(32px,5vw,48px);letter-spacing:-.04em}
.brand-masthead p{margin:0;color:var(--text-secondary);font-size:16px}
.brand-masthead__status{flex:none;padding:8px 13px;border:1px solid #526885;border-radius:999px;color:#c9d7eb;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
@media(width<=760px){.brand-masthead{flex-direction:column;padding:24px 16px}}
