/* Core by xdecaro 2.2.3 - public opt-in administrator UI contract. */

.xdecaro-scope.xdecaro-suite,
.xdecaro-suite {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: var(--xdecaro-space-6, 1.5rem);
    container-name: xdecaro-suite;
    container-type: inline-size;
    color: var(--xdecaro-color-text);
}

.xdecaro-suite > *,
.xdecaro-suite .xdecaro-card,
.xdecaro-suite .xdecaro-card__header,
.xdecaro-suite .xdecaro-card__body,
.xdecaro-suite .xdecaro-card__footer,
.xdecaro-suite__hero,
.xdecaro-suite__hero > *,
.xdecaro-suite__page-header,
.xdecaro-suite__section,
.xdecaro-suite__info-card,
.xdecaro-suite__responsive-wrap,
.xdecaro-form,
.xdecaro-form > *,
.xdecaro-filterbar,
.xdecaro-accordion {
    min-width: 0;
    max-width: 100%;
}

.xdecaro-suite__hero,
.xdecaro-suite__page-header {
    color: var(--xdecaro-color-text);
}

.xdecaro-suite__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--xdecaro-space-4, 1rem);
}

.xdecaro-suite__hero h2,
.xdecaro-suite__page-header h2 {
    margin: 0;
    color: var(--xdecaro-color-text);
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.xdecaro-suite__hero p,
.xdecaro-suite__page-header p,
.xdecaro-suite__note,
.xdecaro-suite__long-value,
.xdecaro-suite code {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.xdecaro-suite__hero p,
.xdecaro-suite__page-header p,
.xdecaro-suite__note {
    margin: var(--xdecaro-space-2, 0.5rem) 0 0;
    color: var(--xdecaro-color-muted);
}

.xdecaro-suite__page-header {
    display: grid;
    gap: var(--xdecaro-space-1, 0.25rem);
}

.xdecaro-suite__page-header p {
    max-width: 60rem;
}

.xdecaro-suite__eyebrow {
    display: block;
    margin: 0 0 var(--xdecaro-space-1, 0.25rem);
    color: var(--xdecaro-color-primary);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.xdecaro-suite__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    gap: var(--xdecaro-space-4, 1rem);
    min-width: 0;
}

.xdecaro-suite__metric {
    display: flex;
    min-width: 0;
    min-height: 5.5rem;
    padding: 1.125rem 1.25rem;
    flex-direction: column;
    justify-content: center;
    gap: var(--xdecaro-space-2, 0.5rem);
}

.xdecaro-suite__metrics--fill-last > :last-child {
    grid-column: 1 / -1;
}

.xdecaro-suite__metric strong {
    color: var(--xdecaro-color-text);
    font-size: clamp(1.65rem, 2vw, 1.875rem);
    font-weight: 750;
    line-height: 1;
}

.xdecaro-suite__metric span,
.xdecaro-suite__muted {
    color: var(--xdecaro-color-muted);
    font-size: 0.8125rem;
}

.xdecaro-suite__metric span {
    font-weight: 650;
}

.xdecaro-suite__section {
    width: 100%;
    overflow: clip;
}

.xdecaro-suite__actions,
.xdecaro-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--xdecaro-space-2, 0.5rem);
}

.xdecaro-suite__actions {
    margin-top: var(--xdecaro-space-3, 0.75rem);
}

.xdecaro-suite__count-badge {
    min-height: 2.25rem;
    max-width: 100%;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    white-space: normal;
}

.xdecaro-suite__info-grid,
.xdecaro-information__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--xdecaro-space-4, 1rem);
}

.xdecaro-suite__info-card,
.xdecaro-information__panel {
    min-width: 0;
    overflow: clip;
}

.xdecaro-suite__info-card--full,
.xdecaro-information__panel--full {
    grid-column: 1 / -1;
}

.xdecaro-suite__card-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--xdecaro-space-3, 0.75rem);
}

.xdecaro-suite__definition-list,
.xdecaro-information__key-values {
    display: grid;
    margin: 0;
}

.xdecaro-suite__definition-list > div,
.xdecaro-information__key-values > div {
    display: grid;
    grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.2fr);
    gap: var(--xdecaro-space-4, 1rem);
    padding: 0.8rem 0;
    align-items: center;
    border-bottom: 1px solid var(--xdecaro-color-border);
}

