body:has(main[data-account-page]) {
  --account-bg: #080d17;
  --account-sidebar: #070b12;
  --account-surface: #121b2a;
  --account-surface-raised: #172235;
  --account-border: #263244;
  --account-text: #fff;
  --account-muted: #a8b5c7;
  --account-red: #d71920;
  --account-red-hover: #f02a32;
  margin: 0;
  min-width: 320px;
  background: var(--account-bg);
  color: var(--account-text);
}

body:has(main[data-account-page]) .site-header,
body:has(main[data-account-page]) .site-footer,
body:has(main[data-account-page]) .staff-preview-banner {
  display: none;
}

[data-account-page] *,
[data-account-page] *::before,
[data-account-page] *::after {
  box-sizing: border-box;
}

[data-account-page] [hidden] {
  display: none !important;
}

.account-page {
  min-height: 100vh;
  color: var(--account-text);
  background: var(--account-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.account-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 252px;
  background: var(--account-sidebar);
  border-right: 1px solid #1c2634;
}

.account-brand {
  display: grid;
  place-items: center;
  height: 80px;
  padding: 16px 28px;
  border-bottom: 1px solid #1c2634;
}

.account-brand img {
  display: block;
  width: 216px;
  height: auto;
  object-fit: contain;
}

.account-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  overflow-y: auto;
  padding: 26px 12px 16px;
}

.account-nav-label {
  margin: 0;
  padding: 0 14px 8px;
  color: #8f9daf;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d6dfeb;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.account-nav-link:hover,
.account-nav-link:focus-visible {
  background: #141c29;
  color: #fff;
}

.account-nav-link.is-active {
  background: linear-gradient(90deg, rgba(215, 25, 32, .24), rgba(215, 25, 32, .07));
  color: #fff;
}

.account-nav-link.is-active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--account-red);
  content: "";
}

.account-nav-link svg,
.account-nav-link svg path,
.account-nav-link svg rect,
.account-nav-link svg circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-nav-link svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
}

.account-nav-divider {
  height: 1px;
  margin: 14px 4px 10px;
  background: #263244;
}

.account-logout {
  flex: 0 0 auto;
  margin: 12px;
  width: calc(100% - 24px);
}

.account-workspace {
  min-height: 100vh;
  margin-left: 252px;
}

.account-page.is-logged-out .account-sidebar,
.account-page.is-logged-out .account-topbar {
  display: none;
}

.account-page.is-logged-out .account-workspace {
  margin-left: 0;
}

.account-page.is-logged-out .account-login {
  min-height: 100vh;
}

.account-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 80px;
  padding: 0 32px;
  border-bottom: 1px solid #1c2634;
  background: rgba(7, 11, 18, .96);
  backdrop-filter: blur(12px);
}

.account-menu-toggle,
.account-topbar-brand {
  display: none;
}

.account-topbar-spacer {
  flex: 1;
}

.account-user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.account-avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #334153;
  border-radius: 50%;
  background: #172233;
  color: #f4f7fb;
  font-size: 13px;
  font-weight: 700;
}

.account-user-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.account-user-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-copy small {
  color: var(--account-muted);
  font-size: 12px;
}

.account-user-menu-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--account-muted);
  cursor: pointer;
}

.account-user-menu-button:hover,
.account-user-menu-button:focus-visible {
  background: #172233;
  color: #fff;
}

.account-user-menu-button svg,
.account-chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-user-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--account-border);
  border-radius: 5px;
  background: var(--account-surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

.account-user-dropdown button {
  padding: 10px 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--account-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-user-dropdown button:hover,
.account-user-dropdown button:focus-visible {
  background: #1b283b;
}

.account-content,
.account-login {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 30px 32px 48px;
}

.account-view[hidden],
.account-login[hidden] {
  display: none;
}

.account-welcome {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  min-height: 190px;
  margin: -30px -32px 24px;
  padding: 30px 34px 26px;
  background: linear-gradient(112deg, #05080e 0%, #09111e 54%, #101b2c 100%);
}

.account-welcome::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(215, 25, 32, .9), rgba(215, 25, 32, .48) 58%, transparent);
  content: "";
}

.account-welcome-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  max-width: 66%;
}

.account-welcome-logo {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 1 32%;
  width: 32%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  opacity: .2;
}

