.account-body{background:#f3f6fb;color:#14213d}.account-shell{min-height:100vh}.account-page{width:min(1120px,calc(100% - 32px));margin:32px auto 100px}.account-auth-page{display:grid;place-items:center;min-height:58vh}.account-auth-card,.account-panel,.account-dashboard-hero{background:#fff;border:1px solid #dbe3ef;border-radius:20px;box-shadow:0 12px 35px rgba(31,49,86,.08)}.account-auth-card{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(300px,1.2fr);gap:36px;width:min(860px,100%);padding:36px}.account-dashboard-hero{padding:28px 32px;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}.account-dashboard-hero h1{margin:.25rem 0}.account-eyebrow{color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.account-panel{padding:26px}.account-panel h2{font-size:1.25rem}.account-wide{grid-column:1/-1}.account-form{display:grid;gap:14px}.account-form label{display:grid;gap:7px;font-weight:650}.account-form input,.account-form select{width:100%;min-height:44px;border:1px solid #b9c7da;border-radius:10px;padding:9px 11px;background:#fff}.account-check{grid-template-columns:auto 1fr!important;align-items:start}.account-check input{width:22px;min-height:22px}.account-password-field{display:flex}.account-password-field input{border-radius:10px 0 0 10px}.account-password-field button{min-width:74px;border:1px solid #b9c7da;border-left:0;border-radius:0 10px 10px 0;background:#f7f9fc}.account-action{display:block;width:100%;min-height:48px;text-align:left;border:1px solid #ccd7e6;border-radius:11px;background:#fff;padding:11px 13px;margin:9px 0}.account-action:hover,.account-action:focus-visible{border-color:#2563eb}.account-action.danger{color:#b42318}.account-alert{padding:14px 16px;border-radius:12px;margin:0 0 18px;background:#eef4ff}.account-alert.success{background:#eaf9ef;color:#146c2e}.account-alert.error{background:#fff0f0;color:#a01717}.account-alert.warning{background:#fff6de;color:#795600}.account-alert small{display:block;margin-top:5px}.account-session-list{list-style:none;padding:0;margin:0}.account-session-list li{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 0;border-top:1px solid #e5eaf2}.account-session-list div{display:grid}.account-session-list small{color:#5f6f86}.account-dialog{border:0;padding:0;border-radius:18px;width:min(520px,calc(100% - 24px));box-shadow:0 24px 75px rgba(0,0,0,.28)}.account-dialog::backdrop{background:rgba(15,23,42,.58)}.account-dialog>div{padding:24px}.account-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.account-dialog header button{width:44px;height:44px;border:0;background:transparent;font-size:1.8rem}.account-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.account-legal{max-width:860px}.account-legal h2{font-size:1.2rem;margin-top:26px}.account-footer{text-align:center;padding:24px 16px 90px}.header-account-sync-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#94a3b8}.header-account-sync-dot.is-synced{background:#22c55e}.header-account-sync-dot.is-syncing{background:#eab308}.header-account-sync-dot.is-error,.header-account-sync-dot.is-offline{background:#ef4444}@media(max-width:700px){.account-page{width:min(100% - 20px,1120px);margin-top:18px}.account-auth-card{grid-template-columns:1fr;padding:22px;gap:18px}.account-dashboard-hero{align-items:flex-start;padding:21px;flex-direction:column}.account-grid{grid-template-columns:1fr}.account-wide{grid-column:auto}.account-panel{padding:21px}}@media(prefers-reduced-motion:reduce){.account-body *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Public shared-account entry. The visual structure follows the proven
   MTGChecker account layout, adapted to PokeChecker colors and components. */
.account-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42) 0 25%, transparent 25% 50%, rgba(255, 255, 255, .34) 50% 75%, transparent 75%) 0 0 / 44px 44px,
    radial-gradient(circle at 12% 0%, rgba(242, 183, 5, .18), transparent 31%),
    linear-gradient(135deg, #f5f8ff 0%, #eefbf4 45%, #fff7e6 100%);
  color: #1f2933;
}

