/* ==========================================================================
   WENEX Club · My WENEX — member presentation layer (Phase 1 · WDXS 2.0)
   PRESENTATION ONLY. Consumes wenex-wdxs foundation tokens + components; adds the
   member-specific composition (value stores + owned products + missions). No logic.
   A member-first layout — NOT the Creator dashboard: status → value → next action
   → products → missions → recent. Warmth comes from product imagery + reward, never
   from warm hues (monochrome-first discipline holds). Scoped to .w-member.
   Previous light-led account layer preserved as my-wenex-fallback.css (graceful
   fallback + rollback when the foundation is inactive).
   ========================================================================== */

.w-member .mw{max-width:1200px;margin:0 auto;padding:calc(var(--gutter) + 4px) var(--gutter) 90px;}
/* real WP avatar (get_avatar returns an <img>) fills the hero-ava frame */
.w-member .hero-ava img{width:100%;height:100%;object-fit:cover;display:block;}

/* ---- SECTION LABEL — re-declared: these rules live in the foundation's
   wdxs-wchs.css, which the member ON-path deliberately does not enqueue
   (Club runs its own WCHS registry). Same pattern as .empty below. ---- */
.w-member .section-label{display:flex;align-items:center;gap:12px;margin:26px 2px 14px;}
.w-member .section-label h2{font-family:var(--font-display);font-weight:600;font-size:16px;margin:0;letter-spacing:-.01em;}
.w-member .section-label .rule{flex:1;height:1px;background:var(--border-subtle);}
.w-member .section-label .count{font-size:12px;color:var(--text-muted);}

/* ---- ACCOUNT CHROME (WDXS-ON only — this sheet loads only on that path).
   The page canvas + WC account navigation predate WDXS (production styles them
   via the page-9 wx-account-layer + the frozen mu black-stage, both !important
   and light/black-locked). When the member surface is WDXS, the member layer
   must own this chrome so Dark/Light both work; !important is required to win
   the documented cascade against those frozen layers. Tokens only. ---- */
/* 0.12.1: the canvas token is --surface-base (paints .wdxs in core); the
   phantom --bg-canvas name caused the production dark-canvas failure. */
