/* One persistent header; its measured height also offsets review panels. */
.app-header,html[lang=en] .app-header{position:sticky;top:0;z-index:40;height:auto;min-height:76px;padding:12px 28px;gap:20px;flex-wrap:nowrap;box-shadow:0 2px 10px #102a2508}
.app-header>.brand{flex-shrink:0;gap:10px}
.app-header nav{height:50px;width:auto;order:0;gap:20px;flex:1;justify-content:center;overflow:visible}
.app-header .nav-button,html[lang=en] .app-header .nav-button{white-space:nowrap;padding:0;align-self:stretch}
.header-tools{display:flex;align-items:center;gap:18px;flex-shrink:0}
.app-header .display-preferences{position:static;padding:0;min-height:0;gap:8px;border:0;background:transparent;box-shadow:none}
.app-header .preference-label{display:none}
.app-header .display-preferences button{font-size:12px;padding:7px 10px;min-height:36px}
.app-header .account{margin:0;gap:14px;flex-wrap:nowrap}
.app-header .guide-link{white-space:nowrap}
.account-menu{position:relative;font-size:12px}
.account-menu summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-height:36px}
.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary:hover{background:var(--green-light)}
.account-menu summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.app-header #accountName{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-chevron{font-size:16px;color:var(--muted);line-height:1}
.account-short-label{display:none}
.account-menu[open] .account-chevron{transform:rotate(180deg)}
.account-menu-panel{position:absolute;right:0;top:calc(100% + 10px);width:160px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 8px 24px #102a2520;display:grid;gap:3px}
.account-menu-panel .text-button{text-align:left;padding:10px 12px;border-radius:6px;min-height:40px;font-size:13px;white-space:nowrap}
.account-menu-panel .text-button:hover{background:var(--green-light)}
.account-menu-panel #logoutBtn{border-top:1px solid var(--line);border-radius:0 0 6px 6px}
.account-menu-panel .guide-link,.account-menu-panel .registration-task-button{padding:10px 12px;text-align:left;min-height:40px}
@media(max-width:1250px){
 .app-header,html[lang=en] .app-header{padding:10px 18px;gap:14px}
 .app-header nav{gap:14px}.header-tools{gap:12px}.app-header .account{gap:10px}
 .app-header .brand-name{font-size:14px}.app-header .brand-name small{font-size:7px}
 .app-header #accountName{max-width:135px}
}
@media(max-width:1100px){
 .app-header,html[lang=en] .app-header{flex-wrap:wrap;justify-content:space-between;padding:10px 16px 0;gap:8px 14px}
 .app-header nav{order:3;flex:1 0 100%;height:42px;justify-content:flex-start;overflow-x:auto;gap:24px}
 .header-tools{margin-left:auto}.app-header #accountName{max-width:130px}
}
@media(max-width:700px){
 .app-header,html[lang=en] .app-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:10px 12px 0}
 .app-header>.brand{grid-column:1;grid-row:1;gap:7px}
 .app-header>.brand .brand-name{font-size:12px}.app-header>.brand small{display:none}
 .app-header>.brand .brand-symbol{width:30px;height:30px;font-size:26px}
 .header-tools{display:contents}
 #headerDisplaySettings{grid-column:2;grid-row:1}
 .app-header .display-preferences{gap:5px;justify-content:flex-end}
 .app-header .display-preferences button{min-height:36px;padding:6px 8px;font-size:11px}
 .app-header .account{grid-column:3;grid-row:1;justify-content:flex-end;gap:0}
 .app-header #accountName{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .account-short-label{display:inline;color:var(--ink);font-size:18px;line-height:1}
 .account-menu .account-chevron{display:none}
 .account-menu summary{padding:6px;gap:4px;min-height:36px;font-size:11px}
 .app-header nav{grid-column:1/-1;grid-row:2;width:100%;min-width:0;gap:22px;height:40px;flex:none}
 .account-menu-panel{top:calc(100% + 7px)}
}
@media(max-width:420px){.app-header>.brand .brand-name{display:none}}
@media print{.app-header{display:none!important}}
