/* QuickBooks one page (owner-approved Nov 25): four cards (Recon · Import · Transactions · Accounts) under the page
   bar, the Invoices | Bills tabs with Start over, one status pill and one "Connect QuickBooks" state. Reuses the
   chooser card (workspace-workflow-picker.css) and the shared tab bar. */
#appShell.ui-workspace .qbo-page {display:flex;flex-direction:column;gap:14px;margin:4px 0 22px;min-width:0}
#appShell.ui-workspace .qbo-page [hidden] {display:none!important}
#appShell.ui-workspace .qbo-cards {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#appShell.ui-workspace .qbo-card-wrap {display:flex;flex-direction:column;gap:6px;min-width:0}
#appShell#appShell.ui-workspace button.workflow-picker-card.qbo-card {flex-direction:row;align-items:flex-start;gap:12px;padding:14px 16px;min-height:0;height:100%;text-align:left;touch-action:manipulation}
#appShell#appShell.ui-workspace button.workflow-picker-card.qbo-card[aria-checked="true"] {border-color:var(--ui-blue);background:var(--ui-grey-surface);box-shadow:0 0 0 1px var(--ui-blue),var(--workspace-card-shadow)}
#appShell#appShell.ui-workspace[data-ui-theme="dark"] button.workflow-picker-card.qbo-card[aria-checked="true"] {background:linear-gradient(var(--ui-blue-soft),var(--ui-grey-surface))}
#appShell.ui-workspace .qbo-card[aria-checked="true"] {cursor:default}
#appShell.ui-workspace .qbo-card[aria-checked="true"] .workflow-picker-radio {background:var(--workspace-primary-fill);border-color:var(--workspace-primary-fill);color:var(--workspace-primary-ink)}
#appShell.ui-workspace .qbo-card .workflow-picker-radio {align-self:flex-start;flex:none}
#appShell.ui-workspace .qbo-card:focus-visible {outline:2px solid var(--ui-blue);outline-offset:2px}
#appShell.ui-workspace button.qbo-card:disabled {opacity:.62;cursor:not-allowed}
#appShell.ui-workspace .qbo-card svg {flex-shrink:0;pointer-events:none}
#appShell.ui-workspace .qbo-card-icon {flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--ui-blue-soft);color:var(--ui-blue)}
#appShell.ui-workspace .qbo-card-icon svg {width:20px;height:20px}
#appShell.ui-workspace .qbo-card-copy {display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
#appShell.ui-workspace .qbo-card-copy b {font-size:var(--type-body);font-weight:600;letter-spacing:-.2px;color:var(--ui-ink)}
#appShell.ui-workspace .qbo-card-desc {font-size:var(--type-caption);line-height:1.35;color:var(--ui-ink-secondary)}
#appShell.ui-workspace .qbo-card-line {display:flex;align-items:center;gap:7px;margin-top:4px;font-size:var(--type-caption);line-height:1.4;color:var(--ui-ink-secondary)}
#appShell.ui-workspace .qbo-card-line i {flex:none;width:7px;height:7px;border-radius:50%;background:var(--ui-line-strong)}
#appShell.ui-workspace .qbo-card-line.is-ok i {background:var(--ui-green)}
#appShell.ui-workspace .qbo-card-line.is-busy {color:var(--ui-blue)}
#appShell.ui-workspace .qbo-card-line.is-busy i {background:var(--ui-blue);animation:qbo-card-pulse 1s infinite alternate}
@keyframes qbo-card-pulse {to{opacity:.3}}
@media(prefers-reduced-motion:reduce){#appShell.ui-workspace .qbo-card-line.is-busy i {animation:none}}
/* Not in the plan: greyed card, the reason and Contact support on one line under it. */
#appShell.ui-workspace .qbo-card-wrap.is-locked button.qbo-card {background:var(--ui-surface-muted);box-shadow:none}
#appShell.ui-workspace .qbo-card-wrap.is-locked .workflow-picker-radio {display:none}
#appShell.ui-workspace .qbo-card-locked {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:var(--type-caption);color:var(--ui-ink-secondary)}
#appShell#appShell.ui-workspace .qbo-card-locked .btn-outline {min-height:30px;padding:4px 10px;font-size:var(--type-caption)}
#appShell.ui-workspace .qbo-row {display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-width:0}
#appShell#appShell.ui-workspace .qbo-page .qbo-tabs {display:inline-flex;margin:0}
#appShell.ui-workspace .qbo-tab-note {flex:1;min-width:0;margin:0;font-size:var(--type-caption);color:var(--ui-ink-secondary)}
#appShell.ui-workspace .qbo-why {margin:0;font-size:var(--type-caption);color:color-mix(in srgb,var(--ui-amber) 85%,#000)}
#appShell.ui-workspace[data-ui-theme="dark"] .qbo-why {color:var(--ui-amber)}
#appShell.ui-workspace .qbo-tabs[hidden] + .qbo-tab-note[hidden] + .qbo-why:not([hidden]) {margin-left:auto}
#appShell.ui-workspace .qbo-start-over {min-height:36px;padding:7px 14px;border-radius:8px;font-size:var(--type-body);margin-left:auto}
#appShell.ui-workspace .qbo-row.qbo-row-why .qbo-start-over {margin-left:0}
#appShell.ui-workspace .qbo-row.qbo-row-empty {display:none}
/* One Connect state for the whole page. */
#appShell.ui-workspace .qbo-connect {display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:28px 28px 26px;margin:4px 0 0}
#appShell.ui-workspace .qbo-connect h2 {margin:0;font-size:var(--type-section);letter-spacing:-.3px}
#appShell.ui-workspace .qbo-connect p {margin:0;max-width:640px}
#appShell.ui-workspace .qbo-connect-more {display:flex;gap:10px;flex-wrap:wrap}
#appShell.ui-workspace .qbo-connect-more.qbo-row-empty {display:none}
#appShell.ui-workspace .qbo-connect ul {margin:4px 0 6px;padding-left:18px;color:var(--ui-ink-secondary);font-size:var(--type-caption);line-height:1.6}
/* Not connected: from the cards down only the Connect state shows. The pages' own controls stay in place, just hidden. */
#appShell.ui-workspace .pane-transition[data-qbo-off] .qbo-off-hide,
#appShell.ui-workspace .pane-transition[data-qbo-off] > .card:not(.qbo-page-path),
#appShell.ui-workspace .pane-transition[data-qbo-off] .qbo-page-path > .tr-page-head > :is(.tr-page-head-sources,.tr-page-head-primary) {display:none!important}
/* The one status pill reads the same on every card (Accounts and Transactions had their own pill styles). */
#appShell.ui-workspace #qboPagePill {white-space:nowrap;border-radius:6px;box-shadow:none;border:1px solid transparent;background:var(--ui-surface-muted);color:var(--ui-ink-secondary);font-weight:550;font-size:var(--type-caption)}
#appShell.ui-workspace #qboPagePill.is-connected {background:var(--ui-green-soft);color:var(--ui-green)}
#appShell.ui-workspace #qboPagePill.is-disconnected {background:var(--ui-amber-soft);color:var(--ui-amber)}
@media(max-width:1100px){#appShell.ui-workspace .qbo-cards {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  #appShell.ui-workspace .qbo-cards {grid-template-columns:1fr;gap:10px}
  #appShell.ui-workspace .qbo-row {gap:10px}
  #appShell.ui-workspace .qbo-tab-note {flex-basis:100%;order:2}
  #appShell.ui-workspace .qbo-connect {padding:20px}
}
@media(pointer:coarse){#appShell.ui-workspace :is(.qbo-start-over,.qbo-card-locked .btn-outline) {min-height:44px}}
