/* Cascade repair 2026-11-08: outrank legacy VX/XR/gilded !important rules; cover CTA/account anchors.
   BLACK LEATHER STITCH BUTTONS v3 — local candidate (2026-11-08). Visual-only: no layout, JS, geometry, radius, padding or font-size changes.
   Applies to all native buttons + button-styled links (a.btn/.btn-gold/.btn-ghost/.xeco-btn/.oct-p-btn, a[role=button] except sidebar .nav-item) incl. dynamically created ones in pages that link this file. Stitch is border-image painted inside the existing
   border box (border-width unchanged). Google GSI iframe button (#google-btn once it holds a Google iframe) excluded to keep Google branding. Opt-out: add class vx-leather-off. Rollback: remove the <link> to this file. */
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]){
  background-color:#141416 !important;
  background-image:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.02) 38%,rgba(0,0,0,0) 60%,rgba(0,0,0,.38)),
    radial-gradient(120% 90% at 30% 0%,rgba(255,255,255,.035),transparent 60%),url("/assets/console/leather-black-v3.jpg") !important;
  background-size:100% 100%,100% 100%,320px 320px !important;
  border-image:url("/assets/console/leather-stitch-v3.svg") 10 / 10px round !important;
  color:#efe7d6 !important;text-shadow:0 1px 1px rgba(0,0,0,.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -1px 2px rgba(0,0,0,.7),inset 0 0 0 1px rgba(0,0,0,.85),0 1px 0 #050506,0 2px 4px rgba(0,0,0,.45) !important;
}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]):hover:not(:disabled){background-image:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.035) 38%,rgba(0,0,0,0) 60%,rgba(0,0,0,.3)),
    radial-gradient(120% 90% at 30% 0%,rgba(255,255,255,.05),transparent 60%),url("/assets/console/leather-black-v3.jpg") !important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]):active:not(:disabled){box-shadow:inset 0 2px 4px rgba(0,0,0,.85),inset 0 0 0 1px #000,0 0 0 #000 !important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]):focus-visible{outline:2px solid #d9d2c3 !important;outline-offset:2px !important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]):is([aria-pressed="true"],[aria-selected="true"],[aria-current]:not([aria-current="false"]),.active,.selected,.on,.xc-on){box-shadow:inset 0 0 0 1px #000,inset 0 0 0 2px rgba(239,231,214,.55),inset 0 2px 4px rgba(0,0,0,.6) !important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]):is([class*="danger"],[class*="error"],[class*="red-"],[id*="remove"],[id*="delete"],[data-action*="remove"],[data-action*="delete"]){color:#ffb4ab !important;box-shadow:inset 0 0 0 1px #000,inset 0 0 0 2px rgba(220,70,60,.55),0 1px 0 #050506 !important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]):is(:disabled,[aria-disabled="true"]){opacity:.5 !important;filter:saturate(0);cursor:not-allowed !important}
/* Google GSI: once Google renders its iframe into #google-btn, restore the original inline look (separate rule so a browser without :has only drops this rule) */
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body #google-btn:has(iframe){background:#15121C !important;border-image:none !important;box-shadow:none !important;color:#F0E6D3 !important;text-shadow:none}
@media (forced-colors:active){html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]){background-image:none !important;border-image:none !important;color:ButtonText !important;background-color:ButtonFace !important;box-shadow:none !important;text-shadow:none}}