html body.woocommerce-account{background:var(--surface-base, #F5F5F7) !important;}

/* 0.12.1 PRODUCTION KIT SHIELD — Hello Elementor / Elementor kit global link
   styling repainted CTAs red-on-red and underlined mission cards on the first
   flip. The foundation now carries a .wdxs-scope shield; these !important
   belts protect the highest-risk member elements against ANY kit specificity. */
.w-member a{text-decoration:none !important;}
.w-member .cta,.w-member .cta span,.w-member a.cta,.w-member a.cta span{color:var(--text-on-accent,#fff) !important;}
.w-member .mcard .mc-title{color:var(--text-primary) !important;}
.w-member .mcard .mc-desc,.w-member .mcard .mc-mut{color:var(--text-muted) !important;}
.w-member .mc-reward{color:var(--status-success) !important;}
.w-member .btn.secondary,.w-member a.btn.secondary{color:var(--text-primary) !important;}
.w-member .chip-btn,.w-member a.chip-btn{color:var(--text-secondary) !important;}
.w-member .tl-body .t a{color:var(--text-primary) !important;}

/* (TD-023 · CLOSED) The Overview composition's own targets, brought onto the
   44px floor: .btn 42px, .chip-btn 30px and bare timeline links ~17px were
   the three items deferred from Sprint 2 to "the Overview redesign" — this
   polish sprint is that work. Scoped to .w-member so the wdxs foundation
   base (shared with the admin takeovers) is untouched. Padding-based where
   possible so the visual weight barely changes; the activation area is what
   grows. */
.w-member .btn,.w-member a.btn{min-height:44px;}
.w-member .chip-btn,.w-member a.chip-btn{display:inline-flex;align-items:center;min-height:44px;
  padding-block:0;}
.w-member .tl-body .t a{display:inline-flex;align-items:center;min-height:44px;}
/* WCHS triggers: theme/kit button rules (e.g. Elementor accent + padding) beat
   the module's base class and rendered them as glyphless squares on the first
   flip — re-assert the intended 16px circled-i inside the WDXS scope. */
.wdxs .wchs-trigger{width:16px !important;height:16px !important;padding:0 !important;min-height:0 !important;
  background:transparent !important;border:1px solid var(--border-strong) !important;border-radius:var(--r-pill) !important;
  color:var(--text-muted) !important;font-size:10px !important;font-weight:700 !important;line-height:1 !important;
  font-family:var(--font-text) !important;box-shadow:none !important;}
.wdxs .wchs-trigger:hover,.wdxs .wchs-trigger[aria-expanded=true]{color:var(--text-primary) !important;
  border-color:var(--text-secondary) !important;background:var(--surface-interactive) !important;}
.woocommerce-account .entry-title,
.woocommerce-account .wp-block-post-title{color:var(--text-primary) !important;}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0;}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:9px 14px;border-radius:var(--r-sm);
  color:var(--text-secondary);text-decoration:none;font-size:14px;border-inline-start:2px solid transparent;
  transition:background var(--t-fast),color var(--t-fast);}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:var(--surface-interactive);color:var(--text-primary);}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{color:var(--text-primary);font-weight:600;
  border-inline-start-color:var(--accent);background:var(--surface-raised);}

/* ---- VALUE STORES — wallet + points, deliberately larger than KPI tiles ---- */
.mw-value{display:grid;grid-template-columns:1fr 1fr;gap:var(--gutter);margin-bottom:var(--gutter);}
.value-card{position:relative;overflow:hidden;border-radius:var(--r-lg);border:1px solid var(--border-subtle);
  background:linear-gradient(180deg,var(--surface-raised),var(--surface-elevated));box-shadow:var(--shadow-2);
  padding:22px 24px;display:flex;flex-direction:column;gap:14px;min-height:168px;}
.value-card .vc-top{display:flex;align-items:center;gap:11px;}
.value-card .vc-ico{width:38px;height:38px;border-radius:var(--r-sm);display:grid;place-items:center;flex:0 0 auto;
  background:var(--surface-interactive);color:var(--text-secondary);}
.value-card .vc-ico svg{width:20px;height:20px;}
.value-card .vc-name{font-size:13px;font-weight:600;color:var(--text-secondary);}
.value-card .vc-help{margin-inline-start:auto;}
.value-card .vc-val{font-family:var(--font-num);font-weight:700;font-size:40px;letter-spacing:-.02em;line-height:1;}
.value-card .vc-val .cur{font-size:18px;color:var(--text-muted);font-weight:600;margin-inline-end:6px;}
.value-card .vc-foot{display:flex;align-items:center;gap:10px;margin-top:auto;flex-wrap:wrap;}
.value-card .vc-sub{font-size:12.5px;color:var(--text-muted);}

/* ---- OWNED PRODUCTS — real WENEX imagery, product-connected ---- */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;}
.prod-card{border-radius:var(--r-md);overflow:hidden;border:1px solid var(--border-subtle);background:var(--surface-elevated);
  transition:transform var(--t-fast) var(--ease),border-color var(--t-fast),box-shadow var(--t-fast);}
