/* Visual polish of the new screens (review 22 Nov 2026, D1, D2, D5, D7 and the KPI strip). Scoped to the Design B class (flag
   JZ_DESIGN_B) AND to the new screens' roots, so old screens and flags-off are untouched. CSS only, no motion added.
   One type scale on the new screens: 12 / 14 / 16 / 20 / 32 / 48 (Gemini review proposal, 20 Nov). */
.jz-design-b :is(.phub,.ov2,.w3,.w4,.w5,.jzs,.w1h){
  --fs-xs:12px; --fs-sm:14px; --fs-md:16px; --fs-lg:16px; --fs-xl:20px; --fs-2xl:32px; --fs-3xl:32px; --fs-4xl:48px;
}
/* labels, chips, badges and segments never under 12 px; body text 14 px */
.jz-design-b :is(.phub,.ov2,.w3,.w4,.w5,.jzs,.w1h) :is(.jz-badge,.jzp-chip,.jz-pcard__k){font-size:12px}
.jz-design-b :is(.phub,.ov2,.w3,.w4,.w5,.jzs,.w1h) :is(.jz-seg__i,.jz-chip,.jz-muted,.jz-row__s,.jz-kpi__k,.jz-pcard__n,.ov2-k,.x1__sub,.x1__meta,.jz-btn--sm){font-size:14px}
/* KPI strip: never one column on a phone; the value shrinks before it wraps */
.jz-design-b :is(.phub,.w4,.w5) .jz-kpis{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}
.jz-design-b :is(.phub,.w4,.w5) .jz-kpi__v{font-size:clamp(20px,6vw,32px);overflow-wrap:anywhere}
/* container: 880 px on tablets (760 cut the new screens between 700 and 1023 px) */
@media (min-width:700px) and (max-width:1023px){
  .jz-design-b .jz-main:has(.tabpanel.show :is(.phub,.ov2,.w3,.w4,.w5)){max-width:880px}
}
/* notification and case titles wrap instead of being cut with an ellipsis */
.jz-design-b :is(.ov2,.w4,.w5) .x1__t{white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere}
/* offer result: with the «what you pay» list on, the card above keeps only the unit and the grade (no number twice) */
.jz-design-b .ov2-result:has(.jzs-sell) .ov2-hero > :not(.ov2-hero__top):not(.ov2-note){display:none}
/* the old home card is 100% wide AND has side margins: on phones it overflowed by twice the gutter */
.jz-design-b .jzh .jh-case-btn.jh-h-case{inline-size:calc(100% - 2 * var(--gutter))}
/* the reference field placeholder is long: let the field take the full row on phones */
@media (max-width:420px){ .jz-design-b .jz-dialog .jz-input::placeholder{font-size:13px} }
/* minimum legible size under Design B, on every screen (R1 sweep at 320 px: 11 / 11.5 px badges, KPI sub-lines, project
   card keys, inventory legend). Size only; colours and layout unchanged. */
.jz-design-b .jz-main :is(.jz-badge,.jz-kpi__s,.jz-pcard__k,.jz-pcard__k .jz-num,.jz-ob__btn,.jz-legend,.jz-cell__s,.jz-pill,.jz-steplbl,.jz-hubrow .jz-badge){font-size:12px}
.jz-design-b .jz-main .jz-invent span,.jz-design-b .jz-main .jz-legend span{font-size:12px}
/* old screens set tiny sizes inline (10 / 11 px): lift them to the 12 px floor (Design B only) */
.jz-design-b .jz-main :is([style*="font-size:10px"],[style*="font-size:10.5px"],[style*="font-size:11px"],[style*="font-size:11.5px"],[style*="font-size: 11px"],[style*="font-size: 10px"]){font-size:12px!important}
.jz-design-b .jz-main .jz-inventory-chart span,.jz-design-b .jz-main .jz-invsummary span{font-size:12px}
/* R1 at 768 / 1440: the time label on the rep's day ruler and «small» text of the offers dashboard stayed under 12 px */
.jz-design-b .jz-main :is(.jh-now b,small){font-size:max(12px,0.85em)}
/* GM home decision card (22 Nov, Ahmad: «squeezed»): the row stacked only by SCREEN width (< 720 px), but beside the side menu and the side
   column the card is ~450 px wide on a 1024 px screen, so the client-name column fell to 0 px. Stack by the CARD's own width instead. */
.jz-design-b .jzh .jh-g-main{container-type:inline-size}
@container (max-width:640px){
  .jz-design-b .jzh .jh-g-q .jh-qr,.jz-design-b .jzh .jh-g-q.jh-acc .jh-qr{grid-template-columns:auto minmax(0,1fr);gap:var(--sp-3);min-height:0;align-items:start}
  .jz-design-b .jzh .jh-g-q .jh-no{display:none}
  .jz-design-b .jzh .jh-g-q .jh-ac{grid-column:1/-1;flex-wrap:wrap}
  .jz-design-b .jzh .jh-g-q .jh-ac .jh-btn{flex:1 1 30%;padding:0 var(--sp-3)}
}
/* Stage 2 surgical UX fixes (27 Nov 2026):
   B-1: User guide steps wrap cleanly on phones instead of truncating with ellipsis.
   C-1: Offer bar unit code stays legible alongside the open-cases pill; mobile #liveBar sits flush above bottom nav with scroll clearance.
   C-2: CRM bottom-nav badge aligns on the icon corner identically to the Cases badge.
   D-1: Hide duplicate "official note" inside #ov2Setup panel (kept once above CTA in foot). */
.jz-design-b #tabGuide .jz-row{align-items:flex-start}
.jz-design-b #tabGuide .jz-row__t{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.55;font-weight:700}
.jz-design-b #jzOfferBar .jz-ob__tab{max-width:none}
.jz-design-b #jzOfferBar .jz-ob__lbl{max-width:none;overflow:visible;text-overflow:clip;flex:0 0 auto}
.jz-design-b .ov2-panel > .ov2-note{display:none}
.jz-design-b .jz-bottom__i .wb-door{position:absolute;top:2px;inset-inline-end:calc(50% - 22px);min-width:18px;height:18px;padding:0 4px;border-radius:9px;font-size:12px;line-height:18px;text-align:center;margin:0;border:0}
@media (max-width:1023px){
  .jz-design-b body.jz-shell #liveBar{bottom:calc(var(--nav-h) + var(--safe-b));left:0;right:0;border-radius:var(--r-lg) var(--r-lg) 0 0}
  .jz-design-b body.jz-shell.on-data .jz-main{padding-bottom:calc(var(--nav-h) + var(--safe-b) + 120px)}
}
