body[data-theme="xero"] {
    --xero-blue: #1276bf;
    --xero-blue-strong: #0f6bac;
    --xero-blue-soft: #dff0fb;
    --xero-surface: #f3f5f7;
    --xero-panel: #ffffff;
    --xero-panel-alt: #f8fafc;
    --xero-border: #d8e0e8;
    --xero-border-strong: #bfd0de;
    --xero-text: #1f2937;
    --xero-text-soft: #607081;
    --xero-success: #1d9e53;
    --xero-warning: #d59b14;
    --xero-danger: #df5a52;
    --xero-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    background: var(--xero-surface);
    color: var(--xero-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body[data-theme="xero"] *,
body[data-theme="xero"] *::before,
body[data-theme="xero"] *::after {
    box-sizing: border-box;
}

body[data-theme="xero"] .sidebar-overlay,
body[data-theme="xero"] .native-app-statusbar,
body[data-theme="xero"] .native-app-tabbar {
    display: none !important;
}

body[data-theme="xero"] .shell {
    display: block;
    min-height: 100vh;
    background: var(--xero-surface);
}

body[data-theme="xero"] .sidebar {
    display: none;
}

body[data-theme="xero"] .content {
    margin: 0;
    padding: 0 0 40px;
    min-height: 100vh;
    background: var(--xero-surface);
}

body[data-theme="xero"] .app-header {
    background: var(--xero-blue);
    color: #fff;
    padding: 14px 20px 8px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .app-header__subnav {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
}

body[data-theme="xero"] .app-header__top {
    display: grid;
    grid-template-columns: 240px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 16px;
}

body[data-theme="xero"] .app-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

body[data-theme="xero"] .app-brand__logo,
body[data-theme="xero"] .mobile-topbar__logo {
    width: 82px;
    height: auto;
    display: block;
}

body[data-theme="xero"] .app-brand__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

body[data-theme="xero"] .app-brand__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-theme="xero"] .app-brand__page {
    display: none;
}

body[data-theme="xero"] .global-search {
    position: relative;
}

body[data-theme="xero"] .global-search__field {
    display: block;
}

body[data-theme="xero"] .global-search__field input {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #fff;
    color: var(--xero-text);
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    box-shadow: var(--xero-shadow);
}

body[data-theme="xero"] .global-search__field input::placeholder {
    color: #73859a;
}

body[data-theme="xero"] .global-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    z-index: 40;
}

body[data-theme="xero"] .app-header__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

body[data-theme="xero"] .app-header__meta-pill,
body[data-theme="xero"] .app-header__user,
body[data-theme="xero"] .button,
body[data-theme="xero"] .header-subnav__link,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .pill {
    border-radius: 12px;
}

body[data-theme="xero"] .app-header__meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-theme="xero"] .app-header__user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

body[data-theme="xero"] .app-header__user-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

body[data-theme="xero"] .app-header__user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
}

body[data-theme="xero"] .button,
body[data-theme="xero"] button,
body[data-theme="xero"] input[type="submit"],
body[data-theme="xero"] input[type="button"] {
    appearance: none;
    border: 1px solid var(--xero-border);
    background: #fff;
    color: var(--xero-text);
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

body[data-theme="xero"] .button.primary,
body[data-theme="xero"] .button.button-primary,
body[data-theme="xero"] button.button-primary {
    background: var(--xero-blue);
    border-color: var(--xero-blue);
    color: #fff;
}

body[data-theme="xero"] .button.button-compact {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 999px;
}

body[data-theme="xero"] .app-header__nav {
    margin-top: 12px;
}

body[data-theme="xero"] .header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

body[data-theme="xero"] .header-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0 4px;
}

body[data-theme="xero"] .header-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

body[data-theme="xero"] .app-header__subnav {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-theme="xero"] .header-subnav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .header-subnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

body[data-theme="xero"] .header-subnav__link.is-active {
    background: rgba(255, 255, 255, 0.22);
}

body[data-theme="xero"] .mobile-topbar {
    display: none;
}

body[data-theme="xero"] .flash {
    width: min(1280px, calc(100% - 24px));
    margin: 16px auto 0;
    border: 1px solid var(--xero-border);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--xero-text);
}