.prod-card:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:var(--shadow-2);}
/* fixed light cover tile → white-bg product shots read premium in BOTH themes */
.prod-card .pc-cover{height:150px;background:linear-gradient(160deg,#F4F4F6,#E9E9EE);display:grid;place-items:center;position:relative;}
.prod-card .pc-cover .pc-img{width:82%;height:82%;background-position:center;background-repeat:no-repeat;background-size:contain;position:relative;z-index:1;}
.prod-card .pc-cover .pc-reg{position:absolute;z-index:2;top:9px;inset-inline-start:9px;font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:3px 8px;border-radius:var(--r-pill);background:rgba(255,255,255,.82);backdrop-filter:blur(3px);color:#1D1D1F;display:inline-flex;align-items:center;gap:5px;}
.prod-card .pc-reg .dot{width:5px;height:5px;border-radius:50%;background:var(--status-success);}
.prod-card .pc-body{padding:13px 15px;}
.prod-card .pc-name{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.prod-card .pc-meta{font-size:12px;color:var(--text-muted);margin-top:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}

/* ---- EMPTY STATE (zero owned products) ----
   These rules live in the foundation's wdxs-wchs.css, but the member ON-path
   deliberately does NOT enqueue foundation WCHS (Club runs its own WCHS registry),
   so the .empty composition would otherwise be unstyled here. Re-declared scoped to
   .w-member — presentation only, tokens consumed, no theme/logic. */
.w-member .empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 24px;}
.w-member .empty-art{width:100px;height:100px;margin-bottom:6px;}
.w-member .empty h4{font-family:var(--font-display);font-weight:600;font-size:17px;margin:6px 0 4px;}
.w-member .empty p{color:var(--text-muted);font-size:13.5px;max-width:36ch;margin:0 0 16px;}

/* ---- MISSIONS — rewarding, actionable list ---- */
.mission{display:flex;align-items:center;gap:13px;padding:13px 4px;border-top:1px solid var(--hairline);}
.mission:first-child{border-top:none;}
.mission .m-ico{width:38px;height:38px;border-radius:var(--r-sm);flex:0 0 auto;display:grid;place-items:center;
  background:var(--surface-interactive);color:var(--text-secondary);}
.mission .m-ico svg{width:19px;height:19px;}
.mission .m-body{flex:1;min-width:0;}
.mission .m-title{font-size:13.5px;font-weight:600;}
.mission .m-sub{font-size:12px;color:var(--text-muted);margin-top:2px;}
.mission .m-reward{font-family:var(--font-num);font-weight:700;font-size:13px;color:var(--status-success);white-space:nowrap;}
.mission .m-go{width:30px;height:30px;border-radius:var(--r-sm);display:grid;place-items:center;color:var(--text-muted);border:1px solid var(--border-subtle);flex:0 0 auto;}
[dir=rtl] .mission .m-go svg{transform:scaleX(-1);}

.mw-split{display:grid;grid-template-columns:1fr 1fr;gap:var(--gutter);}

/* ==========================================================================
   PHASE 1B — sub-page composition (Wallet · Points · Missions · My Products ·
   Warranty · Registration). Extends the approved Overview language; tokens
   only; no theme forks; no business logic.
   ========================================================================== */

/* three-across value row (Points) */
.mw-value.three{grid-template-columns:1fr 1fr 1fr;}
.mw-value.three .value-card{min-height:0;gap:10px;}
.mw-value.three .vc-val{font-size:34px;}

/* ---- PAGE HERO — compact identity for sub-pages ---- */
.phero{display:flex;align-items:center;gap:18px;border-radius:var(--r-lg);border:1px solid var(--border-subtle);
  background:linear-gradient(180deg,var(--surface-raised),var(--surface-elevated));box-shadow:var(--shadow-2);
  padding:22px 24px;}
.phero .ph-ico{width:52px;height:52px;border-radius:var(--r-md);flex:0 0 auto;display:grid;place-items:center;
  background:var(--surface-interactive);color:var(--text-secondary);}
.phero .ph-ico svg{width:26px;height:26px;}
.phero .ph-cover{width:84px;height:84px;border-radius:var(--r-md);flex:0 0 auto;overflow:hidden;
  background:linear-gradient(160deg,#F4F4F6,#E9E9EE);display:grid;place-items:center;}
.phero .ph-cover .pc-img{width:82%;height:82%;background-position:center;background-repeat:no-repeat;background-size:contain;}
.phero .ph-main{flex:1;min-width:0;}
.phero .eyebrow{margin-bottom:5px;}
.phero .ph-title{font-family:var(--font-display);font-weight:600;font-size:19px;letter-spacing:-.01em;line-height:1.3;}
.phero .ph-val{font-family:var(--font-num);font-weight:700;font-size:44px;letter-spacing:-.02em;line-height:1.05;}
.phero .ph-val .cur{font-size:19px;color:var(--text-muted);font-weight:600;margin-inline-end:7px;}
.phero .ph-note{font-size:13px;color:var(--text-muted);margin:6px 0 0;max-width:62ch;}
.phero .ph-cta{flex:0 0 auto;}
.phero .mc-reward.big{flex:0 0 auto;}

/* the hidden attribute must always win (e.g. #wx-success before the JS flow) */
.w-member [hidden]{display:none !important;}

/* ---- NOTICES (success / error query-arg states) ---- */
.w-member .notice{display:flex;align-items:center;gap:11px;border-radius:var(--r-md);padding:13px 16px;
  font-size:13.5px;font-weight:500;border:1px solid;margin-bottom:var(--gutter);}
.w-member .notice svg{width:18px;height:18px;flex:0 0 auto;}
.w-member .notice.ok{border-color:color-mix(in srgb,var(--status-success) 35%,transparent);color:var(--status-success);
  background:color-mix(in srgb,var(--status-success) 9%,transparent);}
.w-member .notice.err{border-color:color-mix(in srgb,var(--status-danger) 35%,transparent);color:var(--status-danger);
  background:color-mix(in srgb,var(--status-danger) 9%,transparent);}

/* ---- shared sub-page text helpers ---- */
.w-member .sub-note{font-size:13px;color:var(--text-muted);line-height:1.55;margin:0 0 12px;}
.w-member .sub-note.lead{margin:14px 2px 0;max-width:70ch;}
.w-member .sub-note.legal{font-size:12px;}
.w-member .sub-note.err-note{color:var(--status-danger);}
.w-member .num-chip{display:inline-block;margin-inline-start:8px;padding:3px 10px;border-radius:var(--r-pill);
  background:var(--surface-interactive);color:var(--text-secondary);font-size:12px;font-weight:600;}

/* ---- LINEAR PROGRESS (conversion unlock · tier) ---- */
.w-member .lbar{height:8px;border-radius:var(--r-pill);background:var(--viz-track);overflow:hidden;margin:6px 0 10px;}
.w-member .lbar-fill{height:100%;border-radius:var(--r-pill);background:var(--text-secondary);
  transition:width .6s var(--ease);}
.w-member .lbar-fill.accent{background:linear-gradient(90deg,var(--accent),var(--accent-hover));}
.w-member .lbar.tier{height:10px;}

/* ---- FORMS — token-styled fields (conversion · submission · registration) ---- */
.wform .wf-row{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;}
.wform label{font-size:12.5px;font-weight:600;color:var(--text-secondary);}
.wform input[type=text],.wform input[type=url],.wform input[type=number],.wform input[type=date],
.wform select,.wform textarea{
  background:var(--surface-interactive);color:var(--text-primary);
  border:1px solid var(--border-subtle);border-radius:var(--r-sm);padding:10px 13px;
  font:inherit;font-size:14px;max-width:420px;
  transition:border-color var(--t-fast),background var(--t-fast);}
.wform input:focus-visible,.wform select:focus-visible,.wform textarea:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px;border-color:var(--border-strong);}
.wform input[type=file]{font-size:13px;color:var(--text-secondary);max-width:420px;}
/* native picker/indicator chrome must follow the active theme (dark-on-dark fix) */
[data-theme=dark] .wform input,[data-theme=dark] .wform select,[data-theme=dark] .wform textarea{color-scheme:dark;}
[data-theme=light] .wform input,[data-theme=light] .wform select,[data-theme=light] .wform textarea{color-scheme:light;}
.wform .wf-note{font-size:12px;color:var(--text-muted);}
.wform .wf-preview{font-size:15px;color:var(--text-secondary);display:flex;align-items:center;gap:9px;margin:2px 0 12px;}
.wform .wf-preview strong{color:var(--text-primary);font-size:17px;}
.wform .wf-arrow{color:var(--text-muted);}
[dir=rtl] .wform .wf-arrow{transform:scaleX(-1);display:inline-block;}
.wform .wf-confirm{border:1px solid var(--border-strong);border-radius:var(--r-md);padding:14px 16px;margin:10px 0;
  background:var(--surface-elevated);}
.wform .wf-check{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;color:var(--text-secondary);margin:8px 0;cursor:pointer;}
.wform .wf-check input{width:17px;height:17px;margin-top:1px;accent-color:var(--accent);}
.wform .wf-review{border-top:1px solid var(--hairline);margin-top:16px;padding-top:14px;}
.wform .wf-review h4{font-family:var(--font-display);font-weight:600;font-size:14px;margin:0 0 6px;}

/* ---- FILTER CHIPS (presentation-only, progressive enhancement) ---- */
.w-member .chips{display:flex;gap:6px;flex-wrap:wrap;}
.w-member .chips .chip-btn{cursor:pointer;}
.w-member .chips .chip-btn.is-on{background:var(--surface-interactive);color:var(--text-primary);
  border-color:var(--border-strong);font-weight:600;}

/* ---- INSIGHT TILES (Points — display aggregation only) ---- */
.insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-top:var(--gutter);}
.insight{display:flex;align-items:center;gap:12px;border-radius:var(--r-md);border:1px solid var(--border-subtle);
  background:var(--surface-elevated);padding:14px 16px;}
.insight .in-ico{width:36px;height:36px;border-radius:var(--r-sm);flex:0 0 auto;display:grid;place-items:center;
  background:var(--surface-interactive);color:var(--status-success);}
.insight .in-ico svg{width:18px;height:18px;}
.insight .in-val{font-family:var(--font-num);font-weight:700;font-size:20px;line-height:1.1;}
.insight .in-lab{font-size:12px;color:var(--text-muted);}

/* ---- MISSION CARDS ---- */
.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;}
.mcard{display:flex;flex-direction:column;gap:8px;border-radius:var(--r-md);border:1px solid var(--border-subtle);
  background:var(--surface-elevated);padding:16px 18px;text-decoration:none;color:inherit;
  transition:transform var(--t-fast) var(--ease),border-color var(--t-fast),box-shadow var(--t-fast);}
.mcard:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:var(--shadow-2);}
.mcard:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.mcard.is-done{opacity:.72;}
.mcard .mc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.mcard .mc-ico{width:36px;height:36px;border-radius:var(--r-sm);display:grid;place-items:center;
  background:var(--surface-interactive);color:var(--text-secondary);}
.mcard .mc-ico svg{width:18px;height:18px;}
.mc-reward{font-family:var(--font-num);font-weight:700;font-size:17px;color:var(--status-success);
  display:flex;align-items:baseline;gap:4px;white-space:nowrap;}
.mc-reward small{font-size:11px;font-weight:600;color:var(--text-muted);}
.mc-reward.big{font-size:26px;}
.mcard .mc-title{font-family:var(--font-display);font-weight:600;font-size:15px;letter-spacing:-.01em;}
.mcard .mc-desc{font-size:12.5px;color:var(--text-muted);line-height:1.5;}
.mcard .mc-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:4px;}
.mc-mut{font-size:12px;color:var(--text-muted);}

