/* ==================== Veyora UI: the design language ====================
   One place for the colours, sizes and shared parts of the site, the shop, the
   admin and the warehouse screens (plan: docs/plans/samlpeerceo-feat-design-language.md,
   Sam Peer, approved 10 Nov 2026). A change to a colour, a button or a card is
   made here, once.

   Phase 1 (this file's first version): the tokens carry TODAY's values, so the
   site looks exactly as it did; the new values in the plan arrive screen by
   screen in the later phases. Loaded once, by the one web app's page
   (storefront/index.html), so the shop and the admin (which runs inside that
   page) read the same tokens; just before css/brand-frame.css, where the
   button rules below used to live, so they win exactly where they won before.
   It is not part of the admin bundle: the bundler scopes `:root` to
   `.adm-scope`, and the tokens belong to the whole page.

   The homepage (home.css) has used the vx- prefix for its own sections since
   before this file; its tokens (--vx-orange, ...) now read the language's.

   Three sections:
     1. tokens         --vx-*: the language (the plan's names), then the shop's
                       and the admin's palettes as they are today, which
                       store.css and the admin's styles.css now read from here.
     2. parts          .vx-*: the fifteen shared parts. New screens use these.
     3. today's buttons the site's buttons (Sam Peer, 10 Nov 2026, "buttons, one
                       system"), moved here from css/brand-frame.css; .btn is
                       the .vx-btn part.

   No colour literal outside section 1 (api/test/design-language.test.js). */

