html body.ui-refresh.brand-workbench {
  --heading: #063b66;
  --action: #0b5fa5;
  --focus: #0b5fa5;
  --surface: #fff;
  --surface-subtle: #f2f4f8;
  --text: #2c3240;
  --text-muted: #536276;
  --border: #d6dfe9;
  --field-border: #8594a7;
  --selection: #e8f4fd;
  --list-control-height: 38px;
  --success-ink: #11624d;
  --success-surface: #e8f5ef;
  --brand: var(--action);
  --brand-2: var(--action);
  --brand-tint: var(--selection);
  --ink: var(--text);
  --ink-2: var(--text-muted);
  --line: var(--border);
  --panel: var(--surface);
  --bg: var(--surface-subtle);
  background: var(--surface-subtle);
}

html body.ui-refresh.brand-workbench .topbar .brand,
html body.ui-refresh.brand-workbench .workspace h1,
html body.ui-refresh.brand-workbench .workspace .heading-row h2,
html body.ui-refresh.brand-workbench .m-projects-head h1 { color: var(--heading); }
body.brand-workbench .topbar .brand-symbol { object-fit: contain; background: transparent; }
html body.ui-refresh.brand-workbench .nav a.active,
body.brand-workbench .nav a[aria-current],
body.brand-workbench .m-tab[aria-current],
body.brand-workbench .supplier-statuses a[aria-current],
body.brand-workbench .workspace-view-tabs a[aria-current] {
  color: var(--action);
  background: var(--selection);
}
html body.ui-refresh.brand-workbench .workspace a.primary-action,
body.brand-workbench .supplier-filters button[type="submit"],
body.brand-workbench .partner-editor button[type="submit"] {
  background: var(--action);
  border-color: var(--action);
  color: var(--surface);
}
html body.ui-refresh.brand-workbench .workspace a.primary-action:hover,
body.brand-workbench .supplier-filters button[type="submit"]:hover,
body.brand-workbench .partner-editor button[type="submit"]:hover { background: var(--heading); }
body.brand-workbench .supplier-filters :is(input, select),
body.brand-workbench .partner-editor :is(input, select, textarea):not([type="checkbox"], [type="radio"]) {
  border-color: var(--field-border);
}
body.brand-workbench .supplier-partners .business-table th { background: var(--surface-subtle); color: var(--heading); }
body.brand-workbench .workspace .success[role="status"] { color: var(--success-ink); background: var(--success-surface); }
body.brand-workbench :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.brand-workbench-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
body.brand-workbench .brand-workbench-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 650;
  text-decoration: none;
}
body.brand-workbench .brand-workbench-links a:hover { color: var(--action); background: var(--selection); }
.brand-workbench-links svg { width: 17px; height: 17px; flex: none; color: var(--action); }
.brand-mobile-symbol { vertical-align: middle; margin-inline-end: 6px; }
.brand-directory-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.brand-workbench .purchase-card:target { scroll-margin-block-start: 20px; border-color: var(--action); }

html body.ui-refresh.brand-workbench .workspace .brand-list-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  max-width: none;
  margin: 16px 0;
}
body.brand-workbench .brand-list-filter > div { flex: 0 1 240px; min-width: 0; }
body.brand-workbench .brand-list-filter label { display: block; margin-block-end: 4px; color: var(--heading); font-weight: 600; }
html body.ui-refresh.brand-workbench .workspace .brand-list-filter :is(input, select) {
  width: 100%;
  max-width: none;
  min-height: var(--list-control-height);
  border-color: var(--field-border);
}
body.brand-workbench .brand-settings-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px 16px; }
body.brand-workbench .brand-settings-nav a,
body.brand-workbench .brand-list-filter > a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  min-height: var(--list-control-height);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--action);
  text-decoration: none;
}
body.brand-workbench .brand-settings-nav a[aria-current] {
  border-color: var(--action);
  background: var(--selection);
  font-weight: 700;
}
html body.ui-refresh.brand-workbench .workspace :is(.brand-list-filter, .brand-data-page .project-form) button[type="submit"],
html body.ui-refresh.brand-workbench .workspace .brand-list-filter button {
  min-height: var(--list-control-height);
  border-color: var(--action);
  background: var(--action);
  color: var(--surface);
}
html body.ui-refresh.brand-workbench :is(.brand-data-page, [data-register="invoice-register"]) :is(.business-table, .supplier-table) thead th {
  background: var(--surface-subtle);
  color: var(--heading);
}
body.brand-workbench .brand-data-page :is(.project-form, .purchase-card),
body.brand-workbench .brand-data-page.receipt-page .business-record { border-color: var(--border); }
body.brand-workbench .brand-data-page :is(.purchase-card-head h2, .supplier-name a) { color: var(--heading); }
body.brand-workbench .brand-data-page .purchase-facts { background: var(--surface-subtle); border-color: var(--border); }
body.brand-workbench .brand-data-page .purchase-card-head .ui-chip:not(.danger) { background: var(--selection); color: var(--heading); }
body.brand-workbench [data-page="customer-directory"] .directory-summary { margin-block: 12px; padding-block: 8px; }
body.brand-workbench .supplier-compact-table .supplier-record-link { color: var(--action); font-weight: 700; }
body.brand-workbench .supplier-compact-table .supplier-badges { margin: 0; }
body.brand-workbench .supplier-profile-details dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px 20px; }
body.brand-workbench .supplier-profile-details .supplier-profile-note { grid-column: 1 / -1; }
body.brand-workbench .supplier-profile-details :is(dd, li) { overflow-wrap: anywhere; }
body.brand-workbench .supplier-profile-details dt { color: var(--text-muted); font-size: 13px; }
body.brand-workbench .supplier-profile-details dd { margin: 4px 0 0; }
body.brand-workbench .supplier-profile-links { display: grid; gap: 6px; padding: 0; list-style: none; }
body.brand-workbench .supplier-finance-links { margin: 8px 0 18px; }
body.brand-workbench .supplier-profile .business-section h3 { margin: 0; font-size: 18px; }
body.brand-workbench .partner-editor [data-contact-status]:empty { margin: 0; }
body.brand-workbench .supplier-profile-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