.account-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.account-page {
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.account-auth-page {
  display: grid;
  min-height: 0;
  place-items: start center;
}

.account-auth-card.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(270px, .84fr) minmax(380px, 1.16fr);
  gap: 0;
  width: min(100%, 920px);
  overflow: hidden;
  border: 1px solid rgba(13, 79, 196, .17);
  border-radius: 20px;
  padding: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 54px rgba(6, 43, 120, .1);
}

.account-auth-context {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(13, 79, 196, .14);
  padding: clamp(30px, 4vw, 44px);
  background:
    radial-gradient(circle at 12% 10%, rgba(242, 183, 5, .2), transparent 13rem),
    radial-gradient(circle at 105% 92%, rgba(54, 91, 215, .13), transparent 15rem),
    linear-gradient(145deg, rgba(240, 246, 255, .98), rgba(248, 252, 255, .94));
}

.account-auth-context::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 22px solid rgba(54, 91, 215, .045);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.account-auth-context > * {
  position: relative;
  z-index: 1;
}

.account-auth-context-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(13, 79, 196, .16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .95), transparent 34%),
    linear-gradient(145deg, rgba(242, 183, 5, .28), rgba(54, 91, 215, .17));
  color: #0d4fc4;
  font-size: 21px;
  box-shadow: 0 9px 20px rgba(13, 79, 196, .09);
}

.account-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #365bd7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-auth-card h1 {
  margin: 0;
  color: #071f52;
  font-size: clamp(30px, 3.5vw, 39px);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.account-auth-context > p {
  margin: 10px 0 0;
  color: #52657e;
  font-size: 15px;
  line-height: 1.5;
}

.account-auth-benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  color: #405168;
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.account-auth-benefits li {
  position: relative;
  padding-left: 24px;
}

.account-auth-benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #1f9d73;
  content: "\2713";
  font-weight: 900;
}

.account-auth-content {
  min-width: 0;
  padding: clamp(30px, 4vw, 44px);
  background: rgba(255, 255, 255, .96);
}

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

.account-form label:not(.account-check),
.account-inline-form label {
  display: block;
  margin: 5px 0 0;
  color: #243b5a;
  font-size: 14px;
  font-weight: 800;
}

.account-form input:not([type="checkbox"]),
.account-form select,
.account-inline-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(82, 101, 126, .38);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .98);
  color: #172033;
  font: inherit;
}

.account-form input:focus,
.account-form select:focus,
.account-inline-form input:focus {
  border-color: #365bd7;
  outline: 3px solid rgba(54, 91, 215, .14);
  outline-offset: 1px;
}

.account-form input:disabled,
.account-form button:disabled {
  background-color: #f1f5f9;
  color: #7b8798;
  cursor: not-allowed;
}

.account-password-field {
  position: relative;
  display: block;
}

.account-password-field input {
  padding-right: 84px !important;
  border-radius: 10px !important;
}

.account-password-field button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 70px;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: #edf4ff;
  color: #0b4fc4;
  font-size: 12px;
  font-weight: 900;
}

.account-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  border: 1px solid #2349bd;
  background: linear-gradient(180deg, #4265df, #2847b8);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 9px 20px rgba(54, 91, 215, .2);
}

.account-primary:hover,
.account-primary:focus-visible {
  border-color: #17369d;
  background: linear-gradient(180deg, #365bd7, #203da8);
  color: #fff;
}

.account-primary:disabled {
  border-color: #c7d2df;
  background: #e5eaf2;
  color: #718096;
  box-shadow: none;
}

.account-readiness-notice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(181, 71, 8, .2);
  background: #fff9e9;
}

.account-readiness-notice strong,
.account-readiness-notice span {
  display: block;
}

.account-readiness-notice strong {
  color: #805600;
}

.account-readiness-notice span {
  color: #6d5a2c;
  font-size: 13px;
  line-height: 1.45;
}

.account-auth-recovery {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

.account-auth-links {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

.account-auth-recovery a,
.account-auth-links a,
.account-resend summary {
  color: #0b4fc4;
  text-underline-offset: 2px;
}

.account-auth-alternative {
  display: grid;
  gap: 11px;
  margin-top: 18px;
  text-align: center;
}

.account-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #718096;
  font-size: 12px;
}

.account-auth-divider::before,
.account-auth-divider::after {
  height: 1px;
  background: #d9e2ec;
  content: "";
}

.account-auth-alternative p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #52657e;
  font-size: 13px;
}

