/* Option 11 (owner-approved, Nov 11): every workspace page is one flat surface.
   The page area is --ui-page-flat to its edges (white in light, the page colour in dark) with no grey gutter,
   and a page's main sections are separated by hairlines and spacing instead of floating cards.
   The thin header bar itself lives with the one page header in workspace-header.css.
   Dialogs, drawers, menus and pop-ups keep their own surfaces. Tracking pages are styled in pages/tracking.css. */

/* The page. The header bar's hairline reaches the edges using the same padding values. */
#appShell.ui-workspace.ui-workspace .main-shell{background:var(--ui-page-flat)}
#appShell.ui-workspace.ui-workspace .workspace-content{--page-pad-top:30px;--page-pad-x:32px;padding:var(--page-pad-top) var(--page-pad-x) 72px}
@media(max-width:760px){
  #appShell.ui-workspace.ui-workspace .workspace-content{--page-pad-top:24px;--page-pad-x:16px}
}
#appShell.ui-workspace.ui-workspace .app-support-footer{background:var(--ui-page-flat);border-top:1px solid var(--ui-line)}

/* "More ▾" in a header: the shared menu, sized for a handful of actions. */
#appShell.ui-workspace .workspace-more{position:relative;display:inline-flex}
#appShell.ui-workspace .workspace-more:not(:has(.workspace-more-item:not([hidden],.u-hidden))){display:none}
#appShell.ui-workspace .workspace-more-menu{width:auto;min-width:200px;max-width:min(320px,calc(100vw - 32px))}
#appShell.ui-workspace .workspace-more-menu .workspace-more-item{justify-content:flex-start;width:100%;height:auto;min-height:36px;margin:0;padding:8px 10px;border:0;border-radius:8px;background:none;box-shadow:none;color:var(--ui-ink);font-size:var(--type-body);font-weight:500;text-align:left;white-space:nowrap}
#appShell.ui-workspace .workspace-more-menu .workspace-more-item:is(:hover,:focus-visible):not(:disabled){background:color-mix(in srgb,var(--ui-blue) 10%,transparent)}

/* One flat section: no card around it. Keep every item in this list at one id and two classes at most,
   because :is() takes the weight of its heaviest item and the follow-up rules below must still win. */
#appShell.ui-workspace.ui-workspace .workspace-content :is(
  #paneQboAccounts > .card,
  #paneQboAccounts .integration-flow-progress,
  #paneImportHub .integration-flow-progress,
  #paneMarketplaceSync .sync-shared-accounts,
  #panePlaid .sync-shared-accounts,
  #paneConnections.connections-studio .cs-directory,
  #paneSearch.search-workspace .workspace-card-search,
  #paneSearch.search-workspace .search-panel,
  #paneSecurity.security-workspace .sec-panel,
  #paneMpDownloads .saved-panel
){background:none;border:0;border-radius:0;box-shadow:none;padding-inline:0}
#appShell.ui-workspace.ui-workspace .workspace-content #paneSearch.search-workspace .workspace-card-search{padding:0}
#appShell.ui-workspace.ui-workspace .workspace-content #paneQboTransactions .accounting-design #qdSearch,
#appShell.ui-workspace.ui-workspace .workspace-content #paneQboTransactions .accounting-design #qdReview{background:none;border:0;border-radius:0;box-shadow:none;padding-inline:0}
#appShell.ui-workspace.ui-workspace .workspace-content #paneQboAccounts > .card{padding-block:22px;margin:0;border-top:1px solid var(--ui-line)}
#appShell.ui-workspace.ui-workspace .workspace-content #paneSecurity.security-workspace .sec-main > .sec-panel{padding-block:8px 24px;margin:0;border-top:1px solid var(--ui-line)}
#appShell.ui-workspace.ui-workspace .workspace-content #paneSecurity.security-workspace .sec-main > .sec-panel:first-child{border-top:0;padding-top:4px}
#appShell.ui-workspace.ui-workspace .workspace-content #paneSecurity.security-workspace .sec-side{padding-left:24px;border-left:1px solid var(--ui-line)}
#appShell.ui-workspace.ui-workspace .workspace-content #paneSecurity.security-workspace .sec-side > .sec-panel{padding-top:4px}
#appShell.ui-workspace.ui-workspace .workspace-content #paneSearch.search-workspace .search-context{padding-left:24px;border-left:1px solid var(--ui-line)}
#appShell.ui-workspace.ui-workspace .workspace-content #paneSearch.search-workspace .search-context > .search-panel + .search-panel{border-top:1px solid var(--ui-line)}
@media(max-width:900px){
  #appShell.ui-workspace.ui-workspace .workspace-content #paneSecurity.security-workspace .sec-side,
  #appShell.ui-workspace.ui-workspace .workspace-content #paneSearch.search-workspace .search-context{padding-left:0;border-left:0;border-top:1px solid var(--ui-line)}
}

