:root {
  --account-green: #087a35;
  --account-green-strong: #055a2d;
  --account-green-deep: #073c2c;
  --account-lime: #7fe05f;
  --account-mint: #e9f7ed;
  --account-bg: #f3f7f5;
  --account-surface: #ffffff;
  --account-text: #10281f;
  --account-muted: #52685f;
  --account-line: #d8e5dd;
  --account-shadow: 0 12px 32px rgba(13, 62, 42, .08);
}

html[data-theme='dark'] {
  --account-green: #43d57c;
  --account-green-strong: #53df8b;
  --account-green-deep: #082f25;
  --account-lime: #69d98a;
  --account-mint: #173d30;
  --account-bg: #0d241d;
  --account-surface: #122f26;
  --account-text: #f0fbf5;
  --account-muted: #b6cec2;
  --account-line: #2a5142;
  --account-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

.account-dashboard-page {
  min-height: 100vh;
  background: var(--account-bg);
  color: var(--account-text);
}

.account-dashboard-page ::selection { background: var(--account-lime); color: #082819; }
.account-dashboard-page :focus-visible { outline: 3px solid #2b9ee6; outline-offset: 3px; }

.account-topbar.home-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 82px;
  padding: 0;
  border-bottom: 1px solid var(--account-line);
  background: var(--account-surface);
  box-shadow: 0 8px 26px rgba(10, 53, 37, .06);
}

.account-topbar-inner {
  width: min(1540px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  color: var(--account-text);
  text-decoration: none;
}

.account-brand img { width: 52px; height: 60px; object-fit: contain; }
.account-brand span { display: grid; line-height: 1.15; }
.account-brand strong { font-size: 1.35rem; letter-spacing: -.02em; }
.account-brand small { margin-top: 4px; color: var(--account-muted); font-size: .78rem; font-weight: 700; letter-spacing: .01em; }

.account-nav-toggle,
.account-theme-toggle {
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--account-line);
  border-radius: 10px;
  background: var(--account-surface);
  color: var(--account-text);
  cursor: pointer;
}

.account-nav-toggle { display: none; font-size: 1.15rem; }
.account-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.account-help-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-right: 1px solid var(--account-line);
  color: var(--account-text);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
}

.account-help-link i { color: var(--account-green); font-size: 1.05rem; }
.account-help-link span { display: grid; line-height: 1.2; }
.account-help-link small { color: var(--account-muted); font-size: .72rem; font-weight: 650; }

.account-theme-toggle {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
}

.account-user-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 7px;
  color: var(--account-text);
  text-decoration: none;
  font-weight: 850;
}

.account-user-avatar,
.account-welcome-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d4f3dc;
  color: #075f2d;
  font-weight: 900;
}

.account-user-avatar { width: 40px; height: 40px; font-size: .82rem; }
.account-welcome-avatar { width: 68px; height: 68px; font-size: 1.35rem; }

.account-app {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: stretch;
}

