.settings-page {
  --site-navy: #062b63;
  --site-navy-deep: #041f4c;
  --site-blue: #0878e8;
  --site-blue-bright: #19a4f3;
  --site-blue-pale: #effaff;
}

.settings-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.settings-page .utility-bar {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  background: linear-gradient(90deg, #074a90, var(--site-navy));
}

.settings-page .utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 44px));
  min-height: 30px;
}

.settings-page .utility-bar p {
  margin: 0;
}

.settings-page .utility-bar__links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.settings-page .utility-bar__links i {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, .45);
}

.settings-page .site-header {
  position: relative;
  z-index: 30;
  color: var(--site-navy);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 3px 18px rgba(6, 43, 99, .08);
}

.settings-page .nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  width: min(1180px, calc(100% - 44px));
  min-height: 78px;
}

.settings-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--site-navy);
  text-decoration: none;
}

.settings-page .brand__mark {
  display: block;
  width: 54px;
  height: 54px;
  overflow: visible;
  fill: none;
  stroke: var(--site-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-page .brand__midline {
  stroke: var(--site-blue);
  stroke-width: 2.15;
}

.settings-page .brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.settings-page .brand__copy strong {
  font-size: 1.58rem;
  font-weight: 800;
  letter-spacing: -.045em;
}

.settings-page .brand__copy small {
  margin-top: 5px;
  color: var(--site-navy);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.settings-page .primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 34px;
  align-self: stretch;
}

.settings-page .primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--site-navy);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.settings-page .primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--site-blue);
  border-radius: 4px 4px 0 0;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.settings-page .primary-nav a:hover::after,
.settings-page .primary-nav a:focus-visible::after,
.settings-page .primary-nav a.is-active::after {
  transform: scaleX(1);
}

.settings-page .primary-nav a.is-active {
  color: var(--site-blue);
}

.settings-page .nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: var(--site-blue-pale);
}

.settings-page .nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  background: var(--site-navy);
  border-radius: 4px;
}

.settings-page .button--nav {
  min-height: 46px;
  padding: 12px 24px;
  color: #fff;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--site-blue-bright), var(--site-blue));
  border-radius: 10px;
  box-shadow: 0 10px 23px rgba(8, 120, 232, .24);
}

.settings-page .primary-nav a:focus-visible,
.settings-page .brand:focus-visible,
.settings-page .nav-toggle:focus-visible {
  outline: 4px solid rgba(8, 120, 232, .26);
  outline-offset: 4px;
}

.settings-page .site-footer {
  color: rgba(255, 255, 255, .86);
  background: var(--site-navy);
}

.settings-page .footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  width: min(1180px, calc(100% - 44px));
  padding-block: 32px 24px;
}

.settings-page .brand--footer {
  color: #fff;
}

.settings-page .brand--footer .brand__mark {
  width: 48px;
  height: 48px;
  stroke: #fff;
}

.settings-page .brand--footer .brand__midline {
  stroke: #fff;
}

.settings-page .brand--footer .brand__copy strong {
  font-size: 1.35rem;
}

.settings-page .brand--footer .brand__copy small {
  color: rgba(255, 255, 255, .86);
}

.settings-page .footer-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 30px;
}

.settings-page .footer-nav a {
  color: rgba(255, 255, 255, .86);
  font-size: .82rem;
  font-weight: 400;
  text-decoration: none;
}

.settings-page .footer-nav a:hover,
.settings-page .footer-nav a[aria-current="page"] {
  color: #fff;
}

.settings-page .footer__note {
  margin: 0;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1rem;
  transform: rotate(-3deg);
}

.settings-page .footer__bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(1180px, calc(100% - 44px));
  padding: 18px 0 24px;
  font-size: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.settings-page .footer__bottom p {
  margin: 0;
}

.settings-hero {
  padding-bottom: 136px;
}

.settings-layout {
  grid-template-columns: minmax(0, 1fr) 250px;
}

.account-flow__panel h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.15rem;
}