.account-eyebrow {
  margin: 0 0 8px;
  color: var(--account-red-hover);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.account-welcome h1,
.account-section-heading h1,
.account-login-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 720;
  line-height: 1.14;
}

.account-welcome h1 span:not(.account-greeting-prefix) {
  color: var(--account-red-hover);
}

.account-welcome h1 .account-greeting-prefix {
  color: #fff;
}

.account-welcome-subtitle {
  margin: 7px 0 0;
  color: #c3cfde;
  font-size: 17px;
}

.account-motto {
  margin: 16px 0 0 12px;
  color: #e2e9f0;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.account-overview-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.account-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--account-border);
  border-radius: 7px;
  background: linear-gradient(145deg, #131e2e, #0e1623);
  color: var(--account-text);
  text-align: left;
  text-decoration: none;
}

button.account-summary-card,
a.account-summary-card {
  font: inherit;
  cursor: pointer;
}

.account-action-card:hover,
.account-action-card:focus-visible {
  border-color: #58677b;
  background: #162236;
}

.account-card-icon {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid #38475b;
  border-radius: 6px;
  color: #f0f4fa;
}

.account-card-icon svg,
.account-security-link svg,
.account-quicklink svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-icon-accent {
  border-color: rgba(215, 25, 32, .6);
  color: var(--account-red-hover);
}

.account-summary-card > div,
.account-summary-card > span:not(.account-card-icon):not(.account-status-indicator) {
  min-width: 0;
}

.account-card-kicker,
.account-action-card .account-card-kicker {
  display: block;
  margin: 0 0 3px;
  color: var(--account-muted);
  font-size: 12px;
}

.account-summary-card h2,
.account-summary-card strong {
  display: block;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.account-identity-card h2 {
  color: var(--account-red-hover);
}

.account-summary-card p:not(.account-card-kicker) {
  margin: 3px 0 0;
  color: var(--account-muted);
  font-size: 12px;
}

.account-summary-card small {
  display: block;
  margin-top: 3px;
  color: var(--account-muted);
  font-size: 12px;
}

.account-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #b8e6cd;
  font-size: 11px;
  white-space: nowrap;
}

.account-status-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46bd78;
}

.account-action-card .account-chevron {
  flex: 0 0 18px;
  margin-left: auto;
  color: #9aabc0;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: start;
  gap: 16px;
}

.account-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--account-border);
  border-radius: 7px;
  background: var(--account-surface);
}

.account-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.account-panel-heading h2 {
  margin: 0;
  color: #f5f7fa;
  font-size: 17px;
  font-weight: 700;
}

.account-text-action,
.account-plain-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #dbe5f0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.account-text-action:hover,
.account-plain-button:hover {
  color: var(--account-red-hover);
}

.account-personal-summary {
  display: grid;
  margin: 0;
}

.account-personal-row {
  display: grid;
  grid-template-columns: minmax(92px, .36fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #263244;
}

.account-personal-row:last-child {
  border-bottom: 0;
}

.account-personal-row dt {
  color: #91a2b7;
  font-size: 12px;
}

.account-personal-row > span {
  color: #91a2b7;
  font-size: 12px;
}

.account-personal-row > strong {
  overflow-wrap: anywhere;
  margin: 0;
  color: #f5f7fa;
  font-size: 13px;
  font-weight: 500;
}

.account-security-link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 72px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #263244;
  background: transparent;
  color: var(--account-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-security-link:hover strong {
  color: var(--account-red-hover);
}

.account-security-symbol {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #dbe5f0;
}

.account-security-link > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.account-security-link strong {
  font-size: 14px;
  font-weight: 600;
}

.account-security-link small {
  color: var(--account-muted);
  font-size: 12px;
}

.account-security-link > .account-chevron {
  color: #91a2b7;
}

.account-quicklinks,
.account-membership-panel,
.account-tessera-summary {
  grid-column: 1 / -1;
}

.account-membership-details {
  display: grid;
  gap: 14px;
}

.account-membership-details h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.account-membership-details .account-membership-summary {
  margin-bottom: 16px;
}

.account-membership-status {
  color: #b7e4c7;
  font-size: 13px;
  font-weight: 650;
}

.account-membership-history {
  display: grid;
  gap: 10px;
}

.account-membership-history article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  padding: 12px;
  border: 1px solid var(--account-border);
  border-radius: 4px;
  background: #0d1521;
}

.account-membership-history small {
  grid-column: 1 / -1;
  color: var(--account-muted);
}

.account-benefit-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--account-text);
}

