.bhx,.bhx-brief{color:var(--ink,#102346)}.bhx-title{padding:24px 0}.bhx-title h2,.bhx-brief h2{font-size:clamp(24px,2.5vw,36px);line-height:1.2;letter-spacing:-.035em;margin:10px 0 14px;max-width:760px}.bhx-eyebrow{font-size:11px;font-weight:650;letter-spacing:.12em;color:var(--stone,#766f64)}.bhx-title p,.bhx-insight p,.bhx-brief p{line-height:1.6;max-width:760px}.bhx-title small{color:var(--stone,#766f64)}.bhx-insight{display:flex;gap:24px;padding:28px;margin:0 0 16px;border:1px solid var(--hairline,#e7e1d7);border-radius:16px;background:var(--card,#fff)}.bhx-index{font-size:16px;color:var(--stone,#766f64);padding-top:4px}.bhx-insight h3{font-size:23px;line-height:1.3;letter-spacing:-.025em;margin:8px 0 14px}.bhx-impact{display:block;font-size:30px;letter-spacing:-.04em}.bhx-next{padding:16px;border-radius:10px;background:var(--well,#f4f2ee)}.bhx-insight details{margin:14px 0;color:var(--stone,#766f64)}.bhx-insight summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.bhx-brief{padding:28px;border:1px solid var(--hairline,#e7e1d7);border-radius:16px;background:var(--card,#fff);margin-bottom:24px;border-top:3px solid var(--bleu,#087bff)}.bhx-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.bhx-links button{min-height:44px;padding:10px 14px;border:1px solid var(--hairline,#e7e1d7);border-radius:8px;background:var(--paper,#f7f5f0);color:inherit;cursor:pointer}.bhx button:focus-visible,.bhx summary:focus-visible,.bhx-brief button:focus-visible{outline:2px solid var(--bleu,#087bff);outline-offset:4px}.bhx-day{margin:28px 0 12px;font-size:18px}.bhx-day small{font-size:13px;font-weight:400;color:var(--stone,#766f64);margin-left:12px}.bhx-system{padding:12px 16px;background:var(--well,#f4f2ee);border-radius:10px;margin:16px 0}.bhx-system summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.bhx-report-title{font-size:26px;margin:24px 0 6px}@media(max-width:600px){.bhx-insight{padding:20px;gap:12px}.bhx-index{display:none}.bhx-insight h3{font-size:21px}.bhx-brief{padding:20px}.bhx-links{display:grid;grid-template-columns:1fr 1fr}.bhx-links button{text-align:left}.bhx-impact{font-size:26px}}@media(forced-colors:active){.bhx-insight,.bhx-brief,.bhx-next{border:1px solid CanvasText}}

/* The reader earns its space only when a note or task is open. */
@media(min-width:1101px){.wv2-frame:has(.wv2-doc-empty),.wv2-frame:has(.wv2-skel){grid-template-columns:200px minmax(0,1fr)}.wv2-frame:has(.wv2-doc-empty) .wv2-doc,.wv2-frame:has(.wv2-skel) .wv2-doc{display:none}.wv2-frame:has(.wv2-doc-empty) .wv2-listpane{border-right:0}.wv2-frame:not(:has(.wv2-doc-empty)):not(:has(.wv2-skel)){grid-template-columns:190px minmax(280px,32%) minmax(0,1fr)}}
#content .wv2 .wv2-frame{border-radius:14px;min-height:460px}.wv2-side{padding:14px 10px}.wv2-lhead{padding:22px 24px 12px}.wv2-rows{padding:0 14px 24px}.wv2-listpane .wv2-row{padding:16px 12px;margin-bottom:4px;border-radius:10px}.wv2-doc-scroll{padding:0 clamp(20px,3vw,44px) 40px}.wv2-keys{opacity:.65}.wv2-doc-title{font-size:28px!important}.wv2-quick input{min-width:0;text-overflow:ellipsis}.wv2-crumbs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Inventory photo direction: show the complete source image, in a consistent
   landscape window. The source image is evidence of the vehicle, so the crop
   must never silently remove its nose, wheels or roof. This presentation layer
   changes neither gallery choice nor the permission-gated media source. */
#ivviewwrap .ivp-card .ivp-frame,
#ivviewwrap .ivp-card .ivp-over{
  aspect-ratio:3 / 2;
}
#ivviewwrap .ivp-card .ivp-frame{
  background:var(--well);
}
#ivviewwrap .ivp-card .ivp-frame > .ivp-img{
  object-fit:contain;
  object-position:center;
  width:100%;
  height:100%;
  max-width:100%;
}
/* Keep the loading preview on the same composition as the final image.
   A zoomed blur makes the eventual full-car image appear to jump. */