/* ---------- 1. tokens ---------- */
:root{
  /* The language, at the plan's values (from phase 2, docs/plans/samlpeerceo-feat-design-language-p2.md). */
  --vx-ink:#1d1d1f;
  --vx-graphite:#424245;
  --vx-stone:#6e6e73;
  --vx-hairline:#e5e5ea;
  --vx-hairline-soft:#e5e5ea;
  --vx-mist:#f5f5f7;
  --vx-white:#fff;
  --vx-black:#000;
  --vx-signature:#ed6e2a;          /* the brand orange: a brand touch only */
  --vx-signature-hover:#f2864c;
  --vx-focus:#0071e3;              /* the buttons' focus ring */
  --vx-danger:#d70015;
  --vx-danger-deep:#b80012;
  --vx-danger-soft:#fff1f2;
  --vx-disabled:#c7c7cc;
  --vx-backorder:#2b2728;
  --vx-backorder-deep:#2b2728;
  --vx-preorder:#0a3d91;
  --vx-preorder-deep:#082f70;
  --vx-track:#e7e9ee;              /* a segmented control's track */
  --vx-credit:#e08a4a;             /* the studio credit in the footer */
  /* Status dots: ready, needs you, stopped. */
  --vx-ready:#0a7d38;
  --vx-needs-you:#a35400;
  --vx-stopped:#c4302b;
  --vx-ease:cubic-bezier(.2,.7,.2,1);
  /* Spacing, radius and type scale (the plan's). */
  --vx-space-1:4px;--vx-space-2:8px;--vx-space-3:12px;--vx-space-4:16px;
  --vx-space-5:24px;--vx-space-6:32px;--vx-space-7:48px;--vx-space-8:64px;
  --vx-radius-button:999px;
  --vx-radius-card:16px;
  --vx-radius-field:12px;
  --vx-radius-badge:2px;
  --vx-radius-chip:4px;
  /* Type, as Sam's design-language board (mockup 01): one face, six sizes. */
  --vx-text-display:56px;--vx-text-title:32px;--vx-text-heading:20px;
  --vx-text-body:15px;--vx-text-brand:14px;--vx-text-label:12px;

  /* The shop's palette today (store.css :root reads these). */
  --vx-shop-ink:#221F20;
  --vx-shop-ink-2:#131e42;
  --vx-shop-ink-3:#2b2728;          /* the Veyora black (Sam, 17 Nov 2026) */
  --vx-shop-accent:#324264;
  --vx-shop-muted:#64748b;
  --vx-shop-line:#e2e8f0;
  --vx-shop-bg:#fafbfc;
  --vx-shop-card:#ffffff;
  --vx-shop-soft-blue:#ebf3f9;
  --vx-shop-soft-warm:#f4f1ee;      /* warm neutral (Sam, 17 Nov 2026) */
  --vx-shop-ok:#15803d;
  --vx-shop-warn:#b45309;
  --vx-shop-bad:#b91c1c;
  --vx-shop-radius:6px;            /* the shop's pages until they move onto the parts */
  --vx-shop-shadow:0 1px 2px rgba(19,30,66,.07),0 1px 6px rgba(19,30,66,.05);

  /* The admin's palette today (the admin's styles.css :root reads these). */
  --vx-admin-bg:#f6f4f0;          /* warm paper (Sam, 21 Nov 2026: more luxurious, more tones) */
  --vx-admin-panel:#ffffff;
  --vx-admin-card:#ffffff;
  --vx-admin-ink:#1c1a17;
  --vx-admin-ink-2:#4a463f;
  --vx-admin-muted:#8a847a;
  --vx-admin-line:#e8e4dd;
  --vx-admin-line-2:#f1eee9;
  --vx-admin-head:#f4f1ec;         /* table header, warm neutral */
  --vx-admin-accent:#2b2728;       /* Veyora black; orange stays the one brand touch */
  --vx-admin-accent-soft:#f1eee9;
  --vx-admin-dark:#2b2728;         /* dark buttons and plates: the Veyora black */
  --vx-admin-green:#2e8b4f;
  --vx-admin-green-soft:#dcf3e1;
  --vx-admin-yellow-soft:#fdeeca;
  --vx-admin-yellow-ink:#96690a;
  --vx-admin-red:#c8402e;
  --vx-admin-red-soft:#fbe2dd;
  --vx-admin-blue:#2f6fb4;
  --vx-admin-blue-soft:#e3eefb;
  --vx-admin-neutral:#2b2728;
  --vx-admin-neutral-soft:#f4f1ee;
  --vx-admin-teal:#1f7a6c;
  --vx-admin-teal-soft:#d9f2ed;
  --vx-admin-gray-badge:#e8e6e1;
  --vx-admin-radius:6px;           /* the admin's pages until they move onto the parts */
  --vx-admin-icon:#6f6a60;
  --vx-admin-caret:#9d978b;
  --vx-admin-here:#f6f2ec;         /* the menu's open group */
  --vx-admin-menu-hover:#f3f4f6;
  --vx-admin-shadow:0 1px 1px rgba(28,26,23,.03),0 2px 6px rgba(28,26,23,.04),0 12px 32px -12px rgba(28,26,23,.10);
}

/* ---------- 2. parts ----------
   The fifteen parts of the plan, at today's look. Nothing on the site uses the
   .vx-* names yet except .vx-btn (= .btn, section 3); the screens move onto
   them in phases 2 to 6. */

/* Buttons: primary (black), secondary (outline), quiet (no frame); --sm. */
.vx-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--vx-space-2)}
.vx-btn.vx-btn--secondary{background:var(--vx-white);color:var(--vx-ink);border:0;box-shadow:inset 0 0 0 1px var(--vx-hairline)}
.vx-btn.vx-btn--secondary:hover{background:var(--vx-mist);box-shadow:inset 0 0 0 1px var(--vx-ink)}
.vx-btn.vx-btn--quiet{background:transparent;color:var(--vx-ink);box-shadow:none}
.vx-btn.vx-btn--quiet:hover{background:var(--vx-mist);box-shadow:none}
.vx-btn.vx-btn--sm{min-height:34px;padding:0 14px;font-size:13px}

/* A round icon button. */
.vx-icon-btn{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;
  background:var(--vx-white);color:var(--vx-ink);box-shadow:inset 0 0 0 1px var(--vx-hairline);cursor:pointer;
  transition:background .2s,box-shadow .2s,transform .15s}
