:root {
    --gb-primary: #3b6fd8;
    --gb-primary-hover: #2f5fbd;
    --gb-primary-soft: #eaf0ff;
    --gb-success: #18794e;
    --gb-success-soft: #eaf7ef;
    --gb-warning: #9a5b00;
    --gb-warning-soft: #fff7e6;
    --gb-danger: #b42318;
    --gb-danger-soft: #fff1f0;
    --gb-info: #244a96;
    --gb-info-soft: #eef4ff;
    --gb-neutral: #697586;
    --gb-neutral-soft: #f0f2f4;
    --gb-bg: #f4f6f8;
    --gb-surface: #ffffff;
    --gb-surface-muted: #f8fafb;
    --gb-border: #e2e7ec;
    --gb-border-strong: #d6dce2;
    --gb-text: #1f2937;
    --gb-text-strong: #17212b;
    --gb-muted: #667085;
    --gb-sidebar: #1d2430;
    --gb-sidebar-soft: #283241;
    --gb-sidebar-text: #edf2f7;
    --gb-sidebar-muted: #9aa8b8;
    --gb-radius-sm: 6px;
    --gb-radius-md: 10px;
    --gb-radius-lg: 12px;
    --gb-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --gb-shadow-md: 0 10px 30px rgba(16, 24, 40, .12);
    --gb-sidebar-width: 280px;
    --gb-topbar-height: 64px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.gb-admin-modern {
    margin: 0;
    background: var(--gb-bg);
    color: var(--gb-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}
body.gb-admin-modern a { text-decoration: none; }
.gb-app { min-height: 100vh; }
.gb-app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--gb-sidebar-width);
    display: flex;
    flex-direction: column;
    background: var(--gb-sidebar);
    color: var(--gb-sidebar-text);
    box-shadow: 12px 0 32px rgba(15, 23, 42, .10);
}
.gb-sidebar-brand {
    min-height: 78px;
    display: flex;
    align-items: center;
    padding: 14px 16px 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.gb-sidebar-brand__link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.gb-sidebar-brand__link:hover { color: #fff; }
.gb-sidebar-brand__mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
}
.gb-sidebar-brand__mark--text {
    background: var(--gb-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .05em;
}
.gb-sidebar-brand__copy strong,
.gb-sidebar-brand__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gb-sidebar-brand__copy strong { font-size: 16px; letter-spacing: 0; }
.gb-sidebar-brand__copy small { margin-top: 2px; color: var(--gb-sidebar-muted); font-size: 11px; }
.gb-sidebar-close {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
}
.gb-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.gb-sidebar-section + .gb-sidebar-section { margin-top: 18px; }
.gb-sidebar-section__label {
    margin: 0 8px 8px;
    color: #8290a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.gb-primary-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gb-primary-nav li { margin: 2px 0; }
.gb-primary-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 5px 8px;
    border-radius: 12px;
    color: var(--gb-sidebar-text);
    transition: background .15s ease, transform .15s ease;
}
.gb-primary-nav a:hover,
.gb-primary-nav a:focus {
    background: var(--gb-sidebar-soft);
    color: #fff;
}
.gb-primary-nav li.is-active a {
    background: #eaf0ff;
    color: #244a96;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .12);
}
.gb-nav-symbol {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    color: #aeb9c7;
    font-size: 13px;
    font-weight: 800;
}
.gb-primary-nav li.is-active .gb-nav-symbol {
    background: #d8e4ff;
    color: #315fbd;
}
.gb-primary-nav strong,
.gb-primary-nav small { display: block; }
.gb-primary-nav strong { font-size: 13.5px; font-weight: 650; }
.gb-primary-nav small {
    margin-top: 2px;
    color: var(--gb-sidebar-muted);
    font-size: 10.5px;
    font-weight: 400;
}
.gb-primary-nav li.is-active small { color: #64748b; }
.gb-sidebar-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.gb-sidebar-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    color: #bdc7d2;
    font-size: 11px;
}
.gb-sidebar-footer a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.gb-app-main {
    min-height: 100vh;
    margin-left: var(--gb-sidebar-width);
}
.gb-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--gb-topbar-height);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid var(--gb-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    backdrop-filter: blur(10px);
}
.gb-topbar__toggle {
    display: none;
    min-width: 46px;
    height: 38px;
    border: 1px solid var(--gb-border);
    border-radius: 9px;
    background: #fff;
    color: #344054;
    font-weight: 650;
}
.gb-topbar__crumb {
    color: #7f8a99;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.gb-topbar__title {
    margin-top: 2px;
    color: #26313d;
    font-size: 14px;
    font-weight: 650;
}
.gb-topbar__spacer { flex: 1; }
.gb-user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 4px 7px 4px 4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #344054;
}
.gb-user-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e0e9fb;
    color: #315fbd;
    font-size: 12px;
    font-weight: 800;
}
.gb-user-copy strong,
.gb-user-copy small { display: block; }
.gb-user-copy strong { font-size: 12px; }
.gb-user-copy small { color: #8a94a3; font-size: 9px; }
.gb-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(15, 23, 42, .58);
}
.gb-page-shell {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 28px 48px;
}
@media (max-width: 1050px) {
    .gb-app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.gb-sidebar-open .gb-app-sidebar { transform: translateX(0); }
    body.gb-sidebar-open .gb-mobile-overlay { display: block; }
    .gb-app-main { margin-left: 0; }
    .gb-topbar__toggle,
    .gb-sidebar-close { display: inline-grid; place-items: center; }
}
@media (max-width: 680px) {
    .gb-topbar { padding: 0 14px; }
    .gb-user-copy { display: none; }
    .gb-app-sidebar { width: min(310px, 88vw); }
    .gb-page-shell { padding: 20px 15px 40px; }
}