body[data-theme="xero"] .flash.flash-error {
    border-color: #efc0bd;
    background: #fff5f4;
    color: #9a3128;
}

body[data-theme="xero"] .flash.flash-success {
    border-color: #bde2c6;
    background: #f3fbf5;
    color: #12693a;
}

body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .page-stack,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .settings-sections {
    width: min(1280px, calc(100% - 24px));
    margin: 20px auto 0;
}

body[data-theme="xero"] .page-shell {
    display: block;
}

body[data-theme="xero"] .workspace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .workspace-head__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

body[data-theme="xero"] .workspace-head__marker {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--xero-blue-soft);
    border: 1px solid #c4def4;
}

body[data-theme="xero"] .workspace-head__eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #718296;
}

body[data-theme="xero"] .xui-dashboard-shell {
    width: min(1280px, calc(100% - 24px));
    margin: 20px auto 0;
}

body[data-theme="xero"] .xui-home-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .xui-home-banner__copy,
body[data-theme="xero"] .xui-home-banner__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

body[data-theme="xero"] .xui-home-banner__badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #d8eef9;
    color: var(--xero-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #c7e0ef;
}

body[data-theme="xero"] .xui-home-banner__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7a89;
    font-weight: 700;
}

body[data-theme="xero"] .xui-home-banner__title,
body[data-theme="xero"] .xui-section-head__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 600;
    color: #182838;
}

body[data-theme="xero"] .xui-home-banner__hint {
    font-size: 13px;
    color: #6b7a89;
}

body[data-theme="xero"] .xui-home-toolbar {
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 18px;
    box-shadow: var(--xero-shadow);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .xui-home-toolbar__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #415264;
    font-size: 13px;
}

body[data-theme="xero"] .xui-home-toolbar__notice strong {
    color: #182838;
}

body[data-theme="xero"] .xui-home-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body[data-theme="xero"] .xui-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

body[data-theme="xero"] .xui-widget {
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 18px;
    box-shadow: var(--xero-shadow);
    padding: 18px;
}

body[data-theme="xero"] .xui-widget--wide {
    grid-column: span 2;
}

body[data-theme="xero"] .xui-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body[data-theme="xero"] .xui-widget__eyebrow {
    margin: 0 0 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6d7d8c;
    font-weight: 700;
}

body[data-theme="xero"] .xui-widget__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #182838;
    font-weight: 600;
}

body[data-theme="xero"] .xui-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf6fd;
    border: 1px solid #d7e9f7;
    color: #0f6bac;
    font-size: 12px;
    font-weight: 700;
}

body[data-theme="xero"] .xui-chip--success {
    background: #ebf8f0;
    border-color: #cdebd7;
    color: #167343;
}

body[data-theme="xero"] .xui-link {
    color: var(--xero-blue);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

body[data-theme="xero"] .xui-stat-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eef4;
    margin-bottom: 14px;
}

body[data-theme="xero"] .xui-stat-pair strong {
    display: block;
    font-size: 24px;
    line-height: 1.08;
    color: #182838;
    font-weight: 600;
    margin-bottom: 4px;
}

body[data-theme="xero"] .xui-stat-pair span,
body[data-theme="xero"] .xui-line-meta,
body[data-theme="xero"] .xui-list-row span,
body[data-theme="xero"] .xui-list-row strong,
body[data-theme="xero"] .xui-metric-grid span {
    font-size: 13px;
    color: #607081;
}

body[data-theme="xero"] .xui-line-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .xui-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .xui-metric-grid article,
body[data-theme="xero"] .xui-mini-chart,
body[data-theme="xero"] .xui-brief-grid,
body[data-theme="xero"] .xui-app-grid {
    margin-top: 4px;
}

body[data-theme="xero"] .xui-metric-grid strong {
    display: block;
    font-size: 18px;
    line-height: 1.15;
    color: #182838;
    margin-bottom: 4px;
}

body[data-theme="xero"] .xui-list-rows {
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .xui-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

body[data-theme="xero"] .xui-list-row:last-child {
    border-bottom: 0;
}

body[data-theme="xero"] .xui-list-row strong {
    color: #182838;
    font-size: 15px;
}

body[data-theme="xero"] .xui-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 160px;
    padding-top: 10px;
}

