.account-page {
  --account-line: #ecedd157;
  min-height: 100svh;
  display: flex;
  flex-direction: column;

}
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(28px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid var(--account-line);
  background: transparent;
}
.account-header .brand { font-size: 19px; letter-spacing: -.6px; }
.home-link { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; color: var(--secondary); }
.home-link:hover, .account-footer a:hover { color: var(--ink); }
.account-page main { flex: 1; width: 100%; padding: 62px 28px 68px; }
.account-shell { width: min(100%, 760px); margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.account-page h1 { font-size: 54px; font-weight: 750; line-height: 1; letter-spacing: -2.5px; margin: 0 0 9px; }
#subtitle { margin: 0; font-size: 14px; line-height: 1.5; color: var(--secondary); overflow-wrap: anywhere; }
.signin-icon { display: none; }
.quiet { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--paper); border: 1px solid #fff8df; border-radius: 2px; min-height: 38px; padding: 9px 13px; font-size: 13px; color: var(--paper-ink); white-space: nowrap; }
.quiet:hover { background: #fffced; color: var(--paper-ink); }
#admin-link { margin-bottom: 18px; }
.product-card { display: grid; grid-template-columns: 1fr 280px; --secondary: var(--paper-secondary); --account-line: var(--paper-line); color: var(--paper-ink); border: 1px solid #fff7d87a; border-radius: 2px; background: #f1eddceb; overflow: hidden; }
.product-copy { padding: 32px; }
.product-heading { display: flex; align-items: center; gap: 13px; }
.product-heading img { border-radius: 5px; }
.overline { font-size: 10px; letter-spacing: 1px; font-weight: 650; margin: 0 0 5px; color: var(--paper-secondary); }
.product-heading h2 { font-size: 21px; letter-spacing: -.65px; font-weight: 650; }
.product-description { font-size: 24px; line-height: 1.3; letter-spacing: -.6px; font-weight: 500; margin: 25px 0 21px; color: var(--paper-ink); }
.access-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.5; font-weight: 550; color: #345c51; background: #d5dcc7; padding: 5px 9px; border-radius: 2px; }
.access-badge::before { content: ''; width: 5px; height: 5px; background: #969da6; border-radius: 50%; }
.access-badge.owned { color: #257144; background: #eaf5ee; }
.access-badge.owned::before { background: #38915a; }
.product-art { display: grid; place-items: center; position: relative; isolation: isolate; margin: 18px 18px 18px 0; border-radius: 0; background: linear-gradient(145deg, #61958e, #b1be9f); overflow: hidden; }

.mini-dock { position: relative; width: 200px; height: 200px; }
.mini-glass { position: absolute; inset: 4px; border-radius: 50%; background: linear-gradient(135deg, #ffffffb0, #63786835 58%, #f6fff1c4); border: 1px solid #f7fff7cc; mask: radial-gradient(circle, transparent 58px, #000 59px); -webkit-mask: radial-gradient(circle, transparent 58px, #000 59px); box-shadow: inset 0 1px 2px #fff, inset 0 -1px 3px #63746670; }
.mini-dock img { position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px; transform: rotate(calc(var(--i) * 36deg)) translateY(-76px) rotate(calc(var(--i) * -36deg)); filter: drop-shadow(0 2px 2px #19362930); }
.mini-dock img:nth-of-type(1) { --i: 0; }
.mini-dock img:nth-of-type(2) { --i: 1; }
.mini-dock img:nth-of-type(3) { --i: 2; }
.mini-dock img:nth-of-type(4) { --i: 3; }
.mini-dock img:nth-of-type(5) { --i: 4; }
.mini-dock img:nth-of-type(6) { --i: 5; }
.mini-dock img:nth-of-type(7) { --i: 6; }
.mini-dock img:nth-of-type(8) { --i: 7; }
.mini-dock img:nth-of-type(9) { --i: 8; }
.mini-dock img:nth-of-type(10) { --i: 9; }
.mini-close { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #596d61; background: #ffffff68; border: 1px solid #ffffff75; }
.product-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 32px; border-top: 1px solid var(--account-line); background: transparent; min-height: 69px; }
#access-description { font-size: 13px; color: var(--paper-secondary); line-height: 1.5; margin: 0; }
#purchase-note { font-size: 12px; color: var(--secondary); margin: 5px 0 0; }
#purchase-note a { text-decoration: underline; text-underline-offset: 3px; }
.purchase-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; background: #285a50; color: #fff; border: 0; border-radius: 2px; min-height: 44px; padding: 12px 17px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.purchase-button span { opacity: .7; }
.purchase-button:hover { background: #163e39; }
.connections { margin-top: 36px; }
.promo-entry { margin: 0 0 24px; font-size: 13px; line-height: 1.6; }
.promo-entry summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.promo-entry label { display: block; margin-bottom: 7px; font-weight: 600; }
.promo-entry input { width: min(100%, 300px); min-height: 44px; padding: 10px 12px; border: 0; border-radius: 2px; color: var(--paper-ink); background: var(--paper); font: inherit; }
.promo-entry p { max-width: 58ch; margin: 12px 0; color: var(--secondary); }
#promo-sign-in { display: flex; flex-wrap: wrap; gap: 10px; }
.promo-access { font-size: 12px; margin-top: 12px; color: var(--paper-secondary); }
.account-deletion { margin-top: 40px; font-size: 13px; line-height: 1.6; color: var(--secondary); }
.account-deletion summary { width: fit-content; cursor: pointer; min-height: 44px; padding: 12px 0; }
.account-deletion p { max-width: 60ch; margin: 8px 0 16px; }
.account-deletion a { text-decoration: underline; text-underline-offset: 3px; }
#delete-form { display: grid; gap: 10px; max-width: 300px; margin-top: 24px; }
#delete-form input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--paper-ink); background: var(--paper); border: 0; border-radius: 2px; font: inherit; }
#delete-account { min-height: 44px; padding: 12px 16px; border: 0; border-radius: 2px; background: #f5e0d8; color: #703a30; font: inherit; font-weight: 600; }
#delete-account:not(:disabled):hover { background: #ffede5; }
.section-title { margin: 0 0 15px; }
.section-title h2 { font-size: 17px; letter-spacing: -.35px; font-weight: 600; margin: 0 0 7px; }
.section-title p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--secondary); }
.connection-list { --secondary: var(--paper-secondary); color: var(--paper-ink); border: 1px solid #fff7d87a; background: #f1eddceb; border-radius: 2px; overflow: hidden; }
.connection-row { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 19px 24px; }
.connection-row + .connection-row { border-top: 1px solid var(--paper-line); }
.service-icon { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 0; display: grid; place-items: center; }
.service-icon svg { width: 22px; height: 22px; }
.connection-copy { flex: 1; min-width: 0; }
.connection-copy h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.connection-copy p { font-size: 12px; color: var(--secondary); line-height: 1.5; margin: 0; }
.connected { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #437757; white-space: nowrap; }
.connected > span { width: 16px; height: 16px; border-radius: 50%; background: #eaf4ed; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.connection-row button { min-height: 38px; border: 1px solid #58755c50; border-radius: 2px; padding: 8px 13px; background: #fff9e5; color: var(--paper-ink); font-size: 12px; font-weight: 550; }
.connection-row button:hover { background: #fffced; }
.account-page button:disabled { cursor: not-allowed; opacity: .45; }
#status, #error { font-size: 13px; line-height: 1.6; padding: 13px 16px; margin: 0 0 22px; border: 1px solid #fcf2d580; border-radius: 2px; background: #e9eddb; color: #315952; }
#status:empty { display: none; }
#error { margin: 20px 0 12px; background: #fff3f2; border-color: #f1d7d5; color: #9b3832; }
.account-footer { width: min(760px, calc(100% - 56px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--account-line); padding: 17px 0 22px; font-size: 12px; color: var(--secondary); }
.account-footer a { display: flex; gap: 8px; align-items: center; min-height: 38px; color: var(--secondary); }
/* The sign-in view is a compact form; the signed-in view is an account page. */
.account-page[data-state="signin"] main { display: grid; place-items: center; padding-top: 48px; padding-bottom: 80px; }
[data-state="signin"] .account-shell { --secondary: var(--paper-secondary); color: var(--paper-ink); width: min(100%, 440px); background: #f1eddced; border: 1px solid #fff4d694; border-radius: 2px; padding: 40px; }
[data-state="signin"] .page-heading { display: block; text-align: center; margin-bottom: 28px; }
[data-state="signin"] .signin-icon { display: grid; place-items: center; margin-bottom: 24px; }
[data-state="signin"] .signin-icon img { border-radius: 12px; }
[data-state="signin"] h1 { font-size: 38px; letter-spacing: -1.8px; margin-bottom: 10px; }
[data-state="signin"] #subtitle { font-size: 13px; }
.provider { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; width: 100%; border-radius: 3px; font-size: 14px; font-weight: 550; margin: 12px 0; border: 1px solid #d0d3d9; background: #fff; color: #252a31; }
.provider svg { width: 21px; height: 21px; position: absolute; left: 16px; }
.provider.apple { background: #202125; color: white; border-color: #202125; }
.provider:not(:disabled):hover { filter: brightness(.96); }
.footnote { font-size: 12px; line-height: 1.6; color: var(--secondary); margin: 24px 0 0; text-align: center; }
#apple-unavailable { font-size: 11px; margin: 8px 0 0; }
@media (max-width: 600px) {
  .account-header { padding: 12px 20px; gap: 12px; }
  .account-header .brand { font-size: 17px; }
  .home-link { font-size: 12px; gap: 5px; }
  .account-page main { padding: 36px 20px 42px; }
  .account-page { min-height: 100svh; }
  .account-page h1 { font-size: 39px; letter-spacing: -1.6px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  #subtitle { font-size: 13px; }
  .quiet { font-size: 12px; gap: 7px; }
  .product-card { grid-template-columns: minmax(0, 1fr) 112px; }
  .product-copy { padding: 24px 0 24px 22px; }
  .product-heading { gap: 9px; }
  .product-heading img { width: 36px; height: 36px; border-radius: 9px; }
  .product-heading h2 { font-size: 19px; }
  .overline { font-size: 9px; letter-spacing: .7px; }
  .product-description { font-size: 20px; line-height: 1.35; margin: 22px 0 18px; }
  .product-art { margin: 0; border-radius: 0; background: none; overflow: hidden; }
  .product-art::before { display: none; }
  .mini-dock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.53); }
  .product-bottom { padding: 17px 22px; flex-wrap: wrap; gap: 15px; }
  .purchase-button { width: 100%; }
  .connections { margin-top: 30px; }
  .connection-row { padding: 18px 16px; gap: 11px; min-height: 82px; }
  .service-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
  .connection-copy p { font-size: 11px; max-width: 160px; }
  .connected { font-size: 11px; gap: 5px; }
  .account-footer { width: calc(100% - 40px); font-size: 11px; }
  [data-state="signin"] .account-shell { padding: 28px 24px; }
}
@media (prefers-contrast: more) {
  .account-page { --account-line: #fff9; }
  .product-card, .connection-list, [data-state="signin"] .account-shell { background: var(--paper); }
  .connected { color: #235c36; }
  .product-description { color: var(--paper-ink); }
}
