/* Lot compare (TZ tz-lot-compare-2026-11-25 r2.1): the compare page (§5), the catalogue Compare bar and toast (§6),
   the saved page ticks, compare bar and notes (§7) and the lot page link (§8). Brand tokens only (--wmx-*, canon
   design-canon-closo-co-wholesale-brand-2026-11-17): purple on buttons alone; the Best tag is an ink outline on sand.
   Linked by the chrome only while wsm_lot_compare_enabled is armed, and by the compare page itself. */

.cmp-page, .cmp-bar, .cmp-toast, .cmp-mchip, .wsm-cmp-lotlink, .cmp-sel, .cmp-note, .cmp-tick {
  --cmp-ink: var(--wmx-ink, #17142B);
  --cmp-muted: var(--wmx-muted, #6A6580);
  --cmp-line: var(--wmx-line, #E9E6F0);
  --cmp-sand: var(--wmx-sand, #F6F3EE);
  --cmp-soft: var(--wmx-soft, #F4F1FB);
  --cmp-brand: var(--wmx-brand, #3F2A9C);
  --cmp-body: var(--wmx-body, Inter, ui-sans-serif, system-ui, sans-serif);
  --cmp-head: var(--wmx-head, Poppins, ui-sans-serif, system-ui, sans-serif);
}

/* ── buttons, toggles, icon buttons (shared by every surface below) ── */
.cmp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 16px; font: 600 13.5px/1.2 var(--cmp-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.cmp-btn-solid { background: var(--cmp-brand); color: #fff; }
.cmp-btn-solid:hover { background: #33227F; color: #fff; }
.cmp-btn-ghost { background: #fff; color: var(--cmp-ink); border-color: var(--cmp-line); }
.cmp-btn-ghost:hover { border-color: var(--cmp-ink); color: var(--cmp-ink); }
.cmp-btn:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.cmp-btn-sm { padding: 7px 12px; font-size: 12.5px; }
.cmp-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--cmp-muted); text-decoration: none; }
.cmp-ib:hover { background: var(--cmp-soft); color: var(--cmp-ink); }
.cmp-ib:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.cmp-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 500 13.5px/1 var(--cmp-body); user-select: none; position: relative; color: var(--cmp-ink); }
.cmp-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp-toggle .tr { width: 36px; height: 20px; border-radius: 999px; background: #CFCBDA; position: relative; transition: background .15s; flex: none; }
.cmp-toggle .tr::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.cmp-toggle input:checked + .tr { background: var(--cmp-ink); }
.cmp-toggle input:checked + .tr::after { transform: translateX(16px); }
.cmp-toggle:hover .tr { box-shadow: 0 0 0 4px var(--cmp-soft); }
.cmp-toggle input:focus-visible + .tr { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }

/* ── the compare page (§5.1, frame 3) ── */
.cmp-page { max-width: 1320px; margin: 0 auto; padding: 0 var(--wm-pad, 40px); padding-bottom: 48px; color: var(--cmp-ink); font: 400 14px/1.45 var(--cmp-body); }
.cmp-crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cmp-crumbs svg { color: #B7B2C6; flex: none; }
.cmp-crumbs a:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; border-radius: 3px; }
.cmp-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmp-mbar { display: none; }
.cmp-top { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.cmp-grow { flex: 1; min-width: 0; }
.cmp-top .cmp-grow { min-width: 300px; }
.cmp-eyebrow { font: 600 11.5px/1 var(--cmp-body); letter-spacing: .07em; text-transform: uppercase; color: var(--cmp-muted); margin: 0 0 12px; }
.cmp-h1 { font: 600 28px/1.2 var(--cmp-head); margin: 0; }
.cmp-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cmp-cap { font-size: 12.5px; color: var(--cmp-muted); white-space: nowrap; }
.cmp-chips { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.cmp-chip { border: 1px solid var(--cmp-line); border-radius: 999px; padding: 8px 14px; background: #fff; font: 500 13px/1 var(--cmp-body); cursor: pointer; text-decoration: none; color: var(--cmp-ink); }
.cmp-chip:hover { border-color: var(--cmp-ink); }
.cmp-chip:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.cmp-chip[aria-current="page"] { background: var(--cmp-ink); color: #fff; border-color: var(--cmp-ink); }
.cmp-chip span { opacity: .7; margin-left: 4px; }
.cmp-gone { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; color: var(--cmp-muted); }
.cmp-state { border: 1px solid var(--cmp-line); border-radius: 14px; background: var(--cmp-sand); padding: 32px; display: grid; gap: 16px; justify-items: start; }
.cmp-state p { margin: 0; font-size: 15px; }
.cmp-state-acts { display: flex; gap: 10px; flex-wrap: wrap; }

.cmp-wrap { position: relative; border: 1px solid var(--cmp-line); border-radius: 14px; overflow: auto; max-height: calc(100vh - 160px); overscroll-behavior: contain; }
.cmp-wrap:focus-visible, .cmp-mscroll:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
table.cmp { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13.5px; }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cmp-line); background: #fff; }
.cmp td { width: 212px; min-width: 212px; max-width: 212px; }
.cmp th.rl { position: sticky; left: 0; z-index: 2; width: 196px; min-width: 196px; font: 500 13px/1.35 var(--cmp-body); color: var(--cmp-muted); border-right: 1px solid var(--cmp-line); }
.cmp th.rl .hint { display: block; font-size: 11.5px; color: #8A85A0; font-weight: 400; margin-top: 2px; }
.cmp thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--cmp-line); font-weight: 400; }
.cmp thead th.rl { z-index: 4; vertical-align: bottom; }
.cmp thead th.rl b { display: block; color: var(--cmp-ink); font: 600 14px/1.3 var(--cmp-head); }
.cmp thead th.rl span { font-size: 12px; }
.colh { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; position: relative; width: 184px; }
.cmp-ph { display: block; position: relative; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, #F2EDE4 12.5%, #E9E1D4 87.5%); }
.cmp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.colh .ph { width: 56px; height: 56px; }
/* two lines, never part of a third: the grid row is the 56 px photo, so the box is held at two line heights */
.colh .tt { font: 500 13px/1.3 var(--cmp-body); color: var(--cmp-ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-height: 2.6em; align-self: start; padding-right: 18px; text-decoration: none; border-radius: 3px; }
.colh .tt:hover { text-decoration: underline; text-underline-offset: 3px; }
.colh .tt:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.colh .rm { position: absolute; right: -8px; top: -6px; width: 26px; height: 26px; }
.colh .px { grid-column: 1 / -1; font: 600 16px/1.2 var(--cmp-body); color: var(--cmp-ink); }
.colh .px small { display: block; font: 400 12px/1.3 var(--cmp-body); color: var(--cmp-muted); margin-top: 2px; }
.colh .px small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; border-radius: 3px; }
.colh .px small a:hover { color: var(--cmp-ink); }
.colh .px small a:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.colh .acts { grid-column: 1 / -1; display: flex; gap: 6px; }
.colh .acts .cmp-btn { flex: 1; }
.colh .cn { grid-column: 1 / -1; font: 400 12px/1.35 var(--cmp-body); color: var(--cmp-muted); border-top: 1px solid var(--cmp-line); padding-top: 7px; white-space: normal; }
.colh .cn p { margin: 0 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.colh .cn a { display: inline-flex; align-items: center; gap: 4px; color: var(--cmp-muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; border-radius: 3px; }
.colh .cn a:hover { color: var(--cmp-ink); text-decoration-thickness: 2px; }
.colh .cn a:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.cmp tr.grp th, .cmp tr.grp td { background: var(--cmp-sand); padding: 9px 14px; font: 600 11.5px/1 var(--cmp-body); letter-spacing: .07em; text-transform: uppercase; color: var(--cmp-ink); }
.cmp tr.grp th { position: sticky; left: 0; z-index: 2; }
.cmp .grp-note { font: 400 12px/1.4 var(--cmp-body); letter-spacing: 0; text-transform: none; color: var(--cmp-muted); }
.cmp td .v { font-weight: 500; color: var(--cmp-ink); }
.cmp td .v.is-absent, .cmp-mvals .v.is-absent { color: var(--cmp-muted); font-weight: 400; }
.cmp td .s, .cmp-mvals .s { display: block; font-size: 12px; color: var(--cmp-muted); margin-top: 2px; }
.cmp td.best .v, .cmp-mvals .best .v { font-weight: 600; }
.cmp-best { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 2px 6px; border: 1px solid var(--cmp-ink); border-radius: 999px; background: var(--cmp-sand); font: 600 10.5px/1 var(--cmp-body); color: var(--cmp-ink); letter-spacing: .02em; vertical-align: 1px; }
.cmp-page.no-best .cmp-best { display: none; }
.cmp-page.no-best td.best .v, .cmp-page.no-best .cmp-mvals .best .v { font-weight: 500; }
.cmp-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--cmp-ink); border: 1px solid var(--cmp-line); border-radius: 999px; padding: 3px 8px 3px 6px; }
.cmp tr.stand td { font-size: 13px; line-height: 1.4; }
.stand-l { display: flex; gap: 8px; align-items: flex-start; }
.stand-l svg { flex: none; margin-top: 1px; color: var(--cmp-ink); }
.stand-l.mid, .stand-l.mid svg { color: var(--cmp-muted); }
.cmp tr.is-same td .v { color: var(--cmp-muted); font-weight: 400; }
.cmp-page.hide-same tr.is-same, .cmp-page.hide-same .cmp-mrow.is-same { display: none; }
.cmp-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--cmp-muted); font-size: 12.5px; flex-wrap: wrap; }
.cmp-foot svg { flex: none; }
.cmp-hidden-note { font-size: 12.5px; color: var(--cmp-muted); }
.cmp-m { display: none; }

/* live swap: a skeleton of the table while the fragment loads (storefront interaction invariant) */
.cmp-page.is-loading .cmp-wrap td, .cmp-page.is-loading .cmp-mvals .cmp-mcol { color: transparent; }
.cmp-page.is-loading .cmp-wrap td > *, .cmp-page.is-loading .cmp-mvals .cmp-mcol > * { visibility: hidden; }
.cmp-page.is-loading .cmp-wrap td, .cmp-page.is-loading .cmp-mvals .cmp-mcol { background: linear-gradient(90deg, #EFECF4 0, #F7F5FA 40%, #EFECF4 80%) 0 0 / 300% 100%; animation: cmp-sk 1.3s ease-in-out infinite; }
@keyframes cmp-sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cmp-page.is-loading .cmp-wrap td, .cmp-page.is-loading .cmp-mvals .cmp-mcol { animation: none; } }

/* ── phone (§5.2, frame 4) ── */
@media (max-width: 640px) {
  .cmp-page { padding: 0 0 calc(80px + env(safe-area-inset-bottom, 0px)); }
  .cmp-crumbs, .cmp-top { display: none; }
  .cmp-mbar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 10px; border-bottom: 1px solid var(--cmp-line); }
  .cmp-mh { flex: 1; margin: 0; font: 600 16px/1.2 var(--cmp-head); }
  .cmp-mh small { display: block; font: 400 12px/1.3 var(--cmp-body); color: var(--cmp-muted); }
  .cmp-chips { margin: 10px 16px; flex-wrap: nowrap; overflow-x: auto; }
  .cmp-chip { white-space: nowrap; }
  .cmp-gone, .cmp-state { margin-left: 16px; margin-right: 16px; }
  .cmp-wrap { display: none; }
  .cmp-m { display: block; }
  .cmp-mtools { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--cmp-line); font-size: 12.5px; }
  .cmp-mtools .cmp-toggle { font-size: 12.5px; }
  .cmp-pager { color: var(--cmp-muted); display: flex; align-items: center; gap: 6px; }
  .cmp-dots { display: flex; gap: 4px; }
  .cmp-dots i { width: 6px; height: 6px; border-radius: 50%; background: #D4D0DE; }
  .cmp-dots i.on { background: var(--cmp-ink); }
  .cmp-mscroll { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; position: relative; }
  .cmp-mgrid { width: max-content; padding: 0 0 16px; }
  .cmp-mhead { position: sticky; top: 0; z-index: 3; display: flex; background: #fff; border-bottom: 1px solid var(--cmp-line); padding: 12px 16px 10px; gap: 12px; }
  .cmp-mcol { width: calc((100vw - 44px) / 2); flex: none; scroll-snap-align: start; scroll-margin-left: 16px; }
  .cmp-mh .ph { width: 100%; aspect-ratio: 16 / 10; }
  .cmp-mh .tt { font: 500 12.5px/1.3 var(--cmp-body); margin: 6px 0 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 32px; max-height: 2.6em; color: var(--cmp-ink); text-decoration: none; border-radius: 3px; }
  .cmp-mh .tt:hover { text-decoration: underline; text-underline-offset: 3px; }
  .cmp-mh .tt:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
  .cmp-mh .px { font: 600 15px/1.2 var(--cmp-body); }
  .cmp-mh .px small { display: block; font: 400 11px/1.3 var(--cmp-body); color: var(--cmp-muted); }
  .cmp-mh .acts { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
  .cmp-mh .acts .cmp-btn { flex: 1; padding: 8px 6px; font-size: 12px; }
  .cmp-mh .cn { margin: 6px 0 0; font-size: 11.5px; color: var(--cmp-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
  .cmp-mgrp { position: sticky; left: 0; width: 100vw; box-sizing: border-box; padding: 12px 16px 6px; font: 600 11px/1 var(--cmp-body); letter-spacing: .07em; text-transform: uppercase; background: var(--cmp-sand); border-bottom: 1px solid var(--cmp-line); }
  .cmp-mgrp .grp-note { display: block; margin-top: 6px; }
  .cmp-mrow { border-bottom: 1px solid var(--cmp-line); }
  .cmp-mlbl { position: sticky; left: 0; width: 100vw; box-sizing: border-box; padding: 10px 16px 0; font: 500 12px/1.3 var(--cmp-body); color: var(--cmp-muted); }
  .cmp-mvals { display: flex; gap: 12px; padding: 4px 16px 10px 10px; }
  .cmp-mvals > .cmp-mcol { font-size: 13px; line-height: 1.35; border-radius: 6px; padding: 4px 6px; }
  .cmp-mvals .v { font-weight: 500; }
  .cmp-mrow.is-same .v { color: var(--cmp-muted); font-weight: 400; }
  .cmp-foot { margin: 14px 16px 0; }
}

/* ── catalogue Compare bar (§6) and toast (§3.1) ── */
.cmp-bar { position: fixed; left: 50%; bottom: max(16px, var(--cmp-ccb, 0px)); transform: translateX(-50%); z-index: 9990; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--cmp-line); border-radius: 999px; padding: 7px 7px 7px 10px; box-shadow: 0 10px 28px rgba(23,20,43,.16); max-width: calc(100vw - 32px); font: 400 14px/1.45 var(--cmp-body); color: var(--cmp-ink); }
.cmp-bar[hidden] { display: none; }
/* --cmp-ccb: set by the tray script while the cookie card (#ccbBanner) shows, so the bar and the toast sit above it */
.cmp-bar .thumbs { display: flex; flex: none; }
.cmp-bar .thumbs span { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(180deg, #F6F3EE, #ECE6DC); border: 2px solid #fff; display: grid; place-items: center; overflow: hidden; }
.cmp-bar .thumbs span + span { margin-left: -10px; }
.cmp-bar .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cmp-bar .thumbs .more { font: 600 11.5px/1 var(--cmp-body); color: var(--cmp-ink); background: var(--cmp-sand); }
.cmp-bar .ct { min-width: 0; line-height: 1.25; }
.cmp-bar .ct b { display: block; font: 600 14px/1.25 var(--cmp-body); white-space: nowrap; }
.cmp-bar .clr { font: 400 13px/1.2 var(--cmp-body); margin: 0 4px; border: 0; background: none; padding: 4px; color: var(--cmp-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 4px; }
.cmp-bar .clr:hover { text-decoration-thickness: 2px; }
.cmp-bar .clr:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.cmp-bar .cmp-btn { padding: 10px 20px; }
body.wsm-cmp-on .ca-dock { bottom: 74px; }
.cmp-toast { position: fixed; left: 16px; bottom: max(84px, calc(var(--cmp-ccb, 0px) + 68px)); z-index: 9991; display: flex; align-items: center; gap: 12px; background: var(--cmp-ink); color: #fff; border-radius: 12px; padding: 12px 14px; font: 400 13.5px/1.4 var(--cmp-body); box-shadow: 0 8px 24px rgba(23,20,43,.25); max-width: 340px; }
.cmp-toast[hidden] { display: none; }
.cmp-toast .tt { flex: 1; }
.cmp-toast a, .cmp-toast .bn { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; border-radius: 4px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.cmp-toast a:hover, .cmp-toast .bn:hover { text-decoration-thickness: 2px; }
.cmp-toast a:focus-visible, .cmp-toast .bn:focus-visible, .cmp-toast .x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cmp-toast .x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.cmp-toast .x:hover { background: rgba(255,255,255,.14); }
.cmp-toast .dot { opacity: .6; }
.cmp-toast .bd { white-space: nowrap; font-weight: 400; }
.cmp-bar .thumbs span svg { color: var(--cmp-muted); }
@media (max-width: 640px) {
  .cmp-bar { left: 12px; right: 12px; transform: none; bottom: max(calc(70px + env(safe-area-inset-bottom, 0px)), var(--cmp-ccb, 0px)); height: 56px; box-sizing: border-box; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 18px; }
  .cmp-bar .ct { flex: 1; }
  .cmp-bar .clr { display: none; }
  .cmp-bar .cmp-btn { padding: 9px 16px; }
  .cmp-toast { left: 12px; right: 12px; max-width: none; bottom: max(calc(134px + env(safe-area-inset-bottom, 0px)), calc(var(--cmp-ccb, 0px) + 64px)); }
  body.wsm-cmp-on:has(.wma-tabbar) .ca-dock { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  /* One bottom stack (TZ tz-mobile-floating-bars-swipe-dismiss-2026-11-25 §4): the tray script measures the tab bar,
     the tray and the pill and writes --wsm-tab-h / --wsm-cmp-h / --wsm-ca-h on <html> with html.wsm-stack. Base = 12 px
     above the tab bar, or above the cookie card while it shows. Row A (tray) at base, the pill above row A, the toast
     above both; the pad under the grid and the keyboard's scroll padding cover all of it. Without html.wsm-stack the
     literal rules above stay. */
  html.wsm-stack { scroll-padding-bottom: calc(var(--wsm-tab-h, 58px) + var(--wsm-cmp-h, 0px) + var(--wsm-ca-h, 0px)); }
  html.wsm-stack .cmp-bar { bottom: max(calc(var(--wsm-tab-h, 58px) + 12px), var(--cmp-ccb, 0px)); }
  html.wsm-stack body:has(.wma-tabbar) .ca-dock { bottom: calc(max(calc(var(--wsm-tab-h, 58px) + 12px), var(--cmp-ccb, 0px)) + var(--wsm-cmp-h, 0px)); }
  html.wsm-stack .cmp-toast { z-index: 9999; bottom: calc(max(calc(var(--wsm-tab-h, 58px) + 12px), var(--cmp-ccb, 0px)) + var(--wsm-cmp-h, 0px) + var(--wsm-ca-h, 0px)); }
  html.wsm-stack .wma-tabbar-pad { height: calc(var(--wsm-tab-h, 58px) + var(--wsm-cmp-h, 0px) + var(--wsm-ca-h, 0px)); }
  /* a page dialog (aria-modal, not the assistant's own panel) owns the screen: the tray and the toast step aside like
     the dock does; the toast's 4 s timer keeps running, so it does not come back stale */
  html.wsm-yield .cmp-bar, html.wsm-yield .cmp-toast, html.wsm-yield .cmp-mchip { display: none; }
  /* The tray you can put away (TZ tz-mobile-floating-bars-swipe-dismiss-2026-11-25 §3.1), flag
     wsm_mobile_bars_swipe_enabled: the tray script adds .is-bsw, the grabber, the minimize button and the chip only
     while it is on. The tray grows 56 → 64 px: the grabber's 8 px inside it, 16 transparent px above it. */
  .cmp-bar.is-bsw { height: 64px; padding-top: 14px; }
  .cmp-bar.is-bsw.is-mini { display: none; }
  .cmp-bar.is-bsw .ct b { overflow: hidden; text-overflow: ellipsis; }
  .cmp-bar.is-bsw .cmp-btn { padding: 9px 14px; }
  .cmp-bar .cmp-grab { position: absolute; left: 8px; top: -16px; height: 24px; width: 120px; box-sizing: border-box; padding-top: 16px; display: grid; place-items: center; touch-action: none; cursor: grab; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
  .cmp-bar .cmp-grab i { display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--cmp-line); transition: background-color .15s; }
  .cmp-bar .cmp-grab:hover i { background: #CBC5D9; }
  .cmp-bar .cmp-grab:active i { background: var(--cmp-muted); transform: scale(.94); }
  .cmp-bar .cmp-grab:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
  .cmp-bar .cmp-min { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--cmp-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .cmp-bar .cmp-min:hover { background: var(--cmp-sand); }
  .cmp-bar .cmp-min:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
  .cmp-bar .cmp-min:active { transform: scale(.94); }
  .cmp-mchip { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: max(calc(70px + env(safe-area-inset-bottom, 0px)), var(--cmp-ccb, 0px)); z-index: 9990; display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; min-width: 44px; min-height: 44px; max-width: calc(100vw - 24px); padding: 0 16px 0 14px; background: #fff; color: var(--cmp-ink); border: 1px solid var(--cmp-line); border-radius: 999px; font: 600 14px/1 var(--cmp-body); white-space: nowrap; box-shadow: 0 10px 28px rgba(23,20,43,.16); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .cmp-mchip[hidden] { display: none; }
  .cmp-mchip span { overflow: hidden; text-overflow: ellipsis; }
  .cmp-mchip:hover { background: var(--cmp-sand); border-color: var(--cmp-ink); }
  .cmp-mchip:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
  .cmp-mchip:active { transform: scale(.97); }
  .cmp-mchip.is-in { animation: cmpMchipIn .16s ease-out; }
  .cmp-mchip.is-pulse { animation: cmpMchipPulse .3s ease-out; }
  html.wsm-stack .cmp-mchip { bottom: max(calc(var(--wsm-tab-h, 58px) + 12px), var(--cmp-ccb, 0px)); }
  /* combination 3 (§3.3): the chip and the assistant's mini icon share row A, chip left, icon right, 12 px apart at
     least (left 12 + gap 12 + icon 48 + right 14) */
  html.wsm-stack.wsm-share body:has(.wma-tabbar) .ca-dock { bottom: max(calc(var(--wsm-tab-h, 58px) + 12px), var(--cmp-ccb, 0px)); }
  html.wsm-share .cmp-mchip { max-width: calc(100% - 48px - 38px); }
}
/* the chip is a phone control: never above 640 (the tray shows as today there) */
@media (min-width: 641px) { .cmp-mchip { display: none; } }
.cmp-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes cmpMchipIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes cmpMchipPulse { 0%, 100% { transform: none; } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .cmp-mchip.is-in, .cmp-mchip.is-pulse { animation: none; }
  .cmp-bar .cmp-grab i { transition: none; }
}

/* ── saved page: ticks, the sticky compare bar, notes (§7) ── */
.wmb-cardwrap.cmp-on { position: relative; }
.cmp-tick { position: absolute; left: 4px; top: 4px; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.cmp-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp-tick .bx { width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 1.5px solid #8C87A0; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: border-color .15s, background .15s; color: #fff; }
.cmp-tick .bx svg { opacity: 0; }
.cmp-tick input:checked + .bx { background: var(--cmp-ink); border-color: var(--cmp-ink); }
.cmp-tick input:checked + .bx svg { opacity: 1; }
.cmp-tick:hover .bx { border-color: var(--cmp-ink); }
.cmp-tick input:focus-visible + .bx { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.cmp-sel { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--cmp-line); border-radius: 12px; margin: 16px 0; background: var(--cmp-sand); flex-wrap: wrap; box-shadow: 0 8px 24px rgba(23,20,43,.12); font: 400 13.5px/1.4 var(--cmp-body); color: var(--cmp-ink); }
.cmp-sel[hidden] { display: none; }
.cmp-sel .msg { flex: 1; }
.cmp-sel .lim { color: var(--cmp-muted); }
.cmp-sel .cmp-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.wmb-cardwrap.is-picked .wm-card { box-shadow: 0 0 0 2px var(--wmx-ink, #17142B); border-radius: 14px; }
.cmp-note .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-board-btn { margin-left: 12px; vertical-align: middle; }
.cmp-note { margin-top: 8px; font: 400 13px/1.4 var(--cmp-body); color: var(--cmp-ink); position: relative; z-index: 3; }
.cmp-note-add { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; color: var(--cmp-muted); cursor: pointer; border-radius: 6px; font: inherit; text-align: left; }
.cmp-note-add:hover { color: var(--cmp-ink); text-decoration: underline; text-underline-offset: 3px; }
.cmp-note-add:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
.cmp-note-add.has-text { display: flex; width: 100%; gap: 8px; align-items: flex-start; background: var(--cmp-sand); border-radius: 8px; padding: 8px 10px; color: var(--cmp-ink); }
.cmp-note-add.has-text span { flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.cmp-note-add.has-text svg { flex: none; color: var(--cmp-muted); margin-top: 2px; }
.cmp-note textarea { width: 100%; box-sizing: border-box; min-height: 68px; resize: vertical; border: 1px solid var(--cmp-line); border-radius: 8px; padding: 8px 10px; font: 400 13px/1.4 var(--cmp-body); background: #fff; color: var(--cmp-ink); }
.cmp-note textarea:hover { border-color: #B7B2C6; }
.cmp-note textarea:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 0; border-color: var(--cmp-ink); }
.cmp-note .row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--cmp-muted); }
.cmp-note .row small { flex: 1; font-size: 12px; }
.cmp-note .st svg { vertical-align: -2px; }
.cmp-note .err { color: #9B1C1C; }
.cmp-note .spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--cmp-line); border-top-color: var(--cmp-ink); border-radius: 50%; animation: cmp-spin .8s linear infinite; vertical-align: -2px; }
@keyframes cmp-spin { to { transform: rotate(360deg); } }
.cmp-acct-line { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--cmp-line, #E9E6F0); border-radius: 12px; background: var(--wmx-sand, #F6F3EE); font-size: 13.5px; }
.cmp-acct-line a { color: var(--wmx-ink, #17142B); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 3px; }
.cmp-acct-line a:hover { text-decoration-thickness: 2px; }
.cmp-acct-line a:focus-visible { outline: 2px solid var(--wmx-ink, #17142B); outline-offset: 2px; }

/* ── lot page link (§8) ── */
.wsm-cmp-lotlink[hidden] { display: none; }
.wsm-cmp-lotlink { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 400 13.5px/1.4 var(--cmp-body); color: var(--cmp-ink); }
.wsm-cmp-lotlink a { font-weight: 600; color: var(--cmp-ink); text-decoration: underline; text-underline-offset: 3px; border-radius: 3px; }
.wsm-cmp-lotlink a:hover { text-decoration-thickness: 2px; }
.wsm-cmp-lotlink a:focus-visible { outline: 2px solid var(--cmp-ink); outline-offset: 2px; }