body[data-theme="xero"] .xui-mini-chart__bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

body[data-theme="xero"] .xui-mini-chart__fill {
    width: 100%;
    max-width: 44px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #8ec9ec 0%, #1276bf 100%);
}

body[data-theme="xero"] .xui-mini-chart__bar span {
    text-align: center;
    font-size: 12px;
    color: #607081;
}

body[data-theme="xero"] .xui-widget__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

body[data-theme="xero"] .xui-brief-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body[data-theme="xero"] .xui-subpanel {
    border: 1px solid #e7edf4;
    border-radius: 14px;
    padding: 16px;
    background: #fbfcfd;
}

body[data-theme="xero"] .xui-subpanel h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #182838;
}

body[data-theme="xero"] .xui-bullet-list {
    margin: 0;
    padding-left: 18px;
    color: #445465;
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .xui-app-strip {
    margin-top: 22px;
}

body[data-theme="xero"] .xui-lower-window {
    margin-top: 20px;
}

body[data-theme="xero"] .xui-lower-window__panel {
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 18px;
    box-shadow: var(--xero-shadow);
    overflow: hidden;
}

body[data-theme="xero"] .xui-lower-window__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

body[data-theme="xero"] .xui-lower-window__summary::-webkit-details-marker {
    display: none;
}

body[data-theme="xero"] .xui-lower-window__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    color: #162331;
}

body[data-theme="xero"] .xui-lower-window__metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body[data-theme="xero"] .xui-lower-window__metrics span {
    border: 1px solid #dce7f1;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f7fbff;
    color: #5c6f83;
    font-size: 12px;
    font-weight: 700;
}

body[data-theme="xero"] .xui-lower-window__body {
    border-top: 1px solid #e7eef5;
    padding: 18px 20px 20px;
}

body[data-theme="xero"] .xui-sweep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body[data-theme="xero"] .xui-sweep-card {
    border: 1px solid #dce7f1;
    border-radius: 14px;
    padding: 14px 15px;
    background: #fbfdff;
    display: grid;
    gap: 6px;
}

body[data-theme="xero"] .xui-sweep-card--attention {
    border-color: #f1caca;
    background: #fff8f8;
}

body[data-theme="xero"] .xui-sweep-card--watch {
    border-color: #ecd58d;
    background: #fffcef;
}

body[data-theme="xero"] .xui-sweep-card--healthy {
    border-color: #cfe3f5;
    background: #f7fbff;
}

body[data-theme="xero"] .xui-sweep-card__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a8b9c;
    font-weight: 700;
}

body[data-theme="xero"] .xui-sweep-card strong {
    font-size: 17px;
    line-height: 1.2;
    color: #162331;
}

body[data-theme="xero"] .xui-sweep-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #5d7085;
}

body[data-theme="xero"] .xui-lower-window__actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .xui-lower-window__body > .panel {
    margin: 0;
    box-shadow: none;
}

body[data-theme="xero"] .xui-lower-window__body > .panel + .panel {
    margin-top: 14px;
}

body[data-theme="xero"] .orders-lower-window,
body[data-theme="xero"] .receivables-lower-window {
    margin-top: 20px;
}

body[data-theme="xero"] .xui-section-head {
    margin-bottom: 16px;
}

body[data-theme="xero"] .xui-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body[data-theme="xero"] .xui-app-card {
    display: block;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    color: #182838;
    box-shadow: var(--xero-shadow);
}

body[data-theme="xero"] .xui-app-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

