:root {
    --dashboard-tile-gap: 1rem;
    --dashboard-tile-padding: 1.25rem;
    --dashboard-page-padding-mobile: 1.25rem .75rem 3rem;
}

html,
body {
    height: 100%;
}


body {
    margin: 0;
    font-size: var(--dxds-font-size-body-1, 0.875rem);
    font-family: var(--dxds-font-family-sans-serif, -apple-system, BlinkMacSystemFont, "avenir next", avenir, "segoe ui", "helvetica neue", helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif);
    font-weight: var(--dxds-font-weight-body-1, 400);
    line-height: var(--dxds-line-height-body-1, 1.25rem);
    letter-spacing: var(--dxds-letter-spacing-body-1, normal);
    color: var(--dxds-color-content-neutral-default-rest, #111827) !important;
    background-color: var(--dxds-color-surface-neutral-subdued-rest, #f3f4f6) !important;
}

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

.icon {
    opacity: 0.7;
    background-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 100% 100%;
    background-color: currentColor;
}

/* Shared close control for dialogs, drawers and mobile panels. */
.vs-close-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--dxds-color-border-neutral-default-rest, var(--bs-border-color, #d8dde3));
    border-radius: .45rem;
    background: var(--dxds-color-surface-neutral-default-rest, var(--bs-body-bg, #fff));
    color: var(--dxds-color-content-neutral-default-rest, var(--bs-body-color, #212529));
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.vs-close-button:hover:not(:disabled) {
    border-color: var(--dxds-color-border-primary-default-rest, var(--bs-primary, #6b1d2b));
    background: var(--dxds-color-surface-neutral-subdued-rest, var(--bs-secondary-bg, #f4f5f6));
}

.vs-close-button:focus-visible {
    outline: 2px solid var(--dxds-color-border-primary-default-rest, var(--bs-primary, #6b1d2b));
    outline-offset: 2px;
}

.vs-close-button:disabled {
    cursor: default;
    opacity: .5;
}

.vs-close-button > i {
    display: block;
    line-height: 1;
}

/* Shared text action used by dashboard cards. */
.dashboard-action-link,
.dashboard-action-link:visited {
    color: var(--dxds-color-content-primary-default-rest);
    font-size: .82rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-action-link:hover {
    color: var(--dxds-color-content-primary-default-rest);
    text-decoration: none;
}

.dashboard-action-link:focus-visible {
    outline: 2px solid var(--dxds-color-border-primary-default-rest, var(--bs-primary));
    outline-offset: 2px;
    border-radius: 2px;
}

/* Connection card hover effects - global styles */
.connection-card:hover {
    outline: none !important;
    border-color: var(--bs-primary) !important;
    border-width: 1px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 123, 255, 0.03) !important;
}

.small-size .medium-icon {
    width: 1rem;
    height: 1rem;
}

/* Embedding Graph Text Overlay */
.tenant-name-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: slategrey;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--dxds-font-family-sans-serif);
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.copyright-info {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
    color: slategrey;
    font-size: 10px;
    font-family: var(--dxds-font-family-sans-serif);
    pointer-events: none;
    z-index: 10;
}

/* Full screen mode for embedding graph */
:fullscreen .graph-container,
:fullscreen .eg-controls-panel {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
}

:fullscreen .graph-container {
    flex: 1 !important;
}

:fullscreen .eg-controls-panel {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    min-width: 220px !important;
    max-height: 420px !important;
    overflow-y: auto !important;
}

:fullscreen .content-root {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

:fullscreen .toolbar {
    display: none !important;
}

:fullscreen .kb-stats-row {
    display: none !important;
}

.medium-size .medium-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.large-size .medium-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.small-size .avatar {
    width: 1.5rem;
    height: 1.5rem;
}

.medium-size .avatar {
    width: 2rem;
    height: 2rem;
}

.large-size .avatar {
    width: 2.5rem;
    height: 2.5rem;
}

.icon.large-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.icon.medium-icon {
    width: 1rem;
    height: 1rem;
}

.icon.small-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.notification {
    position: relative;
}

.notification::after {
    content: attr(notification-count) / "";
    color: white;
    display: flex;
    position: absolute;
    top: 0;
    left: 5%;
    font-size: 0.8em;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background-color: var(--vs-danger-action, #c65f78);
    align-items: center;
    justify-content: center;
}

.dropdown-no-padding {
    --dxbl-dropdown-body-padding-x: 0;
    --dxbl-dropdown-body-padding-y: 0;
}

/* Keep native Dashboard selects aligned and leave breathing room around the arrow. */
select.form-select {
    background-position: right .3125rem center;
}

@media (min-width: 899.98px) {
    .pw-800 {
        max-width: 800px !important;
        width: 800px !important;
    }
}

.loading-panel {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-panel>.loader {
    display: flex;
    align-items: center;
}

.loading-panel>.loader>.spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid color-mix(in sRGB, var(--dxds-color-surface-primary-default-rest) 30%, transparent);
    border-bottom-color: var(--dxds-color-surface-primary-default-rest);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 0.75s linear infinite;
}

.loading-panel>.loader>.label {
    color: var(--dxds-color-content-neutral-default-rest);
    font-size: var(--dxds-font-size-subtitle-2);
    font-weight: var(--dxds-font-weight-subtitle-2);
    margin-left: 0.75rem;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Override DevExpress grid cell padding */
.dxbl-grid .dxbl-grid-table>tbody>tr:not(.dxbl-grid-edit-row):not(.dxbl-grid-empty-row):not(.dxbl-grid-filter-row):not([dxbl-top-virtual-spacer-element]):not([dxbl-bottom-virtual-spacer-element])>td:not(.dxbl-grid-indent-cell):not(.dxbl-grid-expand-button-cell):not(.dxbl-grid-row-drag-anchor-cell):not(.dxbl-grid-empty-cell):not(.dxbl-grid-empty-data-area):not(.dxbl-grid-edit-form):not(.dxbl-grid-detail-cell) {
    padding: 0 !important;
}

.dxbl-accordion .dxbl-accordion-group.dxbl-group {
    --dxbl-accordion-group-border-color: var(--dxds-color-border-neutral-default-rest);
}

/* Remove outline from DevExpress accordion containers */
.dxbl-accordion .dxbl-expandable-container {
    outline: none !important;
}

.dxbl-accordion .dxbl-expandable-container:focus {
    outline: none !important;
}

.dxbl-accordion .dxbl-accordion .dxbl-accordion-group>.dxbl-accordion-group-body {
    outline: none !important;
}

/* Filter accordion — global override needed because DX renders content outside Blazor's scoped CSS */
.section-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bs-gray-600, #6c757d);
}

.filter-item-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-empty,
.filter-empty .filter-item-title,
.filter-empty .section-title {
    color: var(--bs-gray-500, #adb5bd) !important;
}


/* ── Search highlight — Chrome selection style ── */
mark {
    background-color: #b4d5fe;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: inherit;
}

/* ── KB Document Upload Styles ── */
.upload-validation-text {
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
}

.upload-container,
.upload-container>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.drop-file-icon {
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: #ADB5BD;
    width: 48px;
    height: 48px;
    -webkit-mask-image: var(--dxbl-icon-drop-file);
    mask-image: var(--dxbl-icon-drop-file);
}

.drop-file-label {
    font-weight: 500;
    font-size: 1rem;
}

.kb-grid-container {
    height: 100%;
    overflow: auto;
}

.kb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.kb-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.kb-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   AUTH DESIGN SYSTEM
   Shared primitives used by Login, Register, LoginWithPasskey pages.
   Individual page tweaks live in their own .razor.css scoped files.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Auth-scoped variable overrides ──────────────────────────────────────────
   Redefine DevExpress theme variables within .auth-page so the login pages
   always render with a neutral palette, isolated from the active tenant theme.
   ──────────────────────────────────────────────────────────────────────────── */
.auth-page {
    font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "segoe ui", "helvetica neue", helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    letter-spacing: normal;
    /* Primary — marketing panel background & CTA button */
    --dxds-color-surface-primary-default-rest:       #111;
    --dxds-color-content-primary-on-primary-rest:    #fff;
    --dxds-color-surface-primary-subtle-rest:        rgba(0, 0, 0, 0.06);
    --dxds-color-content-primary-default-rest:       #374151;
    --dxds-color-content-primary-on-surface-rest:    #374151;
    --dxds-color-border-primary-default-rest:        #374151;
    /* Neutral surfaces */
    --dxds-color-surface-neutral-subdued-rest:       #f3f4f6;
    --dxds-color-surface-neutral-default-rest:       #fff;
    /* Neutral text */
    --dxds-color-content-neutral-default-rest:       #111827;
    --dxds-color-content-neutral-subdued-rest:       #6b7280;
    --dxds-color-content-neutral-placeholder-rest:   #9ca3af;
    /* Neutral borders */
    --dxds-color-border-neutral-default-rest:        #e5e7eb;
    --dxds-color-border-neutral-hovered-rest:        #9ca3af;
    /* Danger */
    --dxds-color-content-danger-default-rest:        var(--vs-danger-text, #93364f);
    --dxds-color-border-danger-default-rest:         var(--vs-danger-border, #ecb5c3);
}

/* ── Page shell ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--dxds-color-surface-neutral-subdued-rest);
    gap: 1.5rem;
}

/* ── Split variant: marketing panel left, form right ── */
.auth-page--split {
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    gap: 0;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Left: marketing panel — uses --dxds-color-surface-primary-default-rest redefined above */
.auth-panel--marketing {
    flex: 0 0 42%;
    background: var(--dxds-color-surface-primary-default-rest);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem 3rem;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.auth-panel--marketing::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -140px;
    right: -140px;
    pointer-events: none;
}

.auth-panel--marketing::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    bottom: -70px;
    left: -70px;
    pointer-events: none;
}

/* ── Top: Logo ── */
.auth-mkt__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.auth-mkt__logo-img {
    height: 2rem;
    width: auto;
}

.auth-mkt__logo-fallback {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.auth-mkt__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

/* ── Center: Widget + Headline ── */
.auth-mkt__center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-mkt__headline {
    font-size: clamp(1.625rem, 2.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

.auth-mkt__sub {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin: 0;
}

/* ── Chat widget mockup ── */
.auth-mkt__widget {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.125rem;
    overflow: hidden;
    max-width: 290px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.auth-mkt__widget-header {
    background: rgba(255, 255, 255, 0.13);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-mkt__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dxds-color-surface-primary-default-rest);
    font-size: 0.6875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-mkt__agent-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.auth-mkt__agent-status {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.65);
}

.auth-mkt__widget-body {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-mkt__bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 88%;
}

.auth-mkt__bubble--ai {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.auth-mkt__bubble--user {
    background: rgba(255, 255, 255, 0.92);
    color: #312e81;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
    font-weight: 500;
}

.auth-mkt__typing {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.5rem;
    align-self: flex-start;
}

.auth-mkt__dot {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    animation: mkt-dot 1.4s ease-in-out infinite;
}

.auth-mkt__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.auth-mkt__dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes mkt-dot {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ── Bottom: Rating + bullets ── */
.auth-mkt__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.auth-mkt__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-mkt__stars {
    color: #fbbf24;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}

.auth-mkt__rating-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
}

.auth-mkt__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-mkt__bullets li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

.auth-mkt__bullets li::before {
    content: '\2713';
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Right: form panel — scrollable, centered card */
.auth-panel--form {
    padding: 2rem 1.5rem;
    min-height: 100vh;
    overflow-y: auto;
    background-color: var(--dxds-color-surface-neutral-subdued-rest);
}

/* Collapse to single column on small screens */
@media (max-width: 900px) {
    .auth-page--split {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .auth-panel--marketing {
        min-height: unset;
        width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 0.75rem;
    }

    .auth-panel--form {
        min-height: unset;
        padding: 0;
        width: 100%;
    }
}

/* ── Logo ── */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo__img {
    height: 2rem;
    width: auto;
    display: block;
}

.auth-logo__fallback {
    align-items: center;
    justify-content: center;
}

.auth-logo__wordmark {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dxds-color-content-neutral-default-rest);
    letter-spacing: -0.02em;
}

/* ── Card ── */
.auth-card {
    width: 100%;
    max-width: 26rem;
    background-color: var(--dxds-color-surface-neutral-default-rest);
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    border-radius: 0.875rem;
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── Card header ── */
.auth-card__header {
    text-align: center;
}

.auth-language-selector {
    align-items: center;
    align-self: flex-end;
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
}

.auth-language-selector select {
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    border-radius: 0.5rem;
    background: var(--dxds-color-surface-neutral-default-rest);
    color: var(--dxds-color-content-neutral-default-rest);
    padding: 0.25rem 0.5rem;
}

.auth-language-selector select:focus {
    outline: none;
}

.auth-language-selector select:focus-visible {
    background-color: var(--dxds-color-surface-neutral-subdued-rest, #f4f5f6);
}

.auth-card__title {
    margin: 0 0 0.375rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dxds-color-content-neutral-default-rest);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.auth-card__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
    line-height: 1.5;
}

/* ── Passkey icon in header ── */
.auth-passkey-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--dxds-color-surface-primary-subtle-rest);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem;
    color: var(--dxds-color-content-primary-default-rest);
}

.auth-passkey-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ── Form fields ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Standard input — styles Blazor InputText to match DevExpress theme ── */
.auth-input {
    width: 100%;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: var(--dxds-font-size-base, 0.9375rem);
    font-family: inherit;
    color: var(--dxds-color-content-neutral-default-rest);
    background-color: var(--dxds-color-surface-neutral-default-rest);
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    border-radius: var(--dxds-border-radius-control, 0.375rem);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    display: block;
}

.auth-input::placeholder {
    color: var(--dxds-color-content-neutral-placeholder-rest, #9ca3af);
}

.auth-input:hover {
    border-color: var(--dxds-color-border-neutral-hovered-rest);
}

.auth-input:focus {
    border-color: var(--dxds-color-border-primary-default-rest);
    box-shadow: 0 0 0 3px var(--dxds-color-surface-primary-subtle-rest, rgba(59, 130, 246, 0.15));
}

.auth-input.invalid,
.auth-input.modified.invalid {
    border-color: var(--dxds-color-border-danger-default-rest, #ecb5c3);
}

/* ── Logo fallback hidden by default ── */
.auth-logo__fallback {
    display: none;
}

.auth-logo__fallback--visible {
    display: flex;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dxds-color-content-neutral-default-rest);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.auth-label__hint {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--dxds-color-content-neutral-subdued-rest);
}

/* ── Inline checkbox row (terms) ── */
.auth-field--inline {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-checkbox {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: var(--dxds-color-surface-primary-default-rest);
    cursor: pointer;
}

.auth-label--inline {
    font-size: 0.875rem;
    font-weight: 400;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    cursor: pointer;
}

/* ── Primary CTA button ── */
button.auth-btn-primary {
    display: block;
    width: 100%;
    height: 2.75rem;
    padding: 0 1rem;
    border: none;
    border-radius: var(--dxds-border-radius-control, 0.375rem);
    background-color: var(--dxds-color-surface-primary-default-rest);
    color: var(--dxds-color-content-primary-on-primary-rest);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

button.auth-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

button.auth-btn-primary:hover {
    opacity: 0.92;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button.auth-btn-primary:active {
    opacity: 0.85;
}

button.auth-btn-primary:focus-visible {
    outline: 2px solid var(--dxds-color-border-primary-default-rest);
    outline-offset: 2px;
}

/* ── "or" divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-divider__line {
    flex: 1;
    height: 1px;
    background-color: var(--dxds-color-border-neutral-default-rest);
    opacity: 0.5;
}

.auth-divider__text {
    font-size: 0.8125rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Links ── */
.auth-link {
    color: var(--dxds-color-content-primary-default-rest);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ── Footer ── */
.auth-footer {
    text-align: center;
}

.auth-footer__text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
    text-align: center;
    line-height: 1.5;
}

/* Terms / legal consent line */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.auth-terms__checkbox {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: var(--dxds-color-surface-primary-default-rest);
    cursor: pointer;
}

.auth-terms__label {
    font-size: 0.75rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.auth-terms__label a {
    color: var(--dxds-color-content-primary-default-rest);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.auth-terms__label a:hover {
    opacity: 0.8;
}

/* ── Page-level legal note ── */
.auth-page__legal {
    font-size: 0.8125rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
    text-align: center;
    max-width: 26rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Validation ── */
.auth-validation {
    font-size: 0.8125rem;
    color: var(--dxds-color-content-danger-default-rest, #93364f);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-page {
        padding: 1rem 0.75rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 0.75rem;
    }

    .auth-card__title {
        font-size: 1.375rem;
    }
}

@media (min-width: 768px) {
    .auth-card {
        padding: 2.25rem 2.5rem 2rem;
    }
}/* Login page uses the split-panel layout from app.css (.auth-page--split) */
/* This file adds only login-specific overrides and new component styles */

/* ── Alert banners ── */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-alert--error {
    background: var(--vs-danger-surface, #fff1f4);
    color: var(--vs-danger-text, #93364f);
    border: 1px solid var(--vs-danger-border, #ecb5c3);
}

.auth-alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

/* ── Email "done" state ── */
.auth-input--done {
    background: var(--dxds-color-surface-neutral-subdued-rest, #f5f5f5);
    color: var(--dxds-color-content-neutral-subdued-rest, #666);
    cursor: default;
}

/* ── OTP input — moderately spaced entered digits ── */
.auth-input--otp {
    letter-spacing: 0.25rem;
    font-size: 1.125rem;
    text-align: left;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.auth-input--otp::placeholder {
    font-family: Arial, Helvetica, sans-serif; /* Perfectly centers the '•' bullet vertically */
    color: #9ca3af;
    letter-spacing: 0.35rem; /* Space out the dots slightly more than the numbers */
}

/* ── Tenant selection card ── */
.auth-tenant-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-tenant-card {
    display: flex;
    align-items: center;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: var(--dxds-border-radius-control, 0.375rem);
    cursor: pointer;
    transition: background 0.12s;
    background: var(--dxds-color-surface-neutral-subdued-rest, #f3f4f6);
    border: 1px solid var(--dxds-color-border-neutral-default-rest, #e5e7eb);
    outline: 1.5px solid transparent;
    outline-offset: 1px;
    color: inherit;
    text-decoration: none;
}

.auth-tenant-card:hover {
    background: var(--dxds-color-surface-neutral-subdued-rest, #eaebec);
    filter: brightness(0.97);
}

.auth-tenant-card--selected {
    outline-color: var(--dxds-color-border-neutral-hovered-rest, #9ca3af);
}

/* Hide browser radio — selection is shown by the card outline + checkmark */
.auth-tenant-card input[type="radio"] {
    display: none;
}

.auth-tenant-card__name {
    font-size: 0.9375rem;
    font-weight: 500;
    flex: 1;
}

/* Checkmark on the right when selected */
.auth-tenant-card--selected::after {
    content: '\2713';
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dxds-color-content-neutral-default-rest, #374151);
    flex-shrink: 0;
}

/* ── Link-style buttons ── */
.auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.875rem;
    color: var(--dxds-color-content-primary-on-surface-rest);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link-btn:hover {
    opacity: 0.8;
}

.auth-link-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-link-btn--add {
    color: var(--dxds-color-content-primary-on-surface-rest);
    font-size: 0.875rem;
}

/* ── Social login button ── */
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    height: 2.75rem;
    padding: 0 1rem;
    border: 1.5px solid var(--dxds-color-border-neutral-default-rest, #d1d5db);
    border-radius: var(--dxds-border-radius-control, 0.375rem);
    background: #fff;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.auth-social-btn:hover {
    background: #f9fafb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.auth-btn-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* ── Step transition (fade) ── */
.auth-form > * {
    animation: authFadeIn 0.2s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile: single column ── */
@media (max-width: 900px) {
    .auth-panel--marketing {
        display: none;
    }
}

/* ── Embedding Graph Controls (JS-created DOM, must be global) ────────── */

.eg-controls-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    pointer-events: auto;
}

.eg-controls-panel {
    background: rgba(13, 17, 23, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 220px;
    max-height: 420px;
    overflow-y: auto;
    color: #c9d1d9;
    font-size: 12px;
}

.eg-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
}

.eg-toggle-btn {
    background: none;
    border: none;
    color: #c9d1d9;
    cursor: pointer;
    padding: 2px;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.eg-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.eg-controls-content {
    display: block;
}

.eg-btn-all,
.eg-btn-none {
    padding: 1px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 11px;
}

.eg-btn-all:hover,
.eg-btn-none:hover {
    background: rgba(255, 255, 255, 0.1);
}

.eg-cluster-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eg-cluster-row {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.eg-cluster-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.eg-cluster-label {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-view-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.eg-btn {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 11px;
    flex: 1;
    text-align: center;
}

.eg-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.eg-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #8b949e;
    font-size: 1rem;
}

.eg-searchbox {
    min-width: 220px;
}

.dx-toolbar-item .eg-searchbox {
    margin-right: 8px;
}

/* Shared operational page shell: Billing, Usage, Statistics, Training and Use Cases. */
.summary-page,
.summary-page * {
    box-sizing: border-box;
}

.summary-page {
    display: flex;
    flex-direction: column;
    gap: var(--dashboard-tile-gap);
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
}

.summary-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.summary-header p,
.card-heading p {
    margin: .35rem 0 0;
    color: var(--dxds-color-content-neutral-subdued-rest);
}

.summary-header .summary-action-button,
.summary-header .summary-action-button:visited {
    --bs-btn-color: var(--dxds-color-content-primary-default-rest);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--dxds-color-border-primary-default-rest);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--dxds-color-surface-primary-default-rest);
    --bs-btn-hover-border-color: var(--dxds-color-surface-primary-default-rest);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--dxds-color-surface-primary-default-rest);
    --bs-btn-active-border-color: var(--dxds-color-surface-primary-default-rest);
    color: var(--dxds-color-content-primary-default-rest);
    background: transparent;
    border: 1px solid var(--dxds-color-border-primary-default-rest);
}

.summary-header a.summary-action-button:hover,
.summary-header a.summary-action-button:focus-visible,
.summary-header a.summary-action-button:active {
    color: #fff !important;
    background: var(--dxds-color-surface-primary-default-rest);
    border-color: var(--dxds-color-surface-primary-default-rest);
}

.summary-header .summary-action-button:focus-visible {
    outline: 2px solid var(--dxds-color-border-primary-default-rest);
    outline-offset: 2px;
}

.summary-loading {
    min-height: 260px;
    display: grid;
    place-items: center;
}

/* Shared Dashboard Copilot contract. Product Catalogue and Knowledge Base
   use the same prompt grid without an inner horizontal scrollbar. */
:is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-prompt-suggestions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: .5rem !important;
    width: 100%;
    min-width: 0;
}

:is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-prompt-suggestion {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: none !important;
    height: 100%;
    margin: 0;
    flex: none;
}

:is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-prompt-suggestion-title,
:is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-prompt-suggestion-subtitle {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-copilot-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 1rem;
    color: var(--bs-gray-700);
    text-align: center;
}

.dashboard-copilot-hint-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--bs-primary);
    background-color: var(--bs-primary) !important;
}

.dashboard-copilot-hint p {
    margin: 0;
    color: var(--bs-gray-700);
    font-size: 1rem;
    font-weight: 700;
}

:is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-scrollviewer,
:is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-scroll-viewer-content,
:is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-messages {
    max-width: 100%;
    overflow-x: hidden !important;
}

@media (max-width: 767.98px) {
    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) {
        height: auto !important;
        min-height: 0;
        flex: 1 1 0;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        overflow: hidden;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) > .dxbl-loading-panel,
    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-loading-panel-target-content,
    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        min-height: 0;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-scrollviewer {
        flex: 1 1 0;
        min-height: 0;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat).dxbl-chatui-emptystate .dxbl-chatui-messages {
        justify-content: flex-start !important;
        padding-top: 2.5rem !important;
    }

    .dashboard-copilot-hint {
        padding: 1rem .75rem;
        gap: .65rem;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-submitarea {
        flex: 0 0 auto;
        min-height: 0;
        padding: .75rem 1rem max(1.25rem, env(safe-area-inset-bottom)) !important;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-submitarea-container {
        width: 100%;
        min-width: 0;
        max-width: none !important;
        height: auto !important;
        min-height: 6rem;
        max-height: none;
        border-radius: .4375rem !important;
        overflow: hidden;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-input {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        max-width: none !important;
        height: auto !important;
        min-height: 6rem;
        max-height: none;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-chatui-input textarea {
        flex: 0 1 auto;
        box-sizing: border-box;
        width: 100%;
        height: auto !important;
        min-height: 3rem;
        max-height: 8rem;
        padding: .5rem .875rem .25rem;
        overflow-y: auto;
        resize: none;
        field-sizing: content;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-memo-edit-buttons-area {
        position: static;
        flex: 0 0 3rem;
        z-index: 1;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        height: 3rem;
        padding: .5rem .875rem;
        transform: none;
        pointer-events: none;
    }

    :is(.dashboard-copilot, .catalog-ai-chat, .kb-ai-chat) .dxbl-memo-edit-buttons-area button {
        pointer-events: auto;
    }
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--dashboard-tile-gap);
    margin: 0;
}

.metric-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card,
.summary-card {
    background: var(--dxds-color-surface-neutral-default-rest);
    color: var(--dxds-color-content-neutral-default-rest);
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    border-radius: 8px;
}

.metric-card {
    padding: var(--dashboard-tile-padding);
    display: flex;
    flex-direction: column;
    min-height: 132px;
}

.metric-card span,
.metric-card small {
    color: var(--dxds-color-content-neutral-subdued-rest);
    font-size: .78rem;
}

.eyebrow {
    color: var(--dxds-color-content-neutral-subdued-rest);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.metric-card strong {
    font-size: 2rem;
    margin: .55rem 0 .25rem;
    line-height: 1;
}

.metric-card .metric-date {
    font-size: 1.2rem;
    line-height: 1.25;
}

.summary-card {
    padding: var(--dashboard-tile-padding);
    margin-top: 0;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-heading h2,
.billing-hero h2,
.action-card h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
}

.usage-track {
    height: 8px;
    background: var(--dxds-color-surface-neutral-subdued-rest);
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: var(--dxds-color-surface-primary-default-rest);
    border-radius: inherit;
}

.usage-fill.warning {
    background: var(--bs-warning);
}

.usage-fill.critical {
    background: var(--dxds-color-content-danger-default-rest);
}

.usage-level-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
    font-size: .8rem;
    font-weight: 600;
}

.usage-level-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: var(--bs-success);
    border-radius: 50%;
}

.usage-level-status.warning .usage-level-dot {
    background: var(--bs-warning);
}

.usage-level-status.critical .usage-level-dot {
    background: var(--bs-danger);
}

.expiry-note {
    color: var(--dxds-color-content-neutral-subdued-rest);
    font-size: .82rem;
    margin: 1rem 0 0;
}

.monthly-usage-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(.65rem, 3vw, 2rem);
    min-height: 220px;
    padding: 1rem clamp(.25rem, 2vw, 1rem) 0;
    background-image: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent calc(25% - 1px),
        color-mix(in srgb, var(--dxds-color-border-neutral-default-rest) 55%, transparent) 25%
    );
    background-size: 100% calc(100% - 2.1rem);
    background-repeat: no-repeat;
}

.monthly-usage-column {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(170px, 1fr) auto;
    min-width: 0;
}

.monthly-usage-column.starts-year:not(.is-first-year) {
    border-left: 1px dashed color-mix(in srgb, var(--dxds-color-border-primary-default-rest) 65%, transparent);
}

.monthly-usage-year {
    position: absolute;
    top: 0;
    left: .5rem;
    color: var(--dxds-color-content-primary-default-rest);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
}

.monthly-usage-column.is-first-year .monthly-usage-year {
    left: 0;
}

.monthly-usage-plot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    min-height: 170px;
}

.monthly-usage-bar {
    width: min(42px, 55%);
    height: var(--usage-height);
    min-height: 0;
    background: linear-gradient(
        180deg,
        var(--dxds-color-surface-primary-default-rest),
        color-mix(in srgb, var(--dxds-color-surface-primary-default-rest) 68%, transparent)
    );
    border-radius: 7px 7px 3px 3px;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--dxds-color-surface-primary-default-rest) 18%, transparent);
    transition: height .2s ease;
}

.monthly-usage-column.is-zero .monthly-usage-bar {
    height: 4px;
    min-height: 4px;
    background: color-mix(in srgb, var(--dxds-color-surface-primary-default-rest) 30%, var(--dxds-color-surface-neutral-subdued-rest));
    border-radius: 2px;
    box-shadow: none;
}

.monthly-usage-value {
    margin-bottom: .45rem;
    color: var(--dxds-color-content-neutral-default-rest);
    font-size: .78rem;
    font-weight: 650;
    line-height: 1;
}

.monthly-usage-month {
    padding-top: .75rem;
    color: var(--dxds-color-content-neutral-subdued-rest);
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
}

.empty-copy {
    color: var(--dxds-color-content-neutral-subdued-rest);
    padding: 2rem 0;
    text-align: center;
}

.two-column {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--dashboard-tile-gap);
    margin: 0;
}

.two-column > .summary-card {
    height: fit-content;
}

.billing-hero > .card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.billing-hero h2 {
    font-size: 1.8rem;
    margin-top: .45rem;
}

.billing-hero p {
    color: var(--dxds-color-content-neutral-subdued-rest);
    margin: .45rem 0 0;
}

.billing-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.action-card:hover {
    color: inherit;
    border-color: var(--dxds-color-border-primary-default-rest);
    transform: translateY(-1px);
}

.action-card p {
    color: var(--dxds-color-content-neutral-subdued-rest);
    margin: .4rem 0 0;
}

.action-icon {
    color: var(--dxds-color-content-primary-default-rest);
    font-size: 1.3rem;
}

/* Shared profile-avatar interaction treatment. The control may itself be the
   circular avatar or contain a circular avatar surface alongside identity text. */
.customer-profile-avatar-surface {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--dxds-color-surface-neutral-subdued-rest);
    box-shadow: inset 0 0 0 1px var(--dxds-color-border-neutral-default-rest);
    transition: background-color .15s ease, box-shadow .15s ease;
}

.customer-profile-control:hover.customer-profile-avatar-surface,
.customer-profile-control:hover .customer-profile-avatar-surface {
    background: var(--dxds-color-surface-neutral-default-rest);
    box-shadow: inset 0 0 0 1px var(--dxds-color-border-primary-default-rest);
}

.customer-profile-control:focus-visible.customer-profile-avatar-surface,
.customer-profile-control:focus-visible .customer-profile-avatar-surface {
    outline: 0;
    box-shadow:
        0 0 0 2px var(--dxds-color-surface-neutral-default-rest),
        0 0 0 4px var(--dxds-color-border-primary-default-rest);
}

@media (prefers-reduced-motion: reduce) {
    .customer-profile-avatar-surface {
        transition: none;
    }
}

@media (max-width: 900px) {
    .metric-grid,
    .metric-grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .summary-page {
        padding: var(--dashboard-page-padding-mobile);
    }

    .summary-header {
        flex-direction: column;
    }

    .summary-card,
    .metric-card {
        padding: 1rem;
    }

    .metric-card {
        min-height: 110px;
    }

    .card-heading,
    .billing-hero > .card-body {
        flex-direction: column;
    }

    .summary-header > .btn {
        width: 100%;
    }

    .metric-grid,
    .metric-grid-five,
    .billing-actions-grid {
        grid-template-columns: 1fr;
    }

    .monthly-usage-chart {
        gap: .45rem;
        min-height: 180px;
        padding-inline: 0;
    }

    .monthly-usage-column {
        grid-template-rows: minmax(130px, 1fr) auto;
    }

    .monthly-usage-plot {
        min-height: 130px;
    }

    .monthly-usage-bar {
        width: min(32px, 62%);
    }

    .monthly-usage-value,
    .monthly-usage-month,
    .monthly-usage-year {
        font-size: .7rem;
    }
}
