/* Local preview: compact navigation and grouped mobile forms. */
html body.ui-refresh .refresh-flow .invoice-core-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 20px}
html body.ui-refresh .refresh-flow .invoice-core-summary>div {min-width:0;padding:18px 20px;background:white;border:1px solid var(--line);border-radius:10px}
html body.ui-refresh .refresh-flow .invoice-core-summary dt {font-size:13px;color:var(--ink-2)}
html body.ui-refresh .refresh-flow .invoice-core-summary dd {margin:6px 0 0;font-size:24px;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html body.ui-refresh .refresh-flow .invoice-core-summary small {font-size:12px;font-weight:400;color:var(--ink-2)}
html body.ui-refresh .refresh-flow .invoice-source-group {border:1px solid var(--line);border-radius:10px;background:white;margin:10px 0;overflow:hidden}
html body.ui-refresh .refresh-flow .invoice-source-group>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 16px;cursor:pointer;font-size:14px;list-style:none}
html body.ui-refresh .refresh-flow .invoice-source-group>summary span {margin-left:auto;font-size:13px;color:var(--ink-2)}
html body.ui-refresh .refresh-flow .invoice-source-group>summary::after {content:'›';font-size:20px;color:var(--ink-2)}
html body.ui-refresh .refresh-flow .invoice-source-group[open]>summary::after {transform:rotate(90deg)}
html body.ui-refresh .refresh-flow .invoice-source-group .finance-section {margin:0;border:0;border-radius:0;padding-top:0}
html body.ui-refresh .refresh-flow[data-register="invoice-register"] .business-table a.primary-action {background:var(--brand);border-color:var(--brand);color:#fff}
@media(max-width:760px) {
 html body.ui-refresh .refresh-flow .invoice-core-summary {gap:10px;margin:12px 0 16px}
 html body.ui-refresh .refresh-flow .invoice-core-summary>div {padding:14px 12px;border:0}
 html body.ui-refresh .refresh-flow .invoice-core-summary dd {font-size:20px}
 html body.ui-refresh .refresh-flow .invoice-core-summary dt {font-size:12px}
}
html body.ui-refresh .project-hub .project-core-summary {grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:8px}
html body.ui-refresh .project-hub .project-core-summary>div {padding:16px 14px}
html body.ui-refresh .project-hub .project-core-summary dd {font-size:21px;line-height:1.4;margin-top:6px}
html body.ui-refresh .project-hub .project-cost-disclosure {margin:0;border-bottom:1px solid var(--line)}
@media(min-width:761px) and (max-width:1100px) {
 html body.ui-refresh .project-hub .project-core-summary {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px) {
 html body.ui-refresh .m-project .m-cover {display:flex;align-items:flex-start;gap:4px;min-height:0;height:auto;padding:12px 16px 14px}
 html body.ui-refresh .m-project .m-back {flex:0 0 44px;margin:-4px 0 0 -10px}
 html body.ui-refresh .m-project .m-cover-title {flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
 html body.ui-refresh .m-project .m-cover-title h1 {order:0;flex:1 0 100%;font-size:20px;line-height:1.4;letter-spacing:0;margin:0}
 html body.ui-refresh .m-project .m-cover-title .st {order:1;font-size:11px;line-height:1.5;padding:2px 6px}
 html body.ui-refresh .m-project .m-cover-title p {order:2;flex:1 1 140px;font-size:12px;line-height:1.5;margin:0}
 html body.ui-refresh .m-project .m-money--summary {padding:14px 16px 0;margin-top:12px}
 html body.ui-refresh .m-project .m-money--summary>.m-money-grid {gap:14px 12px}
 html body.ui-refresh .m-project .m-money--summary>.m-money-grid .v {font-size:18px;line-height:1.4;margin-top:6px}
 html body.ui-refresh .m-project .m-money--summary .project-cash-disclosure {margin:8px 0 0;border-top:1px solid var(--line-soft);border-bottom:0}
 html body.ui-refresh .m-project .m-money--summary .project-cash-disclosure>summary {display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:13px;list-style:none;cursor:pointer}
 html body.ui-refresh .m-project .m-money--summary .project-cash-disclosure>summary::after {content:'›';font-size:20px;color:var(--ink-2)}
 html body.ui-refresh .m-project .m-money--summary .project-cash-disclosure[open]>summary::after {transform:rotate(90deg)}
 html body.ui-refresh .m-project .m-money--summary .project-cash-disclosure dl {margin:0;padding:0 0 14px;gap:12px}
 html body.ui-refresh .m-project .m-money--summary .project-cash-disclosure dd {margin-left:0;font-size:16px}
}
html body.ui-refresh .refresh-flow .mobile-back {display:none}
.ui-refresh .flow-switch>summary {display:none}
.ui-refresh .flow-switch>nav {display:flex}
.ui-refresh .flow-switch {border:0;padding:0;margin:0}
.ui-refresh .flow-switch:not([open])>nav {display:flex}
html body.ui-refresh .refresh-flow .form-guide {background:transparent;border:0;border-bottom:1px solid var(--line);padding:0;margin:12px 0}
html body.ui-refresh .refresh-flow .form-guide>summary {font-size:13px;color:var(--flow-muted)}
html body.ui-refresh .refresh-flow .source-amount {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;background:white;border-radius:12px;padding:16px 20px;margin:16px 0}
html body.ui-refresh .refresh-flow .source-amount strong {font-size:24px;font-weight:650;color:var(--ink)}
html body.ui-refresh .refresh-flow .source-label {font-size:14px;color:var(--ink-2);margin:8px 0}
html body.ui-refresh .refresh-flow .quick-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--line);border-radius:10px;margin:20px 0;overflow:hidden}
html body.ui-refresh .refresh-flow .quick-links a {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:14px 18px;text-decoration:none;color:var(--ink);font-size:14px;border-bottom:1px solid var(--line-soft)}
html body.ui-refresh .refresh-flow .quick-links a::after {content:'›';color:var(--ink-3);font-size:22px;font-weight:400}
@media(min-width:761px) {
 .ui-refresh .flow-switch>nav {margin-top:16px}
 .ui-refresh .flow-switch::details-content {content-visibility:visible;display:contents}
}
@media(max-width:760px) {
 html body.ui-refresh {--bg:#f2f3f5;--ink:#1c1c1e;--ink-2:#52545a;--flow-muted:#6b6d74;--line:#e4e5e8;--line-soft:#f0f0f2;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
 html body.ui-refresh main {padding:0 16px 96px;margin:0}
 html body.ui-refresh main>.ui-review-notice {margin:0 -16px 8px;border:0;border-radius:0;padding:5px 16px;background:#e9edf7;display:flex;justify-content:space-between;flex-wrap:nowrap;font-size:10px;min-height:28px;line-height:1.5}
 html body.ui-refresh main>.ui-review-notice a {min-height:32px;font-size:11px}
 html body.ui-refresh .workspace.refresh-flow {position:relative;padding:0;max-width:none}
 html body.ui-refresh .refresh-flow .refresh-business-heading {padding:0 0 10px;margin:0}
 html body.ui-refresh .refresh-flow .project-breadcrumb {display:none}
 html body.ui-refresh .refresh-flow .mobile-back {display:inline-flex;align-items:center;gap:3px;min-height:44px;color:var(--brand);font-size:15px;text-decoration:none;margin-left:-4px;max-width:65%;line-height:1.4}
 .ui-refresh .mobile-back svg {width:20px;height:20px;flex-shrink:0}
 html body.ui-refresh .refresh-flow .refresh-business-heading .heading-row {display:block}
 html body.ui-refresh .refresh-flow .refresh-business-heading h1 {font-size:24px;line-height:1.4;letter-spacing:0;font-weight:650;margin:2px 0 5px}
 html body.ui-refresh .refresh-flow .refresh-business-heading p {font-size:12px;line-height:1.5;margin:0;color:var(--flow-muted)}
 html body.ui-refresh .refresh-flow .refresh-business-heading .project-code,html body.ui-refresh .refresh-flow .refresh-business-heading .secondary-action {display:none}
 html body.ui-refresh .refresh-flow .flow-switch {position:absolute;right:0;top:0;z-index:10;margin:0;border:0;background:transparent;padding:0;max-width:100%}
 html body.ui-refresh .refresh-flow .flow-switch>summary {display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:44px;padding:4px 0 4px 12px;font-size:13px;color:var(--brand);list-style:none}
 html body.ui-refresh .refresh-flow .flow-switch>summary::-webkit-details-marker {display:none}
 html body.ui-refresh .refresh-flow .flow-switch>summary::after {content:'⌄';font-size:16px}
 html body.ui-refresh .refresh-flow .flow-switch:not([open])>nav {display:none}
 html body.ui-refresh .refresh-flow .flow-switch[open]>nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:min(310px,calc(100vw - 32px));margin:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 8px 30px #1c1c1e18}
 html body.ui-refresh .refresh-flow .flow-switch nav a {background:white;border:0;border-radius:7px;min-height:48px;justify-content:flex-start;padding:10px 12px;font-size:14px}
 html body.ui-refresh .refresh-flow .flow-switch nav a[aria-current=page] {background:var(--brand-tint);color:var(--brand)}
 html body.ui-refresh .refresh-flow :is(.project-form,.business-record,.finance-section,.approval-panel,.record-summary,.supplier-metrics) {border:0;border-radius:12px;box-shadow:none;margin:14px 0;background:#fff}
 html body.ui-refresh .refresh-flow .project-form {padding:18px 16px;margin-top:12px}
 html body.ui-refresh .refresh-flow :is(.finance-section,.business-record,.approval-panel) {padding:18px 16px}
 html body.ui-refresh .refresh-flow :is(h2,legend) {font-size:17px;font-weight:600}
 html body.ui-refresh .refresh-flow h2::before {display:none}
 html body.ui-refresh .refresh-flow p {font-size:13px;line-height:1.65}
 html body.ui-refresh .refresh-flow .form-intro {margin:8px 0 12px;font-size:13px;line-height:1.65}
 html body.ui-refresh .refresh-flow .form-guide {margin:4px 0 10px}
 html body.ui-refresh .refresh-flow .form-guide>summary {min-height:44px;padding:10px 0;color:var(--flow-muted);font-size:13px}
 html body.ui-refresh .refresh-flow .form-guide p {font-size:13px;line-height:1.7;margin:8px 0 12px}
 html body.ui-refresh .refresh-flow .source-amount {padding:16px;margin:12px 0 4px;font-size:13px}
 html body.ui-refresh .refresh-flow .source-amount strong {font-size:26px;letter-spacing:-.5px}
 html body.ui-refresh .refresh-flow .source-label {margin:8px 0;font-size:13px}
 html body.ui-refresh .refresh-flow .project-fields {gap:0;grid-template-columns:1fr}
 html body.ui-refresh .refresh-flow .project-fields>div {padding:12px 0;border-bottom:1px solid var(--line-soft);min-width:0}
 html body.ui-refresh .refresh-flow .project-fields>div:last-child {border-bottom:0}
 html body.ui-refresh .refresh-flow .project-fields label {font-size:14px;color:var(--ink);font-weight:500;margin-bottom:8px}
 html body.ui-refresh .refresh-flow :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {font-size:16px;min-height:46px;border:1px solid #e4e5e8;border-radius:8px;background:#fafafb;padding:10px 12px;color:var(--ink);width:100%;max-width:100%}
 html body.ui-refresh .refresh-flow textarea {min-height:88px}
 html body.ui-refresh .refresh-flow :is(.form-section,.registration-section,.version-section) {padding:4px 0 16px;margin:0 0 16px;border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent}
 html body.ui-refresh .refresh-flow .version-section h2 {border:0;padding-left:0;margin:16px 0 4px}
 html body.ui-refresh .refresh-flow :is(.field-help,.field-hint) {font-size:12px;line-height:1.6}
 html body.ui-refresh .refresh-flow .project-actions {margin:12px 0;gap:10px}
 html body.ui-refresh .refresh-flow .project-actions a,html body.ui-refresh .refresh-flow button {border-radius:9px;font-size:14px;min-height:46px}
 html body.ui-refresh .refresh-flow>.project-actions:has(.primary-action) .primary-action {flex:1}
 html body.ui-refresh .refresh-flow>.project-actions.action-row>.primary-action {flex:1 0 100%}
 html body.ui-refresh .refresh-flow>.project-actions.action-row>a {flex:1}
 html body.ui-refresh .refresh-flow .approval-total {font-size:24px;font-weight:600}
 html body.ui-refresh .refresh-flow.classification-page .project-fields>div:not(:has(textarea)) {display:grid;grid-template-columns:minmax(0,105px) minmax(0,1fr);align-items:center;gap:10px;min-height:70px}
 html body.ui-refresh .refresh-flow.classification-page .project-fields>div:not(:has(textarea))>label {margin:0;font-size:14px}
 html body.ui-refresh .refresh-flow.classification-page .project-fields>div>.errorlist {grid-column:1/-1}
 html body.ui-refresh .refresh-flow .project-fields>div:has(>input[type=checkbox])>label {min-height:44px;display:flex;align-items:center}
 html body.ui-refresh .refresh-flow .project-actions.version-footer {display:flex;flex-wrap:wrap;margin:16px 0 0;padding:0;gap:8px;background:transparent;border:0;position:static;box-shadow:none}
 html body.ui-refresh .refresh-flow .project-form>.version-footer>button[type=submit] {width:100%;min-height:48px;font-size:16px}
 html body.ui-refresh .refresh-flow .version-footer>a {background:transparent;border:0;color:var(--flow-muted);padding:8px 4px;flex:1;font-size:13px}
 html body.ui-refresh .refresh-flow .form-confirm {padding:12px;background:#f6f7f9;border:0;border-radius:9px;font-size:13px;margin:14px 0}
 html body.ui-refresh .refresh-flow .quick-links {grid-template-columns:1fr;border:0;border-radius:12px;margin:14px 0}
 html body.ui-refresh .refresh-flow .quick-links a:last-child {border-bottom:0}
 html body.ui-refresh .refresh-flow .business-metrics {border:0;background:transparent;padding:0;margin:14px 0}
 html body.ui-refresh .refresh-flow .finance-section>.business-metrics {border:0;background:transparent}
 html body.ui-refresh .refresh-flow .business-metrics>div {padding:12px 0;gap:12px}
 html body.ui-refresh .refresh-flow .business-metrics dd {font-size:20px;line-height:1.5}
 html body.ui-refresh .refresh-flow .business-metrics dt {font-size:12px}
 html body.ui-refresh .refresh-flow :is(.business-help,.refresh-filter,.report-filters) {border:0;border-radius:10px;margin:10px 0;background:#fff}
 html body.ui-refresh .refresh-flow details>summary {font-size:14px;min-height:46px}
 html body.ui-refresh .refresh-flow .expense-records>li {border:0;border-radius:12px;padding:16px;margin:12px 0}
 html body.ui-refresh .refresh-flow .record-summary>span {display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:16px;font-size:13px}
 html body.ui-refresh .refresh-flow .record-summary strong {font-size:21px;color:var(--ink)}
 html body.ui-refresh .refresh-flow .business-table tr {border-radius:10px;border-color:var(--line-soft);box-shadow:none}
 html body.ui-refresh .refresh-flow .budget-category-table tbody {display:block}
 html body.ui-refresh .refresh-flow .budget-category-table tr {display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 0;margin:0;border:0;border-bottom:1px solid var(--line-soft);border-radius:0}
 html body.ui-refresh .refresh-flow .budget-category-table td {display:block;padding:0;border:0;font-size:14px;background:transparent}
 html body.ui-refresh .refresh-flow .budget-category-table td::before {display:none}
 html body.ui-refresh .refresh-flow .budget-category-table td:last-child {text-align:right;font-variant-numeric:tabular-nums}
 html body.ui-refresh main {animation:none}
}

/* Classification is a focused editing task: one source, one grouped form. */
html body.ui-refresh .refresh-flow.classification-editor {max-width:920px}
html body.ui-refresh .classification-editor .classification-source {display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;color:var(--ink-2);font-size:14px}
html body.ui-refresh .classification-editor .classification-source>span {min-width:0;overflow-wrap:anywhere}
html body.ui-refresh .classification-editor .classification-source strong {color:var(--ink);font-size:20px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
html body.ui-refresh .classification-editor .classification-source small {font-size:12px;font-weight:400}
html body.ui-refresh .classification-editor .classification-section-title {display:flex;justify-content:space-between;align-items:center}
html body.ui-refresh .classification-editor .classification-section-title>span,html body.ui-refresh .classification-editor .field-required {font-size:12px;font-weight:400;color:var(--flow-muted)}
html body.ui-refresh .classification-editor .classification-hint {font-size:12px;color:var(--flow-muted);margin:8px 0 0}
@media(min-width:761px) {
 html body.ui-refresh .refresh-flow.classification-editor .refresh-business-heading {margin-bottom:12px}
 html body.ui-refresh .refresh-flow.classification-editor .refresh-business-heading h1 {font-size:22px;margin:0}
 html body.ui-refresh .refresh-flow.classification-editor .project-breadcrumb {margin-bottom:8px}
 html body.ui-refresh .refresh-flow.classification-editor .project-form {padding:16px;margin-top:8px}
 html body.ui-refresh .refresh-flow.classification-editor .project-fields {gap:12px 16px}
 html body.ui-refresh .refresh-flow.classification-editor .classification-rows {padding:12px 0;margin:12px 0;border:0;border-bottom:1px solid var(--line-soft)}
 html body.ui-refresh .refresh-flow.classification-editor .classification-section-title h2 {font-size:14px;margin:0 0 8px}
 html body.ui-refresh .refresh-flow.classification-editor h2::before {display:none}
 html body.ui-refresh .refresh-flow.classification-editor textarea {height:60px;min-height:60px}
 html body.ui-refresh .refresh-flow.classification-editor .form-confirm {padding:0;margin:8px 0;border:0;background:transparent;min-height:44px;align-items:center}
 html body.ui-refresh .refresh-flow.classification-editor .form-confirm label {align-items:center}
 html body.ui-refresh .refresh-flow.classification-editor .version-footer {margin:8px 0 0;padding:8px 0 0;border:0}
}
@media(max-width:760px) {
 html body.ui-refresh:has(.classification-editor) main {padding:0 16px max(20px,env(safe-area-inset-bottom))}
 html body.ui-refresh:has(.classification-editor) .m-tabbar {display:none}
 html body.ui-refresh:has(.classification-editor) main>.ui-review-notice {margin-bottom:0;min-height:24px;padding:2px 16px}
 html body.ui-refresh:has(.classification-editor) main>.ui-review-notice a {min-height:24px}
 html body.ui-refresh .refresh-flow.classification-editor .refresh-business-heading {position:relative;padding:0;margin:0;min-height:48px}
 html body.ui-refresh .refresh-flow.classification-editor .refresh-business-heading h1 {font-size:18px;line-height:48px;text-align:center;margin:0;padding:0 64px}
 html body.ui-refresh .refresh-flow.classification-editor .refresh-business-heading .mobile-back {position:absolute;left:0;top:2px;font-size:14px;margin:0}
 html body.ui-refresh .refresh-flow.classification-editor .refresh-business-heading .heading-row p {display:none}
 html body.ui-refresh .refresh-flow.classification-editor .classification-source {font-size:13px;padding:8px 0 12px;gap:12px}
 html body.ui-refresh .refresh-flow.classification-editor .classification-source strong {font-size:20px}
 html body.ui-refresh .refresh-flow.classification-editor .project-form {padding:4px 14px 12px;margin:0;border-radius:10px}
 html body.ui-refresh .refresh-flow.classification-editor .project-fields>div:not(:has(textarea)) {min-height:52px;padding:4px 0;grid-template-columns:minmax(0,100px) minmax(0,1fr);gap:8px}
 html body.ui-refresh .refresh-flow.classification-editor .project-fields label {font-size:14px;font-weight:400;line-height:1.5}
 html body.ui-refresh .refresh-flow.classification-editor :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) {font-size:16px;min-height:44px;padding:8px 10px;border:1px solid #e4e5e8;border-radius:6px;background:#fff}
 html body.ui-refresh .refresh-flow.classification-editor input:not([type=checkbox]):not([type=hidden]) {text-align:right;font-variant-numeric:tabular-nums}
 html body.ui-refresh .refresh-flow.classification-editor .classification-rows {margin:0;padding:8px 0 12px;border-bottom:1px solid var(--line-soft)}
 html body.ui-refresh .refresh-flow.classification-editor .classification-section-title h2 {font-size:13px;font-weight:500;line-height:1.5;margin:4px 0;color:var(--flow-muted)}
 html body.ui-refresh .refresh-flow.classification-editor .classification-hint {font-size:12px;line-height:1.5;margin:6px 0 0}
 html body.ui-refresh .refresh-flow.classification-editor .project-fields>.field-wide {display:grid;grid-template-columns:minmax(0,100px) minmax(0,1fr);gap:8px;padding:12px 0 8px}
 html body.ui-refresh .refresh-flow.classification-editor .project-fields>.field-wide>label {padding-top:8px;margin:0}
 html body.ui-refresh .refresh-flow.classification-editor textarea {height:60px;min-height:60px;resize:vertical}
 html body.ui-refresh .refresh-flow.classification-editor .form-confirm {display:flex;align-items:center;gap:8px;background:transparent;padding:0;margin:0;min-height:44px}
 html body.ui-refresh .refresh-flow.classification-editor .form-confirm label {font-size:13px;font-weight:400;line-height:1.5;min-height:44px;display:flex;align-items:center;flex:1;margin:0}
 html body.ui-refresh .refresh-flow.classification-editor .form-confirm input {flex:0 0 20px;margin:0}
 html body.ui-refresh .refresh-flow.classification-editor .form-confirm:has(.errorlist) {flex-wrap:wrap}
 html body.ui-refresh .refresh-flow.classification-editor .form-confirm .errorlist {flex:0 0 100%}
 html body.ui-refresh .refresh-flow.classification-editor .version-footer {margin:8px 0 0;gap:0 12px}
 html body.ui-refresh .refresh-flow.classification-editor .version-footer button[type=submit] {min-height:44px;font-size:15px}
 html body.ui-refresh .refresh-flow.classification-editor .version-footer>a {min-height:44px;font-size:12px;padding:8px 0}
 html body.ui-refresh .refresh-flow.classification-editor .classification-guide {margin:8px 0 0;border:0}
 html body.ui-refresh .refresh-flow.classification-editor .classification-guide>summary {font-size:12px;padding:8px 0;min-height:44px}
}
/* Required evidence belongs to the primary expense task. */
html body.ui-refresh .refresh-flow .project-form.expense-entry {max-width:760px;margin-inline:0}
html body.ui-refresh .refresh-flow .expense-entry .expense-entry-amount input {font-size:24px;font-weight:600}
@media(max-width:760px) {
 html body.ui-refresh:has(.expense-entry) main {padding:0 16px max(20px,env(safe-area-inset-bottom))}
 html body.ui-refresh:has(.expense-entry) .m-tabbar {display:none}
 html body.ui-refresh .refresh-flow.registration-page .refresh-business-heading {position:relative;padding:0;margin:0 0 12px}
 html body.ui-refresh .refresh-flow.registration-page .refresh-business-heading h1 {font-size:18px;line-height:48px;text-align:center;margin:0;padding:0 64px}
 html body.ui-refresh .refresh-flow.registration-page .refresh-business-heading .mobile-back {position:absolute;left:0;top:2px;font-size:14px;margin:0}
 html body.ui-refresh .refresh-flow.registration-page .refresh-business-heading .heading-row p {font-size:12px;margin:0;text-align:center}
 html body.ui-refresh .refresh-flow.registration-page .project-form.expense-entry {padding:14px;margin:0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .form-section {padding:0;margin:0;border:0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-amount {margin:0 0 8px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .project-fields>div {display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:8px;padding:6px 0;min-height:56px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .project-fields label {font-size:13px;font-weight:400;margin:0;line-height:1.5}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) {font-size:16px;min-height:44px;padding:8px 10px;background:#fff;border:1px solid #e4e5e8;border-radius:6px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-amount input {font-size:24px;height:48px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry textarea {height:50px;min-height:50px;resize:vertical}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-voucher {grid-template-columns:minmax(0,1fr);gap:6px;padding:10px 0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .field-hint {grid-column:1/-1;font-size:12px;margin:0;line-height:1.5}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .errorlist {grid-column:1/-1}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-more {margin:4px 0 0;padding:0;border:0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-more summary {font-size:13px;padding:0;min-height:44px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .form-confirm {padding:0;margin:0;background:transparent;min-height:44px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .form-confirm label {font-size:13px;margin:0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .version-footer {margin-top:8px}
 html body.ui-refresh .refresh-expenses .expense-record-heading .amount {font-size:18px}
}

html body.ui-refresh .refresh-flow.expense-detail>.business-help {margin:0;border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent}
html body.ui-refresh .refresh-flow.expense-detail>.business-help>summary {display:flex;justify-content:space-between;align-items:center;min-height:48px;font-size:14px;padding:0 2px}
html body.ui-refresh .refresh-flow.expense-detail>.business-help>summary::after {content:'›';font-size:20px;color:var(--flow-muted)}
html body.ui-refresh .refresh-flow.expense-detail>.business-help[open]>summary::after {transform:rotate(90deg)}
html body.ui-refresh .refresh-flow.expense-detail .expense-vouchers .records {margin:0;padding:0;list-style:none}
html body.ui-refresh .refresh-flow.expense-detail .expense-vouchers .records li {min-height:44px;margin:0;padding:0;border:0}
html body.ui-refresh .refresh-flow.expense-detail .expense-vouchers .records li a {min-height:44px;display:flex;align-items:center;justify-content:space-between;overflow-wrap:anywhere}
html body.ui-refresh .refresh-flow.expense-detail .expense-detail-actions {display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
html body.ui-refresh .refresh-flow.expense-detail .expense-detail-actions a {min-height:44px;padding:8px 12px;font-size:13px}
@media(max-width:760px){
 html body.ui-refresh .refresh-flow.expense-detail .refresh-business-heading h1 {font-size:18px;line-height:1.5}
 html body.ui-refresh .refresh-flow.expense-detail .expense-facts {margin:0 0 8px}
 html body.ui-refresh .refresh-flow.expense-detail .expense-vouchers {margin:8px 0;padding:8px 12px}
 html body.ui-refresh .refresh-flow.expense-detail .expense-valid {margin:4px 0}
}

@media(min-width:761px){
 html body.ui-refresh .refresh-flow.registration-page .refresh-business-heading {margin-bottom:16px}
 html body.ui-refresh .refresh-flow.registration-page .refresh-business-heading h1 {font-size:24px;margin:8px 0}
 html body.ui-refresh .refresh-flow.registration-page .project-form.expense-entry {padding:16px 20px;margin-top:0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .form-section {margin:0;padding:0;border:0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .project-fields {gap:12px 16px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-amount {margin:0 0 12px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-amount input {font-size:20px;height:48px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry label {font-size:13px;margin-bottom:4px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry textarea {height:56px;min-height:56px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .field-hint {margin:4px 0;font-size:12px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-more {margin:8px 0;padding:0;border:0}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .expense-entry-more summary {min-height:44px;padding:10px 0;font-size:13px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .form-confirm {margin:0;padding:0;min-height:44px;border:0;background:transparent}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .form-confirm label {display:flex;align-items:center;gap:8px;margin:0;min-height:44px}
 html body.ui-refresh .refresh-flow.registration-page .expense-entry .version-footer {margin-top:8px;padding-top:0;border:0}
}

/* Keep the amount digits on one line; at narrow desktop widths the unit may
   move to the next line instead of splitting the number at the decimal point. */
html body.workbench-shell .project-hub .project-headline dd .amount-number{white-space:nowrap}

/* A 13-digit amount needs ~143px; keep three columns until the five-column
   cells can hold it without crossing the cell divider. */
@media(min-width:1101px) and (max-width:1199px) {
 html body.ui-refresh .project-hub .project-core-summary {grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Narrow desktop: two columns keep a normal amount and its unit on one line. */
@media(min-width:761px) and (max-width:860px) {
 html body.ui-refresh .project-hub .project-core-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
}