body[data-theme="xero"] .xui-app-card span {
    font-size: 13px;
    color: #607081;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    body[data-theme="xero"] .xui-home-grid,
    body[data-theme="xero"] .xui-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-theme="xero"] .xui-widget--wide {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    body[data-theme="xero"] .xui-home-banner,
    body[data-theme="xero"] .xui-home-toolbar,
    body[data-theme="xero"] .xui-home-toolbar__notice,
    body[data-theme="xero"] .xui-home-toolbar__actions,
    body[data-theme="xero"] .xui-brief-grid,
    body[data-theme="xero"] .xui-home-grid,
    body[data-theme="xero"] .xui-app-grid,
    body[data-theme="xero"] .xui-stat-pair {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    body[data-theme="xero"] .xui-widget--wide {
        grid-column: span 1;
    }

    body[data-theme="xero"] .xui-home-banner__title,
    body[data-theme="xero"] .xui-widget__title {
        font-size: 24px;
    }
}

body[data-theme="xero"] .workspace-head__title {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 600;
    color: #162331;
}

body[data-theme="xero"] .workspace-head__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .hero,
body[data-theme="xero"] .settings-directory,
body[data-theme="xero"] .settings-card,
body[data-theme="xero"] .order-preview,
body[data-theme="xero"] .module-card {
    background: var(--xero-panel);
    border: 1px solid var(--xero-border);
    border-radius: 16px;
    box-shadow: var(--xero-shadow);
    color: var(--xero-text);
}

body[data-theme="xero"] .panel {
    padding: 18px;
}

body[data-theme="xero"] .panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #162331;
}

body[data-theme="xero"] .panel-header p,
body[data-theme="xero"] .panel p,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small {
    color: var(--xero-text-soft);
}

body[data-theme="xero"] .pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--xero-border);
    background: #fff;
    color: var(--xero-text-soft);
}

body[data-theme="xero"] .pill-accent {
    color: var(--xero-blue);
    border-color: #c6def3;
    background: #eef7ff;
}

body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] table {
    width: 100%;
}

body[data-theme="xero"] table {
    border-collapse: collapse;
    background: transparent;
}

body[data-theme="xero"] th,
body[data-theme="xero"] td {
    border-bottom: 1px solid #e8edf2;
    padding: 12px 10px;
    font-size: 13px;
    text-align: left;
    vertical-align: top;
    color: var(--xero-text);
}

body[data-theme="xero"] th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #72849a;
    font-weight: 700;
    background: #fbfcfd;
}

body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea {
    width: 100%;
    border: 1px solid var(--xero-border);
    border-radius: 10px;
    background: #fff;
    color: var(--xero-text);
    padding: 10px 12px;
    min-height: 40px;
    font-size: 13px;
}

body[data-theme="xero"] textarea {
    min-height: 112px;
}

body[data-theme="xero"] .field label,
body[data-theme="xero"] .field span {
    font-size: 12px;
    font-weight: 600;
    color: #6b7c8f;
}

body[data-theme="xero"] .page-dashboard--home {
    margin-top: 18px;
}

body[data-theme="xero"] .dashboard-home-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .dashboard-home-notice__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body[data-theme="xero"] .dashboard-home-notice__content strong {
    font-size: 14px;
    color: #233244;
}

body[data-theme="xero"] .dashboard-home-notice__content span {
    font-size: 13px;
    color: #6b7c8f;
}

body[data-theme="xero"] .dashboard-home-notice__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .dashboard-home-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .workspace-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: var(--xero-shadow);
}

body[data-theme="xero"] .workspace-stat span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #74869a;
}

body[data-theme="xero"] .workspace-stat strong {
    font-size: 30px;
    line-height: 1.05;
    color: #162331;
    font-weight: 600;
}

body[data-theme="xero"] .workspace-stat small {
    font-size: 12px;
}

body[data-theme="xero"] .dashboard-home-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 18px;
    align-items: start;
}

body[data-theme="xero"] .dashboard-home-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body[data-theme="xero"] .dashboard-home-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .dashboard-home-card__header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 600;
}

body[data-theme="xero"] .dashboard-home-card__header p {
    margin: 4px 0 0;
    font-size: 13px;
}

body[data-theme="xero"] .dashboard-home-card__menu {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--xero-blue);
}

body[data-theme="xero"] .dashboard-home-card__metrics {
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .dashboard-home-card__metrics--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="xero"] .dashboard-home-card__metrics--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="xero"] .dashboard-home-card__metrics > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body[data-theme="xero"] .dashboard-home-card__metrics span,
body[data-theme="xero"] .dashboard-home-list__row span,
body[data-theme="xero"] .dashboard-home-bars__item span,
body[data-theme="xero"] .dashboard-home-card__footer span,
body[data-theme="xero"] .dashboard-home-brief span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #73849a;
}

body[data-theme="xero"] .dashboard-home-card__metrics strong {
    font-size: 38px;
    line-height: 1.05;
    font-weight: 600;
    color: #162331;
}

