@the-portland-company/shell 0.76.12 → 0.76.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { broadcastLogout, watchLogout } from './chunk-LL6LSJAH.js';
3
- import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeDedupedFetch, useChromeOrgs, useNavChromeFetcher } from './chunk-34NXDWIS.js';
4
- export { standardNavIcons } from './chunk-34NXDWIS.js';
3
+ import { clearBetaBannerDismissal, standardPolitogyNav, standardNavIcons, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeDedupedFetch, useChromeOrgs, useNavChromeFetcher } from './chunk-HSC6EYRR.js';
4
+ export { standardNavIcons } from './chunk-HSC6EYRR.js';
5
5
  import { warnDeprecated } from './chunk-MY6G3LMN.js';
6
6
  import './chunk-BHRVZPZ7.js';
7
7
  import { NAV_DISPLAY_DEFAULT, resolveNavDisplay, writeNavDisplayLocal, writeNavDisplayCookie, isNavDisplayPreference, NAV_DISPLAY_STORAGE_KEY, readNavDisplayCookie } from './chunk-7YVJ7HQG.js';
package/dist/chrome.css CHANGED
@@ -339,6 +339,16 @@
339
339
  --color-accent: var(--color-race-red);
340
340
  --color-accent-hover: var(--color-race-red-600);
341
341
  --color-accent-contrast: var(--color-white);
342
+ /* TEXT/background-under-white-text aliases. Chrome furniture that draws
343
+ accent-COLORED TEXT, or white text ON an accent fill, must resolve
344
+ through these — never bare `--color-accent` — because a Mode's brand
345
+ accent (below) is operator-supplied and not guaranteed to clear WCAG AA
346
+ as text or as a white-text background (observed: Petition mode's brand
347
+ green #00a651 measured 2.84:1 as text on a light wash and 3.19:1 under
348
+ white text). Un-mode-scoped chrome keeps the plain accent, which is
349
+ already AA-safe both ways. Light-mode only; dark mode is retired. */
350
+ --color-accent-fg: var(--color-accent);
351
+ --color-accent-bg-safe: var(--color-accent);
342
352
  /* ATTENTION / ERROR, as distinct from accent: count badges, low-fuel
343
353
  warnings, validation errors. These stay red in EVERY Mode — a green
344
354
  "3 unread" badge or a green low-fuel warning is worse than a red one — so
@@ -395,6 +405,8 @@
395
405
  [data-politogy-mode] {
396
406
  --color-accent: var(--mode-accent, var(--color-race-red));
397
407
  --color-accent-hover: var(--mode-accent-strong, var(--color-race-red-600));
408
+ --color-accent-fg: var(--mode-accent, var(--color-race-red));
409
+ --color-accent-bg-safe: var(--mode-accent, var(--color-race-red));
398
410
  --nav-hover-gradient: linear-gradient(
399
411
  90deg,
400
412
  var(--mode-accent-strong, var(--color-race-red-400)) 0%,
@@ -420,6 +432,22 @@
420
432
  * their own and every existing `var(--color-accent)` read needs to follow. */
421
433
  }
422
434
 