.vx-icon-btn:hover{background:var(--vx-mist);box-shadow:inset 0 0 0 1px var(--vx-ink)}
.vx-icon-btn:active{transform:scale(.96)}
.vx-icon-btn:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}

/* A field, and a search field (a field with room for its icon). The part is
   .vx-input: .vx-field is already the homepage form's own wrapper (home.css). */
.vx-input{display:block;width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--vx-hairline);border-radius:var(--vx-radius-field);
  background:var(--vx-white);color:var(--vx-ink);font:inherit;font-size:16px}
.vx-input:focus{outline:none;border-color:var(--vx-ink)}
.vx-search{position:relative;display:block}
.vx-search > input{display:block;width:100%;min-height:44px;padding:10px 14px 10px 38px;border:1px solid var(--vx-hairline-soft);border-radius:var(--vx-radius-button);
  background:var(--vx-mist);color:var(--vx-ink);font:inherit;font-size:16px}
.vx-search > input:focus{outline:none;background:var(--vx-white);border-color:var(--vx-stone)}
.vx-search > svg{position:absolute;inset-inline-start:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--vx-stone);pointer-events:none}

/* A segmented control: a track and a raised white choice. */
.vx-seg{display:inline-flex;max-width:100%;gap:0;padding:3px;border-radius:10px;background:var(--vx-track);overflow-x:auto;scrollbar-width:none}
.vx-seg > *{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border:0;border-radius:8px;
  background:transparent;color:var(--vx-stone);font:inherit;font-size:13.5px;font-weight:500;cursor:pointer;white-space:nowrap}
.vx-seg > .is-on,.vx-seg > [aria-pressed="true"]{background:var(--vx-white);color:var(--vx-ink);font-weight:650;box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* Tabs: a row of words, the chosen one underlined (the brand switch row). */
.vx-tabs{display:flex;gap:var(--vx-space-5);overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--vx-hairline-soft)}
.vx-tabs > *{flex:none;padding:12px 0;border:0;border-bottom:2px solid transparent;background:none;color:var(--vx-stone);font:inherit;font-weight:500;cursor:pointer}
.vx-tabs > .is-on,.vx-tabs > [aria-selected="true"]{color:var(--vx-ink);border-bottom-color:var(--vx-ink)}

/* A chip: a filter or a tag; the chosen one black. */
.vx-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border:1px solid var(--vx-hairline);border-radius:var(--vx-radius-button);
  background:var(--vx-white);color:var(--vx-ink);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.vx-chip.is-on{background:var(--vx-ink);border-color:var(--vx-ink);color:var(--vx-white)}

/* A card, and a product card (photo, name, line under it). */
.vx-card{background:var(--vx-white);border:1px solid var(--vx-hairline-soft);border-radius:var(--vx-radius-card);padding:var(--vx-space-4)}
.vx-product{display:flex;flex-direction:column;gap:var(--vx-space-2);color:var(--vx-ink);text-decoration:none}
.vx-product > img,.vx-product > .vx-product-photo{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--vx-mist);border-radius:var(--vx-radius-card)}
.vx-product-name{font-size:var(--vx-text-body);font-weight:600}
.vx-product-meta{font-size:13px;color:var(--vx-stone)}

/* A list: a header row, then rows; numbers line up. */
.vx-list{display:flex;flex-direction:column;border:1px solid var(--vx-hairline-soft);border-radius:var(--vx-radius-card);background:var(--vx-white)}
.vx-list > *{display:flex;align-items:center;gap:var(--vx-space-3);min-height:44px;padding:var(--vx-space-2) var(--vx-space-4);font-variant-numeric:tabular-nums}
.vx-list > * + *{border-top:1px solid var(--vx-hairline-soft)}
.vx-list > .vx-list-head{min-height:36px;color:var(--vx-stone);font-size:var(--vx-text-label);font-weight:600;letter-spacing:.04em;text-transform:uppercase}