@media (min-width: 761px) {
  html body.ui-refresh.brand-workbench .nav > a { min-height: 36px; }
  html body.ui-refresh.brand-workbench .supplier-partners .business-table td { padding-block: 9px; }
  body.brand-workbench .supplier-partners .supplier-filters .supplier-search { flex: 0 1 360px; }
  html body.ui-refresh.brand-workbench .supplier-partners .supplier-compact-table :is(th, td) { padding-block: 8px; }
  body.brand-workbench .supplier-compact-table .name-cell { width: 34%; }
  html body.ui-refresh.brand-workbench :is(.brand-data-page, [data-register="invoice-register"]) :is(.business-table, .supplier-table) td { padding-block: 9px; }
  html body.ui-refresh.brand-workbench .workspace.brand-data-page .business-table :is(th, td).action-cell { width: auto; }
  html body.ui-refresh.brand-workbench .workspace.brand-data-page .business-table .action-cell > a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-inline-start: 8px;
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  html:has(body.brand-workbench) { scroll-padding-block-end: 88px; }
  html body.ui-refresh.brand-workbench { --list-control-height: 44px; }
  .brand-workbench-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.brand-workbench .m-tabbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.brand-workbench .brand-workbench-links a,
  body.brand-workbench .brand-directory-actions a,
  body.brand-workbench .supplier-compact-table .supplier-record-link,
  body.brand-workbench .supplier-profile-links a,
  body.brand-workbench .supplier-statuses a,
  body.brand-workbench .supplier-partners :is(.action-cell a, .action-cell summary, .table-relations summary),
  body.brand-workbench .purchase-page .project-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  html body.ui-refresh.brand-workbench .workspace .brand-list-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.brand-workbench .brand-list-filter > div { grid-column: 1 / -1; }
  body.brand-workbench :is(.brand-data-page, [data-register="invoice-register"]) :is(.action-cell a, .action-cell summary, .action-cell button, .supplier-action a, .supplier-name a, .project-actions > a, .member-links a) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  body.brand-workbench .brand-data-page .supplier-name a { width: fit-content; }
}
@media screen and (min-width: 761px) {
  html body.brand-workbench.workbench-shell .nav .ui-icon {
    width: 16px;
    height: 16px;
  }
  body.brand-workbench .workspace.business-page .business-table thead th {
    background: var(--surface-subtle);
    color: var(--heading);
  }
  body.brand-workbench .workspace.business-page .project-form
    :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea) {
    border-color: var(--field-border);
  }
  body.brand-workbench .workspace.business-page .project-form button:not(:disabled, .secondary-action),
  body.brand-workbench .workspace.business-page .photo-filters button:not(:disabled) {
    background: var(--action);
    border-color: var(--action);
    color: var(--surface);
  }
  body.brand-workbench.workbench-shell .business-page .photo-filters {
    flex-flow: row wrap;
    max-width: none;
    gap: 8px 12px;
  }
  body.brand-workbench.workbench-shell .business-page .photo-filters > div {
    flex: 0 1 150px;
    min-width: 0;
  }
  body.brand-workbench.workbench-shell .business-page .photo-filters label {
    display: block;
    min-width: 0;
    font-size: 13px;
    color: var(--heading);
    margin-block-end: 4px;
  }
  body.brand-workbench .workspace.business-page .photo-filters :is(input, select) {
    width: 100%;
    min-height: var(--list-control-height);
    border-color: var(--field-border);
  }
  body.brand-workbench .workspace.business-page .photo-filters a {
    align-self: center;
  }
}