435
+ /* ---- Petition mode's brand green fails AA as text / under white text -----
436
+ * Petition mode's `--mode-accent` is operator/Brand-API supplied and was
437
+ * observed live at #00a651 — 2.84:1 as text on a light wash
438
+ * (`--mode-accent-surface`) and 3.19:1 under white text on an accent fill,
439
+ * both below WCAG 2.2 AA (4.5:1 for normal text). `--color-accent-fg` /
440
+ * `--color-accent-bg-safe` are pinned here to a fixed, measured-safe dark
441
+ * green (#15803d: 5.02:1 as text on white, 5.02:1 under white text) instead
442
+ * of following the raw brand value, so no org's brand configuration can
443
+ * reintroduce the failure. This selector has the same specificity as
444
+ * `[data-politogy-mode]` above and wins by appearing later in the sheet.
445
+ * Light-mode only; dark mode is retired (no `.dark` counterpart exists). */
446
+ [data-politogy-mode="petition"] {
447
+ --color-accent-fg: #15803d;
448
+ --color-accent-bg-safe: #15803d;
449
+ }
450
+
423
451
  /* ---- Rail background is a fixed brand color, not a theme ----------------
424
452
  * Reference/UI-Platform → Styling: the left rail is ink `#1B1C20` for
425
453
  * Relationship and Petition, and `#8F1F2A` for Campaign — always, regardless
@@ -185,7 +185,7 @@ function NavThemeControl({
185
185
  onClick: () => onChange(opt.value),
186
186
  className: [
187
187
  "flex-1 px-3 py-1.5 text-xs font-semibold transition",
188
- value === opt.value ? "bg-[color:var(--color-accent)] text-[#FFFFFF]" : "text-[color:var(--muted)] hover:bg-[color:var(--panel)] hover:text-[color:var(--foreground)]"
188
+ value === opt.value ? "bg-[color:var(--color-accent-bg-safe,var(--color-accent))] text-[#FFFFFF]" : "text-[color:var(--muted)] hover:bg-[color:var(--panel)] hover:text-[color:var(--foreground)]"
189
189
  ].join(" "),
190
190
  children: opt.label
191
191
  },
@@ -973,7 +973,7 @@ function NotificationsAction({ orgId }) {
973
973
  {
974
974
  type: "button",
975
975
  onClick: () => setMuted(false),
976
- className: "text-[11px] font-semibold text-[color:var(--color-accent)] hover:underline",
976
+ className: "text-[11px] font-semibold text-[color:var(--color-accent-fg,var(--color-accent))] hover:underline",
977
977
  children: "Unsilence"
978
978
  }
979
979
  ) : null
@@ -1037,7 +1037,7 @@ function NotificationsAction({ orgId }) {
1037
1037
  "a",
1038
1038
  {
1039
1039
  href: withOrgParam(QUARANTINED_CONTACTS_URL, orgId),
1040
- className: "text-[11px] font-semibold text-[color:var(--color-accent)] hover:underline",
1040
+ className: "text-[11px] font-semibold text-[color:var(--color-accent-fg,var(--color-accent))] hover:underline",
1041
1041
  children: "View all"
1042
1042
  }
1043
1043
  )
@@ -1194,7 +1194,7 @@ function SupportAction({
1194
1194
  {
1195
1195
  type: "button",
1196
1196
  onClick: close,
1197
- className: "rounded-full bg-[color:var(--color-accent)] px-4 py-2 text-sm font-semibold text-[#FFFFFF] hover:opacity-90",
1197
+ className: "rounded-full bg-[color:var(--color-accent-bg-safe,var(--color-accent))] px-4 py-2 text-sm font-semibold text-[#FFFFFF] hover:opacity-90",
1198
1198
  children: "Done"
1199
1199
  }
1200
1200
  ) })
@@ -1254,7 +1254,7 @@ function SupportAction({
1254
1254
  type: "button",
1255
1255
  onClick: submit,
1256
1256
  disabled: !message.trim() || state === "sending",
1257
- className: "rounded-full bg-[color:var(--color-accent)] px-4 py-2 text-sm font-semibold text-[#FFFFFF] transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",
1257
+ className: "rounded-full bg-[color:var(--color-accent-bg-safe,var(--color-accent))] px-4 py-2 text-sm font-semibold text-[#FFFFFF] transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",
1258
1258
  children: state === "sending" ? "Sending\u2026" : "Send request"
1259
1259
  }
1260
1260
  )
@@ -1550,7 +1550,7 @@ function SpecOverlayAction({ orgId, orgName } = {}) {
1550
1550
  href: status.spec_url,
1551
1551
  target: "_blank",
1552
1552
  rel: "noreferrer",
1553
- className: "text-[color:var(--color-accent)] hover:underline",
1553
+ className: "text-[color:var(--color-accent-fg,var(--color-accent))] hover:underline",
1554
1554
  children: "Open spec \u2197"
1555
1555
  }
1556
1556
  ),
@@ -1560,7 +1560,7 @@ function SpecOverlayAction({ orgId, orgName } = {}) {
1560
1560
  href: status.compare_url,
1561
1561
  target: "_blank",
1562
1562
  rel: "noreferrer",
1563
- className: "text-[color:var(--color-accent)] hover:underline",
1563
+ className: "text-[color:var(--color-accent-fg,var(--color-accent))] hover:underline",
1564
1564
  children: "Compare tab \u2197"
1565
1565
  }
1566
1566
  ),
@@ -1631,7 +1631,7 @@ function SpecOverlayAction({ orgId, orgName } = {}) {
1631
1631
  href: status.search_url,
1632
1632
  target: "_blank",
1633
1633
  rel: "noreferrer",
1634
- className: "mt-2 inline-block font-semibold text-[color:var(--color-accent)] hover:underline",
1634
+ className: "mt-2 inline-block font-semibold text-[color:var(--color-accent-fg,var(--color-accent))] hover:underline",
1635
1635
  children: "Search specs \u2197"
1636
1636
  }
1637
1637
  )
@@ -1674,7 +1674,7 @@ function NavDisplayAction({
1674
1674
  onClick: () => onChange(opt.value),
1675
1675
  className: [
1676
1676
  "flex w-full items-center justify-between px-4 py-2 text-left text-sm font-medium",
1677
- value === opt.value ? "text-[color:var(--color-accent)]" : "text-[color:var(--foreground)] hover:bg-[color:var(--panel)]"
1677
+ value === opt.value ? "text-[color:var(--color-accent-fg,var(--color-accent))]" : "text-[color:var(--foreground)] hover:bg-[color:var(--panel)]"
1678
1678
  ].join(" "),
1679
1679
  children: [
1680
1680
  opt.label,
@@ -2204,7 +2204,7 @@ function envChipClasses(label) {
2204
2204
  return "bg-[#dcfce7] text-[#22c55e]";
2205
2205
  return "bg-[rgba(107,114,128,0.16)] text-[#6b7280]";
2206
2206
  }
2207
- var ORG_PILL_DEFAULT = "var(--color-accent)";
2207
+ var ORG_PILL_DEFAULT = "var(--color-accent-bg-safe,var(--color-accent))";
2208
2208
  var RailCollapsibleContext = createContext(false);
2209
2209
  function useRailCollapse() {
2210
2210
  const collapsible = useContext(RailCollapsibleContext);
@@ -2359,7 +2359,7 @@ function NavSidebar({
2359
2359
  "aria-expanded": open ?? false,
2360
2360
  "data-rail-toggle": "expand",
2361
2361
  className: `hidden h-8 w-8 items-center justify-center rounded-lg ${rc("max-md:flex")}`,
2362
- children: brand.logoSquareSrc ? /* @__PURE__ */ jsx("img", { src: brand.logoSquareSrc, alt: "", draggable: false, className: "h-8 w-8 object-contain" }) : brand.logoPending ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "block h-8 w-8" }) : /* @__PURE__ */ jsx("span", { className: "flex h-8 w-8 items-center justify-center rounded-xl bg-[color:var(--color-accent)] text-sm font-black text-[#FFFFFF]", children: brand.badgeLabel })
2362
+ children: brand.logoSquareSrc ? /* @__PURE__ */ jsx("img", { src: brand.logoSquareSrc, alt: "", draggable: false, className: "h-8 w-8 object-contain" }) : brand.logoPending ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "block h-8 w-8" }) : /* @__PURE__ */ jsx("span", { className: "flex h-8 w-8 items-center justify-center rounded-xl bg-[color:var(--color-accent-bg-safe,var(--color-accent))] text-sm font-black text-[#FFFFFF]", children: brand.badgeLabel })
2363
2363
  }
