:root {
    --hub-ink: #172033;
    --hub-muted: #667085;
    --hub-subtle: #98a2b3;
    --hub-line: #e4e7ec;
    --hub-surface: #ffffff;
    --hub-canvas: #f5f7fb;
    --hub-sidebar: #101828;
    --hub-sidebar-soft: #1d2939;
    /* LogBuy brand palette (logbuy-frontend globals.css): primary-700 buttons,
       hover = primary/80 over white, accent-600 pink for focus rings and highlights. */
    --hub-accent: #0718a2;
    --hub-accent-hover: #3946b5;
    --hub-accent-soft: #ebedff;
    --hub-pink: #e53483;
    --hub-success: #079455;
    --hub-warning: #dc6803;
    --hub-danger: #e11d48;
    --hub-radius: 14px;
    --hub-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 8px 24px rgba(16, 24, 40, .04);
}

*, *::before, *::after {
    box-sizing: border-box;
    scrollbar-color: #cbd1dc transparent;
    scrollbar-width: thin;
}

html {
    background: var(--hub-canvas) !important;
}

body.hub-shell {
    color: var(--hub-ink);
    background:
        radial-gradient(circle at 92% 0%, rgba(7, 24, 162, .04), transparent 24rem),
        var(--hub-canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
a,
input,
select,
textarea {
    transition: color .16s ease, background-color .16s ease, border-color .16s ease,
        box-shadow .16s ease, opacity .16s ease, transform .16s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(229, 52, 131, .4) !important;
    outline-offset: 2px;
}

.hub-app {
    min-height: 100vh;
    display: flex;
}

.hub-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 272px;
    height: 100vh;
    flex: 0 0 272px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #d0d5dd;
    background:
        radial-gradient(circle at 15% 0%, rgba(83, 101, 243, .2), transparent 15rem),
        var(--hub-sidebar);
    box-shadow: 12px 0 32px rgba(16, 24, 40, .06);
}

.hub-brand {
    min-height: 76px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.hub-brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: white;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .25), inset 0 1px rgba(255,255,255,.28);
}

.hub-brand-mark svg,
.hub-brand-mark img {
    width: 20px;
    height: 20px;
}

.hub-brand-name {
    color: white;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.015em;
}

.hub-brand-label {
    margin-top: 1px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hub-nav {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px 24px;
}

.hub-nav-group + .hub-nav-group {
    margin-top: 22px;
}

.hub-nav-heading {
    margin: 0 10px 7px;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.hub-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    margin: 2px 0;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 520;
}

.hub-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, .055);
}

.hub-nav-link.is-active {
    color: white;
    border-color: rgba(255,255,255,.055);
    background: linear-gradient(90deg, rgba(83, 101, 243, .24), rgba(83, 101, 243, .1));
    box-shadow: inset 3px 0 #f9539d;
}

.hub-nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #667085;
}

.hub-nav-link:hover .hub-nav-icon,
.hub-nav-link.is-active .hub-nav-icon {
    color: #b5bdfc;
}

.hub-nav-badge {
    margin-left: auto;
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fba7cd;
    background: rgba(229, 52, 131, .22);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.hub-sidebar-footer {
    margin: 0 14px 14px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}

.hub-user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #fedceb;
    background: rgba(229, 52, 131, .22);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.hub-sidebar-user {
    min-width: 0;
    flex: 1;
}

.hub-sidebar-user strong,
.hub-sidebar-user span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-sidebar-user strong {
    color: #f2f4f7;
    font-size: 12px;
    font-weight: 600;
}

.hub-sidebar-user span {
    margin-top: 1px;
    color: #667085;
    font-size: 10px;
}

.hub-signout {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #667085;
}

.hub-signout:hover {
    color: white;
    background: rgba(255,255,255,.07);
}

.hub-signout svg {
    width: 16px;
    height: 16px;
}

.hub-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 76px;
    padding: 12px clamp(20px, 3vw, 42px);
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(228, 231, 236, .9);
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.hub-mobile-menu {
    width: 38px;
    height: 38px;
    display: none;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--hub-line);
    border-radius: 10px;
    color: #475467;
    background: white;
}

.hub-mobile-menu svg {
    width: 20px;
    height: 20px;
}