.account-sidebar {
  position: sticky;
  top: 82px;
  height: calc(100vh - 82px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 22px 14px;
  background: var(--account-green-deep);
  color: #effff5;
}

.account-sidebar nav { display: grid; gap: 6px; }
.account-sidebar :is(a, button) {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e9fff1;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: .98rem;
  font-weight: 720;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.account-sidebar :is(a, button) > i:first-child { width: 24px; color: #8ce6ae; font-size: 1rem; text-align: center; }
.account-sidebar .account-nav-end { color: currentColor; font-size: .75rem; opacity: .62; }
.account-nav-count { min-width: 25px; min-height: 25px; display: grid; place-items: center; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.13); color: #effff5; font-size: .72rem; font-weight: 900; }
.account-sidebar button[aria-current='page'] .account-nav-count { background: #07341f; color: #effff5; }
.account-sidebar :is(a, button):hover { background: rgba(255, 255, 255, .09); }
.account-sidebar button[aria-current='page'] { background: var(--account-lime); color: #07341f; }
.account-sidebar button[aria-current='page'] > i:first-child { color: #07341f; }

.account-sidebar-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.account-sidebar-scrim { display: none; }

.account-workspace {
  width: min(1280px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 42px) 20px;
}

.account-welcome {
  position: relative;
  min-height: 142px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  padding: 26px 30px;
  border: 1px solid #d4eadc;
  border-radius: 14px;
  background: var(--account-mint);
}

.account-welcome::after {
  content: '';
  position: absolute;
  inset: 10px 20px 0 auto;
  width: min(31vw, 350px);
  background: url('../images/optimized/hero-cylinders-light-uploaded-20260715.png') right bottom / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}

html[data-theme='dark'] .account-welcome::after { background-image: url('../images/optimized/account-cylinders-dark-transparent.png'); opacity: .16; }
.account-welcome > * { position: relative; z-index: 1; }
.account-welcome h1 { margin: 0; color: var(--account-text); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.025em; }
.account-welcome p { max-width: 680px; margin: 8px 0 0; color: var(--account-muted); line-height: 1.5; }
.account-session-message { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; font-weight: 700; }
.account-session-message i { margin-top: 3px; color: var(--account-green); }
.account-page-alert { margin: 16px 0 0; }

.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  background: var(--account-surface);
  box-shadow: var(--account-shadow);
}

.account-summary article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 24px;
}

.account-summary article + article { border-left: 1px solid var(--account-line); }
.account-summary article > span { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--account-mint); color: var(--account-green); }
.account-summary strong { display: block; color: var(--account-text); font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.account-summary p { margin: 3px 0 0; color: var(--account-muted); font-size: .9rem; }

.account-view {
  min-height: 440px;
  scroll-margin-top: 98px;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: var(--account-surface);
  box-shadow: var(--account-shadow);
}

.account-view-heading {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--account-line);
}

.account-view-heading h2 { margin: 0; color: var(--account-text); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2; }
.account-view-heading h2 i { width: 30px; color: var(--account-green); text-align: left; }
.account-view-heading p { margin: 6px 0 0; color: var(--account-muted); line-height: 1.5; }
.account-view-heading .btn { flex: 0 0 auto; }

.account-view.account-store { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-store-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: var(--account-mint);
}
.account-store-heading > div { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-store-heading h2 { margin: 0; color: var(--account-text); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.2; }
.account-store-heading p { margin: 5px 0 0; color: var(--account-muted); line-height: 1.5; }
.account-store-icon { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--account-surface); color: var(--account-green); font-size: 1.35rem; }
.account-store-cart-link { min-width: 190px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid var(--account-line); border-radius: 11px; background: var(--account-surface); color: var(--account-text); text-decoration: none; }
.account-store-cart-link > i { color: var(--account-green); }
.account-store-cart-link span { display: grid; gap: 2px; }
.account-store-cart-link strong { font-size: .9rem; }
.account-store-cart-link small { color: var(--account-muted); font-size: .75rem; }

.account-store-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0; border: 1px solid var(--account-line); border-radius: 12px; background: var(--account-surface); }
.account-store-progress span { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 18px; color: var(--account-muted); font-size: .85rem; font-weight: 750; }
.account-store-progress span + span { border-left: 1px solid var(--account-line); }
.account-store-progress b { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--account-bg); color: var(--account-muted); }
.account-store-progress .is-active { color: var(--account-text); }
.account-store-progress .is-active b { background: var(--account-green); color: #fff; }

.account-store-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.account-store-search { min-width: min(400px, 100%); min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--account-line); border-radius: 11px; background: var(--account-surface); color: var(--account-muted); }
.account-store-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--account-text); font: inherit; }
.account-store-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; border: 0; }
.account-store-filters label { cursor: pointer; }
.account-store-filters input { position: absolute; opacity: 0; pointer-events: none; }
.account-store-filters span { min-height: 42px; display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid var(--account-line); border-radius: 999px; background: var(--account-surface); color: var(--account-muted); font-size: .84rem; font-weight: 800; }
.account-store-filters input:checked + span { border-color: var(--account-green); background: var(--account-green); color: #fff; }
.account-store-filters input:focus-visible + span { outline: 3px solid #2b9ee6; outline-offset: 3px; }

.account-product-grid { display: grid; gap: 12px; }
.account-product-card { min-width: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr) 190px; align-items: center; gap: 22px; padding: 20px 22px; border: 1px solid var(--account-line); border-radius: 13px; background: var(--account-surface); box-shadow: var(--account-shadow); }
.account-product-media { height: 138px; display: grid; place-items: center; border-radius: 11px; background: var(--account-mint); }
.account-product-media img { max-width: 100%; width: 95px; height: 128px; object-fit: contain; }
.account-product-copy > span { color: var(--account-green); font-size: .76rem; font-weight: 850; }
.account-product-copy h3 { margin: 5px 0 7px; color: var(--account-text); font-size: 1.16rem; }
.account-product-copy p { max-width: 62ch; margin: 0; color: var(--account-muted); font-size: .9rem; line-height: 1.55; }
.account-product-copy small { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--account-muted); font-size: .78rem; line-height: 1.4; }
.account-product-copy small i { color: var(--account-green); }
.account-product-buy { display: grid; justify-items: stretch; gap: 7px; }
.account-product-buy > strong { color: var(--account-text); font-size: 1.45rem; }
.account-product-buy > span { color: var(--account-muted); font-size: .75rem; }
.account-product-quantity { width: 100%; min-height: 42px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; border: 1px solid var(--account-line); border-radius: 9px; overflow: hidden; }
.account-product-quantity button { height: 100%; border: 0; background: var(--account-bg); color: var(--account-text); font: inherit; font-size: 1.15rem; cursor: pointer; }
.account-product-quantity b { text-align: center; }
.account-product-buy .btn { width: 100%; min-height: 46px; }
.account-store-empty { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 30px; border: 1px solid var(--account-line); border-radius: 13px; background: var(--account-surface); color: var(--account-muted); text-align: center; }
.account-store-empty i { font-size: 1.5rem; color: var(--account-green); }
.account-store-empty h3, .account-store-empty p { margin: 0; }
.account-store-empty h3 { color: var(--account-text); }