.account-membership-empty p {
  color: var(--account-muted);
}

.account-empty-state {
  display: grid;
  align-content: center;
  min-height: 108px;
  gap: 10px;
  color: var(--account-muted);
}

.account-empty-state p {
  margin: 0;
  font-size: 13px;
}

.account-empty-state a {
  justify-self: start;
  color: #e4ebf4;
  font-size: 13px;
  text-decoration: none;
}

.account-empty-state a:hover,
.account-empty-state a:focus-visible {
  color: var(--account-red-hover);
}

.account-quicklink-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-quicklink {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #2a394d;
  border-radius: 5px;
  background: #101a28;
  color: #f5f7fa;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-quicklink:hover,
.account-quicklink:focus-visible {
  border-color: var(--account-red);
  background: #182337;
}

.account-quicklink > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  background: #1c2a3c;
  color: #cbd7e6;
}

.account-quicklink strong {
  font-size: 13px;
}

.account-membership-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-membership-summary .account-personal-row {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px;
  border-radius: 4px;
  background: #0d1521;
}

.account-membership-summary .account-personal-row > span {
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 500;
}

.account-membership-summary .account-personal-row > strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.account-alfa-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.account-alfa-summary .account-personal-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #0d1521;
}

.account-alfa-summary .account-personal-row > strong {
  font-size: 12px;
}

.account-section-heading {
  margin: 8px 0 24px;
}

.account-section-heading p:last-child {
  margin: 8px 0 0;
  color: var(--account-muted);
}

.account-form-panel > p,
.account-form-panel form > p {
  color: var(--account-muted);
}

.account-form-grid,
.account-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-security-grid {
  align-items: start;
}

.account-profile-form label,
.account-panel label {
  display: grid;
  gap: 7px;
  color: #d7e0eb;
  font-size: 13px;
}

.account-profile-form input,
.account-panel input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #334359;
  border-radius: 4px;
  background: #0c1420;
  color: #fff;
  font: inherit;
}

.account-profile-form input:focus,
.account-panel input:focus {
  border-color: #8293aa;
  outline: 2px solid rgba(215, 25, 32, .35);
  outline-offset: 1px;
}

.account-profile-form input[readonly] {
  color: #9baabd;
  background: #111a27;
  cursor: not-allowed;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.account-primary-button,
.account-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--account-red);
  border-radius: 4px;
  background: var(--account-red);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.account-primary-button:hover,
.account-primary-button:focus-visible {
  border-color: var(--account-red-hover);
  background: var(--account-red-hover);
}

.account-secondary-button {
  border-color: #40516a;
  background: #192538;
}

.account-secondary-button:hover,
.account-secondary-button:focus-visible {
  border-color: #64748c;
  background: #22334a;
}

.account-panel form > .account-primary-button,
.account-panel form > .account-secondary-button {
  margin-top: 16px;
}

.account-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #718299;
  background: #0e1724;
  color: #b5c1d0;
  font-size: 13px;
}

.account-security-state,
[data-security-status] {
  color: var(--account-muted);
  font-size: 12px;
}

.account-security-state:empty {
  display: none;
}

.account-panel .password-field {
  display: flex;
  gap: 6px;
}

.account-panel .password-field input {
  flex: 1;
}

.account-panel .password-field button {
  flex: 0 0 auto;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #c4d0df;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.password-rules,
.recovery-box {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #2b394c;
  border-radius: 4px;
  background: #0d1521;
}

.password-rules p,
.recovery-box p {
  margin: 0;
  color: #eaf0f7;
}

.password-rules span {
  color: var(--account-muted);
  font-size: 12px;
}

.password-rules span.is-ok {
  color: #76d39e;
}

.two-factor-setup,
[data-two-factor-panel] > form {
  display: grid;
  gap: 14px;
}

.two-factor-setup p,
[data-two-factor-panel] > p {
  color: #d5dfeb;
}

.totp-qr {
  width: 180px;
  max-width: 100%;
  padding: 10px;
  border-radius: 4px;
  background: #fff;
}

.totp-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.recovery-box pre {
  overflow-x: auto;
  margin: 0;
  color: #fff;
}

.account-member-card-panel .alc-card-preview {
  width: min(100%, 520px);
  margin: 0 auto;
}

.account-member-card-panel .member-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.account-member-card-panel .member-card-meta .account-personal-row {
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 11px;
  border: 0;
  border-radius: 4px;
  background: #0d1521;
}

.account-member-list > p {
  color: var(--account-muted);
}

.account-member-list .member-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--account-border);
}