@media screen and (min-width: 761px) {
  html body.ui-refresh.brand-workbench .project-overview .project-heading {
    align-items: center;
  }

  html body.ui-refresh.brand-workbench .project-overview .project-breadcrumb a {
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .brand-workbench .workspace .project-navigation-bar .daily-management {
    position: relative;
    padding: 0;
  }

  .brand-workbench .project-navigation-bar .daily-management-links {
    position: absolute;
    z-index: 15;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgb(6 59 102 / 12%);
  }

  html body.ui-refresh.brand-workbench .workspace .project-navigation-bar .daily-management-links a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--heading);
    font-size: 13px;
    text-decoration: none;
  }

  .brand-workbench .workspace .project-navigation-bar .daily-management-links a:hover {
    background: var(--selection);
  }

  .brand-workbench .project-navigation-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-block: 0 14px;
  }

  html body.ui-refresh.brand-workbench .workspace .project-navigation-bar .daily-business-nav {
    margin: 0;
  }

  .brand-workbench .project-navigation-bar .daily-management { margin: 0 0 0 auto; }
  html body.ui-refresh.brand-workbench .workspace .project-navigation-bar details.daily-management > summary {
    display: flex;
    min-height: 44px;
    padding: 0 9px;
    color: var(--heading);
    font-size: 13px;
    white-space: nowrap;
  }

  html body.ui-refresh.brand-workbench .workspace .project-navigation-bar .daily-management > summary::before { content: none; }

  .brand-workbench .project-navigation-bar .daily-management > summary:hover {
    color: var(--action);
    background: var(--selection);
  }

  .brand-workbench .project-navigation-bar .daily-management-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 284px;
  }

  .brand-workbench .workspace .contract-heading {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-workbench .workspace .contract-heading h2 { margin-inline-end: auto; }
  .brand-workbench .workspace .contract-heading .project-list-actions { margin: 0; }

  html body.ui-refresh .workspace.overview-dashboard .project-heading {
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 6px 0 22px;
    border: 0;
    background: transparent;
  }

  html body.ui-refresh .workspace.overview-dashboard .project-heading h1 {
    margin: 0 0 8px;
    color: var(--heading);
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.24;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }

  .overview-dashboard .project-heading .module-state {
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--heading);
    background: var(--selection);
    font-size: 12px;
  }

  html body.ui-refresh .overview-dashboard .overview-report-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--heading);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
  }

  html body.ui-refresh .overview-dashboard .overview-report-link:hover {
    border-color: var(--action);
    background: var(--selection);
  }

  .overview-dashboard .overview-report-link svg { width: 15px; height: 15px; }

  html body.ui-refresh .workspace:is(.overview-dashboard, .project-business-index) .project-headline.project-core-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 1px;
    margin: 0 0 13px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--border);
  }

  html body.ui-refresh .workspace:is(.overview-dashboard, .project-business-index)
    .project-core-summary:has(> [data-metric="sales"]):has(> :nth-child(5):last-child) {
    grid-template-columns: var(--overview-metric-columns, repeat(2, minmax(0, 1fr)));
  }

  :is(.overview-dashboard, .project-business-index) .project-core-summary:has(> :nth-child(5):last-child) > [data-metric="sales"] {
    grid-column: span var(--overview-sales-span, 2);
  }

  html body.ui-refresh .workspace:is(.overview-dashboard, .project-business-index) .project-headline.project-core-summary[data-project-headline] > div {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 103px;
    padding: 14px 18px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
  }

  :is(.overview-dashboard, .project-business-index) .project-core-summary dt {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
  }

  html body.ui-refresh :is(.overview-dashboard, .project-business-index) .project-core-summary dd {
    margin: 0;
    color: var(--heading);
    font-size: clamp(19px, 1.62vw, 25px);
    font-weight: 720;
    letter-spacing: -.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  :is(.overview-dashboard, .project-business-index) .project-core-summary dd small {
    margin-inline-start: 2px;
    font-size: 12px;
    font-weight: 500;
  }

  html body.ui-refresh .workspace:is(.overview-dashboard, .project-business-index) .project-headline.project-core-summary[data-project-headline] > [data-metric="sales"] {
    background: var(--heading);
  }

  html body.ui-refresh :is(.overview-dashboard, .project-business-index) .project-core-summary [data-metric="sales"] :is(dt, dd, small) {
    color: var(--surface);
  }

  html body.ui-refresh :is(.overview-dashboard, .project-business-index) .project-core-summary [data-metric="sales"] dd {
    font-size: clamp(23px, 2.13vw, 32px);
  }

  .overview-dashboard .project-navigation-bar { margin-bottom: 20px; }

  .overview-workspace {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
  }

  html body.ui-refresh .workspace.overview-dashboard .overview-panel {
    min-width: 0;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }

  html body.ui-refresh .overview-dashboard .overview-panel > h2 {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 17px;
    font-weight: 700;
  }

  html body.ui-refresh .workspace.overview-dashboard .overview-profile .project-header-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 16px 20px;
    margin: 0;
    padding: 3px 0 16px;
    border: 0;
    background: transparent;
  }

  html body.ui-refresh .overview-dashboard .overview-profile :is(.project-header-meta, .project-profile-team) dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
  }

  html body.ui-refresh .overview-dashboard .overview-profile :is(.project-header-meta, .project-profile-team) dd {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
  }

  .overview-quick-actions {
    display: grid;
    gap: 3px;
    margin-inline: -6px;
  }

  html body.ui-refresh .overview-dashboard .overview-quick-actions > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 5px 9px;
    border-radius: 6px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
  }

  .overview-quick-actions svg {
    box-sizing: content-box;
    flex: none;
    width: 16px;
    height: 16px;
    padding: 7px;
    border-radius: 6px;
    background: var(--selection);
    color: var(--action);
  }

  html body.ui-refresh .overview-dashboard .overview-quick-actions > a:hover { background: var(--surface-subtle); }

  html body.ui-refresh .overview-dashboard :is(.overview-team, .overview-financial-details > details) {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html body.ui-refresh .overview-dashboard :is(.overview-team, .overview-financial-details > details) > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 4px 8px 4px 0;
    border-top: 1px solid var(--border);
    color: var(--heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .overview-dashboard :is(.overview-team, .overview-financial-details > details) > summary::-webkit-details-marker {
    display: none;
  }

  html body.ui-refresh .overview-dashboard :is(.overview-quick-actions > a, .overview-team > summary, .overview-financial-details > details > summary)::after {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border-inline-end: 1.5px solid var(--action);
    border-block-end: 1.5px solid var(--action);
    transform: rotate(-45deg);
  }

  .overview-quick-actions > a::after { margin-inline-start: auto; }

  html body.ui-refresh .overview-dashboard :is(.overview-team, .overview-financial-details > details)[open] > summary::after {
    transform: rotate(45deg);
  }

  html body.ui-refresh .overview-dashboard :is(.overview-team, .overview-financial-details > details) > summary:hover {
    color: var(--action);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .overview-dashboard .overview-team .project-profile-team { padding-top: 10px; }
}

@media screen and (min-width: 1000px) {
  :is(.overview-dashboard, .project-business-index) { --overview-metric-columns: repeat(3, minmax(0, 1fr)); }
  .overview-workspace:has(.overview-quick-panel) {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  }
}

@media screen and (min-width: 1250px) {
  :is(.overview-dashboard, .project-business-index) {
    --overview-metric-columns: minmax(0, 1.42fr) repeat(4, minmax(0, 1fr));
    --overview-sales-span: 1;
  }
}


@media screen and (max-width: 760px) {
  .brand-workbench .project-business-index > .project-core-summary { display: none; }
}

@media screen and (min-width: 761px) {
  html body.ui-refresh.brand-workbench.workbench-shell .workspace:is(.project-business-index, .workspace-wide),
  html body.ui-refresh.brand-workbench .workspace.business-page.refresh-flow.invoice-history-page.workspace-wide {
    max-width: none;
  }

  html body.ui-refresh.brand-workbench .workspace-wide .workspace-wide-panel {
    max-width: none;
  }

  html body.ui-refresh.brand-workbench .workspace:is(.overview-dashboard, .project-business-index, .workspace-wide)
    > .project-navigation-bar .daily-business-nav:not([hidden]) {
    flex: 1 1 auto;
    width: auto;
  }

  .brand-workbench .workspace:is(.overview-dashboard, .project-business-index, .workspace-wide)
    > .project-navigation-bar .daily-business-nav > a {
    flex: 1 0 auto;
  }

  .brand-workbench .workspace:is(.overview-dashboard, .project-business-index, .workspace-wide)
    > .project-navigation-bar .daily-management {
    flex: 0 0 auto;
  }

  html body.ui-refresh.brand-workbench .workspace:is(.overview-dashboard, .project-business-index, .workspace-wide)
    > .project-navigation-bar .daily-management > summary {
    min-height: 50px;
    padding-inline: 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
  }

  html body.ui-refresh.brand-workbench .workspace:is(.overview-dashboard, .project-business-index, .workspace-wide)
    > .project-navigation-bar .daily-management > summary:hover {
    background: var(--selection);
  }
}

/* Desktop controls share a visual hierarchy across workspace pages. */
@media screen and (min-width: 761px) {
  html body.ui-refresh.brand-workbench .workspace
    :is(.project-navigation-bar .daily-business-nav, .brand-settings-nav, .workspace-view-tabs, [data-brand-tasks] .task-view-tabs):not([hidden]) {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: start;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    box-sizing: border-box;
  }

  html body.ui-refresh.brand-workbench
    :is(.workspace .project-navigation-bar .daily-business-nav, .workspace .brand-settings-nav, .workspace .workspace-view-tabs, .task-workspace[data-brand-tasks] .task-view-tabs) > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 52px;
    min-height: 40px;
    padding: 6px 13px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.4;
    text-decoration: none;
  }

  html body.ui-refresh.brand-workbench
    :is(.workspace .project-navigation-bar .daily-business-nav, .workspace .brand-settings-nav, .workspace .workspace-view-tabs, .task-workspace[data-brand-tasks] .task-view-tabs) > a:hover {
    background: var(--surface-subtle);
    color: var(--heading);
  }

  html body.ui-refresh.brand-workbench
    :is(.workspace .project-navigation-bar .daily-business-nav, .workspace .brand-settings-nav, .workspace .workspace-view-tabs, .task-workspace[data-brand-tasks] .task-view-tabs) > a[aria-current="page"] {
    background: var(--action);
    color: var(--surface);
    font-weight: 700;
  }

  html body.ui-refresh.brand-workbench .task-workspace[data-brand-tasks] .task-view-tabs > a > span {
    min-width: 19px;
    padding-inline: 4px;
    border-radius: 5px;
    background: var(--surface-subtle);
    color: var(--heading);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }

  html body.ui-refresh.brand-workbench .task-workspace[data-brand-tasks] .task-view-tabs > a[aria-current="page"] > span {
    background: rgb(255 255 255 / 20%);
    color: var(--surface);
  }

  html body.ui-refresh.brand-workbench .workspace .brand-workbench-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  html body.ui-refresh.brand-workbench .workspace .brand-workbench-links > a {
    min-height: 44px;
    gap: 8px;
    padding: 6px 12px 6px 7px;
    font-size: 13px;
    line-height: 1.45;
  }

  html body.ui-refresh.brand-workbench .workspace .brand-workbench-links > a > .ui-icon {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 6px;
    background: var(--selection);
  }

  html body.ui-refresh.brand-workbench .workspace .brand-workbench-links > a:hover {
    border-color: var(--action);
    background: var(--surface);
  }

  body.brand-workbench .project-directory .ui-icon {
    width: 16px;
    height: 16px;
    flex: none;
  }

  body.brand-workbench .project-directory .directory-heading .primary-action {
    gap: 7px;
  }

  html body.ui-refresh.brand-workbench .project-directory .directory-heading {
    align-items: center;
    gap: 8px 16px;
    margin: 0 0 16px;
  }

  body.brand-workbench .project-directory .directory-heading h1 {
    flex: none;
    margin: 0 auto 0 0;
  }

  html body.ui-refresh.brand-workbench .project-directory .directory-heading .brand-workbench-links {
    justify-content: flex-end;
    margin: 0;
  }

  body.brand-workbench .project-directory .directory-toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  body.brand-workbench .project-directory .directory-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 16px;
    padding: 8px 12px;
    border-block-end: 1px solid var(--border);
  }

  html body.ui-refresh.brand-workbench .project-directory .directory-status-row .directory-status {
    margin: 0;
    padding: 0;
  }

  body.brand-workbench .project-directory .directory-status-row .directory-stages {
    max-width: min(100%, 29rem);
    margin-inline-start: auto;
  }

  html body.ui-refresh.brand-workbench .workspace.project-directory .directory-toolbar .directory-filters {
    --advanced-control-width: 10.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--advanced-control-width);
    align-items: start;
    gap: 0 10px;
    max-width: 56rem;
    margin: 0;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body.brand-workbench .project-directory .directory-toolbar .directory-quick-filter {
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
    align-items: center;
    gap: 10px;
  }

  body.brand-workbench .project-directory .directory-toolbar .directory-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  html body.ui-refresh.brand-workbench .project-directory .directory-toolbar .directory-search > label {
    flex: none;
    margin: 0;
    color: var(--heading);
    font-weight: 650;
  }

  body.brand-workbench .project-directory .directory-toolbar .directory-search-field {
    flex: 1;
    min-width: 0;
  }

  body.brand-workbench .project-directory .directory-toolbar .directory-filter-actions {
    gap: 4px;
  }

  html body.ui-refresh.brand-workbench .project-directory .directory-toolbar .directory-filter-actions button {
    min-height: 44px;
    padding-inline: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--selection);
    color: var(--heading);
    white-space: nowrap;
  }

  html body.ui-refresh.brand-workbench .project-directory .directory-toolbar .directory-filter-actions button:hover {
    border-color: var(--action);
  }

  /* Keep the native disclosure in the action row and let its fields expand below it. */
  body.brand-workbench .project-directory .directory-toolbar .directory-advanced {
    grid-area: 1 / 2;
    margin: 0;
  }

  body.brand-workbench .project-directory .directory-toolbar .directory-advanced[open] {
    grid-column: 1 / -1;
  }

  body.brand-workbench .project-directory .directory-toolbar .directory-advanced > summary {
    display: flex;
    justify-content: center;
    width: var(--advanced-control-width);
    min-height: 44px;
    margin-inline-start: auto;
    border: 1px solid var(--border);
    color: var(--heading);
  }

  body.brand-workbench .project-directory .directory-toolbar .directory-advanced-fields {
    margin-block-start: 10px;
    padding-block-start: 10px;
    border-block-start: 1px solid var(--border);
  }

  body.brand-workbench .project-directory .directory-results {
    margin-block: 12px 8px;
  }

  body.brand-workbench .project-directory .directory-search-field {
    position: relative;
  }

  body.brand-workbench .project-directory .directory-search-field > .ui-icon {
    position: absolute;
    inset-inline-start: 12px;
    inset-block-start: 50%;
    translate: 0 -50%;
    color: var(--text-muted);
    pointer-events: none;
  }

  html body.ui-refresh.brand-workbench .workspace.project-directory .directory-search-field input {
    width: 100%;
    min-height: 44px;
    padding-inline-start: 36px;
  }

  body.brand-workbench .project-directory .directory-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 7px;
    border-radius: 6px;
    list-style: none;
    cursor: pointer;
  }

  body.brand-workbench .project-directory .directory-toggle::-webkit-details-marker {
    display: none;
  }

  body.brand-workbench .project-directory :is(.directory-advanced, .directory-business details) > summary {
    color: var(--action);
  }

  body.brand-workbench .project-directory .directory-toggle > .ui-icon:last-child {
    width: 14px;
    height: 14px;
  }

  body.brand-workbench .project-directory details[open] > .directory-toggle > .ui-icon:last-child {
    transform: rotate(180deg);
  }

  body.brand-workbench .project-directory .directory-toggle:hover,
  body.brand-workbench .project-directory details[open] > .directory-toggle {
    color: var(--action);
    background: var(--selection);
  }

  body.brand-workbench .project-directory .directory-row-actions > .directory-enter {
    gap: 5px;
    min-height: 38px;
    margin-inline-end: 8px;
    padding-inline: 7px;
    border-radius: 6px;
    color: var(--action);
  }

  body.brand-workbench .project-directory .directory-row-actions > .directory-enter:hover {
    background: var(--selection);
    text-decoration: none;
  }

  body.brand-workbench .project-directory .directory-business details > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
  }

  body.brand-workbench .project-directory .directory-row-actions .danger-link {
    color: var(--danger);
  }

  html body.ui-refresh.brand-workbench .workspace
    :is(.directory-status, .directory-stages > nav, .supplier-statuses, .report-tabs, .task-type-filter, .period-tabs, .period-toolbar > nav, .schedule-toolbar .schedule-shortcuts, .fulfillment-versions, .scene-tabs):not([hidden]) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: start;
    gap: 4px;
    padding-block: 4px;
    border: 0;
  }

  html body.ui-refresh.brand-workbench .workspace
    :is(.directory-status, .directory-stages > nav, .supplier-statuses, .report-tabs, .task-type-filter, .period-tabs, .period-toolbar > nav, .schedule-toolbar .schedule-shortcuts, .fulfillment-versions, .scene-tabs) > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.45;
    text-decoration: none;
  }

  html body.ui-refresh.brand-workbench .workspace
    :is(.directory-status, .directory-stages > nav, .supplier-statuses, .report-tabs, .task-type-filter, .period-tabs, .period-toolbar > nav, .schedule-toolbar .schedule-shortcuts, .fulfillment-versions, .scene-tabs) > a:hover {
    background: var(--surface);
    border-color: var(--border);
    color: var(--heading);
  }

  html body.ui-refresh.brand-workbench .workspace
    :is(.directory-status, .directory-stages > nav, .supplier-statuses, .report-tabs, .task-type-filter, .period-tabs, .period-toolbar > nav, .schedule-toolbar .schedule-shortcuts, .fulfillment-versions, .scene-tabs) > a[aria-current="page"] {
    background: var(--selection);
    border-color: var(--action);
    color: var(--heading);
    font-weight: 700;
  }

  html body.ui-refresh.brand-workbench .workspace :is(.directory-status, .directory-stages > nav, .supplier-statuses, .report-tabs) > a > b {
    padding: 0 4px;
    border-radius: 4px;
    background: var(--surface);
    color: inherit;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }

  html body.ui-refresh.brand-workbench .workspace .project-list-actions > a.primary-action {
    border-color: var(--action);
    background: var(--action);
    color: var(--surface);
  }

  html body.ui-refresh.brand-workbench .workspace .project-list-actions > a.primary-action:hover {
    border-color: var(--heading);
    background: var(--heading);
  }

  /* Plain actions stay directly visible and keep their native links. */
  html body.ui-refresh.brand-workbench .workspace
    :is(.project-actions, .business-inline-actions, .version-footer, .cost-actions, .catalog-toolbar, .purchase-actions, .quick-links, .invoice-actions, .invoice-toolbar, .directory-filter-actions, .brand-list-filter, .supplier-filters, .list-filter) > a:not(.primary-action, .primary-link, .invoice-primary, .secondary-action, .danger-link, [aria-current], [aria-disabled], [hidden]) {
    padding-inline: 9px;
    border-color: transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--action);
  }

  html body.ui-refresh.brand-workbench .workspace
    :is(.project-actions, .business-inline-actions, .version-footer, .cost-actions, .catalog-toolbar, .purchase-actions, .quick-links, .invoice-actions, .invoice-toolbar, .directory-filter-actions, .brand-list-filter, .supplier-filters, .list-filter) > a:not(.primary-action, .primary-link, .invoice-primary, .secondary-action, .danger-link, [aria-current], [aria-disabled], [hidden]):hover {
    background: var(--selection);
    color: var(--heading);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  html body.ui-refresh.brand-workbench .workspace
    :is(.project-actions > a.secondary-action, .project-actions > button.photo-capture-action, .brand-directory-actions > a.secondary-action, .heading-actions > a.secondary-action, .invoice-entry-actions > .primary-action ~ .primary-action):not(:disabled, [aria-disabled]) {
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--heading);
  }

  html body.ui-refresh.brand-workbench .workspace
    :is(.project-actions > a.secondary-action, .project-actions > button.photo-capture-action, .brand-directory-actions > a.secondary-action, .heading-actions > a.secondary-action, .invoice-entry-actions > .primary-action ~ .primary-action):not(:disabled, [aria-disabled]):hover {
    border-color: var(--action);
    background: var(--selection);
    color: var(--heading);
  }

  html body.ui-refresh.brand-workbench .workspace .project-actions > .node-cancel-action {
    border: 1px solid currentColor;
    border-radius: 7px;
    background: var(--surface);
    color: var(--danger, #b42318);
  }

  html body.ui-refresh.brand-workbench .workspace .project-actions > .node-cancel-action:hover {
    background: #fef3f2;
  }
}