#ivviewwrap .ivp-card .ivp-lqip{
  inset:0;
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  background-color:var(--well);
  transform:none;
  filter:blur(8px);
}
#ivviewwrap .ivp-card .ivp-frame[data-ivp=ok] > .ivp-lqip{
  visibility:hidden;
}
#ivviewwrap .ivp-card .ivp-thumb .ivp-timg,
.bt-root[data-bt-root=assets] .ivp-t > .ivp-timg{
  object-fit:contain;
  object-position:center;
}
/* The photo is the hero; status and gallery controls remain readable at the
   edges without growing the image or stealing space from the vehicle. */
#ivviewwrap .ivp-card .ivp-life{
  top:10px;
  left:10px;
}
#ivviewwrap .ivp-card .ivp-plate{
  gap:8px;
  padding:20px 16px 72px;
}
#ivviewwrap .ivp-card .ivp-plate-word{
  font-size:14px;
  line-height:1.4;
}
#ivviewwrap .ivp-card .ivp-plate-hint{
  max-width:24ch;
}
#ivviewwrap .ivp-card .ivp-btn{
  min-height:44px;
}
@media(max-width:640px){
  #ivviewwrap .ivp-card .ivp-frame,
  #ivviewwrap .ivp-card .ivp-over{
    aspect-ratio:3 / 2;
  }
  #ivviewwrap .ivp-card .ivp-plate{
    padding-top:16px;
  }
}
@media(prefers-reduced-motion:reduce){
  #ivviewwrap .ivp-card .ivp-img,
  #ivviewwrap .ivp-card .ivp-lqip{
    transition:none;
  }
}
@media(forced-colors:active){
  #ivviewwrap .ivp-card .ivp-frame{
    border-bottom:1px solid CanvasText;
  }
}
/* Search and record faces use the same complete-car composition as Inventory. */
.cph[data-cphoto] img,
.lsthumb img,
#drawer .cshero img{object-fit:contain;object-position:center;background:var(--well)}

/* Sourcing review: one strong result surface, a quiet toolbar, and a readable
   in-app listing sheet. Source freshness and availability stay visible. */