.account-member-list .member-event-row:first-child {
  padding-top: 0;
}

.account-member-list .member-event-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-member-list .member-event-row p {
  margin: 4px 0 0;
  color: var(--account-muted);
  font-size: 13px;
}

.account-member-list .btn {
  flex: 0 0 auto;
  width: auto;
  border: 1px solid #40516a;
  border-radius: 4px;
  background: #192538;
  color: #fff;
}

.account-membership-alert,
.form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 25, 32, .45);
  border-radius: 4px;
  background: rgba(215, 25, 32, .12);
  color: #ffdadd;
  font-size: 13px;
}

.form-alert.is-success {
  border-color: rgba(73, 190, 123, .45);
  background: rgba(73, 190, 123, .1);
  color: #b9f0cf;
}

.account-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 80px);
}

.account-login-copy p:not(.account-eyebrow) {
  max-width: 560px;
  color: var(--account-muted);
}

.account-login-links {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 26px;
}

.account-login-links a {
  color: #d7e1ed;
  text-decoration: none;
}

.account-login-links a:hover {
  color: var(--account-red-hover);
}

.account-login-form {
  display: grid;
  gap: 18px;
}

.account-login-form .account-primary-button {
  width: 100%;
}

.account-sidebar-backdrop {
  display: none;
}

[data-account-page] :focus-visible {
  outline: 2px solid #f02a32;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .account-overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-quicklinks,
  .account-membership-panel,
  .account-tessera-summary {
    grid-column: 1 / -1;
  }

  .account-quicklink-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-sidebar {
    z-index: 60;
    width: min(84vw, 300px);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.account-menu-open .account-sidebar {
    transform: translateX(0);
  }

  .account-sidebar-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, .6);
  }

  .account-workspace {
    margin-left: 0;
  }

  .account-topbar {
    height: 68px;
    gap: 12px;
    padding: 0 16px;
  }

  .account-menu-toggle,
  .account-topbar-brand {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #e5ebf2;
  }

  .account-menu-toggle {
    cursor: pointer;
  }

  .account-menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .account-topbar-brand img {
    display: block;
    width: 112px;
    height: auto;
    object-fit: contain;
  }

  .account-user-menu {
    min-width: 0;
    gap: 8px;
  }

  .account-user-copy {
    max-width: min(42vw, 210px);
  }

  .account-content,
  .account-login {
    padding: 22px 18px 36px;
  }

  .account-welcome {
    min-height: 186px;
    margin: -22px -18px 18px;
    padding: 25px 20px 22px;
  }

  .account-welcome-copy {
    max-width: 68%;
  }

  .account-welcome-logo {
    flex-basis: 28%;
    width: 28%;
  }

  .account-welcome h1,
  .account-section-heading h1,
  .account-login-copy h1 {
    font-size: 29px;
  }

  .account-overview-cards,
  .account-dashboard-grid,
  .account-security-grid,
  .account-login {
    grid-template-columns: 1fr;
  }

  .account-quicklinks,
  .account-membership-panel,
  .account-tessera-summary {
    grid-column: auto;
  }

  .account-login {
    align-content: start;
    gap: 24px;
    min-height: calc(100vh - 68px);
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-panel {
    padding: 17px;
  }

  .account-quicklink-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .account-welcome-copy {
    max-width: 100%;
  }

  .account-welcome-logo {
    display: none;
  }
}

@media (max-width: 420px) {
  .account-topbar {
    padding: 0 10px;
  }

  .account-topbar-brand {
    display: none;
  }

  .account-user-copy {
    max-width: 42vw;
  }

  .account-status-indicator {
    font-size: 0;
  }

  .account-summary-card {
    gap: 11px;
    padding: 13px;
  }

  .account-personal-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .account-quicklink-grid,
  .account-membership-summary,
  .account-member-card-panel .member-card-meta {
    grid-template-columns: 1fr;
  }

  .account-member-list .member-event-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-page *,
  .account-page *::before,
  .account-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
