.member-view-account-sync {
  --sync-ink: #211914;
  --sync-roast: #4a3025;
  --sync-paper: #fffaf2;
  --sync-cement: #ddd4ca;
  --sync-caramel: #e78948;
  --sync-sage: #dbe8df;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 7.5rem;
  overflow-x: clip;
}

.member-view-account-sync > * { min-width: 0; }

.account-sync-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 20px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 27px;
  background: var(--sync-ink);
  color: var(--sync-paper);
  box-shadow: 0 16px 36px rgb(42 29 23 / 16%);
}

.account-sync-hero::after {
  position: absolute;
  inset: auto -42px -72px auto;
  width: 150px;
  height: 150px;
  border: 24px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: "";
}

.account-sync-mark {
  position: absolute;
  inset: 18px 18px auto auto;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  color: var(--sync-caramel);
}

.account-sync-hero .eyebrow { margin: 0 64px 8px 0; color: #d8b38e; }
.account-sync-hero h2 { max-width: 13ch; margin: 0; color: inherit; font-size: clamp(1.7rem, 8vw, 2.15rem); line-height: 1.05; text-wrap: balance; }
.account-sync-hero > p:not(.eyebrow) { max-width: 29ch; margin: 12px 0 19px; color: #d8d0ca; font-size: .82rem; line-height: 1.55; text-wrap: pretty; }
.account-sync-hero dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 13%); }
.account-sync-hero dl div { min-width: 0; padding: 0 11px; border-left: 1px solid rgb(255 255 255 / 12%); }
.account-sync-hero dl div:first-child { padding-left: 0; border-left: 0; }
.account-sync-hero dt { color: #bfb5ad; font-size: .68rem; }
.account-sync-hero dd { margin: 5px 0 0; color: var(--sync-paper); font-size: .78rem; font-weight: 720; overflow-wrap: anywhere; }

.account-sync-surfaces { padding-top: 4px; }
.account-sync-count { align-self: center; padding: 5px 9px; border-radius: 999px; background: var(--sync-sage); color: #254438; font-size: .72rem; font-weight: 750; }
.account-sync-surfaces ul { display: grid; margin: 0; padding: 0; border: 1px solid rgb(74 48 37 / 11%); border-radius: 22px; background: var(--sync-paper); box-shadow: 0 8px 24px rgb(66 45 34 / 7%); list-style: none; }
.account-sync-surfaces li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 58px; padding: 9px 13px; border-bottom: 1px solid rgb(74 48 37 / 9%); }
.account-sync-surfaces li:last-child { border-bottom: 0; }
.account-sync-surfaces li > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--sync-sage); color: #255442; }
.account-sync-surfaces li[data-sync-surface-state="unverified"] > span,
.account-sync-surfaces li[data-sync-surface-state="unavailable"] > span { background: #f1e5d8; color: #795039; }
.account-sync-surfaces li strong { min-width: 0; font-size: .88rem; }
.account-sync-surfaces li small { color: #6c625c; font-size: .7rem; text-align: right; }

.account-pilot-readiness {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.account-pilot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgb(74 48 37 / 12%);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 10px 28px rgb(66 45 34 / 7%);
}

.account-pilot-head .eyebrow {
  margin: 0 0 5px;
  color: #9b5e35;
}

.account-pilot-head h2 {
  margin: 0;
  color: var(--sync-ink);
  font-size: 1.22rem;
  line-height: 1.14;
  text-wrap: balance;
}

.account-pilot-head p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #6c625c;
  font-size: .78rem;
  line-height: 1.48;
  text-wrap: pretty;
}

.account-pilot-score {
  display: inline-flex;
  min-width: 48px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sync-sage);
  color: #254438;
  font-size: .78rem;
  font-weight: 800;
}

.account-pilot-readiness ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-pilot-readiness li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgb(74 48 37 / 10%);
  border-radius: 20px;
  background: var(--sync-paper);
}

.account-pilot-readiness li[data-pilot-gate-state="waiting"] {
  background: #f6eadf;
}

.account-pilot-readiness li[data-pilot-gate-state="locked_off"] {
  border-style: dashed;
}

.account-pilot-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #efe0cb;
  color: #704528;
  font-size: .75rem;
  font-weight: 800;
}

.account-pilot-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-pilot-copy small {
  color: #604336;
  font-size: .75rem;
  font-weight: 760;
  line-height: 1.25;
  text-transform: uppercase;
}

.account-pilot-copy strong {
  color: var(--sync-ink);
  font-size: .88rem;
  line-height: 1.24;
  text-wrap: balance;
}

.account-pilot-copy em {
  color: #6c625c;
  font-size: .75rem;
  font-style: normal;
  line-height: 1.42;
  text-wrap: pretty;
}

.account-pilot-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(74 48 37 / 12%);
  border-radius: 15px;
  background: #fffaf2;
  color: #704528;
}

.account-pilot-note {
  margin: 0;
  color: #705b50;
  font-size: .75rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.account-sync-action { display: grid; gap: 12px; padding: 19px; border: 1px solid rgb(74 48 37 / 12%); border-radius: 22px; background: #f2e8dc; }
.account-sync-action .eyebrow { margin: 0 0 6px; }
.account-sync-action h2 { margin: 0; font-size: 1.2rem; }
.account-sync-action p { margin: 7px 0 0; color: #6c625c; font-size: .78rem; line-height: 1.55; text-wrap: pretty; }
.account-sync-action .form-message:empty { display: none; }
.account-sync-action .form-message:not(:empty) { margin: 0; padding: 10px 12px; border-left: 3px solid var(--sync-caramel); background: var(--sync-paper); color: var(--sync-roast); }

.account-sync-boundary { display: flex; gap: 10px; align-items: flex-start; padding: 15px; border: 1px dashed rgb(74 48 37 / 25%); border-radius: 18px; color: var(--sync-roast); }
.account-sync-boundary > span { display: flex; flex: 0 0 auto; }
.account-sync-boundary p { margin: 0; font-size: .74rem; line-height: 1.55; text-wrap: pretty; }

@media (max-width: 340px) {
  .account-sync-hero dl { grid-template-columns: 1fr; gap: 10px; }
  .account-sync-hero dl div { padding: 10px 0 0; border-top: 1px solid rgb(255 255 255 / 12%); border-left: 0; }
  .account-sync-hero dl div:first-child { padding-top: 0; border-top: 0; }
  .account-sync-surfaces li { grid-template-columns: 34px minmax(0, 1fr); }
  .account-sync-surfaces li small { grid-column: 2; text-align: left; }
  .account-pilot-head { grid-template-columns: 1fr; }
  .account-pilot-readiness li { grid-template-columns: 32px minmax(0, 1fr) 44px; padding-inline: 10px; }
  .account-pilot-index { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .member-view-account-sync *, .member-view-account-sync *::before, .member-view-account-sync *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  .account-sync-hero, .account-sync-surfaces ul, .account-pilot-head, .account-pilot-readiness li, .account-pilot-index, .account-pilot-link, .account-sync-action, .account-sync-boundary, .account-sync-mark, .account-sync-surfaces li > span { border: 1px solid CanvasText; background: Canvas; color: CanvasText; box-shadow: none; }
}