body[data-view="sourcing"] .soheading{
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}
body[data-view="sourcing"] .soheading h1{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.2;
  letter-spacing:-.035em;
}
body[data-view="sourcing"] .soheading .sub{
  max-width:70ch;
  font-size:13px;
  line-height:1.5;
  color:var(--stone);
}
body[data-view="sourcing"] .soheadingactions{
  flex-wrap:nowrap;
  gap:8px;
}
body[data-view="sourcing"] .soheadingactions .btn{
  min-height:44px;
  font-size:13px;
}
body[data-view="sourcing"] #sodecisionviews{
  justify-content:flex-start;
  margin:0 0 16px;
}
body[data-view="sourcing"] .so-view-controls{
  background:var(--well);
  border-color:var(--hairline);
  padding:3px;
}
body[data-view="sourcing"] .so-view-button{
  min-width:84px;
  font-size:13px;
  color:var(--stone);
}
body[data-view="sourcing"] .so-view-button[aria-pressed="true"]{
  color:var(--ink);
  background:var(--card);
  box-shadow:none;
}
body[data-view="sourcing"] .so-browse-options,
body[data-view="sourcing"] .so-source-menu{
  border-color:var(--hairline);
}
body[data-view="sourcing"] .so-browse-options > summary,
body[data-view="sourcing"] .so-source-menu > summary{
  font-size:13px;
  line-height:1.4;
  min-height:44px;
}
body[data-view="sourcing"] #sobody.so-decision-grid{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));
  gap:16px;
  padding:16px;
}
body[data-view="sourcing"] .so-decision-card{
  display:flex;
  flex-direction:column;
  background:var(--card);
  color:var(--ink);
  border-color:var(--hairline);
  border-radius:12px;
  box-shadow:none;
}
body[data-view="sourcing"] .so-decision-card .somedia{
  aspect-ratio:3 / 2;
  background:var(--well);
}
body[data-view="sourcing"] .so-decision-card .sophoto{
  object-fit:contain!important;
  object-position:center;
  background:var(--well);
  transform:none;
}
body[data-view="sourcing"] .so-decision-copy{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:18px;
}
body[data-view="sourcing"] .so-decision-card h2{
  margin:10px 0;
  font:600 20px/1.3 var(--font-ui);
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
body[data-view="sourcing"] .so-decision-source{
  color:var(--stone);
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
body[data-view="sourcing"] .so-decision-source > span{
  font-size:11px;
}
body[data-view="sourcing"] .so-decision-price{
  font-size:26px;
  line-height:1.2;
  letter-spacing:-.035em;
}
body[data-view="sourcing"] .so-decision-price > span{
  font-size:12px;
  color:var(--stone);
}
body[data-view="sourcing"] .so-decision-links{
  margin-top:auto;
  padding-top:16px;
  gap:8px 16px;
}
body[data-view="sourcing"] .so-decision-links > *{
  min-height:44px;
  font-size:13px;
  color:var(--bleu-deep);
}
body[data-view="sourcing"] .so-decision-links > a{
  color:var(--stone);
}
body[data-view="sourcing"] #sobody .sorow{
  grid-template-columns:220px minmax(0,1fr) 20px;
  gap:20px;
  padding:20px;
}
body[data-view="sourcing"] #sobody .sorow .somedia{
  aspect-ratio:3 / 2;
  background:var(--well);
}
body[data-view="sourcing"] #sobody .sorow .sophoto{
  object-fit:contain;
  object-position:center;
  transform:none;
}
/* Preserve the existing drawer lifecycle/back stack; present it as one modal. */
#drawer:has(.sohero){
  width:min(880px,calc(100vw - 48px))!important;
  border-radius:16px;
  background:var(--sheet);
}
#drawer .sohero{
  aspect-ratio:3 / 2;
  max-height:48dvh;
  margin:0 24px 16px;
  background:var(--well);
}
#drawer .sohero .sophoto{
  object-fit:contain;
  object-position:center;
  background:var(--well);
}
#drawer:has(.sohero) .soacts{
  padding:12px 24px;
  gap:10px;
}
#drawer:has(.sohero) .soacts .btn{
  min-height:44px;
  font-size:13px;
}
@media(max-width:700px){
  body[data-view="sourcing"] .soheading{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  body[data-view="sourcing"] .soheadingactions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  body[data-view="sourcing"] .soheadingactions .btn{
    font-size:13px;
  }
  body[data-view="sourcing"] .so-view-controls{
    width:100%;
  }
  body[data-view="sourcing"] .so-view-button{
    min-width:0;
    flex:1;
  }
  body[data-view="sourcing"] #sobody.so-decision-grid{
    grid-template-columns:minmax(0,1fr);
    padding:12px;
    gap:12px;
  }
  body[data-view="sourcing"] .so-decision-copy{
    padding:16px;
  }
  body[data-view="sourcing"] .so-decision-grid .so-decision-card h2{
    font-size:20px;
  }
  body[data-view="sourcing"] .so-decision-grid .so-decision-source{
    font-size:12px;
  }
  body[data-view="sourcing"] .so-decision-grid .so-decision-source > span{
    display:block;
    font-size:11px;
  }
  body[data-view="sourcing"] .so-decision-grid .so-decision-price{
    font-size:26px;
  }
  body[data-view="sourcing"] .so-decision-grid .so-decision-links{
    flex-direction:row;
    align-items:center;
  }
  body[data-view="sourcing"] .so-decision-grid .so-decision-links > *{
    font-size:13px;
  }
  body[data-view="sourcing"] #sobody .sorow{
    display:flex;
    flex-direction:column;
    padding:16px;
    gap:14px;
  }
  body[data-view="sourcing"] #sobody .sorow .somedia{
    aspect-ratio:3 / 2;
  }
  #drawer:has(.sohero){
    inset:0;
    width:100%!important;
    max-height:100dvh;
    border-radius:0;
    transform:none;
  }
  #drawer .sohero{
    margin:0 16px 12px;
    max-height:38dvh;
  }
  #drawer:has(.sohero) .soacts{
    padding:12px 16px;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-view="sourcing"] .sophoto{
    transition:none;
  }
}
.so-decision-image{position:relative}.bhx-source-photo{position:absolute;inset:0;z-index:2;width:100%;height:100%;background:transparent;border:0;cursor:pointer}.so-decision-image .somedia button{position:relative;z-index:3}.bhx-source-title{font:inherit;color:inherit;letter-spacing:inherit;text-align:left;border:0;background:none;padding:0;min-height:44px;cursor:pointer}.bhx-source-photo:focus-visible{outline:3px solid var(--bleu);outline-offset:-4px}.bhx-source-title:focus-visible{outline:2px solid var(--bleu);outline-offset:3px}

