:root {
    --hub-font: "Inter", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --hub-font-size-xs: 12px;
    --hub-font-size-sm: 13px;
    --hub-font-size-base: 14px;
    --hub-font-size-md: 16px;
    --hub-font-size-lg: 18px;
    --hub-font-size-xl: 20px;
    --hub-font-size-icon-sm: 18px;
    --hub-font-size-icon-md: 20px;
    --hub-font-size-icon-lg: 22px;
    --hub-font-size-icon-xl: 24px;
    --hub-font-size-2xl: 24px;
    --hub-font-size-brand-tablet: 22px;
    --hub-font-size-brand-mobile: 20px;
    --hub-font-size-counter: 30px;
    --hub-font-size-counter-mobile: 25px;
    --hub-font-size-title: 28px;
    --hub-font-size-title-mobile: 24px;
    --hub-line-height-xs: 16px;
    --hub-line-height-sm: 20px;
    --hub-line-height-base: 22px;
    --hub-line-height-md: 24px;
    --hub-line-height-lg: 26px;
    --hub-line-height-xl: 28px;
    --hub-line-height-title: 40px;
    --hub-font-weight-regular: 400;
    --hub-font-weight-medium: 500;
    --hub-font-weight-semibold: 600;
    --hub-font-weight-bold: 700;
    --hub-text-description-size: var(--hub-font-size-sm);
    --hub-text-description-line-height: var(--hub-line-height-base);
    --hub-button-font-size: var(--hub-font-size-base);
    --hub-button-font-weight: var(--hub-font-weight-semibold);
    --hub-link-font-size: var(--hub-font-size-base);
    --hub-link-font-weight: var(--hub-font-weight-medium);
    --hub-badge-font-size: var(--hub-font-size-xs);
    --hub-badge-font-weight: var(--hub-font-weight-semibold);
    --hub-badge-min-height: 24px;
    --hub-badge-padding: 4px 8px;
    --hub-badge-line-height: var(--hub-line-height-xs);
    --hub-badge-radius: var(--hub-radius);
    --hub-badge-gap: 8px;
    --hub-primary: #4827ec;
    --hub-primary-rgb: 72, 39, 236;
    --hub-primary-strong: #371cbf;
    --hub-primary-soft: rgba(var(--hub-primary-rgb), 0.08);
    --hub-danger: #dc2626;
    --hub-danger-rgb: 220, 38, 38;
    --hub-danger-strong: #b91c1c;
    --hub-danger-soft: rgba(var(--hub-danger-rgb), 0.08);
    --hub-body-bg: #f4f6f8;
    --hub-surface: #ffffff;
    --hub-ink: #1e293b;
    --hub-muted: #64748b;
    --hub-muted-soft: #94a3b8;
    --hub-border: rgba(15, 23, 42, 0.1);
    --hub-border-soft: rgba(15, 23, 42, 0.06);
    --hub-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    --hub-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.04);
    --hub-shadow-menu: 0 16px 36px rgba(15, 23, 42, 0.12);
    --hub-radius: 8px;
    --hub-radius-lg: 16px;
    --hub-sidebar-width: 280px;
    --hub-viewport-height: 100dvh;
    --hub-control-height: 40px;
    --hub-control-padding-x: 16px;
    --hub-control-padding-y: 8px;
    --hub-control-font-size: var(--hub-font-size-base);
    --hub-control-line-height: var(--hub-line-height-base);
    --hub-card-padding: 24px;
    --hub-card-gap: 16px;
    --hub-card-header-min-height: 80px;
    --hub-menu-item-font-size: var(--hub-font-size-base);
    --hub-menu-item-line-height: var(--hub-line-height-base);
    --hub-menu-item-min-height: 42px;
    --hub-menu-item-padding: 9px 10px;
    --hub-menu-item-radius: 6px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.hub-navbar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.hub-body {
    margin: 0;
    color: var(--hub-ink);
    background: var(--hub-body-bg);
    font-family: var(--hub-font);
    font-size: var(--hub-font-size-base);
    line-height: 1.5;
    overflow-x: hidden;
}

html.hub-dialog-open,
body.hub-dialog-open {
    overflow: hidden;
}

body.hub-body-dashboard {
    touch-action: pan-x pan-y;
}

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

a:hover {
    text-decoration: none;
}

img,
svg {
    vertical-align: middle;
}

button,
input {
    font: inherit;
}

.hub-body-login::before,
.hub-body-login::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.hub-body-login::before {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(72, 39, 236, 0.88)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.04), transparent);
    z-index: -2;
}

.hub-body-login::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
}

.hub-body-magic {
    background: var(--hub-surface);
}

.hub-body-magic::before,
.hub-body-magic::after {
    content: none;
}

.page {
    min-height: 100vh;
}

.page-wrapper {
    min-width: 0;
}

.container-fluid,
.container-xl {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.container-xl {
    max-width: 1320px;
}

.navbar {
    background: var(--hub-surface);
    /* border-bottom: 1px solid var(--hub-border-soft); */
}

.hub-navbar.navbar-vertical {
    width: var(--hub-sidebar-width);
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-right: 1px solid var(--hub-border-soft);
    border-bottom: 0;
}

.hub-aside-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-right: 24px;
    padding-left: 24px;
}

.hub-aside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.navbar-brand,
.hub-navbar-brand {
    display: flex;
    align-items: center;
    height: auto;
    margin: 0;
    padding: 24px 0;
    min-width: 0;
}

.hub-brand-link,
.hub-login-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-brand-link {
    min-width: 0;
}

.hub-brand-symbol {
    width: 32px;
    height: 32px;
    display: block;
    flex: 0 0 auto;
    color-scheme: only light;
    forced-color-adjust: none;
}

.hub-brand-name,
.hub-login-brand h1 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-2xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: 32px;
    letter-spacing: 0;
    white-space: nowrap;
}

.hub-login-brand h1 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.navbar-toggler {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
    color: var(--hub-ink);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.navbar-toggler-icon {
    position: relative;
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

.hub-aside-collapse {
    width: 100%;
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
}

.navbar-nav,
.hub-aside-nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 8px 0 24px;
    list-style: none;
    overflow: hidden;
}

.hub-aside-nav {
    flex: 1 1 auto;
    min-height: 0;
}

.nav-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hub-nav-logout {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-nav-form {
    width: 100%;
    margin: 0;
}

.hub-nav-button {
    appearance: none;
    font: inherit;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--hub-radius);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-medium);
    color: var(--hub-ink);
    overflow: hidden;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
    will-change: transform;
}

.nav-item.active .nav-link,
.nav-link:hover {
    background: var(--hub-primary-soft);
    color: var(--hub-primary-strong);
}

.nav-link:hover {
    transform: translateX(1px);
}

.nav-link.is-clicking {
    transform: translateX(1px);
    background: rgba(var(--hub-primary-rgb), 0.12);
}

.nav-link.disabled {
    color: var(--hub-muted-soft);
    pointer-events: none;
}

.nav-link-icon {
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}

.nav-link-icon i {
    font-size: var(--hub-font-size-icon-md);
    line-height: 1;
    transition: transform 160ms ease;
}

.nav-link:hover .nav-link-icon i,
.nav-link.is-clicking .nav-link-icon i {
    transform: translateX(1px);
}

.hub-nav-logout .nav-link {
    color: var(--hub-danger);
}

.hub-nav-logout .nav-link:hover,
.hub-nav-logout .nav-link.is-clicking {
    background: var(--hub-danger-soft);
    color: var(--hub-danger-strong);
}

.nav-link-title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge,
.hub-version-badge {
    min-height: var(--hub-badge-min-height);
    padding: var(--hub-badge-padding);
    border-radius: var(--hub-badge-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-sm) !important;
    font-weight: var(--hub-badge-font-weight);
    line-height: var(--hub-badge-line-height);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-aside-nav .badge {
    max-width: 104px;
    color: var(--hub-muted);
    background: rgba(15, 23, 42, 0.04);
}

.page-wrapper > .navbar {
    min-height: 80px;
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom-color: transparent;
}

.page-wrapper > .navbar .container-xl {
    display: flex;
    justify-content: flex-end;
}

.page-wrapper > .navbar .navbar-nav {
    width: auto;
    max-width: none;
    margin-left: auto;
    overflow: visible;
}

.navbar-nav.flex-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
}

.hub-user-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.hub-user-area form {
    margin: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-xs);
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0.06em;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.page-header {
    padding-top: 10px;
}

.page-body {
    padding: 24px 0 48px;
}

.page-title {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-title);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-title);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
}

.row > * {
    width: 100%;
    max-width: 100%;
    padding-right: 8px;
    padding-left: 8px;
}

.row-cards {
    row-gap: 16px;
}

.row-deck > * {
    display: flex;
}

.row-deck > * > .card {
    width: 100%;
}

.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius-lg);
    box-shadow: var(--hub-shadow-soft);
    overflow: hidden;
}

.card-body {
    padding: var(--hub-card-padding);
}

.card-header {
    min-height: var(--hub-card-header-min-height);
    display: flex;
    align-items: center;
    gap: var(--hub-card-gap);
    padding: var(--hub-card-padding);
    border-bottom: 1px solid var(--hub-border-soft);
}

.card-title {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-md);
}

.list-group {
    display: flex;
    flex-direction: column;
}

.list-group-item {
    padding: 16px 24px;
    border-top: 1px solid var(--hub-border-soft);
}

.list-group-flush .list-group-item:first-child {
    border-top: 0;
}

.h2 {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-2xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: 32px;
}

.btn {
    min-height: var(--hub-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--hub-control-padding-y) var(--hub-control-padding-x);
    border: 1px solid transparent;
    border-radius: var(--hub-radius);
    background: transparent;
    color: var(--hub-ink);
    font-size: var(--hub-button-font-size);
    font-weight: var(--hub-button-font-weight);
    line-height: var(--hub-line-height-sm);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: hubButtonLoading 650ms linear infinite;
}

.btn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
}

.btn-icon i {
    font-size: var(--hub-font-size-icon-md);
    line-height: 1;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary {
    border-color: var(--hub-primary);
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-primary-strong));
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--hub-border);
    /* background: var(--hub-surface); */
    color: var(--hub-ink);
}

.btn-outline-secondary:hover {
    border-color: rgba(15, 23, 42, 0.2);
    background: rgba(15, 23, 42, 0.02);
}

.btn-outline-danger,
.hub-logout-btn,
.hub-dashboard-mini-action.is-danger,
.hub-card-app-image-remove,
.hub-card-app-social-remove {
    border-color: rgba(var(--hub-danger-rgb), 0.22);
    color: var(--hub-danger);
    background: transparent;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus-visible,
.hub-logout-btn:hover,
.hub-logout-btn:focus-visible,
.hub-dashboard-mini-action.is-danger:hover,
.hub-dashboard-mini-action.is-danger:focus-visible,
.hub-card-app-image-remove:hover,
.hub-card-app-image-remove:focus-visible,
.hub-card-app-social-remove:hover,
.hub-card-app-social-remove:focus-visible {
    border-color: rgba(var(--hub-danger-rgb), 0.35);
    background: var(--hub-danger-soft);
    color: var(--hub-danger-strong);
}

.form-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-regular);
    line-height: var(--hub-line-height-sm);
}

.hub-required-mark {
    color: var(--hub-danger-strong);
    font-weight: var(--hub-font-weight-bold);
}

.form-control {
    width: 100%;
    min-height: var(--hub-control-height);
    display: block;
    padding: var(--hub-control-padding-y) var(--hub-control-padding-x);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--hub-radius);
    background: #fff;
    color: var(--hub-ink);
    box-shadow: none;
    font-size: var(--hub-control-font-size);
    line-height: var(--hub-control-line-height);
}

.form-control::placeholder {
    color: var(--hub-muted-soft);
}

.form-control:focus {
    border-color: rgba(var(--hub-primary-rgb), 0.42);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.1);
}

.form-control.is-invalid {
    border-color: #c2410c;
    background: rgba(255, 247, 237, 0.9);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 18px;
    background-image: none;
}

.hub-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.hub-magic-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.hub-magic-shell {
    width: min(560px, 100%);
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.hub-login-stage {
    width: min(360px, 100%);
}

.hub-login-card {
    border: 0;
    border-radius: var(--hub-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--hub-shadow);
}

.hub-login-card .card-body {
    padding: 36px 24px;
}

.hub-login-brand {
    margin-bottom: 24px;
}

.hub-magic-brand {
    margin-bottom: 8px;
}

.hub-login-brand > div {
    display: flex;
    align-items: center;
}

.hub-login-form .btn-primary {
    width: 100%;
}

.hub-login-submit.is-loading .hub-login-submit-icon {
    display: none;
}

.hub-field-error {
    min-height: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #b54708;
    font-size: var(--hub-font-size-xs);
    line-height: var(--hub-line-height-xs);
}

.hub-field-error:not(:empty) {
    height: auto;
    min-height: 16px;
    padding-top: 8px;
}

.hub-login-secondary-form {
    margin: 0;
}

.hub-support-link {
    appearance: none;
    display: inline-flex;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hub-primary);
    font-size: var(--hub-link-font-size);
    font-weight: var(--hub-link-font-weight);
    line-height: var(--hub-line-height-md);
    text-decoration: none;
    cursor: pointer;
}

.hub-login-helper {
    margin: 0 0 16px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-sm);
}

.hub-magic-redirect {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-bottom: 0;
}

.hub-magic-redirect-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: var(--hub-badge-padding);
    border-radius: 999px;
    background: var(--hub-primary-soft);
    color: var(--hub-primary);
    font-size: var(--hub-badge-font-size);
    font-weight: var(--hub-badge-font-weight);
    line-height: var(--hub-badge-line-height);
}

.hub-magic-redirect-title {
    margin: 0;
    color: var(--hub-ink);
    max-width: 460px;
    font-size: var(--hub-font-size-title);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-title);
    opacity: 1;
    transition: opacity 220ms ease;
}

.hub-magic-redirect-title.is-fading {
    opacity: 0.26;
}

.hub-magic-redirect-form {
    display: none;
}

.hub-toast-stack {
    position: fixed;
    top: 16px;
    left: 50%;
    width: min(440px, calc(100vw - 32px));
    display: grid;
    gap: 8px;
    transform: translateX(-50%);
    z-index: 1200;
}

.hub-toast {
    width: 100%;
    min-width: 320px;
    max-width: 440px;
    max-height: 220px;
    padding: 16px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    animation: hubToastLife 7s ease-out forwards;
    font-size: var(--hub-font-size-base);
    overflow: hidden;
}

.hub-toast.is-success {
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-primary-strong));
}

.hub-toast.is-error {
    background: linear-gradient(135deg, #c2410c, #9a3412);
}

.hub-toast-title {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--hub-font-weight-semibold);
}

.hub-page-subtitle {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-md);
}

.hub-summary-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 18px;
}

.hub-summary-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 auto;
    gap: 4px;
    align-content: center;
    min-width: 0;
}

.hub-summary-icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-icon-lg);
}