.account-auth-alternative p strong {
  color: #122a50;
  font-size: 14px;
}

.account-create-cta {
  min-height: 46px;
  border: 1px solid rgba(13, 79, 196, .3);
  background: linear-gradient(180deg, #fff, #edf4ff);
  color: #0b4fc4;
  font-weight: 800;
}

.account-resend {
  margin-top: 16px;
  border-top: 1px solid #e1e8f0;
  padding-top: 10px;
}

.account-resend summary {
  min-height: 44px;
  padding: 12px 2px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.account-inline-form {
  display: grid;
  gap: 9px;
  border-radius: 10px;
  padding: 12px;
  background: #f7faff;
}

.account-footer {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  border-top: 0;
  padding: 16px 16px 90px;
  color: #667085;
}

.account-legal {
  max-width: 920px;
}

.account-legal .account-panel {
  padding: clamp(24px, 4vw, 42px);
  line-height: 1.65;
}

.account-legal h1 {
  margin: 0;
  color: #071f52;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -.025em;
}

.account-legal h2 {
  margin: 0 0 9px;
  color: #122a50;
  font-size: 20px;
  font-weight: 850;
}

.account-legal-lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: #52657e;
  font-size: 16px;
  line-height: 1.6;
}

.account-privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 25px 0 4px;
}

.account-privacy-summary > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(54, 91, 215, .2);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(240, 246, 255, .94), rgba(242, 251, 247, .88));
}

.account-privacy-summary strong {
  color: #173768;
  font-size: 13px;
}

.account-privacy-summary span {
  color: #52657e;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-privacy-section {
  margin-top: 25px;
  border-top: 1px solid #e1e8f0;
  padding-top: 23px;
}

.account-privacy-section p,
.account-privacy-section ul {
  color: #405168;
}

.account-privacy-section p:last-child,
.account-privacy-section ul:last-child {
  margin-bottom: 0;
}

.account-privacy-section ul {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}

.account-privacy-bases {
  overflow: hidden;
  border: 1px solid #d8e3f0;
  border-radius: 12px;
}

.account-privacy-basis {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.account-privacy-basis + .account-privacy-basis {
  border-top: 1px solid #d8e3f0;
}

.account-privacy-basis > div {
  min-width: 0;
  padding: 13px 15px;
}

.account-privacy-basis > div + div {
  border-left: 1px solid #d8e3f0;
  background: #f5f8ff;
}

.account-privacy-basis strong {
  display: block;
  margin-bottom: 4px;
  color: #173768;
  font-size: 11px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.account-privacy-basis p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.account-privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 29px;
  border-top: 1px solid #e1e8f0;
  padding-top: 23px;
}

.account-privacy-actions .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .account-page {
    width: min(100% - 24px, 620px);
    padding-top: 24px;
  }

  .account-auth-card.account-auth-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 620px);
  }

  .account-auth-context {
    border-right: 0;
    border-bottom: 1px solid rgba(13, 79, 196, .14);
    padding: 25px 26px;
  }

  .account-auth-content {
    padding: 25px 26px 28px;
  }

  .account-auth-context-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 18px;
  }

  .account-auth-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 17px;
  }

  .account-auth-mode-registration .account-auth-context {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 13px;
    row-gap: 1px;
    padding-block: 14px;
  }

  .account-auth-mode-registration .account-auth-context-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
  }

  .account-auth-mode-registration .account-eyebrow,
  .account-auth-mode-registration .account-auth-context h1,
  .account-auth-mode-registration .account-auth-context > p {
    grid-column: 2;
    min-width: 0;
  }

  .account-auth-mode-registration .account-eyebrow {
    grid-row: 1;
    margin-bottom: 0;
  }

  .account-auth-mode-registration .account-auth-context h1 {
    grid-row: 2;
    font-size: 27px;
  }

  .account-auth-mode-registration .account-auth-context > p {
    grid-row: 3;
    margin-top: 2px;
  }

  .account-auth-mode-registration .account-auth-benefits {
    display: none;
  }

  .account-auth-mode-reset-request .account-auth-context {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 13px;
    row-gap: 1px;
    padding-block: 14px;
  }

  .account-auth-mode-reset-request .account-auth-context-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
  }

  .account-auth-mode-reset-request .account-eyebrow,
  .account-auth-mode-reset-request .account-auth-context h1,
  .account-auth-mode-reset-request .account-auth-context > p {
    grid-column: 2;
    min-width: 0;
  }

  .account-auth-mode-reset-request .account-eyebrow {
    grid-row: 1;
    margin-bottom: 0;
  }

  .account-auth-mode-reset-request .account-auth-context h1 {
    grid-row: 2;
    font-size: 27px;
  }

  .account-auth-mode-reset-request .account-auth-context > p {
    grid-row: 3;
    margin-top: 2px;
  }

  .account-auth-mode-reset-request .account-eyebrow {
    display: none;
  }

  .account-auth-mode-reset-request .account-auth-context-icon {
    grid-row: 1 / 3;
  }

  .account-auth-mode-reset-request .account-auth-context h1 {
    grid-row: 1;
  }

  .account-auth-mode-reset-request .account-auth-context > p {
    grid-row: 2;
  }

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

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

  .account-privacy-basis > div + div {
    border-top: 1px dashed #d8e3f0;
    border-left: 0;
  }
}