/* Vehicle work: keep the work state clear, the car identifiable, and the add
   picker useful on the first screen. No task status or permission changes. */
.wq-page .wq-top{
  align-items:flex-start;
  gap:16px;
}
.wq-page .wq-heading h1{
  font-size:28px;
  line-height:1.2;
  letter-spacing:-.035em;
}
.wq-page .wq-sub{
  color:var(--stone);
  line-height:1.5;
}
.wq-page .wq-card{
  border-color:var(--hairline);
  background:var(--card);
  border-radius:12px;
  box-shadow:none;
}
.wq-page .wq-car{
  font-size:15px;
  line-height:1.35;
  letter-spacing:-.015em;
}
.wq-page .wq-meta{
  gap:10px;
  line-height:1.4;
}
.wq-page .wq-photo,
dialog.wq-add .wq-photo{
  background:var(--well);
  border:1px solid var(--hairline);
}
.wq-page .wq-photo img,
dialog.wq-add .wq-photo img{
  object-fit:contain!important;
  object-position:center!important;
}
.wq-page .wq-actions{
  gap:8px;
}
.wq-page .wq-actions .btn{
  min-height:44px;
  font-size:13px;
}
.wq-page .wq-col-head{
  min-height:56px;
  align-items:center;
}
.wq-page .wq-col-head h2{
  font-size:14px;
  letter-spacing:-.01em;
}
.wq-page .wq-tag{
  line-height:1.4;
  white-space:normal;
}
dialog.wq-add{
  width:min(680px,calc(100vw - 32px));
  max-height:min(880px,calc(100dvh - 32px));
  border-color:var(--hairline);
  border-radius:16px;
  background:var(--sheet);
}
dialog.wq-add .wq-add-head{
  padding:16px 16px 12px 24px;
}
dialog.wq-add .wq-add-head h2{
  font-size:24px;
  line-height:1.25;
  letter-spacing:-.025em;
}
dialog.wq-add .wq-add-body{
  padding:8px 24px 20px;
  gap:18px;
}
dialog.wq-add .wq-hit{
  grid-template-columns:88px minmax(0,1fr) 28px;
  gap:14px;
  padding:12px;
  min-height:90px;
  border-color:var(--hairline);
  border-radius:12px;
  background:var(--card);
}
dialog.wq-add .wq-hit .wq-photo{
  width:88px;
  height:66px;
}
dialog.wq-add .wq-hit-text strong{
  font-size:15px;
  line-height:1.35;
}
dialog.wq-add .wq-hit-text > span{
  font-size:12px;
  line-height:1.5;
  color:var(--stone);
}
dialog.wq-add .wq-pick{
  background:var(--well);
  border-color:var(--hairline);
  padding:14px;
}
dialog.wq-add .wq-add-foot{
  padding:14px 24px calc(18px + env(safe-area-inset-bottom));
  background:var(--sheet);
  border-color:var(--hairline);
}
dialog.wq-add .wq-attest{
  font-size:12px;
  line-height:1.5;
  color:var(--stone);
}
@media(max-width:640px){
  dialog.wq-add{
    width:calc(100vw - 16px);
    max-height:calc(100dvh - 16px);
    border-radius:14px;
  }
  dialog.wq-add .wq-add-head{
    padding:14px 10px 10px 16px;
  }
  dialog.wq-add .wq-add-head h2{
    font-size:22px;
  }
  dialog.wq-add .wq-add-body{
    padding:6px 16px 16px;
  }
  dialog.wq-add .wq-add-foot{
    padding:12px 16px calc(16px + env(safe-area-inset-bottom));
  }
  dialog.wq-add .wq-hit{
    grid-template-columns:72px minmax(0,1fr) 24px;
    gap:10px;
    padding:10px;
  }
  dialog.wq-add .wq-hit .wq-photo{
    width:72px;
    height:54px;
  }
}
@media(forced-colors:active){
  .wq-page .wq-card,
  dialog.wq-add .wq-hit,
  dialog.wq-add .wq-pick{
    border:1px solid CanvasText;
  }
}
.wq-view-sort{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--stone)}.wq-view-sort select{min-height:44px;min-width:140px;padding:8px 12px;background:var(--card);color:var(--ink);border:1px solid var(--field-border);border-radius:8px;font:inherit}
/* The card menu exposes existing task tools without changing their permissions. */
.wq-page .wq-menu button{min-height:44px;text-align:left;white-space:normal;line-height:1.35}
.wq-page .wq-menu{min-width:224px;max-width:min(300px,calc(100vw - 32px))}
.wq-view-sort select:focus-visible{outline:2px solid var(--bleu);outline-offset:2px}
@media(max-width:719px){.wq-view-sort{flex:1}.wq-view-sort select{width:100%;min-width:0}.wq-page .wq-tools{flex-wrap:wrap}}