.xdecaro-suite__definition-list > div:first-child,
.xdecaro-information__key-values > div:first-child { padding-top: 0; }
.xdecaro-suite__definition-list > div:last-child,
.xdecaro-information__key-values > div:last-child { padding-bottom: 0; border-bottom: 0; }
.xdecaro-suite__definition-list dt,
.xdecaro-information__key-values dt { color: var(--xdecaro-color-muted); font-size: 0.875rem; font-weight: 650; }
.xdecaro-suite__definition-list dd,
.xdecaro-information__key-values dd { min-width: 0; margin: 0; color: var(--xdecaro-color-text); overflow-wrap: anywhere; }

.xdecaro-suite__diagnostic-list {
    display: grid;
    min-width: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.xdecaro-suite__diagnostic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--xdecaro-space-4, 1rem);
    align-items: center;
    padding: var(--xdecaro-space-4, 1rem) 0;
    border-bottom: 1px solid var(--xdecaro-color-border);
}

.xdecaro-suite__diagnostic-row:last-child { border-bottom: 0; }
.xdecaro-suite__diagnostic-row > div { min-width: 0; }
.xdecaro-suite__diagnostic-row strong { display: block; margin-bottom: 0.15rem; color: var(--xdecaro-color-text); }

.xdecaro-suite__notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--xdecaro-space-3, 0.75rem);
    margin-top: var(--xdecaro-space-5, 1.25rem);
    padding: var(--xdecaro-space-4, 1rem);
    align-items: center;
    border: 1px solid var(--xdecaro-color-border);
    border-radius: var(--xdecaro-radius-md, 0.625rem);
    background: var(--xdecaro-color-surface-subtle);
}

.xdecaro-suite__notice--success { border-color: var(--xdecaro-color-success); }
.xdecaro-suite__notice--warning { border-color: var(--xdecaro-color-warning); }
.xdecaro-suite__notice--danger { border-color: var(--xdecaro-color-danger); }

.xdecaro-suite__notice-icon {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    background: var(--xdecaro-color-primary);
    color: var(--xdecaro-color-primary-contrast);
    font-weight: 750;
}

.xdecaro-suite__notice-content { min-width: 0; }
.xdecaro-suite__notice-content p { margin: 0.2rem 0 0; color: var(--xdecaro-color-muted); overflow-wrap: anywhere; }

.xdecaro-suite__summary-bar {
    display: flex;
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.7rem 0.9rem;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--xdecaro-space-2, 0.5rem);
    border: 1px solid var(--xdecaro-color-border);
    border-radius: var(--xdecaro-radius-lg, 0.875rem);
    background: var(--xdecaro-color-surface);
    box-shadow: var(--xdecaro-shadow-sm);
}

.xdecaro-suite__summary-bar strong { margin-right: auto; }

.xdecaro-suite__responsive-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--xdecaro-color-border);
    border-radius: 0.75rem;
}

.xdecaro-suite__responsive-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    background: var(--xdecaro-color-surface);
    color: var(--xdecaro-color-text);
}

.xdecaro-suite__responsive-table th,
.xdecaro-suite__responsive-table td {
    min-width: 0;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--xdecaro-color-border);
    text-align: start;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.xdecaro-suite__responsive-table th {
    background: var(--xdecaro-color-surface-subtle);
    color: var(--xdecaro-color-muted);
    font-size: 0.75rem;
    font-weight: 750;
    white-space: nowrap;
}

.xdecaro-suite__responsive-table tbody tr {
    background: var(--xdecaro-color-surface);
    transition: background-color 0.15s ease;
}

.xdecaro-suite__responsive-table tbody tr:hover {
    background: color-mix(in srgb, var(--xdecaro-color-primary) 3%, var(--xdecaro-color-surface));
}

.xdecaro-suite__responsive-table tbody tr:last-child td {
    border-bottom: 0;
}

.xdecaro-suite__action-heading,
.xdecaro-suite__action-cell {
    width: 1%;
    text-align: end;
    white-space: nowrap;
}

.xdecaro-form {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: var(--xdecaro-space-5, 1.25rem);
}

.xdecaro-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--xdecaro-space-4, 1rem);
    min-width: 0;
}

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

.xdecaro-form-section {
    display: grid;
    min-width: 0;
    gap: var(--xdecaro-space-4, 1rem);
}