body[data-theme="xero"] .dashboard-home-card__rule {
    height: 1px;
    background: #e7edf2;
    margin: 18px 0;
}

body[data-theme="xero"] .dashboard-home-bars,
body[data-theme="xero"] .dashboard-home-list {
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .dashboard-home-bars {
    margin-top: 16px;
}

body[data-theme="xero"] .dashboard-home-bars__item,
body[data-theme="xero"] .dashboard-home-list__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f6;
}

body[data-theme="xero"] .dashboard-home-bars__item strong,
body[data-theme="xero"] .dashboard-home-list__row strong,
body[data-theme="xero"] .dashboard-home-card__footer strong {
    font-size: 22px;
    font-weight: 600;
    color: #1a2636;
}

body[data-theme="xero"] .dashboard-home-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

body[data-theme="xero"] .dashboard-home-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
}

body[data-theme="xero"] .dashboard-home-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body[data-theme="xero"] .dashboard-home-brief ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #425569;
    font-size: 13px;
}

body[data-theme="xero"] .dashboard-home-brief li + li {
    margin-top: 8px;
}

body[data-theme="xero"] .dashboard-home-lower {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

body[data-theme="xero"] .dashboard-lower-card .panel-header--compact {
    margin-bottom: 14px;
}

body[data-theme="xero"] .dashboard-lower-card .workspace-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .dashboard-lower-card .workspace-stat {
    min-height: 110px;
}

body[data-theme="xero"] .dashboard-home-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 180px;
    padding-top: 20px;
}

body[data-theme="xero"] .dashboard-home-chart__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

body[data-theme="xero"] .dashboard-home-chart__column {
    width: 100%;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #8fd1ff 0%, var(--xero-blue) 100%);
    min-height: 18px;
}

body[data-theme="xero"] .dashboard-home-chart__label {
    font-size: 11px;
    color: #72849a;
}

body[data-theme="xero"] .dashboard-home-taskstack {
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .dashboard-home-taskstack .dashboard-home-list__row {
    padding: 14px 0;
}

body[data-theme="xero"] .eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] a {
    color: var(--xero-blue);
}

@media (max-width: 1120px) {
    body[data-theme="xero"] .app-header__top {
        grid-template-columns: minmax(0, 1fr);
    }

    body[data-theme="xero"] .app-header__controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body[data-theme="xero"] .dashboard-home-grid,
    body[data-theme="xero"] .dashboard-home-lower {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body[data-theme="xero"] .app-header {
        display: none;
    }

    body[data-theme="xero"] .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        background: var(--xero-blue);
        color: #fff;
    }

    body[data-theme="xero"] .mobile-topbar__brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    body[data-theme="xero"] .mobile-topbar__title-group {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    body[data-theme="xero"] .mobile-topbar__title {
        font-size: 14px;
        color: #fff;
    }

    body[data-theme="xero"] .mobile-topbar__page {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.78);
    }

    body[data-theme="xero"] .mobile-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
    }

    body[data-theme="xero"] .workspace-head,
    body[data-theme="xero"] .dashboard-home-notice,
    body[data-theme="xero"] .dashboard-home-brief {
        grid-template-columns: 1fr;
        display: grid;
    }

    body[data-theme="xero"] .workspace-head__actions,
    body[data-theme="xero"] .dashboard-home-notice__actions {
        justify-content: flex-start;
    }

    body[data-theme="xero"] .dashboard-home-summary,
    body[data-theme="xero"] .dashboard-home-grid,
    body[data-theme="xero"] .dashboard-home-lower,
    body[data-theme="xero"] .dashboard-lower-card .workspace-stats,
    body[data-theme="xero"] .dashboard-home-card__metrics--split,
    body[data-theme="xero"] .dashboard-home-card__metrics--triple,
    body[data-theme="xero"] .dashboard-home-brief {
        grid-template-columns: 1fr;
    }
}

body[data-theme="xero"] .page-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: start;
}

body[data-theme="xero"] .page-stack {
    display: grid;
    gap: 18px;
}

body[data-theme="xero"] .workspace-head--filter-shell,
body[data-theme="xero"] .workspace-head--tight {
    margin-top: 0;
}