.hub-summary-icon.is-blue {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.hub-summary-icon.is-green {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.hub-summary-icon.is-orange {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.hub-summary-label,
.hub-summary-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-summary-label {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-md);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
}

.hub-summary-meta {
    margin-top: 4px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-xs);
    line-height: var(--hub-line-height-sm);
}

.hub-summary-value {
    flex: 0 0 auto;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-counter);
    font-weight: var(--hub-font-weight-semibold);
    line-height: 1;
    letter-spacing: 0;
}

.hub-dashboard-shell {
    display: grid;
    gap: 20px;
}

.hub-summary-cards {
    row-gap: 20px;
}

.hub-summary-cards > div {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.hub-security-full {
    width: 100%;
    max-width: 100%;
}

.hub-dashboard-alert .card-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    color: #a16207;
    background: rgba(161, 98, 7, 0.08);
}

.hub-dashboard-alert i {
    font-size: var(--hub-font-size-icon-lg);
}

.hub-dashboard-alert p,
.hub-card-description {
    margin: 0;
    color: var(--hub-muted);
    font-size: var(--hub-text-description-size);
    line-height: var(--hub-text-description-line-height);
}

.hub-dashboard-card .card-header {
    align-items: flex-start;
    justify-content: space-between;
}

.hub-dashboard-card .card-header > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.hub-maintenance-card.is-enabled {
    border-color: rgba(var(--hub-danger-rgb), 0.18);
}

.hub-dashboard-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hub-dashboard-actions-bar form {
    margin: 0;
    flex: 0 0 auto;
}

.hub-dashboard-mini-action {
    min-width: 0;
    width: 164px;
    justify-content: center;
}

.hub-dashboard-action-note {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-pulse-card .card-body {
    display: grid;
    gap: 18px;
    padding: 26px;
}

/* Pulso do Hub: dropdowns precisam escapar do card quando abrem para cima. */
.hub-pulse-card,
.hub-pulse-card .card-body,
.hub-pulse-head,
.hub-pulse-filters,
.hub-pulse-filter-field {
    overflow: visible;
}

.hub-pulse-card {
    position: relative;
}

.hub-pulse-card.is-dropdown-open,
.hub-pulse-card:has(.hub-dropdown[open]) {
    z-index: 120;
}

.hub-pulse-card .hub-dropdown[open] {
    z-index: 130;
}

.hub-pulse-card .hub-dropdown-menu {
    z-index: 140;
}

.hub-pulse-head,
.hub-pulse-title-row,
.hub-pulse-legend,
.hub-last-admin,
.hub-widget-head,
.hub-mini-event,
.hub-pulse-cards {
    display: flex;
    align-items: center;
}

.hub-pulse-head {
    justify-content: space-between;
    gap: 18px;
}

.hub-pulse-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
}

.hub-pulse-filters [data-hub-pulse-year][hidden] {
    display: none !important;
}

.hub-pulse-filter-field {
    min-width: 0;
}

.hub-pulse-dropdown {
    min-width: 132px;
}

.hub-pulse-dropdown .hub-dropdown-toggle {
    min-height: var(--hub-control-height);
}

.hub-pulse-filters .btn {
    min-width: 120px;
}

.hub-pulse-title-row {
    flex-wrap: wrap;
    gap: 10px;
}

.hub-pulse-title-row h3,
.hub-widget-head h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-lg);
}

.hub-pulse-head p,
.hub-widget-head p {
    margin: 8px 0 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-dashboard-status {
    display: inline-flex;
    min-height: var(--hub-badge-min-height);
    align-items: center;
    padding: var(--hub-badge-padding);
    border-radius: var(--hub-badge-radius);
    font-size: var(--hub-badge-font-size);
    font-weight: var(--hub-badge-font-weight);
    line-height: var(--hub-badge-line-height);
    text-transform: uppercase;
}

.hub-dashboard-status.is-success,
.hub-widget-icon.is-success {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.hub-dashboard-status.is-warning,
.hub-widget-icon.is-warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.hub-dashboard-status.is-danger {
    color: var(--hub-danger);
    background: var(--hub-danger-soft);
}

.hub-dashboard-status.is-neutral {
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
}

.hub-revenue-value {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-counter);
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0;
    line-height: 1;
}

.hub-pulse-legend {
    flex-wrap: wrap;
    gap: 18px;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
}

.hub-pulse-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hub-pulse-legend i {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.hub-pulse-legend .is-panel {
    background: #2563eb;
}

.hub-pulse-legend .is-public {
    background: #22c55e;
}

.hub-pulse-chart {
    min-width: 0;
    min-height: 260px;
}

.hub-pulse-chart .apexcharts-canvas {
    max-width: 100%;
}

.hub-pulse-chart .apexcharts-legend {
    align-items: center;
    gap: 18px;
}

.hub-pulse-chart .apexcharts-legend-series {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.hub-pulse-chart .apexcharts-legend-text {
    margin-right: 0 !important;
}

.hub-chart-legend-total {
    color: var(--hub-text-muted);
    font-size: 13px;
    font-weight: var(--hub-font-weight-semibold);
    line-height: 1;
}

.hub-chart-grid {
    stroke: rgba(100, 116, 139, 0.18);
    stroke-dasharray: 5 5;
    stroke-width: 1;
}

.hub-chart-fill {
    fill: rgba(var(--hub-primary-rgb), 0.14);
}

.hub-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.hub-chart-line.is-panel {
    stroke: #2563eb;
}

.hub-chart-line.is-public {
    stroke: #22c55e;
}

.hub-pulse-axis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-xs);
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hub-pulse-axis span:last-child {
    text-align: right;
}

.hub-pulse-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hub-pulse-cards article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(248, 250, 252, 0.62);
}

.hub-pulse-cards i {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-icon-md);
}

.hub-pulse-cards span,
.hub-mini-event small {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-xs);
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0.04em;
    line-height: var(--hub-line-height-xs);
    text-transform: uppercase;
}

.hub-pulse-card-value {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-lg);
}

.hub-last-admin {
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
    background: rgba(248, 250, 252, 0.7);
}

.hub-last-admin i {
    color: var(--hub-primary);
    font-size: var(--hub-font-size-icon-md);
}

.hub-dashboard-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hub-dashboard-insights {
    order: 2;
}

.hub-pulse-card {
    order: 1;
}

.hub-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.hub-public-card,
.hub-recent-card {
    grid-column: span 1;
}

.hub-dashboard-compact .card-body {
    display: grid;
    gap: 18px;
}

.hub-billing-card {
    order: -1;
}

.hub-widget-head {
    justify-content: space-between;
    gap: 16px;
}

.hub-widget-head > div {
    min-width: 0;
}

.hub-widget-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--hub-radius);
    font-size: var(--hub-font-size-icon-lg);
}

.hub-kpi-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.hub-kpi-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-kpi-list div:first-child {
    border-top: 0;
}

.hub-kpi-list dt,
.hub-kpi-list dd {
    margin: 0;
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-kpi-list dt {
    color: var(--hub-muted);
}

.hub-kpi-list dd,
.hub-text-strong {
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-progress-list {
    display: grid;
    gap: 16px;
}

.hub-progress-list > div {
    display: grid;
    gap: 8px;
}

.hub-progress-list > div > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-progress-list > div > div span:last-child {
    color: var(--hub-muted);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-progress-list progress {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.16);
}

.hub-progress-list progress::-webkit-progress-bar {
    background: rgba(100, 116, 139, 0.16);
}

.hub-progress-list progress::-webkit-progress-value {
    background: var(--hub-primary);
}

.hub-progress-list progress::-moz-progress-bar {
    background: var(--hub-primary);
}

.hub-progress-list p {
    margin: 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-dashboard-form,
.hub-dashboard-form-grid {
    display: grid;
    gap: 14px;
}

.hub-dashboard-form-grid {
    grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1.4fr);
}

.hub-dashboard-actions {
    display: flex;
    justify-content: flex-end;
}

.hub-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-medium);
}

.hub-toggle-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--hub-primary);
}

.hub-access-chart {
    display: grid;
    gap: 14px;
}

.hub-access-chart-row {
    display: grid;
    gap: 8px;
}

.hub-access-chart-label,
.hub-access-chart-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-access-chart-label span:first-child {
    min-width: 0;
    overflow: hidden;
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-access-chart-label span:last-child {
    flex: 0 0 auto;
    font-weight: var(--hub-font-weight-semibold);
}

.hub-access-chart-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.12);
}

.hub-access-chart-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hub-primary), #0f766e);
}

.hub-access-chart-track .is-w-0 { width: 0; }
.hub-access-chart-track .is-w-10 { width: 10%; }
.hub-access-chart-track .is-w-20 { width: 20%; }
.hub-access-chart-track .is-w-30 { width: 30%; }
.hub-access-chart-track .is-w-40 { width: 40%; }
.hub-access-chart-track .is-w-50 { width: 50%; }
.hub-access-chart-track .is-w-60 { width: 60%; }
.hub-access-chart-track .is-w-70 { width: 70%; }
.hub-access-chart-track .is-w-80 { width: 80%; }
.hub-access-chart-track .is-w-90 { width: 90%; }
.hub-access-chart-track .is-w-100 { width: 100%; }

.hub-access-chart-foot {
    justify-content: flex-start;
    margin-top: 16px;
}

.hub-mini-events {
    display: grid;
}

.hub-mini-event {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px 24px;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-mini-event-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
}

.hub-mini-event-icon.is-security {
    color: var(--hub-danger);
    background: var(--hub-danger-soft);
}

.hub-mini-event-icon.is-admin {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.hub-mini-event-icon.is-system {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
}

.hub-mini-event > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.hub-mini-event > div > span {
    overflow: hidden;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-mini-event time {
    color: var(--hub-muted-soft);
    font-size: var(--hub-font-size-xs);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-xs);
    white-space: nowrap;
}

.hub-inline-link {
    color: var(--hub-primary);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-medium);
    line-height: var(--hub-line-height-base);
    white-space: nowrap;
}

.hub-panel-announcement {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: grid;
    width: min(360px, calc(100vw - 48px));
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-lg);
    color: var(--hub-ink);
    background: var(--hub-surface);
    box-shadow: var(--hub-shadow);
    animation: hub-announcement-in 180ms ease-out both;
}

.hub-panel-announcement[hidden] {
    display: none !important;
}

.hub-panel-announcement.is-closing {
    animation: hub-announcement-out 160ms ease-in both;
}

.hub-panel-announcement-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    color: var(--hub-muted);
    background: var(--hub-surface);
    cursor: pointer;
}

.hub-panel-announcement-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: var(--hub-badge-min-height);
    align-items: center;
    padding: var(--hub-badge-padding);
    border-radius: var(--hub-badge-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-badge-font-size);
    font-weight: var(--hub-badge-font-weight);
    line-height: var(--hub-badge-line-height);
}

.hub-panel-announcement h2 {
    max-width: calc(100% - 40px);
    margin: 0;
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-lg);
}

.hub-panel-announcement p {
    margin: 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-panel-announcement .btn {
    width: fit-content;
}

@keyframes hub-announcement-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hub-announcement-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

.hub-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, auto);
    gap: 8px;
    align-items: end;
    width: 100%;
    max-width: 100%;
}

.hub-filter-grid > *,
.hub-filter-field,
.hub-dropdown,
.hub-activity-filters .form-control {
    min-width: 0;
    max-width: 100%;
}

.hub-filter-card {
    overflow: visible;
}

.hub-filter-card .card-body {
    overflow: visible;
}

.hub-activity-filters .form-control {
    height: var(--hub-control-height);
    min-height: var(--hub-control-height);
    padding-top: 8px;
    padding-bottom: 8px;
    border-color: rgba(15, 23, 42, 0.12);
    border-radius: var(--hub-radius);
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}

.hub-dropdown {
    position: relative;
}

.hub-dropdown-toggle {
    height: var(--hub-control-height);
    min-height: var(--hub-control-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: var(--hub-control-padding-y) var(--hub-control-padding-x);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
    color: var(--hub-ink);
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
    font-size: var(--hub-control-font-size);
    line-height: var(--hub-control-line-height);
    cursor: pointer;
    list-style: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.hub-dropdown-toggle::-webkit-details-marker {
    display: none;
}

.hub-dropdown-toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-dropdown-toggle i {
    flex: 0 0 auto;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-icon-sm);
    line-height: 1;
    transition: transform 140ms ease;
}

.hub-dropdown[open] .hub-dropdown-toggle {
    border-color: rgba(var(--hub-primary-rgb), 0.62);
    box-shadow: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.1);
}

.hub-dropdown[open] .hub-dropdown-toggle i {
    transform: rotate(180deg);
}

.hub-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 100;
    min-width: 100%;
    padding: 8px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.hub-dropdown.is-dropup .hub-dropdown-menu {
    top: auto;
    bottom: calc(100% + 6px);
}

.hub-dropdown-item {
    appearance: none;
    width: 100%;
    min-height: var(--hub-menu-item-min-height);
    display: flex;
    align-items: center;
    padding: var(--hub-menu-item-padding);
    border: 0;
    border-radius: var(--hub-menu-item-radius);
    background: transparent;
    color: var(--hub-ink);
    font: inherit;
    font-size: var(--hub-menu-item-font-size);
    line-height: var(--hub-menu-item-line-height);
    text-align: left;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

.hub-dropdown-item:hover,
.hub-dropdown-item.is-active {
    background: var(--hub-primary-soft);
    color: var(--hub-primary);
}

.hub-filter-actions {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}

.hub-filter-actions .btn {
    flex: 0 1 120px;
    min-width: 0;
    max-width: 100%;
}

.hub-activity-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
}

.hub-activity-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-icon-md);
}

.hub-activity-content {
    min-width: 0;
}

.hub-activity-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.hub-activity-category {
    border: 1px solid transparent;
    font-weight: var(--hub-badge-font-weight);
}

.hub-activity-category.is-auth {
    color: #0369a1;
    background: rgba(3, 105, 161, 0.08);
    border-color: rgba(3, 105, 161, 0.14);
}

.hub-activity-category.is-security {
    color: var(--hub-danger);
    background: var(--hub-danger-soft);
    border-color: rgba(var(--hub-danger-rgb), 0.12);
}

.hub-activity-category.is-system {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.12);
}

.hub-activity-category.is-admin {
    color: #a16207;
    background: rgba(161, 98, 7, 0.1);
    border-color: rgba(161, 98, 7, 0.14);
}

.hub-activity-count {
    color: rgba(30, 41, 59, 0.62);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
    white-space: nowrap;
}

.hub-activity-meta,
.hub-activity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-xs);
    line-height: 18px;
}

.hub-activity-meta span,
.hub-activity-details span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hub-activity-meta i {
    margin-right: 4px;
    color: var(--hub-muted-soft);
}