.account-cart-bar { position: sticky; bottom: 12px; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; margin-top: 16px; padding: 13px 14px 13px 18px; border: 1px solid var(--account-line); border-radius: 13px; background: color-mix(in srgb, var(--account-green-deep) 94%, transparent); color: #effff5; box-shadow: 0 16px 38px rgba(3, 35, 24, .22); }
.account-cart-bar > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.account-cart-bar span { min-width: 0; }
.account-cart-bar strong, .account-cart-bar small { display: block; }
.account-cart-bar small { max-width: 520px; margin-top: 3px; overflow: hidden; color: #c4ded1; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.account-cart-bar-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.1); color: #8ce6ae; }
.account-cart-bar > strong { min-width: 90px; font-size: 1.2rem; text-align: right; }
.account-cart-bar .btn { min-height: 46px; background: var(--account-lime); color: #07341f; box-shadow: none; }

.account-order-view { overflow: visible; }
.account-order-view .account-store-progress { margin: 16px 24px 0; }
.account-flow-content { padding: 24px; }
.account-flow-content.cart-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.account-flow-content.checkout-layout { grid-template-columns: minmax(0, 1fr) 350px; }
.account-flow-content .card,
.account-flow-content .cart-item { border-color: var(--account-line); background: var(--account-surface); color: var(--account-text); box-shadow: none; }
.account-flow-content .cart-item { border-radius: 12px; }
.account-flow-content :is(h2, h3, label, .summary-row strong, .cart-item strong) { color: var(--account-text); }
.account-flow-content :is(p, .small, .summary-row) { color: var(--account-muted); }
.account-flow-content .total-row,
.account-flow-content .text-green { color: var(--account-green); }
.account-flow-content .qty,
.account-flow-content .qty button { border-color: var(--account-line); background: var(--account-bg); color: var(--account-text); }
.account-order-summary { position: sticky; top: 104px; }
.account-order-summary > h3 { margin-top: 0; }
.account-form-rule { margin: 26px 0; border: 0; border-top: 1px solid var(--account-line); }
.account-checkout-actions { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.account-order-view .checkout-form .input,
.account-order-view .checkout-form .select,
.account-order-view .checkout-form .textarea { border-color: var(--account-line); background: var(--account-bg); color: var(--account-text); }
.account-order-view .checkout-form .checkbox-field { border-color: var(--account-line); background: var(--account-bg); }
.account-order-view .checkout-payment { padding-top: 4px; }
.account-order-view .payment-trust { justify-content: flex-start; }
.account-order-view [data-confirmation-page] { min-height: 360px; }
.account-order-view [data-confirmation-page] > .card { box-shadow: none; }

.account-history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; min-height: 345px; }
.order-history { min-width: 0; padding: 22px; }
.account-order-aside { border-left: 1px solid var(--account-line); background: color-mix(in srgb, var(--account-mint) 48%, var(--account-surface)); }
.account-order-aside section { padding: 24px; }
.account-order-aside section + section { border-top: 1px solid var(--account-line); }
.account-order-aside h3 { margin: 0; color: var(--account-text); font-size: 1rem; }
.account-order-aside p { margin: 10px 0 0; color: var(--account-muted); line-height: 1.5; }
.account-order-aside span { display: block; margin-top: 7px; color: var(--account-muted); font-size: .82rem; line-height: 1.45; }
.account-order-aside .btn { width: 100%; margin-top: 14px; }

.account-loading,
.account-dashboard-page .empty-state.compact {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px;
}

.account-loading i,
.account-dashboard-page .empty-state.compact > i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--account-mint); color: var(--account-green); font-size: 1.5rem; }
.account-loading strong { margin-top: 18px; font-size: 1.2rem; }
.account-loading span { margin-top: 6px; color: var(--account-muted); }
.account-dashboard-page .empty-state.compact h3 { margin: 18px 0 0; color: var(--account-text); }
.account-dashboard-page .empty-state.compact p { max-width: 570px; margin: 8px 0 0; color: var(--account-muted); }

.account-dashboard-page .order-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--account-line);
}