@media (max-width: 575.98px) {
  .account-page {
    width: min(100% - 16px, 520px);
    padding: 14px 0 36px;
  }

  .account-auth-card.account-auth-layout {
    border-radius: 16px;
  }

  .account-auth-context,
  .account-auth-content {
    padding: 20px 17px;
  }

  .account-auth-mode-registration .account-auth-context {
    padding-block: 14px;
  }

  .account-auth-mode-registration .account-auth-context > p {
    display: none;
  }

  .account-auth-mode-registration .account-auth-context-icon {
    grid-row: 1 / 3;
  }

  .account-auth-mode-registration .account-auth-context h1 {
    font-size: 24px;
  }

  .account-auth-mode-registration .account-auth-content {
    padding: 16px 17px 19px;
  }

  .account-auth-mode-registration .account-form {
    gap: 7px;
  }

  .account-auth-mode-registration .account-form label:not(.account-check) {
    margin-top: 2px;
  }

  .account-auth-mode-registration .account-form input:not([type="checkbox"]) {
    min-height: 44px;
    padding-block: 8px;
  }

  .account-auth-mode-registration .account-check {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.35;
  }

  .account-auth-mode-registration .account-auth-links {
    margin-top: 6px;
  }

  .account-auth-mode-reset-request .account-auth-context {
    padding-block: 14px;
  }

  .account-auth-mode-reset-request .account-auth-context h1 {
    font-size: 24px;
  }

  .account-auth-mode-reset-request .account-auth-content {
    padding: 16px 17px 19px;
  }

  .account-auth-mode-reset-request .account-form {
    gap: 8px;
  }

  .account-auth-mode-reset-request .account-form label:not(.account-check) {
    margin-top: 0;
  }

  .account-auth-mode-reset-request .account-auth-links {
    margin-top: 6px;
  }

  .account-auth-mode-login .account-auth-context {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 13px;
    row-gap: 1px;
    padding-block: 17px;
  }

  .account-auth-mode-login .account-auth-context-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
  }

  .account-auth-mode-login .account-eyebrow,
  .account-auth-mode-login .account-auth-context h1,
  .account-auth-mode-login .account-auth-context > p {
    grid-column: 2;
    min-width: 0;
  }

  .account-auth-mode-login .account-eyebrow {
    grid-row: 1;
    margin-bottom: 0;
  }

  .account-auth-mode-login .account-auth-context h1 {
    grid-row: 2;
  }

  .account-auth-mode-login .account-auth-context > p {
    grid-row: 3;
    margin-top: 2px;
  }

  .account-auth-mode-login .account-auth-benefits {
    display: none;
  }

  .account-auth-card h1 {
    font-size: 29px;
  }

  .account-auth-context > p {
    font-size: 14px;
  }

  .account-auth-content {
    padding-bottom: 22px;
  }

  .account-legal .account-panel {
    border-radius: 16px;
    padding: 21px 17px;
  }

  .account-legal h1 {
    font-size: 30px;
  }

  .account-legal-lead {
    font-size: 15px;
  }

  .account-privacy-actions,
  .account-privacy-actions .btn {
    width: 100%;
  }
}