.hub-page-heading {
    min-width: 0;
    flex: 1;
}

.hub-eyebrow {
    margin-bottom: 1px;
    color: var(--hub-accent);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hub-page-title {
    overflow: hidden;
    color: #101828;
    font-size: 20px;
    font-weight: 670;
    letter-spacing: -.025em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-page-subtitle {
    margin-top: 2px;
    overflow: hidden;
    color: var(--hub-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-top-context {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 11px;
}

.hub-context-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 3px #d1fadf;
}

.hub-main {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 42px);
}

/* Shared admin surfaces */
.hub-main .bg-white.border.border-slate-200.rounded-lg,
.hub-card {
    border-color: var(--hub-line) !important;
    border-radius: var(--hub-radius) !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: var(--hub-shadow) !important;
}

.hub-main input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.hub-main select,
.hub-main textarea {
    min-height: 39px;
    border-color: #d0d5dd !important;
    border-radius: 9px !important;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
}

.hub-main input:hover,
.hub-main select:hover,
.hub-main textarea:hover {
    border-color: #98a2b3 !important;
}

.hub-main input:focus,
.hub-main select:focus,
.hub-main textarea:focus {
    border-color: var(--hub-pink) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 52, 131, .16) !important;
}

.hub-main button.bg-sky-600,
.hub-main a.bg-sky-600 {
    border-radius: 9px !important;
    background: var(--hub-accent) !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 4px 10px rgba(7,24,162,.2);
}

.hub-main button.bg-sky-600:hover,
.hub-main a.bg-sky-600:hover {
    background: var(--hub-accent-hover) !important;
    transform: translateY(-1px);
}

.hub-main button.border-slate-300,
.hub-main a.border-slate-300 {
    border-color: #d0d5dd !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.02);
}

.hub-main button.border-slate-300:hover,
.hub-main a.border-slate-300:hover {
    border-color: #b5bdc9 !important;
    background: #f9fafb !important;
}

.hub-filter-bar {
    margin-bottom: 24px !important;
    padding: 16px;
    display: flex;
    align-items: end;
    gap: 12px;
    border: 1px solid var(--hub-line);
    border-radius: 13px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 1px 2px rgba(16,24,40,.02);
}

.hub-filter-bar label,
.hub-filter-panel label {
    color: #475467 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.hub-filter-panel {
    padding: 16px;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: rgba(255,255,255,.88);
    box-shadow: 0 1px 2px rgba(16,24,40,.02);
}

.hub-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hub-section-label {
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.hub-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid #dce0fe;
    border-radius: 999px;
    color: var(--hub-accent);
    background: var(--hub-accent-soft);
    font-size: 11px;
    font-weight: 650;
}

/* Dashboard */
.hub-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Pending-users tile hidden (no open portal / auto approval) — two tiles fill the row. */
.hub-kpi-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-kpi {
    position: relative;
    min-height: 168px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: rgba(255,255,255,.96);
    box-shadow: var(--hub-shadow);
}

.hub-kpi::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -65px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--kpi-wash, rgba(7,24,162,.06));
}

.hub-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.hub-kpi-label {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.hub-kpi-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--kpi-color, var(--hub-accent));
    background: var(--kpi-bg, var(--hub-accent-soft));
}

.hub-kpi-icon svg {
    width: 19px;
    height: 19px;
}

.hub-kpi-value {
    position: relative;
    z-index: 1;
    margin-top: 13px;
    color: #101828;
    font-size: clamp(28px, 2.3vw, 36px);
    font-weight: 680;
    letter-spacing: -.04em;
    line-height: 1;
}

.hub-kpi-value small {
    color: #667085;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.hub-kpi-meta {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 11px;
}

.hub-kpi-meta svg {
    width: 13px;
    height: 13px;
}

a.hub-kpi:hover {
    border-color: #b5bdfc;
    box-shadow: 0 1px 2px rgba(16,24,40,.03), 0 14px 30px rgba(16,24,40,.08);
    transform: translateY(-2px);
}

.hub-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hub-chart-card {
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
}

