/* U1.4: existing accounting facts and actions, within the approved workspace.
   InvoiceReview owns its complete U1.3 presentation; never select its children. */
body.workspace-shell[data-workspace-view="fibu-studio"],
body.workspace-shell[data-workspace-view="fibu-studio"] .main-content { background: var(--ws-bg); }
body.workspace-shell[data-workspace-view="fibu-studio"]::before { display: none; }
body.workspace-shell #fibu-studio-view { min-width: 0; max-width: 100%; color: var(--ws-ink); font: 400 var(--ws-text-body)/1.55 var(--ws-font); overflow-wrap: anywhere; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) {
    --bg-primary: var(--ws-bg); --bg-secondary: var(--ws-soft); --bg-card: var(--ws-surface); --bg-card-hover: var(--ws-soft);
    --text-primary: var(--ws-ink); --text-secondary: var(--ws-muted); --text-muted: var(--ws-muted);
    --border-color: var(--ws-line); --accent-primary: var(--ws-accent); --accent-success: var(--ws-good); --accent-warning: var(--ws-warn); --accent-danger: var(--ws-bad);
    --font-mono: var(--ws-font); color-scheme: var(--ws-scheme); min-width: 0;
}
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) *,
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) *::before { box-sizing: border-box; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) [hidden] { display: none !important; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(h2,h3,h4) { color: var(--ws-ink); line-height: 1.3; text-wrap: balance; margin: 0 0 var(--ws-space-sm); }
body.workspace-shell #fibu-studio-view .fibu-workspace-heading h2 { font-size: var(--ws-text-heading); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) h3 { font-size: var(--ws-text-subheading); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) h4 { font-size: var(--ws-text-body); }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) p { max-width: 72ch; margin-block: var(--ws-space-sm) var(--ws-space-md); }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(small,.muted-small) { color: var(--ws-muted); font-size: var(--ws-text-meta); }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-heading,.fibu-period-toolbar,.fibu-month-heading,.fibu-review-head) { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--ws-space-md); }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-heading,.fibu-period-toolbar,.fibu-month-heading,.fibu-review-head) > div { min-width: 0; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-heading p,.fibu-manual-note,.fibu-period-toolbar p,.fibu-review-head p) { color: var(--ws-muted); font-size: var(--ws-text-meta); }
body.workspace-shell #fibu-studio-view .fibu-workspace-header { padding-bottom: var(--ws-space-sm); margin-bottom: var(--ws-space-md); border-bottom: 1px solid var(--ws-line); }
body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-heading h2 { margin: 0; }
body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-heading p,
body.workspace-shell #fibu-studio-view .fibu-workspace-header p.fibu-manual-note { margin-block: var(--ws-space-xs) 0; line-height: 1.4; }
body.workspace-shell #fibu-studio-view .fibu-workspace-nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--ws-space-xs); overflow: visible; margin-block: var(--ws-space-sm); padding: 0; }
body.workspace-shell #fibu-studio-view .fibu-workspace-mobile-nav { display: none; }
body.workspace-shell #fibu-studio-view .fibu-workspace-context { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ws-space-sm) var(--ws-space-md); }
body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-context p { flex: 1 1 20rem; color: var(--ws-muted); margin: 0; font-size: var(--ws-text-meta); line-height: 1.4; }
body.workspace-shell #fibu-studio-view .fibu-period-year { min-width: 0; max-width: 100%; }
body.workspace-shell #fibu-studio-view .fibu-period-year span { font-size: var(--ws-text-meta); color: var(--ws-ink); }
body.workspace-shell #fibu-studio-view .fibu-workspace-content { min-width: 0; }

/* Shared native controls stop at the U1.3 boundary. Primary hover/active retain
   their paired contrast colors; disabled is a distinct state, never opacity. */
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(button,.btn) { min-width: 0; max-width: 100%; min-height: 44px; padding: .65rem .9rem; border: 1px solid var(--ws-line); border-radius: 6px; background: var(--ws-surface); color: var(--ws-ink); font: inherit; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; text-align: start; box-shadow: none; transform: none; cursor: pointer; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(button,.btn):hover:not(:disabled) { background: var(--ws-soft); color: var(--ws-ink); border-color: var(--ws-accent); box-shadow: none; transform: none; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(button,.btn):active:not(:disabled) { background: var(--ws-accent-soft); color: var(--ws-ink); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) .btn-primary,
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) .btn-primary:is(:hover,:active):not(:disabled) { background: var(--ws-button-bg); color: var(--ws-button-ink); border-color: var(--ws-button-bg); }
body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-nav .studio-tab { min-height: 44px; padding: .5rem .75rem; font-size: var(--ws-text-meta); }
body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-nav .studio-tab[aria-current="page"],
body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-nav .studio-tab[aria-current="page"]:is(:hover,:active) { background: var(--ws-accent-soft); color: var(--ws-accent); border-color: var(--ws-accent); }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) label { min-width: 0; max-width: 100%; font-size: var(--ws-text-meta); }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(input,select,textarea) { min-width: 0; max-width: 100%; width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid var(--ws-muted); border-radius: 6px; color: var(--ws-ink); background: var(--ws-surface); font: inherit; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(input,textarea)::placeholder { color: var(--ws-muted); opacity: 1; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(button,input,select,textarea):disabled { opacity: 1; color: var(--ws-muted); background: var(--ws-soft); border-color: var(--ws-line); cursor: not-allowed; box-shadow: none; transform: none; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :focus-visible { outline: 3px solid var(--ws-accent); outline-offset: 3px; scroll-margin-block: var(--ws-space-lg); }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) a { color: var(--ws-accent); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) summary { min-height: 44px; padding-block: .65rem; color: var(--ws-accent); cursor: pointer; }
body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) :is(.button-group,.fibu-period-tools,.fibu-review-actions) { display: flex; flex-wrap: wrap; min-width: 0; gap: var(--ws-space-sm); }

/* Twelve monthly rows, then one fresh detail: no metric-card overview. */
body.workspace-shell #fibu-studio-view .fibu-period-summary { display: block; background: transparent; border: 0; margin-bottom: var(--ws-space-lg); color: var(--ws-muted); }
body.workspace-shell #fibu-studio-view .fibu-period-summary > .fibu-workspace-state { display: block; min-width: 0; padding: var(--ws-space-md); }
/* The specific month or candidate heading replaces only the list scaffold.
   Both direct sections becoming hidden automatically restores the list header. */
body.workspace-shell #fibu-studio-view #fibu-tab-perioden:has(> .fibu-month-detail:not([hidden]), > .fibu-review-workbench:not([hidden])) > :is(.fibu-period-toolbar,.fibu-period-summary) { display: none; }
body.workspace-shell #fibu-studio-view .fibu-period-list { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr); }
body.workspace-shell #fibu-studio-view .fibu-period-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: center; gap: var(--ws-space-md); padding-block: var(--ws-space-lg); border-top: 1px solid var(--ws-line); }
body.workspace-shell #fibu-studio-view .fibu-period-row > * { min-width: 0; }
body.workspace-shell #fibu-studio-view .fibu-period-row p { color: var(--ws-muted); margin: 0; }
body.workspace-shell #fibu-studio-view :is(.fibu-period-status,.fibu-review-state) { display: inline-flex; max-width: 100%; font-size: var(--ws-text-meta); line-height: 1.4; white-space: normal; padding: .25rem .5rem; border-radius: 4px; background: var(--ws-soft); color: var(--ws-ink); }
body.workspace-shell #fibu-studio-view :is(.fibu-period-status-in_arbeit,.fibu-period-status-wiedereroeffnet,.fibu-review-state-source,.fibu-review-state-source_required,.fibu-review-state-deferred) { color: var(--ws-warn); }
body.workspace-shell #fibu-studio-view :is(.fibu-period-status-pruefbereit,.fibu-period-status-vorlaeufig_abgeschlossen,.fibu-period-status-festgeschrieben,.fibu-review-state-ready,.fibu-review-state-classification_confirmed) { color: var(--ws-good); }
body.workspace-shell #fibu-studio-view .fibu-review-state-excluded { color: var(--ws-muted); }
body.workspace-shell #fibu-studio-view .fibu-month-heading { margin-bottom: var(--ws-space-lg); }
body.workspace-shell #fibu-studio-view .fibu-month-sections { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--ws-space-xl); margin-block: var(--ws-space-xl); }
body.workspace-shell #fibu-studio-view :is(.fibu-month-sections > section,.fibu-month-actions,.fibu-month-events) { min-width: 0; border-top: 1px solid var(--ws-line); padding-top: var(--ws-space-lg); }
body.workspace-shell #fibu-studio-view .fibu-month-actions { margin-block: var(--ws-space-xl); }
body.workspace-shell #fibu-studio-view :is(.fibu-month-facts,.fibu-review-totals,.fibu-bwa-values) { margin-block: var(--ws-space-md); font-variant-numeric: tabular-nums; }
body.workspace-shell #fibu-studio-view :is(.fibu-month-facts,.fibu-bwa-values) > div { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: var(--ws-space-sm) var(--ws-space-md); padding-block: var(--ws-space-sm); border-bottom: 1px solid var(--ws-line); }
body.workspace-shell #fibu-studio-view :is(.fibu-month-facts,.fibu-review-totals,.fibu-bwa-values) dt { color: var(--ws-muted); }
body.workspace-shell #fibu-studio-view :is(.fibu-month-facts,.fibu-review-totals,.fibu-bwa-values) dd { min-width: 0; margin: 0; font-weight: 600; }
body.workspace-shell #fibu-studio-view .fibu-workspace-gates { margin: 0; padding: 0; list-style: none; }
body.workspace-shell #fibu-studio-view .fibu-workspace-gates li { padding-block: var(--ws-space-sm); border-bottom: 1px solid var(--ws-line); }
body.workspace-shell #fibu-studio-view .fibu-workspace-gates span { font-weight: 600; margin-inline-end: var(--ws-space-sm); }
body.workspace-shell #fibu-studio-view .fibu-month-events ol { padding-inline-start: var(--ws-space-lg); }
body.workspace-shell #fibu-studio-view .fibu-month-events li { padding-block: var(--ws-space-sm); }
body.workspace-shell #fibu-studio-view .fibu-workspace-state { min-width: 0; padding: var(--ws-space-md); border: 1px solid var(--ws-line); border-radius: 6px; background: var(--ws-soft); color: var(--ws-ink); }
body.workspace-shell #fibu-studio-view .fibu-workspace-state[data-state="error"] { border-color: var(--ws-bad); color: var(--ws-bad); }
body.workspace-shell #fibu-studio-view .fibu-workspace-state p { margin: 0 0 var(--ws-space-sm); }
body.workspace-shell #fibu-studio-view .fibu-workspace-state strong { color: inherit; font: inherit; font-weight: 600; }

/* Candidate totals remain labelled facts. On narrow screens each original row
   retains its identity and renders every td[data-label], including actions. */
body.workspace-shell #fibu-studio-view .fibu-review-workbench { margin-top: var(--ws-space-xl); padding-top: var(--ws-space-lg); }
body.workspace-shell #fibu-studio-view #fibu-tab-perioden > .fibu-review-workbench:not([hidden]) { margin-top: 0; padding-top: 0; border-top: 0; }
body.workspace-shell #fibu-studio-view .fibu-review-summary { display: block; padding-block: var(--ws-space-md); }
body.workspace-shell #fibu-studio-view .fibu-review-totals { display: flex; flex-wrap: wrap; gap: var(--ws-space-md) var(--ws-space-xl); }
body.workspace-shell #fibu-studio-view .fibu-review-totals > div { flex: 1 1 15rem; min-width: 0; }
body.workspace-shell #fibu-studio-view .fibu-review-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ws-space-md); }
body.workspace-shell #fibu-studio-view .fibu-review-filters label { display: grid; gap: var(--ws-space-sm); flex: 1 1 16rem; }
body.workspace-shell #fibu-studio-view .fibu-review-table-wrap { max-height: none; overflow: visible; }
body.workspace-shell #fibu-studio-view .fibu-review-table { min-width: 0; width: 100%; table-layout: fixed; }
body.workspace-shell #fibu-studio-view .fibu-review-table :is(th,td) { min-width: 0; padding: .75rem .5rem; overflow-wrap: anywhere; white-space: normal; }
body.workspace-shell #fibu-studio-view .fibu-review-table th { position: static; }
body.workspace-shell #fibu-studio-view .fibu-review-table th:first-child { width: 22%; }
body.workspace-shell #fibu-studio-view .fibu-review-actions { min-width: 0; }
body.workspace-shell #fibu-studio-view .fibu-review-note { max-width: 100%; }

/* Existing secondary financial areas inherit only this module's base palette.
   Their table scrollers contain wide data without widening the document. */
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) .table-container { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--ws-line); border-radius: 6px; background: var(--ws-surface); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) .data-table :is(th,td) { color: var(--ws-ink); border-color: var(--ws-line); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) .data-table th { color: var(--ws-muted); background: var(--ws-soft); text-transform: none; letter-spacing: normal; font-size: var(--ws-text-meta); }
body.workspace-shell #fibu-studio-view :is(.fibu-bwa-basis,.fibu-loan-section-head p,.fibu-asset-head p,.fibu-audit-toolbar p) { font-size: var(--ws-text-meta); color: var(--ws-muted); }
body.workspace-shell #fibu-studio-view #fibu-bwa-grid { display: block; }
body.workspace-shell #fibu-studio-view :is(.fibu-loan-filters,.fibu-asset-filters,.fibu-audit-filters) { min-width: 0; max-width: 100%; flex-wrap: wrap; }
body.workspace-shell #fibu-studio-view :is(.fibu-loan-filters,.fibu-asset-filters,.fibu-audit-filters) > :is(input,select) { flex: 1 1 13rem; min-width: 0; }
body.workspace-shell #fibu-studio-view :is(.fibu-loan-summary,.fibu-journal-summary,.fibu-audit-guide) { min-width: 0; background: var(--ws-soft); border-color: var(--ws-line); }
body.workspace-shell #fibu-studio-view :is(.fibu-loan-summary,.fibu-journal-summary) :is(span,small,strong) { font-size: var(--ws-text-meta); }
body.workspace-shell #fibu-studio-view .fibu-audit-summary.dashboard-grid { display: flex; flex-wrap: wrap; gap: 0; }
body.workspace-shell #fibu-studio-view .fibu-audit-stat { flex: 1 1 12rem; min-width: 0; border: 0; border-bottom: 1px solid var(--ws-line); border-radius: 0; box-shadow: none; background: transparent; transform: none; padding: var(--ws-space-md); }
body.workspace-shell #fibu-studio-view .fibu-audit-stat::before { display: none; }
body.workspace-shell #fibu-studio-view .fibu-audit-stat .stat-value { font-size: var(--ws-text-subheading); color: var(--ws-ink); }
body.workspace-shell #fibu-studio-view :is(.fibu-audit-card,.audit-empty-card,.audit-evidence,.audit-pill,.dup-visual-chip,.fibu-evidence-state,.fibu-loan-direction,.fibu-asset-warning) { color: var(--ws-ink); background: var(--ws-soft); border-color: var(--ws-line); }
body.workspace-shell #fibu-studio-view :is(.fibu-audit-row-fehlt,.fibu-audit-row-warnung) td { background: var(--ws-soft); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) :is(.is-positive,.audit-pill-ok,.audit-evidence-ok span,.dup-visual-ok,.fibu-evidence-complete,.fibu-loan-einzahlung) { color: var(--ws-good); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) :is(.is-warning,.guide-warning,.audit-pill-warnung,.dup-visual-warnung,.fibu-evidence-unresolved,.fibu-loan-rueckzahlung,.fibu-asset-warning) { color: var(--ws-warn); }
body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) :is(.is-negative,.is-danger,.guide-danger,.audit-pill-fehlt,.audit-evidence-missing span,.dup-visual-fehlt,.fibu-evidence-missing,.fibu-asset-evidence-missing) { color: var(--ws-bad); }
body.workspace-shell #fibu-studio-view :is(.fibu-asset-event,.fibu-journal-unassigned div,.fibu-asset-review td:first-child) { border-left: 0; }