.bhx-locations{padding:24px}.bhx-location-tools{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:24px 0}.bhx-location-tools label{display:grid;gap:8px;flex:1;min-width:160px}.bhx-location-tools input,.bhx-location-tools select{min-height:44px;border:1px solid var(--field-border);border-radius:8px;padding:10px;background:var(--card);color:var(--ink);font:inherit}.bhx-location-scroll{overflow:auto}.bhx-location-table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}.bhx-location-table th{font-size:12px;color:var(--stone);font-weight:600;white-space:nowrap}.bhx-location-table :is(td,th){padding:16px 12px;border-bottom:1px solid var(--hairline);vertical-align:top}.bhx-location-table td small{display:block;margin-top:6px;color:var(--stone);min-width:150px}.bhx-location-table button{min-height:44px;white-space:nowrap;margin-bottom:8px}@media(max-width:600px){.bhx-locations{padding:16px}.bhx-location-tools{gap:12px}}

/* Customer record refinement only. Preserve the existing sections, record
   actions, contact-confirmation flow, duplicate warnings and provenance. */
#drawer#drawer.brs[data-brs="customer"] .brs-head{
  gap:10px;
  padding-top:14px;
  padding-bottom:14px;
}
#drawer#drawer.brs[data-brs="customer"] .brs-title{
  display:block;
  -webkit-line-clamp:unset;
  overflow:visible;
  font-size:24px!important;
  line-height:1.25!important;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
#drawer#drawer.brs[data-brs="customer"] .pdhtxt{
  min-width:0;
}
#drawer#drawer.brs[data-brs="customer"] .brs-meta{
  margin-top:0;
  margin-bottom:0;
  gap:4px 8px;
  line-height:1.45;
}
#drawer#drawer.brs[data-brs="customer"] .brs-facts{
  align-items:stretch;
  margin-top:0;
  margin-bottom:16px;
  border-color:var(--hairline);
  border-radius:10px;
}
#drawer#drawer.brs[data-brs="customer"] .brs-fact{
  justify-content:flex-start;
  min-height:74px;
  padding:12px;
  gap:6px;
}
#drawer#drawer.brs[data-brs="customer"] .brs-fact-k{
  font-size:12px;
  line-height:1.35;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