.hub-chart-header {
    padding: 18px 20px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hub-chart-header h2 {
    margin: 0 !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.hub-chart-period {
    padding: 4px 8px;
    border-radius: 999px;
    color: #667085;
    background: #f2f4f7;
    font-size: 10px;
    font-weight: 600;
}

.hub-chart-body {
    height: 286px;
    padding: 12px 17px 17px;
}

/* Top-N lists */
.hub-toplist-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-toplist-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 36px;
    padding: 4px 6px;
    border-radius: 9px;
}

.hub-toplist-row:hover {
    background: #f7f8ff;
}

.hub-toplist-row + .hub-toplist-row {
    margin-top: 1px;
}

.hub-toplist-rank {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    color: #667085;
    background: #f2f4f7;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hub-toplist-rank.is-top {
    color: var(--hub-accent);
    background: var(--hub-accent-soft);
}

.hub-toplist-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #344054;
    font-size: 13px;
    font-weight: 520;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-toplist-value {
    flex: 0 0 auto;
    color: #101828;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

/* Data tables */
.hub-table-shell {
    overflow: hidden !important;
}

.hub-table-scroll {
    overflow-x: auto;
}

.hub-table {
    min-width: 860px;
}

.hub-table thead {
    background: #f8f9fc !important;
}

.hub-table thead tr {
    border-color: var(--hub-line) !important;
}

.hub-table th {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    color: #667085 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.hub-table td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.hub-table tbody tr {
    transition: background-color .14s ease, box-shadow .14s ease;
}

.hub-table tbody tr:hover {
    background: #f7f8ff !important;
    box-shadow: inset 3px 0 var(--hub-accent);
}

.hub-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.hub-person-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #dce0fe;
    border-radius: 9px;
    color: var(--hub-accent);
    background: var(--hub-accent-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .02em;
}

.hub-person-name {
    color: #1d2939;
    font-weight: 600;
}

.hub-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px !important;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 10px !important;
    font-weight: 650;
    line-height: 1;
}

.hub-status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.hub-pagination {
    min-height: 38px;
}

.hub-pagination strong {
    color: #344054;
    font-weight: 650;
}

/* Modal and toast polish */
#modal-root {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

#modal {
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(16,24,40,.24) !important;
}

#toast-root > div {
    border-radius: 11px !important;
    box-shadow: 0 16px 30px rgba(16,24,40,.16) !important;
}

.hub-mobile-overlay {
    display: none;
}

/* Standalone authentication */
body.hub-auth {
    min-height: 100%;
    color: var(--hub-ink);
    background: #f7f8fb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hub-auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, .85fr) minmax(520px, 1.15fr);
}

.hub-auth-story {
    position: relative;
    isolation: isolate;
    padding: clamp(36px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: white;
    background: #111827;
}

.hub-auth-story::before,
.hub-auth-story::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

.hub-auth-story::before {
    top: -14rem;
    left: -12rem;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(83,101,243,.5), rgba(7,24,162,.05) 68%);
}

.hub-auth-story::after {
    right: -14rem;
    bottom: -15rem;
    width: 38rem;
    height: 38rem;
    background: radial-gradient(circle, rgba(249,83,157,.2), transparent 67%);
}

.hub-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
    font-weight: 650;
}

.hub-auth-copy {
    max-width: 480px;
    padding: 80px 0;
}

.hub-auth-copy h1 {
    max-width: 430px;
    color: white;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.hub-auth-copy p {
    max-width: 410px;
    margin-top: 22px;
    color: #98a2b3;
    font-size: 15px;
    line-height: 1.7;
}

.hub-auth-footnote {
    color: #667085;
    font-size: 11px;
}

.hub-auth-main {
    padding: 32px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 100% 0, rgba(7,24,162,.05), transparent 26rem),
        #f7f8fb;
}

.hub-auth-card {
    width: 100%;
    max-width: 410px;
}

.hub-auth-card-head {
    margin-bottom: 28px;
}

