/* VERIDIUM Freight · module xn: Reports, sustainability (EN ISO 14083) and integrations */
:root {
  /* categorical slots in fixed order (validated light palette: blue · orange · aqua · yellow · magenta) */
  --xn-c1: #2a78d6; --xn-c2: #eb6834; --xn-c3: #1baf7a; --xn-c4: #eda100; --xn-c5: #e87ba4;
  --xn-grid: var(--vd-grey-150); --xn-ink: var(--mk-ink);
}
.xn-c1 { background: var(--xn-c1); } .xn-c2 { background: var(--xn-c2); } .xn-c3 { background: var(--xn-c3); } .xn-c4 { background: var(--xn-c4); } .xn-c5 { background: var(--xn-c5); }
.xn-dot { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: var(--xn-c1); }
.xn-dot--xn-c1 { background: var(--xn-c1); } .xn-dot--xn-c2 { background: var(--xn-c2); } .xn-dot--xn-c3 { background: var(--xn-c3); } .xn-dot--xn-c4 { background: var(--xn-c4); } .xn-dot--xn-c5 { background: var(--xn-c5); }

/* layout */
.xn-card { margin-bottom: 12px; }
.xn-card .vd-card__title { align-items: center; gap: 6px; }
.xn-card .vd-card__title i { font-size: 17px; color: var(--vd-text-2); }
.xn-meta { margin-right: auto; color: var(--vd-text-2); font: 600 12px/16px var(--font-sans); }
.xn-card__act { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xn-pad { padding: 2px 18px 16px; }
.xn-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.xn-g2 > .xn-card { margin-bottom: 12px; }
.xn-g2--dev { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.xn-p { margin: 4px 0 8px; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); }
.xn-foot { margin: 8px 0 0; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-neg { color: var(--vd-negative-text); }
.xn-pos { color: var(--vd-positive-text); }
.xn-ok { color: var(--vd-positive-solid); }
.xn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.xn-acts--top { margin: 0 0 12px; }
.xn-acts--top .small { flex: 1 1 260px; }
.xn-empty { padding: 18px; }
.xn-emp { margin-bottom: 12px; }
.xn-fresh { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-fresh i { font-size: 14px; }
.xn-src { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font: 600 10.5px/14px var(--font-sans); color: var(--vd-text-3); }
.xn-src i { font-size: 11px; }
.xn-dl { display: inline-flex; gap: 2px; }
.xn-dl .vd-btn { padding: 0 8px; }

/* KPI tiles */
.xn-k { margin-bottom: 12px; }
.xn-kpi[role="button"] { cursor: pointer; transition: box-shadow var(--vd-duration-hover) ease; }
.xn-kpi[role="button"]:hover { box-shadow: inset 0 0 0 1px var(--vd-border-strong), var(--vd-shadow-e2); }
.xn-kpi[role="button"]:focus-visible { outline: 2px solid var(--vd-focus-edge); outline-offset: 2px; }
.xn-kpi--pos { box-shadow: inset 0 0 0 1.5px var(--vd-positive-border), var(--vd-shadow-e1); }
.xn-kpi .kpi__v { display: flex; align-items: baseline; gap: 8px; }
.xn-d { display: inline-flex; align-items: center; gap: 1px; font: 700 11.5px/1 var(--font-sans); color: var(--vd-text-2); letter-spacing: 0; }
.xn-d i { font-size: 12px; }
.xn-d.is-good { color: var(--vd-positive-text); } .xn-d.is-bad { color: var(--vd-negative-text); }

/* filter bar */
.xn-fb { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 14px; background: var(--vd-surface); }
.xn-fb__per { flex: none; }
.xn-fb__s { display: flex; flex-wrap: wrap; gap: 8px; }
.xn-sel { display: inline-flex; flex-direction: column; gap: 3px; min-width: 0; font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xn-sel .mk-select { min-width: 132px; max-width: 220px; height: 34px; font-size: 13px; }
.xn-fb__a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.xn-fb__r { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-inl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.xn-inl__f { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/16px var(--font-sans); }
.xn-inl__f > i { font-size: 16px; color: var(--vd-text-2); }
.xn-in { width: 140px; height: 34px; }
.xn-in--s { width: 96px; }
.xn-in .vd-input__control { min-width: 0; }
.xn-kv { margin-top: 12px; }
.xn-card .vd-kv-list__value, .xn-dr .vd-kv-list__value, .xn-sh .vd-kv-list__value, .mk-cfm .vd-kv-list__value { font-family: var(--font-sans); text-align: right; }
.xn-card .vd-kv-list__key, .xn-dr .vd-kv-list__key { flex: none; max-width: 45%; }

/* tables */
.xn-t td { vertical-align: middle; }
.xn-trow { cursor: pointer; }
.xn-trow:hover td { background: var(--vd-hover-row); }
.xn-trow:focus-visible { outline: 2px solid var(--vd-focus-edge); outline-offset: -2px; }
.xn-card .vd-table-scroll { margin: 0 -18px; }
.xn-card .vd-table-scroll .vd-table td:first-child, .xn-card .vd-table-scroll .vd-table th:first-child { padding-left: 18px; }
.xn-card .vd-table-scroll .vd-table td:last-child, .xn-card .vd-table-scroll .vd-table th:last-child { padding-right: 18px; }
.xn-vs { font-weight: 700; color: var(--vd-text-2); }
.xn-vs.is-bad { color: var(--vd-negative-text); } .xn-vs.is-good { color: var(--vd-positive-text); }
.xn-rag { display: inline-block; min-width: 46px; padding: 1px 6px; border-radius: 6px; font-weight: 700; text-align: center; }
.xn-rag--g { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xn-rag--a { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xn-rag--r { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xn-ch { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--vd-processing-tint); color: var(--vd-processing-text); font: 700 11px/16px var(--font-sans); }
.xn-ch--own { background: var(--vd-surface-soft); color: var(--vd-text-2); }

/* horizontal bars */
.xn-hb { display: flex; flex-direction: column; gap: 4px; }
.xn-hb__r { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; padding: 3px 6px; margin: 0 -6px; border-radius: 8px; }
.xn-hb__r.is-act { cursor: pointer; }
.xn-hb__r.is-act:hover { background: var(--vd-hover-row); }
.xn-hb__r:focus-visible { outline: 2px solid var(--vd-focus-edge); outline-offset: 0; }
.xn-hb__l { display: flex; flex-direction: column; min-width: 0; font: 600 12.5px/16px var(--font-sans); color: var(--vd-text-1); overflow: hidden; }
.xn-hb__l small { font: 500 11px/14px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xn-hb__tr { position: relative; height: 12px; border-radius: 0 4px 4px 0; background: transparent; box-shadow: inset 1px 0 0 var(--vd-border); }
.xn-hb__b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--xn-c1); }
.xn-hb__b.is-cur { background: var(--xn-c1); }
.xn-hb__b.xn-c1, .xn-meter i.xn-c1 { background: var(--xn-c1); } .xn-hb__b.xn-c2 { background: var(--xn-c2); } .xn-hb__b.xn-c3 { background: var(--xn-c3); } .xn-hb__b.xn-c4 { background: var(--xn-c4); } .xn-hb__b.xn-c5 { background: var(--xn-c5); }
.xn-hb__v { font: 700 12.5px/16px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--vd-text-1); white-space: nowrap; }

/* legend */
.xn-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font: 600 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-leg span { display: inline-flex; align-items: center; }
.xn-ref { display: inline-block; width: 16px; height: 0; margin-right: 6px; border-top: 2px dashed var(--vd-text-2); }

/* stacked columns */
.xn-cols { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 6px; height: 196px; padding-top: 6px; border-bottom: 1px solid var(--vd-border); }
.xn-cols__ref { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed color-mix(in srgb, var(--vd-grey-900) 45%, transparent); pointer-events: none; z-index: 1; }
.xn-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; min-width: 0; outline: none; }
.xn-col__st { display: flex; flex-direction: column-reverse; gap: 2px; min-height: 2px; margin: 0 auto; width: min(100%, 34px); }
.xn-col__st i { display: block; min-height: 1px; }
.xn-col__st i:last-child { border-radius: 4px 4px 0 0; }
.xn-col__l { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font: 600 10.5px/14px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; }
.xn-cols { margin-bottom: 22px; }
.xn-col:hover .xn-col__st, .xn-col:focus .xn-col__st { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--vd-surface), 0 0 0 3px var(--vd-border-strong); border-radius: 4px 4px 0 0; }
.xn-col.is-cur .xn-col__l { color: var(--vd-text-1); font-weight: 800; }
.xn-tip { position: absolute; bottom: calc(100% + 4px); left: 50%; z-index: 5; display: none; flex-direction: column; gap: 2px; min-width: 150px; padding: 8px 10px; transform: translateX(-50%); border-radius: 10px; background: var(--xn-ink); color: var(--vd-text-on-inverse); font: 500 11.5px/15px var(--font-sans); white-space: nowrap; box-shadow: var(--vd-shadow-e3); pointer-events: none; }
.xn-tip b { font-weight: 800; }
.xn-tip span { display: flex; align-items: center; gap: 4px; }
.xn-tip span b { margin-left: auto; padding-left: 10px; }
.xn-tip .xn-dot { box-shadow: 0 0 0 1px color-mix(in srgb, var(--vd-grey-0) 50%, transparent); }
.xn-col .xn-tip { bottom: auto; top: 0; transform: translate(-50%, -100%); }
.xn-col:hover .xn-tip, .xn-col:focus .xn-tip { display: flex; }
.xn-cols .xn-col:nth-child(-n+3) .xn-tip { left: 0; transform: translate(0, -100%); }
.xn-cols .xn-col:nth-last-child(-n+2) .xn-tip { left: auto; right: 0; transform: translate(0, -100%); }

/* line chart */
.xn-ln { padding: 0 0 0 40px; }
.xn-ln__plot { position: relative; height: 168px; border-bottom: 1px solid var(--vd-border); }
.xn-ln__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xn-ln__p { fill: none; stroke: var(--xn-c1); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.xn-ln__g { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--xn-grid); }
.xn-ln__g em { position: absolute; right: calc(100% + 6px); top: -7px; font: 600 10.5px/14px var(--font-sans); font-style: normal; color: var(--vd-text-2); white-space: nowrap; }
.xn-ln__ref { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed color-mix(in srgb, var(--vd-grey-900) 45%, transparent); }
.xn-ln__ref em { position: absolute; right: 0; bottom: 2px; padding: 0 4px; border-radius: 4px; background: var(--vd-surface); font: 700 10.5px/14px var(--font-sans); font-style: normal; color: var(--vd-text-2); }
.xn-ln__d { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--xn-c1); box-shadow: 0 0 0 2px var(--vd-surface); pointer-events: none; }
.xn-ln__d.is-last { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.xn-ln__hz { position: absolute; inset: 0; display: flex; }
.xn-ln__z { position: relative; flex: 1 1 0; outline: none; }
.xn-ln__z:hover, .xn-ln__z:focus { background: linear-gradient(to right, transparent calc(50% - 1px), color-mix(in srgb, var(--vd-grey-900) 25%, transparent) calc(50% - 1px), color-mix(in srgb, var(--vd-grey-900) 25%, transparent) calc(50% + 1px), transparent calc(50% + 1px)); }
.xn-ln__z .xn-tip { top: 8px; bottom: auto; transform: translateX(8px); left: 50%; }
.xn-ln__z .xn-tip.is-l { left: auto; right: 50%; transform: translateX(-8px); }
.xn-ln__z:hover .xn-tip, .xn-ln__z:focus .xn-tip { display: flex; }
.xn-ln__x { display: flex; margin-top: 4px; }
.xn-ln__x span { flex: 1 1 0; min-width: 0; text-align: center; font: 600 10.5px/14px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; overflow: visible; }

/* meter */
.xn-meter { position: relative; display: inline-block; width: 100%; min-width: 60px; max-width: 160px; height: 8px; border-radius: 4px; background: var(--vd-surface-soft); vertical-align: middle; }
.xn-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--xn-c1); }
.xn-meter.is-warn i { background: var(--vd-attention-solid); }
.xn-meter.is-neg i { background: var(--vd-negative-solid); }
.xn-meter em { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--xn-ink); }

