:root body :is(.dashboard-notification-panel, .dashboard-account-panel,
  .header-menu-panel.account-panel, .header-menu-panel.notification-panel) {
  background: linear-gradient(145deg, #242426, #101011 60%);
  border-color: #ffffff23;
  color: #f4f4f5;
  color-scheme: dark;
  box-shadow: 0 14px 36px #000a, inset 0 1px #d8d8df12;
}
:root body :is(.dashboard-notification-panel, .header-menu-panel.notification-panel) :is(p, small),
:root body :is(.dashboard-account-panel, .header-menu-panel.account-panel) :is(a, summary, button) {
  color: #f0f0f2;
}
:root body :is(.dashboard-account-panel, .header-menu-panel.account-panel) > :is(a, details > summary),
:root body :is(.dashboard-notification-panel, .header-menu-panel.notification-panel) button {
  border-color: #666669;
  background: #252528;
}
:root body :is(.dashboard-account-panel, .header-menu-panel.account-panel) > :is(a, details > summary):is(:hover, :focus-visible) {
  border-color: #a6a6ad;
  background: #3b3b3e;
}
:root body :is(#profile-sign-out-slot, .account-sign-out-row) :is(#sign-out, #header-sign-out) {
  color: #ffa2a7;
  background: #322023;
  border-color: #8c4b50;
}
@media (min-width: 761px) {
  #dashboard-validity { margin-inline-end: calc(-1 * min(10px, 1vw)); }
}
#dashboard-validity { padding-bottom: clamp(34px, 4vw, 52px); }
#dashboard-validity h2 { margin-bottom: 7px; }
#plan-validity-description {
  margin: 0;
  font-size: .84rem;
  font-weight: 400;
  color: var(--portal-muted);
}
#dashboard-validity .validity-track { height: 24px; }
#dashboard-validity .dashboard-validity-list { margin: 16px auto 0; }

:is(.account-panel,.dashboard-account-panel) .account-shortcuts {
  display: grid;
  gap: 5px;
  margin: 5px 0;
}
:root body .account-shortcuts > :is(a, button) {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #666669;
  border-radius: 8px;
  background: #252528;
  color: #f0f0f2;
  font: inherit;
  font-size: .87rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
:root body .account-shortcuts > :is(a, button):is(:hover, :focus-visible) {
  border-color: #a6a6ad;
  background: #3b3b3e;
}

:root body :is(.account-panel,.dashboard-account-panel) {
  width: min(252px, calc(100vw - 28px));
  max-height: min(76dvh, 560px);
  overflow: auto;
  border-color: #ffffff23;
  border-radius: 14px;
}
.account-menu-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 11px;
  margin-bottom: 4px;
  border-bottom: 1px solid #444448;
}
.account-menu-identity img { flex: none; border-radius: 6px; background: #18181a; }
.account-menu-identity div { min-width: 0; }
.account-menu-identity :is(strong, small) { display: block; overflow-wrap: anywhere; white-space: normal; }
.account-menu-identity strong { font-size: .87rem; }
.account-menu-identity small { color: #c2c2c8; font-size: .76rem; }
.account-menu-identity :is(strong, small):empty { display: none; }
:root body :is(.account-panel,.dashboard-account-panel) > :is(a,details > summary),
:root body :is(.account-panel,.dashboard-account-panel) .account-shortcuts > :is(a,button),
:root body :is(.account-panel,.dashboard-account-panel) :is(#theme-menu button, .dashboard-theme-menu button) {
  border: 0;
  border-radius: 6px;
  background: transparent;
}
:root body :is(.account-panel,.dashboard-account-panel) :is(a,button,summary):is(:hover,:focus-visible) {
  background: #333337;
}

@media (max-width: 560px) {
  .portal-page #dashboard-layout .dashboard-quick-actions,
  .portal-page #dashboard-layout .dashboard-quick-actions:has(#admin-link:not([hidden])) {
    width: 100%;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-rows: 1fr;
  }
  .portal-page #dashboard-layout .dashboard-quick-actions > :is(button,a) {
    min-width: 0;
    min-height: 44px;
    padding: 6px 4px;
    font-size: .87rem;
    white-space: normal;
  }
}


:root body #cart-dialog {
  background: #141415;
  border: 1px solid #ffffff22;
  color-scheme: dark;
}

:root body :is(.account-panel, .dashboard-account-panel) .account-shortcuts > :is(a, button) {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 680;
  line-height: 1.25;
  transition: background-color .2s ease, transform .2s ease;
}
.account-shortcuts .contact-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
}
:root body :is(.account-panel, .dashboard-account-panel) .account-referral:is(:hover, :focus-visible) {
  background: linear-gradient(110deg, #492b6d, #243f79);
  color: white;
}
:root body :is(.account-panel, .dashboard-account-panel) .account-offers:is(:hover, :focus-visible) {
  background: linear-gradient(110deg, #a2e3be, #a7d7fa);
  color: #102535;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .account-shortcuts :is(.account-referral, .account-offers):hover { transform: translateY(-1px); }
}