#drawer#drawer.brs[data-brs="customer"] .brs-fact-v{
  font-size:18px;
  line-height:1.3;
  font-variant-numeric:tabular-nums;
  white-space:normal;
  overflow:visible;
  overflow-wrap:anywhere;
  text-overflow:clip;
}
#drawer.customer-profile .cp-facts .dgrid,
#drawer.customer-profile .pcontact .dgrid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 24px;
}
#drawer.customer-profile .dfield{
  min-width:0;
}
#drawer.customer-profile .dfield .v,
#drawer.customer-profile .dfield .v a,
#drawer.customer-profile .pcontact a{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.5;
}
#drawer.customer-profile .pcontact .grp,
#drawer.customer-profile .cp-facts > .grp{
  line-height:1.4;
  margin-bottom:6px;
}
#drawer.customer-profile .cp-section > summary{
  gap:12px;
  min-height:52px;
  line-height:1.4;
}
#drawer.customer-profile .cp-section .pnowrow,
#drawer.customer-profile .cp-section .pbyc,
#drawer.customer-profile .ptlrow{
  line-height:1.5;
  overflow-wrap:anywhere;
}
#drawer#drawer.brs[data-brs="customer"] .brs-bar .brs-btn{
  min-height:44px;
}
@media(max-width:560px){
  #drawer#drawer.brs[data-brs="customer"] .brs-title{
    font-size:22px!important;
  }
  #drawer#drawer.brs[data-brs="customer"] .brs-facts:not([data-n="1"]){
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #drawer#drawer.brs[data-brs="customer"] .brs-fact:nth-child(odd){
    border-left:0;
  }
  #drawer#drawer.brs[data-brs="customer"] .brs-fact:nth-child(n+3){
    border-top:1px solid var(--hairline);
  }
  #drawer#drawer.brs[data-brs="customer"] .brs-fact{
    min-height:70px;
  }
  #drawer.customer-profile .cp-facts .dgrid,
  #drawer.customer-profile .pcontact .dgrid{
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
}
@media(forced-colors:active){
  #drawer#drawer.brs[data-brs="customer"] .brs-facts{
    border-color:CanvasText;
  }
}

/* Vendor record density only: retain duplicate review, W-9 uncertainty,
   separate sheet history and bills, source provenance, and all controls. */
#drawer#drawer.brs[data-brs="vendor"] .brs-head{
  padding-top:14px;
  padding-bottom:14px;
  gap:10px;
}
#drawer#drawer.brs[data-brs="vendor"] .brs-title{
  display:block;
  -webkit-line-clamp:unset;
  overflow:visible;
  font-size:24px!important;
  line-height:1.25!important;
  overflow-wrap:anywhere;
}
#drawer .vsp360{
  gap:10px;
}
#drawer .vsp360 .vspbanner{
  padding:8px 12px;
  gap:6px 12px;
  line-height:1.5;
  border-radius:8px;
}
#drawer .vsp360 .vspcontact{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
#drawer .vsp360 .vspfield{
  padding:8px 12px;
  gap:2px;
}
#drawer .vsp360 .vspfield .v,
#drawer .vsp360 .vspfield a{
  overflow-wrap:anywhere;
  line-height:1.5;
}
#drawer .vsp360 .vspsec{
  padding:12px;
  border-color:var(--hairline);
  border-radius:10px;
}
#drawer .vsp360 .vspsech{
  margin-bottom:6px;
  gap:4px 12px;
}
#drawer .vsp360 .vspnote,
#drawer .vsp360 .vspempty,
#drawer .vsp360 .submut{
  line-height:1.5;
  margin-top:4px;
  margin-bottom:4px;
}
#drawer .vsp360 .vspghost,
#drawer .vsp360 .vspbtn,
#drawer .vsp360 .vspsource summary{
  min-height:44px;
}
#drawer .vsp360 .vspstats{
  align-items:stretch;
  gap:8px;
}
#drawer .vsp360 .vspstat{
  padding:10px 12px;
  justify-content:flex-start;
  gap:4px;
}
#drawer .vsp360 .vspstat .v{
  line-height:1.3;
  font-variant-numeric:tabular-nums;
}
#drawer#drawer.brs[data-brs="vendor"] .bsm.brs-sum{
  margin:8px 0!important;
}
#drawer#drawer.brs[data-brs="vendor"] .bsm.brs-sum .bsm-lines{
  font-size:13px;
  line-height:1.5;
}
@media(max-width:560px){
  #drawer .vsp360 .vspcontact{
    grid-template-columns:minmax(0,1fr);
  }
  #drawer#drawer.brs[data-brs="vendor"] .brs-title{
    font-size:22px!important;
  }
  #drawer .vsp360 .vspstats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
