/* Shared shell: public registry and admin. Scoped to avoid altering printed A4 pages. */
.ui-header{position:relative;z-index:50;background:var(--ui-surface,#fff);color:var(--ui-ink,#18303b);border-bottom:1px solid var(--ui-line,#dce4e2)}
.ui-header .ui-header__bar{max-width:1240px;margin:0 auto;min-height:75px;padding:12px 23px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:nowrap}
.ui-brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none!important;color:inherit!important;min-width:0;white-space:nowrap}
.ui-brand img{display:block;width:48px;height:51px;object-fit:contain;filter:brightness(0);background:transparent!important;flex-shrink:0}
.ui-brand__name{font-size:1.05rem;font-weight:850;letter-spacing:-.025em;line-height:1.1}
.ui-brand__small{display:block;font-size:.72rem;font-weight:600;letter-spacing:.035em;color:var(--ui-sub,#657580);margin-top:3px}
.ui-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 9px;min-width:0}
.ui-nav a{font-size:.89rem!important;text-decoration:none!important;color:inherit!important;margin:0!important;padding:8px 9px;border-radius:8px;background:transparent!important;white-space:nowrap}
.ui-nav a:hover,.ui-nav a:focus-visible{background:var(--ui-hover,#e8f0ec)!important;text-decoration:none}
.ui-controls{display:flex;gap:8px;align-items:center;margin-left:auto}
.ui-control{font:inherit;font-size:.84rem;cursor:pointer;border:1px solid var(--ui-line,#c9d6d0)!important;background:var(--ui-surface,#fff)!important;color:var(--ui-ink,#18303b)!important;padding:8px 11px;border-radius:10px;min-height:39px;white-space:nowrap}
.ui-control:hover{background:var(--ui-hover,#e8f0ec)!important}
.ui-menu-button{display:none}
html[data-theme=dark]{--ui-surface:#1b3030;--ui-ink:#f1faf6;--ui-sub:#b8ccc7;--ui-line:#44615b;--ui-hover:#324c46}
html[data-theme=dark] .ui-brand img{filter:none}
html[data-theme=dark] .ui-header{background:#1b3030;color:#f1faf6}
@media(max-width:1020px){
 .ui-header .ui-header__bar{flex-wrap:wrap;padding:10px 16px}
 .ui-menu-button{display:inline-flex;justify-content:center;align-items:center;gap:8px}
 .ui-nav{display:none;order:3;width:100%;flex-direction:column;align-items:stretch;gap:3px;padding:9px 0 5px;border-top:1px solid var(--ui-line,#dce4e2)}
 .ui-nav.is-open{display:flex}
 .ui-nav a{display:block!important;white-space:normal;padding:12px!important;font-size:.98rem!important}
}
@media(max-width:460px){.ui-brand img{width:40px;height:43px}.ui-brand__name{font-size:.95rem}.ui-brand__small{font-size:.65rem}.ui-control{padding:8px}.ui-header .ui-header__bar{gap:8px;padding:8px 12px}}

/* v6: mobile navigation overlays the page; opening menu never changes document flow. */
.ui-header{position:relative!important;z-index:1000!important;isolation:isolate}
.ui-header .ui-header__bar{position:relative!important;z-index:2}
.ui-brand{gap:9px}
.ui-brand img{background:none!important}
html[data-theme=dark] .ui-brand img{filter:none!important}
html:not([data-theme=dark]) .ui-brand img{filter:brightness(0)!important}
@media (max-width:1020px){
 .ui-header .ui-header__bar{display:flex!important;flex-wrap:nowrap!important;min-height:66px!important;align-items:center!important}
 .ui-brand{flex:1 1 auto!important;min-width:0!important;width:auto!important}
 .ui-controls{flex:0 0 auto!important;margin-left:auto!important}
 .ui-menu-button{display:inline-flex!important}
 .ui-header .ui-nav{
   display:none!important;position:absolute!important;z-index:1001!important;
   top:calc(100% + 2px)!important;left:12px!important;right:12px!important;
   width:auto!important;max-height:min(75vh,620px)!important;overflow-y:auto!important;
   flex-direction:column!important;align-items:stretch!important;
   padding:12px!important;gap:3px!important;border:1px solid var(--ui-line,#dce4e2)!important;
   background:var(--ui-surface,#fff)!important;color:var(--ui-ink,#18303b)!important;
   border-radius:14px!important;box-shadow:0 20px 55px #1119!important;
 }
 .ui-header .ui-nav.is-open{display:flex!important}
 .ui-header .ui-nav a{background:transparent!important;color:inherit!important;white-space:normal!important;text-align:left}
 .ui-header .ui-nav a:hover{background:var(--ui-hover,#e8f0ec)!important}
}
@media(max-width:460px){
 .ui-header .ui-header__bar{gap:7px!important;padding:10px!important}
 .ui-brand img{height:35px!important;width:34px!important;max-width:34px!important}
 .ui-brand__name{font-size:.84rem!important}
 .ui-brand__small{font-size:.63rem!important}
 .ui-control{padding:7px 8px!important;font-size:.78rem!important}
}