2364
2364
  ) : null,
2365
2365
  /* @__PURE__ */ jsxs(
@@ -2398,12 +2398,12 @@ function NavSidebar({
2398
2398
  /* @__PURE__ */ jsx(
2399
2399
  "span",
2400
2400
  {
2401
- className: `flex h-9 w-9 items-center justify-center rounded-xl bg-[color:var(--color-accent)] text-base font-black text-[#FFFFFF] shadow-sm ${brand.logoSquareSrc ? rc("max-md:hidden") : ""}`,
2401
+ className: `flex h-9 w-9 items-center justify-center rounded-xl bg-[color:var(--color-accent-bg-safe,var(--color-accent))] text-base font-black text-[#FFFFFF] shadow-sm ${brand.logoSquareSrc ? rc("max-md:hidden") : ""}`,
2402
2402
  children: brand.badgeLabel
2403
2403
  }
2404
2404
  ),
2405
2405
  /* @__PURE__ */ jsxs("span", { className: `flex flex-col leading-tight ${rc("max-md:hidden")}`, children: [
2406
- /* @__PURE__ */ jsx("span", { className: "text-base font-extrabold tracking-[-0.01em] text-[color:var(--color-accent)]", children: brand.title }),
2406
+ /* @__PURE__ */ jsx("span", { className: "text-base font-extrabold tracking-[-0.01em] text-[color:var(--color-accent-fg,var(--color-accent))]", children: brand.title }),
2407
2407
  brand.subtitle ? /* @__PURE__ */ jsx("span", { className: "text-[11px] font-semibold uppercase tracking-[0.16em] text-[color:var(--muted)]", children: brand.subtitle }) : null
2408
2408
  ] })
2409
2409
  ] })
