.account-layout { max-width: 1240px; margin: 14px auto 48px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; min-height: 460px; }
.account-layout > * { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-layout .account-sidebar { display: block; border-right: 1px solid var(--line); padding-right: 20px; position: sticky; top: 116px; }
.account-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.account-identity > div { min-width: 0; }
.account-identity strong { display: block; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.account-identity [data-account-email] { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.account-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: #dcefea; color: #075b51; font-size: 18px; font-weight: 700; }
.account-sidebar nav { display: grid; gap: 4px; }
.account-layout .account-sidebar :is(a, button) { min-height: 48px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #506971; font-size: 14px; line-height: 1.5; font-weight: 500; text-align: left; }
.account-layout .account-sidebar a:hover { background: #e9f1f2; color: #153039; }
.account-layout .account-sidebar [aria-current="page"] { background: #dcefea; color: #075b51; font-weight: 700; }
.account-layout .account-sidebar .account-logout { width: 100%; border-radius: 0; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: #8c3941; }
.account-icon, [data-account-icon] { width: 20px; height: 20px; flex: 0 0 20px; display: inline-block; vertical-align: middle; }
.account-layout[data-account-state]:not([data-account-state="ready"]) { grid-template-columns: minmax(0, 1fr); }
.account-layout[data-account-state]:not([data-account-state="ready"]) .account-sidebar { display: none; }
.account-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.account-page-head p { color: var(--muted); margin: 0 0 6px; font-size: 14px; }
.account-page-head h1 { margin: 0; font-size: 30px; line-height: 1.3; }
.account-layout .btn, .customer-page .btn, .account-order-details .btn, .account-confirm .btn { font-size: 14px; line-height: 1.4; font-weight: 600; min-height: 44px; gap: 8px; }
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; padding: 22px 0; }
.account-metrics a { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; column-gap: 12px; padding: 0 22px; align-items: center; border-right: 1px solid var(--line); }
.account-metrics a:first-child { padding-left: 0; }
.account-metrics a:last-child { border: 0; padding-right: 0; }
.account-metrics a > .account-icon:first-child { grid-row: 1 / 3; color: #087969; }
.account-metrics strong { font-size: 30px; font-weight: 700; line-height: 1.1; }
.account-metrics span { grid-column: 2; color: var(--muted); font-size: 13px; margin-top: 5px; }
.account-metrics a > .account-icon:last-child { grid-column: 3; grid-row: 1 / 3; color: #6a858a; width: 16px; }
.account-section { min-width: 0; padding: 24px 0; border-top: 1px solid var(--line); }
#accountDynamic > .account-section:first-child { padding-top: 0; border-top: 0; }
.account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-section-head h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.account-section-head a { min-height: 44px; display: inline-flex; align-items: center; color: #075e6a; font-size: 13px; font-weight: 600; }
.account-section-head a[title] { justify-content: center; width: 44px; flex: 0 0 44px; border-radius: 6px; }
.account-section-head a:hover { background: #e8f0f1; }
.account-empty, .account-state { min-height: 228px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; padding: 32px 16px; }
.account-empty > .account-icon, .account-state > .account-icon { width: 36px; height: 36px; flex-basis: 36px; color: #78979c; }
.account-empty h2, .account-state h1, .account-state h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.account-state { min-height: 400px; }
.account-loading { width: 28px; height: 28px; border: 3px solid #dce7e9; border-top-color: #087969; border-radius: 50%; animation: account-spin 1s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .account-loading { animation: none; } }
.account-overview-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.account-facts { margin: 0; display: grid; gap: 16px; }
.account-facts div { min-width: 0; }
.account-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.account-facts dd { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.account-muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.account-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #075e6a; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.account-address-preview { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.account-address-preview p { margin: 8px 0; color: var(--muted); }
.account-orders { border-top: 1px solid var(--line); }
.account-order { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(100px, .7fr) minmax(100px, .7fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.account-order-number, .account-order-total { min-width: 0; display: grid; gap: 6px; }
.account-order-number strong { overflow-wrap: anywhere; }
.account-order time, .account-order small { font-size: 12px; color: var(--muted); }
.account-order-total strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-status { display: inline-flex; justify-self: start; align-items: center; padding: 5px 9px; border-radius: 4px; background: #fff0ce; color: #775206; font-size: 12px; line-height: 1.5; font-weight: 600; }
.account-status[data-tone="success"] { background: #e0f0e9; color: #086345; }
.account-status[data-tone="neutral"] { background: #e7edef; color: #4f646b; }
.account-detail-button { background: transparent; border: 0; color: #075e6a; padding: 0 4px; font-size: 13px; font-weight: 600; }
.account-orders-filter { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.account-orders-filter label { display: grid; gap: 8px; font-size: 13px; }
.account-orders-filter select { min-width: 180px; font-size: 14px; }
.account-orders-filter > span { color: var(--muted); font-size: 13px; padding-bottom: 12px; }
.account-form { max-width: 640px; padding: 24px 0; border-top: 1px solid var(--line); }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.account-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.account-form :is(input, textarea) { width: 100%; min-height: 48px; font-size: 16px; padding: 12px; }
.account-readonly-field { display: grid; gap: 8px; min-width: 0; font-size: 14px; }
.account-readonly-field p { margin: 0; padding: 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #eaf0f2; color: #506971; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.account-form .account-wide { grid-column: 1 / -1; }
.account-form .check { align-items: center; margin: 12px 0; }
.account-form .check input { width: 20px; height: 20px; min-height: 20px; }
.account-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.account-feedback { margin: 0 0 20px; border-left: 3px solid #168063; background: #e6f3ed; color: #075a43; font-size: 14px; line-height: 1.6; padding: 12px 16px; }
.account-feedback[data-tone="error"] { background: #fff0ef; color: #a42923; border-color: #bc3932; }
.account-address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.account-address { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.account-address h2 { font-size: 16px; }
.account-address p { margin: 0 0 8px; color: var(--muted); }
.account-address .account-section-head { align-items: start; flex-wrap: wrap; }
.account-address-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: auto; }
.account-icon-button { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: #506971; }
.account-icon-button:hover { background: #e8f0f1; }
.account-payment { display: flex; align-items: center; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.account-payment > div:not(.account-payment-icon) { flex: 1; min-width: 0; }
.account-payment-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #e5efed; border-radius: 6px; flex: 0 0 48px; color: #087969; }
.account-payment h2 { font-size: 17px; margin: 0 0 6px; }
.account-payment p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.account-favorites.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.customer-page { max-width: 1240px; margin: 14px auto 48px; min-height: 460px; }
.customer-page .account-page-head,
.account-layout[data-account-view="favorites"] .account-page-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.account-page-head .customer-item-count { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.customer-page .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
.customer-page .cart-layout[data-empty="true"] { grid-template-columns: minmax(0, 1fr); }
.customer-page .account-empty,
.account-layout[data-account-view="favorites"] .account-empty { min-height: 320px; }
.customer-page .account-empty > .cart-icon { width: 36px; height: 36px; color: #78979c; }
.customer-page .cart-icon { flex-shrink: 0; }
.customer-page .order-summary { padding: 0 0 0 28px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.customer-page .order-summary h2 { font-size: 20px; line-height: 1.4; margin-bottom: 24px; }
.customer-page .totals { gap: 20px; font-size: 14px; }
.customer-page .totals dt { font-weight: 400; }
.customer-page .totals dd { font-weight: 600; }
.customer-page .totals .total-status { font-size: 13px; font-weight: 400; max-width: 170px; white-space: normal; }
.customer-page .totals .summary-total { padding-top: 24px; margin-top: 4px; }
.customer-page .totals .summary-total dt,
.customer-page .totals .summary-total dd { font-size: 18px; font-weight: 700; color: var(--deep); }
.customer-page .checkout-cta { width: 100%; margin-top: 24px; }
.customer-page .trust-list { margin-top: 18px; font-size: 13px; }
.customer-page #cartPage .cart-line { box-shadow: none; }
.account-order-details { min-width: 0; }
.account-order-details header { margin: 0 0 28px; padding-right: 28px; }
.account-order-details h2 { font-size: 24px; line-height: 1.4; margin: 6px 0 12px; overflow-wrap: anywhere; }
.account-order-details h3 { font-size: 17px; margin: 0 0 16px; }
.account-order-details p { font-size: 14px; line-height: 1.6; margin: 8px 0; overflow-wrap: anywhere; }
.account-order-details .totals { margin: 24px 0; }
.account-confirm h2 { font-size: 22px; margin-top: 0; }
.account-dialog .dialog-close { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: #edf3f4; color: #153039; }
.account-dialog .dialog-close:hover { background: #dce9eb; }
.account-dialog .account-order-details header { padding-right: 44px; }
@media (max-width: 1100px) {
  .customer-page .cart-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .customer-page .order-summary { padding-left: 24px; }
  .account-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .account-order { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .account-detail-button { justify-self: end; }
  .account-order-total { text-align: right; }
  .account-favorites.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-metrics a { padding: 0 14px; grid-template-columns: minmax(0, 1fr); }
  .account-metrics a > .account-icon { display: none; }
  .account-metrics span { grid-column: 1; }
}
@media (max-width: 760px) {
  .customer-page { margin-top: 8px; }
  .customer-page .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .customer-page .order-summary { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .customer-page .account-page-head,
  .account-layout[data-account-view="favorites"] .account-page-head { padding-bottom: 20px; gap: 16px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 8px; }
  .account-layout .account-sidebar { position: static; border: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
  .account-identity { margin-bottom: 18px; }
  .account-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .account-layout .account-sidebar nav a { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 8px 4px; font-size: 12px; min-height: 74px; }
  .account-layout .account-sidebar .account-logout { margin-top: 12px; padding: 10px 4px; border: 0; min-height: 44px; justify-content: flex-end; }
  .account-page-head { margin-bottom: 24px; }
  .account-page-head h1 { font-size: 26px; }
  .account-page-head .btn { padding: 0 12px; }
  .account-metrics { padding: 20px 0; margin-bottom: 24px; }
  .account-metrics strong { font-size: 28px; }
  .account-overview-details { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .account-section-head h2 { font-size: 17px; }
  .account-address-list { grid-template-columns: minmax(0, 1fr); }
  .account-favorites.product-grid { gap: 10px; }
  .account-payment { flex-wrap: wrap; gap: 12px; }
  .account-payment .account-status { margin-left: 60px; }
  .account-form-grid { gap: 16px 12px; }
  .account-orders-filter select { min-width: 160px; }
  .account-order-details h2 { font-size: 20px; }
}