body[data-theme="xero"] .workspace-head--filter-shell .workspace-head__actions {
    width: 100%;
    gap: 8px;
}

body[data-theme="xero"] .button-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 107, 172, 0.12);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}

body[data-theme="xero"] .table-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--xero-text-soft);
    font-size: 12px;
}

body[data-theme="xero"] .table-link,
body[data-theme="xero"] .table-detail-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--xero-blue);
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

body[data-theme="xero"] .table-link {
    font-weight: 700;
}

body[data-theme="xero"] .table-detail-link {
    font-size: 12px;
    font-weight: 600;
}

body[data-theme="xero"] .table-row-link {
    cursor: pointer;
}

body[data-theme="xero"] .table-row-link.is-preview-selected {
    background: #eef7ff;
}

body[data-theme="xero"] .table-cell-inline {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body[data-theme="xero"] .table-cell-inline--primary {
    gap: 6px;
}

body[data-theme="xero"] .table-cell-inline--numeric {
    align-items: flex-end;
}

body[data-theme="xero"] .table-cell-numeric {
    text-align: right;
}

body[data-theme="xero"] .table-meta-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

body[data-theme="xero"] .compact-table {
    border-radius: 14px;
    overflow: hidden;
}

body[data-theme="xero"] .compact-table tbody tr:hover {
    background: #f7fbff;
}

body[data-theme="xero"] .orders-workbench-panel,
body[data-theme="xero"] .receivables-ledger,
body[data-theme="xero"] .receivables-filter-panel,
body[data-theme="xero"] .receivables-aging-note,
body[data-theme="xero"] .customer-command-deck,
body[data-theme="xero"] .customer-priority-ledger__card {
    border-radius: 18px;
}

body[data-theme="xero"] .orders-main .orders-workbench-panel {
    overflow: hidden;
}

body[data-theme="xero"] .orders-main #orders-preview {
    position: sticky;
    top: 18px;
}

body[data-theme="xero"] .orders-main .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .detail-card {
    padding: 14px;
    min-height: 104px;
    background: var(--xero-panel-alt);
    border: 1px solid #e4ebf1;
    border-radius: 14px;
}

body[data-theme="xero"] .detail-card span,
body[data-theme="xero"] .detail-card .muted {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
}

body[data-theme="xero"] .detail-card strong {
    display: block;
    margin-top: 6px;
    color: #162331;
    font-size: 20px;
    line-height: 1.15;
}

body[data-theme="xero"] .orders-preview-editor {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .orders-preview-editor__sync {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--xero-border);
    border-radius: 12px;
    background: #f8fbfe;
}

body[data-theme="xero"] .orders-preview-editor__lines,
body[data-theme="xero"] .orders-preview-editor__line-list {
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .orders-preview-line {
    border: 1px solid #e4ebf1;
    border-radius: 14px;
    background: #fbfcfd;
    padding: 14px;
}

body[data-theme="xero"] .orders-preview-line__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body[data-theme="xero"] .orders-preview-line__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .orders-preview-line__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--xero-text-soft);
    font-size: 12px;
}

body[data-theme="xero"] .inline-action-form,
body[data-theme="xero"] .customer-overview-actions__inline-form {
    display: inline;
}

body[data-theme="xero"] .receivables-filter-panel .receivables-filter-presets,
body[data-theme="xero"] .active-filter-bar,
body[data-theme="xero"] .receivables-export-bar,
body[data-theme="xero"] .receivables-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .receivables-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

body[data-theme="xero"] .filter-multiselect {
    position: relative;
}

body[data-theme="xero"] .filter-multiselect summary {
    list-style: none;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--xero-border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: var(--xero-text);
    cursor: pointer;
}

body[data-theme="xero"] .filter-multiselect__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    max-width: 320px;
    max-height: 260px;
    overflow: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    z-index: 30;
}

body[data-theme="xero"] .filter-multiselect__actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

body[data-theme="xero"] .filter-multiselect__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

body[data-theme="xero"] .receivables-export-bar {
    justify-content: space-between;
    margin-bottom: 14px;
}

body[data-theme="xero"] .receivables-export-bar__left,
body[data-theme="xero"] .receivables-export-bar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .customer-command-deck {
    padding: 22px;
}

