/* SYSLUD — Ember & Paper. Shared identity for the native ERP. */
:root, :root:lang(ar) {
    --brand-ink: #282624;
    --brand-paper: #f5f2ec;
    --brand-surface: #fffefa;
    --brand-clay: #b6432a;
    --brand-clay-hover: #96341f;
    --brand-apricot: #ef9475;
    --brand-sage: #64796a;
    --brand-soft: #eee8df;
    --brand-line: #d9d1c6;
    --brand-muted: #655e58;
    --brand-tint: #fae8df;
    --surface: var(--brand-surface);
    --canvas: var(--brand-paper);
    --ink: var(--brand-ink);
    --action: var(--brand-clay);
    --muted: var(--brand-muted);
    --border: var(--brand-line);
    --field-border: #94877c;
    --focus: #9b351f;
    --radius: 1rem;
    color: var(--ink);
    background: var(--canvas);
    accent-color: var(--brand-clay);
}
body { color: var(--ink); background-color: var(--canvas); }
a { color: #8e3826; text-underline-offset: .22em; }
.skip-content:focus { position: fixed; z-index: 100; }
button, .primary-action, .plan-action { background: var(--action); border-radius: .65rem; }
button:hover, .primary-action:hover, .plan-action:hover { background: var(--brand-clay-hover); }
input, select, textarea { border-radius: .6rem; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-clay); }
.muted, .empty-state, .login-footer, .login-brand h1 { color: var(--muted); }
.panel { box-shadow: 0 2px 0 #28262403; }
.app-header { background: var(--brand-surface); border-color: var(--border); }
.app-brand { inline-size: 10.5rem; }
.app-account a { color: var(--ink); }
.app-account a:hover { background: var(--brand-soft); }
.app-account button { background: transparent; color: var(--ink); border-color: var(--border); }
.app-account button:hover { background: var(--brand-soft); }
.active-workspace small { color: var(--muted); }
.workspace-topbar .active-workspace a { color: var(--ink); }
.state-tag { color: #5d5247; background: var(--brand-soft); border-radius: .45rem; }
.state-tag:is([data-state=approved],[data-state=trial]) { color: #733a27; background: #fae7da; }
.invoice-progress [aria-current=step], .workspace-app .invoice-progress [aria-current=step] {
    background: var(--brand-tint); color: #8e3826; border-color: #d9a28e;
}
th, .workspace-app th { color: #4f4942; background: #f0ebe3; }
td, th { border-color: #e5dfd5; }
.notice { background: #fff0d9; border-color: #dfbc82; color: #6a471f; }
.workspace-app {
    --workspace-canvas: var(--brand-paper);
    --workspace-rail: var(--brand-ink);
    --workspace-accent: var(--brand-clay);
    --workspace-violet: #b6432a;
    --workspace-teal: var(--brand-sage);
    --workspace-line: var(--brand-line);
    --workspace-radius: .9rem;
    color: var(--ink);
}
.workspace-app > main.shell { padding: 1.5rem clamp(1rem, 2.2vw, 2rem) 3rem; }
.app-rail { padding: 1.6rem 1rem; border-inline-end: 1px solid #ffffff10; }
.app-rail .app-brand { padding: .35rem .2rem 1.5rem; margin-block-end: 1rem; border-radius: 0; background: none; border-block-end: 1px solid #ffffff24; }
.app-rail .app-brand img { width: min(100%, 10rem); }
.app-rail .rail-group > p { color: #c7bbae; font-size: .75rem; margin-block: 1rem .5rem; }
.app-rail .workspace-nav a { color: #eee6dc; border-radius: .6rem; padding-block: .65rem; }
.app-rail .workspace-nav a:hover { background: #3b3631; }
.workspace-app .app-rail .workspace-nav [aria-current=page] { color: #ffb89c; background: #47372e; box-shadow: inset 3px 0 #ef9475; }
[dir=rtl] .workspace-app .app-rail .workspace-nav [aria-current=page] { box-shadow: inset -3px 0 #ef9475; }
.app-rail .workspace-nav a:focus-visible { outline-color: #ef9475; }
.workspace-nav a:hover, .xone-typography .workspace-nav a[aria-current=page] { color: #8e3826; background: var(--brand-tint); }
.dashboard-heading, .page-heading { padding-block: .3rem .7rem; }
.workspace-role { color: #78412e; background: #f1ded2; border-radius: .4rem; }
.workspace-app .workspace-hero { border: 0; border-inline-start: 4px solid var(--brand-clay); background: var(--brand-surface); padding: 1.4rem; }
.workspace-app .workspace-hero p { color: var(--muted); }
.workspace-primary { background: var(--brand-clay); color: #fff; border-color: var(--brand-clay); border-radius: .65rem; }
.workspace-primary:hover { background: var(--brand-clay-hover); color: #fff; }
.workspace-module, .workspace-metric, .platform-stat { border-color: var(--brand-line); background: var(--brand-surface); border-radius: .9rem; }
.workspace-app .workspace-metric { --metric-accent: #a44029; --metric-icon: #f7e3d9; border-block-start-width: 1px; border-block-end: 3px solid var(--metric-accent); padding: 1.2rem; }
.workspace-app .workspace-metric dd > bdi { color: var(--ink); font-size: 1.9rem; letter-spacing: -.03em; }
.workspace-app .workspace-metric-note, .workspace-app .workspace-metric dt { color: var(--muted); }
.workspace-app .workspace-metric[data-metric=collected] { --metric-accent: #536c59; --metric-icon: #e6ede4; }
.workspace-app .workspace-metric[data-metric=outstanding] { --metric-accent: #a44029; --metric-icon: #f7e3d9; }
.workspace-app .workspace-metric[data-metric=overdue] { --metric-accent: #8b5c23; --metric-icon: #faedcf; }
.workspace-app .workspace-metric[data-metric=cash_closing] { --metric-accent: #675e53; --metric-icon: #ece6dc; }
.workspace-app .workspace-module { padding: 1.1rem; border-radius: .9rem; }
.workspace-app .workspace-module h3, .workspace-app .workspace-module li a, .workspace-app .workspace-module .workspace-card-link,
.workspace-app .workspace-detail-link, .dashboard-panel-head a, .activity-values summary, .workspace-app .workspace-back { color: var(--ink); }
.workspace-module:has(.workspace-card-link:hover) { background: #f7f0e7; }
.workspace-metric dt .app-icon, .workspace-module > .app-icon { color: #884029; background: #f5e7dc; outline-color: #f5e7dc; }
.workspace-detail-total, .workspace-app .invoice-amounts p { background: var(--brand-surface); border-color: var(--brand-line); }
.workspace-app .workspace-balance-nav [aria-current=page], .section-tabs [aria-current=page] { background: var(--brand-tint); color: #843722; }
.journal-editor-row, .journal-records tbody tr:hover { background: #f3eee6; }
.journal-record, .journal-editor-index, .activity-currency, .activity-legend li, .activity-bucket time { color: var(--muted); }
.activity-currency { background: var(--brand-soft); }
.board-search { background: var(--brand-surface); border-color: var(--brand-line); border-radius: .7rem; }
.board-search :is(input,select) { background-color: transparent; }
.board-filters output { color: var(--muted); }
.accounting-board { gap: 1rem; margin-block-end: 1.5rem; }
.accounting-card { --accounting-accent: #9d3c26; --board-bar-color: #c27556; padding: 1.2rem; border: 1px solid var(--brand-line); border-radius: 1rem; background: var(--brand-surface); gap: .85rem; box-shadow: 0 3px 0 #28262403; }
.accounting-card[data-board=purchases] { --accounting-accent: #5c6d57; --board-bar-color: #899781; }
.accounting-card[data-board=treasury] { --accounting-accent: #66594b; --board-bar-color: #a28e77; }
.accounting-card[data-board=ledger] { --accounting-accent: #745750; --board-bar-color: #a88a80; }
.accounting-card header { background: transparent; padding-block-end: .6rem; border-block-end: 1px solid var(--brand-line); }
.accounting-card h2 { color: var(--accounting-accent); font-size: 1.1rem; }
.accounting-card-actions a { color: #6c4e3b; background: #f1e7da; border-radius: .5rem; padding: .4rem .65rem; }
.accounting-card-actions .accounting-card-primary { background: var(--brand-ink); color: #fffefa; }
.accounting-card-figures dd { font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.accounting-card-figures :is(dt,small), .board-chart figcaption, .board-chart-column, .board-chart details > summary { color: var(--muted); }
.accounting-card-figures dt a { color: #8e3826; }
.accounting-count { color: #5a4d40; background: #ece4d8; }
.accounting-card [data-board-favorite] { color: #7b6a56; }
.invoice-filters { grid-template-columns: repeat(auto-fit,minmax(min(9rem,100%),1fr)); }
.dashboard-columns { grid-template-columns: repeat(auto-fit,minmax(min(32rem,100%),1fr)); gap: 1rem; align-items: stretch; }
.dashboard-columns > .panel { padding: 1.15rem; }
.billing-activity { display: flex; flex-direction: column; gap: .7rem; }
.billing-activity .activity-legend { margin-block: 0 .4rem; }
.billing-activity .activity-plot { flex: 1; min-block-size: 12rem; margin-block: .4rem; align-items: stretch; }
.billing-activity .activity-bucket { display: flex; flex-direction: column; }
.billing-activity .bar-positive { flex: var(--positive-extent,10) 1 0; block-size: auto; min-block-size: 0; }
.billing-activity .bar-negative { flex: var(--negative-extent,0) 1 0; block-size: auto; min-block-size: 0; }
.activity-plot[data-positive-extent="0"] { --positive-extent: 0; }
.activity-plot[data-positive-extent="1"] { --positive-extent: 1; }
.activity-plot[data-positive-extent="2"] { --positive-extent: 2; }
.activity-plot[data-positive-extent="3"] { --positive-extent: 3; }
.activity-plot[data-positive-extent="4"] { --positive-extent: 4; }
.activity-plot[data-positive-extent="5"] { --positive-extent: 5; }
.activity-plot[data-positive-extent="6"] { --positive-extent: 6; }
.activity-plot[data-positive-extent="7"] { --positive-extent: 7; }
.activity-plot[data-positive-extent="8"] { --positive-extent: 8; }
.activity-plot[data-positive-extent="9"] { --positive-extent: 9; }
.activity-plot[data-positive-extent="10"] { --positive-extent: 10; }
.activity-plot[data-negative-extent="0"] { --negative-extent: 0; }
.activity-plot[data-negative-extent="1"] { --negative-extent: 1; }
.activity-plot[data-negative-extent="2"] { --negative-extent: 2; }
.activity-plot[data-negative-extent="3"] { --negative-extent: 3; }
.activity-plot[data-negative-extent="4"] { --negative-extent: 4; }
.activity-plot[data-negative-extent="5"] { --negative-extent: 5; }
.activity-plot[data-negative-extent="6"] { --negative-extent: 6; }
.activity-plot[data-negative-extent="7"] { --negative-extent: 7; }
.activity-plot[data-negative-extent="8"] { --negative-extent: 8; }
.activity-plot[data-negative-extent="9"] { --negative-extent: 9; }
.activity-plot[data-negative-extent="10"] { --negative-extent: 10; }
.billing-activity .activity-values { margin-block-start: .4rem; }
.dashboard-recent .dashboard-panel-head { align-items: baseline; gap: .2rem .8rem; margin-block-end: .5rem; }
.dashboard-recent .dashboard-panel-head h2 { font-size: 1rem; }
.dashboard-recent .dashboard-panel-head a { font-size: .8125rem; }
.recent-journal-list { list-style: none; padding: 0; margin: 0; }
.recent-journal-list li + li { border-block-start: 1px solid var(--brand-line); }
.recent-journal-record { display: grid; grid-template-columns: 1rem minmax(0,1fr) auto; gap: .7rem; align-items: center; min-block-size: 4.2rem; padding-block: .7rem; color: var(--ink); text-decoration: none; }
.recent-journal-record:hover .recent-journal-description strong { text-decoration: underline; text-underline-offset: .22em; }
.recent-journal-record > .app-icon { color: #8d6b51; }
.recent-journal-description { min-inline-size: 0; display: grid; gap: .2rem; }
.recent-journal-description strong { font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.recent-journal-date { font-size: .75rem; color: var(--muted); }
.recent-journal-date time, .recent-journal-number bdi { display: inline-block; direction: ltr; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recent-journal-meta { display: grid; gap: .25rem; justify-items: end; }
.recent-journal-meta .state-tag { white-space: nowrap; font-size: .75rem; }
.recent-journal-number { color: var(--muted); font-size: .7rem; }
.journal-records :is(th,td) { overflow-wrap: normal; word-break: normal; }
.journal-records .journal-record bdi { overflow-wrap: anywhere; }
.journal-records time, .journal-records .state-tag, .journal-records td:last-child bdi { display: inline-block; white-space: nowrap; }
.accounting-card-figures dd bdi { white-space: nowrap; }
/* Consistent data density: words wrap at spaces, financial values stay together. */
.xone-typography :is(th, .state-tag) { overflow-wrap: normal; word-break: normal; hyphens: none; }
.xone-typography th :is(a,bdi,span,strong) { overflow-wrap: normal; word-break: normal; }
.xone-typography td { overflow-wrap: break-word; word-break: normal; }
.numeric-inline, .xone-typography td time { display: inline-block; white-space: nowrap; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.xone-typography .audit-time { display: inline-flex; flex-direction: column; align-items: flex-start; direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .875em; line-height: 1.5; }
.table { max-inline-size: 100%; overscroll-behavior-inline: contain; scrollbar-color: #b9a993 transparent; scrollbar-width: thin; }
.table:focus-visible { outline-offset: 3px; border-radius: .35rem; }
.table :is(th,td) { vertical-align: middle; }
.screen-stats .screen-stat { background: var(--brand-surface); border-color: var(--brand-line); border-block-start-color: #8d6c51; }
.screen-stat dt { color: var(--brand-muted); }
.screen-stat dd { line-height: 1.45; }
.screen-heading, .page-heading { row-gap: .65rem; }
.report-actions, .screen-actions { row-gap: .65rem; }
.record-filters { row-gap: .8rem; }
.workspace-metric .numeric-inline, .screen-stat .numeric-inline { white-space: normal; overflow-wrap: normal; }
.workspace-detail-total bdi, #invoice-balance-summary .facts dd:nth-of-type(n+4) > bdi { display: inline-block; white-space: nowrap; direction: ltr; font-variant-numeric: tabular-nums; }
#billing-statement-totals, .statement-facts { grid-template-columns: minmax(0,1fr); gap: .25rem; }
#billing-statement-totals dd, .statement-facts dd { text-align: start; margin-block-end: .65rem; }
main details > summary { min-block-size: 2.75rem; padding-block: .55rem; }
.start-document-flow { container-type: inline-size; }
@container (max-width: 13rem) {
    .start-document-flow li { display: block; padding: .65rem; }
    .start-document-flow li::after, .start-document-flow .app-icon { display: none; }
}
@media (max-width: 640px) {
    .responsive-records tbody th[scope=row] { grid-column: 1 / -1; border: 0; padding: 0; }
}
@media (min-width: 760px) {
    #billing-statement-totals, .statement-facts { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .3rem .9rem; }
    #billing-statement-totals dd, .statement-facts dd { text-align: end; margin-block-end: 0; }
}
.board-chart-positive { border-color: #b6a897; background: repeating-linear-gradient(to top,#e7e0d6 0 1px,transparent 1px 25%); }
.board-bar { inline-size: 50%; border-radius: .3rem .3rem 0 0; }
.finance-menu-panel { border-color: var(--brand-line); }
.finance-menu-panel p { color: var(--muted); }
.finance-navigation .finance-menu :is(a,summary) { color: var(--ink); }
.finance-menu :is(a,summary):hover { background: var(--brand-soft); }
.finance-navigation .finance-menu [aria-current=page], .finance-navigation .finance-menu details:is([open],[data-current]) > summary { color: #8e3826; background: var(--brand-tint); }
.mobile-workspace-nav summary { border-color: var(--brand-line); }
.mobile-workspace-nav .finance-menu, .mobile-workspace-nav .workspace-nav { background: var(--brand-surface); }
.platform-banner, .platform-intro { color: #fff8ef; border-color: #433b32; background: var(--brand-ink); border-radius: 1.15rem; }
.platform-intro { padding: 1.5rem; }
.platform-banner p, .platform-intro p { color: #d9cdbf; }
.platform-intro .workspace-primary { background: #ef9475; color: #282624; border-color: #ef9475; }
.platform-intro .workspace-primary:hover { background: #ffb89c; color: #282624; }
.platform-kpi { background: var(--brand-surface); border-block-start-width: 1px; border-block-end: 3px solid var(--kpi-border); padding: 1rem; border-radius: .9rem; }
.platform-kpi { --kpi-border: #a8472f; --kpi-surface: #fae5d9; --kpi-ink: #82412d; }
.platform-kpi[data-metric=active] { --kpi-border: #63795d; --kpi-surface: #e8eddf; --kpi-ink: #4b603f; }
.platform-kpi[data-metric=renewal] { --kpi-border: #97702f; --kpi-surface: #f8eccf; --kpi-ink: #74511f; }
.platform-kpi[data-metric=seats] { --kpi-border: #806b64; --kpi-surface: #f0e5df; --kpi-ink: #67514a; }
.platform-attention { background: var(--brand-surface); border-color: var(--brand-line); }
.platform-attention > span, .platform-section-heading p { color: var(--muted); }
.platform-attention a, .platform-row-action { color: #754431; background: #f2e8dd; border-color: #ddcdbd; border-radius: .5rem; }
.platform-attention a:is(:hover,[aria-current]), .platform-row-action:hover { background: var(--brand-tint); }
.platform-filter-actions button { background: var(--brand-clay); }
.company-settings-toolbar, .company-settings-layout, .management-disclosure { background: var(--brand-surface); }
.company-settings-toolbar { border-block-start-width: 1px; padding-block: 1.4rem; border-radius: 1rem; }
.company-settings-nav { background: #eee8df; }
.company-settings-nav a:hover { background: #e4dbce; }
.company-settings-nav [aria-current=location] { background: #f8ded0; border-color: var(--brand-clay); color: #813723; }
.company-settings-group-heading { background: #f4efe7; }
.company-settings-group:target .company-settings-group-heading { background: #f8e5d9; }
.management-settings-section { background: #f4efe7; }
.company-settings-search-controls button { background: #ece4d8; border-color: var(--brand-line); }
/* A quiet, wide entrance. The form remains the focus on small screens. */
.login-page { background: var(--brand-paper); }
.xemivo-sign-in { width: min(1120px,calc(100% - 3rem)); padding-block: 3rem; }
.identity-signin-layout { display: grid; grid-template-columns: 1.1fr 1fr; width: 100%; min-inline-size: 0; border: 1px solid var(--brand-line); border-radius: 1.75rem; overflow: clip; background: var(--brand-surface); box-shadow: 0 24px 70px #3e2c1510; }
.identity-signin-visual { display: flex; flex-direction: column; align-items: start; padding: 2.7rem; min-inline-size: 0; color: #f8f0e6; background: var(--brand-ink); position: relative; overflow: hidden; }
.identity-signin-visual > img:first-child { inline-size: 12rem; block-size: auto; }
.identity-signin-message { margin-block: 3.5rem 1rem; position: relative; z-index: 1; }
.identity-signin-message p { font-size: clamp(1.7rem,3vw,2.5rem); line-height: 1.55; font-weight: 600; margin: 0 0 1rem; }
.identity-signin-message span { color: #d9cbbd; font-size: .9375rem; line-height: 1.9; display: block; }
.identity-signin-emblem { align-self: end; inline-size: 10rem; block-size: auto; margin-block: 1.5rem; opacity: .7; }
.identity-signin-caption { font-size: .75rem; color: #d1c1b1; margin-block: auto 0; }
.identity-signin-layout .login-card { display: flex; flex-direction: column; justify-content: center; gap: .5rem; width: 100%; border: 0; border-radius: 0; box-shadow: none; padding: clamp(1.5rem,4vw,3rem); }
.identity-signin-layout .login-brand { text-align: start; border-color: var(--brand-line); padding-block-end: 1.4rem; }
.identity-signin-layout .login-brand img { display: none; }
.identity-signin-layout .login-brand h1 { color: var(--ink); font-size: 1.65rem; }
.identity-signin-layout .login-footer { text-align: start; line-height: 1.85; }
.identity-signin-layout .login-footer a { padding-inline: 0; margin-inline-end: .9rem; }
.login-card { background: var(--brand-surface); border-color: var(--brand-line); }
/* Public home. Editorial typography and a distinctive dark product stage. */
.start-page { color: var(--ink); background: var(--brand-paper); }
.start-page > main.shell, .start-page > .app-header > .shell { width: min(1320px,calc(100% - 4rem)); }
.start-page .app-brand { inline-size: 10.5rem; }
.start-page > .app-header { background: #f5f2ecf5; border-color: var(--brand-line); backdrop-filter: blur(12px); }
.start-site-navigation { gap: 1.8rem; }
.start-site-navigation a, .start-product-footer a { color: var(--ink); }
.start-site-navigation a:hover, .start-product-footer a:hover { color: var(--brand-clay); }
.start-site-mobile nav { border-color: var(--brand-line); background: var(--brand-surface); border-radius: 1rem; }
.start-site-mobile a { color: var(--ink); }
.start-home { --home-green: var(--brand-clay); --home-line: var(--brand-line); }
.start-eyebrow { color: var(--brand-clay); letter-spacing: .04em; }
.start-product-hero { position: relative; isolation: isolate; grid-template-columns: minmax(0,1fr) minmax(0,1.04fr); gap: clamp(1.5rem,3.5vw,3.5rem); padding: clamp(1.4rem,4vw,3.5rem); margin-block: 2rem 3.5rem; background: var(--brand-ink); border-radius: 2rem; color: #fff8ef; }
.start-hero-copy { position: relative; z-index: 1; }
.start-product-hero .start-eyebrow { color: var(--brand-apricot); margin-block-end: 1.2rem; }
.start-product-hero h1 { font-size: clamp(2rem,3.65vw,3.6rem); line-height: 1.5; letter-spacing: -.035em; margin-block-end: 1.1rem; }
.start-product-hero h1 span { display: block; }
.start-product-hero h1 span + span { color: var(--brand-apricot); }
.start-hero-description { color: #e1d6c9; font-size: 1rem; line-height: 1.95; }
.start-product-hero .start-button.primary { color: #282624; background: var(--brand-apricot); border-color: var(--brand-apricot); border-radius: .65rem; font-weight: 700; }
.start-product-hero .start-button.primary:hover { color: #282624; background: #ffb89c; }
.start-product-hero .start-text-link { color: #f5e9dc; }
.start-hero-facts { color: #d4c6b6; font-size: .75rem; }
.start-hero-facts li::before { background: var(--brand-apricot); }
.start-product-preview { position: relative; padding: .65rem; background: #e9d6bf; border: 0; border-radius: 1.1rem; margin-block: 1.5rem; box-shadow: 12px 18px 0 #574738; }
.start-preview-heading { color: #564332; font-weight: 600; }
.start-product-preview .start-preview-mark { background: transparent; inline-size: 1.5rem; block-size: 1.5rem; padding: 0; border: 0; border-radius: 0; }
.start-product-preview img:not(.start-preview-mark) { border-color: #d3bfa7; border-radius: .6rem; }
.start-product-preview figcaption { color: #604b38; font-size: .72rem; }
.start-product-section { padding-block: clamp(2.4rem,4.8vw,4.5rem); }
.start-product-section h2, .start-workflow h2, .start-access-section > h2 { font-size: clamp(1.6rem,2.55vw,2.45rem); line-height: 1.6; letter-spacing: -.02em; }
.start-product-section-heading > p, .start-product-module p, .start-getting-started p, .start-faq-list p { color: var(--muted); }
.start-product-modules { gap: 0; border-block-start: 1px solid var(--brand-line); }
.start-product-module { position: relative; padding: 1.8rem; border: 0; border-inline-end: 1px solid var(--brand-line); border-block-end: 1px solid var(--brand-line); border-radius: 0; background: transparent; }
.start-product-module:nth-child(3n) { border-inline-end: 0; }
.start-module-icon { color: #94412b; background: #f0e1d4; inline-size: 2.8rem; block-size: 2.8rem; border-radius: .85rem .85rem .2rem .85rem; margin-block-end: 1.2rem; }
.start-product-module:nth-child(2n) .start-module-icon { color: #4e634c; background: #e3e7da; }
.start-product-module small { color: #766048; }
.start-workflow { background: #e8e0d3; color: var(--ink); border-radius: 1.5rem; margin-block: 2rem; }
.start-workflow .start-eyebrow { color: #96341f; }
.start-workflow > div > p:not(.start-eyebrow) { color: #61584e; }
.start-workflow-checks li::before { color: #7b472e; }
.start-document-flow { counter-reset: document-step; }
.start-document-flow li { counter-increment: document-step; color: #4c4034; background: #f7f1e7; border-color: #cdbda8; border-radius: .65rem; }
.start-document-flow li::after { content: '0' counter(document-step); color: #816f59; font-size: .8125rem; margin-inline-start: auto; }
.start-document-flow .app-icon { color: var(--brand-clay); }
.start-price-period { color: var(--ink); background: #e8e0d3; border-color: #d4c7b5; }
.start-price-period legend { color: #64584c; }
.start-price-period label:has(:checked) { background: var(--brand-surface); color: #853d28; }
.start-price-period input { accent-color: var(--brand-clay); }
.start-home .start-plan { background: var(--brand-surface); border-color: var(--brand-line); border-radius: 1.2rem; padding: 1.8rem; }
.start-plan strong { color: inherit; }
.start-home .start-plan[data-plan=finance] { background: #eee2d3; border: 1px solid #b59b7b; padding: 1.8rem; }
.start-home .start-plan[data-plan=teams] { background: var(--brand-ink); color: #fff7ee; border-color: var(--brand-ink); }
.start-home .start-plan[data-plan=teams] > .muted { color: #d8cabb; }
.start-home .start-plan[data-plan=teams] .start-plan-extra { color: #f0b99b; border-color: #6f5c48; }
.start-home .start-plan[data-plan=teams] .start-button { background: var(--brand-apricot); border-color: var(--brand-apricot); color: #282624; }
.start-home .start-plan-extra { color: #6d5039; border-color: #dacabb; }
.start-price small, .start-pricing-note { color: var(--muted); }
.start-home .start-plan[data-plan=teams] .start-price small { color: #d8cabb; }
.start-button { color: #82402a; border-color: #c9b7a5; border-radius: .6rem; background: var(--brand-surface); }
.start-button:hover { background: #f0e4d7; }
.start-button.primary { background: var(--brand-clay); color: #fff; border-color: var(--brand-clay); }
.start-button.primary:hover { background: var(--brand-clay-hover); }
.start-plan-comparison { background: var(--brand-surface); border-color: var(--brand-line); border-radius: .8rem; }
.start-plan-comparison summary { color: var(--ink); }
.start-plan-comparison td[data-included=true] { color: #5b6845; }
.start-plan-comparison td[data-included=false] { color: var(--muted); }
.start-getting-started { color: var(--brand-clay); }
.start-getting-started li { border-color: #d5bba1; }
.start-getting-started h3 { color: var(--ink); }
.start-access-section { background: #eadfce; border-color: #d4c2a8; border-radius: 1.4rem; }
.start-access-section .start-card { background: #fcf8f1; border-color: #d3bea4; border-radius: .85rem; }
.start-faq-list details { border-color: var(--brand-line); }
.start-faq-list summary { color: var(--ink); }
.start-product-footer { border-color: var(--brand-line); }
.start-product-footer p { color: var(--muted); }
.start-hub-heading { background: var(--brand-ink); color: #fff8ef; border-radius: 1.4rem; padding: 2rem; }
.start-hub-heading p:not(.start-eyebrow) { color: #dfd0c0; }
.start-hub-heading .start-eyebrow { color: var(--brand-apricot); }
.start-hub-actions .start-button { color: #f4e7d9; border-color: #a79581; background: transparent; }
.start-hub-actions .start-button.primary { background: var(--brand-apricot); color: var(--brand-ink); border-color: var(--brand-apricot); }
.start-hub-stats { gap: 1rem; }
.start-hub-stats > div { background: var(--brand-surface); border-color: var(--brand-line); border-radius: 1rem; padding: 1.4rem; }
.start-hub-stats dt { color: var(--muted); }
.start-hub-stats > div > .app-icon { color: var(--brand-clay); }
.start-resume-list a { border-color: #cfbdab; background: #ede4d5; color: #5e402b; border-radius: .8rem; padding: 1.2rem; }
.start-resume-list small, .start-clients .start-section-heading p, .start-client-card > p { color: var(--muted); }
.start-client-card { background: var(--brand-surface); border-color: var(--brand-line); border-radius: 1rem; }
.start-client-card-heading .app-icon { color: var(--brand-clay); }
.start-client-card .start-button { border-color: #d8c7b4; }
.start-heading { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff8ef; border-radius: 1.3rem; }
.start-heading p { color: #dfd0c0; }
.start-steps span { background: #ece3d7; border-color: #d0bdab; color: #655240; border-radius: .6rem .6rem 0 0; }
.start-steps [aria-current=step] { background: #f7decd; color: #8e3826; border-color: #c68f73; }
.start-wizard :is(input[type=radio],input[type=checkbox]) { accent-color: var(--brand-clay); }
.start-wizard .start-card, .start-included { background: var(--brand-surface); border-color: var(--brand-line); border-radius: .9rem; }
.start-included strong, .start-review dt { color: #71523c; }
.start-plan:has(input:checked), .start-app:has(input:checked) { border-color: var(--brand-clay); background: #fae9dd; box-shadow: 0 0 0 1px var(--brand-clay); }
.start-app small { color: var(--muted); }
:root:lang(ar) :is(.start-eyebrow,.start-product-hero h1,.start-product-section h2,.start-workflow h2) { letter-spacing: 0; }
@media (min-width: 941px) {
    .workspace-app, .workspace-app.finance-navigation { display: grid; grid-template-columns: 15rem minmax(0,1fr); grid-template-rows: auto 1fr; }
    .workspace-app { --workspace-rail-width: 15rem; }
    .workspace-app.finance-navigation { background-image: linear-gradient(var(--workspace-rail-direction),var(--workspace-rail) var(--workspace-rail-width),var(--workspace-canvas) var(--workspace-rail-width)); }
    .finance-rail .desktop-finance-nav { display: block; border: 0; padding: 0; }
    .finance-rail .finance-menu { display: grid; gap: .5rem; }
    .finance-navigation .finance-rail .finance-menu :is(a,summary) { color: #eee6dc; font-size: .875rem; min-block-size: 2.8rem; padding: .6rem .8rem; border-radius: .55rem; }
    .finance-rail .finance-menu > a { border: 1px solid #635347; margin-block-end: .7rem; }
    .finance-rail .finance-menu details > summary { justify-content: space-between; }
    .finance-rail .finance-menu :is(a,summary):hover { background: #3d352e; }
    .finance-navigation .finance-rail .finance-menu [aria-current=page], .finance-navigation .finance-rail .finance-menu details[data-current] > summary { color: #ffb89c; background: #49372b; }
    .finance-navigation .finance-rail .finance-menu details[open] > summary { background: #40352d; color: #f7d9c2; }
    .finance-rail .finance-menu-panel { position: static; inline-size: 100%; min-inline-size: 0; max-inline-size: none; max-block-size: none; padding: .3rem 0 .65rem; border: 0; background: transparent; box-shadow: none; overflow: visible; }
    .finance-rail .finance-menu-panel p { color: #c3b29f; margin: .5rem .8rem; font-size: .75rem; }
    .finance-rail .finance-menu-panel ul + p { border-color: #615140; }
    .finance-navigation .finance-rail .finance-menu-panel a { color: #e1d0bc; font-size: .8125rem; padding-inline: 1rem; min-block-size: 2.5rem; }
    .finance-rail :focus-visible { outline-color: #ef9475; }
    .finance-navigation .workspace-topbar .shell { min-block-size: 4.5rem; padding: .6rem 1.8rem; }
    .finance-navigation .workspace-topbar .active-workspace { max-inline-size: 19rem; }
    .finance-navigation .workspace-topbar .active-workspace a { color: var(--ink); }
    .finance-navigation .workspace-topbar .active-workspace a:hover { background: var(--brand-soft); }
    .finance-navigation .workspace-topbar .mobile-brand, .finance-navigation .mobile-workspace-nav { display: none; }
    .finance-navigation .dashboard-heading { margin-block: .3rem 1rem; }
}
@media (max-width: 1040px) {
    .start-site-navigation { gap: .9rem; }
    .start-product-hero { grid-template-columns: minmax(0,1fr); padding: 2rem; }
    .start-product-hero h1 { font-size: clamp(2rem,5vw,3.5rem); }
    .start-product-preview { max-inline-size: 42rem; inline-size: 100%; margin-block: .8rem; }
    .start-hero-description { max-inline-size: 42rem; }
}
@media (max-width: 940px) {
    .finance-rail { display: none; }
    .workspace-app > main.shell { padding: 1rem .85rem 2rem; }
    .finance-navigation .workspace-topbar .mobile-brand { display: block; }
    .finance-navigation .workspace-topbar .app-brand { inline-size: 8rem; }
    .identity-signin-visual { padding: 2rem; }
}
@media (max-width: 800px) {
    .start-page > main.shell, .start-page > .app-header > .shell { width: calc(100% - 2rem); }
    .start-page .app-brand { inline-size: 9rem; }
    .start-product-hero { margin-block-start: 1rem; border-radius: 1.3rem; }
    .start-product-modules { gap: 0; }
    .start-product-module { padding: 1.3rem; }
    .start-product-module:nth-child(3n) { border-inline-end: 1px solid var(--brand-line); }
    .start-product-module:nth-child(2n) { border-inline-end: 0; }
    .identity-signin-layout { grid-template-columns: minmax(0,1fr); max-inline-size: 31rem; }
    .identity-signin-visual { padding: 1.6rem; }
    .identity-signin-message { margin-block: 1.5rem 0; }
    .identity-signin-message p { font-size: 1.6rem; margin-block-end: .5rem; }
    .identity-signin-emblem, .identity-signin-caption { display: none; }
    .identity-signin-layout .login-brand { margin-block-end: .5rem; padding-block-end: 1rem; }
}
@media (max-width: 480px) {
    .start-product-hero { padding: 1.5rem 1.1rem; gap: .7rem; }
    .start-product-hero h1 { font-size: clamp(1.7rem,7.8vw,2.5rem); line-height: 1.65; }
    .start-hero-description { font-size: .875rem; }
    .start-product-preview { box-shadow: 5px 8px 0 #574738; padding: .45rem; border-radius: .8rem; }
    .start-product-preview figcaption { font-size: .66rem; }
    .start-product-module { border-inline: 0 !important; padding: 1.4rem .5rem; }
    .start-product-section h2, .start-workflow h2 { font-size: 1.65rem; }
    .start-hub-heading { padding: 1.4rem; }
    .start-hub-stats { gap: .45rem; }
    .start-hub-stats > div { padding: .9rem .6rem; }
    .start-hub-stats dd { font-size: 1.6rem; }
    .start-hub-stats dt { font-size: .75rem; }
    .accounting-card { padding: .9rem; }
    .accounting-card-figures dd { font-size: 1.15rem; }
    .xemivo-sign-in { width: calc(100% - 1.3rem); padding-block: 1rem; }
    .identity-signin-layout { border-radius: 1.15rem; }
    .identity-signin-layout .login-card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
    :is(button,a,input,select) { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
}
@media print {
    .workspace-app.finance-navigation { display: block; background: white; }
    .start-product-hero { background: white; color: #282624; border: 1px solid #d9d1c6; }
    .start-product-hero :is(h1 span,.start-eyebrow,.start-hero-description,.start-text-link,.start-hero-facts) { color: #282624; }
    .start-product-preview { box-shadow: none; }
}