.xdecaro-form-help {
    margin: 0;
    color: var(--xdecaro-color-muted);
    font-size: 0.875rem;
}

.xdecaro-form .control-group {
    display: grid;
    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
    gap: var(--xdecaro-space-3, 0.75rem);
    align-items: start;
    min-width: 0;
}

.xdecaro-form .control-label,
.xdecaro-form .controls {
    min-width: 0;
    max-width: 100%;
}

.xdecaro-form .controls,
.xdecaro-form input:not([type="checkbox"]):not([type="radio"]),
.xdecaro-form select,
.xdecaro-form textarea,
.xdecaro-form .choices,
.xdecaro-form .choices__inner,
.xdecaro-form .field-calendar,
.xdecaro-form joomla-field-fancy-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* xdecaro.ui / backend-form - shared complex administrator form profile. */
.xdecaro-backend-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.xdecaro-backend-form__layout,
.xdecaro-backend-form__main,
.xdecaro-backend-form__sidebar,
.xdecaro-backend-form__section,
.xdecaro-backend-form__section-header,
.xdecaro-backend-form__fields,
.xdecaro-backend-form__field,
.xdecaro-backend-form__sidebar-card,
.xdecaro-backend-form__status-card,
.xdecaro-backend-form__metadata-card,
.xdecaro-backend-form__help-block,
.xdecaro-backend-form__action-row {
    min-width: 0;
    max-width: 100%;
}

.xdecaro-backend-form__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--xdecaro-space-6, 1.5rem);
    align-items: start;
}

.xdecaro-backend-form__layout--sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
}

.xdecaro-backend-form__main,
.xdecaro-backend-form__sidebar {
    display: grid;
    gap: var(--xdecaro-space-5, 1.25rem);
    align-content: start;
}

/* Section cards compose the existing .xdecaro-card primitive. */
.xdecaro-backend-form__section {
    overflow: clip;
}

.xdecaro-backend-form__section-header {
    display: grid;
    gap: var(--xdecaro-space-1, 0.25rem);
}

.xdecaro-backend-form__fields {
    display: grid;
    gap: var(--xdecaro-space-4, 1rem);
    width: 100%;
}

.xdecaro-backend-form__fields--single {
    grid-template-columns: minmax(0, 1fr);
}

.xdecaro-backend-form__fields--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xdecaro-backend-form__field--full {
    grid-column: 1 / -1;
}

.xdecaro-backend-form__field--compact {
    width: 100%;
    max-inline-size: 22rem;
    justify-self: start;
}

/* Joomla renderField() groups stay native; backend-form only normalizes layout. */
.xdecaro-backend-form .control-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--xdecaro-space-1, 0.25rem);
    min-width: 0;
    align-items: start;
}

.xdecaro-backend-form .control-label,
.xdecaro-backend-form .controls {
    min-width: 0;
    max-width: 100%;
}