/* ---- REQUIREMENT LIST (mission detail) ---- */
.w-member .reqs{list-style:none;margin:0 0 12px;padding:0;}
.w-member .reqs li{position:relative;padding:6px 0 6px 22px;font-size:13.5px;color:var(--text-secondary);}
[dir=rtl] .w-member .reqs li{padding:6px 22px 6px 0;}
.w-member .reqs li::before{content:'';position:absolute;inset-inline-start:2px;top:13px;width:6px;height:6px;
  border-radius:50%;background:var(--text-muted);}

/* ---- OWNERSHIP CARDS (My Products · Warranty) ---- */
.own-list{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.own-card{display:flex;border-radius:var(--r-md);overflow:hidden;border:1px solid var(--border-subtle);
  background:var(--surface-elevated);
  transition:transform var(--t-fast) var(--ease),border-color var(--t-fast),box-shadow var(--t-fast);}
.own-card:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:var(--shadow-2);}
.own-card .oc-cover{width:160px;flex:0 0 auto;background:linear-gradient(160deg,#F4F4F6,#E9E9EE);
  display:grid;place-items:center;position:relative;}
.own-card .oc-cover .pc-img{width:80%;height:80%;background-position:center;background-repeat:no-repeat;background-size:contain;}
.own-card .oc-cover .pc-reg{position:absolute;top:9px;inset-inline-start:9px;z-index:2;font-size:9.5px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:var(--r-pill);
  background:rgba(255,255,255,.82);backdrop-filter:blur(3px);color:#1D1D1F;display:inline-flex;align-items:center;gap:5px;}
.own-card .oc-cover .pc-reg .dot{width:5px;height:5px;border-radius:50%;background:var(--status-success);}
.own-card .oc-body{padding:16px 18px;display:flex;flex-direction:column;gap:7px;min-width:0;flex:1;}
.own-card .oc-name{font-family:var(--font-display);font-weight:600;font-size:16px;margin:0;letter-spacing:-.01em;}
.own-card .oc-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
.own-card .oc-warranty{margin:0;}
.own-card .oc-warranty-state{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0;}
.own-card .oc-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:auto;padding-top:6px;}

/* success-edged widget (instant verification) */
.widget.accent-edge{border-inline-start:3px solid var(--status-success);}

/* ---- NATIVE-PAGE DARK ADAPTER (0.12.1) — Orders / Addresses / Profile are
   WooCommerce-native (not WDXS-composed) but live on the themed account canvas.
   In Dark their default #333 text was unreadable on black; give the content
   column token-based legibility without redesigning Woo markup. ---- */
[data-theme=dark] .woocommerce-account .woocommerce-MyAccount-content{color:var(--text-secondary);}
[data-theme=dark] .woocommerce-account .woocommerce-MyAccount-content :is(h2,h3,h4,strong,b,legend,.woocommerce-Address-title){color:var(--text-primary);}
[data-theme=dark] .woocommerce-account .woocommerce-MyAccount-content :is(p,td,th,li,label,address,span){color:var(--text-secondary);}
[data-theme=dark] .woocommerce-account .woocommerce-MyAccount-content a{color:var(--text-primary);}
[data-theme=dark] .woocommerce-account .woocommerce-MyAccount-content :is(table,td,th){border-color:var(--border-subtle);}
[data-theme=dark] .woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){
  background:var(--surface-elevated);color:var(--text-secondary);border-color:var(--border-subtle);}