body[data-theme="xero"] .customer-command-deck__lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

body[data-theme="xero"] .customer-command-deck__identity h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    color: #162331;
}

body[data-theme="xero"] .customer-command-deck__address-line,
body[data-theme="xero"] .customer-command-deck__contact-line {
    margin: 8px 0 0;
    color: var(--xero-text-soft);
}

body[data-theme="xero"] .customer-command-deck__balance {
    border: 1px solid #dce6ef;
    background: #f8fbfe;
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 6px;
}

body[data-theme="xero"] .customer-command-deck__balance > span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .customer-command-deck__balance strong {
    font-size: 36px;
    line-height: 1.04;
    color: #162331;
    font-weight: 600;
}

body[data-theme="xero"] .customer-command-deck__balance-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--xero-text-soft);
    font-size: 12px;
}

body[data-theme="xero"] .customer-command-deck__content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.8fr);
    gap: 18px;
}

body[data-theme="xero"] .customer-command-deck__facts,
body[data-theme="xero"] .customer-command-deck__more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body[data-theme="xero"] .customer-command-deck__fact,
body[data-theme="xero"] .customer-command-deck__actions-card {
    background: #fbfcfd;
    border: 1px solid #e4ebf1;
    border-radius: 14px;
    padding: 14px;
}

body[data-theme="xero"] .customer-command-deck__fact span,
body[data-theme="xero"] .customer-command-deck__more-summary span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #73849a;
}

body[data-theme="xero"] .customer-command-deck__fact strong {
    display: block;
    margin-top: 6px;
    color: #162331;
    font-size: 19px;
    line-height: 1.2;
}

body[data-theme="xero"] .customer-command-deck__fact small,
body[data-theme="xero"] .customer-command-deck__more-summary small,
body[data-theme="xero"] .customer-command-deck__actions-foot {
    color: var(--xero-text-soft);
    font-size: 12px;
}

body[data-theme="xero"] .customer-command-deck__fact--wide {
    grid-column: 1 / -1;
}

body[data-theme="xero"] .customer-command-deck__more-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

body[data-theme="xero"] .customer-command-deck__more-grid {
    margin-top: 12px;
}

body[data-theme="xero"] .customer-command-deck__actions-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

body[data-theme="xero"] .customer-overview-actions__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body[data-theme="xero"] .customer-command-deck__actions-more {
    margin-top: 12px;
}

body[data-theme="xero"] .customer-command-deck__actions-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

body[data-theme="xero"] .customer-priority-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

body[data-theme="xero"] .customer-priority-ledger__card--statement {
    grid-column: span 2;
}

body[data-theme="xero"] .customer-priority-ledger__statement-summary,
body[data-theme="xero"] .customer-priority-ledger__statement-actions,
body[data-theme="xero"] .customer-priority-ledger__statement-pills,
body[data-theme="xero"] .customer-priority-ledger__statement-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .customer-priority-ledger__statement-form,
body[data-theme="xero"] .customer-priority-ledger__statement-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric {
    border: 1px solid #e4ebf1;
    background: #fbfcfd;
    border-radius: 14px;
    padding: 14px;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric--wide {
    grid-column: span 2;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    color: #162331;
}

body[data-theme="xero"] .stack-list {
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .list-item {
    border: 1px solid #e6edf3;
    border-radius: 14px;
    background: #fbfcfd;
    padding: 12px 14px;
}

body[data-theme="xero"] .customer-history-list__item,
body[data-theme="xero"] .customer-history-list__item--current {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body[data-theme="xero"] .customer-history-list__copy {
    display: grid;
    gap: 4px;
}

body[data-theme="xero"] .customer-history-list__amount {
    white-space: nowrap;
}

body[data-theme="xero"] .xui-shell-page {
    display: grid;
    gap: 22px;
}

body[data-theme="xero"] .xui-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid #dce7f1;
    border-radius: 18px;
    background: #ffffff;
}

body[data-theme="xero"] .xui-page-head__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

body[data-theme="xero"] .xui-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #dff0fb;
    color: #0d6fb8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
}

body[data-theme="xero"] .xui-page-head__eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .xui-page-head__title,
body[data-theme="xero"] .xui-widget__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    color: #162331;
}