/* Authenticated account dashboard. Keep these selectors scoped so the public
   header rules cannot turn the identity copy into a horizontal flex row. */
.account-dashboard {
  max-width: 1040px;
  padding-top: 22px;
}

.account-dashboard-hero {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  border: 1px solid rgba(13, 79, 196, .17);
  border-radius: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 5% 0, rgba(242, 183, 5, .17), transparent 12rem),
    radial-gradient(circle at 100% 100%, rgba(54, 91, 215, .1), transparent 18rem),
    rgba(255, 255, 255, .96);
  box-shadow: 0 15px 36px rgba(6, 43, 120, .08);
  text-align: left;
  backdrop-filter: none;
}

.account-dashboard-hero > .account-dashboard-identity {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.account-dashboard-avatar {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(13, 79, 196, .16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(242, 183, 5, .27), rgba(54, 91, 215, .16));
  color: #0b4fc4;
  font-size: 21px;
  box-shadow: 0 8px 18px rgba(13, 79, 196, .09);
}

.account-dashboard-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-dashboard-copy .account-eyebrow {
  margin: 0;
  font-size: 11px;
}

.account-dashboard-copy h1 {
  min-width: 0;
  margin: 0;
  color: #071f52;
  font-size: clamp(26px, 3vw, 33px);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.account-dashboard-copy p {
  overflow: hidden;
  max-width: min(560px, 58vw);
  margin: 2px 0 0;
  color: #5b6d85;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-logout-form {
  flex: 0 0 auto;
  margin: 0;
}

.account-logout-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(13, 79, 196, .3);
  border-radius: 10px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, .75);
  color: #0b4fc4;
  font-size: 13px;
  font-weight: 800;
}

.account-logout-button:hover,
.account-logout-button:focus-visible {
  border-color: #365bd7;
  background: #eef4ff;
  color: #17369d;
}

.account-dashboard-warning {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 14px;
}

.account-dashboard .account-panel {
  min-width: 0;
  border: 1px solid rgba(13, 79, 196, .15);
  border-radius: 16px;
  padding: clamp(18px, 2.3vw, 23px);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(6, 43, 120, .065);
}

.account-dashboard .account-wide {
  grid-column: 1 / -1;
}

.account-panel-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.account-panel-heading > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.account-panel-kicker {
  display: block;
  color: #365bd7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.account-panel-heading h2,
.account-dashboard .account-panel h2 {
  margin: 0;
  color: #102957;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

.account-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.account-status-ok {
  background: #e9f8ef;
  color: #187044;
}

.account-profile-email {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f7faff;
}

.account-profile-email > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.account-profile-email span {
  color: #6b7b91;
  font-size: 10px;
  font-weight: 750;
}

.account-profile-email strong {
  overflow: hidden;
  color: #172c50;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-email button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #0b4fc4;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-profile-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(112px, .7fr);
  gap: 9px;
}

.account-dashboard .account-form {
  gap: 8px;
}

.account-dashboard .account-form label:not(.account-check) {
  margin-top: 2px;
  font-size: 13px;
}

.account-dashboard .account-form input:not([type="checkbox"]),
.account-dashboard .account-form select {
  min-height: 44px;
  padding-block: 8px;
}

/* WebKit keeps its compact native menulist height even when only min-height
   is set. An explicit height preserves the native picker and the 44px target. */
.account-dashboard .account-form select {
  height: 44px;
}

.account-save-button {
  justify-self: start;
  min-width: 150px;
  min-height: 44px;
  margin-top: 3px;
  border-color: #2349bd;
  background: linear-gradient(180deg, #4265df, #2847b8);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(54, 91, 215, .17);
}

.account-action-list {
  overflow: hidden;
  border: 1px solid #dbe5f3;
  border-radius: 11px;
  background: #fbfdff;
}

.account-action-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 59px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid #e2e9f3;
  padding: 8px 10px;
  background: transparent;
  color: #172033;
  text-align: left;
}

.account-action-button:first-child {
  border-top: 0;
}

.account-action-button:hover,
.account-action-button:focus-visible {
  background: #eef5ff;
  outline: 0;
}

.account-action-button:focus-visible {
  box-shadow: inset 3px 0 #365bd7;
}

.account-action-button:disabled,
.account-secondary-button:disabled,
.account-profile-email button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.account-action-button > .bi:first-child {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(242, 183, 5, .2), rgba(54, 91, 215, .11));
  color: #0b4fc4;
  font-size: 16px;
}

.account-action-button > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.account-action-button strong {
  color: #102957;
  font-size: 13px;
  font-weight: 850;
}

.account-action-button small {
  color: #6b7b91;
  font-size: 10.5px;
  line-height: 1.35;
}

.account-action-button > .bi:last-child {
  color: #8a9ab0;
  font-size: 12px;
}

.account-session-count {
  display: inline-grid;
  min-width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0b4fc4;
  font-size: 12px;
  font-weight: 900;
}

.account-panel-empty {
  margin: 0;
  border: 1px dashed #cbd8e8;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
}

.account-session-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid #dbe5f3;
  border-radius: 11px;
  padding: 0;
  overflow: hidden;
}