/* Sync's account lists keep their header band and rows; only the card around them goes. */
#appShell.ui-workspace.ui-workspace .workspace-content :is(#paneMarketplaceSync,#panePlaid) .sync-shared-accounts{overflow:visible}

/* QuickBooks Accounts: the three step names and the three figures read as one flat strip. */
#appShell.ui-workspace.ui-workspace .workspace-content :is(#paneQboAccounts,#paneImportHub) .integration-flow-summaries > div{background:none;border:0;border-left:1px solid var(--ui-line);border-radius:0;box-shadow:none}
#appShell.ui-workspace.ui-workspace .workspace-content :is(#paneQboAccounts,#paneImportHub) .integration-flow-summaries > div:first-child{border-left:0;padding-left:0}
#appShell.ui-workspace.ui-workspace .workspace-content :is(#paneQboAccounts,#paneImportHub) .integration-flow-summaries{border-block:1px solid var(--ui-line);gap:0}

/* Things people pick or act on inside a page keep a light outline, without a shadow or a raised fill:
   recon source pickers, How To guides and templates. The workflow chooser cards keep their own
   owner-approved look (white with a faint shadow in light) and only lose the floating position. */
#appShell.ui-workspace.ui-workspace .workspace-content :is(.recon-source-card,.utility-guide-card,.template-card){background:none;box-shadow:none}

/* Inbox: its list column and reading pane sit on the flat page; the list heading is the Inbox's thin bar. */
#appShell.ui-workspace .sc-inbox-page :is(.sc-studio-layout,.sc-panel){background:var(--ui-page-flat)}
#appShell.ui-workspace .sc-inbox-page .sc-studio-layout{border:0;border-radius:0;box-shadow:none}
#appShell.ui-workspace .sc-inbox-page .sc-panel{border-right:1px solid var(--ui-line)}
#appShell.ui-workspace .sc-inbox-popup.sc-inbox-page .sc-panel-heading{min-height:52px;padding:9px 16px;border-bottom:1px solid var(--ui-line)}
#appShell.ui-workspace .sc-inbox-page .sc-panel-heading .sc-page-title{margin:0;font-size:var(--type-emphasis);line-height:1.3;font-weight:700;letter-spacing:0;color:var(--ui-ink)}
@media(pointer:fine){#appShell.ui-workspace .sc-inbox-page .sc-panel-heading{--workspace-control-height:32px;--workspace-control-pad-block:calc((var(--workspace-control-height) - 1.5em - 2px) / 2)}}

/* Dashboard: its thin bar is the shared one, "Saved activity" with the period on the right. The greeting (logo, date, greeting,
   connections and last sync) sits on the page under it as before Option 11, with no card. Its tiles and panels are flat sections. */
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 > .tr-page-head{margin-bottom:0}
@media(pointer:fine){#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 > .tr-page-head :is(select,.btn){height:32px;min-height:32px;padding-block:0}}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .period{display:flex;align-items:center;gap:8px;white-space:nowrap}
@media(pointer:fine){#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .period{--workspace-control-height:32px;--workspace-control-pad-block:calc((var(--workspace-control-height) - 1.5em - 2px) / 2)}}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .card{background:none;border:0;border-radius:0;box-shadow:none}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .card:hover{box-shadow:none}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .money{gap:0;border-block:1px solid var(--ui-line)}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .money > .card{border-left:1px solid var(--ui-line)}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .money > .card:first-child{border-left:0}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .top{margin-top:8px}
#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .top > .conn{border-left:1px solid var(--ui-line)}
@container (max-width:1100px){#appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .top > .conn{border-left:0;border-top:1px solid var(--ui-line)}}
@container (max-width:1000px){
  #appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .money > .card:nth-child(odd){border-left:0}
  #appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .money > .card:nth-child(n+3){border-top:1px solid var(--ui-line)}
}
@container (max-width:560px){
  #appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .money > .card{border-left:0}
  #appShell.ui-workspace.ui-workspace #paneDashboard.dhv4 .money > .card:nth-child(n+2){border-top:1px solid var(--ui-line)}
}

/* Breadcrumb labels made by older page code read as the section, not an all-caps eyebrow. */
#appShell.ui-workspace .accounting-design .tr-accounting-eyebrow{font-size:var(--type-emphasis);letter-spacing:0;font-weight:500}

/* A tool's safety note (what changes and when) sits under the step line, not in the header. */
#appShell.ui-workspace .accounting-design .tr-accounting-safety{margin:2px 0 14px;font-size:var(--type-caption);color:var(--ui-ink-secondary)}

/* Workflow choosers start under their thin header bar instead of floating in the middle of the page.
   The cards and the footer row fill the full content width, so their edges line up with the bar's. */
#appShell.ui-workspace.ui-workspace .workspace-content[data-workflow-picker] > .workspace-workflow-picker{max-width:var(--workspace-page-max);margin:0 auto}
#appShell.ui-workspace.ui-workspace .workspace-workflow-picker > .workflow-picker-bar + .workflow-picker-title + .workflow-picker-grid{margin-top:4px}