.xdecaro-backend-form .control-label {
    color: var(--xdecaro-color-text);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.xdecaro-backend-form .form-text,
.xdecaro-backend-form__field-help {
    margin-top: var(--xdecaro-space-1, 0.25rem);
    color: var(--xdecaro-color-muted);
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.xdecaro-backend-form [aria-invalid="true"] {
    border-color: var(--xdecaro-color-danger);
}

.xdecaro-backend-form .control-group.invalid .control-label,
.xdecaro-backend-form__error {
    color: var(--xdecaro-color-danger);
}

.xdecaro-backend-form__error {
    display: block;
    margin-top: var(--xdecaro-space-1, 0.25rem);
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.xdecaro-backend-form :where(input, select, textarea, button, a[href], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid var(--xdecaro-color-primary);
    outline-offset: 2px;
}

.xdecaro-backend-form__sidebar-card,
.xdecaro-backend-form__status-card,
.xdecaro-backend-form__metadata-card {
    width: 100%;
}

.xdecaro-backend-form__status-card .xdecaro-card__body,
.xdecaro-backend-form__metadata-card .xdecaro-card__body {
    display: grid;
    gap: var(--xdecaro-space-3, 0.75rem);
}

.xdecaro-backend-form__metadata-list {
    display: grid;
    margin: 0;
}

.xdecaro-backend-form__metadata-list > div {
    display: grid;
    grid-template-columns: minmax(6rem, auto) minmax(0, 1fr);
    gap: var(--xdecaro-space-3, 0.75rem);
    padding: var(--xdecaro-space-2, 0.5rem) 0;
    align-items: baseline;
    border-bottom: 1px solid var(--xdecaro-color-border);
}

.xdecaro-backend-form__metadata-list > div:first-child {
    padding-top: 0;
}

.xdecaro-backend-form__metadata-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.xdecaro-backend-form__metadata-list dt,
.xdecaro-backend-form__metadata-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.xdecaro-backend-form__metadata-list dt {
    color: var(--xdecaro-color-muted);
    font-size: 0.8125rem;
    font-weight: 650;
}

.xdecaro-backend-form__metadata-list dd {
    color: var(--xdecaro-color-text);
}

.xdecaro-backend-form__help-block {
    padding: var(--xdecaro-space-3, 0.75rem) var(--xdecaro-space-4, 1rem);
    border: 1px solid var(--xdecaro-color-border);
    border-inline-start: 0.25rem solid var(--xdecaro-color-primary);
    border-radius: var(--xdecaro-radius-md, 0.625rem);
    background: var(--xdecaro-color-surface-subtle);
    color: var(--xdecaro-color-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.xdecaro-backend-form__action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--xdecaro-space-2, 0.5rem);
}

@container xdecaro-suite (max-width: 62rem) {
    .xdecaro-backend-form__layout--sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container xdecaro-suite (max-width: 38rem) {
    .xdecaro-backend-form__fields--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .xdecaro-backend-form__field--compact {
        max-inline-size: none;
    }

    .xdecaro-backend-form__metadata-list > div {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--xdecaro-space-1, 0.25rem);
    }
}

/*
 * Standard list filterbar. Existing flex layouts remain supported; the
 * --expandable modifier opts in to the shared Search / Clear / Filters row.
 */
.xdecaro-filterbar {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--xdecaro-space-2, 0.5rem);
}

.xdecaro-filterbar--expandable {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: var(--xdecaro-space-3, 0.75rem);
    align-items: stretch;
}

.xdecaro-filterbar__search {
    flex: 1 1 18rem;
    min-width: min(100%, 12rem);
}

.xdecaro-filterbar--expandable .xdecaro-filterbar__search {
    min-width: 0;
}

.xdecaro-filterbar__filter {
    flex: 0 1 13rem;
    min-width: min(100%, 10rem);
}

.xdecaro-filterbar__actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: var(--xdecaro-space-2, 0.5rem);
}

.xdecaro-filterbar__toggle,
.xdecaro-filterbar__close {
    align-self: stretch;
}

.xdecaro-filterbar__advanced {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--xdecaro-space-3, 0.75rem);
    padding-top: var(--xdecaro-space-3, 0.75rem);
    align-items: stretch;
    border-top: 1px solid var(--xdecaro-color-border);
}

.xdecaro-filterbar__advanced-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: var(--xdecaro-space-3, 0.75rem);
    min-width: 0;
}

.xdecaro-filterbar__advanced[hidden] {
    display: none;
}

.xdecaro-filterbar input,
.xdecaro-filterbar select,
.xdecaro-filterbar .choices {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.xdecaro-accordion {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: var(--xdecaro-space-2, 0.5rem);
}

.xdecaro-accordion__item {
    min-width: 0;
    overflow: clip;
    border: 1px solid var(--xdecaro-color-border);
    border-radius: var(--xdecaro-radius-md, 0.625rem);
    background: var(--xdecaro-color-surface);
}

.xdecaro-accordion__button {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.9rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--xdecaro-space-3, 0.75rem);
    border: 0;
    background: transparent;
    color: var(--xdecaro-color-text);
    font: inherit;
    font-weight: 650;
    text-align: start;
}

.xdecaro-accordion__button:focus-visible {
    outline: 2px solid var(--xdecaro-color-primary);
    outline-offset: -2px;
}

.xdecaro-accordion__body {
    min-width: 0;
    padding: var(--xdecaro-space-4, 1rem);
    border-top: 1px solid var(--xdecaro-color-border);
}