.hub-activity-meta .hub-activity-actor {
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-activity-meta .hub-activity-actor i {
    color: var(--hub-muted-soft);
}

.hub-activity-detail-label {
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-activity-details {
    padding-top: 12px;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-pagination .btn {
    min-width: 116px;
    padding-right: 18px;
    padding-left: 18px;
}

.hub-pagination .btn i:first-child {
    margin-right: 2px;
}

.hub-pagination .btn i:last-child {
    margin-left: 2px;
}

.btn.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-row {
    flex-direction: row;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.ms-auto {
    margin-left: auto;
}

.me-1 {
    margin-right: 4px;
}

.mt-1 {
    margin-top: 4px;
}

.my-2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 24px;
}

.w-100 {
    width: 100%;
}

.small {
    font-size: var(--hub-font-size-xs);
    line-height: var(--hub-line-height-xs);
}

.fw-bold {
    font-weight: var(--hub-font-weight-semibold);
}

.lh-sm {
    line-height: 1.25;
}

.text-primary {
    color: var(--hub-primary);
}

.text-secondary {
    color: var(--hub-muted);
}

.bg-primary-lt {
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
}

.bg-secondary-lt {
    color: var(--hub-muted);
    background: rgba(15, 23, 42, 0.04);
}

.bg-success-lt {
    color: #047857;
    background: rgba(4, 120, 87, 0.1);
}

@keyframes hubToastLife {
    0% {
        opacity: 0;
        max-height: 220px;
        transform: translateY(-8px) scale(0.98);
    }

    2.5%,
    92% {
        opacity: 1;
        max-height: 220px;
        padding-top: 16px;
        padding-bottom: 16px;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
    }
}

@keyframes hubToastDismiss {
    from {
        opacity: 1;
        max-height: 220px;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        visibility: hidden;
        transform: translateY(-6px) scale(0.98);
    }
}

@keyframes hubButtonLoading {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hubModalIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hubModalOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

@media (min-width: 576px) {
    .d-sm-block {
        display: block;
    }

    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 992px) {
    .hub-navbar.navbar-vertical {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
    }

    .hub-aside-toggler {
        display: none;
    }

    .hub-navbar.navbar-vertical ~ .page-wrapper {
        margin-left: var(--hub-sidebar-width);
    }

    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .hub-summary-cards > .col-lg-3 {
        width: 25%;
    }

    .hub-summary-cards > .col-lg-4 {
        width: 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) and (max-width: 1279.98px) {
    .hub-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-filter-grid > label:first-child {
        grid-column: 1 / -1;
    }

    .hub-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hub-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-filter-grid > label:first-child,
    .hub-filter-actions {
        grid-column: 1 / -1;
    }

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

}

@media (max-width: 991.98px) {
    .hub-dashboard-panels,
    .hub-dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .hub-pulse-head {
        align-items: stretch;
    }

    .hub-navbar.navbar-vertical {
        width: 100%;
        min-height: 0;
        /* position: sticky; */
        top: 0;
        z-index: 50;
    }

    .hub-aside-container {
        min-height: 0;
        padding-right: 16px;
        padding-left: 16px;
    }

    .hub-aside-header {
        min-height: 64px;
    }

    .hub-navbar-brand {
        padding: 12px 0;
    }

    .hub-brand-link {
        gap: 8px;
    }

    .hub-brand-name {
        font-size: var(--hub-font-size-brand-tablet);
        line-height: 32px;
    }

    .hub-aside-collapse {
        max-height: 0;
        flex: 0 0 auto;
        padding-bottom: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: max-height 260ms ease, opacity 180ms ease, transform 220ms ease, padding-bottom 220ms ease, visibility 0s linear 260ms;
    }

    .hub-menu-check:checked ~ .hub-aside-header .navbar-toggler-icon {
        background: transparent;
    }

    .hub-menu-check:checked ~ .hub-aside-header .navbar-toggler-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .hub-menu-check:checked ~ .hub-aside-header .navbar-toggler-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .hub-aside-toggler:hover,
    .hub-aside-toggler.is-clicking {
        color: var(--hub-primary-strong);
        background: var(--hub-primary-soft);
    }

    .hub-aside-toggler.is-clicking {
        transform: scale(0.96);
    }

    .hub-menu-check:checked ~ .hub-aside-collapse {
        max-height: 420px;
        padding-bottom: 16px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: max-height 300ms ease, opacity 200ms ease, transform 240ms ease, padding-bottom 240ms ease, visibility 0s linear 0s;
    }

    .hub-aside-nav {
        padding-top: 8px;
        padding-bottom: 0;
    }

    .nav-link {
        padding-right: 8px;
        padding-left: 8px;
    }

    .page-wrapper > .navbar {
        display: none;
    }

    .hub-filter-actions {
        justify-content: stretch;
    }

    .hub-filter-actions .btn {
        flex: 1 1 120px;
        min-width: 0;
    }

    .hub-pagination {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        justify-items: center;
    }

    .hub-pagination .btn {
        flex: 0 0 48px;
        min-width: 48px;
        width: 48px;
        padding-right: 0;
        padding-left: 0;
    }

    .hub-pagination > .btn:first-child {
        justify-self: start;
    }

    .hub-pagination > .btn:last-child {
        justify-self: end;
    }

    .hub-pagination-label {
        display: none;
    }

    .hub-pagination .btn i:first-child,
    .hub-pagination .btn i:last-child {
        margin: 0;
    }

    .hub-user-area {
        width: 100%;
        justify-content: flex-end;
        padding: 8px 0;
    }

    .page-header {
        padding-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .hub-summary-cards > .col-sm-6,
    .hub-summary-cards > .col-lg-3,
    .hub-summary-cards > .col-lg-4 {
        width: 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .hub-summary-cards > .hub-security-half {
        width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {
    .hub-dashboard-panels,
    .hub-dashboard-form-grid,
    .hub-dashboard-insights,
    .hub-pulse-cards {
        grid-template-columns: 1fr;
    }

    .hub-dashboard-actions-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .hub-dashboard-actions-bar form,
    .hub-dashboard-actions-bar > button {
        width: 100%;
    }

    .hub-dashboard-mini-action {
        width: 100%;
    }

    .hub-dashboard-actions .btn,
    .hub-maintenance-card .btn {
        width: 100%;
    }

    .hub-panel-announcement {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }

    .hub-panel-announcement .btn {
        width: 100%;
    }

    .hub-pulse-card .card-body {
        padding: 18px;
    }

    .hub-pulse-head {
        display: grid;
    }

    .hub-pulse-filters {
        justify-content: stretch;
    }

    .hub-pulse-filters .hub-pulse-filter-field,
    .hub-pulse-filters .btn {
        width: 100%;
    }

    .hub-pulse-dropdown {
        min-width: 0;
        width: 100%;
    }

    .hub-pulse-chart {
        min-height: 220px;
    }

    .hub-last-admin,
    .hub-mini-event {
        align-items: flex-start;
    }

    .hub-mini-event {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hub-mini-event time {
        grid-column: 2;
        justify-self: start;
    }

    .hub-filter-grid {
        grid-template-columns: 1fr;
    }

    .hub-filter-actions {
        justify-content: stretch;
    }

    .hub-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .container-fluid,
    .container-xl {
        padding-right: 16px;
        padding-left: 16px;
    }

    .hub-login-brand h1,
    .hub-brand-name {
        font-size: var(--hub-font-size-brand-mobile);
        line-height: 32px;
    }

    .nav-link {
        gap: 10px;
    }

    .hub-user-area {
        justify-content: space-between;
    }

    .card-body,
    .card-header,
    .list-group-item {
        padding: 16px;
    }

    .hub-summary-card .card-body {
        gap: 10px;
    }

    .hub-summary-label {
        font-size: var(--hub-font-size-base);
        line-height: var(--hub-line-height-sm);
    }

    .hub-summary-meta {
        font-size: var(--hub-font-size-sm);
        line-height: 18px;
    }

    .hub-summary-value {
        font-size: var(--hub-font-size-counter-mobile);
    }

    .hub-activity-item {
        grid-template-columns: 1fr;
    }

    .hub-activity-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: var(--hub-font-size-title-mobile);
        line-height: 32px;
    }

    .hub-toast-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        transform: none;
    }

    .hub-toast {
        min-width: 0;
        max-width: none;
    }
}

/* Server-rendered/no-JS helpers */
.hub-menu-check,
.hub-toast-check {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.hub-toast-check:checked + .hub-toast {
    animation: hubToastDismiss 140ms ease-out forwards;
    pointer-events: none;
}

.hub-toast {
    position: relative;
    padding-right: 48px;
}

.hub-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: var(--hub-radius);
    color: #fff;
    cursor: pointer;
    opacity: 0.86;
}

.hub-toast-close:hover {
    background: rgba(255, 255, 255, 0.14);
    opacity: 1;
}

.hub-user-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: rgba(15, 23, 42, 0.02);
}

.hub-user-chip i {
    color: var(--hub-primary);
    font-size: var(--hub-font-size-icon-md);
}

.hub-topbar-name {
    min-width: 0;
    overflow: hidden;
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-meta-grid {
    display: grid;
    gap: 12px;
}

.hub-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 0;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-meta-row > span {
    min-width: 0;
}

.hub-meta-value {
    min-width: 0;
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
    text-align: right;
    overflow-wrap: anywhere;
}

.hub-meta-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.hub-profile-form {
    display: grid;
    gap: 16px;
}

.hub-profile-form .form-control[readonly] {
    background: rgba(15, 23, 42, 0.03);
    color: var(--hub-muted);
}

.hub-profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.hub-products-section {
    display: grid;
    gap: 16px;
}

.hub-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.hub-product-card {
    min-height: 230px;
    overflow: visible;
}

.hub-product-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 22px;
}

.hub-product-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hub-product-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--hub-primary-soft);
    color: var(--hub-primary);
}

.hub-product-icon i {
    font-size: var(--hub-font-size-icon-xl);
}

.hub-product-title {
    flex: 1 1 auto;
    min-width: 0;
}

.hub-product-title h4,
.hub-product-item-head h4 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-xl);
}

.hub-product-title span {
    display: block;
    overflow: hidden;
    color: var(--hub-muted-soft);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-product-menu {
    flex: 0 0 auto;
}

.hub-product-card-description {
    display: -webkit-box;
    min-height: 44px;
    max-height: 44px;
    margin: 24px 0 0;
    overflow: hidden;
    color: var(--hub-muted);
    font-size: var(--hub-text-description-size);
    line-height: var(--hub-text-description-line-height);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hub-product-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 24px;
}

.hub-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hub-badge-gap);
    min-width: 0;
}

.hub-product-badge {
    font-size: var(--hub-badge-font-size);
    font-weight: var(--hub-badge-font-weight);
    letter-spacing: 0;
}

.hub-product-badge.is-active {
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
}

.hub-product-badge.is-inactive {
    color: var(--hub-muted);
    background: rgba(100, 116, 139, 0.12);
}

.hub-product-badge.is-production {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
}

.hub-product-badge.is-internal {
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
}

.hub-product-users-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-product-users-count i {
    color: var(--hub-muted-soft);
    font-size: var(--hub-font-size-icon-sm);
}

.hub-choice-page {
    min-height: 100vh;
    background: var(--hub-body-bg);
}

.hub-choice-topbar {
    background: transparent;
}

.hub-choice-topbar-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: none;
}

.hub-choice-brand {
    padding: 12px 0;
    gap: 12px;
}

.hub-choice-header p {
    margin: 0 0 6px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-md);
}

.hub-choice-greeting {
    margin: 0 0 8px;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-title);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-title);
}

.hub-choice-helper {
    max-width: 720px;
    margin: 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-md);
    line-height: var(--hub-line-height-md);
}

.hub-choice-body {
    padding-top: 24px;
}

.hub-choice-user-name {
    display: inline-block;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-medium);
    line-height: var(--hub-line-height-base);
}

.hub-choice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-choice-actions form {
    margin: 0;
}

.hub-choice-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(161, 98, 7, 0.16);
    border-radius: var(--hub-radius);
    background: rgba(253, 224, 71, 0.24);
    color: #713f12;
    font-weight: var(--hub-font-weight-semibold);
}

.hub-choice-alert i {
    font-size: var(--hub-font-size-icon-lg);
}

.hub-choice-alert-support {
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(253, 230, 138, 0.34);
}

.hub-choice-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hub-choice-product-card {
    min-height: 210px;
}

.hub-choice-product-card.is-locked {
    opacity: 0.72;
}

.hub-choice-product-card .card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 22px;
}

.hub-choice-product-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.hub-choice-product-head > div {
    min-width: 0;
    padding-right: 118px;
}

.hub-choice-product-head h2 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-xl);
}

.hub-choice-product-head .badge {
    position: absolute;
    top: 22px;
    right: 22px;
}

.hub-choice-product-card p {
    display: -webkit-box;
    min-height: 56px;
    margin: 28px 0 24px;
    overflow: hidden;
    color: var(--hub-muted);
    font-size: var(--hub-text-description-size);
    line-height: var(--hub-text-description-line-height);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hub-choice-product-card form,
.hub-choice-product-card .btn {
    width: 100%;
    margin-top: auto;
}

.hub-choice-product-card .btn[disabled] {
    cursor: not-allowed;
    opacity: 0.72;
}

.hub-maintenance-copy {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.hub-maintenance-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    font-size: 13px;
    color: var(--hub-muted);
    font-weight: var(--hub-font-size-base);
    text-transform: uppercase;
    letter-spacing: 0;
}

.hub-maintenance-message {
    margin: 0;
    color: var(--hub-ink);
    font-size: 24px;
    font-weight: var(--hub-font-weight-semibold);
    line-height: 1.14;
}

.hub-maintenance-note {
    margin: 0;
    color: var(--hub-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hub-maintenance-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.hub-product-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.hub-product-actions form {
    display: flex;
}

.hub-product-actions .btn,
.hub-product-actions form {
    width: 100%;
}

.btn-ghost-secondary {
    border-color: transparent;
    background: transparent;
    color: var(--hub-muted);
}

.btn-ghost-secondary:hover {
    border-color: transparent;
    background: var(--hub-primary-soft);
    color: var(--hub-primary);
}

.hub-product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.hub-product-description {
    grid-column: 1 / -1;
}

.hub-users-section {
    display: grid;
    gap: 16px;
}

.hub-users-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hub-users-list-header h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-lg);
}

.hub-users-list-header span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-users-list-header .hub-users-count {
    color: rgba(30, 41, 59, 0.62);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
    white-space: nowrap;
}

.hub-users-table-card {
    overflow: visible;
}

.hub-user-filter-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, auto);
}

.hub-users-table-head,
.hub-users-table-row {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(210px, 0.95fr) minmax(150px, 0.7fr) minmax(120px, 0.55fr) 64px;
    align-items: center;
    gap: 24px;
}

.hub-users-table-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--hub-border-soft);
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-users-table-head span:last-child {
    text-align: right;
}

.hub-users-table-head span:nth-child(2),
.hub-users-table-head span:nth-child(3),
.hub-users-table-head span:nth-child(4) {
    text-align: left;
}

.hub-users-table-body {
    overflow: visible;
}

.hub-users-table-row {
    min-height: 118px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--hub-border-soft);
    overflow: visible;
}

.hub-users-table-row:last-child {
    border-bottom: 0;
}

.hub-users-user-cell,
.hub-users-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.hub-user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #69707d;
    color: #fff;
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.hub-user-avatar i {
    position: absolute;
    right: 3px;
    bottom: 5px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--hub-surface);
    border-radius: 50%;
    background: #22c55e;
}

