/* Customer accounts share the storefront palette, independently of admin login. */
.site-header .header-actions .account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--ink);
  text-decoration: none;
}
.site-header .account-link .reel-icon { width: 22px; height: 22px; }
.site-header .account-link[aria-current="page"] { background: var(--control-soft, var(--field, var(--surface))); color: var(--action, var(--ink)); }
.account-page { --account-soft: color-mix(in srgb, var(--surface) 95%, var(--ink)); }
.account-page #main { min-width: 0; }
.account-shell { width: min(1100px, 100%); margin: 0 auto; padding: 42px 28px 36px; }
.account-page .account-shell :is(h1, h2, h3) { color: var(--ink); overflow-wrap: anywhere; }
.account-page .account-shell h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.account-page .account-shell h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 8px; }
.account-page .account-shell h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.01em; }
.account-page .account-shell p { line-height: 1.65; }
.account-eyebrow { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; line-height: 1.5; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.account-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.account-identity > div { min-width: 0; }
.account-heading p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; margin: 8px 0 0; }
.account-avatar { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; border: 1px solid var(--line); border-radius: 20px; background: var(--account-soft); color: var(--ink); font-size: 23px; font-weight: 600; }
.account-logout { margin: 0; flex: 0 0 auto; }
.account-tabs { display: flex; align-items: center; gap: 8px; padding: 5px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.account-tabs a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; flex: 1; padding: 10px 14px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.account-tabs .reel-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.account-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--account-soft); font-size: 11px; }
.account-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 90px; }
.account-orders { margin-bottom: 24px; }
.account-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 23px; }
.account-section-heading > div { min-width: 0; }
.account-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.account-section-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--account-soft); }
.account-section-icon .reel-icon { width: 20px; height: 20px; }
.account-order-list { display: grid; gap: 10px; }
.account-order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(125px, .6fr) 18px; align-items: center; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--account-soft); text-decoration: none; transition: border-color .15s, background-color .15s; }
.account-order-identification, .account-order-amount { display: grid; gap: 5px; min-width: 0; }
.account-order-identification strong { font-size: 14px; overflow-wrap: anywhere; }
.account-order-identification > span, .account-order-amount > span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-order-amount { text-align: right; }
.account-order-amount strong { font-size: 17px; white-space: nowrap; }
.account-order-arrow { width: 18px; height: 18px; color: var(--muted); }
.account-status { display: inline-flex; justify-content: center; align-items: center; justify-self: start; min-height: 28px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 11px; line-height: 1.4; font-weight: 600; }
.account-status[data-status="shipped"], .account-status[data-status="processing"] { border-color: color-mix(in srgb, var(--action, var(--ink)) 35%, var(--line)); }
.account-status:is([data-status="completed"], [data-status="delivered"]) { border-color: color-mix(in srgb, #388665 48%, var(--line)); }
.account-status:is([data-status="cancelled"], [data-status="returned"]) { color: var(--muted); }
.account-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.account-pagination .reel-icon { width: 17px; height: 17px; }
.account-page .account-pagination .button { min-height: 44px; padding: 9px 12px; font-size: 12px; gap: 6px; }
.account-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 12px 15px; }
.account-empty-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 17px; background: var(--account-soft); color: var(--muted); margin-bottom: 18px; }
.account-empty-icon .reel-icon { width: 26px; height: 26px; }
.account-empty h3 { margin: 0 0 8px; }
.account-empty p { max-width: 290px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.account-settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.account-form { display: grid; gap: 19px; margin: 0; }
.account-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.account-field label { font-size: 13px; font-weight: 500; line-height: 1.5; }
.account-page .account-field :is(input, textarea) { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; box-shadow: none; }
.account-page .account-field textarea { min-height: 84px; resize: vertical; }
.account-page .account-field input[readonly] { color: var(--muted); background: var(--account-soft); }
.account-page .account-field :is(input, textarea):focus { border-color: var(--action, var(--ink)); outline: 2px solid color-mix(in srgb, var(--action, var(--ink)) 30%, transparent); outline-offset: 2px; }
.account-field small, .account-page .account-form-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.account-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .55fr); gap: 14px; }
.account-page .account-form > .button { width: 100%; margin-top: 3px; font-size: 14px; }
.account-page .account-shell .button .reel-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.account-back, .account-entry-return { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: none; }
.account-back .reel-icon, .account-entry-return .reel-icon { width: 17px; height: 17px; }
.account-entry-shell { width: min(520px, 100%); padding-top: 20px; padding-bottom: 42px; }
.account-entry-shell > .account-back { margin-bottom: 16px; }
.account-entry { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.account-entry-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 23px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--account-soft); }
.account-entry-icon .reel-icon { width: 23px; height: 23px; }
.account-entry-heading { margin-bottom: 24px; }
.account-page .account-entry-heading h1 { font-size: 29px; }
.account-entry-heading p { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.account-entry-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; gap: 4px; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.account-entry-tabs a { display: flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.account-entry-tabs a[aria-current="page"] { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px #0000000d; }
.account-forgot { justify-self: end; display: inline-flex; align-items: center; min-height: 36px; margin: -10px 0 -8px; font-size: 12px; color: var(--muted); }
.account-page .account-terms { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.65; }
.account-page .account-terms input { flex: 0 0 19px; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--action, var(--ink)); }
.account-terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.account-entry-return { justify-content: center; width: 100%; margin-top: 20px; }
.account-page > :is(.flash, .error-banner) { width: calc(100% - 48px); max-width: 1044px; margin: 20px auto 0; padding: 14px 18px; border-radius: 11px; font-size: 13px; overflow-wrap: anywhere; }
.account-order-shell > .account-back { margin: -15px 0 18px; }
.account-order-heading { align-items: flex-end; }
.account-order-heading h1 { overflow-wrap: anywhere; }
.account-order-heading > .account-status { flex: 0 0 auto; }
.account-order-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.account-order-aside { display: grid; gap: 20px; min-width: 0; }
.account-purchased-items { margin-top: 20px; }
.account-purchased-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-item-icon { display: grid; place-items: center; width: 40px; height: 44px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--account-soft); }
.account-item-icon .reel-icon { width: 20px; height: 20px; }
.account-page .account-purchased-item h3 { font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.account-purchased-item :is(p, span:not(.account-item-icon)) { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.account-purchased-item p { margin: 0 0 5px; }
.account-purchased-item > strong { font-size: 14px; white-space: nowrap; }
.account-totals { display: grid; gap: 13px; margin: 24px 0 18px; font-size: 13px; }
.account-totals > div { display: flex; justify-content: space-between; gap: 18px; }
.account-totals dt { color: var(--muted); }
.account-totals dd { margin: 0; text-align: right; }
.account-totals .account-total { padding-top: 17px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 650; }
.account-total dt { color: var(--ink); }
.account-address { display: grid; gap: 7px; font-style: normal; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.account-address strong { color: var(--ink); }
.account-tracking-number { margin: 16px 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.account-tracking-number strong { color: var(--ink); }
.account-page .account-shell a:focus-visible { outline: 2px solid var(--action, var(--ink)); outline-offset: 3px; border-radius: 7px; }
@media (hover: hover) {
  .account-tabs a:hover { background: var(--account-soft); color: var(--ink); }
  .account-order-card:hover { border-color: var(--control-border, var(--muted)); background: var(--surface); text-decoration: none; }
  .account-entry-tabs a:hover { color: var(--ink); }
  .account-back:hover, .account-entry-return:hover { color: var(--ink); }
}
@media (max-width: 760px) {
  .site-header .account-link { display: none !important; }
  body .mobile-nav > a.mobile-profile[aria-current="page"] { color: var(--action, var(--ink)); background: var(--control-soft, var(--surface)); border-radius: 9px; font-weight: 600; }
  body.theme-flow[data-color="dark"] .mobile-nav > .mobile-profile[aria-current="page"] { color: var(--accent); }
  .account-shell { padding: 26px 16px 26px; }
  .account-heading { gap: 14px; margin-bottom: 23px; }
  .account-identity { gap: 12px; }
  .account-avatar { width: 50px; height: 50px; flex-basis: 50px; border-radius: 15px; font-size: 18px; }
  .account-eyebrow { font-size: 9px; margin-bottom: 6px; }
  .account-page .account-heading h1 { font-size: 25px; }
  .account-heading p { font-size: 12px; margin-top: 6px; }
  .account-page .account-logout .button { min-height: 44px; padding: 9px 12px; font-size: 12px; }
  .account-tabs { gap: 2px; margin-bottom: 18px; }
  .account-tabs a { gap: 6px; padding: 9px 6px; font-size: 11px; }
  .account-tabs .reel-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .account-count { display: none; }
  .account-panel { padding: 22px 18px; border-radius: 14px; scroll-margin-top: 80px; }
  .account-page .account-shell h2 { font-size: 20px; }
  .account-section-heading { margin-bottom: 20px; }
  .account-section-heading p { font-size: 12px; }
  .account-settings-grid, .account-order-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .account-orders { margin-bottom: 18px; }
  .account-order-card { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 12px 10px; padding: 14px; }
  .account-order-identification { grid-column: 1 / 3; }
  .account-order-identification strong { font-size: 13px; }
  .account-order-arrow { grid-column: 3; grid-row: 1 / 3; width: 14px; }
  .account-order-card .account-status { grid-column: 1; grid-row: 2; font-size: 10px; }
  .account-order-amount { grid-column: 2; grid-row: 2; gap: 3px; }
  .account-order-amount strong { font-size: 16px; }
  .account-order-amount > span { font-size: 10px; max-width: 110px; }
  .account-page .account-field :is(input, textarea) { font-size: 16px; }
  .account-form-row { grid-template-columns: minmax(0, 1fr) minmax(95px, .55fr); gap: 12px; }
  .account-entry-shell { max-width: 500px; padding-top: 8px; }
  .account-entry-shell > .account-back { margin-bottom: 10px; }
  .account-entry { padding: 26px 22px; border-radius: 15px; }
  .account-page .account-entry-heading h1 { font-size: 27px; }
  .account-entry-icon { margin-bottom: 20px; }
  .account-entry-tabs a { min-height: 44px; }
  .account-forgot { min-height: 44px; }
  .account-order-shell > .account-back { margin: -10px 0 16px; }
  .account-order-heading { align-items: flex-start; flex-wrap: wrap; }
  .account-order-heading > div { width: 100%; }
  .account-purchased-item { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .account-item-icon { display: none; }
  .account-purchased-item > strong { font-size: 13px; }
  .account-page > :is(.flash, .error-banner) { width: calc(100% - 32px); margin-top: 16px; }
}
@media (max-width: 380px) {
  .account-shell { padding-inline: 12px; }
  .account-panel, .account-entry { padding-inline: 16px; }
  .account-avatar { display: none; }
  .account-page .account-heading h1 { font-size: 23px; }
  .account-tabs a { font-size: 10px; gap: 5px; }
  .account-entry-heading .account-eyebrow { letter-spacing: .08em; }
  .account-page .account-entry-heading h1 { font-size: 25px; }
  .account-form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .account-order-card { transition: none; } }
