/* V4 visual header over the V4.1 shell. No application-wide element overrides. */
.go-header-classic {
    --header-bg: #121624;
    position: sticky;
    top: 0;
    z-index: 45;
    flex: 0 0 auto;
    background: var(--header-bg);
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 1px 3px #0002;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.go-header-analyzer { --header-bg: #0f172a; box-shadow: 0 4px 6px #0002; }
.go-header-classic *, .go-header-classic *::before, .go-header-classic *::after { box-sizing: border-box; }
.go-header-classic [hidden] { display: none !important; }
.go-header-classic .go-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 1280px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 16px;
}
.go-header-classic .go-brand-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.go-header-classic .go-brand { display: inline-flex; flex: 0 0 auto; align-items: center; line-height: 1; text-decoration: none; }
.go-header-classic .go-brand:hover { opacity: .9; }
.go-header-classic .go-brand-image { display: block; width: auto; height: 28px; max-width: none; object-fit: contain; }
.go-header-classic .go-divider { display: block; height: 20px; width: 1px; flex: 0 0 1px; background: #475569; }
.go-header-classic .go-module-wrap { min-width: 0; }
.go-header-classic .go-module-button, .go-header-classic .go-module-name {
    display: inline-block;
    max-width: 100%;
    padding: 10px 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #f8fafc;
    font: 700 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: -.025em;
    white-space: nowrap;
    text-decoration: none;
}
.go-header-classic .go-module-button:hover { background: transparent; opacity: .8; }
.go-header-classic .go-module-suffix { color: #818cf8; }
.go-header-classic .go-module-name { cursor: default; }
.go-header-classic button:focus-visible, .go-header-classic a:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 3px; }
.go-header-classic .go-classic-desktop { display: none; }
.go-header-classic .go-classic-mobile { display: block; flex: 0 0 auto; }
.go-header-classic .go-section-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #6366f1;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 12px #6366f126;
    transition: background .15s;
}
.go-header-classic .go-section-button:hover, .go-header-classic .go-section-button[aria-expanded="true"] { background: #6366f1; }
.go-header-classic .go-section-chevron { color: #c7d2fe; font-size: 10px; margin-left: 2px; }
.go-header-classic .go-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 90;
    min-width: 0;
    width: 240px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 100px);
    padding: 6px;
    border: 1px solid #334155cc;
    border-radius: 12px;
    background: #1e293b;
    color: #cbd5e1;
    box-shadow: 0 22px 40px #0005;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.go-header-classic .go-popover-right { left: auto; right: 0; }
.go-header-classic .go-section-popover { width: 224px; }
.go-header-analyzer .go-section-popover { width: 192px; }
.go-header-classic .go-popover a, .go-header-classic .go-notify-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    margin: 0 0 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    overflow-wrap: break-word;
}
.go-header-classic .go-popover a > [aria-hidden], .go-header-classic .go-notify-button > [aria-hidden] { flex: 0 0 18px; text-align: center; }
.go-header-classic .go-popover a:hover, .go-header-classic .go-notify-button:hover { background: #334155; color: #fff; }
.go-header-classic .go-popover a[aria-current="page"], .go-header-classic .go-popover a.is-active { color: #fff; background: #4f46e5; font-weight: 700; }
.go-header-classic .go-menu-separator { height: 1px; margin: 6px 0; background: #334155cc; }
.go-header-classic .go-danger-text { color: #fb7185 !important; }
.go-header-classic .go-popover a.go-danger-text:hover { background: #f43f5e1a; }
.go-header-classic .go-menu-identity { display: flex; align-items: center; gap: 12px; padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid #33415580; }
.go-header-classic .go-avatar { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #6366f14d; background: #6366f133; color: #a5b4fc; font-size: 14px; }
.go-header-classic .go-identity { min-width: 0; display: block; }
.go-header-classic .go-identity strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-header-classic .go-identity small { display: block; margin-top: 2px; color: #818cf8; font-size: 10px; font-weight: 700; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; }
.go-header-classic .go-notify-form { margin: 4px 0; }
.go-header-classic .go-notify-button small { display: block; font-size: 10px; color: #94a3b8; margin-top: 4px; }
.go-header-classic .go-notify-button small.go-notify-on { color: #6ee7b7; }
.go-header-classic .go-menu-environment { display: block; padding: 8px 12px; font-size: 10px; color: #94a3b8; }
.go-header-classic .go-pending-badge { padding: 1px 5px; border-radius: 10px; background: #fbbf24; color: #0f172a; font-size: 10px; }
.go-header-test { position: relative; z-index: 44; flex: 0 0 auto; background: #fbbf24; color: #0f172a; padding: 8px 12px; text-align: center; font: 800 12px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.go-login-brand img { display: block; width: 143px; height: 48px; object-fit: contain; }
@media(min-width:640px) {
    .go-header-classic .go-header-inner { padding: 0 24px; }
    .go-header-classic .go-brand-group { gap: 12px; }
    .go-header-classic .go-brand-image { height: 32px; }
    .go-header-classic .go-divider { height: 24px; }
    .go-header-classic .go-module-button, .go-header-classic .go-module-name { font-size: 18px; }
}
@media(min-width:1200px) {
    .go-header-classic .go-header-inner { padding: 0 32px; }
    .go-header-classic .go-classic-mobile { display: none; }
    .go-header-classic .go-classic-desktop { display: flex; align-items: center; gap: 14px; }
    .go-header-classic .go-classic-tabs { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; border: 1px solid #33415580; background: #1e293b99; }
    .go-header-classic .go-classic-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: #94a3b8; text-decoration: none; white-space: nowrap; font-size: 14px; line-height: 1.4; font-weight: 500; }
    .go-header-classic .go-classic-tabs a:hover { color: #e2e8f0; background: #33415555; }
    .go-header-classic .go-classic-tabs a.is-active { color: #fff; background: #4f46e5; box-shadow: 0 1px 4px #0002; }
    .go-header-classic .go-classic-user { padding-left: 10px; border-left: 1px solid #334155; }
    .go-header-classic .go-profile-button { padding: 4px 0; min-height: 40px; border-radius: 5px; text-align: right; }
    .go-header-classic .go-profile-button:hover { background: transparent; opacity: .85; }
    .go-header-classic .go-profile-button strong { max-width: 95px; }
    .go-header-classic .go-logout-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #334155; border-radius: 8px; background: #1e293b; text-decoration: none; font-size: 14px; }
}
@media(max-width:359px) {
    .go-header-classic .go-header-inner { padding: 0 12px; gap: 6px; }
    .go-header-classic .go-brand-group { gap: 8px; }
    .go-header-classic .go-brand-image { height: 24px; }
    .go-header-classic .go-module-button, .go-header-classic .go-module-name { font-size: 12px; }
    .go-header-classic .go-section-button { padding: 8px; gap: 4px; font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .go-header-classic * { transition: none !important; } }

/* Original compact bell remains next to the desktop identity. */
.go-header-classic .go-notify-compact { margin:0; }
.go-header-classic .go-notify-compact .go-notify-button { width:32px; height:32px; padding:0; margin:0; justify-content:center; border:1px solid #334155; background:#1e293b; }
.go-header-classic .go-notify-compact .go-notify-button > span:not([aria-hidden]) { display:none; }