@@ -2443,7 +2443,7 @@ function NavSidebar({
2443
2443
  {
2444
2444
  href: org.uploadLogoHref ?? "#",
2445
2445
  onClick: (e) => e.stopPropagation(),
2446
- className: "text-xs font-semibold text-[color:var(--color-accent)] underline",
2446
+ className: "text-xs font-semibold text-[color:var(--color-accent-fg,var(--color-accent))] underline",
2447
2447
  children: "Upload logo"
2448
2448
  }
2449
2449
  ) : /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-neutral-800", children: org.name ?? "Organization" }),
@@ -2504,7 +2504,7 @@ function NavSidebar({
2504
2504
  "aria-current": selected ? "true" : void 0,
2505
2505
  className: [
2506
2506
  "flex w-full items-center gap-2.5 px-3 py-2 text-left text-sm",
2507
- selected ? "font-semibold text-[color:var(--color-accent)]" : "font-medium text-[color:var(--foreground)] hover:bg-[color:var(--panel)]"
2507
+ selected ? "font-semibold text-[color:var(--color-accent-fg,var(--color-accent))]" : "font-medium text-[color:var(--foreground)] hover:bg-[color:var(--panel)]"
2508
2508
  ].join(" "),
2509
2509
  children: [
2510
2510
  /* @__PURE__ */ jsx(
@@ -2545,7 +2545,7 @@ function NavSidebar({
2545
2545
  {
2546
2546
  href: org.uploadLogoHref ?? "#",
2547
2547
  onClick: (e) => e.stopPropagation(),
2548
- className: "text-xs font-semibold text-[color:var(--color-accent)] underline",
2548
+ className: "text-xs font-semibold text-[color:var(--color-accent-fg,var(--color-accent))] underline",
2549
2549
  children: "Upload logo"
2550
2550
  }
2551
2551
  ) : /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-neutral-800", children: org.name ?? "Organization" }),
@@ -2597,7 +2597,7 @@ function NavSidebar({
2597
2597
  disabled: !available,
2598
2598
  className: [
2599
2599
  `flex flex-none items-center justify-center rounded-[5px] px-[9px] py-[6px] transition ${rc("max-md:flex-1")}`,
2600
- !available ? "cursor-not-allowed text-[color:var(--sidebar-text-muted,var(--muted))] opacity-35" : selected ? "bg-[color:var(--sidebar-mode-selected-bg,var(--mode-accent,var(--color-accent)))] text-[color:var(--mode-on-accent,white)]" : "text-[color:var(--sidebar-text-muted,var(--muted))] hover:bg-[#FFFFFF]/5 hover:text-[color:var(--sidebar-text,var(--foreground))]"
2600
+ !available ? "cursor-not-allowed text-[color:var(--sidebar-text-muted,var(--muted))] opacity-35" : selected ? "bg-[color:var(--sidebar-mode-selected-bg,var(--mode-accent,var(--color-accent)))] text-[color:var(--mode-on-accent,var(--color-accent-bg-safe,white))]" : "text-[color:var(--sidebar-text-muted,var(--muted))] hover:bg-[#FFFFFF]/5 hover:text-[color:var(--sidebar-text,var(--foreground))]"
2601
2601
  ].join(" "),
2602
2602
  children: OptIcon ? /* @__PURE__ */ jsx(OptIcon, { size: 15, className: "shrink-0" }) : null
2603
2603
  },
@@ -2828,7 +2828,7 @@ var NAV_HOVER_GRADIENT = "var(--nav-hover-gradient)";
2828
2828
  var NAV_EYEBROW_CLASS = "text-[11px] font-bold uppercase leading-[1.2] tracking-[0.09em] text-[color:var(--sidebar-eyebrow,var(--sidebar-text-muted,var(--muted)))]";
2829
2829
  var NAV_TOP_ICON_SIZE = 17;
2830
2830
  var NAV_TOP_ROW_CLASS = (active) => `gap-[11px] px-[10px] py-[9px] text-[13px] leading-none ${active ? "font-semibold" : "font-normal"}`;
2831
- var NAV_TOP_ACTIVE_CLASS = "bg-[color:var(--sidebar-active-bg,var(--color-accent))] text-[color:var(--sidebar-active-text,white)]";
2831
+ var NAV_TOP_ACTIVE_CLASS = "bg-[color:var(--sidebar-active-bg,var(--color-accent-bg-safe,var(--color-accent)))] text-[color:var(--sidebar-active-text,white)]";
2832
2832
  var NAV_TOP_INACTIVE_CLASS = "text-[color:var(--sidebar-row-text,var(--sidebar-text,var(--muted)))] hover:bg-[color:var(--sidebar-row-hover-bg,var(--panel-elevated))] hover:text-[color:var(--sidebar-text,var(--foreground))]";
2833
2833
  function modeCaption(label) {
2834
2834
  return label.replace(/\s+Mode$/i, " mode");
@@ -2887,7 +2887,7 @@ function NavRow({
2887
2887
  const Icon = item.icon;
2888
2888
  const isSub = variant === "sub";
2889
2889
  const washActive = variant !== "top";
2890
- const activeClasses = washActive ? "bg-[color:var(--mode-accent-surface,var(--panel-elevated))] text-[color:var(--color-accent)] shadow-sm" : NAV_TOP_ACTIVE_CLASS;
2890
+ const activeClasses = washActive ? "bg-[color:var(--mode-accent-surface,var(--panel-elevated))] text-[color:var(--color-accent-fg,var(--color-accent))] shadow-sm" : NAV_TOP_ACTIVE_CLASS;
2891
2891
  const wrapperClasses = [
2892
2892
  "group relative block overflow-hidden transition",
2893
2893
  isSub ? "rounded-md" : "rounded-[5px]",
@@ -3050,7 +3050,7 @@ function NavTopBar({
3050
3050
  themeToggle,
3051
3051
  accountMenu === "topbar" ? /* @__PURE__ */ jsxs("details", { "data-nav-details": true, className: "group/acct relative", children: [
3052
3052
  /* @__PURE__ */ jsxs("summary", { className: "group/tbtip relative flex cursor-pointer list-none items-center gap-2.5 rounded-full py-1 pl-1 pr-2 transition hover:bg-[color:var(--panel-elevated)] [&::-webkit-details-marker]:hidden", children: [
3053
- /* @__PURE__ */ jsx("span", { className: "flex h-[var(--topbar-icon-button-size,32px)] w-[var(--topbar-icon-button-size,32px)] items-center justify-center overflow-hidden rounded-full bg-[color:var(--color-accent)] text-xs font-bold text-[#FFFFFF]", children: user?.avatarUrl || user?.memojiUrl ? /* @__PURE__ */ jsx(
3053
+ /* @__PURE__ */ jsx("span", { className: "flex h-[var(--topbar-icon-button-size,32px)] w-[var(--topbar-icon-button-size,32px)] items-center justify-center overflow-hidden rounded-full bg-[color:var(--color-accent-bg-safe,var(--color-accent))] text-xs font-bold text-[#FFFFFF]", children: user?.avatarUrl || user?.memojiUrl ? /* @__PURE__ */ jsx(
3054
3054
  "img",
3055
3055
  {
3056
3056
  src: user.avatarUrl || user.memojiUrl,
@@ -3150,14 +3150,14 @@ function NavAccountMenuPanel({
3150
3150
  },
3151
3151
  className: "flex min-w-0 flex-1 items-center gap-2.5 rounded-lg px-1 py-1 text-left hover:bg-[color:var(--panel)]",
3152
3152
  children: [
3153
- /* @__PURE__ */ jsx("span", { className: "flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[color:var(--color-accent)] text-[11px] font-bold text-[#FFFFFF]", children: a.avatarUrl ? /* @__PURE__ */ jsx("img", { src: a.avatarUrl, alt: "", className: "h-full w-full object-cover" }) : (a.name ?? a.email ?? "?").slice(0, 2).toUpperCase() }),
3153
+ /* @__PURE__ */ jsx("span", { className: "flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[color:var(--color-accent-bg-safe,var(--color-accent))] text-[11px] font-bold text-[#FFFFFF]", children: a.avatarUrl ? /* @__PURE__ */ jsx("img", { src: a.avatarUrl, alt: "", className: "h-full w-full object-cover" }) : (a.name ?? a.email ?? "?").slice(0, 2).toUpperCase() }),
3154
3154
  /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col leading-tight", children: [
3155
3155
  /* @__PURE__ */ jsx(
3156
3156
  "span",
3157
3157
  {
3158
3158
  className: [
3159
3159
  "truncate text-sm font-semibold",
3160
- a.active ? "text-[color:var(--color-accent)]" : "text-[color:var(--foreground)]"
3160
+ a.active ? "text-[color:var(--color-accent-fg,var(--color-accent))]" : "text-[color:var(--foreground)]"
3161
3161
  ].join(" "),
3162
3162
  children: a.name ?? a.email ?? a.id.slice(0, 8)
3163
3163
  }
@@ -3173,7 +3173,7 @@ function NavAccountMenuPanel({
3173
3173
  type: "button",
3174
3174
  "aria-label": `Remove ${a.name ?? a.email ?? "account"}`,
3175
3175
  onClick: () => userMenu.onRemoveAccount?.(a.id),
3176
- className: "shrink-0 rounded p-1 text-[color:var(--color-accent)] hover:bg-[color:var(--panel)]",
3176
+ className: "shrink-0 rounded p-1 text-[color:var(--color-accent-fg,var(--color-accent))] hover:bg-[color:var(--panel)]",
3177
3177
  children: /* @__PURE__ */ jsx(TrashIcon, {})
3178
3178
  }
3179
3179
  ) : null
@@ -3182,7 +3182,7 @@ function NavAccountMenuPanel({
3182
3182
  "a",
3183
3183
  {
3184
3184
  href: safeHref(userMenu.addAccountHref),
3185
- className: "mt-1.5 flex items-center gap-2.5 rounded-lg px-1 py-1.5 text-sm font-semibold text-[color:var(--color-accent)] hover:bg-[color:var(--panel)]",
3185
+ className: "mt-1.5 flex items-center gap-2.5 rounded-lg px-1 py-1.5 text-sm font-semibold text-[color:var(--color-accent-fg,var(--color-accent))] hover:bg-[color:var(--panel)]",
3186
3186
  children: [
3187
3187
  /* @__PURE__ */ jsx(AddUserIcon, {}),
3188
3188
  "Add Account"
@@ -3193,7 +3193,7 @@ function NavAccountMenuPanel({
3193
3193
  {
3194
3194
  type: "button",
3195
3195
  onClick: userMenu.onAddAccount,
3196
- className: "mt-1.5 flex w-full items-center gap-2.5 rounded-lg px-1 py-1.5 text-left text-sm font-semibold text-[color:var(--color-accent)] hover:bg-[color:var(--panel)]",
3196
+ className: "mt-1.5 flex w-full items-center gap-2.5 rounded-lg px-1 py-1.5 text-left text-sm font-semibold text-[color:var(--color-accent-fg,var(--color-accent))] hover:bg-[color:var(--panel)]",
3197
3197
  children: [
3198
3198
  /* @__PURE__ */ jsx(AddUserIcon, {}),
3199
3199
  "Add Account"
@@ -3219,7 +3219,7 @@ function NavAccountMenuPanel({
3219
3219
  onClick: () => userMenu.navDisplay?.onChange(opt.value),
3220
3220
  className: [
3221
3221
  "flex w-full items-center justify-between rounded-md px-2 py-1.5 text-left text-sm font-medium",
3222
- userMenu.navDisplay?.value === opt.value ? "text-[color:var(--color-accent)]" : "text-[color:var(--foreground)] hover:bg-[color:var(--panel)]"
3222
+ userMenu.navDisplay?.value === opt.value ? "text-[color:var(--color-accent-fg,var(--color-accent))]" : "text-[color:var(--foreground)] hover:bg-[color:var(--panel)]"
3223
3223
  ].join(" "),
3224
3224
  children: [
3225
3225
  opt.label,
@@ -3235,7 +3235,7 @@ function NavAccountMenuPanel({
3235
3235
  {
3236
3236
  type: "button",
3237
3237
  onClick: onSignOut,
3238
- className: "flex w-full shrink-0 items-center gap-2.5 border-t border-[color:var(--line)] px-4 py-2.5 text-left text-sm font-medium text-[color:var(--foreground)] hover:bg-[color:var(--panel)] hover:text-[color:var(--color-accent)]",
3238
+ className: "flex w-full shrink-0 items-center gap-2.5 border-t border-[color:var(--line)] px-4 py-2.5 text-left text-sm font-medium text-[color:var(--foreground)] hover:bg-[color:var(--panel)] hover:text-[color:var(--color-accent-fg,var(--color-accent))]",
3239
3239
  children: [
3240
3240
  /* @__PURE__ */ jsx(SignOutIcon, {}),
3241
3241
  "Sign out"
@@ -3262,7 +3262,7 @@ function NavSidebarUserCard({
3262
3262
  "aria-label": "My Account",
3263
3263
  className: `flex w-full cursor-pointer list-none items-center gap-[9px] rounded-[5px] px-1 py-1 text-left transition hover:bg-[color:var(--sidebar-row-hover-bg,var(--panel-elevated))] [&::-webkit-details-marker]:hidden ${rc("max-md:justify-center max-md:px-0")}`,
3264
3264
  children: [
3265
- /* @__PURE__ */ jsx("span", { className: "flex h-7 w-7 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[color:var(--sidebar-avatar-bg,var(--color-accent))] text-[11px] font-bold text-[#FFFFFF]", children: user.avatarUrl || user.memojiUrl ? /* @__PURE__ */ jsx("img", { src: user.avatarUrl || user.memojiUrl, alt: "", className: "h-full w-full object-cover" }) : initials }),
3265
+ /* @__PURE__ */ jsx("span", { className: "flex h-7 w-7 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[color:var(--sidebar-avatar-bg,var(--color-accent-bg-safe,var(--color-accent)))] text-[11px] font-bold text-[#FFFFFF]", children: user.avatarUrl || user.memojiUrl ? /* @__PURE__ */ jsx("img", { src: user.avatarUrl || user.memojiUrl, alt: "", className: "h-full w-full object-cover" }) : initials }),
3266
3266
  /* @__PURE__ */ jsxs("span", { className: `flex min-w-0 flex-1 flex-col ${rc("max-md:hidden")}`, children: [
3267
3267
  /* @__PURE__ */ jsx("span", { className: "truncate text-[12px] font-semibold leading-[1.2] text-[color:var(--sidebar-text,var(--foreground))]", children: displayName }),
3268
3268
  /* @__PURE__ */ jsx("span", { className: "truncate text-[11px] leading-[1.3] text-[color:var(--sidebar-caption,var(--sidebar-text-muted,var(--muted)))]", children: secondary })
@@ -3312,7 +3312,7 @@ function NamePromptBubble({ profileHref, placement = "below" }) {
3312
3312
  "a",
3313
3313
  {
3314
3314
  href: safeHref(profileHref),
3315
- className: "rounded-full bg-[color:var(--color-accent)] px-3 py-1 text-xs font-semibold text-[#FFFFFF] hover:opacity-90",
3315
+ className: "rounded-full bg-[color:var(--color-accent-bg-safe,var(--color-accent))] px-3 py-1 text-xs font-semibold text-[#FFFFFF] hover:opacity-90",
3316
3316
  children: "Set name"
3317
3317
  }
3318
3318
  ) : null,
@@ -3719,5 +3719,5 @@ function NavAppShell({
3719
3719
  }
3720
3720
 
3721
3721
  export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, modeIdFromLabel, resolveOrgLogoUrl, shortEnvLabel, shortUserName, standardNavIcons, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeDedupedFetch, useNavChromeFetcher, useThemePreference };
3722
- //# sourceMappingURL=chunk-34NXDWIS.js.map
3723
- //# sourceMappingURL=chunk-34NXDWIS.js.map
3722
+ //# sourceMappingURL=chunk-HSC6EYRR.js.map
3723
+ //# sourceMappingURL=chunk-HSC6EYRR.js.map