.account-dashboard-page .order-line:first-child { padding-top: 0; }
.account-dashboard-page .order-line:last-child { border-bottom: 0; }
.account-dashboard-page .order-line img { width: 58px; height: 82px; object-fit: contain; }
.account-dashboard-page .order-line h3 { margin: 0; color: var(--account-text); font-size: 1rem; }
.account-dashboard-page .order-line p { margin: 7px 0; color: var(--account-muted); font-size: .9rem; line-height: 1.45; }
.account-dashboard-page .order-price { display: grid; justify-items: end; gap: 9px; }

.account-profile-grid { display: grid; grid-template-columns: 1fr; }
.account-profile-details { min-width: 0; padding: 24px; }
.account-profile-details dl { margin: 0; }
.account-profile-details dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--account-line); }
.account-profile-details dt { color: var(--account-muted); font-weight: 700; }
.account-profile-details dd { margin: 0; color: var(--account-text); font-weight: 800; overflow-wrap: anywhere; }
.account-profile-grid > .account-form { border-top: 1px solid var(--account-line); }

.account-form { display: grid; gap: 17px; padding: 24px; }
.account-form label { display: grid; gap: 8px; color: var(--account-text); font-size: .9rem; font-weight: 800; }
.account-form small { color: var(--account-muted); font-size: .8rem; font-weight: 500; line-height: 1.45; }
.account-form .input { width: 100%; min-height: 50px; border-color: var(--account-line); background: var(--account-bg); color: var(--account-text); }
.account-form .select, .account-form .textarea { width: 100%; border-color: var(--account-line); background: var(--account-bg); color: var(--account-text); }
.account-form .input[readonly] { opacity: .82; cursor: not-allowed; }
.account-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-form-alert { padding: 13px 15px; border: 1px solid #55a878; border-radius: 9px; background: var(--account-mint); color: var(--account-text); line-height: 1.45; }
.account-form-alert.is-error { border-color: #c87865; background: #fff0ec; color: #6f2819; }
.account-delivery-editor { margin: 2px 0 0; padding: 20px; border: 1px solid var(--account-line); border-radius: 12px; }
.account-delivery-editor legend { padding: 0 8px; color: var(--account-text); font-size: 1rem; font-weight: 850; }
.account-delivery-editor legend small { margin-left: 6px; }
.account-delivery-editor > p { margin: 0 0 16px; color: var(--account-muted); line-height: 1.5; }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-form-full { grid-column: 1 / -1; }

.account-addresses { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 24px; border-top: 1px solid var(--account-line); }
.account-addresses h3 { margin: 0; color: var(--account-text); }
.account-addresses p { margin: 6px 0 0; color: var(--account-muted); line-height: 1.5; }
.account-address-list { display: grid; gap: 10px; }
.account-address-row { padding: 14px 0; border-bottom: 1px solid var(--account-line); }
.account-address-row:first-child { padding-top: 0; }
.account-address-row:last-child { border-bottom: 0; }
.account-address-row strong { display: block; color: var(--account-text); }
.account-address-row span { display: block; margin-top: 5px; color: var(--account-muted); }

.account-security-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); }
.account-security-form { max-width: 720px; }
.account-security-note { display: flex; align-items: flex-start; gap: 15px; padding: 28px; border-left: 1px solid var(--account-line); background: var(--account-mint); }
.account-security-note > i { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--account-surface); color: var(--account-green); font-size: 1.25rem; }
.account-security-note h3 { margin: 2px 0 0; color: var(--account-text); }
.account-security-note p { margin: 9px 0; color: var(--account-muted); line-height: 1.6; }
.account-security-note a { color: var(--account-green); font-weight: 800; text-underline-offset: 4px; }

