/* Shared business header: the approved language / refresh / logout controls. */
:root{--header-control-height:38px;--header-control-gap:7px;--header-control-radius:12px;--header-control-bg:#f8f3ef;--header-control-line:#eadbd5;--header-control-text:#5a4b46}
.topbar .topbar-title{flex:1;min-width:0}
.topbar .topbar-title strong,.topbar .topbar-title small{max-width:none;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.topbar .topbar-actions{display:flex;align-items:center;flex-shrink:0;gap:var(--header-control-gap);margin-left:auto}
.topbar .header-language,.topbar .topbar-actions button{height:var(--header-control-height);min-height:var(--header-control-height);border:1px solid var(--header-control-line);border-radius:var(--header-control-radius);background:var(--header-control-bg);color:var(--header-control-text);margin:0}
.topbar .header-language{position:relative;display:flex;align-items:center;justify-content:space-between;width:56px;gap:4px;padding:0 5px;overflow:hidden}
.topbar .topbar-actions .header-language select{position:absolute;inset:0;z-index:1;width:100%!important;height:100%;min-height:0;padding:0;border:0;border-radius:inherit;background:transparent;color:inherit;font-size:16px;opacity:0;cursor:pointer}
.topbar .header-language-value{font-size:16px;font-weight:700;line-height:1;pointer-events:none}.topbar .header-language-value.is-en{font-size:12px}.topbar .language-chevron{width:10px;height:14px;flex-shrink:0;pointer-events:none}
.topbar .topbar-actions #refresh{display:grid;place-items:center;width:var(--header-control-height);min-width:var(--header-control-height);padding:0;flex:0 0 var(--header-control-height);border-color:var(--header-control-line);border-radius:var(--header-control-radius);background:var(--header-control-bg);color:var(--green)}
.topbar .topbar-actions #refresh .refresh-symbol{display:block;font-size:20px;font-weight:900;line-height:1}
.topbar .topbar-actions .logout-button{display:flex;align-items:center;justify-content:center;gap:5px;padding:0 10px}
.topbar .logout-button svg{width:17px;height:17px;flex-shrink:0}
.topbar .logout-button b{font-size:11px;font-weight:700}
.topbar .topbar-actions button:active{background:#eee5df;transform:scale(.96)}
.topbar .header-language:focus-within,.topbar .topbar-actions button:focus-visible{outline:2px solid #e31d2b55;outline-offset:2px}
.topbar .topbar-actions button:disabled,.topbar .header-language:has(select:disabled){opacity:.55;cursor:wait}
.app-refreshing .topbar #refresh .refresh-symbol{animation:header-refresh .8s linear infinite}
@keyframes header-refresh{to{transform:rotate(360deg)}}
@media(max-width:420px){:root{--header-control-height:34px;--header-control-gap:4px;--header-control-radius:11px}.topbar .header-language{width:48px}.topbar .topbar-actions .logout-button{padding:0 8px}.topbar .logout-button b{font-size:10px}.topbar .logout-button svg{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.app-refreshing .topbar #refresh .refresh-symbol{animation:none}}
