/* ── Navbar ── */
#__unified-navbar, #__unified-navbar * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
    border-radius: 0 !important;
}
#__unified-navbar {
    box-sizing: content-box !important;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 99999; height: 64px;
    background: #fff; border-bottom: none;
    display: flex; align-items: stretch;
    padding: 0; overflow: visible;
}
body.--nav-hidden #__unified-navbar { top: -64px; }

#__un-nav-brand {
    box-sizing: border-box;
    border-bottom: 4px solid #000;
    display: flex; align-items: center; gap: 10px;
    padding: 0 18px; flex-shrink: 0;
}
#__un-nav-brand > img {
    width: 36px; height: 36px;
    image-rendering: pixelated; display: block; flex-shrink: 0;
}
#__un-brand-text { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
#__un-brand-name {
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: #000; white-space: nowrap; line-height: 1;
}
#__un-brand-sub {
    font-size: 13px; color: #555;
    letter-spacing: 0.02em; white-space: nowrap;
    font-weight: 400; line-height: 1;
}

.__un-spacer { flex: 1; box-sizing: border-box; border-bottom: 4px solid #000; }

.__un-btn-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.__un-nav-btn {
    -webkit-appearance: none; appearance: none;
    box-sizing: border-box !important; width: 64px !important;
    height: 64px !important; padding: 0; flex-shrink: 0 !important;
    border: none; border-left: 4px solid #000; border-bottom: 4px solid #000;
    background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #000; overflow: hidden;
}
.__un-nav-btn:hover { background: #000; color: #fff; }
.__un-nav-btn > img { width: 30px !important; height: 30px !important; image-rendering: pixelated; display: block; }
.__un-nav-btn:hover > img { filter: invert(1) !important; }
#__un-avatar-btn.--has-avatar:hover { background: #f0f0f0 !important; }
#__un-avatar-btn.--has-avatar > img { filter: none !important; width: 64px !important; height: 64px !important; object-fit: cover; image-rendering: auto !important; display: block !important; flex-shrink: 0 !important; }

#__un-collapse-btn {
    position: fixed !important; top: 64px; left: 50%; transform: translateX(-50%);
    width: 44px !important; height: auto !important; padding: 0 !important;
    background: #fff !important;
    border: 4px solid #000 !important; border-top: none !important; z-index: 99998;
}
#__un-collapse-btn > img { width: 16px !important; height: 16px !important; display: block !important; }
body.--nav-hidden #__un-collapse-btn > img { width: 14px !important; height: 14px !important; }
#__un-collapse-btn:hover { background: #000 !important; }
#__un-collapse-btn:hover > img { filter: invert(1) !important; }
body.--nav-hidden #__un-collapse-btn { top: 0; z-index: 99999; }

/* Dropdowns */
.__un-dd {
    display: none; position: absolute; top: 100%; right: 0;
    background: #fff; border: 4px solid #000; border-top: none;
    z-index: 100000; box-shadow: 4px 4px 0 0 #aaa !important;
}
.__un-dd.__open { display: grid; }

#__un-apps-dd { padding: 12px; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }

.__un-dd-label {
    grid-column: 1 / -1;
    color: #000;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 6px 0;
    text-align: center;
}

.__un-app-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 80px; height: 80px; gap: 6px; background: #fff;
    text-decoration: none !important; color: #000 !important;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0;
}
.__un-app-item:hover { background: #000; }
.__un-app-item:hover span { color: #fff !important; }
.__un-app-item:hover img { filter: invert(1) !important; }
.__un-app-item span { color: #000 !important; }
.__un-app-item img { width: 30px !important; height: 30px !important; image-rendering: pixelated; display: block; }

body:not(.--nav-hidden) { padding-top: 64px !important; }
body.--nav-hidden { padding-top: 0 !important; }
