.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    position: relative;
}

.site-header-logo {
    display: flex;
    align-items: baseline;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header-logo:hover {
    text-decoration: none;
}

.site-header-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.site-header-tagline {
    font-size: 11px;
    font-style: italic;
    color: #6b7280;
    margin-left: 6px;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1;
}

.site-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    background: none;
    height: 100%;
}

.site-header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #24292f;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
    line-height: 1.5;
    padding: 0;
    margin: 0;
}

.site-header-nav a:hover {
    color: #3FBB14;
    text-decoration: none;
    background: none;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #1763cb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
    line-height: 1.5;
    height: 38px;
    border: none;
}

.site-header-upload-btn:hover {
    background: #1953a9;
    color: #fff !important;
    text-decoration: none;
}

.site-header-upload-btn svg {
    flex-shrink: 0;
}

.site-header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #24292f;
    text-decoration: none;
    transition: background 0.15s ease;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 0;
}

.site-header-icon-btn:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #24292f;
}

.site-header-icon-btn.notifications-trigger:focus,
.site-header-icon-btn.notifications-trigger:focus-visible,
.site-header-icon-btn.notifications-trigger:active,
.site-header-icon-btn.notifications-trigger[aria-expanded='true'] {
    background: #fff;
    color: #24292f;
    outline: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

#notifications-root {
    display: inline-flex;
    align-items: center;
}

/* Pages dropdown (signed-in header nav) */
.pages-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pages-menu-trigger {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #24292f;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease;
}

.pages-menu-trigger:hover,
.pages-menu-trigger[aria-expanded='true'] {
    color: #3FBB14;
}

.pages-menu-trigger:focus,
.pages-menu-trigger:focus-visible {
    outline: 2px solid #217ef0;
    outline-offset: 2px;
}

.pages-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: transparent;
}

.pages-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 160;
    width: min(280px, calc(100vw - 32px));
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    text-align: left;
}

.pages-menu-panel[hidden] {
    display: none !important;
}

.pages-menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.pages-menu-item {
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    color: #111827;
    font-size: 14px;
    text-decoration: none;
}

.pages-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.pages-menu-new {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: #3FBB14;
    cursor: pointer;
}

.pages-menu-new:hover {
    text-decoration: underline;
}

.pages-menu-help {
    font-size: 13px;
    color: #4b5563;
}

.pages-menu-help summary {
    cursor: pointer;
    color: #1e73da;
}

.pages-menu-help p {
    margin: 8px 0;
}

.pages-menu-sample {
    margin: 0;
    padding: 8px;
    background: #f4f4f5;
    border-radius: 4px;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.pages-menu-status {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    color: #6b7280;
}

.pages-menu-status--error {
    color: #bb1416;
}

.pages-menu-mobile-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pages-menu-mobile-list {
    list-style: none;
    margin: 0 0 0 12px;
    padding: 0;
}

.pages-menu-mobile-list[hidden] {
    display: none !important;
}

.pages-menu-mobile-list a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: #24292f;
}

@media (max-width: 900px) {
    .site-header-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        padding: 0 16px;
        height: 60px;
    }

    .site-header-icon-btn {
        width: 36px;
        height: 36px;
    }
}