@container xdecaro-suite (max-width: 55rem) {
    .xdecaro-suite__info-grid,
    .xdecaro-information__grid { grid-template-columns: 1fr; }
    .xdecaro-suite__info-card--full,
    .xdecaro-information__panel--full { grid-column: auto; }

    .xdecaro-suite__responsive-wrap--stack {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__responsive-table {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        background: transparent;
    }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__responsive-table > thead { display: none; }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__responsive-table > tbody {
        display: grid;
        gap: var(--xdecaro-space-3, 0.75rem);
        min-width: 0;
    }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__responsive-table > tbody > tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        overflow: clip;
        border: 1px solid var(--xdecaro-color-border);
        border-radius: var(--xdecaro-radius-md, 0.625rem);
        background: var(--xdecaro-color-surface);
    }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__responsive-table > tbody > tr > td {
        display: block;
        min-width: 0;
        padding: 0.7rem 0.8rem;
        border-bottom: 1px solid var(--xdecaro-color-border);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__responsive-table > tbody > tr > td[data-label]::before {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--xdecaro-color-muted);
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__action-cell {
        width: auto;
        text-align: start;
        white-space: normal;
    }
}

@container xdecaro-suite (max-width: 38rem) {
    .xdecaro-suite { gap: var(--xdecaro-space-4, 1rem); }

    .xdecaro-suite__hero,
    .xdecaro-suite__card-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .xdecaro-suite__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--xdecaro-space-3, 0.75rem);
    }

    .xdecaro-suite__metric {
        min-height: 5rem;
        padding: 0.875rem 1rem;
    }

    .xdecaro-suite__diagnostic-row { grid-template-columns: 1fr; gap: var(--xdecaro-space-2, 0.5rem); }
    .xdecaro-suite__diagnostic-row .xdecaro-badge { justify-self: start; }

    .xdecaro-suite__notice { grid-template-columns: auto minmax(0, 1fr); }
    .xdecaro-suite__notice .xdecaro-button { grid-column: 1 / -1; justify-self: start; }

    .xdecaro-suite__definition-list > div,
    .xdecaro-information__key-values > div { grid-template-columns: 1fr; gap: var(--xdecaro-space-1, 0.25rem); }

    .xdecaro-form-grid--2 { grid-template-columns: 1fr; }

    .xdecaro-form .control-group {
        grid-template-columns: 1fr;
        gap: var(--xdecaro-space-1, 0.25rem);
    }

    .xdecaro-filterbar,
    .xdecaro-filterbar__actions { flex-direction: column; }

    .xdecaro-filterbar--expandable,
    .xdecaro-filterbar__advanced {
        grid-template-columns: 1fr;
    }

    .xdecaro-filterbar__advanced-fields,
    .xdecaro-filterbar__advanced,
    .xdecaro-filterbar__toggle,
    .xdecaro-filterbar__close,
    .xdecaro-filterbar__search,
    .xdecaro-filterbar__filter,
    .xdecaro-filterbar__actions,
    .xdecaro-filterbar__actions .xdecaro-button,
    .xdecaro-filterbar__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@container xdecaro-suite (max-width: 24rem) {
    .xdecaro-suite__metrics { grid-template-columns: 1fr; }

    .xdecaro-suite__responsive-wrap--stack .xdecaro-suite__responsive-table > tbody > tr {
        grid-template-columns: 1fr;
    }

    .xdecaro-suite__notice { grid-template-columns: 1fr; }
    .xdecaro-suite__notice-icon { display: none; }
}