.hub-table-primary {
    display: block;
    overflow: hidden;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-base);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-users-user-cell .hub-user-name {
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-users-user-cell span:not(.hub-table-primary),
.hub-users-product-cell span:not(.hub-table-primary) {
    display: block;
    overflow: hidden;
    color: var(--hub-muted-soft);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-regular);
    line-height: var(--hub-line-height-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-users-product-cell i {
    flex: 0 0 auto;
    color: var(--hub-muted-soft);
    font-size: var(--hub-font-size-icon-sm);
}

.hub-users-due-cell {
    display: flex;
    flex-wrap: wrap;
    justify-items: start;
    gap: 8px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-users-status-cell {
    display: flex;
    justify-content: flex-start;
}

.hub-user-status-inline {
    display: none;
}

@media (min-width: 1200px) {
    .hub-users-product-cell,
    .hub-users-due-cell,
    .hub-users-status-cell {
        justify-content: left;
    }

    .hub-users-product-cell {
        text-align: left;
    }
}

.hub-users-actions-cell {
    display: flex;
    justify-content: flex-end;
    overflow: visible;
}

.hub-user-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-user-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.hub-user-card-head > div {
    min-width: 0;
}

.hub-user-card-head h4 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-lg);
}

.hub-user-card-head span {
    display: block;
    overflow: hidden;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-user-card-head .badge {
    flex: 0 0 auto;
}

.hub-user-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hub-badge-gap);
}

.hub-user-badge.is-active,
.hub-user-badge.is-em_dia {
    color: #047857;
    background: rgba(4, 120, 87, 0.1);
    border: 0;
}

.hub-user-badge.is-vencendo {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 0;
}

.hub-user-badge.is-vencido {
    color: var(--hub-danger);
    background: var(--hub-danger-soft);
    border: 0;
}

.hub-user-badge.is-inactive,
.hub-user-badge.is-suspended,
.hub-user-badge.is-suspenso {
    color: var(--hub-muted);
    background: rgba(100, 116, 139, 0.12);
    border: 0;
}

.hub-user-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-user-card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-user-card-meta i {
    margin-right: 6px;
    color: var(--hub-muted-soft);
}

.hub-user-products-line {
    display: -webkit-box;
    min-height: 22px;
    margin: 0;
    overflow: hidden;
    color: var(--hub-muted);
    font-size: var(--hub-text-description-size);
    line-height: var(--hub-text-description-line-height);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hub-user-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.hub-user-actions form,
.hub-user-actions .btn {
    width: 100%;
}

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

.hub-user-note,
.hub-user-products-field {
    grid-column: 1 / -1;
}

.hub-user-products-field {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
}

.hub-user-products-field legend {
    padding: 0 6px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-sm);
}

.hub-user-products-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hub-user-product-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--hub-ink);
}

.hub-user-product-check span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-action-menu {
    position: relative;
    z-index: 5;
}

.hub-action-menu[open] {
    z-index: 140;
}

.hub-action-menu summary {
    list-style: none;
}

.hub-action-menu summary::-webkit-details-marker {
    display: none;
}

.hub-action-menu-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 150;
    width: 210px;
    padding: 8px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
    box-shadow: var(--hub-shadow-menu);
}

.hub-action-menu.is-dropup .hub-action-menu-list {
    top: auto;
    bottom: calc(100% + 6px);
}

.hub-action-menu-list form {
    margin: 0;
}

.hub-action-menu-list button {
    width: 100%;
    display: block;
    min-height: var(--hub-menu-item-min-height);
    padding: var(--hub-menu-item-padding);
    border: 0;
    border-radius: var(--hub-menu-item-radius);
    background: transparent;
    color: var(--hub-ink);
    font: inherit;
    font-size: var(--hub-menu-item-font-size);
    line-height: var(--hub-menu-item-line-height);
    text-align: left;
    cursor: pointer;
}

.hub-action-menu-list button:hover {
    background: var(--hub-primary-soft);
    color: var(--hub-primary);
}

.hub-action-menu-list button.is-danger {
    color: var(--hub-danger);
}

.hub-action-menu-list button.is-danger:hover,
.hub-action-menu-list button.is-danger:focus-visible {
    background: var(--hub-danger-soft);
    color: var(--hub-danger-strong);
}

.hub-muted-note {
    margin: 0;
    color: var(--hub-muted);
}

.hub-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hub-session-main {
    min-width: 0;
}

.hub-session-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hub-session-name {
    display: block;
    min-width: 0;
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-security-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.hub-security-action .btn {
    width: auto;
}

.hub-confirm-dialog,
.hub-modal-dialog {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--hub-radius-lg);
    color: var(--hub-ink);
    background: var(--hub-surface);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    opacity: 0;
    overflow: hidden;
    transform: scale(0.96);
}

/* Evita o contorno azul nativo aplicado pelo navegador quando o <dialog> recebe foco programático ao abrir.
   O foco visual dos controles internos continua preservado. */
.hub-confirm-dialog:focus,
.hub-confirm-dialog:focus-visible,
.hub-modal-dialog:focus,
.hub-modal-dialog:focus-visible {
    outline: 0;
}

.hub-modal-dialog {
    width: min(680px, calc(100vw - 32px));
}

.hub-whatsapp-dialog {
    width: min(560px, calc(100vw - 32px));
}

.hub-confirm-dialog[open],
.hub-modal-dialog[open] {
    animation: hubModalIn 160ms ease-out forwards;
}

.hub-confirm-dialog.is-closing,
.hub-modal-dialog.is-closing {
    animation: hubModalOut 130ms ease-in forwards;
}

.hub-confirm-dialog::backdrop,
.hub-modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
}

.hub-confirm-box {
    max-height: calc(100dvh - 32px);
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hub-modal-box {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}

.hub-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--hub-border-soft);
}

.hub-modal-header h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-xl);
}

.hub-modal-header p {
    margin: 4px 0 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hub-modal-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 24px;
}

.hub-whatsapp-user-card {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: rgba(15, 23, 42, 0.02);
}

.hub-whatsapp-user-card > div:first-child span {
    display: block;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-whatsapp-user-card > div:first-child .hub-table-primary {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-whatsapp-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hub-badge-gap);
    align-items: center;
}

.hub-whatsapp-meta {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
}

.hub-whatsapp-options {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.hub-whatsapp-option {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
    color: var(--hub-ink);
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.hub-whatsapp-option:has(input:checked) {
    border-color: rgba(var(--hub-primary-rgb), 0.42);
    background: rgba(var(--hub-primary-rgb), 0.03);
    box-shadow: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.08);
}

.hub-whatsapp-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--hub-primary);
}

.hub-whatsapp-option span {
    min-width: 0;
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
}

.hub-whatsapp-preview textarea {
    min-height: 92px;
    resize: vertical;
}

.btn-whatsapp {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

@media (min-width: 768px) and (max-width: 1439.98px) {
    .hub-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hub-dashboard-insights .hub-dashboard-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) and (max-width: 1439.98px) {
    .hub-users-table-head,
    .hub-users-table-row {
        grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.9fr) minmax(140px, 0.7fr) minmax(110px, 0.55fr) 52px;
        gap: 16px;
    }
}

@media (max-width: 1199.98px) {
    .hub-users-table-head {
        display: none;
    }

    .hub-users-table-row {
        grid-template-columns: 1fr auto;
        gap: 16px;
        min-height: 0;
        padding: 20px;
    }

    .hub-users-user-cell {
        grid-column: 1 / 2;
    }

    .hub-users-actions-cell {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: start;
    }

    .hub-users-product-cell {
        grid-column: 1 / -1;
        padding-left: 80px;
    }

    .hub-users-due-cell {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--hub-badge-gap);
        padding-left: 80px;
    }

    .hub-users-status-cell {
        display: none;
    }

    .hub-user-status-inline {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .hub-products-grid,
    .hub-users-grid {
        grid-template-columns: 1fr;
    }

    .hub-choice-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hub-users-list-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .hub-choice-page {
        min-height: 100vh;
    }

    .hub-choice-actions {
        width: auto;
        align-items: center;
        flex-direction: row;
    }

    .hub-choice-actions .btn,
    .hub-choice-actions form {
        width: auto;
    }

    .hub-choice-alert {
        align-items: flex-start;
    }

    .hub-choice-greeting {
        font-size: var(--hub-font-size-title-mobile);
        line-height: 32px;
        max-width: 300px;
    }

    .hub-choice-helper {
        font-size: var(--hub-font-size-md);
        line-height: var(--hub-line-height-md);
    }

    .hub-magic-shell {
        gap: 14px;
    }

    .hub-magic-redirect-title {
        font-size: var(--hub-font-size-title-mobile);
        line-height: 32px;
    }

    .hub-maintenance-message {
        font-size: 22px;
    }

    .hub-maintenance-note {
        font-size: 14px;
    }
}

.hub-confirm-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
}

.hub-confirm-icon i {
    font-size: var(--hub-font-size-icon-xl);
}

.hub-confirm-content h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-xl);
}

.hub-confirm-content p {
    margin: 8px 0 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-confirm-challenge {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.hub-confirm-challenge .form-control.is-invalid {
    border-color: var(--hub-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.hub-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 575.98px) {
    .hub-user-chip {
        display: none;
    }

    .hub-session-item {
        align-items: flex-start;
    }

    .hub-security-action {
        justify-content: stretch;
    }

    .hub-security-action .btn {
        width: 100%;
    }

    .hub-meta-row {
        align-items: flex-start;
    }

    .hub-meta-row > span {
        flex: 0 0 120px;
    }

    .hub-meta-value {
        flex: 1 1 auto;
    }

    .hub-profile-actions {
        justify-content: stretch;
    }

    .hub-profile-actions .btn {
        width: 100%;
    }

    .hub-products-header {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-products-header .btn {
        width: 100%;
    }

    .hub-product-card .card-body {
        min-height: 220px;
        padding: 20px;
    }

    .hub-product-title h4 {
        font-size: var(--hub-font-size-lg);
        line-height: var(--hub-line-height-lg);
    }

    .hub-product-card-description {
        min-height: 44px;
        max-height: 44px;
        font-size: var(--hub-text-description-size);
        line-height: var(--hub-text-description-line-height);
    }

    .hub-product-form-grid {
        grid-template-columns: 1fr;
    }

    .hub-product-actions {
        grid-template-columns: 1fr;
    }

    .hub-product-actions form,
    .hub-product-actions .btn {
        width: 100%;
    }

    .hub-user-filter-grid,
    .hub-user-form-grid,
    .hub-user-card-meta,
    .hub-user-products-checks,
    .hub-user-actions {
        grid-template-columns: 1fr;
    }

    .hub-users-table-row {
        padding: 18px 16px;
    }

    .hub-user-avatar {
        width: 40px;
        height: 40px;
    }

    .hub-users-product-cell,
    .hub-users-due-cell {
        padding-left: 54px;
    }

    .hub-modal-header,
    .hub-modal-body {
        padding: 16px;
    }

    .hub-modal-dialog {
        width: calc(100vw - 24px);
        /* height: calc(100dvh - 24px); */
        max-height: calc(100dvh - 24px);
    }

    .hub-modal-box {
        height: 100%;
        max-height: none;
    }

    .hub-modal-header,
    .hub-modal-actions {
        flex: 0 0 auto;
    }

    .hub-modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hub-modal-actions {
        flex-direction: column-reverse;
        padding: 0 16px 16px;
    }

    .hub-modal-actions .btn {
        width: 100%;
    }

    .hub-confirm-actions {
        flex-direction: column-reverse;
    }

    .hub-confirm-actions .btn {
        width: 100%;
    }
}

.hub-kpi-list .hub-kpi-danger dt,
.hub-kpi-list .hub-kpi-danger dd {
    color: var(--hub-danger);
}

/* Link App / Encurtador de links */
.hub-product-workspace .page-header .row {
    align-items: center;
}

.hub-product-kicker {
    margin: 0 0 6px;
    color: var(--hub-primary);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hub-link-app-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.hub-link-app-summary-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

.hub-link-app-summary-card span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
}

.hub-link-app-summary-card strong {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-2xl);
    font-weight: var(--hub-font-weight-bold);
}


.hub-invoice-summary-due {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.hub-invoice-summary-due .badge {
    flex: 0 0 auto;
}


.hub-user-invoices-summary .hub-link-app-summary-card .card-body {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-content: start;
    gap: 6px;
    padding: 20px 24px;
}

.hub-user-invoices-summary .hub-link-app-summary-card span,
.hub-user-invoices-summary .hub-link-app-summary-card strong {
    min-width: 0;
}

.hub-user-invoices-summary .hub-link-app-summary-card strong {
    font-size: var(--hub-font-size-xl);
    line-height: var(--hub-line-height-xl);
    overflow-wrap: anywhere;
}

.hub-invoice-summary-heading {
    display: flex;
    align-items: center;
    gap: var(--hub-badge-gap);
    color: var(--hub-muted);
    font-size: var(--hub-font-size-base);
    line-height: var(--hub-line-height-base);
}

.hub-invoice-summary-heading > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-invoice-summary-heading .badge {
    flex: 0 0 auto;
}

.hub-link-app-card {
    overflow: hidden;
}

.hub-link-app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--hub-border-soft);
}

.hub-link-app-card-header h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-link-app-card-header p {
    margin: 4px 0 0;
    color: var(--hub-muted);
}

.hub-link-app-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 180px;
    padding: 32px;
    color: var(--hub-muted);
    text-align: center;
}

.hub-link-app-empty i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--hub-radius-lg);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-icon-xl);
}

.hub-link-app-list {
    display: grid;
}

.hub-link-app-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--hub-border-soft);
}

.hub-link-app-item:last-child {
    border-bottom: 0;
}

.hub-link-app-item-main {
    min-width: 0;
}

.hub-link-app-item-main h4 {
    margin: 0 0 6px;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-user-invoices-history-card .hub-link-app-item-main h4 {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hub-user-invoices-history-card .hub-link-app-item-main h4 span {
    display: none;
    font-weight: var(--hub-font-weight-regular);
}

@media (max-width: 767.98px) {
    .hub-choice-page .hub-user-invoices-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-choice-page .hub-user-invoices-summary .hub-link-app-summary-card {
        grid-column: auto;
    }

    .hub-choice-page .hub-user-invoices-summary .hub-link-app-summary-card .card-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        justify-content: start;
        align-items: initial;
    }

    .hub-choice-page .hub-user-invoices-summary .hub-link-app-summary-card span {
        max-width: none;
    }

    .hub-invoice-summary-heading {
        max-width: 100%;
        min-width: 0;
    }

    .hub-user-invoices-history-card .hub-link-app-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .hub-user-invoices-history-card .hub-link-app-item-meta {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
    }
}

.hub-link-app-item-main a {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    color: var(--hub-primary);
    font-weight: var(--hub-font-weight-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-link-app-item-main p {
    max-width: 100%;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--hub-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-link-app-item-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hub-link-app-item-meta span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    white-space: nowrap;
}

.hub-short-link-dialog {
    width: min(560px, calc(100vw - 32px));
}

.hub-short-link-form-grid {
    display: grid;
    gap: 16px;
}

/* Link App: fixed public prefix inside short-link fields. */
.hub-short-link-slug-control {
    min-height: var(--hub-control-height);
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--hub-radius);
    background: #fff;
    box-shadow: none;
}

.hub-short-link-slug-control:focus-within {
    border-color: rgba(var(--hub-primary-rgb), 0.42);
    box-shadow: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.1);
}

.hub-short-link-slug-prefix {
    flex: 0 0 auto;
    padding-left: var(--hub-control-padding-x);
    padding-right: 4px;
    color: var(--hub-muted);
    font-size: var(--hub-control-font-size);
    line-height: var(--hub-control-line-height);
    white-space: nowrap;
}

.hub-short-link-slug-control .form-control {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    padding-left: 0;
    box-shadow: none;
}

.hub-short-link-slug-control .form-control:focus {
    border-color: transparent;
    box-shadow: none;
}

/* WhatsApp fields: fixed + prefix and digit-only visual input. */
.hub-whatsapp-control {
    min-height: var(--hub-control-height);
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--hub-radius);
    background: #fff;
    box-shadow: none;
}