/* A stat: a label and a number. */
.vx-stat{display:flex;flex-direction:column;gap:var(--vx-space-1)}
.vx-stat-label{color:var(--vx-stone);font-size:13px}
.vx-stat-value{color:var(--vx-ink);font-size:22px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}

/* A bar: how far along. */
.vx-bar{height:6px;border-radius:var(--vx-radius-button);background:var(--vx-mist);overflow:hidden}
.vx-bar > i{display:block;height:100%;border-radius:inherit;background:var(--vx-ink)}

/* A status dot. */
.vx-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--vx-stone)}
.vx-dot--ready{background:var(--vx-ready)}
.vx-dot--needs-you{background:var(--vx-needs-you)}
.vx-dot--stopped{background:var(--vx-stopped)}

/* A sheet: a dialog over the page. */
.vx-sheet{background:var(--vx-white);color:var(--vx-ink);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.18);padding:var(--vx-space-5);max-width:min(560px,calc(100vw - 32px))}

/* The phone's tab bar. */
.vx-tabbar{position:fixed;inset-inline:0;bottom:0;z-index:45;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);
  height:calc(62px + env(safe-area-inset-bottom,0px));padding:0 2px env(safe-area-inset-bottom,0px);background:var(--vx-black)}
.vx-tabbar > a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;height:62px;
  color:rgba(255,255,255,.66);font-size:10.5px;font-weight:500;text-decoration:none}
.vx-tabbar > a.is-on,.vx-tabbar > a[aria-current="page"]{color:var(--vx-white)}

/* ---------- 3. today's buttons ----------
   Sam Peer, 10 Nov 2026 ("buttons, one system"): every button on the site
   speaks the product window's language: a black pill that lifts a little on
   hover and presses in on click, a quiet outline pill for the second choice,
   and the same focus ring everywhere. They win over the older flat buttons in
   store.css by coming after it; store.css keeps only what these do not set. */
.btn,.vx-btn{min-height:44px;padding:0 22px;border-radius:var(--vx-radius-button);background:var(--vx-ink);color:var(--vx-white);
  font-weight:500;font-size:14px;letter-spacing:.01em;border:0;cursor:pointer;
  transition:background .2s,box-shadow .25s var(--vx-ease),transform .2s var(--vx-ease),color .2s}
