header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 64px;
    box-sizing: border-box;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel-alt, #f2f4f6) 92%, transparent);
    backdrop-filter: blur(10px);
}

header a {
    color: var(--accent);
    text-decoration: none;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.logo.cau {
    margin-right: 25px;
}

.logo.captn {
    max-height: 36px;
}

.stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.stack img {
    max-height: 22px;
    width: auto;
    display: block;
}

.header-title {
    text-align: center;
    font-family: "Google Sans", "Open Sans", "Segoe UI", sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.top-nav-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-nav-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-alt, #f5efdf);
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.top-nav-tabs .disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel-alt, #f5efdf) 72%, transparent);
    color: color-mix(in srgb, var(--ink) 55%, transparent);
    font-size: 13px;
    font-weight: 700;
    cursor: not-allowed;
}

.top-nav-tabs a.active {
    background: var(--accent);
    border-color: transparent;
    color: #ffffff;
}

.theme-btn {
    width: auto;
    min-width: 42px;
    min-height: 40px;
    margin: 0;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px;
    font-size: 18px;
    line-height: 1;
    position: relative;
}

.theme-btn::after {
    content: attr(data-shortcut);
    position: absolute;
    right: 4px;
    bottom: 3px;
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 82%, transparent);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