.hub-whatsapp-control:focus-within {
    border-color: rgba(var(--hub-primary-rgb), 0.42);
    box-shadow: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.1);
}

.hub-whatsapp-prefix {
    min-height: var(--hub-control-height);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 12px 0 var(--hub-control-padding-x);
    color: var(--hub-muted);
    font-size: var(--hub-control-font-size);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-control-line-height);
    user-select: none;
}

.hub-whatsapp-control .hub-whatsapp-number {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    padding-left: 0;
    box-shadow: none;
}

.hub-whatsapp-control .hub-whatsapp-number:focus {
    border-color: transparent;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .hub-link-app-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hub-link-app-card-header,
    .hub-link-app-item {
        grid-template-columns: 1fr;
    }

    .hub-link-app-card-header {
        align-items: stretch;
    }

    .hub-link-app-card-header .btn {
        width: 100%;
    }

    .hub-link-app-item-meta {
        justify-content: space-between;
    }
}

[data-hub-copy].is-copied {
    border-color: rgba(var(--hub-primary-rgb), 0.28);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
}

.hub-field-hint {
    display: block;
    margin-top: 6px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-xs);
    line-height: 1.45;
}

.hub-short-link-form-full {
    grid-column: 1 / -1;
}


.hub-short-link-share-description {
    margin-top: 8px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
}


/* Product access/user pill: keep radius aligned with the Hub design system. */
.hub-product-user-pill {
    border-radius: var(--hub-radius);
}

/* Link App refinements: cards, pagination, deleted modal and mobile consistency. */
.hub-link-app-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-link-app-summary-action {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.hub-link-app-summary-action:hover,
.hub-link-app-summary-action:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.1), var(--hub-shadow-card);
}

.hub-link-app-summary-action .card-body {
    position: relative;
}

.hub-link-app-summary-indicator {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-icon-base);
}

.hub-link-app-item-actions,
.hub-link-app-item-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hub-link-app-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-link-app-pagination span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    text-align: center;
}

.hub-link-app-pagination .btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.hub-link-app-deleted-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hub-link-app-deleted-count {
    min-width: 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
    white-space: nowrap;
}

.hub-link-app-deleted-list {
    display: grid;
    gap: 10px;
}

.hub-link-app-deleted-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hub-border-soft);
}

.hub-link-app-deleted-item:last-child {
    border-bottom: 0;
}

.hub-link-app-deleted-item strong,
.hub-link-app-deleted-item span,
.hub-link-app-deleted-item small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-link-app-deleted-item strong {
    color: var(--hub-ink);
}

.hub-link-app-deleted-item span,
.hub-link-app-deleted-item small {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
}

@media (max-width: 991.98px) {
    .hub-link-app-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hub-link-app-card-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hub-link-app-card-header .btn,
    .hub-link-app-new-btn {
        width: auto;
        flex: 0 0 auto;
    }

    .hub-link-app-item {
        grid-template-columns: 1fr;
    }

    .hub-link-app-item-meta {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .hub-link-app-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-link-app-pagination .btn {
        width: 100%;
        justify-content: center;
    }
    .hub-link-app-deleted-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-link-app-deleted-toolbar .btn {
        width: 100%;
    }


    .hub-link-app-deleted-item {
        grid-template-columns: 1fr auto;
    }
}

/* Client access view refinements */
.hub-choice-body .container-xl {
    display: grid;
    gap: 18px;
}

.hub-choice-payment-alert {
    justify-content: space-between;
}

.hub-choice-payment-alert > span {
    min-width: 0;
    flex: 1 1 auto;
}

.hub-choice-alert-actions {
    flex: 0 0 auto;
}

.hub-choice-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-choice-product-form {
    min-width: 0;
    margin: 0;
}

.hub-choice-product-button {
    appearance: none;
    width: 100%;
    min-height: 100px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--hub-border-soft);
    color: var(--hub-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.hub-choice-product-button:hover,
.hub-choice-product-button:focus-visible {
    outline: 0;
    transform: translateY(-3px);
}

.hub-choice-product-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-font-size-icon-xl);
}

.hub-choice-product-copy {
    display: grid;
    min-width: 0;
}

.hub-choice-product-copy strong {
    overflow: hidden;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-xl);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-choice-product-copy small,
.hub-choice-product-arrow {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-choice-product-arrow {
    font-size: var(--hub-font-size-icon-md);
}

.hub-choice-profile-dialog,
.hub-choice-payment-dialog {
    width: min(620px, calc(100vw - 32px));
}

.hub-choice-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: rgba(15, 23, 42, 0.02);
}

.hub-choice-profile-avatar {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: #69707d;
    font-weight: var(--hub-font-weight-semibold);
}

.hub-choice-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-choice-profile-head strong,
.hub-choice-profile-head span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-choice-profile-head strong {
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-choice-profile-head span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
}

.hub-choice-profile-form-grid {
    margin-bottom: 20px;
}

.hub-choice-profile-full,
.hub-choice-products-row {
    grid-column: 1 / -1;
}

.hub-choice-profile-finance {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: rgba(15, 23, 42, 0.02);
}

.hub-choice-profile-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.hub-choice-profile-products span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: var(--hub-badge-padding);
    border-radius: var(--hub-badge-radius);
    color: var(--hub-primary);
    background: var(--hub-primary-soft);
    font-size: var(--hub-badge-font-size);
    font-weight: var(--hub-badge-font-weight);
    line-height: var(--hub-badge-line-height);
}

.hub-choice-payment-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: rgba(15, 23, 42, 0.02);
}

.hub-choice-payment-summary strong {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-choice-payment-summary span:last-child {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
}

.hub-payment-grid {
    display: grid;
    gap: 10px;
}

.hub-payment-grid > div {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--hub-border-soft);
}

.hub-payment-grid > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.hub-payment-grid span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-payment-grid strong {
    min-width: 0;
    color: var(--hub-ink);
    overflow-wrap: anywhere;
}

.hub-payment-pix-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
}

.hub-payment-pix-row span,
.hub-payment-pix-row strong {
    grid-column: 1;
}

.hub-payment-pix-row .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
}

@media (max-width: 991.98px) {
    .hub-choice-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hub-choice-payment-alert {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-choice-alert-actions,
    .hub-choice-alert-actions .btn {
        width: 100%;
    }

    .hub-choice-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hub-choice-product-button {
        min-height: auto;
        padding: 16px;
    }

    .hub-choice-product-copy strong {
        font-size: var(--hub-font-size-lg);
        line-height: var(--hub-line-height-lg);
    }

    .hub-choice-profile-products {
        justify-content: flex-start;
    }

    .hub-choice-products-row {
        display: grid;
    }

    .hub-payment-pix-row {
        grid-template-columns: 1fr;
    }

    .hub-payment-pix-row span,
    .hub-payment-pix-row strong,
    .hub-payment-pix-row .btn {
        /* grid-column: auto; */
        grid-row: auto;
    }
}


/* Client access view: product upsell, compact payment and local avatar upload. */
.hub-choice-product-button.is-locked,
.hub-choice-product-button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.hub-choice-product-button.is-locked:hover,
.hub-choice-product-button.is-locked:focus-visible,
.hub-choice-product-button:disabled:hover,
.hub-choice-product-button:disabled:focus-visible {
    transform: none;
}

.hub-choice-product-button.is-locked .hub-choice-product-arrow,
.hub-choice-product-button:disabled .hub-choice-product-arrow {
    color: var(--hub-muted-soft);
}

.hub-choice-profile-finance {
    gap: 12px;
}

.hub-choice-profile-finance .hub-widget-head {
    margin-bottom: 0;
}

.hub-choice-profile-finance .hub-meta-row {
    padding-top: 9px;
    padding-bottom: 9px;
}

.hub-choice-profile-products i {
    font-size: var(--hub-font-size-icon-sm);
    line-height: 1;
}

.hub-choice-payment-summary {
    margin-bottom: 12px;
    padding: 14px 16px;
}

.hub-payment-grid {
    gap: 0;
}

.hub-payment-grid > div {
    gap: 3px;
    padding: 10px 0;
}

.hub-payment-pix-row .btn {
    width: 40px;
    min-width: 40px;
    align-self: center;
}

.hub-js-toast-stack {
    position: fixed;
    top: 16px;
    left: 50%;
    width: min(440px, calc(100vw - 32px));
    display: grid;
    gap: 8px;
    transform: translateX(-50%);
    z-index: 1300;
}

@media (max-width: 767.98px) {
    .hub-choice-profile-button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        gap: 0;
    }

    .hub-choice-profile-button span {
        display: none;
    }

    .hub-choice-profile-button i {
        font-size: var(--hub-font-size-icon-md);
    }
}

.hub-toast-close {
    background: transparent;
}

/* User online, suspended access and profile avatar refinements. */
.hub-user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.hub-user-avatar .hub-user-online-dot {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--hub-surface);
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.44);
    animation: hubOnlinePulse 1.45s ease-out infinite;
}

@keyframes hubOnlinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.44);
    }
    70%, 100% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.hub-choice-payment-alert.is-warning {
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(253, 230, 138, 0.36);
    color: #7c3f04;
}

.hub-choice-payment-alert.is-danger {
    border-color: rgba(var(--hub-danger-rgb), 0.22);
    background: rgba(var(--hub-danger-rgb), 0.08);
    color: var(--hub-danger);
}

.hub-choice-payment-alert.is-suspended {
    border-color: rgba(100, 116, 139, 0.2);
    background: rgba(100, 116, 139, 0.1);
    color: var(--hub-muted);
}

.hub-choice-avatar-field {
    position: relative;
    padding-right: 68px;
}

.hub-choice-profile-identity {
    min-width: 0;
}

.hub-choice-avatar-edit {
    position: absolute;
    top: 16px;
    right: 16px;
}

.hub-choice-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.hub-choice-avatar-actions .hub-inline-link {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: var(--hub-font-size-xs);
    line-height: var(--hub-line-height-xs);
    cursor: pointer;
}

.hub-choice-avatar-delete {
    color: var(--hub-danger);
}

.hub-choice-avatar-cancel {
    color: var(--hub-muted);
}

.hub-choice-profile-payment-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.hub-choice-profile-pay-button {
    width: auto;
    color: var(--hub-primary);
    border-color: rgba(var(--hub-primary-rgb), 0.22);
    background: var(--hub-primary-soft);
}

.hub-choice-profile-pay-button:hover,
.hub-choice-profile-pay-button:focus-visible {
    color: #fff;
    border-color: var(--hub-primary);
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-primary-strong));
}

.hub-choice-profile-finance .hub-meta-grid {
    gap: 0;
}

.hub-choice-profile-finance .hub-meta-row {
    padding-top: 8px;
    padding-bottom: 8px;
}

.hub-payment-grid > div {
    padding: 8px 0;
}

.hub-payment-grid > div:first-child {
    padding-top: 0;
}

.hub-payment-grid > div:last-child {
    padding-bottom: 0;
}

.hub-modal-dialog .hub-js-toast-stack.is-modal-toast,
.hub-confirm-dialog .hub-js-toast-stack.is-modal-toast {
    position: absolute;
    top: 12px;
    left: 50%;
    width: min(380px, calc(100% - 32px));
    transform: translateX(-50%);
    z-index: 20;
}

.hub-modal-dialog .hub-js-toast-stack.is-modal-toast .hub-toast,
.hub-confirm-dialog .hub-js-toast-stack.is-modal-toast .hub-toast {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .hub-choice-avatar-field {
        padding-right: 58px;
    }

    .hub-choice-avatar-edit {
        top: 14px;
        right: 14px;
    }

    .hub-choice-profile-payment-actions,
    .hub-choice-profile-pay-button {
        width: 100%;
    }
}

.hub-modal-dialog,
.hub-confirm-dialog {
    position: relative;
}


/* Access/profile refinements: avatar trigger, PIX action placement and native file picker guard. */
.hub-choice-profile-avatar-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
}

.hub-choice-profile-avatar-button img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.hub-choice-profile-modal-actions {
    align-items: center;
    flex-wrap: wrap;
}

.hub-choice-profile-modal-actions .hub-choice-profile-pay-button {
    white-space: nowrap;
}

.hub-choice-payment-dialog .hub-toast-stack.is-modal-toast,
.hub-choice-payment-dialog .hub-js-toast-stack.is-modal-toast,
.hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-toast-stack.is-modal-toast,
.hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-js-toast-stack.is-modal-toast {
    z-index: 60;
}

@media (max-width: 575.98px) {
    .hub-choice-profile-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* iOS/WebKit modal fallback and mobile zoom guard. */
.hub-dialog-fallback-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1280;
    background: rgba(15, 23, 42, 0.42);
}

.hub-modal-dialog.is-hub-fallback-dialog[open],
.hub-confirm-dialog.is-hub-fallback-dialog[open] {
    position: fixed !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    display: block !important;
    width: min(680px, calc(100vw - 32px));
    max-height: calc(var(--hub-viewport-height, 100vh) - 32px);
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    animation: none !important;
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
}

.hub-confirm-dialog.is-hub-fallback-dialog[open] {
    width: min(440px, calc(100vw - 32px));
}

.hub-whatsapp-dialog.is-hub-fallback-dialog[open],
.hub-short-link-dialog.is-hub-fallback-dialog[open] {
    width: min(560px, calc(100vw - 32px));
}

html.hub-ios-webkit,
html.hub-ios-webkit body {
    -webkit-text-size-adjust: 100%;
}

html.hub-ios-webkit input,
html.hub-ios-webkit select,
html.hub-ios-webkit textarea,
html.hub-ios-webkit .hub-dropdown-toggle {
    font-size: 16px;
}

.hub-modal-dialog.is-hub-fallback-dialog .hub-modal-box,
.hub-confirm-dialog.is-hub-fallback-dialog .hub-confirm-box {
    max-height: inherit;
}

.hub-modal-dialog.is-hub-fallback-dialog .hub-modal-body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
    .hub-modal-dialog.is-hub-fallback-dialog[open],
    .hub-confirm-dialog.is-hub-fallback-dialog[open] {
        width: calc(100vw - 24px);
        max-height: calc(var(--hub-viewport-height, 100vh) - 24px);
    }
}

