/* R15 researcher accounts: the researcher-access panel (sign-in, registration, email confirmation, password reset),
   My Account, the saved cart, and the save-to-cart form on product pages. Built only from the site's own tokens
   (site.css): its fonts, square 3-4 px geometry, fine lines, and the violet accent. Loaded only by the account pages
   and the gated catalog pages; it changes nothing else on the site. */

/* ---------- Forms (shared) ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 .875rem/1.3 var(--font-body); color: var(--ink); }
.field input, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font-body); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field__error { font-size: .8125rem; color: #b3261e; font-weight: 600; }
.field--error input { border-color: #b3261e; }
:root[data-theme="dark"] .field__error { color: #ff8a80; }
:root[data-theme="dark"] .field--error input { border-color: #ff8a80; }
.field__control { position: relative; display: block; }
.field__reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-button); background: transparent;
  color: var(--muted); font: 600 .8125rem/1 var(--font-body); cursor: pointer; }
.field__reveal:hover { color: var(--ink); }
.field__reveal:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.field__control input { padding-right: 72px; }
/* A value shown in a form's rhythm but not editable (the address a sign-in provider reported): the label's weight, the
   input's box on the quieter surface, and a long address wraps rather than widening the panel. */
.field__label { font: 600 .875rem/1.3 var(--font-body); color: var(--ink); }
.field__value { display: flex; align-items: center; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); color: var(--ink); font: 400 1rem/1.4 var(--font-body); overflow-wrap: anywhere; }
.field__value strong { font-weight: 600; }

.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 12px; align-items: start; font-size: .9375rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check label { cursor: pointer; }
.check label a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.check .field__error { grid-column: 2; }
/* Hotfix (owner, 27 Oct: "the sign-up page did not have the boxes to check"): iOS Safari draws native checkboxes on the
   dark access panel (color-scheme: dark) as a dark square with almost no contrast, so they vanished on iPhones. Every
   account checkbox is drawn here instead, the same in every engine: a visible 2 px border, a filled box with a white tick
   when checked, the native focus ring kept. The label stays the larger target. */