/* (S-001/S-031) The 0.12.1 adapter also restyled inputs and .button here.
   Sprint 2's wenex-ui.css now OWNS those elements through the --wx-* token
   contract, and wenex-tokens.css carries a full dark remap — so the two
   adapter rules became the defect: the input rule lost on specificity
   (leaving white fields on black) while the .button rule WON, repainting the
   crimson SAVE CHANGES as grey-on-black. Both removed; the token layer is
   the single owner of input and button colour in both themes. */

/* ---- MEMBER TOOLS (0.12.1) — theme + language controls under the nav ---- */
.wx-tools{margin-top:14px;display:flex;flex-direction:column;gap:9px;padding:13px 14px;
  border:1px solid var(--border-subtle);border-radius:var(--r-md);background:var(--surface-elevated);}
.wx-tools .wx-tools-row{display:flex;align-items:center;gap:10px;margin:0;}
.wx-tools .wx-tools-lab{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-muted);min-width:86px;}
.wx-tools .wx-seg{display:inline-flex;border:1px solid var(--border-subtle);border-radius:var(--r-pill);overflow:hidden;}
/* (V-011) 44px target contract: the theme switch was the smallest control in
   the member chrome at 34×28. The visual weight stays compact — the icon does
   not grow — but the activation area meets the WENEX floor. */
