/* VERIDIUM Freight · x-excise — Excise, EMCS, eFTI, e-CMR law, ADR and roadside (prefix xx-) */

/* ---------- shared rows and sections ---------- */
.xx-sec { display: flex; flex-direction: column; gap: 10px; }
.xx-h > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.xx-rows { display: flex; flex-direction: column; border: 1px solid var(--vd-border-subtle); border-radius: 12px; overflow: hidden; background: var(--vd-surface); }
.xx-r { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--vd-border-subtle); min-width: 0; }
.xx-r:first-child { border-top: 0; }
.xx-r__i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--vd-surface-2); color: var(--vd-text-supporting); font-size: 16px; }
.xx-r__t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.xx-r__t > b { font: 700 13px/17px var(--font-sans); }
.xx-r__t > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xx-r > .vd-btn, .xx-r > a.vd-btn { flex: none; }
.xx-r--col { align-items: flex-start; }
.xx-r.is-attention .xx-r__i { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xx-r.is-negative .xx-r__i { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xx-r.is-hs { background: color-mix(in srgb, var(--vd-attention-tint) 55%, transparent); }
.xx-r.is-hs .xx-r__i { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xx-sub { margin: 4px 2px 0; font: 700 10.5px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vd-text-2); }
.xx-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xx-empty { padding: 10px 12px; border-radius: 10px; background: var(--vd-surface-2); font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); }
.xx-al { margin: 0; }
.xx-al .vd-alert__body { overflow-wrap: anywhere; }
.xx-nowrap { white-space: nowrap; }
.xx-nowrap .vd-btn + .vd-btn { margin-left: 6px; }
.xx-ok { color: var(--vd-positive-text); display: inline-flex; align-items: center; gap: 4px; }
.xx-neg, .xx-negt { color: var(--vd-negative-text); }
.xx-attn { color: var(--vd-attention-text); }
.xx-list { margin: 6px 0; padding-left: 18px; font: 500 12.5px/19px var(--font-sans); color: var(--vd-text-supporting); }
.xx-more { align-self: flex-start; margin: 2px 2px 0; }

/* ---------- e-AD panel ---------- */
.xx-ead { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--vd-surface-2); }
.xx-ead__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 800 13px/17px var(--font-sans); }
.xx-ead__h > i { font-size: 16px; }
.xx-ead__arc { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-ead__arc b { color: var(--vd-text-1); font-size: 12.5px; overflow-wrap: anywhere; }
.xx-jt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xx-jt > i { font-size: 18px; color: var(--vd-processing-text); margin-top: 1px; }
.xx-jt > span { display: flex; flex-direction: column; gap: 2px; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-jt b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xx-jt.is-attention { box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); }
.xx-jt.is-attention > i { color: var(--vd-attention-text); }
.xx-jt.is-negative { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xx-jt.is-negative > i { color: var(--vd-negative-text); }
.xx-eads { display: flex; flex-direction: column; gap: 4px; }
.xx-eads__r { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px; background: var(--vd-surface); font: 500 12px/16px var(--font-sans); }
.xx-eads__r > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.xx-eads__r .mono { font-size: 11px; color: var(--vd-text-2); overflow-wrap: anywhere; }
.xx-eads__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); font: 800 11px/1 var(--font-sans); }
.xx-seals { display: flex; gap: 8px; align-items: flex-start; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xx-seals b { color: var(--vd-text-1); }

/* ---------- EMCS message log ---------- */
.xx-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); overflow: hidden; }
.xx-msgs li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 11px; border-top: 1px solid var(--vd-border-subtle); }
.xx-msgs li:first-child { border-top: 0; }
.xx-msgs time { font: 600 11px/16px var(--font-mono); color: var(--vd-text-2); white-space: nowrap; }
.xx-msgs__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xx-msgs__t b { font: 700 12.5px/17px var(--font-sans); color: var(--vd-text-1); }
.xx-by { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--vd-text-3); }
.xx-code { display: inline-flex; justify-content: center; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--vd-surface-2); font: 700 10.5px/1 var(--font-mono); color: var(--vd-text-supporting); white-space: nowrap; }
.xx-code--ie801, .xx-code--ie818 { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xx-code--ie815, .xx-code--ie813, .xx-code--ie803, .xx-code--esad { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xx-code--ie819, .xx-code--ie807, .xx-code--ie810 { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xx-code--ie837, .xx-code--ie871, .xx-code--ie840, .xx-code--fallback { background: var(--vd-attention-tint); color: var(--vd-attention-text); }

/* ---------- incidents ---------- */
.xx-incs { display: flex; flex-direction: column; gap: 6px; }
.xx-inc { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xx-inc > i { font-size: 18px; color: var(--vd-attention-text); margin-top: 1px; }
.xx-inc.is-live { box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); background: var(--vd-attention-tint); }
.xx-inc > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-inc b { font: 700 12.5px/17px var(--font-sans); color: var(--vd-text-1); }
.xx-ck { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.xx-ck li { display: flex; align-items: center; gap: 6px; min-height: 28px; color: var(--vd-text-2); }
.xx-ck li > i { color: var(--vd-text-3); }
.xx-ck li.is-ok > i { color: var(--vd-positive-solid); }
.xx-ck li > span { flex: 1 1 auto; }
.xx-warn { display: inline-flex; gap: 6px; align-items: flex-start; margin-top: 4px; color: var(--vd-negative-text); font-weight: 600; }

/* ---------- compose card ---------- */
.xx-cc .xx-rows { background: var(--vd-surface); }
.xx-adrl { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.xx-adr { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 8px; font: 600 11.5px/15px var(--font-sans); background: var(--vd-surface-2); color: var(--vd-text-supporting); overflow-wrap: anywhere; }
.xx-adr.is-ex { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xx-adr.is-lq { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xx-adr.is-dg { background: var(--vd-attention-tint); color: var(--vd-attention-text); box-shadow: inset 0 0 0 1px var(--vd-amber-400); }
.xx-hsreq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.xx-lbl { font: 700 11px/14px var(--font-sans); color: var(--vd-text-2); min-width: 64px; }
.xx-r__t .vd-chip-row { margin-top: 4px; }
.xx-r__t > .vd-btn { align-self: flex-start; margin-top: 6px; }

/* ---------- shipper area ---------- */
.xx-kpi--neg .kpi__v { color: var(--vd-negative-text); }
.xx-flt { gap: 8px; }
.xx-sel { height: 32px; min-width: 180px; max-width: 260px; }
.xx-reg td { vertical-align: top; }
.xx-rg { display: inline-flex; padding: 2px 7px; border-radius: 6px; font: 700 11px/15px var(--font-sans); white-space: nowrap; background: var(--vd-surface-2); color: var(--vd-text-supporting); }
.xx-rg--ead { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xx-rg--esad { background: var(--vd-violet-100); color: var(--vd-violet-600); }
.xx-rg--paid { background: var(--vd-neutral-tint); color: var(--vd-neutral-text); }
.xx-risk { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 11px; font: 800 11.5px/1 var(--font-sans); }
.xx-risk--none { background: var(--vd-surface-2); color: var(--vd-text-3); }
.xx-risk--low { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xx-risk--medium { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xx-risk--high { background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); }
.xx-card { margin-top: 12px; overflow: hidden; }
.xx-card .vd-card__title { display: inline-flex; align-items: center; gap: 6px; }
.xx-aud { flex-wrap: wrap; }
.xx-aud .grow { min-width: 220px; }
.xx-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.xx-two > .xx-card { margin-top: 12px; }
.xx-radar { position: relative; height: 360px; margin: 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--vd-border); background: var(--mk-land); }
.xx-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px 14px; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-leg > span { display: inline-flex; align-items: center; gap: 6px; }
.xx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.xx-dot.is-ok { background: var(--vd-positive-solid); }
.xx-dot.is-bad { background: var(--vd-negative-solid); }
.xx-sd circle { stroke: var(--vd-grey-0); stroke-width: 2; }
.xx-sd.is-ok circle { fill: var(--vd-positive-text); opacity: .85; }
.xx-sd.is-bad circle { fill: var(--vd-negative-text); }
.xx-sd.is-bad { animation: xx-pulse 1.8s ease-in-out infinite; }
@keyframes xx-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .xx-sd.is-bad { animation: none; } }
.xx-cases { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.xx-case { padding: 12px; border-radius: 12px; background: var(--vd-surface-2); border-left: 4px solid var(--vd-border-strong); }
.xx-case--high { border-left-color: var(--vd-negative-solid); }
.xx-case--medium { border-left-color: var(--vd-attention-solid); }
.xx-case__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 13px/17px var(--font-sans); }
.xx-case p { margin: 6px 0; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-supporting); }
.xx-case__f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xx-why { display: inline-block; margin: 0 6px 4px 0; padding: 2px 7px; border-radius: 6px; background: var(--vd-surface-2); font: 600 11.5px/16px var(--font-sans); color: var(--vd-text-supporting); }
.xx-rules { margin: 0; padding: 4px 16px 4px 34px; font: 500 12.5px/19px var(--font-sans); color: var(--vd-text-supporting); }
.xx-rules li { margin-bottom: 6px; }
.xx-mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.xx-mk__i { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xx-mk__i > span:last-child { display: flex; flex-direction: column; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-mk__i b { font: 700 12.5px/17px var(--font-sans); color: var(--vd-text-1); }
.xx-mk__i.is-off { opacity: .7; }
.xx-bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 190px; padding: 6px 16px 0; align-items: end; }
.xx-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.xx-bar__v { font: 700 11px/14px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; }
.xx-bar__c { flex: 1 1 auto; width: 100%; max-width: 54px; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 4px 4px; background: var(--vd-surface-2); overflow: hidden; }
.xx-bar__e { display: block; background: var(--vd-processing-solid); }
.xx-bar__l { display: block; background: repeating-linear-gradient(135deg, var(--vd-grey-350) 0 4px, var(--vd-violet-100) 4px 8px); }
.xx-bar__d { font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; }
.xx-bars__g { display: none; }
.xx-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.xx-sw--e { background: var(--vd-processing-solid); }
.xx-sw--l { background: repeating-linear-gradient(135deg, var(--vd-grey-350) 0 3px, var(--vd-violet-100) 3px 6px); }
.xx-stock { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; padding: 0 16px 10px; }
.xx-stock__i { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12px/16px var(--font-sans); }
.xx-stock__i b { font: 800 18px/22px var(--font-sans); }
.xx-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; }
.xx-steps li { padding: 4px 9px; border-radius: 8px; background: var(--vd-surface-2); font: 600 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xx-steps li.is-done { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xx-steps li.is-cur { background: var(--vd-processing-solid); color: var(--vd-text-on-inverse); }
.xx-units { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.xx-unit { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--vd-positive-tint); color: var(--vd-positive-text); font: 600 11.5px/16px var(--font-sans); }
.xx-unit.is-bad { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.xx-grid > .xx-card { margin-top: 0; }
.xx-span2 { grid-column: 1 / -1; }
.xx-chk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.xx-chk .mk-select { height: 32px; max-width: 220px; }
.xx-parks { margin: 8px -16px 0; }
.xx-card .co-p .xx-r { border: 0; padding: 8px 0; }
.xx-card .co-p .xx-r + .xx-r { border-top: 1px solid var(--vd-border-subtle); }

/* ---------- desktop layer drawer ---------- */
#xx-layer .vd-veil { z-index: 1500; }
#xx-layer .vd-drawer { z-index: 1501; }
.xx-dr .vd-drawer__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xx-dr .vd-drawer__body { display: flex; flex-direction: column; gap: 12px; }
.xx-cmr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--vd-text-1); border-radius: 6px; overflow: hidden; font: 500 12px/16px var(--font-sans); }
.xx-cmr__b { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px 26px; border-right: 1px solid var(--vd-border-strong); border-bottom: 1px solid var(--vd-border-strong); min-width: 0; }
.xx-cmr__b:nth-child(2n) { border-right: 0; }
.xx-cmr__n { position: absolute; left: 6px; top: 6px; font: 800 11px/14px var(--font-mono); color: var(--vd-text-2); }
.xx-cmr__l { font: 700 10px/13px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--vd-text-2); }
.xx-cmr__v { color: var(--vd-text-1); overflow-wrap: anywhere; }
.xx-cmr__b--9 { grid-column: 1 / -1; }
.xx-sigs { display: flex; flex-direction: column; gap: 8px; }
.xx-sig { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-sig b { color: var(--vd-text-1); font-size: 13px; }
.xx-hash { overflow-wrap: anywhere; color: var(--vd-text-3); }
.xx-st td { vertical-align: top; }
.xx-paper { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 8px; background: var(--vd-surface); box-shadow: 0 1px 3px color-mix(in srgb, var(--vd-grey-950) 12%, transparent), inset 0 0 0 1px var(--vd-border-subtle); font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xx-paper p { margin: 0; }
.xx-paper__h { display: flex; flex-direction: column; padding-bottom: 8px; border-bottom: 2px solid var(--vd-border-active); }
.xx-paper__h span { color: var(--vd-text-2); font-size: 12px; }
.xx-qr { flex: none; border-radius: 8px; box-shadow: 0 0 0 1px var(--vd-border-subtle); background: var(--vd-surface); }
.xx-qrb { display: flex; gap: 14px; align-items: center; }
.xx-qrb__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-qrb__t > b { font: 700 22px/26px var(--font-mono); letter-spacing: .12em; color: var(--vd-text-1); }
.xx-qrb__t .mono { overflow-wrap: anywhere; }
.xx-evi { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- chips used on phone and consignee ---------- */
.xx-ch { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font: 700 11px/14px var(--font-sans); white-space: nowrap; }
.xx-ch.is-ok { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xx-ch.is-no { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xx-ch.is-na { background: var(--vd-surface-2); color: var(--vd-text-2); }

/* ---------- VERIDIUM Driver ---------- */
.xx-nb { display: contents; }
.ap-sheet__b:has(.xx-nb) { flex-wrap: wrap; }
.ap-sheet__b:has(.xx-nb) > .vd-btn, .xx-nb > .vd-btn { flex: 1 1 calc(50% - 4px); min-width: 0; }
.xx-nb > .vd-btn--destructive { flex-basis: 100%; }
.xx-dtop { display: flex; justify-content: flex-end; }
.xx-dtop .vd-btn { min-height: 36px; }
.xx-dg { box-shadow: inset 0 0 0 1.5px var(--vd-amber-400); background: var(--vd-attention-tint); }
.xx-hsc { box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); }
.xx-dg .ap-k, .xx-hsc .ap-k, .xx-docs-c .ap-k { display: inline-flex; align-items: center; gap: 4px; }
.xx-docs-c .ap-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xx-insp { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; background: var(--vd-canvas); animation: mk-in .18s ease-out; }
.xx-insp__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px 8px; }
.xx-insp__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.xx-insp__t > i { font-size: 20px; color: var(--vd-processing-solid); align-self: center; }
.xx-insp__t b { font: 800 18px/22px var(--font-sans); }
.xx-insp__t > span { flex-basis: 100%; font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); padding-left: 28px; }
.xx-langs { flex: none; display: flex; gap: 4px; padding: 0 14px 8px; overflow-x: auto; scrollbar-width: none; }
.xx-langs button { flex: 1 0 auto; min-width: 44px; height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 800 12.5px/1 var(--font-sans); color: var(--vd-text-2); cursor: pointer; }
.xx-langs button[aria-checked="true"] { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: none; }
.xx-insp__s { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 2px 14px 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.xx-insp .xx-qrb { padding: 12px; border-radius: 16px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xx-insp .xx-qrb__t > b { font-size: 20px; }
.xx-insp .xx-qrb__t .small { display: inline-flex; align-items: center; gap: 4px; }
.xx-open { justify-content: center; }
.xx-is { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xx-is h3 { margin: 0 0 2px; font: 800 11px/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--vd-text-2); }
.xx-ir { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--vd-border-subtle); }
.xx-ir:nth-child(2) { border-top: 0; }
.xx-ir__k { font: 700 12.5px/16px var(--font-sans); min-width: 0; }
.xx-ir__v { grid-column: 1; font: 500 11.5px/15px var(--font-mono); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xx-ir > .xx-ch { grid-column: 2; grid-row: 1 / span 2; }
.xx-adrdoc { padding: 8px 10px; border-radius: 10px; background: var(--vd-attention-tint); box-shadow: inset 0 0 0 1px var(--vd-amber-400); font-size: 11.5px; line-height: 17px; color: var(--vd-amber-900); overflow-wrap: anywhere; }
.xx-tacho { display: flex; align-items: flex-end; gap: 2px; height: 64px; padding: 4px 0; }
.xx-tacho i { flex: 1 1 0; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--vd-processing-solid); opacity: .85; }
.xx-tacho i:last-child { background: var(--vd-attention-solid); }
.xx-tacho__l { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 500 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xx-incs-sh, .xx-note-sh { max-height: 86%; overflow: auto; }
.xx-incs-sh .vd-chip-row .vd-chip { min-height: 36px; }
.xx-note-sh .ap-hero { box-shadow: none; padding: 12px 8px; }

/* ---------- consignee link ---------- */
.xx-kc { display: flex; flex-direction: column; gap: 10px; }
.xx-kc__arc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-kc__arc b { color: var(--vd-text-1); font-size: 13px; overflow-wrap: anywhere; }
.xx-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.xx-ref, .xx-stk, .xx-ror1 { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xx-ref > b, .xx-stk > b, .xx-ror1 > b { font: 700 13.5px/18px var(--font-sans); }
.xx-cs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.xx-cs li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 9px; border-radius: 9px; font: 500 12px/16px var(--font-sans); }
.xx-cs li.is-ok { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xx-cs li.is-bad { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xx-ror1__l { display: flex; flex-direction: column; gap: 4px; }
.xx-ror1__l > div { display: flex; justify-content: space-between; gap: 8px; font: 500 12.5px/17px var(--font-sans); }
.xx-ec { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 12.5px/17px var(--font-sans); }
.xx-ec > span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- phone sheet (VERIDIUM Marketplace) ---------- */
.xx-msheet { z-index: 14; }
.xx-msheet .xx-cmr { grid-template-columns: minmax(0, 1fr); }
.xx-msheet .xx-cmr__b { border-right: 0; }
.xx-sec--c .xx-rows { background: var(--vd-surface); }

/* ---------- inspector page ---------- */
.xx-pg { min-height: calc(100dvh - var(--proto-h, 0px)); background: var(--vd-canvas); }
.xx-gate { display: flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--vd-blue-900); color: var(--vd-text-on-inverse); }
.xx-gate b { font: 800 15px/20px var(--font-sans); }
.xx-gate span { font: 500 12px/16px var(--font-sans); opacity: .8; }
.xx-gate .grow { flex: 1 1 auto; }
.xx-ip { max-width: 1120px; margin: 0 auto; padding: 18px 16px 40px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.xx-ip__l, .xx-ip__r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xx-ipc { padding: 14px 16px; border-radius: 16px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); display: flex; flex-direction: column; gap: 10px; }
.xx-ipc h2 { margin: 0; font: 800 13px/17px var(--font-sans); display: flex; align-items: center; gap: 6px; }
.xx-auth { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xx-auth > i { font-size: 26px; }
.xx-auth b { font: 800 15px/19px var(--font-sans); }
.xx-auth span { display: flex; flex-direction: column; font: 500 12px/16px var(--font-sans); }
.xx-auth.is-bad { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xx-plate { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xx-plate .vd-input { flex: 1 1 140px; }
.xx-roles { display: flex; flex-direction: column; gap: 6px; }
.xx-role { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 12px; background: var(--vd-surface-2); color: inherit; text-align: left; font: 600 12.5px/16px var(--font-sans); cursor: pointer; min-height: 44px; }
.xx-role[aria-pressed="true"] { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.xx-role span { display: flex; flex-direction: column; }
.xx-role small { font-weight: 500; opacity: .75; }
.xx-role[aria-pressed="true"] .rt__flag { background: var(--vd-inverse-tile); color: var(--vd-text-on-inverse); box-shadow: none; }

@media (max-width: 1180px) { .xx-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) { .xx-grid { grid-template-columns: minmax(0, 1fr); } .xx-ip { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .xx-cmr { grid-template-columns: minmax(0, 1fr); }
  .xx-cmr__b { border-right: 0; }
  .xx-msgs li { grid-template-columns: minmax(0, 1fr) auto; }
  .xx-msgs li > .xx-code { grid-column: 1 / -1; justify-self: start; }
  .xx-bars { gap: 4px; padding: 6px 8px 0; }
  .xx-bar__v { font-size: 9.5px; }
  .xx-radar { height: 280px; margin: 0 10px; }
  .xx-sel { max-width: 100%; flex: 1 1 100%; }
  .xx-eads__r { grid-template-columns: 22px minmax(0, 1fr); }
  .xx-eads__r > span:nth-child(3), .xx-eads__r > .vd-badge { grid-column: 2; justify-self: start; }
  .xx-gate { padding: 12px 16px; flex-wrap: wrap; }
  .xx-qrb { flex-wrap: wrap; }
  .xx-r { flex-wrap: wrap; }
  .xx-r > .vd-btn, .xx-r > a.vd-btn { margin-left: 38px; }
}
.xx-gd { min-width: 180px; max-width: 280px; }
.xx-reg .vd-badge { white-space: nowrap; }

/* ===== v0.5 W1 (xx) ===== */
/* UX4-04: one guarantee chart — open movements, lane bookings, planned orders, the guarantee line, days over the cap */
.xx-bar__c { position: relative; }
.xx-bar__o { display: block; background: var(--vd-attention-solid); opacity: .85; }
.xx-bar__g { position: absolute; left: -3px; right: -3px; height: 0; border-top: 2px dashed var(--vd-text-1); pointer-events: none; }
.xx-bar.is-over .xx-bar__v { color: var(--vd-negative-text); }
.xx-bar.is-over .xx-bar__c { box-shadow: inset 0 0 0 2px var(--vd-negative-solid); }
.xx-sw--o { background: var(--vd-attention-solid); }
.xx-sw--g { height: 0; border-top: 2px dashed var(--vd-text-1); border-radius: 0; vertical-align: middle; }
/* UX4-29: navigation-sheet tiles get two-line labels instead of "Delivery p…" (same tile as xd/xy); the panic tile is red */
.ap-sheet__b:has(.xd-nb) > .vd-btn { height: auto; min-height: 54px; }
.ap-sheet__b:has(.xd-nb) > .vd-btn > span:not(.vd-count) { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; text-align: center; overflow: hidden; }
.ap-sheet__b > .xx-nbt--panic { background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); box-shadow: none; }
/* FL-39: on the consignee page the excise card is the only report-of-receipt card */
.xx-on .xk-ror { display: none; }
/* INV-24: authority console (inspect.html?mode=authority) */
.xx-auc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.xx-aul { display: flex; flex-direction: column; gap: 8px; }
.xx-aur { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--vd-border-subtle); background: var(--vd-surface); min-width: 0; }
.xx-aur.is-on { box-shadow: inset 0 0 0 2px var(--vd-processing-solid); }
.xx-aur__m { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.xx-aur__m > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xx-aur__h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.xx-aur__s { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.xx-aur__f { display: flex; flex-wrap: wrap; gap: 4px; }
.xx-sc { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; font: 800 15px/1 var(--font-sans); }
.xx-sc--ok { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xx-sc--mid { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xx-sc--low { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xx-seal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.xx-seal__img { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 120px; height: 84px; border-radius: 10px; background: repeating-linear-gradient(45deg, var(--vd-surface-2) 0 6px, var(--vd-surface) 6px 12px); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xx-seal__img i { font-size: 24px; color: var(--vd-processing-solid); }
@media (max-width: 1023px) { .xx-auc { grid-template-columns: minmax(0, 1fr); } }
/* INV-32: bulk spirit at 20 °C */
.xx-bk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xx-bk__c { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xx-bkf { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 8px; font: 600 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xx-bkf .vd-input { min-width: 0; }
.xx-fs { margin-top: 8px; }
@media (max-width: 520px) { .xx-bk { grid-template-columns: minmax(0, 1fr); } .xx-aur__m { flex-direction: column; } .xx-aur__s { flex-direction: row; align-items: center; } }

/* ---- v0.6 · IN3-04 loss after accident (shipper / carrier panel, driver scene mode) ---- */
.xx-loss { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xx-loss__h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xx-loss__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.xx-loss__c { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); min-width: 0; }
.xx-loss__c b { font: 700 16px/20px var(--font-sans); color: var(--vd-text-1); }
.xx-loss__c.is-positive { box-shadow: inset 3px 0 0 var(--vd-positive-solid), inset 0 0 0 1px var(--vd-border-subtle); }
.xx-loss__c.is-negative { box-shadow: inset 3px 0 0 var(--vd-negative-solid), inset 0 0 0 1px var(--vd-border-subtle); }
.xx-loss__c.is-attention { box-shadow: inset 3px 0 0 var(--vd-attention-solid), inset 0 0 0 1px var(--vd-border-subtle); }
.xx-loss .xx-acts .vd-btn { min-height: 36px; }
.xx-scene { max-height: 88%; overflow-y: auto; }
.ap-hero--warn .ap-hero__i { background: var(--vd-negative-tint); color: var(--vd-negative-solid); }
.xx-scn { display: flex; flex-direction: column; gap: 8px; }
.xx-scn__h { display: flex; gap: 8px; align-items: center; font: 700 14px/18px var(--font-sans); }
.xx-scn__h i { font-size: 18px; color: var(--vd-text-3); }
.xx-scn.is-ok .xx-scn__h i { color: var(--vd-positive-solid); }
.xx-scn__cnt { font: 500 13px/18px var(--font-sans); color: var(--vd-text-2); }
.xx-scn__cnt b { font: 700 16px/20px var(--font-sans); color: var(--vd-text-1); }
.xx-scn__b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.xx-scn__b .vd-btn { padding: 0 6px; min-width: 0; }
@media (max-width: 520px) { .xx-loss__g { grid-template-columns: minmax(0, 1fr); } }

/* ---- v0.6 · IN3-07 audit room ---- */
.xx-adl { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.xx-adc { display: flex; flex-direction: column; gap: 2px; min-width: 220px; max-width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); text-align: left; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); cursor: pointer; }
.xx-adc b { font: 700 14px/18px var(--font-sans); color: var(--vd-text-1); }
.xx-adc.is-on { box-shadow: inset 0 0 0 2px var(--vd-processing-solid); }
.xx-adt td, .xx-adt th { vertical-align: top; }
.xx-adt__l { text-align: center; white-space: normal; max-width: 86px; font-size: 11px; line-height: 14px; }
.xx-adt tr.is-on td { background: var(--vd-surface-2); }
.xx-al2 { display: inline-flex; font-size: 18px; }
.xx-al2.is-ok { color: var(--vd-positive-solid); }
.xx-al2.is-amber { color: var(--vd-attention-solid); }
.xx-al2.is-miss { color: var(--vd-negative-solid); }
.xx-al2.is-na { color: var(--vd-text-3); opacity: .6; }
.xx-adm { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.xx-qa__a { color: var(--vd-text-1); }
.xx-kpi--att .kpi__v { color: var(--vd-attention-text); }
@media (max-width: 520px) { .xx-adc { min-width: 0; width: 100%; } }
.vd-table.mk-table.xx-adt th.xx-adt__l, .vd-table.mk-table.xx-adt th.hide-sm { white-space: normal; min-width: 62px; max-width: 84px; font-size: 11px; line-height: 14px; text-align: center; overflow-wrap: anywhere; }
.vd-table.mk-table.xx-adt td:first-child .mono { white-space: nowrap; }
.vd-table.mk-table.xx-adt td:nth-last-child(2) { min-width: 220px; }
/* v0.6 · UX5-06/07 + RE-UX4-30: low-value columns hide at phone width; tap targets ≥ 36 px on phone layouts */
@media (max-width: 600px) {
  .xx-reg .hide-sm, .xx-adt .hide-sm, .xx-mkt .hide-sm, .xx-loss .hide-sm, .xx-paper .hide-sm { display: none; }
  .xx-sec .vd-btn--28, .xx-sec .vd-btn--32, .xx-card .vd-btn--28, .xx-card .vd-btn--32, .xx-msheet .vd-btn--28, .xx-msheet .vd-btn--32 { min-height: 36px; }
  .xx-sec .demo-pill, .xx-card .demo-pill, .xx-scene .demo-pill { min-height: 36px; height: auto; white-space: normal; }
  .xx-adt__r .hide-sm { display: none; }
}
.xx-dr .vd-drawer__footer, .xx-dr .vd-drawer__foot { flex-wrap: wrap; gap: 8px; }
.vd-table.mk-table.xx-adt th, .vd-table.mk-table.xx-adt td { padding-left: 8px; padding-right: 8px; }
.vd-table.mk-table.xx-adt td:last-child .xx-acts { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.vd-table.mk-table.xx-adt td:first-child { min-width: 128px; }
/* v0.7 · FL6-01 loss in the report of receipt · pre-check warning rows */
.xx-warnp { display: flex; gap: 6px; align-items: flex-start; color: var(--vd-attention-text); font-weight: 600; }
.xx-ck li.is-warn { color: var(--vd-attention-text); }
/* v0.7 · TM4-01 export outside the EU */
.xx-exh { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface-2); margin-bottom: 10px; }
.xx-exh .grow { flex: 1; min-width: 0; }
.xx-exsl, .xx-extl { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.xx-exs { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface); flex-wrap: wrap; }
.xx-exs > .ph, .xx-exs > i { color: var(--vd-text-supporting); margin-top: 2px; }
.xx-exs.is-ok { border-color: var(--vd-positive-tint); }
.xx-exs.is-ok > .ph, .xx-exs.is-ok > i { color: var(--vd-positive-text); }
.xx-exs__t { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.xx-exs__t span { font-size: 13px; color: var(--vd-text-2); overflow-wrap: anywhere; }
.xx-exs .vd-btn { flex: 0 0 auto; }
.xx-exseg { display: inline-flex; max-width: 100%; overflow-x: auto; }
.xx-extl li { display: flex; gap: 10px; align-items: flex-start; color: var(--vd-text-2); }
.xx-extl li.is-ok { color: var(--vd-text-1); }
.xx-extl li.is-ok > .ph, .xx-extl li.is-ok > i { color: var(--vd-positive-text); }
.xx-extl li > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.xx-extl li > span span { font-size: 12px; color: var(--vd-text-2); overflow-wrap: anywhere; }
.xx-extl time { font-size: 12px; color: var(--vd-text-supporting); white-space: nowrap; }
.xx-exr { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
.xx-exr .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.xx-exbk { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--vd-border-subtle); justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.mk-row.is-off { opacity: .75; }
.xx-pks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding: 12px; }
.xx-pk { border: 1px solid var(--vd-border-subtle); border-radius: 10px; padding: 10px 12px; background: var(--vd-surface); min-width: 0; }
.xx-pk__h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.xx-pk__tc { display: flex; justify-content: flex-end; margin: -2px 0 4px; }
.xx-tc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--vd-attention-tint); color: var(--vd-attention-text); white-space: nowrap; cursor: help; }
.xx-bord .ap-k { display: flex; align-items: center; gap: 6px; }
.xx-bdocs { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.xx-bdocs li { display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.xx-bord .ap-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.xx-bord .ap-row .vd-input { flex: 1; min-width: 0; }
@media (max-width: 767px) { .xx-pks { grid-template-columns: 1fr; padding: 8px; } .xx-exs__t { min-width: 0; flex-basis: 100%; } }
.xx-rft td:first-child b.mono { white-space: nowrap; }
.xx-rfev { min-width: 150px; }
.xx-rfev .xx-ch { margin: 1px 4px 1px 0; }
/* TM4-22 · consignment note issued by VERIDIUM / external e-CMR / paper */
.xx-cnby { border: 1px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface-2); padding: 10px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.xx-cnby__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.xx-cnby__h .vd-field__label { margin: 0; }
.xx-cnby__a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xx-cnby .mk-row { padding: 0; border: 0; background: none; }
.xx-cnby .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.xx-cnby p { margin: 0; }
.xx-cnocr { margin: 0; }
/* IN4-20 · distance selling */
.xx-exv { margin-bottom: 12px; }
.xx-exv .vd-segmented { max-width: 100%; overflow-x: auto; }
.xx-dsr .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.xx-dsr__a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ================= v0.8 IN5-01 · stamp at the dock ================= */
.xx-dk { display: flex; flex-direction: column; gap: 6px; }
.xx-dk.is-ok { border-color: var(--vd-positive-border); }
.xx-dk__bar { height: 6px; border-radius: 3px; background: var(--vd-neutral-tint); overflow: hidden; }
.xx-dk__bar i { display: block; height: 100%; background: var(--vd-positive-solid); }
.xx-dk__b { display: flex; flex-wrap: wrap; gap: 6px; }
.xx-cfd { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--vd-border); border-radius: 8px; margin-top: 8px; cursor: pointer; }
.xx-cfd input { margin-top: 3px; }
.xx-dkn { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.xx-dkn > span { flex: 1; min-width: 0; }
.xx-dkrow b { margin-right: 4px; }
.xx-dkt td { vertical-align: top; }
.xx-dkres { margin-top: 6px; word-break: break-word; }
@media (max-width: 767px) { .xx-dkn { flex-wrap: wrap; } }

/* v0.8 §3 CR (xt): authority list — id, ARC and route stack in one column; the ARC wraps instead of overlapping */
.xx-aur__i { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.xx-aur__arc { overflow-wrap: anywhere; word-break: break-all; }
.xx-auc .xx-aur__m { align-items: flex-start; }
/* v0.8 IN5-08 · exempt users */
.xx-exut td { vertical-align: top; }
.xx-exuc { margin-top: 8px; }
/* v0.8 IN5-19 · stamp box on the return leg */
.xx-sovia { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.xx-sor .xx-row2 { align-items: center; gap: 10px; flex-wrap: wrap; }