.btn:hover,.vx-btn:hover{filter:none;background:var(--vx-black);box-shadow:0 8px 22px rgba(0,0,0,.16);transform:translateY(-1px)}
.btn:active,.vx-btn:active{transform:translateY(0) scale(.98);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.btn:focus-visible,.vx-btn:focus-visible{outline:2px solid var(--vx-focus);outline-offset:3px}
.btn:disabled,.btn:disabled:hover,.vx-btn:disabled,.vx-btn:disabled:hover{opacity:.45;box-shadow:none;transform:none;cursor:default}
.btn.ghost{background:var(--vx-white);color:var(--vx-ink);border:0;box-shadow:inset 0 0 0 1px var(--vx-hairline)}
.btn.ghost:hover{background:var(--vx-mist);box-shadow:inset 0 0 0 1px var(--vx-ink);transform:translateY(-1px)}
.btn.ghost:active{transform:scale(.98)}
.btn.danger{background:var(--vx-danger)}
.btn.danger:hover{background:var(--vx-danger-deep);box-shadow:0 8px 22px rgba(215,0,21,.22)}
.btn.sm{min-height:34px;padding:0 14px;font-size:13px;border-radius:var(--vx-radius-button)}

/* Product cards: the order bar becomes a pill inside the card. */
.pcard2 .orderbtn{flex:0 0 38px;height:38px;min-height:38px;max-height:38px;margin:2px 12px 12px;
  border-radius:var(--vx-radius-button);background:var(--vx-ink);font-size:11px;font-weight:500;letter-spacing:.12em;
  transition:background .2s,box-shadow .25s var(--vx-ease),transform .2s var(--vx-ease)}
.pcard2 .orderbtn:hover{background:var(--vx-black);box-shadow:0 6px 18px rgba(0,0,0,.16);transform:translateY(-1px)}
.pcard2 .orderbtn:active{transform:scale(.98);box-shadow:none}
.pcard2 .orderbtn:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
.pcard2 .orderbtn:disabled,.pcard2 .orderbtn:disabled:hover{background:var(--vx-disabled);box-shadow:none;transform:none}
.pcard2 .orderbtn.bo{background:var(--vx-backorder)}
.pcard2 .orderbtn.bo:hover{background:var(--vx-backorder-deep)}
.pcard2 .orderbtn.bo.pre{background:var(--vx-preorder)}
.pcard2 .orderbtn.bo.pre:hover{background:var(--vx-preorder-deep)}
@media(max-width:480px){.pcard2 .orderbtn{flex-basis:40px;height:40px;min-height:40px;max-height:40px;margin:2px 8px 8px;font-size:11px;letter-spacing:.08em}}

/* Page numbers: round, quiet, the current page in black. */
.pager button{min-width:40px;height:40px;padding:0 14px;border:0;border-radius:var(--vx-radius-button);background:var(--vx-white);color:var(--vx-ink);
  box-shadow:inset 0 0 0 1px var(--vx-hairline);font-weight:500;transition:background .2s,box-shadow .2s,transform .15s}
.pager button:hover:not(:disabled){background:var(--vx-mist);box-shadow:inset 0 0 0 1px var(--vx-ink)}
.pager button:active:not(:disabled){transform:scale(.96)}
.pager button.pg.on{background:var(--vx-ink);color:var(--vx-white);box-shadow:none}

/* Sign in, request an account: pills on the black stage, no orange. */
body .ax .login-btn{border-radius:var(--vx-radius-button);background:var(--vx-white);color:var(--vx-black);min-height:54px;
  transition:background .2s,box-shadow .25s var(--vx-ease),transform .2s var(--vx-ease)}
body .ax .login-btn:hover{background:var(--vx-white);color:var(--vx-black);box-shadow:0 10px 30px rgba(255,255,255,.12);transform:translateY(-1px)}
body .ax .login-btn:active{transform:scale(.98);box-shadow:none}
body .ax .login-btn:focus-visible{outline:2px solid var(--vx-white);outline-offset:3px}
body .ax .login-code-btn,body .ax .login-request a,body .ax .login-google{border-radius:var(--vx-radius-button);min-height:50px;
  transition:border-color .2s,background .2s,transform .2s var(--vx-ease)}
body .ax .login-code-btn:hover,body .ax .login-request a:hover,body .ax .login-google:hover{background:rgba(255,255,255,.08);border-color:var(--vx-white);transform:translateY(-1px)}
body .ax .login-code-btn:active,body .ax .login-request a:active,body .ax .login-google:active{transform:scale(.98)}
body .ax .login-google:focus-visible,body .ax .login-code-btn:focus-visible,body .ax .login-request a:focus-visible{outline:2px solid var(--vx-white);outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  .btn,.vx-btn,.pcard2 .orderbtn,.pager button,body .ax .login-btn,body .ax .login-code-btn,body .ax .login-request a{transition:none}
  .btn:hover,.vx-btn:hover,.pcard2 .orderbtn:hover,body .ax .login-btn:hover,body .ax .login-code-btn:hover,body .ax .login-request a:hover{transform:none}
}

/* The header's Sign in: the same outline pill. */
.hm-nav .hm-nav-links .hm-nav-acct{border-radius:var(--vx-radius-button);padding-inline:18px;transition:border-color .2s,background .2s,transform .2s var(--vx-ease)}
.hm-nav--dark .hm-nav-links .hm-nav-acct:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}
.hm-nav .hm-nav-links .hm-nav-acct:active{transform:scale(.98)}
.hm-nav--dark .lang-current,.topbar .lang-current{border-radius:var(--vx-radius-button)}
