/* The store opts in on the authenticated page. Public stores have their own theme. */
@media (forced-colors: none) {
  body[data-store-accent] {
    --choice-active: var(--store-accent-fill);
    --choice-focus: var(--store-accent-ink);
    --store-accent-hover: color-mix(in srgb,var(--store-accent-surface) 60%,transparent);
    --store-accent-frame: color-mix(in srgb,var(--store-accent-border) 45%,var(--border));
    --store-accent-selection: var(--store-accent-surface);
    --store-accent-selection-ink: var(--store-accent-ink);
  }
  body[data-store-accent] button:is(.stock-history-action,.stock-create-action) {
    background:var(--store-accent-fill);
    color:var(--store-accent-on-fill);
    border-color:var(--store-accent-border)!important;
  }
  body[data-store-accent] button:is(.stock-history-action,.stock-create-action):focus-visible {
    outline:3px solid var(--store-accent-ink);
    outline-offset:3px;
  }
  /* Stock and service forms share these actions in dialogs and full-page editors. */
  body[data-store-accent] form .btn.quick-stock {
    background:var(--store-accent-fill)!important;
    color:var(--store-accent-on-fill)!important;
    border-color:var(--store-accent-border)!important;
  }
  body[data-store-accent] form .btn.quick-stock:focus-visible {
    outline:3px solid var(--store-accent-ink);
    outline-offset:3px;
  }
  body[data-store-accent].light-theme {
    --store-accent-selection: color-mix(in srgb,var(--store-accent-surface) 80%,var(--store-accent-border));
    --store-accent-selection-ink: color-mix(in srgb,var(--store-accent-ink) 70%,#202029);
  }

  body[data-store-accent] :is(input[type="checkbox"]:checked, input[type="checkbox"]:indeterminate,
    button.theme-switch[aria-checked="true"], .agenda-check input[type="radio"]:checked) {
    color: var(--store-accent-on-fill);
    border-color: var(--store-accent-border);
  }
  body[data-store-accent] label:has(> input[type="checkbox"]:is(:checked, :indeterminate)),
  body[data-store-accent] .settings-row:has(> button.theme-switch[aria-checked="true"]) {
    --switch-row-border: var(--store-accent-border);
  }
  body[data-store-accent] .app-notification-option:has(> input:focus-visible),
  body[data-store-accent] .store-activity-options label:has(input:focus-visible),
  body[data-store-accent]:has(#content>[data-mobile-record-list="products"]) #mobileRecordHeaderActions>button:focus-visible,
  body[data-store-accent] :is(.settings-category-tabs [role="tab"], .mobile-menu-tabs > button,
    .mobile-dock-item, .desktop-quick-create, #nav button, .table-sort-button,
    .back-button, .page-help-link, .mobile-quick-action, .entries-detail-options>summary,
    #modalBody .table-wrap,.mobile-record-screen .table-wrap,.admin-accounts-scroll,.management-table-scroll,
    .access-date-picker :is(button,input),
    .product-catalog-product-link,.agenda-select select):focus-visible {
    outline-color: var(--store-accent-ink);
  }
  body[data-store-accent] :is(.input,.select):focus:not(.field-invalid) {
    border-color: var(--store-accent-border);
    box-shadow: 0 0 0 2px color-mix(in srgb,var(--store-accent-border) 16%,transparent);
  }
  body[data-store-accent] :is(.page-help-link,.getting-started-dismiss,.help-topics summary,
    .chart-data summary,.subscription-inline-action,.subscription-type-choice>svg,.operations-text-button),
  body[data-store-accent] #content :is([data-catalog-share], [data-agenda-public-link]) .catalog-dashboard-address,
  body[data-store-accent] th:is([aria-sort="ascending"],[aria-sort="descending"]) .table-sort-indicator {
    color: var(--store-accent-ink);
  }
  body[data-store-accent] :is([data-catalog-share], [data-agenda-public-link]) .catalog-dashboard-url {
    background: color-mix(in srgb,var(--store-accent-ink) 10%,transparent);
  }
  body[data-store-accent] :is(.entries-detail-options>summary,.access-date-footer button,
    .business-photo-preview:not(:has(img)),
    .product-catalog-thumb:not(:has(img)),.product-catalog-photo:not(:has(img))) {
    background: var(--store-accent-surface);
    color: var(--store-accent-ink);
    border-color: var(--store-accent-frame);
  }
  body[data-store-accent] :is(.product-catalog-selection-row,.product-catalog-detail,
    .product-catalog-publications,.product-catalog-custom-color input[type="color"]) {
    border-color: var(--store-accent-frame);
  }
  body[data-store-accent] .subscription-type-choice:focus-visible {
    outline-color: var(--store-accent-border);
  }

  body[data-store-accent] .sidebar #nav button.active,
  body[data-store-accent] #profileMenu>button[aria-current="page"],
  body[data-store-accent] .settings-category-tabs [aria-selected="true"] {
    background: var(--store-accent-selection);
    color: var(--store-accent-selection-ink);
  }
  body[data-store-accent] .sidebar #nav button.active .nav-icon,
  body[data-store-accent] .sidebar .admin-nav-group:has(button.active) > .admin-nav-summary,
  body[data-store-accent].mobile-dock-ready .mobile-dock-item.is-active {
    color: var(--store-accent-selection-ink);
  }
  body[data-store-accent] .sidebar #nav button:not(.active):is(:hover,:focus-visible),
  body[data-store-accent] .sidebar .admin-nav-summary:is(:hover,:focus-visible),
  body[data-store-accent] #profileMenu>button:not(.profile-signout,[aria-current="page"]):is(:hover,:focus-visible),
  body[data-store-accent] .settings-category-tabs [aria-selected="false"]:is(:hover,:focus-visible) {
    background: var(--store-accent-hover);
    color: inherit;
  }
  body[data-store-accent] :is(.sidebar #nav button,.sidebar .admin-nav-summary,#profileMenu>button:not(.profile-signout)):focus-visible {
    outline: 2px solid var(--store-accent-border);
    outline-offset: -2px;
  }
  body[data-store-accent] #profileMenuButton:not(.has-business-photo) {
    background: var(--store-accent-fill);
    color: var(--store-accent-on-fill);
    border-color: var(--store-accent-border);
  }
  body[data-store-accent] #profileMenuButton:not(.has-business-photo) #profileInitials {
    color: inherit;
  }
  body[data-store-accent] .mobile-dock-item.is-active > .mobile-dock-icon {
    background: var(--store-accent-selection);
  }
  /* The legacy mobile menu sets the selected tab's colors with !important. */
  body[data-store-accent].mobile-dock-ready .mobile-menu-tabs > button[aria-selected="true"] {
    background: var(--store-accent-selection) !important;
    color: var(--store-accent-selection-ink) !important;
  }
  body[data-store-accent] .list-header-actions > button[aria-pressed="true"]::after {
    background: var(--store-accent-ink);
  }
  body[data-store-accent] :is(#dashboardMonthHeader, .mobile-dashboard-overview) .month-selector-grid button.selected {
    background: var(--store-accent-selection) !important;
    color: var(--store-accent-selection-ink) !important;
    box-shadow: inset 0 0 0 1px var(--store-accent-border);
  }
  body[data-store-accent] .access-date-picker :is(.access-date-days, .access-date-months) button.selected {
    background: var(--store-accent-selection);
    color: var(--store-accent-selection-ink);
    box-shadow: inset 0 0 0 1px var(--store-accent-border);
  }
  body[data-store-accent] :is(#dashboardMonthHeader,.mobile-dashboard-overview) .month-selector-header,
  body[data-store-accent] .access-date-header {
    background: var(--store-accent-fill);
    color: var(--store-accent-on-fill);
  }
  body[data-store-accent] :is(#dashboardMonthHeader,.mobile-dashboard-overview) .month-selector-header button {
    color: var(--store-accent-on-fill) !important;
  }
  body[data-store-accent] :is(#dashboardMonthHeader,.mobile-dashboard-overview) .month-selector-grid button:not(.selected):hover {
    background: var(--store-accent-hover) !important;
  }
  body[data-store-accent] .access-date-picker :is(.access-date-days,.access-date-months) button:not(:disabled,.selected):hover {
    background: var(--store-accent-hover);
  }

  body[data-store-accent] :is(.desktop-quick-create, .mobile-dock-create)[aria-expanded="false"] {
    --quick-create-background: var(--store-accent-fill);
  }
  body[data-store-accent] .desktop-quick-create:not([hidden])[aria-expanded="false"] {
    color: var(--store-accent-on-fill) !important;
    border: 1px solid var(--store-accent-border);
  }
  body[data-store-accent] .mobile-dock-create[aria-expanded="false"] > .mobile-dock-icon {
    color: var(--store-accent-on-fill);
    outline: 1px solid var(--store-accent-border);
    outline-offset: -5px;
  }
}
@media (forced-colors:none) and (hover:hover) {
  body:not([data-store-accent]) .sidebar #nav button:not(.active):hover,
  body:not([data-store-accent]) #profileMenu>button:not(.profile-signout,[aria-current="page"]):hover {
    background: color-mix(in srgb,var(--soft-purple) 42%,transparent);
  }
  body.light-theme:not(.mobile-dock-ready,[data-store-accent]) #profileMenu>button:not(.profile-signout,[aria-current="page"]):hover:not(:focus-visible) {
    background:color-mix(in srgb,var(--soft-purple) 54%,transparent);
  }
}
@media (forced-colors:none) and (hover:none) {
  body[data-store-accent] .sidebar #nav button:not(.active):hover:not(:focus-visible),
  body[data-store-accent] #profileMenu>button:not(.profile-signout,[aria-current="page"]):hover:not(:focus-visible) {
    background: transparent;
    color: inherit;
  }
}