#account-view-rewards > [data-rewards-dashboard-host] { padding: 24px; }

.account-contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.account-contact-options a { min-height: 118px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 24px; color: var(--account-text); text-decoration: none; border-bottom: 1px solid var(--account-line); }
.account-contact-options a:nth-child(odd) { border-right: 1px solid var(--account-line); }
.account-contact-options a > i:first-child { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--account-mint); color: var(--account-green); font-size: 1.15rem; }
.account-contact-options a > i:last-child { color: var(--account-green); }
.account-contact-options span { display: grid; gap: 4px; }
.account-contact-options strong { color: var(--account-text); }
.account-contact-options small { color: var(--account-muted); font-size: .84rem; line-height: 1.45; }
.account-contact-options a:hover { background: var(--account-mint); }

.account-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 2px 8px; color: var(--account-muted); font-size: .82rem; }
.account-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.account-footer a { color: inherit; text-underline-offset: 4px; }

.family-read-only .account-sidebar [data-account-tab='security'],
.family-read-only [data-account-profile-edit],
.family-read-only .account-security-form { display: none !important; }

@media (max-width: 1120px) {
  .account-help-email { display: none; }
  .account-app { grid-template-columns: 220px minmax(0, 1fr); }
  .account-sidebar :is(a, button) { padding-inline: 12px; font-size: .9rem; }
  .account-history-layout { grid-template-columns: 1fr; }
  .account-order-aside { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--account-line); border-left: 0; }
  .account-order-aside section + section { border-top: 0; border-left: 1px solid var(--account-line); }
  .account-product-card { grid-template-columns: 110px minmax(0, 1fr); }
  .account-product-buy { grid-column: 2; grid-template-columns: auto 1fr; align-items: center; }
  .account-product-buy > span { display: none; }
  .account-product-quantity { max-width: 150px; }
  .account-flow-content.cart-layout,
  .account-flow-content.checkout-layout { grid-template-columns: 1fr; }
  .account-order-summary { position: static; }
}

@media (max-width: 900px) {
  .account-topbar-inner { padding: 0 16px; }
  .account-nav-toggle { display: inline-grid; place-items: center; }
  .account-brand { min-width: 0; }
  .account-brand small, .account-help-link, .account-theme-toggle span, .account-user-link > span:last-child { display: none; }
  .account-theme-toggle { width: 46px; padding: 0; }
  .account-app { display: block; }
  .account-sidebar { position: fixed; inset: 82px auto 0 0; width: min(310px, 86vw); height: auto; transform: translateX(-105%); transition: transform 210ms cubic-bezier(.2,.8,.2,1); box-shadow: 16px 0 38px rgba(0,0,0,.22); }
  .account-dashboard-page.account-nav-open .account-sidebar { transform: translateX(0); }
  .account-sidebar-scrim { position: fixed; inset: 82px 0 0; z-index: 45; width: 100%; height: auto; border: 0; background: rgba(3, 23, 16, .54); }
  .account-dashboard-page.account-nav-open .account-sidebar-scrim { display: block; }
  .account-workspace { padding-top: 20px; }
  .account-profile-grid, .account-security-layout { grid-template-columns: 1fr; }
  .account-profile-grid > .account-form, .account-security-note { border-top: 1px solid var(--account-line); border-left: 0; }
}