/* insights */
.xn-ins { display: flex; flex-direction: column; gap: 8px; }
.xn-ins__i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xn-ins__i > i { font-size: 20px; color: var(--vd-text-2); }
.xn-ins__i--positive > i { color: var(--vd-positive-solid); } .xn-ins__i--attention > i { color: var(--vd-attention-solid); } .xn-ins__i--negative > i { color: var(--vd-negative-solid); }
.xn-ins__i > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-ins__i > span b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }

/* service */
.xn-resp { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; font: 600 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-resp span { display: inline-flex; align-items: center; }
.xn-resp b { margin-left: 4px; color: var(--vd-text-1); }
.xn-par { display: flex; flex-direction: column; gap: 4px; }
.xn-par__r { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr) 28px 40px; align-items: center; gap: 8px; min-height: 26px; font: 600 12px/16px var(--font-sans); }
.xn-par__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xn-par__r > b { text-align: right; font-variant-numeric: tabular-nums; }
.xn-par__r > em { font-style: normal; font-weight: 600; color: var(--vd-text-2); text-align: right; font-size: 11px; }

/* emissions: target, levers, data quality */
.xn-tg { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 4px 0 12px; }
.xn-tg__n { display: flex; flex-direction: column; }
.xn-tg__n b { font: 800 30px/34px var(--font-sans); letter-spacing: -.02em; }
.xn-tg__n span { font: 600 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xn-tg__b .xn-meter { max-width: none; height: 12px; border-radius: 6px; }
.xn-tg__b .xn-meter i { background: var(--vd-positive-solid); border-radius: 6px; }
.xn-tg__l { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xn-lv { display: flex; flex-direction: column; gap: 8px; }
.xn-lv__i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-lv__i > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-lv__i > span:nth-child(2) b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-lv__v { display: flex; flex-direction: column; align-items: flex-end; }
.xn-lv__v b { font: 800 16px/20px var(--font-sans); color: var(--vd-positive-text); }
.xn-lv__v small { font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xn-ask { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--vd-processing-tint); font: 500 12px/16px var(--font-sans); color: var(--vd-text-1); }
.xn-ask > i { flex: none; font-size: 18px; color: var(--vd-processing-text); }
.xn-ask > span { flex: 1 1 auto; min-width: 0; }
.xn-dq { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font: 700 11px/1 var(--font-sans); white-space: nowrap; background: var(--vd-neutral-tint); color: var(--vd-neutral-text); }
.xn-dq i { font-size: 12px; }
.xn-dq--modelled { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xn-dq--primary { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xn-dq--verified { background: var(--vd-positive-solid); color: var(--vd-text-on-inverse); }
.xn-en { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--vd-surface-soft); color: var(--vd-text-1); font: 700 11px/1 var(--font-sans); white-space: nowrap; }
.xn-en i { font-size: 12px; }
.xn-en--hvo, .xn-en--biolng, .xn-en--bev, .xn-en--fcev { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xn-mb { margin-bottom: 12px; }
.xn-mb__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 6px; font: 600 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-mb__h b { color: var(--vd-text-1); }
.xn-mb .xn-meter { max-width: none; }

/* library */
.xn-lib { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
.xn-lib__c { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 14px; border: 1px solid var(--vd-border); border-radius: 14px; background: var(--vd-surface); box-shadow: var(--vd-shadow-e1); }
.xn-lib__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-lib__t b { font: 800 14px/19px var(--font-sans); color: var(--vd-text-1); }
.xn-lib__t em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 600; color: var(--vd-positive-text); }
.xn-lib__a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.xn-vw { display: flex; flex-direction: column; gap: 6px; }
.xn-vw__i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); }
.xn-vw__i > i { font-size: 17px; color: var(--vd-text-2); }
.xn-vw__i > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xn-vw__i > span b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xn-feed { padding: 4px 18px 12px; }

/* integrations */
.xn-hs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--vd-border-subtle); border-radius: 14px; background: var(--vd-surface); font: 600 12.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-hs > span { display: inline-flex; align-items: center; gap: 5px; }
.xn-hs > span i { font-size: 15px; }
.xn-hs b { color: var(--vd-text-1); }
.xn-hs .is-bad, .xn-hs .is-bad b { color: var(--vd-negative-text); }
.xn-hs__w { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; margin-left: auto; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--vd-negative-tint); color: var(--vd-negative-text); font: 700 12px/16px var(--font-sans); cursor: pointer; }
.xn-its { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.xn-it { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--vd-border); border-radius: 16px; background: var(--vd-surface); box-shadow: var(--vd-shadow-e1); min-width: 0; }
.xn-it.is-warn { border-color: var(--vd-negative-solid); box-shadow: inset 0 0 0 1px var(--vd-negative-solid); }
.xn-it__h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.xn-it__h > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-it__h > span:nth-child(2) b { font: 800 14px/19px var(--font-sans); color: var(--vd-text-1); }
.xn-it__h > .vd-badge { grid-column: 2; justify-self: start; }
.xn-it__b { flex: 1 1 auto; }
.xn-it__b .xn-p { margin: 0; }
.xn-it__a { display: flex; flex-wrap: wrap; gap: 6px; }
.xn-fl { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-fl li { display: flex; align-items: flex-start; gap: 6px; }
.xn-fl i { flex: none; margin-top: 1px; font-size: 14px; color: var(--vd-text-1); }
.xn-sw .vd-switch-row { padding: 6px 0; }
.xn-sw .vd-switch-row__label { font-size: 13px; }
.xn-erp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.xn-erp__i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-erp__i.is-on { border-color: var(--vd-positive-border); background: var(--vd-positive-tint); }
.xn-erp__l { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--xn-ink); color: var(--vd-text-on-inverse); font: 800 12px/1 var(--font-sans); }
.xn-erp__i > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; min-width: 0; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xn-erp__i > span:nth-child(2) b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xn-erp__i em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 700; color: var(--vd-positive-text); }
.xn-lf { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.xn-chn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 600; }
.xn-env { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px dashed var(--vd-border-strong); border-radius: 14px; background: var(--vd-surface-2); }
.xn-env > span:nth-child(2) { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-env > span:nth-child(2) b { font: 700 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-scs { display: flex; flex-wrap: wrap; gap: 4px; }
.xn-sc { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 6px; background: var(--vd-surface-soft); font: 600 11px/16px var(--font-mono, monospace); color: var(--vd-text-1); white-space: nowrap; }
.xn-sc--on { background: var(--vd-positive-tint); color: var(--vd-positive-text); font-family: var(--font-sans); }
.xn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.xn-swr { padding-top: 10px; }
.xn-wh { padding: 14px; }
.xn-wh.is-down { border-color: var(--vd-negative-solid); box-shadow: inset 0 0 0 1px var(--vd-negative-solid); }
.xn-wh__h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.xn-wh__u { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-wh__u b { font-size: 13px; color: var(--vd-text-1); overflow-wrap: anywhere; }
.xn-wh__ev { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.xn-wh__f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xn-wh__f .grow { flex: 1 1 auto; }
.xn-code { margin: 6px 0 8px; padding: 10px 12px; max-height: 340px; overflow: auto; border-radius: 10px; background: var(--vd-surface-inverse); color: var(--vd-grey-200); font: 500 12px/17px var(--font-mono, ui-monospace, monospace); white-space: pre; tab-size: 2; }
.xn-code--s { max-height: 280px; font-size: 11.5px; }
.xn-eps { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 4px; }
.xn-ep { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 10px; align-items: center; width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font: 600 12.5px/16px var(--font-sans); color: var(--vd-text-1); }
.xn-ep:hover { background: var(--vd-hover-row); }
.xn-ep.is-on { border-color: var(--vd-border-strong); background: var(--vd-surface-2); }
.xn-ep .mono { overflow-wrap: anywhere; }
.xn-ep__m { grid-row: 1 / span 2; justify-self: start; padding: 2px 6px; border-radius: 6px; font: 800 10.5px/14px var(--font-mono, monospace); background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xn-ep__m--get { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xn-ep__d { grid-column: 2; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xn-eps + .xn-acts { padding: 0 12px 14px; }

/* wizard and tests */
.xn-steps { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; padding: 0; list-style: none; font: 700 12.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-steps li { display: inline-flex; align-items: center; gap: 6px; }
.xn-steps li > span, .xn-steps li > i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--vd-surface-soft); font-size: 11.5px; }
.xn-steps li.is-cur { color: var(--vd-text-1); }
.xn-steps li.is-cur > span { background: var(--xn-ink); color: var(--vd-text-on-inverse); }
.xn-steps li.is-done > i { background: var(--vd-positive-solid); color: var(--vd-text-on-inverse); }
.xn-dr .vd-field { margin-bottom: 10px; }
.xn-dr .vd-switch-row { padding: 8px 0; }
.xn-test { display: flex; flex-direction: column; gap: 6px; }
.xn-test__r { display: grid; grid-template-columns: auto 110px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--vd-positive-tint); font: 500 12.5px/16px var(--font-sans); }
.xn-test__r i { font-size: 17px; }

/* confirm forms */
.xn-fld { margin-bottom: 10px; }
.xn-fld .vd-input { height: 38px; }
.xn-fld__h { font: 500 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xn-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 10px; }
.xn-cks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 10px; margin: 4px 0 12px; }
.xn-ck { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; padding: 4px 0; font: 500 12px/16px var(--font-sans); cursor: pointer; }
.xn-ck input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--xn-ink); flex: none; }
.xn-ck span { display: flex; flex-direction: column; }
.xn-ck small { font-size: 11px; color: var(--vd-text-2); }
.xn-file { font: 500 12px/16px var(--font-sans); max-width: 100%; }
.xn-up { margin: 6px 0; }
.xn-up .vd-table-scroll { border-top: 0; }
.mk-cfm .xn-code { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

/* offers (Send) */
.xn-of { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xn-of__h { display: flex; align-items: flex-start; gap: 6px; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-of__h > i { flex: none; margin-top: 1px; font-size: 14px; color: var(--vd-positive-solid); }
.xn-of__h b { color: var(--vd-text-1); }
.xn-of__c { display: flex; flex-wrap: wrap; gap: 6px; }
.xn-of__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-radius: 10px; background: var(--vd-positive-tint); font: 500 12px/17px var(--font-sans); color: var(--vd-text-1); }
.xn-of__alt > i { color: var(--vd-positive-text); }
.xn-of__alt > span { flex: 1 1 200px; min-width: 0; }
.xn-of__alt .xn-en { height: 20px; vertical-align: 1px; }
.xn-of__p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 600 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-of__pl { display: inline-flex; align-items: center; gap: 8px; }
.xn-of__pl .vd-switch { flex: none; }
.xn-of__b { display: block; flex: 1 1 100%; }
.xn-of__b > i { margin-right: 4px; vertical-align: -2px; }
.xn-of__b b { color: var(--vd-text-1); }
.xn-of__b.is-low { color: var(--vd-attention-text); }
.xn-cb { display: grid; grid-template-columns: auto minmax(0, 1fr) 120px; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xn-cb > i { font-size: 18px; color: var(--vd-text-2); }
.xn-cb > span { display: flex; flex-direction: column; min-width: 0; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xn-cb > span b { font: 700 12.5px/17px var(--font-sans); color: var(--vd-text-1); }
.xn-cb.is-low { background: var(--vd-attention-tint); }

/* shipment emissions box (track, trip drawer) */
.xn-tr { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xn-tr__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 800 13px/18px var(--font-sans); }
.xn-tr__h > i { font-size: 16px; color: var(--vd-positive-solid); }
.xn-tr__s { margin-left: auto; font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xn-tr__k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.xn-tr__k > div { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); }
.xn-tr__k b { font: 800 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xn-tr__k span { font: 600 10.5px/14px var(--font-sans); color: var(--vd-text-2); }
.xn-tr__m { margin: 0; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-tr__a { display: flex; flex-wrap: wrap; gap: 6px; }
.xn-il { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; border-top: 1px solid var(--vd-border-subtle); }
.xn-il__i { display: flex; align-items: center; gap: 5px; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xn-il__i i { flex: none; font-size: 13px; }
.xn-il__i--ok i { color: var(--vd-positive-solid); } .xn-il__i--warn i { color: var(--vd-attention-solid); } .xn-il__i--bad i { color: var(--vd-negative-solid); }
.xn-il__i b { color: var(--vd-text-1); }
.xn-lane { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xn-lane > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-lane > span:nth-child(2) b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xn-lane > .vd-badge + .vd-btn, .xn-lane > .vd-btn { grid-column: 3; }
.xn-pp { margin-top: 12px; }

/* statement document */
.xn-doc { display: flex; flex-direction: column; gap: 12px; }
.xn-doc__top { display: flex; align-items: center; gap: 10px; }
.xn-doc__top > span:nth-child(2) { display: flex; flex-direction: column; flex: 1 1 auto; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xn-doc__top > span:nth-child(2) b { font: 800 15px/20px var(--font-sans); color: var(--vd-text-1); }
.xn-doc__st { padding: 10px 12px; border-left: 3px solid var(--vd-positive-solid); border-radius: 0 10px 10px 0; background: var(--vd-surface-2); color: var(--vd-text-1); }

/* phone (Marketplace app) */
.xn-mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 14px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 600 12.5px/17px var(--font-sans); }
.xn-mrow > i { font-size: 16px; color: var(--vd-positive-solid); }
.xn-mrow > span { flex: 1 1 150px; min-width: 0; }
.xn-mk { gap: 8px; }
.xn-mk__k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.xn-mk__k > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: var(--vd-surface-2); }
.xn-mk__k b { font: 800 16px/21px var(--font-sans); font-variant-numeric: tabular-nums; }
.xn-mk__k span { font: 600 10.5px/14px var(--font-sans); color: var(--vd-text-2); }
.xn-sh .xn-foot { margin-bottom: 4px; }
.xn-sh .xn-tr__k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xn-sh .xn-doc .vd-kv-list__row { flex-wrap: wrap; }

/* consignee page */
.xn-xk .xn-tr__k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xn-xk__ev { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--vd-positive-tint); color: var(--vd-positive-text); font: 700 12.5px/16px var(--font-sans); }
.xn-xk .xn-foot { margin: 0; }

/* demo pill (Russian prototype chrome) */
.xn-demo { position: static; height: 28px; }

/* responsive */
@media (max-width: 1200px) {
  .xn-its { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .xn-g2, .xn-g2--dev, .xn-lib, .xn-erp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .xn-its { grid-template-columns: minmax(0, 1fr); }
  .xn-fb { padding: 10px; }
  .xn-fb__per { width: 100%; overflow-x: auto; }
  .xn-fb__s { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .xn-sel .mk-select { min-width: 0; max-width: none; width: 100%; }
  .xn-fb__a { margin-left: 0; }
  .xn-tr__k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xn-cols { gap: 3px; height: 170px; }
  .xn-col__l { font-size: 9.5px; }
  .xn-ln { padding-left: 34px; }
  .xn-hb__r { grid-template-columns: minmax(84px, 38%) minmax(0, 1fr) auto; gap: 8px; }
  .xn-lv__i { grid-template-columns: auto minmax(0, 1fr) auto; }
  .xn-lv__i > .vd-btn, .xn-lv__i > .vd-badge { grid-column: 2 / -1; justify-self: start; }
  .xn-ins__i { grid-template-columns: auto minmax(0, 1fr); }
  .xn-ins__i > .vd-btn { grid-column: 2; justify-self: start; }
  .xn-wh__h { grid-template-columns: auto minmax(0, 1fr) auto; }
  .xn-wh__h > .vd-badge { grid-column: 2; justify-self: start; }
  .xn-cb { grid-template-columns: auto minmax(0, 1fr); }
  .xn-cb > .xn-meter { grid-column: 1 / -1; max-width: none; }
  .xn-lane { grid-template-columns: auto minmax(0, 1fr); }
  .xn-lane > .vd-badge, .xn-lane > .vd-btn { grid-column: 2; justify-self: start; }
  .xn-tg { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .xn-erp__i { grid-template-columns: auto minmax(0, 1fr); }
  .xn-erp__i > .vd-btn { grid-column: 2; justify-self: start; }
  .xn-test__r { grid-template-columns: auto minmax(0, 1fr); }
  .xn-test__r > span { grid-column: 2; }
  .xn-hs__w { margin-left: 0; }
  .xn-par__r { grid-template-columns: minmax(90px, 40%) minmax(0, 1fr) 24px 36px; }
  .xn-fresh { display: none; }
  .xn-tip { white-space: normal; min-width: 130px; max-width: 200px; }
}
.xn-t .mono { white-space: nowrap; }
.xn-card td .vd-segmented { flex-wrap: nowrap; white-space: nowrap; }
.xn-pp__c { display: flex; align-items: flex-start; gap: 10px; padding-top: 14px; }
.xn-pp__c > i { font-size: 20px; color: var(--vd-positive-solid); }
.xn-pp__c > span { display: flex; flex-direction: column; gap: 2px; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xn-pp__c > span b { font: 800 14px/19px var(--font-sans); color: var(--vd-text-1); }
.xn-pp .xn-tr__k { margin-bottom: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xn-ppi { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--vd-border-strong); background: var(--vd-surface-2); }
.xn-ppi__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-ppi__h b { color: var(--vd-text-1); font-weight: 800; }
.xn-ppi__r { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-ppi__r b { color: var(--vd-text-1); }

/* ---------- W1 · KPI dictionary tiles, KPI drawer, Definitions, reconciliation ---------- */
.xn-kt { position: relative; }
.xn-kt .kpi__l { display: flex; align-items: center; gap: 4px; min-width: 0; }
.xn-kt__i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; margin: -4px 0 -4px auto; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--vd-text-3); cursor: pointer; }
.xn-kt__i i { font-size: 15px; }
.xn-kt__i:hover { background: var(--vd-surface-2); color: var(--vd-text-1); }
.xn-kt__i:focus-visible, .xn-kt__r:focus-visible { outline: 2px solid var(--vd-focus-edge); outline-offset: 2px; }
.xn-kt__r { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 24px; margin-top: 4px; padding: 0; border: 0; background: none; font: 600 11.5px/16px var(--font-sans); color: var(--vd-text-1); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.xn-kt__r i { font-size: 13px; }
.xn-kd__v { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--vd-surface-2); }
.xn-kd__v b { font: 800 26px/32px var(--font-sans); color: var(--vd-text-1); }
.xn-kd__v span { font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xn-kd .vd-kv-list__value { white-space: normal; }
.xn-defs td { vertical-align: top; }
.xn-defs .xn-kdef { min-width: 260px; max-width: 440px; white-space: normal; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xn-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--vd-positive-border); border-radius: 12px; background: var(--vd-positive-tint); }
.xn-rec.is-off { border-color: var(--vd-amber-400); background: var(--vd-attention-tint); }
.xn-rec > i { font-size: 18px; color: var(--vd-positive-solid); }
.xn-rec.is-off > i { color: var(--vd-attention-solid); }
.xn-rec > span { display: flex; flex: 1 1 320px; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xn-rec > span b { font: 800 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-rec__br { color: var(--vd-text-2); overflow-wrap: anywhere; }
.xn-fb__h { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/16px var(--font-sans); color: var(--vd-text-3); }
.xn-bts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.xn-ro { display: flex; flex-direction: column; gap: 2px; min-height: 36px; padding: 6px 10px; border-radius: 10px; background: var(--vd-surface-2); font: 600 13px/18px var(--font-sans); }
.xn-ro small { font: 500 11px/14px var(--font-sans); color: var(--vd-text-3); }
@media (max-width: 767px) {
  .xn-defs .xn-kdef { min-width: 200px; }
  .xn-rec > .vd-btn { margin-left: 26px; }
  .xn-bts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v0.6 · RE-PM-19: KPI chip on charts, KPI split by product (Freight audit) ---------- */
.xn-kchip { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; margin-right: 6px; padding: 0 8px; border: 1px solid var(--vd-border-subtle); border-radius: 999px; background: var(--vd-surface); font: 600 11.5px/16px var(--font-sans); color: var(--vd-text-2); cursor: pointer; vertical-align: middle; }
.xn-kchip:hover { color: var(--vd-text-1); background: var(--vd-surface-2); }
.xn-kchip i { font-size: 13px; }
.xn-kb .vd-card__heading { flex-wrap: wrap; gap: 8px; }
.xn-kb__h { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.xn-kb__k { grid-template-columns: minmax(0, 320px); margin-bottom: 10px; }
.xn-kb__r { white-space: nowrap; }
.xn-kb__r .xn-kt__r { margin-top: 0; }
@media (max-width: 767px) { .xn-kb__h { margin-left: 0; } .xn-kb__k { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v0.6 · IN3-10 Value statement ---------- */
.xn-val { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--vd-positive-border); border-radius: 16px; background: var(--vd-positive-tint); }
.xn-val.is-low { border-color: var(--vd-amber-400); background: var(--vd-attention-tint); }
.xn-val__h { display: flex; align-items: flex-start; gap: 10px; }
.xn-val__h > i { flex: none; margin-top: 2px; font-size: 22px; color: var(--vd-positive-solid); }
.xn-val.is-low .xn-val__h > i { color: var(--vd-attention-solid); }
.xn-val__h > span { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); }
.xn-val__h > span > b { font: 800 17px/23px var(--font-sans); color: var(--vd-text-1); overflow-wrap: anywhere; }
.xn-val__h > .vd-badge { flex: none; }
.xn-val__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0 32px; }
.xn-vk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xn-vt.is-neg .kpi__v { color: var(--vd-negative-solid); }
.xn-vt .kpi__s { min-height: 32px; }
@media (max-width: 1100px) { .xn-vk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .xn-vk { grid-template-columns: minmax(0, 1fr); }
  .xn-val__h { flex-wrap: wrap; }
  .xn-val__a { margin-left: 0; }
  .xn-val__a .vd-btn { flex: 1 1 auto; }
}

/* ---------- v0.6 · TM-21 export all data + switching plan ---------- */
.xn-ex__f { display: flex; flex-direction: column; gap: 12px; }
.xn-ex__r { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.xn-ex__r > .vd-segmented, .xn-ex__r > .small { grid-column: 2; }
.xn-ex__k { padding-top: 8px; font: 700 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-ex__c { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.xn-ex__o { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; background: var(--vd-surface); text-align: left; cursor: pointer; color: var(--vd-text-1); }
.xn-ex__o > i { flex: none; margin-top: 1px; font-size: 18px; color: var(--vd-text-3); }
.xn-ex__o > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; font: 700 12.5px/17px var(--font-sans); }
.xn-ex__o small { font: 500 11px/15px var(--font-sans); color: var(--vd-text-2); }
.xn-ex__o.is-on { border-color: var(--vd-text-1); box-shadow: inset 0 0 0 1px var(--vd-text-1); }
.xn-ex__o.is-on > i { color: var(--vd-text-1); }
.xn-ex__o:focus-visible { outline: 2px solid var(--vd-focus-edge); outline-offset: 2px; }
.xn-ex__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 4px; }
.xn-ex__a .small { flex: 1 1 280px; }
.xn-ex__js { display: flex; flex-direction: column; gap: 8px; }
.xn-ex__j { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-ex__j.is-run { background: var(--vd-surface-2); }
.xn-ex__ji { font-size: 22px; color: var(--vd-text-2); }
.xn-ex__j.is-run .xn-ex__ji i { animation: xn-spin 1.2s linear infinite; display: inline-block; }
@keyframes xn-spin { to { transform: rotate(360deg); } }
.xn-ex__jt { display: flex; flex-direction: column; gap: 3px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xn-ex__jt > b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); overflow-wrap: anywhere; }
.xn-ex__jt .mono { overflow-wrap: anywhere; }
.xn-ex__bar { display: block; height: 6px; max-width: 360px; border-radius: 999px; background: var(--vd-border-subtle); overflow: hidden; }
.xn-ex__bar > i { display: block; height: 100%; border-radius: 999px; background: var(--vd-text-1); transition: width .4s ease; }
.xn-ex__ja { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.xn-sw__tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; padding: 0; list-style: none; }
.xn-sw__tl > li { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-sw__tl > li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-sw__tl > li b { font: 700 12.5px/17px var(--font-sans); color: var(--vd-text-1); }
.xn-sw__n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--vd-surface-2); font: 800 11px/1 var(--font-sans); color: var(--vd-text-2); }
.xn-sw__tl > li.is-done .xn-sw__n { background: var(--vd-positive-solid); color: var(--vd-text-on-inverse); }
.xn-sw__tl > li.is-now { border-color: var(--vd-text-1); }
.xn-sw__tl > li.is-now .xn-sw__n { background: var(--vd-text-1); color: var(--vd-surface); }
@media (max-width: 1023px) { .xn-sw__tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .xn-ex__r { grid-template-columns: minmax(0, 1fr); }
  .xn-ex__r > .vd-segmented, .xn-ex__r > .small { grid-column: 1; }
  .xn-ex__r > .vd-segmented { overflow-x: auto; max-width: 100%; }
  .xn-ex__k { padding-top: 0; }
  .xn-ex__c { grid-template-columns: minmax(0, 1fr); }
  .xn-ex__j { grid-template-columns: auto minmax(0, 1fr); }
  .xn-ex__ja { grid-column: 1 / -1; justify-content: flex-start; }
  .xn-sw__tl { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v0.6 · IN3-22 packaging placed on the market ---------- */
.xn-pko { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 2px 10px; border: 1px solid var(--vd-border-subtle); border-radius: 999px; background: var(--vd-surface); font: 600 12px/16px var(--font-sans); color: var(--vd-text-1); cursor: pointer; text-align: left; }
.xn-pko.is-us { background: var(--vd-surface-2); }
.xn-pko:hover { border-color: var(--vd-border-strong); }
.xn-pko:focus-visible { outline: 2px solid var(--vd-focus-edge); outline-offset: 2px; }
.xn-pkd { display: flex; flex-direction: column; gap: 6px; }
.xn-pkd__r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-pkd__r > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-pkd__r > span b { font-weight: 700; color: var(--vd-text-1); }
.xn-pkb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-pkb > i { font-size: 20px; color: var(--vd-positive-solid); }
.xn-pkb > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-pkb > span b { font-weight: 700; color: var(--vd-text-1); }
.xn-pkf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
@media (max-width: 767px) {
  .xn-pkd__r { grid-template-columns: minmax(0, 1fr) auto; }
  .xn-pkd__r > span { grid-column: 1 / -1; }
  .xn-pkf { grid-template-columns: minmax(0, 1fr); }
}
.xn-k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .xn-k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .xn-k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* UX5-06: low-value columns hidden at phone width (status, amount and next action stay) */
@media (max-width: 767px) { .xn-t .xn-hsm { display: none; } }

/* ---------- v0.6 · SELF-xn-1 KPI watches ---------- */
.xn-kw { display: flex; flex-direction: column; gap: 6px; }
.xn-kw__r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-kw__r > i { font-size: 18px; color: var(--vd-positive-solid); }
.xn-kw__r.is-br { border-color: var(--vd-amber-400); background: var(--vd-attention-tint); }
.xn-kw__r.is-br > i { color: var(--vd-attention-solid); }
.xn-kw__r > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-kw__r > span > b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-kw__r .xn-kt__r { margin-top: 0; }
@media (max-width: 767px) {
  .xn-kw__r { grid-template-columns: auto minmax(0, 1fr) auto; }
  .xn-kw__r > .xn-kt__r { grid-column: 2; justify-self: start; }
  .xn-kw__r > .vd-badge { grid-column: 3; grid-row: 1; }
  .xn-kw__r > .vd-btn { grid-column: 3; grid-row: 2; }
}
.xn-kw__r > .vd-badge { white-space: nowrap; flex-direction: row; display: inline-flex; align-items: center; gap: 4px; }
.xn-pkd { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 6px 8px; }
@media (max-width: 767px) { .xn-pkd { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v0.7 · customer OTIF, Executive, BI, health, ESG, footprints, what-if, benchmark ---------- */
.xn-bad { color: var(--vd-negative-solid); }
.xn-mb { margin-bottom: 12px; }
.xn-wrap { overflow-wrap: anywhere; word-break: break-word; }
.xn-cot__a { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.xn-cline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; background: var(--vd-surface-2); }
.xn-cline > i { font-size: 18px; color: var(--vd-text-2); }
.xn-cline > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xn-cline > span > b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-cline i { vertical-align: -2px; }
.xn-ro { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font: 600 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-exh { margin: 0 0 12px; }
.xn-exk { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .xn-exk { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .xn-exk { grid-template-columns: minmax(0, 1fr); } }
.xn-narr { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font: 500 13px/19px var(--font-sans); color: var(--vd-text-1); }
.xn-g2--in { gap: 16px; }
.xn-g2--in > .vd-kv-list { min-width: 0; }
.xn-closed, .xn-open { border: 0; background: none; padding: 0; cursor: pointer; margin-right: 12px; white-space: nowrap; }
.xn-open { color: var(--vd-attention-text); }
.xn-closed:hover, .xn-open:hover { text-decoration: underline; }
.xn-esub { margin-bottom: 12px; }
.xn-rc { display: flex; flex-direction: column; gap: 6px; }
.xn-rc__r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xn-rc__r > i { font-size: 18px; }
.xn-rc__r > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xn-rc__r > span > b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-qa { display: flex; flex-direction: column; gap: 6px; }
.xn-qa__r { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--vd-border-subtle); font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xn-qa__r > b { font-weight: 700; }
.xn-c2g { gap: 8px 12px; }
.xn-c2g .xn-inl__f { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--font-sans); }
.xn-c2g .xn-in--s { width: 96px; }
@media (max-width: 767px) {
  .xn-cline { grid-template-columns: auto minmax(0, 1fr); }
  .xn-cline > .vd-btn { grid-column: 2; justify-self: start; }
  .xn-rc__r { grid-template-columns: auto minmax(0, 1fr); }
  .xn-rc__r > .vd-badge { grid-column: 2; justify-self: start; }
  .xn-qa__r { grid-template-columns: minmax(0, 1fr); }
  .xn-cot__a { justify-content: flex-start; }
  .xn-exh .vd-segmented { max-width: 100%; overflow-x: auto; }
}
.xn-budr { margin-top: 10px; }
/* v0.7 · customer OTIF at phone width: misses, fines and the month outlook move under the OTIF value */
.xn-ssm { display: none; }
@media (max-width: 767px) { .xn-t .xn-ssm { display: block; margin-top: 4px; color: var(--vd-text-2); } .xn-cot__a { flex-direction: column; align-items: flex-start; } }
/* v0.8 · RE-UX4-30: every 'What is …?' / KPI chip button is at least 36×36 at phone width (the negative margin keeps the tile height) */
@media (max-width: 767px) {
  .xn-kt__i { width: 36px; height: 36px; min-width: 36px; margin: -10px -6px -10px auto; }
  .xn-kchip { min-height: 36px; padding: 0 10px; margin-bottom: 4px; }
  .xn-kt__r { min-height: 36px; }
}
/* v0.8 · RE-UX5-07: By carrier — QBR icon button beside the name, scorecard sub-indices folded into one cell */
.xn-crn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.xn-crn .xn-qbr { flex: none; }
.xn-scc { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 180px; max-width: 320px; white-space: normal; }
.xn-scc__s { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11.5px; line-height: 15px; }
.xn-scc__s b { color: var(--vd-text-1); font-weight: 600; }
@media (max-width: 767px) { .xn-crn .xn-qbr { width: 36px; height: 36px; } .xn-scc { min-width: 140px; } }
/* v0.8 · TM5-02 Apps directory, consent screen, ops review checklist */
.xn-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
.xn-app { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin: 0; }
.xn-app__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xn-app__t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 140px; }
.xn-app__t b { font-weight: 600; }
.xn-app__f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.xn-app .vd-kv-list__row { padding: 3px 0; }
.xn-sc--m { border-color: var(--vd-amber-400); color: var(--vd-attention-text); }
.xn-cons { display: flex; flex-direction: column; gap: 12px; }
.xn-cons__h { display: flex; gap: 10px; align-items: flex-start; }
.xn-cons__h > span { display: flex; flex-direction: column; gap: 2px; }
.xn-cons__l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.xn-cons__l li { display: flex; gap: 8px; align-items: flex-start; font: 500 13px/18px var(--font-sans); }
.xn-cons__l li i { margin-top: 2px; color: var(--vd-text-2); }
.xn-cons__t summary { cursor: pointer; font: 600 12px/18px var(--font-sans); color: var(--vd-text-2); min-height: 36px; display: flex; align-items: center; }
.xn-ck { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-right: 12px; }
.xn-ckl { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.xn-resp { max-height: 320px; overflow: auto; }
@media (max-width: 767px) { .xn-apps { grid-template-columns: minmax(0, 1fr); } .xn-ckl { white-space: normal; } }
.xn-app .vd-kv-list__value, .xn-cons .vd-kv-list__value { font-family: var(--font-sans); font-size: 12.5px; text-align: right; }
/* v0.8 · SELF-xn-5 abatement options */
.xn-macc { display: flex; flex-direction: column; gap: 8px; }
.xn-macc__r { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(80px, 1.4fr) minmax(150px, 1fr) auto; gap: 12px; align-items: center; }
.xn-macc__l { display: flex; flex-direction: column; min-width: 0; }
.xn-macc__b { height: 10px; border-radius: 6px; background: var(--vd-surface-2); overflow: hidden; }
.xn-macc__b i { display: block; height: 100%; background: var(--vd-amber-400); border-radius: 6px; }
.xn-macc__b i.is-neg { background: var(--vd-positive-border); }
.xn-macc__v { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 767px) { .xn-macc__r { grid-template-columns: minmax(0, 1fr) auto; } .xn-macc__b { grid-column: 1 / -1; order: 3; } }
.xn-fresh { white-space: nowrap; }
@media (max-width: 767px) { .xn-fresh { white-space: normal; } }
