/* 0.4.449 — Persistent header, user identity and version labels. */
.workspace > .topbar{
    position:sticky;
    top:0;
    z-index:80;
}
.topbar-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.theme-icon-switch{display:inline-flex;align-items:center;justify-content:center;flex:none}
.theme-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:5px;border:0;border-radius:0;background:transparent;color:var(--accent);cursor:pointer}
.theme-icon-button [data-theme-icon]{display:inline-flex;align-items:center;justify-content:center}
.theme-icon-button [data-theme-icon][hidden]{display:none!important}
.theme-icon-button svg{display:block;width:19px;height:19px;flex:none}
.theme-icon-button:hover{background:transparent;color:var(--text)}
.theme-icon-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sidebar-brand-stack{display:flex;flex-direction:column;min-width:0}
.sidebar-brand-stack > .brand{align-self:flex-start;max-width:100%}
.sidebar-version{
    align-self:flex-end;margin:-3px 7px 0 0;
    color:#91a8c5;font-size:9px;font-weight:500;line-height:1.2;
    letter-spacing:.05px;white-space:nowrap;
}
.account .account-trust,.header-user-identity .account-trust{
    display:inline-flex;align-items:center;gap:4px;
    font-size:9px;line-height:1.3;font-weight:500;white-space:nowrap;
}
.trusted-shield{display:inline-flex;align-items:center;justify-content:center;flex:none;color:#29c77b}
.trusted-shield svg{width:13px;height:13px;stroke-width:2}
.installer-security-badge{
    display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;
    margin-left:auto;max-width:100%;flex:none;color:var(--muted);
    font-size:9px;font-weight:600;line-height:1.4;white-space:nowrap;
    align-self:flex-start;margin-top:5px;
}
.installer-security-badge[hidden]{display:none!important}
.installer-security-shield{display:inline-flex;align-items:center;flex:none;color:#22c776}
.installer-security-shield svg{width:12px;height:12px;stroke-width:2}
.account-security-android-icon{display:inline-flex;align-items:center;flex:none;margin-right:6px;color:#3ddc84;vertical-align:middle}
.account-security-android-icon svg{width:20px;height:20px}
.header-user-menu{position:relative;min-width:0;flex:none}
.header-user-menu > summary{
    display:flex;align-items:center;gap:9px;min-height:45px;padding:6px 10px;
    border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);
    color:var(--text);cursor:pointer;list-style:none;
}
.header-user-menu > summary::-webkit-details-marker{display:none}
.header-user-menu > summary:hover,.header-user-menu[open] > summary{background:var(--accent-soft)}
.header-user-menu > summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.header-user-avatar{width:30px;height:30px;border-radius:8px}
.header-user-identity{display:grid;gap:2px;min-width:0;text-align:left}
.header-user-identity strong{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.header-user-identity .account-trust{color:var(--muted)}
.header-user-chevron{
    flex:none;width:7px;height:7px;margin:0 2px 3px 4px;
    border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
    transform:rotate(45deg);
}
.header-user-menu[open] .header-user-chevron{transform:rotate(225deg);margin-top:4px;margin-bottom:0}
.header-user-dropdown{
    position:absolute;right:0;top:calc(100% + 7px);z-index:90;
    width:max-content;min-width:215px;max-width:min(290px,calc(100vw - 24px));
    padding:5px;background:var(--surface);border:1px solid var(--border);
    border-radius:10px;box-shadow:0 14px 32px #0004;
}
.header-user-dropdown a,.header-user-dropdown button{
    display:flex;align-items:center;gap:9px;width:100%;min-height:37px;
    padding:8px 10px;border:0;border-radius:7px;background:transparent;
    color:var(--text);font:inherit;font-size:12px;font-weight:550;
    text-align:left;text-decoration:none;cursor:pointer;
}
.header-user-dropdown a:hover,.header-user-dropdown button:hover{background:var(--accent-soft);color:var(--accent)}
.header-user-dropdown svg{width:16px;height:16px;flex:none;color:var(--accent)}
.header-user-dropdown form{margin:0;padding:5px 0 0;border-top:1px solid var(--border)}
.header-user-dropdown .logout-symbol{display:inline-flex;justify-content:center;align-items:center;width:16px;height:16px;flex:none;color:var(--accent);font-size:21px;line-height:1}
.footer-trust{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.footer-trust-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.footer-native-platform{display:inline-flex;align-items:center;justify-content:center;flex:none;width:15px;height:16px;color:#29c77b;line-height:1}
.footer-native-platform svg{display:block;width:14px;height:14px}
.footer-native-ios{color:var(--muted)}
.footer-version{font-size:10px;white-space:nowrap}
.footer-trust .trusted-shield svg{width:15px;height:15px}
@media(min-width:701px){
    .sidebar .nav-search{margin-top:7px}
}
@media(min-width:701px) and (max-height:740px){
    .sidebar .nav-search{margin-top:4px}
}
@media(max-width:700px){
    .page-heading{flex-wrap:wrap}
    .installer-security-badge{white-space:normal;text-align:right;margin-left:auto}
    .topbar-controls{gap:7px}
    .header-user-menu > summary{gap:6px;padding:5px 7px;min-height:40px}
    .header-user-avatar{width:27px;height:27px}
    .header-user-identity strong{font-size:11px}
    .header-user-identity .account-trust{font-size:8px}
    .sidebar-brand-stack{align-items:flex-start}
}
@media(max-width:540px){
    .workspace > .topbar{flex-wrap:wrap;gap:7px}
    .topbar-controls{width:100%;justify-content:space-between}
    .header-user-dropdown{right:0}
}
