:root {
    --brand-primary: #1550c6;
    --brand-primary-strong: #0f43a8;
    --brand-primary-soft: rgba(21, 80, 198, 0.14);
    --brand-primary-border: rgba(21, 80, 198, 0.3);
    --brand-primary-shadow: rgba(21, 80, 198, 0.2);
}

* {
    scrollbar-color: var(--brand-primary) #e5e7eb;
}

*::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
}

*:focus {
    outline-color: var(--brand-primary);
}

.customer-navbar {
    background: var(--brand-primary);
    width: 100%;
    display: flex;
    align-items: center;
    padding: 18px 3rem;
    min-height: 62px;
    box-sizing: border-box;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.5rem;
    position: fixed;
    top: 0;
    z-index: 100;
}

.customer-navbar .header-inner,
.customer-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.customer-navbar .header-left,
.customer-navbar-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    min-height: 0;
    margin: 0;
}

.customer-navbar .header-right,
.customer-navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0;
    margin: 0;
}

.customer-navbar .header-title,
.customer-navbar h1,
.customer-navbar h1 a {
    font-size: 1.34rem;
    line-height: 1.2;
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-decoration: none;
}

.customer-navbar h1 {
    display: flex;
    align-items: center;
}

.customer-navbar h1 a {
    display: inline-flex;
    align-items: center;
}

.customer-navbar .header-home-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    margin: 0;
}

.customer-navbar .header-home-link i {
    transform: translateY(-1px);
}

.customer-navbar .powered-by-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    white-space: nowrap;
    margin-top: 0.1rem;
}

.customer-navbar .powered-by-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.customer-navbar .powered-by {
    height: 24px;
    width: auto;
    margin: 0;
    display: block;
}

.customer-navbar .extension-list-btn,
.customer-navbar .back-btn,
.customer-navbar .logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0;
}

.customer-navbar .extension-list-btn:hover,
.customer-navbar .back-btn:hover,
.customer-navbar .logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    color: #fff;
    text-decoration: none;
}

.customer-navbar .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.customer-navbar .user-email {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-block;
}

.customer-navbar .user-info:has(.user-email:empty) {
    width: 0;
    min-width: 0;
    overflow: hidden;
    gap: 0;
    visibility: hidden;
}

.customer-navbar .user-info:has(.user-email:empty) .logout-btn {
    display: none;
}

.header-title,
.header h1,
.header h1 a {
    font-size: 1.26rem;
    line-height: 1.7rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-decoration: none;
}

.header-home-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.powered-by-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    white-space: nowrap;
}

.powered-by-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.powered-by {
    height: 24px;
    width: auto;
    margin: 0;
    display: block;
}

.extension-list-btn,
.back-btn,
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.extension-list-btn:hover,
.back-btn:hover,
.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.user-email {
    color: #fff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .customer-navbar {
        padding: 14px 1rem;
    }

    .customer-navbar .header-inner,
    .customer-navbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-navbar .header-left,
    .customer-navbar-left,
    .customer-navbar .header-right,
    .customer-navbar-right {
        width: 100%;
        min-height: 0;
    }

    .customer-navbar .header-right,
    .customer-navbar-right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .customer-navbar .header-title,
    .customer-navbar h1,
    .customer-navbar h1 a {
        font-size: 1.2rem;
        line-height: 1.35rem;
    }

    .customer-navbar .powered-by {
        height: 20px;
    }
}
