.account-page { max-width: 1180px; padding-block: clamp(28px, 4vw, 48px) 72px; }
.account-page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 30px; margin-bottom: 30px; }
.account-heading h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.12; overflow-wrap: anywhere; }
.account-heading p { margin-top: 12px; color: var(--muted); }
.account-continue { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; color: #000; font-weight: 700; text-underline-offset: 4px; }
.account-page--signed-in .account-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 48px); }
.account-sidebar { position: sticky; top: 24px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.account-nav a, .account-nav button { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #000; font: inherit; font-weight: 600; text-decoration: none; }
.account-nav svg { width: 20px; height: 20px; flex: none; }
.account-nav a:hover, .account-nav button:hover { background: var(--lavender); }
.account-nav a[aria-current="page"] { background: var(--lilac); font-weight: 800; }
.account-nav form { border-top: 1px solid var(--line); padding-top: 8px; margin: 8px 0 0; }
.account-nav button { width: 100%; cursor: pointer; }
.account-sidebar-help { display: flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 8px 12px; font-size: .875rem; color: var(--muted); text-underline-offset: 4px; }
.account-content { display: grid; align-content: start; gap: 22px; min-width: 0; overflow-wrap: anywhere; }
.account-card { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.account-card h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 12px; letter-spacing: -.025em; }
.account-card p + p { margin-top: 10px; }
.account-feature { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 26px; padding: clamp(22px, 3vw, 30px); border: 1px solid #d7d0f2; border-radius: 20px; background: #eeebff; }
.account-feature h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.12; margin-bottom: 12px; }
.account-feature p { max-width: 40ch; color: var(--muted); }
.account-feature .button { margin-top: 20px; min-height: 46px; padding: 10px 20px; }
.account-feature img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.account-task-section h2 { font-size: 1.25rem; margin: 4px 0 14px; letter-spacing: -.02em; }
.account-task-list { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.account-task { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px; text-decoration: none; border-radius: 16px; }
.account-task + .account-task { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.account-task:hover { background: var(--lavender); }
.account-task strong { font-size: 1.05rem; }
.account-task-icon, .account-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lavender); color: var(--ink); }
.account-task-icon svg { width: 23px; height: 23px; }
.account-task-description { display: block; font-size: .875rem; line-height: 1.5; margin-top: 4px; color: var(--muted); }
.account-task-action { font-size: .875rem; font-weight: 700; color: var(--action); }
.account-checkout-note { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.account-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-form-footer { padding-top: 8px; }
.account-inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; text-underline-offset: 4px; }
.account-email { font-weight: 700; overflow-wrap: anywhere; }
.account-empty { text-align: center; padding-block: clamp(28px, 4vw, 44px); }
.account-empty-icon { margin: 0 auto 18px; width: 56px; height: 56px; background: var(--lilac); }
.account-empty-icon svg { width: 28px; height: 28px; }
.account-empty p { max-width: 48ch; margin-inline: auto; color: var(--muted); }
.account-empty .button { margin-top: 22px; }
.account-addresses > .account-empty { grid-column: 1 / -1; }
.account-badge { display: inline-flex; align-items: center; width: fit-content; font-size: .875rem; line-height: 1.4; padding: 5px 10px; border-radius: 8px; background: var(--lavender); color: var(--ink); margin-bottom: 12px; }
.account-order-card { padding: 0; }
.account-order-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; padding: 22px; border-radius: inherit; text-decoration: none; }
.account-order-link:hover { background: var(--lavender); }
.account-order-date { display: block; color: var(--muted); font-size: .875rem; margin-top: 8px; }
.account-order-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.account-order-status .account-badge { margin: 0; }
.account-order-action { font-size: .875rem; font-weight: 700; color: var(--action); }
.account-order-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 20px; margin: 20px 0 0; border-top: 1px solid var(--line); }
.account-order-facts dt { font-size: .875rem; color: var(--muted); margin-bottom: 6px; }
.account-order-facts dd { font-weight: 700; margin: 0; }
.account-page--auth .account-page-top { justify-content: center; text-align: center; }
.auth-card { max-width: 540px; width: 100%; margin-inline: auto; }
.account-entry-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--lavender); }
.account-entry-tabs a { min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; border: 1px solid #a9b3cd; border-radius: 12px; background: #fff; color: #000; text-decoration: none; text-align: center; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.account-entry-tabs a[aria-current="page"] { background: var(--action); color: #fff; border-color: var(--action); }
.account-entry-tabs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-card .account-form .button, .account-google { width: 100%; justify-content: center; }
.account-google:disabled { background: #f1f1f4; color: #000; border-color: #a9b3cd; cursor: not-allowed; }
#google-setup-note { margin-top: 10px; }
.account-form { display: grid; gap: 16px; margin-top: 20px; }
.account-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.account-form label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; }
.account-form input:not([type="checkbox"]) { min-width: 0; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #a9b3cd; border-radius: 10px; background: #fff; color: #000; font-size: 1rem; }
.account-form input:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.account-form .button { justify-self: start; color: #fff; }
.account-form fieldset:disabled { opacity: .65; }
.account-form fieldset:disabled .button { color: #000; }
.account-form[hidden] { display: none; }
.account-message { padding: 16px 18px; border-radius: 12px; border: 1px solid #bdcbe8; background: #eaf2ff; margin-block: 16px; }
.account-error { border-color: #dda7af; background: #fff0f1; color: #7f2535; }
.account-hint { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.account-auth-links, .account-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-block: 16px; }
.account-auth-links a, .account-links a, .account-actions a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.account-divider { margin-block: 16px; text-align: center; color: var(--muted); }
.account-secondary { min-height: 44px; padding: 10px 18px; border: 1px solid #8a8f9f; border-radius: 999px; color: #000; background: #fff; font-weight: 700; }
.account-card .account-secondary { margin-top: 16px; }
.account-checkbox { display: flex !important; align-items: center; min-height: 44px; gap: 10px !important; }
.account-checkbox input { width: 20px; height: 20px; flex: none; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }
.account-text-button { min-height: 44px; border: 0; background: transparent; color: #000; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.account-addresses, .account-orders { display: grid; gap: 16px; }
.account-addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-content a:focus-visible, .account-content button:focus-visible, .account-nav :focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
@media (max-width: 600px) { .account-addresses { grid-template-columns: minmax(0, 1fr); } .account-nav form { margin-left: 0; } .account-form .button { width: 100%; } }

@media (max-width: 850px) {
  .account-page--signed-in .account-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .account-sidebar { position: static; }
  .account-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .account-nav a { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; font-size: .875rem; text-align: center; }
  .account-nav form { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 4px; margin-top: 4px; }
  .account-nav button { width: auto; min-height: 44px; font-size: .875rem; }
  .account-sidebar-help { display: none; }
}
@media (max-width: 600px) {
  .account-page-top { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .account-page--auth .account-page-top { align-items: center; }
  .account-heading p { margin-top: 10px; }
  .account-feature { gap: 18px; grid-template-columns: minmax(0, 1fr) 120px; }
  .account-task { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 12px; padding: 18px 16px; }
  .account-task-icon { width: 36px; height: 36px; align-self: start; }
  .account-task-action { grid-column: 2; }
  .account-form-row { grid-template-columns: minmax(0, 1fr); }
  .account-form-footer .button { width: 100%; }
  .account-order-link { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; gap: 16px; }
  .account-order-action { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-feature { grid-template-columns: minmax(0, 1fr); }
  .account-feature img { display: none; }
}
