body.app-header-enabled {
    margin: 0;
    padding-top: 62px;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    border-bottom: 1px solid #d7dce3;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.app-header__inner {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}

.app-header__menu-button {
    appearance: none;
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition:
        background-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.12s ease;
}

.app-header__menu-button:hover {
    opacity: 0.7;
}

.app-header__menu-button:active {
    opacity: 0.5;
    transform: scale(0.96);
}

.app-header__menu-button:focus-visible {
    outline: 2px solid #344054;
    outline-offset: 2px;
}

.app-header__menu-icon {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.app-header__menu-icon[hidden] {
    display: none !important;
}

.app-header__icon-link {
    position: relative;
    width: 32px;
    height: 32px;
}

.app-header__character-link {
    width: 40px;
    height: 40px;
}

.app-header__icon-link,
.app-header__character-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    background: transparent;
    color: #1f2937;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.12s ease;
}

.app-header__icon-link:hover,
.app-header__character-link:hover {
    opacity: 0.7;
}

.app-header__icon-link:active,
.app-header__character-link:active {
    opacity: 0.5;
    transform: scale(0.96);
}

.app-header__icon-link:focus-visible,
.app-header__character-link:focus-visible {
    outline: 2px solid #344054;
    outline-offset: 2px;
}

.app-header__icon-image {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.app-header__unread-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #d92d20;
    pointer-events: none;
}

.app-header__character-icon {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.app-header__spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.app-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.app-drawer-backdrop {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1190;
    background: rgba(15, 23, 42, 0.28);
}

.app-drawer {
    position: fixed;
    top: 62px;
    left: 0;
    bottom: 0;
    z-index: 1195;
    width: min(320px, calc(100vw - 32px));
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    background: #ffffff;
    border-right: 1px solid #d7dce3;
}

.app-drawer.is-open {
    transform: translateX(0);
}

.app-drawer__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 14px;
}

.app-drawer__nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    height: 100%;
}

.app-drawer__group {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-drawer__group--secondary {
    margin-top: auto;
    padding-top: 0;
    border-top: none;
    gap: 6px;
}

.app-drawer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 2px;
    color: #111827;
    text-decoration: none;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.app-drawer__link.is-subtle {
    font-size: 13px;
    font-weight: 600;
    color: #475467;
}

.app-drawer__link--has-unread::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #d92d20;
    flex: 0 0 auto;
}

.app-drawer__footer {
    padding-top: 0;
    display: flex;
    justify-content: flex-start;
}

.app-drawer__menu-label {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #98a2b3;
}

.app-drawer__character-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #d7dce3;
    background: #ffffff;
    text-decoration: none;
}

.app-drawer__character-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    body.app-header-enabled {
        padding-top: 52px;
    }

    .app-header__inner {
        min-height: 52px;
        padding: 6px 10px;
    }

    .app-header__menu-button {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .app-header__menu-icon {
        width: 30px;
        height: 30px;
    }

    .app-header__icon-link,
    .app-header__character-link {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .app-header__icon-image {
        width: 18px;
        height: 18px;
    }

    .app-drawer-backdrop {
        top: 52px;
    }

    .app-drawer {
        top: 52px;
    }
}