/* 2026-11-08 confirmed surface coverage. Visual declarations only: no geometry, state, event or routing edits. */
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]){border-color:#343438!important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]) :is(svg,b,span:not(.cx-pulse):not(.ox-dot):not(.cx-sev)){color:inherit!important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(.cx-node .cx-hex,.cx-node .cx-hex i,.gate .p,.tb .top){background-color:#141416!important;background-image:linear-gradient(180deg,rgba(255,255,255,.075),rgba(0,0,0,.38)),url("/assets/console/leather-black-v3.jpg")!important;background-size:100% 100%,320px 320px!important;border-color:#343438!important;color:#efe7d6!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 2px 4px rgba(0,0,0,.45)!important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(.tb .top){border-image:url("/assets/console/leather-stitch-v3.svg") 10 / 10px round!important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(.gate .p::after,#cx-orb::before){border-color:#55555b!important;background:transparent!important;box-shadow:none!important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(.gate .gi,.cx-node .cx-hex i,.cx-core b){color:#efe7d6!important;filter:none!important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(.tb .top::after){background:linear-gradient(180deg,rgba(255,255,255,.04),transparent)!important}
@media (forced-colors:active){html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(.cx-node .cx-hex,.cx-node .cx-hex i,.gate .p,.tb .top){background:ButtonFace!important;border-image:none!important;color:ButtonText!important;box-shadow:none!important}}

/* 2026-11-12 leather-fix (visual only; no geometry, state, event or routing edits).
   1) Stitch is now drawn as a dark-thread dashed line 4px inside the edge (outline + negative offset). It follows each
      button's own border-radius, so round and pill buttons get a round stitch instead of a square box poking out of the
      shape. It also no longer depends on border-style/border-width: about half of the buttons have border-style:none,
      and some browsers (e.g. Safari) skip border-image entirely in that case. Texture, sheen and depth layers are unchanged.
   2) Native appearance off so iOS never paints its own button chrome over the leather.
   3) a.auth-btn ("Walk the show floor") was the one button-styled link the Nov 8 rules missed.
   Keyboard focus still shows the 2px light ring (the :focus-visible rule above has higher specificity). */
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,a.auth-btn,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]){
  border-image:none !important;
  outline:1px dashed #303035 !important;outline-offset:-4px !important;
  -webkit-appearance:none;appearance:none;
}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body a.auth-btn:not(.vx-leather-off):not([hidden]){
  background-color:#141416 !important;
  background-image:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.02) 38%,rgba(0,0,0,0) 60%,rgba(0,0,0,.38)),
    radial-gradient(120% 90% at 30% 0%,rgba(255,255,255,.035),transparent 60%),url("/assets/console/leather-black-v3.jpg") !important;
  background-size:100% 100%,100% 100%,320px 320px !important;
  border-color:#343438 !important;color:#efe7d6 !important;text-shadow:0 1px 1px rgba(0,0,0,.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -1px 2px rgba(0,0,0,.7),inset 0 0 0 1px rgba(0,0,0,.85),0 1px 0 #050506,0 2px 4px rgba(0,0,0,.45) !important;
}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body #google-btn:has(iframe){outline:none !important}
@media (forced-colors:active){html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3):not(#vlb4):not(#vlb5):not(#vlb6):not(#vlb7) body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a:is(.btn,.btn-gold,.btn-ghost,.xeco-btn,.oct-p-btn,.vx-cta2,.xr-cta2,.vxacct),[role="button"]:not(.nav-item),.cx-node,.cx-core,.cx-p.tap,.cx-row:is([data-twin],[data-comms],[data-do]),.cx-chip:is(a,[data-comms]),label.ox-pick,a.vx-tool-ext,a.auth-btn,:where(#vxMainOsBar) .meta a):not(.vx-leather-off):not([hidden]){outline:1px solid ButtonText !important;outline-offset:0 !important}}
/* 2026-11-12b: one "Scan your first card" on the signed-in home. When the collection is empty the console shows both a small hero tile and the full-width primary button (data-xwtool="scan"); hide only the small tile then. Signed-out guest console (.xw-gconsole) keeps its only copy. Visual only. */
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3) .xw-console:not(.xw-gconsole):has(> .xw-primary[data-xwtool="scan"]) > .xw-hero:has(> .xw-hero-card.xw-empty){display:none !important}
html:not(#vlb0):not(#vlb1):not(#vlb2):not(#vlb3) .xw-console:not(.xw-gconsole):has(> .xw-primary[data-xwtool="scan"]):has(> .xw-hero > .xw-hero-card.xw-empty) > .xw-bars{grid-column:1/-1 !important}