/* iOS/Safari dialog polyfill: hide converted dialog nodes until opened. */
[data-hub-dialog-polyfill]:not([open]) {
    display: none !important;
}

[data-hub-dialog-polyfill][open].is-hub-fallback-dialog {
    display: block !important;
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1) !important;
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
}

/* Link App mobile actions: keep product controls aligned with Hub buttons. */
.hub-link-app-summary-view-btn {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .hub-product-back-btn {
        width: 40px;
        min-width: 40px;
        padding-right: 0;
        padding-left: 0;
        gap: 0;
    }

    .hub-product-back-btn span {
        display: none;
    }
}

/* Hub v3.5 refinements: date inputs, support return action and modal consistency. */
input[type="date"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control,
input[type="time"].form-control {
    height: var(--hub-control-height);
    min-height: var(--hub-control-height);
    line-height: var(--hub-control-line-height);
    padding-top: var(--hub-control-padding-y);
    padding-bottom: var(--hub-control-padding-y);
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"].form-control::-webkit-date-and-time-value,
input[type="datetime-local"].form-control::-webkit-date-and-time-value,
input[type="month"].form-control::-webkit-date-and-time-value,
input[type="time"].form-control::-webkit-date-and-time-value {
    min-height: var(--hub-control-line-height);
    line-height: var(--hub-control-line-height);
    text-align: left;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator,
input[type="month"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
    margin: 0;
}

.hub-choice-support-return-form {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
}

@media (max-width: 767.98px) {
    .hub-choice-alert-support {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .hub-choice-support-return-form {
        width: 100%;
        margin-left: 0;
    }

    .hub-choice-support-return-form .btn {
        width: 100%;
    }
}

/* Link App: deleted summary card and modal dropdown consistency. */
.hub-link-app-summary-action {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    padding: 0;
    font: inherit;
    color: inherit;
}

.hub-link-app-summary-card .hub-link-app-summary-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    color: var(--hub-muted);
    background: transparent;
    font-size: var(--hub-font-size-icon-md);
    line-height: 1;
}

.hub-link-app-summary-card .hub-link-app-summary-eye i {
    font-size: inherit;
    line-height: inherit;
}

.hub-short-link-dialog .hub-filter-field {
    position: relative;
    z-index: 4;
}

.hub-short-link-dialog .hub-dropdown[open] {
    z-index: 260;
}

.hub-short-link-dialog .hub-dropdown[open] .hub-dropdown-menu {
    z-index: 270;
}

/* Access view final refinements: circular avatar trigger, bottom toasts and payment cards. */
.hub-choice-actions .hub-choice-profile-avatar-button {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    flex: 0 0 40px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
}

.hub-choice-actions .hub-choice-profile-avatar-button img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.hub-toast-stack,
.hub-js-toast-stack {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.hub-modal-dialog .hub-js-toast-stack.is-modal-toast,
.hub-confirm-dialog .hub-js-toast-stack.is-modal-toast {
    top: auto;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.hub-choice-payment-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius);
    background: rgba(15, 23, 42, 0.02);
}

.hub-choice-payment-card + .hub-choice-payment-card {
    margin-top: 12px;
}

.hub-choice-payment-card .hub-widget-head {
    margin-bottom: 0;
}

.hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-user-invoice-summary-create-form {
    margin: 0;
    flex: 0 0 auto;
}

.hub-user-invoices-dialog .hub-modal-actions {
    background: var(--hub-surface);
}

.hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-link-app-item {
    padding-right: 0;
    padding-left: 0;
}

.hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-link-app-item-main h4,
.hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-link-app-item-main h4 span {
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-regular);
    line-height: var(--hub-line-height-sm);
}

.hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-link-app-item-main h4 {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hub-choice-payment-card .hub-meta-grid,
.hub-choice-payment-card .hub-payment-grid {
    gap: 0;
}

.hub-choice-payment-card .hub-meta-row,
.hub-choice-payment-card .hub-payment-grid > div {
    padding-top: 8px;
    padding-bottom: 8px;
}

.hub-choice-payment-card .hub-meta-row:first-child,
.hub-choice-payment-card .hub-payment-grid > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.hub-choice-payment-card .hub-meta-row:last-child,
.hub-choice-payment-card .hub-payment-grid > div:last-child {
    padding-bottom: 0;
}

.hub-choice-credit-link {
    width: fit-content;
    margin-top: 14px;
}

@media (max-width: 575.98px) {
    .hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-link-app-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .hub-modal-dialog[id^="hub-user-invoices-modal-"] .hub-link-app-item-meta {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
    }

    .hub-toast-stack,
    .hub-js-toast-stack {
        top: auto;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        width: auto;
        transform: none;
    }

    .hub-choice-payment-card {
        padding: 14px;
    }

    .hub-choice-credit-link {
        width: 100%;
        justify-content: center;
    }
}

/* Ajustes pontuais v3.12: announcement dark, dialogs e card excluídos Safari. */
.hub-panel-announcement {
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    box-shadow: none;
}

.hub-panel-announcement-close {
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.hub-panel-announcement-close:hover,
.hub-panel-announcement-close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.hub-panel-announcement-kicker {
    color: #c4b5fd;
    background: rgba(255, 255, 255, 0.1);
}

.hub-panel-announcement h2 {
    color: #fff;
}

.hub-panel-announcement p {
    color: rgba(226, 232, 240, 0.86);
}

dialog.hub-modal-dialog[open]:not(.is-hub-fallback-dialog),
dialog.hub-confirm-dialog[open]:not(.is-hub-fallback-dialog) {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    margin: 0;
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    animation: none;
}

.hub-link-app-summary-action {
    display: grid;
    min-height: 0;
    line-height: normal;
}

.hub-link-app-summary-action .card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 0;
}

.hub-link-app-summary-card .hub-link-app-summary-eye {
    align-self: center;
    justify-self: end;
    line-height: 1;
}

/* Ajustes v3.13: toasts no topo e pagamento mais compacto. */
.hub-toast-stack,
.hub-js-toast-stack {
    top: 16px;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(440px, calc(100vw - 32px));
    transform: translateX(-50%);
}

.hub-choice-payment-card {
    gap: 10px;
}

.hub-choice-payment-card + .hub-choice-payment-card {
    margin-top: 10px;
}

.hub-choice-payment-card .hub-meta-row,
.hub-choice-payment-card .hub-payment-grid > div {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.hub-choice-payment-card .hub-payment-grid > div {
    display: grid;
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.hub-choice-payment-card .hub-payment-grid .hub-payment-pix-row {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr) auto;
}

.hub-choice-payment-card .hub-payment-grid span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-choice-payment-card .hub-payment-grid strong {
    min-width: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-sm);
    overflow-wrap: anywhere;
}

.hub-choice-credit-card {
    align-items: center;
}

.hub-choice-credit-card .hub-choice-credit-link {
    width: fit-content;
    margin-top: 0;
}

@media (max-width: 575.98px) {
    .hub-toast-stack,
    .hub-js-toast-stack {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        transform: none;
    }

    .hub-choice-payment-card .hub-payment-grid > div,
    .hub-choice-payment-card .hub-payment-grid .hub-payment-pix-row {
        grid-template-columns: minmax(76px, auto) minmax(0, 1fr) auto;
    }

    .hub-choice-payment-card .hub-payment-grid > div:not(.hub-payment-pix-row) {
        grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    }

    .hub-choice-credit-card .hub-choice-credit-link {
        width: 100%;
        justify-content: center;
    }
}

/* Ajuste v3.13.1: mantém a chave PIX na mesma linha em todos os tamanhos. */
.hub-choice-payment-card .hub-payment-grid .hub-payment-pix-row {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr) auto;
}

.hub-choice-payment-card .hub-payment-grid .hub-payment-pix-row > span {
    grid-column: 1;
    grid-row: 1;
}

.hub-choice-payment-card .hub-payment-grid .hub-payment-pix-row > strong {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-choice-payment-card .hub-payment-grid .hub-payment-pix-row > .btn {
    grid-column: 3;
    grid-row: 1;
}

/* Ajuste v26.5: rolagem consistente dos modais no mobile/Android. */
html.hub-dialog-open,
body.hub-dialog-open {
    overscroll-behavior: none;
}

.hub-modal-dialog[open],
.hub-confirm-dialog[open] {
    max-height: calc(var(--hub-viewport-height, 100dvh) - 32px);
}

.hub-modal-box {
    max-height: calc(var(--hub-viewport-height, 100dvh) - 32px);
    min-height: 0;
}

.hub-modal-body,
.hub-confirm-box {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.hub-modal-dialog.is-hub-fallback-dialog[open],
.hub-confirm-dialog.is-hub-fallback-dialog[open] {
    max-height: calc(var(--hub-viewport-height, 100vh) - 32px);
}

.hub-modal-dialog.is-hub-fallback-dialog .hub-modal-box,
.hub-confirm-dialog.is-hub-fallback-dialog .hub-confirm-box {
    max-height: inherit;
    min-height: 0;
}

.hub-modal-dialog.is-hub-fallback-dialog .hub-modal-box {
    height: auto;
}

@media (max-width: 575.98px) {
    .hub-modal-dialog,
    .hub-confirm-dialog {
        max-height: calc(var(--hub-viewport-height, 100dvh) - 24px);
    }

    .hub-modal-box {
        height: auto;
        max-height: calc(var(--hub-viewport-height, 100dvh) - 24px);
        min-height: 0;
    }

    .hub-modal-dialog.is-hub-fallback-dialog[open],
    .hub-confirm-dialog.is-hub-fallback-dialog[open] {
        max-height: calc(var(--hub-viewport-height, 100vh) - 24px);
    }

    .hub-modal-dialog.is-hub-fallback-dialog .hub-modal-box,
    .hub-confirm-dialog.is-hub-fallback-dialog .hub-confirm-box {
        max-height: inherit;
    }

    .hub-modal-dialog.is-hub-fallback-dialog .hub-modal-box {
        height: auto;
    }

    .hub-modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hub-confirm-box {
        max-height: calc(var(--hub-viewport-height, 100dvh) - 24px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Ajuste v26.6: toasts no topo, largura dinâmica e botão fechar com contorno. */
.hub-toast-stack,
.hub-js-toast-stack,
.hub-modal-dialog .hub-js-toast-stack.is-modal-toast,
.hub-confirm-dialog .hub-js-toast-stack.is-modal-toast {
    position: fixed !important;
    top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: max-content !important;
    max-width: calc(100vw - 32px) !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    gap: 8px;
    transform: translateX(-50%) !important;
    pointer-events: none;
    z-index: 2147483000;
}

.hub-toast-stack > .hub-toast,
.hub-js-toast-stack > .hub-toast,
.hub-modal-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast,
.hub-confirm-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast {
    width: fit-content !important;
    min-width: 0 !important;
    max-width: min(440px, calc(100vw - 32px)) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    padding: 14px 12px 14px 16px !important;
    white-space: normal;
    pointer-events: auto;
}

.hub-toast-message {
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 4px;
    overflow-wrap: anywhere;
    line-height: var(--hub-line-height-sm);
}

.hub-toast-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-left: 2px;
    display: inline-grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    line-height: 1;
    text-decoration: none;
}

.hub-toast-close:hover,
.hub-toast-close:focus-visible {
    border-color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    opacity: 1;
    outline: none;
}

@media (max-width: 575.98px) {
    .hub-toast-stack,
    .hub-js-toast-stack,
    .hub-modal-dialog .hub-js-toast-stack.is-modal-toast,
    .hub-confirm-dialog .hub-js-toast-stack.is-modal-toast {
        top: calc(12px + env(safe-area-inset-top, 0px)) !important;
        right: auto !important;
        left: 50% !important;
        width: max-content !important;
        max-width: calc(100vw - 24px) !important;
        transform: translateX(-50%) !important;
    }

    .hub-toast-stack > .hub-toast,
    .hub-js-toast-stack > .hub-toast,
    .hub-modal-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast,
    .hub-confirm-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast {
        max-width: calc(100vw - 24px) !important;
    }
}

/* Ajuste v26.7: botão fechar dos toasts no mesmo padrão dos botões do Hub. */
.hub-toast-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 var(--hub-control-height);
    width: var(--hub-control-height);
    height: var(--hub-control-height);
    min-width: var(--hub-control-height);
    min-height: var(--hub-control-height);
    margin-left: 4px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: var(--hub-font-size-icon-md);
    font-weight: var(--hub-button-font-weight);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hub-toast-close i {
    font-size: var(--hub-font-size-icon-md);
    line-height: 1;
    pointer-events: none;
}

.hub-toast-close:hover,
.hub-toast-close:focus-visible {
    border-color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    outline: none;
}

.hub-toast-message {
    padding-right: 8px;
}

/* Ajuste v26.8: toast mais compacto com botão fechar utilitário menor. */
.hub-toast-stack > .hub-toast,
.hub-js-toast-stack > .hub-toast,
.hub-modal-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast,
.hub-confirm-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast {
    min-height: 0 !important;
    padding: 10px 10px 10px 14px !important;
    gap: 8px;
}

.hub-toast-close {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin-left: 2px;
    border-radius: var(--hub-radius);
    font-size: 15px;
}

.hub-toast-close i {
    font-size: 15px;
}

.hub-toast-message {
    padding-right: 6px;
    line-height: 1.35;
}

@media (max-width: 575.98px) {
    .hub-toast-stack > .hub-toast,
    .hub-js-toast-stack > .hub-toast,
    .hub-modal-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast,
    .hub-confirm-dialog .hub-js-toast-stack.is-modal-toast > .hub-toast {
        padding: 9px 9px 9px 12px !important;
        gap: 8px;
    }

    .hub-toast-close {
        flex-basis: 26px !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        font-size: 14px;
    }

    .hub-toast-close i {
        font-size: 14px;
    }
}

/* Cartão App - módulo de produto */
.hub-card-app-page {
    gap: 18px;
}

.hub-card-app-summary,
.hub-qr-app-summary {
    margin-bottom: 18px;
}

.hub-card-app-summary .hub-link-app-summary-card .card-body,
.hub-qr-app-summary .hub-link-app-summary-card .card-body {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-content: start;
    gap: 6px;
    padding: 20px 24px;
}

.hub-card-app-summary .hub-link-app-summary-card span,
.hub-card-app-summary .hub-link-app-summary-card strong,
.hub-qr-app-summary .hub-link-app-summary-card span,
.hub-qr-app-summary .hub-link-app-summary-card strong {
    min-width: 0;
}

.hub-card-app-summary .hub-link-app-summary-card strong,
.hub-qr-app-summary .hub-link-app-summary-card strong {
    font-size: var(--hub-font-size-xl);
    line-height: var(--hub-line-height-xl);
    overflow-wrap: anywhere;
}

.hub-card-app-public-card {
    position: relative;
    z-index: 2;
    padding: 0;
    overflow: visible;
}

.hub-card-app-public-url {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 20px 24px;
    min-width: 0;
}

.hub-card-app-public-url > label {
    display: grid;
    gap: 0;
    min-width: 0;
    margin: 0;
}

.hub-card-app-public-url > label > span {
    display: block;
}

.hub-card-app-public-url > label > span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-base);
    overflow-wrap: anywhere;
}

.hub-card-app-public-url .hub-short-link-slug-control .form-control {
    font-weight: var(--hub-font-weight-semibold);
}

.hub-card-app-public-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding-top: calc(var(--hub-line-height-sm) + 11px);
    min-width: 0;
}

.hub-card-app-public-card > .hub-card-app-grid {
    border-top: 1px solid var(--hub-border-soft);
}

.hub-card-app-public-meta {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: start;
}

.hub-card-app-public-meta .hub-filter-field {
    position: relative;
    z-index: 4;
}

.hub-card-app-public-meta .hub-dropdown[open] {
    z-index: 260;
}

.hub-card-app-public-meta .hub-dropdown[open] .hub-dropdown-menu {
    z-index: 270;
}

.hub-card-app-form {
    display: grid;
    gap: 18px;
}

.hub-card-app-save-button.is-loading > i {
    display: none;
}

.hub-card-app-editor-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.hub-card-app-section {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.hub-card-app-section-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--hub-border-soft);
}

.hub-card-app-section-header h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-card-app-section-header p {
    margin: 4px 0 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-base);
}

.hub-card-app-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 16px;
    padding: 24px;
    min-width: 0;
}

