@import url('./account-theme-surfaces.css?v=20261007.1');

/* Account chrome and the store editor share one theme. Store previews keep their own palette. */
:root {
  color-scheme: light;
  --portal-bg: #f5f5f7;
  --portal-surface: #fff;
  --portal-surface-soft: #efeff2;
  --account-sidebar: var(--portal-surface);
  --portal-panel: var(--portal-surface);
  --portal-ink: #19191c;
  --portal-muted: #626269;
  --portal-line: #dedee2;
  --portal-violet-dark: #4919f5;
  --portal-accent-soft: #f0edfe;
  --portal-action: #4919f5;
  --portal-action-hover: #4016d8;
  --portal-danger: #b93647;
  --portal-danger-soft: #fde7eb;
  --portal-warning: #946000;
  --portal-warning-soft: #fff3d6;
  --portal-success: #22734a;
  --portal-success-soft: #e2f4dc;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --portal-bg: #19191c;
  --portal-surface: #27272d;
  --portal-surface-soft: #222226;
  --account-sidebar: var(--portal-bg);
  --portal-ink: #f5f5f7;
  --portal-muted: #aaaab5;
  --portal-line: #41414a;
  --portal-violet-dark: #9b81fa;
  --portal-accent-soft: #2d2451;
  --portal-danger: #ff9cab;
  --portal-danger-soft: #43262f;
  --portal-warning: #efc36d;
  --portal-warning-soft: #3c3020;
  --portal-success: #88d4aa;
  --portal-success-soft: #233b2e;
  --portal-shadow: 0 18px 55px rgb(0 0 0 / 22%), 0 2px 8px rgb(0 0 0 / 12%);
}

body.account-body { background: var(--portal-bg); color: var(--portal-ink); }
.account-body ::selection { background: var(--portal-accent-soft); color: var(--portal-ink); }
.account-body .account-sidebar { background: var(--account-sidebar); color: var(--portal-ink); border-right: 1px solid var(--portal-line); }
.account-body .account-nav { --liquid-nav-fill: var(--portal-accent-soft); --liquid-nav-ink: var(--portal-violet-dark); }
.account-body .account-nav a { color: var(--portal-muted); }
.account-body .account-nav a:hover { color: var(--portal-ink); }
.account-body .account-nav:not(.liquid-nav-ready) a:hover { background: var(--portal-surface-soft); }
.account-body .account-nav a:is(.is-active, [data-liquid-lit]) { color: var(--portal-violet-dark); box-shadow: none; }
.account-body .account-nav:not(.liquid-nav-ready) a.is-active { background: var(--portal-accent-soft); }
.account-body .account-avatar { background: var(--portal-accent-soft); color: var(--portal-violet-dark); }
.account-body .account-workspace { border-color: var(--portal-line); background: var(--portal-surface-soft); box-shadow: none; }
.account-body :is(.account-brand span, .account-workspace span, .account-workspace small, .account-nav-label, .account-profile small) { color: var(--portal-muted); }
.account-body :is(.account-profile, .account-nav-label--secondary) { border-color: var(--portal-line); }
.account-body :is(.account-profile button, .account-menu-close) { border-color: var(--portal-line); background: var(--portal-surface-soft); color: var(--portal-ink); }
.account-body :is(.account-profile button, .account-menu-close):hover { background: var(--portal-accent-soft); color: var(--portal-violet-dark); }
.account-body .account-sidebar :is(a, button):focus-visible { outline-color: var(--portal-violet-dark); }
.account-body .account-brand img { filter: none; }
[data-theme="dark"] .account-body .account-brand img { filter: invert(1); }
.account-body .account-brand span { text-transform: none; letter-spacing: 0; }

.account-theme-toggle {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: var(--portal-surface);
  color: var(--portal-ink);
  cursor: pointer;
  touch-action: manipulation;
}
.account-theme-toggle:hover { background: var(--portal-accent-soft); }
.account-theme-toggle:focus-visible { outline: 3px solid var(--portal-violet-dark); outline-offset: 3px; }
.account-sidebar .account-theme-toggle { border-color: var(--portal-line); background: var(--portal-surface-soft); color: var(--portal-ink); }
.account-sidebar .account-theme-toggle:hover { background: var(--portal-accent-soft); color: var(--portal-violet-dark); }
.account-theme-toggle .portal-icon { width: 19px; height: 19px; }
.account-theme-toggle .theme-sun,
[data-theme="dark"] .account-theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .account-theme-toggle .theme-sun { display: block; }
.account-mobile-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 920px) {
  .account-theme-toggle--desktop { display: none; }
  .account-body .account-mobile-head { background: var(--portal-surface); border-color: var(--portal-line); }
  .account-body .account-mobile-head button { background: var(--portal-surface); color: var(--portal-ink); border-color: var(--portal-line); }
  .account-body .account-mobile-head .account-theme-toggle { min-width: 44px; padding: 0; border-radius: 12px; }
}

@media (forced-colors: active) {
  .account-body .account-nav a:is(.is-active, [data-liquid-lit]) {
    background: Highlight;
    color: HighlightText;
  }
  .account-body :is(.account-theme-toggle, .account-sidebar a, .account-sidebar button):focus-visible { outline-color: Highlight; }
}

/* Notification center (genform-ui/runtime/notifications.js): the bell matches the theme toggle and its
   panel follows the portal theme through the Genform UI tokens it reads. */
.account-notifications {
  display: inline-flex;
  --genform-ui-notify-size: 44px;
  --genform-ui-notify-radius: 12px;
  --genform-ui-notify-border: var(--portal-line);
  --genform-ui-notify-bg: var(--portal-surface);
  --genform-ui-notify-color: var(--portal-ink);
  --genform-ui-color-surface: var(--portal-surface);
  --genform-ui-color-bg-2: var(--portal-surface-soft);
  --genform-ui-color-ink: var(--portal-ink);
  --genform-ui-color-ink-2: var(--portal-ink);
  --genform-ui-color-ink-3: var(--portal-muted);
  --genform-ui-color-rule: var(--portal-line);
  --genform-ui-color-accent-soft: var(--portal-accent-soft);
  --genform-ui-color-action: var(--portal-action);
  --genform-ui-color-action-hover: var(--portal-action-hover);
}
.account-notifications--desktop { margin-left: auto; --genform-ui-notify-bg: var(--portal-surface-soft); }
.account-utilities { display: flex; align-items: center; gap: 12px; margin: -6px 4px 20px; padding-left: 12px; color: var(--portal-muted); font-size: 13px; }
@media (max-width: 920px) {
  .account-notifications--desktop, .account-utilities { display: none; }
}