/* Keep the assistant reachable after the work area, including native 200% zoom.
   No navigation or controller is hidden and no other workspace is affected. */
body.workspace-shell[data-workspace-view="fibu-studio"] #ellie-widget { position: static; inset: auto; display: flex; flex-direction: column; align-items: flex-end; gap: var(--ws-space-sm); width: auto; height: auto; min-width: 0; margin: var(--ws-space-md); background: transparent; border: 0; }
body.workspace-shell[data-workspace-view="fibu-studio"] #ellie-chat { position: static; inset: auto; width: min(100%,24rem); max-width: 100%; min-width: 0; max-height: 70vh; }
@media (max-width: 900px) {
    body.workspace-shell[data-workspace-view="fibu-studio"] #ellie-widget { grid-column: 1; grid-row: 5; }
}

@media (min-width: 1200px) {
    body.workspace-shell #fibu-studio-view .fibu-month-sections { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ws-space-xl) var(--ws-space-2xl); }
}
@media (min-width: 769px) {
    body.workspace-shell #fibu-studio-view .fibu-workspace-context .fibu-period-year { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ws-space-sm); }
    body.workspace-shell #fibu-studio-view .fibu-workspace-context .fibu-period-year span { max-width: 20rem; line-height: 1.4; }
    body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-context select { width: auto; min-width: 6rem; }
}
@media (max-width: 1100px) {
    body.workspace-shell #fibu-studio-view .fibu-tab-content:not([id="fibu-tab-invoice-review"]) .fibu-review-table-wrap.table-container { overflow: visible; border: 0; background: transparent; }
    body.workspace-shell #fibu-studio-view .fibu-review-table { display: block; }
    body.workspace-shell #fibu-studio-view .fibu-review-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    body.workspace-shell #fibu-studio-view .fibu-review-table :is(tbody,tr) { display: block; width: 100%; }
    body.workspace-shell #fibu-studio-view .fibu-review-table tr { padding-block: var(--ws-space-lg); border-top: 1px solid var(--ws-line); }
    body.workspace-shell #fibu-studio-view .fibu-review-table td { display: block; width: 100%; border: 0; padding: var(--ws-space-sm) 0; text-align: start; background: transparent; }
    body.workspace-shell #fibu-studio-view .fibu-review-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: var(--ws-space-xs); color: var(--ws-muted); font-size: var(--ws-text-meta); font-weight: 600; }
}
@media (max-width: 768px) {
    body.workspace-shell #fibu-studio-view .fibu-workspace-nav { display: none; }
    body.workspace-shell #fibu-studio-view .fibu-workspace-mobile-nav { display: grid; gap: var(--ws-space-sm); margin-block: var(--ws-space-sm); }
    body.workspace-shell #fibu-studio-view .fibu-period-row { grid-template-columns: minmax(0,1fr); gap: var(--ws-space-sm); }
    body.workspace-shell #fibu-studio-view .fibu-period-row > button { justify-self: start; }
    body.workspace-shell #fibu-studio-view :is(.fibu-workspace-context,.fibu-month-heading,.fibu-review-head) { flex-direction: column; align-items: stretch; }
    body.workspace-shell #fibu-studio-view .fibu-workspace-header .fibu-workspace-context p { flex: 0 1 auto; }
}
@media (max-width: 480px) {
    body.workspace-shell #fibu-studio-view :is(.fibu-month-facts,.fibu-bwa-values) > div { grid-template-columns: minmax(0,1fr); gap: var(--ws-space-xs); }
    body.workspace-shell #fibu-studio-view .fibu-period-tools { width: 100%; }
    body.workspace-shell #fibu-studio-view :is(.fibu-period-tools,.fibu-review-filters,.fibu-review-actions) > button { width: 100%; }
    body.workspace-shell #fibu-studio-view .fibu-review-filters label { flex-basis: 100%; }
    body.workspace-shell #fibu-studio-view .fibu-loan-summary > div { min-width: 0; flex-basis: 100%; border-left: 0; border-bottom: 1px solid var(--ws-line); }
}
@media (prefers-reduced-motion: reduce) {
    body.workspace-shell #fibu-studio-view :is(.fibu-workspace-header, .fibu-tab-content:not([id="fibu-tab-invoice-review"])) * { transition: none; animation: none; scroll-behavior: auto; }
}
