:root {
    --pb-bg: #f6f8fb;
    --pb-surface: #ffffff;
    --pb-text: #101828;
    --pb-muted: #667085;
    --pb-line: #e4e7ec;
    --pb-primary: #2563eb;
    --pb-primary-dark: #1d4ed8;
    --pb-primary-soft: #eff6ff;
    --pb-danger: #dc2626;
    --pb-danger-soft: #fef2f2;
    --pb-shadow: 0 12px 35px rgba(16, 24, 40, 0.08);
    --pb-shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
    color: var(--pb-text);
    background: var(--pb-bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

.pb-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(228, 231, 236, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pb-topbar-inner {
    width: 100%;
    max-width: 1180px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.pb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
    letter-spacing: 0;
}

.pb-brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--pb-primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.pb-brand-text {
    font-size: 18px;
}

.pb-menu-scroll {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.pb-menu-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: max-content;
    padding: 4px 0;
}

.pb-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--pb-muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pb-menu-link:hover {
    color: var(--pb-primary);
    background: var(--pb-primary-soft);
}

.pb-menu-link.is-active {
    color: #ffffff;
    background: var(--pb-primary);
}

.pb-user-area {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 700;
}

.pb-user-name {
    max-width: 120px;
    overflow: hidden;
    color: var(--pb-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-login-link,
.pb-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--pb-primary);
    background: var(--pb-primary-soft);
    font-weight: 800;
}

.pb-login-link:hover,
.pb-logout:hover {
    color: #ffffff;
    background: var(--pb-primary);
}

.pb-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px 80px;
}

@media (max-width: 760px) {
    .pb-topbar-inner {
        height: 60px;
        min-height: 60px;
        padding: 0 12px;
        gap: 8px;
    }

    .pb-user-area {
        justify-content: flex-end;
        max-width: 140px;
        gap: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .pb-user-name {
        max-width: 62px;
    }

    .pb-logout {
        min-height: 30px;
        padding: 0 8px;
    }

    .pb-brand-text {
        display: none;
    }

    .pb-menu-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .pb-page {
        padding: 32px 14px 54px;
    }
}