/* Search and contextual filters for workbench record lists. */
body.brand-workbench .record-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
body.brand-workbench .record-list-field { display: grid; gap: 4px; min-inline-size: 0; }
body.brand-workbench .record-list-field:has(input) { flex: 1 1 220px; max-inline-size: 340px; }
body.brand-workbench .record-list-field label { color: var(--heading); font-size: 13px; font-weight: 600; }
body.brand-workbench .record-list-toolbar :is(input, select, button, .record-list-clear) {
  min-block-size: var(--list-control-height);
  margin: 0;
}
body.brand-workbench .record-list-field :is(input, select) {
  width: 100%;
  min-inline-size: 0;
  padding: 6px 10px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
body.brand-workbench .record-list-toolbar .record-list-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: var(--action);
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}
body.brand-workbench .record-list-toolbar .record-list-clear:hover:not(:disabled) { background: var(--selection); }
body.brand-workbench .record-list-toolbar .record-list-clear:disabled { color: var(--text-muted); cursor: default; }
body.brand-workbench .record-list-toolbar :is(input, select, button, a):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
body.brand-workbench .record-list-count { align-self: end; margin-block-end: 8px; color: var(--text-muted); font-size: 13px; }
body.brand-workbench .record-list-filtered,
body.brand-workbench .record-list-no-match[hidden] { display: none !important; }