.wx-tools .wx-seg button{appearance:none;border:0;background:transparent;color:var(--text-secondary);
  width:44px;height:44px;display:grid;place-items:center;cursor:pointer;
  transition:background var(--t-fast),color var(--t-fast);}
.wx-tools .wx-seg button svg{width:16px;height:16px;}
.wx-tools .wx-seg button:hover{background:var(--surface-interactive);color:var(--text-primary);}
.wx-tools .wx-seg button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.wx-tools .wx-seg button.is-active,
.wx-tools .wx-seg button[aria-pressed=true]{background:var(--surface-interactive);color:var(--text-primary);}
/* (V-012) The language select was 30px tall at 12.5px type — below both the
   target floor and comfortable reading size for a control. */
.wx-tools select{appearance:auto;background:var(--surface-interactive);color:var(--text-primary);
  border:1px solid var(--border-subtle);border-radius:var(--r-sm);padding:8px 12px;font:inherit;font-size:14px;
  min-height:44px;}
.wx-tools select:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
[data-theme=dark] .wx-tools select{color-scheme:dark;}

/* ---- responsive: reorder by importance, don't just stack ---- */
@media(max-width:900px){
  .mw-value{grid-template-columns:1fr;}
  .mw-value.three{grid-template-columns:1fr 1fr 1fr;gap:10px;}
  .value-card{min-height:0;}
  .mw-split{grid-template-columns:1fr;}
  .own-list{grid-template-columns:1fr;}
}
@media(max-width:720px){
  .value-card .vc-val{font-size:34px;}
  .mw-value.three{grid-template-columns:1fr;}
  .phero{flex-wrap:wrap;}
  .phero .ph-val{font-size:36px;}
  .phero .ph-cta{width:100%;justify-content:center;}
  .own-card{flex-direction:column;}
  .own-card .oc-cover{width:100%;height:150px;}
}