.account-flow__panel a {
  color: #fff;
  font-weight: 700;
}

.account-flow[hidden] {
  display: none;
}

.account-summary {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
}

.account-summary div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) 1.2fr;
  gap: 20px;
  padding: 12px 14px;
  background: rgba(10,43,102,.3);
}

.account-summary dt {
  font-weight: 700;
}

.account-summary dd {
  margin: 0;
  text-align: right;
}

.settings-card section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.settings-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.settings-form label {
  font-weight: 700;
}

.settings-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  color: var(--deep);
  font: inherit;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: 0;
}

.settings-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,123,233,.14);
}

.settings-form .button {
  width: max-content;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.settings-message {
  min-height: 1.7em;
  margin: 12px 0 0 !important;
  font-size: .9rem;
  font-weight: 600;
}

.settings-message[data-tone="success"] {
  color: #147248;
}

.settings-message[data-tone="error"] {
  color: #b42f47;
}

.settings-link-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.settings-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  color: var(--navy);
  text-decoration: none;
}

.settings-link-list a + a {
  border-top: 1px solid var(--line);
}

.settings-link-list a:hover {
  background: var(--pale);
}

.settings-link-list strong,
.settings-link-list small {
  display: block;
}

.settings-link-list small {
  margin-top: 3px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .settings-page .utility-bar__links {
    display: none;
  }

  .settings-page .utility-bar__inner {
    justify-content: center;
  }

  .settings-page .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .settings-page .nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
    justify-self: end;
  }

  .settings-page .primary-nav {
    position: absolute;
    top: 100%;
    right: 22px;
    left: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .settings-page .primary-nav.is-open {
    display: flex;
  }

  .settings-page .primary-nav a {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .settings-page .primary-nav a::after {
    display: none;
  }

  .settings-page .primary-nav a:hover,
  .settings-page .primary-nav a:focus-visible {
    color: var(--site-blue);
    background: var(--site-blue-pale);
  }

  .settings-page .footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .settings-page .nav-shell {
    gap: 20px;
  }

  .settings-page .primary-nav {
    gap: 22px;
  }
}
@media (max-width: 1180px) {
  .settings-page .button--nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .settings-page .utility-bar__inner,
  .settings-page .nav-shell,
  .settings-page .footer__inner,
  .settings-page .footer__bottom {
    width: min(calc(100% - 28px), 1180px);
  }

  .settings-page .nav-shell {
    min-height: 68px;
  }

  .settings-page .brand__mark {
    width: 47px;
    height: 47px;
  }

  .settings-page .brand__copy strong {
    font-size: 1.34rem;
  }

  .settings-page .footer-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .settings-page .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .settings-hero {
    padding-bottom: 112px;
  }

  .account-summary div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .account-summary dd {
    text-align: left;
  }

  .settings-form .button {
    width: 100%;
  }
}

/* Keep account status first when Settings stacks on small screens. */
@media (max-width: 860px) {
  .settings-layout > .side-card { grid-row: auto; }
}

/* Outline the two top Settings cards in the site navy. */
.settings-page .settings-layout > .side-card {
  border: 2px solid var(--site-navy);
}

/* Light account buttons need dark text instead of the panel link color. */
.account-flow__panel a.button--light { color: #062b63; }
.account-flow__panel a.button--light:hover { color: #062b63; }

/* Keep membership wording consistent with the app and wrap long email addresses. */
.settings-page .account-membership {
  margin: 0 0 22px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.settings-page .flow-status:empty { display: none; }
.settings-page .verified-account { overflow-wrap: anywhere; }

/* Screenshot wording, with expandable website login forms. */
.settings-page .account-description { margin: 0 0 22px; }
.account-login-details { margin-bottom: 18px; }
.account-login-details summary { cursor: pointer; list-style: none; }
.account-login-details summary::-webkit-details-marker { display: none; }
.account-login-details[open] summary { margin-bottom: 20px; }
.account-return { margin-top: 22px; }
.settings-page .account-return { color: #062b63; }