.hub-auth-kicker {
    margin-bottom: 8px;
    color: var(--hub-accent);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hub-auth-card h2 {
    color: #101828;
    font-size: 28px;
    font-weight: 670;
    letter-spacing: -.035em;
}

.hub-auth-card-head p {
    margin-top: 8px;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.hub-auth-form {
    padding: 28px;
    border: 1px solid var(--hub-line);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 1px 2px rgba(16,24,40,.03), 0 18px 48px rgba(16,24,40,.07);
}

.hub-auth-field + .hub-auth-field {
    margin-top: 18px;
}

.hub-auth-field label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.hub-auth-field input:not([type="checkbox"]) {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: #101828;
    background: white;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
    font-size: 14px;
}

.hub-auth-field input:not([type="checkbox"]):focus {
    border-color: var(--hub-pink);
    outline: none;
    box-shadow: 0 0 0 4px rgba(229,52,131,.14);
}

.hub-auth-button {
    width: 100%;
    min-height: 46px;
    margin-top: 22px;
    border-radius: 10px;
    color: white;
    background: var(--hub-accent);
    box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 15px rgba(7,24,162,.22);
    font-size: 13px;
    font-weight: 650;
}

.hub-auth-button:hover {
    background: var(--hub-accent-hover);
    transform: translateY(-1px);
}

.hub-auth-alert {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.45;
}

.hub-auth-alert.warning { color: #93370d; border-color: #fedf89; background: #fffaeb; }
.hub-auth-alert.error { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.hub-auth-alert.success { color: #067647; border-color: #abefc6; background: #ecfdf3; }

.hub-auth-options {
    margin-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #475467;
    font-size: 12px;
}

.hub-auth-options a,
.hub-auth-options button {
    color: var(--hub-accent);
    font-weight: 600;
}

.hub-auth-check {
    margin-top: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 12px;
}

.hub-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--hub-accent);
}

@media (max-width: 1023px) {
    .hub-auth-layout {
        grid-template-columns: 1fr;
    }

    .hub-auth-story {
        display: none;
    }

    .hub-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-102%);
        transition: transform .22s ease;
        box-shadow: 24px 0 60px rgba(16,24,40,.22);
    }

    body.hub-nav-open {
        overflow: hidden;
    }

    body.hub-nav-open .hub-sidebar {
        transform: translateX(0);
    }

    .hub-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(16,24,40,.46);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        transition: opacity .2s ease, visibility .2s ease;
    }

    body.hub-nav-open .hub-mobile-overlay {
        visibility: visible;
        opacity: 1;
    }

    .hub-mobile-menu {
        display: grid;
    }

    .hub-top-context {
        display: none;
    }

    .hub-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-kpi-grid:not(.hub-kpi-grid-two) .hub-kpi:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .hub-auth-main {
        padding: 28px 18px;
        place-items: start center;
    }

    .hub-auth-card {
        margin-top: 8vh;
    }

    .hub-auth-form {
        padding: 22px;
    }

    .hub-topbar {
        min-height: 68px;
        padding: 10px 16px;
    }

    .hub-page-title {
        font-size: 18px;
    }

    .hub-page-subtitle {
        display: none;
    }

    .hub-main {
        padding: 20px 16px 30px;
    }

    .hub-kpi-grid,
    .hub-chart-grid {
        grid-template-columns: 1fr;
    }

    .hub-kpi,
    .hub-kpi-grid:not(.hub-kpi-grid-two) .hub-kpi:last-child {
        min-height: 144px;
        grid-column: auto;
    }

    .hub-chart-body {
        height: 250px;
    }

    .hub-filter-bar,
    .hub-filter-panel {
        align-items: stretch;
    }

    .hub-filter-bar > div,
    .hub-filter-bar input,
    .hub-filter-bar select,
    .hub-filter-panel form > div,
    .hub-filter-panel input,
    .hub-filter-panel select {
        width: 100% !important;
    }

    .hub-action-bar {
        width: 100%;
    }

    .hub-action-bar > a,
    .hub-action-bar > button {
        flex: 1 1 auto;
        text-align: center;
    }

    .hub-mobile-hide {
        display: none;
    }

    .hub-table {
        min-width: 640px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .hub-sidebar,
    .hub-topbar,
    .hub-mobile-overlay,
    .hub-filter-bar button[type="button"] {
        display: none !important;
    }

    .hub-main {
        max-width: none;
        padding: 0;
    }

    .hub-main .bg-white.border.border-slate-200.rounded-lg,
    .hub-card,
    .hub-kpi {
        box-shadow: none !important;
    }
}
