/* Shared site header. Keep the copy in both services identical. */
.topbar.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 34px;
    min-height: 76px;
    padding: 12px max(24px, calc((100vw - 1380px) / 2));
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(67,70,96,.97);
    box-shadow: 0 12px 36px rgba(35,37,58,.12);
    backdrop-filter: blur(18px);
    font-family: var(--font-ui, "Noto Sans KR", "Malgun Gothic", sans-serif);
}
.site-header .brand-lockup {
    display: flex;
    align-items: center;
    flex: none;
    min-width: 0;
    gap: 13px;
    margin-right: auto;
    color: #fff;
    text-decoration: none;
}
.site-header .brand-logo { display: block; width: 156px; height: auto; }
.site-header .brand-copy { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.22); }
.site-header .brand-copy small {
    display: block;
    color: rgba(255,255,255,.58);
    font: 500 11px/1.35 var(--font-display, "Manrope", "Noto Sans KR", sans-serif);
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
}
.site-header .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    gap: 10px 14px;
    margin-left: auto;
}
.site-header .top-actions .project-context {
    display: block;
    align-items: center;
    min-width: 0;
    max-width: 240px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-header .top-actions .project-context:hover { color: #fff; background: rgba(255,255,255,.18); }
.site-header .top-actions .project-context-label {
    display: block;
    min-width: 0;
    max-width: 240px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}
.site-header .system-state {
    display: flex;
    align-items: center;
    flex: none;
    gap: 7px;
    color: rgba(255,255,255,.86);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
:where(.site-header) .system-state i { width: 7px; height: 7px; border-radius: 50%; background: #d39aa0; }
.site-header .system-state[data-status-text="hidden"] { gap: 0; }
.site-header .system-state[data-status-text="hidden"] .system-state-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.site-header .system-state.online i { background: #38b875; box-shadow: 0 0 4px rgba(16,185,129,.6); }
.site-header .account-menu { min-width: 0; max-width: 100%; }
.site-header .account-menu:hover { border:none; }

@media (max-width: 900px) {
    .site-header .brand-logo { width: 140px; }
    .site-header .brand-copy { display: none; }
}
@media (max-width: 640px) {
    .topbar.site-header { min-height: 68px; padding: 12px 14px; gap: 10px; }
    .site-header .brand-logo { width: 120px; }
    .site-header .top-actions { gap: 7px; }
    .site-header .top-actions .project-context { max-width: 140px; padding: 7px 9px; font-size: 11px; }
    .site-header .top-actions .project-context-label { max-width: 140px; font-size: 11px; }
    .site-header .system-state { max-width: none; padding: 0; font-size: 11px; }
}