.hub-card-app-grid-full {
    grid-column: 1 / -1;
    min-width: 0;
}

.hub-card-app-grid > *,
.hub-card-app-social-item > *,
.hub-card-app-form label,
.hub-card-app-form .form-control,
.hub-card-app-form .hub-dropdown,
.hub-card-app-form .hub-dropdown-toggle {
    min-width: 0;
    max-width: 100%;
}

.hub-card-app-image-field {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius-lg);
    background: rgba(255, 255, 255, 0.66);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.hub-card-app-image-preview {
    width: 96px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--hub-radius-lg);
    border: 1px solid var(--hub-border-soft);
    background: var(--hub-body-bg);
}

.hub-card-app-image-field.is-wide .hub-card-app-image-preview {
    aspect-ratio: 16 / 10;
}

.hub-card-app-image-field.is-banner {
    grid-template-columns: 224px minmax(0, 1fr);
}

.hub-card-app-image-field.is-banner .hub-card-app-image-preview {
    width: 224px;
    height: 96px;
    aspect-ratio: auto;
}

.hub-card-app-image-field.is-avatar .hub-card-app-image-preview {
    border-radius: 50%;
}

.hub-card-app-image-field.is-favicon .hub-card-app-image-preview {
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hub-card-app-image-content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.hub-card-app-image-content strong,
.hub-card-app-image-content span {
    display: block;
}

.hub-card-app-image-content strong {
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-card-app-image-content span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-base);
}

.hub-card-app-image-content p {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-base);
    overflow-wrap: anywhere;
}

.hub-card-app-image-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.hub-card-app-image-actions .btn {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

.hub-card-app-color-control {
    display: grid;
    grid-template-columns: var(--hub-control-height) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.hub-card-app-color-control input[type="color"] {
    width: var(--hub-control-height);
    height: var(--hub-control-height);
    padding: 3px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.hub-card-app-color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 999px;
}

.hub-card-app-color-control input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 999px;
}

.hub-card-app-color-control input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 999px;
}

.hub-card-app-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hub-card-app-label-row .form-label {
    margin-bottom: 8px;
}

.hub-card-app-label-row small {
    margin-bottom: 8px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-xs);
    line-height: var(--hub-line-height-sm);
}

.hub-card-app-social-list {
    display: block;
}

.hub-card-app-social-card {
    overflow: visible;
}

.hub-card-app-social-card:has(.hub-dropdown[open]) {
    z-index: 40;
}

.hub-card-app-social-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(76px, 0.2fr) minmax(180px, 0.5fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px 24px;
    border-bottom: 1px solid var(--hub-border-soft);
    border-radius: 0;
    background: transparent;
    min-width: 0;
    max-width: 100%;
}

.hub-card-app-social-item:last-child {
    border-bottom: 0;
}

.hub-card-app-social-item:has(.hub-dropdown[open]) {
    z-index: 50;
}

.hub-card-app-social-item .hub-dropdown[open] {
    z-index: 260;
}

.hub-card-app-social-item .hub-dropdown[open] .hub-dropdown-menu {
    z-index: 270;
    max-height: 288px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hub-card-app-custom-item {
    grid-template-columns: auto minmax(76px, 0.2fr) minmax(180px, 0.45fr) minmax(220px, 1fr) auto;
}

.hub-card-app-button-item {
    grid-template-columns: auto minmax(76px, 0.18fr) minmax(140px, 0.32fr) minmax(180px, 0.42fr) minmax(220px, 1fr) auto;
}

.hub-card-app-social-card .hub-card-app-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hub-card-app-social-card .hub-card-app-section-header > div {
    min-width: 0;
}

.hub-card-app-social-card .hub-card-app-section-header .btn {
    flex: 0 0 auto;
}

.hub-card-app-social-order {
    display: flex;
    gap: 8px;
}

.hub-card-app-toggle {
    display: inline-flex;
    min-height: var(--hub-control-height);
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-medium);
    white-space: nowrap;
}

.hub-card-app-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--hub-primary);
}

.hub-card-app-sticky-actions {
    position: sticky;
    bottom: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 2px solid rgba(var(--hub-primary-rgb), 0.1);
    border-radius: calc(var(--hub-radius-lg));
    background: white;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20;
}

.hub-card-app-sticky-actions .btn {
    min-width: 132px;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .hub-card-app-editor-pair,
    .hub-card-app-grid,
    .hub-card-app-social-item {
        grid-template-columns: 1fr;
    }

    .hub-card-app-social-item {
        position: relative;
        padding: 18px;
        padding-top: 66px;
    }

    .hub-card-app-social-order {
        position: absolute;
        top: 18px;
        right: 70px;
        order: initial;
    }

    .hub-card-app-social-remove {
        position: absolute;
        top: 18px;
        right: 18px;
        justify-self: auto;
    }

    .hub-card-app-social-item .hub-card-app-toggle {
        position: absolute;
        top: 18px;
        left: 18px;
    }

}

@media (max-width: 767.98px) {
    .hub-card-app-image-field {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 14px;
        align-items: start;
        padding: 18px;
    }

    .hub-card-app-image-preview {
        width: 96px;
        max-width: 100%;
    }

    .hub-card-app-image-field.is-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-card-app-image-field.is-banner .hub-card-app-image-preview {
        width: min(100%, 224px);
        height: auto;
        aspect-ratio: 7 / 3;
    }

    .hub-card-app-image-content,
    .hub-card-app-image-field.is-banner .hub-card-app-image-content {
        width: 100%;
        display: grid;
        justify-items: center;
        gap: 12px;
        text-align: center;
    }

    .hub-card-app-image-content p,
    .hub-card-app-image-field.is-banner .hub-card-app-image-content p {
        max-width: 260px;
        margin-right: auto;
        margin-left: auto;
    }

    .hub-card-app-image-actions {
        width: 100%;
        max-width: 260px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hub-card-app-image-actions .btn {
        width: 100%;
        min-width: 0;
        gap: 4px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: var(--hub-font-size-sm);
    }

    .hub-card-app-image-actions .btn i {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .hub-card-app-grid,
    .hub-card-app-section-header,
    .hub-card-app-public-url {
        padding: 18px;
    }

    .hub-card-app-public-url {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: start;
    }

    .hub-card-app-public-actions {
        justify-content: flex-end;
        padding-top: calc(var(--hub-line-height-sm) + 11px);
        gap: 8px;
    }

    .hub-card-app-public-actions .btn-icon {
        width: 40px;
        min-width: 40px;
    }

    .hub-card-app-social-card .hub-card-app-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-card-app-social-card .hub-card-app-section-header .btn {
        width: 100%;
    }

    .hub-card-app-sticky-actions {
        bottom: 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 0;
        padding: 16px;
    }

    .hub-card-app-sticky-actions .btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
}

/* Access view v26.7: square menu buttons with mobile 3-column grid. */
.hub-choice-products {
    grid-template-columns: repeat(auto-fill, minmax(112px, 132px));
    justify-content: start;
    align-items: start;
    column-gap: 16px;
    row-gap: 38px;
}

.hub-choice-product-form {
    width: 100%;
}

.hub-choice-product-button {
    position: relative;
    width: 100%;
    min-height: 0;
    height: clamp(104px, 12vw, 132px);
    max-width: 132px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
    gap: 10px;
    padding: 14px 10px 0;
    overflow: visible;
    border: 1px solid var(--hub-border-soft);
    border-radius: var(--hub-radius-lg);
    background: #fff;
    box-shadow: var(--hub-shadow-sm);
    text-align: center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hub-choice-product-button:hover,
.hub-choice-product-button:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(var(--hub-primary-rgb), 0.22);
    outline: 0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.hub-choice-product-icon {
    width: 62px;
    height: 62px;
    border-radius: var(--hub-radius);
    color: var(--hub-primary);
    background: transparent;
    font-size: 32px;
    transition: transform 0.22s ease;
}

.hub-choice-product-button:hover .hub-choice-product-icon,
.hub-choice-product-button:focus-visible .hub-choice-product-icon {
    transform: translateY(-4px);
}

.hub-choice-product-copy {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: max-content;
    max-width: 140px;
    min-width: 0;
    opacity: 1;
    transform: translate(-50%, 0);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.hub-choice-product-button:hover .hub-choice-product-copy,
.hub-choice-product-button:focus-visible .hub-choice-product-copy {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hub-choice-product-copy strong {
    display: block;
    max-width: 100%;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hub-choice-product-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    font-size: var(--hub-font-size-icon-sm);
}

.hub-choice-product-status-badge {
    position: absolute;
    top: 10px;
    right: 8px;
}

.hub-choice-tool-button {
    cursor: pointer;
}

.hub-choice-tool-button.is-placeholder {
    cursor: pointer;
}

.hub-choice-product-button.is-locked,
.hub-choice-product-button:disabled {
    opacity: 0.50;
}

.hub-choice-product-button.is-locked:hover,
.hub-choice-product-button.is-locked:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(var(--hub-primary-rgb), 0.22);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.hub-choice-product-button.is-locked:hover .hub-choice-product-icon,
.hub-choice-product-button.is-locked:focus-visible .hub-choice-product-icon {
    transform: translateY(-4px);
}

.hub-statistics-bottom-grid {
    order: 3;
}

.hub-statistics-products-card .hub-link-app-item-main h4,
.hub-statistics-clicks-card .hub-link-app-item-main h4 {
    margin-bottom: 0;
}

.hub-statistics-clicks-card .hub-link-app-item-main h4 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.hub-statistics-clicks-card .hub-link-app-item-main h4 span {
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-regular);
    line-height: var(--hub-line-height-sm);
}

@media (min-width: 992px) {
    .hub-statistics-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hub-statistics-bottom-grid .hub-link-app-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.hub-statistics-bottom-grid .hub-link-app-item-meta {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

@media (max-width: 767.98px) {
    .hub-choice-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: calc(clamp(88px, 28vw, 112px) + 28px);
        column-gap: 12px;
        row-gap: 16px;
    }

    .hub-choice-product-form {
        min-height: calc(clamp(88px, 28vw, 112px) + 28px);
    }

    .hub-choice-products > .hub-choice-product-button {
        align-self: start;
    }

    .hub-choice-product-button {
        height: clamp(88px, 28vw, 112px);
        max-width: none;
        padding: 10px 6px 0;
    }

    .hub-choice-product-button:hover,
    .hub-choice-product-button:focus-visible,
    .hub-choice-product-button.is-locked:hover,
    .hub-choice-product-button.is-locked:focus-visible {
        transform: none;
        border-color: var(--hub-border-soft);
        box-shadow: var(--hub-shadow-sm);
    }

    .hub-choice-product-button:hover .hub-choice-product-icon,
    .hub-choice-product-button:focus-visible .hub-choice-product-icon,
    .hub-choice-product-button.is-locked:hover .hub-choice-product-icon,
    .hub-choice-product-button.is-locked:focus-visible .hub-choice-product-icon {
        transform: none;
    }

    .hub-choice-product-button:active {
        transform: scale(0.96);
        border-color: rgba(var(--hub-primary-rgb), 0.28);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
        transition-duration: 0.08s;
    }

    .hub-choice-product-button:active .hub-choice-product-icon {
        transform: scale(0.92);
        transition-duration: 0.08s;
    }

    .hub-choice-product-copy {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        width: max-content;
        max-width: 112px;
        opacity: 1;
        transform: translateX(-50%);
    }

    .hub-choice-product-copy strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hub-choice-product-icon {
        width: 58px;
        height: 58px;
        font-size: 30px;
    }
}

/* QR App: small preview only; reuses Link App layout. */
.hub-qr-app-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.hub-qr-app-preview {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    padding: 8px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.hub-qr-app-preview canvas,
.hub-qr-app-preview img {
    width: 96px;
    height: 96px;
}

.hub-qr-download-format-btn {
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0.02em;
    line-height: 1;
}

.hub-qr-code-dialog {
    width: min(560px, calc(100vw - 32px));
}

@media (max-width: 767.98px) {
    .hub-qr-app-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hub-qr-app-item .hub-link-app-item-meta {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}


/* User Help / knowledge base */
.hub-help-page {
    position: relative;
    min-width: 0;
    padding-bottom: 86px;
}

.hub-help-page *,
.hub-help-page *::before,
.hub-help-page *::after {
    box-sizing: border-box;
}

.hub-help-content,
.hub-help-home,
.hub-help-results,
.hub-help-detail,
.hub-help-pages,
.hub-help-accordion {
    max-width: 100%;
    min-width: 0;
}

/* Mantém a Ajuda dentro da mesma largura padrão das views do usuário.
   O container-xl não deve ser sobrescrito para 100% do navegador. */
.hub-help-page .container-xl {
    min-width: 0;
}

.hub-help-toolbar,
.hub-help-results,
.hub-help-detail {
    border: none;
    box-shadow: var(--hub-shadow-xs);
    background: none;
}

.hub-help-toolbar .card-body {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 20px 22px;
    text-align: center;
}

.hub-help-toolbar-copy {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
}

.hub-help-toolbar-copy strong {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-lg);
}

.hub-help-toolbar-copy span:last-child {
    max-width: 620px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-md);
}

.hub-help-soft-badge,
.hub-help-article-category {
    width: fit-content;
    border: 1px solid rgba(var(--hub-primary-rgb), 0.12);
    background: rgba(var(--hub-primary-rgb), 0.08);
    color: var(--hub-primary);
    font-size: var(--hub-font-size-xs);
    font-weight: var(--hub-font-weight-semibold);
}

.hub-help-search {
    display: grid;
    gap: 8px;
    width: min(100%, 520px);
    margin: 0;
}

.hub-help-search-control {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.hub-help-search-control i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--hub-muted);
    font-size: var(--hub-font-size-icon-sm);
    pointer-events: none;
}

.hub-help-search-control .form-control {
    width: 100%;
    min-width: 0;
    padding-left: 42px;
}

.hub-help-content {
    margin-top: 16px;
}

.hub-help-home[hidden],
.hub-help-results[hidden],
.hub-help-detail[hidden],
.hub-help-empty[hidden],
.hub-help-article[hidden] {
    display: none;
}

.hub-help-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hub-help-home-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--hub-border-soft);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--hub-shadow-xs);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hub-help-home-card:hover,
.hub-help-home-card:focus-visible {
    border-color: rgba(var(--hub-primary-rgb), 0.22);
    background: rgba(255, 255, 255, 0.98);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.hub-help-home-card:focus-visible {
    outline: 2px solid rgba(var(--hub-primary-rgb), 0.34);
    outline-offset: 2px;
}

.hub-help-home-card-icon,
.hub-help-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(var(--hub-primary-rgb), 0.1);
    color: var(--hub-primary);
    font-size: var(--hub-font-size-icon-md);
}

.hub-help-home-card-copy {
    display: grid;
    min-width: 0;
}

.hub-help-home-card-copy strong {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-base);
}

.hub-help-home-card-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-regular);
    line-height: var(--hub-line-height-sm);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hub-help-home-card-arrow {
    color: var(--hub-muted-soft);
    font-size: var(--hub-font-size-icon-sm);
    transition: color 0.18s ease, transform 0.18s ease;
}