.check input[type="checkbox"], .pref input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; display: inline-block; box-sizing: border-box; width: 22px; height: 22px; margin: 1px 0 0;
  border: 2px solid var(--muted); border-radius: 4px; background: transparent center / 14px 14px no-repeat; cursor: pointer;
}
.check input[type="checkbox"]:checked, .pref input[type="checkbox"]:checked {
  border-color: #65419a; background-color: #65419a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.check { grid-template-columns: 22px minmax(0, 1fr); }
/* Walk row 13 (12 Nov 2026): the whole acknowledgment row is the checkbox's target, at least 44 px tall on touch screens:
   the label's ::after covers the row (a click on it is a click on the label), the box and the policy links stay above it. */
.check { position: relative; }
@media (pointer: coarse) { .check { min-height: 44px; } }
.check label::after { content: ""; position: absolute; inset: 0; }
.check input, .check label a { position: relative; z-index: 1; }

.form-alert { padding: 12px 16px; border-left: 3px solid #b3261e; background: var(--surface-2); font-size: .9375rem; }
.form-alert:focus { outline: none; }
.form-alert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-alert ul { margin: 6px 0 0; padding-left: 18px; }
.form-alert a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form-notice { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); font-size: .9375rem; }
.form-notice--warn { border-left-color: var(--warn, #8f5a00); }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); font: 500 .9375rem/1.3 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--accent); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button--ghost:hover { border-color: var(--ink); }

/* ---------- The researcher-access panel ----------
   A native <dialog> over the homepage (http.js), drawn as the first-visit research gate's card (research-gate.css .gate;
   owner, 3 Nov: "the rounded look ... with the white background and purple buttons"): the site's own surface and tokens,
   so a white card in the light theme and the gate's dark card in the dark one; the gate's 16 px corners, shadow and 24 px
   padding; the Atrix mark on top (dialog.js BRAND_MARK); 10 px fields; pill buttons. No glow, no bounce, no heavy blur. */
body.access-page { overflow: hidden; }
/* Owner, 3 Nov (iPhone): light bands above and below the scrim. Under the panel the page is the scrim's own colour and at
   least one screen tall, so no light canvas shows at the toolbars, in the overscroll or by the notch. */
html:has(body.access-page), body.access-page { background: #08080b; }
body.access-page { min-height: 100vh; min-height: 100svh; min-height: 100dvh; }
/* W-14: behind the dialog only the hero's screen, so the page is one screen tall (nothing half-drawn below it). */
body.access-page main > * + *, body.access-page .site-footer { display: none; }
.access-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(8, 8, 11, .84); animation: access-fade .22s ease-out both; }
.access-backdrop { min-height: 100vh; min-height: 100lvh; }   /* the largest viewport, whatever the toolbars do */
dialog.access { position: fixed; inset: 0; z-index: 100; margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(100% - 32px, 460px); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
dialog.access::backdrop { background: transparent; }
.access__panel {
  position: relative; display: grid; gap: 16px; padding: 24px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(20, 12, 40, .45);
  animation: access-in .26s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes access-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes access-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .access__panel, .access-backdrop { animation: none; } }
/* A4 (Astra F42, optional): a calmer backdrop. While the panel is open the page's own controls and copy behind the scrim
   step aside (the hero's text, picker, product details and certificate module, the navigation and header actions), so
   only the film and the vial remain as quiet atmosphere under a slightly deeper scrim. No blur (R15). */
body.access-page .access-backdrop { background: rgba(8, 8, 11, .88); }
body.access-page .hero-ui__intro, body.access-page .hero-ui__aside, body.access-page .hero-picker, body.access-page .hero-product,
body.access-page .hero-film__cue, body.access-page .primary-nav, body.access-page .header-actions { visibility: hidden; }

.access__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-button);
  color: var(--muted); text-decoration: none; }
.access__close svg { width: 20px; height: 20px; }
.access__close:hover { color: var(--ink); background: var(--surface-2); }
.access__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.access__panel .dialog-brand { justify-content: center; margin-bottom: 4px; }   /* as .gate .dialog-brand */
.access__title { font: 700 1.375rem/1.25 var(--font-display); color: var(--ink); }   /* the gate's title */
.access__title:focus { outline: none; }
.access__lead { margin-top: -6px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.access__panel a:not(.button):not(.access__close) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.access__panel a:not(.button):not(.access__close):hover { color: var(--ink); }
.access__panel .check label a { color: var(--accent); }
.access__panel .field input { background: var(--surface); border-radius: 10px; }
.access__panel .field input::placeholder { color: var(--faint); }
.access__panel .form-alert, .access__panel .form-notice { border-radius: 10px; }
.access__panel .form-alert { background: rgba(179, 38, 30, .06); }
.access__panel .form-notice { background: var(--surface-2); }
:root[data-theme="dark"] .access__panel .field--error input { border-color: #ff8a80; }
:root[data-theme="dark"] .access__panel .form-alert { border-left-color: #ff8a80; background: rgba(255, 138, 128, .08); }
:root[data-theme="dark"] .access__panel .form-alert a { color: #ffd2cd; }
/* The gate's purple pill (.button--primary on the site's tokens, as "Continue") and its outlined twin for the second action. */
.access__panel .button--secondary, .access__panel .button--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.access__panel .button--secondary:hover, .access__panel .button--ghost:hover { background: var(--accent); color: var(--on-accent); }
.form__submit { width: 100%; justify-content: space-between; }
.access__panel .form__submit { justify-content: center; }
.access__forgot { margin: -6px 0 0; text-align: right; font-size: .875rem; }
.access__alt { text-align: center; font-size: .9375rem; color: var(--muted); }
.access__fine { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: -4px; }
.access__switch { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.access__switch p { text-align: center; font-size: .9375rem; color: var(--muted); }

/* Registration in two steps inside the one form (account-panel.js shows one at a time; without scripts both stand,
   one tall form). The acknowledgments are a plain checkbox list at 14 px: no box, no tags, no visible legend; an
   error row carries the panel's 3 px rule. The step indicator is two 20 x 3 px bars with its text for assistive tech. */
.access__ruo-line { margin: -10px 0 0; text-align: center; font: 600 .8125rem/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.access__steps { display: flex; justify-content: center; gap: 6px; margin: -8px 0 0; }
.access__steps i { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.access__steps i[aria-current="step"] { background: var(--accent); }
.access__step { display: grid; gap: 18px; }
.access__step[hidden] { display: none; }
.access__step-title { text-align: center; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); color: var(--ink); }
.js .access__step-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Hotfix (one-screen sign-up): the acknowledgments' heading shows above the four boxes. */
.js form[data-register] .access__step-title, form[data-register] .access__step-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-top: 6px; text-align: left; font-size: 1.125rem; }
html:not(.js) .access__js-only { display: none; }
.acks-list { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.acks-list legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acks-list .check { font-size: .875rem; line-height: 1.5; }
.acks-list .check--error { border-left: 3px solid #b3261e; margin-left: -12px; padding-left: 9px; }
.acks-list__notice { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }   /* email notices (10 Nov): the enrolment notice closes the list */
.access__back { text-align: center; font-size: .9375rem; }
.access__back .link-button { color: var(--accent); font-weight: 500; }
.access__back .link-button:hover { color: var(--ink); }
:root[data-theme="dark"] .acks-list .check--error { border-left-color: #ff8a80; }
.access__panel .access__fine { margin-top: 0; }
.access__panel .form-alert[hidden] { display: none; }

/* ---------- The security check (Cloudflare Turnstile; rendered only while TURNSTILE is on) ----------
   In the form's flow just above the submit button, left-aligned with the fields. The widget's box keeps Cloudflare's
   managed size (300 x 65 px) before its script draws it, so nothing moves when it arrives. On a panel narrower than
   300 px (a 320 px phone) the widget is scaled down to fit instead of overflowing. A refusal is a field error above
   the widget with the panel's 3 px error rule; the summary's link focuses the box, which shows the violet ring. No
   motion of our own (the widget's own animation is inside Cloudflare's frame). */
.turnstile { display: grid; gap: 8px; min-width: 0; justify-items: start; container-type: inline-size; overflow-x: clip; border-radius: var(--radius); }
.cf-turnstile { width: 100%; min-width: 300px; min-height: 65px; transform-origin: 0 0; }   /* data-size="flexible": the field width, never under Turnstile's 300 px */
html:not(.js) .cf-turnstile { display: none; }
.turnstile:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.turnstile:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.turnstile--error { border-left: 3px solid #b3261e; margin-left: -12px; padding-left: 9px; border-radius: 0; }
:root[data-theme="dark"] .turnstile--error { border-left-color: #ff8a80; }
.turnstile .field__error { line-height: 1.4; }
.turnstile__noscript { padding: 12px 16px; border-left: 3px solid var(--warn, #8f5a00); background: var(--surface-2); color: var(--ink); font-size: .9375rem; line-height: 1.5; }
@container (max-width: 299px) { .cf-turnstile { transform: scale(.84); margin-bottom: -10.4px; } }
@container (max-width: 251px) { .cf-turnstile { transform: scale(.7); margin-bottom: -19.5px; } }

/* ---------- Social sign-in (Google, Apple) ----------
   Two full-width links above the email field (the top of the sign-in form; registration's first step only), then an
   "or" rule. Each provider's own look, in spirit: Google's "G" on a
   white button, Apple's logo in white on a black button (a fine white outline on the dark theme's card, a fine grey one
   around Google's white button on the light card, so each stays visible). No motion; the focus ring is the panel's violet, outside the button. */
.social { display: grid; gap: 10px; }
.social__button { width: 100%; min-height: 48px; padding: 10px 16px; justify-content: center; gap: 12px; font-size: .9375rem; transition: none; }
.social__mark { width: 20px; height: 20px; flex: none; }
.social__button--google { background: #fff; color: #17171c; border-color: #fff; }
.social__button--google:hover { background: #e9e9ee; border-color: #e9e9ee; }
.social__button--apple { background: #000; color: #fff; border-color: rgba(255, 255, 255, .36); }
.social__button--apple:hover { border-color: #fff; }
:root:not([data-theme="dark"]) .social__button--google { border-color: var(--line-strong); }
:root:not([data-theme="dark"]) .social__button--apple { border-color: #000; }
.social__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.social__or { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: -2px 0;
  color: var(--muted); font: 600 .8125rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.social__or::before, .social__or::after { content: ""; height: 1px; background: var(--line); }


@media (max-width: 560px) {
  dialog.access { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: 12px auto auto; }
  .access__panel { padding: 24px 20px 20px; gap: 14px; }
}
/* The panel standing on a plain page (when the homepage cannot be read). */
.access-page main:empty { display: none; }

/* ---------- Catalog pages: the signed-in bar ---------- */
.account-bar { border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .875rem; }
.account-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; min-height: 44px; }
.account-bar__who { margin-right: auto; color: var(--muted); }
.account-bar__who strong { color: var(--ink); font-weight: 600; }
.account-bar a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.account-bar a:hover { border-bottom-color: var(--accent); }
.account-bar form { margin: 0; }
.account-bar__out { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- My Account (R16: one shell, a rail and four views) ----------
   Desktop: a 240 px navigation rail beside the content, sticky under the header; the current item in ink with the
   shop's 2 px violet left rule. Phones: the same list as a horizontal, scrollable row under the header (the
   storefront's underline-tab idiom). Sign out is the last item, a form button styled like the others. */
.account { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); }
.account-shell { display: grid; gap: 28px; padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); align-items: start; }
@media (min-width: 960px) { .account-shell { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
.account-rail { position: sticky; top: calc(var(--header-h) + 24px); }
.account-rail ul { list-style: none; margin: 0; padding: 0; display: grid; }
.account-rail a, .account-rail button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 14px;
  border: 0; border-left: 2px solid transparent; background: none; color: var(--muted); font: 600 .9375rem/1.2 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.account-rail a:hover, .account-rail button:hover { color: var(--ink); }
.account-rail a[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); }
.account-rail a:focus-visible, .account-rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.account-rail__count { font: 500 .8125rem/1 var(--font-mono); color: var(--muted); }
.account-rail__out { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.account-rail__out form { margin: 0; }
.account-rail__out button { font-weight: 500; }
@media (max-width: 959px) {
  .account-rail { position: static; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
  .account-rail::-webkit-scrollbar { display: none; }
  .account-rail ul { display: flex; flex-wrap: wrap; gap: 4px; }   /* coverage O2: every section stays visible on narrow screens (no hidden scroller) */
  .account-rail li { flex: none; scroll-snap-align: start; }
  .account-rail a, .account-rail button { border-left: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 10px; white-space: nowrap; }
  .account-rail a[aria-current="page"] { border-bottom-color: var(--accent); }
  .account-rail__out { margin: 0; padding: 0; border: 0; }
}
.account-main { display: grid; gap: 24px; min-width: 0; }
.account-main__head { display: grid; gap: 6px; }
.account-main__head h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2rem); }
.account-main > .form-notice, .account-main > .form-alert { margin: 0; }
.form-notice[tabindex]:focus { outline: none; }
.form-notice[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .form-notice[data-notice] { animation: notice-in .2s ease-out both; }
  @keyframes notice-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Dashboard tiles: .account-card gives the card (24 px padding, 1 px --line, 4 px radius, --surface); a tile is a
   title, one fact in ink, up to three rows, one text link with the arrow. Only the Saved cart tile carries the
   accent rule: one accent per view. */
.account-card { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.account-card h2 { font-size: 1.125rem; }
.account-card p { color: var(--muted); font-size: .9375rem; }
.account-card p strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.account-card--cart { border-top: 2px solid var(--accent); }
.account-card__muted { color: var(--muted); font-size: .875rem; }
.account-card__list { display: grid; gap: 0; width: 100%; margin: 0; padding: 0; list-style: none; }
.account-card__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.account-card__list li:last-child { border-bottom: 1px solid var(--line); }
.account-card__facts { display: grid; gap: 14px; margin: 0; width: 100%; }
.account-card__facts dt { font-size: .8125rem; color: var(--muted); }
.account-card__facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.account-card form { margin: 0; }
.tiles { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { gap: 10px; }
.tile__fact { font: 600 1.125rem/1.3 var(--font-body); color: var(--ink); }
.tile__fact small { font: 400 .9375rem/1.3 var(--font-body); color: var(--muted); }
.tile__meta { color: var(--muted); font-size: .9375rem; }
.tile__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 2px -4px -10px; padding: 0 4px; color: var(--ink); font: 600 .9375rem/1 var(--font-body); text-decoration: none; }
.tile__link svg { width: 18px; height: 18px; }
.tile__link:hover { color: var(--accent); }
.tile__link:hover svg { transform: translateX(2px); }
.tile__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .tile__link svg { transition: transform .15s; } }
.tile .account-card__list li { padding: 8px 0; }
.tile--row { grid-template-columns: minmax(min-content, 1fr) auto; align-items: center; }   /* coverage D2: the heading never collapses under the link; the link wraps and the tile grows */
.tile--row h2 { font-size: 1rem; }
.tile--row .tile__fact { grid-column: 1; }
.tile--row .tile__link { grid-column: 2; grid-row: 1 / span 2; margin: 0; min-width: 0; line-height: 1.3; text-align: right; }
@media (max-width: 479px) { .tile--row { grid-template-columns: minmax(0, 1fr); } .tile--row h2 { font-size: 1.125rem; } .tile--row .tile__link { grid-column: 1; grid-row: auto; margin: 2px -4px -10px; text-align: left; } }   /* AN-2: on phones the link sits under the fact, as on the other tiles, so the heading keeps its line */

/* Order tracking (C3's map-route, assets/js/tracking-map.js, which brings its own styles): the Dashboard's latest-order
   tile spans the grid, first; until the module draws (it adds .tm) the space its map takes is kept, so nothing moves.
   Without scripts there is nothing to draw: the tile is left out (the Orders tab keeps its heading). */
.account-recent .tm-card { margin-bottom: 0; }
.account-orders { min-width: 0; }
.js .account-recent [data-orders-tile]:not(.tm), .js .account-orders:not(.tm) { aspect-ratio: 16 / 7; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
html:not(.js) .account-recent [data-orders-tile] { display: none; }   /* nothing to draw without scripts: the reference line and the link stay */
@media (max-width: 640px) { .js .account-orders:not(.tm) { aspect-ratio: 4 / 5; border-radius: 20px; } .js .account-recent [data-orders-tile]:not(.tm) { aspect-ratio: auto; height: 320px; border-radius: 20px; } }   /* the module's phone map sizes */

/* Details, agreements, security: one column of short sections. */
.account-section { display: grid; gap: 16px; max-width: 64ch; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.account-section h2 { font-size: 1.125rem; }
.account-section > p { color: var(--muted); font-size: .9375rem; }
.account-section .account-card__facts { gap: 12px; }
.account-section form { margin: 0; }
.account-footnote { color: var(--muted); font-size: .8125rem; }
.pref { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 12px; align-items: start; font-size: .9375rem; line-height: 1.5; }
.pref input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.pref input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pref label { cursor: pointer; }
.pref__saved, .pref noscript { grid-column: 2; }
.pref__saved { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--ok); font-weight: 600; font-size: .875rem; }
.pref__saved:focus { outline: none; }
.pref__saved:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pref__saved svg { width: 16px; height: 16px; }
.account-section > .pref__saved { grid-column: auto; } /* the Addresses notice sits in the one-column section, not the preference row */
.confirm-inline { display: grid; gap: 10px; padding: 14px 16px; border-left: 3px solid var(--warn); background: var(--surface-2); }
.confirm-inline p { color: var(--ink); font-size: .9375rem; }
.confirm-inline .button-row { margin: 0; align-items: center; }
.confirm-inline .link-button { min-height: 44px; display: inline-flex; align-items: center; }
.agree-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.agree-table th, .agree-table td { padding: 12px 10px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.agree-table th { font: 600 .8125rem/1.3 var(--font-body); color: var(--muted); }
.agree-table td a { color: var(--ink); }
.agree-table .mono { font: 500 .8125rem/1.4 var(--font-mono); overflow-wrap: anywhere; }
.agree-table .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.agree-table .ok svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 719px) {
  .agree-table thead { display: none; }
  .agree-table tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .agree-table td { padding: 0; border: 0; }
}

/* Sign-in methods (linked Google or Apple sign-ins), inside the "Password & security" card. */
.account-identities { display: grid; gap: 10px; width: 100%; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-identities h3 { font: 600 .9375rem/1.3 var(--font-body); color: var(--ink); }
.account-identities__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.account-identities__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: center; font-size: .9375rem; }
.account-identities__list .social__mark { width: 18px; height: 18px; color: var(--ink); }
.account-identities__who { overflow-wrap: anywhere; }
.account-identities__who strong { font-weight: 600; }
.account-identities__when { grid-column: 2; font-size: .8125rem; color: var(--muted); }


/* ---------- Saved cart ---------- */
.cart-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.cart-lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
/* A line: name and strength, the line total at the right; the stepper and Remove on one 40 px row beneath
   (phones) or in their own columns (from 720 px). */
.cart-line { display: grid; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what total" "qty remove"; }
@media (min-width: 720px) {
  .cart-line { padding: 18px 0; grid-template-columns: minmax(0, 1fr) 96px 136px 104px 40px; grid-template-areas: "what price qty total remove"; }
}
.cart-line__what { grid-area: what; display: grid; gap: 2px; min-width: 0; }
.cart-line__name { font: 600 1rem/1.35 var(--font-body); }
.cart-line__name a { color: var(--ink); text-decoration: none; }
.cart-line__name a:hover { color: var(--accent); }
.cart-line__sub, .cart-line__stock { font-size: .8125rem; color: var(--muted); }
.cart-line__sku { font-family: var(--font-mono); font-size: .75rem; }
.cart-line__part { white-space: nowrap; }
.cart-line__flag { font-size: .8125rem; font-weight: 600; color: var(--warn, #8f5a00); }
.cart-line--unavailable .cart-line__name, .cart-line--discontinued .cart-line__name { color: var(--muted); }
.cart-line__price { grid-area: price; display: none; }
@media (min-width: 720px) { .cart-line__price { display: block; } .cart-line__was { display: none; } }
/* PROMO_OVERLAYS (owner, 10 Nov): the sale price in the site's green beside the struck regular price, which stays muted. */
.cart-line .price__current--sale { color: var(--ok); font-weight: 600; }
.cart-line .price__list { color: var(--muted); }
.cart-line__total { grid-area: total; font-weight: 600; text-align: right; white-space: nowrap; }
.cart-line__qty { grid-area: qty; display: flex; align-items: center; gap: 8px; margin: 0; justify-self: start; }
.cart-line__qty label { font-size: .8125rem; color: var(--muted); }
.cart-line__qty .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: var(--surface); }
.stepper button { width: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.125rem/1 var(--font-body); cursor: pointer; }
.stepper button:hover { background: var(--surface-2); }
.stepper button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.stepper button[disabled] { color: var(--line-strong); cursor: default; background: transparent; }
/* A2 (Astra coverage leftovers): on touch screens the stepper and the email-updates choice are 44 px targets (the
   checkbox's whole row, label included, answers the tap). */
@media (pointer: coarse) {
  .stepper button { width: 44px; min-height: 44px; }
  .stepper .stepper__input, .stepper input[type] { min-height: 44px; }
  .cart-line .cart-line__remove button { width: 44px; height: 44px; }
  .pref { grid-template-columns: 24px minmax(0, 1fr); }
  .pref input { width: 24px; height: 24px; margin: 0; }
  .pref label { display: flex; align-items: center; min-height: 44px; margin-block: -10px; }
}
.stepper input { width: 48px; min-height: 40px; padding: 0 4px; border: 0; border-inline: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); font: 500 .9375rem/1 var(--font-body); text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html:not(.js) .stepper button { display: none; }
html:not(.js) .stepper input { border-inline: 0; width: 64px; }
.cart-line__qty .button { min-height: 40px; padding: 8px 12px; }
.cart-line__remove { grid-area: remove; margin: 0; justify-self: end; }
.cart-line__remove button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-button); background: transparent; color: var(--muted); cursor: pointer; }
.cart-line__remove button:hover { color: var(--ink); border-color: var(--line-strong); }
.cart-line__remove button:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.cart-line__remove svg { width: 18px; height: 18px; }
.cart-line__plain { grid-area: qty; margin: 0; font-size: .9375rem; color: var(--muted); }
.cart-summary { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface); }
.cart-summary dl { margin: 0; }
.cart-summary dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart-summary dt { font-weight: 600; }
.cart-summary dd { margin: 0; font: 600 1.375rem/1.2 var(--font-display); }
.cart-summary__note { font-size: .875rem; color: var(--muted); }
.cart-summary .button { justify-content: center; }
.cart-summary__checkout[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }   /* UI-5: checkout shown, not open (payments off) */
.cart-clear { margin: 16px 0 0; }
.cart-clear form { margin: 0; }
.cart-clear .link-button { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .875rem; }
.cart-clear .link-button:hover { color: var(--ink); }
.cart-empty { display: grid; gap: 10px; justify-items: start; max-width: 52ch; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cart-empty h2 { font-size: 1.125rem; }   /* R21-B (F5b): the account card heading size */
.cart-empty p { color: var(--muted); }

/* ---------- Product pages: save to cart ---------- */
.save-cart { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.save-cart__chosen { margin: 0 0 12px; font-size: .9375rem; color: var(--muted); }
.save-cart__chosen strong { color: var(--ink); font-weight: 600; }
.save-cart__sizes { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9375rem; }
.save-cart__sizes a { color: var(--ink); }
.save-cart__sizes a[aria-current="true"] { font-weight: 600; text-decoration-color: var(--accent); }
.save-cart__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: end; }
.save-cart__row .button { justify-content: space-between; }
.save-cart__note { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.save-cart__stock { margin-top: 8px; font-size: .875rem; font-weight: 600; color: var(--ink); }   /* W-02: why the button is off */
.save-cart .button:disabled, .pp-mini__go:disabled { opacity: .55; cursor: not-allowed; }
.save-cart__state { margin-top: 8px; font-size: .875rem; color: var(--ink); }   /* Astra F02: the account's record for the chosen size, never a claim ahead of it */
.save-cart__state[hidden], .save-cart__state [hidden] { display: none; }
.save-cart__error { margin-top: 8px; font-size: .875rem; color: var(--warn); }

.checkout-disclosure { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); font-size: .9375rem; display: grid; gap: 10px; }
.outbox { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.outbox pre { white-space: pre-wrap; font-size: .8125rem; overflow-wrap: anywhere; }

/* Sign out (owner, 28 Oct): a real button at the end of the account menu, clearly visible on every account page. */
.account-rail .account-rail__signout { display: inline-flex; justify-content: center; width: auto; min-height: 44px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: var(--radius-button); color: var(--ink); background: transparent; font: 600 .875rem/1.2 var(--font-body); }
.account-rail .account-rail__signout:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 959px) { .account-rail .account-rail__signout { border: 1px solid var(--ink); margin: 0 0 6px 6px; padding: 8px 16px; } }
/* the rounded stepper keeps its buttons' hover inside the pill: their own corners, not overflow (which would clip their 44 px zones) */
.stepper button:first-child { border-radius: var(--radius-button) 0 0 var(--radius-button); } .stepper button:last-child { border-radius: 0 var(--radius-button) var(--radius-button) 0; }
/* Back-in-stock alerts (Account details; stock-alerts.js lists them). */
.stock-alerts[hidden] { display: none; }
.stock-alerts__item { align-items: center; }
.stock-alerts__what { display: grid; gap: 2px; min-width: 0; }
.stock-alerts__what a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.stock-alerts__meta { color: var(--muted); font-size: .8125rem; }
.stock-alerts__status--open { color: var(--ink); font-weight: 600; }
.stock-alerts__item .link-button { flex: none; min-height: 44px; }
.stock-alerts__empty { margin: 0; }
.stock-alerts__status--failed { color: var(--danger, #b42318); font-weight: 600; }
/* UX-13 (C1, 2 Nov): 44 px touch targets on the sign-in panel without moving anything (an invisible ::after; the
   forgot-password link has 14 px above and 20 px below it, so its 13 px reach overlaps nothing). UX-16: figures align. */
@media (pointer: coarse) {
  .access__forgot a { position: relative; }   /* .field__reveal is already positioned */
  .access__forgot a::after, .field__reveal::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%; }
}
/* Walk row 25 (C4's hand-off, 12 Nov 2026), the row-13 method: on touch screens a transparent border adds the missing
   height and an equal negative margin takes it back, so the painted controls and the layout stay as they are. The Show
   toggle (36 px) keeps its right edge; the statements' labels (21 px a line) and the Terms, Policy and Privacy links in
   them (18 px; inline, so their borders take no room) reach 44 px. The links reach down only: a link's own words then
   always win over the reach of the link on the line above it (the later link is on top). */
@media (pointer: coarse) {
  .field__reveal { min-height: 44px; border: 4px solid transparent; margin-right: -4px; }
  .field__reveal:focus-visible { outline-offset: -4px; }
  .check label { border-block: 12px solid transparent; margin-block: -12px; }
  .check label a { border-bottom: 26px solid transparent; }
}
/* Walk row 22: behind the access panel the homepage's headline is a paragraph (http.js overHomepage); the h1's type. */
.access-page p.hero-film__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.cart-line__price, .cart-line__qty, .stepper input { font-variant-numeric: tabular-nums; }

/* Google address suggestions (owner, 10 Nov 2026): the shipping address form in the Account (and checkout later). One
   column on phones; city, state and ZIP across from 720 px. The suggestion box is Google's element in our field's size. */
.address-form { display: grid; gap: 18px; }
.address-form__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .address-form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .6fr); } }
.address-suggest { display: grid; gap: 6px; }
.address-suggest[hidden] { display: none; }
.address-suggest__slot { min-height: 50px; border: 1px solid var(--line, #c9c7d3); border-radius: 14px; }   /* the box's place, held from the server: nothing moves when Google arrives */
.address-suggest gmp-place-autocomplete { display: block; width: 100%; min-height: 48px; }

/* Account layout (owner, 10 Nov 2026, after a reference of another store's account, in our own look). The sidebar: the
   holder (initial, email, member since), the sections with a line icon each, Back to shop, Sign out. The Overview:
   summary cards (one figure, one line, a chevron), Recent orders (the tracking tile or the empty state), the tiles. */
.account-rail__who { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 4px 0 16px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.account-rail__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; grid-row: 1 / span 2; background: var(--accent); color: #fff; font: 600 1rem/1 var(--font-body); }
.account-rail__email { margin: 0; font: 600 .875rem/1.3 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.account-rail__since { margin: 0; font-size: .8125rem; color: var(--muted); }
.account-rail a svg, .account-rail__shop a svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.account-rail a { justify-content: flex-start; }
.account-rail a > span:first-of-type { flex: 1 1 auto; }
.account-rail a[aria-current="page"] svg, .account-rail a:hover svg { color: var(--accent); }
.account-rail__shop { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 959px) {
  .account-rail__who { margin: 0 0 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }   /* above the tab row, its own rule under it */
  .account-rail__shop { margin: 0; padding: 0; border: 0; }
  .account-rail a svg { display: none; }
}
.account-main__lead { color: var(--muted); font-size: .9375rem; }
.summary { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .summary { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }   /* equal columns filling the row, however many cards (Coordinator, 11 Nov: no half-empty row) */
.summary-card { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.summary-card:hover { border-color: var(--accent); }
.summary-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.summary-card__head { display: flex; align-items: center; gap: 8px; font: 600 .875rem/1.2 var(--font-body); color: var(--muted); }
.summary-card__head svg { width: 18px; height: 18px; flex: none; }
.summary-card__head svg:last-child { margin-left: auto; width: 16px; height: 16px; }
.summary-card:hover .summary-card__head svg:last-child { color: var(--accent); }
.summary-card__n { font: 600 1.75rem/1.1 var(--font-body); color: var(--ink); }
.summary-card__sub { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.account-recent { justify-items: stretch; }
@media (min-width: 720px) { .tiles--fill { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }   /* the Overview's three tiles across, no tile alone on a row */
.account-recent__empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px 16px; }
.account-recent__empty .account-recent__icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--bg); color: var(--accent); }
.account-recent__title { font: 600 1.0625rem/1.3 var(--font-body); color: var(--ink); }
.account-recent__empty .button { margin-top: 8px; }
.account-recent__ref { font-size: .9375rem; }
/* The Wishlist page: one row per saved product (name, from price and availability, View, Remove); the heart on a card
   or product page is .wish (catalog.css places it). */
.wish-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wish-line { display: grid; gap: 8px 16px; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wish-line__what { display: grid; gap: 2px; min-width: 0; }
/* The row's thumbnail (Coordinator, 11 Nov): C3's cart vial tile (cart-thumb.js), the label's still over a plain vial glyph.
   These are cart-art.css's tile rules, scoped to the row: that sheet is the checkout's and is not on the account pages. */
.wish-line:has(> .wish-line__thumb) { grid-template-columns: 52px minmax(0, 1fr) auto 40px; }
.wish-line__thumb { display: block; border-radius: 12px; }
.wish-line .co-thumb { position: relative; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.wish-line .co-thumb__glyph { width: 22px; height: 38px; color: #65419a; }
.wish-line .co-thumb img { position: absolute; left: 50%; top: 50%; width: auto; height: 168%; max-width: none; transform: translate(-50%, -47%); }
.wish-line .co-thumb img + .co-thumb__glyph { visibility: hidden; }
.wish-line__name { font: 600 1rem/1.35 var(--font-body); }
.wish-line__name a { color: var(--ink); text-decoration: none; }
.wish-line__name a:hover { color: var(--accent); }
.wish-line__sub { font-size: .8125rem; color: var(--muted); }
.wish-line__sub > span { white-space: nowrap; }
@media (max-width: 719px) { .wish-line__sub { display: grid; } .wish-line__sep { display: none; } }   /* phones: price, then status, each whole; no dot left at a line's end */
.wish-line__remove { margin: 0; }
.wish-line__remove button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.wish-line__remove button:hover { color: var(--ink); background: var(--bg); }
.wish-line__remove button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wish-line__remove svg { width: 18px; height: 18px; }
.wish-list__note { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.wish-empty p { color: var(--muted); }
.wish { margin: 0; }
.wish__button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .875rem/1 var(--font-body); cursor: pointer; }
@media (pointer: coarse) { .wish__button { min-height: 44px; } }   /* walk row 13: the product page's Save, a 44 px touch target */
.wish__button svg { flex: none; width: 18px; height: 18px; }   /* never squeezed in a narrow row (the saved heart was a sliver) */
.wish__button:hover { border-color: var(--accent); color: var(--accent); }
.wish__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wish__button[aria-pressed="true"] svg { fill: currentColor; }
.wish__button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

/* RUO compliance (11 Nov 2026): the compound line under a blend's name in the cart. */
.cart-line__compounds { margin: 2px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.access__eligibility { margin: 0 0 12px; font-size: .875rem; line-height: 1.45; }

/* The cookie and storage choice, reachable while the panel is up (the page behind is inert; Privacy §6.8: on every page) */
.access__consent { margin: 0; text-align: center; font-size: .8125rem; }
.access__consent a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