#drawer .vsp-evidence h3{font-size:14px;margin:0 0 4px}
#drawer .vsp-evidence-row{display:flex;justify-content:space-between;gap:8px 16px;align-items:center;padding:8px 0;border-top:1px solid var(--hairline);overflow-wrap:anywhere}
#drawer .vsp-evidence-row>span{min-width:0}.vsp-evidence-row small{display:block;color:var(--stone);line-height:1.5}
#drawer .vsp-evidence-row>span:last-child{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:600px){#drawer .vsp-evidence-row{align-items:flex-start;flex-direction:column}}

/* Books full-window hardening only. The existing sheet node and editor stay
   mounted; the controller marks its ancestor path on entry and clears marks
   on exit. Bounds, modal stacking, Escape and warm navigation need browser QA. */
html.bk-full [data-bhx-full-ancestor]{
  transform:none!important;
  translate:none!important;
  rotate:none!important;
  scale:none!important;
  perspective:none!important;
  filter:none!important;
  backdrop-filter:none!important;
  contain:none!important;
  content-visibility:visible!important;
  will-change:auto!important;
  overflow:visible!important;
  overflow-x:visible!important;
  overflow-y:visible!important;
  clip:auto!important;
  clip-path:none!important;
}
html.bk-full .bk.is-full{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  z-index:var(--bhx-books-full-z,80)!important;
  overflow:hidden;
  padding-top:max(12px,env(safe-area-inset-top));
  padding-bottom:max(12px,env(safe-area-inset-bottom));
}
@media(max-width:760px){
  html.bk-full .bk.is-full{
    padding-right:max(8px,env(safe-area-inset-right));
    padding-left:max(8px,env(safe-area-inset-left));
  }
}

/* Inbox polish: the enquiry leads; controls and provenance remain readable. */
.lx .lx-split{grid-template-columns:minmax(280px,34%) minmax(0,1fr)}
.lx .lx-dbar{padding:16px 20px;gap:12px;align-items:flex-start}
.lx .lx-dhead h2{font-size:18px;line-height:1.35}
.lx .lx-dsub{margin-top:5px}
.lx .lx-dbody{gap:20px;padding:20px 24px 28px}
.lx .lx-sec[aria-labelledby="lxMsgH"]{padding:0 0 20px;border-bottom:1px solid var(--lx-line)}
.lx .lx-sec[aria-labelledby="lxMsgH"] h3{color:var(--lx-mut);font-size:12px;font-weight:500;margin-bottom:10px}
.lx .lx-msg{font-size:15px;line-height:1.65;max-width:68ch}
.lx .lx-props{grid-template-columns:112px minmax(0,1fr)}
.lx .lx-prop dt,.lx .lx-prop dd{padding-top:8px;padding-bottom:8px;min-height:44px}
.lx .lx-prop dt{display:flex;align-items:center}
.lx .lx-prop dd{gap:6px 10px}
.lx .lx-prop dd .lx-a{min-height:44px;max-width:100%;overflow-wrap:anywhere}
.lx .lx-btn,.lx .lx-btn.lx-sm,.lx .lx-select,.lx .lx-mi{min-height:44px}
.lx .lx-btn.lx-icon{width:44px}
.lx .lx-select{width:min(100%,300px)}
.lx .lx-row{padding:13px 14px;min-height:72px}
.lx .lx-row-main{gap:4px}
.lx .lx-av.is-none{border-style:solid;background:var(--lx-well)}
.lx .lx-foot{max-width:90ch;line-height:1.6}
@media(max-width:860px){
 .lx .lx-split{display:block}
 .lx .lx-dbody{padding:20px 16px 32px}
 .lx .lx-dbar{padding:calc(8px + env(safe-area-inset-top,0px)) 12px 12px;align-items:center}
 .lx .lx-props{grid-template-columns:88px minmax(0,1fr)}
 .lx .lx-dacts{flex-wrap:wrap}
 .lx .lx-msg{font-size:15px}
}
@media(max-width:380px){.lx .lx-props{grid-template-columns:76px minmax(0,1fr)}.lx .lx-dacts .lx-kbd{display:none}}
.lx .lx-next{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--lx-well);border:1px solid var(--lx-line);border-radius:8px}
.lx .lx-next h3{margin:0}.lx .lx-next p{margin:0;max-width:54ch;color:var(--lx-mut);font-size:13px;line-height:1.5}
@media(max-width:600px){.lx .lx-next{align-items:center;flex-direction:row}.lx .lx-next .lx-btn{align-self:auto;justify-content:center}}

