/* ==========================================================================
   Cotton Trend — customer account
   account.html (log in / create account) and my-account.html (dashboard).
   Loaded after home.css and pages.css. Neutral palette only.
   ========================================================================== */

/* ---------- Shared bits ---------- */
.acc-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.acc-avatar--kid { background: var(--stone-2); color: var(--ink); font-size: 18px; }
.acc-label { font-size: 13px; font-weight: 600; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-actions .btn { min-height: 48px; padding: 0 24px; }
.acc-card { border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2.4vw, 26px); background: #fff; }

/* Password field with show / hide */
.acc-pw { position: relative; }
.acc-pw input { padding-right: 52px; }
.acc-pw__toggle { position: absolute; top: 50%; right: 6px; translate: 0 -50%; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.acc-pw__toggle:hover { color: var(--ink); background: var(--stone); }
.acc-pw__toggle .icon { width: 20px; height: 20px; }
.acc-pw__toggle .icon-eyeoff, .acc-pw__toggle[aria-pressed="true"] .icon-eye { display: none; }
.acc-pw__toggle[aria-pressed="true"] .icon-eyeoff { display: block; }
.field.is-invalid .acc-pw input { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(185,65,47,.1); }

/* Strength meter */
.acc-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.acc-meter i { height: 4px; border-radius: 4px; background: var(--stone-2); transition: background-color .2s; }
.acc-meter[data-level="1"] i:nth-child(-n+1) { background: var(--sale); }
.acc-meter[data-level="2"] i:nth-child(-n+2) { background: #8A8F94; }
.acc-meter[data-level="3"] i:nth-child(-n+3) { background: #2F7A55; }
.acc-meter[data-level="4"] i { background: #2F7A55; }
.acc-meter__txt { font-size: 12px; color: var(--muted); }

/* Segmented radio (address label, shop for) */
.acc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-seg label { position: relative; cursor: pointer; }
.acc-seg input { position: absolute; opacity: 0; inset: 0; }
.acc-seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid #D6D3CC; border-radius: 999px; font-size: 14px; transition: background-color .15s, border-color .15s, color .15s; }
.acc-seg label:hover span { border-color: var(--ink); }
.acc-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ==========================================================================
   Page 1: log in / create account
   ========================================================================== */
.acc-auth { padding-block: clamp(20px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.acc-auth__grid { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 960px) { .acc-auth__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); } }

.acc-visual { position: relative; border-radius: 14px; overflow: hidden; background: var(--stone); min-height: 280px; display: flex; align-items: flex-end; order: 2; }
.acc-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.acc-visual__card { position: relative; margin: 14px; padding: 22px; border-radius: 12px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); display: grid; gap: 8px; width: calc(100% - 28px); }
.acc-visual__card h2 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.acc-benefits { display: grid; gap: 14px; margin-top: 8px; }
.acc-benefits li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; font-size: 14px; }
.acc-benefits__ic { width: 38px; height: 38px; border-radius: 50%; background: var(--stone); display: grid; place-items: center; }
.acc-benefits__ic .icon { width: 18px; height: 18px; }
.acc-benefits b { display: block; font-weight: 600; font-size: 15px; }
.acc-benefits span { color: var(--muted); }
@media (min-width: 640px) { .acc-benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .acc-visual { order: 0; min-height: 640px; position: sticky; top: 100px; max-height: calc(100vh - 120px); }
  .acc-visual__card { margin: 24px; width: calc(100% - 48px); padding: 26px; }
  .acc-benefits { grid-template-columns: 1fr 1fr; }
}

.acc-panel { width: 100%; max-width: 520px; justify-self: center; display: grid; align-content: start; gap: 0; padding-top: 4px; }
.acc-title { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.06; margin-top: 16px; }
.acc-sub { color: var(--ink-2); margin-top: 10px; }

.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 26px 0 22px; background: var(--stone); border-radius: 999px; }
.acc-tab { min-height: 46px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.acc-tab:hover { color: var(--ink); }
.acc-tab[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(22,25,28,.12); }
.acc-tab:focus-visible { outline-offset: -2px; }
.acc-tabpanel:focus-visible { outline: none; }
.acc-tabpanel[hidden] { display: none; }

.acc-form { display: grid; gap: 16px; }
.acc-form .fields { gap: 16px; }
@media (min-width: 640px) { .acc-form .fields { grid-template-columns: 1fr; } }
.acc-mode { display: grid; gap: 16px; }
.acc-mode[hidden] { display: none; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-row .check { font-size: 14px; }
.acc-form .btn--lg { margin-top: 4px; }
.acc-form .btn[disabled] { opacity: .7; cursor: progress; }
.acc-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acc-switch .icon { width: 19px; height: 19px; }
.acc-switch:hover .icon { transform: none; }
.acc-foot { text-align: center; font-size: 14px; color: var(--ink-2); }
.acc-foot .link-btn { font-size: 14px; font-weight: 600; color: var(--ink); }
.acc-legal { font-size: 12.5px; color: var(--muted); text-align: center; }
.acc-legal a { text-decoration: underline; text-underline-offset: 2px; }
.acc-consent { align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.acc-consent .check__box { margin-top: 1px; }

/* One-time code */
.acc-otp { display: grid; gap: 14px; padding: 18px; border-radius: 10px; background: var(--stone); }
.acc-otp__intro { font-size: 14px; color: var(--ink-2); }
.acc-otp .btn { background: #fff; min-height: 48px; }
.acc-otp .btn:hover { background: var(--ink); }
.acc-otp .btn .icon { width: 18px; height: 18px; }
.acc-otp .btn:hover .icon { transform: none; }
.acc-otp__entry { display: grid; gap: 10px; }
.acc-otp__entry[hidden] { display: none; }
.field input.acc-otp__input { font-size: 24px; font-weight: 700; letter-spacing: .5em; text-align: center; padding: 12px 0 12px .5em; font-variant-numeric: tabular-nums; }
.field input.acc-otp__input::placeholder { color: #C9C5BD; }
.acc-otp__resend { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.acc-otp__resend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-otp__resend [hidden] { display: none; }

.acc-trust { display: grid; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.acc-trust li { display: flex; align-items: center; gap: 10px; }
.acc-trust .icon { width: 17px; height: 17px; color: var(--ink-2); }

/* ==========================================================================
   Page 2: my account
   ========================================================================== */
.acc-head .container { padding-block: clamp(24px, 3.5vw, 44px); }
.acc-head .page-title { font-size: clamp(32px, 3.6vw, 48px); }
.acc-body { padding-block: clamp(20px, 3vw, 44px) clamp(64px, 8vw, 110px); }
.acc-layout { display: grid; gap: 24px; align-items: start; }
.acc-content { min-width: 0; }

/* Navigation: horizontal pills on mobile, sticky column on desktop */
.acc-nav { min-width: 0; }
.acc-nav__me { display: none; }
.acc-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav__list { display: flex; gap: 8px; flex: none; }
.acc-nav__list a { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s; }
.acc-nav__list a:hover { border-color: var(--ink); color: var(--ink); }
.acc-nav__list .icon { width: 17px; height: 17px; }
.acc-nav__list a[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-nav__count { font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--stone); color: var(--ink); display: grid; place-items: center; }
.acc-nav__list a[aria-selected="true"] .acc-nav__count { background: rgba(255,255,255,.18); color: #fff; }

@media (min-width: 960px) {
  .acc-layout { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
  .acc-nav { position: sticky; top: 100px; display: grid; gap: 6px; overflow: visible; margin: 0; padding: 0; }
  .acc-nav__me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .acc-nav__me b { display: block; font-weight: 600; }
  .acc-nav__me span { font-size: 13px; color: var(--muted); }
  .acc-nav__list { display: grid; gap: 2px; }
  .acc-nav__list a { border: 0; border-radius: 8px; min-height: 46px; padding: 0 14px; font-size: 15px; }
  .acc-nav__list a:hover { background: var(--stone); }
  .acc-nav__list .acc-nav__count { margin-left: auto; }
  .acc-nav__list--end { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
}

.acc-section { display: grid; gap: 24px; }
.acc-section[hidden] { display: none; }
.acc-section:focus { outline: none; }
.acc-section__head { display: grid; gap: 6px; }
.acc-h { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.1; }
.acc-hello p { margin-top: 6px; }
.acc-hello .link-btn { font-size: inherit; }

/* Stats */
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acc-stats a { display: grid; gap: 2px; height: 100%; padding: 16px; border-radius: 12px; background: var(--stone); transition: background-color .2s; }
.acc-stats a:hover { background: var(--stone-2); }
.acc-stats__n { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.acc-stats span:not(.acc-stats__n) { font-size: 14px; font-weight: 500; }
.acc-stats small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) {
  .acc-stats a { padding: 14px 12px; }
  .acc-stats small { display: none; }
  .acc-stats span:not(.acc-stats__n) { font-size: 13px; line-height: 1.3; }
}

/* Latest order */
.acc-latest { display: grid; gap: 22px; }
.acc-latest__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-latest h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.01em; margin: 4px 0; }
.acc-latest .muted { font-size: 14px; }
.acc-thumbs { display: flex; }
.acc-thumbs li { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; border: 2px solid #fff; background: var(--stone); margin-left: -10px; }
.acc-thumbs li:first-child { margin-left: 0; }
.acc-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.acc-thumbs__more { display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.acc-latest__eta { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.acc-latest__eta .icon { width: 20px; height: 20px; margin-top: 1px; }
.acc-latest__eta b { color: var(--ink); font-weight: 600; }

.acc-prog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.acc-prog li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; font-size: 12.5px; }
.acc-prog li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.acc-prog li:first-child::before { display: none; }
.acc-prog li.done::before, .acc-prog li.now::before { background: #2F7A55; }
.acc-prog__dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; }
.acc-prog__dot .icon { width: 14px; height: 14px; color: #fff; stroke-width: 2.4; }
.acc-prog .done .acc-prog__dot { background: #2F7A55; border-color: #2F7A55; }
.acc-prog .now .acc-prog__dot { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,25,28,.08); }
.acc-prog .now .acc-prog__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s ease-in-out infinite; }
.acc-prog b { font-weight: 600; line-height: 1.25; }
.acc-prog li:not(.done):not(.now) b { color: var(--muted); font-weight: 500; }
.acc-prog small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 520px) { .acc-prog b { font-size: 11px; } .acc-prog small { display: none; } }

/* Size-up nudge */
.acc-nudge { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--stone); border-color: var(--stone); }
.acc-nudge__ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.acc-nudge__ic .icon { width: 20px; height: 20px; }
.acc-nudge b { display: block; font-weight: 600; }
.acc-nudge div span { font-size: 14px; color: var(--ink-2); }
.acc-nudge .u-link { grid-column: 1 / -1; justify-self: start; font-size: 14px; }
@media (min-width: 700px) { .acc-nudge { grid-template-columns: auto 1fr auto; } .acc-nudge .u-link { grid-column: auto; } }

/* Product rows inside the account */
.acc-block { display: grid; gap: 16px; }
.acc-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.acc-block__head h3 { font-size: 20px; letter-spacing: -0.01em; }
ul.products.acc-products { gap: 28px 12px; }
@media (min-width: 900px) { ul.products.acc-products { grid-template-columns: repeat(3, 1fr); gap: 36px 18px; } }
@media (min-width: 1200px) { ul.products.acc-wish { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) {
  ul.products.acc-products--3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  ul.products.acc-products--3::-webkit-scrollbar { display: none; }
  ul.products.acc-products--3 li { scroll-snap-align: start; }
}
.acc-last-size { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: #fff; }
.acc-wish-remove { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); transition: background-color .15s, color .15s; }
.acc-wish-remove:hover { background: var(--ink); color: #fff; }
.acc-wish-remove .icon { width: 16px; height: 16px; }
ul.products li.product .acc-wish-add { position: static; transform: none; min-height: 44px; margin-top: 12px; padding: 0 16px; width: 100%; font-size: 14px; gap: 8px; background: #fff; color: var(--ink); }
ul.products li.product .acc-wish-add span { display: inline; }
ul.products li.product .acc-wish-add:hover, ul.products li.product .acc-wish-add.added { background: var(--ink); color: #fff; }
.acc-wish li.is-removing { opacity: 0; transform: scale(.96); transition: opacity .25s, transform .25s; }

.acc-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(32px, 6vw, 64px) 20px; border: 1px dashed #D6D3CC; border-radius: 12px; }
.acc-empty[hidden] { display: none; }
.acc-empty__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--stone); display: grid; place-items: center; }
.acc-empty h3 { font-size: 20px; }
.acc-empty .btn { margin-top: 8px; }

/* Referral */
.acc-refer h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; }
.acc-refer .ref-code { max-width: 460px; }
.acc-refer__wa { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.acc-refer__wa .icon { width: 16px; height: 16px; }
.acc-refer :focus-visible { outline-color: #fff; }

/* Status chips */
.acc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0; white-space: nowrap; }
.acc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc-status--processing { background: var(--ink); color: #fff; }
.acc-status--completed { background: #EEF5F0; color: #2F7A55; }
.acc-status--cancelled { background: var(--stone); color: var(--muted); }

/* Orders table */
.acc-orders { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.acc-orders thead th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.acc-orders tbody th, .acc-orders tbody td { text-align: left; padding: 18px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-weight: 400; }
.acc-orders tbody th a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.acc-orders tbody th a:hover { text-decoration-color: currentColor; }
.acc-orders b { font-weight: 600; }
.acc-orders .muted { font-size: 13px; }
.acc-order-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.acc-order-actions .button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s; }
.acc-order-actions .button:hover { border-color: var(--ink); }
.acc-order-actions .track { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-order-actions .track:hover { background: var(--ink-2); }
.acc-order-actions .reorder.added { background: var(--ink); color: #fff; border-color: var(--ink); }
.acc-help { font-size: 14px; color: var(--ink-2); }
.acc-help .link-btn { font-size: 14px; }

@media (max-width: 759px) {
  .acc-orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .acc-orders, .acc-orders tbody { display: block; }
  .acc-orders tbody { display: grid; gap: 12px; }
  .acc-orders tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
  .acc-orders tbody th, .acc-orders tbody td { display: block; padding: 0; border: 0; }
  .acc-orders .woocommerce-orders-table__cell-order-number { font-size: 16px; }
  .acc-orders .woocommerce-orders-table__cell-order-status { justify-self: end; grid-row: 1; grid-column: 2; }
  .acc-orders .woocommerce-orders-table__cell-order-date { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
  .acc-orders .woocommerce-orders-table__cell-order-total { grid-column: 1 / -1; }
  .acc-orders .woocommerce-orders-table__cell-order-actions { grid-column: 1 / -1; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
  .acc-order-actions { justify-content: stretch; }
  .acc-order-actions .button { flex: 1; justify-content: center; }
}

/* Addresses */
.acc-addrs { display: grid; gap: 14px; }
@media (min-width: 700px) { .acc-addrs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .acc-addrs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.acc-addr { display: grid; gap: 12px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.acc-addr.is-default { border-color: var(--ink); }
.acc-addr header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acc-addr h3 { font-size: 17px; }
.acc-addr address { font-style: normal; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.acc-addr__actions { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.acc-addr--add { place-content: center; justify-items: center; text-align: center; gap: 6px; min-height: 200px; border-style: dashed; border-color: #CFCBC3; background: var(--stone); transition: border-color .2s, background-color .2s; }
.acc-addr--add:hover { border-color: var(--ink); background: var(--stone-2); }
.acc-addr--add .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ink); color: #fff; }
.acc-addr--add span { font-weight: 600; }
.acc-addr--add small { font-size: 13px; color: var(--muted); }
.acc-addr-form { display: grid; gap: 18px; }
.acc-addr-form[hidden] { display: none; }
.acc-addr-form h3, .acc-kid-form h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.acc-kid-form h3 .icon { width: 20px; height: 20px; }

/* Little ones */
.acc-kids { display: grid; gap: 14px; }
@media (min-width: 700px) { .acc-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-kid { display: grid; gap: 16px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.acc-kid.is-soon { border-color: var(--ink); }
.acc-kid header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.acc-kid h3 { font-size: 18px; }
.acc-kid header .muted { font-size: 13.5px; }
.acc-kid__remove { width: 36px; height: 36px; justify-content: center; border-radius: 50%; text-decoration: none; }
.acc-kid__remove:hover { background: var(--stone); }
.acc-kid__meta { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; border-radius: 10px; background: var(--stone); }
.acc-kid__meta dt { font-size: 12px; color: var(--muted); }
.acc-kid__meta dd { margin: 0; font-weight: 600; font-size: 14px; }
.acc-kid__alert, .acc-kid__ok { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.acc-kid__alert .icon, .acc-kid__ok .icon { width: 20px; height: 20px; margin-top: 1px; }
.acc-kid__alert { padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.acc-kid__alert b { font-weight: 600; }
.acc-kid__ok .icon { color: #2F7A55; }
.acc-kid .btn { min-height: 46px; }
.acc-kid-form { display: grid; gap: 18px; }
.acc-kid-form > .btn { justify-self: start; min-height: 48px; }
.acc-kid.is-new { animation: acc-in .4s ease both; }
@keyframes acc-in { from { opacity: 0; transform: translateY(8px); } }

/* Account details */
.acc-details { display: grid; gap: 16px; }
.acc-details fieldset { margin: 0; min-width: 0; display: grid; gap: 14px; }
.acc-details legend { float: left; width: 100%; padding: 0; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.acc-details legend + * { clear: both; }
.acc-fs-note { font-size: 14px; margin-top: -6px; }
.acc-switches { display: grid; }
.acc-switch-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.acc-switch-row:first-child { border-top: 0; padding-top: 4px; }
.acc-switch-row b { display: block; font-weight: 600; font-size: 15px; }
.acc-switch-row small { display: block; font-size: 13.5px; color: var(--muted); }
.acc-switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-toggle { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: #CFCBC3; transition: background-color .2s; }
.acc-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.acc-switch-row input:checked + .acc-toggle { background: var(--ink); }
.acc-switch-row input:checked + .acc-toggle::after { transform: translateX(18px); }
.acc-switch-row input:focus-visible + .acc-toggle { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .acc-prog .now .acc-prog__dot::after, .acc-kid.is-new { animation: none; }
}
.acc-copy-btn { background: #fff; color: var(--ink); border-color: #fff; min-height: 44px; padding: 0 18px; }
.acc-copy-btn:hover { background: var(--stone); }
.acc-copy-btn .icon { width: 17px; height: 17px; }
.acc-copy-btn:hover .icon { transform: none; }
.acc-nw, .acc-kid__meta dd[data-kid-size], .acc-kid__meta dd[data-kid-next], .acc-last-size { white-space: nowrap; }
.page-account .toast, .page-my-account .toast { width: max-content; max-width: calc(100vw - 32px); }
