.admin-topbar {
    box-sizing: border-box;
    min-height: 68px;
    padding: 0 1.25rem;
    border-bottom: 1px solid #dce3ef;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 14px rgba(15, 23, 42, .05);
}

.admin-topbar-title { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1 1 auto; }
.admin-topbar-title strong { color: #14213d; font-size: 1.05rem; letter-spacing: 0; }
.admin-topbar-actions { align-items: center; gap: .6rem; min-width: 0; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }

.admin-topbar-actions .admin-topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--admin-muted, #64748b);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-topbar-actions .admin-topbar-link {
    font-size: 14px;
}

.admin-topbar-actions .admin-topbar-link {
    min-width: 0;
}

.admin-side-section {
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
}

.admin-side-section + .admin-side-section {
    margin-top: 0.35rem;
}

.admin-side-section-title {
    padding: 0.2rem 1.1rem 0.55rem;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[data-mode="dark"] .admin-side-section-title {
    color: rgba(148, 163, 184, 0.92);
}

.admin-topbar-actions .admin-topbar-link:hover,
.admin-topbar-actions .admin-topbar-link:focus-visible {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.025);
    border-color: rgba(22, 163, 74, 0.10);
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
    transform: translateY(-1px);
    text-decoration: none;
}

html[data-mode="dark"] .admin-topbar-actions .admin-topbar-link {
    color: rgba(255, 255, 255, 0.72);
    border-color: transparent;
}

html[data-mode="dark"] .admin-topbar-actions .admin-topbar-link:hover,
html[data-mode="dark"] .admin-topbar-actions .admin-topbar-link:focus-visible {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.05);
    border-color: rgba(74, 222, 128, 0.12);
    transform: translateY(-1px);
}

.admin-store-context-loading {
    color: var(--admin-muted, #64748b);
    font-size: .78rem;
    white-space: nowrap;
}

.admin-store-context-button,
.admin-store-context-card {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    max-width: min(52vw, 680px);
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
    box-shadow: none;
}

.admin-store-context-kicker {
    flex: 0 0 auto;
    padding: .18rem .48rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.admin-store-context-main {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    flex: 1 1 auto;
}

.admin-store-context-name {
    min-width: 0;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    font-size: .875rem;
    font-weight: 800;
}

.admin-store-context-categories {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    flex-wrap: nowrap;
    color: var(--admin-muted, #64748b);
    font-size: .875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-store-category-primary,
.admin-store-category-secondary {
    display: inline-block;
    min-width: 0;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-store-category-primary {
    padding: .18rem .46rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-weight: 800;
    color: #0f172a;
}

.admin-store-category-secondary {
    font-weight: 500;
    color: var(--admin-muted, #64748b);
}

.admin-store-category-separator {
    color: rgba(100, 116, 139, 0.55);
}

.admin-store-context-card:hover,
.admin-store-context-card:focus-visible {
    background: rgba(255,255,255,.72);
    border-color: rgba(22, 163, 74, 0.10);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.05), 0 6px 14px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
    outline: none;
}

html[data-mode="dark"] .admin-store-context-card {
    background: transparent;
    box-shadow: none;
}

html[data-mode="dark"] .admin-store-context-kicker {
    background: rgba(74, 222, 128, 0.14);
    color: rgba(74, 222, 128, .96);
}

html[data-mode="dark"] .admin-store-context-name {
    color: rgba(255,255,255,.96);
}

html[data-mode="dark"] .admin-store-context-categories {
    color: rgba(255,255,255,.72);
}

html[data-mode="dark"] .admin-store-category-primary {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.96);
}

html[data-mode="dark"] .admin-store-category-secondary {
    color: rgba(255,255,255,.76);
}

html[data-mode="dark"] .admin-store-context-card:hover,
html[data-mode="dark"] .admin-store-context-card:focus-visible {
    background: rgba(255,255,255,0.05);
    border-color: rgba(74, 222, 128, 0.12);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.10), 0 6px 14px rgba(0, 0, 0, 0.14);
}

.admin-store-context-button {
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}

.admin-store-context-button:hover,
.admin-store-context-button:focus-visible {
    border-color: rgba(22, 163, 74, 0.10);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.05), 0 6px 14px rgba(15, 23, 42, 0.06);
    background: rgba(255,255,255,.72);
}

html[data-mode="dark"] .admin-store-context-button {
    background: transparent;
    box-shadow: none;
}

html[data-mode="dark"] .admin-store-context-button:hover,
html[data-mode="dark"] .admin-store-context-button:focus-visible {
    border-color: rgba(74, 222, 128, 0.12);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.08), 0 6px 14px rgba(0, 0, 0, 0.14);
    background: rgba(255,255,255,0.05);
}

@media (max-width: 1240px) {
    .admin-store-context-card {
        max-width: min(46vw, 560px);
    }

    .admin-store-context-kicker {
        font-size: .68rem;
    }

    .admin-store-context-name {
        max-width: 12rem;
    }

    .admin-store-category-primary,
    .admin-store-category-secondary {
        max-width: 10rem;
    }
}

.admin-main-frame,
.admin-main-content {
    min-width: 0;
}

.admin-main-content {
    overflow-x: clip;
}

.admin-notification-badge { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #e5484d; color: #fff; font-size: .65rem; font-weight: 700; line-height: 1; }

@media (max-width: 900px) {
    .admin-topbar {
        gap: .5rem;
        padding: .6rem .8rem;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
    }

    .admin-topbar-title {
        flex: 1 1 100%;
        gap: .5rem;
    }

    .admin-topbar-actions {
        flex: 1 1 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: .4rem;
    }

    .admin-store-context {
        display: none;
    }
}

.admin-main-frame,
.admin-main-content {
    min-width: 0;
}

.admin-main-content {
    overflow-x: clip;
}

.admin-notification-menu { position: relative; }
.admin-notification-popover { position: absolute; z-index: 80; top: calc(100% + 12px); right: -8px; width: min(380px, calc(100vw - 24px)); border: 1px solid #dce3ef; border-radius: 8px; background: #fff; box-shadow: 0 16px 36px rgba(15, 23, 42, .18); overflow: hidden; }
.admin-notification-popover-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem .8rem; border-bottom: 1px solid #e7edf5; color: #172033; }
.admin-notification-popover-head button { border: 0; background: transparent; color: #8a97a8; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.admin-notification-list { display: grid; max-height: 320px; overflow: auto; }
.admin-notification-list button { display: grid; width: 100%; gap: .35rem; padding: .85rem 1.1rem; border: 0; color: #29384e; background: #fff; text-align: left; cursor: pointer; font: inherit; border-bottom: 1px solid #edf1f6; font-size: .86rem; line-height: 1.55; }
.admin-notification-list button:hover { background: #f5f8fc; }
.admin-notification-list time { color: #718096; font-size: .78rem; }
.admin-notification-empty { margin: 0; padding: 2rem 1.1rem; color: #7b8797; text-align: center; }
.admin-notification-more { display: block; padding: .9rem 1.1rem; color: #2563eb; font-size: .88rem; font-weight: 700; text-decoration: none; }

.admin-user-avatar {
    overflow: hidden;
}

.admin-user-avatar-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    display: block;
}

.admin-brand-title {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    position: relative;
}

.admin-brand-badge {
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    white-space: nowrap;
    transform: translateY(-2px);
    color: #111827;
    background: #f2c56b;
    border: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: 0 2px 6px rgba(159, 123, 63, 0.28);
}

.admin-sidebar .admin-brand-badge {
    border: 1px solid rgba(255, 255, 255, 0.35);
}