.bhw-library{color:var(--ink);min-width:0}.bhw-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.bhw-head h1{margin:0;font-size:26px;line-height:1.3}.bhw-head p{max-width:65ch}.bhw-actions,.bhw-crumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bhw-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;margin:16px 0 24px}.bhw-grid li{min-width:0}.bhw-file{display:grid;gap:8px;border:1px solid var(--hairline);border-radius:8px;padding:10px;background:var(--card);font:inherit;color:inherit;text-decoration:none;width:100%;text-align:left;overflow-wrap:anywhere;cursor:pointer}.bhw-file-preview{display:grid;place-items:center;aspect-ratio:3/2;background:var(--well);border-radius:4px;overflow:hidden}.bhw-file-preview img{width:100%;height:100%;object-fit:contain}.bhw-file small{color:var(--stone)}.bhw-library button{min-height:44px}.bhw-file:focus-visible{outline:2px solid var(--bleu);outline-offset:2px}.wss-reels .wss-head{gap:16px;align-items:center}.wss-reels .wss-reel-v video{object-fit:contain}.wss-reels .wss-reel-b .wss-btn{min-height:44px}
@media(max-width:640px){.bhw-head{display:block}.bhw-head .bhw-actions{margin-top:14px}.bhw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wss-reels .wss-head{flex-wrap:wrap}}
.bhw-library .ccms-btn{min-height:44px}.bhw-library label.ccms-btn:focus-within{outline:2px solid var(--bleu);outline-offset:2px}

.crm-lead{padding:24px;max-width:760px;margin:0 auto;color:var(--ink);font:14px/1.5 var(--font-ui,system-ui)}
.crm-lead h2{font-size:24px;margin:0 0 8px}.crm-lead fieldset{border:0;border-top:1px solid var(--hairline);padding:16px 0;margin:16px 0 0;min-width:0}.crm-lead legend{font-weight:600;padding-right:12px}.crm-lead label{display:grid;gap:6px;margin:12px 0;font-weight:500}.crm-lead input,.crm-lead select,.crm-lead textarea{width:100%;min-height:44px;background:var(--card);color:var(--ink);border:1px solid var(--field-border);border-radius:8px;padding:10px 12px;font:inherit;box-sizing:border-box}.crm-lead button{font:inherit;min-height:44px;cursor:pointer;border:1px solid var(--hairline);border-radius:8px;background:var(--card);color:var(--ink);padding:10px 14px}.crm-lead button:focus-visible,.crm-lead input:focus-visible,.crm-lead select:focus-visible,.crm-lead textarea:focus-visible{outline:2px solid var(--bleu);outline-offset:2px}.crm-segment{display:flex;gap:8px}.crm-segment [aria-pressed=true]{background:var(--well);border-color:var(--ink)}.crm-results{display:grid;gap:6px;max-height:280px;overflow:auto}.crm-lead .crm-result{display:flex;align-items:center;gap:12px;text-align:left;width:100%}.crm-thumb{width:96px;aspect-ratio:3/2;flex:none;display:grid;place-items:center;background:var(--well);border-radius:5px;overflow:hidden;font-size:11px}.crm-thumb img{width:100%;height:100%;object-fit:contain}.crm-help,[data-savehint]{color:var(--stone);font-size:12px}.crm-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;bottom:0;padding:12px 0;background:var(--card)}.crm-lead .crm-primary{background:var(--ink);color:var(--card)}.crm-lead [data-error]{color:var(--alert);overflow-wrap:anywhere}.crm-lead [hidden]{display:none!important}
@media(max-width:600px){.crm-lead{padding:20px 16px}.crm-footer{flex-direction:column;align-items:stretch;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.crm-thumb{width:80px}}
.crm-lead-nav{display:flex;gap:8px;padding:12px 24px;border-bottom:1px solid var(--hairline)}.crm-lead-nav button{min-height:44px;padding:8px 12px;border:1px solid var(--hairline);border-radius:8px;background:var(--card);color:var(--ink);font:inherit;cursor:pointer}.crm-saved{padding:12px 0;border-top:1px solid var(--hairline)}.crm-saved h3{margin:0 0 4px}.crm-saved p{margin:4px 0;overflow-wrap:anywhere}
