/* VERIDIUM Freight · module xd: VERIDIUM Driver (shift, checks, documents, expenses, incidents) + carrier "Driver ops" */

/* ---------- driver phone: tab bar and overlay pages ---------- */
.xd-tb { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px 6px 10px; border-top: 1px solid var(--vd-border-subtle); background: var(--vd-surface); position: relative; z-index: 7; }
.xd-tb__b { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--vd-text-2); font: 700 10.5px/12px var(--font-sans); cursor: pointer; }
.xd-tb__b i { font-size: 21px; }
.xd-tb__b[aria-current="page"] { color: var(--mk-ink); background: var(--vd-surface-soft); }
.xd-tb__n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); font: 800 10px/16px var(--font-sans); text-align: center; box-sizing: border-box; }
.xd-off { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border: 0; background: var(--vd-attention-tint); color: var(--vd-attention-text); font: 500 12px/16px var(--font-sans); text-align: left; cursor: pointer; position: relative; z-index: 7; }
.xd-off.is-on { background: var(--vd-positive-tint); color: var(--vd-positive-text); cursor: default; }
.xd-off i { font-size: 16px; flex: none; }
.ap:has(> .xd-pg) > :not(.xd-pg):not(.xd-tb):not(.xd-off):not(.ap-veil):not(.ap-docs):not(.xm-push):not(.xd-lb) { display: none !important; }
.xd-pg { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--vd-canvas); }
.xd-pg__h { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 10px; }
.xd-pg__h > span { display: flex; flex-direction: column; min-width: 0; }
.xd-pg__h b { font: 800 22px/28px var(--font-sans); letter-spacing: -.01em; }
.xd-pg__h span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-pg__b { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.xd-pg__b > * { flex-shrink: 0; }

/* ---------- cards, rows, small controls ---------- */
.xd-card { gap: 8px; }
.xd-card.is-neg { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xd-card.xd-need { box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); }
.xd-card.xd-ok { box-shadow: inset 0 0 0 1px var(--vd-positive-solid); }
.xd-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; border-top: 1px solid var(--vd-border-subtle); background: none; text-align: left; color: var(--vd-text-1); font: inherit; }
.xd-card > .xd-row:first-child, .xd-card > .ap-row + .xd-row, .xd-sh__b > .xd-row:first-child { border-top: 0; }
button.xd-row { cursor: pointer; }
button.xd-row:hover { background: var(--vd-hover-soft); }
.xd-row__i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--vd-surface-2); font-size: 17px; }
.xd-row__t { display: flex; flex-direction: column; min-width: 0; }
.xd-row__t b { font: 700 13px/17px var(--font-sans); overflow-wrap: anywhere; }
.xd-row__t > span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-row .vd-badge { justify-self: end; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.xd-row__c { color: var(--vd-text-3); }
.xd-ai { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--vd-attention-text); font-weight: 600; }
.xd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xd-two > * { min-width: 0; }
.xd-chips { gap: 6px; }
.xd-chips .vd-chip { min-height: 36px; }
.xd-fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xd-fld__l { font: 700 11px/14px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--vd-text-2); }
.xd-fld .vd-input, .xd-sh .vd-input { min-height: 44px; }
.xd-ro { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--vd-surface-2); font: 600 12.5px/16px var(--font-sans); }
.xd-why { display: block; font: 600 12px/16px var(--font-sans); color: var(--vd-attention-text); text-align: center; }
.xd-why.is-neg { color: var(--vd-negative-text); }
.xd-fine { margin: 2px 4px; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-link { padding: 0; border: 0; background: none; color: var(--vd-processing-text); font: 700 11.5px/16px var(--font-sans); text-decoration: underline; cursor: pointer; }
.xd-al { margin: 0; }
.xd-mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1.5px dashed var(--vd-border-strong); border-radius: 12px; background: var(--vd-surface); color: var(--vd-text-1); font: 700 12.5px/16px var(--font-sans); cursor: pointer; }
.xd-mini.is-ok { border-style: solid; border-color: var(--vd-positive-solid); color: var(--vd-positive-text); background: var(--vd-positive-tint); }
.xd-photo { position: relative; }
.xd-photo > span:nth-of-type(1) { flex: 1 1 auto; text-align: left; }
.xd-thumbs { display: inline-flex; gap: 3px; flex: none; }
.xd-thumbs--l .xd-th { width: 46px; height: 34px; }
.xd-th { display: inline-block; width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, var(--vd-grey-400), var(--vd-grey-600)); box-shadow: inset 0 -8px 0 color-mix(in srgb, var(--vd-grey-950) 18%, transparent); }
.xd-th--1 { background: linear-gradient(135deg, var(--vd-red-300), var(--vd-amber-900)); }
.xd-th--2 { background: linear-gradient(135deg, var(--vd-green-200), var(--vd-green-900)); }
.xd-th--3 { background: linear-gradient(135deg, var(--vd-grey-400), var(--vd-blue-900)); }
.xd-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 14px; border-radius: 16px; background: var(--vd-surface-2); text-align: center; }
.xd-hero > i { font-size: 30px; color: var(--vd-positive-solid); }
.xd-hero b { font: 800 16px/21px var(--font-sans); }
.xd-hero > span { font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-supporting); }
.xd-big { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--mk-ink); color: var(--vd-text-on-inverse); text-align: left; cursor: pointer; }
.xd-big > i { font-size: 28px; flex: none; }
.xd-big > span { display: flex; flex-direction: column; min-width: 0; }
.xd-big b { font: 800 15px/20px var(--font-sans); }
.xd-big span span { font: 500 12px/16px var(--font-sans); color: var(--vd-grey-300); }
.xd-big--neg { background: var(--vd-negative-solid); }
.xd-big--neg span span { color: var(--vd-red-100); }
.xd-ban { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 8px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--vd-processing-tint); color: var(--vd-processing-text); text-align: left; cursor: pointer; }
.xd-ban > i:first-child { font-size: 20px; }
.xd-ban > span { display: flex; flex-direction: column; min-width: 0; }
.xd-ban b { font: 800 12.5px/16px var(--font-sans); }
.xd-ban span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-top { order: -1; display: flex; flex-direction: column; gap: 10px; }
.xd-kvrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font: 600 13px/17px var(--font-sans); }

/* ---------- shift ---------- */
.xd-shift__a { display: flex; flex-direction: column; min-width: 0; }
.xd-shift__a b { font: 800 18px/23px var(--font-sans); }
.xd-shift__a span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-bb { border: 0; cursor: pointer; }
.xd-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.xd-act { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; border: 1.5px solid var(--vd-border-subtle); border-radius: 12px; background: var(--vd-surface); color: var(--vd-text-2); font: 700 10.5px/13px var(--font-sans); text-align: center; cursor: pointer; }
.xd-act i { font-size: 19px; }
.xd-act:disabled { opacity: .5; cursor: default; }
.xd-act[aria-checked="true"] { border-color: var(--mk-ink); background: var(--mk-ink); color: var(--vd-text-on-inverse); opacity: 1; }
.xd-act--brk[aria-checked="true"] { background: var(--vd-positive-solid); border-color: var(--vd-positive-solid); }
.xd-act--work[aria-checked="true"] { background: var(--vd-attention-solid); border-color: var(--vd-attention-solid); }
.xd-tl { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--vd-surface-2); }
.xd-tl__s { height: 100%; }
.xd-tl__s--drive { background: var(--mk-ink); }
.xd-tl__s--work { background: var(--vd-attention-solid); }
.xd-tl__s--avail { background: var(--vd-grey-350); }
.xd-tl__s--brk { background: var(--vd-positive-solid); }
.xd-tl__ax { display: flex; justify-content: space-between; font: 500 10.5px/14px var(--font-mono); color: var(--vd-text-2); }
.xd-tots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.xd-tot { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 10px; background: var(--vd-surface-2); border-left: 3px solid var(--vd-grey-350); }
.xd-tot b { font: 800 12.5px/16px var(--font-sans); }
.xd-tot span { font: 600 10px/13px var(--font-sans); color: var(--vd-text-2); }
.xd-tot--drive { border-color: var(--mk-ink); }
.xd-tot--work { border-color: var(--vd-attention-solid); }
.xd-tot--brk { border-color: var(--vd-positive-solid); }
.xd-wk { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; height: 120px; margin: 18px 0 6px; padding-bottom: 30px; }
.xd-wk__c { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.xd-wk__b { width: 70%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--vd-grey-350); }
.xd-wk__b.is-cur { background: var(--mk-ink); }
.xd-wk__b.is-att { background: var(--vd-attention-solid); }
.xd-wk__b.is-neg { background: var(--vd-negative-solid); }
.xd-wk__l { position: absolute; bottom: -28px; font: 600 10px/12px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; }
.xd-wk__v { position: absolute; bottom: -15px; font: 700 10.5px/12px var(--font-sans); white-space: nowrap; }
.xd-wk__60, .xd-wk__48 { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--vd-negative-solid); font: 700 9.5px/12px var(--font-sans); color: var(--vd-negative-text); text-align: right; pointer-events: none; }
.xd-wk__60 { top: 0; }
.xd-wk__48 { top: 18px; border-color: var(--vd-attention-solid); color: var(--vd-attention-text); }
.xd-wk__60::before, .xd-wk__48::before { content: none; }
.xd-def { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; padding: 10px; border-radius: 12px; background: var(--vd-attention-tint); }
.xd-def.is-dnd { background: var(--vd-negative-tint); }
.xd-def__t { display: flex; flex-direction: column; min-width: 0; }
.xd-def__t b { font: 700 13px/17px var(--font-sans); }
.xd-def__t span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-def .xd-re { grid-column: 1 / -1; }
.xd-sum { background: var(--vd-surface); }