.account-session-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid #e2e9f3;
  padding: 9px 10px;
  background: #fff;
}

.account-session-list li:first-child {
  border-top: 0;
}

.account-session-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #edf4ff;
  color: #0b4fc4;
  font-size: 16px;
}

.account-session-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-session-copy > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.account-session-copy strong {
  overflow: hidden;
  color: #172c50;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-session-copy em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 6px;
  background: #e9f8ef;
  color: #187044;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.account-session-copy small {
  overflow: hidden;
  color: #6b7b91;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-session-list form {
  margin: 0;
}

.account-session-revoke {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(211, 47, 63, .34);
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff;
  color: #bd2938;
  font-size: 12px;
  font-weight: 800;
}

.account-sync-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(54, 91, 215, .1), transparent 18rem),
    rgba(255, 255, 255, .96) !important;
}

.account-sync-profile-state {
  display: inline-flex;
  max-width: min(310px, 52vw);
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #d4dfed;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .82);
  color: #5e6c80;
  font-size: 10.5px;
  line-height: 1.2;
}

.account-sync-profile-state strong {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-sync-profile-state.is-synced {
  border-color: rgba(34, 160, 96, .22);
  background: rgba(233, 248, 239, .78);
  color: #187044;
}

.account-sync-profile-state.is-error,
.account-sync-profile-state.is-offline {
  border-color: rgba(211, 47, 63, .25);
  background: #fff0f1;
  color: #a32432;
}

.account-sync-profile-state.is-warning {
  border-color: rgba(191, 130, 14, .28);
  background: #fff7dd;
  color: #855c0d;
}

.account-sync-profile-description {
  margin: -3px 0 11px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.45;
}

.account-sync-details {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr);
  gap: 8px;
  margin: 0;
}

.account-sync-details > div {
  min-width: 0;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  padding: 10px 11px;
  background: rgba(247, 250, 255, .78);
}

.account-sync-details dt {
  margin-bottom: 4px;
  color: #718096;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.account-sync-details dd {
  margin: 0;
  color: #172c50;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.account-sync-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.account-sync-feature-list span {
  border-radius: 999px;
  padding: 4px 7px;
  background: #eaf2ff;
  color: #0b4fc4;
  font-size: 9.5px;
  font-weight: 850;
}

.account-sync-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 10px;
}

.account-sync-profile-actions .btn {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-color: rgba(13, 79, 196, .32);
  color: #0b4fc4;
  font-size: 12px;
  font-weight: 850;
}

.account-sync-profile-actions small {
  max-width: 480px;
  color: #718096;
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.account-secondary-panel {
  margin-top: 1px;
  border-top: 1px solid rgba(13, 79, 196, .18);
  padding: 12px 3px 0;
}

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

.account-secondary-heading h2 {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.account-secondary-heading a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-underline-offset: 2px;
}

.account-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-secondary-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4dfed;
  border-radius: 10px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, .54);
  color: #5e6c80;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.account-secondary-button:hover,
.account-secondary-button:focus-visible {
  border-color: rgba(13, 79, 196, .35);
  background: #eef5ff;
  color: #0b4fc4;
}

.account-secondary-button-danger {
  color: #a92a37;
}