@media (max-width: 767.98px) {
    .xdecaro-suite__hero,
    .xdecaro-suite__card-heading { align-items: stretch; flex-direction: column; }
    .xdecaro-form-grid--2 { grid-template-columns: 1fr; }
    .xdecaro-form .control-group { grid-template-columns: 1fr; gap: var(--xdecaro-space-1, 0.25rem); }
    .xdecaro-filterbar { flex-direction: column; }
    .xdecaro-filterbar--expandable,
    .xdecaro-filterbar__advanced { grid-template-columns: 1fr; }
    .xdecaro-filterbar__search,
    .xdecaro-filterbar__filter,
    .xdecaro-filterbar__actions,
    .xdecaro-filterbar__toggle,
    .xdecaro-filterbar__close { width: 100%; min-width: 0; }
    .xdecaro-suite { padding-bottom: calc(var(--xdecaro-space-6, 1.5rem) + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .xdecaro-accordion *,
    .xdecaro-suite * { scroll-behavior: auto; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* xdecaro.ui / shared administrator page profiles. */
.xdecaro-suite--dashboard,
.xdecaro-information,
.xdecaro-options {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.xdecaro-suite__page-header-row,
.xdecaro-suite__section-header {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--xdecaro-space-4, 1rem);
}

.xdecaro-suite__page-header-row > *,
.xdecaro-suite__section-header > * {
    min-width: 0;
}

.xdecaro-suite__section-header {
    margin-bottom: var(--xdecaro-space-3, 0.75rem);
}

.xdecaro-suite__section-header h2,
.xdecaro-suite__section-header h3 {
    margin: 0;
    color: var(--xdecaro-color-text);
    overflow-wrap: anywhere;
}

.xdecaro-suite__section-hint {
    max-width: 32rem;
    color: var(--xdecaro-color-muted);
    font-size: 0.8125rem;
    text-align: end;
    overflow-wrap: anywhere;
}

/* Dashboard activity and Connections are visual shells only; domains own data and actions. */
.xdecaro-suite__activity-list,
.xdecaro-suite__connections {
    display: grid;
    min-width: 0;
    overflow: clip;
}

.xdecaro-suite__activity-row,
.xdecaro-suite__connection-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--xdecaro-space-4, 1rem);
    padding: var(--xdecaro-space-3, 0.75rem) var(--xdecaro-space-4, 1rem);
    align-items: center;
    border-bottom: 1px solid var(--xdecaro-color-border);
}

.xdecaro-suite__activity-row:last-child,
.xdecaro-suite__connection-row:last-child {
    border-bottom: 0;
}

.xdecaro-suite__activity-row > *,
.xdecaro-suite__connection-row > *,
.xdecaro-suite__connection-content,
.xdecaro-suite__connection-meta {
    min-width: 0;
}

.xdecaro-suite__activity-row strong,
.xdecaro-suite__connection-row strong {
    color: var(--xdecaro-color-text);
    overflow-wrap: anywhere;
}

.xdecaro-suite__activity-meta {
    display: block;
    margin-top: var(--xdecaro-space-1, 0.25rem);
    color: var(--xdecaro-color-muted);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.xdecaro-suite__connection-content {
    display: grid;
    gap: var(--xdecaro-space-1, 0.25rem);
}

.xdecaro-suite__connection-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--xdecaro-space-2, 0.5rem);
    color: var(--xdecaro-color-muted);
    font-size: 0.8125rem;
}

/* Information is a semantic page profile over the existing Core info/definition primitives. */
.xdecaro-information {
    display: grid;
    gap: var(--xdecaro-space-4, 1rem);
}

/* Options only supplies grouping/layout. Joomla parameters, defaults and persistence remain consumer-owned. */
.xdecaro-options {
    display: grid;
    gap: var(--xdecaro-space-4, 1rem);
}

.xdecaro-options__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: var(--xdecaro-space-4, 1rem);
    min-width: 0;
}

.xdecaro-options__group,
.xdecaro-options__items,
.xdecaro-options__item {
    min-width: 0;
    max-width: 100%;
}

.xdecaro-options__items {
    display: grid;
}

.xdecaro-options__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--xdecaro-space-4, 1rem);
    padding: var(--xdecaro-space-3, 0.75rem) 0;
    align-items: center;
    border-bottom: 1px solid var(--xdecaro-color-border);
}

.xdecaro-options__item:last-child {
    border-bottom: 0;
}

/* Sticky is opt-in, never creates nested scrolling, and falls back to normal flow when space is constrained. */
.xdecaro-backend-form__sidebar--sticky {
    position: sticky;
    top: var(--xdecaro-space-4, 1rem);
    align-self: start;
}

@container xdecaro-suite (max-width: 62rem) {
    .xdecaro-suite__page-header-row,
    .xdecaro-suite__section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .xdecaro-suite__section-hint {
        max-width: none;
        text-align: start;
    }

    .xdecaro-backend-form__sidebar--sticky {
        position: static;
    }

    .xdecaro-information__grid,
    .xdecaro-options__groups {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container xdecaro-suite (max-width: 38rem) {
    .xdecaro-suite__activity-row,
    .xdecaro-suite__connection-row,
    .xdecaro-options__item {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--xdecaro-space-2, 0.5rem);
    }

    .xdecaro-suite__connection-meta {
        justify-content: flex-start;
    }
}

@media (max-height: 42rem) {
    .xdecaro-backend-form__sidebar--sticky {
        position: static;
    }
}