/* ---------- sheets ---------- */
.ap-docs.xd-sh { max-height: 88%; padding: 14px 0 0; gap: 0; display: flex; flex-direction: column; box-shadow: 0 -10px 30px color-mix(in srgb, var(--vd-grey-950) 18%, transparent); }
.ap-docs.xd-sh--tall { height: 90%; }
.xd-sh__h { padding: 0 12px 10px 16px; gap: 10px; }
.xd-sh__t { display: flex; flex-direction: column; min-width: 0; }
.xd-sh__t b { font: 800 16px/20px var(--font-sans); }
.xd-sh__t span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-sh__b { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.xd-sh__b > * { flex-shrink: 0; }
.xd-sh__f { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 18px; border-top: 1px solid var(--vd-border-subtle); }
.xd-wiz { display: flex; gap: 4px; margin: 0 0 4px; padding: 0; list-style: none; }
.xd-wiz li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; font: 700 9.5px/12px var(--font-sans); color: var(--vd-text-3); text-align: center; }
.xd-wiz li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--vd-surface-2); font-size: 11px; }
.xd-wiz li.is-cur { color: var(--vd-text-1); }
.xd-wiz li.is-cur span { background: var(--mk-ink); color: var(--vd-text-on-inverse); }
.xd-wiz li.is-done span { background: var(--vd-positive-solid); color: var(--vd-text-on-inverse); }
.xd-qr { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 14px; border: 1.5px dashed var(--vd-border-strong); border-radius: 16px; background: var(--vd-surface); text-align: left; cursor: pointer; }
.xd-qr > i { font-size: 34px; }
.xd-qr > span { display: flex; flex-direction: column; }
.xd-qr b { font: 800 14px/18px var(--font-sans); }
.xd-qr span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-qr.is-ok { border-style: solid; border-color: var(--vd-positive-solid); background: var(--vd-positive-tint); }
.xd-qr.is-ok > i { color: var(--vd-positive-solid); }
.xd-pick { display: grid; grid-template-columns: 52px minmax(0, 1fr) 22px; gap: 10px; align-items: center; width: 100%; min-height: 52px; padding: 8px 10px; border: 1.5px solid var(--vd-border-subtle); border-radius: 14px; background: var(--vd-surface); text-align: left; color: var(--vd-text-1); cursor: pointer; }
.xd-pick:disabled { opacity: .55; cursor: default; }
.xd-pick.is-on { border-color: var(--mk-ink); }
.xd-pick > i:last-child { font-size: 20px; color: var(--vd-positive-solid); }
.xd-pick__a .mk-va { width: 52px; height: 30px; }
.xd-pick__i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--vd-surface-2); font-size: 20px; }
.xd-pick__i b { font: 800 12px/1 var(--font-mono); }
.xd-pick__t { display: flex; flex-direction: column; min-width: 0; }
.xd-pick__t b { font: 700 13.5px/18px var(--font-sans); }
.xd-pick__t span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-odo { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); cursor: pointer; }
.xd-odo__d { font: 600 28px/32px var(--font-mono); letter-spacing: .14em; color: var(--vd-amber-400); }
.xd-odo > span:last-child { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/16px var(--font-sans); color: var(--vd-grey-300); }
.xd-odo.is-ok > span:last-child i { color: var(--vd-green-400); }
/* departure check */
.xd-ck__g { display: flex; flex-direction: column; gap: 6px; }
.xd-ck__all { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xd-ck { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-ck.is-fail { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); background: var(--vd-negative-tint); }
.xd-ck__l { font: 600 12.5px/16px var(--font-sans); }
.xd-pf { display: inline-flex; gap: 4px; }
.xd-pf__b { display: grid; place-items: center; width: 40px; height: 36px; border: 1.5px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface); color: var(--vd-text-3); cursor: pointer; font-size: 15px; }
.xd-pf__b--pass[aria-checked="true"] { background: var(--vd-positive-solid); border-color: var(--vd-positive-solid); color: var(--vd-text-on-inverse); }
.xd-pf__b--fail[aria-checked="true"] { background: var(--vd-negative-solid); border-color: var(--vd-negative-solid); color: var(--vd-text-on-inverse); }
.xd-pf__b--na[aria-checked="true"] { background: var(--vd-text-2); border-color: var(--vd-text-2); color: var(--vd-text-on-inverse); }
.xd-ckd { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.xd-walk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.xd-walk__b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 6px 2px; border: 1.5px dashed var(--vd-border-strong); border-radius: 12px; background: var(--vd-surface); font: 700 11px/13px var(--font-sans); color: var(--vd-text-1); cursor: pointer; }
.xd-walk__b > i { font-size: 20px; }
.xd-walk__b.is-ok { border-style: solid; border-color: var(--vd-positive-solid); }
.xd-walk__b .xd-th { width: 40px; height: 28px; }
.xd-walk__s { font: 500 9px/11px var(--font-mono); color: var(--vd-text-2); }
/* steps from the step builder */
.xd-step { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-step.is-ok { box-shadow: inset 0 0 0 1px var(--vd-positive-solid); }
.xd-step__l { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; }
.xd-step__l > i { font-size: 18px; margin-top: 1px; }
.xd-step__l > span { display: flex; flex-direction: column; }
.xd-step__l b { font: 700 13px/17px var(--font-sans); }
.xd-step__l span span { font: 500 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xd-req { font-style: normal; color: var(--vd-negative-text); }
.xd-step .xd-mini { align-self: flex-start; }
.xd-exch { display: grid; grid-template-columns: auto auto; gap: 6px 10px; align-items: center; justify-content: start; font: 600 12.5px/16px var(--font-sans); }
.xd-sl { margin: 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 4px; font: 500 12px/16px var(--font-sans); }
.xd-sl li { display: flex; gap: 6px; align-items: center; }
/* scanning */
.xd-cam { position: relative; height: 230px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--vd-grey-700), var(--vd-surface-inverse)); overflow: hidden; }
.xd-cam.is-flash::after { content: ''; position: absolute; inset: 0; background: var(--vd-surface); animation: xd-flash .26s ease-out forwards; }
@keyframes xd-flash { from { opacity: .9; } to { opacity: 0; } }
.xd-cam__doc { position: absolute; left: 22%; top: 12%; width: 56%; height: 76%; padding: 16px 12px; box-sizing: border-box; border-radius: 4px; background: var(--vd-negative-wash); transform: rotate(-3deg); display: flex; flex-direction: column; gap: 9px; box-shadow: 0 8px 20px color-mix(in srgb, var(--vd-grey-950) 40%, transparent); }
.xd-cam__doc i { display: block; height: 6px; border-radius: 3px; background: var(--vd-grey-350); }
.xd-cam__doc i:nth-child(2) { width: 70%; } .xd-cam__doc i:nth-child(4) { width: 55%; } .xd-cam__doc i:nth-child(5) { margin-top: auto; width: 40%; height: 14px; background: var(--vd-grey-400); }
.xd-cam__c { position: absolute; width: 22px; height: 22px; border: 3px solid var(--vd-green-400); animation: xd-pulse 1.4s ease-in-out infinite; }
.xd-cam__c--tl { left: calc(22% - 6px); top: calc(12% - 6px); border-right: 0; border-bottom: 0; }
.xd-cam__c--tr { right: calc(22% - 6px); top: calc(12% - 6px); border-left: 0; border-bottom: 0; }
.xd-cam__c--bl { left: calc(22% - 6px); bottom: calc(12% - 6px); border-right: 0; border-top: 0; }
.xd-cam__c--br { right: calc(22% - 6px); bottom: calc(12% - 6px); border-left: 0; border-top: 0; }
@keyframes xd-pulse { 50% { opacity: .55; } }
.xd-cam__tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--vd-grey-950) 55%, transparent); color: var(--vd-text-on-inverse); font: 700 11px/1 var(--font-sans); }
.xd-cam__n { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: var(--vd-green-400); color: var(--vd-green-900); font: 800 11px/1 var(--font-sans); }
.xd-shutter { display: grid; place-items: center; justify-self: center; width: 56px; height: 56px; padding: 0; border: 4px solid var(--mk-ink); border-radius: 50%; background: var(--vd-surface); cursor: pointer; }
.xd-shutter span { width: 38px; height: 38px; border-radius: 50%; background: var(--mk-ink); }
.xd-shutter:disabled { opacity: .4; cursor: default; }
.xd-pages { display: flex; gap: 6px; }
.xd-pages .xd-th { width: 52px; height: 68px; border-radius: 4px; background: var(--vd-surface-soft); box-shadow: inset 0 0 0 1px var(--vd-amber-100); }
.xd-docimg { display: flex; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--vd-surface-inverse-hover); }
.xd-docimg__p { position: relative; display: flex; flex-direction: column; gap: 7px; width: 150px; min-height: 170px; padding: 12px; box-sizing: border-box; border-radius: 3px; background: var(--vd-negative-wash); color: var(--vd-text-1); font: 700 11px/14px var(--font-sans); }
.xd-docimg__p i { display: block; height: 5px; border-radius: 3px; background: var(--vd-grey-350); }
.xd-docimg__p i:nth-child(3) { width: 60%; }
.xd-docimg__p em { margin-top: auto; font: 800 15px/18px var(--font-mono); font-style: normal; text-align: right; }
.xd-docimg__p--2 { opacity: .7; transform: scale(.92); }
.xd-docimg__st { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--vd-blue-700); border-radius: 50%; color: var(--vd-processing-text); font-size: 22px; transform: rotate(-12deg); opacity: .8; }
.xd-docimg__miss { position: absolute; right: 8px; bottom: 10px; padding: 4px 6px; border: 2px dashed var(--vd-negative-solid); border-radius: 8px; color: var(--vd-negative-text); font: 800 10px/1 var(--font-sans); }
.xd-docimg--r .xd-docimg__p { width: 120px; }
.xd-aibox { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--vd-processing-tint); color: var(--vd-processing-text); font: 600 12px/16px var(--font-sans); }
.xd-aibox span { display: flex; gap: 6px; align-items: flex-start; }
/* expenses */
.xd-adv { display: flex; flex-wrap: wrap; gap: 8px; }
.xd-adv > span { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xd-adv b { font: 800 17px/22px var(--font-sans); }
.xd-adv span span { font: 600 10.5px/13px var(--font-sans); color: var(--vd-text-2); }
.xd-amt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.xd-vat { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--vd-processing-tint); color: var(--vd-processing-text); font: 600 12px/16px var(--font-sans); }
/* messages */
.xd-ms { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.xd-ms__e { padding: 18px 8px; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); text-align: center; }
.xd-m { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 86%; }
.xd-m.is-me { align-self: flex-end; align-items: flex-end; }
.xd-m__w { font: 700 10.5px/13px var(--font-sans); color: var(--vd-text-2); }
.xd-m__b { display: flex; flex-direction: column; gap: 4px; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 500 13px/18px var(--font-sans); overflow-wrap: anywhere; }
.xd-m.is-me .xd-m__b { border-radius: 14px 14px 4px 14px; background: var(--mk-ink); color: var(--vd-text-on-inverse); box-shadow: none; }
.xd-m__tr { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--vd-processing-text); font: 600 10.5px/14px var(--font-sans); cursor: pointer; text-align: left; }
.xd-m__t { display: inline-flex; align-items: center; gap: 3px; font: 500 10px/12px var(--font-sans); color: var(--vd-text-3); }
.xd-m__t .is-read { color: var(--vd-processing-solid); }
.xd-voice { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--font-mono); }
.xd-voice__w { width: 90px; height: 16px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); opacity: .5; -webkit-mask: linear-gradient(0deg, var(--vd-grey-950) 30%, transparent 30%, transparent 70%, var(--vd-grey-950) 70%); }
.xd-qr2 { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.xd-qr2::-webkit-scrollbar { display: none; }
.xd-qc { flex: none; min-height: 34px; cursor: pointer; }
.xd-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.xd-rec { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--vd-surface-2); color: var(--vd-text-1); font-size: 20px; cursor: pointer; }
.xd-rec.is-on { width: auto; padding: 0 12px; border-radius: 22px; grid-auto-flow: column; gap: 6px; background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); font: 700 12px/1 var(--font-sans); }
.xd-sh--chat .xd-sh__b { background: var(--vd-canvas); }
/* route */
.xd-tp { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--vd-surface-2); }
.xd-tp > i { font-size: 22px; }
.xd-tp > span { display: flex; flex-direction: column; }
.xd-tp b { font: 700 12.5px/16px var(--font-sans); }
.xd-tp span span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-cc { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 4px 0; padding: 4px 8px; border-radius: 8px; background: var(--vd-surface-2); font: 600 11.5px/14px var(--font-mono); }
.xd-cc b { font-family: var(--font-sans); }
.xd-park { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--vd-border-subtle); }
.xd-park__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xd-park__t b { font: 700 13px/17px var(--font-sans); }
.xd-park__t > span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-park__s { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.xd-nav3 { display: flex; flex-wrap: wrap; gap: 6px; }
.xd-banr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--vd-border-subtle); }
.xd-banr > b { display: grid; place-items: center; height: 26px; border-radius: 6px; background: var(--vd-surface-2); font: 800 11px/1 var(--font-mono); }
.xd-banr > span { display: flex; flex-direction: column; min-width: 0; }
.xd-banr span b { font: 700 12.5px/16px var(--font-sans); }
.xd-banr span span { font: 500 11px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-banr.is-now > b { background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); }
/* incidents */
.xd-incg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xd-inct { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 100px; padding: 12px; border: 0; border-radius: 14px; background: var(--vd-surface-2); text-align: left; color: var(--vd-text-1); cursor: pointer; }
.xd-inct > i { font-size: 22px; }
.xd-inct b { font: 800 13px/17px var(--font-sans); }
.xd-inct span { font: 500 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xd-inct--negative > i { color: var(--vd-negative-solid); }
.xd-inct--attention > i { color: var(--vd-attention-solid); }
.xd-inct--processing > i { color: var(--vd-processing-solid); }
.xd-safe { padding: 12px 14px; border-radius: 14px; background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xd-safe b { display: flex; align-items: center; gap: 6px; font: 800 15px/20px var(--font-sans); }
.xd-safe ul { margin: 8px 0 0; padding-left: 18px; font: 600 12.5px/19px var(--font-sans); color: var(--vd-text-1); }
.xd-loc { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xd-loc > i { font-size: 20px; color: var(--vd-negative-solid); }
.xd-loc > span { display: flex; flex-direction: column; }
.xd-loc b { font: 700 13px/17px var(--font-sans); }
.xd-loc span span { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }
.xd-easc { display: flex; flex-direction: column; gap: 4px; }
.xd-easc__r { display: grid; grid-template-columns: minmax(0, 1fr) 40px 40px; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--vd-border-subtle); font: 500 12px/16px var(--font-sans); }
.xd-ab { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; border: 1.5px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface); font: 800 12px/1 var(--font-sans); cursor: pointer; }
.xd-ab.is-on { background: var(--mk-ink); border-color: var(--mk-ink); color: var(--vd-text-on-inverse); }
.xd-ab--w { font-family: var(--font-mono); font-size: 11px; }
.xd-refp { display: flex; flex-wrap: wrap; gap: 6px; }
.xd-sk { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: none; cursor: crosshair; }
.xd-sk svg { display: block; width: 100%; height: auto; }
.xd-sk__g { fill: var(--vd-green-100); } .xd-sk__r { fill: var(--vd-grey-300); } .xd-sk__l { stroke: var(--vd-grey-0); stroke-width: 2; stroke-dasharray: 8 7; }
.xd-sk__a { fill: var(--vd-grey-800); } .xd-sk__b { fill: var(--vd-negative-text); } .xd-sk__ar { stroke: var(--vd-grey-800); stroke-width: 2.5; fill: none; marker-end: none; }
.xd-sk text { fill: var(--vd-text-on-inverse); font: 800 11px/1 var(--font-sans); }
.xd-sk .xd-sk__h { fill: var(--vd-text-2-strong); font: 600 12px/1 var(--font-sans); }
.xd-sk__x { fill: color-mix(in srgb, var(--vd-red-700) 25%, transparent); stroke: var(--vd-red-700); stroke-width: 2; }
.xd-sk__xx { stroke: var(--vd-red-700); stroke-width: 2.5; }
/* load securing, condition, outcome */
.xd-sender { padding: 8px 10px; border-radius: 12px; background: var(--vd-surface-2); }
.xd-pc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--vd-border-subtle); }
.xd-pc .mono { font-size: 12px; }
.xd-pc__s .xd-chips { flex-wrap: nowrap; }
.xd-pc.is-dmg { background: var(--vd-negative-tint); margin: 0 -8px; padding: 6px 8px; border-radius: 10px; }
.xd-pc__d { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
.xd-outs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xd-out { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--vd-border-subtle); border-radius: 12px; background: var(--vd-surface); color: var(--vd-text-1); font: 700 12.5px/15px var(--font-sans); text-align: left; cursor: pointer; }
.xd-out i { font-size: 18px; flex: none; }
.xd-out[aria-pressed="true"] { border-color: var(--mk-ink); background: var(--mk-ink); color: var(--vd-text-on-inverse); }
.xd-out--negative[aria-pressed="true"] { background: var(--vd-negative-solid); border-color: var(--vd-negative-solid); }
.xd-out--attention[aria-pressed="true"] { background: var(--vd-attention-solid); border-color: var(--vd-attention-solid); }
.xd-out--positive[aria-pressed="true"] { background: var(--vd-positive-solid); border-color: var(--vd-positive-solid); }
/* RE-FL-02 · outcomes the receipt rules out stay visible but greyed; a tap explains why */
.xd-out.is-off { opacity: .45; border-style: dashed; cursor: not-allowed; }
.xd-rcpt { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--vd-attention-tint); color: var(--vd-text-1); font: 500 12px/16px var(--font-sans); }
.xd-rcpt > i { flex: none; font-size: 18px; color: var(--vd-attention-text); }
.xd-rcpt > span { display: flex; flex-direction: column; min-width: 0; }
.xd-rcpt b { font-weight: 700; }
.xd-wait { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12px/16px var(--font-sans); }
.xd-wait__t { flex: none; min-width: 70px; font: 800 18px/22px var(--font-mono); }
.xd-stamp { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--vd-positive-tint); color: var(--vd-positive-text); font: 600 11.5px/15px var(--font-mono); }
.xd-stopc { position: absolute; left: 10px; right: 10px; top: 132px; z-index: 4; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--vd-attention-solid); color: var(--vd-text-on-inverse); box-shadow: 0 6px 18px color-mix(in srgb, var(--vd-grey-950) 25%, transparent); }
.xd-stopc > i { font-size: 22px; }
.xd-stopc > span { display: flex; flex-direction: column; min-width: 0; }
.xd-stopc b { font: 800 13px/17px var(--font-sans); }
.xd-stopc span span { font: 600 11.5px/15px var(--font-sans); opacity: .92; }
/* navigation sheet: every module's action is an icon + label tile, 5 per row (Documents, Dispatcher, Chat, Inspection, Route, Problem, Hours, Pass …) */
.ap-sheet__b:has(.xd-nb) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ap-sheet__b:has(.xd-nb) > .vd-btn, .ap-sheet__b:has(.xd-nb) > .vd-has-tooltip > .vd-icon-btn { position: relative; width: 100%; min-width: 0; height: 54px; padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; font: 600 10.5px/12px var(--font-sans); }
.ap-sheet__b:has(.xd-nb) > .vd-has-tooltip { display: block; min-width: 0; }
.ap-sheet__b:has(.xd-nb) > .vd-has-tooltip > .vd-icon-btn { box-shadow: inset 0 0 0 1px var(--vd-border); background: var(--vd-surface); color: var(--vd-text-1); }
.ap-sheet__b:has(.xd-nb) > .vd-has-tooltip > .vd-tooltip { display: none; }
.ap-sheet__b:has(.xd-nb) > .vd-has-tooltip > .vd-icon-btn { flex-direction: column-reverse; }
.ap-sheet__b:has(.xd-nb) > .vd-has-tooltip > .vd-icon-btn::before { content: attr(aria-label); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-sheet__b:has(.xd-nb) > .vd-btn > i, .ap-sheet__b:has(.xd-nb) > .vd-has-tooltip > .vd-icon-btn > i { font-size: 19px; }
.ap-sheet__b:has(.xd-nb) > .vd-btn > span:not(.vd-count) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-sheet__b:has(.xd-nb) > .xm-cb { padding: 6px 2px 5px; }
.ap-sheet__b:has(.xd-nb) > .xm-cb > span:not(.vd-count) { position: static; width: auto; height: auto; clip: auto; overflow: hidden; }
.ap-sheet__b:has(.xd-nb) > .vd-btn > .vd-count { position: absolute; top: 3px; right: 5px; margin: 0; }
.ap-sheet__b:has(.xd-nb) > .vd-btn.vd-btn--primary:not(.xd-nb) { grid-column: 1 / -1; height: 44px; flex-direction: row; gap: 6px; font-size: 13px; }
.xd-nb.is-warn { color: var(--vd-negative-text); box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xd-nb--neg { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
/* score */
.xd-score { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.xd-score > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.xd-score b { font: 800 15px/20px var(--font-sans); }
.xd-score span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-ring { --p: 80; position: relative; display: grid; place-items: center; align-content: center; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--vd-positive-solid) calc(var(--p) * 1%), var(--vd-surface-2) 0); }
.xd-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--vd-surface); }
.xd-ring b, .xd-ring span { position: relative; }
.xd-ring b { font: 800 28px/30px var(--font-sans); }
.xd-ring span { font: 600 10px/12px var(--font-sans); color: var(--vd-text-2); }
.xd-spark { width: 120px; height: 32px; vertical-align: middle; }
.xd-spark polyline { fill: none; stroke: var(--vd-processing-solid); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.xd-bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 28px; gap: 8px; align-items: center; font: 600 12px/16px var(--font-sans); }
.xd-bar b { text-align: right; }
.xd-bar__t { height: 8px; border-radius: 4px; background: var(--vd-surface-2); overflow: hidden; }
.xd-bar__f { display: block; height: 100%; border-radius: 4px; background: var(--vd-positive-solid); }
.xd-bar__f.is-att { background: var(--vd-attention-solid); }
.xd-bar__f.is-neg { background: var(--vd-negative-solid); }
.xd-langs { display: flex; flex-direction: column; gap: 6px; }
.xd-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font: 500 12.5px/18px var(--font-sans); }
/* job link (web, no install) */
.xd-web { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 12px; padding: 10px 18px 20px; overflow: auto; background: var(--vd-canvas); }
.xd-web__url { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 600 12px/1 var(--font-mono); color: var(--vd-text-2); }
.xd-web__h { display: flex; align-items: center; gap: 10px; font: 800 17px/22px var(--font-sans); }
.xd-web__h > i { font-size: 26px; }
.xd-pin { display: flex; justify-content: center; gap: 10px; }
.xd-pin span { display: grid; place-items: center; width: 48px; height: 56px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-border); font: 800 26px/1 var(--font-sans); }
.xd-pin span.is-on { box-shadow: inset 0 0 0 2px var(--mk-ink); }
.xd-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.xd-keys button { min-height: 48px; border: 0; border-radius: 14px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 700 18px/1 var(--font-sans); cursor: pointer; }
.xd-keys button:disabled { opacity: .4; }
.xd-keys button[data-v="OK"] { background: var(--mk-ink); color: var(--vd-text-on-inverse); font-size: 15px; }
.xd-lb { flex: none; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 12px 14px; border-top: 1px solid var(--vd-border-subtle); background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xd-lb > span { display: flex; flex-direction: column; min-width: 0; }
.xd-lb b { font: 800 12.5px/16px var(--font-sans); }
.xd-lb span span { font: 500 11px/14px var(--font-sans); }
.phone__scr.xd-noserv .phone__sbi i:first-child { opacity: .25; }
.phone__scr.xd-noserv .phone__sbi::before { content: 'No service'; margin-right: 4px; font: 700 11px/1 var(--font-sans); }
.dpg__tools.xd-tools { margin-top: 2px; }

/* ---------- POD document ---------- */
.xd-podd { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow: auto; padding: 12px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-podd.is-phone { max-height: none; overflow: visible; }
.xd-podd > * { flex-shrink: 0; }
.xd-podd__h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.xd-podd__h > span:nth-child(2) { display: flex; flex-direction: column; }
.xd-podd__h b { font: 800 15px/19px var(--font-sans); }
.xd-podd__h .mono { font-size: 11.5px; color: var(--vd-text-2); }
.xd-podd__t { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-podd__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 5px 8px; border-top: 1px solid var(--vd-border-subtle); font: 500 11.5px/15px var(--font-sans); }
.xd-podd__r:first-child { border-top: 0; }
.xd-podd__r .mono { font-size: 10.5px; overflow-wrap: anywhere; }
.xd-podd__r.is-dmg { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xd-podd__r.is-miss, .xd-podd__r.is-ref { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xd-podd__ph { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font: 500 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xd-podd__ph .xd-th { width: 44px; height: 34px; }
.xd-podd__sg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xd-podd__sg > span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; background: var(--vd-surface-2); font: 500 10.5px/13px var(--font-sans); color: var(--vd-text-2); }
.xd-podd__sg svg { width: 100%; height: 34px; }
.xd-podd__sg svg path { fill: none; stroke: var(--vd-blue-700); stroke-width: 2.4; stroke-linecap: round; }
.xd-podd__sg b { font: 700 11.5px/15px var(--font-sans); color: var(--vd-text-1); }
.xd-podd__f { margin: 0; font: 500 10px/14px var(--font-sans); color: var(--vd-text-3); }
.mk-cfm .vd-modal:has(.xd-podd) { max-width: 560px; }
.xd-sms { padding: 12px; border-radius: 14px; background: var(--vd-surface-2); }
.xd-sms__h { font: 700 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xd-sms p { margin: 6px 0 0; font: 500 13px/18px var(--font-sans); }

/* ---------- carrier desktop: Driver ops ---------- */
.xd-kpi--att { box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); }
.xd-kpi--neg { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xd-lang { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--vd-surface-2); font: 800 10px/1 var(--font-mono); color: var(--vd-text-2); vertical-align: middle; }
.xd-acts2 { white-space: nowrap; }
.xd-acts2 > * + * { margin-left: 4px; }
.xd-table td { vertical-align: top; }
.xd-table tr.is-sel td { background: var(--vd-surface-2); }
.xd-tc + .xd-tc, .ov-k + .xd-tc, .sec-h + .xd-tc, .vd-alert + .xd-tc { margin-top: 14px; }
.xd-incc { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.xd-incc + .xd-incc { margin-top: 10px; }
.xd-incc.is-closed { opacity: .72; }
.xd-incc__h { display: flex; gap: 12px; align-items: center; }
.xd-incc__h .grow { display: flex; flex-direction: column; min-width: 0; }
.xd-incc__h b { font: 700 14px/19px var(--font-sans); }
.xd-incc__p { margin: 0; font: 500 13px/19px var(--font-sans); }
.xd-incc .small { margin: 0; }
.xd-incc__a { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xd-msgs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.xd-mlist { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--vd-radius-16); background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-mlist > .vd-btn { margin-bottom: 6px; }
.xd-mrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.xd-mrow:hover { background: var(--vd-surface-2); }
.xd-mrow.is-on { background: var(--vd-surface-soft); }
.xd-mrow__t { display: flex; flex-direction: column; min-width: 0; }
.xd-mrow__t b { font: 700 13px/17px var(--font-sans); }
.xd-mrow__t span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xd-th2, .xd-bc { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--vd-radius-16); background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-th2__h { display: flex; flex-direction: column; }
.xd-ms--d { max-height: 420px; overflow: auto; padding: 8px; border-radius: 12px; background: var(--vd-canvas); }
.xd-bc > b { font: 800 15px/20px var(--font-sans); }
.xd-bc > .vd-btn { align-self: flex-start; }
.xd-prev { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: var(--vd-surface-2); font: 500 12.5px/18px var(--font-sans); }
.xd-prev b { display: inline-block; min-width: 28px; font-family: var(--font-mono); font-size: 11px; color: var(--vd-text-2); }
.xd-prev i { color: var(--vd-text-3); }
.xd-bcr { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); }
.xd-sb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 12px; }
.xd-stps { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; }
.xd-stp { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-stp.is-on { box-shadow: inset 0 0 0 1.5px var(--mk-ink); }
.xd-stp__h { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.xd-stp__h > i { font-size: 18px; }
.xd-stp__h > span { display: flex; flex-direction: column; min-width: 0; }
.xd-stp__h b { font: 700 13px/17px var(--font-sans); }
.xd-stp__h span span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-stp__e { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.xd-stp__a { display: flex; gap: 6px; align-items: center; }
.xd-add { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--vd-border); }
.xd-tc .xd-fine { padding: 0 16px 14px; margin: 0; }
.xd-pv { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.xd-pv__ph { width: 300px; height: 560px; padding: 10px; box-sizing: border-box; border-radius: 40px; background: var(--vd-surface-inverse-pressed); box-shadow: 0 16px 40px color-mix(in srgb, var(--vd-grey-950) 25%, transparent); }
.xd-pv__sb { height: 24px; padding: 4px 20px 0; border-radius: 30px 30px 0 0; background: var(--vd-canvas); font: 700 12px/16px var(--font-sans); }
.xd-pv__b { height: calc(100% - 24px); overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 14px; border-radius: 0 0 30px 30px; background: var(--vd-canvas); }
.xd-pv__b > * { flex-shrink: 0; }
.xd-cg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.xd-cg .xd-tc { margin: 0 !important; }
.xd-coach { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.xd-coach .vd-btn { align-self: flex-start; }
.xd-dphotos { display: flex; gap: 6px; }
.xd-dphotos .xd-th { width: 96px; height: 72px; border-radius: 10px; }
.xd-docimg--d { justify-content: flex-start; }
.xd-dr .vd-drawer__body { display: flex; flex-direction: column; gap: 12px; }
.xd-fl { margin-top: 14px; }
.xd-ev .doc { align-items: flex-start; }
.xd-trl { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); }
.xd-mm { gap: 6px; }
.xd-mm .xd-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
/* shipper tracking + consignee page */
.xd-sevs { display: flex; flex-direction: column; gap: 6px; }
.xd-sev { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xd-sev > i { font-size: 18px; }
.xd-sev > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.xd-sev b { font: 700 13px/17px var(--font-sans); }
.xd-sev span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-sev.is-negative { background: var(--vd-negative-tint); }
.xd-sev.is-attention { background: var(--vd-attention-tint); }
.xd-sev .xd-acts2 { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.xd-sev .xd-acts2 > * + * { margin-left: 0; }
.xd-trk .vd-btn { align-self: flex-start; }

@media (max-width: 1100px) {
  .xd-sb { grid-template-columns: minmax(0, 1fr); }
  .xd-pv { position: static; align-items: center; }
  .xd-cg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .xd-msgs { grid-template-columns: minmax(0, 1fr); }
  .xd-pv__ph { width: 100%; max-width: 300px; }
  .xd-sev { grid-template-columns: 22px minmax(0, 1fr); }
  .xd-sev > .vd-btn, .xd-sev .xd-acts2 { grid-column: 2; justify-self: start; justify-content: flex-start; }
  .xd-incg { grid-template-columns: 1fr 1fr; }
  .xd-trl { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .xd-bar { grid-template-columns: 96px minmax(0, 1fr) 26px; }
  .xd-outs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .xd-cam__c { animation: none; }
  .xd-cam.is-flash::after { animation: none; opacity: 0; }
}

/* x-office driver cards (hours, tachograph card, trailer, pay) inherit .ap-card's column layout — keep them as rows */
.ap .ap-card.xw-dcard { flex-direction: row; }
.xd-grp { display: flex; flex-direction: column; gap: 8px; }
.xd-grp__k { padding: 2px 2px 0; }
.xd-secl { display: flex; flex-direction: column; gap: 4px; }
.xd-hint { margin: 6px 0 12px; }
.xd-evmap { position: relative; height: 220px; margin: 0 16px 12px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }

/* ===== W1 (v0.5) ===== */
/* UX4-33 · desktop composer: the input takes the room, Send is as wide as its label, quick replies wrap */
.xd-in--d { grid-template-columns: minmax(0, 1fr) auto; }
.xd-in--d > .vd-input { min-width: 0; }
.xd-in--d > .vd-btn { width: auto; justify-self: end; white-space: nowrap; }
.xd-th2 .xd-qr2 { flex-wrap: wrap; overflow: visible; }
.xd-th2 .xd-qr2 .xd-qc { max-width: 100%; white-space: normal; text-align: left; }
/* UX4-25 · six tiles in the navigation sheet (3 × 2); Panic and contextual actions span the row */
.ap-sheet__b:has(.xd-nb) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-sheet__b:has(.xd-nb) > .vd-btn--destructive:not(.xd-nb), .ap-sheet__b:has(.xd-nb) > .xx-nb { grid-column: 1 / -1; }
.ap-sheet__b:has(.xd-nb) > .xx-nb { display: flex; gap: 6px; }
.ap-sheet__b:has(.xd-nb) > .xx-nb:empty { display: none; }
.ap-sheet__b:has(.xd-nb) > .xx-nb > .vd-btn { flex: 1 1 0; height: 44px; }
.xd-nb { position: relative; }
.xd-nb__n { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); font: 700 10px/16px var(--font-sans); text-align: center; }
.xd-nb.is-new { box-shadow: inset 0 0 0 1.5px var(--vd-processing-solid); }
/* one Messages: thread switch */
.xd-thr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.xd-thr__b { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border: 0; border-radius: 10px; background: var(--vd-surface-2); color: var(--vd-text-2); font: 600 12.5px/16px var(--font-sans); cursor: pointer; }
.xd-thr__b[aria-selected="true"] { background: var(--vd-surface); color: var(--vd-text-1); box-shadow: inset 0 0 0 1.5px var(--vd-border-strong); }
.xd-thr__b .xd-nb__n { position: static; margin-left: 4px; }
/* Docs tab: the job's documents, one My documents card, one roadside check */
.xd-k2 { display: block; margin: 8px 0 2px; }
.xd-wal .xq-dchips { margin: 6px 0 8px; }
.xd-exl { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--vd-attention-tint); color: var(--vd-attention-text); }
/* FL-24 · e-CMR box 24 follows the outcome */
.xd-b24 { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-b24 > i { flex: none; margin-top: 1px; }
/* INV-30 · unattended */
.xd-ua { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--vd-processing-tint); }
.xd-ua__code { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--vd-border); border-radius: 10px; background: var(--vd-surface); text-align: left; cursor: pointer; color: var(--vd-text-1); }
.xd-ua__code > i { font-size: 22px; }
.xd-ua__code > span { display: flex; flex-direction: column; min-width: 0; }
.xd-ua__code b { font-size: 20px; letter-spacing: .2em; }
.xd-ua__code span span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xd-ua__code.is-on { border-style: solid; border-color: var(--vd-positive-solid); }
.xd-ua .xd-two > * { min-width: 0; }
/* INV-19 · loading order, unload positions, wrong-stop block */
.xd-ldr { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; margin-top: 6px; border-radius: 10px; border-left: 4px solid var(--xd-sc, var(--vd-grey-500)); background: var(--vd-surface-2); }
.xd-ldr.is-ok { opacity: .75; }
.xd-ldr__n { width: 22px; height: 22px; border-radius: 11px; background: var(--xd-sc, var(--vd-grey-500)); color: var(--vd-text-on-inverse); font: 700 12px/22px var(--font-sans); text-align: center; }
.xd-ldr__t { display: flex; flex-direction: column; min-width: 0; }
.xd-ldr__t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.xd-ldr__t span { font-size: 11.5px; color: var(--vd-text-2); }
.xd-ldr__c { font: 700 12px/16px var(--font-mono, monospace); }
.xd-ldr--0 { --xd-sc: var(--vd-violet-600); } .xd-ldr--1 { --xd-sc: var(--vd-amber-600); } .xd-ldr--2 { --xd-sc: var(--vd-violet-600); } .xd-ldr--3 { --xd-sc: var(--vd-green-700); }
.xd-ldseq { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.xd-ldp { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: var(--xd-sc); color: var(--vd-text-on-inverse); font: 600 10.5px/16px var(--font-sans); }
.xd-ldp b { font-weight: 800; }
.ap-scroll:has(.xd-ldpick) .ap-pals { display: none; }
.xd-wrong { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 20px; border-radius: 0; background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); text-align: center; animation: xd-shake .45s 2; }
.xd-wrong__i { font-size: 56px; }
.xd-wrong > b { font-size: 18px; }
.xd-wrong__t { font: 800 30px/34px var(--font-sans); letter-spacing: .02em; text-transform: uppercase; }
.xd-wrong p { margin: 0; font-size: 13px; line-height: 18px; opacity: .92; }
.xd-wrong .vd-btn { margin-top: 8px; background: var(--vd-surface); color: var(--vd-negative-text); }
@keyframes xd-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .xd-wrong { animation: none; } }
/* S9 · truck now */
.xd-now { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* INV-35 · kudos */
.xd-kud { display: flex; flex-direction: column; gap: 8px; }
.xd-kud > b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.xd-kud__s { font-size: 12px; color: var(--vd-text-2); }
.xd-kud > .vd-btn { align-self: flex-start; }
.xd-kud.is-sent { flex-direction: row; align-items: center; color: var(--vd-positive-text); }
.xd-kud.is-sent > span { display: flex; flex-direction: column; }
.xd-kud.is-sent > span > span { color: var(--vd-text-2); font-size: 12px; }
.xd-kud.xd-sev { align-items: stretch; }
.xd-kudt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.xd-kudt > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: var(--vd-surface-2); font-size: 11px; text-align: center; }
.xd-kudt > span b { font-size: 18px; }
/* INV-28 · duress cards */
.xd-dur:not(.is-closed) { box-shadow: inset 0 0 0 2px var(--vd-negative-solid); }
@media (max-width: 767px) {
  .xd-in--d { grid-template-columns: minmax(0, 1fr) auto; }
  .xd-kudt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* TM-23 · VERIDIUM ID (portable driver identity) */
.xd-gid { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: var(--mk-ink); color: var(--vd-text-on-inverse); }
.xd-gid__a { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--vd-processing-solid); color: var(--vd-text-on-inverse); font: 800 15px/1 var(--font-sans); }
.xd-gid__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xd-gid__t b { font: 800 15px/19px var(--font-sans); }
.xd-gid__t .mono { font: 700 12px/15px var(--font-mono); letter-spacing: .04em; opacity: .9; }
.xd-gid__t > span:last-child { font: 500 11.5px/15px var(--font-sans); opacity: .85; overflow-wrap: anywhere; }
.xd-gsh { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 10px 42px; }
.xd-gsh .vd-chip { min-height: 36px; font-size: 11.5px; }
.xd-gpass { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; margin-bottom: 8px; border-radius: 14px; background: var(--vd-surface-2); text-align: center; }
.xd-gpass b { font: 800 16px/20px var(--font-mono); letter-spacing: .05em; }
.xd-gpass span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-qr { display: block; border-radius: 8px; background: var(--vd-surface); }
.xd-gj { display: flex; gap: 12px; align-items: flex-start; }
.xd-gj .xd-gid__a { width: 36px; height: 36px; font-size: 13px; }
.xd-gj .grow { min-width: 0; line-height: 18px; }
.xd-gj__b { display: flex; flex-direction: column; gap: 6px; flex: none; }
@media (max-width: 767px) {
  .xd-gj { flex-wrap: wrap; }
  .xd-gj__b { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .xd-gsh { padding-left: 0; }
}
/* RE-UX4-25 · Job shows one shift line (the shift itself is on Shift); two scan tiles instead of a floating button */
.xd-shl { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--vd-border); border-radius: 14px; background: var(--vd-surface); color: var(--vd-text-1); text-align: left; cursor: pointer; }
.xd-shl > i:first-child { font-size: 20px; color: var(--vd-text-2); }
.xd-shl.is-on > i:first-child { color: var(--vd-processing-solid); }
.xd-shl > span { display: flex; flex-direction: column; min-width: 0; }
.xd-shl b { font: 800 13px/17px var(--font-sans); }
.xd-shl > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-shl .xd-shl__w { font-weight: 700; color: var(--vd-attention-text); }
.xd-scans { display: grid; gap: 8px; }
.xd-big--2 { background: var(--vd-surface-2); color: var(--vd-text-1); }
.xd-big--2 span span { color: var(--vd-text-2); }
.ap-bar .ap-pill, .ap-pill { white-space: nowrap; }
/* UX5-06 · Driver ops tables on phones: low-value columns hide, status / amount / action stay */
@media (max-width: 600px) { .xd-table .hide-sm, .xd-table td > br, .xd-table td > .small.muted { display: none; } .xd-table td, .xd-table th { padding-left: 8px; padding-right: 8px; } }
/* SELF-xd-1 · place ratings by drivers */
.xd-plc { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 10px; align-items: center; width: 100%; min-height: 48px; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--vd-border); border-radius: 14px; background: var(--vd-surface); color: var(--vd-text-1); text-align: left; cursor: pointer; }
.xd-plc > i:first-child { font-size: 20px; color: var(--vd-amber-400); }
.xd-plc > span { display: flex; flex-direction: column; min-width: 0; }
.xd-plc b { font: 800 13px/17px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-plc > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-rask { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; padding: 12px; border-radius: 14px; background: var(--vd-surface-2); }
.xd-rask > b { font: 800 14px/18px var(--font-sans); }
.xd-rask > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-rask.is-done { flex-direction: row; align-items: flex-start; gap: 10px; }
.xd-rask.is-done > i { font-size: 20px; color: var(--vd-positive-solid); flex: none; }
.xd-rask.is-done > span { display: flex; flex-direction: column; color: var(--vd-text-1); }
.xd-rask.is-done > span > span { color: var(--vd-text-2); }
.xd-stars { display: flex; gap: 6px; margin-top: 4px; }
.xd-star { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--vd-border); border-radius: 12px; background: var(--vd-surface); color: var(--vd-grey-300); font-size: 22px; cursor: pointer; }
.xd-star:hover, .xd-star.is-on { color: var(--vd-amber-400); border-color: var(--vd-amber-400); background: var(--vd-attention-tint); }
.xd-stars--big { justify-content: center; margin: 4px 0 12px; }
.xd-stars--big .xd-star { width: 52px; height: 52px; font-size: 28px; }
.xd-plh { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.xd-plh > span { display: flex; flex-direction: column; min-width: 0; }
.xd-plh > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-plh__s { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; font: 800 20px/1 var(--font-sans); background: var(--vd-surface-2); }
.xd-plh__s--positive { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xd-plh__s--attention { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xd-plh__s--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xd-ptags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.xd-pnotes p { margin: 0 0 8px; font-size: 13px; line-height: 18px; }
.xd-psum { max-width: 520px; }
/* v0.7 · PER-10 report follow-ups in the navigation sheet, PER-18 note */
.ap-sheet__b:has(.xd-nb) > .xd-nbw { grid-column: 1 / -1; height: 40px; flex-direction: row; gap: 6px; font-size: 12.5px; background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xd-why--ok { color: var(--vd-text-2); display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 6px; }
.xd-lvl { display: flex; gap: 6px; align-items: flex-start; }
.ap-sheet__b:has(.xd-nb) > .xv-dwxb { grid-column: 1 / -1; height: 40px; flex-direction: row; gap: 6px; font-size: 12.5px; }
/* v0.7 · IN4-12 reservation at the door (driver app scan / sign steps, consignee page) */
.xd-mic { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--vd-border-subtle); border-radius: 14px; background: var(--vd-surface); color: var(--vd-text-1); text-align: left; cursor: pointer; }
.xd-mic > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mk-ink); color: var(--vd-text-on-inverse); font-size: 20px; }
.xd-mic > span { display: flex; flex-direction: column; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-mic b { font: 700 14px/18px var(--font-sans); color: var(--vd-text-1); }
.xd-mic.is-on { border-color: var(--vd-negative-solid); background: var(--vd-negative-tint); }
.xd-mic.is-on > i { background: var(--vd-negative-solid); animation: xdPulse 1.2s ease-in-out infinite; }
@keyframes xdPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vd-red-700) 35%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--vd-red-700) 0%, transparent); } }
.xd-vrp { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.xd-vrp .demo-pill { white-space: normal; text-align: left; height: auto; min-height: 36px; line-height: 16px; max-width: 100%; }
.xd-vrs { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); font: italic 500 13px/18px var(--font-sans); }
.xd-vrs__k { display: inline-flex; align-items: center; gap: 4px; font: 700 11px/14px var(--font-sans); font-style: normal; color: var(--vd-text-2); text-transform: uppercase; letter-spacing: .02em; }
.xd-vri { margin-top: 8px; padding: 8px; border: 1.5px solid var(--vd-border-subtle); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.xd-vri.is-bad { border-color: var(--vd-negative-solid); }
.xd-vri__h { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.xd-vri__h b { font: 700 14px/18px var(--font-sans); }
.xd-vri__h .mono { font-size: 11.5px; color: var(--vd-text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-vri__n { display: flex; flex-direction: column; gap: 4px; }
.xd-vri__f { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 12.5px/16px var(--font-sans); }
.xd-vri .xd-mini { align-self: flex-start; max-width: 100%; text-align: left; }
.xd-vrt { display: flex; flex-direction: column; gap: 6px; }
.xd-vrt__l { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--vd-attention-tint); font: 500 13px/18px var(--font-sans); overflow-wrap: anywhere; }
.xd-vrt__k { font: 700 11px/14px var(--font-sans); color: var(--vd-text-2); text-transform: uppercase; letter-spacing: .02em; }
.xd-vrc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xd-vrc__ok { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 10px; background: var(--vd-positive-tint); color: var(--vd-positive-text); font: 700 12.5px/16px var(--font-sans); }
.xd-b24v { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--vd-attention-tint); font: 500 12px/16px var(--font-sans); overflow-wrap: anywhere; }
.xd-b24v b { font-weight: 800; margin-right: 4px; }
.xd-b24v__s { display: inline-flex; gap: 4px; align-items: center; color: var(--vd-text-2); }
.xd-vrk .xd-mic { margin-top: 4px; }
/* v0.7 · IN4-24 handling record */
.xd-hrk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.xd-hrk > span { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xd-hrk b { font: 800 20px/24px var(--font-sans); }
.xd-hrk small { font: 500 11.5px/14px var(--font-sans); color: var(--vd-text-2); }
/* v0.7 · SELF-xd-2 driving mode */
.xd-dm { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 20px; background: var(--mk-ink); color: var(--vd-text-on-inverse); text-align: center; }
.xd-dm__i { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--vd-inverse-hover); font-size: 38px; }
.xd-dm > b { font: 800 22px/28px var(--font-sans); }
.xd-dm__s { font: 600 14px/20px var(--font-sans); opacity: .85; }
.xd-dm__b { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 10px; }
.xd-dm__b .vd-btn--56 { height: 56px; font-size: 15px; }
.xd-dm__b .vd-btn--ghost { color: var(--vd-text-on-inverse); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vd-grey-0) 35%, transparent); }
.xd-dm__b .vd-btn:not(.vd-btn--destructive):not(.vd-btn--ghost) { background: var(--vd-surface); color: var(--mk-ink); }
.xd-dm__p { max-width: 320px; font: 500 12px/17px var(--font-sans); opacity: .7; margin: 6px 0 0; }
/* v0.7 · TM-17 own-fleet mode (driver.html?own=SC-412DS) */
.xd-own .xd-web__h > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.xd-own__s { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-own__l { display: flex; flex-direction: column; gap: 6px; }
.xd-own__d { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.xd-own__d > span:last-child { display: flex; flex-direction: column; min-width: 0; font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-own__d b { font: 700 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xd-own__n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--vd-surface-2); font: 700 12px/1 var(--font-sans); }
.xd-own__d.is-done .xd-own__n { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xd-own__d.is-cur .xd-own__n { background: var(--vd-processing-solid); color: var(--vd-text-on-inverse); }
.xd-own__h { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.xd-own__h > span { display: flex; flex-direction: column; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-own__h b { font: 700 15px/20px var(--font-sans); color: var(--vd-text-1); }
.xd-own__st { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--vd-border-subtle); min-width: 0; }
.xd-own__k { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vd-surface-2); font: 700 12px/1 var(--font-sans); }
.xd-own__st.is-ok .xd-own__k { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xd-own__b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-own__b > b { font: 700 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xd-own__b .xd-chips { flex-wrap: wrap; }
.xd-own__c { display: inline-flex; align-items: center; gap: 10px; }
.xd-own__c b { min-width: 24px; text-align: center; font: 800 16px/1 var(--font-sans); color: var(--vd-text-1); }
/* ===== v0.8 · PER4-14 · breakdown playbook (incident card, phone banner, ring) ===== */
.xd-rep { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 10px; align-items: start; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xd-rep > i { font-size: 20px; margin-top: 1px; }
.xd-rep.is-negative { background: var(--vd-negative-tint); } .xd-rep.is-negative > i { color: var(--vd-negative-solid); }
.xd-rep.is-attention { background: var(--vd-attention-tint); } .xd-rep.is-attention > i { color: var(--vd-attention-solid); }
.xd-rep.is-positive { background: var(--vd-positive-tint); } .xd-rep.is-positive > i { color: var(--vd-positive-solid); }
.xd-rep__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xd-rep__t b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xd-rep__t span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-rep__a { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.xd-incc.is-hl { box-shadow: 0 0 0 2px var(--vd-negative-solid); }
.xd-ph1s { order: -1; display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.xd-ph1 { padding: 10px 12px; border-radius: 14px; background: var(--vd-negative-tint); box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xd-ph1__h { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.xd-ph1__h > i { font-size: 20px; color: var(--vd-negative-solid); margin-top: 1px; }
.xd-ph1__h > span { display: flex; flex-direction: column; min-width: 0; }
.xd-ph1__h b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); overflow-wrap: anywhere; }
.xd-ph1__h span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-ph1__s { margin: 6px 0 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-ph1__a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xd-ph1__a .vd-btn { flex: 1 1 auto; }
.xd-mm .xd-ph1 { margin: 6px 0; }
.xd-call { position: absolute; inset: 0; z-index: 13; display: flex; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--vd-grey-950) 62%, transparent); }
.xd-call__c { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 340px; padding: 20px 16px 14px; border-radius: 22px; background: var(--vd-surface); text-align: center; box-shadow: 0 18px 48px color-mix(in srgb, var(--vd-grey-950) 28%, transparent); }
.xd-call__i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); font-size: 30px; animation: xd-call 1.2s ease-in-out infinite; }
.xd-call__c > b { font: 800 18px/22px var(--font-sans); color: var(--vd-text-1); }
.xd-call__n { font: 700 14px/18px var(--font-sans); color: var(--vd-text-1); }
.xd-call__s { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-call__a { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
@keyframes xd-call { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vd-red-700) 45%, transparent); } 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--vd-red-700) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .xd-call__i { animation: none; } }
/* v0.8 · own-fleet mode: the van driver's identity from the masters; the carrier-driver picker and tools of the prototype are hidden */
.xd-own__id { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; margin: 0 0 10px; padding: 8px 10px; border-radius: 12px; background: var(--vd-surface-2); }
.xd-own__id > i { font-size: 18px; margin-top: 1px; }
.xd-own__id b { display: block; font: 700 12.5px/16px var(--font-sans); }
.xd-own__id span span { display: block; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-own__w { color: var(--vd-attention-text); }
.xd-own-on #pd-v, .xd-own-on .dpg__tools { display: none !important; }
.xd-cb__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0; }
.xd-cb__sum b { font: 800 16px/20px var(--font-sans); }
.xd-cb__sum span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xd-cb__l { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; }
.xd-cb__l li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 11.5px/15px var(--font-sans); }
.xd-cb__ok > i { color: var(--vd-positive-solid); } .xd-cb__bad > i { color: var(--vd-negative-solid); } .xd-cb__bad span:last-child { color: var(--vd-negative-text); }
.xd-own__sor .xd-own__d .vd-btn { margin-left: auto; }
/* v0.8 · SELF-xd-4 · road reports from other VERIDIUM drivers */
.xd-road1 { position: absolute; left: 10px; right: 10px; top: 132px; z-index: 4; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 8px; align-items: start; padding: 9px 12px; border-radius: 16px; background: var(--vd-surface); color: var(--vd-text-1); box-shadow: 0 6px 18px color-mix(in srgb, var(--vd-grey-950) 22%, transparent), inset 0 0 0 1.5px var(--vd-attention-solid); }
.xd-road1 > i { font-size: 20px; color: var(--vd-attention-solid); margin-top: 1px; }
.xd-road1 > span { display: flex; flex-direction: column; min-width: 0; }
.xd-road1 b { font: 800 12.5px/16px var(--font-sans); overflow-wrap: anywhere; }
.xd-road1 span span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-road1__a { grid-column: 2; display: flex; gap: 6px; flex-direction: row !important; }
.xd-road1__t { grid-column: 2; font: 700 11.5px/15px var(--font-sans); color: var(--vd-positive-text) !important; }
/* v0.8 · SELF-xd-5 · tolls on this route */
.xd-toll { display: flex; flex-direction: column; gap: 4px; }
.xd-toll__r { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 36px; padding: 4px 8px; border-radius: 10px; background: var(--vd-surface-2); }
.xd-toll__r b { font: 800 12px/16px var(--font-mono, monospace); }
.xd-toll__r span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xd-toll__r em { font: 700 12.5px/16px var(--font-sans); font-style: normal; }
.xd-toll__r.is-low { box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); }
.xd-own .demo-pill, .xd-vrp .demo-pill { white-space: normal; max-width: 100%; text-align: left; }
/* v0.8 · incident cards on a phone-width carrier desktop: the badges wrap under the title */
.xd-incc__h { flex-wrap: wrap; }
.xd-incc__h .grow { flex: 1 1 220px; }
@media (max-width: 640px) { .xd-incc { padding: 12px; } .xd-incc__h > .vd-badge { max-width: 100%; } .xd-incc__h .grow { flex-basis: calc(100% - 56px); } .xd-rep { grid-template-columns: 20px minmax(0, 1fr); } .xd-rep__a .vd-btn { flex: 1 1 auto; } }
/* v0.8 PER4-14 · the breakdown task carries three actions: in Needs you they go under the title (the 390 px layout of the queue), so the title keeps its width */
.sx-q__r:has(> .sx-q__a [data-act="xd_irep"]) { grid-template-columns: 32px minmax(0, 1fr); row-gap: 8px; }
.sx-q__r:has(> .sx-q__a [data-act="xd_irep"]) > .sx-q__a { grid-column: 2; justify-content: flex-start; }
/* step 3.4 (KAN-118): trip strip on the job screen, van sales and the age check in own-fleet mode — phone 390 px, no horizontal scroll */
.xd-trip, .xd-vs, .xd-age { min-width: 0; overflow-wrap: anywhere; }
.xd-trip__a, .xd-trip__ch, .xd-vs__r { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-width: 0; }
.xd-vs__r { align-items: center; }
.xd-vs__n { min-width: 56px; text-align: center; }
.xd-age__r { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--vd-border); min-width: 0; }
.xd-age__r:first-of-type { border-top: 0; }
.xd-age__r.is-done { flex-direction: row; align-items: flex-start; }