.account-dialog {
  width: min(520px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: #172033;
}

.account-dialog::backdrop {
  background: rgba(7, 31, 82, .58);
  backdrop-filter: blur(2px);
}

.account-dialog-card,
.account-dialog > .account-dialog-card {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 1px solid rgba(13, 79, 196, .22);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 25px 72px rgba(7, 31, 82, .3);
}

.account-dialog-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.account-dialog-heading {
  display: grid !important;
  min-width: 0;
  gap: 2px;
}

.account-dialog-card h2 {
  margin: 0;
  color: #102957;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.2;
}

.account-dialog-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d4dfed;
  border-radius: 10px;
  padding: 0;
  background: #f7faff;
  color: #5e6c80;
  font-size: 24px;
  line-height: 1;
}

.account-dialog-card form > p {
  margin: 0 0 8px;
  color: #5e6c80;
  font-size: 13px;
  line-height: 1.5;
}

.account-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.account-dialog-actions .btn {
  min-height: 44px;
  padding-inline: 14px;
  font-size: 13px;
  font-weight: 800;
}

.account-dialog-cancel {
  border: 1px solid #d4dfed;
  background: #fff;
  color: #5e6c80;
}

.account-dialog-danger .account-panel-kicker {
  color: #b42332;
}

@media (max-width: 767.98px) {
  .account-dashboard {
    width: min(100% - 20px, 620px);
    padding-top: 18px;
  }

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

  .account-dashboard .account-wide {
    grid-column: auto;
  }

  .account-sync-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-sync-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-sync-profile-actions .btn {
    width: 100%;
  }

  .account-sync-profile-actions small {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .account-dashboard {
    width: min(100% - 16px, 520px);
    padding: 12px 0 34px;
  }

  .account-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-radius: 15px;
    padding: 13px 14px;
  }

  .account-dashboard-hero > .account-dashboard-identity {
    gap: 10px;
  }

  .account-dashboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .account-dashboard-copy h1 {
    font-size: 22px;
  }

  .account-dashboard-copy p {
    max-width: 100%;
    font-size: 11px;
  }

  .account-logout-button {
    width: 44px;
    padding: 0;
    border-radius: 11px;
  }

  .account-logout-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .account-dashboard .account-panel {
    border-radius: 14px;
    padding: 15px;
  }

  .account-panel-heading {
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .account-panel-heading h2,
  .account-dashboard .account-panel h2 {
    font-size: 19px;
  }

  .account-profile-fields {
    grid-template-columns: minmax(0, 1.3fr) minmax(100px, .7fr);
    gap: 7px;
  }

  .account-save-button {
    width: 100%;
  }

  .account-action-button {
    min-height: 56px;
    padding-block: 7px;
  }

  .account-session-list li {
    gap: 8px;
    padding: 8px;
  }

  .account-session-copy small {
    font-size: 10px;
  }

  .account-sync-panel .account-panel-kicker {
    display: none;
  }

  .account-sync-profile-description {
    margin: 0 0 5px;
  }

  .account-sync-details {
    gap: 0;
  }

  .account-sync-details > div {
    border: 0;
    border-top: 1px solid #dbe5f3;
    border-radius: 0;
    padding: 7px 0;
    background: transparent;
  }

  .account-sync-profile-actions {
    margin-top: 6px;
  }

  .account-sync-profile-actions small {
    display: none;
  }

  .account-secondary-heading {
    margin-bottom: 6px;
  }

  .account-dialog-card,
  .account-dialog > .account-dialog-card {
    border-radius: 14px;
    padding: 16px;
  }

  .account-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  .account-dialog-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 340px) {
  .account-dashboard-hero {
    padding-inline: 12px;
  }

  .account-dashboard-avatar {
    width: 40px;
    height: 40px;
  }

  .account-dashboard-copy h1 {
    font-size: 20px;
  }

  .account-session-revoke {
    width: 44px;
    padding: 0;
  }

  .account-session-revoke span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .account-session-copy strong {
    overflow: visible;
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
  }

  .account-session-copy em {
    display: none;
  }

  .account-sync-panel .account-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .account-sync-profile-state {
    max-width: 100%;
  }

  .account-secondary-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

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