/* Shared navigation, typography, and interaction standards. */
body.xone-typography {
    --xone-type-body: .875rem;
    --xone-type-title: 1.25rem;
    --xone-type-section: 1rem;
    --xone-type-subhead: .9375rem;
    --xone-type-h4: .875rem;
    --xone-type-h5: .875rem;
    --xone-type-control: .875rem;
    --xone-type-label: .8125rem;
    --xone-type-small: .75rem;
    --xone-type-kpi: 1.375rem;
    --xone-type-semibold: 500;
    --xone-type-bold: 500;
    --xone-layout-gap: .75rem;
    --xone-layout-section: 1rem;
    --xone-layout-inset: 1rem;
    --xone-card-radius: .75rem;
    --xone-control-height: 2.25rem;
    --xone-control-pad-y: .375rem;
    --xone-control-pad-x: .625rem;
    --management-section-gap: var(--xone-layout-section);
    --management-inner-gap: var(--xone-layout-gap);
    font-size: var(--xone-type-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.xone-typography:lang(ar) { line-height: 1.75; }
.xone-typography h1 { font-size: var(--xone-type-title); font-weight: 500; line-height: 1.45; }
.xone-typography h2 { font-size: var(--xone-type-section); font-weight: 500; line-height: 1.5; }
.xone-typography h3 { font-size: var(--xone-type-subhead); font-weight: 500; line-height: 1.55; }
.xone-typography :is(h4,h5,h6) { font-size: var(--xone-type-h4); font-weight: 500; line-height: 1.55; }
.xone-typography :is(button,summary,label,th,.primary-action,.secondary-action) { font-size: var(--xone-type-label); font-weight: 500; }
.xone-typography :is(input,select,textarea) { font-size: var(--xone-type-control); }
.xone-typography :is(td,th) { font-size: var(--xone-type-label); }
.xone-typography strong { font-weight: 500; }
.xone-typography a { text-decoration-thickness: 1px; text-underline-offset: .23em; }
body.xone-typography a:any-link:hover,
body.xone-typography a:any-link:hover :is(span,strong,bdi,small) { text-decoration: none; }
.xone-typography :is(a,button,summary,input,select,textarea):focus-visible {
    outline: 2px solid var(--brand-clay); outline-offset: 3px;
}
.xone-typography button:disabled { cursor: not-allowed; }
.xone-typography :is(a,button,summary,.panel,.start-card) {
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.xone-typography :is(.workspace-metric dd > bdi,.platform-stat dd,.platform-kpi dd,.start-hub-stats dd) {
    font-size: var(--xone-type-kpi); font-weight: 500; letter-spacing: 0;
}
.xone-typography :is(.accounting-card-figures dd,.screen-stat dd,.financial-stats dd,.license-stats dd,.workspace-detail-total strong) {
    font-size: 1.125rem; font-weight: 500; letter-spacing: 0;
}
.xone-typography .accounting-card h2 { font-size: var(--xone-type-subhead); }
.xone-typography .identity-signin-layout .login-brand h1 { font-size: var(--xone-type-title); }
.xone-typography .identity-signin-message p { font-size: clamp(1.25rem,1.6vw,1.625rem); font-weight: 500; }
.xone-typography .identity-signin-message span { font-size: var(--xone-type-body); }
.xone-typography .start-product-hero h1 { font-size: clamp(1.5rem,2.4vw,2.25rem); line-height: 1.5; letter-spacing: -.015em; }
.xone-typography :is(.start-product-section h2,.start-workflow h2,.start-access-section > h2) {
    font-size: clamp(1.125rem,1.4vw,1.375rem); line-height: 1.5; letter-spacing: 0;
}
.xone-typography .start-hub-heading { padding: 1.4rem 1.6rem; }
.xone-typography :is(.start-heading h1,.start-hub-heading h1) { font-size: var(--xone-type-title); }
.xone-typography :is(.start-card h2,.start-resume h2) { font-size: var(--xone-type-section); }
.xone-typography :is(.start-card h3,.start-product-module h3,.start-getting-started h3) { font-size: var(--xone-type-subhead); }
.xone-typography :is(.start-price,.start-price bdi) { font-size: 1.375rem; font-weight: 500; letter-spacing: 0; }
.xone-typography .start-plan strong { font-size: var(--xone-type-section); }
.xone-typography .start-wizard legend { font-size: var(--xone-type-subhead); font-weight: 500; }
.xone-typography :is(.start-hero-description,.start-workflow > div > p:not(.start-eyebrow),.start-product-section-heading > p,.start-hub-heading p:not(.start-eyebrow)) { font-size: var(--xone-type-body); }
.xone-typography :is(.start-button,.start-text-link,.start-document-flow li,.start-resume-list strong) { font-size: var(--xone-type-body); }
.xone-typography .start-button { font-weight: 500; }
.xone-typography :is(.start-eyebrow,.start-preview-heading,.start-preview-mark,.start-steps span,.start-review dd,.start-plan-comparison summary,.start-faq-list summary,.start-plan-comparison td[data-included=true],.start-product-hero .start-button.primary) { font-weight: 500; }
.xone-typography :is(.start-plan-comparison summary,.start-faq-list summary) { font-size: var(--xone-type-body); }

/* Keep record labels and module-specific components on the shared scale. */
body.xone-typography :is(.state-tag,.finance-setup-heading p) { font-size: var(--xone-type-small); font-weight: 400; }
body.xone-typography :is(.responsive-records td:last-child,.responsive-records tbody td:first-child,.journal-record,.invoice-progress [aria-current=step],.platform-kpi dt,.platform-attention > span,.platform-attention bdi,.platform-company-settings summary,.management-form-panel fieldset legend,.statement-facts dd,#billing-statement-totals dd) { font-weight: 500; }
body.xone-typography :is(.record-name,.workspace-primary,.accounting-card-actions a,.workspace-metric dt,.platform-stat dt,.journal-editor-index) { font-weight: 500; }
body.xone-typography :is(.invoice-amounts bdi,.invoice-estimate output) { font-weight: 500; }
.xone-typography .accounting-card-figures dt { font-size: var(--xone-type-label); }
.xone-typography .company-settings-group-heading p { font-size: var(--xone-type-label); }

/* One full-width shell for finance, individual applications, and administration. */
body.horizontal-system.workspace-app {
    display: block; background: var(--brand-paper); background-image: none;
}
body.horizontal-system > main.shell {
    width: min(94rem,calc(100% - 3rem)); max-inline-size: none; margin-inline: auto;
    padding: 1.5rem 0 3rem;
}
.app-header { anchor-name: --system-header; }
.system-header { position: sticky; inset-block-start: 0; z-index: 30; background: var(--brand-surface); box-shadow: 0 2px 8px #28262405; }
.system-header .shell { width: min(94rem,calc(100% - 3rem)); max-inline-size: none; margin-inline: auto; }
.system-header .system-header-main { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; justify-content: flex-start; min-block-size: 4rem; padding-block: .5rem; }
.system-header .app-brand { display: flex; align-items: center; min-block-size: 2.75rem; inline-size: 8.4rem; flex: 0 0 auto; }
.system-header .app-brand img { inline-size: 100%; block-size: auto; }
.system-header .active-workspace {
    display: flex; justify-content: flex-end; flex: 0 1 auto; min-inline-size: 0; max-inline-size: 26rem;
    margin: 0; margin-inline-start: auto; padding: 0; border: 0;
    font-size: var(--xone-type-label); line-height: 1.4; font-weight: 500;
}
.system-header .active-workspace .workspace-context {
    display: flex; align-items: center; gap: .625rem; min-inline-size: 0; max-inline-size: 100%;
    min-block-size: 2.75rem; margin: 0; padding: .3125rem .625rem;
    border: 1px solid #e3d9cc; border-radius: .5rem; color: var(--brand-ink);
    background: #f7f4ef; text-decoration: none;
}
.system-header .workspace-context-mark {
    display: grid; place-items: center; flex: 0 0 1.75rem; block-size: 1.75rem;
    border: 1px solid #ebc6b6; border-radius: .375rem; background: var(--brand-tint); color: #8e3826;
}
.system-header .workspace-context-copy { display: block; min-inline-size: 0; text-align: start; }
.system-header .workspace-context-copy :is(.workspace-company,small) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-header .active-workspace small { font-size: .75rem; color: var(--brand-muted); font-weight: 400; }
.system-header .app-account {
    flex: 0 0 auto; margin: 0; gap: .25rem; flex-wrap: wrap; min-inline-size: 0; max-inline-size: 100%;
    padding-inline-start: .75rem; border-inline-start: 1px solid #e3d9cc;
}
.system-header .app-account :is(a,button) { font-size: .8125rem; min-block-size: 2.5rem; padding: .4rem .65rem; }
.system-header .app-account .app-language { justify-content: center; min-inline-size: 4rem; color: var(--brand-ink); }
.system-header .app-account .app-signout { border-color: #d9d1c6; border-radius: .375rem; color: var(--brand-muted); background: transparent; }
.system-header .app-account .app-signout:hover { border-color: #c9b29b; color: #8e3826; background: #f7f4ef; }
.system-header .system-navigation { padding-block: .15rem .25rem; border-block-start: 1px solid #e9e2d9; }
.system-menu-bar {
    display: flex; align-items: center; gap: .2rem; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: thin; scrollbar-color: #c7b7a6 transparent; padding-block: .25rem;
    overscroll-behavior-inline: contain; min-inline-size: 0;
}
.system-menu { flex: 0 0 auto; }
.xone-typography .system-menu-bar > a, .xone-typography .system-menu-trigger {
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem; flex: 0 0 auto;
    min-block-size: 2.55rem; padding: .45rem .8rem; border: 1px solid transparent; border-radius: .45rem;
    color: var(--brand-muted); background: transparent; font-size: var(--xone-type-label); line-height: 1.45;
    font-weight: 500; white-space: nowrap; text-decoration: none; overflow-wrap: normal; cursor: pointer;
}
.system-menu-trigger::after {
    content: ''; inline-size: .38rem; block-size: .38rem; border: solid currentColor; border-width: 0 1.3px 1.3px 0;
    transform: translateY(-.1rem) rotate(45deg); flex: 0 0 auto;
}
.system-menu:has(> .system-menu-panel:popover-open) > .system-menu-trigger { anchor-name: --active-menu; }
.horizontal-system .system-menu-bar > [aria-current=page], .system-menu[data-current] > .system-menu-trigger,
.system-menu:has([aria-current=location]) > .system-menu-trigger {
    background: #fae8df; color: #8e3826; border-color: #ebc6b6;
}
.system-menu:has(> .system-menu-panel:popover-open) > .system-menu-trigger { color: #8e3826; background: #f7e7dc; border-color: #d9b59f; }
.system-menu:has(> .system-menu-panel:popover-open) > .system-menu-trigger::after { transform: translateY(.1rem) rotate(225deg); }
.system-menu-panel {
    position: fixed; inset: 7.5rem 1rem auto; margin: 0 auto; inline-size: min(21rem,calc(100vw - 2rem));
    max-block-size: min(65svh,38rem); overflow: auto; padding: .5rem; border: 1px solid #d7cbbd;
    border-radius: .75rem; color: var(--brand-ink); background: var(--brand-surface);
    box-shadow: 0 16px 42px #28262424; overscroll-behavior: contain;
}
.system-menu-panel:popover-open { display: grid; gap: .3rem; }
.system-menu-panel::backdrop { background: transparent; }
.system-menu-panel ul { list-style: none; padding: 0; margin: 0; }
.system-menu-panel li { margin: 0; padding: 0; }
.system-menu-panel .app-icon { display: none; }
.system-menu-panel :is(a,button) {
    display: flex; align-items: center; gap: .6rem; inline-size: 100%; min-block-size: 2.5rem;
    padding: .5rem .75rem; border: 1px solid transparent; border-radius: .4rem; text-decoration: none;
    color: var(--brand-ink); background: transparent; font-size: var(--xone-type-label); font-weight: 400;
    white-space: normal; overflow-wrap: normal; line-height: 1.6;
}
.system-menu-panel p { margin: .35rem .75rem .15rem; font-size: .75rem; font-weight: 500; color: var(--brand-muted); }
.system-menu-panel section { min-inline-size: 0; }
.xone-typography .system-menu-panel [aria-current] { color: #8e3826; background: #fae8df; font-weight: 500; }
.system-menu-panel a:focus-visible { outline-offset: -2px; }
.system-menu-panel-wide { inline-size: min(38rem,calc(100vw - 2rem)); }
.system-menu-panel-wide:popover-open { grid-template-columns: repeat(auto-fit,minmax(min(14rem,100%),1fr)); gap: .6rem; }
.system-menu-panel-wide > ul:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(14rem,100%),1fr)); gap: .1rem .5rem; }
.workspace-module-menu { padding: .65rem; background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: .75rem; }
.management-ui .company-settings-layout { display: block; }
.management-ui .company-settings-nav {
    display: flex; flex-wrap: nowrap; gap: .35rem; padding: .5rem .75rem; overflow-x: auto;
    position: static; border: 0; border-block-end: 1px solid var(--brand-line); background: #f3eee7;
}
.management-ui .company-settings-nav .system-menu-panel ul { display: block; }
.management-ui .company-settings-nav .system-menu-panel a { border: 1px solid transparent; font-weight: 400; }
.management-ui .company-settings-nav .system-menu-panel [aria-current=location] { color: #8e3826; background: #fae8df; font-weight: 500; }
.management-ui .company-settings-content { border-inline-start: 0; }
.xone-typography :is(.section-tabs,.controls[aria-label],.report-actions,.workspace-balance-nav) { gap: .4rem; }
.xone-typography .section-tabs a { font-size: var(--xone-type-label); font-weight: 400; border-color: var(--brand-line); color: var(--brand-muted); }
.xone-typography .section-tabs [aria-current] { color: #8e3826; background: #fae8df; border-color: #d9b59f; font-weight: 500; }
.xone-typography .login-footer { display: flex; flex-wrap: wrap; gap: .45rem .8rem; font-size: var(--xone-type-label); }
.xone-typography .login-footer p { flex-basis: 100%; }
.start-page .start-horizontal-navigation {
    display: flex; align-items: center; flex-wrap: nowrap; flex: 1 1 auto; min-inline-size: 0;
    gap: .15rem; overflow-x: auto; scrollbar-width: thin;
}
.start-page .start-horizontal-navigation a {
    flex: 0 0 auto; min-block-size: 2.75rem; display: inline-flex; align-items: center;
    padding: .4rem .65rem; font-size: var(--xone-type-label); font-weight: 500; border-radius: .4rem;
    text-decoration: none; white-space: nowrap;
}

/* Shared density follows the type scale; heights remain minimums so text can wrap. */
@media screen {
    body.xone-typography main :is(h1,h2,h3,h4) { margin-block-start: 0; }
    .xone-typography h1 { margin-block-end: .75rem; }
    .xone-typography :is(h2,h3,h4) { margin-block-end: .5rem; }
    body.xone-typography main p { margin-block: .5rem; }
    body.xone-typography .panel:not(.print-invoice) {
        padding: var(--xone-layout-inset); margin-block: var(--xone-layout-section);
        border-radius: var(--xone-card-radius);
    }
    body.xone-typography :is(.plan-grid,.report-directory,.dashboard-columns) > .panel { margin: 0; }
    .xone-typography :is(.stack,.fields,.record-filters) { gap: var(--xone-layout-gap); }
    .xone-typography .fields { align-items: end; grid-template-columns: repeat(auto-fit,minmax(min(10rem,100%),1fr)); }
    .xone-typography .fields label:has(textarea) { grid-column: 1 / -1; }
    .xone-typography label { gap: .25rem; }
    body.xone-typography :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {
        min-block-size: var(--xone-control-height);
        padding-block: var(--xone-control-pad-y); padding-inline-start: var(--xone-control-pad-x);
        border-radius: .375rem;
    }
    body.xone-typography :is(input:not([type=checkbox],[type=radio],[type=hidden]),textarea) { padding-inline-end: var(--xone-control-pad-x); }
    body.xone-typography textarea:not([hidden]) { min-block-size: 5rem; }
    body.xone-typography :is(button,.button,.primary-action,.secondary-action,.workspace-primary,.start-button,.plan-action,.accounting-card-actions a,.section-tabs a) {
        min-block-size: var(--xone-control-height); max-inline-size: 100%;
        padding: var(--xone-control-pad-y) .75rem; border-radius: .375rem;
    }
    body.xone-typography :is(.controls,.report-actions,.screen-actions,.platform-row-actions,.start-app-links,.start-wizard-actions) { gap: .5rem; }
    .xone-typography :is(.dashboard-heading,.page-heading,.view-title,.screen-heading,.dashboard-toolbar) { gap: .5rem .75rem; margin-block-end: .75rem; }
    /* Keep page introductions close to their controls without compressing touch targets. */
    body.xone-typography :is(.dashboard-heading,.page-heading) { margin-block-start: 0; padding-block: 0; }
    body.xone-typography .dashboard-heading { margin-block-end: .5rem; }
    .xone-typography :is(.page-heading,.view-title,.screen-heading) h1 { margin-block-end: 0; }
    body.horizontal-system > main.shell { padding-block: .75rem 2.5rem; }
    .xone-typography :is(.workspace-section,.start-options,.start-resume) { margin-block: 1rem; }
    .xone-typography :is(.screen-stats,.workspace-metrics,.platform-metrics,.license-stats,.dashboard-columns,.plan-grid,.start-options,.start-client-grid,.start-plan-grid,.start-app-grid,.start-resume-list) { gap: var(--xone-layout-gap); }
    body.xone-typography :is(.workspace-metric,.platform-stat,.platform-kpi,.screen-stat,.management-module,.management-subscription-action,.start-card,.plan-card) {
        padding: var(--xone-layout-inset); border-radius: var(--xone-card-radius); min-inline-size: 0;
    }
    body.xone-typography :is(.workspace-metric dd,.screen-stat dd,.platform-stat dd,.platform-kpi dd) { margin-block-start: .25rem; }
    body.xone-typography .finance-setup-grid {
        grid-template-columns: repeat(auto-fit,minmax(min(100%,max(17rem,calc((100% - 2.25rem) / 4))),1fr));
        gap: var(--xone-layout-gap);
    }
    body.xone-typography .finance-setup-step { margin: 0; }
    .xone-typography .finance-setup-heading { align-items: center; gap: .375rem .5rem; }
    body.xone-typography .finance-setup-heading :is(h2,p) { margin: 0; }
    body.xone-typography :is(.state-tag,.finance-setup-heading p) { padding: .125rem .4375rem; border-radius: .3125rem; }
    .xone-typography .accounting-board {
        grid-template-columns: repeat(auto-fit,minmax(min(100%,max(21rem,calc((100% - 1.5rem) / 3))),1fr));
        gap: var(--xone-layout-gap); margin-block-end: 1rem;
    }
    .xone-typography .accounting-card { padding: var(--xone-layout-inset); gap: .625rem; border-radius: var(--xone-card-radius); }
    .xone-typography .accounting-card header { padding-block-end: .5rem; }
    .xone-typography .accounting-card header h2 { margin: 0; }
    .xone-typography .accounting-card [data-board-favorite] { min-inline-size: var(--xone-control-height); padding: .375rem; }
    .xone-typography :is(.accounting-card-actions,.accounting-card-tools) { gap: .5rem; }
    .xone-typography .accounting-card-tools { flex-direction: column; align-items: stretch; }
    .xone-typography .board-chart-positive { block-size: 5rem; }
    .xone-typography .board-chart.has-negative .board-chart-positive { block-size: 3.25rem; }
    .xone-typography .board-chart.has-negative .board-chart-negative { block-size: 1.75rem; }
    .xone-typography .billing-activity .activity-plot { min-block-size: 10rem; }
    .xone-typography :is(.board-search input,.board-search select) { min-block-size: calc(var(--xone-control-height) - 2px); }
    .xone-typography .board-search { border-radius: .375rem; }
    .xone-typography .workspace-period { display: flex; flex: 0 1 30rem; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: .5rem; max-inline-size: 100%; }
    .xone-typography .workspace-period label { flex: 1 1 10rem; min-inline-size: 0; }
    .xone-typography .workspace-period button { white-space: nowrap; }
    body.xone-typography:not(:has(.print-invoice)) table :is(th,td),
    body.xone-typography #client-directory tbody td { padding: .5rem .625rem; vertical-align: middle; }
    .xone-typography :is(.record-links a,.payment-review form > .controls a) { min-block-size: var(--xone-control-height); }
    .xone-typography .responsive-records td a.record-name { min-block-size: 1.5rem; }
    .xone-typography .board-chart table :is(th,td) { padding-block: .375rem; }
    body.xone-typography :is(.management-settings-section,.management-disclosure-body,.subscription-controls,.subscription-action-grid > form) { padding: .75rem; }
    .xone-typography :is(.company-settings-toolbar,.management-ui .platform-intro) { padding: var(--xone-layout-inset); min-block-size: 0; }
    .xone-typography .company-settings-group-heading { padding: .625rem var(--xone-layout-inset); }
    .xone-typography .company-settings-items { padding: var(--xone-layout-inset); gap: var(--xone-layout-gap); }
    .xone-typography :is(.management-disclosure > summary,.board-chart details > summary,.start-plan-comparison summary,.start-faq-list summary) {
        min-block-size: var(--xone-control-height); padding: .5rem .625rem;
    }
    .xone-typography .management-form-panel fieldset { padding: .75rem; }
    .xone-typography .system-header .system-header-main { min-block-size: 3.5rem; padding-block: .5rem; gap: .5rem 1rem; }
    .xone-typography .system-header .app-account :is(a,button),
    .xone-typography :is(.system-menu-bar > a,.system-menu-trigger,.system-menu-panel a,.start-horizontal-navigation a) {
        min-block-size: var(--xone-control-height); padding-block: .375rem;
    }
    .xone-typography .system-menu-panel { padding: .375rem; border-radius: .625rem; }
    .xone-typography .system-menu-panel :is(a,button) { padding-inline: .625rem; }
    .xone-typography .xemivo-sign-in { padding-block: 2rem; }
    .xone-typography .identity-signin-layout { max-inline-size: 64rem; margin-inline: auto; border-radius: 1.25rem; }
    .xone-typography .identity-signin-visual { padding: 2rem; }
    .xone-typography .identity-signin-message { margin-block: 2.5rem 1rem; }
    .xone-typography .identity-signin-emblem { inline-size: 8rem; margin-block: 1rem; }
    .xone-typography .identity-signin-layout .login-card { padding: clamp(1.25rem,3vw,2rem); }
    .xone-typography .login-card form { gap: .875rem; }
    .xone-typography .login-card label { gap: .25rem; }
    .xone-typography .login-brand { margin-block-end: 1rem; padding-block-end: 1rem; }
    .xone-typography .start-product-hero { padding: clamp(1.25rem,3vw,2.5rem); margin-block: 1.5rem 2rem; gap: clamp(1rem,2.5vw,2.5rem); border-radius: 1.25rem; }
    .xone-typography .start-product-preview { margin-block: .5rem; }
    .xone-typography .start-hero-actions { gap: .5rem 1rem; margin-block: 1.25rem; }
    .xone-typography .start-hero-actions .start-button { min-block-size: 2.75rem; }
    .xone-typography .start-product-section { padding-block: clamp(1.5rem,3vw,2.5rem); }
    .xone-typography .start-product-section-heading { margin-block-end: 1.25rem; gap: 1rem 1.5rem; }
    .xone-typography .start-product-module { padding: 1.25rem; }
    .xone-typography .start-module-icon { inline-size: 2.25rem; block-size: 2.25rem; margin-block-end: .75rem; border-radius: .625rem .625rem .2rem .625rem; }
    .xone-typography :is(.start-workflow,.start-access-section,.start-heading,.start-hub-heading) { padding: 1.25rem; margin-block: 1rem; gap: 1rem; border-radius: 1rem; }
    .xone-typography .start-document-flow li { padding: .625rem .75rem; gap: .75rem; }
    .xone-typography .start-home .start-plan { padding: 1.25rem; gap: .75rem; border-radius: var(--xone-card-radius); }
    .xone-typography .start-home .start-plan > .muted { min-block-size: 3.5rem; }
    .xone-typography .start-plan:has(input) { padding-inline-start: 2.75rem; }
    .xone-typography .start-plan:has(input:checked) { padding-block: calc(var(--xone-layout-inset) - 1px); padding-inline-end: calc(var(--xone-layout-inset) - 1px); padding-inline-start: calc(2.75rem - 1px); }
    .xone-typography .start-plan input { inset-inline-start: .875rem; inset-block-start: 1.125rem; }
    .xone-typography .start-resume-list a { padding: .75rem; gap: .75rem; }
    .xone-typography .start-hub-stats { gap: var(--xone-layout-gap); margin-block-end: 1rem; }
    .xone-typography .start-hub-stats > div { padding: .875rem 1rem; border-radius: var(--xone-card-radius); }
    .xone-typography .start-faq-section { margin-block-start: 1.5rem; gap: 1.5rem; }
    .xone-typography .start-product-footer { padding-block-start: 1.5rem; gap: 1rem; }
}
html { scroll-padding-block-start: 8.5rem; }
.xone-typography :is(section, article, h1, h2, h3)[id] { scroll-margin-block-start: 8.5rem; }

@media (hover:hover) {
    .xone-typography a:hover { text-decoration: none; }
    .xone-typography summary:hover { color: #813723; background-color: #f5ede3; border-color: #d7c6b5; }
    .xone-typography :is(button:not(.system-menu-trigger,.secondary-action,[data-board-favorite]),.primary-action,.workspace-primary,.start-button.primary):not(:disabled):hover { background: #96341f; color: #fff; }
    .xone-typography :is(.secondary-action,.start-button:not(.primary),.section-tabs a):hover { color: #813723; background: #f5e6d9; border-color: #c9a890; }
    .xone-typography :is(.system-menu-trigger,.system-menu-bar > a):hover { color: #813723; background: #f3eae0; border-color: #e2d2c2; }
    .xone-typography .system-menu-panel :is(a,button):hover { color: #813723; background: #f5e8dc; border-color: #ead6c5; }
    .xone-typography .accounting-card-actions a.accounting-card-primary:is(:hover,:focus-visible,:active) {
        color: #fffefa; background: #3b3530; text-decoration: none;
    }
    .xone-typography .system-header .active-workspace a:hover { background: #f3eae0; border-color: #c9b29b; }
    .start-page .start-horizontal-navigation a:hover { background: #f3eae0; color: #813723; }
    .xone-typography :is(.panel:has(> a),.start-card:has(a),.workspace-module,.report-card,.accounting-card:has(a),.workspace-metric:has(a),.platform-kpi:has(a)):hover { border-color: #c9b29b; transform: none; box-shadow: 0 3px 12px #28262408; }
}
@media (max-width: 640px) {
    body.xone-typography { --xone-type-control: 1rem; --xone-control-height: 2.75rem; --xone-layout-inset: .75rem; --xone-card-radius: .625rem; }
    body.horizontal-system > main.shell { width: calc(100% - 1.5rem); padding-block-start: .75rem; }
    .system-header .shell { width: calc(100% - 1.5rem); }
    .system-header .system-header-main { gap: .35rem .75rem; padding-block: .5rem; min-block-size: 3.5rem; }
    .system-header .app-brand { inline-size: 7.2rem; }
    .system-header .active-workspace { flex: 1 1 8.5rem; max-inline-size: 100%; font-size: .8125rem; }
    .system-header .active-workspace .workspace-context { gap: .375rem; padding-inline: .375rem; }
    .system-header .workspace-context-mark { flex-basis: 1.5rem; block-size: 1.5rem; }
    .system-header .app-account { flex: 1 1 100%; justify-content: flex-end; margin: 0; padding: 0; border: 0; }
    .system-header .app-account :is(a,button) { min-block-size: 2.75rem; }
    .system-menu-bar { gap: .1rem; }
    .system-menu-bar > a, .system-menu-trigger { min-block-size: 2.75rem; padding-inline: .7rem; font-size: var(--xone-type-label); }
    .system-menu-panel :is(a,button) { min-block-size: 2.75rem; }
    .system-menu-panel { max-block-size: min(65svh,32rem); }
    .xone-typography .start-hub-heading { padding: 1.1rem; }
    .start-page .start-horizontal-navigation { order: 3; flex-basis: 100%; }
}
@media screen and (max-width: 640px) {
    body.xone-typography :is(.responsive-records tbody td,#client-directory tbody td) { padding: 0; }
    .xone-typography .responsive-records tbody tr { gap: .5rem .75rem; padding-block: .75rem; }
    .xone-typography .responsive-records td a.record-name { min-block-size: var(--xone-control-height); }
    .xone-typography .responsive-records td::before { margin-block-end: .125rem; }
    .xone-typography label:has(> input:is([type=checkbox],[type=radio])) { min-block-size: var(--xone-control-height); }
    .xone-typography .identity-signin-layout .login-card { padding: 1.25rem; }
    .xone-typography .xemivo-sign-in { padding-block: 1rem; }
    .xone-typography .identity-signin-visual { padding: 1.25rem; }
    .xone-typography .start-product-hero { padding: 1.25rem; margin-block: 1rem 1.5rem; }
    .xone-typography .start-product-module { padding: 1rem; }
    .xone-typography .start-home .start-plan { padding: 1rem; }
    .xone-typography .start-home .start-plan > .muted { min-block-size: 0; }
    .xone-typography .start-hub-stats > div { padding: .75rem .625rem; }
}
@media screen and (pointer: coarse) {
    body.xone-typography { --xone-type-control: 1rem; --xone-control-height: 2.75rem; }
    .system-header .app-account :is(a,button) { min-block-size: 2.75rem; }
    .xone-typography label:has(> input:is([type=checkbox],[type=radio])) { min-block-size: var(--xone-control-height); }
}
@media screen and (max-height: 480px) {
    .xone-typography .app-header { position: static; }
    html { scroll-padding-block-start: 1rem; }
    body.xone-typography :is(section,article,h1,h2,h3)[id] { scroll-margin-block-start: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .xone-typography *, .xone-typography *::before, .xone-typography *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .system-header, .system-menu-panel { display: none !important; }
    body.horizontal-system > main.shell { width: 100%; padding: 0; }
    body:has(.print-invoice) { min-block-size: 0; }
}
