.member-popup {
  width: min(480px, calc(100vw - 28px));
  max-height: 85dvh;
  color: #f4f5ff;
  background: radial-gradient(ellipse at top right, #343168 0%, #1d2242 38%, #161721 78%);
  border: 1px solid #b3b9ed40;
  border-radius: 22px;
  padding: clamp(18px, 5vw, 30px);
  box-shadow: 0 18px 56px #05050cdf;
}
.member-popup::backdrop { background: #080810a8; }
.member-popup h2 { color: #fff; margin: 0 0 10px; }
.member-popup label, .member-popup input { display: block; width: 100%; }
.member-popup input, .member-popup button, .member-popup a {
  color: #fff; background: #292a52; border: 1px solid #bac1ea4f;
  font: inherit; padding: .5em .8em; border-radius: 10px; margin: .35em 0;
}
.member-popup button { cursor: pointer; }
.member-popup div + button { margin-top: .85em; }
.member-notice-list { max-height: min(50dvh, 420px); overflow-y: auto; }
.member-notice { padding-block: .7em; border-top: 1px solid #8190b755; }
.member-notice p { margin: 0; }
.member-notice small { display: block; }
.member-notice a, .member-notice button { font-size: .8rem; margin: .35em .4em 0 0; }
:where(.notification-toggle, #dashboard-notice summary) .member-unread {
  position: absolute; top: -3px; right: -3px; z-index: 2;
  border-radius: 99px; background: #b42332; color: white;
  min-width: 17px; padding: 0 4px; font: 700 11px/17px system-ui; text-align: center;
}

.member-popup a { display:inline-block; margin-right:.5em; }
.member-popup[data-variant="announcement"] {
  background: linear-gradient(145deg, #18181d, #0a0a0b 72%);
  border: 1px solid #35353e;
  box-shadow: 0 26px 80px #000e;
  color: #f6f6f8;
}
.member-popup[data-variant="announcement"]::backdrop { background: #000b; }
.member-popup[data-variant="announcement"] > h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.member-popup[data-variant="announcement"] > p { white-space: pre-wrap; overflow-wrap: anywhere; color: #e7e7ee; }
.member-popup[data-variant="announcement"] > button { background: #eeeef4; color: #121214; border-color: transparent; font-weight: 650; }
#site-announcement:not([hidden]) { margin-block: 12px 0; }
.member-notice > strong { display: block; color: inherit; margin-bottom: .25em; }
.member-notice[data-kind="discount"] > strong,
.member-notice[data-kind="referral_credit"] > strong { color: #a78ae7; }
:root[data-theme="light"] .member-notice:is([data-kind="discount"],[data-kind="referral_credit"]) > strong { color: #613e94; }
.dashboard-invoices { padding: clamp(14px, 2vw, 24px); border: 1px solid var(--portal-line); border-radius: 16px; background: var(--portal-surface); }
.dashboard-invoices h2 { margin-top: 0; }
#invoice-list-status:empty, #invoice-list:empty { display: none; }
#invoice-list { list-style: none; padding: 0; }
#invoice-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--portal-line); }
#invoice-list small { display: block; color: var(--portal-muted); }
#invoice-list a { flex-shrink: 0; padding: 7px 10px; border: 1px solid var(--portal-line); border-radius: 9px; }
#site-announcement[hidden], #print-invoice[hidden], #invoice-list-more[hidden] { display: none; }