/* (V-017) Reduced motion, token-level. The foundation zeroes its own
   animations but this sheet declares transitions of its own against the
   --t-* duration tokens; zeroing them here disables every one at once, so
   no future rule in this file can forget the preference. */
@media(prefers-reduced-motion:reduce){
  :root{--t-instant:0ms;--t-fast:0ms;--t-standard:0ms;--t-slow:0ms;--t-draw:0ms;}
}

/* (V-005) CONTRAST CORRECTION — --text-muted, both themes.
   The foundation ships muted at #86868B (light) / #7A7A7A (dark): 3.3–3.6:1
   on their canvases, and it is used at the SMALLEST sizes in the member area
   (11–13px labels, eyebrows, meta) — ~250 failing occurrences. Corrected
   here rather than in wenex-wdxs because the repo's wdxs tree carries an
   unshipped 2.0.1 delta vs the live 2.0.0 — overriding from this sheet
   (which loads after wdxs-core) changes exactly one token and ships with
   the plugin the owner is already uploading. Mirrors the foundation's own
   theme-selector structure so each theme gets its measured value:
     light  #6E6E73 on #F5F5F7 → 5.1:1  AA
     dark   #8E8E93 on #050505 → 6.0:1  AA */
:root,:root[data-theme="dark"]{ --text-muted:#8E8E93; }
@media (prefers-color-scheme:light){ :root:not([data-theme]){ --text-muted:#6E6E73; } }
:root[data-theme="light"]{ --text-muted:#6E6E73; }