.hub-help-home-card:hover .hub-help-home-card-arrow,
.hub-help-home-card:focus-visible .hub-help-home-card-arrow {
    color: var(--hub-primary);
    transform: translateX(2px);
}

.hub-help-results > .card-body,
.hub-help-detail > .card-body {
    padding: 18px;
}

.hub-help-results,
.hub-help-detail {
    animation: hubHelpPageIn 0.18s ease both;
}

@keyframes hubHelpPageIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hub-help-pages {
    display: grid;
    gap: 14px;
}

.hub-help-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hub-border-soft);
}

.hub-help-section-head div {
    min-width: 0;
}

.hub-help-section-head h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-lg);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-lg);
}

.hub-help-section-head p {
    margin: 0;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-md);
}

.hub-help-back-btn {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 7px;
}

.hub-help-results-head .hub-help-back-btn {
    margin-left: auto;
}

.hub-help-accordion {
    display: grid;
    gap: 10px;
}

.hub-help-article {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--hub-surface);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hub-help-article::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: rgba(var(--hub-primary-rgb), 0.28);
    content: "";
    transition: background 0.18s ease;
}

.hub-help-article:hover {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.hub-help-article.is-open {
    border-color: rgba(var(--hub-primary-rgb), 0.24);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.hub-help-article.is-open::before {
    background: rgba(var(--hub-primary-rgb), 0.28);
}

.hub-help-article-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 14px 16px 14px 17px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.18s ease;
}

.hub-help-article-toggle:focus-visible {
    outline: 2px solid rgba(var(--hub-primary-rgb), 0.34);
    outline-offset: -2px;
}

.hub-help-article.is-open .hub-help-article-toggle {
    background: linear-gradient(90deg, rgba(var(--hub-primary-rgb), 0.055), rgba(255, 255, 255, 0.96));
}

.hub-help-article-summary {
    display: grid;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.hub-help-article-category {
    max-width: 100%;
    margin-bottom: 2px;
    overflow: hidden;
    color: var(--hub-muted);
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(100, 116, 139, 0.12);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-help-article-title {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-base);
    transition: color 0.18s ease;
}

.hub-help-article.is-open .hub-help-article-title {
    color: var(--hub-primary-strong);
}

.hub-help-article-description {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-regular);
    line-height: var(--hub-line-height-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-help-article-toggle > i {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--hub-muted-soft);
    font-size: var(--hub-font-size-icon-sm);
    transition: color 0.18s ease, transform 0.22s ease;
}

.hub-help-article.is-open .hub-help-article-toggle > i {
    color: var(--hub-primary);
    transform: rotate(180deg);
}

.hub-help-article-panel {
    height: 0;
    overflow: hidden;
    opacity: 0;
    border-top: 1px solid transparent;
    transition: height 0.24s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.hub-help-article-panel[hidden] {
    display: none;
}

.hub-help-article.is-open .hub-help-article-panel {
    opacity: 1;
    border-top-color: var(--hub-border-soft);
}

.hub-help-article-body {
    display: grid;
    gap: 12px;
    padding: 15px 16px 16px 17px;
    background: rgba(255, 255, 255, 0.88);
}

.hub-help-list,
.hub-help-note-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-md);
}

.hub-help-list li + li,
.hub-help-note-list li + li {
    margin-top: 5px;
}

.hub-help-note {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--hub-radius);
    background: rgba(245, 158, 11, 0.08);
}

.hub-help-note strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #92400e;
    font-size: var(--hub-font-size-xs);
    font-weight: var(--hub-font-weight-semibold);
    letter-spacing: 0.04em;
    line-height: var(--hub-line-height-sm);
    text-transform: uppercase;
}

.hub-help-note strong i {
    font-size: var(--hub-font-size-icon-sm);
}

.hub-help-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    margin: 10px 0 16px;
    padding: 24px;
    border: 1px dashed var(--hub-border-soft);
    border-radius: var(--hub-radius-xl);
    background: rgba(255, 255, 255, 0.72);
    color: var(--hub-muted);
    text-align: center;
}

.hub-help-empty i {
    color: var(--hub-primary);
    font-size: 2rem;
}

.hub-help-empty strong {
    color: var(--hub-ink);
    font-size: var(--hub-font-size-base);
}

.hub-help-floating-whatsapp {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right));
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: var(--hub-radius);
    background: #22c55e;
    color: #fff;
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-semibold);
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.24);
}

.hub-help-floating-whatsapp:hover,
.hub-help-floating-whatsapp:focus-visible {
    border-color: rgba(22, 163, 74, 0.42);
    background: #16a34a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(22, 163, 74, 0.28);
}

.hub-help-floating-whatsapp i {
    font-size: var(--hub-font-size-icon-sm);
}

@media (prefers-reduced-motion: reduce) {
    .hub-help-home-card,
    .hub-help-home-card-arrow,
    .hub-help-results,
    .hub-help-detail,
    .hub-help-article,
    .hub-help-article::before,
    .hub-help-article-toggle,
    .hub-help-article-toggle > i,
    .hub-help-article-title,
    .hub-help-article-panel {
        animation: none;
        transition: none;
    }
}

@media (max-width: 1199.98px) {
    .hub-help-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hub-help-toolbar .card-body {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .hub-help-page {
        padding-bottom: 78px;
    }

    .hub-help-toolbar .card-body,
    .hub-help-results > .card-body,
    .hub-help-detail > .card-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 16px !important;
    }

    .hub-help-toolbar,
    .hub-help-content,
    .hub-help-home,
    .hub-help-results,
    .hub-help-detail,
    .hub-help-pages,
    .hub-help-accordion,
    .hub-help-article,
    .hub-help-article-toggle,
    .hub-help-article-summary,
    .hub-help-article-panel,
    .hub-help-article-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hub-help-results {
        overflow-x: clip;
    }

    @supports not (overflow: clip) {
        .hub-help-results {
            overflow-x: hidden;
        }
    }

    .hub-help-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .hub-help-home-card {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        min-height: 126px;
        padding: 14px 10px;
        text-align: center;
    }

    .hub-help-home-card-icon,
    .hub-help-section-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .hub-help-home-card-copy strong,
    .hub-help-home-card-copy small {
        text-align: center;
    }

    .hub-help-home-card-arrow {
        display: none;
    }

    .hub-help-section-head {
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hub-help-section-head > div {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
    }

    .hub-help-section-head h3,
    .hub-help-section-head p {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hub-help-back-btn {
        flex: 0 0 auto;
        margin-left: auto;
        max-width: 128px;
        white-space: nowrap;
    }

    .hub-help-results-head .hub-help-back-btn {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    .hub-help-results-head .hub-help-back-btn span {
        display: none;
    }

    .hub-help-results-head .hub-help-back-btn i {
        margin: 0;
    }

    .hub-help-article-description {
        white-space: normal;
    }

    .hub-help-article-toggle {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 58px;
        padding: 13px 14px 13px 15px;
    }

    .hub-help-article-body {
        padding: 14px 14px 15px 15px;
    }

    .hub-help-floating-whatsapp {
        right: calc(14px + env(safe-area-inset-right));
        bottom: calc(16px + env(safe-area-inset-bottom));
        min-height: 42px;
        padding: 0 12px;
    }
}

/* Termos de Uso: ajustes de tabela, espaçamento e mobile. */
.hub-terms-page {
    min-width: 0;
}

.hub-terms-filter-grid {
    grid-template-columns: minmax(260px, 1fr) auto;
    max-width: 780px;
}

.hub-terms-list-card {
    overflow: hidden;
}

.hub-terms-list-header {
    gap: 12px;
    padding: 24px 32px;
}

.hub-terms-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hub-terms-table {
    width: 100%;
    min-width: 1120px;
    margin-bottom: 0;
    table-layout: fixed;
}

.hub-terms-table th,
.hub-terms-table td {
    text-align: left !important;
    vertical-align: top;
}

.hub-terms-table th {
    padding: 14px 24px 12px;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-sm);
    font-weight: var(--hub-font-weight-bold);
    line-height: var(--hub-line-height-sm);
    white-space: nowrap;
}

.hub-terms-table td {
    padding: 16px 24px;
}

.hub-terms-date-col,
.hub-terms-date-cell {
    width: 170px;
}

.hub-terms-user-col,
.hub-terms-user-cell {
    width: 260px;
}

.hub-terms-version-col,
.hub-terms-version-cell {
    width: 128px;
}

.hub-terms-code-col,
.hub-terms-code-cell {
    width: 230px;
}

.hub-terms-mail-col,
.hub-terms-mail-cell {
    width: 170px;
}

.hub-terms-hash-col,
.hub-terms-hash-cell {
    width: auto;
}

.hub-terms-date-cell,
.hub-terms-user-cell,
.hub-terms-version-cell,
.hub-terms-code-cell,
.hub-terms-mail-cell,
.hub-terms-hash-cell {
    min-width: 0;
}

.hub-terms-date-cell {
    line-height: var(--hub-line-height-base);
}

.hub-terms-user-name,
.hub-terms-user-email {
    display: block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hub-terms-user-name {
    color: var(--hub-ink);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-base);
}

.hub-terms-user-email {
    margin-top: 2px;
    color: var(--hub-muted);
    font-size: var(--hub-font-size-sm);
    line-height: var(--hub-line-height-sm);
}

.hub-terms-inline-code,
.hub-terms-mobile-details code {
    display: block;
    width: 100%;
    max-width: none;
    padding: 5px 8px;
    border-radius: var(--hub-radius);
    background: rgba(15, 23, 42, 0.045);
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xs);
    font-weight: var(--hub-font-weight-semibold);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hub-terms-version-cell .badge,
.hub-terms-mail-cell .badge,
.hub-terms-mobile-details .badge {
    justify-content: flex-start;
}

.hub-terms-mail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    justify-content: flex-start;
}

.hub-terms-mobile-list {
    display: none;
}

@media (max-width: 1199.98px) {
    .hub-terms-table {
        min-width: 1040px;
    }

    .hub-terms-table th,
    .hub-terms-table td {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hub-terms-date-col,
    .hub-terms-date-cell {
        width: 160px;
    }

    .hub-terms-user-col,
    .hub-terms-user-cell {
        width: 240px;
    }

    .hub-terms-code-col,
    .hub-terms-code-cell {
        width: 210px;
    }

    .hub-terms-mail-col,
    .hub-terms-mail-cell {
        width: 160px;
    }
}

@media (max-width: 991.98px) {
    .hub-terms-filter-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .hub-terms-filter-grid .hub-filter-actions {
        justify-content: stretch;
    }
}

@media (max-width: 767.98px) {
    .hub-terms-list-header {
        align-items: flex-start;
        padding: 20px 24px;
    }

    .hub-terms-list-header .card-title {
        max-width: 260px;
    }

    .hub-terms-list-header .hub-activity-count {
        margin-left: auto;
        padding-top: 2px;
    }

    .hub-terms-table-wrap {
        display: none;
    }

    .hub-terms-mobile-list {
        display: grid;
        gap: 12px;
        padding: 16px;
    }

    .hub-terms-mobile-item {
        min-width: 0;
        padding: 15px;
        border: 1px solid var(--hub-border-soft);
        border-radius: var(--hub-radius-lg);
        background: rgba(248, 250, 252, 0.78);
    }

    .hub-terms-mobile-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: start;
        min-width: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--hub-border-soft);
    }

    .hub-terms-mobile-person {
        min-width: 0;
    }

    .hub-terms-mobile-person strong,
    .hub-terms-mobile-person span {
        display: block;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hub-terms-mobile-person strong {
        color: var(--hub-ink);
        font-size: var(--hub-font-size-base);
        line-height: var(--hub-line-height-base);
    }

    .hub-terms-mobile-person span {
        margin-top: 2px;
        color: var(--hub-muted);
        font-size: var(--hub-font-size-sm);
        line-height: var(--hub-line-height-sm);
    }

    .hub-terms-mobile-details {
        display: grid;
        gap: 11px;
        margin: 13px 0 0;
    }

    .hub-terms-mobile-details > div {
        display: grid;
        grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        min-width: 0;
    }

    .hub-terms-mobile-details dt,
    .hub-terms-mobile-details dd {
        min-width: 0;
        margin: 0;
        text-align: left;
    }

    .hub-terms-mobile-details dt {
        color: var(--hub-muted);
        font-size: var(--hub-font-size-xs);
        font-weight: var(--hub-font-weight-semibold);
        line-height: var(--hub-line-height-xs);
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .hub-terms-mobile-details dd {
        color: var(--hub-ink);
        font-size: var(--hub-font-size-sm);
        line-height: var(--hub-line-height-sm);
        overflow-wrap: anywhere;
    }

    .hub-terms-mobile-details .hub-terms-mail-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    .hub-terms-mobile-list {
        padding: 14px;
    }

    .hub-terms-mobile-item {
        padding: 12px;
    }

    .hub-terms-mobile-head {
        grid-template-columns: 1fr;
    }

    .hub-terms-mobile-details > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Access view: separates released options from commercial locked solutions. */
.hub-choice-section {
    display: grid;
    gap: 18px;
}

.hub-choice-section + .hub-choice-section {
    margin-top: 62px;
}

.hub-choice-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.hub-choice-section-head h3 {
    margin: 0;
    color: var(--hub-ink);
    font-size: var(--hub-font-size-xl);
    font-weight: var(--hub-font-weight-semibold);
    line-height: var(--hub-line-height-xl);
}

.hub-choice-products-secondary .hub-choice-product-button.is-locked {
    opacity: 0.50;
}

@media (max-width: 767.98px) {
    .hub-choice-section {
        gap: 16px;
    }

    .hub-choice-section + .hub-choice-section {
        margin-top: 26px;
    }

    .hub-choice-section-head h3 {
        font-size: var(--hub-font-size-lg);
        line-height: var(--hub-line-height-lg);
    }
}