body[data-theme="xero"] .xui-widget__title {
    font-size: 22px;
}

body[data-theme="xero"] .xui-page-head__subtitle {
    margin: 8px 0 0;
    max-width: 760px;
    color: #5f7186;
    font-size: 14px;
}

body[data-theme="xero"] .xui-page-head__actions,
body[data-theme="xero"] .xui-alertbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .xui-alertbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #dce7f1;
    border-radius: 16px;
    background: #ffffff;
    color: #466074;
}

body[data-theme="xero"] .xui-alertbar--inline {
    margin-top: 10px;
}

body[data-theme="xero"] .xui-kpi-grid,
body[data-theme="xero"] .xui-mini-kpi-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-theme="xero"] .xui-mini-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .xui-mini-kpi,
body[data-theme="xero"] .xui-widget {
    border: 1px solid #dce7f1;
    border-radius: 18px;
    background: #ffffff;
}

body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .xui-mini-kpi {
    padding: 18px;
}

body[data-theme="xero"] .xui-kpi-card span,
body[data-theme="xero"] .xui-mini-kpi span {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .xui-kpi-card strong,
body[data-theme="xero"] .xui-mini-kpi strong {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.1;
    color: #162331;
}

body[data-theme="xero"] .xui-kpi-card small {
    display: block;
    margin-top: 8px;
    color: #5f7186;
}

body[data-theme="xero"] .xui-home-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="xero"] .xui-widget {
    padding: 20px 22px;
}

body[data-theme="xero"] .xui-widget--span-2 {
    grid-column: span 2;
}

body[data-theme="xero"] .xui-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body[data-theme="xero"] .xui-stack-list {
    display: grid;
    gap: 12px;
}

body[data-theme="xero"] .xui-stack-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    background: #fbfcfd;
}

body[data-theme="xero"] .xui-stack-row strong {
    color: #162331;
}

body[data-theme="xero"] .xui-stack-row p {
    margin: 4px 0 0;
    color: #5f7186;
}

body[data-theme="xero"] .xui-link-list {
    display: grid;
    gap: 12px;
}

body[data-theme="xero"] .xui-link-list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    background: #fbfcfd;
    color: #0d6fb8;
    font-weight: 700;
    text-decoration: none;
}

body[data-theme="xero"] .command-center-list--xui {
    display: grid;
    gap: 12px;
}

@media (max-width: 1120px) {
    body[data-theme="xero"] .page-main-grid,
    body[data-theme="xero"] .customer-command-deck__content,
    body[data-theme="xero"] .customer-command-deck__lead,
    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .customer-priority-ledger__statement-form,
    body[data-theme="xero"] .customer-priority-ledger__statement-metrics,
    body[data-theme="xero"] .receivables-filter-form,
    body[data-theme="xero"] .xui-home-grid,
    body[data-theme="xero"] .xui-kpi-grid,
    body[data-theme="xero"] .xui-mini-kpi-grid {
        grid-template-columns: 1fr;
    }

    body[data-theme="xero"] .customer-priority-ledger__card--statement,
    body[data-theme="xero"] .customer-command-deck__fact--wide,
    body[data-theme="xero"] .customer-priority-ledger__statement-metric--wide,
    body[data-theme="xero"] .xui-widget--span-2 {
        grid-column: auto;
    }

    body[data-theme="xero"] .orders-main #orders-preview {
        position: static;
    }

    body[data-theme="xero"] .orders-preview-line__grid,
    body[data-theme="xero"] .customer-command-deck__facts,
    body[data-theme="xero"] .customer-command-deck__more-grid,
    body[data-theme="xero"] .xui-page-head,
    body[data-theme="xero"] .xui-alertbar {
        grid-template-columns: 1fr;
    }

    body[data-theme="xero"] .xui-page-head,
    body[data-theme="xero"] .xui-alertbar,
    body[data-theme="xero"] .xui-stack-row {
        display: grid;
    }

    body[data-theme="xero"] .xui-lower-window__summary,
    body[data-theme="xero"] .xui-sweep-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    body[data-theme="xero"] .xui-lower-window__metrics {
        justify-content: flex-start;
    }
}
