:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #09151d;
  color: #e7f3f3;
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 12%, #123a48 0, transparent 34rem), #09151d;
}
a {
  color: #8ae6dc;
}
button,
input,
select {
  font: inherit;
}
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: #fff;
  color: #09151d;
  padding: 10px;
}
.auth-header {
  border-bottom: 1px solid #29434d;
  background: #0b1a22;
}
.auth-header-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.auth-header-inner > span {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-header-inner > a {
  margin-left: auto;
  min-height: 40px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 650;
}
.auth-header-inner > a:hover {
  text-decoration: underline;
}
.auth-main {
  min-height: calc(100vh - 63px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(28px, 6vh, 64px) 20px 64px;
}
/* Public account actions use a roomier surface without changing private settings. */
.auth-main > .auth-card {
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 44px);
  border-color: #33515b;
  border-radius: 18px;
  background: linear-gradient(160deg, #132c37, #10232d 60%);
}
.auth-main .auth-mark { width: 44px; height: 44px; margin-bottom: 24px; }
.auth-main .auth-card h1 { max-width: 20ch; line-height: 1.2; }
.auth-main .auth-card > p:not(.auth-eyebrow):not(.auth-message) {
  margin-block: 14px 0;
  font-size: 15px;
  line-height: 1.65;
}
.auth-main .auth-card form { margin-top: 28px; gap: 8px; }
.auth-main .auth-card label { font-size: 14px; line-height: 1.5; }
.auth-main .auth-card :is(input, select) {
  min-height: 48px;
  padding: 11px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 16px;
}
.auth-main :is(.auth-primary, .auth-secondary) {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  line-height: 1.4;
}
.auth-main .auth-primary { margin-top: 4px; }
.auth-main .auth-secondary { margin-top: 16px; }
.auth-main .auth-card a { text-underline-offset: 3px; }
.auth-main .auth-message { margin-top: 24px; padding: 14px 16px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-main #manual-token-field { display: grid; gap: 8px; min-width: 0; }
.auth-main #token { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.auth-main .auth-check-email { margin-top: 28px; padding-top: 28px; }
.auth-main .auth-check-email h2 { font-size: 24px; line-height: 1.3; }
.auth-main .auth-check-email p { font-size: 15px; line-height: 1.65; }
.auth-main #email-change-reauth { padding: 18px 0 4px; border-top: 1px solid #36505a; display: grid; gap: 8px; }
.auth-main #email-change-reauth p { margin: 0 0 10px; color: #b9d0d3; line-height: 1.6; }
@media (max-width: 420px) {
  .auth-main { padding: 24px 12px 40px; }
  .auth-main > .auth-card { padding: 24px; border-radius: 12px; }
  .auth-main .auth-card h1 { font-size: 28px; }
}
.account-layout {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
  padding: 48px 0 80px;
}
.account-navigation {
  min-width: 0;
  display: grid;
  gap: 5px;
  position: sticky;
  top: 20px;
}
.account-navigation-title {
  margin: 0 0 12px;
  padding: 0 12px;
  color: #a7c4c9;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.account-navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 7px;
  color: #c8dbde;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.account-navigation a:hover { background: #193441; color: #f2fbfa; }
.account-navigation a[aria-current="page"] {
  color: #effbf9;
  background: #1b4651;
  box-shadow: inset 3px 0 #56d9cb;
}
.account-navigation a:focus-visible {
  outline: 2px solid #72e5d7;
  outline-offset: 2px;
}
.account-main { min-width: 0; }
.account-content {
  width: 100%;
  max-width: 760px;
}
.auth-card {
  width: min(100%, 430px);
  min-width: 0;
  padding: 34px;
  border: 1px solid #33515b;
  border-radius: 14px;
  background: #10232d;
  box-shadow: 0 18px 42px #03090c55;
}
.profile-card {
  width: min(100%, 550px);
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 20px 0 22px;
}
.profile-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #245466;
  color: #ecf9f8;
  font-size: 22px;
  font-weight: 750;
}
.profile-identity > div { min-width: 0; display: grid; gap: 2px; }
.profile-identity strong, .profile-identity #profile-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity strong { font-size: 18px; }
.profile-identity #profile-username { color: #a8c5ca; font-size: 13px; }
.auth-link-button { display: inline-flex; align-items: center; text-decoration: none; }
.auth-mark {
  display: block;
  margin-bottom: 24px;
}
.auth-eyebrow {
  margin: 0 0 8px;
  color: #69d9c9;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-card h1 {
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.12;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.auth-card h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.auth-check-email {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #36505a;
}
.auth-check-email h2 { color: #eaf9f6; }
.auth-check-email p { color: #b9d0d3; line-height: 1.5; }
.auth-check-email .auth-secondary { margin: 6px 0 0; }
.auth-card > p {
  color: #b9d0d3;
  line-height: 1.5;
}
.auth-card form {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.auth-card form + form {
  border-top: 1px solid #36505a;
  padding-top: 22px;
}
.auth-card label,
.profile-facts dt {
  font-size: 13px;
  font-weight: 650;
  color: #c4dadd;
}
.auth-card input,
.auth-card select {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  color: #f0fafa;
  background: #0a1921;
  border: 1px solid #52717a;
  border-radius: 6px;
  margin-bottom: 9px;
}
.auth-card input:focus-visible,
.auth-card select:focus-visible,
.auth-card button:focus-visible,
.auth-header a:focus-visible {
  outline: 2px solid #72e5d7;
  outline-offset: 2px;
}
.auth-primary,
.auth-secondary {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.auth-primary {
  border: 1px solid #72dfd0;
  background: #41c5b5;
  color: #06191d;
}
.auth-primary:hover {
  background: #6fe3d4;
}
.auth-secondary {
  margin-top: 20px;
  border: 1px solid #55717c;
  background: transparent;
  color: #dfeded;
}
.auth-secondary:hover {
  background: #24424d;
}
.auth-card button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.auth-message {
  padding: 11px;
  border-radius: 6px;
  border: 1px solid #a46c43;
  background: #38271c;
  color: #ffe1bb;
}
.auth-message[hidden] {
  display: none;
}
.profile-facts {
  display: grid;
  gap: 0;
  margin: 24px 0;
}
.profile-facts > div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #334c55;
}
.profile-facts dd {
  margin: 0;
  text-align: left;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.product-menu-panel button {
  width: 100%;
  text-align: left;
}
@media (max-width: 420px) {
  .auth-card {
    padding: 24px;
  }
  .auth-header-inner > span {
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .account-layout {
    width: min(100% - 28px, 620px);
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 24px;
  }
  .account-navigation {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #36505a;
    padding-bottom: 14px;
  }
  .account-navigation-title { grid-column: 1 / -1; margin-bottom: 2px; }
  .account-navigation a { padding-inline: 9px; font-size: 13px; }
  .account-navigation a[aria-current="page"] { box-shadow: inset 0 -3px #56d9cb; }
}
/* Public Profile and private Account settings share these compact controls. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.account-content.profile-card { width: min(100%, 680px); max-width: 680px; margin-bottom: 16px; box-shadow: none; }
.account-page-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-page-heading > div { min-width: 0; }
.account-page-heading h1 { margin-bottom: 4px; }
.account-page-heading p, .account-section-heading p { margin: 0; color: #abc6cb; line-height: 1.4; font-size: 13px; }
.account-compact-list { margin: 23px 0 0; }
.account-compact-list > div { display: grid; grid-template-columns: minmax(105px, 140px) minmax(0, 1fr) auto; align-items: center; column-gap: 14px; min-height: 58px; padding: 8px 0; border-top: 1px solid #35515b; }
.account-compact-list dt { color: #b9d2d6; font-size: 13px; font-weight: 650; }
.account-compact-list dd { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.account-row-action { min-height: 38px; padding: 6px 11px; border: 1px solid #54727d; border-radius: 6px; background: transparent; color: #9be9df; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.account-row-action:hover { color: #e8fffa; background: #21424d; border-color: #6bdace; }
.account-row-action:focus-visible, .account-save:focus-visible, .account-edit-dialog :focus-visible, .account-switch-row input:focus-visible { outline: 2px solid #72e5d7; outline-offset: 2px; }
.account-danger { margin-top: 28px; padding-top: 18px; border-top: 1px solid #754d4b; }
.account-danger h2 { margin: 0 0 8px; font-size: 17px; color: #f2cccc; }
.account-danger p { max-width: 56ch; color: #d8c7c5; line-height: 1.5; }
.account-danger .account-row-action { color: #ffd5ce; border-color: #9c655d; }
.account-danger .account-row-action:hover { background: #492b2c; border-color: #dba39a; }
.account-section-heading { display: flex; align-items: flex-start; gap: 13px; }
.account-section-heading > svg { width: 24px; height: 24px; flex: none; color: #73dcd1; }
.account-section-heading > div { min-width: 0; }
.account-section-heading h2 { margin: 0 0 4px; }
.account-content form { margin-top: 14px; }
.account-link-fields { display: grid; grid-template-columns: minmax(96px, 124px) minmax(0, 1fr); align-items: center; gap: 8px 12px; }
.account-link-fields label { display: flex; align-items: center; gap: 8px; }
.account-link-fields svg, .account-website-list svg { width: 18px; height: 18px; flex: none; color: #90dcd4; }
.account-link-fields input, .account-website-list input { margin: 0; min-width: 0; }
.account-website-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.account-website-heading h3 { font-size: 14px; margin: 0; }
.account-website-list { display: grid; gap: 7px; }
.account-website-list > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-website-list label { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.account-website-list input { flex: 1; }
.account-website-list button { flex: none; }
.account-save { justify-self: end; min-width: 114px; }
.account-content textarea { width: 100%; min-height: 90px; resize: vertical; padding: 10px; border: 1px solid #52717a; border-radius: 6px; color: #f0fafa; background: #0a1921; font: inherit; }
#signature-count { justify-self: end; color: #b9d0d3; font-size: 12px; }
.account-inline-message { margin: 3px 0; padding: 8px 10px; border-radius: 6px; background: #263c43; color: #f0f7f5; font-size: 13px; }
.account-inline-message[hidden] { display: none; }
.account-metadata-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: min(100%, 680px); margin: 0 0 16px; padding: 10px 13px; border: 1px solid #42636b; border-radius: 8px; background: #183039; color: #e2f4f1; font-size: 13px; }
.account-metadata-notice[hidden] { display: none; }
.account-metadata-error { border-color: #b77968; background: #372b2d; }
.account-metadata-notice button { flex: none; }
.account-content :is(input, textarea, button):disabled { cursor: not-allowed; opacity: .55; }
.account-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid #35515b; cursor: pointer; }
.account-switch-row span { display: grid; gap: 4px; }
.account-switch-row small { max-width: 54ch; color: #adc8cb; line-height: 1.4; font-size: 12px; font-weight: 400; }
.account-switch-row input { appearance: none; flex: none; width: 44px; height: 26px; border: 1px solid #79949b; border-radius: 16px; background: #31505a; cursor: pointer; position: relative; }
.account-switch-row input::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e9f7f5; transition: transform 120ms ease; }
.account-switch-row input:checked { background: #218a80; border-color: #6ae4d2; }
.account-switch-row input:checked::before { transform: translateX(18px); }
.account-empty-state { padding-top: 17px; }
.account-empty-state strong { font-size: 14px; }
.account-empty-state p { margin: 5px 0 0; color: #abc6cb; font-size: 13px; line-height: 1.4; }
.account-edit-dialog { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 26px; border: 1px solid #537884; border-radius: 12px; background: #10232d; color: #ecf7f6; box-shadow: 0 26px 76px #000a; }
.account-edit-dialog::backdrop { background: #010c12b8; }
.account-edit-dialog h2 { margin: 0 0 6px; font-size: 22px; }
.account-edit-dialog p { color: #bed2d5; line-height: 1.4; }
.account-edit-dialog form { display: grid; gap: 9px; }
#account-dialog-fields { display: grid; gap: 8px; }
#account-dialog-fields label { font-size: 13px; font-weight: 650; }
#account-dialog-fields input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #587782; border-radius: 6px; background: #0a1921; color: #eff9f7; font: inherit; }
.account-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.account-dialog-actions button { min-height: 40px; margin: 0; }
.account-mfa { margin-top: 25px; padding-top: 15px; border-top: 1px solid #35515b; }
.account-mfa h2 { margin: 0 0 5px; font-size: 17px; }
.account-mfa > p { color: #abc6cb; font-size: 13px; line-height: 1.45; }
.account-mfa .account-compact-list { margin-top: 12px; }
#mfa-dialog-content { display: grid; gap: 11px; min-width: 0; }
#mfa-dialog-content > form { display: grid; gap: 11px; margin: 0; }
#mfa-dialog-content .mfa-field { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
#mfa-dialog-content input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #587782; border-radius: 6px; background: #0a1921; color: #eff9f7; font: inherit; }
#mfa-dialog-content :is(button, input):focus-visible, #mfa-dialog-close:focus-visible { outline: 2px solid #72e5d7; outline-offset: 2px; }
.mfa-qr { display: block; width: min(100%, 220px); height: auto; margin-inline: auto; padding: 8px; border-radius: 7px; background: white; }
.mfa-manual-key { display: block; overflow-wrap: anywhere; text-align: center; letter-spacing: .09em; font-size: 15px; color: #f1faf8; }
.mfa-codes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin: 0; padding-left: 22px; font-variant-numeric: tabular-nums; }
.mfa-codes li { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; white-space: nowrap; }
#mfa-dialog-content .auth-secondary { justify-self: start; }
#mfa-login-panel h2 { font-size: 20px; margin: 18px 0 5px; }
#mfa-login-panel form { display: grid; gap: 10px; }
#mfa-login-panel :is(input, button):focus-visible { outline: 2px solid #72e5d7; outline-offset: 2px; }
@media (max-width: 500px) {
  .account-compact-list > div { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .account-compact-list dd { grid-column: 1 / -1; grid-row: 2; }
  .account-compact-list button { grid-column: 2; grid-row: 1; }
  .account-link-fields { grid-template-columns: minmax(0, 1fr); }
  .account-link-fields label { margin-top: 4px; }
  .account-website-list > div { flex-wrap: wrap; }
  .account-website-list label { flex-basis: 100%; }
  .account-website-list button { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .account-switch-row input::before { transition: none; } }