@media (max-width: 650px) {
  body.brand-workbench .record-list-toolbar :is(input, select, button, .record-list-clear) { min-block-size: 44px; }
  body.brand-workbench .record-list-field:has(input) { flex-basis: 100%; max-inline-size: none; }
}

/* Directory status and filters share a surface. Section filters use the same control spacing. */
body.brand-workbench .list-filter-panel {
  margin-block: 12px 16px;
}
body.brand-workbench .list-filter-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
body.brand-workbench .list-filter-advanced > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 44px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}
body.brand-workbench .list-filter-advanced > summary::-webkit-details-marker { display: none; }
body.brand-workbench .list-filter-advanced > summary:hover,
body.brand-workbench .list-filter-advanced[open] > summary {
  border-color: var(--action);
  background: var(--selection);
}
body.brand-workbench .list-filter-advanced > summary > .ui-icon {
  width: 15px;
  height: 15px;
  flex: none;
}
body.brand-workbench .list-filter-advanced[open] > summary > .ui-icon:last-child { rotate: 180deg; }
body.brand-workbench .list-filter-advanced[open] { flex-basis: 100%; }
body.brand-workbench .list-filter-advanced-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-block-start: 10px;
  padding-block-start: 10px;
  border-top: 1px solid var(--border);
}

@media screen and (min-width: 761px) {
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, :where(.team-overview) form.overview-filters) {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 12px;
    max-inline-size: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: none;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick) > div {
    display: grid;
    flex: 0 1 auto;
    gap: 4px 8px;
    min-inline-size: 0;
    max-inline-size: 100%;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .list-filter-quick) > div:has(> input[type="search"]) {
    flex: 0 1 clamp(215px, 31vw, 338px);
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick) label {
    margin: 0;
    min-inline-size: 0;
    color: var(--heading);
    font-size: 13px;
    font-weight: 600;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick)
    :is(input:not([type="hidden"]), select) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: var(--list-control-height);
    height: auto;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid var(--field-border);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text);
    font-size: 13px;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick) select {
    min-width: 88px;
    max-width: 230px;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick, form.overview-filters) > :is(button[type="submit"], button:not([type])) {
    width: auto;
    min-width: 0;
    min-height: var(--list-control-height);
    margin: 0;
    padding: 6px 13px;
    border: 1px solid var(--action);
    border-radius: 7px;
    background: var(--action);
    color: var(--surface);
    font-size: 13px;
    font-weight: 650;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick, form.overview-filters) > :is(button[type="submit"], button:not([type])):hover {
    border-color: var(--heading);
    background: var(--heading);
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick) > a:not(.primary-action, .secondary-action) {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: var(--list-control-height);
    margin: 0;
    padding: 6px 9px;
    border-color: transparent;
    background: transparent;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .photo-filters, .schedule-filter, .list-filter-quick) > a:not(.primary-action, .secondary-action):hover {
    background: var(--selection);
    color: var(--heading);
  }
  body.brand-workbench .record-list-count { align-self: center; margin: 0; }
  body.brand-workbench .list-filter-advanced > summary { min-block-size: var(--list-control-height); }
  body.brand-workbench .list-filter-advanced:not([open]) { align-self: end; }

  body.brand-workbench .list-filter-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }
  body.brand-workbench .list-filter-panel-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 6px 12px;
    border-block-end: 1px solid var(--border);
  }
  html body.ui-refresh.brand-workbench .workspace .list-filter-panel-heading > :is(.supplier-statuses, .status-tabs) {
    max-width: 100%;
    margin: 0;
  }
  html body.ui-refresh.brand-workbench .workspace .list-filter-panel > :is(.brand-list-filter, .supplier-filters) {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body.brand-workbench .supplier-partners .supplier-count:empty { display: none; }
  html body.ui-refresh.brand-workbench .workspace .schedule-toolbar > .schedule-filter {
    margin: 0;
    padding: 0;
    border: 0;
  }
  html body.ui-refresh.brand-workbench .workspace .schedule-toolbar .schedule-shortcuts { margin: 8px 0 0; }
  html body.ui-refresh.brand-workbench .workspace .period-toolbar > .period-custom[open] {
    flex: 1 1 100%;
    width: 100%;
  }
  html body.ui-refresh.brand-workbench .workspace .period-custom .overview-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px 24px;
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  html body.ui-refresh.brand-workbench .workspace :is(.period-custom .overview-filters form, .switch-form[method="get"]:has(input:is([type="date"], [type="month"]))):not(.photo-filters) {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 12px;
    width: auto;
    max-width: 100%;
    margin: 0;
  }
  html body.ui-refresh.brand-workbench .workspace :is(.period-custom .overview-filters form, .switch-form[method="get"]:has(input:is([type="date"], [type="month"]))):not(.photo-filters) > div {
    flex: 0 1 auto;
    min-width: 0;
  }
  html body.ui-refresh.brand-workbench .workspace :is(.period-custom .overview-filters form, .switch-form[method="get"]:has(input:is([type="date"], [type="month"]))):not(.photo-filters) > div :is(input, select) {
    width: auto;
    min-height: var(--list-control-height);
  }
}

