
:root {
  --acc-navy: #0a1a30;
  --acc-ink: #14243b;
  --acc-soft: #526378;
  --acc-cobalt: #0b67d0;
  --acc-cobalt-d: #0757b8;
  --acc-cobalt-end: #3b8ee8;
  --acc-wash: #ebf4fd;
  --acc-line: #dbe3ee;
  --acc-field: #b9c6d6;
  --acc-danger: #b42318;
  --acc-shadow: 0 1px 2px rgba(16, 22, 35, .04), 0 22px 44px -32px rgba(16, 22, 35, .22);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--acc-ink);
  background: var(--sig-bg-base, #fff);
  font: 16px/1.55 Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.account-shell a { color: var(--acc-cobalt-d); }
.account-shell :is(button, input, select, textarea) { font: inherit; }
.account-shell :focus-visible { outline: 3px solid var(--acc-cobalt); outline-offset: 3px; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 12px; top: 10px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 10px; }


.account-shell :is(button, .button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--acc-cobalt); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px -16px rgba(11, 103, 208, .9);
  transition: background-color .15s ease, transform .15s ease;
}
.account-shell :is(button, .button):hover { background: var(--acc-cobalt-d); color: #fff; }
.account-shell button:disabled { opacity: .5; cursor: default; box-shadow: none; }
.account-shell :is(button.danger, .danger) { background: var(--acc-danger); box-shadow: none; }


.account-shell { max-width: 1160px; margin: 0 auto; padding: 16px 16px 32px; }
.account-top {
  display: flex; flex-direction: column; gap: 16px;
  margin: 8px 0 16px; padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(118deg, #04101f 0%, var(--acc-navy) 45%, var(--acc-cobalt) 130%);
  color: #fff;
  box-shadow: var(--acc-shadow);
}
.account-eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #8ab8f6;
}
.account-top h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; color: #fff; }
.account-lede { margin: 8px 0 0; max-width: 56ch; font-size: 15px; color: rgba(255, 255, 255, .78); }
.account-plan {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px;
  padding: 10px 10px 10px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
#account-plan { font-size: 14px; font-weight: 600; color: #fff; }
.account-plan .button { background: #fff; color: var(--acc-navy); box-shadow: none; }
.account-plan .button:hover { background: var(--acc-wash); color: var(--acc-navy); }


.account-layout { display: block; }
#account-nav {
  display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#account-nav::-webkit-scrollbar { display: none; }
#account-nav a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--acc-line);
  color: var(--acc-ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
#account-nav a:hover { color: var(--acc-cobalt-d); }
#account-nav [aria-current=page] { background: var(--acc-wash); color: var(--acc-cobalt-d); font-weight: 600; box-shadow: inset 0 0 0 1px #cfe0f6; }


#account-panel {
  min-height: 420px; padding: 22px 18px 26px;
  background: #fff; border-radius: 4px 4px 20px 20px; border-top: 4px solid var(--acc-cobalt);
  box-shadow: var(--acc-shadow), 0 0 0 1px var(--acc-line);
}
#account-panel:focus { outline: none; }
#account-panel h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; color: var(--acc-navy); }
#account-panel h3 { margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--acc-line); font-size: 17px; color: var(--acc-navy); }
#account-panel p { margin: 6px 0 18px; }
.muted { color: var(--acc-soft); font-size: 14px; }


#account-panel form { margin: 18px 0 8px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 16px; }
.account-shell label { display: block; font-size: 14px; font-weight: 600; color: var(--acc-ink); }
#account-panel form > label, #account-panel form > details, #account-panel form > div:not(.fields):not(.actions) { margin: 0 0 16px; }
.account-shell :is(input, select, textarea) {
  display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 14px;
  border: 1px solid var(--acc-field); border-radius: 12px;
  background: #fff; color: var(--acc-ink); font-size: 16px; font-weight: 400;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.account-shell :is(input, select, textarea):focus { outline: none; border-color: var(--acc-cobalt); box-shadow: 0 0 0 3px rgba(11, 103, 208, .18); }
.account-shell input[type=file] { padding: 9px 12px; }
.account-shell input[type=file]::file-selector-button {
  margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 999px;
  background: var(--acc-wash); color: var(--acc-cobalt-d); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.account-shell input[type=checkbox] { display: inline-block; width: 20px; min-height: 0; height: 20px; margin: 0 12px 0 0; vertical-align: -4px; accent-color: var(--acc-cobalt); }
.account-shell label small { display: block; margin-top: 6px; font-weight: 400; color: var(--acc-soft); }
.account-shell textarea { min-height: 96px; }
.account-shell details { font-size: 14px; }
.account-shell details summary { cursor: pointer; color: var(--acc-cobalt-d); font-weight: 600; }
#account-panel form > button, #account-panel > button, .record button { margin: 4px 10px 10px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.actions button { margin: 0; }

.record { padding: 16px 0; border-bottom: 1px solid var(--acc-line); overflow-wrap: anywhere; }
.record:last-child { border-bottom: 0; }
.record strong { display: block; color: var(--acc-navy); }
.record small { display: block; color: var(--acc-soft); }
.record button { margin-top: 10px; }
label.record { display: flex; align-items: center; font-weight: 500; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--acc-wash); box-shadow: inset 3px 0 0 var(--acc-cobalt); }

#account-message {
  position: sticky; bottom: 16px; z-index: 20; margin: 16px auto 0; max-width: 560px;
  padding: 12px 20px; border-radius: 999px; background: var(--acc-navy); color: #fff;
  font-size: 15px; text-align: center; box-shadow: 0 18px 36px -18px rgba(10, 26, 48, .7);
}
#account-message:empty { display: none; }

.account-foot { max-width: 1160px; margin: 8px auto 0; padding: 24px 16px 40px; font-size: 13px; color: var(--acc-soft); text-align: center; }
.account-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.account-foot a { color: var(--acc-cobalt-d); font-weight: 600; text-decoration: none; }
.account-foot a:hover { text-decoration: underline; }
.account-foot p { margin: 0; }
.account-foot p a { font-weight: 400; }

@media (min-width: 700px) {
  .account-shell { padding: 24px 24px 40px; }
  .account-top { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 30px 32px; }
  .account-top h1 { font-size: 34px; }
  .account-plan { flex: none; flex-wrap: nowrap; }
  .fields { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  #account-panel { padding: 30px 32px 34px; }
}
@media (min-width: 960px) {
  .account-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 24px; align-items: start; }
  #account-nav {
    position: sticky; top: 88px; flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 10px;
    border-radius: 20px; background: #fff; box-shadow: var(--acc-shadow), 0 0 0 1px var(--acc-line);
  }
  #account-nav a { min-height: 42px; padding: 0 14px; border-radius: 12px; box-shadow: none; background: transparent; }
  #account-nav [aria-current=page] { box-shadow: inset 3px 0 0 var(--acc-cobalt); border-radius: 4px 12px 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { .account-shell :is(button, .button, input, select, textarea) { transition: none; } }