@media (max-width: 640px) {
  .account-topbar.home-header, .account-topbar-inner { min-height: 72px; }
  .account-brand img { width: 43px; height: 50px; }
  .account-brand strong { font-size: 1.05rem; }
  .account-user-link { display: none; }
  .account-sidebar { inset-top: 72px; top: 72px; }
  .account-sidebar-scrim { inset-top: 72px; top: 72px; }
  .account-workspace { padding: 14px 12px 18px; }
  .account-welcome { min-height: 132px; align-items: flex-start; padding: 20px; }
  .account-welcome-avatar { width: 52px; height: 52px; font-size: 1rem; }
  .account-welcome h1 { font-size: 1.45rem; }
  .account-welcome::after { width: 180px; opacity: .08; }
  .account-session-message { display: none; }
  .account-summary { grid-template-columns: 1fr; }
  .account-summary article { padding: 16px 18px; }
  .account-summary article + article { border-top: 1px solid var(--account-line); border-left: 0; }
  .account-summary article > span { width: 42px; height: 42px; }
  .account-summary strong { font-size: 1.3rem; }
  .account-view { min-height: 360px; border-radius: 11px; }
  .account-view-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
  .account-view-heading .btn { width: 100%; }
  .account-store-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
  .account-store-cart-link { width: 100%; }
  .account-store-progress { grid-template-columns: 1fr; }
  .account-store-progress span + span { border-top: 1px solid var(--account-line); border-left: 0; }
  .account-store-tools { align-items: stretch; flex-direction: column; }
  .account-store-search { min-width: 0; width: 100%; }
  .account-store-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-store-filters span { justify-content: center; }
  .account-product-card { grid-template-columns: 88px minmax(0, 1fr); gap: 15px; padding: 16px; }
  .account-product-media { height: 112px; }
  .account-product-media img { width: 76px; height: 104px; }
  .account-product-copy h3 { font-size: 1rem; }
  .account-product-copy p { display: none; }
  .account-product-buy { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
  .account-product-buy .btn { grid-column: 1 / -1; }
  .account-cart-bar { bottom: 8px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .account-cart-bar > strong { min-width: 72px; }
  .account-cart-bar .btn { grid-column: 1 / -1; width: 100%; }
  .order-history { padding: 18px; }
  .account-order-aside { grid-template-columns: 1fr; }
  .account-order-aside section + section { border-top: 1px solid var(--account-line); border-left: 0; }
  .account-dashboard-page .order-line { grid-template-columns: 54px minmax(0, 1fr); align-items: start; }
  .account-dashboard-page .order-line img { width: 48px; height: 68px; }
  .account-dashboard-page .order-price { grid-column: 2; justify-items: start; }
  .account-profile-details, .account-form, .account-security-note, #account-view-rewards > [data-rewards-dashboard-host] { padding: 18px; }
  .account-delivery-editor { padding: 16px; }
  .account-form-grid { grid-template-columns: 1fr; }
  .account-form-full { grid-column: auto; }
  .account-profile-details dl > div { grid-template-columns: 1fr; gap: 5px; }
  .account-addresses { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .account-contact-options { grid-template-columns: 1fr; }
  .account-contact-options a:nth-child(odd) { border-right: 0; }
  .account-contact-options a { min-height: 104px; padding: 18px; }
  .account-order-view .account-store-progress { margin: 12px 18px 0; }
  .account-flow-content { padding: 18px; }
  .account-flow-content .form-grid { grid-template-columns: 1fr; }
  .account-flow-content .form-grid .full { grid-column: auto; }
  .account-flow-content .cart-item { grid-template-columns: 62px minmax(0, 1fr); }
  .account-flow-content .cart-item .cart-price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .account-checkout-actions .btn { width: 100%; }
  .account-flow-content .confirmation-grid { grid-template-columns: 1fr; }
  .account-footer { align-items: flex-start; flex-direction: column; padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-sidebar { transition: none; }
}