@media screen and (min-width: 1100px) {
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .list-filter-quick) > div:has(> label + :is(input, select)),
  body.brand-workbench .list-filter-advanced-fields > .record-list-field {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  html body.ui-refresh.brand-workbench .workspace
    :is(.record-list-toolbar, .brand-list-filter, .supplier-filters, .catalog-search, .list-filter-quick) > div:has(> input[type="search"]) {
    flex-basis: clamp(338px, 34vw, 480px);
  }
}

body.brand-workbench .list-filter-quick {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  min-inline-size: 0;
}
body.brand-workbench .schedule-filter .list-filter-quick > div {
  flex: 0 1 11rem;
  min-width: 0;
}
body.brand-workbench .schedule-filter .list-filter-advanced-fields > div { min-width: 0; }

@media screen and (min-width: 761px) {
  html body.ui-refresh.brand-workbench .workspace .list-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
  }
  html body.ui-refresh.brand-workbench .workspace .list-heading-row > h1 { margin-block: 0; }
  html body.ui-refresh.brand-workbench .workspace .list-heading-row > :is(.project-actions, .catalog-toolbar) {
    justify-content: flex-end;
    margin: 0;
  }
  html body.ui-refresh.brand-workbench .workspace .list-heading-row > .catalog-toolbar details[open] { flex-basis: auto; }

  html body.ui-refresh.brand-workbench .workspace form.list-filter-disclosure > .list-filter-quick {
    display: flex;
    flex: 1 1 100%;
    gap: 8px 12px;
  }
  html body.ui-refresh.brand-workbench .workspace .list-filter-disclosure > .list-filter-advanced { flex: 1 1 100%; }
  html body.ui-refresh.brand-workbench .workspace .list-filter-advanced > summary {
    align-items: center;
    min-block-size: var(--list-control-height);
    padding-inline: 8px;
    white-space: nowrap;
    font-size: 13px;
  }
  html body.ui-refresh.brand-workbench .workspace .list-filter-advanced-fields > div {
    flex: 0 1 auto;
    max-width: 100%;
  }
  html body.ui-refresh.brand-workbench .workspace .schedule-filter .list-filter-quick > div { flex: 0 1 auto; }
  body.brand-workbench .schedule-filter .list-filter-advanced-fields label { display: block; }
  html body.ui-refresh.brand-workbench .workspace .period-toolbar.list-filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 6px 12px;
    padding: 10px 12px;
  }
  html body.ui-refresh.brand-workbench .workspace .period-toolbar.list-filter-panel > nav { margin: 0; }
  body.brand-workbench .period-toolbar .list-filter-advanced[open] > .overview-filters {
    margin-block-start: 8px;
    border-block-start: 1px solid var(--border);
  }
  body.brand-workbench .team-overview form.overview-filters > label {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 13px;
  }
  body.brand-workbench .team-overview form.overview-filters > label:has(input[type="search"]) {
    flex-basis: clamp(220px, 28vw, 430px);
  }
  body.brand-workbench .team-overview form.overview-filters select {
    width: auto;
    max-width: min(24ch, 100%);
  }
  html body.ui-refresh.brand-workbench .workspace .list-filter-panel > .overview-filters {
    margin: 0;
    border: 0;
    background: transparent;
  }
}

@media screen and (min-width: 1100px) {
  html body.ui-refresh.brand-workbench .workspace form.list-filter-disclosure {
    --disclosure-width: 126px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--disclosure-width);
    align-items: start;
    gap: 0 12px;
  }
  html body.ui-refresh.brand-workbench .workspace form.list-filter-disclosure > .list-filter-quick {
    display: flex;
    grid-area: 1 / 1;
    z-index: 1;
    margin: 0;
  }
  body.brand-workbench .list-filter-disclosure .list-filter-advanced {
    grid-area: 1 / 2;
    align-self: start;
    margin: 0;
  }
  body.brand-workbench .list-filter-disclosure .list-filter-advanced[open] { grid-column: 1 / -1; }
  html body.ui-refresh.brand-workbench .workspace .list-filter-disclosure .list-filter-advanced > summary {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: var(--disclosure-width);
    min-block-size: var(--list-control-height);
    margin-inline-start: auto;
    padding-block: 0;
  }
  html body.ui-refresh.brand-workbench .workspace .schedule-filter .list-filter-quick > div {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}
